···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.identity.defs
6+7+// IdentityDefs_IdentityInfo is a "identityInfo" in the com.atproto.identity.defs schema.
8+type IdentityDefs_IdentityInfo struct {
9+ Did string `json:"did" cborgen:"did"`
10+ // didDoc: The complete DID document for the identity.
11+ DidDoc interface{} `json:"didDoc" cborgen:"didDoc"`
12+ // handle: The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document.
13+ Handle string `json:"handle" cborgen:"handle"`
14+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.label.defs
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+// LabelDefs_Label is a "label" in the com.atproto.label.defs schema.
12+//
13+// Metadata tag on an atproto resource (eg, repo or record).
14+type LabelDefs_Label struct {
15+ // cid: Optionally, CID specifying the specific version of 'uri' resource this label applies to.
16+ Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
17+ // cts: Timestamp when this label was created.
18+ Cts string `json:"cts" cborgen:"cts"`
19+ // exp: Timestamp at which this label expires (no longer applies).
20+ Exp *string `json:"exp,omitempty" cborgen:"exp,omitempty"`
21+ // neg: If true, this is a negation label, overwriting a previous label.
22+ Neg *bool `json:"neg,omitempty" cborgen:"neg,omitempty"`
23+ // sig: Signature of dag-cbor encoded label.
24+ Sig util.LexBytes `json:"sig,omitempty" cborgen:"sig,omitempty"`
25+ // src: DID of the actor who created this label.
26+ Src string `json:"src" cborgen:"src"`
27+ // uri: AT URI of the record, repository (account), or other resource that this label applies to.
28+ Uri string `json:"uri" cborgen:"uri"`
29+ // val: The short string name of the value or type of this label.
30+ Val string `json:"val" cborgen:"val"`
31+ // ver: The AT Protocol version of the label object.
32+ Ver *int64 `json:"ver,omitempty" cborgen:"ver,omitempty"`
33+}
34+35+// LabelDefs_LabelValueDefinition is a "labelValueDefinition" in the com.atproto.label.defs schema.
36+//
37+// Declares a label value and its expected interpretations and behaviors.
38+type LabelDefs_LabelValueDefinition struct {
39+ // adultOnly: Does the user need to have adult content enabled in order to configure this label?
40+ AdultOnly *bool `json:"adultOnly,omitempty" cborgen:"adultOnly,omitempty"`
41+ // blurs: What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.
42+ Blurs string `json:"blurs" cborgen:"blurs"`
43+ // defaultSetting: The default setting for this label.
44+ DefaultSetting *string `json:"defaultSetting,omitempty" cborgen:"defaultSetting,omitempty"`
45+ // identifier: The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).
46+ Identifier string `json:"identifier" cborgen:"identifier"`
47+ Locales []*LabelDefs_LabelValueDefinitionStrings `json:"locales" cborgen:"locales"`
48+ // severity: How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.
49+ Severity string `json:"severity" cborgen:"severity"`
50+}
51+52+// LabelDefs_LabelValueDefinitionStrings is a "labelValueDefinitionStrings" in the com.atproto.label.defs schema.
53+//
54+// Strings which describe the label in the UI, localized into a specific language.
55+type LabelDefs_LabelValueDefinitionStrings struct {
56+ // description: A longer description of what the label means and why it might be applied.
57+ Description string `json:"description" cborgen:"description"`
58+ // lang: The code of the language these strings are written in.
59+ Lang string `json:"lang" cborgen:"lang"`
60+ // name: A short human-readable name for the label.
61+ Name string `json:"name" cborgen:"name"`
62+}
63+64+// LabelDefs_SelfLabel is a "selfLabel" in the com.atproto.label.defs schema.
65+//
66+// Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.
67+type LabelDefs_SelfLabel struct {
68+ // val: The short string name of the value or type of this label.
69+ Val string `json:"val" cborgen:"val"`
70+}
71+72+// LabelDefs_SelfLabels is a "selfLabels" in the com.atproto.label.defs schema.
73+//
74+// Metadata tags on an atproto record, published by the author within the record.
75+//
76+// RECORDTYPE: LabelDefs_SelfLabels
77+type LabelDefs_SelfLabels struct {
78+ LexiconTypeID string `json:"$type,const=com.atproto.label.defs#selfLabels" cborgen:"$type,const=com.atproto.label.defs#selfLabels"`
79+ Values []*LabelDefs_SelfLabel `json:"values" cborgen:"values,preservenil"`
80+}
+37
api/atproto/labelqueryLabels.go
···0000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.label.queryLabels
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// LabelQueryLabels_Output is the output of a com.atproto.label.queryLabels call.
14+type LabelQueryLabels_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
17+}
18+19+// LabelQueryLabels calls the XRPC method "com.atproto.label.queryLabels".
20+//
21+// sources: Optional list of label sources (DIDs) to filter on.
22+// uriPatterns: List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI.
23+func LabelQueryLabels(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sources []string, uriPatterns []string) (*LabelQueryLabels_Output, error) {
24+ var out LabelQueryLabels_Output
25+26+ params := map[string]interface{}{
27+ "cursor": cursor,
28+ "limit": limit,
29+ "sources": sources,
30+ "uriPatterns": uriPatterns,
31+ }
32+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.label.queryLabels", params, nil, &out); err != nil {
33+ return nil, err
34+ }
35+36+ return &out, nil
37+}
+17
api/atproto/labelsubscribeLabels.go
···00000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.label.subscribeLabels
6+7+// LabelSubscribeLabels_Info is a "info" in the com.atproto.label.subscribeLabels schema.
8+type LabelSubscribeLabels_Info struct {
9+ Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
10+ Name string `json:"name" cborgen:"name"`
11+}
12+13+// LabelSubscribeLabels_Labels is a "labels" in the com.atproto.label.subscribeLabels schema.
14+type LabelSubscribeLabels_Labels struct {
15+ Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
16+ Seq int64 `json:"seq" cborgen:"seq"`
17+}
+19
api/atproto/lexiconschema.go
···0000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.lexicon.schema
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("com.atproto.lexicon.schema", &LexiconSchema{})
13+} //
14+// RECORDTYPE: LexiconSchema
15+type LexiconSchema struct {
16+ LexiconTypeID string `json:"$type,const=com.atproto.lexicon.schema" cborgen:"$type,const=com.atproto.lexicon.schema"`
17+ // lexicon: Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system.
18+ Lexicon int64 `json:"lexicon" cborgen:"lexicon"`
19+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.applyWrites
6+7+import (
8+ "context"
9+ "encoding/json"
10+ "fmt"
11+12+ "github.com/bluesky-social/indigo/lex/util"
13+ "github.com/bluesky-social/indigo/xrpc"
14+)
15+16+// RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema.
17+//
18+// Operation which creates a new record.
19+//
20+// RECORDTYPE: RepoApplyWrites_Create
21+type RepoApplyWrites_Create struct {
22+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#create" cborgen:"$type,const=com.atproto.repo.applyWrites#create"`
23+ Collection string `json:"collection" cborgen:"collection"`
24+ // rkey: NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility.
25+ Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
26+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
27+}
28+29+// RepoApplyWrites_CreateResult is a "createResult" in the com.atproto.repo.applyWrites schema.
30+//
31+// RECORDTYPE: RepoApplyWrites_CreateResult
32+type RepoApplyWrites_CreateResult struct {
33+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#createResult" cborgen:"$type,const=com.atproto.repo.applyWrites#createResult"`
34+ Cid string `json:"cid" cborgen:"cid"`
35+ Uri string `json:"uri" cborgen:"uri"`
36+ ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
37+}
38+39+// RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema.
40+//
41+// Operation which deletes an existing record.
42+//
43+// RECORDTYPE: RepoApplyWrites_Delete
44+type RepoApplyWrites_Delete struct {
45+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#delete" cborgen:"$type,const=com.atproto.repo.applyWrites#delete"`
46+ Collection string `json:"collection" cborgen:"collection"`
47+ Rkey string `json:"rkey" cborgen:"rkey"`
48+}
49+50+// RepoApplyWrites_DeleteResult is a "deleteResult" in the com.atproto.repo.applyWrites schema.
51+//
52+// RECORDTYPE: RepoApplyWrites_DeleteResult
53+type RepoApplyWrites_DeleteResult struct {
54+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#deleteResult" cborgen:"$type,const=com.atproto.repo.applyWrites#deleteResult"`
55+}
56+57+// RepoApplyWrites_Input is the input argument to a com.atproto.repo.applyWrites call.
58+type RepoApplyWrites_Input struct {
59+ // repo: The handle or DID of the repo (aka, current account).
60+ Repo string `json:"repo" cborgen:"repo"`
61+ // swapCommit: If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
62+ SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
63+ // validate: Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.
64+ Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
65+ Writes []*RepoApplyWrites_Input_Writes_Elem `json:"writes" cborgen:"writes"`
66+}
67+68+type RepoApplyWrites_Input_Writes_Elem struct {
69+ RepoApplyWrites_Create *RepoApplyWrites_Create
70+ RepoApplyWrites_Update *RepoApplyWrites_Update
71+ RepoApplyWrites_Delete *RepoApplyWrites_Delete
72+}
73+74+func (t *RepoApplyWrites_Input_Writes_Elem) MarshalJSON() ([]byte, error) {
75+ if t.RepoApplyWrites_Create != nil {
76+ t.RepoApplyWrites_Create.LexiconTypeID = "com.atproto.repo.applyWrites#create"
77+ return json.Marshal(t.RepoApplyWrites_Create)
78+ }
79+ if t.RepoApplyWrites_Update != nil {
80+ t.RepoApplyWrites_Update.LexiconTypeID = "com.atproto.repo.applyWrites#update"
81+ return json.Marshal(t.RepoApplyWrites_Update)
82+ }
83+ if t.RepoApplyWrites_Delete != nil {
84+ t.RepoApplyWrites_Delete.LexiconTypeID = "com.atproto.repo.applyWrites#delete"
85+ return json.Marshal(t.RepoApplyWrites_Delete)
86+ }
87+ return nil, fmt.Errorf("cannot marshal empty enum")
88+}
89+func (t *RepoApplyWrites_Input_Writes_Elem) UnmarshalJSON(b []byte) error {
90+ typ, err := util.TypeExtract(b)
91+ if err != nil {
92+ return err
93+ }
94+95+ switch typ {
96+ case "com.atproto.repo.applyWrites#create":
97+ t.RepoApplyWrites_Create = new(RepoApplyWrites_Create)
98+ return json.Unmarshal(b, t.RepoApplyWrites_Create)
99+ case "com.atproto.repo.applyWrites#update":
100+ t.RepoApplyWrites_Update = new(RepoApplyWrites_Update)
101+ return json.Unmarshal(b, t.RepoApplyWrites_Update)
102+ case "com.atproto.repo.applyWrites#delete":
103+ t.RepoApplyWrites_Delete = new(RepoApplyWrites_Delete)
104+ return json.Unmarshal(b, t.RepoApplyWrites_Delete)
105+106+ default:
107+ return fmt.Errorf("closed enums must have a matching value")
108+ }
109+}
110+111+// RepoApplyWrites_Output is the output of a com.atproto.repo.applyWrites call.
112+type RepoApplyWrites_Output struct {
113+ Commit *RepoDefs_CommitMeta `json:"commit,omitempty" cborgen:"commit,omitempty"`
114+ Results []*RepoApplyWrites_Output_Results_Elem `json:"results,omitempty" cborgen:"results,omitempty"`
115+}
116+117+type RepoApplyWrites_Output_Results_Elem struct {
118+ RepoApplyWrites_CreateResult *RepoApplyWrites_CreateResult
119+ RepoApplyWrites_UpdateResult *RepoApplyWrites_UpdateResult
120+ RepoApplyWrites_DeleteResult *RepoApplyWrites_DeleteResult
121+}
122+123+func (t *RepoApplyWrites_Output_Results_Elem) MarshalJSON() ([]byte, error) {
124+ if t.RepoApplyWrites_CreateResult != nil {
125+ t.RepoApplyWrites_CreateResult.LexiconTypeID = "com.atproto.repo.applyWrites#createResult"
126+ return json.Marshal(t.RepoApplyWrites_CreateResult)
127+ }
128+ if t.RepoApplyWrites_UpdateResult != nil {
129+ t.RepoApplyWrites_UpdateResult.LexiconTypeID = "com.atproto.repo.applyWrites#updateResult"
130+ return json.Marshal(t.RepoApplyWrites_UpdateResult)
131+ }
132+ if t.RepoApplyWrites_DeleteResult != nil {
133+ t.RepoApplyWrites_DeleteResult.LexiconTypeID = "com.atproto.repo.applyWrites#deleteResult"
134+ return json.Marshal(t.RepoApplyWrites_DeleteResult)
135+ }
136+ return nil, fmt.Errorf("cannot marshal empty enum")
137+}
138+func (t *RepoApplyWrites_Output_Results_Elem) UnmarshalJSON(b []byte) error {
139+ typ, err := util.TypeExtract(b)
140+ if err != nil {
141+ return err
142+ }
143+144+ switch typ {
145+ case "com.atproto.repo.applyWrites#createResult":
146+ t.RepoApplyWrites_CreateResult = new(RepoApplyWrites_CreateResult)
147+ return json.Unmarshal(b, t.RepoApplyWrites_CreateResult)
148+ case "com.atproto.repo.applyWrites#updateResult":
149+ t.RepoApplyWrites_UpdateResult = new(RepoApplyWrites_UpdateResult)
150+ return json.Unmarshal(b, t.RepoApplyWrites_UpdateResult)
151+ case "com.atproto.repo.applyWrites#deleteResult":
152+ t.RepoApplyWrites_DeleteResult = new(RepoApplyWrites_DeleteResult)
153+ return json.Unmarshal(b, t.RepoApplyWrites_DeleteResult)
154+155+ default:
156+ return fmt.Errorf("closed enums must have a matching value")
157+ }
158+}
159+160+// RepoApplyWrites_Update is a "update" in the com.atproto.repo.applyWrites schema.
161+//
162+// Operation which updates an existing record.
163+//
164+// RECORDTYPE: RepoApplyWrites_Update
165+type RepoApplyWrites_Update struct {
166+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#update" cborgen:"$type,const=com.atproto.repo.applyWrites#update"`
167+ Collection string `json:"collection" cborgen:"collection"`
168+ Rkey string `json:"rkey" cborgen:"rkey"`
169+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
170+}
171+172+// RepoApplyWrites_UpdateResult is a "updateResult" in the com.atproto.repo.applyWrites schema.
173+//
174+// RECORDTYPE: RepoApplyWrites_UpdateResult
175+type RepoApplyWrites_UpdateResult struct {
176+ LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#updateResult" cborgen:"$type,const=com.atproto.repo.applyWrites#updateResult"`
177+ Cid string `json:"cid" cborgen:"cid"`
178+ Uri string `json:"uri" cborgen:"uri"`
179+ ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
180+}
181+182+// RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites".
183+func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) (*RepoApplyWrites_Output, error) {
184+ var out RepoApplyWrites_Output
185+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, &out); err != nil {
186+ return nil, err
187+ }
188+189+ return &out, nil
190+}
+46
api/atproto/repocreateRecord.go
···0000000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.createRecord
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/lex/util"
11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// RepoCreateRecord_Input is the input argument to a com.atproto.repo.createRecord call.
15+type RepoCreateRecord_Input struct {
16+ // collection: The NSID of the record collection.
17+ Collection string `json:"collection" cborgen:"collection"`
18+ // record: The record itself. Must contain a $type field.
19+ Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
20+ // repo: The handle or DID of the repo (aka, current account).
21+ Repo string `json:"repo" cborgen:"repo"`
22+ // rkey: The Record Key.
23+ Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
24+ // swapCommit: Compare and swap with the previous commit by CID.
25+ SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
26+ // validate: Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
27+ Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
28+}
29+30+// RepoCreateRecord_Output is the output of a com.atproto.repo.createRecord call.
31+type RepoCreateRecord_Output struct {
32+ Cid string `json:"cid" cborgen:"cid"`
33+ Commit *RepoDefs_CommitMeta `json:"commit,omitempty" cborgen:"commit,omitempty"`
34+ Uri string `json:"uri" cborgen:"uri"`
35+ ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
36+}
37+38+// RepoCreateRecord calls the XRPC method "com.atproto.repo.createRecord".
39+func RepoCreateRecord(ctx context.Context, c *xrpc.Client, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
40+ var out RepoCreateRecord_Output
41+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
42+ return nil, err
43+ }
44+45+ return &out, nil
46+}
+11
api/atproto/repodefs.go
···00000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.defs
6+7+// RepoDefs_CommitMeta is a "commitMeta" in the com.atproto.repo.defs schema.
8+type RepoDefs_CommitMeta struct {
9+ Cid string `json:"cid" cborgen:"cid"`
10+ Rev string `json:"rev" cborgen:"rev"`
11+}
+40
api/atproto/repodeleteRecord.go
···0000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.deleteRecord
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// RepoDeleteRecord_Input is the input argument to a com.atproto.repo.deleteRecord call.
14+type RepoDeleteRecord_Input struct {
15+ // collection: The NSID of the record collection.
16+ Collection string `json:"collection" cborgen:"collection"`
17+ // repo: The handle or DID of the repo (aka, current account).
18+ Repo string `json:"repo" cborgen:"repo"`
19+ // rkey: The Record Key.
20+ Rkey string `json:"rkey" cborgen:"rkey"`
21+ // swapCommit: Compare and swap with the previous commit by CID.
22+ SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
23+ // swapRecord: Compare and swap with the previous record by CID.
24+ SwapRecord *string `json:"swapRecord,omitempty" cborgen:"swapRecord,omitempty"`
25+}
26+27+// RepoDeleteRecord_Output is the output of a com.atproto.repo.deleteRecord call.
28+type RepoDeleteRecord_Output struct {
29+ Commit *RepoDefs_CommitMeta `json:"commit,omitempty" cborgen:"commit,omitempty"`
30+}
31+32+// RepoDeleteRecord calls the XRPC method "com.atproto.repo.deleteRecord".
33+func RepoDeleteRecord(ctx context.Context, c *xrpc.Client, input *RepoDeleteRecord_Input) (*RepoDeleteRecord_Output, error) {
34+ var out RepoDeleteRecord_Output
35+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, &out); err != nil {
36+ return nil, err
37+ }
38+39+ return &out, nil
40+}
+39
api/atproto/repodescribeRepo.go
···000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.describeRepo
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// RepoDescribeRepo_Output is the output of a com.atproto.repo.describeRepo call.
14+type RepoDescribeRepo_Output struct {
15+ // collections: List of all the collections (NSIDs) for which this repo contains at least one record.
16+ Collections []string `json:"collections" cborgen:"collections"`
17+ Did string `json:"did" cborgen:"did"`
18+ // didDoc: The complete DID document for this account.
19+ DidDoc interface{} `json:"didDoc" cborgen:"didDoc"`
20+ Handle string `json:"handle" cborgen:"handle"`
21+ // handleIsCorrect: Indicates if handle is currently valid (resolves bi-directionally)
22+ HandleIsCorrect bool `json:"handleIsCorrect" cborgen:"handleIsCorrect"`
23+}
24+25+// RepoDescribeRepo calls the XRPC method "com.atproto.repo.describeRepo".
26+//
27+// repo: The handle or DID of the repo.
28+func RepoDescribeRepo(ctx context.Context, c *xrpc.Client, repo string) (*RepoDescribeRepo_Output, error) {
29+ var out RepoDescribeRepo_Output
30+31+ params := map[string]interface{}{
32+ "repo": repo,
33+ }
34+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.describeRepo", params, nil, &out); err != nil {
35+ return nil, err
36+ }
37+38+ return &out, nil
39+}
+41
api/atproto/repogetRecord.go
···00000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.getRecord
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/lex/util"
11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// RepoGetRecord_Output is the output of a com.atproto.repo.getRecord call.
15+type RepoGetRecord_Output struct {
16+ Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
17+ Uri string `json:"uri" cborgen:"uri"`
18+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
19+}
20+21+// RepoGetRecord calls the XRPC method "com.atproto.repo.getRecord".
22+//
23+// cid: The CID of the version of the record. If not specified, then return the most recent version.
24+// collection: The NSID of the record collection.
25+// repo: The handle or DID of the repo.
26+// rkey: The Record Key.
27+func RepoGetRecord(ctx context.Context, c *xrpc.Client, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
28+ var out RepoGetRecord_Output
29+30+ params := map[string]interface{}{
31+ "cid": cid,
32+ "collection": collection,
33+ "repo": repo,
34+ "rkey": rkey,
35+ }
36+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.getRecord", params, nil, &out); err != nil {
37+ return nil, err
38+ }
39+40+ return &out, nil
41+}
+21
api/atproto/repoimportRepo.go
···000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.importRepo
6+7+import (
8+ "context"
9+ "io"
10+11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// RepoImportRepo calls the XRPC method "com.atproto.repo.importRepo".
15+func RepoImportRepo(ctx context.Context, c *xrpc.Client, input io.Reader) error {
16+ if err := c.Do(ctx, xrpc.Procedure, "application/vnd.ipld.car", "com.atproto.repo.importRepo", nil, input, nil); err != nil {
17+ return err
18+ }
19+20+ return nil
21+}
+38
api/atproto/repolistMissingBlobs.go
···00000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.listMissingBlobs
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// RepoListMissingBlobs_Output is the output of a com.atproto.repo.listMissingBlobs call.
14+type RepoListMissingBlobs_Output struct {
15+ Blobs []*RepoListMissingBlobs_RecordBlob `json:"blobs" cborgen:"blobs"`
16+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17+}
18+19+// RepoListMissingBlobs_RecordBlob is a "recordBlob" in the com.atproto.repo.listMissingBlobs schema.
20+type RepoListMissingBlobs_RecordBlob struct {
21+ Cid string `json:"cid" cborgen:"cid"`
22+ RecordUri string `json:"recordUri" cborgen:"recordUri"`
23+}
24+25+// RepoListMissingBlobs calls the XRPC method "com.atproto.repo.listMissingBlobs".
26+func RepoListMissingBlobs(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*RepoListMissingBlobs_Output, error) {
27+ var out RepoListMissingBlobs_Output
28+29+ params := map[string]interface{}{
30+ "cursor": cursor,
31+ "limit": limit,
32+ }
33+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.listMissingBlobs", params, nil, &out); err != nil {
34+ return nil, err
35+ }
36+37+ return &out, nil
38+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.listRecords
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/lex/util"
11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// RepoListRecords_Output is the output of a com.atproto.repo.listRecords call.
15+type RepoListRecords_Output struct {
16+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17+ Records []*RepoListRecords_Record `json:"records" cborgen:"records"`
18+}
19+20+// RepoListRecords_Record is a "record" in the com.atproto.repo.listRecords schema.
21+type RepoListRecords_Record struct {
22+ Cid string `json:"cid" cborgen:"cid"`
23+ Uri string `json:"uri" cborgen:"uri"`
24+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
25+}
26+27+// RepoListRecords calls the XRPC method "com.atproto.repo.listRecords".
28+//
29+// collection: The NSID of the record type.
30+// limit: The number of records to return.
31+// repo: The handle or DID of the repo.
32+// reverse: Flag to reverse the order of the returned records.
33+func RepoListRecords(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64, repo string, reverse bool) (*RepoListRecords_Output, error) {
34+ var out RepoListRecords_Output
35+36+ params := map[string]interface{}{
37+ "collection": collection,
38+ "cursor": cursor,
39+ "limit": limit,
40+ "repo": repo,
41+ "reverse": reverse,
42+ }
43+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil {
44+ return nil, err
45+ }
46+47+ return &out, nil
48+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.putRecord
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/lex/util"
11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// RepoPutRecord_Input is the input argument to a com.atproto.repo.putRecord call.
15+type RepoPutRecord_Input struct {
16+ // collection: The NSID of the record collection.
17+ Collection string `json:"collection" cborgen:"collection"`
18+ // record: The record to write.
19+ Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
20+ // repo: The handle or DID of the repo (aka, current account).
21+ Repo string `json:"repo" cborgen:"repo"`
22+ // rkey: The Record Key.
23+ Rkey string `json:"rkey" cborgen:"rkey"`
24+ // swapCommit: Compare and swap with the previous commit by CID.
25+ SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
26+ // swapRecord: Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation
27+ SwapRecord *string `json:"swapRecord" cborgen:"swapRecord"`
28+ // validate: Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
29+ Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
30+}
31+32+// RepoPutRecord_Output is the output of a com.atproto.repo.putRecord call.
33+type RepoPutRecord_Output struct {
34+ Cid string `json:"cid" cborgen:"cid"`
35+ Commit *RepoDefs_CommitMeta `json:"commit,omitempty" cborgen:"commit,omitempty"`
36+ Uri string `json:"uri" cborgen:"uri"`
37+ ValidationStatus *string `json:"validationStatus,omitempty" cborgen:"validationStatus,omitempty"`
38+}
39+40+// RepoPutRecord calls the XRPC method "com.atproto.repo.putRecord".
41+func RepoPutRecord(ctx context.Context, c *xrpc.Client, input *RepoPutRecord_Input) (*RepoPutRecord_Output, error) {
42+ var out RepoPutRecord_Output
43+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.putRecord", nil, input, &out); err != nil {
44+ return nil, err
45+ }
46+47+ return &out, nil
48+}
+19
api/atproto/repostrongRef.go
···0000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.strongRef
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("com.atproto.repo.strongRef#main", &RepoStrongRef{})
13+} // RepoStrongRef is a "main" in the com.atproto.repo.strongRef schema.
14+// RECORDTYPE: RepoStrongRef
15+type RepoStrongRef struct {
16+ LexiconTypeID string `json:"$type,const=com.atproto.repo.strongRef,omitempty" cborgen:"$type,const=com.atproto.repo.strongRef,omitempty"`
17+ Cid string `json:"cid" cborgen:"cid"`
18+ Uri string `json:"uri" cborgen:"uri"`
19+}
+28
api/atproto/repouploadBlob.go
···0000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.repo.uploadBlob
6+7+import (
8+ "context"
9+ "io"
10+11+ "github.com/bluesky-social/indigo/lex/util"
12+ "github.com/bluesky-social/indigo/xrpc"
13+)
14+15+// RepoUploadBlob_Output is the output of a com.atproto.repo.uploadBlob call.
16+type RepoUploadBlob_Output struct {
17+ Blob *util.LexBlob `json:"blob" cborgen:"blob"`
18+}
19+20+// RepoUploadBlob calls the XRPC method "com.atproto.repo.uploadBlob".
21+func RepoUploadBlob(ctx context.Context, c *xrpc.Client, input io.Reader) (*RepoUploadBlob_Output, error) {
22+ var out RepoUploadBlob_Output
23+ if err := c.Do(ctx, xrpc.Procedure, "*/*", "com.atproto.repo.uploadBlob", nil, input, &out); err != nil {
24+ return nil, err
25+ }
26+27+ return &out, nil
28+}
+20
api/atproto/serveractivateAccount.go
···00000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.activateAccount
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerActivateAccount calls the XRPC method "com.atproto.server.activateAccount".
14+func ServerActivateAccount(ctx context.Context, c *xrpc.Client) error {
15+ if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.activateAccount", nil, nil, nil); err != nil {
16+ return err
17+ }
18+19+ return nil
20+}
+34
api/atproto/servercheckAccountStatus.go
···0000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.checkAccountStatus
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerCheckAccountStatus_Output is the output of a com.atproto.server.checkAccountStatus call.
14+type ServerCheckAccountStatus_Output struct {
15+ Activated bool `json:"activated" cborgen:"activated"`
16+ ExpectedBlobs int64 `json:"expectedBlobs" cborgen:"expectedBlobs"`
17+ ImportedBlobs int64 `json:"importedBlobs" cborgen:"importedBlobs"`
18+ IndexedRecords int64 `json:"indexedRecords" cborgen:"indexedRecords"`
19+ PrivateStateValues int64 `json:"privateStateValues" cborgen:"privateStateValues"`
20+ RepoBlocks int64 `json:"repoBlocks" cborgen:"repoBlocks"`
21+ RepoCommit string `json:"repoCommit" cborgen:"repoCommit"`
22+ RepoRev string `json:"repoRev" cborgen:"repoRev"`
23+ ValidDid bool `json:"validDid" cborgen:"validDid"`
24+}
25+26+// ServerCheckAccountStatus calls the XRPC method "com.atproto.server.checkAccountStatus".
27+func ServerCheckAccountStatus(ctx context.Context, c *xrpc.Client) (*ServerCheckAccountStatus_Output, error) {
28+ var out ServerCheckAccountStatus_Output
29+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.checkAccountStatus", nil, nil, &out); err != nil {
30+ return nil, err
31+ }
32+33+ return &out, nil
34+}
+26
api/atproto/serverconfirmEmail.go
···00000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.confirmEmail
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerConfirmEmail_Input is the input argument to a com.atproto.server.confirmEmail call.
14+type ServerConfirmEmail_Input struct {
15+ Email string `json:"email" cborgen:"email"`
16+ Token string `json:"token" cborgen:"token"`
17+}
18+19+// ServerConfirmEmail calls the XRPC method "com.atproto.server.confirmEmail".
20+func ServerConfirmEmail(ctx context.Context, c *xrpc.Client, input *ServerConfirmEmail_Input) error {
21+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.confirmEmail", nil, input, nil); err != nil {
22+ return err
23+ }
24+25+ return nil
26+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.createAccount
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerCreateAccount_Input is the input argument to a com.atproto.server.createAccount call.
14+type ServerCreateAccount_Input struct {
15+ // did: Pre-existing atproto DID, being imported to a new account.
16+ Did *string `json:"did,omitempty" cborgen:"did,omitempty"`
17+ Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
18+ // handle: Requested handle for the account.
19+ Handle string `json:"handle" cborgen:"handle"`
20+ InviteCode *string `json:"inviteCode,omitempty" cborgen:"inviteCode,omitempty"`
21+ // password: Initial account password. May need to meet instance-specific password strength requirements.
22+ Password *string `json:"password,omitempty" cborgen:"password,omitempty"`
23+ // plcOp: A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented.
24+ PlcOp *interface{} `json:"plcOp,omitempty" cborgen:"plcOp,omitempty"`
25+ // recoveryKey: DID PLC rotation key (aka, recovery key) to be included in PLC creation operation.
26+ RecoveryKey *string `json:"recoveryKey,omitempty" cborgen:"recoveryKey,omitempty"`
27+ VerificationCode *string `json:"verificationCode,omitempty" cborgen:"verificationCode,omitempty"`
28+ VerificationPhone *string `json:"verificationPhone,omitempty" cborgen:"verificationPhone,omitempty"`
29+}
30+31+// ServerCreateAccount_Output is the output of a com.atproto.server.createAccount call.
32+//
33+// Account login session returned on successful account creation.
34+type ServerCreateAccount_Output struct {
35+ AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
36+ // did: The DID of the new account.
37+ Did string `json:"did" cborgen:"did"`
38+ // didDoc: Complete DID document.
39+ DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
40+ Handle string `json:"handle" cborgen:"handle"`
41+ RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"`
42+}
43+44+// ServerCreateAccount calls the XRPC method "com.atproto.server.createAccount".
45+func ServerCreateAccount(ctx context.Context, c *xrpc.Client, input *ServerCreateAccount_Input) (*ServerCreateAccount_Output, error) {
46+ var out ServerCreateAccount_Output
47+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createAccount", nil, input, &out); err != nil {
48+ return nil, err
49+ }
50+51+ return &out, nil
52+}
+37
api/atproto/servercreateAppPassword.go
···0000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.createAppPassword
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerCreateAppPassword_AppPassword is a "appPassword" in the com.atproto.server.createAppPassword schema.
14+type ServerCreateAppPassword_AppPassword struct {
15+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
16+ Name string `json:"name" cborgen:"name"`
17+ Password string `json:"password" cborgen:"password"`
18+ Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"`
19+}
20+21+// ServerCreateAppPassword_Input is the input argument to a com.atproto.server.createAppPassword call.
22+type ServerCreateAppPassword_Input struct {
23+ // name: A short name for the App Password, to help distinguish them.
24+ Name string `json:"name" cborgen:"name"`
25+ // privileged: If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients.
26+ Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"`
27+}
28+29+// ServerCreateAppPassword calls the XRPC method "com.atproto.server.createAppPassword".
30+func ServerCreateAppPassword(ctx context.Context, c *xrpc.Client, input *ServerCreateAppPassword_Input) (*ServerCreateAppPassword_AppPassword, error) {
31+ var out ServerCreateAppPassword_AppPassword
32+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createAppPassword", nil, input, &out); err != nil {
33+ return nil, err
34+ }
35+36+ return &out, nil
37+}
+32
api/atproto/servercreateInviteCode.go
···00000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.createInviteCode
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerCreateInviteCode_Input is the input argument to a com.atproto.server.createInviteCode call.
14+type ServerCreateInviteCode_Input struct {
15+ ForAccount *string `json:"forAccount,omitempty" cborgen:"forAccount,omitempty"`
16+ UseCount int64 `json:"useCount" cborgen:"useCount"`
17+}
18+19+// ServerCreateInviteCode_Output is the output of a com.atproto.server.createInviteCode call.
20+type ServerCreateInviteCode_Output struct {
21+ Code string `json:"code" cborgen:"code"`
22+}
23+24+// ServerCreateInviteCode calls the XRPC method "com.atproto.server.createInviteCode".
25+func ServerCreateInviteCode(ctx context.Context, c *xrpc.Client, input *ServerCreateInviteCode_Input) (*ServerCreateInviteCode_Output, error) {
26+ var out ServerCreateInviteCode_Output
27+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createInviteCode", nil, input, &out); err != nil {
28+ return nil, err
29+ }
30+31+ return &out, nil
32+}
+39
api/atproto/servercreateInviteCodes.go
···000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.createInviteCodes
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerCreateInviteCodes_AccountCodes is a "accountCodes" in the com.atproto.server.createInviteCodes schema.
14+type ServerCreateInviteCodes_AccountCodes struct {
15+ Account string `json:"account" cborgen:"account"`
16+ Codes []string `json:"codes" cborgen:"codes"`
17+}
18+19+// ServerCreateInviteCodes_Input is the input argument to a com.atproto.server.createInviteCodes call.
20+type ServerCreateInviteCodes_Input struct {
21+ CodeCount int64 `json:"codeCount" cborgen:"codeCount"`
22+ ForAccounts []string `json:"forAccounts,omitempty" cborgen:"forAccounts,omitempty"`
23+ UseCount int64 `json:"useCount" cborgen:"useCount"`
24+}
25+26+// ServerCreateInviteCodes_Output is the output of a com.atproto.server.createInviteCodes call.
27+type ServerCreateInviteCodes_Output struct {
28+ Codes []*ServerCreateInviteCodes_AccountCodes `json:"codes" cborgen:"codes"`
29+}
30+31+// ServerCreateInviteCodes calls the XRPC method "com.atproto.server.createInviteCodes".
32+func ServerCreateInviteCodes(ctx context.Context, c *xrpc.Client, input *ServerCreateInviteCodes_Input) (*ServerCreateInviteCodes_Output, error) {
33+ var out ServerCreateInviteCodes_Output
34+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createInviteCodes", nil, input, &out); err != nil {
35+ return nil, err
36+ }
37+38+ return &out, nil
39+}
+46
api/atproto/servercreateSession.go
···0000000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.createSession
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerCreateSession_Input is the input argument to a com.atproto.server.createSession call.
14+type ServerCreateSession_Input struct {
15+ // allowTakendown: When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned
16+ AllowTakendown *bool `json:"allowTakendown,omitempty" cborgen:"allowTakendown,omitempty"`
17+ AuthFactorToken *string `json:"authFactorToken,omitempty" cborgen:"authFactorToken,omitempty"`
18+ // identifier: Handle or other identifier supported by the server for the authenticating user.
19+ Identifier string `json:"identifier" cborgen:"identifier"`
20+ Password string `json:"password" cborgen:"password"`
21+}
22+23+// ServerCreateSession_Output is the output of a com.atproto.server.createSession call.
24+type ServerCreateSession_Output struct {
25+ AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
26+ Active *bool `json:"active,omitempty" cborgen:"active,omitempty"`
27+ Did string `json:"did" cborgen:"did"`
28+ DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
29+ Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
30+ EmailAuthFactor *bool `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"`
31+ EmailConfirmed *bool `json:"emailConfirmed,omitempty" cborgen:"emailConfirmed,omitempty"`
32+ Handle string `json:"handle" cborgen:"handle"`
33+ RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"`
34+ // status: If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
35+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
36+}
37+38+// ServerCreateSession calls the XRPC method "com.atproto.server.createSession".
39+func ServerCreateSession(ctx context.Context, c *xrpc.Client, input *ServerCreateSession_Input) (*ServerCreateSession_Output, error) {
40+ var out ServerCreateSession_Output
41+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createSession", nil, input, &out); err != nil {
42+ return nil, err
43+ }
44+45+ return &out, nil
46+}
+26
api/atproto/serverdeactivateAccount.go
···00000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.deactivateAccount
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerDeactivateAccount_Input is the input argument to a com.atproto.server.deactivateAccount call.
14+type ServerDeactivateAccount_Input struct {
15+ // deleteAfter: A recommendation to server as to how long they should hold onto the deactivated account before deleting.
16+ DeleteAfter *string `json:"deleteAfter,omitempty" cborgen:"deleteAfter,omitempty"`
17+}
18+19+// ServerDeactivateAccount calls the XRPC method "com.atproto.server.deactivateAccount".
20+func ServerDeactivateAccount(ctx context.Context, c *xrpc.Client, input *ServerDeactivateAccount_Input) error {
21+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.deactivateAccount", nil, input, nil); err != nil {
22+ return err
23+ }
24+25+ return nil
26+}
+22
api/atproto/serverdefs.go
···0000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.defs
6+7+// ServerDefs_InviteCode is a "inviteCode" in the com.atproto.server.defs schema.
8+type ServerDefs_InviteCode struct {
9+ Available int64 `json:"available" cborgen:"available"`
10+ Code string `json:"code" cborgen:"code"`
11+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
12+ CreatedBy string `json:"createdBy" cborgen:"createdBy"`
13+ Disabled bool `json:"disabled" cborgen:"disabled"`
14+ ForAccount string `json:"forAccount" cborgen:"forAccount"`
15+ Uses []*ServerDefs_InviteCodeUse `json:"uses" cborgen:"uses"`
16+}
17+18+// ServerDefs_InviteCodeUse is a "inviteCodeUse" in the com.atproto.server.defs schema.
19+type ServerDefs_InviteCodeUse struct {
20+ UsedAt string `json:"usedAt" cborgen:"usedAt"`
21+ UsedBy string `json:"usedBy" cborgen:"usedBy"`
22+}
+27
api/atproto/serverdeleteAccount.go
···000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.deleteAccount
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerDeleteAccount_Input is the input argument to a com.atproto.server.deleteAccount call.
14+type ServerDeleteAccount_Input struct {
15+ Did string `json:"did" cborgen:"did"`
16+ Password string `json:"password" cborgen:"password"`
17+ Token string `json:"token" cborgen:"token"`
18+}
19+20+// ServerDeleteAccount calls the XRPC method "com.atproto.server.deleteAccount".
21+func ServerDeleteAccount(ctx context.Context, c *xrpc.Client, input *ServerDeleteAccount_Input) error {
22+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.deleteAccount", nil, input, nil); err != nil {
23+ return err
24+ }
25+26+ return nil
27+}
+20
api/atproto/serverdeleteSession.go
···00000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.deleteSession
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerDeleteSession calls the XRPC method "com.atproto.server.deleteSession".
14+func ServerDeleteSession(ctx context.Context, c *xrpc.Client) error {
15+ if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.deleteSession", nil, nil, nil); err != nil {
16+ return err
17+ }
18+19+ return nil
20+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.describeServer
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema.
14+type ServerDescribeServer_Contact struct {
15+ Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
16+}
17+18+// ServerDescribeServer_Links is a "links" in the com.atproto.server.describeServer schema.
19+type ServerDescribeServer_Links struct {
20+ PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"`
21+ TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService,omitempty"`
22+}
23+24+// ServerDescribeServer_Output is the output of a com.atproto.server.describeServer call.
25+type ServerDescribeServer_Output struct {
26+ // availableUserDomains: List of domain suffixes that can be used in account handles.
27+ AvailableUserDomains []string `json:"availableUserDomains" cborgen:"availableUserDomains"`
28+ // contact: Contact information
29+ Contact *ServerDescribeServer_Contact `json:"contact,omitempty" cborgen:"contact,omitempty"`
30+ Did string `json:"did" cborgen:"did"`
31+ // inviteCodeRequired: If true, an invite code must be supplied to create an account on this instance.
32+ InviteCodeRequired *bool `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired,omitempty"`
33+ // links: URLs of service policy documents.
34+ Links *ServerDescribeServer_Links `json:"links,omitempty" cborgen:"links,omitempty"`
35+ // phoneVerificationRequired: If true, a phone verification token must be supplied to create an account on this instance.
36+ PhoneVerificationRequired *bool `json:"phoneVerificationRequired,omitempty" cborgen:"phoneVerificationRequired,omitempty"`
37+}
38+39+// ServerDescribeServer calls the XRPC method "com.atproto.server.describeServer".
40+func ServerDescribeServer(ctx context.Context, c *xrpc.Client) (*ServerDescribeServer_Output, error) {
41+ var out ServerDescribeServer_Output
42+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.describeServer", nil, nil, &out); err != nil {
43+ return nil, err
44+ }
45+46+ return &out, nil
47+}
+33
api/atproto/servergetAccountInviteCodes.go
···000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.getAccountInviteCodes
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerGetAccountInviteCodes_Output is the output of a com.atproto.server.getAccountInviteCodes call.
14+type ServerGetAccountInviteCodes_Output struct {
15+ Codes []*ServerDefs_InviteCode `json:"codes" cborgen:"codes"`
16+}
17+18+// ServerGetAccountInviteCodes calls the XRPC method "com.atproto.server.getAccountInviteCodes".
19+//
20+// createAvailable: Controls whether any new 'earned' but not 'created' invites should be created.
21+func ServerGetAccountInviteCodes(ctx context.Context, c *xrpc.Client, createAvailable bool, includeUsed bool) (*ServerGetAccountInviteCodes_Output, error) {
22+ var out ServerGetAccountInviteCodes_Output
23+24+ params := map[string]interface{}{
25+ "createAvailable": createAvailable,
26+ "includeUsed": includeUsed,
27+ }
28+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getAccountInviteCodes", params, nil, &out); err != nil {
29+ return nil, err
30+ }
31+32+ return &out, nil
33+}
+36
api/atproto/servergetServiceAuth.go
···000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.getServiceAuth
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerGetServiceAuth_Output is the output of a com.atproto.server.getServiceAuth call.
14+type ServerGetServiceAuth_Output struct {
15+ Token string `json:"token" cborgen:"token"`
16+}
17+18+// ServerGetServiceAuth calls the XRPC method "com.atproto.server.getServiceAuth".
19+//
20+// aud: The DID of the service that the token will be used to authenticate with
21+// exp: The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope.
22+// lxm: Lexicon (XRPC) method to bind the requested token to
23+func ServerGetServiceAuth(ctx context.Context, c *xrpc.Client, aud string, exp int64, lxm string) (*ServerGetServiceAuth_Output, error) {
24+ var out ServerGetServiceAuth_Output
25+26+ params := map[string]interface{}{
27+ "aud": aud,
28+ "exp": exp,
29+ "lxm": lxm,
30+ }
31+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getServiceAuth", params, nil, &out); err != nil {
32+ return nil, err
33+ }
34+35+ return &out, nil
36+}
+34
api/atproto/servergetSession.go
···0000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.getSession
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerGetSession_Output is the output of a com.atproto.server.getSession call.
14+type ServerGetSession_Output struct {
15+ Active *bool `json:"active,omitempty" cborgen:"active,omitempty"`
16+ Did string `json:"did" cborgen:"did"`
17+ DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
18+ Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
19+ EmailAuthFactor *bool `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"`
20+ EmailConfirmed *bool `json:"emailConfirmed,omitempty" cborgen:"emailConfirmed,omitempty"`
21+ Handle string `json:"handle" cborgen:"handle"`
22+ // status: If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
23+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
24+}
25+26+// ServerGetSession calls the XRPC method "com.atproto.server.getSession".
27+func ServerGetSession(ctx context.Context, c *xrpc.Client) (*ServerGetSession_Output, error) {
28+ var out ServerGetSession_Output
29+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getSession", nil, nil, &out); err != nil {
30+ return nil, err
31+ }
32+33+ return &out, nil
34+}
+33
api/atproto/serverlistAppPasswords.go
···000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.listAppPasswords
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema.
14+type ServerListAppPasswords_AppPassword struct {
15+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
16+ Name string `json:"name" cborgen:"name"`
17+ Privileged *bool `json:"privileged,omitempty" cborgen:"privileged,omitempty"`
18+}
19+20+// ServerListAppPasswords_Output is the output of a com.atproto.server.listAppPasswords call.
21+type ServerListAppPasswords_Output struct {
22+ Passwords []*ServerListAppPasswords_AppPassword `json:"passwords" cborgen:"passwords"`
23+}
24+25+// ServerListAppPasswords calls the XRPC method "com.atproto.server.listAppPasswords".
26+func ServerListAppPasswords(ctx context.Context, c *xrpc.Client) (*ServerListAppPasswords_Output, error) {
27+ var out ServerListAppPasswords_Output
28+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.listAppPasswords", nil, nil, &out); err != nil {
29+ return nil, err
30+ }
31+32+ return &out, nil
33+}
+33
api/atproto/serverrefreshSession.go
···000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.refreshSession
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerRefreshSession_Output is the output of a com.atproto.server.refreshSession call.
14+type ServerRefreshSession_Output struct {
15+ AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
16+ Active *bool `json:"active,omitempty" cborgen:"active,omitempty"`
17+ Did string `json:"did" cborgen:"did"`
18+ DidDoc *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
19+ Handle string `json:"handle" cborgen:"handle"`
20+ RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"`
21+ // status: Hosting status of the account. If not specified, then assume 'active'.
22+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
23+}
24+25+// ServerRefreshSession calls the XRPC method "com.atproto.server.refreshSession".
26+func ServerRefreshSession(ctx context.Context, c *xrpc.Client) (*ServerRefreshSession_Output, error) {
27+ var out ServerRefreshSession_Output
28+ if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.refreshSession", nil, nil, &out); err != nil {
29+ return nil, err
30+ }
31+32+ return &out, nil
33+}
+20
api/atproto/serverrequestAccountDelete.go
···00000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.requestAccountDelete
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerRequestAccountDelete calls the XRPC method "com.atproto.server.requestAccountDelete".
14+func ServerRequestAccountDelete(ctx context.Context, c *xrpc.Client) error {
15+ if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.requestAccountDelete", nil, nil, nil); err != nil {
16+ return err
17+ }
18+19+ return nil
20+}
+20
api/atproto/serverrequestEmailConfirmation.go
···00000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.requestEmailConfirmation
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerRequestEmailConfirmation calls the XRPC method "com.atproto.server.requestEmailConfirmation".
14+func ServerRequestEmailConfirmation(ctx context.Context, c *xrpc.Client) error {
15+ if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.requestEmailConfirmation", nil, nil, nil); err != nil {
16+ return err
17+ }
18+19+ return nil
20+}
+26
api/atproto/serverrequestEmailUpdate.go
···00000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.requestEmailUpdate
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerRequestEmailUpdate_Output is the output of a com.atproto.server.requestEmailUpdate call.
14+type ServerRequestEmailUpdate_Output struct {
15+ TokenRequired bool `json:"tokenRequired" cborgen:"tokenRequired"`
16+}
17+18+// ServerRequestEmailUpdate calls the XRPC method "com.atproto.server.requestEmailUpdate".
19+func ServerRequestEmailUpdate(ctx context.Context, c *xrpc.Client) (*ServerRequestEmailUpdate_Output, error) {
20+ var out ServerRequestEmailUpdate_Output
21+ if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.requestEmailUpdate", nil, nil, &out); err != nil {
22+ return nil, err
23+ }
24+25+ return &out, nil
26+}
+25
api/atproto/serverrequestPasswordReset.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.requestPasswordReset
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerRequestPasswordReset_Input is the input argument to a com.atproto.server.requestPasswordReset call.
14+type ServerRequestPasswordReset_Input struct {
15+ Email string `json:"email" cborgen:"email"`
16+}
17+18+// ServerRequestPasswordReset calls the XRPC method "com.atproto.server.requestPasswordReset".
19+func ServerRequestPasswordReset(ctx context.Context, c *xrpc.Client, input *ServerRequestPasswordReset_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.requestPasswordReset", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+33
api/atproto/serverreserveSigningKey.go
···000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.reserveSigningKey
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerReserveSigningKey_Input is the input argument to a com.atproto.server.reserveSigningKey call.
14+type ServerReserveSigningKey_Input struct {
15+ // did: The DID to reserve a key for.
16+ Did *string `json:"did,omitempty" cborgen:"did,omitempty"`
17+}
18+19+// ServerReserveSigningKey_Output is the output of a com.atproto.server.reserveSigningKey call.
20+type ServerReserveSigningKey_Output struct {
21+ // signingKey: The public key for the reserved signing key, in did:key serialization.
22+ SigningKey string `json:"signingKey" cborgen:"signingKey"`
23+}
24+25+// ServerReserveSigningKey calls the XRPC method "com.atproto.server.reserveSigningKey".
26+func ServerReserveSigningKey(ctx context.Context, c *xrpc.Client, input *ServerReserveSigningKey_Input) (*ServerReserveSigningKey_Output, error) {
27+ var out ServerReserveSigningKey_Output
28+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.reserveSigningKey", nil, input, &out); err != nil {
29+ return nil, err
30+ }
31+32+ return &out, nil
33+}
+26
api/atproto/serverresetPassword.go
···00000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.resetPassword
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerResetPassword_Input is the input argument to a com.atproto.server.resetPassword call.
14+type ServerResetPassword_Input struct {
15+ Password string `json:"password" cborgen:"password"`
16+ Token string `json:"token" cborgen:"token"`
17+}
18+19+// ServerResetPassword calls the XRPC method "com.atproto.server.resetPassword".
20+func ServerResetPassword(ctx context.Context, c *xrpc.Client, input *ServerResetPassword_Input) error {
21+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.resetPassword", nil, input, nil); err != nil {
22+ return err
23+ }
24+25+ return nil
26+}
+25
api/atproto/serverrevokeAppPassword.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.revokeAppPassword
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerRevokeAppPassword_Input is the input argument to a com.atproto.server.revokeAppPassword call.
14+type ServerRevokeAppPassword_Input struct {
15+ Name string `json:"name" cborgen:"name"`
16+}
17+18+// ServerRevokeAppPassword calls the XRPC method "com.atproto.server.revokeAppPassword".
19+func ServerRevokeAppPassword(ctx context.Context, c *xrpc.Client, input *ServerRevokeAppPassword_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.revokeAppPassword", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+28
api/atproto/serverupdateEmail.go
···0000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.server.updateEmail
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerUpdateEmail_Input is the input argument to a com.atproto.server.updateEmail call.
14+type ServerUpdateEmail_Input struct {
15+ Email string `json:"email" cborgen:"email"`
16+ EmailAuthFactor *bool `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"`
17+ // token: Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed.
18+ Token *string `json:"token,omitempty" cborgen:"token,omitempty"`
19+}
20+21+// ServerUpdateEmail calls the XRPC method "com.atproto.server.updateEmail".
22+func ServerUpdateEmail(ctx context.Context, c *xrpc.Client, input *ServerUpdateEmail_Input) error {
23+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.updateEmail", nil, input, nil); err != nil {
24+ return err
25+ }
26+27+ return nil
28+}
+5
api/atproto/syncdefs.go
···00000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.defs
+30
api/atproto/syncgetBlob.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getBlob
6+7+import (
8+ "bytes"
9+ "context"
10+11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// SyncGetBlob calls the XRPC method "com.atproto.sync.getBlob".
15+//
16+// cid: The CID of the blob to fetch
17+// did: The DID of the account.
18+func SyncGetBlob(ctx context.Context, c *xrpc.Client, cid string, did string) ([]byte, error) {
19+ buf := new(bytes.Buffer)
20+21+ params := map[string]interface{}{
22+ "cid": cid,
23+ "did": did,
24+ }
25+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getBlob", params, nil, buf); err != nil {
26+ return nil, err
27+ }
28+29+ return buf.Bytes(), nil
30+}
+29
api/atproto/syncgetBlocks.go
···00000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getBlocks
6+7+import (
8+ "bytes"
9+ "context"
10+11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// SyncGetBlocks calls the XRPC method "com.atproto.sync.getBlocks".
15+//
16+// did: The DID of the repo.
17+func SyncGetBlocks(ctx context.Context, c *xrpc.Client, cids []string, did string) ([]byte, error) {
18+ buf := new(bytes.Buffer)
19+20+ params := map[string]interface{}{
21+ "cids": cids,
22+ "did": did,
23+ }
24+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getBlocks", params, nil, buf); err != nil {
25+ return nil, err
26+ }
27+28+ return buf.Bytes(), nil
29+}
+28
api/atproto/syncgetCheckout.go
···0000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getCheckout
6+7+import (
8+ "bytes"
9+ "context"
10+11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout".
15+//
16+// did: The DID of the repo.
17+func SyncGetCheckout(ctx context.Context, c *xrpc.Client, did string) ([]byte, error) {
18+ buf := new(bytes.Buffer)
19+20+ params := map[string]interface{}{
21+ "did": did,
22+ }
23+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil {
24+ return nil, err
25+ }
26+27+ return buf.Bytes(), nil
28+}
+32
api/atproto/syncgetHead.go
···00000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getHead
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncGetHead_Output is the output of a com.atproto.sync.getHead call.
14+type SyncGetHead_Output struct {
15+ Root string `json:"root" cborgen:"root"`
16+}
17+18+// SyncGetHead calls the XRPC method "com.atproto.sync.getHead".
19+//
20+// did: The DID of the repo.
21+func SyncGetHead(ctx context.Context, c *xrpc.Client, did string) (*SyncGetHead_Output, error) {
22+ var out SyncGetHead_Output
23+24+ params := map[string]interface{}{
25+ "did": did,
26+ }
27+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getHead", params, nil, &out); err != nil {
28+ return nil, err
29+ }
30+31+ return &out, nil
32+}
+37
api/atproto/syncgetHostStatus.go
···0000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getHostStatus
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncGetHostStatus_Output is the output of a com.atproto.sync.getHostStatus call.
14+type SyncGetHostStatus_Output struct {
15+ // accountCount: Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts.
16+ AccountCount *int64 `json:"accountCount,omitempty" cborgen:"accountCount,omitempty"`
17+ Hostname string `json:"hostname" cborgen:"hostname"`
18+ // seq: Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).
19+ Seq *int64 `json:"seq,omitempty" cborgen:"seq,omitempty"`
20+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
21+}
22+23+// SyncGetHostStatus calls the XRPC method "com.atproto.sync.getHostStatus".
24+//
25+// hostname: Hostname of the host (eg, PDS or relay) being queried.
26+func SyncGetHostStatus(ctx context.Context, c *xrpc.Client, hostname string) (*SyncGetHostStatus_Output, error) {
27+ var out SyncGetHostStatus_Output
28+29+ params := map[string]interface{}{
30+ "hostname": hostname,
31+ }
32+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getHostStatus", params, nil, &out); err != nil {
33+ return nil, err
34+ }
35+36+ return &out, nil
37+}
+33
api/atproto/syncgetLatestCommit.go
···000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getLatestCommit
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncGetLatestCommit_Output is the output of a com.atproto.sync.getLatestCommit call.
14+type SyncGetLatestCommit_Output struct {
15+ Cid string `json:"cid" cborgen:"cid"`
16+ Rev string `json:"rev" cborgen:"rev"`
17+}
18+19+// SyncGetLatestCommit calls the XRPC method "com.atproto.sync.getLatestCommit".
20+//
21+// did: The DID of the repo.
22+func SyncGetLatestCommit(ctx context.Context, c *xrpc.Client, did string) (*SyncGetLatestCommit_Output, error) {
23+ var out SyncGetLatestCommit_Output
24+25+ params := map[string]interface{}{
26+ "did": did,
27+ }
28+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getLatestCommit", params, nil, &out); err != nil {
29+ return nil, err
30+ }
31+32+ return &out, nil
33+}
+31
api/atproto/syncgetRecord.go
···0000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getRecord
6+7+import (
8+ "bytes"
9+ "context"
10+11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord".
15+//
16+// did: The DID of the repo.
17+// rkey: Record Key
18+func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, did string, rkey string) ([]byte, error) {
19+ buf := new(bytes.Buffer)
20+21+ params := map[string]interface{}{
22+ "collection": collection,
23+ "did": did,
24+ "rkey": rkey,
25+ }
26+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRecord", params, nil, buf); err != nil {
27+ return nil, err
28+ }
29+30+ return buf.Bytes(), nil
31+}
+30
api/atproto/syncgetRepo.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getRepo
6+7+import (
8+ "bytes"
9+ "context"
10+11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo".
15+//
16+// did: The DID of the repo.
17+// since: The revision ('rev') of the repo to create a diff from.
18+func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, since string) ([]byte, error) {
19+ buf := new(bytes.Buffer)
20+21+ params := map[string]interface{}{
22+ "did": did,
23+ "since": since,
24+ }
25+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil {
26+ return nil, err
27+ }
28+29+ return buf.Bytes(), nil
30+}
+37
api/atproto/syncgetRepoStatus.go
···0000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.getRepoStatus
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncGetRepoStatus_Output is the output of a com.atproto.sync.getRepoStatus call.
14+type SyncGetRepoStatus_Output struct {
15+ Active bool `json:"active" cborgen:"active"`
16+ Did string `json:"did" cborgen:"did"`
17+ // rev: Optional field, the current rev of the repo, if active=true
18+ Rev *string `json:"rev,omitempty" cborgen:"rev,omitempty"`
19+ // status: If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
20+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
21+}
22+23+// SyncGetRepoStatus calls the XRPC method "com.atproto.sync.getRepoStatus".
24+//
25+// did: The DID of the repo.
26+func SyncGetRepoStatus(ctx context.Context, c *xrpc.Client, did string) (*SyncGetRepoStatus_Output, error) {
27+ var out SyncGetRepoStatus_Output
28+29+ params := map[string]interface{}{
30+ "did": did,
31+ }
32+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepoStatus", params, nil, &out); err != nil {
33+ return nil, err
34+ }
35+36+ return &out, nil
37+}
+37
api/atproto/synclistBlobs.go
···0000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.listBlobs
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.
14+type SyncListBlobs_Output struct {
15+ Cids []string `json:"cids" cborgen:"cids"`
16+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17+}
18+19+// SyncListBlobs calls the XRPC method "com.atproto.sync.listBlobs".
20+//
21+// did: The DID of the repo.
22+// since: Optional revision of the repo to list blobs since.
23+func SyncListBlobs(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) {
24+ var out SyncListBlobs_Output
25+26+ params := map[string]interface{}{
27+ "cursor": cursor,
28+ "did": did,
29+ "limit": limit,
30+ "since": since,
31+ }
32+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil {
33+ return nil, err
34+ }
35+36+ return &out, nil
37+}
+43
api/atproto/synclistHosts.go
···0000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.listHosts
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncListHosts_Host is a "host" in the com.atproto.sync.listHosts schema.
14+type SyncListHosts_Host struct {
15+ AccountCount *int64 `json:"accountCount,omitempty" cborgen:"accountCount,omitempty"`
16+ // hostname: hostname of server; not a URL (no scheme)
17+ Hostname string `json:"hostname" cborgen:"hostname"`
18+ // seq: Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor).
19+ Seq *int64 `json:"seq,omitempty" cborgen:"seq,omitempty"`
20+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
21+}
22+23+// SyncListHosts_Output is the output of a com.atproto.sync.listHosts call.
24+type SyncListHosts_Output struct {
25+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
26+ // hosts: Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first.
27+ Hosts []*SyncListHosts_Host `json:"hosts" cborgen:"hosts"`
28+}
29+30+// SyncListHosts calls the XRPC method "com.atproto.sync.listHosts".
31+func SyncListHosts(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListHosts_Output, error) {
32+ var out SyncListHosts_Output
33+34+ params := map[string]interface{}{
35+ "cursor": cursor,
36+ "limit": limit,
37+ }
38+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listHosts", params, nil, &out); err != nil {
39+ return nil, err
40+ }
41+42+ return &out, nil
43+}
+43
api/atproto/synclistRepos.go
···0000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.listRepos
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncListRepos_Output is the output of a com.atproto.sync.listRepos call.
14+type SyncListRepos_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Repos []*SyncListRepos_Repo `json:"repos" cborgen:"repos"`
17+}
18+19+// SyncListRepos_Repo is a "repo" in the com.atproto.sync.listRepos schema.
20+type SyncListRepos_Repo struct {
21+ Active *bool `json:"active,omitempty" cborgen:"active,omitempty"`
22+ Did string `json:"did" cborgen:"did"`
23+ // head: Current repo commit CID
24+ Head string `json:"head" cborgen:"head"`
25+ Rev string `json:"rev" cborgen:"rev"`
26+ // status: If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
27+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
28+}
29+30+// SyncListRepos calls the XRPC method "com.atproto.sync.listRepos".
31+func SyncListRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListRepos_Output, error) {
32+ var out SyncListRepos_Output
33+34+ params := map[string]interface{}{
35+ "cursor": cursor,
36+ "limit": limit,
37+ }
38+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listRepos", params, nil, &out); err != nil {
39+ return nil, err
40+ }
41+42+ return &out, nil
43+}
+40
api/atproto/synclistReposByCollection.go
···0000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.listReposByCollection
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncListReposByCollection_Output is the output of a com.atproto.sync.listReposByCollection call.
14+type SyncListReposByCollection_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Repos []*SyncListReposByCollection_Repo `json:"repos" cborgen:"repos"`
17+}
18+19+// SyncListReposByCollection_Repo is a "repo" in the com.atproto.sync.listReposByCollection schema.
20+type SyncListReposByCollection_Repo struct {
21+ Did string `json:"did" cborgen:"did"`
22+}
23+24+// SyncListReposByCollection calls the XRPC method "com.atproto.sync.listReposByCollection".
25+//
26+// limit: Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists.
27+func SyncListReposByCollection(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64) (*SyncListReposByCollection_Output, error) {
28+ var out SyncListReposByCollection_Output
29+30+ params := map[string]interface{}{
31+ "collection": collection,
32+ "cursor": cursor,
33+ "limit": limit,
34+ }
35+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listReposByCollection", params, nil, &out); err != nil {
36+ return nil, err
37+ }
38+39+ return &out, nil
40+}
+26
api/atproto/syncnotifyOfUpdate.go
···00000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.notifyOfUpdate
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncNotifyOfUpdate_Input is the input argument to a com.atproto.sync.notifyOfUpdate call.
14+type SyncNotifyOfUpdate_Input struct {
15+ // hostname: Hostname of the current service (usually a PDS) that is notifying of update.
16+ Hostname string `json:"hostname" cborgen:"hostname"`
17+}
18+19+// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
20+func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, input *SyncNotifyOfUpdate_Input) error {
21+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.notifyOfUpdate", nil, input, nil); err != nil {
22+ return err
23+ }
24+25+ return nil
26+}
+26
api/atproto/syncrequestCrawl.go
···00000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.requestCrawl
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SyncRequestCrawl_Input is the input argument to a com.atproto.sync.requestCrawl call.
14+type SyncRequestCrawl_Input struct {
15+ // hostname: Hostname of the current service (eg, PDS) that is requesting to be crawled.
16+ Hostname string `json:"hostname" cborgen:"hostname"`
17+}
18+19+// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
20+func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, input *SyncRequestCrawl_Input) error {
21+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.requestCrawl", nil, input, nil); err != nil {
22+ return err
23+ }
24+25+ return nil
26+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.sync.subscribeRepos
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+// SyncSubscribeRepos_Account is a "account" in the com.atproto.sync.subscribeRepos schema.
12+//
13+// Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active.
14+type SyncSubscribeRepos_Account struct {
15+ // active: Indicates that the account has a repository which can be fetched from the host that emitted this event.
16+ Active bool `json:"active" cborgen:"active"`
17+ Did string `json:"did" cborgen:"did"`
18+ Seq int64 `json:"seq" cborgen:"seq"`
19+ // status: If active=false, this optional field indicates a reason for why the account is not active.
20+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
21+ Time string `json:"time" cborgen:"time"`
22+}
23+24+// SyncSubscribeRepos_Commit is a "commit" in the com.atproto.sync.subscribeRepos schema.
25+//
26+// Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.
27+type SyncSubscribeRepos_Commit struct {
28+ Blobs []util.LexLink `json:"blobs" cborgen:"blobs"`
29+ // blocks: CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list.
30+ Blocks util.LexBytes `json:"blocks,omitempty" cborgen:"blocks,omitempty"`
31+ // commit: Repo commit object CID.
32+ Commit util.LexLink `json:"commit" cborgen:"commit"`
33+ Ops []*SyncSubscribeRepos_RepoOp `json:"ops" cborgen:"ops"`
34+ // prevData: The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose.
35+ PrevData *util.LexLink `json:"prevData,omitempty" cborgen:"prevData,omitempty"`
36+ // rebase: DEPRECATED -- unused
37+ Rebase bool `json:"rebase" cborgen:"rebase"`
38+ // repo: The repo this event comes from. Note that all other message types name this field 'did'.
39+ Repo string `json:"repo" cborgen:"repo"`
40+ // rev: The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event.
41+ Rev string `json:"rev" cborgen:"rev"`
42+ // seq: The stream sequence number of this message.
43+ Seq int64 `json:"seq" cborgen:"seq"`
44+ // since: The rev of the last emitted commit from this repo (if any).
45+ Since *string `json:"since" cborgen:"since"`
46+ // time: Timestamp of when this message was originally broadcast.
47+ Time string `json:"time" cborgen:"time"`
48+ // tooBig: DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data.
49+ TooBig bool `json:"tooBig" cborgen:"tooBig"`
50+}
51+52+// SyncSubscribeRepos_Identity is a "identity" in the com.atproto.sync.subscribeRepos schema.
53+//
54+// Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.
55+type SyncSubscribeRepos_Identity struct {
56+ Did string `json:"did" cborgen:"did"`
57+ // handle: The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.
58+ Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
59+ Seq int64 `json:"seq" cborgen:"seq"`
60+ Time string `json:"time" cborgen:"time"`
61+}
62+63+// SyncSubscribeRepos_Info is a "info" in the com.atproto.sync.subscribeRepos schema.
64+type SyncSubscribeRepos_Info struct {
65+ Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
66+ Name string `json:"name" cborgen:"name"`
67+}
68+69+// SyncSubscribeRepos_RepoOp is a "repoOp" in the com.atproto.sync.subscribeRepos schema.
70+//
71+// A repo operation, ie a mutation of a single record.
72+type SyncSubscribeRepos_RepoOp struct {
73+ Action string `json:"action" cborgen:"action"`
74+ // cid: For creates and updates, the new record CID. For deletions, null.
75+ Cid *util.LexLink `json:"cid" cborgen:"cid"`
76+ Path string `json:"path" cborgen:"path"`
77+ // prev: For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined.
78+ Prev *util.LexLink `json:"prev,omitempty" cborgen:"prev,omitempty"`
79+}
80+81+// SyncSubscribeRepos_Sync is a "sync" in the com.atproto.sync.subscribeRepos schema.
82+//
83+// Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository.
84+type SyncSubscribeRepos_Sync struct {
85+ // blocks: CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'.
86+ Blocks util.LexBytes `json:"blocks,omitempty" cborgen:"blocks,omitempty"`
87+ // did: The account this repo event corresponds to. Must match that in the commit object.
88+ Did string `json:"did" cborgen:"did"`
89+ // rev: The rev of the commit. This value must match that in the commit object.
90+ Rev string `json:"rev" cborgen:"rev"`
91+ // seq: The stream sequence number of this message.
92+ Seq int64 `json:"seq" cborgen:"seq"`
93+ // time: Timestamp of when this message was originally broadcast.
94+ Time string `json:"time" cborgen:"time"`
95+}
+30
api/atproto/tempaddReservedHandle.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.temp.addReservedHandle
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// TempAddReservedHandle_Input is the input argument to a com.atproto.temp.addReservedHandle call.
14+type TempAddReservedHandle_Input struct {
15+ Handle string `json:"handle" cborgen:"handle"`
16+}
17+18+// TempAddReservedHandle_Output is the output of a com.atproto.temp.addReservedHandle call.
19+type TempAddReservedHandle_Output struct {
20+}
21+22+// TempAddReservedHandle calls the XRPC method "com.atproto.temp.addReservedHandle".
23+func TempAddReservedHandle(ctx context.Context, c *xrpc.Client, input *TempAddReservedHandle_Input) (*TempAddReservedHandle_Output, error) {
24+ var out TempAddReservedHandle_Output
25+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.addReservedHandle", nil, input, &out); err != nil {
26+ return nil, err
27+ }
28+29+ return &out, nil
30+}
+28
api/atproto/tempcheckSignupQueue.go
···0000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.temp.checkSignupQueue
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// TempCheckSignupQueue_Output is the output of a com.atproto.temp.checkSignupQueue call.
14+type TempCheckSignupQueue_Output struct {
15+ Activated bool `json:"activated" cborgen:"activated"`
16+ EstimatedTimeMs *int64 `json:"estimatedTimeMs,omitempty" cborgen:"estimatedTimeMs,omitempty"`
17+ PlaceInQueue *int64 `json:"placeInQueue,omitempty" cborgen:"placeInQueue,omitempty"`
18+}
19+20+// TempCheckSignupQueue calls the XRPC method "com.atproto.temp.checkSignupQueue".
21+func TempCheckSignupQueue(ctx context.Context, c *xrpc.Client) (*TempCheckSignupQueue_Output, error) {
22+ var out TempCheckSignupQueue_Output
23+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.checkSignupQueue", nil, nil, &out); err != nil {
24+ return nil, err
25+ }
26+27+ return &out, nil
28+}
+31
api/atproto/tempfetchLabels.go
···0000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.temp.fetchLabels
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// TempFetchLabels_Output is the output of a com.atproto.temp.fetchLabels call.
14+type TempFetchLabels_Output struct {
15+ Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
16+}
17+18+// TempFetchLabels calls the XRPC method "com.atproto.temp.fetchLabels".
19+func TempFetchLabels(ctx context.Context, c *xrpc.Client, limit int64, since int64) (*TempFetchLabels_Output, error) {
20+ var out TempFetchLabels_Output
21+22+ params := map[string]interface{}{
23+ "limit": limit,
24+ "since": since,
25+ }
26+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.fetchLabels", params, nil, &out); err != nil {
27+ return nil, err
28+ }
29+30+ return &out, nil
31+}
+25
api/atproto/temprequestPhoneVerification.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package atproto
4+5+// schema: com.atproto.temp.requestPhoneVerification
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// TempRequestPhoneVerification_Input is the input argument to a com.atproto.temp.requestPhoneVerification call.
14+type TempRequestPhoneVerification_Input struct {
15+ PhoneNumber string `json:"phoneNumber" cborgen:"phoneNumber"`
16+}
17+18+// TempRequestPhoneVerification calls the XRPC method "com.atproto.temp.requestPhoneVerification".
19+func TempRequestPhoneVerification(ctx context.Context, c *xrpc.Client, input *TempRequestPhoneVerification_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.temp.requestPhoneVerification", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.actor.status
6+7+import (
8+ "bytes"
9+ "encoding/json"
10+ "fmt"
11+ "io"
12+13+ "github.com/bluesky-social/indigo/lex/util"
14+ cbg "github.com/whyrusleeping/cbor-gen"
15+)
16+17+func init() {
18+ util.RegisterType("app.bsky.actor.status", &ActorStatus{})
19+} //
20+// RECORDTYPE: ActorStatus
21+type ActorStatus struct {
22+ LexiconTypeID string `json:"$type,const=app.bsky.actor.status" cborgen:"$type,const=app.bsky.actor.status"`
23+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
24+ // durationMinutes: The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
25+ DurationMinutes *int64 `json:"durationMinutes,omitempty" cborgen:"durationMinutes,omitempty"`
26+ // embed: An optional embed associated with the status.
27+ Embed *ActorStatus_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"`
28+ // status: The status for the account.
29+ Status string `json:"status" cborgen:"status"`
30+}
31+32+// An optional embed associated with the status.
33+type ActorStatus_Embed struct {
34+ EmbedExternal *EmbedExternal
35+}
36+37+func (t *ActorStatus_Embed) MarshalJSON() ([]byte, error) {
38+ if t.EmbedExternal != nil {
39+ t.EmbedExternal.LexiconTypeID = "app.bsky.embed.external"
40+ return json.Marshal(t.EmbedExternal)
41+ }
42+ return nil, fmt.Errorf("cannot marshal empty enum")
43+}
44+func (t *ActorStatus_Embed) UnmarshalJSON(b []byte) error {
45+ typ, err := util.TypeExtract(b)
46+ if err != nil {
47+ return err
48+ }
49+50+ switch typ {
51+ case "app.bsky.embed.external":
52+ t.EmbedExternal = new(EmbedExternal)
53+ return json.Unmarshal(b, t.EmbedExternal)
54+55+ default:
56+ return nil
57+ }
58+}
59+60+func (t *ActorStatus_Embed) MarshalCBOR(w io.Writer) error {
61+62+ if t == nil {
63+ _, err := w.Write(cbg.CborNull)
64+ return err
65+ }
66+ if t.EmbedExternal != nil {
67+ return t.EmbedExternal.MarshalCBOR(w)
68+ }
69+ return fmt.Errorf("cannot cbor marshal empty enum")
70+}
71+func (t *ActorStatus_Embed) UnmarshalCBOR(r io.Reader) error {
72+ typ, b, err := util.CborTypeExtractReader(r)
73+ if err != nil {
74+ return err
75+ }
76+77+ switch typ {
78+ case "app.bsky.embed.external":
79+ t.EmbedExternal = new(EmbedExternal)
80+ return t.EmbedExternal.UnmarshalCBOR(bytes.NewReader(b))
81+82+ default:
83+ return nil
84+ }
85+}
+13
api/bsky/embeddefs.go
···0000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.embed.defs
6+7+// EmbedDefs_AspectRatio is a "aspectRatio" in the app.bsky.embed.defs schema.
8+//
9+// width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.
10+type EmbedDefs_AspectRatio struct {
11+ Height int64 `json:"height" cborgen:"height"`
12+ Width int64 `json:"width" cborgen:"width"`
13+}
+44
api/bsky/embedexternal.go
···00000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.embed.external
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("app.bsky.embed.external#main", &EmbedExternal{})
13+} // EmbedExternal is a "main" in the app.bsky.embed.external schema.
14+// A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).
15+//
16+// RECORDTYPE: EmbedExternal
17+type EmbedExternal struct {
18+ LexiconTypeID string `json:"$type,const=app.bsky.embed.external" cborgen:"$type,const=app.bsky.embed.external"`
19+ External *EmbedExternal_External `json:"external" cborgen:"external"`
20+}
21+22+// EmbedExternal_External is a "external" in the app.bsky.embed.external schema.
23+type EmbedExternal_External struct {
24+ Description string `json:"description" cborgen:"description"`
25+ Thumb *util.LexBlob `json:"thumb,omitempty" cborgen:"thumb,omitempty"`
26+ Title string `json:"title" cborgen:"title"`
27+ Uri string `json:"uri" cborgen:"uri"`
28+}
29+30+// EmbedExternal_View is a "view" in the app.bsky.embed.external schema.
31+//
32+// RECORDTYPE: EmbedExternal_View
33+type EmbedExternal_View struct {
34+ LexiconTypeID string `json:"$type,const=app.bsky.embed.external#view" cborgen:"$type,const=app.bsky.embed.external#view"`
35+ External *EmbedExternal_ViewExternal `json:"external" cborgen:"external"`
36+}
37+38+// EmbedExternal_ViewExternal is a "viewExternal" in the app.bsky.embed.external schema.
39+type EmbedExternal_ViewExternal struct {
40+ Description string `json:"description" cborgen:"description"`
41+ Thumb *string `json:"thumb,omitempty" cborgen:"thumb,omitempty"`
42+ Title string `json:"title" cborgen:"title"`
43+ Uri string `json:"uri" cborgen:"uri"`
44+}
+45
api/bsky/embedimages.go
···000000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.embed.images
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("app.bsky.embed.images#main", &EmbedImages{})
13+} // EmbedImages is a "main" in the app.bsky.embed.images schema.
14+// RECORDTYPE: EmbedImages
15+type EmbedImages struct {
16+ LexiconTypeID string `json:"$type,const=app.bsky.embed.images" cborgen:"$type,const=app.bsky.embed.images"`
17+ Images []*EmbedImages_Image `json:"images" cborgen:"images"`
18+}
19+20+// EmbedImages_Image is a "image" in the app.bsky.embed.images schema.
21+type EmbedImages_Image struct {
22+ // alt: Alt text description of the image, for accessibility.
23+ Alt string `json:"alt" cborgen:"alt"`
24+ AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
25+ Image *util.LexBlob `json:"image" cborgen:"image"`
26+}
27+28+// EmbedImages_View is a "view" in the app.bsky.embed.images schema.
29+//
30+// RECORDTYPE: EmbedImages_View
31+type EmbedImages_View struct {
32+ LexiconTypeID string `json:"$type,const=app.bsky.embed.images#view" cborgen:"$type,const=app.bsky.embed.images#view"`
33+ Images []*EmbedImages_ViewImage `json:"images" cborgen:"images"`
34+}
35+36+// EmbedImages_ViewImage is a "viewImage" in the app.bsky.embed.images schema.
37+type EmbedImages_ViewImage struct {
38+ // alt: Alt text description of the image, for accessibility.
39+ Alt string `json:"alt" cborgen:"alt"`
40+ AspectRatio *EmbedDefs_AspectRatio `json:"aspectRatio,omitempty" cborgen:"aspectRatio,omitempty"`
41+ // fullsize: Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View.
42+ Fullsize string `json:"fullsize" cborgen:"fullsize"`
43+ // thumb: Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View.
44+ Thumb string `json:"thumb" cborgen:"thumb"`
45+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.feed.searchPosts
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// FeedSearchPosts_Output is the output of a app.bsky.feed.searchPosts call.
14+type FeedSearchPosts_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ // hitsTotal: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
17+ HitsTotal *int64 `json:"hitsTotal,omitempty" cborgen:"hitsTotal,omitempty"`
18+ Posts []*FeedDefs_PostView `json:"posts" cborgen:"posts"`
19+}
20+21+// FeedSearchPosts calls the XRPC method "app.bsky.feed.searchPosts".
22+//
23+// author: Filter to posts by the given account. Handles are resolved to DID before query-time.
24+// cursor: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
25+// domain: Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.
26+// lang: Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.
27+// mentions: Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.
28+// q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
29+// since: Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).
30+// sort: Specifies the ranking order of results.
31+// tag: Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching.
32+// until: Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).
33+// url: Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
34+func FeedSearchPosts(ctx context.Context, c *xrpc.Client, author string, cursor string, domain string, lang string, limit int64, mentions string, q string, since string, sort string, tag []string, until string, url string) (*FeedSearchPosts_Output, error) {
35+ var out FeedSearchPosts_Output
36+37+ params := map[string]interface{}{
38+ "author": author,
39+ "cursor": cursor,
40+ "domain": domain,
41+ "lang": lang,
42+ "limit": limit,
43+ "mentions": mentions,
44+ "q": q,
45+ "since": since,
46+ "sort": sort,
47+ "tag": tag,
48+ "until": until,
49+ "url": url,
50+ }
51+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.searchPosts", params, nil, &out); err != nil {
52+ return nil, err
53+ }
54+55+ return &out, nil
56+}
+30
api/bsky/feedsendInteractions.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.feed.sendInteractions
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// FeedSendInteractions_Input is the input argument to a app.bsky.feed.sendInteractions call.
14+type FeedSendInteractions_Input struct {
15+ Interactions []*FeedDefs_Interaction `json:"interactions" cborgen:"interactions"`
16+}
17+18+// FeedSendInteractions_Output is the output of a app.bsky.feed.sendInteractions call.
19+type FeedSendInteractions_Output struct {
20+}
21+22+// FeedSendInteractions calls the XRPC method "app.bsky.feed.sendInteractions".
23+func FeedSendInteractions(ctx context.Context, c *xrpc.Client, input *FeedSendInteractions_Input) (*FeedSendInteractions_Output, error) {
24+ var out FeedSendInteractions_Output
25+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.feed.sendInteractions", nil, input, &out); err != nil {
26+ return nil, err
27+ }
28+29+ return &out, nil
30+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.listblock
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("app.bsky.graph.listblock", &GraphListblock{})
13+} //
14+// RECORDTYPE: GraphListblock
15+type GraphListblock struct {
16+ LexiconTypeID string `json:"$type,const=app.bsky.graph.listblock" cborgen:"$type,const=app.bsky.graph.listblock"`
17+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
18+ // subject: Reference (AT-URI) to the mod list record.
19+ Subject string `json:"subject" cborgen:"subject"`
20+}
+22
api/bsky/graphlistitem.go
···0000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.listitem
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("app.bsky.graph.listitem", &GraphListitem{})
13+} //
14+// RECORDTYPE: GraphListitem
15+type GraphListitem struct {
16+ LexiconTypeID string `json:"$type,const=app.bsky.graph.listitem" cborgen:"$type,const=app.bsky.graph.listitem"`
17+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
18+ // list: Reference (AT-URI) to the list record (app.bsky.graph.list).
19+ List string `json:"list" cborgen:"list"`
20+ // subject: The account which is included on the list.
21+ Subject string `json:"subject" cborgen:"subject"`
22+}
+25
api/bsky/graphmuteActor.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.muteActor
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// GraphMuteActor_Input is the input argument to a app.bsky.graph.muteActor call.
14+type GraphMuteActor_Input struct {
15+ Actor string `json:"actor" cborgen:"actor"`
16+}
17+18+// GraphMuteActor calls the XRPC method "app.bsky.graph.muteActor".
19+func GraphMuteActor(ctx context.Context, c *xrpc.Client, input *GraphMuteActor_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteActor", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+25
api/bsky/graphmuteActorList.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.muteActorList
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// GraphMuteActorList_Input is the input argument to a app.bsky.graph.muteActorList call.
14+type GraphMuteActorList_Input struct {
15+ List string `json:"list" cborgen:"list"`
16+}
17+18+// GraphMuteActorList calls the XRPC method "app.bsky.graph.muteActorList".
19+func GraphMuteActorList(ctx context.Context, c *xrpc.Client, input *GraphMuteActorList_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteActorList", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+25
api/bsky/graphmuteThread.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.muteThread
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// GraphMuteThread_Input is the input argument to a app.bsky.graph.muteThread call.
14+type GraphMuteThread_Input struct {
15+ Root string `json:"root" cborgen:"root"`
16+}
17+18+// GraphMuteThread calls the XRPC method "app.bsky.graph.muteThread".
19+func GraphMuteThread(ctx context.Context, c *xrpc.Client, input *GraphMuteThread_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteThread", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+35
api/bsky/graphsearchStarterPacks.go
···00000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.searchStarterPacks
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// GraphSearchStarterPacks_Output is the output of a app.bsky.graph.searchStarterPacks call.
14+type GraphSearchStarterPacks_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ StarterPacks []*GraphDefs_StarterPackViewBasic `json:"starterPacks" cborgen:"starterPacks"`
17+}
18+19+// GraphSearchStarterPacks calls the XRPC method "app.bsky.graph.searchStarterPacks".
20+//
21+// q: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
22+func GraphSearchStarterPacks(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string) (*GraphSearchStarterPacks_Output, error) {
23+ var out GraphSearchStarterPacks_Output
24+25+ params := map[string]interface{}{
26+ "cursor": cursor,
27+ "limit": limit,
28+ "q": q,
29+ }
30+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.searchStarterPacks", params, nil, &out); err != nil {
31+ return nil, err
32+ }
33+34+ return &out, nil
35+}
+30
api/bsky/graphstarterpack.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.starterpack
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("app.bsky.graph.starterpack", &GraphStarterpack{})
13+} //
14+// RECORDTYPE: GraphStarterpack
15+type GraphStarterpack struct {
16+ LexiconTypeID string `json:"$type,const=app.bsky.graph.starterpack" cborgen:"$type,const=app.bsky.graph.starterpack"`
17+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
18+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
19+ DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"`
20+ Feeds []*GraphStarterpack_FeedItem `json:"feeds,omitempty" cborgen:"feeds,omitempty"`
21+ // list: Reference (AT-URI) to the list record.
22+ List string `json:"list" cborgen:"list"`
23+ // name: Display name for starter pack; can not be empty.
24+ Name string `json:"name" cborgen:"name"`
25+}
26+27+// GraphStarterpack_FeedItem is a "feedItem" in the app.bsky.graph.starterpack schema.
28+type GraphStarterpack_FeedItem struct {
29+ Uri string `json:"uri" cborgen:"uri"`
30+}
+25
api/bsky/graphunmuteActor.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.unmuteActor
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// GraphUnmuteActor_Input is the input argument to a app.bsky.graph.unmuteActor call.
14+type GraphUnmuteActor_Input struct {
15+ Actor string `json:"actor" cborgen:"actor"`
16+}
17+18+// GraphUnmuteActor calls the XRPC method "app.bsky.graph.unmuteActor".
19+func GraphUnmuteActor(ctx context.Context, c *xrpc.Client, input *GraphUnmuteActor_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteActor", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+25
api/bsky/graphunmuteActorList.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.unmuteActorList
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// GraphUnmuteActorList_Input is the input argument to a app.bsky.graph.unmuteActorList call.
14+type GraphUnmuteActorList_Input struct {
15+ List string `json:"list" cborgen:"list"`
16+}
17+18+// GraphUnmuteActorList calls the XRPC method "app.bsky.graph.unmuteActorList".
19+func GraphUnmuteActorList(ctx context.Context, c *xrpc.Client, input *GraphUnmuteActorList_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteActorList", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+25
api/bsky/graphunmuteThread.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.unmuteThread
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// GraphUnmuteThread_Input is the input argument to a app.bsky.graph.unmuteThread call.
14+type GraphUnmuteThread_Input struct {
15+ Root string `json:"root" cborgen:"root"`
16+}
17+18+// GraphUnmuteThread calls the XRPC method "app.bsky.graph.unmuteThread".
19+func GraphUnmuteThread(ctx context.Context, c *xrpc.Client, input *GraphUnmuteThread_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteThread", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+25
api/bsky/graphverification.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.graph.verification
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("app.bsky.graph.verification", &GraphVerification{})
13+} //
14+// RECORDTYPE: GraphVerification
15+type GraphVerification struct {
16+ LexiconTypeID string `json:"$type,const=app.bsky.graph.verification" cborgen:"$type,const=app.bsky.graph.verification"`
17+ // createdAt: Date of when the verification was created.
18+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
19+ // displayName: Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.
20+ DisplayName string `json:"displayName" cborgen:"displayName"`
21+ // handle: Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.
22+ Handle string `json:"handle" cborgen:"handle"`
23+ // subject: DID of the subject the verification applies to.
24+ Subject string `json:"subject" cborgen:"subject"`
25+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.labeler.defs
6+7+import (
8+ comatprototypes "github.com/bluesky-social/indigo/api/atproto"
9+)
10+11+// LabelerDefs_LabelerPolicies is a "labelerPolicies" in the app.bsky.labeler.defs schema.
12+type LabelerDefs_LabelerPolicies struct {
13+ // labelValueDefinitions: Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.
14+ LabelValueDefinitions []*comatprototypes.LabelDefs_LabelValueDefinition `json:"labelValueDefinitions,omitempty" cborgen:"labelValueDefinitions,omitempty"`
15+ // labelValues: The label values which this labeler publishes. May include global or custom labels.
16+ LabelValues []*string `json:"labelValues" cborgen:"labelValues"`
17+}
18+19+// LabelerDefs_LabelerView is a "labelerView" in the app.bsky.labeler.defs schema.
20+//
21+// RECORDTYPE: LabelerDefs_LabelerView
22+type LabelerDefs_LabelerView struct {
23+ LexiconTypeID string `json:"$type,const=app.bsky.labeler.defs#labelerView" cborgen:"$type,const=app.bsky.labeler.defs#labelerView"`
24+ Cid string `json:"cid" cborgen:"cid"`
25+ Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
26+ IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
27+ Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
28+ LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"`
29+ Uri string `json:"uri" cborgen:"uri"`
30+ Viewer *LabelerDefs_LabelerViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
31+}
32+33+// LabelerDefs_LabelerViewDetailed is a "labelerViewDetailed" in the app.bsky.labeler.defs schema.
34+//
35+// RECORDTYPE: LabelerDefs_LabelerViewDetailed
36+type LabelerDefs_LabelerViewDetailed struct {
37+ LexiconTypeID string `json:"$type,const=app.bsky.labeler.defs#labelerViewDetailed" cborgen:"$type,const=app.bsky.labeler.defs#labelerViewDetailed"`
38+ Cid string `json:"cid" cborgen:"cid"`
39+ Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
40+ IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
41+ Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
42+ LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"`
43+ Policies *LabelerDefs_LabelerPolicies `json:"policies" cborgen:"policies"`
44+ // reasonTypes: The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.
45+ ReasonTypes []*string `json:"reasonTypes,omitempty" cborgen:"reasonTypes,omitempty"`
46+ // subjectCollections: Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.
47+ SubjectCollections []string `json:"subjectCollections,omitempty" cborgen:"subjectCollections,omitempty"`
48+ // subjectTypes: The set of subject types (account, record, etc) this service accepts reports on.
49+ SubjectTypes []*string `json:"subjectTypes,omitempty" cborgen:"subjectTypes,omitempty"`
50+ Uri string `json:"uri" cborgen:"uri"`
51+ Viewer *LabelerDefs_LabelerViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
52+}
53+54+// LabelerDefs_LabelerViewerState is a "labelerViewerState" in the app.bsky.labeler.defs schema.
55+type LabelerDefs_LabelerViewerState struct {
56+ Like *string `json:"like,omitempty" cborgen:"like,omitempty"`
57+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.labeler.service
6+7+import (
8+ "bytes"
9+ "encoding/json"
10+ "fmt"
11+ "io"
12+13+ comatprototypes "github.com/bluesky-social/indigo/api/atproto"
14+ "github.com/bluesky-social/indigo/lex/util"
15+ cbg "github.com/whyrusleeping/cbor-gen"
16+)
17+18+func init() {
19+ util.RegisterType("app.bsky.labeler.service", &LabelerService{})
20+} //
21+// RECORDTYPE: LabelerService
22+type LabelerService struct {
23+ LexiconTypeID string `json:"$type,const=app.bsky.labeler.service" cborgen:"$type,const=app.bsky.labeler.service"`
24+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
25+ Labels *LabelerService_Labels `json:"labels,omitempty" cborgen:"labels,omitempty"`
26+ Policies *LabelerDefs_LabelerPolicies `json:"policies" cborgen:"policies"`
27+ // reasonTypes: The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.
28+ ReasonTypes []*string `json:"reasonTypes,omitempty" cborgen:"reasonTypes,omitempty"`
29+ // subjectCollections: Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.
30+ SubjectCollections []string `json:"subjectCollections,omitempty" cborgen:"subjectCollections,omitempty"`
31+ // subjectTypes: The set of subject types (account, record, etc) this service accepts reports on.
32+ SubjectTypes []*string `json:"subjectTypes,omitempty" cborgen:"subjectTypes,omitempty"`
33+}
34+35+type LabelerService_Labels struct {
36+ LabelDefs_SelfLabels *comatprototypes.LabelDefs_SelfLabels
37+}
38+39+func (t *LabelerService_Labels) MarshalJSON() ([]byte, error) {
40+ if t.LabelDefs_SelfLabels != nil {
41+ t.LabelDefs_SelfLabels.LexiconTypeID = "com.atproto.label.defs#selfLabels"
42+ return json.Marshal(t.LabelDefs_SelfLabels)
43+ }
44+ return nil, fmt.Errorf("cannot marshal empty enum")
45+}
46+func (t *LabelerService_Labels) UnmarshalJSON(b []byte) error {
47+ typ, err := util.TypeExtract(b)
48+ if err != nil {
49+ return err
50+ }
51+52+ switch typ {
53+ case "com.atproto.label.defs#selfLabels":
54+ t.LabelDefs_SelfLabels = new(comatprototypes.LabelDefs_SelfLabels)
55+ return json.Unmarshal(b, t.LabelDefs_SelfLabels)
56+57+ default:
58+ return nil
59+ }
60+}
61+62+func (t *LabelerService_Labels) MarshalCBOR(w io.Writer) error {
63+64+ if t == nil {
65+ _, err := w.Write(cbg.CborNull)
66+ return err
67+ }
68+ if t.LabelDefs_SelfLabels != nil {
69+ return t.LabelDefs_SelfLabels.MarshalCBOR(w)
70+ }
71+ return fmt.Errorf("cannot cbor marshal empty enum")
72+}
73+func (t *LabelerService_Labels) UnmarshalCBOR(r io.Reader) error {
74+ typ, b, err := util.CborTypeExtractReader(r)
75+ if err != nil {
76+ return err
77+ }
78+79+ switch typ {
80+ case "com.atproto.label.defs#selfLabels":
81+ t.LabelDefs_SelfLabels = new(comatprototypes.LabelDefs_SelfLabels)
82+ return t.LabelDefs_SelfLabels.UnmarshalCBOR(bytes.NewReader(b))
83+84+ default:
85+ return nil
86+ }
87+}
+9
api/bsky/notificationdefs.go
···000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.notification.defs
6+7+// NotificationDefs_RecordDeleted is a "recordDeleted" in the app.bsky.notification.defs schema.
8+type NotificationDefs_RecordDeleted struct {
9+}
+31
api/bsky/notificationgetUnreadCount.go
···0000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.notification.getUnreadCount
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// NotificationGetUnreadCount_Output is the output of a app.bsky.notification.getUnreadCount call.
14+type NotificationGetUnreadCount_Output struct {
15+ Count int64 `json:"count" cborgen:"count"`
16+}
17+18+// NotificationGetUnreadCount calls the XRPC method "app.bsky.notification.getUnreadCount".
19+func NotificationGetUnreadCount(ctx context.Context, c *xrpc.Client, priority bool, seenAt string) (*NotificationGetUnreadCount_Output, error) {
20+ var out NotificationGetUnreadCount_Output
21+22+ params := map[string]interface{}{
23+ "priority": priority,
24+ "seenAt": seenAt,
25+ }
26+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.notification.getUnreadCount", params, nil, &out); err != nil {
27+ return nil, err
28+ }
29+30+ return &out, nil
31+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.richtext.facet
6+7+import (
8+ "bytes"
9+ "encoding/json"
10+ "fmt"
11+ "io"
12+13+ "github.com/bluesky-social/indigo/lex/util"
14+ cbg "github.com/whyrusleeping/cbor-gen"
15+)
16+17+// RichtextFacet is a "main" in the app.bsky.richtext.facet schema.
18+//
19+// Annotation of a sub-string within rich text.
20+type RichtextFacet struct {
21+ Features []*RichtextFacet_Features_Elem `json:"features" cborgen:"features"`
22+ Index *RichtextFacet_ByteSlice `json:"index" cborgen:"index"`
23+}
24+25+// RichtextFacet_ByteSlice is a "byteSlice" in the app.bsky.richtext.facet schema.
26+//
27+// Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.
28+type RichtextFacet_ByteSlice struct {
29+ ByteEnd int64 `json:"byteEnd" cborgen:"byteEnd"`
30+ ByteStart int64 `json:"byteStart" cborgen:"byteStart"`
31+}
32+33+type RichtextFacet_Features_Elem struct {
34+ RichtextFacet_Mention *RichtextFacet_Mention
35+ RichtextFacet_Link *RichtextFacet_Link
36+ RichtextFacet_Tag *RichtextFacet_Tag
37+}
38+39+func (t *RichtextFacet_Features_Elem) MarshalJSON() ([]byte, error) {
40+ if t.RichtextFacet_Mention != nil {
41+ t.RichtextFacet_Mention.LexiconTypeID = "app.bsky.richtext.facet#mention"
42+ return json.Marshal(t.RichtextFacet_Mention)
43+ }
44+ if t.RichtextFacet_Link != nil {
45+ t.RichtextFacet_Link.LexiconTypeID = "app.bsky.richtext.facet#link"
46+ return json.Marshal(t.RichtextFacet_Link)
47+ }
48+ if t.RichtextFacet_Tag != nil {
49+ t.RichtextFacet_Tag.LexiconTypeID = "app.bsky.richtext.facet#tag"
50+ return json.Marshal(t.RichtextFacet_Tag)
51+ }
52+ return nil, fmt.Errorf("cannot marshal empty enum")
53+}
54+func (t *RichtextFacet_Features_Elem) UnmarshalJSON(b []byte) error {
55+ typ, err := util.TypeExtract(b)
56+ if err != nil {
57+ return err
58+ }
59+60+ switch typ {
61+ case "app.bsky.richtext.facet#mention":
62+ t.RichtextFacet_Mention = new(RichtextFacet_Mention)
63+ return json.Unmarshal(b, t.RichtextFacet_Mention)
64+ case "app.bsky.richtext.facet#link":
65+ t.RichtextFacet_Link = new(RichtextFacet_Link)
66+ return json.Unmarshal(b, t.RichtextFacet_Link)
67+ case "app.bsky.richtext.facet#tag":
68+ t.RichtextFacet_Tag = new(RichtextFacet_Tag)
69+ return json.Unmarshal(b, t.RichtextFacet_Tag)
70+71+ default:
72+ return nil
73+ }
74+}
75+76+func (t *RichtextFacet_Features_Elem) MarshalCBOR(w io.Writer) error {
77+78+ if t == nil {
79+ _, err := w.Write(cbg.CborNull)
80+ return err
81+ }
82+ if t.RichtextFacet_Mention != nil {
83+ return t.RichtextFacet_Mention.MarshalCBOR(w)
84+ }
85+ if t.RichtextFacet_Link != nil {
86+ return t.RichtextFacet_Link.MarshalCBOR(w)
87+ }
88+ if t.RichtextFacet_Tag != nil {
89+ return t.RichtextFacet_Tag.MarshalCBOR(w)
90+ }
91+ return fmt.Errorf("cannot cbor marshal empty enum")
92+}
93+func (t *RichtextFacet_Features_Elem) UnmarshalCBOR(r io.Reader) error {
94+ typ, b, err := util.CborTypeExtractReader(r)
95+ if err != nil {
96+ return err
97+ }
98+99+ switch typ {
100+ case "app.bsky.richtext.facet#mention":
101+ t.RichtextFacet_Mention = new(RichtextFacet_Mention)
102+ return t.RichtextFacet_Mention.UnmarshalCBOR(bytes.NewReader(b))
103+ case "app.bsky.richtext.facet#link":
104+ t.RichtextFacet_Link = new(RichtextFacet_Link)
105+ return t.RichtextFacet_Link.UnmarshalCBOR(bytes.NewReader(b))
106+ case "app.bsky.richtext.facet#tag":
107+ t.RichtextFacet_Tag = new(RichtextFacet_Tag)
108+ return t.RichtextFacet_Tag.UnmarshalCBOR(bytes.NewReader(b))
109+110+ default:
111+ return nil
112+ }
113+}
114+115+// RichtextFacet_Link is a "link" in the app.bsky.richtext.facet schema.
116+//
117+// Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.
118+//
119+// RECORDTYPE: RichtextFacet_Link
120+type RichtextFacet_Link struct {
121+ LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#link" cborgen:"$type,const=app.bsky.richtext.facet#link"`
122+ Uri string `json:"uri" cborgen:"uri"`
123+}
124+125+// RichtextFacet_Mention is a "mention" in the app.bsky.richtext.facet schema.
126+//
127+// Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.
128+//
129+// RECORDTYPE: RichtextFacet_Mention
130+type RichtextFacet_Mention struct {
131+ LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#mention" cborgen:"$type,const=app.bsky.richtext.facet#mention"`
132+ Did string `json:"did" cborgen:"did"`
133+}
134+135+// RichtextFacet_Tag is a "tag" in the app.bsky.richtext.facet schema.
136+//
137+// Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').
138+//
139+// RECORDTYPE: RichtextFacet_Tag
140+type RichtextFacet_Tag struct {
141+ LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet#tag" cborgen:"$type,const=app.bsky.richtext.facet#tag"`
142+ Tag string `json:"tag" cborgen:"tag"`
143+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getSuggestedStarterPacksSkeleton
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedGetSuggestedStarterPacksSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedStarterPacksSkeleton call.
14+type UnspeccedGetSuggestedStarterPacksSkeleton_Output struct {
15+ StarterPacks []string `json:"starterPacks" cborgen:"starterPacks"`
16+}
17+18+// UnspeccedGetSuggestedStarterPacksSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestedStarterPacksSkeleton".
19+//
20+// viewer: DID of the account making the request (not included for public/unauthenticated queries).
21+func UnspeccedGetSuggestedStarterPacksSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetSuggestedStarterPacksSkeleton_Output, error) {
22+ var out UnspeccedGetSuggestedStarterPacksSkeleton_Output
23+24+ params := map[string]interface{}{
25+ "limit": limit,
26+ "viewer": viewer,
27+ }
28+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", params, nil, &out); err != nil {
29+ return nil, err
30+ }
31+32+ return &out, nil
33+}
+33
api/bsky/unspeccedgetSuggestedUsers.go
···000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getSuggestedUsers
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedGetSuggestedUsers_Output is the output of a app.bsky.unspecced.getSuggestedUsers call.
14+type UnspeccedGetSuggestedUsers_Output struct {
15+ Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"`
16+}
17+18+// UnspeccedGetSuggestedUsers calls the XRPC method "app.bsky.unspecced.getSuggestedUsers".
19+//
20+// category: Category of users to get suggestions for.
21+func UnspeccedGetSuggestedUsers(ctx context.Context, c *xrpc.Client, category string, limit int64) (*UnspeccedGetSuggestedUsers_Output, error) {
22+ var out UnspeccedGetSuggestedUsers_Output
23+24+ params := map[string]interface{}{
25+ "category": category,
26+ "limit": limit,
27+ }
28+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedUsers", params, nil, &out); err != nil {
29+ return nil, err
30+ }
31+32+ return &out, nil
33+}
+35
api/bsky/unspeccedgetSuggestedUsersSkeleton.go
···00000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getSuggestedUsersSkeleton
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedGetSuggestedUsersSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedUsersSkeleton call.
14+type UnspeccedGetSuggestedUsersSkeleton_Output struct {
15+ Dids []string `json:"dids" cborgen:"dids"`
16+}
17+18+// UnspeccedGetSuggestedUsersSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestedUsersSkeleton".
19+//
20+// category: Category of users to get suggestions for.
21+// viewer: DID of the account making the request (not included for public/unauthenticated queries).
22+func UnspeccedGetSuggestedUsersSkeleton(ctx context.Context, c *xrpc.Client, category string, limit int64, viewer string) (*UnspeccedGetSuggestedUsersSkeleton_Output, error) {
23+ var out UnspeccedGetSuggestedUsersSkeleton_Output
24+25+ params := map[string]interface{}{
26+ "category": category,
27+ "limit": limit,
28+ "viewer": viewer,
29+ }
30+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestedUsersSkeleton", params, nil, &out); err != nil {
31+ return nil, err
32+ }
33+34+ return &out, nil
35+}
+41
api/bsky/unspeccedgetSuggestionsSkeleton.go
···00000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getSuggestionsSkeleton
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedGetSuggestionsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestionsSkeleton call.
14+type UnspeccedGetSuggestionsSkeleton_Output struct {
15+ Actors []*UnspeccedDefs_SkeletonSearchActor `json:"actors" cborgen:"actors"`
16+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17+ // recId: Snowflake for this recommendation, use when submitting recommendation events.
18+ RecId *int64 `json:"recId,omitempty" cborgen:"recId,omitempty"`
19+ // relativeToDid: DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer.
20+ RelativeToDid *string `json:"relativeToDid,omitempty" cborgen:"relativeToDid,omitempty"`
21+}
22+23+// UnspeccedGetSuggestionsSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestionsSkeleton".
24+//
25+// relativeToDid: DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer.
26+// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
27+func UnspeccedGetSuggestionsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, relativeToDid string, viewer string) (*UnspeccedGetSuggestionsSkeleton_Output, error) {
28+ var out UnspeccedGetSuggestionsSkeleton_Output
29+30+ params := map[string]interface{}{
31+ "cursor": cursor,
32+ "limit": limit,
33+ "relativeToDid": relativeToDid,
34+ "viewer": viewer,
35+ }
36+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestionsSkeleton", params, nil, &out); err != nil {
37+ return nil, err
38+ }
39+40+ return &out, nil
41+}
+35
api/bsky/unspeccedgetTaggedSuggestions.go
···00000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getTaggedSuggestions
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedGetTaggedSuggestions_Output is the output of a app.bsky.unspecced.getTaggedSuggestions call.
14+type UnspeccedGetTaggedSuggestions_Output struct {
15+ Suggestions []*UnspeccedGetTaggedSuggestions_Suggestion `json:"suggestions" cborgen:"suggestions"`
16+}
17+18+// UnspeccedGetTaggedSuggestions_Suggestion is a "suggestion" in the app.bsky.unspecced.getTaggedSuggestions schema.
19+type UnspeccedGetTaggedSuggestions_Suggestion struct {
20+ Subject string `json:"subject" cborgen:"subject"`
21+ SubjectType string `json:"subjectType" cborgen:"subjectType"`
22+ Tag string `json:"tag" cborgen:"tag"`
23+}
24+25+// UnspeccedGetTaggedSuggestions calls the XRPC method "app.bsky.unspecced.getTaggedSuggestions".
26+func UnspeccedGetTaggedSuggestions(ctx context.Context, c *xrpc.Client) (*UnspeccedGetTaggedSuggestions_Output, error) {
27+ var out UnspeccedGetTaggedSuggestions_Output
28+29+ params := map[string]interface{}{}
30+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTaggedSuggestions", params, nil, &out); err != nil {
31+ return nil, err
32+ }
33+34+ return &out, nil
35+}
+34
api/bsky/unspeccedgetTrendingTopics.go
···0000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getTrendingTopics
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedGetTrendingTopics_Output is the output of a app.bsky.unspecced.getTrendingTopics call.
14+type UnspeccedGetTrendingTopics_Output struct {
15+ Suggested []*UnspeccedDefs_TrendingTopic `json:"suggested" cborgen:"suggested"`
16+ Topics []*UnspeccedDefs_TrendingTopic `json:"topics" cborgen:"topics"`
17+}
18+19+// UnspeccedGetTrendingTopics calls the XRPC method "app.bsky.unspecced.getTrendingTopics".
20+//
21+// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
22+func UnspeccedGetTrendingTopics(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetTrendingTopics_Output, error) {
23+ var out UnspeccedGetTrendingTopics_Output
24+25+ params := map[string]interface{}{
26+ "limit": limit,
27+ "viewer": viewer,
28+ }
29+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrendingTopics", params, nil, &out); err != nil {
30+ return nil, err
31+ }
32+33+ return &out, nil
34+}
+30
api/bsky/unspeccedgetTrends.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getTrends
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedGetTrends_Output is the output of a app.bsky.unspecced.getTrends call.
14+type UnspeccedGetTrends_Output struct {
15+ Trends []*UnspeccedDefs_TrendView `json:"trends" cborgen:"trends"`
16+}
17+18+// UnspeccedGetTrends calls the XRPC method "app.bsky.unspecced.getTrends".
19+func UnspeccedGetTrends(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetTrends_Output, error) {
20+ var out UnspeccedGetTrends_Output
21+22+ params := map[string]interface{}{
23+ "limit": limit,
24+ }
25+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrends", params, nil, &out); err != nil {
26+ return nil, err
27+ }
28+29+ return &out, nil
30+}
+33
api/bsky/unspeccedgetTrendsSkeleton.go
···000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getTrendsSkeleton
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedGetTrendsSkeleton_Output is the output of a app.bsky.unspecced.getTrendsSkeleton call.
14+type UnspeccedGetTrendsSkeleton_Output struct {
15+ Trends []*UnspeccedDefs_SkeletonTrend `json:"trends" cborgen:"trends"`
16+}
17+18+// UnspeccedGetTrendsSkeleton calls the XRPC method "app.bsky.unspecced.getTrendsSkeleton".
19+//
20+// viewer: DID of the account making the request (not included for public/unauthenticated queries).
21+func UnspeccedGetTrendsSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetTrendsSkeleton_Output, error) {
22+ var out UnspeccedGetTrendsSkeleton_Output
23+24+ params := map[string]interface{}{
25+ "limit": limit,
26+ "viewer": viewer,
27+ }
28+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrendsSkeleton", params, nil, &out); err != nil {
29+ return nil, err
30+ }
31+32+ return &out, nil
33+}
+42
api/bsky/unspeccedsearchActorsSkeleton.go
···000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.searchActorsSkeleton
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedSearchActorsSkeleton_Output is the output of a app.bsky.unspecced.searchActorsSkeleton call.
14+type UnspeccedSearchActorsSkeleton_Output struct {
15+ Actors []*UnspeccedDefs_SkeletonSearchActor `json:"actors" cborgen:"actors"`
16+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17+ // hitsTotal: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
18+ HitsTotal *int64 `json:"hitsTotal,omitempty" cborgen:"hitsTotal,omitempty"`
19+}
20+21+// UnspeccedSearchActorsSkeleton calls the XRPC method "app.bsky.unspecced.searchActorsSkeleton".
22+//
23+// cursor: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
24+// q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax.
25+// typeahead: If true, acts as fast/simple 'typeahead' query.
26+// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking.
27+func UnspeccedSearchActorsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, typeahead bool, viewer string) (*UnspeccedSearchActorsSkeleton_Output, error) {
28+ var out UnspeccedSearchActorsSkeleton_Output
29+30+ params := map[string]interface{}{
31+ "cursor": cursor,
32+ "limit": limit,
33+ "q": q,
34+ "typeahead": typeahead,
35+ "viewer": viewer,
36+ }
37+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchActorsSkeleton", params, nil, &out); err != nil {
38+ return nil, err
39+ }
40+41+ return &out, nil
42+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.searchPostsSkeleton
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedSearchPostsSkeleton_Output is the output of a app.bsky.unspecced.searchPostsSkeleton call.
14+type UnspeccedSearchPostsSkeleton_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ // hitsTotal: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
17+ HitsTotal *int64 `json:"hitsTotal,omitempty" cborgen:"hitsTotal,omitempty"`
18+ Posts []*UnspeccedDefs_SkeletonSearchPost `json:"posts" cborgen:"posts"`
19+}
20+21+// UnspeccedSearchPostsSkeleton calls the XRPC method "app.bsky.unspecced.searchPostsSkeleton".
22+//
23+// author: Filter to posts by the given account. Handles are resolved to DID before query-time.
24+// cursor: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
25+// domain: Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization.
26+// lang: Filter to posts in the given language. Expected to be based on post language field, though server may override language detection.
27+// mentions: Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions.
28+// q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
29+// since: Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD).
30+// sort: Specifies the ranking order of results.
31+// tag: Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching.
32+// until: Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD).
33+// url: Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching.
34+// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries.
35+func UnspeccedSearchPostsSkeleton(ctx context.Context, c *xrpc.Client, author string, cursor string, domain string, lang string, limit int64, mentions string, q string, since string, sort string, tag []string, until string, url string, viewer string) (*UnspeccedSearchPostsSkeleton_Output, error) {
36+ var out UnspeccedSearchPostsSkeleton_Output
37+38+ params := map[string]interface{}{
39+ "author": author,
40+ "cursor": cursor,
41+ "domain": domain,
42+ "lang": lang,
43+ "limit": limit,
44+ "mentions": mentions,
45+ "q": q,
46+ "since": since,
47+ "sort": sort,
48+ "tag": tag,
49+ "until": until,
50+ "url": url,
51+ "viewer": viewer,
52+ }
53+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchPostsSkeleton", params, nil, &out); err != nil {
54+ return nil, err
55+ }
56+57+ return &out, nil
58+}
+40
api/bsky/unspeccedsearchStarterPacksSkeleton.go
···0000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.searchStarterPacksSkeleton
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// UnspeccedSearchStarterPacksSkeleton_Output is the output of a app.bsky.unspecced.searchStarterPacksSkeleton call.
14+type UnspeccedSearchStarterPacksSkeleton_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ // hitsTotal: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
17+ HitsTotal *int64 `json:"hitsTotal,omitempty" cborgen:"hitsTotal,omitempty"`
18+ StarterPacks []*UnspeccedDefs_SkeletonSearchStarterPack `json:"starterPacks" cborgen:"starterPacks"`
19+}
20+21+// UnspeccedSearchStarterPacksSkeleton calls the XRPC method "app.bsky.unspecced.searchStarterPacksSkeleton".
22+//
23+// cursor: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
24+// q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
25+// viewer: DID of the account making the request (not included for public/unauthenticated queries).
26+func UnspeccedSearchStarterPacksSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, viewer string) (*UnspeccedSearchStarterPacksSkeleton_Output, error) {
27+ var out UnspeccedSearchStarterPacksSkeleton_Output
28+29+ params := map[string]interface{}{
30+ "cursor": cursor,
31+ "limit": limit,
32+ "q": q,
33+ "viewer": viewer,
34+ }
35+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.searchStarterPacksSkeleton", params, nil, &out); err != nil {
36+ return nil, err
37+ }
38+39+ return &out, nil
40+}
+22
api/bsky/videodefs.go
···0000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.video.defs
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+// VideoDefs_JobStatus is a "jobStatus" in the app.bsky.video.defs schema.
12+type VideoDefs_JobStatus struct {
13+ Blob *util.LexBlob `json:"blob,omitempty" cborgen:"blob,omitempty"`
14+ Did string `json:"did" cborgen:"did"`
15+ Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
16+ JobId string `json:"jobId" cborgen:"jobId"`
17+ Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
18+ // progress: Progress within the current processing state.
19+ Progress *int64 `json:"progress,omitempty" cborgen:"progress,omitempty"`
20+ // state: The state of the video processing job. All values not listed as a known value indicate that the job is in process.
21+ State string `json:"state" cborgen:"state"`
22+}
+30
api/bsky/videogetJobStatus.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.video.getJobStatus
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// VideoGetJobStatus_Output is the output of a app.bsky.video.getJobStatus call.
14+type VideoGetJobStatus_Output struct {
15+ JobStatus *VideoDefs_JobStatus `json:"jobStatus" cborgen:"jobStatus"`
16+}
17+18+// VideoGetJobStatus calls the XRPC method "app.bsky.video.getJobStatus".
19+func VideoGetJobStatus(ctx context.Context, c *xrpc.Client, jobId string) (*VideoGetJobStatus_Output, error) {
20+ var out VideoGetJobStatus_Output
21+22+ params := map[string]interface{}{
23+ "jobId": jobId,
24+ }
25+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.video.getJobStatus", params, nil, &out); err != nil {
26+ return nil, err
27+ }
28+29+ return &out, nil
30+}
+30
api/bsky/videogetUploadLimits.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.video.getUploadLimits
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// VideoGetUploadLimits_Output is the output of a app.bsky.video.getUploadLimits call.
14+type VideoGetUploadLimits_Output struct {
15+ CanUpload bool `json:"canUpload" cborgen:"canUpload"`
16+ Error *string `json:"error,omitempty" cborgen:"error,omitempty"`
17+ Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
18+ RemainingDailyBytes *int64 `json:"remainingDailyBytes,omitempty" cborgen:"remainingDailyBytes,omitempty"`
19+ RemainingDailyVideos *int64 `json:"remainingDailyVideos,omitempty" cborgen:"remainingDailyVideos,omitempty"`
20+}
21+22+// VideoGetUploadLimits calls the XRPC method "app.bsky.video.getUploadLimits".
23+func VideoGetUploadLimits(ctx context.Context, c *xrpc.Client) (*VideoGetUploadLimits_Output, error) {
24+ var out VideoGetUploadLimits_Output
25+ if err := c.Do(ctx, xrpc.Query, "", "app.bsky.video.getUploadLimits", nil, nil, &out); err != nil {
26+ return nil, err
27+ }
28+29+ return &out, nil
30+}
+27
api/bsky/videouploadVideo.go
···000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.video.uploadVideo
6+7+import (
8+ "context"
9+ "io"
10+11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// VideoUploadVideo_Output is the output of a app.bsky.video.uploadVideo call.
15+type VideoUploadVideo_Output struct {
16+ JobStatus *VideoDefs_JobStatus `json:"jobStatus" cborgen:"jobStatus"`
17+}
18+19+// VideoUploadVideo calls the XRPC method "app.bsky.video.uploadVideo".
20+func VideoUploadVideo(ctx context.Context, c *xrpc.Client, input io.Reader) (*VideoUploadVideo_Output, error) {
21+ var out VideoUploadVideo_Output
22+ if err := c.Do(ctx, xrpc.Procedure, "video/mp4", "app.bsky.video.uploadVideo", nil, input, &out); err != nil {
23+ return nil, err
24+ }
25+26+ return &out, nil
27+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package chat
4+5+// schema: chat.bsky.moderation.getMessageContext
6+7+import (
8+ "context"
9+ "encoding/json"
10+ "fmt"
11+12+ "github.com/bluesky-social/indigo/lex/util"
13+ "github.com/bluesky-social/indigo/xrpc"
14+)
15+16+// ModerationGetMessageContext_Output is the output of a chat.bsky.moderation.getMessageContext call.
17+type ModerationGetMessageContext_Output struct {
18+ Messages []*ModerationGetMessageContext_Output_Messages_Elem `json:"messages" cborgen:"messages"`
19+}
20+21+type ModerationGetMessageContext_Output_Messages_Elem struct {
22+ ConvoDefs_MessageView *ConvoDefs_MessageView
23+ ConvoDefs_DeletedMessageView *ConvoDefs_DeletedMessageView
24+}
25+26+func (t *ModerationGetMessageContext_Output_Messages_Elem) MarshalJSON() ([]byte, error) {
27+ if t.ConvoDefs_MessageView != nil {
28+ t.ConvoDefs_MessageView.LexiconTypeID = "chat.bsky.convo.defs#messageView"
29+ return json.Marshal(t.ConvoDefs_MessageView)
30+ }
31+ if t.ConvoDefs_DeletedMessageView != nil {
32+ t.ConvoDefs_DeletedMessageView.LexiconTypeID = "chat.bsky.convo.defs#deletedMessageView"
33+ return json.Marshal(t.ConvoDefs_DeletedMessageView)
34+ }
35+ return nil, fmt.Errorf("cannot marshal empty enum")
36+}
37+func (t *ModerationGetMessageContext_Output_Messages_Elem) UnmarshalJSON(b []byte) error {
38+ typ, err := util.TypeExtract(b)
39+ if err != nil {
40+ return err
41+ }
42+43+ switch typ {
44+ case "chat.bsky.convo.defs#messageView":
45+ t.ConvoDefs_MessageView = new(ConvoDefs_MessageView)
46+ return json.Unmarshal(b, t.ConvoDefs_MessageView)
47+ case "chat.bsky.convo.defs#deletedMessageView":
48+ t.ConvoDefs_DeletedMessageView = new(ConvoDefs_DeletedMessageView)
49+ return json.Unmarshal(b, t.ConvoDefs_DeletedMessageView)
50+51+ default:
52+ return nil
53+ }
54+}
55+56+// ModerationGetMessageContext calls the XRPC method "chat.bsky.moderation.getMessageContext".
57+//
58+// convoId: Conversation that the message is from. NOTE: this field will eventually be required.
59+func ModerationGetMessageContext(ctx context.Context, c *xrpc.Client, after int64, before int64, convoId string, messageId string) (*ModerationGetMessageContext_Output, error) {
60+ var out ModerationGetMessageContext_Output
61+62+ params := map[string]interface{}{
63+ "after": after,
64+ "before": before,
65+ "convoId": convoId,
66+ "messageId": messageId,
67+ }
68+ if err := c.Do(ctx, xrpc.Query, "", "chat.bsky.moderation.getMessageContext", params, nil, &out); err != nil {
69+ return nil, err
70+ }
71+72+ return &out, nil
73+}
+27
api/chat/moderationupdateActorAccess.go
···000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package chat
4+5+// schema: chat.bsky.moderation.updateActorAccess
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ModerationUpdateActorAccess_Input is the input argument to a chat.bsky.moderation.updateActorAccess call.
14+type ModerationUpdateActorAccess_Input struct {
15+ Actor string `json:"actor" cborgen:"actor"`
16+ AllowAccess bool `json:"allowAccess" cborgen:"allowAccess"`
17+ Ref *string `json:"ref,omitempty" cborgen:"ref,omitempty"`
18+}
19+20+// ModerationUpdateActorAccess calls the XRPC method "chat.bsky.moderation.updateActorAccess".
21+func ModerationUpdateActorAccess(ctx context.Context, c *xrpc.Client, input *ModerationUpdateActorAccess_Input) error {
22+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.moderation.updateActorAccess", nil, input, nil); err != nil {
23+ return err
24+ }
25+26+ return nil
27+}
+35
api/ozone/communicationcreateTemplate.go
···00000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.communication.createTemplate
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// CommunicationCreateTemplate_Input is the input argument to a tools.ozone.communication.createTemplate call.
14+type CommunicationCreateTemplate_Input struct {
15+ // contentMarkdown: Content of the template, markdown supported, can contain variable placeholders.
16+ ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"`
17+ // createdBy: DID of the user who is creating the template.
18+ CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"`
19+ // lang: Message language.
20+ Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
21+ // name: Name of the template.
22+ Name string `json:"name" cborgen:"name"`
23+ // subject: Subject of the message, used in emails.
24+ Subject string `json:"subject" cborgen:"subject"`
25+}
26+27+// CommunicationCreateTemplate calls the XRPC method "tools.ozone.communication.createTemplate".
28+func CommunicationCreateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationCreateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
29+ var out CommunicationDefs_TemplateView
30+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.createTemplate", nil, input, &out); err != nil {
31+ return nil, err
32+ }
33+34+ return &out, nil
35+}
+23
api/ozone/communicationdefs.go
···00000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.communication.defs
6+7+// CommunicationDefs_TemplateView is a "templateView" in the tools.ozone.communication.defs schema.
8+type CommunicationDefs_TemplateView struct {
9+ // contentMarkdown: Subject of the message, used in emails.
10+ ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"`
11+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
12+ Disabled bool `json:"disabled" cborgen:"disabled"`
13+ Id string `json:"id" cborgen:"id"`
14+ // lang: Message language.
15+ Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
16+ // lastUpdatedBy: DID of the user who last updated the template.
17+ LastUpdatedBy string `json:"lastUpdatedBy" cborgen:"lastUpdatedBy"`
18+ // name: Name of the template.
19+ Name string `json:"name" cborgen:"name"`
20+ // subject: Content of the template, can contain markdown and variable placeholders.
21+ Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
22+ UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"`
23+}
+25
api/ozone/communicationdeleteTemplate.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.communication.deleteTemplate
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// CommunicationDeleteTemplate_Input is the input argument to a tools.ozone.communication.deleteTemplate call.
14+type CommunicationDeleteTemplate_Input struct {
15+ Id string `json:"id" cborgen:"id"`
16+}
17+18+// CommunicationDeleteTemplate calls the XRPC method "tools.ozone.communication.deleteTemplate".
19+func CommunicationDeleteTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationDeleteTemplate_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.deleteTemplate", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+26
api/ozone/communicationlistTemplates.go
···00000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.communication.listTemplates
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// CommunicationListTemplates_Output is the output of a tools.ozone.communication.listTemplates call.
14+type CommunicationListTemplates_Output struct {
15+ CommunicationTemplates []*CommunicationDefs_TemplateView `json:"communicationTemplates" cborgen:"communicationTemplates"`
16+}
17+18+// CommunicationListTemplates calls the XRPC method "tools.ozone.communication.listTemplates".
19+func CommunicationListTemplates(ctx context.Context, c *xrpc.Client) (*CommunicationListTemplates_Output, error) {
20+ var out CommunicationListTemplates_Output
21+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.communication.listTemplates", nil, nil, &out); err != nil {
22+ return nil, err
23+ }
24+25+ return &out, nil
26+}
+38
api/ozone/communicationupdateTemplate.go
···00000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.communication.updateTemplate
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// CommunicationUpdateTemplate_Input is the input argument to a tools.ozone.communication.updateTemplate call.
14+type CommunicationUpdateTemplate_Input struct {
15+ // contentMarkdown: Content of the template, markdown supported, can contain variable placeholders.
16+ ContentMarkdown *string `json:"contentMarkdown,omitempty" cborgen:"contentMarkdown,omitempty"`
17+ Disabled *bool `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
18+ // id: ID of the template to be updated.
19+ Id string `json:"id" cborgen:"id"`
20+ // lang: Message language.
21+ Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"`
22+ // name: Name of the template.
23+ Name *string `json:"name,omitempty" cborgen:"name,omitempty"`
24+ // subject: Subject of the message, used in emails.
25+ Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
26+ // updatedBy: DID of the user who is updating the template.
27+ UpdatedBy *string `json:"updatedBy,omitempty" cborgen:"updatedBy,omitempty"`
28+}
29+30+// CommunicationUpdateTemplate calls the XRPC method "tools.ozone.communication.updateTemplate".
31+func CommunicationUpdateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationUpdateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
32+ var out CommunicationDefs_TemplateView
33+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.updateTemplate", nil, input, &out); err != nil {
34+ return nil, err
35+ }
36+37+ return &out, nil
38+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.moderation.queryEvents
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ModerationQueryEvents_Output is the output of a tools.ozone.moderation.queryEvents call.
14+type ModerationQueryEvents_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Events []*ModerationDefs_ModEventView `json:"events" cborgen:"events"`
17+}
18+19+// ModerationQueryEvents calls the XRPC method "tools.ozone.moderation.queryEvents".
20+//
21+// addedLabels: If specified, only events where all of these labels were added are returned
22+// addedTags: If specified, only events where all of these tags were added are returned
23+// collections: If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
24+// comment: If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.
25+// createdAfter: Retrieve events created after a given timestamp
26+// createdBefore: Retrieve events created before a given timestamp
27+// hasComment: If true, only events with comments are returned
28+// includeAllUserRecords: If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
29+// removedLabels: If specified, only events where all of these labels were removed are returned
30+// removedTags: If specified, only events where all of these tags were removed are returned
31+// sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp.
32+// subjectType: If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
33+// types: The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.
34+func ModerationQueryEvents(ctx context.Context, c *xrpc.Client, addedLabels []string, addedTags []string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) {
35+ var out ModerationQueryEvents_Output
36+37+ params := map[string]interface{}{
38+ "addedLabels": addedLabels,
39+ "addedTags": addedTags,
40+ "collections": collections,
41+ "comment": comment,
42+ "createdAfter": createdAfter,
43+ "createdBefore": createdBefore,
44+ "createdBy": createdBy,
45+ "cursor": cursor,
46+ "hasComment": hasComment,
47+ "includeAllUserRecords": includeAllUserRecords,
48+ "limit": limit,
49+ "policies": policies,
50+ "removedLabels": removedLabels,
51+ "removedTags": removedTags,
52+ "reportTypes": reportTypes,
53+ "sortDirection": sortDirection,
54+ "subject": subject,
55+ "subjectType": subjectType,
56+ "types": types,
57+ }
58+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil {
59+ return nil, err
60+ }
61+62+ return &out, nil
63+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.moderation.queryStatuses
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ModerationQueryStatuses_Output is the output of a tools.ozone.moderation.queryStatuses call.
14+type ModerationQueryStatuses_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ SubjectStatuses []*ModerationDefs_SubjectStatusView `json:"subjectStatuses" cborgen:"subjectStatuses"`
17+}
18+19+// ModerationQueryStatuses calls the XRPC method "tools.ozone.moderation.queryStatuses".
20+//
21+// appealed: Get subjects in unresolved appealed status
22+// collections: If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
23+// comment: Search subjects by keyword from comments
24+// hostingDeletedAfter: Search subjects where the associated record/account was deleted after a given timestamp
25+// hostingDeletedBefore: Search subjects where the associated record/account was deleted before a given timestamp
26+// hostingStatuses: Search subjects by the status of the associated record/account
27+// hostingUpdatedAfter: Search subjects where the associated record/account was updated after a given timestamp
28+// hostingUpdatedBefore: Search subjects where the associated record/account was updated before a given timestamp
29+// includeAllUserRecords: All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned.
30+// includeMuted: By default, we don't include muted subjects in the results. Set this to true to include them.
31+// lastReviewedBy: Get all subject statuses that were reviewed by a specific moderator
32+// minAccountSuspendCount: If specified, only subjects that belong to an account that has at least this many suspensions will be returned.
33+// minPriorityScore: If specified, only subjects that have priority score value above the given value will be returned.
34+// minReportedRecordsCount: If specified, only subjects that belong to an account that has at least this many reported records will be returned.
35+// minTakendownRecordsCount: If specified, only subjects that belong to an account that has at least this many taken down records will be returned.
36+// onlyMuted: When set to true, only muted subjects and reporters will be returned.
37+// queueCount: Number of queues being used by moderators. Subjects will be split among all queues.
38+// queueIndex: Index of the queue to fetch subjects from. Works only when queueCount value is specified.
39+// queueSeed: A seeder to shuffle/balance the queue items.
40+// reportedAfter: Search subjects reported after a given timestamp
41+// reportedBefore: Search subjects reported before a given timestamp
42+// reviewState: Specify when fetching subjects in a certain state
43+// reviewedAfter: Search subjects reviewed after a given timestamp
44+// reviewedBefore: Search subjects reviewed before a given timestamp
45+// subject: The subject to get the status for.
46+// subjectType: If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
47+// takendown: Get subjects that were taken down
48+func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
49+ var out ModerationQueryStatuses_Output
50+51+ params := map[string]interface{}{
52+ "appealed": appealed,
53+ "collections": collections,
54+ "comment": comment,
55+ "cursor": cursor,
56+ "excludeTags": excludeTags,
57+ "hostingDeletedAfter": hostingDeletedAfter,
58+ "hostingDeletedBefore": hostingDeletedBefore,
59+ "hostingStatuses": hostingStatuses,
60+ "hostingUpdatedAfter": hostingUpdatedAfter,
61+ "hostingUpdatedBefore": hostingUpdatedBefore,
62+ "ignoreSubjects": ignoreSubjects,
63+ "includeAllUserRecords": includeAllUserRecords,
64+ "includeMuted": includeMuted,
65+ "lastReviewedBy": lastReviewedBy,
66+ "limit": limit,
67+ "minAccountSuspendCount": minAccountSuspendCount,
68+ "minPriorityScore": minPriorityScore,
69+ "minReportedRecordsCount": minReportedRecordsCount,
70+ "minTakendownRecordsCount": minTakendownRecordsCount,
71+ "onlyMuted": onlyMuted,
72+ "queueCount": queueCount,
73+ "queueIndex": queueIndex,
74+ "queueSeed": queueSeed,
75+ "reportedAfter": reportedAfter,
76+ "reportedBefore": reportedBefore,
77+ "reviewState": reviewState,
78+ "reviewedAfter": reviewedAfter,
79+ "reviewedBefore": reviewedBefore,
80+ "sortDirection": sortDirection,
81+ "sortField": sortField,
82+ "subject": subject,
83+ "subjectType": subjectType,
84+ "tags": tags,
85+ "takendown": takendown,
86+ }
87+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryStatuses", params, nil, &out); err != nil {
88+ return nil, err
89+ }
90+91+ return &out, nil
92+}
+36
api/ozone/moderationsearchRepos.go
···000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.moderation.searchRepos
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ModerationSearchRepos_Output is the output of a tools.ozone.moderation.searchRepos call.
14+type ModerationSearchRepos_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Repos []*ModerationDefs_RepoView `json:"repos" cborgen:"repos"`
17+}
18+19+// ModerationSearchRepos calls the XRPC method "tools.ozone.moderation.searchRepos".
20+//
21+// term: DEPRECATED: use 'q' instead
22+func ModerationSearchRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ModerationSearchRepos_Output, error) {
23+ var out ModerationSearchRepos_Output
24+25+ params := map[string]interface{}{
26+ "cursor": cursor,
27+ "limit": limit,
28+ "q": q,
29+ "term": term,
30+ }
31+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.searchRepos", params, nil, &out); err != nil {
32+ return nil, err
33+ }
34+35+ return &out, nil
36+}
+42
api/ozone/servergetConfig.go
···000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.server.getConfig
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// ServerGetConfig_Output is the output of a tools.ozone.server.getConfig call.
14+type ServerGetConfig_Output struct {
15+ Appview *ServerGetConfig_ServiceConfig `json:"appview,omitempty" cborgen:"appview,omitempty"`
16+ BlobDivert *ServerGetConfig_ServiceConfig `json:"blobDivert,omitempty" cborgen:"blobDivert,omitempty"`
17+ Chat *ServerGetConfig_ServiceConfig `json:"chat,omitempty" cborgen:"chat,omitempty"`
18+ Pds *ServerGetConfig_ServiceConfig `json:"pds,omitempty" cborgen:"pds,omitempty"`
19+ // verifierDid: The did of the verifier used for verification.
20+ VerifierDid *string `json:"verifierDid,omitempty" cborgen:"verifierDid,omitempty"`
21+ Viewer *ServerGetConfig_ViewerConfig `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
22+}
23+24+// ServerGetConfig_ServiceConfig is a "serviceConfig" in the tools.ozone.server.getConfig schema.
25+type ServerGetConfig_ServiceConfig struct {
26+ Url *string `json:"url,omitempty" cborgen:"url,omitempty"`
27+}
28+29+// ServerGetConfig_ViewerConfig is a "viewerConfig" in the tools.ozone.server.getConfig schema.
30+type ServerGetConfig_ViewerConfig struct {
31+ Role *string `json:"role,omitempty" cborgen:"role,omitempty"`
32+}
33+34+// ServerGetConfig calls the XRPC method "tools.ozone.server.getConfig".
35+func ServerGetConfig(ctx context.Context, c *xrpc.Client) (*ServerGetConfig_Output, error) {
36+ var out ServerGetConfig_Output
37+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.server.getConfig", nil, nil, &out); err != nil {
38+ return nil, err
39+ }
40+41+ return &out, nil
42+}
+28
api/ozone/setaddValues.go
···0000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.set.addValues
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SetAddValues_Input is the input argument to a tools.ozone.set.addValues call.
14+type SetAddValues_Input struct {
15+ // name: Name of the set to add values to
16+ Name string `json:"name" cborgen:"name"`
17+ // values: Array of string values to add to the set
18+ Values []string `json:"values" cborgen:"values"`
19+}
20+21+// SetAddValues calls the XRPC method "tools.ozone.set.addValues".
22+func SetAddValues(ctx context.Context, c *xrpc.Client, input *SetAddValues_Input) error {
23+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.addValues", nil, input, nil); err != nil {
24+ return err
25+ }
26+27+ return nil
28+}
+20
api/ozone/setdefs.go
···00000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.set.defs
6+7+// SetDefs_Set is a "set" in the tools.ozone.set.defs schema.
8+type SetDefs_Set struct {
9+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
10+ Name string `json:"name" cborgen:"name"`
11+}
12+13+// SetDefs_SetView is a "setView" in the tools.ozone.set.defs schema.
14+type SetDefs_SetView struct {
15+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
16+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
17+ Name string `json:"name" cborgen:"name"`
18+ SetSize int64 `json:"setSize" cborgen:"setSize"`
19+ UpdatedAt string `json:"updatedAt" cborgen:"updatedAt"`
20+}
+31
api/ozone/setdeleteSet.go
···0000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.set.deleteSet
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SetDeleteSet_Input is the input argument to a tools.ozone.set.deleteSet call.
14+type SetDeleteSet_Input struct {
15+ // name: Name of the set to delete
16+ Name string `json:"name" cborgen:"name"`
17+}
18+19+// SetDeleteSet_Output is the output of a tools.ozone.set.deleteSet call.
20+type SetDeleteSet_Output struct {
21+}
22+23+// SetDeleteSet calls the XRPC method "tools.ozone.set.deleteSet".
24+func SetDeleteSet(ctx context.Context, c *xrpc.Client, input *SetDeleteSet_Input) (*SetDeleteSet_Output, error) {
25+ var out SetDeleteSet_Output
26+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.deleteSet", nil, input, &out); err != nil {
27+ return nil, err
28+ }
29+30+ return &out, nil
31+}
+28
api/ozone/setdeleteValues.go
···0000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.set.deleteValues
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SetDeleteValues_Input is the input argument to a tools.ozone.set.deleteValues call.
14+type SetDeleteValues_Input struct {
15+ // name: Name of the set to delete values from
16+ Name string `json:"name" cborgen:"name"`
17+ // values: Array of string values to delete from the set
18+ Values []string `json:"values" cborgen:"values"`
19+}
20+21+// SetDeleteValues calls the XRPC method "tools.ozone.set.deleteValues".
22+func SetDeleteValues(ctx context.Context, c *xrpc.Client, input *SetDeleteValues_Input) error {
23+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.deleteValues", nil, input, nil); err != nil {
24+ return err
25+ }
26+27+ return nil
28+}
+34
api/ozone/setgetValues.go
···0000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.set.getValues
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SetGetValues_Output is the output of a tools.ozone.set.getValues call.
14+type SetGetValues_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Set *SetDefs_SetView `json:"set" cborgen:"set"`
17+ Values []string `json:"values" cborgen:"values"`
18+}
19+20+// SetGetValues calls the XRPC method "tools.ozone.set.getValues".
21+func SetGetValues(ctx context.Context, c *xrpc.Client, cursor string, limit int64, name string) (*SetGetValues_Output, error) {
22+ var out SetGetValues_Output
23+24+ params := map[string]interface{}{
25+ "cursor": cursor,
26+ "limit": limit,
27+ "name": name,
28+ }
29+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.getValues", params, nil, &out); err != nil {
30+ return nil, err
31+ }
32+33+ return &out, nil
34+}
+37
api/ozone/setquerySets.go
···0000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.set.querySets
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SetQuerySets_Output is the output of a tools.ozone.set.querySets call.
14+type SetQuerySets_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Sets []*SetDefs_SetView `json:"sets" cborgen:"sets"`
17+}
18+19+// SetQuerySets calls the XRPC method "tools.ozone.set.querySets".
20+//
21+// sortDirection: Defaults to ascending order of name field.
22+func SetQuerySets(ctx context.Context, c *xrpc.Client, cursor string, limit int64, namePrefix string, sortBy string, sortDirection string) (*SetQuerySets_Output, error) {
23+ var out SetQuerySets_Output
24+25+ params := map[string]interface{}{
26+ "cursor": cursor,
27+ "limit": limit,
28+ "namePrefix": namePrefix,
29+ "sortBy": sortBy,
30+ "sortDirection": sortDirection,
31+ }
32+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.querySets", params, nil, &out); err != nil {
33+ return nil, err
34+ }
35+36+ return &out, nil
37+}
+23
api/ozone/settingdefs.go
···00000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.setting.defs
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+// SettingDefs_Option is a "option" in the tools.ozone.setting.defs schema.
12+type SettingDefs_Option struct {
13+ CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
14+ CreatedBy string `json:"createdBy" cborgen:"createdBy"`
15+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
16+ Did string `json:"did" cborgen:"did"`
17+ Key string `json:"key" cborgen:"key"`
18+ LastUpdatedBy string `json:"lastUpdatedBy" cborgen:"lastUpdatedBy"`
19+ ManagerRole *string `json:"managerRole,omitempty" cborgen:"managerRole,omitempty"`
20+ Scope string `json:"scope" cborgen:"scope"`
21+ UpdatedAt *string `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
22+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
23+}
+38
api/ozone/settinglistOptions.go
···00000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.setting.listOptions
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SettingListOptions_Output is the output of a tools.ozone.setting.listOptions call.
14+type SettingListOptions_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Options []*SettingDefs_Option `json:"options" cborgen:"options"`
17+}
18+19+// SettingListOptions calls the XRPC method "tools.ozone.setting.listOptions".
20+//
21+// keys: Filter for only the specified keys. Ignored if prefix is provided
22+// prefix: Filter keys by prefix
23+func SettingListOptions(ctx context.Context, c *xrpc.Client, cursor string, keys []string, limit int64, prefix string, scope string) (*SettingListOptions_Output, error) {
24+ var out SettingListOptions_Output
25+26+ params := map[string]interface{}{
27+ "cursor": cursor,
28+ "keys": keys,
29+ "limit": limit,
30+ "prefix": prefix,
31+ "scope": scope,
32+ }
33+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.setting.listOptions", params, nil, &out); err != nil {
34+ return nil, err
35+ }
36+37+ return &out, nil
38+}
+31
api/ozone/settingremoveOptions.go
···0000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.setting.removeOptions
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SettingRemoveOptions_Input is the input argument to a tools.ozone.setting.removeOptions call.
14+type SettingRemoveOptions_Input struct {
15+ Keys []string `json:"keys" cborgen:"keys"`
16+ Scope string `json:"scope" cborgen:"scope"`
17+}
18+19+// SettingRemoveOptions_Output is the output of a tools.ozone.setting.removeOptions call.
20+type SettingRemoveOptions_Output struct {
21+}
22+23+// SettingRemoveOptions calls the XRPC method "tools.ozone.setting.removeOptions".
24+func SettingRemoveOptions(ctx context.Context, c *xrpc.Client, input *SettingRemoveOptions_Input) (*SettingRemoveOptions_Output, error) {
25+ var out SettingRemoveOptions_Output
26+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.setting.removeOptions", nil, input, &out); err != nil {
27+ return nil, err
28+ }
29+30+ return &out, nil
31+}
+36
api/ozone/settingupsertOption.go
···000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.setting.upsertOption
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/lex/util"
11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// SettingUpsertOption_Input is the input argument to a tools.ozone.setting.upsertOption call.
15+type SettingUpsertOption_Input struct {
16+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
17+ Key string `json:"key" cborgen:"key"`
18+ ManagerRole *string `json:"managerRole,omitempty" cborgen:"managerRole,omitempty"`
19+ Scope string `json:"scope" cborgen:"scope"`
20+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
21+}
22+23+// SettingUpsertOption_Output is the output of a tools.ozone.setting.upsertOption call.
24+type SettingUpsertOption_Output struct {
25+ Option *SettingDefs_Option `json:"option" cborgen:"option"`
26+}
27+28+// SettingUpsertOption calls the XRPC method "tools.ozone.setting.upsertOption".
29+func SettingUpsertOption(ctx context.Context, c *xrpc.Client, input *SettingUpsertOption_Input) (*SettingUpsertOption_Output, error) {
30+ var out SettingUpsertOption_Output
31+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.setting.upsertOption", nil, input, &out); err != nil {
32+ return nil, err
33+ }
34+35+ return &out, nil
36+}
+21
api/ozone/setupsertSet.go
···000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.set.upsertSet
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SetUpsertSet calls the XRPC method "tools.ozone.set.upsertSet".
14+func SetUpsertSet(ctx context.Context, c *xrpc.Client, input *SetDefs_Set) (*SetDefs_SetView, error) {
15+ var out SetDefs_SetView
16+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.set.upsertSet", nil, input, &out); err != nil {
17+ return nil, err
18+ }
19+20+ return &out, nil
21+}
+11
api/ozone/signaturedefs.go
···00000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.signature.defs
6+7+// SignatureDefs_SigDetail is a "sigDetail" in the tools.ozone.signature.defs schema.
8+type SignatureDefs_SigDetail struct {
9+ Property string `json:"property" cborgen:"property"`
10+ Value string `json:"value" cborgen:"value"`
11+}
+30
api/ozone/signaturefindCorrelation.go
···000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.signature.findCorrelation
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// SignatureFindCorrelation_Output is the output of a tools.ozone.signature.findCorrelation call.
14+type SignatureFindCorrelation_Output struct {
15+ Details []*SignatureDefs_SigDetail `json:"details" cborgen:"details"`
16+}
17+18+// SignatureFindCorrelation calls the XRPC method "tools.ozone.signature.findCorrelation".
19+func SignatureFindCorrelation(ctx context.Context, c *xrpc.Client, dids []string) (*SignatureFindCorrelation_Output, error) {
20+ var out SignatureFindCorrelation_Output
21+22+ params := map[string]interface{}{
23+ "dids": dids,
24+ }
25+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.findCorrelation", params, nil, &out); err != nil {
26+ return nil, err
27+ }
28+29+ return &out, nil
30+}
+40
api/ozone/signaturefindRelatedAccounts.go
···0000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.signature.findRelatedAccounts
6+7+import (
8+ "context"
9+10+ comatprototypes "github.com/bluesky-social/indigo/api/atproto"
11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// SignatureFindRelatedAccounts_Output is the output of a tools.ozone.signature.findRelatedAccounts call.
15+type SignatureFindRelatedAccounts_Output struct {
16+ Accounts []*SignatureFindRelatedAccounts_RelatedAccount `json:"accounts" cborgen:"accounts"`
17+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
18+}
19+20+// SignatureFindRelatedAccounts_RelatedAccount is a "relatedAccount" in the tools.ozone.signature.findRelatedAccounts schema.
21+type SignatureFindRelatedAccounts_RelatedAccount struct {
22+ Account *comatprototypes.AdminDefs_AccountView `json:"account" cborgen:"account"`
23+ Similarities []*SignatureDefs_SigDetail `json:"similarities,omitempty" cborgen:"similarities,omitempty"`
24+}
25+26+// SignatureFindRelatedAccounts calls the XRPC method "tools.ozone.signature.findRelatedAccounts".
27+func SignatureFindRelatedAccounts(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64) (*SignatureFindRelatedAccounts_Output, error) {
28+ var out SignatureFindRelatedAccounts_Output
29+30+ params := map[string]interface{}{
31+ "cursor": cursor,
32+ "did": did,
33+ "limit": limit,
34+ }
35+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.findRelatedAccounts", params, nil, &out); err != nil {
36+ return nil, err
37+ }
38+39+ return &out, nil
40+}
+34
api/ozone/signaturesearchAccounts.go
···0000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.signature.searchAccounts
6+7+import (
8+ "context"
9+10+ comatprototypes "github.com/bluesky-social/indigo/api/atproto"
11+ "github.com/bluesky-social/indigo/xrpc"
12+)
13+14+// SignatureSearchAccounts_Output is the output of a tools.ozone.signature.searchAccounts call.
15+type SignatureSearchAccounts_Output struct {
16+ Accounts []*comatprototypes.AdminDefs_AccountView `json:"accounts" cborgen:"accounts"`
17+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
18+}
19+20+// SignatureSearchAccounts calls the XRPC method "tools.ozone.signature.searchAccounts".
21+func SignatureSearchAccounts(ctx context.Context, c *xrpc.Client, cursor string, limit int64, values []string) (*SignatureSearchAccounts_Output, error) {
22+ var out SignatureSearchAccounts_Output
23+24+ params := map[string]interface{}{
25+ "cursor": cursor,
26+ "limit": limit,
27+ "values": values,
28+ }
29+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.signature.searchAccounts", params, nil, &out); err != nil {
30+ return nil, err
31+ }
32+33+ return &out, nil
34+}
+27
api/ozone/teamaddMember.go
···000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.team.addMember
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// TeamAddMember_Input is the input argument to a tools.ozone.team.addMember call.
14+type TeamAddMember_Input struct {
15+ Did string `json:"did" cborgen:"did"`
16+ Role string `json:"role" cborgen:"role"`
17+}
18+19+// TeamAddMember calls the XRPC method "tools.ozone.team.addMember".
20+func TeamAddMember(ctx context.Context, c *xrpc.Client, input *TeamAddMember_Input) (*TeamDefs_Member, error) {
21+ var out TeamDefs_Member
22+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.team.addMember", nil, input, &out); err != nil {
23+ return nil, err
24+ }
25+26+ return &out, nil
27+}
+20
api/ozone/teamdefs.go
···00000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.team.defs
6+7+import (
8+ appbskytypes "github.com/bluesky-social/indigo/api/bsky"
9+)
10+11+// TeamDefs_Member is a "member" in the tools.ozone.team.defs schema.
12+type TeamDefs_Member struct {
13+ CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
14+ Did string `json:"did" cborgen:"did"`
15+ Disabled *bool `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
16+ LastUpdatedBy *string `json:"lastUpdatedBy,omitempty" cborgen:"lastUpdatedBy,omitempty"`
17+ Profile *appbskytypes.ActorDefs_ProfileViewDetailed `json:"profile,omitempty" cborgen:"profile,omitempty"`
18+ Role string `json:"role" cborgen:"role"`
19+ UpdatedAt *string `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
20+}
+25
api/ozone/teamdeleteMember.go
···0000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.team.deleteMember
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// TeamDeleteMember_Input is the input argument to a tools.ozone.team.deleteMember call.
14+type TeamDeleteMember_Input struct {
15+ Did string `json:"did" cborgen:"did"`
16+}
17+18+// TeamDeleteMember calls the XRPC method "tools.ozone.team.deleteMember".
19+func TeamDeleteMember(ctx context.Context, c *xrpc.Client, input *TeamDeleteMember_Input) error {
20+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.team.deleteMember", nil, input, nil); err != nil {
21+ return err
22+ }
23+24+ return nil
25+}
+35
api/ozone/teamlistMembers.go
···00000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.team.listMembers
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// TeamListMembers_Output is the output of a tools.ozone.team.listMembers call.
14+type TeamListMembers_Output struct {
15+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16+ Members []*TeamDefs_Member `json:"members" cborgen:"members"`
17+}
18+19+// TeamListMembers calls the XRPC method "tools.ozone.team.listMembers".
20+func TeamListMembers(ctx context.Context, c *xrpc.Client, cursor string, disabled bool, limit int64, q string, roles []string) (*TeamListMembers_Output, error) {
21+ var out TeamListMembers_Output
22+23+ params := map[string]interface{}{
24+ "cursor": cursor,
25+ "disabled": disabled,
26+ "limit": limit,
27+ "q": q,
28+ "roles": roles,
29+ }
30+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.team.listMembers", params, nil, &out); err != nil {
31+ return nil, err
32+ }
33+34+ return &out, nil
35+}
+28
api/ozone/teamupdateMember.go
···0000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.team.updateMember
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// TeamUpdateMember_Input is the input argument to a tools.ozone.team.updateMember call.
14+type TeamUpdateMember_Input struct {
15+ Did string `json:"did" cborgen:"did"`
16+ Disabled *bool `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
17+ Role *string `json:"role,omitempty" cborgen:"role,omitempty"`
18+}
19+20+// TeamUpdateMember calls the XRPC method "tools.ozone.team.updateMember".
21+func TeamUpdateMember(ctx context.Context, c *xrpc.Client, input *TeamUpdateMember_Input) (*TeamDefs_Member, error) {
22+ var out TeamDefs_Member
23+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.team.updateMember", nil, input, &out); err != nil {
24+ return nil, err
25+ }
26+27+ return &out, nil
28+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.verification.defs
6+7+import (
8+ "encoding/json"
9+ "fmt"
10+11+ "github.com/bluesky-social/indigo/lex/util"
12+)
13+14+// VerificationDefs_VerificationView is a "verificationView" in the tools.ozone.verification.defs schema.
15+//
16+// Verification data for the associated subject.
17+type VerificationDefs_VerificationView struct {
18+ // createdAt: Timestamp when the verification was created.
19+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
20+ // displayName: Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.
21+ DisplayName string `json:"displayName" cborgen:"displayName"`
22+ // handle: Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.
23+ Handle string `json:"handle" cborgen:"handle"`
24+ // issuer: The user who issued this verification.
25+ Issuer string `json:"issuer" cborgen:"issuer"`
26+ IssuerProfile *VerificationDefs_VerificationView_IssuerProfile `json:"issuerProfile,omitempty" cborgen:"issuerProfile,omitempty"`
27+ IssuerRepo *VerificationDefs_VerificationView_IssuerRepo `json:"issuerRepo,omitempty" cborgen:"issuerRepo,omitempty"`
28+ // revokeReason: Describes the reason for revocation, also indicating that the verification is no longer valid.
29+ RevokeReason *string `json:"revokeReason,omitempty" cborgen:"revokeReason,omitempty"`
30+ // revokedAt: Timestamp when the verification was revoked.
31+ RevokedAt *string `json:"revokedAt,omitempty" cborgen:"revokedAt,omitempty"`
32+ // revokedBy: The user who revoked this verification.
33+ RevokedBy *string `json:"revokedBy,omitempty" cborgen:"revokedBy,omitempty"`
34+ // subject: The subject of the verification.
35+ Subject string `json:"subject" cborgen:"subject"`
36+ SubjectProfile *VerificationDefs_VerificationView_SubjectProfile `json:"subjectProfile,omitempty" cborgen:"subjectProfile,omitempty"`
37+ SubjectRepo *VerificationDefs_VerificationView_SubjectRepo `json:"subjectRepo,omitempty" cborgen:"subjectRepo,omitempty"`
38+ // uri: The AT-URI of the verification record.
39+ Uri string `json:"uri" cborgen:"uri"`
40+}
41+42+type VerificationDefs_VerificationView_IssuerRepo struct {
43+ ModerationDefs_RepoViewDetail *ModerationDefs_RepoViewDetail
44+ ModerationDefs_RepoViewNotFound *ModerationDefs_RepoViewNotFound
45+}
46+47+func (t *VerificationDefs_VerificationView_IssuerRepo) MarshalJSON() ([]byte, error) {
48+ if t.ModerationDefs_RepoViewDetail != nil {
49+ t.ModerationDefs_RepoViewDetail.LexiconTypeID = "tools.ozone.moderation.defs#repoViewDetail"
50+ return json.Marshal(t.ModerationDefs_RepoViewDetail)
51+ }
52+ if t.ModerationDefs_RepoViewNotFound != nil {
53+ t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound"
54+ return json.Marshal(t.ModerationDefs_RepoViewNotFound)
55+ }
56+ return nil, fmt.Errorf("cannot marshal empty enum")
57+}
58+func (t *VerificationDefs_VerificationView_IssuerRepo) UnmarshalJSON(b []byte) error {
59+ typ, err := util.TypeExtract(b)
60+ if err != nil {
61+ return err
62+ }
63+64+ switch typ {
65+ case "tools.ozone.moderation.defs#repoViewDetail":
66+ t.ModerationDefs_RepoViewDetail = new(ModerationDefs_RepoViewDetail)
67+ return json.Unmarshal(b, t.ModerationDefs_RepoViewDetail)
68+ case "tools.ozone.moderation.defs#repoViewNotFound":
69+ t.ModerationDefs_RepoViewNotFound = new(ModerationDefs_RepoViewNotFound)
70+ return json.Unmarshal(b, t.ModerationDefs_RepoViewNotFound)
71+72+ default:
73+ return nil
74+ }
75+}
76+77+type VerificationDefs_VerificationView_SubjectRepo struct {
78+ ModerationDefs_RepoViewDetail *ModerationDefs_RepoViewDetail
79+ ModerationDefs_RepoViewNotFound *ModerationDefs_RepoViewNotFound
80+}
81+82+func (t *VerificationDefs_VerificationView_SubjectRepo) MarshalJSON() ([]byte, error) {
83+ if t.ModerationDefs_RepoViewDetail != nil {
84+ t.ModerationDefs_RepoViewDetail.LexiconTypeID = "tools.ozone.moderation.defs#repoViewDetail"
85+ return json.Marshal(t.ModerationDefs_RepoViewDetail)
86+ }
87+ if t.ModerationDefs_RepoViewNotFound != nil {
88+ t.ModerationDefs_RepoViewNotFound.LexiconTypeID = "tools.ozone.moderation.defs#repoViewNotFound"
89+ return json.Marshal(t.ModerationDefs_RepoViewNotFound)
90+ }
91+ return nil, fmt.Errorf("cannot marshal empty enum")
92+}
93+func (t *VerificationDefs_VerificationView_SubjectRepo) UnmarshalJSON(b []byte) error {
94+ typ, err := util.TypeExtract(b)
95+ if err != nil {
96+ return err
97+ }
98+99+ switch typ {
100+ case "tools.ozone.moderation.defs#repoViewDetail":
101+ t.ModerationDefs_RepoViewDetail = new(ModerationDefs_RepoViewDetail)
102+ return json.Unmarshal(b, t.ModerationDefs_RepoViewDetail)
103+ case "tools.ozone.moderation.defs#repoViewNotFound":
104+ t.ModerationDefs_RepoViewNotFound = new(ModerationDefs_RepoViewNotFound)
105+ return json.Unmarshal(b, t.ModerationDefs_RepoViewNotFound)
106+107+ default:
108+ return nil
109+ }
110+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.verification.grantVerifications
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// VerificationGrantVerifications_GrantError is a "grantError" in the tools.ozone.verification.grantVerifications schema.
14+//
15+// Error object for failed verifications.
16+type VerificationGrantVerifications_GrantError struct {
17+ // error: Error message describing the reason for failure.
18+ Error string `json:"error" cborgen:"error"`
19+ // subject: The did of the subject being verified
20+ Subject string `json:"subject" cborgen:"subject"`
21+}
22+23+// VerificationGrantVerifications_Input is the input argument to a tools.ozone.verification.grantVerifications call.
24+type VerificationGrantVerifications_Input struct {
25+ // verifications: Array of verification requests to process
26+ Verifications []*VerificationGrantVerifications_VerificationInput `json:"verifications" cborgen:"verifications"`
27+}
28+29+// VerificationGrantVerifications_Output is the output of a tools.ozone.verification.grantVerifications call.
30+type VerificationGrantVerifications_Output struct {
31+ FailedVerifications []*VerificationGrantVerifications_GrantError `json:"failedVerifications" cborgen:"failedVerifications"`
32+ Verifications []*VerificationDefs_VerificationView `json:"verifications" cborgen:"verifications"`
33+}
34+35+// VerificationGrantVerifications_VerificationInput is the input argument to a tools.ozone.verification.grantVerifications call.
36+type VerificationGrantVerifications_VerificationInput struct {
37+ // createdAt: Timestamp for verification record. Defaults to current time when not specified.
38+ CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
39+ // displayName: Display name of the subject the verification applies to at the moment of verifying.
40+ DisplayName string `json:"displayName" cborgen:"displayName"`
41+ // handle: Handle of the subject the verification applies to at the moment of verifying.
42+ Handle string `json:"handle" cborgen:"handle"`
43+ // subject: The did of the subject being verified
44+ Subject string `json:"subject" cborgen:"subject"`
45+}
46+47+// VerificationGrantVerifications calls the XRPC method "tools.ozone.verification.grantVerifications".
48+func VerificationGrantVerifications(ctx context.Context, c *xrpc.Client, input *VerificationGrantVerifications_Input) (*VerificationGrantVerifications_Output, error) {
49+ var out VerificationGrantVerifications_Output
50+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.verification.grantVerifications", nil, input, &out); err != nil {
51+ return nil, err
52+ }
53+54+ return &out, nil
55+}
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package ozone
4+5+// schema: tools.ozone.verification.revokeVerifications
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// VerificationRevokeVerifications_Input is the input argument to a tools.ozone.verification.revokeVerifications call.
14+type VerificationRevokeVerifications_Input struct {
15+ // revokeReason: Reason for revoking the verification. This is optional and can be omitted if not needed.
16+ RevokeReason *string `json:"revokeReason,omitempty" cborgen:"revokeReason,omitempty"`
17+ // uris: Array of verification record uris to revoke
18+ Uris []string `json:"uris" cborgen:"uris"`
19+}
20+21+// VerificationRevokeVerifications_Output is the output of a tools.ozone.verification.revokeVerifications call.
22+type VerificationRevokeVerifications_Output struct {
23+ // failedRevocations: List of verification uris that couldn't be revoked, including failure reasons
24+ FailedRevocations []*VerificationRevokeVerifications_RevokeError `json:"failedRevocations" cborgen:"failedRevocations"`
25+ // revokedVerifications: List of verification uris successfully revoked
26+ RevokedVerifications []string `json:"revokedVerifications" cborgen:"revokedVerifications"`
27+}
28+29+// VerificationRevokeVerifications_RevokeError is a "revokeError" in the tools.ozone.verification.revokeVerifications schema.
30+//
31+// Error object for failed revocations
32+type VerificationRevokeVerifications_RevokeError struct {
33+ // error: Description of the error that occurred during revocation.
34+ Error string `json:"error" cborgen:"error"`
35+ // uri: The AT-URI of the verification record that failed to revoke.
36+ Uri string `json:"uri" cborgen:"uri"`
37+}
38+39+// VerificationRevokeVerifications calls the XRPC method "tools.ozone.verification.revokeVerifications".
40+func VerificationRevokeVerifications(ctx context.Context, c *xrpc.Client, input *VerificationRevokeVerifications_Input) (*VerificationRevokeVerifications_Output, error) {
41+ var out VerificationRevokeVerifications_Output
42+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.verification.revokeVerifications", nil, input, &out); err != nil {
43+ return nil, err
44+ }
45+46+ return &out, nil
47+}
+37
api/teal/actordefs.go
···0000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.actor.defs
6+7+import (
8+ appbskytypes "github.com/bluesky-social/indigo/api/bsky"
9+)
10+11+// AlphaActorDefs_MiniProfileView is a "miniProfileView" in the fm.teal.alpha.actor.defs schema.
12+type AlphaActorDefs_MiniProfileView struct {
13+ // avatar: IPLD of the avatar
14+ Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
15+ // did: The decentralized identifier of the actor
16+ Did *string `json:"did,omitempty" cborgen:"did,omitempty"`
17+ DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"`
18+ Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
19+}
20+21+// AlphaActorDefs_ProfileView is a "profileView" in the fm.teal.alpha.actor.defs schema.
22+type AlphaActorDefs_ProfileView struct {
23+ // avatar: IPLD of the avatar
24+ Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
25+ // banner: IPLD of the banner image
26+ Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"`
27+ CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
28+ // description: Free-form profile description text.
29+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
30+ // descriptionFacets: Annotations of text in the profile description (mentions, URLs, hashtags, etc). May be changed to another (backwards compatible) lexicon.
31+ DescriptionFacets []*appbskytypes.RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"`
32+ // did: The decentralized identifier of the actor
33+ Did *string `json:"did,omitempty" cborgen:"did,omitempty"`
34+ DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"`
35+ // featuredItem: The user's most recent item featured on their profile.
36+ FeaturedItem *AlphaActorProfile_FeaturedItem `json:"featuredItem,omitempty" cborgen:"featuredItem,omitempty"`
37+}
+32
api/teal/actorgetProfile.go
···00000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.actor.getProfile
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// AlphaActorGetProfile_Output is the output of a fm.teal.alpha.actor.getProfile call.
14+type AlphaActorGetProfile_Output struct {
15+ Actor *AlphaActorDefs_ProfileView `json:"actor" cborgen:"actor"`
16+}
17+18+// AlphaActorGetProfile calls the XRPC method "fm.teal.alpha.actor.getProfile".
19+//
20+// actor: The author's DID
21+func AlphaActorGetProfile(ctx context.Context, c *xrpc.Client, actor string) (*AlphaActorGetProfile_Output, error) {
22+ var out AlphaActorGetProfile_Output
23+24+ params := map[string]interface{}{
25+ "actor": actor,
26+ }
27+ if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.actor.getProfile", params, nil, &out); err != nil {
28+ return nil, err
29+ }
30+31+ return &out, nil
32+}
+32
api/teal/actorgetProfiles.go
···00000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.actor.getProfiles
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// AlphaActorGetProfiles_Output is the output of a fm.teal.alpha.actor.getProfiles call.
14+type AlphaActorGetProfiles_Output struct {
15+ Actors []*AlphaActorDefs_MiniProfileView `json:"actors" cborgen:"actors"`
16+}
17+18+// AlphaActorGetProfiles calls the XRPC method "fm.teal.alpha.actor.getProfiles".
19+//
20+// actors: Array of actor DIDs
21+func AlphaActorGetProfiles(ctx context.Context, c *xrpc.Client, actors []string) (*AlphaActorGetProfiles_Output, error) {
22+ var out AlphaActorGetProfiles_Output
23+24+ params := map[string]interface{}{
25+ "actors": actors,
26+ }
27+ if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.actor.getProfiles", params, nil, &out); err != nil {
28+ return nil, err
29+ }
30+31+ return &out, nil
32+}
+38
api/teal/actorprofile.go
···00000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.actor.profile
6+7+import (
8+ appbskytypes "github.com/bluesky-social/indigo/api/bsky"
9+ "github.com/bluesky-social/indigo/lex/util"
10+)
11+12+func init() {
13+ util.RegisterType("fm.teal.alpha.actor.profile", &AlphaActorProfile{})
14+} //
15+// RECORDTYPE: AlphaActorProfile
16+type AlphaActorProfile struct {
17+ LexiconTypeID string `json:"$type,const=fm.teal.alpha.actor.profile" cborgen:"$type,const=fm.teal.alpha.actor.profile"`
18+ // avatar: Small image to be displayed next to posts from account. AKA, 'profile picture'
19+ Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
20+ // banner: Larger horizontal image to display behind profile view.
21+ Banner *util.LexBlob `json:"banner,omitempty" cborgen:"banner,omitempty"`
22+ CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
23+ // description: Free-form profile description text.
24+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
25+ // descriptionFacets: Annotations of text in the profile description (mentions, URLs, hashtags, etc).
26+ DescriptionFacets []*appbskytypes.RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"`
27+ DisplayName *string `json:"displayName,omitempty" cborgen:"displayName,omitempty"`
28+ // featuredItem: The user's most recent item featured on their profile.
29+ FeaturedItem *AlphaActorProfile_FeaturedItem `json:"featuredItem,omitempty" cborgen:"featuredItem,omitempty"`
30+}
31+32+// AlphaActorProfile_FeaturedItem is a "featuredItem" in the fm.teal.alpha.actor.profile schema.
33+type AlphaActorProfile_FeaturedItem struct {
34+ // mbid: The Musicbrainz ID of the item
35+ Mbid string `json:"mbid" cborgen:"mbid"`
36+ // type: The type of the item. Must be a valid Musicbrainz type, e.g. album, track, recording, etc.
37+ Type string `json:"type" cborgen:"type"`
38+}
+38
api/teal/actorsearchActors.go
···00000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.actor.searchActors
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// AlphaActorSearchActors_Output is the output of a fm.teal.alpha.actor.searchActors call.
14+type AlphaActorSearchActors_Output struct {
15+ Actors []*AlphaActorDefs_MiniProfileView `json:"actors" cborgen:"actors"`
16+ // cursor: Cursor for pagination
17+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
18+}
19+20+// AlphaActorSearchActors calls the XRPC method "fm.teal.alpha.actor.searchActors".
21+//
22+// cursor: Cursor for pagination
23+// limit: The maximum number of actors to return
24+// q: The search query
25+func AlphaActorSearchActors(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string) (*AlphaActorSearchActors_Output, error) {
26+ var out AlphaActorSearchActors_Output
27+28+ params := map[string]interface{}{
29+ "cursor": cursor,
30+ "limit": limit,
31+ "q": q,
32+ }
33+ if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.actor.searchActors", params, nil, &out); err != nil {
34+ return nil, err
35+ }
36+37+ return &out, nil
38+}
+22
api/teal/actorstatus.go
···0000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.actor.status
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("fm.teal.alpha.actor.status", &AlphaActorStatus{})
13+} //
14+// RECORDTYPE: AlphaActorStatus
15+type AlphaActorStatus struct {
16+ LexiconTypeID string `json:"$type,const=fm.teal.alpha.actor.status" cborgen:"$type,const=fm.teal.alpha.actor.status"`
17+ // expiry: The unix timestamp of the expiry time of the item. If unavailable, default to 10 minutes past the start time.
18+ Expiry *string `json:"expiry,omitempty" cborgen:"expiry,omitempty"`
19+ Item *AlphaFeedDefs_PlayView `json:"item" cborgen:"item"`
20+ // time: The unix timestamp of when the item was recorded
21+ Time string `json:"time" cborgen:"time"`
22+}
+35
api/teal/feeddefs.go
···00000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.feed.defs
6+7+// AlphaFeedDefs_PlayView is a "playView" in the fm.teal.alpha.feed.defs schema.
8+type AlphaFeedDefs_PlayView struct {
9+ // artistMbIds: Array of Musicbrainz artist IDs
10+ ArtistMbIds []string `json:"artistMbIds,omitempty" cborgen:"artistMbIds,omitempty"`
11+ // artistNames: Array of artist names in order of original appearance.
12+ ArtistNames []string `json:"artistNames" cborgen:"artistNames"`
13+ // duration: The length of the track in seconds
14+ Duration *int64 `json:"duration,omitempty" cborgen:"duration,omitempty"`
15+ // isrc: The ISRC code associated with the recording
16+ Isrc *string `json:"isrc,omitempty" cborgen:"isrc,omitempty"`
17+ // musicServiceBaseDomain: The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if not provided.
18+ MusicServiceBaseDomain *string `json:"musicServiceBaseDomain,omitempty" cborgen:"musicServiceBaseDomain,omitempty"`
19+ // originUrl: The URL associated with this track
20+ OriginUrl *string `json:"originUrl,omitempty" cborgen:"originUrl,omitempty"`
21+ // playedTime: The unix timestamp of when the track was played
22+ PlayedTime *string `json:"playedTime,omitempty" cborgen:"playedTime,omitempty"`
23+ // recordingMbId: The Musicbrainz recording ID of the track
24+ RecordingMbId *string `json:"recordingMbId,omitempty" cborgen:"recordingMbId,omitempty"`
25+ // releaseMbId: The Musicbrainz release ID
26+ ReleaseMbId *string `json:"releaseMbId,omitempty" cborgen:"releaseMbId,omitempty"`
27+ // releaseName: The name of the release/album
28+ ReleaseName *string `json:"releaseName,omitempty" cborgen:"releaseName,omitempty"`
29+ // submissionClientAgent: A user-agent style string specifying the user agent. e.g. tealtracker/0.0.1b (Linux; Android 13; SM-A715F). Defaults to 'manual/unknown' if not provided.
30+ SubmissionClientAgent *string `json:"submissionClientAgent,omitempty" cborgen:"submissionClientAgent,omitempty"`
31+ // trackMbId: The Musicbrainz ID of the track
32+ TrackMbId *string `json:"trackMbId,omitempty" cborgen:"trackMbId,omitempty"`
33+ // trackName: The name of the track
34+ TrackName string `json:"trackName" cborgen:"trackName"`
35+}
+36
api/teal/feedgetActorFeed.go
···000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.feed.getActorFeed
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// AlphaFeedGetActorFeed_Output is the output of a fm.teal.alpha.feed.getActorFeed call.
14+type AlphaFeedGetActorFeed_Output struct {
15+ Plays []*AlphaFeedDefs_PlayView `json:"plays" cborgen:"plays"`
16+}
17+18+// AlphaFeedGetActorFeed calls the XRPC method "fm.teal.alpha.feed.getActorFeed".
19+//
20+// authorDID: The author's DID for the play
21+// cursor: The cursor to start the query from
22+// limit: The upper limit of tracks to get per request. Default is 20, max is 50.
23+func AlphaFeedGetActorFeed(ctx context.Context, c *xrpc.Client, authorDID string, cursor string, limit int64) (*AlphaFeedGetActorFeed_Output, error) {
24+ var out AlphaFeedGetActorFeed_Output
25+26+ params := map[string]interface{}{
27+ "authorDID": authorDID,
28+ "cursor": cursor,
29+ "limit": limit,
30+ }
31+ if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.feed.getActorFeed", params, nil, &out); err != nil {
32+ return nil, err
33+ }
34+35+ return &out, nil
36+}
+34
api/teal/feedgetPlay.go
···0000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.feed.getPlay
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/xrpc"
11+)
12+13+// AlphaFeedGetPlay_Output is the output of a fm.teal.alpha.feed.getPlay call.
14+type AlphaFeedGetPlay_Output struct {
15+ Play *AlphaFeedDefs_PlayView `json:"play" cborgen:"play"`
16+}
17+18+// AlphaFeedGetPlay calls the XRPC method "fm.teal.alpha.feed.getPlay".
19+//
20+// authorDID: The author's DID for the play
21+// rkey: The record key of the play
22+func AlphaFeedGetPlay(ctx context.Context, c *xrpc.Client, authorDID string, rkey string) (*AlphaFeedGetPlay_Output, error) {
23+ var out AlphaFeedGetPlay_Output
24+25+ params := map[string]interface{}{
26+ "authorDID": authorDID,
27+ "rkey": rkey,
28+ }
29+ if err := c.Do(ctx, xrpc.Query, "", "fm.teal.alpha.feed.getPlay", params, nil, &out); err != nil {
30+ return nil, err
31+ }
32+33+ return &out, nil
34+}
+43
api/teal/feedplay.go
···0000000000000000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package teal
4+5+// schema: fm.teal.alpha.feed.play
6+7+import (
8+ "github.com/bluesky-social/indigo/lex/util"
9+)
10+11+func init() {
12+ util.RegisterType("fm.teal.alpha.feed.play", &AlphaFeedPlay{})
13+} //
14+// RECORDTYPE: AlphaFeedPlay
15+type AlphaFeedPlay struct {
16+ LexiconTypeID string `json:"$type,const=fm.teal.alpha.feed.play" cborgen:"$type,const=fm.teal.alpha.feed.play"`
17+ // artistMbIds: Array of Musicbrainz artist IDs
18+ ArtistMbIds []string `json:"artistMbIds,omitempty" cborgen:"artistMbIds,omitempty"`
19+ // artistNames: Array of artist names in order of original appearance.
20+ ArtistNames []string `json:"artistNames" cborgen:"artistNames"`
21+ // duration: The length of the track in seconds
22+ Duration *int64 `json:"duration,omitempty" cborgen:"duration,omitempty"`
23+ // isrc: The ISRC code associated with the recording
24+ Isrc *string `json:"isrc,omitempty" cborgen:"isrc,omitempty"`
25+ // musicServiceBaseDomain: The base domain of the music service. e.g. music.apple.com, tidal.com, spotify.com. Defaults to 'local' if unavailable or not provided.
26+ MusicServiceBaseDomain *string `json:"musicServiceBaseDomain,omitempty" cborgen:"musicServiceBaseDomain,omitempty"`
27+ // originUrl: The URL associated with this track
28+ OriginUrl *string `json:"originUrl,omitempty" cborgen:"originUrl,omitempty"`
29+ // playedTime: The unix timestamp of when the track was played
30+ PlayedTime *string `json:"playedTime,omitempty" cborgen:"playedTime,omitempty"`
31+ // recordingMbId: The Musicbrainz recording ID of the track
32+ RecordingMbId *string `json:"recordingMbId,omitempty" cborgen:"recordingMbId,omitempty"`
33+ // releaseMbId: The Musicbrainz release ID
34+ ReleaseMbId *string `json:"releaseMbId,omitempty" cborgen:"releaseMbId,omitempty"`
35+ // releaseName: The name of the release/album
36+ ReleaseName *string `json:"releaseName,omitempty" cborgen:"releaseName,omitempty"`
37+ // submissionClientAgent: A metadata string specifying the user agent where the format is `<app-identifier>/<version> (<kernel/OS-base>; <platform/OS-version>; <device-model>)`. If string is provided, only `app-identifier` and `version` are required. `app-identifier` is recommended to be in reverse dns format. Defaults to 'manual/unknown' if unavailable or not provided.
38+ SubmissionClientAgent *string `json:"submissionClientAgent,omitempty" cborgen:"submissionClientAgent,omitempty"`
39+ // trackMbId: The Musicbrainz ID of the track
40+ TrackMbId *string `json:"trackMbId,omitempty" cborgen:"trackMbId,omitempty"`
41+ // trackName: The name of the track
42+ TrackName string `json:"trackName" cborgen:"trackName"`
43+}