···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: org.tangled.temp.focus.beginSession
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ TempFocusBeginSessionNSID = "org.tangled.temp.focus.beginSession"
1515+)
1616+1717+// TempFocusBeginSession_Output is the output of a org.tangled.temp.focus.beginSession call.
1818+type TempFocusBeginSession_Output struct {
1919+ // issueAt: AT-URI of the issue to navigate to, if the item is an issue.
2020+ IssueAt *string `json:"issueAt,omitempty" cborgen:"issueAt,omitempty"`
2121+ // notificationId: ID of the first notification to address. Absent if the queue is empty.
2222+ NotificationId *int64 `json:"notificationId,omitempty" cborgen:"notificationId,omitempty"`
2323+ // pullAt: AT-URI of the pull to navigate to, if the item is a pull.
2424+ PullAt *string `json:"pullAt,omitempty" cborgen:"pullAt,omitempty"`
2525+ // repoDid: DID of the repository the item belongs to. Absent if the queue is empty.
2626+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
2727+}
2828+2929+// TempFocusBeginSession calls the XRPC method "org.tangled.temp.focus.beginSession".
3030+func TempFocusBeginSession(ctx context.Context, c util.LexClient) (*TempFocusBeginSession_Output, error) {
3131+ var out TempFocusBeginSession_Output
3232+ if err := c.LexDo(ctx, util.Procedure, "", "org.tangled.temp.focus.beginSession", nil, nil, &out); err != nil {
3333+ return nil, err
3434+ }
3535+3636+ return &out, nil
3737+}
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: org.tangled.temp.focus.nextItem
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ TempFocusNextItemNSID = "org.tangled.temp.focus.nextItem"
1515+)
1616+1717+// TempFocusNextItem_Input is the input argument to a org.tangled.temp.focus.nextItem call.
1818+type TempFocusNextItem_Input struct {
1919+ // currentId: ID of the notification just addressed, to be marked read.
2020+ CurrentId int64 `json:"currentId" cborgen:"currentId"`
2121+}
2222+2323+// TempFocusNextItem_Output is the output of a org.tangled.temp.focus.nextItem call.
2424+type TempFocusNextItem_Output struct {
2525+ // issueAt: AT-URI of the issue to navigate to, if the item is an issue.
2626+ IssueAt *string `json:"issueAt,omitempty" cborgen:"issueAt,omitempty"`
2727+ // notificationId: ID of the next notification to address. Absent when focus mode has ended.
2828+ NotificationId *int64 `json:"notificationId,omitempty" cborgen:"notificationId,omitempty"`
2929+ // pullAt: AT-URI of the pull to navigate to, if the item is a pull.
3030+ PullAt *string `json:"pullAt,omitempty" cborgen:"pullAt,omitempty"`
3131+ // repoDid: DID of the repository the next item belongs to. Absent when focus mode has ended.
3232+ RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
3333+}
3434+3535+// TempFocusNextItem calls the XRPC method "org.tangled.temp.focus.nextItem".
3636+func TempFocusNextItem(ctx context.Context, c util.LexClient, input *TempFocusNextItem_Input) (*TempFocusNextItem_Output, error) {
3737+ var out TempFocusNextItem_Output
3838+ if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.focus.nextItem", nil, input, &out); err != nil {
3939+ return nil, err
4040+ }
4141+4242+ return &out, nil
4343+}
···30303131// RepoCreate_Output is the output of a sh.tangled.repo.create call.
3232type RepoCreate_Output struct {
3333+ // key: Multibase-encoded public signing key the knot holds for this repository
3434+ Key *string `json:"key,omitempty" cborgen:"key,omitempty"`
3335 RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
3436}
3537
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: org.tangled.temp.repo.createWebhook
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ TempRepoCreateWebhookNSID = "org.tangled.temp.repo.createWebhook"
1515+)
1616+1717+// TempRepoCreateWebhook_Input is the input argument to a org.tangled.temp.repo.createWebhook call.
1818+type TempRepoCreateWebhook_Input struct {
1919+ // active: Whether the webhook should be active immediately. Defaults to true.
2020+ Active *bool `json:"active,omitempty" cborgen:"active,omitempty"`
2121+ // events: Event types to subscribe to (e.g. 'push', 'repository:renamed').
2222+ Events []string `json:"events" cborgen:"events"`
2323+ // repoDid: DID of the repository as minted by the knot.
2424+ RepoDid string `json:"repoDid" cborgen:"repoDid"`
2525+ // secret: Optional HMAC secret used to sign payloads. If omitted, payloads are not signed.
2626+ Secret *string `json:"secret,omitempty" cborgen:"secret,omitempty"`
2727+ // url: Endpoint URL that will receive webhook payloads.
2828+ Url string `json:"url" cborgen:"url"`
2929+}
3030+3131+// TempRepoCreateWebhook_Output is the output of a org.tangled.temp.repo.createWebhook call.
3232+type TempRepoCreateWebhook_Output struct {
3333+ // id: ID of the newly created webhook.
3434+ Id int64 `json:"id" cborgen:"id"`
3535+}
3636+3737+// TempRepoCreateWebhook calls the XRPC method "org.tangled.temp.repo.createWebhook".
3838+func TempRepoCreateWebhook(ctx context.Context, c util.LexClient, input *TempRepoCreateWebhook_Input) (*TempRepoCreateWebhook_Output, error) {
3939+ var out TempRepoCreateWebhook_Output
4040+ if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.repo.createWebhook", nil, input, &out); err != nil {
4141+ return nil, err
4242+ }
4343+4444+ return &out, nil
4545+}
···1818type RepoDelete_Input struct {
1919 // did: DID of the repository owner
2020 Did string `json:"did" cborgen:"did"`
2121+ // force: Admin-only. Delete even though the repository record still exists on the owner's PDS.
2222+ Force *bool `json:"force,omitempty" cborgen:"force,omitempty"`
2123 // name: Name of the repository to delete
2224 Name string `json:"name" cborgen:"name"`
2325 // rkey: Rkey of the repository record
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: org.tangled.temp.repo.getSiteConfig
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ TempRepoGetSiteConfigNSID = "org.tangled.temp.repo.getSiteConfig"
1515+)
1616+1717+// TempRepoGetSiteConfig_Output is the output of a org.tangled.temp.repo.getSiteConfig call.
1818+type TempRepoGetSiteConfig_Output struct {
1919+ // config: Site config for the repository. Absent if no site is configured.
2020+ Config *TempRepoGetSiteConfig_SiteConfig `json:"config,omitempty" cborgen:"config,omitempty"`
2121+}
2222+2323+// TempRepoGetSiteConfig_SiteConfig is a "siteConfig" in the org.tangled.temp.repo.getSiteConfig schema.
2424+type TempRepoGetSiteConfig_SiteConfig struct {
2525+ // branch: Branch to deploy from.
2626+ Branch string `json:"branch" cborgen:"branch"`
2727+ // dir: Directory within the repository to deploy (e.g. '/' or '/docs').
2828+ Dir string `json:"dir" cborgen:"dir"`
2929+ // isIndex: Whether this repo serves as the index (root) for the domain.
3030+ IsIndex bool `json:"isIndex" cborgen:"isIndex"`
3131+}
3232+3333+// TempRepoGetSiteConfig calls the XRPC method "org.tangled.temp.repo.getSiteConfig".
3434+//
3535+// repoDid: DID of the repository as minted by the knot.
3636+func TempRepoGetSiteConfig(ctx context.Context, c util.LexClient, repoDid string) (*TempRepoGetSiteConfig_Output, error) {
3737+ var out TempRepoGetSiteConfig_Output
3838+3939+ params := map[string]interface{}{}
4040+ params["repoDid"] = repoDid
4141+ if err := c.LexDo(ctx, util.Query, "", "org.tangled.temp.repo.getSiteConfig", params, nil, &out); err != nil {
4242+ return nil, err
4343+ }
4444+4545+ return &out, nil
4646+}
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: org.tangled.temp.repo.toggleWebhook
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ TempRepoToggleWebhookNSID = "org.tangled.temp.repo.toggleWebhook"
1515+)
1616+1717+// TempRepoToggleWebhook_Input is the input argument to a org.tangled.temp.repo.toggleWebhook call.
1818+type TempRepoToggleWebhook_Input struct {
1919+ // id: Webhook ID to toggle.
2020+ Id int64 `json:"id" cborgen:"id"`
2121+ // repoDid: DID of the repository as minted by the knot.
2222+ RepoDid string `json:"repoDid" cborgen:"repoDid"`
2323+}
2424+2525+// TempRepoToggleWebhook_Output is the output of a org.tangled.temp.repo.toggleWebhook call.
2626+type TempRepoToggleWebhook_Output struct {
2727+ // active: New active state of the webhook.
2828+ Active bool `json:"active" cborgen:"active"`
2929+}
3030+3131+// TempRepoToggleWebhook calls the XRPC method "org.tangled.temp.repo.toggleWebhook".
3232+func TempRepoToggleWebhook(ctx context.Context, c util.LexClient, input *TempRepoToggleWebhook_Input) (*TempRepoToggleWebhook_Output, error) {
3333+ var out TempRepoToggleWebhook_Output
3434+ if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.repo.toggleWebhook", nil, input, &out); err != nil {
3535+ return nil, err
3636+ }
3737+3838+ return &out, nil
3939+}
···11+{
22+ "lexicon": 1,
33+ "id": "org.tangled.temp.focus.beginSession",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Activate focus mode. Returns the oldest unread work notification so the client can navigate to it.",
88+ "output": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "properties": {
1313+ "notificationId": {
1414+ "type": "integer",
1515+ "description": "ID of the first notification to address. Absent if the queue is empty."
1616+ },
1717+ "repoDid": {
1818+ "type": "string",
1919+ "format": "did",
2020+ "description": "DID of the repository the item belongs to. Absent if the queue is empty."
2121+ },
2222+ "issueAt": {
2323+ "type": "string",
2424+ "format": "at-uri",
2525+ "description": "AT-URI of the issue to navigate to, if the item is an issue."
2626+ },
2727+ "pullAt": {
2828+ "type": "string",
2929+ "format": "at-uri",
3030+ "description": "AT-URI of the pull to navigate to, if the item is a pull."
3131+ }
3232+ }
3333+ }
3434+ },
3535+ "errors": [
3636+ {
3737+ "name": "NoFocusItems",
3838+ "description": "There are no unread work notifications to focus on."
3939+ }
4040+ ]
4141+ }
4242+ }
4343+}
···11+{
22+ "lexicon": 1,
33+ "id": "org.tangled.temp.focus.nextItem",
44+ "defs": {
55+ "main": {
66+ "type": "procedure",
77+ "description": "Mark the current focus notification as read and return the next one. Ends focus mode and returns no item when the queue is exhausted.",
88+ "input": {
99+ "encoding": "application/json",
1010+ "schema": {
1111+ "type": "object",
1212+ "required": ["currentId"],
1313+ "properties": {
1414+ "currentId": {
1515+ "type": "integer",
1616+ "description": "ID of the notification just addressed, to be marked read."
1717+ }
1818+ }
1919+ }
2020+ },
2121+ "output": {
2222+ "encoding": "application/json",
2323+ "schema": {
2424+ "type": "object",
2525+ "properties": {
2626+ "notificationId": {
2727+ "type": "integer",
2828+ "description": "ID of the next notification to address. Absent when focus mode has ended."
2929+ },
3030+ "repoDid": {
3131+ "type": "string",
3232+ "format": "did",
3333+ "description": "DID of the repository the next item belongs to. Absent when focus mode has ended."
3434+ },
3535+ "issueAt": {
3636+ "type": "string",
3737+ "format": "at-uri",
3838+ "description": "AT-URI of the issue to navigate to, if the item is an issue."
3939+ },
4040+ "pullAt": {
4141+ "type": "string",
4242+ "format": "at-uri",
4343+ "description": "AT-URI of the pull to navigate to, if the item is a pull."
4444+ }
4545+ }
4646+ }
4747+ }
4848+ }
4949+ }
5050+}