Skip to content

Interface: AuditScopeInput<TCtx>

Defined in: server/src/sync-handler.ts:287

Input available to AuditLogOptions.scopeFor. Kept separate from AuthResult so the callback sees the mutation identity as well — scoping by mutationName is legitimate for niche compliance regimes even if the common case scopes by clientGroupID.

wireArgs is the raw payload as it arrived on the wire — scope has to be decided before the mutator runs (the transaction it opens needs to know its scope), so validation-normalised args are not yet available at this point. Callers that need normalised values should scope by mutation identity fields (mutationName, clientGroupID) or defer that decision to captureArgs, which fires after normalisation.

TCtx

readonly ctx: TCtx

Defined in: server/src/sync-handler.ts:288


readonly clientGroupID: string

Defined in: server/src/sync-handler.ts:289


readonly clientID: string

Defined in: server/src/sync-handler.ts:290


readonly mutationName: string

Defined in: server/src/sync-handler.ts:291


readonly mutationID: number

Defined in: server/src/sync-handler.ts:292


readonly wireArgs: unknown

Defined in: server/src/sync-handler.ts:293