···5252 TakedownCount *int64 `json:"takedownCount,omitempty" cborgen:"takedownCount,omitempty"`
5353}
54545555+// ModerationDefs_AccountStrike is a "accountStrike" in the tools.ozone.moderation.defs schema.
5656+//
5757+// Strike information for an account
5858+type ModerationDefs_AccountStrike struct {
5959+ // activeStrikeCount: Current number of active strikes (excluding expired strikes)
6060+ ActiveStrikeCount *int64 `json:"activeStrikeCount,omitempty" cborgen:"activeStrikeCount,omitempty"`
6161+ // firstStrikeAt: Timestamp of the first strike received
6262+ FirstStrikeAt *string `json:"firstStrikeAt,omitempty" cborgen:"firstStrikeAt,omitempty"`
6363+ // lastStrikeAt: Timestamp of the most recent strike received
6464+ LastStrikeAt *string `json:"lastStrikeAt,omitempty" cborgen:"lastStrikeAt,omitempty"`
6565+ // totalStrikeCount: Total number of strikes ever received (including expired strikes)
6666+ TotalStrikeCount *int64 `json:"totalStrikeCount,omitempty" cborgen:"totalStrikeCount,omitempty"`
6767+}
6868+5569// ModerationDefs_AgeAssuranceEvent is a "ageAssuranceEvent" in the tools.ozone.moderation.defs schema.
5670//
5771// Age assurance info coming directly from users. Only works on DID subjects.
···191205 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
192206 // content: The content of the email sent to the user.
193207 Content *string `json:"content,omitempty" cborgen:"content,omitempty"`
208208+ // policies: Names/Keywords of the policies that necessitated the email.
209209+ Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"`
210210+ // severityLevel: Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense
211211+ SeverityLevel *string `json:"severityLevel,omitempty" cborgen:"severityLevel,omitempty"`
212212+ // strikeCount: Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense.
213213+ StrikeCount *int64 `json:"strikeCount,omitempty" cborgen:"strikeCount,omitempty"`
214214+ // strikeExpiresAt: When the strike should expire. If not provided, the strike never expires.
215215+ StrikeExpiresAt *string `json:"strikeExpiresAt,omitempty" cborgen:"strikeExpiresAt,omitempty"`
194216 // subjectLine: The subject line of the email sent to the user.
195217 SubjectLine string `json:"subjectLine" cborgen:"subjectLine"`
196218}
···269291 LexiconTypeID string `json:"$type" cborgen:"$type,const=tools.ozone.moderation.defs#modEventReverseTakedown"`
270292 // comment: Describe reasoning behind the reversal.
271293 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
294294+ // policies: Names/Keywords of the policy infraction for which takedown is being reversed.
295295+ Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"`
296296+ // severityLevel: Severity level of the violation. Usually set from the last policy infraction's severity.
297297+ SeverityLevel *string `json:"severityLevel,omitempty" cborgen:"severityLevel,omitempty"`
298298+ // strikeCount: Number of strikes to subtract from the user's strike count. Usually set from the last policy infraction's severity.
299299+ StrikeCount *int64 `json:"strikeCount,omitempty" cborgen:"strikeCount,omitempty"`
272300}
273301274302// ModerationDefs_ModEventTag is a "modEventTag" in the tools.ozone.moderation.defs schema.
···296324 DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"`
297325 // policies: Names/Keywords of the policies that drove the decision.
298326 Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"`
327327+ // severityLevel: Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).
328328+ SeverityLevel *string `json:"severityLevel,omitempty" cborgen:"severityLevel,omitempty"`
329329+ // strikeCount: Number of strikes to assign to the user for this violation.
330330+ StrikeCount *int64 `json:"strikeCount,omitempty" cborgen:"strikeCount,omitempty"`
331331+ // strikeExpiresAt: When the strike should expire. If not provided, the strike never expires.
332332+ StrikeExpiresAt *string `json:"strikeExpiresAt,omitempty" cborgen:"strikeExpiresAt,omitempty"`
299333}
300334301335// ModerationDefs_ModEventUnmute is a "modEventUnmute" in the tools.ozone.moderation.defs schema.
···10711105type ModerationDefs_SubjectStatusView struct {
10721106 // accountStats: Statistics related to the account subject
10731107 AccountStats *ModerationDefs_AccountStats `json:"accountStats,omitempty" cborgen:"accountStats,omitempty"`
11081108+ // accountStrike: Strike information for the account (account-level only)
11091109+ AccountStrike *ModerationDefs_AccountStrike `json:"accountStrike,omitempty" cborgen:"accountStrike,omitempty"`
10741110 // ageAssuranceState: Current age assurance state of the subject.
10751111 AgeAssuranceState *string `json:"ageAssuranceState,omitempty" cborgen:"ageAssuranceState,omitempty"`
10761112 // ageAssuranceUpdatedBy: Whether or not the last successful update to age assurance was made by the user or admin.
+5-1
api/ozone/moderationqueryEvents.go
···3434// sortDirection: Sort direction for the events. Defaults to descending order of created at timestamp.
3535// 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.
3636// 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.
3737-func ModerationQueryEvents(ctx context.Context, c lexutil.LexClient, addedLabels []string, addedTags []string, ageAssuranceState string, batchId 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) {
3737+// withStrike: If specified, only events where strikeCount value is set are returned.
3838+func ModerationQueryEvents(ctx context.Context, c lexutil.LexClient, addedLabels []string, addedTags []string, ageAssuranceState string, batchId 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, withStrike bool) (*ModerationQueryEvents_Output, error) {
3839 var out ModerationQueryEvents_Output
39404041 params := map[string]interface{}{}
···103104 }
104105 if len(types) != 0 {
105106 params["types"] = types
107107+ }
108108+ if withStrike {
109109+ params["withStrike"] = withStrike
106110 }
107111 if err := c.LexDo(ctx, lexutil.Query, "", "tools.ozone.moderation.queryEvents", params, nil, &out); err != nil {
108112 return nil, err
+5-1
api/ozone/moderationqueryStatuses.go
···3333// minAccountSuspendCount: If specified, only subjects that belong to an account that has at least this many suspensions will be returned.
3434// minPriorityScore: If specified, only subjects that have priority score value above the given value will be returned.
3535// minReportedRecordsCount: If specified, only subjects that belong to an account that has at least this many reported records will be returned.
3636+// minStrikeCount: If specified, only subjects that belong to an account that has at least this many active strikes will be returned.
3637// minTakendownRecordsCount: If specified, only subjects that belong to an account that has at least this many taken down records will be returned.
3738// onlyMuted: When set to true, only muted subjects and reporters will be returned.
3839// queueCount: Number of queues being used by moderators. Subjects will be split among all queues.
···4647// subject: The subject to get the status for.
4748// 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.
4849// takendown: Get subjects that were taken down
4949-func ModerationQueryStatuses(ctx context.Context, c lexutil.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) {
5050+func ModerationQueryStatuses(ctx context.Context, c lexutil.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, minStrikeCount 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) {
5051 var out ModerationQueryStatuses_Output
51525253 params := map[string]interface{}{}
···106107 }
107108 if minReportedRecordsCount != 0 {
108109 params["minReportedRecordsCount"] = minReportedRecordsCount
110110+ }
111111+ if minStrikeCount != 0 {
112112+ params["minStrikeCount"] = minStrikeCount
109113 }
110114 if minTakendownRecordsCount != 0 {
111115 params["minTakendownRecordsCount"] = minTakendownRecordsCount