team_renamed
This page is auto-generated from
src/admin/routes.ts. Do not edit by hand — seedocs/dev/docs-auto-sync.md.
Event string
Section titled “Event string”team_renamed
Emitting helpers
Section titled “Emitting helpers”| Function | Source |
|---|---|
encodeRoleOverrideAuditReason | src/admin/routes.ts:5048 |
Context fields
Section titled “Context fields”| Field | Type | Required | Notes |
|---|---|---|---|
team_id | value | yes | — |
before | { name: beforeRow.name, slug: beforeR... | yes | — |
after | { name: updated[0].name, slug: update... | yes | — |
by_user_id | value | yes | — |
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.
Provenance: This envelope is emitted via a shared helper at the call site — the field types in the table above are inferred from the call-site object literal rather than a TypeScript interface. Treat the type column as best-effort.