Skip to content

domain_claim_default_role_changed

This page is auto-generated from src/auth/stytch-invite.ts. Do not edit by hand — see docs/dev/docs-auto-sync.md.

domain_claim_default_role_changed

FunctionSource
encodeDomainClaimDefaultRoleChangedAuditReasonsrc/auth/stytch-invite.ts:202
FieldTypeRequiredNotes
domainstringyes—
claim_idstringyes—
from_role"owner" | "admin" | "member" | "viewer"yes—
to_role"owner" | "admin" | "member" | "viewer"yes—
by_user_idstringyes—

This envelope is stored in audit_log.decision_reason (varchar(256)) as a JSON object with the shape { event, ...ctx }. The audit_log row carries tenant_id, actor_user_id, and timestamp as columns alongside — those are not duplicated in the envelope.