+1
api/atproto/admindefs.go
+1
api/atproto/admindefs.go
···
294
294
ReportedBy string `json:"reportedBy" cborgen:"reportedBy"`
295
295
ResolvedByActionIds []int64 `json:"resolvedByActionIds" cborgen:"resolvedByActionIds"`
296
296
Subject *AdminDefs_ReportView_Subject `json:"subject" cborgen:"subject"`
297
+
SubjectRepoHandle *string `json:"subjectRepoHandle,omitempty" cborgen:"subjectRepoHandle,omitempty"`
297
298
}
298
299
299
300
// AdminDefs_ReportViewDetail is a "reportViewDetail" in the com.atproto.admin.defs schema.
+14
-6
api/atproto/admingetModerationReports.go
+14
-6
api/atproto/admingetModerationReports.go
···
17
17
}
18
18
19
19
// AdminGetModerationReports calls the XRPC method "com.atproto.admin.getModerationReports".
20
-
func AdminGetModerationReports(ctx context.Context, c *xrpc.Client, actionType string, cursor string, limit int64, resolved bool, subject string) (*AdminGetModerationReports_Output, error) {
20
+
//
21
+
// actionedBy: Get all reports that were actioned by a specific moderator
22
+
// reporters: Filter reports made by one or more DIDs
23
+
// reverse: Reverse the order of the returned records? when true, returns reports in chronological order
24
+
func AdminGetModerationReports(ctx context.Context, c *xrpc.Client, actionType string, actionedBy string, cursor string, ignoreSubjects []string, limit int64, reporters []string, resolved bool, reverse bool, subject string) (*AdminGetModerationReports_Output, error) {
21
25
var out AdminGetModerationReports_Output
22
26
23
27
params := map[string]interface{}{
24
-
"actionType": actionType,
25
-
"cursor": cursor,
26
-
"limit": limit,
27
-
"resolved": resolved,
28
-
"subject": subject,
28
+
"actionType": actionType,
29
+
"actionedBy": actionedBy,
30
+
"cursor": cursor,
31
+
"ignoreSubjects": ignoreSubjects,
32
+
"limit": limit,
33
+
"reporters": reporters,
34
+
"resolved": resolved,
35
+
"reverse": reverse,
36
+
"subject": subject,
29
37
}
30
38
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.getModerationReports", params, nil, &out); err != nil {
31
39
return nil, err
+28
api/atproto/adminrebaseRepo.go
+28
api/atproto/adminrebaseRepo.go
···
1
+
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
+
3
+
package atproto
4
+
5
+
// schema: com.atproto.admin.rebaseRepo
6
+
7
+
import (
8
+
"context"
9
+
10
+
"github.com/bluesky-social/indigo/xrpc"
11
+
)
12
+
13
+
// AdminRebaseRepo_Input is the input argument to a com.atproto.admin.rebaseRepo call.
14
+
type AdminRebaseRepo_Input struct {
15
+
// repo: The handle or DID of the repo.
16
+
Repo string `json:"repo" cborgen:"repo"`
17
+
// swapCommit: Compare and swap with the previous commit by cid.
18
+
SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
19
+
}
20
+
21
+
// AdminRebaseRepo calls the XRPC method "com.atproto.admin.rebaseRepo".
22
+
func AdminRebaseRepo(ctx context.Context, c *xrpc.Client, input *AdminRebaseRepo_Input) error {
23
+
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.rebaseRepo", nil, input, nil); err != nil {
24
+
return err
25
+
}
26
+
27
+
return nil
28
+
}
+33
api/atproto/adminsendEmail.go
+33
api/atproto/adminsendEmail.go
···
1
+
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
+
3
+
package atproto
4
+
5
+
// schema: com.atproto.admin.sendEmail
6
+
7
+
import (
8
+
"context"
9
+
10
+
"github.com/bluesky-social/indigo/xrpc"
11
+
)
12
+
13
+
// AdminSendEmail_Input is the input argument to a com.atproto.admin.sendEmail call.
14
+
type AdminSendEmail_Input struct {
15
+
Content string `json:"content" cborgen:"content"`
16
+
RecipientDid string `json:"recipientDid" cborgen:"recipientDid"`
17
+
Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
18
+
}
19
+
20
+
// AdminSendEmail_Output is the output of a com.atproto.admin.sendEmail call.
21
+
type AdminSendEmail_Output struct {
22
+
Sent bool `json:"sent" cborgen:"sent"`
23
+
}
24
+
25
+
// AdminSendEmail calls the XRPC method "com.atproto.admin.sendEmail".
26
+
func AdminSendEmail(ctx context.Context, c *xrpc.Client, input *AdminSendEmail_Input) (*AdminSendEmail_Output, error) {
27
+
var out AdminSendEmail_Output
28
+
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.sendEmail", nil, input, &out); err != nil {
29
+
return nil, err
30
+
}
31
+
32
+
return &out, nil
33
+
}
+1
-1
api/atproto/identityresolveHandle.go
+1
-1
api/atproto/identityresolveHandle.go
···
17
17
18
18
// IdentityResolveHandle calls the XRPC method "com.atproto.identity.resolveHandle".
19
19
//
20
-
// handle: The handle to resolve. If not supplied, will resolve the host's own handle.
20
+
// handle: The handle to resolve.
21
21
func IdentityResolveHandle(ctx context.Context, c *xrpc.Client, handle string) (*IdentityResolveHandle_Output, error) {
22
22
var out IdentityResolveHandle_Output
23
23
+8
-8
api/atproto/syncnotifyOfUpdate.go
+8
-8
api/atproto/syncnotifyOfUpdate.go
···
10
10
"github.com/bluesky-social/indigo/xrpc"
11
11
)
12
12
13
-
// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
14
-
//
15
-
// hostname: Hostname of the service that is notifying of update.
16
-
func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, hostname string) error {
13
+
// SyncNotifyOfUpdate_Input is the input argument to a com.atproto.sync.notifyOfUpdate call.
14
+
type SyncNotifyOfUpdate_Input struct {
15
+
// hostname: Hostname of the service that is notifying of update.
16
+
Hostname string `json:"hostname" cborgen:"hostname"`
17
+
}
17
18
18
-
params := map[string]interface{}{
19
-
"hostname": hostname,
20
-
}
21
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.notifyOfUpdate", params, nil, nil); err != nil {
19
+
// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
20
+
func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, input *SyncNotifyOfUpdate_Input) error {
21
+
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.notifyOfUpdate", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+8
-8
api/atproto/syncrequestCrawl.go
+8
-8
api/atproto/syncrequestCrawl.go
···
10
10
"github.com/bluesky-social/indigo/xrpc"
11
11
)
12
12
13
-
// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
14
-
//
15
-
// hostname: Hostname of the service that is requesting to be crawled.
16
-
func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, hostname string) error {
13
+
// SyncRequestCrawl_Input is the input argument to a com.atproto.sync.requestCrawl call.
14
+
type SyncRequestCrawl_Input struct {
15
+
// hostname: Hostname of the service that is requesting to be crawled.
16
+
Hostname string `json:"hostname" cborgen:"hostname"`
17
+
}
17
18
18
-
params := map[string]interface{}{
19
-
"hostname": hostname,
20
-
}
21
-
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.requestCrawl", params, nil, nil); err != nil {
19
+
// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
20
+
func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, input *SyncRequestCrawl_Input) error {
21
+
if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.requestCrawl", nil, input, nil); err != nil {
22
22
return err
23
23
}
24
24
+8
api/bsky/embedrecord.go
+8
api/bsky/embedrecord.go
···
115
115
EmbedRecord_ViewNotFound *EmbedRecord_ViewNotFound
116
116
EmbedRecord_ViewBlocked *EmbedRecord_ViewBlocked
117
117
FeedDefs_GeneratorView *FeedDefs_GeneratorView
118
+
GraphDefs_ListView *GraphDefs_ListView
118
119
}
119
120
120
121
func (t *EmbedRecord_View_Record) MarshalJSON() ([]byte, error) {
···
134
135
t.FeedDefs_GeneratorView.LexiconTypeID = "app.bsky.feed.defs#generatorView"
135
136
return json.Marshal(t.FeedDefs_GeneratorView)
136
137
}
138
+
if t.GraphDefs_ListView != nil {
139
+
t.GraphDefs_ListView.LexiconTypeID = "app.bsky.graph.defs#listView"
140
+
return json.Marshal(t.GraphDefs_ListView)
141
+
}
137
142
return nil, fmt.Errorf("cannot marshal empty enum")
138
143
}
139
144
func (t *EmbedRecord_View_Record) UnmarshalJSON(b []byte) error {
···
155
160
case "app.bsky.feed.defs#generatorView":
156
161
t.FeedDefs_GeneratorView = new(FeedDefs_GeneratorView)
157
162
return json.Unmarshal(b, t.FeedDefs_GeneratorView)
163
+
case "app.bsky.graph.defs#listView":
164
+
t.GraphDefs_ListView = new(GraphDefs_ListView)
165
+
return json.Unmarshal(b, t.GraphDefs_ListView)
158
166
159
167
default:
160
168
return nil
+1
-1
api/bsky/feeddefs.go
+1
-1
api/bsky/feeddefs.go
···
65
65
Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
66
66
Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
67
67
DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"`
68
-
Did *string `json:"did,omitempty" cborgen:"did,omitempty"`
68
+
Did string `json:"did" cborgen:"did"`
69
69
DisplayName string `json:"displayName" cborgen:"displayName"`
70
70
IndexedAt string `json:"indexedAt" cborgen:"indexedAt"`
71
71
LikeCount *int64 `json:"likeCount,omitempty" cborgen:"likeCount,omitempty"`
+4
-3
api/bsky/feedgetPostThread.go
+4
-3
api/bsky/feedgetPostThread.go
···
62
62
}
63
63
64
64
// FeedGetPostThread calls the XRPC method "app.bsky.feed.getPostThread".
65
-
func FeedGetPostThread(ctx context.Context, c *xrpc.Client, depth int64, uri string) (*FeedGetPostThread_Output, error) {
65
+
func FeedGetPostThread(ctx context.Context, c *xrpc.Client, depth int64, parentHeight int64, uri string) (*FeedGetPostThread_Output, error) {
66
66
var out FeedGetPostThread_Output
67
67
68
68
params := map[string]interface{}{
69
-
"depth": depth,
70
-
"uri": uri,
69
+
"depth": depth,
70
+
"parentHeight": parentHeight,
71
+
"uri": uri,
71
72
}
72
73
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getPostThread", params, nil, &out); err != nil {
73
74
return nil, err
+1
api/bsky/feedpost.go
+1
api/bsky/feedpost.go
···
26
26
// entities: Deprecated: replaced by app.bsky.richtext.facet.
27
27
Entities []*FeedPost_Entity `json:"entities,omitempty" cborgen:"entities,omitempty"`
28
28
Facets []*RichtextFacet `json:"facets,omitempty" cborgen:"facets,omitempty"`
29
+
Langs []string `json:"langs,omitempty" cborgen:"langs,omitempty"`
29
30
Reply *FeedPost_ReplyRef `json:"reply,omitempty" cborgen:"reply,omitempty"`
30
31
Text string `json:"text" cborgen:"text"`
31
32
}
+5
api/bsky/graphdefs.go
+5
api/bsky/graphdefs.go
···
10
10
}
11
11
12
12
// GraphDefs_ListView is a "listView" in the app.bsky.graph.defs schema.
13
+
//
14
+
// RECORDTYPE: GraphDefs_ListView
13
15
type GraphDefs_ListView struct {
16
+
LexiconTypeID string `json:"$type,const=app.bsky.graph.defs" cborgen:"$type,const=app.bsky.graph.defs"`
14
17
Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
18
+
Cid string `json:"cid" cborgen:"cid"`
15
19
Creator *ActorDefs_ProfileView `json:"creator" cborgen:"creator"`
16
20
Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
17
21
DescriptionFacets []*RichtextFacet `json:"descriptionFacets,omitempty" cborgen:"descriptionFacets,omitempty"`
···
25
29
// GraphDefs_ListViewBasic is a "listViewBasic" in the app.bsky.graph.defs schema.
26
30
type GraphDefs_ListViewBasic struct {
27
31
Avatar *string `json:"avatar,omitempty" cborgen:"avatar,omitempty"`
32
+
Cid string `json:"cid" cborgen:"cid"`
28
33
IndexedAt *string `json:"indexedAt,omitempty" cborgen:"indexedAt,omitempty"`
29
34
Name string `json:"name" cborgen:"name"`
30
35
Purpose *string `json:"purpose" cborgen:"purpose"`
+33
api/bsky/unspeccedgetPopularFeedGenerators.go
+33
api/bsky/unspeccedgetPopularFeedGenerators.go
···
1
+
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
+
3
+
package bsky
4
+
5
+
// schema: app.bsky.unspecced.getPopularFeedGenerators
6
+
7
+
import (
8
+
"context"
9
+
10
+
"github.com/bluesky-social/indigo/xrpc"
11
+
)
12
+
13
+
// UnspeccedGetPopularFeedGenerators_Output is the output of a app.bsky.unspecced.getPopularFeedGenerators call.
14
+
type UnspeccedGetPopularFeedGenerators_Output struct {
15
+
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16
+
Feeds []*FeedDefs_GeneratorView `json:"feeds" cborgen:"feeds"`
17
+
}
18
+
19
+
// UnspeccedGetPopularFeedGenerators calls the XRPC method "app.bsky.unspecced.getPopularFeedGenerators".
20
+
func UnspeccedGetPopularFeedGenerators(ctx context.Context, c *xrpc.Client, cursor string, limit int64, query string) (*UnspeccedGetPopularFeedGenerators_Output, error) {
21
+
var out UnspeccedGetPopularFeedGenerators_Output
22
+
23
+
params := map[string]interface{}{
24
+
"cursor": cursor,
25
+
"limit": limit,
26
+
"query": query,
27
+
}
28
+
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getPopularFeedGenerators", params, nil, &out); err != nil {
29
+
return nil, err
30
+
}
31
+
32
+
return &out, nil
33
+
}
+32
api/bsky/unspeccedgetTimelineSkeleton.go
+32
api/bsky/unspeccedgetTimelineSkeleton.go
···
1
+
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
+
3
+
package bsky
4
+
5
+
// schema: app.bsky.unspecced.getTimelineSkeleton
6
+
7
+
import (
8
+
"context"
9
+
10
+
"github.com/bluesky-social/indigo/xrpc"
11
+
)
12
+
13
+
// UnspeccedGetTimelineSkeleton_Output is the output of a app.bsky.unspecced.getTimelineSkeleton call.
14
+
type UnspeccedGetTimelineSkeleton_Output struct {
15
+
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16
+
Feed []*FeedDefs_SkeletonFeedPost `json:"feed" cborgen:"feed"`
17
+
}
18
+
19
+
// UnspeccedGetTimelineSkeleton calls the XRPC method "app.bsky.unspecced.getTimelineSkeleton".
20
+
func UnspeccedGetTimelineSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*UnspeccedGetTimelineSkeleton_Output, error) {
21
+
var out UnspeccedGetTimelineSkeleton_Output
22
+
23
+
params := map[string]interface{}{
24
+
"cursor": cursor,
25
+
"limit": limit,
26
+
}
27
+
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTimelineSkeleton", params, nil, &out); err != nil {
28
+
return nil, err
29
+
}
30
+
31
+
return &out, nil
32
+
}