···2020//
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.
2324// comment: If specified, only events with comments containing the keyword are returned
2425// createdAfter: Retrieve events created after a given timestamp
2526// createdBefore: Retrieve events created before a given timestamp
2627// hasComment: If true, only events with comments are returned
2727-// includeAllUserRecords: If true, events on all record types (posts, lists, profile etc.) owned by the did are returned
2828+// includeAllUserRecords: If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned.
2829// removedLabels: If specified, only events where all of these labels were removed are returned
2930// removedTags: If specified, only events where all of these tags were removed are returned
3031// 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.
3133// 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.
3232-func ModerationQueryEvents(ctx context.Context, c *xrpc.Client, addedLabels []string, addedTags []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, 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, removedLabels []string, removedTags []string, reportTypes []string, sortDirection string, subject string, subjectType string, types []string) (*ModerationQueryEvents_Output, error) {
3335 var out ModerationQueryEvents_Output
34363537 params := map[string]interface{}{
3638 "addedLabels": addedLabels,
3739 "addedTags": addedTags,
4040+ "collections": collections,
3841 "comment": comment,
3942 "createdAfter": createdAfter,
4043 "createdBefore": createdBefore,
···4851 "reportTypes": reportTypes,
4952 "sortDirection": sortDirection,
5053 "subject": subject,
5454+ "subjectType": subjectType,
5155 "types": types,
5256 }
5357 if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil {
+6-2
api/ozone/moderationqueryStatuses.go
···1919// ModerationQueryStatuses calls the XRPC method "tools.ozone.moderation.queryStatuses".
2020//
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.
2223// comment: Search subjects by keyword from comments
2323-// includeAllUserRecords: All subjects belonging to the account specified in the 'subject' param will be returned.
2424+// includeAllUserRecords: All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned.
2425// includeMuted: By default, we don't include muted subjects in the results. Set this to true to include them.
2526// lastReviewedBy: Get all subject statuses that were reviewed by a specific moderator
2627// onlyMuted: When set to true, only muted subjects and reporters will be returned.
···3031// reviewedAfter: Search subjects reviewed after a given timestamp
3132// reviewedBefore: Search subjects reviewed before a given timestamp
3233// subject: The subject to get the status for.
3434+// 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.
3335// takendown: Get subjects that were taken down
3434-func ModerationQueryStatuses(ctx context.Context, c *xrpc.Client, appealed bool, 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, tags []string, takendown bool) (*ModerationQueryStatuses_Output, error) {
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) {
3537 var out ModerationQueryStatuses_Output
36383739 params := map[string]interface{}{
3840 "appealed": appealed,
4141+ "collections": collections,
3942 "comment": comment,
4043 "cursor": cursor,
4144 "excludeTags": excludeTags,
···5356 "sortDirection": sortDirection,
5457 "sortField": sortField,
5558 "subject": subject,
5959+ "subjectType": subjectType,
5660 "tags": tags,
5761 "takendown": takendown,
5862 }