this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ozone lexicon updates

+12 -4
+6 -2
api/ozone/moderationqueryEvents.go
··· 20 20 // 21 21 // addedLabels: If specified, only events where all of these labels were added are returned 22 22 // addedTags: If specified, only events where all of these tags were added are returned 23 + // 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. 23 24 // comment: If specified, only events with comments containing the keyword are returned 24 25 // createdAfter: Retrieve events created after a given timestamp 25 26 // createdBefore: Retrieve events created before a given timestamp 26 27 // hasComment: If true, only events with comments are returned 27 - // includeAllUserRecords: If true, events on all record types (posts, lists, profile etc.) owned by the did 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. 28 29 // removedLabels: If specified, only events where all of these labels were removed are returned 29 30 // removedTags: If specified, only events where all of these tags were removed are returned 30 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. 31 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. 32 - 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) { 34 + 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) { 33 35 var out ModerationQueryEvents_Output 34 36 35 37 params := map[string]interface{}{ 36 38 "addedLabels": addedLabels, 37 39 "addedTags": addedTags, 40 + "collections": collections, 38 41 "comment": comment, 39 42 "createdAfter": createdAfter, 40 43 "createdBefore": createdBefore, ··· 48 51 "reportTypes": reportTypes, 49 52 "sortDirection": sortDirection, 50 53 "subject": subject, 54 + "subjectType": subjectType, 51 55 "types": types, 52 56 } 53 57 if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil {
+6 -2
api/ozone/moderationqueryStatuses.go
··· 19 19 // ModerationQueryStatuses calls the XRPC method "tools.ozone.moderation.queryStatuses". 20 20 // 21 21 // 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. 22 23 // comment: Search subjects by keyword from comments 23 - // includeAllUserRecords: All subjects belonging to the account specified in the 'subject' param will be returned. 24 + // includeAllUserRecords: All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned. 24 25 // includeMuted: By default, we don't include muted subjects in the results. Set this to true to include them. 25 26 // lastReviewedBy: Get all subject statuses that were reviewed by a specific moderator 26 27 // onlyMuted: When set to true, only muted subjects and reporters will be returned. ··· 30 31 // reviewedAfter: Search subjects reviewed after a given timestamp 31 32 // reviewedBefore: Search subjects reviewed before a given timestamp 32 33 // subject: The subject to get the status for. 34 + // 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. 33 35 // takendown: Get subjects that were taken down 34 - 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) { 36 + 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) { 35 37 var out ModerationQueryStatuses_Output 36 38 37 39 params := map[string]interface{}{ 38 40 "appealed": appealed, 41 + "collections": collections, 39 42 "comment": comment, 40 43 "cursor": cursor, 41 44 "excludeTags": excludeTags, ··· 53 56 "sortDirection": sortDirection, 54 57 "sortField": sortField, 55 58 "subject": subject, 59 + "subjectType": subjectType, 56 60 "tags": tags, 57 61 "takendown": takendown, 58 62 }