Aller au contenu principal

Variable: BrokerCallRequestSchema

const BrokerCallRequestSchema: TObject<{ args: TOptional<TUnknown>; caller: TObject<{ installationId: TString; pluginId: TString; trustLevel: TUnion<[TLiteral<"sandbox">, TLiteral<"extended">, TLiteral<"trusted">]>; }>; capability: TObject<{ name: TString; scope: TOptional<TUnknown>; }>; causalChain: TArray<TString>; deadlineAt: TInteger; idempotencyKey: TOptional<TString>; method: TString; requestId: TString; revision: TOptional<TInteger>; }>

Defined in: packages/contracts/src/capabilityBroker.ts:73

A broker call as posted by the worker bridge (Runtime ↔ Worker §16) and forwarded host-ward over the RPC_REQUEST/RPC_RESPONSE frames (§15.2). causalChain lists the pluginIds already on the call path (A→B→C); the caller appends its own id, so a chain that already contains it is a re-entrant cycle and fails fast with SERVICE_CALL_CYCLE (§26.2.1).