invokeRaw( request: { app?: string; operation?: string; params?: { [key: string]: | string | number | boolean | (
{ [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
)
| (
string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
)
[] | null; }; connection?: string; instance?: string; idempotencyKey?: string; credentialMode?: string; context?: { subject?: { id?: string; credentialSubjectId?: string; email?: string; displayName?: string; scopes?: string[]; permissions?: { app?: string; operations?: string[]; allOperations?: boolean; }[]; }; credential?: { mode?: string; subjectId?: string; connection?: string; instance?: string; }; access?: { policy?: string; role?: string }; workflow?: { [key: string]: | string | number | boolean | (
{ [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
)
| (
string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
)
[] | null; }; host?: { publicBaseUrl?: string }; agentSubject?: { id?: string; credentialSubjectId?: string; email?: string; displayName?: string; scopes?: string[]; permissions?: { app?: string; operations?: string[]; allOperations?: boolean; }[]; }; caller?: { kind?: string; name?: string }; invocation?: { requestId?: string; depth?: number; callChain?: string[]; surface?: string; internalConnectionAccess?: boolean; connection?: string; }; toolRefs?: { app?: string; operation?: string; connection?: string; instance?: string; title?: string; description?: string; credentialMode?: string; system?: string; runAs?: { id?: string; credentialSubjectId?: string; email?: string; displayName?: string; scopes?: string[]; permissions?: { app?: ...
; operations?: ...
; allOperations?: ...
}[]; }; }[]; toolRefsSet?: boolean; requestMeta?: { clientIp?: string; remoteAddr?: string; userAgent?: string; }; agent?: { providerName?: string; sessionId?: string; turnId?: string }; }; },): Promise<OperationResult>
The result decodes with the standard JSON operation envelope semantics; envelope failures throw InvokeError.