···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.knot.health
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ KnotHealthNSID = "sh.tangled.knot.health"
1515+)
1616+1717+// KnotHealth_Output is the output of a sh.tangled.knot.health call.
1818+type KnotHealth_Output struct {
1919+ // status: Health status of the knot
2020+ Status string `json:"status" cborgen:"status"`
2121+ // timestamp: Timestamp of the health check
2222+ Timestamp *string `json:"timestamp,omitempty" cborgen:"timestamp,omitempty"`
2323+ // version: Version of the knot server
2424+ Version *string `json:"version,omitempty" cborgen:"version,omitempty"`
2525+}
2626+2727+// KnotHealth calls the XRPC method "sh.tangled.knot.health".
2828+func KnotHealth(ctx context.Context, c util.LexClient) (*KnotHealth_Output, error) {
2929+ var out KnotHealth_Output
3030+ if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.health", nil, nil, &out); err != nil {
3131+ return nil, err
3232+ }
3333+3434+ return &out, nil
3535+}
+34
api/tangled/repocreate.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.create
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ RepoCreateNSID = "sh.tangled.repo.create"
1515+)
1616+1717+// RepoCreate_Input is the input argument to a sh.tangled.repo.create call.
1818+type RepoCreate_Input struct {
1919+ // default_branch: Default branch name
2020+ Default_branch *string `json:"default_branch,omitempty" cborgen:"default_branch,omitempty"`
2121+ // did: DID of the user creating the repository
2222+ Did string `json:"did" cborgen:"did"`
2323+ // name: Name of the repository
2424+ Name string `json:"name" cborgen:"name"`
2525+}
2626+2727+// RepoCreate calls the XRPC method "sh.tangled.repo.create".
2828+func RepoCreate(ctx context.Context, c util.LexClient, input *RepoCreate_Input) error {
2929+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.create", nil, input, nil); err != nil {
3030+ return err
3131+ }
3232+3333+ return nil
3434+}
+32
api/tangled/repodelete.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.delete
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ RepoDeleteNSID = "sh.tangled.repo.delete"
1515+)
1616+1717+// RepoDelete_Input is the input argument to a sh.tangled.repo.delete call.
1818+type RepoDelete_Input struct {
1919+ // did: DID of the repository owner
2020+ Did string `json:"did" cborgen:"did"`
2121+ // name: Name of the repository to delete
2222+ Name string `json:"name" cborgen:"name"`
2323+}
2424+2525+// RepoDelete calls the XRPC method "sh.tangled.repo.delete".
2626+func RepoDelete(ctx context.Context, c util.LexClient, input *RepoDelete_Input) error {
2727+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.delete", nil, input, nil); err != nil {
2828+ return err
2929+ }
3030+3131+ return nil
3232+}
+34
api/tangled/repofork.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.fork
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ RepoForkNSID = "sh.tangled.repo.fork"
1515+)
1616+1717+// RepoFork_Input is the input argument to a sh.tangled.repo.fork call.
1818+type RepoFork_Input struct {
1919+ // did: DID of the user creating the fork
2020+ Did string `json:"did" cborgen:"did"`
2121+ // name: Name for the forked repository (defaults to basename of source)
2222+ Name *string `json:"name,omitempty" cborgen:"name,omitempty"`
2323+ // source: Source repository URL to fork from
2424+ Source string `json:"source" cborgen:"source"`
2525+}
2626+2727+// RepoFork calls the XRPC method "sh.tangled.repo.fork".
2828+func RepoFork(ctx context.Context, c util.LexClient, input *RepoFork_Input) error {
2929+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.fork", nil, input, nil); err != nil {
3030+ return err
3131+ }
3232+3333+ return nil
3434+}
+45
api/tangled/repoforkStatus.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.forkStatus
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ RepoForkStatusNSID = "sh.tangled.repo.forkStatus"
1515+)
1616+1717+// RepoForkStatus_Input is the input argument to a sh.tangled.repo.forkStatus call.
1818+type RepoForkStatus_Input struct {
1919+ // branch: Branch to check status for
2020+ Branch string `json:"branch" cborgen:"branch"`
2121+ // did: DID of the fork owner
2222+ Did string `json:"did" cborgen:"did"`
2323+ // hiddenRef: Hidden ref to use for comparison
2424+ HiddenRef string `json:"hiddenRef" cborgen:"hiddenRef"`
2525+ // name: Name of the forked repository
2626+ Name string `json:"name" cborgen:"name"`
2727+ // source: Source repository URL
2828+ Source string `json:"source" cborgen:"source"`
2929+}
3030+3131+// RepoForkStatus_Output is the output of a sh.tangled.repo.forkStatus call.
3232+type RepoForkStatus_Output struct {
3333+ // status: Fork status: 0=UpToDate, 1=FastForwardable, 2=Conflict, 3=MissingBranch
3434+ Status int64 `json:"status" cborgen:"status"`
3535+}
3636+3737+// RepoForkStatus calls the XRPC method "sh.tangled.repo.forkStatus".
3838+func RepoForkStatus(ctx context.Context, c util.LexClient, input *RepoForkStatus_Input) (*RepoForkStatus_Output, error) {
3939+ var out RepoForkStatus_Output
4040+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.forkStatus", nil, input, &out); err != nil {
4141+ return nil, err
4242+ }
4343+4444+ return &out, nil
4545+}
+36
api/tangled/repoforkSync.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.forkSync
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ RepoForkSyncNSID = "sh.tangled.repo.forkSync"
1515+)
1616+1717+// RepoForkSync_Input is the input argument to a sh.tangled.repo.forkSync call.
1818+type RepoForkSync_Input struct {
1919+ // branch: Branch to sync
2020+ Branch string `json:"branch" cborgen:"branch"`
2121+ // did: DID of the fork owner
2222+ Did string `json:"did" cborgen:"did"`
2323+ // name: Name of the forked repository
2424+ Name string `json:"name" cborgen:"name"`
2525+ // source: AT-URI of the source repository
2626+ Source string `json:"source" cborgen:"source"`
2727+}
2828+2929+// RepoForkSync calls the XRPC method "sh.tangled.repo.forkSync".
3030+func RepoForkSync(ctx context.Context, c util.LexClient, input *RepoForkSync_Input) error {
3131+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.forkSync", nil, input, nil); err != nil {
3232+ return err
3333+ }
3434+3535+ return nil
3636+}
+45
api/tangled/repohiddenRef.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.hiddenRef
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ RepoHiddenRefNSID = "sh.tangled.repo.hiddenRef"
1515+)
1616+1717+// RepoHiddenRef_Input is the input argument to a sh.tangled.repo.hiddenRef call.
1818+type RepoHiddenRef_Input struct {
1919+ // forkRef: Fork reference name
2020+ ForkRef string `json:"forkRef" cborgen:"forkRef"`
2121+ // remoteRef: Remote reference name
2222+ RemoteRef string `json:"remoteRef" cborgen:"remoteRef"`
2323+ // repo: AT-URI of the repository
2424+ Repo string `json:"repo" cborgen:"repo"`
2525+}
2626+2727+// RepoHiddenRef_Output is the output of a sh.tangled.repo.hiddenRef call.
2828+type RepoHiddenRef_Output struct {
2929+ // error: Error message if creation failed
3030+ Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
3131+ // ref: The created hidden ref name
3232+ Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"`
3333+ // success: Whether the hidden ref was created successfully
3434+ Success bool `json:"success" cborgen:"success"`
3535+}
3636+3737+// RepoHiddenRef calls the XRPC method "sh.tangled.repo.hiddenRef".
3838+func RepoHiddenRef(ctx context.Context, c util.LexClient, input *RepoHiddenRef_Input) (*RepoHiddenRef_Output, error) {
3939+ var out RepoHiddenRef_Output
4040+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.hiddenRef", nil, input, &out); err != nil {
4141+ return nil, err
4242+ }
4343+4444+ return &out, nil
4545+}
+44
api/tangled/repomerge.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.merge
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ RepoMergeNSID = "sh.tangled.repo.merge"
1515+)
1616+1717+// RepoMerge_Input is the input argument to a sh.tangled.repo.merge call.
1818+type RepoMerge_Input struct {
1919+ // authorEmail: Author email for the merge commit
2020+ AuthorEmail *string `json:"authorEmail,omitempty" cborgen:"authorEmail,omitempty"`
2121+ // authorName: Author name for the merge commit
2222+ AuthorName *string `json:"authorName,omitempty" cborgen:"authorName,omitempty"`
2323+ // branch: Target branch to merge into
2424+ Branch string `json:"branch" cborgen:"branch"`
2525+ // commitBody: Additional commit message body
2626+ CommitBody *string `json:"commitBody,omitempty" cborgen:"commitBody,omitempty"`
2727+ // commitMessage: Merge commit message
2828+ CommitMessage *string `json:"commitMessage,omitempty" cborgen:"commitMessage,omitempty"`
2929+ // did: DID of the repository owner
3030+ Did string `json:"did" cborgen:"did"`
3131+ // name: Name of the repository
3232+ Name string `json:"name" cborgen:"name"`
3333+ // patch: Patch content to merge
3434+ Patch string `json:"patch" cborgen:"patch"`
3535+}
3636+3737+// RepoMerge calls the XRPC method "sh.tangled.repo.merge".
3838+func RepoMerge(ctx context.Context, c util.LexClient, input *RepoMerge_Input) error {
3939+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.merge", nil, input, nil); err != nil {
4040+ return err
4141+ }
4242+4343+ return nil
4444+}
+57
api/tangled/repomergeCheck.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.repo.mergeCheck
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ RepoMergeCheckNSID = "sh.tangled.repo.mergeCheck"
1515+)
1616+1717+// RepoMergeCheck_ConflictInfo is a "conflictInfo" in the sh.tangled.repo.mergeCheck schema.
1818+type RepoMergeCheck_ConflictInfo struct {
1919+ // filename: Name of the conflicted file
2020+ Filename string `json:"filename" cborgen:"filename"`
2121+ // reason: Reason for the conflict
2222+ Reason string `json:"reason" cborgen:"reason"`
2323+}
2424+2525+// RepoMergeCheck_Input is the input argument to a sh.tangled.repo.mergeCheck call.
2626+type RepoMergeCheck_Input struct {
2727+ // branch: Target branch to merge into
2828+ Branch string `json:"branch" cborgen:"branch"`
2929+ // did: DID of the repository owner
3030+ Did string `json:"did" cborgen:"did"`
3131+ // name: Name of the repository
3232+ Name string `json:"name" cborgen:"name"`
3333+ // patch: Patch or pull request to check for merge conflicts
3434+ Patch string `json:"patch" cborgen:"patch"`
3535+}
3636+3737+// RepoMergeCheck_Output is the output of a sh.tangled.repo.mergeCheck call.
3838+type RepoMergeCheck_Output struct {
3939+ // conflicts: List of files with merge conflicts
4040+ Conflicts []*RepoMergeCheck_ConflictInfo `json:"conflicts,omitempty" cborgen:"conflicts,omitempty"`
4141+ // error: Error message if check failed
4242+ Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
4343+ // is_conflicted: Whether the merge has conflicts
4444+ Is_conflicted bool `json:"is_conflicted" cborgen:"is_conflicted"`
4545+ // message: Additional message about the merge check
4646+ Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
4747+}
4848+4949+// RepoMergeCheck calls the XRPC method "sh.tangled.repo.mergeCheck".
5050+func RepoMergeCheck(ctx context.Context, c util.LexClient, input *RepoMergeCheck_Input) (*RepoMergeCheck_Output, error) {
5151+ var out RepoMergeCheck_Output
5252+ if err := c.LexDo(ctx, util.Procedure, "application/json", "sh.tangled.repo.mergeCheck", nil, input, &out); err != nil {
5353+ return nil, err
5454+ }
5555+5656+ return &out, nil
5757+}