Skip to main content

Type Alias: CreateSanctionRequest

type CreateSanctionRequest: components["schemas"]["CreateSanctionRequest"];

Properties

PropertyTypeRequiredDescription
participantIdstringNoParticipant ID to sanction (for session-scoped sanctions) (example: "550e8400-e29b-41d4-a716-446655440000")
externalUserIdstringNoExternal user ID from ODIN (for cross-session sanctions) (example: "user_abc123")
sessionIdstringNoSession ID (for session-scoped sanctions) (example: "550e8400-e29b-41d4-a716-446655440001")
type"warn" | "mute" | "listen_only" | "text_only" | "rate_limit" | "shadow_mute" | "temp_ban" | "perm_ban" | "ranked_restriction" | "queue_delay" | "party_restriction" | "human_review"YesType of sanction to apply (example: "mute")
scopeobjectNoScope configuration for channel-specific sanctions (example: {"channels":["team","proximity"]})
reasonstringNoReason for the sanction (example: "Repeated use of profanity detected by automated filter")
metadataobjectNoAdditional metadata (evidence, AI confidence, etc.) (example: {"confidence":0.95,"triggeredBy":"profanity_filter"})
startAtstringNoWhen the sanction starts (defaults to now) (example: "2024-01-15T10:00:00Z")
endAtstringNoWhen the sanction ends (null = permanent) (example: "2024-01-15T11:00:00Z")

Defined in

4Players/cortex-typescript-sdk/src/resources/sanctions.ts:17