changedInput schema / properties / request / properties / body / properties / policies / items / anyOf
Previous value: -[
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "guidelineKey": {
- "type": "string"
- },
- "id": {
- "allOf": [
- {
- "const": "guideline",
- "default": "guideline",
- "type": "string"
- },
- {
- "const": "guideline",
- "type": "string"
- }
- ]
- },
- "instructions": {
- "type": "string"
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "guidelineKey",
- "instructions",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "toxicity",
- "default": "toxicity",
- "type": "string"
- },
- {
- "const": "toxicity",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "personal_information",
- "default": "personal_information",
- "type": "string"
- },
- {
- "const": "personal_information",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "hate",
- "default": "hate",
- "type": "string"
- },
- {
- "const": "hate",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "illicit",
- "default": "illicit",
- "type": "string"
- },
- {
- "const": "illicit",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "illicit_drugs",
- "default": "illicit_drugs",
- "type": "string"
- },
- {
- "const": "illicit_drugs",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "illicit_alcohol",
- "default": "illicit_alcohol",
- "type": "string"
- },
- {
- "const": "illicit_alcohol",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "illicit_firearms",
- "default": "illicit_firearms",
- "type": "string"
- },
- {
- "const": "illicit_firearms",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "illicit_tobacco",
- "default": "illicit_tobacco",
- "type": "string"
- },
- {
- "const": "illicit_tobacco",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "illicit_gambling",
- "default": "illicit_gambling",
- "type": "string"
- },
- {
- "const": "illicit_gambling",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "cannabis",
- "default": "cannabis",
- "type": "string"
- },
- {
- "const": "cannabis",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "adult",
- "default": "adult",
- "type": "string"
- },
- {
- "const": "adult",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "crypto",
- "default": "crypto",
- "type": "string"
- },
- {
- "const": "crypto",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "sexual",
- "default": "sexual",
- "type": "string"
- },
- {
- "const": "sexual",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "sexual_minors",
- "default": "sexual_minors",
- "type": "string"
- },
- {
- "const": "sexual_minors",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "profanity",
- "default": "profanity",
- "type": "string"
- },
- {
- "const": "profanity",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "violence",
- "default": "violence",
- "type": "string"
- },
- {
- "const": "violence",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "self_harm",
- "default": "self_harm",
- "type": "string"
- },
- {
- "const": "self_harm",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "spam",
- "default": "spam",
- "type": "string"
- },
- {
- "const": "spam",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "low_quality",
- "default": "low_quality",
- "type": "string"
- },
- {
- "const": "low_quality",
- "type": "string"
- }
- ]
- },
- "minWords": {
- "description": "Flag content with fewer than this many words as low-effort. Defaults to 3. Set to disable by omitting.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "comparator": {
- "description": "Flag images that contain \"at least\" or \"fewer than\" the configured number of faces. Defaults to at_least.",
- "enum": [
- "at_least",
- "fewer_than"
- ],
- "type": "string"
- },
- "count": {
- "description": "Number of faces the comparator applies to. Defaults to 1, so the default rule flags any image containing a face.",
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "face_detection",
- "default": "face_detection",
- "type": "string"
- },
- {
- "const": "face_detection",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "self_promotion",
- "default": "self_promotion",
- "type": "string"
- },
- {
- "const": "self_promotion",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "political",
- "default": "political",
- "type": "string"
- },
- {
- "const": "political",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "religion",
- "default": "religion",
- "type": "string"
- },
- {
- "const": "religion",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "threat",
- "default": "threat",
- "type": "string"
- },
- {
- "const": "threat",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "sexual_solicitation",
- "default": "sexual_solicitation",
- "type": "string"
- },
- {
- "const": "sexual_solicitation",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "channel_circumvent",
- "default": "channel_circumvent",
- "type": "string"
- },
- {
- "const": "channel_circumvent",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "illegal_trade",
- "default": "illegal_trade",
- "type": "string"
- },
- {
- "const": "illegal_trade",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "alcohol",
- "default": "alcohol",
- "type": "string"
- },
- {
- "const": "alcohol",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "drugs",
- "default": "drugs",
- "type": "string"
- },
- {
- "const": "drugs",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "gambling",
- "default": "gambling",
- "type": "string"
- },
- {
- "const": "gambling",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "tobacco",
- "default": "tobacco",
- "type": "string"
- },
- {
- "const": "tobacco",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "weapons",
- "default": "weapons",
- "type": "string"
- },
- {
- "const": "weapons",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "promotion",
- "default": "promotion",
- "type": "string"
- },
- {
- "const": "promotion",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "extremism",
- "default": "extremism",
- "type": "string"
- },
- {
- "const": "extremism",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "code_abuse",
- "default": "code_abuse",
- "type": "string"
- },
- {
- "const": "code_abuse",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "flag": {
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "unicode_spoofing",
- "default": "unicode_spoofing",
- "type": "string"
- },
- {
- "const": "unicode_spoofing",
- "type": "string"
- }
- ]
- },
- "signals": {
- "additionalProperties": {
- "properties": {
- "flag": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "description": "Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage defaults to off because decode damage (U+FFFD) marks a broken pipeline, not an attack. A disabled signal is still detected and reported as a label, but does not by itself flag the policy.",
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "entities": {
- "additionalProperties": {
- "additionalProperties": {},
- "properties": {
- "enable": {
- "type": "boolean"
- },
- "flag": {
- "type": "boolean"
- },
- "mask": {
- "type": "string"
- },
- "shouldMask": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "id": {
- "allOf": [
- {
- "const": "pii",
- "default": "pii",
- "type": "string"
- },
- {
- "const": "pii",
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "entities",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "entities": {
- "additionalProperties": {
- "additionalProperties": {},
- "properties": {
- "enable": {
- "type": "boolean"
- },
- "flag": {
- "type": "boolean"
- },
- "mask": {
- "type": "string"
- },
- "shouldMask": {
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "id": {
- "allOf": [
- {
- "const": "url",
- "default": "url",
- "type": "string"
- },
- {
- "const": "url",
- "type": "string"
- }
- ]
- }
- },
- "required": [
- "entities",
- "id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "allowlistWordlistIds": {
- "description": "IDs of wordlists whose entries are treated as allowed URL domains. Matches short-circuit the risk model and are never flagged.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "blocklistWordlistIds": {
- "description": "IDs of wordlists whose entries are treated as blocked URL domains. Matches short-circuit the risk model and are always flagged. Blocklists take precedence over allowlists.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "flag": {
- "type": "boolean"
- },
- "flagLinkShorteners": {
- "description": "When true, any URL detected as a free link shortener (bit.ly, t.co, tinyurl, etc.) is always flagged regardless of risk score. Allowlist matches still win.",
- "type": "boolean"
- },
- "id": {
- "allOf": [
- {
- "const": "url_risk",
- "default": "url_risk",
- "type": "string"
- },
- {
- "const": "url_risk",
- "type": "string"
- }
- ]
- },
- "threshold": {
- "type": "number"
- }
- },
- "required": [
- "flag",
- "id"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "guidelineKey": {
+ "type": "string"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "guideline",
+ "default": "guideline",
+ "type": "string"
+ },
+ {
+ "const": "guideline",
+ "type": "string"
+ }
+ ]
+ },
+ "instructions": {
+ "type": "string"
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "guidelineKey",
+ "instructions",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "toxicity",
+ "default": "toxicity",
+ "type": "string"
+ },
+ {
+ "const": "toxicity",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "personal_information",
+ "default": "personal_information",
+ "type": "string"
+ },
+ {
+ "const": "personal_information",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "hate",
+ "default": "hate",
+ "type": "string"
+ },
+ {
+ "const": "hate",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "illicit",
+ "default": "illicit",
+ "type": "string"
+ },
+ {
+ "const": "illicit",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "illicit_drugs",
+ "default": "illicit_drugs",
+ "type": "string"
+ },
+ {
+ "const": "illicit_drugs",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "illicit_alcohol",
+ "default": "illicit_alcohol",
+ "type": "string"
+ },
+ {
+ "const": "illicit_alcohol",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "illicit_firearms",
+ "default": "illicit_firearms",
+ "type": "string"
+ },
+ {
+ "const": "illicit_firearms",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "illicit_tobacco",
+ "default": "illicit_tobacco",
+ "type": "string"
+ },
+ {
+ "const": "illicit_tobacco",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "illicit_gambling",
+ "default": "illicit_gambling",
+ "type": "string"
+ },
+ {
+ "const": "illicit_gambling",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "cannabis",
+ "default": "cannabis",
+ "type": "string"
+ },
+ {
+ "const": "cannabis",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "adult",
+ "default": "adult",
+ "type": "string"
+ },
+ {
+ "const": "adult",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "crypto",
+ "default": "crypto",
+ "type": "string"
+ },
+ {
+ "const": "crypto",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "sexual",
+ "default": "sexual",
+ "type": "string"
+ },
+ {
+ "const": "sexual",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "sexual_minors",
+ "default": "sexual_minors",
+ "type": "string"
+ },
+ {
+ "const": "sexual_minors",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "profanity",
+ "default": "profanity",
+ "type": "string"
+ },
+ {
+ "const": "profanity",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "violence",
+ "default": "violence",
+ "type": "string"
+ },
+ {
+ "const": "violence",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "self_harm",
+ "default": "self_harm",
+ "type": "string"
+ },
+ {
+ "const": "self_harm",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "spam",
+ "default": "spam",
+ "type": "string"
+ },
+ {
+ "const": "spam",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "low_quality",
+ "default": "low_quality",
+ "type": "string"
+ },
+ {
+ "const": "low_quality",
+ "type": "string"
+ }
+ ]
+ },
+ "minWords": {
+ "description": "Flag content with fewer than this many words as low-effort. Defaults to 3. Set to disable by omitting.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "comparator": {
+ "description": "Flag images that contain \"at least\" or \"fewer than\" the configured number of faces. Defaults to at_least.",
+ "enum": [
+ "at_least",
+ "fewer_than"
+ ],
+ "type": "string"
+ },
+ "count": {
+ "description": "Number of faces the comparator applies to. Defaults to 1, so the default rule flags any image containing a face.",
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ },
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "face_detection",
+ "default": "face_detection",
+ "type": "string"
+ },
+ {
+ "const": "face_detection",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "self_promotion",
+ "default": "self_promotion",
+ "type": "string"
+ },
+ {
+ "const": "self_promotion",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "political",
+ "default": "political",
+ "type": "string"
+ },
+ {
+ "const": "political",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "religion",
+ "default": "religion",
+ "type": "string"
+ },
+ {
+ "const": "religion",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "threat",
+ "default": "threat",
+ "type": "string"
+ },
+ {
+ "const": "threat",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "sexual_solicitation",
+ "default": "sexual_solicitation",
+ "type": "string"
+ },
+ {
+ "const": "sexual_solicitation",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "channel_circumvent",
+ "default": "channel_circumvent",
+ "type": "string"
+ },
+ {
+ "const": "channel_circumvent",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "illegal_trade",
+ "default": "illegal_trade",
+ "type": "string"
+ },
+ {
+ "const": "illegal_trade",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "alcohol",
+ "default": "alcohol",
+ "type": "string"
+ },
+ {
+ "const": "alcohol",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "drugs",
+ "default": "drugs",
+ "type": "string"
+ },
+ {
+ "const": "drugs",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "gambling",
+ "default": "gambling",
+ "type": "string"
+ },
+ {
+ "const": "gambling",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "tobacco",
+ "default": "tobacco",
+ "type": "string"
+ },
+ {
+ "const": "tobacco",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "weapons",
+ "default": "weapons",
+ "type": "string"
+ },
+ {
+ "const": "weapons",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "promotion",
+ "default": "promotion",
+ "type": "string"
+ },
+ {
+ "const": "promotion",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "extremism",
+ "default": "extremism",
+ "type": "string"
+ },
+ {
+ "const": "extremism",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "code_abuse",
+ "default": "code_abuse",
+ "type": "string"
+ },
+ {
+ "const": "code_abuse",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "unicode_spoofing",
+ "default": "unicode_spoofing",
+ "type": "string"
+ },
+ {
+ "const": "unicode_spoofing",
+ "type": "string"
+ }
+ ]
+ },
+ "signals": {
+ "additionalProperties": {
+ "properties": {
+ "flag": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "description": "Per-signal flag toggles. Omitted spoofing signals are enabled; encoding_damage defaults to off because decode damage (U+FFFD) marks a broken pipeline, not an attack, and hidden_lookalike and leetspeak default to off because they are opt-in. A disabled signal is still detected and reported as a label, but does not by itself flag the policy. Lookalike words are only spelled out in the cleaned text when their signal is enabled.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "entities": {
+ "additionalProperties": {
+ "additionalProperties": {},
+ "properties": {
+ "enable": {
+ "type": "boolean"
+ },
+ "flag": {
+ "type": "boolean"
+ },
+ "mask": {
+ "type": "string"
+ },
+ "shouldMask": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "pii",
+ "default": "pii",
+ "type": "string"
+ },
+ {
+ "const": "pii",
+ "type": "string"
+ }
+ ]
+ }
+ },
+ "required": [
+ "entities",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "entities": {
+ "additionalProperties": {
+ "additionalProperties": {},
+ "properties": {
+ "enable": {
+ "type": "boolean"
+ },
+ "flag": {
+ "type": "boolean"
+ },
+ "mask": {
+ "type": "string"
+ },
+ "shouldMask": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "url",
+ "default": "url",
+ "type": "string"
+ },
+ {
+ "const": "url",
+ "type": "string"
+ }
+ ]
+ }
+ },
+ "required": [
+ "entities",
+ "id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "allowlistWordlistIds": {
+ "description": "IDs of wordlists whose entries are treated as allowed URL domains. Matches short-circuit the risk model and are never flagged.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "blocklistWordlistIds": {
+ "description": "IDs of wordlists whose entries are treated as blocked URL domains. Matches short-circuit the risk model and are always flagged. Blocklists take precedence over allowlists.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "flag": {
+ "type": "boolean"
+ },
+ "flagLinkShorteners": {
+ "description": "When true, any URL detected as a free link shortener (bit.ly, t.co, tinyurl, etc.) is always flagged regardless of risk score. Allowlist matches still win.",
+ "type": "boolean"
+ },
+ "id": {
+ "allOf": [
+ {
+ "const": "url_risk",
+ "default": "url_risk",
+ "type": "string"
+ },
+ {
+ "const": "url_risk",
+ "type": "string"
+ }
+ ]
+ },
+ "threshold": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "flag",
+ "id"
+ ],
+ "type": "object"
+ }
+]