Skip to main content

Interface: IUsageDeniedErrorData

Defined in: internal/usage-guard/types.ts:16

The data of the error a refused model call throws.

Read by the orchestration to build the issue usage_denied; the app's code and message travel through unchanged.

Properties​

denyCode?​

optional denyCode?: string

Defined in: internal/usage-guard/types.ts:20

The app's denyCode, as IUsageCheckResult returned it; the gateway does not read it.


denyUserMessage?​

optional denyUserMessage?: string

Defined in: internal/usage-guard/types.ts:22

The app's denyUserMessage, in the user's language; it becomes the error's userMessage.


traceId​

traceId: string

Defined in: internal/usage-guard/types.ts:18

The trace id the refused call would have had; the adapter saw it in check.