···294294 ReportedBy string `json:"reportedBy" cborgen:"reportedBy"`
295295 ResolvedByActionIds []int64 `json:"resolvedByActionIds" cborgen:"resolvedByActionIds"`
296296 Subject *AdminDefs_ReportView_Subject `json:"subject" cborgen:"subject"`
297297+ SubjectRepoHandle *string `json:"subjectRepoHandle,omitempty" cborgen:"subjectRepoHandle,omitempty"`
297298}
298299299300// AdminDefs_ReportViewDetail is a "reportViewDetail" in the com.atproto.admin.defs schema.
+14-6
api/atproto/admingetModerationReports.go
···1717}
18181919// AdminGetModerationReports calls the XRPC method "com.atproto.admin.getModerationReports".
2020-func AdminGetModerationReports(ctx context.Context, c *xrpc.Client, actionType string, cursor string, limit int64, resolved bool, subject string) (*AdminGetModerationReports_Output, error) {
2020+//
2121+// actionedBy: Get all reports that were actioned by a specific moderator
2222+// reporters: Filter reports made by one or more DIDs
2323+// reverse: Reverse the order of the returned records? when true, returns reports in chronological order
2424+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) {
2125 var out AdminGetModerationReports_Output
22262327 params := map[string]interface{}{
2424- "actionType": actionType,
2525- "cursor": cursor,
2626- "limit": limit,
2727- "resolved": resolved,
2828- "subject": subject,
2828+ "actionType": actionType,
2929+ "actionedBy": actionedBy,
3030+ "cursor": cursor,
3131+ "ignoreSubjects": ignoreSubjects,
3232+ "limit": limit,
3333+ "reporters": reporters,
3434+ "resolved": resolved,
3535+ "reverse": reverse,
3636+ "subject": subject,
2937 }
3038 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.admin.getModerationReports", params, nil, &out); err != nil {
3139 return nil, err
+28
api/atproto/adminrebaseRepo.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.admin.rebaseRepo
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// AdminRebaseRepo_Input is the input argument to a com.atproto.admin.rebaseRepo call.
1414+type AdminRebaseRepo_Input struct {
1515+ // repo: The handle or DID of the repo.
1616+ Repo string `json:"repo" cborgen:"repo"`
1717+ // swapCommit: Compare and swap with the previous commit by cid.
1818+ SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
1919+}
2020+2121+// AdminRebaseRepo calls the XRPC method "com.atproto.admin.rebaseRepo".
2222+func AdminRebaseRepo(ctx context.Context, c *xrpc.Client, input *AdminRebaseRepo_Input) error {
2323+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.rebaseRepo", nil, input, nil); err != nil {
2424+ return err
2525+ }
2626+2727+ return nil
2828+}
+33
api/atproto/adminsendEmail.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.admin.sendEmail
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// AdminSendEmail_Input is the input argument to a com.atproto.admin.sendEmail call.
1414+type AdminSendEmail_Input struct {
1515+ Content string `json:"content" cborgen:"content"`
1616+ RecipientDid string `json:"recipientDid" cborgen:"recipientDid"`
1717+ Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
1818+}
1919+2020+// AdminSendEmail_Output is the output of a com.atproto.admin.sendEmail call.
2121+type AdminSendEmail_Output struct {
2222+ Sent bool `json:"sent" cborgen:"sent"`
2323+}
2424+2525+// AdminSendEmail calls the XRPC method "com.atproto.admin.sendEmail".
2626+func AdminSendEmail(ctx context.Context, c *xrpc.Client, input *AdminSendEmail_Input) (*AdminSendEmail_Output, error) {
2727+ var out AdminSendEmail_Output
2828+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.sendEmail", nil, input, &out); err != nil {
2929+ return nil, err
3030+ }
3131+3232+ return &out, nil
3333+}
+1-1
api/atproto/identityresolveHandle.go
···17171818// IdentityResolveHandle calls the XRPC method "com.atproto.identity.resolveHandle".
1919//
2020-// handle: The handle to resolve. If not supplied, will resolve the host's own handle.
2020+// handle: The handle to resolve.
2121func IdentityResolveHandle(ctx context.Context, c *xrpc.Client, handle string) (*IdentityResolveHandle_Output, error) {
2222 var out IdentityResolveHandle_Output
2323
+8-8
api/atproto/syncnotifyOfUpdate.go
···1010 "github.com/bluesky-social/indigo/xrpc"
1111)
12121313-// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
1414-//
1515-// hostname: Hostname of the service that is notifying of update.
1616-func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, hostname string) error {
1313+// SyncNotifyOfUpdate_Input is the input argument to a com.atproto.sync.notifyOfUpdate call.
1414+type SyncNotifyOfUpdate_Input struct {
1515+ // hostname: Hostname of the service that is notifying of update.
1616+ Hostname string `json:"hostname" cborgen:"hostname"`
1717+}
17181818- params := map[string]interface{}{
1919- "hostname": hostname,
2020- }
2121- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.notifyOfUpdate", params, nil, nil); err != nil {
1919+// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".
2020+func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, input *SyncNotifyOfUpdate_Input) error {
2121+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.notifyOfUpdate", nil, input, nil); err != nil {
2222 return err
2323 }
2424
+8-8
api/atproto/syncrequestCrawl.go
···1010 "github.com/bluesky-social/indigo/xrpc"
1111)
12121313-// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
1414-//
1515-// hostname: Hostname of the service that is requesting to be crawled.
1616-func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, hostname string) error {
1313+// SyncRequestCrawl_Input is the input argument to a com.atproto.sync.requestCrawl call.
1414+type SyncRequestCrawl_Input struct {
1515+ // hostname: Hostname of the service that is requesting to be crawled.
1616+ Hostname string `json:"hostname" cborgen:"hostname"`
1717+}
17181818- params := map[string]interface{}{
1919- "hostname": hostname,
2020- }
2121- if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.requestCrawl", params, nil, nil); err != nil {
1919+// SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".
2020+func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, input *SyncRequestCrawl_Input) error {
2121+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.requestCrawl", nil, input, nil); err != nil {
2222 return err
2323 }
2424