call
const call: (...args: [socket: string, request: | { _tag: "approvals";} | { _tag: "approve"; request: { expected: { assignment: { artifact: { digest: string; package: string; }; contractEntry?: string; entry: string; grants: readonly ( | { _tag: "Http"; credential?: ... | ...; id: string; origin: string; } | { _tag: "Files"; directory: string; id: string; })[]; tier: "own" | "trusted" | "untrusted"; }; policyVersion: string; projections: readonly { operation: string; projection: string; service: string; value: Json; view: string; }[]; }; overrideRevocations?: boolean; who: string; };} | { _tag: "revoke"; references: readonly string[]; who: string;} | { _tag: "build"; request: { file: string; metadataOnly?: boolean; references: readonly string[]; revocations: readonly string[]; };} | { _tag: "plan"; target: string;} | { _tag: "apply"; request: { expected: string; overrideRevocations?: boolean; target: string; };} | { _tag: "rollback"; expected: string; overrideRevocations: boolean;} | { _tag: "history";} | { _tag: "status";}]) => Effect;Defined in: Control.ts:230
One bounded local request. A disconnected caller does not cancel an admitted apply.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…args |
[socket: string, request: | { _tag: "approvals"; } | { _tag: "approve"; request: { expected: { assignment: { artifact: { digest: string; package: string; }; contractEntry?: string; entry: string; grants: readonly ( | { _tag: "Http"; credential?: … | …; id: string; origin: string; } | { _tag: "Files"; directory: string; id: string; })[]; tier: "own" | "trusted" | "untrusted"; }; policyVersion: string; projections: readonly { operation: string; projection: string; service: string; value: Json; view: string; }[]; }; overrideRevocations?: boolean; who: string; }; } | { _tag: "revoke"; references: readonly string[]; who: string; } | { _tag: "build"; request: { file: string; metadataOnly?: boolean; references: readonly string[]; revocations: readonly string[]; }; } | { _tag: "plan"; target: string; } | { _tag: "apply"; request: { expected: string; overrideRevocations?: boolean; target: string; }; } | { _tag: "rollback"; expected: string; overrideRevocations: boolean; } | { _tag: "history"; } | { _tag: "status"; }] |
Returns
Section titled “Returns”Effect