HookContext
Defined in: types.ts:238
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”agent?
Section titled “agent?”
optionalagent?: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
optionaldata?:Partial<T>
Defined in: types.ts:245
error?
Section titled “error?”
optionalerror?:Error
Defined in: types.ts:248
optionalid?:Id
Defined in: types.ts:246
method
Section titled “method”method:
string
Defined in: types.ts:242
params
Section titled “params”params:
ServiceParams
Defined in: types.ts:244
path:
string
Defined in: types.ts:241
provider?
Section titled “provider?”
optionalprovider?:string
Defined in: types.ts:243
result?
Section titled “result?”
optionalresult?:T|T[] |Paginated<T>
Defined in: types.ts:247
service
Section titled “service”service:
Partial<Service<T>>
Defined in: types.ts:240
statusCode?
Section titled “statusCode?”
optionalstatusCode?:number
Defined in: types.ts:249