Monorepo for Tangled

api/tangled: lexgen

Signed-off-by: Seongmin Lee <git@boltless.me>

boltless.me 06349f70 562778dc

verified
+316 -316
+7 -7
api/tangled/actorprofile.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.actor.profile 4 4 5 - // schema: sh.tangled.actor.profile 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.actor.profile", &ActorProfile{}) 17 - } // 18 - // RECORDTYPE: ActorProfile 16 + lexutil.RegisterType("sh.tangled.actor.profile", &ActorProfile{}) 17 + } 18 + 19 19 type ActorProfile struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.actor.profile" cborgen:"$type,const=sh.tangled.actor.profile"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.actor.profile"` 21 21 // bluesky: Include link to this account on Bluesky. 22 22 Bluesky bool `json:"bluesky" cborgen:"bluesky"` 23 23 // description: Free-form profile description text.
+7 -7
api/tangled/feedreaction.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.feed.reaction 4 4 5 - // schema: sh.tangled.feed.reaction 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.feed.reaction", &FeedReaction{}) 17 - } // 18 - // RECORDTYPE: FeedReaction 16 + lexutil.RegisterType("sh.tangled.feed.reaction", &FeedReaction{}) 17 + } 18 + 19 19 type FeedReaction struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.feed.reaction" cborgen:"$type,const=sh.tangled.feed.reaction"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.feed.reaction"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 Reaction string `json:"reaction" cborgen:"reaction"` 23 23 Subject string `json:"subject" cborgen:"subject"`
+7 -7
api/tangled/feedstar.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.feed.star 4 4 5 - // schema: sh.tangled.feed.star 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.feed.star", &FeedStar{}) 17 - } // 18 - // RECORDTYPE: FeedStar 16 + lexutil.RegisterType("sh.tangled.feed.star", &FeedStar{}) 17 + } 18 + 19 19 type FeedStar struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.feed.star" cborgen:"$type,const=sh.tangled.feed.star"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.feed.star"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 Subject string `json:"subject" cborgen:"subject"` 23 23 }
+7 -7
api/tangled/gitrefUpdate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.git.refUpdate 4 4 5 - // schema: sh.tangled.git.refUpdate 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.git.refUpdate", &GitRefUpdate{}) 17 - } // 18 - // RECORDTYPE: GitRefUpdate 16 + lexutil.RegisterType("sh.tangled.git.refUpdate", &GitRefUpdate{}) 17 + } 18 + 19 19 type GitRefUpdate struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.git.refUpdate" cborgen:"$type,const=sh.tangled.git.refUpdate"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.git.refUpdate"` 21 21 // committerDid: did of the user that pushed this ref 22 22 CommitterDid string `json:"committerDid" cborgen:"committerDid"` 23 23 Meta *GitRefUpdate_Meta `json:"meta" cborgen:"meta"`
+7 -7
api/tangled/graphfollow.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.graph.follow 4 4 5 - // schema: sh.tangled.graph.follow 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.graph.follow", &GraphFollow{}) 17 - } // 18 - // RECORDTYPE: GraphFollow 16 + lexutil.RegisterType("sh.tangled.graph.follow", &GraphFollow{}) 17 + } 18 + 19 19 type GraphFollow struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.graph.follow" cborgen:"$type,const=sh.tangled.graph.follow"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.graph.follow"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 Subject string `json:"subject" cborgen:"subject"` 23 23 }
+7 -7
api/tangled/issuecomment.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.issue.comment 4 4 5 - // schema: sh.tangled.repo.issue.comment 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo.issue.comment", &RepoIssueComment{}) 17 - } // 18 - // RECORDTYPE: RepoIssueComment 16 + lexutil.RegisterType("sh.tangled.repo.issue.comment", &RepoIssueComment{}) 17 + } 18 + 19 19 type RepoIssueComment struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo.issue.comment" cborgen:"$type,const=sh.tangled.repo.issue.comment"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo.issue.comment"` 21 21 Body string `json:"body" cborgen:"body"` 22 22 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 23 23 Issue string `json:"issue" cborgen:"issue"`
+7 -7
api/tangled/issuestate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.issue.state 4 4 5 - // schema: sh.tangled.repo.issue.state 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo.issue.state", &RepoIssueState{}) 17 - } // 18 - // RECORDTYPE: RepoIssueState 16 + lexutil.RegisterType("sh.tangled.repo.issue.state", &RepoIssueState{}) 17 + } 18 + 19 19 type RepoIssueState struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo.issue.state" cborgen:"$type,const=sh.tangled.repo.issue.state"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo.issue.state"` 21 21 Issue string `json:"issue" cborgen:"issue"` 22 22 // state: state of the issue 23 23 State string `json:"state" cborgen:"state"`
+5 -5
api/tangled/knotlistKeys.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.knot.listKeys 4 4 5 - // schema: sh.tangled.knot.listKeys 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 35 35 // 36 36 // cursor: Pagination cursor 37 37 // limit: Maximum number of keys to return 38 - func KnotListKeys(ctx context.Context, c util.LexClient, cursor string, limit int64) (*KnotListKeys_Output, error) { 38 + func KnotListKeys(ctx context.Context, c lexutil.LexClient, cursor string, limit int64) (*KnotListKeys_Output, error) { 39 39 var out KnotListKeys_Output 40 40 41 41 params := map[string]interface{}{} ··· 45 45 if limit != 0 { 46 46 params["limit"] = limit 47 47 } 48 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.listKeys", params, nil, &out); err != nil { 48 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.knot.listKeys", params, nil, &out); err != nil { 49 49 return nil, err 50 50 } 51 51
+7 -7
api/tangled/knotmember.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.knot.member 4 4 5 - // schema: sh.tangled.knot.member 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.knot.member", &KnotMember{}) 17 - } // 18 - // RECORDTYPE: KnotMember 16 + lexutil.RegisterType("sh.tangled.knot.member", &KnotMember{}) 17 + } 18 + 19 19 type KnotMember struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.knot.member" cborgen:"$type,const=sh.tangled.knot.member"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.knot.member"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 // domain: domain that this member now belongs to 23 23 Domain string `json:"domain" cborgen:"domain"`
+5 -5
api/tangled/knotversion.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.knot.version 4 4 5 - // schema: sh.tangled.knot.version 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 20 20 } 21 21 22 22 // KnotVersion calls the XRPC method "sh.tangled.knot.version". 23 - func KnotVersion(ctx context.Context, c util.LexClient) (*KnotVersion_Output, error) { 23 + func KnotVersion(ctx context.Context, c lexutil.LexClient) (*KnotVersion_Output, error) { 24 24 var out KnotVersion_Output 25 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.version", nil, nil, &out); err != nil { 25 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.knot.version", nil, nil, &out); err != nil { 26 26 return nil, err 27 27 } 28 28
+7 -7
api/tangled/labeldefinition.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.label.definition 4 4 5 - // schema: sh.tangled.label.definition 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.label.definition", &LabelDefinition{}) 17 - } // 18 - // RECORDTYPE: LabelDefinition 16 + lexutil.RegisterType("sh.tangled.label.definition", &LabelDefinition{}) 17 + } 18 + 19 19 type LabelDefinition struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.label.definition" cborgen:"$type,const=sh.tangled.label.definition"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.label.definition"` 21 21 // color: The hex value for the background color for the label. Appviews may choose to respect this. 22 22 Color *string `json:"color,omitempty" cborgen:"color,omitempty"` 23 23 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
+7 -7
api/tangled/labelop.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.label.op 4 4 5 - // schema: sh.tangled.label.op 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.label.op", &LabelOp{}) 17 - } // 18 - // RECORDTYPE: LabelOp 16 + lexutil.RegisterType("sh.tangled.label.op", &LabelOp{}) 17 + } 18 + 19 19 type LabelOp struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.label.op" cborgen:"$type,const=sh.tangled.label.op"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.label.op"` 21 21 Add []*LabelOp_Operand `json:"add" cborgen:"add"` 22 22 Delete []*LabelOp_Operand `json:"delete" cborgen:"delete"` 23 23 PerformedAt string `json:"performedAt" cborgen:"performedAt"`
+5 -5
api/tangled/pipelinecancelPipeline.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.pipeline.cancelPipeline 4 4 5 - // schema: sh.tangled.pipeline.cancelPipeline 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 25 25 } 26 26 27 27 // PipelineCancelPipeline calls the XRPC method "sh.tangled.pipeline.cancelPipeline". 28 - func PipelineCancelPipeline(ctx context.Context, c util.LexClient, input *PipelineCancelPipeline_Input) error { 29 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.pipeline.cancelPipeline", nil, input, nil); err != nil { 28 + func PipelineCancelPipeline(ctx context.Context, c lexutil.LexClient, input *PipelineCancelPipeline_Input) error { 29 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.pipeline.cancelPipeline", nil, input, nil); err != nil { 30 30 return err 31 31 } 32 32
+7 -7
api/tangled/pipelinestatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.pipeline.status 4 4 5 - // schema: sh.tangled.pipeline.status 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.pipeline.status", &PipelineStatus{}) 17 - } // 18 - // RECORDTYPE: PipelineStatus 16 + lexutil.RegisterType("sh.tangled.pipeline.status", &PipelineStatus{}) 17 + } 18 + 19 19 type PipelineStatus struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.pipeline.status" cborgen:"$type,const=sh.tangled.pipeline.status"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.pipeline.status"` 21 21 // createdAt: time of creation of this status update 22 22 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 23 23 // error: error message if failed
+7 -7
api/tangled/pullcomment.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.pull.comment 4 4 5 - // schema: sh.tangled.repo.pull.comment 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo.pull.comment", &RepoPullComment{}) 17 - } // 18 - // RECORDTYPE: RepoPullComment 16 + lexutil.RegisterType("sh.tangled.repo.pull.comment", &RepoPullComment{}) 17 + } 18 + 19 19 type RepoPullComment struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo.pull.comment" cborgen:"$type,const=sh.tangled.repo.pull.comment"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo.pull.comment"` 21 21 Body string `json:"body" cborgen:"body"` 22 22 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 23 23 Mentions []string `json:"mentions,omitempty" cborgen:"mentions,omitempty"`
+7 -7
api/tangled/pullstatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.pull.status 4 4 5 - // schema: sh.tangled.repo.pull.status 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo.pull.status", &RepoPullStatus{}) 17 - } // 18 - // RECORDTYPE: RepoPullStatus 16 + lexutil.RegisterType("sh.tangled.repo.pull.status", &RepoPullStatus{}) 17 + } 18 + 19 19 type RepoPullStatus struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo.pull.status" cborgen:"$type,const=sh.tangled.repo.pull.status"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo.pull.status"` 21 21 Pull string `json:"pull" cborgen:"pull"` 22 22 // status: status of the pull request 23 23 Status string `json:"status" cborgen:"status"`
+5 -5
api/tangled/repoaddSecret.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.addSecret 4 4 5 - // schema: sh.tangled.repo.addSecret 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 22 22 } 23 23 24 24 // RepoAddSecret calls the XRPC method "sh.tangled.repo.addSecret". 25 - func RepoAddSecret(ctx context.Context, c util.LexClient, input *RepoAddSecret_Input) error { 26 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.addSecret", nil, input, nil); err != nil { 25 + func RepoAddSecret(ctx context.Context, c lexutil.LexClient, input *RepoAddSecret_Input) error { 26 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.addSecret", nil, input, nil); err != nil { 27 27 return err 28 28 } 29 29
+5 -5
api/tangled/repoarchive.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.archive 4 4 5 - // schema: sh.tangled.repo.archive 5 + package tangled 6 6 7 7 import ( 8 8 "bytes" 9 9 "context" 10 10 11 - "github.com/bluesky-social/indigo/lex/util" 11 + lexutil "github.com/bluesky-social/indigo/lex/util" 12 12 ) 13 13 14 14 const ( ··· 21 21 // prefix: Prefix for files in the archive 22 22 // ref: Git reference (branch, tag, or commit SHA) 23 23 // repo: Repository identifier in format 'did:plc:.../repoName' 24 - func RepoArchive(ctx context.Context, c util.LexClient, format string, prefix string, ref string, repo string) ([]byte, error) { 24 + func RepoArchive(ctx context.Context, c lexutil.LexClient, format string, prefix string, ref string, repo string) ([]byte, error) { 25 25 buf := new(bytes.Buffer) 26 26 27 27 params := map[string]interface{}{} ··· 33 33 } 34 34 params["ref"] = ref 35 35 params["repo"] = repo 36 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.archive", params, nil, buf); err != nil { 36 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.archive", params, nil, buf); err != nil { 37 37 return nil, err 38 38 } 39 39
+9 -9
api/tangled/repoartifact.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 + // Lexicon schema: sh.tangled.repo.artifact 4 + 3 5 package tangled 4 6 5 - // schema: sh.tangled.repo.artifact 6 - 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo.artifact", &RepoArtifact{}) 17 - } // 18 - // RECORDTYPE: RepoArtifact 16 + lexutil.RegisterType("sh.tangled.repo.artifact", &RepoArtifact{}) 17 + } 18 + 19 19 type RepoArtifact struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo.artifact" cborgen:"$type,const=sh.tangled.repo.artifact"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo.artifact"` 21 21 // artifact: the artifact 22 - Artifact *util.LexBlob `json:"artifact" cborgen:"artifact"` 22 + Artifact *lexutil.LexBlob `json:"artifact" cborgen:"artifact"` 23 23 // createdAt: time of creation of this artifact 24 24 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 25 25 // name: name of the artifact ··· 27 27 // repo: repo that this artifact is being uploaded to 28 28 Repo string `json:"repo" cborgen:"repo"` 29 29 // tag: hash of the tag object that this artifact is attached to (only annotated tags are supported) 30 - Tag util.LexBytes `json:"tag,omitempty" cborgen:"tag,omitempty"` 30 + Tag lexutil.LexBytes `json:"tag,omitempty" cborgen:"tag,omitempty"` 31 31 }
+5 -5
api/tangled/repoblob.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.blob 4 4 5 - // schema: sh.tangled.repo.blob 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 74 74 // raw: Return raw file content instead of JSON response 75 75 // ref: Git reference (branch, tag, or commit SHA) 76 76 // repo: Repository identifier in format 'did:plc:.../repoName' 77 - func RepoBlob(ctx context.Context, c util.LexClient, path string, raw bool, ref string, repo string) (*RepoBlob_Output, error) { 77 + func RepoBlob(ctx context.Context, c lexutil.LexClient, path string, raw bool, ref string, repo string) (*RepoBlob_Output, error) { 78 78 var out RepoBlob_Output 79 79 80 80 params := map[string]interface{}{} ··· 84 84 } 85 85 params["ref"] = ref 86 86 params["repo"] = repo 87 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.blob", params, nil, &out); err != nil { 87 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.blob", params, nil, &out); err != nil { 88 88 return nil, err 89 89 } 90 90
+5 -5
api/tangled/repobranch.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.branch 4 4 5 - // schema: sh.tangled.repo.branch 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 45 45 // 46 46 // name: Branch name to get information for 47 47 // repo: Repository identifier in format 'did:plc:.../repoName' 48 - func RepoBranch(ctx context.Context, c util.LexClient, name string, repo string) (*RepoBranch_Output, error) { 48 + func RepoBranch(ctx context.Context, c lexutil.LexClient, name string, repo string) (*RepoBranch_Output, error) { 49 49 var out RepoBranch_Output 50 50 51 51 params := map[string]interface{}{} 52 52 params["name"] = name 53 53 params["repo"] = repo 54 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.branch", params, nil, &out); err != nil { 54 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.branch", params, nil, &out); err != nil { 55 55 return nil, err 56 56 } 57 57
+5 -5
api/tangled/repobranches.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.branches 4 4 5 - // schema: sh.tangled.repo.branches 5 + package tangled 6 6 7 7 import ( 8 8 "bytes" 9 9 "context" 10 10 11 - "github.com/bluesky-social/indigo/lex/util" 11 + lexutil "github.com/bluesky-social/indigo/lex/util" 12 12 ) 13 13 14 14 const ( ··· 20 20 // cursor: Pagination cursor 21 21 // limit: Maximum number of branches to return 22 22 // repo: Repository identifier in format 'did:plc:.../repoName' 23 - func RepoBranches(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error) { 23 + func RepoBranches(ctx context.Context, c lexutil.LexClient, cursor string, limit int64, repo string) ([]byte, error) { 24 24 buf := new(bytes.Buffer) 25 25 26 26 params := map[string]interface{}{} ··· 31 31 params["limit"] = limit 32 32 } 33 33 params["repo"] = repo 34 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.branches", params, nil, buf); err != nil { 34 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.branches", params, nil, buf); err != nil { 35 35 return nil, err 36 36 } 37 37
+7 -7
api/tangled/repocollaborator.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.collaborator 4 4 5 - // schema: sh.tangled.repo.collaborator 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo.collaborator", &RepoCollaborator{}) 17 - } // 18 - // RECORDTYPE: RepoCollaborator 16 + lexutil.RegisterType("sh.tangled.repo.collaborator", &RepoCollaborator{}) 17 + } 18 + 19 19 type RepoCollaborator struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo.collaborator" cborgen:"$type,const=sh.tangled.repo.collaborator"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo.collaborator"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 // repo: repo to add this user to 23 23 Repo string `json:"repo" cborgen:"repo"`
+5 -5
api/tangled/repocompare.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.compare 4 4 5 - // schema: sh.tangled.repo.compare 5 + package tangled 6 6 7 7 import ( 8 8 "bytes" 9 9 "context" 10 10 11 - "github.com/bluesky-social/indigo/lex/util" 11 + lexutil "github.com/bluesky-social/indigo/lex/util" 12 12 ) 13 13 14 14 const ( ··· 20 20 // repo: Repository identifier in format 'did:plc:.../repoName' 21 21 // rev1: First revision (commit, branch, or tag) 22 22 // rev2: Second revision (commit, branch, or tag) 23 - func RepoCompare(ctx context.Context, c util.LexClient, repo string, rev1 string, rev2 string) ([]byte, error) { 23 + func RepoCompare(ctx context.Context, c lexutil.LexClient, repo string, rev1 string, rev2 string) ([]byte, error) { 24 24 buf := new(bytes.Buffer) 25 25 26 26 params := map[string]interface{}{} 27 27 params["repo"] = repo 28 28 params["rev1"] = rev1 29 29 params["rev2"] = rev2 30 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.compare", params, nil, buf); err != nil { 30 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.compare", params, nil, buf); err != nil { 31 31 return nil, err 32 32 } 33 33
+5 -5
api/tangled/repocreate.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.create 4 4 5 - // schema: sh.tangled.repo.create 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 25 25 } 26 26 27 27 // RepoCreate calls the XRPC method "sh.tangled.repo.create". 28 - func RepoCreate(ctx context.Context, c util.LexClient, input *RepoCreate_Input) error { 29 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.create", nil, input, nil); err != nil { 28 + func RepoCreate(ctx context.Context, c lexutil.LexClient, input *RepoCreate_Input) error { 29 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.create", nil, input, nil); err != nil { 30 30 return err 31 31 } 32 32
+5 -5
api/tangled/repodelete.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.delete 4 4 5 - // schema: sh.tangled.repo.delete 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 25 25 } 26 26 27 27 // RepoDelete calls the XRPC method "sh.tangled.repo.delete". 28 - func RepoDelete(ctx context.Context, c util.LexClient, input *RepoDelete_Input) error { 29 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.delete", nil, input, nil); err != nil { 28 + func RepoDelete(ctx context.Context, c lexutil.LexClient, input *RepoDelete_Input) error { 29 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.delete", nil, input, nil); err != nil { 30 30 return err 31 31 } 32 32
+5 -5
api/tangled/repodeleteBranch.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.deleteBranch 4 4 5 - // schema: sh.tangled.repo.deleteBranch 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 21 21 } 22 22 23 23 // RepoDeleteBranch calls the XRPC method "sh.tangled.repo.deleteBranch". 24 - func RepoDeleteBranch(ctx context.Context, c util.LexClient, input *RepoDeleteBranch_Input) error { 25 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.deleteBranch", nil, input, nil); err != nil { 24 + func RepoDeleteBranch(ctx context.Context, c lexutil.LexClient, input *RepoDeleteBranch_Input) error { 25 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.deleteBranch", nil, input, nil); err != nil { 26 26 return err 27 27 } 28 28
+5 -5
api/tangled/repodiff.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.diff 4 4 5 - // schema: sh.tangled.repo.diff 5 + package tangled 6 6 7 7 import ( 8 8 "bytes" 9 9 "context" 10 10 11 - "github.com/bluesky-social/indigo/lex/util" 11 + lexutil "github.com/bluesky-social/indigo/lex/util" 12 12 ) 13 13 14 14 const ( ··· 19 19 // 20 20 // ref: Git reference (branch, tag, or commit SHA) 21 21 // repo: Repository identifier in format 'did:plc:.../repoName' 22 - func RepoDiff(ctx context.Context, c util.LexClient, ref string, repo string) ([]byte, error) { 22 + func RepoDiff(ctx context.Context, c lexutil.LexClient, ref string, repo string) ([]byte, error) { 23 23 buf := new(bytes.Buffer) 24 24 25 25 params := map[string]interface{}{} 26 26 params["ref"] = ref 27 27 params["repo"] = repo 28 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.diff", params, nil, buf); err != nil { 28 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.diff", params, nil, buf); err != nil { 29 29 return nil, err 30 30 } 31 31
+5 -5
api/tangled/repoforkStatus.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.forkStatus 4 4 5 - // schema: sh.tangled.repo.forkStatus 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 35 35 } 36 36 37 37 // RepoForkStatus calls the XRPC method "sh.tangled.repo.forkStatus". 38 - func RepoForkStatus(ctx context.Context, c util.LexClient, input *RepoForkStatus_Input) (*RepoForkStatus_Output, error) { 38 + func RepoForkStatus(ctx context.Context, c lexutil.LexClient, input *RepoForkStatus_Input) (*RepoForkStatus_Output, error) { 39 39 var out RepoForkStatus_Output 40 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.forkStatus", nil, input, &out); err != nil { 40 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.forkStatus", nil, input, &out); err != nil { 41 41 return nil, err 42 42 } 43 43
+5 -5
api/tangled/repoforkSync.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.forkSync 4 4 5 - // schema: sh.tangled.repo.forkSync 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 27 27 } 28 28 29 29 // RepoForkSync calls the XRPC method "sh.tangled.repo.forkSync". 30 - func RepoForkSync(ctx context.Context, c util.LexClient, input *RepoForkSync_Input) error { 31 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.forkSync", nil, input, nil); err != nil { 30 + func RepoForkSync(ctx context.Context, c lexutil.LexClient, input *RepoForkSync_Input) error { 31 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.forkSync", nil, input, nil); err != nil { 32 32 return err 33 33 } 34 34
+5 -5
api/tangled/repogetDefaultBranch.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.getDefaultBranch 4 4 5 - // schema: sh.tangled.repo.getDefaultBranch 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 42 42 // RepoGetDefaultBranch calls the XRPC method "sh.tangled.repo.getDefaultBranch". 43 43 // 44 44 // repo: Repository identifier in format 'did:plc:.../repoName' 45 - func RepoGetDefaultBranch(ctx context.Context, c util.LexClient, repo string) (*RepoGetDefaultBranch_Output, error) { 45 + func RepoGetDefaultBranch(ctx context.Context, c lexutil.LexClient, repo string) (*RepoGetDefaultBranch_Output, error) { 46 46 var out RepoGetDefaultBranch_Output 47 47 48 48 params := map[string]interface{}{} 49 49 params["repo"] = repo 50 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.getDefaultBranch", params, nil, &out); err != nil { 50 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.getDefaultBranch", params, nil, &out); err != nil { 51 51 return nil, err 52 52 } 53 53
+5 -5
api/tangled/repohiddenRef.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.hiddenRef 4 4 5 - // schema: sh.tangled.repo.hiddenRef 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 35 35 } 36 36 37 37 // RepoHiddenRef calls the XRPC method "sh.tangled.repo.hiddenRef". 38 - func RepoHiddenRef(ctx context.Context, c util.LexClient, input *RepoHiddenRef_Input) (*RepoHiddenRef_Output, error) { 38 + func RepoHiddenRef(ctx context.Context, c lexutil.LexClient, input *RepoHiddenRef_Input) (*RepoHiddenRef_Output, error) { 39 39 var out RepoHiddenRef_Output 40 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.hiddenRef", nil, input, &out); err != nil { 40 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.hiddenRef", nil, input, &out); err != nil { 41 41 return nil, err 42 42 } 43 43
+7 -7
api/tangled/repoissue.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.issue 4 4 5 - // schema: sh.tangled.repo.issue 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo.issue", &RepoIssue{}) 17 - } // 18 - // RECORDTYPE: RepoIssue 16 + lexutil.RegisterType("sh.tangled.repo.issue", &RepoIssue{}) 17 + } 18 + 19 19 type RepoIssue struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo.issue" cborgen:"$type,const=sh.tangled.repo.issue"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo.issue"` 21 21 Body *string `json:"body,omitempty" cborgen:"body,omitempty"` 22 22 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 23 23 Mentions []string `json:"mentions,omitempty" cborgen:"mentions,omitempty"`
+5 -5
api/tangled/repolanguages.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.languages 4 4 5 - // schema: sh.tangled.repo.languages 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 45 45 // 46 46 // ref: Git reference (branch, tag, or commit SHA) 47 47 // repo: Repository identifier in format 'did:plc:.../repoName' 48 - func RepoLanguages(ctx context.Context, c util.LexClient, ref string, repo string) (*RepoLanguages_Output, error) { 48 + func RepoLanguages(ctx context.Context, c lexutil.LexClient, ref string, repo string) (*RepoLanguages_Output, error) { 49 49 var out RepoLanguages_Output 50 50 51 51 params := map[string]interface{}{} ··· 53 53 params["ref"] = ref 54 54 } 55 55 params["repo"] = repo 56 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.languages", params, nil, &out); err != nil { 56 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.languages", params, nil, &out); err != nil { 57 57 return nil, err 58 58 } 59 59
+5 -5
api/tangled/repolistSecrets.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.listSecrets 4 4 5 - // schema: sh.tangled.repo.listSecrets 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 28 28 } 29 29 30 30 // RepoListSecrets calls the XRPC method "sh.tangled.repo.listSecrets". 31 - func RepoListSecrets(ctx context.Context, c util.LexClient, repo string) (*RepoListSecrets_Output, error) { 31 + func RepoListSecrets(ctx context.Context, c lexutil.LexClient, repo string) (*RepoListSecrets_Output, error) { 32 32 var out RepoListSecrets_Output 33 33 34 34 params := map[string]interface{}{} 35 35 params["repo"] = repo 36 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.listSecrets", params, nil, &out); err != nil { 36 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.listSecrets", params, nil, &out); err != nil { 37 37 return nil, err 38 38 } 39 39
+5 -5
api/tangled/repolog.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.log 4 4 5 - // schema: sh.tangled.repo.log 5 + package tangled 6 6 7 7 import ( 8 8 "bytes" 9 9 "context" 10 10 11 - "github.com/bluesky-social/indigo/lex/util" 11 + lexutil "github.com/bluesky-social/indigo/lex/util" 12 12 ) 13 13 14 14 const ( ··· 22 22 // path: Path to filter commits by 23 23 // ref: Git reference (branch, tag, or commit SHA) 24 24 // repo: Repository identifier in format 'did:plc:.../repoName' 25 - func RepoLog(ctx context.Context, c util.LexClient, cursor string, limit int64, path string, ref string, repo string) ([]byte, error) { 25 + func RepoLog(ctx context.Context, c lexutil.LexClient, cursor string, limit int64, path string, ref string, repo string) ([]byte, error) { 26 26 buf := new(bytes.Buffer) 27 27 28 28 params := map[string]interface{}{} ··· 37 37 } 38 38 params["ref"] = ref 39 39 params["repo"] = repo 40 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.log", params, nil, buf); err != nil { 40 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.log", params, nil, buf); err != nil { 41 41 return nil, err 42 42 } 43 43
+5 -5
api/tangled/repomerge.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.merge 4 4 5 - // schema: sh.tangled.repo.merge 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 35 35 } 36 36 37 37 // RepoMerge calls the XRPC method "sh.tangled.repo.merge". 38 - func RepoMerge(ctx context.Context, c util.LexClient, input *RepoMerge_Input) error { 39 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.merge", nil, input, nil); err != nil { 38 + func RepoMerge(ctx context.Context, c lexutil.LexClient, input *RepoMerge_Input) error { 39 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.merge", nil, input, nil); err != nil { 40 40 return err 41 41 } 42 42
+5 -5
api/tangled/repomergeCheck.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.mergeCheck 4 4 5 - // schema: sh.tangled.repo.mergeCheck 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 47 47 } 48 48 49 49 // RepoMergeCheck calls the XRPC method "sh.tangled.repo.mergeCheck". 50 - func RepoMergeCheck(ctx context.Context, c util.LexClient, input *RepoMergeCheck_Input) (*RepoMergeCheck_Output, error) { 50 + func RepoMergeCheck(ctx context.Context, c lexutil.LexClient, input *RepoMergeCheck_Input) (*RepoMergeCheck_Output, error) { 51 51 var out RepoMergeCheck_Output 52 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.mergeCheck", nil, input, &out); err != nil { 52 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.mergeCheck", nil, input, &out); err != nil { 53 53 return nil, err 54 54 } 55 55
+8 -8
api/tangled/repopull.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.pull 4 4 5 - // schema: sh.tangled.repo.pull 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo.pull", &RepoPull{}) 17 - } // 18 - // RECORDTYPE: RepoPull 16 + lexutil.RegisterType("sh.tangled.repo.pull", &RepoPull{}) 17 + } 18 + 19 19 type RepoPull struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo.pull" cborgen:"$type,const=sh.tangled.repo.pull"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo.pull"` 21 21 Body *string `json:"body,omitempty" cborgen:"body,omitempty"` 22 22 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 23 23 Mentions []string `json:"mentions,omitempty" cborgen:"mentions,omitempty"` 24 24 // patch: (deprecated) use patchBlob instead 25 25 Patch *string `json:"patch,omitempty" cborgen:"patch,omitempty"` 26 26 // patchBlob: patch content 27 - PatchBlob *util.LexBlob `json:"patchBlob" cborgen:"patchBlob"` 27 + PatchBlob *lexutil.LexBlob `json:"patchBlob" cborgen:"patchBlob"` 28 28 References []string `json:"references,omitempty" cborgen:"references,omitempty"` 29 29 Source *RepoPull_Source `json:"source,omitempty" cborgen:"source,omitempty"` 30 30 Target *RepoPull_Target `json:"target" cborgen:"target"`
+5 -5
api/tangled/reporemoveSecret.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.removeSecret 4 4 5 - // schema: sh.tangled.repo.removeSecret 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 21 21 } 22 22 23 23 // RepoRemoveSecret calls the XRPC method "sh.tangled.repo.removeSecret". 24 - func RepoRemoveSecret(ctx context.Context, c util.LexClient, input *RepoRemoveSecret_Input) error { 25 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.removeSecret", nil, input, nil); err != nil { 24 + func RepoRemoveSecret(ctx context.Context, c lexutil.LexClient, input *RepoRemoveSecret_Input) error { 25 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.removeSecret", nil, input, nil); err != nil { 26 26 return err 27 27 } 28 28
+5 -5
api/tangled/reposetDefaultBranch.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.setDefaultBranch 4 4 5 - // schema: sh.tangled.repo.setDefaultBranch 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 21 21 } 22 22 23 23 // RepoSetDefaultBranch calls the XRPC method "sh.tangled.repo.setDefaultBranch". 24 - func RepoSetDefaultBranch(ctx context.Context, c util.LexClient, input *RepoSetDefaultBranch_Input) error { 25 - if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.setDefaultBranch", nil, input, nil); err != nil { 24 + func RepoSetDefaultBranch(ctx context.Context, c lexutil.LexClient, input *RepoSetDefaultBranch_Input) error { 25 + if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "sh.tangled.repo.setDefaultBranch", nil, input, nil); err != nil { 26 26 return err 27 27 } 28 28
+5 -5
api/tangled/repotags.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.tags 4 4 5 - // schema: sh.tangled.repo.tags 5 + package tangled 6 6 7 7 import ( 8 8 "bytes" 9 9 "context" 10 10 11 - "github.com/bluesky-social/indigo/lex/util" 11 + lexutil "github.com/bluesky-social/indigo/lex/util" 12 12 ) 13 13 14 14 const ( ··· 20 20 // cursor: Pagination cursor 21 21 // limit: Maximum number of tags to return 22 22 // repo: Repository identifier in format 'did:plc:.../repoName' 23 - func RepoTags(ctx context.Context, c util.LexClient, cursor string, limit int64, repo string) ([]byte, error) { 23 + func RepoTags(ctx context.Context, c lexutil.LexClient, cursor string, limit int64, repo string) ([]byte, error) { 24 24 buf := new(bytes.Buffer) 25 25 26 26 params := map[string]interface{}{} ··· 31 31 params["limit"] = limit 32 32 } 33 33 params["repo"] = repo 34 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.tags", params, nil, buf); err != nil { 34 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.tags", params, nil, buf); err != nil { 35 35 return nil, err 36 36 } 37 37
+5 -5
api/tangled/repotree.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.tree 4 4 5 - // schema: sh.tangled.repo.tree 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 61 61 // path: Path within the repository tree 62 62 // ref: Git reference (branch, tag, or commit SHA) 63 63 // repo: Repository identifier in format 'did:plc:.../repoName' 64 - func RepoTree(ctx context.Context, c util.LexClient, path string, ref string, repo string) (*RepoTree_Output, error) { 64 + func RepoTree(ctx context.Context, c lexutil.LexClient, path string, ref string, repo string) (*RepoTree_Output, error) { 65 65 var out RepoTree_Output 66 66 67 67 params := map[string]interface{}{} ··· 70 70 } 71 71 params["ref"] = ref 72 72 params["repo"] = repo 73 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.tree", params, nil, &out); err != nil { 73 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.repo.tree", params, nil, &out); err != nil { 74 74 return nil, err 75 75 } 76 76
+7 -7
api/tangled/spindlemember.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.spindle.member 4 4 5 - // schema: sh.tangled.spindle.member 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.spindle.member", &SpindleMember{}) 17 - } // 18 - // RECORDTYPE: SpindleMember 16 + lexutil.RegisterType("sh.tangled.spindle.member", &SpindleMember{}) 17 + } 18 + 19 19 type SpindleMember struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.spindle.member" cborgen:"$type,const=sh.tangled.spindle.member"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.spindle.member"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 // instance: spindle instance that the subject is now a member of 23 23 Instance string `json:"instance" cborgen:"instance"`
+2 -2
api/tangled/stateclosed.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.issue.state.closed 4 4 5 - // schema: sh.tangled.repo.issue.state.closed 5 + package tangled 6 6 7 7 const ( 8 8 RepoIssueStateClosedNSID = "sh.tangled.repo.issue.state.closed"
+2 -2
api/tangled/stateopen.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.issue.state.open 4 4 5 - // schema: sh.tangled.repo.issue.state.open 5 + package tangled 6 6 7 7 const ( 8 8 RepoIssueStateOpenNSID = "sh.tangled.repo.issue.state.open"
+2 -2
api/tangled/statusclosed.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.pull.status.closed 4 4 5 - // schema: sh.tangled.repo.pull.status.closed 5 + package tangled 6 6 7 7 const ( 8 8 RepoPullStatusClosedNSID = "sh.tangled.repo.pull.status.closed"
+2 -2
api/tangled/statusmerged.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.pull.status.merged 4 4 5 - // schema: sh.tangled.repo.pull.status.merged 5 + package tangled 6 6 7 7 const ( 8 8 RepoPullStatusMergedNSID = "sh.tangled.repo.pull.status.merged"
+2 -2
api/tangled/statusopen.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo.pull.status.open 4 4 5 - // schema: sh.tangled.repo.pull.status.open 5 + package tangled 6 6 7 7 const ( 8 8 RepoPullStatusOpenNSID = "sh.tangled.repo.pull.status.open"
+7 -7
api/tangled/tangledknot.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.knot 4 4 5 - // schema: sh.tangled.knot 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.knot", &Knot{}) 17 - } // 18 - // RECORDTYPE: Knot 16 + lexutil.RegisterType("sh.tangled.knot", &Knot{}) 17 + } 18 + 19 19 type Knot struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.knot" cborgen:"$type,const=sh.tangled.knot"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.knot"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 }
+5 -5
api/tangled/tangledowner.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.owner 4 4 5 - // schema: sh.tangled.owner 5 + package tangled 6 6 7 7 import ( 8 8 "context" 9 9 10 - "github.com/bluesky-social/indigo/lex/util" 10 + lexutil "github.com/bluesky-social/indigo/lex/util" 11 11 ) 12 12 13 13 const ( ··· 20 20 } 21 21 22 22 // Owner calls the XRPC method "sh.tangled.owner". 23 - func Owner(ctx context.Context, c util.LexClient) (*Owner_Output, error) { 23 + func Owner(ctx context.Context, c lexutil.LexClient) (*Owner_Output, error) { 24 24 var out Owner_Output 25 - if err := c.LexDo(ctx, util.Query, "", "sh.tangled.owner", nil, nil, &out); err != nil { 25 + if err := c.LexDo(ctx, lexutil.Query, "", "sh.tangled.owner", nil, nil, &out); err != nil { 26 26 return nil, err 27 27 } 28 28
+7 -7
api/tangled/tangledpipeline.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.pipeline 4 4 5 - // schema: sh.tangled.pipeline 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.pipeline", &Pipeline{}) 17 - } // 18 - // RECORDTYPE: Pipeline 16 + lexutil.RegisterType("sh.tangled.pipeline", &Pipeline{}) 17 + } 18 + 19 19 type Pipeline struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.pipeline" cborgen:"$type,const=sh.tangled.pipeline"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.pipeline"` 21 21 TriggerMetadata *Pipeline_TriggerMetadata `json:"triggerMetadata" cborgen:"triggerMetadata"` 22 22 Workflows []*Pipeline_Workflow `json:"workflows" cborgen:"workflows"` 23 23 }
+7 -7
api/tangled/tangledpublicKey.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.publicKey 4 4 5 - // schema: sh.tangled.publicKey 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.publicKey", &PublicKey{}) 17 - } // 18 - // RECORDTYPE: PublicKey 16 + lexutil.RegisterType("sh.tangled.publicKey", &PublicKey{}) 17 + } 18 + 19 19 type PublicKey struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.publicKey" cborgen:"$type,const=sh.tangled.publicKey"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.publicKey"` 21 21 // createdAt: key upload timestamp 22 22 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 23 23 // key: public key contents
+7 -7
api/tangled/tangledrepo.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.repo 4 4 5 - // schema: sh.tangled.repo 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.repo", &Repo{}) 17 - } // 18 - // RECORDTYPE: Repo 16 + lexutil.RegisterType("sh.tangled.repo", &Repo{}) 17 + } 18 + 19 19 type Repo struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.repo" cborgen:"$type,const=sh.tangled.repo"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.repo"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 23 23 // knot: knot where the repo was created
+7 -7
api/tangled/tangledspindle.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.spindle 4 4 5 - // schema: sh.tangled.spindle 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.spindle", &Spindle{}) 17 - } // 18 - // RECORDTYPE: Spindle 16 + lexutil.RegisterType("sh.tangled.spindle", &Spindle{}) 17 + } 18 + 19 19 type Spindle struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.spindle" cborgen:"$type,const=sh.tangled.spindle"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.spindle"` 21 21 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 22 22 }
+7 -7
api/tangled/tangledstring.go
··· 1 1 // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 2 3 - package tangled 3 + // Lexicon schema: sh.tangled.string 4 4 5 - // schema: sh.tangled.string 5 + package tangled 6 6 7 7 import ( 8 - "github.com/bluesky-social/indigo/lex/util" 8 + lexutil "github.com/bluesky-social/indigo/lex/util" 9 9 ) 10 10 11 11 const ( ··· 13 13 ) 14 14 15 15 func init() { 16 - util.RegisterType("sh.tangled.string", &String{}) 17 - } // 18 - // RECORDTYPE: String 16 + lexutil.RegisterType("sh.tangled.string", &String{}) 17 + } 18 + 19 19 type String struct { 20 - LexiconTypeID string `json:"$type,const=sh.tangled.string" cborgen:"$type,const=sh.tangled.string"` 20 + LexiconTypeID string `json:"$type" cborgen:"$type,const=sh.tangled.string"` 21 21 Contents string `json:"contents" cborgen:"contents"` 22 22 CreatedAt string `json:"createdAt" cborgen:"createdAt"` 23 23 Description string `json:"description" cborgen:"description"`