···2121// addedLabels: If specified, only events where all of these labels were added are returned
2222// addedTags: If specified, only events where all of these tags were added are returned
2323// 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.
2424-// comment: If specified, only events with comments containing the keyword are returned
2424+// comment: If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition.
2525// createdAfter: Retrieve events created after a given timestamp
2626// createdBefore: Retrieve events created before a given timestamp
2727// hasComment: If true, only events with comments are returned
···3131// sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp.
3232// 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.
3333// 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.
3434-func ModerationQueryEvents(ctx context.Context, c *xrpc.Client, addedLabels []string, addedTags []string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) {
3434+func ModerationQueryEvents(ctx context.Context, c *xrpc.Client, addedLabels []string, addedTags []string, collections []string, comment string, createdAfter string, createdBefore string, createdBy string, cursor string, hasComment bool, includeAllUserRecords bool, limit int64, policies []string, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) {
3535 var out ModerationQueryEvents_Output
36363737 params := map[string]interface{}{
···4646 "hasComment": hasComment,
4747 "includeAllUserRecords": includeAllUserRecords,
4848 "limit": limit,
4949+ "policies": policies,
4950 "removedLabels": removedLabels,
5051 "removedTags": removedTags,
5152 "reportTypes": reportTypes,
+17-1
api/ozone/moderationqueryStatuses.go
···2121// appealed: Get subjects in unresolved appealed status
2222// collections: If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored.
2323// comment: Search subjects by keyword from comments
2424+// hostingDeletedAfter: Search subjects where the associated record/account was deleted after a given timestamp
2525+// hostingDeletedBefore: Search subjects where the associated record/account was deleted before a given timestamp
2626+// hostingStatuses: Search subjects by the status of the associated record/account
2727+// hostingUpdatedAfter: Search subjects where the associated record/account was updated after a given timestamp
2828+// hostingUpdatedBefore: Search subjects where the associated record/account was updated before a given timestamp
2429// includeAllUserRecords: All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned.
2530// includeMuted: By default, we don't include muted subjects in the results. Set this to true to include them.
2631// lastReviewedBy: Get all subject statuses that were reviewed by a specific moderator
2732// onlyMuted: When set to true, only muted subjects and reporters will be returned.
3333+// queueCount: Number of queues being used by moderators. Subjects will be split among all queues.
3434+// queueIndex: Index of the queue to fetch subjects from. Works only when queueCount value is specified.
3535+// queueSeed: A seeder to shuffle/balance the queue items.
2836// reportedAfter: Search subjects reported after a given timestamp
2937// reportedBefore: Search subjects reported before a given timestamp
3038// reviewState: Specify when fetching subjects in a certain state
···3341// subject: The subject to get the status for.
3442// 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.
3543// takendown: Get subjects that were taken down
3636-func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, collections []string, comment string, cursor string, excludeTags []string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, onlyMuted bool, 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) {
4444+func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, collections []string, comment string, cursor string, excludeTags []string, hostingDeletedAfter string, hostingDeletedBefore string, hostingStatuses []string, hostingUpdatedAfter string, hostingUpdatedBefore string, ignoreSubjects []string, includeAllUserRecords bool, includeMuted bool, lastReviewedBy string, limit int64, 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) {
3745 var out ModerationQueryStatuses_Output
38463947 params := map[string]interface{}{
···4250 "comment": comment,
4351 "cursor": cursor,
4452 "excludeTags": excludeTags,
5353+ "hostingDeletedAfter": hostingDeletedAfter,
5454+ "hostingDeletedBefore": hostingDeletedBefore,
5555+ "hostingStatuses": hostingStatuses,
5656+ "hostingUpdatedAfter": hostingUpdatedAfter,
5757+ "hostingUpdatedBefore": hostingUpdatedBefore,
4558 "ignoreSubjects": ignoreSubjects,
4659 "includeAllUserRecords": includeAllUserRecords,
4760 "includeMuted": includeMuted,
4861 "lastReviewedBy": lastReviewedBy,
4962 "limit": limit,
5063 "onlyMuted": onlyMuted,
6464+ "queueCount": queueCount,
6565+ "queueIndex": queueIndex,
6666+ "queueSeed": queueSeed,
5167 "reportedAfter": reportedAfter,
5268 "reportedBefore": reportedBefore,
5369 "reviewState": reviewState,
+23
api/ozone/settingdefs.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.setting.defs
66+77+import (
88+ "github.com/bluesky-social/indigo/lex/util"
99+)
1010+1111+// SettingDefs_Option is a "option" in the tools.ozone.setting.defs schema.
1212+type SettingDefs_Option struct {
1313+ CreatedAt *string `json:"createdAt,omitempty" cborgen:"createdAt,omitempty"`
1414+ CreatedBy string `json:"createdBy" cborgen:"createdBy"`
1515+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
1616+ Did string `json:"did" cborgen:"did"`
1717+ Key string `json:"key" cborgen:"key"`
1818+ LastUpdatedBy string `json:"lastUpdatedBy" cborgen:"lastUpdatedBy"`
1919+ ManagerRole *string `json:"managerRole,omitempty" cborgen:"managerRole,omitempty"`
2020+ Scope string `json:"scope" cborgen:"scope"`
2121+ UpdatedAt *string `json:"updatedAt,omitempty" cborgen:"updatedAt,omitempty"`
2222+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
2323+}
+38
api/ozone/settinglistOptions.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.setting.listOptions
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SettingListOptions_Output is the output of a tools.ozone.setting.listOptions call.
1414+type SettingListOptions_Output struct {
1515+ Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
1616+ Options []*SettingDefs_Option `json:"options" cborgen:"options"`
1717+}
1818+1919+// SettingListOptions calls the XRPC method "tools.ozone.setting.listOptions".
2020+//
2121+// keys: Filter for only the specified keys. Ignored if prefix is provided
2222+// prefix: Filter keys by prefix
2323+func SettingListOptions(ctx context.Context, c *xrpc.Client, cursor string, keys []string, limit int64, prefix string, scope string) (*SettingListOptions_Output, error) {
2424+ var out SettingListOptions_Output
2525+2626+ params := map[string]interface{}{
2727+ "cursor": cursor,
2828+ "keys": keys,
2929+ "limit": limit,
3030+ "prefix": prefix,
3131+ "scope": scope,
3232+ }
3333+ if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.setting.listOptions", params, nil, &out); err != nil {
3434+ return nil, err
3535+ }
3636+3737+ return &out, nil
3838+}
+31
api/ozone/settingremoveOptions.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.setting.removeOptions
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SettingRemoveOptions_Input is the input argument to a tools.ozone.setting.removeOptions call.
1414+type SettingRemoveOptions_Input struct {
1515+ Keys []string `json:"keys" cborgen:"keys"`
1616+ Scope string `json:"scope" cborgen:"scope"`
1717+}
1818+1919+// SettingRemoveOptions_Output is the output of a tools.ozone.setting.removeOptions call.
2020+type SettingRemoveOptions_Output struct {
2121+}
2222+2323+// SettingRemoveOptions calls the XRPC method "tools.ozone.setting.removeOptions".
2424+func SettingRemoveOptions(ctx context.Context, c *xrpc.Client, input *SettingRemoveOptions_Input) (*SettingRemoveOptions_Output, error) {
2525+ var out SettingRemoveOptions_Output
2626+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.setting.removeOptions", nil, input, &out); err != nil {
2727+ return nil, err
2828+ }
2929+3030+ return &out, nil
3131+}
+36
api/ozone/settingupsertOption.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package ozone
44+55+// schema: tools.ozone.setting.upsertOption
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+ "github.com/bluesky-social/indigo/xrpc"
1212+)
1313+1414+// SettingUpsertOption_Input is the input argument to a tools.ozone.setting.upsertOption call.
1515+type SettingUpsertOption_Input struct {
1616+ Description *string `json:"description,omitempty" cborgen:"description,omitempty"`
1717+ Key string `json:"key" cborgen:"key"`
1818+ ManagerRole *string `json:"managerRole,omitempty" cborgen:"managerRole,omitempty"`
1919+ Scope string `json:"scope" cborgen:"scope"`
2020+ Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
2121+}
2222+2323+// SettingUpsertOption_Output is the output of a tools.ozone.setting.upsertOption call.
2424+type SettingUpsertOption_Output struct {
2525+ Option *SettingDefs_Option `json:"option" cborgen:"option"`
2626+}
2727+2828+// SettingUpsertOption calls the XRPC method "tools.ozone.setting.upsertOption".
2929+func SettingUpsertOption(ctx context.Context, c *xrpc.Client, input *SettingUpsertOption_Input) (*SettingUpsertOption_Output, error) {
3030+ var out SettingUpsertOption_Output
3131+ if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.setting.upsertOption", nil, input, &out); err != nil {
3232+ return nil, err
3333+ }
3434+3535+ return &out, nil
3636+}