Skip to content

HookContext

Defined in: types.ts:238

T = unknown

optional agent?: AgentContext

Defined in: types.ts:255

Set by an authorizeAgent()-style hook (see @mantlejs/auth) when the call was authorized via a capability-scoped agent token rather than a user credential. Additive — never replaces params.user, and absent entirely for ordinary user/internal calls.


app: MantleApplication

Defined in: types.ts:239


optional data?: Partial<T>

Defined in: types.ts:245


optional error?: Error

Defined in: types.ts:248


optional id?: Id

Defined in: types.ts:246


method: string

Defined in: types.ts:242


params: ServiceParams

Defined in: types.ts:244


path: string

Defined in: types.ts:241


optional provider?: string

Defined in: types.ts:243


optional result?: T | T[] | Paginated<T>

Defined in: types.ts:247


service: Partial<Service<T>>

Defined in: types.ts:240


optional statusCode?: number

Defined in: types.ts:249