+23
-2
api/atproto/admindefs.go
+23
-2
api/atproto/admindefs.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.defs
6
+
5
7
import (
6
8
"encoding/json"
7
9
"fmt"
···
9
11
"github.com/bluesky-social/indigo/lex/util"
10
12
)
11
13
12
-
// schema: com.atproto.admin.defs
13
-
14
+
// AdminDefs_ActionReversal is a "actionReversal" in the com.atproto.admin.defs schema.
14
15
type AdminDefs_ActionReversal struct {
15
16
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
16
17
CreatedBy string `json:"createdBy" cborgen:"createdBy"`
17
18
Reason string `json:"reason" cborgen:"reason"`
18
19
}
19
20
21
+
// AdminDefs_ActionView is a "actionView" in the com.atproto.admin.defs schema.
20
22
type AdminDefs_ActionView struct {
21
23
Action *string `json:"action" cborgen:"action"`
22
24
CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
···
31
33
SubjectBlobCids []string `json:"subjectBlobCids" cborgen:"subjectBlobCids"`
32
34
}
33
35
36
+
// AdminDefs_ActionViewCurrent is a "actionViewCurrent" in the com.atproto.admin.defs schema.
34
37
type AdminDefs_ActionViewCurrent struct {
35
38
Action *string `json:"action" cborgen:"action"`
36
39
Id int64 `json:"id" cborgen:"id"`
37
40
}
38
41
42
+
// AdminDefs_ActionViewDetail is a "actionViewDetail" in the com.atproto.admin.defs schema.
39
43
type AdminDefs_ActionViewDetail struct {
40
44
Action *string `json:"action" cborgen:"action"`
41
45
CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
···
120
124
}
121
125
}
122
126
127
+
// AdminDefs_BlobView is a "blobView" in the com.atproto.admin.defs schema.
123
128
type AdminDefs_BlobView struct {
124
129
Cid string `json:"cid" cborgen:"cid"`
125
130
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
···
164
169
}
165
170
}
166
171
172
+
// AdminDefs_ImageDetails is a "imageDetails" in the com.atproto.admin.defs schema.
173
+
//
167
174
// RECORDTYPE: AdminDefs_ImageDetails
168
175
type AdminDefs_ImageDetails struct {
169
176
LexiconTypeID string `json:"$type,const=com.atproto.admin.defs" cborgen:"$type,const=com.atproto.admin.defs"`
···
171
178
Width int64 `json:"width" cborgen:"width"`
172
179
}
173
180
181
+
// AdminDefs_Moderation is a "moderation" in the com.atproto.admin.defs schema.
174
182
type AdminDefs_Moderation struct {
175
183
CurrentAction *AdminDefs_ActionViewCurrent `json:"currentAction,omitempty" cborgen:"currentAction,omitempty"`
176
184
}
177
185
186
+
// AdminDefs_ModerationDetail is a "moderationDetail" in the com.atproto.admin.defs schema.
178
187
type AdminDefs_ModerationDetail struct {
179
188
Actions []*AdminDefs_ActionView `json:"actions" cborgen:"actions"`
180
189
CurrentAction *AdminDefs_ActionViewCurrent `json:"currentAction,omitempty" cborgen:"currentAction,omitempty"`
181
190
Reports []*AdminDefs_ReportView `json:"reports" cborgen:"reports"`
182
191
}
183
192
193
+
// AdminDefs_RecordView is a "recordView" in the com.atproto.admin.defs schema.
194
+
//
184
195
// RECORDTYPE: AdminDefs_RecordView
185
196
type AdminDefs_RecordView struct {
186
197
LexiconTypeID string `json:"$type,const=com.atproto.admin.defs" cborgen:"$type,const=com.atproto.admin.defs"`
···
193
204
Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
194
205
}
195
206
207
+
// AdminDefs_RecordViewDetail is a "recordViewDetail" in the com.atproto.admin.defs schema.
196
208
type AdminDefs_RecordViewDetail struct {
197
209
Blobs []*AdminDefs_BlobView `json:"blobs" cborgen:"blobs"`
198
210
Cid string `json:"cid" cborgen:"cid"`
···
204
216
Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
205
217
}
206
218
219
+
// AdminDefs_RepoRef is a "repoRef" in the com.atproto.admin.defs schema.
220
+
//
207
221
// RECORDTYPE: AdminDefs_RepoRef
208
222
type AdminDefs_RepoRef struct {
209
223
LexiconTypeID string `json:"$type,const=com.atproto.admin.defs" cborgen:"$type,const=com.atproto.admin.defs"`
210
224
Did string `json:"did" cborgen:"did"`
211
225
}
212
226
227
+
// AdminDefs_RepoView is a "repoView" in the com.atproto.admin.defs schema.
228
+
//
213
229
// RECORDTYPE: AdminDefs_RepoView
214
230
type AdminDefs_RepoView struct {
215
231
LexiconTypeID string `json:"$type,const=com.atproto.admin.defs" cborgen:"$type,const=com.atproto.admin.defs"`
···
222
238
RelatedRecords []*util.LexiconTypeDecoder `json:"relatedRecords" cborgen:"relatedRecords"`
223
239
}
224
240
241
+
// AdminDefs_RepoViewDetail is a "repoViewDetail" in the com.atproto.admin.defs schema.
225
242
type AdminDefs_RepoViewDetail struct {
226
243
Did string `json:"did" cborgen:"did"`
227
244
Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
···
234
251
RelatedRecords []*util.LexiconTypeDecoder `json:"relatedRecords" cborgen:"relatedRecords"`
235
252
}
236
253
254
+
// AdminDefs_ReportView is a "reportView" in the com.atproto.admin.defs schema.
237
255
type AdminDefs_ReportView struct {
238
256
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
239
257
Id int64 `json:"id" cborgen:"id"`
···
244
262
Subject *AdminDefs_ReportView_Subject `json:"subject" cborgen:"subject"`
245
263
}
246
264
265
+
// AdminDefs_ReportViewDetail is a "reportViewDetail" in the com.atproto.admin.defs schema.
247
266
type AdminDefs_ReportViewDetail struct {
248
267
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
249
268
Id int64 `json:"id" cborgen:"id"`
···
324
343
}
325
344
}
326
345
346
+
// AdminDefs_VideoDetails is a "videoDetails" in the com.atproto.admin.defs schema.
347
+
//
327
348
// RECORDTYPE: AdminDefs_VideoDetails
328
349
type AdminDefs_VideoDetails struct {
329
350
LexiconTypeID string `json:"$type,const=com.atproto.admin.defs" cborgen:"$type,const=com.atproto.admin.defs"`
+4
-2
api/atproto/admindisableInviteCodes.go
+4
-2
api/atproto/admindisableInviteCodes.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.disableInviteCodes
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.disableInviteCodes
12
-
13
+
// AdminDisableInviteCodes_Input is the input argument to a com.atproto.admin.disableInviteCodes call.
13
14
type AdminDisableInviteCodes_Input struct {
14
15
Accounts []string `json:"accounts,omitempty" cborgen:"accounts,omitempty"`
15
16
Codes []string `json:"codes,omitempty" cborgen:"codes,omitempty"`
16
17
}
17
18
19
+
// AdminDisableInviteCodes calls the XRPC method "com.atproto.admin.disableInviteCodes".
18
20
func AdminDisableInviteCodes(ctx context.Context, c *xrpc.Client, input *AdminDisableInviteCodes_Input) error {
19
21
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.disableInviteCodes", nil, input, nil); err != nil {
20
22
return err
+4
-2
api/atproto/admingetInviteCodes.go
+4
-2
api/atproto/admingetInviteCodes.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.getInviteCodes
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.getInviteCodes
12
-
13
+
// AdminGetInviteCodes_Output is the output of a com.atproto.admin.getInviteCodes call.
13
14
type AdminGetInviteCodes_Output struct {
14
15
Codes []*ServerDefs_InviteCode `json:"codes" cborgen:"codes"`
15
16
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16
17
}
17
18
19
+
// AdminGetInviteCodes calls the XRPC method "com.atproto.admin.getInviteCodes".
18
20
func AdminGetInviteCodes(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sort string) (*AdminGetInviteCodes_Output, error) {
19
21
var out AdminGetInviteCodes_Output
20
22
+3
-2
api/atproto/admingetModerationAction.go
+3
-2
api/atproto/admingetModerationAction.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.getModerationAction
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.getModerationAction
12
-
13
+
// AdminGetModerationAction calls the XRPC method "com.atproto.admin.getModerationAction".
13
14
func AdminGetModerationAction(ctx context.Context, c *xrpc.Client, id int64) (*AdminDefs_ActionViewDetail, error) {
14
15
var out AdminDefs_ActionViewDetail
15
16
+4
-2
api/atproto/admingetModerationActions.go
+4
-2
api/atproto/admingetModerationActions.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.getModerationActions
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.getModerationActions
12
-
13
+
// AdminGetModerationActions_Output is the output of a com.atproto.admin.getModerationActions call.
13
14
type AdminGetModerationActions_Output struct {
14
15
Actions []*AdminDefs_ActionView `json:"actions" cborgen:"actions"`
15
16
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16
17
}
17
18
19
+
// AdminGetModerationActions calls the XRPC method "com.atproto.admin.getModerationActions".
18
20
func AdminGetModerationActions(ctx context.Context, c *xrpc.Client, cursor string, limit int64, subject string) (*AdminGetModerationActions_Output, error) {
19
21
var out AdminGetModerationActions_Output
20
22
+3
-2
api/atproto/admingetModerationReport.go
+3
-2
api/atproto/admingetModerationReport.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.getModerationReport
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.getModerationReport
12
-
13
+
// AdminGetModerationReport calls the XRPC method "com.atproto.admin.getModerationReport".
13
14
func AdminGetModerationReport(ctx context.Context, c *xrpc.Client, id int64) (*AdminDefs_ReportViewDetail, error) {
14
15
var out AdminDefs_ReportViewDetail
15
16
+4
-2
api/atproto/admingetModerationReports.go
+4
-2
api/atproto/admingetModerationReports.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.getModerationReports
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.getModerationReports
12
-
13
+
// AdminGetModerationReports_Output is the output of a com.atproto.admin.getModerationReports call.
13
14
type AdminGetModerationReports_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Reports []*AdminDefs_ReportView `json:"reports" cborgen:"reports"`
16
17
}
17
18
19
+
// AdminGetModerationReports calls the XRPC method "com.atproto.admin.getModerationReports".
18
20
func AdminGetModerationReports(ctx context.Context, c *xrpc.Client, cursor string, limit int64, resolved bool, subject string) (*AdminGetModerationReports_Output, error) {
19
21
var out AdminGetModerationReports_Output
20
22
+3
-2
api/atproto/admingetRecord.go
+3
-2
api/atproto/admingetRecord.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.getRecord
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.getRecord
12
-
13
+
// AdminGetRecord calls the XRPC method "com.atproto.admin.getRecord".
13
14
func AdminGetRecord(ctx context.Context, c *xrpc.Client, cid string, uri string) (*AdminDefs_RecordViewDetail, error) {
14
15
var out AdminDefs_RecordViewDetail
15
16
+3
-2
api/atproto/admingetRepo.go
+3
-2
api/atproto/admingetRepo.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.getRepo
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.getRepo
12
-
13
+
// AdminGetRepo calls the XRPC method "com.atproto.admin.getRepo".
13
14
func AdminGetRepo(ctx context.Context, c *xrpc.Client, did string) (*AdminDefs_RepoViewDetail, error) {
14
15
var out AdminDefs_RepoViewDetail
15
16
+4
-2
api/atproto/adminresolveModerationReports.go
+4
-2
api/atproto/adminresolveModerationReports.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.resolveModerationReports
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.resolveModerationReports
12
-
13
+
// AdminResolveModerationReports_Input is the input argument to a com.atproto.admin.resolveModerationReports call.
13
14
type AdminResolveModerationReports_Input struct {
14
15
ActionId int64 `json:"actionId" cborgen:"actionId"`
15
16
CreatedBy string `json:"createdBy" cborgen:"createdBy"`
16
17
ReportIds []int64 `json:"reportIds" cborgen:"reportIds"`
17
18
}
18
19
20
+
// AdminResolveModerationReports calls the XRPC method "com.atproto.admin.resolveModerationReports".
19
21
func AdminResolveModerationReports(ctx context.Context, c *xrpc.Client, input *AdminResolveModerationReports_Input) (*AdminDefs_ActionView, error) {
20
22
var out AdminDefs_ActionView
21
23
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.resolveModerationReports", nil, input, &out); err != nil {
+4
-2
api/atproto/adminreverseModerationAction.go
+4
-2
api/atproto/adminreverseModerationAction.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.reverseModerationAction
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.reverseModerationAction
12
-
13
+
// AdminReverseModerationAction_Input is the input argument to a com.atproto.admin.reverseModerationAction call.
13
14
type AdminReverseModerationAction_Input struct {
14
15
CreatedBy string `json:"createdBy" cborgen:"createdBy"`
15
16
Id int64 `json:"id" cborgen:"id"`
16
17
Reason string `json:"reason" cborgen:"reason"`
17
18
}
18
19
20
+
// AdminReverseModerationAction calls the XRPC method "com.atproto.admin.reverseModerationAction".
19
21
func AdminReverseModerationAction(ctx context.Context, c *xrpc.Client, input *AdminReverseModerationAction_Input) (*AdminDefs_ActionView, error) {
20
22
var out AdminDefs_ActionView
21
23
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.reverseModerationAction", nil, input, &out); err != nil {
+4
-2
api/atproto/adminsearchRepos.go
+4
-2
api/atproto/adminsearchRepos.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.searchRepos
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.searchRepos
12
-
13
+
// AdminSearchRepos_Output is the output of a com.atproto.admin.searchRepos call.
13
14
type AdminSearchRepos_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Repos []*AdminDefs_RepoView `json:"repos" cborgen:"repos"`
16
17
}
17
18
19
+
// AdminSearchRepos calls the XRPC method "com.atproto.admin.searchRepos".
18
20
func AdminSearchRepos(ctx context.Context, c *xrpc.Client, cursor string, invitedBy string, limit int64, term string) (*AdminSearchRepos_Output, error) {
19
21
var out AdminSearchRepos_Output
20
22
+4
-2
api/atproto/admintakeModerationAction.go
+4
-2
api/atproto/admintakeModerationAction.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.takeModerationAction
6
+
5
7
import (
6
8
"context"
7
9
"encoding/json"
···
11
13
"github.com/bluesky-social/indigo/xrpc"
12
14
)
13
15
14
-
// schema: com.atproto.admin.takeModerationAction
15
-
16
+
// AdminTakeModerationAction_Input is the input argument to a com.atproto.admin.takeModerationAction call.
16
17
type AdminTakeModerationAction_Input struct {
17
18
Action string `json:"action" cborgen:"action"`
18
19
CreateLabelVals []string `json:"createLabelVals,omitempty" cborgen:"createLabelVals,omitempty"`
···
58
59
}
59
60
}
60
61
62
+
// AdminTakeModerationAction calls the XRPC method "com.atproto.admin.takeModerationAction".
61
63
func AdminTakeModerationAction(ctx context.Context, c *xrpc.Client, input *AdminTakeModerationAction_Input) (*AdminDefs_ActionView, error) {
62
64
var out AdminDefs_ActionView
63
65
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.takeModerationAction", nil, input, &out); err != nil {
+5
-2
api/atproto/adminupdateAccountEmail.go
+5
-2
api/atproto/adminupdateAccountEmail.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.updateAccountEmail
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.updateAccountEmail
12
-
13
+
// AdminUpdateAccountEmail_Input is the input argument to a com.atproto.admin.updateAccountEmail call.
13
14
type AdminUpdateAccountEmail_Input struct {
15
+
// account: The handle or DID of the repo.
14
16
Account string `json:"account" cborgen:"account"`
15
17
Email string `json:"email" cborgen:"email"`
16
18
}
17
19
20
+
// AdminUpdateAccountEmail calls the XRPC method "com.atproto.admin.updateAccountEmail".
18
21
func AdminUpdateAccountEmail(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountEmail_Input) error {
19
22
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountEmail", nil, input, nil); err != nil {
20
23
return err
+4
-2
api/atproto/adminupdateAccountHandle.go
+4
-2
api/atproto/adminupdateAccountHandle.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.admin.updateAccountHandle
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.admin.updateAccountHandle
12
-
13
+
// AdminUpdateAccountHandle_Input is the input argument to a com.atproto.admin.updateAccountHandle call.
13
14
type AdminUpdateAccountHandle_Input struct {
14
15
Did string `json:"did" cborgen:"did"`
15
16
Handle string `json:"handle" cborgen:"handle"`
16
17
}
17
18
19
+
// AdminUpdateAccountHandle calls the XRPC method "com.atproto.admin.updateAccountHandle".
18
20
func AdminUpdateAccountHandle(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountHandle_Input) error {
19
21
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountHandle", nil, input, nil); err != nil {
20
22
return err
+6
-2
api/atproto/identityresolveHandle.go
+6
-2
api/atproto/identityresolveHandle.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.identity.resolveHandle
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.identity.resolveHandle
12
-
13
+
// IdentityResolveHandle_Output is the output of a com.atproto.identity.resolveHandle call.
13
14
type IdentityResolveHandle_Output struct {
14
15
Did string `json:"did" cborgen:"did"`
15
16
}
16
17
18
+
// IdentityResolveHandle calls the XRPC method "com.atproto.identity.resolveHandle".
19
+
//
20
+
// handle: The handle to resolve. If not supplied, will resolve the host's own handle.
17
21
func IdentityResolveHandle(ctx context.Context, c *xrpc.Client, handle string) (*IdentityResolveHandle_Output, error) {
18
22
var out IdentityResolveHandle_Output
19
23
+4
-2
api/atproto/identityupdateHandle.go
+4
-2
api/atproto/identityupdateHandle.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.identity.updateHandle
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.identity.updateHandle
12
-
13
+
// IdentityUpdateHandle_Input is the input argument to a com.atproto.identity.updateHandle call.
13
14
type IdentityUpdateHandle_Input struct {
14
15
Handle string `json:"handle" cborgen:"handle"`
15
16
}
16
17
18
+
// IdentityUpdateHandle calls the XRPC method "com.atproto.identity.updateHandle".
17
19
func IdentityUpdateHandle(ctx context.Context, c *xrpc.Client, input *IdentityUpdateHandle_Input) error {
18
20
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.identity.updateHandle", nil, input, nil); err != nil {
19
21
return err
+14
-5
api/atproto/labeldefs.go
+14
-5
api/atproto/labeldefs.go
···
4
4
5
5
// schema: com.atproto.label.defs
6
6
7
+
// LabelDefs_Label is a "label" in the com.atproto.label.defs schema.
8
+
//
9
+
// Metadata tag on an atproto resource (eg, repo or record)
7
10
type LabelDefs_Label struct {
11
+
// cid: optionally, CID specifying the specific version of 'uri' resource this label applies to
8
12
Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
9
-
Cts string `json:"cts" cborgen:"cts"`
10
-
Neg *bool `json:"neg,omitempty" cborgen:"neg,omitempty"`
11
-
Src string `json:"src" cborgen:"src"`
12
-
Uri string `json:"uri" cborgen:"uri"`
13
-
Val string `json:"val" cborgen:"val"`
13
+
// cts: timestamp when this label was created
14
+
Cts string `json:"cts" cborgen:"cts"`
15
+
// neg: if true, this is a negation label, overwriting a previous label
16
+
Neg *bool `json:"neg,omitempty" cborgen:"neg,omitempty"`
17
+
// src: DID of the actor who created this label
18
+
Src string `json:"src" cborgen:"src"`
19
+
// uri: AT URI of the record, repository (account), or other resource which this label applies to
20
+
Uri string `json:"uri" cborgen:"uri"`
21
+
// val: the short string name of the value or type of this label
22
+
Val string `json:"val" cborgen:"val"`
14
23
}
+7
-2
api/atproto/labelqueryLabels.go
+7
-2
api/atproto/labelqueryLabels.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.label.queryLabels
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.label.queryLabels
12
-
13
+
// LabelQueryLabels_Output is the output of a com.atproto.label.queryLabels call.
13
14
type LabelQueryLabels_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
16
17
}
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
18
23
func LabelQueryLabels(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sources []string, uriPatterns []string) (*LabelQueryLabels_Output, error) {
19
24
var out LabelQueryLabels_Output
20
25
+2
api/atproto/labelsubscribeLabels.go
+2
api/atproto/labelsubscribeLabels.go
···
4
4
5
5
// schema: com.atproto.label.subscribeLabels
6
6
7
+
// LabelSubscribeLabels_Info is a "info" in the com.atproto.label.subscribeLabels schema.
7
8
type LabelSubscribeLabels_Info struct {
8
9
Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
9
10
Name string `json:"name" cborgen:"name"`
10
11
}
11
12
13
+
// LabelSubscribeLabels_Labels is a "labels" in the com.atproto.label.subscribeLabels schema.
12
14
type LabelSubscribeLabels_Labels struct {
13
15
Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
14
16
Seq int64 `json:"seq" cborgen:"seq"`
+5
-2
api/atproto/moderationcreateReport.go
+5
-2
api/atproto/moderationcreateReport.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.moderation.createReport
6
+
5
7
import (
6
8
"context"
7
9
"encoding/json"
···
11
13
"github.com/bluesky-social/indigo/xrpc"
12
14
)
13
15
14
-
// schema: com.atproto.moderation.createReport
15
-
16
+
// ModerationCreateReport_Input is the input argument to a com.atproto.moderation.createReport call.
16
17
type ModerationCreateReport_Input struct {
17
18
Reason *string `json:"reason,omitempty" cborgen:"reason,omitempty"`
18
19
ReasonType *string `json:"reasonType" cborgen:"reasonType"`
···
54
55
}
55
56
}
56
57
58
+
// ModerationCreateReport_Output is the output of a com.atproto.moderation.createReport call.
57
59
type ModerationCreateReport_Output struct {
58
60
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
59
61
Id int64 `json:"id" cborgen:"id"`
···
98
100
}
99
101
}
100
102
103
+
// ModerationCreateReport calls the XRPC method "com.atproto.moderation.createReport".
101
104
func ModerationCreateReport(ctx context.Context, c *xrpc.Client, input *ModerationCreateReport_Input) (*ModerationCreateReport_Output, error) {
102
105
var out ModerationCreateReport_Output
103
106
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.moderation.createReport", nil, input, &out); err != nil {
+22
-6
api/atproto/repoapplyWrites.go
+22
-6
api/atproto/repoapplyWrites.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.applyWrites
6
+
5
7
import (
6
8
"context"
7
9
"encoding/json"
···
11
13
"github.com/bluesky-social/indigo/xrpc"
12
14
)
13
15
14
-
// schema: com.atproto.repo.applyWrites
15
-
16
+
// RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema.
17
+
//
18
+
// Create a new record.
19
+
//
16
20
// RECORDTYPE: RepoApplyWrites_Create
17
21
type RepoApplyWrites_Create struct {
18
22
LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites" cborgen:"$type,const=com.atproto.repo.applyWrites"`
···
21
25
Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
22
26
}
23
27
28
+
// RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema.
29
+
//
30
+
// Delete an existing record.
31
+
//
24
32
// RECORDTYPE: RepoApplyWrites_Delete
25
33
type RepoApplyWrites_Delete struct {
26
34
LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites" cborgen:"$type,const=com.atproto.repo.applyWrites"`
···
28
36
Rkey string `json:"rkey" cborgen:"rkey"`
29
37
}
30
38
39
+
// RepoApplyWrites_Input is the input argument to a com.atproto.repo.applyWrites call.
31
40
type RepoApplyWrites_Input struct {
32
-
Repo string `json:"repo" cborgen:"repo"`
33
-
SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
34
-
Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
35
-
Writes []*RepoApplyWrites_Input_Writes_Elem `json:"writes" cborgen:"writes"`
41
+
// repo: The handle or DID of the repo.
42
+
Repo string `json:"repo" cborgen:"repo"`
43
+
SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
44
+
// validate: Validate the records?
45
+
Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
46
+
Writes []*RepoApplyWrites_Input_Writes_Elem `json:"writes" cborgen:"writes"`
36
47
}
37
48
38
49
type RepoApplyWrites_Input_Writes_Elem struct {
···
78
89
}
79
90
}
80
91
92
+
// RepoApplyWrites_Update is a "update" in the com.atproto.repo.applyWrites schema.
93
+
//
94
+
// Update an existing record.
95
+
//
81
96
// RECORDTYPE: RepoApplyWrites_Update
82
97
type RepoApplyWrites_Update struct {
83
98
LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites" cborgen:"$type,const=com.atproto.repo.applyWrites"`
···
86
101
Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
87
102
}
88
103
104
+
// RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites".
89
105
func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) error {
90
106
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.applyWrites", nil, input, nil); err != nil {
91
107
return err
+17
-8
api/atproto/repocreateRecord.go
+17
-8
api/atproto/repocreateRecord.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.createRecord
6
+
5
7
import (
6
8
"context"
7
9
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.repo.createRecord
13
-
14
+
// RepoCreateRecord_Input is the input argument to a com.atproto.repo.createRecord call.
14
15
type RepoCreateRecord_Input struct {
15
-
Collection string `json:"collection" cborgen:"collection"`
16
-
Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
17
-
Repo string `json:"repo" cborgen:"repo"`
18
-
Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
19
-
SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
20
-
Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
16
+
// collection: The NSID of the record collection.
17
+
Collection string `json:"collection" cborgen:"collection"`
18
+
// record: The record to create.
19
+
Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
20
+
// repo: The handle or DID of the repo.
21
+
Repo string `json:"repo" cborgen:"repo"`
22
+
// rkey: The key of the record.
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: Validate the record?
27
+
Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
21
28
}
22
29
30
+
// RepoCreateRecord_Output is the output of a com.atproto.repo.createRecord call.
23
31
type RepoCreateRecord_Output struct {
24
32
Cid string `json:"cid" cborgen:"cid"`
25
33
Uri string `json:"uri" cborgen:"uri"`
26
34
}
27
35
36
+
// RepoCreateRecord calls the XRPC method "com.atproto.repo.createRecord".
28
37
func RepoCreateRecord(ctx context.Context, c *xrpc.Client, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error) {
29
38
var out RepoCreateRecord_Output
30
39
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.createRecord", nil, input, &out); err != nil {
+12
-5
api/atproto/repodeleteRecord.go
+12
-5
api/atproto/repodeleteRecord.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.deleteRecord
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.repo.deleteRecord
12
-
13
+
// RepoDeleteRecord_Input is the input argument to a com.atproto.repo.deleteRecord call.
13
14
type RepoDeleteRecord_Input struct {
14
-
Collection string `json:"collection" cborgen:"collection"`
15
-
Repo string `json:"repo" cborgen:"repo"`
16
-
Rkey string `json:"rkey" cborgen:"rkey"`
15
+
// collection: The NSID of the record collection.
16
+
Collection string `json:"collection" cborgen:"collection"`
17
+
// repo: The handle or DID of the repo.
18
+
Repo string `json:"repo" cborgen:"repo"`
19
+
// rkey: The key of the record.
20
+
Rkey string `json:"rkey" cborgen:"rkey"`
21
+
// swapCommit: Compare and swap with the previous commit by cid.
17
22
SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
23
+
// swapRecord: Compare and swap with the previous record by cid.
18
24
SwapRecord *string `json:"swapRecord,omitempty" cborgen:"swapRecord,omitempty"`
19
25
}
20
26
27
+
// RepoDeleteRecord calls the XRPC method "com.atproto.repo.deleteRecord".
21
28
func RepoDeleteRecord(ctx context.Context, c *xrpc.Client, input *RepoDeleteRecord_Input) error {
22
29
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.deleteRecord", nil, input, nil); err != nil {
23
30
return err
+6
-2
api/atproto/repodescribeRepo.go
+6
-2
api/atproto/repodescribeRepo.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.describeRepo
6
+
5
7
import (
6
8
"context"
7
9
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.repo.describeRepo
13
-
14
+
// RepoDescribeRepo_Output is the output of a com.atproto.repo.describeRepo call.
14
15
type RepoDescribeRepo_Output struct {
15
16
Collections []string `json:"collections" cborgen:"collections"`
16
17
Did string `json:"did" cborgen:"did"`
···
19
20
HandleIsCorrect bool `json:"handleIsCorrect" cborgen:"handleIsCorrect"`
20
21
}
21
22
23
+
// RepoDescribeRepo calls the XRPC method "com.atproto.repo.describeRepo".
24
+
//
25
+
// repo: The handle or DID of the repo.
22
26
func RepoDescribeRepo(ctx context.Context, c *xrpc.Client, repo string) (*RepoDescribeRepo_Output, error) {
23
27
var out RepoDescribeRepo_Output
24
28
+9
-2
api/atproto/repogetRecord.go
+9
-2
api/atproto/repogetRecord.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.getRecord
6
+
5
7
import (
6
8
"context"
7
9
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.repo.getRecord
13
-
14
+
// RepoGetRecord_Output is the output of a com.atproto.repo.getRecord call.
14
15
type RepoGetRecord_Output struct {
15
16
Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
16
17
Uri string `json:"uri" cborgen:"uri"`
17
18
Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
18
19
}
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 key of the record.
20
27
func RepoGetRecord(ctx context.Context, c *xrpc.Client, cid string, collection string, repo string, rkey string) (*RepoGetRecord_Output, error) {
21
28
var out RepoGetRecord_Output
22
29
+12
-2
api/atproto/repolistRecords.go
+12
-2
api/atproto/repolistRecords.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.listRecords
6
+
5
7
import (
6
8
"context"
7
9
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.repo.listRecords
13
-
14
+
// RepoListRecords_Output is the output of a com.atproto.repo.listRecords call.
14
15
type RepoListRecords_Output struct {
15
16
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16
17
Records []*RepoListRecords_Record `json:"records" cborgen:"records"`
17
18
}
18
19
20
+
// RepoListRecords_Record is a "record" in the com.atproto.repo.listRecords schema.
19
21
type RepoListRecords_Record struct {
20
22
Cid string `json:"cid" cborgen:"cid"`
21
23
Uri string `json:"uri" cborgen:"uri"`
22
24
Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
23
25
}
24
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: Reverse the order of the returned records?
33
+
// rkeyEnd: DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)
34
+
// rkeyStart: DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)
25
35
func RepoListRecords(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64, repo string, reverse bool, rkeyEnd string, rkeyStart string) (*RepoListRecords_Output, error) {
26
36
var out RepoListRecords_Output
27
37
+19
-9
api/atproto/repoputRecord.go
+19
-9
api/atproto/repoputRecord.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.putRecord
6
+
5
7
import (
6
8
"context"
7
9
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.repo.putRecord
13
-
14
+
// RepoPutRecord_Input is the input argument to a com.atproto.repo.putRecord call.
14
15
type RepoPutRecord_Input struct {
15
-
Collection string `json:"collection" cborgen:"collection"`
16
-
Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
17
-
Repo string `json:"repo" cborgen:"repo"`
18
-
Rkey string `json:"rkey" cborgen:"rkey"`
19
-
SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
20
-
SwapRecord *string `json:"swapRecord" cborgen:"swapRecord"`
21
-
Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
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.
21
+
Repo string `json:"repo" cborgen:"repo"`
22
+
// rkey: The key of the record.
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.
27
+
SwapRecord *string `json:"swapRecord" cborgen:"swapRecord"`
28
+
// validate: Validate the record?
29
+
Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
22
30
}
23
31
32
+
// RepoPutRecord_Output is the output of a com.atproto.repo.putRecord call.
24
33
type RepoPutRecord_Output struct {
25
34
Cid string `json:"cid" cborgen:"cid"`
26
35
Uri string `json:"uri" cborgen:"uri"`
27
36
}
28
37
38
+
// RepoPutRecord calls the XRPC method "com.atproto.repo.putRecord".
29
39
func RepoPutRecord(ctx context.Context, c *xrpc.Client, input *RepoPutRecord_Input) (*RepoPutRecord_Output, error) {
30
40
var out RepoPutRecord_Output
31
41
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.repo.putRecord", nil, input, &out); err != nil {
+4
-3
api/atproto/repostrongRef.go
+4
-3
api/atproto/repostrongRef.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.strongRef
6
+
5
7
import (
6
8
"github.com/bluesky-social/indigo/lex/util"
7
9
)
8
-
9
-
// schema: com.atproto.repo.strongRef
10
10
11
11
func init() {
12
12
util.RegisterType("com.atproto.repo.strongRef#main", &RepoStrongRef{})
13
-
} // RECORDTYPE: RepoStrongRef
13
+
} // RepoStrongRef is a "main" in the com.atproto.repo.strongRef schema.
14
+
// RECORDTYPE: RepoStrongRef
14
15
type RepoStrongRef struct {
15
16
LexiconTypeID string `json:"$type,const=com.atproto.repo.strongRef,omitempty" cborgen:"$type,const=com.atproto.repo.strongRef,omitempty"`
16
17
Cid string `json:"cid" cborgen:"cid"`
+4
-2
api/atproto/repouploadBlob.go
+4
-2
api/atproto/repouploadBlob.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.repo.uploadBlob
6
+
5
7
import (
6
8
"context"
7
9
"io"
···
10
12
"github.com/bluesky-social/indigo/xrpc"
11
13
)
12
14
13
-
// schema: com.atproto.repo.uploadBlob
14
-
15
+
// RepoUploadBlob_Output is the output of a com.atproto.repo.uploadBlob call.
15
16
type RepoUploadBlob_Output struct {
16
17
Blob *util.LexBlob `json:"blob" cborgen:"blob"`
17
18
}
18
19
20
+
// RepoUploadBlob calls the XRPC method "com.atproto.repo.uploadBlob".
19
21
func RepoUploadBlob(ctx context.Context, c *xrpc.Client, input io.Reader) (*RepoUploadBlob_Output, error) {
20
22
var out RepoUploadBlob_Output
21
23
if err := c.Do(ctx, xrpc.Procedure, "*/*", "com.atproto.repo.uploadBlob", nil, input, &out); err != nil {
+5
-2
api/atproto/servercreateAccount.go
+5
-2
api/atproto/servercreateAccount.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.createAccount
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.createAccount
12
-
13
+
// ServerCreateAccount_Input is the input argument to a com.atproto.server.createAccount call.
13
14
type ServerCreateAccount_Input struct {
14
15
Email string `json:"email" cborgen:"email"`
15
16
Handle string `json:"handle" cborgen:"handle"`
···
18
19
RecoveryKey *string `json:"recoveryKey,omitempty" cborgen:"recoveryKey,omitempty"`
19
20
}
20
21
22
+
// ServerCreateAccount_Output is the output of a com.atproto.server.createAccount call.
21
23
type ServerCreateAccount_Output struct {
22
24
AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
23
25
Did string `json:"did" cborgen:"did"`
···
25
27
RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"`
26
28
}
27
29
30
+
// ServerCreateAccount calls the XRPC method "com.atproto.server.createAccount".
28
31
func ServerCreateAccount(ctx context.Context, c *xrpc.Client, input *ServerCreateAccount_Input) (*ServerCreateAccount_Output, error) {
29
32
var out ServerCreateAccount_Output
30
33
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createAccount", nil, input, &out); err != nil {
+5
-2
api/atproto/servercreateAppPassword.go
+5
-2
api/atproto/servercreateAppPassword.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.createAppPassword
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.createAppPassword
12
-
13
+
// ServerCreateAppPassword_AppPassword is a "appPassword" in the com.atproto.server.createAppPassword schema.
13
14
type ServerCreateAppPassword_AppPassword struct {
14
15
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
15
16
Name string `json:"name" cborgen:"name"`
16
17
Password string `json:"password" cborgen:"password"`
17
18
}
18
19
20
+
// ServerCreateAppPassword_Input is the input argument to a com.atproto.server.createAppPassword call.
19
21
type ServerCreateAppPassword_Input struct {
20
22
Name string `json:"name" cborgen:"name"`
21
23
}
22
24
25
+
// ServerCreateAppPassword calls the XRPC method "com.atproto.server.createAppPassword".
23
26
func ServerCreateAppPassword(ctx context.Context, c *xrpc.Client, input *ServerCreateAppPassword_Input) (*ServerCreateAppPassword_AppPassword, error) {
24
27
var out ServerCreateAppPassword_AppPassword
25
28
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createAppPassword", nil, input, &out); err != nil {
+5
-2
api/atproto/servercreateInviteCode.go
+5
-2
api/atproto/servercreateInviteCode.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.createInviteCode
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.createInviteCode
12
-
13
+
// ServerCreateInviteCode_Input is the input argument to a com.atproto.server.createInviteCode call.
13
14
type ServerCreateInviteCode_Input struct {
14
15
ForAccount *string `json:"forAccount,omitempty" cborgen:"forAccount,omitempty"`
15
16
UseCount int64 `json:"useCount" cborgen:"useCount"`
16
17
}
17
18
19
+
// ServerCreateInviteCode_Output is the output of a com.atproto.server.createInviteCode call.
18
20
type ServerCreateInviteCode_Output struct {
19
21
Code string `json:"code" cborgen:"code"`
20
22
}
21
23
24
+
// ServerCreateInviteCode calls the XRPC method "com.atproto.server.createInviteCode".
22
25
func ServerCreateInviteCode(ctx context.Context, c *xrpc.Client, input *ServerCreateInviteCode_Input) (*ServerCreateInviteCode_Output, error) {
23
26
var out ServerCreateInviteCode_Output
24
27
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createInviteCode", nil, input, &out); err != nil {
+6
-2
api/atproto/servercreateInviteCodes.go
+6
-2
api/atproto/servercreateInviteCodes.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.createInviteCodes
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.createInviteCodes
12
-
13
+
// ServerCreateInviteCodes_AccountCodes is a "accountCodes" in the com.atproto.server.createInviteCodes schema.
13
14
type ServerCreateInviteCodes_AccountCodes struct {
14
15
Account string `json:"account" cborgen:"account"`
15
16
Codes []string `json:"codes" cborgen:"codes"`
16
17
}
17
18
19
+
// ServerCreateInviteCodes_Input is the input argument to a com.atproto.server.createInviteCodes call.
18
20
type ServerCreateInviteCodes_Input struct {
19
21
CodeCount int64 `json:"codeCount" cborgen:"codeCount"`
20
22
ForAccounts []string `json:"forAccounts,omitempty" cborgen:"forAccounts,omitempty"`
21
23
UseCount int64 `json:"useCount" cborgen:"useCount"`
22
24
}
23
25
26
+
// ServerCreateInviteCodes_Output is the output of a com.atproto.server.createInviteCodes call.
24
27
type ServerCreateInviteCodes_Output struct {
25
28
Codes []*ServerCreateInviteCodes_AccountCodes `json:"codes" cborgen:"codes"`
26
29
}
27
30
31
+
// ServerCreateInviteCodes calls the XRPC method "com.atproto.server.createInviteCodes".
28
32
func ServerCreateInviteCodes(ctx context.Context, c *xrpc.Client, input *ServerCreateInviteCodes_Input) (*ServerCreateInviteCodes_Output, error) {
29
33
var out ServerCreateInviteCodes_Output
30
34
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createInviteCodes", nil, input, &out); err != nil {
+6
-2
api/atproto/servercreateSession.go
+6
-2
api/atproto/servercreateSession.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.createSession
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.createSession
12
-
13
+
// ServerCreateSession_Input is the input argument to a com.atproto.server.createSession call.
13
14
type ServerCreateSession_Input struct {
15
+
// identifier: Handle or other identifier supported by the server for the authenticating user.
14
16
Identifier string `json:"identifier" cborgen:"identifier"`
15
17
Password string `json:"password" cborgen:"password"`
16
18
}
17
19
20
+
// ServerCreateSession_Output is the output of a com.atproto.server.createSession call.
18
21
type ServerCreateSession_Output struct {
19
22
AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
20
23
Did string `json:"did" cborgen:"did"`
···
23
26
RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"`
24
27
}
25
28
29
+
// ServerCreateSession calls the XRPC method "com.atproto.server.createSession".
26
30
func ServerCreateSession(ctx context.Context, c *xrpc.Client, input *ServerCreateSession_Input) (*ServerCreateSession_Output, error) {
27
31
var out ServerCreateSession_Output
28
32
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.createSession", nil, input, &out); err != nil {
+2
api/atproto/serverdefs.go
+2
api/atproto/serverdefs.go
···
4
4
5
5
// schema: com.atproto.server.defs
6
6
7
+
// ServerDefs_InviteCode is a "inviteCode" in the com.atproto.server.defs schema.
7
8
type ServerDefs_InviteCode struct {
8
9
Available int64 `json:"available" cborgen:"available"`
9
10
Code string `json:"code" cborgen:"code"`
···
14
15
Uses []*ServerDefs_InviteCodeUse `json:"uses" cborgen:"uses"`
15
16
}
16
17
18
+
// ServerDefs_InviteCodeUse is a "inviteCodeUse" in the com.atproto.server.defs schema.
17
19
type ServerDefs_InviteCodeUse struct {
18
20
UsedAt string `json:"usedAt" cborgen:"usedAt"`
19
21
UsedBy string `json:"usedBy" cborgen:"usedBy"`
+4
-2
api/atproto/serverdeleteAccount.go
+4
-2
api/atproto/serverdeleteAccount.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.deleteAccount
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.deleteAccount
12
-
13
+
// ServerDeleteAccount_Input is the input argument to a com.atproto.server.deleteAccount call.
13
14
type ServerDeleteAccount_Input struct {
14
15
Did string `json:"did" cborgen:"did"`
15
16
Password string `json:"password" cborgen:"password"`
16
17
Token string `json:"token" cborgen:"token"`
17
18
}
18
19
20
+
// ServerDeleteAccount calls the XRPC method "com.atproto.server.deleteAccount".
19
21
func ServerDeleteAccount(ctx context.Context, c *xrpc.Client, input *ServerDeleteAccount_Input) error {
20
22
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.deleteAccount", nil, input, nil); err != nil {
21
23
return err
+3
-2
api/atproto/serverdeleteSession.go
+3
-2
api/atproto/serverdeleteSession.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.deleteSession
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.deleteSession
12
-
13
+
// ServerDeleteSession calls the XRPC method "com.atproto.server.deleteSession".
13
14
func ServerDeleteSession(ctx context.Context, c *xrpc.Client) error {
14
15
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.deleteSession", nil, nil, nil); err != nil {
15
16
return err
+5
-2
api/atproto/serverdescribeServer.go
+5
-2
api/atproto/serverdescribeServer.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.describeServer
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.describeServer
12
-
13
+
// ServerDescribeServer_Links is a "links" in the com.atproto.server.describeServer schema.
13
14
type ServerDescribeServer_Links struct {
14
15
PrivacyPolicy *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"`
15
16
TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService,omitempty"`
16
17
}
17
18
19
+
// ServerDescribeServer_Output is the output of a com.atproto.server.describeServer call.
18
20
type ServerDescribeServer_Output struct {
19
21
AvailableUserDomains []string `json:"availableUserDomains" cborgen:"availableUserDomains"`
20
22
InviteCodeRequired *bool `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired,omitempty"`
21
23
Links *ServerDescribeServer_Links `json:"links,omitempty" cborgen:"links,omitempty"`
22
24
}
23
25
26
+
// ServerDescribeServer calls the XRPC method "com.atproto.server.describeServer".
24
27
func ServerDescribeServer(ctx context.Context, c *xrpc.Client) (*ServerDescribeServer_Output, error) {
25
28
var out ServerDescribeServer_Output
26
29
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.describeServer", nil, nil, &out); err != nil {
+4
-2
api/atproto/servergetAccountInviteCodes.go
+4
-2
api/atproto/servergetAccountInviteCodes.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.getAccountInviteCodes
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.getAccountInviteCodes
12
-
13
+
// ServerGetAccountInviteCodes_Output is the output of a com.atproto.server.getAccountInviteCodes call.
13
14
type ServerGetAccountInviteCodes_Output struct {
14
15
Codes []*ServerDefs_InviteCode `json:"codes" cborgen:"codes"`
15
16
}
16
17
18
+
// ServerGetAccountInviteCodes calls the XRPC method "com.atproto.server.getAccountInviteCodes".
17
19
func ServerGetAccountInviteCodes(ctx context.Context, c *xrpc.Client, createAvailable bool, includeUsed bool) (*ServerGetAccountInviteCodes_Output, error) {
18
20
var out ServerGetAccountInviteCodes_Output
19
21
+4
-2
api/atproto/servergetSession.go
+4
-2
api/atproto/servergetSession.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.getSession
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.getSession
12
-
13
+
// ServerGetSession_Output is the output of a com.atproto.server.getSession call.
13
14
type ServerGetSession_Output struct {
14
15
Did string `json:"did" cborgen:"did"`
15
16
Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
16
17
Handle string `json:"handle" cborgen:"handle"`
17
18
}
18
19
20
+
// ServerGetSession calls the XRPC method "com.atproto.server.getSession".
19
21
func ServerGetSession(ctx context.Context, c *xrpc.Client) (*ServerGetSession_Output, error) {
20
22
var out ServerGetSession_Output
21
23
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.getSession", nil, nil, &out); err != nil {
+5
-2
api/atproto/serverlistAppPasswords.go
+5
-2
api/atproto/serverlistAppPasswords.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.listAppPasswords
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.listAppPasswords
12
-
13
+
// ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema.
13
14
type ServerListAppPasswords_AppPassword struct {
14
15
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
15
16
Name string `json:"name" cborgen:"name"`
16
17
}
17
18
19
+
// ServerListAppPasswords_Output is the output of a com.atproto.server.listAppPasswords call.
18
20
type ServerListAppPasswords_Output struct {
19
21
Passwords []*ServerListAppPasswords_AppPassword `json:"passwords" cborgen:"passwords"`
20
22
}
21
23
24
+
// ServerListAppPasswords calls the XRPC method "com.atproto.server.listAppPasswords".
22
25
func ServerListAppPasswords(ctx context.Context, c *xrpc.Client) (*ServerListAppPasswords_Output, error) {
23
26
var out ServerListAppPasswords_Output
24
27
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.server.listAppPasswords", nil, nil, &out); err != nil {
+4
-2
api/atproto/serverrefreshSession.go
+4
-2
api/atproto/serverrefreshSession.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.refreshSession
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.refreshSession
12
-
13
+
// ServerRefreshSession_Output is the output of a com.atproto.server.refreshSession call.
13
14
type ServerRefreshSession_Output struct {
14
15
AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
15
16
Did string `json:"did" cborgen:"did"`
···
17
18
RefreshJwt string `json:"refreshJwt" cborgen:"refreshJwt"`
18
19
}
19
20
21
+
// ServerRefreshSession calls the XRPC method "com.atproto.server.refreshSession".
20
22
func ServerRefreshSession(ctx context.Context, c *xrpc.Client) (*ServerRefreshSession_Output, error) {
21
23
var out ServerRefreshSession_Output
22
24
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.refreshSession", nil, nil, &out); err != nil {
+3
-2
api/atproto/serverrequestAccountDelete.go
+3
-2
api/atproto/serverrequestAccountDelete.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.requestAccountDelete
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.requestAccountDelete
12
-
13
+
// ServerRequestAccountDelete calls the XRPC method "com.atproto.server.requestAccountDelete".
13
14
func ServerRequestAccountDelete(ctx context.Context, c *xrpc.Client) error {
14
15
if err := c.Do(ctx, xrpc.Procedure, "", "com.atproto.server.requestAccountDelete", nil, nil, nil); err != nil {
15
16
return err
+4
-2
api/atproto/serverrequestPasswordReset.go
+4
-2
api/atproto/serverrequestPasswordReset.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.requestPasswordReset
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.requestPasswordReset
12
-
13
+
// ServerRequestPasswordReset_Input is the input argument to a com.atproto.server.requestPasswordReset call.
13
14
type ServerRequestPasswordReset_Input struct {
14
15
Email string `json:"email" cborgen:"email"`
15
16
}
16
17
18
+
// ServerRequestPasswordReset calls the XRPC method "com.atproto.server.requestPasswordReset".
17
19
func ServerRequestPasswordReset(ctx context.Context, c *xrpc.Client, input *ServerRequestPasswordReset_Input) error {
18
20
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.requestPasswordReset", nil, input, nil); err != nil {
19
21
return err
+4
-2
api/atproto/serverresetPassword.go
+4
-2
api/atproto/serverresetPassword.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.resetPassword
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.resetPassword
12
-
13
+
// ServerResetPassword_Input is the input argument to a com.atproto.server.resetPassword call.
13
14
type ServerResetPassword_Input struct {
14
15
Password string `json:"password" cborgen:"password"`
15
16
Token string `json:"token" cborgen:"token"`
16
17
}
17
18
19
+
// ServerResetPassword calls the XRPC method "com.atproto.server.resetPassword".
18
20
func ServerResetPassword(ctx context.Context, c *xrpc.Client, input *ServerResetPassword_Input) error {
19
21
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.resetPassword", nil, input, nil); err != nil {
20
22
return err
+4
-2
api/atproto/serverrevokeAppPassword.go
+4
-2
api/atproto/serverrevokeAppPassword.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.server.revokeAppPassword
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.server.revokeAppPassword
12
-
13
+
// ServerRevokeAppPassword_Input is the input argument to a com.atproto.server.revokeAppPassword call.
13
14
type ServerRevokeAppPassword_Input struct {
14
15
Name string `json:"name" cborgen:"name"`
15
16
}
16
17
18
+
// ServerRevokeAppPassword calls the XRPC method "com.atproto.server.revokeAppPassword".
17
19
func ServerRevokeAppPassword(ctx context.Context, c *xrpc.Client, input *ServerRevokeAppPassword_Input) error {
18
20
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.server.revokeAppPassword", nil, input, nil); err != nil {
19
21
return err
+6
-2
api/atproto/syncgetBlob.go
+6
-2
api/atproto/syncgetBlob.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.getBlob
6
+
5
7
import (
6
8
"bytes"
7
9
"context"
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.sync.getBlob
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 repo.
14
18
func SyncGetBlob(ctx context.Context, c *xrpc.Client, cid string, did string) ([]byte, error) {
15
19
buf := new(bytes.Buffer)
16
20
+5
-2
api/atproto/syncgetBlocks.go
+5
-2
api/atproto/syncgetBlocks.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.getBlocks
6
+
5
7
import (
6
8
"bytes"
7
9
"context"
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.sync.getBlocks
13
-
14
+
// SyncGetBlocks calls the XRPC method "com.atproto.sync.getBlocks".
15
+
//
16
+
// did: The DID of the repo.
14
17
func SyncGetBlocks(ctx context.Context, c *xrpc.Client, cids []string, did string) ([]byte, error) {
15
18
buf := new(bytes.Buffer)
16
19
+6
-2
api/atproto/syncgetCheckout.go
+6
-2
api/atproto/syncgetCheckout.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.getCheckout
6
+
5
7
import (
6
8
"bytes"
7
9
"context"
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.sync.getCheckout
13
-
14
+
// SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout".
15
+
//
16
+
// commit: The commit to get the checkout from. Defaults to current HEAD.
17
+
// did: The DID of the repo.
14
18
func SyncGetCheckout(ctx context.Context, c *xrpc.Client, commit string, did string) ([]byte, error) {
15
19
buf := new(bytes.Buffer)
16
20
+8
-2
api/atproto/syncgetCommitPath.go
+8
-2
api/atproto/syncgetCommitPath.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.getCommitPath
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.sync.getCommitPath
12
-
13
+
// SyncGetCommitPath_Output is the output of a com.atproto.sync.getCommitPath call.
13
14
type SyncGetCommitPath_Output struct {
14
15
Commits []string `json:"commits" cborgen:"commits"`
15
16
}
16
17
18
+
// SyncGetCommitPath calls the XRPC method "com.atproto.sync.getCommitPath".
19
+
//
20
+
// did: The DID of the repo.
21
+
// earliest: The earliest commit to start from
22
+
// latest: The most recent commit
17
23
func SyncGetCommitPath(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) (*SyncGetCommitPath_Output, error) {
18
24
var out SyncGetCommitPath_Output
19
25
+6
-2
api/atproto/syncgetHead.go
+6
-2
api/atproto/syncgetHead.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.getHead
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.sync.getHead
12
-
13
+
// SyncGetHead_Output is the output of a com.atproto.sync.getHead call.
13
14
type SyncGetHead_Output struct {
14
15
Root string `json:"root" cborgen:"root"`
15
16
}
16
17
18
+
// SyncGetHead calls the XRPC method "com.atproto.sync.getHead".
19
+
//
20
+
// did: The DID of the repo.
17
21
func SyncGetHead(ctx context.Context, c *xrpc.Client, did string) (*SyncGetHead_Output, error) {
18
22
var out SyncGetHead_Output
19
23
+6
-2
api/atproto/syncgetRecord.go
+6
-2
api/atproto/syncgetRecord.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.getRecord
6
+
5
7
import (
6
8
"bytes"
7
9
"context"
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.sync.getRecord
13
-
14
+
// SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord".
15
+
//
16
+
// commit: An optional past commit CID.
17
+
// did: The DID of the repo.
14
18
func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, commit string, did string, rkey string) ([]byte, error) {
15
19
buf := new(bytes.Buffer)
16
20
+7
-2
api/atproto/syncgetRepo.go
+7
-2
api/atproto/syncgetRepo.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.getRepo
6
+
5
7
import (
6
8
"bytes"
7
9
"context"
···
9
11
"github.com/bluesky-social/indigo/xrpc"
10
12
)
11
13
12
-
// schema: com.atproto.sync.getRepo
13
-
14
+
// SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo".
15
+
//
16
+
// did: The DID of the repo.
17
+
// earliest: The earliest commit in the commit range (not inclusive)
18
+
// latest: The latest commit in the commit range (inclusive)
14
19
func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) ([]byte, error) {
15
20
buf := new(bytes.Buffer)
16
21
+8
-2
api/atproto/synclistBlobs.go
+8
-2
api/atproto/synclistBlobs.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.listBlobs
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.sync.listBlobs
12
-
13
+
// SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.
13
14
type SyncListBlobs_Output struct {
14
15
Cids []string `json:"cids" cborgen:"cids"`
15
16
}
16
17
18
+
// SyncListBlobs calls the XRPC method "com.atproto.sync.listBlobs".
19
+
//
20
+
// did: The DID of the repo.
21
+
// earliest: The earliest commit to start from
22
+
// latest: The most recent commit
17
23
func SyncListBlobs(ctx context.Context, c *xrpc.Client, did string, earliest string, latest string) (*SyncListBlobs_Output, error) {
18
24
var out SyncListBlobs_Output
19
25
+5
-2
api/atproto/synclistRepos.go
+5
-2
api/atproto/synclistRepos.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.listRepos
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.sync.listRepos
12
-
13
+
// SyncListRepos_Output is the output of a com.atproto.sync.listRepos call.
13
14
type SyncListRepos_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Repos []*SyncListRepos_Repo `json:"repos" cborgen:"repos"`
16
17
}
17
18
19
+
// SyncListRepos_Repo is a "repo" in the com.atproto.sync.listRepos schema.
18
20
type SyncListRepos_Repo struct {
19
21
Did string `json:"did" cborgen:"did"`
20
22
Head string `json:"head" cborgen:"head"`
21
23
}
22
24
25
+
// SyncListRepos calls the XRPC method "com.atproto.sync.listRepos".
23
26
func SyncListRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListRepos_Output, error) {
24
27
var out SyncListRepos_Output
25
28
+5
-2
api/atproto/syncnotifyOfUpdate.go
+5
-2
api/atproto/syncnotifyOfUpdate.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.notifyOfUpdate
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.sync.notifyOfUpdate
12
-
13
+
// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
14
+
//
15
+
// hostname: Hostname of the service that is notifying of update.
13
16
func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, hostname string) error {
14
17
15
18
params := map[string]interface{}{
+5
-2
api/atproto/syncrequestCrawl.go
+5
-2
api/atproto/syncrequestCrawl.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.requestCrawl
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: com.atproto.sync.requestCrawl
12
-
13
+
// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
14
+
//
15
+
// hostname: Hostname of the service that is requesting to be crawled.
13
16
func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, hostname string) error {
14
17
15
18
params := map[string]interface{}{
+10
-3
api/atproto/syncsubscribeRepos.go
+10
-3
api/atproto/syncsubscribeRepos.go
···
2
2
3
3
package atproto
4
4
5
+
// schema: com.atproto.sync.subscribeRepos
6
+
5
7
import (
6
8
"github.com/bluesky-social/indigo/lex/util"
7
9
)
8
10
9
-
// schema: com.atproto.sync.subscribeRepos
10
-
11
+
// SyncSubscribeRepos_Commit is a "commit" in the com.atproto.sync.subscribeRepos schema.
11
12
type SyncSubscribeRepos_Commit struct {
12
-
Blobs []util.LexLink `json:"blobs" cborgen:"blobs"`
13
+
Blobs []util.LexLink `json:"blobs" cborgen:"blobs"`
14
+
// blocks: CAR file containing relevant blocks
13
15
Blocks util.LexBytes `json:"blocks,omitempty" cborgen:"blocks"`
14
16
Commit util.LexLink `json:"commit" cborgen:"commit"`
15
17
Ops []*SyncSubscribeRepos_RepoOp `json:"ops" cborgen:"ops"`
···
21
23
TooBig bool `json:"tooBig" cborgen:"tooBig"`
22
24
}
23
25
26
+
// SyncSubscribeRepos_Handle is a "handle" in the com.atproto.sync.subscribeRepos schema.
24
27
type SyncSubscribeRepos_Handle struct {
25
28
Did string `json:"did" cborgen:"did"`
26
29
Handle string `json:"handle" cborgen:"handle"`
···
28
31
Time string `json:"time" cborgen:"time"`
29
32
}
30
33
34
+
// SyncSubscribeRepos_Info is a "info" in the com.atproto.sync.subscribeRepos schema.
31
35
type SyncSubscribeRepos_Info struct {
32
36
Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
33
37
Name string `json:"name" cborgen:"name"`
34
38
}
35
39
40
+
// SyncSubscribeRepos_Migrate is a "migrate" in the com.atproto.sync.subscribeRepos schema.
36
41
type SyncSubscribeRepos_Migrate struct {
37
42
Did string `json:"did" cborgen:"did"`
38
43
MigrateTo *string `json:"migrateTo" cborgen:"migrateTo"`
···
40
45
Time string `json:"time" cborgen:"time"`
41
46
}
42
47
48
+
// SyncSubscribeRepos_RepoOp is a "repoOp" in the com.atproto.sync.subscribeRepos schema.
43
49
type SyncSubscribeRepos_RepoOp struct {
44
50
Action string `json:"action" cborgen:"action"`
45
51
Cid *util.LexLink `json:"cid" cborgen:"cid"`
46
52
Path string `json:"path" cborgen:"path"`
47
53
}
48
54
55
+
// SyncSubscribeRepos_Tombstone is a "tombstone" in the com.atproto.sync.subscribeRepos schema.
49
56
type SyncSubscribeRepos_Tombstone struct {
50
57
Did string `json:"did" cborgen:"did"`
51
58
Seq int64 `json:"seq" cborgen:"seq"`
+6
-2
api/bsky/actordefs.go
+6
-2
api/bsky/actordefs.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.actor.defs
6
+
5
7
import (
6
8
comatprototypes "github.com/bluesky-social/indigo/api/atproto"
7
9
)
8
10
9
-
// schema: app.bsky.actor.defs
10
-
11
+
// ActorDefs_ProfileView is a "profileView" in the app.bsky.actor.defs schema.
11
12
type ActorDefs_ProfileView struct {
12
13
Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
13
14
Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
···
19
20
Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
20
21
}
21
22
23
+
// ActorDefs_ProfileViewBasic is a "profileViewBasic" in the app.bsky.actor.defs schema.
22
24
type ActorDefs_ProfileViewBasic struct {
23
25
Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
24
26
Did string `json:"did" cborgen:"did"`
···
28
30
Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
29
31
}
30
32
33
+
// ActorDefs_ProfileViewDetailed is a "profileViewDetailed" in the app.bsky.actor.defs schema.
31
34
type ActorDefs_ProfileViewDetailed struct {
32
35
Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
33
36
Banner *string `json:"banner,omitempty" cborgen:"banner,omitempty"`
···
43
46
Viewer *ActorDefs_ViewerState `json:"viewer,omitempty" cborgen:"viewer,omitempty"`
44
47
}
45
48
49
+
// ActorDefs_ViewerState is a "viewerState" in the app.bsky.actor.defs schema.
46
50
type ActorDefs_ViewerState struct {
47
51
FollowedBy *string `json:"followedBy,omitempty" cborgen:"followedBy,omitempty"`
48
52
Following *string `json:"following,omitempty" cborgen:"following,omitempty"`
+3
-2
api/bsky/actorgetProfile.go
+3
-2
api/bsky/actorgetProfile.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.actor.getProfile
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.actor.getProfile
12
-
13
+
// ActorGetProfile calls the XRPC method "app.bsky.actor.getProfile".
13
14
func ActorGetProfile(ctx context.Context, c *xrpc.Client, actor string) (*ActorDefs_ProfileViewDetailed, error) {
14
15
var out ActorDefs_ProfileViewDetailed
15
16
+4
-2
api/bsky/actorgetProfiles.go
+4
-2
api/bsky/actorgetProfiles.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.actor.getProfiles
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.actor.getProfiles
12
-
13
+
// ActorGetProfiles_Output is the output of a app.bsky.actor.getProfiles call.
13
14
type ActorGetProfiles_Output struct {
14
15
Profiles []*ActorDefs_ProfileViewDetailed `json:"profiles" cborgen:"profiles"`
15
16
}
16
17
18
+
// ActorGetProfiles calls the XRPC method "app.bsky.actor.getProfiles".
17
19
func ActorGetProfiles(ctx context.Context, c *xrpc.Client, actors []string) (*ActorGetProfiles_Output, error) {
18
20
var out ActorGetProfiles_Output
19
21
+4
-2
api/bsky/actorgetSuggestions.go
+4
-2
api/bsky/actorgetSuggestions.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.actor.getSuggestions
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.actor.getSuggestions
12
-
13
+
// ActorGetSuggestions_Output is the output of a app.bsky.actor.getSuggestions call.
13
14
type ActorGetSuggestions_Output struct {
14
15
Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"`
15
16
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16
17
}
17
18
19
+
// ActorGetSuggestions calls the XRPC method "app.bsky.actor.getSuggestions".
18
20
func ActorGetSuggestions(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*ActorGetSuggestions_Output, error) {
19
21
var out ActorGetSuggestions_Output
20
22
+4
-3
api/bsky/actorprofile.go
+4
-3
api/bsky/actorprofile.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.actor.profile
6
+
5
7
import (
6
8
"github.com/bluesky-social/indigo/lex/util"
7
9
)
8
-
9
-
// schema: app.bsky.actor.profile
10
10
11
11
func init() {
12
12
util.RegisterType("app.bsky.actor.profile", &ActorProfile{})
13
-
} // RECORDTYPE: ActorProfile
13
+
} //
14
+
// RECORDTYPE: ActorProfile
14
15
type ActorProfile struct {
15
16
LexiconTypeID string `json:"$type,const=app.bsky.actor.profile" cborgen:"$type,const=app.bsky.actor.profile"`
16
17
Avatar *util.LexBlob `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
+4
-2
api/bsky/actorsearchActors.go
+4
-2
api/bsky/actorsearchActors.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.actor.searchActors
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.actor.searchActors
12
-
13
+
// ActorSearchActors_Output is the output of a app.bsky.actor.searchActors call.
13
14
type ActorSearchActors_Output struct {
14
15
Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"`
15
16
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16
17
}
17
18
19
+
// ActorSearchActors calls the XRPC method "app.bsky.actor.searchActors".
18
20
func ActorSearchActors(ctx context.Context, c *xrpc.Client, cursor string, limit int64, term string) (*ActorSearchActors_Output, error) {
19
21
var out ActorSearchActors_Output
20
22
+4
-2
api/bsky/actorsearchActorsTypeahead.go
+4
-2
api/bsky/actorsearchActorsTypeahead.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.actor.searchActorsTypeahead
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.actor.searchActorsTypeahead
12
-
13
+
// ActorSearchActorsTypeahead_Output is the output of a app.bsky.actor.searchActorsTypeahead call.
13
14
type ActorSearchActorsTypeahead_Output struct {
14
15
Actors []*ActorDefs_ProfileViewBasic `json:"actors" cborgen:"actors"`
15
16
}
16
17
18
+
// ActorSearchActorsTypeahead calls the XRPC method "app.bsky.actor.searchActorsTypeahead".
17
19
func ActorSearchActorsTypeahead(ctx context.Context, c *xrpc.Client, limit int64, term string) (*ActorSearchActorsTypeahead_Output, error) {
18
20
var out ActorSearchActorsTypeahead_Output
19
21
+8
-3
api/bsky/embedexternal.go
+8
-3
api/bsky/embedexternal.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.embed.external
6
+
5
7
import (
6
8
"github.com/bluesky-social/indigo/lex/util"
7
9
)
8
10
9
-
// schema: app.bsky.embed.external
10
-
11
11
func init() {
12
12
util.RegisterType("app.bsky.embed.external#main", &EmbedExternal{})
13
-
} // RECORDTYPE: EmbedExternal
13
+
} // EmbedExternal is a "main" in the app.bsky.embed.external schema.
14
+
// RECORDTYPE: EmbedExternal
14
15
type EmbedExternal struct {
15
16
LexiconTypeID string `json:"$type,const=app.bsky.embed.external" cborgen:"$type,const=app.bsky.embed.external"`
16
17
External *EmbedExternal_External `json:"external" cborgen:"external"`
17
18
}
18
19
20
+
// EmbedExternal_External is a "external" in the app.bsky.embed.external schema.
19
21
type EmbedExternal_External struct {
20
22
Description string `json:"description" cborgen:"description"`
21
23
Thumb *util.LexBlob `json:"thumb,omitempty" cborgen:"thumb,omitempty"`
···
23
25
Uri string `json:"uri" cborgen:"uri"`
24
26
}
25
27
28
+
// EmbedExternal_View is a "view" in the app.bsky.embed.external schema.
29
+
//
26
30
// RECORDTYPE: EmbedExternal_View
27
31
type EmbedExternal_View struct {
28
32
LexiconTypeID string `json:"$type,const=app.bsky.embed.external" cborgen:"$type,const=app.bsky.embed.external"`
29
33
External *EmbedExternal_ViewExternal `json:"external" cborgen:"external"`
30
34
}
31
35
36
+
// EmbedExternal_ViewExternal is a "viewExternal" in the app.bsky.embed.external schema.
32
37
type EmbedExternal_ViewExternal struct {
33
38
Description string `json:"description" cborgen:"description"`
34
39
Thumb *string `json:"thumb,omitempty" cborgen:"thumb,omitempty"`
+8
-3
api/bsky/embedimages.go
+8
-3
api/bsky/embedimages.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.embed.images
6
+
5
7
import (
6
8
"github.com/bluesky-social/indigo/lex/util"
7
9
)
8
10
9
-
// schema: app.bsky.embed.images
10
-
11
11
func init() {
12
12
util.RegisterType("app.bsky.embed.images#main", &EmbedImages{})
13
-
} // RECORDTYPE: EmbedImages
13
+
} // EmbedImages is a "main" in the app.bsky.embed.images schema.
14
+
// RECORDTYPE: EmbedImages
14
15
type EmbedImages struct {
15
16
LexiconTypeID string `json:"$type,const=app.bsky.embed.images" cborgen:"$type,const=app.bsky.embed.images"`
16
17
Images []*EmbedImages_Image `json:"images" cborgen:"images"`
17
18
}
18
19
20
+
// EmbedImages_Image is a "image" in the app.bsky.embed.images schema.
19
21
type EmbedImages_Image struct {
20
22
Alt string `json:"alt" cborgen:"alt"`
21
23
Image *util.LexBlob `json:"image" cborgen:"image"`
22
24
}
23
25
26
+
// EmbedImages_View is a "view" in the app.bsky.embed.images schema.
27
+
//
24
28
// RECORDTYPE: EmbedImages_View
25
29
type EmbedImages_View struct {
26
30
LexiconTypeID string `json:"$type,const=app.bsky.embed.images" cborgen:"$type,const=app.bsky.embed.images"`
27
31
Images []*EmbedImages_ViewImage `json:"images" cborgen:"images"`
28
32
}
29
33
34
+
// EmbedImages_ViewImage is a "viewImage" in the app.bsky.embed.images schema.
30
35
type EmbedImages_ViewImage struct {
31
36
Alt string `json:"alt" cborgen:"alt"`
32
37
Fullsize string `json:"fullsize" cborgen:"fullsize"`
+10
-3
api/bsky/embedrecord.go
+10
-3
api/bsky/embedrecord.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.embed.record
6
+
5
7
import (
6
8
"encoding/json"
7
9
"fmt"
···
10
12
"github.com/bluesky-social/indigo/lex/util"
11
13
)
12
14
13
-
// schema: app.bsky.embed.record
14
-
15
15
func init() {
16
16
util.RegisterType("app.bsky.embed.record#main", &EmbedRecord{})
17
-
} // RECORDTYPE: EmbedRecord
17
+
} // EmbedRecord is a "main" in the app.bsky.embed.record schema.
18
+
// RECORDTYPE: EmbedRecord
18
19
type EmbedRecord struct {
19
20
LexiconTypeID string `json:"$type,const=app.bsky.embed.record" cborgen:"$type,const=app.bsky.embed.record"`
20
21
Record *comatprototypes.RepoStrongRef `json:"record" cborgen:"record"`
21
22
}
22
23
24
+
// EmbedRecord_View is a "view" in the app.bsky.embed.record schema.
25
+
//
23
26
// RECORDTYPE: EmbedRecord_View
24
27
type EmbedRecord_View struct {
25
28
LexiconTypeID string `json:"$type,const=app.bsky.embed.record" cborgen:"$type,const=app.bsky.embed.record"`
26
29
Record *EmbedRecord_View_Record `json:"record" cborgen:"record"`
27
30
}
28
31
32
+
// EmbedRecord_ViewNotFound is a "viewNotFound" in the app.bsky.embed.record schema.
33
+
//
29
34
// RECORDTYPE: EmbedRecord_ViewNotFound
30
35
type EmbedRecord_ViewNotFound struct {
31
36
LexiconTypeID string `json:"$type,const=app.bsky.embed.record" cborgen:"$type,const=app.bsky.embed.record"`
32
37
Uri string `json:"uri" cborgen:"uri"`
33
38
}
34
39
40
+
// EmbedRecord_ViewRecord is a "viewRecord" in the app.bsky.embed.record schema.
41
+
//
35
42
// RECORDTYPE: EmbedRecord_ViewRecord
36
43
type EmbedRecord_ViewRecord struct {
37
44
LexiconTypeID string `json:"$type,const=app.bsky.embed.record" cborgen:"$type,const=app.bsky.embed.record"`
+6
-3
api/bsky/embedrecordWithMedia.go
+6
-3
api/bsky/embedrecordWithMedia.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.embed.recordWithMedia
6
+
5
7
import (
6
8
"bytes"
7
9
"encoding/json"
···
12
14
cbg "github.com/whyrusleeping/cbor-gen"
13
15
)
14
16
15
-
// schema: app.bsky.embed.recordWithMedia
16
-
17
17
func init() {
18
18
util.RegisterType("app.bsky.embed.recordWithMedia#main", &EmbedRecordWithMedia{})
19
-
} // RECORDTYPE: EmbedRecordWithMedia
19
+
} // EmbedRecordWithMedia is a "main" in the app.bsky.embed.recordWithMedia schema.
20
+
// RECORDTYPE: EmbedRecordWithMedia
20
21
type EmbedRecordWithMedia struct {
21
22
LexiconTypeID string `json:"$type,const=app.bsky.embed.recordWithMedia" cborgen:"$type,const=app.bsky.embed.recordWithMedia"`
22
23
Media *EmbedRecordWithMedia_Media `json:"media" cborgen:"media"`
···
91
92
}
92
93
}
93
94
95
+
// EmbedRecordWithMedia_View is a "view" in the app.bsky.embed.recordWithMedia schema.
96
+
//
94
97
// RECORDTYPE: EmbedRecordWithMedia_View
95
98
type EmbedRecordWithMedia_View struct {
96
99
LexiconTypeID string `json:"$type,const=app.bsky.embed.recordWithMedia" cborgen:"$type,const=app.bsky.embed.recordWithMedia"`
+12
-2
api/bsky/feeddefs.go
+12
-2
api/bsky/feeddefs.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.defs
6
+
5
7
import (
6
8
"encoding/json"
7
9
"fmt"
···
10
12
"github.com/bluesky-social/indigo/lex/util"
11
13
)
12
14
13
-
// schema: app.bsky.feed.defs
14
-
15
+
// FeedDefs_FeedViewPost is a "feedViewPost" in the app.bsky.feed.defs schema.
15
16
type FeedDefs_FeedViewPost struct {
16
17
Post *FeedDefs_PostView `json:"post" cborgen:"post"`
17
18
Reason *FeedDefs_FeedViewPost_Reason `json:"reason,omitempty" cborgen:"reason,omitempty"`
···
45
46
}
46
47
}
47
48
49
+
// FeedDefs_NotFoundPost is a "notFoundPost" in the app.bsky.feed.defs schema.
50
+
//
48
51
// RECORDTYPE: FeedDefs_NotFoundPost
49
52
type FeedDefs_NotFoundPost struct {
50
53
LexiconTypeID string `json:"$type,const=app.bsky.feed.defs" cborgen:"$type,const=app.bsky.feed.defs"`
···
52
55
Uri string `json:"uri" cborgen:"uri"`
53
56
}
54
57
58
+
// FeedDefs_PostView is a "postView" in the app.bsky.feed.defs schema.
55
59
type FeedDefs_PostView struct {
56
60
Author *ActorDefs_ProfileViewBasic `json:"author" cborgen:"author"`
57
61
Cid string `json:"cid" cborgen:"cid"`
···
117
121
}
118
122
}
119
123
124
+
// FeedDefs_ReasonRepost is a "reasonRepost" in the app.bsky.feed.defs schema.
125
+
//
120
126
// RECORDTYPE: FeedDefs_ReasonRepost
121
127
type FeedDefs_ReasonRepost struct {
122
128
LexiconTypeID string `json:"$type,const=app.bsky.feed.defs" cborgen:"$type,const=app.bsky.feed.defs"`
···
124
130
IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
125
131
}
126
132
133
+
// FeedDefs_ReplyRef is a "replyRef" in the app.bsky.feed.defs schema.
127
134
type FeedDefs_ReplyRef struct {
128
135
Parent *FeedDefs_PostView `json:"parent" cborgen:"parent"`
129
136
Root *FeedDefs_PostView `json:"root" cborgen:"root"`
130
137
}
131
138
139
+
// FeedDefs_ThreadViewPost is a "threadViewPost" in the app.bsky.feed.defs schema.
140
+
//
132
141
// RECORDTYPE: FeedDefs_ThreadViewPost
133
142
type FeedDefs_ThreadViewPost struct {
134
143
LexiconTypeID string `json:"$type,const=app.bsky.feed.defs" cborgen:"$type,const=app.bsky.feed.defs"`
···
207
216
}
208
217
}
209
218
219
+
// FeedDefs_ViewerState is a "viewerState" in the app.bsky.feed.defs schema.
210
220
type FeedDefs_ViewerState struct {
211
221
Like *string `json:"like,omitempty" cborgen:"like,omitempty"`
212
222
Repost *string `json:"repost,omitempty" cborgen:"repost,omitempty"`
+4
-2
api/bsky/feedgetAuthorFeed.go
+4
-2
api/bsky/feedgetAuthorFeed.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.getAuthorFeed
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.feed.getAuthorFeed
12
-
13
+
// FeedGetAuthorFeed_Output is the output of a app.bsky.feed.getAuthorFeed call.
13
14
type FeedGetAuthorFeed_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
16
17
}
17
18
19
+
// FeedGetAuthorFeed calls the XRPC method "app.bsky.feed.getAuthorFeed".
18
20
func FeedGetAuthorFeed(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*FeedGetAuthorFeed_Output, error) {
19
21
var out FeedGetAuthorFeed_Output
20
22
+5
-2
api/bsky/feedgetLikes.go
+5
-2
api/bsky/feedgetLikes.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.getLikes
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.feed.getLikes
12
-
13
+
// FeedGetLikes_Like is a "like" in the app.bsky.feed.getLikes schema.
13
14
type FeedGetLikes_Like struct {
14
15
Actor *ActorDefs_ProfileView `json:"actor" cborgen:"actor"`
15
16
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
16
17
IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
17
18
}
18
19
20
+
// FeedGetLikes_Output is the output of a app.bsky.feed.getLikes call.
19
21
type FeedGetLikes_Output struct {
20
22
Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
21
23
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
···
23
25
Uri string `json:"uri" cborgen:"uri"`
24
26
}
25
27
28
+
// FeedGetLikes calls the XRPC method "app.bsky.feed.getLikes".
26
29
func FeedGetLikes(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetLikes_Output, error) {
27
30
var out FeedGetLikes_Output
28
31
+4
-2
api/bsky/feedgetPostThread.go
+4
-2
api/bsky/feedgetPostThread.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.getPostThread
6
+
5
7
import (
6
8
"context"
7
9
"encoding/json"
···
11
13
"github.com/bluesky-social/indigo/xrpc"
12
14
)
13
15
14
-
// schema: app.bsky.feed.getPostThread
15
-
16
+
// FeedGetPostThread_Output is the output of a app.bsky.feed.getPostThread call.
16
17
type FeedGetPostThread_Output struct {
17
18
Thread *FeedGetPostThread_Output_Thread `json:"thread" cborgen:"thread"`
18
19
}
···
52
53
}
53
54
}
54
55
56
+
// FeedGetPostThread calls the XRPC method "app.bsky.feed.getPostThread".
55
57
func FeedGetPostThread(ctx context.Context, c *xrpc.Client, depth int64, uri string) (*FeedGetPostThread_Output, error) {
56
58
var out FeedGetPostThread_Output
57
59
+4
-2
api/bsky/feedgetPosts.go
+4
-2
api/bsky/feedgetPosts.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.getPosts
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.feed.getPosts
12
-
13
+
// FeedGetPosts_Output is the output of a app.bsky.feed.getPosts call.
13
14
type FeedGetPosts_Output struct {
14
15
Posts []*FeedDefs_PostView `json:"posts" cborgen:"posts"`
15
16
}
16
17
18
+
// FeedGetPosts calls the XRPC method "app.bsky.feed.getPosts".
17
19
func FeedGetPosts(ctx context.Context, c *xrpc.Client, uris []string) (*FeedGetPosts_Output, error) {
18
20
var out FeedGetPosts_Output
19
21
+4
-2
api/bsky/feedgetRepostedBy.go
+4
-2
api/bsky/feedgetRepostedBy.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.getRepostedBy
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.feed.getRepostedBy
12
-
13
+
// FeedGetRepostedBy_Output is the output of a app.bsky.feed.getRepostedBy call.
13
14
type FeedGetRepostedBy_Output struct {
14
15
Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
15
16
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
···
17
18
Uri string `json:"uri" cborgen:"uri"`
18
19
}
19
20
21
+
// FeedGetRepostedBy calls the XRPC method "app.bsky.feed.getRepostedBy".
20
22
func FeedGetRepostedBy(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetRepostedBy_Output, error) {
21
23
var out FeedGetRepostedBy_Output
22
24
+4
-2
api/bsky/feedgetTimeline.go
+4
-2
api/bsky/feedgetTimeline.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.getTimeline
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.feed.getTimeline
12
-
13
+
// FeedGetTimeline_Output is the output of a app.bsky.feed.getTimeline call.
13
14
type FeedGetTimeline_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
16
17
}
17
18
19
+
// FeedGetTimeline calls the XRPC method "app.bsky.feed.getTimeline".
18
20
func FeedGetTimeline(ctx context.Context, c *xrpc.Client, algorithm string, cursor string, limit int64) (*FeedGetTimeline_Output, error) {
19
21
var out FeedGetTimeline_Output
20
22
+4
-3
api/bsky/feedlike.go
+4
-3
api/bsky/feedlike.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.like
6
+
5
7
import (
6
8
comatprototypes "github.com/bluesky-social/indigo/api/atproto"
7
9
"github.com/bluesky-social/indigo/lex/util"
8
10
)
9
-
10
-
// schema: app.bsky.feed.like
11
11
12
12
func init() {
13
13
util.RegisterType("app.bsky.feed.like", &FeedLike{})
14
-
} // RECORDTYPE: FeedLike
14
+
} //
15
+
// RECORDTYPE: FeedLike
15
16
type FeedLike struct {
16
17
LexiconTypeID string `json:"$type,const=app.bsky.feed.like" cborgen:"$type,const=app.bsky.feed.like"`
17
18
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
+22
-12
api/bsky/feedpost.go
+22
-12
api/bsky/feedpost.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.post
6
+
5
7
import (
6
8
"bytes"
7
9
"encoding/json"
···
13
15
cbg "github.com/whyrusleeping/cbor-gen"
14
16
)
15
17
16
-
// schema: app.bsky.feed.post
17
-
18
18
func init() {
19
19
util.RegisterType("app.bsky.feed.post", &FeedPost{})
20
-
} // RECORDTYPE: FeedPost
20
+
} //
21
+
// RECORDTYPE: FeedPost
21
22
type FeedPost struct {
22
-
LexiconTypeID string `json:"$type,const=app.bsky.feed.post" cborgen:"$type,const=app.bsky.feed.post"`
23
-
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
24
-
Embed *FeedPost_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"`
25
-
Entities []*FeedPost_Entity `json:"entities,omitempty" cborgen:"entities,omitempty"`
26
-
Facets []*RichtextFacet `json:"facets,omitempty" cborgen:"facets,omitempty"`
27
-
Reply *FeedPost_ReplyRef `json:"reply,omitempty" cborgen:"reply,omitempty"`
28
-
Text string `json:"text" cborgen:"text"`
23
+
LexiconTypeID string `json:"$type,const=app.bsky.feed.post" cborgen:"$type,const=app.bsky.feed.post"`
24
+
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
25
+
Embed *FeedPost_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"`
26
+
// entities: Deprecated: replaced by app.bsky.richtext.facet.
27
+
Entities []*FeedPost_Entity `json:"entities,omitempty" cborgen:"entities,omitempty"`
28
+
Facets []*RichtextFacet `json:"facets,omitempty" cborgen:"facets,omitempty"`
29
+
Reply *FeedPost_ReplyRef `json:"reply,omitempty" cborgen:"reply,omitempty"`
30
+
Text string `json:"text" cborgen:"text"`
29
31
}
30
32
31
33
type FeedPost_Embed struct {
···
124
126
}
125
127
}
126
128
129
+
// FeedPost_Entity is a "entity" in the app.bsky.feed.post schema.
130
+
//
131
+
// Deprecated: use facets instead.
127
132
type FeedPost_Entity struct {
128
133
Index *FeedPost_TextSlice `json:"index" cborgen:"index"`
129
-
Type string `json:"type" cborgen:"type"`
130
-
Value string `json:"value" cborgen:"value"`
134
+
// type: Expected values are 'mention' and 'link'.
135
+
Type string `json:"type" cborgen:"type"`
136
+
Value string `json:"value" cborgen:"value"`
131
137
}
132
138
139
+
// FeedPost_ReplyRef is a "replyRef" in the app.bsky.feed.post schema.
133
140
type FeedPost_ReplyRef struct {
134
141
Parent *comatprototypes.RepoStrongRef `json:"parent" cborgen:"parent"`
135
142
Root *comatprototypes.RepoStrongRef `json:"root" cborgen:"root"`
136
143
}
137
144
145
+
// FeedPost_TextSlice is a "textSlice" in the app.bsky.feed.post schema.
146
+
//
147
+
// Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.
138
148
type FeedPost_TextSlice struct {
139
149
End int64 `json:"end" cborgen:"end"`
140
150
Start int64 `json:"start" cborgen:"start"`
+4
-3
api/bsky/feedrepost.go
+4
-3
api/bsky/feedrepost.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.feed.repost
6
+
5
7
import (
6
8
comatprototypes "github.com/bluesky-social/indigo/api/atproto"
7
9
"github.com/bluesky-social/indigo/lex/util"
8
10
)
9
-
10
-
// schema: app.bsky.feed.repost
11
11
12
12
func init() {
13
13
util.RegisterType("app.bsky.feed.repost", &FeedRepost{})
14
-
} // RECORDTYPE: FeedRepost
14
+
} //
15
+
// RECORDTYPE: FeedRepost
15
16
type FeedRepost struct {
16
17
LexiconTypeID string `json:"$type,const=app.bsky.feed.repost" cborgen:"$type,const=app.bsky.feed.repost"`
17
18
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
+4
-3
api/bsky/graphfollow.go
+4
-3
api/bsky/graphfollow.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.graph.follow
6
+
5
7
import (
6
8
"github.com/bluesky-social/indigo/lex/util"
7
9
)
8
-
9
-
// schema: app.bsky.graph.follow
10
10
11
11
func init() {
12
12
util.RegisterType("app.bsky.graph.follow", &GraphFollow{})
13
-
} // RECORDTYPE: GraphFollow
13
+
} //
14
+
// RECORDTYPE: GraphFollow
14
15
type GraphFollow struct {
15
16
LexiconTypeID string `json:"$type,const=app.bsky.graph.follow" cborgen:"$type,const=app.bsky.graph.follow"`
16
17
CreatedAt string `json:"createdAt" cborgen:"createdAt"`
+4
-2
api/bsky/graphgetFollowers.go
+4
-2
api/bsky/graphgetFollowers.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.graph.getFollowers
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.graph.getFollowers
12
-
13
+
// GraphGetFollowers_Output is the output of a app.bsky.graph.getFollowers call.
13
14
type GraphGetFollowers_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Followers []*ActorDefs_ProfileView `json:"followers" cborgen:"followers"`
16
17
Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"`
17
18
}
18
19
20
+
// GraphGetFollowers calls the XRPC method "app.bsky.graph.getFollowers".
19
21
func GraphGetFollowers(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetFollowers_Output, error) {
20
22
var out GraphGetFollowers_Output
21
23
+4
-2
api/bsky/graphgetFollows.go
+4
-2
api/bsky/graphgetFollows.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.graph.getFollows
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.graph.getFollows
12
-
13
+
// GraphGetFollows_Output is the output of a app.bsky.graph.getFollows call.
13
14
type GraphGetFollows_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Follows []*ActorDefs_ProfileView `json:"follows" cborgen:"follows"`
16
17
Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"`
17
18
}
18
19
20
+
// GraphGetFollows calls the XRPC method "app.bsky.graph.getFollows".
19
21
func GraphGetFollows(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetFollows_Output, error) {
20
22
var out GraphGetFollows_Output
21
23
+4
-2
api/bsky/graphgetMutes.go
+4
-2
api/bsky/graphgetMutes.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.graph.getMutes
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.graph.getMutes
12
-
13
+
// GraphGetMutes_Output is the output of a app.bsky.graph.getMutes call.
13
14
type GraphGetMutes_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Mutes []*ActorDefs_ProfileView `json:"mutes" cborgen:"mutes"`
16
17
}
17
18
19
+
// GraphGetMutes calls the XRPC method "app.bsky.graph.getMutes".
18
20
func GraphGetMutes(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*GraphGetMutes_Output, error) {
19
21
var out GraphGetMutes_Output
20
22
+4
-2
api/bsky/graphmuteActor.go
+4
-2
api/bsky/graphmuteActor.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.graph.muteActor
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.graph.muteActor
12
-
13
+
// GraphMuteActor_Input is the input argument to a app.bsky.graph.muteActor call.
13
14
type GraphMuteActor_Input struct {
14
15
Actor string `json:"actor" cborgen:"actor"`
15
16
}
16
17
18
+
// GraphMuteActor calls the XRPC method "app.bsky.graph.muteActor".
17
19
func GraphMuteActor(ctx context.Context, c *xrpc.Client, input *GraphMuteActor_Input) error {
18
20
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.muteActor", nil, input, nil); err != nil {
19
21
return err
+4
-2
api/bsky/graphunmuteActor.go
+4
-2
api/bsky/graphunmuteActor.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.graph.unmuteActor
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.graph.unmuteActor
12
-
13
+
// GraphUnmuteActor_Input is the input argument to a app.bsky.graph.unmuteActor call.
13
14
type GraphUnmuteActor_Input struct {
14
15
Actor string `json:"actor" cborgen:"actor"`
15
16
}
16
17
18
+
// GraphUnmuteActor calls the XRPC method "app.bsky.graph.unmuteActor".
17
19
func GraphUnmuteActor(ctx context.Context, c *xrpc.Client, input *GraphUnmuteActor_Input) error {
18
20
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.graph.unmuteActor", nil, input, nil); err != nil {
19
21
return err
+4
-2
api/bsky/notificationgetUnreadCount.go
+4
-2
api/bsky/notificationgetUnreadCount.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.notification.getUnreadCount
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.notification.getUnreadCount
12
-
13
+
// NotificationGetUnreadCount_Output is the output of a app.bsky.notification.getUnreadCount call.
13
14
type NotificationGetUnreadCount_Output struct {
14
15
Count int64 `json:"count" cborgen:"count"`
15
16
}
16
17
18
+
// NotificationGetUnreadCount calls the XRPC method "app.bsky.notification.getUnreadCount".
17
19
func NotificationGetUnreadCount(ctx context.Context, c *xrpc.Client, seenAt string) (*NotificationGetUnreadCount_Output, error) {
18
20
var out NotificationGetUnreadCount_Output
19
21
+15
-11
api/bsky/notificationlistNotifications.go
+15
-11
api/bsky/notificationlistNotifications.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.notification.listNotifications
6
+
5
7
import (
6
8
"context"
7
9
···
10
12
"github.com/bluesky-social/indigo/xrpc"
11
13
)
12
14
13
-
// schema: app.bsky.notification.listNotifications
14
-
15
+
// NotificationListNotifications_Notification is a "notification" in the app.bsky.notification.listNotifications schema.
15
16
type NotificationListNotifications_Notification struct {
16
-
Author *ActorDefs_ProfileView `json:"author" cborgen:"author"`
17
-
Cid string `json:"cid" cborgen:"cid"`
18
-
IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
19
-
IsRead bool `json:"isRead" cborgen:"isRead"`
20
-
Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
21
-
Reason string `json:"reason" cborgen:"reason"`
22
-
ReasonSubject *string `json:"reasonSubject,omitempty" cborgen:"reasonSubject,omitempty"`
23
-
Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
24
-
Uri string `json:"uri" cborgen:"uri"`
17
+
Author *ActorDefs_ProfileView `json:"author" cborgen:"author"`
18
+
Cid string `json:"cid" cborgen:"cid"`
19
+
IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
20
+
IsRead bool `json:"isRead" cborgen:"isRead"`
21
+
Labels []*comatprototypes.LabelDefs_Label `json:"labels,omitempty" cborgen:"labels,omitempty"`
22
+
// reason: Expected values are 'like', 'repost', 'follow', 'mention', 'reply', and 'quote'.
23
+
Reason string `json:"reason" cborgen:"reason"`
24
+
ReasonSubject *string `json:"reasonSubject,omitempty" cborgen:"reasonSubject,omitempty"`
25
+
Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
26
+
Uri string `json:"uri" cborgen:"uri"`
25
27
}
26
28
29
+
// NotificationListNotifications_Output is the output of a app.bsky.notification.listNotifications call.
27
30
type NotificationListNotifications_Output struct {
28
31
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
29
32
Notifications []*NotificationListNotifications_Notification `json:"notifications" cborgen:"notifications"`
30
33
}
31
34
35
+
// NotificationListNotifications calls the XRPC method "app.bsky.notification.listNotifications".
32
36
func NotificationListNotifications(ctx context.Context, c *xrpc.Client, cursor string, limit int64, seenAt string) (*NotificationListNotifications_Output, error) {
33
37
var out NotificationListNotifications_Output
34
38
+4
-2
api/bsky/notificationupdateSeen.go
+4
-2
api/bsky/notificationupdateSeen.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.notification.updateSeen
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.notification.updateSeen
12
-
13
+
// NotificationUpdateSeen_Input is the input argument to a app.bsky.notification.updateSeen call.
13
14
type NotificationUpdateSeen_Input struct {
14
15
SeenAt string `json:"seenAt" cborgen:"seenAt"`
15
16
}
16
17
18
+
// NotificationUpdateSeen calls the XRPC method "app.bsky.notification.updateSeen".
17
19
func NotificationUpdateSeen(ctx context.Context, c *xrpc.Client, input *NotificationUpdateSeen_Input) error {
18
20
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.notification.updateSeen", nil, input, nil); err != nil {
19
21
return err
+14
-2
api/bsky/richtextfacet.go
+14
-2
api/bsky/richtextfacet.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.richtext.facet
6
+
5
7
import (
6
8
"bytes"
7
9
"encoding/json"
···
12
14
cbg "github.com/whyrusleeping/cbor-gen"
13
15
)
14
16
15
-
// schema: app.bsky.richtext.facet
16
-
17
+
// RichtextFacet is a "main" in the app.bsky.richtext.facet schema.
17
18
type RichtextFacet struct {
18
19
Features []*RichtextFacet_Features_Elem `json:"features" cborgen:"features"`
19
20
Index *RichtextFacet_ByteSlice `json:"index" cborgen:"index"`
20
21
}
21
22
23
+
// RichtextFacet_ByteSlice is a "byteSlice" in the app.bsky.richtext.facet schema.
24
+
//
25
+
// A text segment. Start is inclusive, end is exclusive. Indices are for utf8-encoded strings.
22
26
type RichtextFacet_ByteSlice struct {
23
27
ByteEnd int64 `json:"byteEnd" cborgen:"byteEnd"`
24
28
ByteStart int64 `json:"byteStart" cborgen:"byteStart"`
···
92
96
}
93
97
}
94
98
99
+
// RichtextFacet_Link is a "link" in the app.bsky.richtext.facet schema.
100
+
//
101
+
// A facet feature for links.
102
+
//
95
103
// RECORDTYPE: RichtextFacet_Link
96
104
type RichtextFacet_Link struct {
97
105
LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet" cborgen:"$type,const=app.bsky.richtext.facet"`
98
106
Uri string `json:"uri" cborgen:"uri"`
99
107
}
100
108
109
+
// RichtextFacet_Mention is a "mention" in the app.bsky.richtext.facet schema.
110
+
//
111
+
// A facet feature for actor mentions.
112
+
//
101
113
// RECORDTYPE: RichtextFacet_Mention
102
114
type RichtextFacet_Mention struct {
103
115
LexiconTypeID string `json:"$type,const=app.bsky.richtext.facet" cborgen:"$type,const=app.bsky.richtext.facet"`
+4
-2
api/bsky/unspeccedgetPopular.go
+4
-2
api/bsky/unspeccedgetPopular.go
···
2
2
3
3
package bsky
4
4
5
+
// schema: app.bsky.unspecced.getPopular
6
+
5
7
import (
6
8
"context"
7
9
8
10
"github.com/bluesky-social/indigo/xrpc"
9
11
)
10
12
11
-
// schema: app.bsky.unspecced.getPopular
12
-
13
+
// UnspeccedGetPopular_Output is the output of a app.bsky.unspecced.getPopular call.
13
14
type UnspeccedGetPopular_Output struct {
14
15
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
15
16
Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
16
17
}
17
18
19
+
// UnspeccedGetPopular calls the XRPC method "app.bsky.unspecced.getPopular".
18
20
func UnspeccedGetPopular(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*UnspeccedGetPopular_Output, error) {
19
21
var out UnspeccedGetPopular_Output
20
22
+36
-7
lex/gen.go
+36
-7
lex/gen.go
···
88
88
89
89
type outputType struct {
90
90
Name string
91
-
DefName string
92
91
Type *TypeSchema
93
92
NeedsCbor bool
94
93
NeedsType bool
···
310
309
pf("// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.\n\n")
311
310
312
311
pf("package %s\n\n", pkg)
312
+
313
+
pf("// schema: %s\n\n", s.ID)
314
+
313
315
pf("import (\n")
314
316
pf("\t\"context\"\n")
315
317
pf("\t\"fmt\"\n")
···
323
325
}
324
326
}
325
327
pf(")\n\n")
326
-
pf("// schema: %s\n\n", s.ID)
327
328
328
329
tps := s.AllTypes(prefix, defmap)
329
330
···
471
472
}
472
473
473
474
if s.Parameters != nil {
474
-
if err := orderedMapIter[*TypeSchema](s.Parameters.Properties, func(name string, t *TypeSchema) error {
475
+
if err := orderedMapIter(s.Parameters.Properties, func(name string, t *TypeSchema) error {
475
476
tn, err := s.typeNameForField(name, "", *t)
476
477
if err != nil {
477
478
return err
···
502
503
}
503
504
}
504
505
506
+
pf("// %s calls the XRPC method %q.\n", fname, s.id)
507
+
if s.Parameters != nil && len(s.Parameters.Properties) > 0 {
508
+
pf("//\n")
509
+
if err := orderedMapIter(s.Parameters.Properties, func(name string, t *TypeSchema) error {
510
+
if t.Description != "" {
511
+
pf("// %s: %s\n", name, t.Description)
512
+
}
513
+
return nil
514
+
}); err != nil {
515
+
return err
516
+
}
517
+
}
505
518
pf("func %s(%s) %s {\n", fname, params, out)
506
519
507
520
outvar := "nil"
···
534
547
pf(`
535
548
params := map[string]interface{}{
536
549
`)
537
-
if err := orderedMapIter[*TypeSchema](s.Parameters.Properties, func(name string, t *TypeSchema) error {
550
+
if err := orderedMapIter(s.Parameters.Properties, func(name string, t *TypeSchema) error {
538
551
pf(`"%s": %s,
539
552
`, name, name)
540
553
return nil
···
836
849
required[k] = true
837
850
}
838
851
}
839
-
if err := orderedMapIter[*TypeSchema](s.Parameters.Properties, func(k string, t *TypeSchema) error {
852
+
if err := orderedMapIter(s.Parameters.Properties, func(k string, t *TypeSchema) error {
840
853
switch t.Type {
841
854
case "string":
842
855
params = append(params, k)
···
1129
1142
1130
1143
func (ts *TypeSchema) writeTypeDefinition(name string, w io.Writer) error {
1131
1144
pf := printerf(w)
1145
+
1146
+
switch {
1147
+
case strings.HasSuffix(name, "_Output"):
1148
+
pf("// %s is the output of a %s call.\n", name, ts.id)
1149
+
case strings.HasSuffix(name, "Input"):
1150
+
pf("// %s is the input argument to a %s call.\n", name, ts.id)
1151
+
case ts.defName != "":
1152
+
pf("// %s is a %q in the %s schema.\n", name, ts.defName, ts.id)
1153
+
}
1154
+
if ts.Description != "" {
1155
+
pf("//\n// %s\n", ts.Description)
1156
+
}
1157
+
1132
1158
switch ts.Type {
1133
1159
case "string":
1134
1160
// TODO: deal with max length
···
1146
1172
}
1147
1173
1148
1174
if ts.needsType {
1149
-
pf("// RECORDTYPE: %s\n", name)
1175
+
pf("//\n// RECORDTYPE: %s\n", name)
1150
1176
}
1151
1177
1152
1178
pf("type %s struct {\n", name)
···
1171
1197
nullable[req] = true
1172
1198
}
1173
1199
1174
-
if err := orderedMapIter[*TypeSchema](ts.Properties, func(k string, v *TypeSchema) error {
1200
+
if err := orderedMapIter(ts.Properties, func(k string, v *TypeSchema) error {
1175
1201
goname := strings.Title(k)
1176
1202
1177
1203
tname, err := ts.typeNameForField(name, k, *v)
···
1202
1228
jsonOmit = ",omitempty"
1203
1229
}
1204
1230
1231
+
if v.Description != "" {
1232
+
pf("\t// %s: %s\n", k, v.Description)
1233
+
}
1205
1234
pf("\t%s %s%s `json:\"%s%s\" cborgen:\"%s%s\"`\n", goname, ptr, tname, k, jsonOmit, k, cborOmit)
1206
1235
return nil
1207
1236
}); err != nil {