Aller au contenu principal

Variable: PluginRuntimeRpcRequestBodySchema

const PluginRuntimeRpcRequestBodySchema: TObject<{ call: 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>; }>; workerEpoch: TInteger; workerId: TInteger; }>

Defined in: packages/contracts/src/pluginRuntime.ts:981

RPC_REQUEST control payload (worker → host via the runtime, §15.2). The runtime stamps the worker identity so the host can attribute the call; the call field is the full broker envelope (identity, capability, deadline, causal chain).