diff --git a/api/ozone/moderationdefs.go b/api/ozone/moderationdefs.go index 1e23a82f..5b627bab 100644 --- a/api/ozone/moderationdefs.go +++ b/api/ozone/moderationdefs.go @@ -205,6 +205,8 @@ type ModerationDefs_ModEventEmail struct { Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` // content: The content of the email sent to the user. Content *string `json:"content,omitempty" cborgen:"content,omitempty"` + // isDelivered: Indicates whether the email was successfully delivered to the user's inbox. + IsDelivered *bool `json:"isDelivered,omitempty" cborgen:"isDelivered,omitempty"` // policies: Names/Keywords of the policies that necessitated the email. Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"` // severityLevel: Severity level of the violation. Normally 'sev-1' that adds strike on repeat offense @@ -330,6 +332,8 @@ type ModerationDefs_ModEventTakedown struct { StrikeCount *int64 `json:"strikeCount,omitempty" cborgen:"strikeCount,omitempty"` // strikeExpiresAt: When the strike should expire. If not provided, the strike never expires. StrikeExpiresAt *string `json:"strikeExpiresAt,omitempty" cborgen:"strikeExpiresAt,omitempty"` + // targetServices: List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services. + TargetServices []string `json:"targetServices,omitempty" cborgen:"targetServices,omitempty"` } // ModerationDefs_ModEventUnmute is a "modEventUnmute" in the tools.ozone.moderation.defs schema. diff --git a/api/ozone/moderationscheduleAction.go b/api/ozone/moderationscheduleAction.go index 2edd18d7..728fdf5a 100644 --- a/api/ozone/moderationscheduleAction.go +++ b/api/ozone/moderationscheduleAction.go @@ -85,8 +85,18 @@ type ModerationScheduleAction_Takedown struct { Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` // durationInHours: Indicates how long the takedown should be in effect before automatically expiring. DurationInHours *int64 `json:"durationInHours,omitempty" cborgen:"durationInHours,omitempty"` + // emailContent: Email content to be sent to the user upon takedown. + EmailContent *string `json:"emailContent,omitempty" cborgen:"emailContent,omitempty"` + // emailSubject: Subject of the email to be sent to the user upon takedown. + EmailSubject *string `json:"emailSubject,omitempty" cborgen:"emailSubject,omitempty"` // policies: Names/Keywords of the policies that drove the decision. Policies []string `json:"policies,omitempty" cborgen:"policies,omitempty"` + // severityLevel: Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.). + SeverityLevel *string `json:"severityLevel,omitempty" cborgen:"severityLevel,omitempty"` + // strikeCount: Number of strikes to assign to the user when takedown is applied. + StrikeCount *int64 `json:"strikeCount,omitempty" cborgen:"strikeCount,omitempty"` + // strikeExpiresAt: When the strike should expire. If not provided, the strike never expires. + StrikeExpiresAt *string `json:"strikeExpiresAt,omitempty" cborgen:"strikeExpiresAt,omitempty"` } // ModerationScheduleAction calls the XRPC method "tools.ozone.moderation.scheduleAction".