···1213// NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call.
14type NotificationRegisterPush_Input struct {
15- AppId string `json:"appId" cborgen:"appId"`
16- Platform string `json:"platform" cborgen:"platform"`
17- ServiceDid string `json:"serviceDid" cborgen:"serviceDid"`
18- Token string `json:"token" cborgen:"token"`
0019}
2021// NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush".
···1213// NotificationRegisterPush_Input is the input argument to a app.bsky.notification.registerPush call.
14type NotificationRegisterPush_Input struct {
15+ // ageRestricted: Set to true when the actor is age restricted
16+ AgeRestricted *bool `json:"ageRestricted,omitempty" cborgen:"ageRestricted,omitempty"`
17+ AppId string `json:"appId" cborgen:"appId"`
18+ Platform string `json:"platform" cborgen:"platform"`
19+ ServiceDid string `json:"serviceDid" cborgen:"serviceDid"`
20+ Token string `json:"token" cborgen:"token"`
21}
2223// NotificationRegisterPush calls the XRPC method "app.bsky.notification.registerPush".
+32
api/bsky/unspecceddefs.go
···45// schema: app.bsky.unspecced.defs
6000000000000000000000000000000007// UnspeccedDefs_SkeletonSearchActor is a "skeletonSearchActor" in the app.bsky.unspecced.defs schema.
8type UnspeccedDefs_SkeletonSearchActor struct {
9 Did string `json:"did" cborgen:"did"`
···45// schema: app.bsky.unspecced.defs
67+// UnspeccedDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the app.bsky.unspecced.defs schema.
8+//
9+// Object used to store age assurance data in stash.
10+type UnspeccedDefs_AgeAssuranceEvent struct {
11+ // attemptId: The unique identifier for this instance of the age assurance flow, in UUID format.
12+ AttemptId string `json:"attemptId" cborgen:"attemptId"`
13+ // completeIp: The IP address used when completing the AA flow.
14+ CompleteIp *string `json:"completeIp,omitempty" cborgen:"completeIp,omitempty"`
15+ // completeUa: The user agent used when completing the AA flow.
16+ CompleteUa *string `json:"completeUa,omitempty" cborgen:"completeUa,omitempty"`
17+ // createdAt: The date and time of this write operation.
18+ CreatedAt string `json:"createdAt" cborgen:"createdAt"`
19+ // email: The email used for AA.
20+ Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
21+ // initIp: The IP address used when initiating the AA flow.
22+ InitIp *string `json:"initIp,omitempty" cborgen:"initIp,omitempty"`
23+ // initUa: The user agent used when initiating the AA flow.
24+ InitUa *string `json:"initUa,omitempty" cborgen:"initUa,omitempty"`
25+ // status: The status of the age assurance process.
26+ Status string `json:"status" cborgen:"status"`
27+}
28+29+// UnspeccedDefs_AgeAssuranceState is a "ageAssuranceState" in the app.bsky.unspecced.defs schema.
30+//
31+// The computed state of the age assurance process, returned to the user in question on certain authenticated requests.
32+type UnspeccedDefs_AgeAssuranceState struct {
33+ // lastInitiatedAt: The timestamp when this state was last updated.
34+ LastInitiatedAt *string `json:"lastInitiatedAt,omitempty" cborgen:"lastInitiatedAt,omitempty"`
35+ // status: The status of the age assurance process.
36+ Status string `json:"status" cborgen:"status"`
37+}
38+39// UnspeccedDefs_SkeletonSearchActor is a "skeletonSearchActor" in the app.bsky.unspecced.defs schema.
40type UnspeccedDefs_SkeletonSearchActor struct {
41 Did string `json:"did" cborgen:"did"`
+21
api/bsky/unspeccedgetAgeAssuranceState.go
···000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.getAgeAssuranceState
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/lex/util"
11+)
12+13+// UnspeccedGetAgeAssuranceState calls the XRPC method "app.bsky.unspecced.getAgeAssuranceState".
14+func UnspeccedGetAgeAssuranceState(ctx context.Context, c util.LexClient) (*UnspeccedDefs_AgeAssuranceState, error) {
15+ var out UnspeccedDefs_AgeAssuranceState
16+ if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getAgeAssuranceState", nil, nil, &out); err != nil {
17+ return nil, err
18+ }
19+20+ return &out, nil
21+}
+31
api/bsky/unspeccedinitAgeAssurance.go
···0000000000000000000000000000000
···1+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2+3+package bsky
4+5+// schema: app.bsky.unspecced.initAgeAssurance
6+7+import (
8+ "context"
9+10+ "github.com/bluesky-social/indigo/lex/util"
11+)
12+13+// UnspeccedInitAgeAssurance_Input is the input argument to a app.bsky.unspecced.initAgeAssurance call.
14+type UnspeccedInitAgeAssurance_Input struct {
15+ // countryCode: An ISO 3166-1 alpha-2 code of the user's location.
16+ CountryCode string `json:"countryCode" cborgen:"countryCode"`
17+ // email: The user's email address to receive assurance instructions.
18+ Email string `json:"email" cborgen:"email"`
19+ // language: The user's preferred language for communication during the assurance process.
20+ Language string `json:"language" cborgen:"language"`
21+}
22+23+// UnspeccedInitAgeAssurance calls the XRPC method "app.bsky.unspecced.initAgeAssurance".
24+func UnspeccedInitAgeAssurance(ctx context.Context, c util.LexClient, input *UnspeccedInitAgeAssurance_Input) (*UnspeccedDefs_AgeAssuranceState, error) {
25+ var out UnspeccedDefs_AgeAssuranceState
26+ if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.unspecced.initAgeAssurance", nil, input, &out); err != nil {
27+ return nil, err
28+ }
29+30+ return &out, nil
31+}
···20//
21// addedLabels: If specified, only events where all of these labels were added are returned
22// addedTags: If specified, only events where all of these tags were added are returned
023// collections: If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
24// comment: If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.
25// createdAfter: Retrieve events created after a given timestamp
26// createdBefore: Retrieve events created before a given timestamp
27// hasComment: If true, only events with comments are returned
28// includeAllUserRecords: If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
029// removedLabels: If specified, only events where all of these labels were removed are returned
30// removedTags: If specified, only events where all of these tags were removed are returned
31// sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp.
32// subjectType: If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
33// types: The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.
34-func ModerationQueryEvents(ctx context.Context, c util.LexClient, addedLabels []string, addedTags []string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) {
35 var out ModerationQueryEvents_Output
3637 params := map[string]interface{}{}
···41 if len(addedTags) != 0 {
42 params["addedTags"] = addedTags
43 }
00044 if len(collections) != 0 {
45 params["collections"] = collections
46 }
···67 }
68 if limit != 0 {
69 params["limit"] = limit
00070 }
71 if len(policies) != 0 {
72 params["policies"] = policies
···20//
21// addedLabels: If specified, only events where all of these labels were added are returned
22// addedTags: If specified, only events where all of these tags were added are returned
23+// ageAssuranceState: If specified, only events where the age assurance state matches the given value are returned
24// collections: If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
25// comment: If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.
26// createdAfter: Retrieve events created after a given timestamp
27// createdBefore: Retrieve events created before a given timestamp
28// hasComment: If true, only events with comments are returned
29// includeAllUserRecords: If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
30+// modTool: If specified, only events where the modTool name matches any of the given values are returned
31// removedLabels: If specified, only events where all of these labels were removed are returned
32// removedTags: If specified, only events where all of these tags were removed are returned
33// sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp.
34// subjectType: If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
35// types: The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned.
36+func ModerationQueryEvents(ctx context.Context, c util.LexClient, addedLabels []string, addedTags []string, ageAssuranceState string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, modTool []string, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) {
37 var out ModerationQueryEvents_Output
3839 params := map[string]interface{}{}
···43 if len(addedTags) != 0 {
44 params["addedTags"] = addedTags
45 }
46+ if ageAssuranceState != "" {
47+ params["ageAssuranceState"] = ageAssuranceState
48+ }
49 if len(collections) != 0 {
50 params["collections"] = collections
51 }
···72 }
73 if limit != 0 {
74 params["limit"] = limit
75+ }
76+ if len(modTool) != 0 {
77+ params["modTool"] = modTool
78 }
79 if len(policies) != 0 {
80 params["policies"] = policies
+5-1
api/ozone/moderationqueryStatuses.go
···1819// ModerationQueryStatuses calls the XRPC method "tools.ozone.moderation.queryStatuses".
20//
021// appealed: Get subjects in unresolved appealed status
22// collections: If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
23// comment: Search subjects by keyword from comments
···45// subject: The subject to get the status for.
46// subjectType: If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
47// takendown: Get subjects that were taken down
48-func ModerationQueryStatuses(ctx context.Context, c util.LexClient, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
49 var out ModerationQueryStatuses_Output
5051 params := map[string]interface{}{}
00052 if appealed {
53 params["appealed"] = appealed
54 }
···1819// ModerationQueryStatuses calls the XRPC method "tools.ozone.moderation.queryStatuses".
20//
21+// ageAssuranceState: If specified, only subjects with the given age assurance state will be returned.
22// appealed: Get subjects in unresolved appealed status
23// collections: If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
24// comment: Search subjects by keyword from comments
···46// subject: The subject to get the status for.
47// subjectType: If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.
48// takendown: Get subjects that were taken down
49+func ModerationQueryStatuses(ctx context.Context, c util.LexClient, ageAssuranceState string, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, minAccountSuspendCount int64, minPriorityScore int64, minReportedRecordsCount int64, minTakendownRecordsCount int64, onlyMuted bool, queueCount int64, queueIndex int64, queueSeed string, reportedAfter string, reportedBefore string, reviewState string, reviewedAfter string, reviewedBefore string, sortDirection string, sortField string, subject string, subjectType string, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
50 var out ModerationQueryStatuses_Output
5152 params := map[string]interface{}{}
53+ if ageAssuranceState != "" {
54+ params["ageAssuranceState"] = ageAssuranceState
55+ }
56 if appealed {
57 params["appealed"] = appealed
58 }