@constal/sdk 6.10.0 → 6.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1479,7 +1479,7 @@ interface PriceTableRef {
1479
1479
  version: string;
1480
1480
  hash: Hash;
1481
1481
  }
1482
- type SandboxNetworkMode = "block-all" | "cidr-allow" | "domain-allow" | "managed-http" | "unrestricted";
1482
+ type SandboxNetworkMode = "block-all" | "cidr-allow" | "domain-allow" | "unrestricted";
1483
1483
  type SandboxNetworkPolicy = {
1484
1484
  mode: "block-all";
1485
1485
  } | {
@@ -1488,15 +1488,6 @@ type SandboxNetworkPolicy = {
1488
1488
  } | {
1489
1489
  mode: "domain-allow";
1490
1490
  domains: string[];
1491
- } | {
1492
- mode: "managed-http";
1493
- transport: "bridge";
1494
- egress: CRN;
1495
- } | {
1496
- mode: "managed-http";
1497
- transport: "proxy";
1498
- egress: CRN;
1499
- domains: string[];
1500
1491
  } | {
1501
1492
  mode: "unrestricted";
1502
1493
  };
@@ -1752,18 +1743,14 @@ interface SandboxGovernanceControls {
1752
1743
  command_timeout_ms: number;
1753
1744
  cpu: number;
1754
1745
  disk_gib: number;
1755
- idle_stop_ms: number;
1756
- max_concurrent_commands: number;
1757
1746
  max_file_bytes: number;
1758
1747
  memory_gib: number;
1759
1748
  network_cidrs: string[];
1760
1749
  network_domains: string[];
1761
- network_egress: string | null;
1762
- network_mode: "block-all" | "cidr-allow" | "domain-allow" | "managed-http" | "unrestricted";
1763
- network_transport: "bridge" | "proxy" | null;
1750
+ network_mode: "block-all" | "cidr-allow" | "domain-allow" | "unrestricted";
1764
1751
  permitted_paths: string[];
1765
1752
  }
1766
- type SandboxGovernanceMeter = "commands" | "compute_ms" | "file_bytes" | "requests";
1753
+ type SandboxGovernanceMeter = "commands" | "requests";
1767
1754
 
1768
1755
  interface GovernanceContractRef {
1769
1756
  id: string;
@@ -1869,13 +1856,6 @@ type PolicyInvocationOrigin = {
1869
1856
  kind: "channel";
1870
1857
  channel: CRN;
1871
1858
  phase: "receive" | "respond" | "send" | "failed" | "authorize-subscription" | "presence" | "fetch";
1872
- } | {
1873
- kind: "sandbox";
1874
- agent: CRN;
1875
- sandbox: {
1876
- crn: CRN;
1877
- hash: Hash;
1878
- };
1879
1859
  } | {
1880
1860
  kind: "system";
1881
1861
  };
@@ -1959,359 +1939,406 @@ interface AnalyticsClient {
1959
1939
  }
1960
1940
  declare function analyticsEvent<Dimension extends string, Metric extends string>(definition: AnalyticsEventDefinition<Dimension, Metric>): AnalyticsEventDefinition<Dimension, Metric>;
1961
1941
 
1962
- interface ContainerImageReference {
1963
- registry: string;
1964
- repository: string;
1965
- tag: string | null;
1966
- digest: string | null;
1967
- reference: string;
1942
+ interface SandboxResources {
1943
+ cpu: number;
1944
+ memoryGib: number;
1945
+ diskGib: number;
1968
1946
  }
1969
- /** Immutable OCI identity before any provider-specific preparation. */
1970
- interface ContainerImageSource {
1971
- reference: string;
1972
- digest: `sha256:${string}`;
1973
- mediaType: string;
1974
- bytes: number;
1975
- platform: {
1976
- os: string;
1977
- architecture: string;
1978
- variant?: string;
1947
+ /**
1948
+ * Sandbox sizes: provider-neutral allocations a pool names with `size` (vCPU, memory in GiB, disk in GB), on any provider.
1949
+ * A pool that names one states the same allocation as its `resources`, which is what its usage is metered and priced on;
1950
+ * the provider decides what it starts to provide it (its nearest shape at or above the size's allocation). Every size has
1951
+ * its own disk, so a report's disk axis alone tells which size it was measured on.
1952
+ */
1953
+ declare const SANDBOX_SIZES: {
1954
+ readonly xs: {
1955
+ readonly cpu: 0.0625;
1956
+ readonly memoryGib: 0.25;
1957
+ readonly diskGib: 2;
1979
1958
  };
1980
- }
1981
- /** Digest-pinned image selected for one Linux execution environment. Manifest
1982
- * metadata is resolved by the runtime pull and recorded in its receipt. */
1983
- interface ContainerImageSelection {
1984
- reference: string;
1985
- platform: {
1986
- os: string;
1987
- architecture: string;
1988
- variant?: string;
1959
+ readonly s: {
1960
+ readonly cpu: 0.25;
1961
+ readonly memoryGib: 1;
1962
+ readonly diskGib: 4;
1963
+ };
1964
+ readonly m: {
1965
+ readonly cpu: 0.5;
1966
+ readonly memoryGib: 4;
1967
+ readonly diskGib: 8;
1968
+ };
1969
+ readonly l: {
1970
+ readonly cpu: 1;
1971
+ readonly memoryGib: 6;
1972
+ readonly diskGib: 12;
1989
1973
  };
1974
+ readonly xl: {
1975
+ readonly cpu: 2;
1976
+ readonly memoryGib: 8;
1977
+ readonly diskGib: 16;
1978
+ };
1979
+ readonly "2xl": {
1980
+ readonly cpu: 4;
1981
+ readonly memoryGib: 12;
1982
+ readonly diskGib: 20;
1983
+ };
1984
+ };
1985
+ type SandboxSize = keyof typeof SANDBOX_SIZES;
1986
+
1987
+ /**
1988
+ * The sandbox door: Constal's one sandbox API (caas.sh docs/design/one-door-sandbox-api.md, sections 4 and 5). Sandboxes are
1989
+ * addressed by id in a namespace, under `/v1/namespaces/{namespace}/sandboxes`, and every caller uses these routes:
1990
+ *
1991
+ * - a tenant's API key, on the platform's public routes (caas.sh calls them over its CONSTAL_PLATFORM binding);
1992
+ * - an agent's Run, through its sandbox-pool Resource, which reaches the same routes at `https://platform.internal`
1993
+ * with the Run's own authority instead of a key.
1994
+ *
1995
+ * Each call is authorized where it arrives, inline: the key (or Run), the Policy scope of its operation (`scope` below) on
1996
+ * the pool it names, and the balance at create and start (`balance`). Nothing is pre-issued. The platform then calls the sandbox's coordinator, one per sandbox id
1997
+ * (packages/platform-protocol/src/sandbox-door-calls.ts), which answers when the provider answers.
1998
+ *
1999
+ * Nothing runs in a sandbox but the caller's image and the caller's commands. Exec, files, egress, ports and snapshots are
2000
+ * the provider's own APIs; what a provider lacks is `Unsupported` (naming the capability, SandboxCapabilities), never
2001
+ * emulated. Persistence and snapshots are the provider's own; Constal takes no snapshot or archive of its own.
2002
+ *
2003
+ * Every call names its pool: a create in its body, every other call in the `x-constal-sandbox-pool` header. It names a
2004
+ * sandbox-pool Resource of the caller's tenant in the route's namespace by its id, and any other by its CRN (a pool another
2005
+ * tenant offers, such as the platform's, or one of another namespace); sandboxDoorPoolName gives the name a sandbox keeps.
2006
+ * A sandbox of another pool is `NotFound`, as is one of another tenant or namespace.
2007
+ *
2008
+ * Every mutating call takes an `Idempotency-Key` (`key` below). The coordinator keeps each key it admitted, with the
2009
+ * identity of the request it named (its operation, path, query and body), for as long as it keeps the sandbox; a deleted
2010
+ * sandbox's tombstone keeps them too. The same key with the same request answers that call's effect as it stands now (a
2011
+ * create's replay answers 200 with the sandbox, not 201); the same key with another request is `Conflict` and changes
2012
+ * nothing. A create without an `id` gets `sandboxIdFromKey(namespace, key)`, so a retried create names the same sandbox.
2013
+ * An id names one sandbox for good: a create of an id that exists, or existed, under another key is `AlreadyExists`.
2014
+ *
2015
+ * Waits long-poll and answer as soon as the lifecycle settles, at most SANDBOX_DOOR_MAX_WAIT_MS: `?wait=<seconds>` on
2016
+ * create, start and stop, `?waitMs=<milliseconds>` on a get, an exec and an exec's read. Without one, or 0, a call answers
2017
+ * at once. A wait that ends unsettled answers the state then (create 201, start and stop 202, exec 202).
2018
+ */
2019
+ /** The longest wait a call takes, in milliseconds (the design's `?waitMs` bound, which caas.sh's own waits keep). */
2020
+ declare const SANDBOX_DOOR_MAX_WAIT_MS = 25000;
2021
+ /**
2022
+ * A sandbox's state: the provider's own (`starting`, `running`, `stopping`, `stopped`, and `failed` when the provider
2023
+ * reports the sandbox broken) and the two the platform owns: `deleted`, and `failed` for a create or start the coordinator
2024
+ * gave up on.
2025
+ */
2026
+ type SandboxState = "starting" | "running" | "stopping" | "stopped" | "failed" | "deleted";
2027
+ /**
2028
+ * A sandbox's egress, enforced by its provider's own network API: every destination, none, or only those listed. A
2029
+ * provider without one takes only `all` (SandboxCapabilities.egress).
2030
+ */
2031
+ type SandboxEgress = {
2032
+ mode: "all";
2033
+ } | {
2034
+ mode: "none";
2035
+ } | {
2036
+ mode: "allow";
2037
+ allow: SandboxEgressDestination[];
2038
+ };
2039
+ /**
2040
+ * One destination an `allow` egress admits: a host name, exact or `*.example.com` (the apex and every name under it), or
2041
+ * an IPv4 or IPv6 range in CIDR notation (one address is a /32 or /128), on the ports it names. Without `ports`: every port
2042
+ * the provider matches that kind of destination on (SandboxEgressCapabilities.domains.ports).
2043
+ */
2044
+ type SandboxEgressDestination = {
2045
+ domain: string;
2046
+ ports?: number[];
2047
+ } | {
2048
+ cidr: string;
2049
+ ports?: number[];
2050
+ };
2051
+ /** The paths a file operation reaches: any path, or only those under these absolute directories. */
2052
+ type SandboxFileScope = "any" | {
2053
+ under: string[];
2054
+ };
2055
+ /**
2056
+ * What the provider's exec API takes, each a field of SandboxExecRequest or a behavior of the door's exec: output while the
2057
+ * command runs (`streaming`), one-shot standard input (`stdin`), a pseudo-terminal (`pty`), a command that outlives the
2058
+ * request that started it and is read again or cancelled by its id (`detach`), per-command variables (`env`), a working
2059
+ * directory (`cwd`) and a time limit the provider enforces (`timeout`).
2060
+ */
2061
+ interface SandboxExecCapabilities {
2062
+ streaming: boolean;
2063
+ stdin: boolean;
2064
+ pty: boolean;
2065
+ detach: boolean;
2066
+ env: boolean;
2067
+ cwd: boolean;
2068
+ timeout: boolean;
2069
+ }
2070
+ /** The provider's file API, per operation: the paths it reaches, or null when it has no such operation. */
2071
+ interface SandboxFileCapabilities {
2072
+ read: SandboxFileScope | null;
2073
+ write: SandboxFileScope | null;
2074
+ delete: SandboxFileScope | null;
1990
2075
  }
1991
- interface ContainerRegistryResponse {
1992
- status: number;
1993
- headers: Record<string, string>;
1994
- body: Uint8Array;
2076
+ /**
2077
+ * The egress vocabulary the provider's network API enforces: its modes; domain destinations (whether `*.` names match, and
2078
+ * the only ports a domain is matched on, null when it is matched on the ports the destination names); CIDR destinations by
2079
+ * IP version; whether a destination may name ports; whether one policy may list domains and CIDRs together; and whether a
2080
+ * running sandbox's egress can be replaced (otherwise only at create, or on a stopped sandbox, taking effect at its start).
2081
+ */
2082
+ interface SandboxEgressCapabilities {
2083
+ modes: ("all" | "none" | "allow")[];
2084
+ domains: {
2085
+ wildcards: boolean;
2086
+ ports: number[] | null;
2087
+ } | null;
2088
+ cidrs: {
2089
+ ipv4: boolean;
2090
+ ipv6: boolean;
2091
+ } | null;
2092
+ ports: boolean;
2093
+ mixed: boolean;
2094
+ live: boolean;
1995
2095
  }
1996
- type ContainerRegistryRequest = (request: {
1997
- url: string;
1998
- method: "GET";
1999
- headers: Record<string, string>;
2000
- maximumBytes: number;
2001
- }) => Promise<ContainerRegistryResponse>;
2002
- /** Canonical Docker/OCI distribution reference. Tags remain mutable until the
2003
- * owning registry resolver pins them; digests are preserved exactly. */
2004
- declare function containerImageReference(value: string): ContainerImageReference;
2005
- declare function immutableContainerImageReference(value: string): ContainerImageReference & {
2006
- digest: `sha256:${string}`;
2096
+ /**
2097
+ * How a sandbox's ports are reached: at a URL the provider serves itself (GET …/ports/{port} answers it with the
2098
+ * authorization it needs; `maxPorts`: how many ports one sandbox can have reachable, null for any), or only from inside
2099
+ * Constal's sandbox service, through the door's forward route (`door`).
2100
+ */
2101
+ type SandboxPortCapabilities = {
2102
+ via: "provider";
2103
+ maxPorts: number | null;
2104
+ } | {
2105
+ via: "door";
2007
2106
  };
2008
- declare function containerImageSource(value: unknown): ContainerImageSource;
2009
- declare function containerImageSelection(value: unknown): ContainerImageSelection;
2010
- /** Resolve a mutable tag or multi-platform index exactly once to one immutable
2011
- * manifest. The caller owns registry authentication and transport Policy. */
2012
- declare function resolveContainerImageSource(reference: string, platform: ContainerImageSource["platform"], request: ContainerRegistryRequest, authorization?: string): Promise<ContainerImageSource>;
2013
-
2014
- /** Canonicalize one provider-neutral path and keep it inside the logical workspace. */
2015
- declare function normalizeSandboxWorkspacePath(path: string, cwd?: string): string;
2107
+ /** The provider's own snapshots: whether one keeps memory (a create from it resumes its processes), and what taking one does to the sandbox. */
2108
+ interface SandboxSnapshotCapabilities {
2109
+ memory: boolean;
2110
+ effect: "none" | "pause" | "stop";
2111
+ }
2016
2112
  /**
2017
- * A sandbox's https requests carry its owner's connections: the Credential of each enabled binding its customer owns (the
2018
- * tenant, for a tenant-level Run) in the Agent's namespace, at the destinations that Credential declares
2019
- * (CredentialDestination). Nothing here names them.
2113
+ * What survives the door's stop on this provider, which is the provider's own: memory, processes and disk (its stop is a
2114
+ * pause, and a start resumes them); the disk, all of it (`only` null) or only under `only`, without what it names in
2115
+ * `except`, which a start boots again; or nothing (its stop destroys the instance, and a start boots the image afresh).
2020
2116
  */
2021
- interface CreateSandboxOptions {
2022
- /** Restrict egress credentials to these owner connection keys. Omitted keeps the existing restriction; [] permits none. */
2023
- connectionKeys?: string[];
2024
- image?: SandboxImage;
2025
- resetImage?: boolean;
2026
- execution?: ContainerImageSelection;
2027
- /** Narrows the pool's network for this sandbox; `Sandbox.updateNetwork` replaces it later. */
2028
- network?: SandboxEgressPolicy;
2029
- /** Labels every egress event of this sandbox carries. */
2030
- labels?: SandboxLabels;
2117
+ type SandboxPersistence = {
2118
+ kind: "memory";
2119
+ } | {
2120
+ kind: "disk";
2121
+ only: string[] | null;
2122
+ except: string[];
2123
+ } | {
2124
+ kind: "none";
2125
+ };
2126
+ /**
2127
+ * How the secrets layer (connectors' Credentials, sign-ins and Logins, added by Constal's egress gateway) reaches a
2128
+ * sandbox's traffic, by the provider's own egress feature: its egress proxy (`proxy`), its forwarding of requests to a URL
2129
+ * (`forwarding`), its interception of them (`interception`), or headers it sets itself (`header-injection`). Nothing in the
2130
+ * sandbox carries it, and a feature that needs anything installed in the sandbox does not count. `none`: a sandbox on this
2131
+ * provider takes no `connectionKeys`.
2132
+ */
2133
+ type SandboxSecretsRoute = "proxy" | "forwarding" | "interception" | "header-injection" | "none";
2134
+ /**
2135
+ * What a provider's own API offers, as its adapter declares it: what a create takes besides its image and size (`create`),
2136
+ * exec, files, egress, ports and snapshots (null where the provider has none), what survives a stop (`persistence`),
2137
+ * whether the provider can also pause a sandbox with its memory (`pauseWithMemory`), and how secrets reach its traffic. A
2138
+ * request that needs what is absent is refused with `Unsupported` and `capability` naming the path, such as `exec.cwd`,
2139
+ * `egress.live`, `files.write` or `secrets`.
2140
+ */
2141
+ interface SandboxCapabilities {
2142
+ /** Whether a create takes the image's start command (`command`) and environment (`env`). */
2143
+ create: {
2144
+ command: boolean;
2145
+ env: boolean;
2146
+ };
2147
+ exec: SandboxExecCapabilities | null;
2148
+ files: SandboxFileCapabilities | null;
2149
+ egress: SandboxEgressCapabilities | null;
2150
+ ports: SandboxPortCapabilities | null;
2151
+ snapshots: SandboxSnapshotCapabilities | null;
2152
+ persistence: SandboxPersistence;
2153
+ pauseWithMemory: boolean;
2154
+ secrets: SandboxSecretsRoute;
2155
+ }
2156
+ /** POST /sandboxes. */
2157
+ interface SandboxCreateRequest {
2158
+ /** The sandbox's id (SANDBOX_DOOR_ID); omitted: sandboxIdFromKey(namespace, key). */
2159
+ id?: string;
2031
2160
  /**
2032
- * Whose sandbox this is. `session` (the default): the Session's own. `entry`: one sandbox for the Run's whole end-to-end
2033
- * run, shared by every Run it reaches, whatever its Agent or Session (InvokeOrigin `entry`): each such Run that calls
2034
- * createSandbox with `entry` works in it, its files kept from one Run to the next, and the Session's calls that name no
2035
- * sandbox (`workspace()`) go there until a createSandbox without it. No Session's end releases it: it is deleted 6 h
2036
- * after it was last used, and the next createSandbox makes a new one. Make it a Run's first call to the pool: a Run's fast
2037
- * calls keep the sandbox their grant found.
2161
+ * The sandbox-pool Resource it runs on (its provider, account, region, and default image and size): its id in the
2162
+ * namespace, or its CRN (SANDBOX_DOOR_POOL_HEADER).
2038
2163
  */
2039
- scope?: SandboxScope;
2164
+ pool: string;
2165
+ /** What the provider boots: an image reference it can boot, or a snapshot's `image`; omitted: the pool's. */
2166
+ image?: string;
2167
+ /** A SANDBOX_SIZES name or an allocation, which usage is priced on; the provider gives its nearest shape at or above it. Omitted: the pool's. */
2168
+ size?: SandboxSize | SandboxResources;
2169
+ /** The command the image starts with, in place of its own (`create.command`). */
2170
+ command?: string[];
2171
+ /** The sandbox's environment (`create.env`). */
2172
+ env?: Record<string, string>;
2173
+ /** Omitted: `{ mode: "all" }`. */
2174
+ network?: SandboxEgress;
2175
+ /** Kept by the coordinator and answered with the sandbox; given to the provider as its labels where it takes them. */
2176
+ labels?: SandboxLabels;
2177
+ /** The tenant's owner connections (binding keys) the secrets layer adds to the sandbox's requests; omitted or []: none. */
2178
+ connectionKeys?: string[];
2040
2179
  }
2041
- /** CreateSandboxOptions `scope`. */
2042
- type SandboxScope = "session" | "entry";
2043
- /**
2044
- * Optional immutable identity for a prepared image. Cache keys are supplied as
2045
- * full SHA-256 digests so a SandboxPool can safely scope and reuse an image
2046
- * without interpreting an Agent's environment manifest.
2047
- */
2048
- interface CreateSandboxImageOptions {
2049
- cacheKey?: string;
2180
+ /** PATCH /sandboxes/{id}: each field replaces its value whole. `network` on a running sandbox needs `egress.live`; `connectionKeys` apply at once. */
2181
+ interface SandboxUpdateRequest {
2182
+ network?: SandboxEgress;
2183
+ labels?: SandboxLabels;
2184
+ connectionKeys?: string[];
2050
2185
  }
2051
- interface SandboxExecInput {
2186
+ /** POST /sandboxes/{id}/exec: `cmd` and `args` are the argv; each other field needs its `exec` capability. */
2187
+ interface SandboxExecRequest {
2052
2188
  cmd: string;
2053
2189
  args?: string[];
2054
2190
  cwd?: string;
2055
2191
  env?: Record<string, string>;
2056
2192
  stdin?: string;
2057
2193
  timeoutMs?: number;
2058
- outputs?: string[];
2059
- /** Upload stdout and stderr to content-addressed storage even when
2060
- * `stdoutPreview` holds them completely. By default output stays on the
2061
- * sandbox disk and `stdoutRef`/`stderrRef` are null unless the preview was
2062
- * truncated or outputs were declared. */
2063
- retain?: boolean;
2064
- /** Keep stdin open for governed process I/O until EOF or process termination. */
2065
- interactive?: boolean;
2066
- /** Stable caller-owned name for one interactive process in this Run. */
2067
- processKey?: string;
2068
- credentials?: SandboxProcessCredentials;
2069
- }
2070
- interface SandboxProcessCredentials {
2071
- /** Variable receives the Credential value. */
2072
- env?: Record<string, ResourceCredentialBinding>;
2073
- /** Variable receives a memory-backed file path containing the value. */
2074
- files?: Record<string, ResourceCredentialBinding>;
2075
- }
2076
- declare const SANDBOX_PROCESS_IO_OPERATIONS: readonly ["process.status", "process.read", "process.write", "process.close"];
2077
- declare const SANDBOX_PROCESS_OPERATIONS: readonly ["process.resolve", "process.status", "process.read", "process.write", "process.close", "process.stop"];
2078
- type SandboxProcessIoOperation = typeof SANDBOX_PROCESS_IO_OPERATIONS[number];
2079
- type SandboxProcessOperation = typeof SANDBOX_PROCESS_OPERATIONS[number];
2080
- interface SandboxProcessReadInput {
2081
- stream: "stdout" | "stderr";
2082
- offset: number;
2083
- limit: number;
2084
- }
2085
- interface SandboxProcessReadResult {
2086
- /** Base64 bytes, which may split a UTF-8 character or application frame. */
2087
- data: string;
2088
- bytes: number;
2089
- offset: number;
2090
- returnedBytes: number;
2091
- nextOffset: number;
2092
- eof: boolean;
2093
2194
  }
2094
- interface SandboxProcessWriteResult {
2195
+ /** A sandbox as the door answers it. */
2196
+ interface SandboxView {
2095
2197
  id: string;
2096
- status: "acknowledged" | "uncertain";
2097
- bytes: number;
2098
- }
2099
- interface SandboxProcessStatus {
2100
- process: string;
2101
- status: string;
2102
- generation: number | null;
2198
+ namespace: string;
2199
+ pool: string;
2200
+ state: SandboxState;
2201
+ /**
2202
+ * Why it stopped, failed or was deleted, when that was said: its caller's stop, the tenant's balance running out, the
2203
+ * provider's own stop (its time limit), a create or start that failed. Null otherwise.
2204
+ */
2205
+ reason: string | null;
2206
+ image: string;
2207
+ /** The allocation its size states, which usage is priced on. */
2208
+ resources: SandboxResources;
2209
+ command: string[] | null;
2210
+ env: Record<string, string>;
2211
+ network: SandboxEgress;
2212
+ labels: SandboxLabels;
2213
+ connectionKeys: string[];
2214
+ /** Where it runs: the provider, its own id for the sandbox (null until it has one), the allocation it gave, and what it offers. */
2215
+ provider: {
2216
+ name: string;
2217
+ id: string | null;
2218
+ allocation: SandboxResources | null;
2219
+ capabilities: SandboxCapabilities;
2220
+ };
2221
+ createdAt: number;
2222
+ startedAt: number | null;
2223
+ stoppedAt: number | null;
2103
2224
  }
2104
- interface SandboxProcess {
2105
- readonly id: string;
2106
- readonly execution: InvocationHandle<SandboxCommandResult> | null;
2107
- status(opts?: InvokeOpts): InvocationHandle<SandboxProcessStatus>;
2108
- read(input: SandboxProcessReadInput, opts?: InvokeOpts): InvocationHandle<SandboxProcessReadResult>;
2109
- write(data: Uint8Array | string, opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
2110
- closeStdin(opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
2111
- stop(): Promise<void>;
2112
- }
2113
- /** Process facts, independent of whether the caller considers the exit code successful. */
2114
- interface SandboxCommandExecution {
2225
+ type SandboxExecutionState = "running" | "exited" | "timed-out" | "cancelled" | "failed";
2226
+ /**
2227
+ * One command and its result. `stdout` and `stderr` are whole, as the provider answered them (while it runs, what it has
2228
+ * answered so far); Constal cuts nothing, and a provider that keeps only part of a stream answers that part. `error`: why
2229
+ * it `failed` (the provider could not run it, or lost it).
2230
+ */
2231
+ interface SandboxExecution {
2232
+ id: string;
2233
+ state: SandboxExecutionState;
2115
2234
  exitCode: number | null;
2116
- /** The terminating signal, when reported by the runner. */
2117
2235
  signal: string | null;
2118
- /** A failure to execute the process, distinct from a process that exited nonzero. */
2119
- error: {
2120
- code: string;
2121
- message: string;
2122
- } | null;
2236
+ stdout: string;
2237
+ stderr: string;
2238
+ error: string | null;
2239
+ startedAt: number;
2240
+ endedAt: number | null;
2123
2241
  }
2124
- interface SandboxCommandCollectionError {
2242
+ /** A file a call wrote or deleted: its path, and its size when written. */
2243
+ interface SandboxFile {
2125
2244
  path: string;
2126
- code: string;
2127
- message: string;
2245
+ bytes: number | null;
2128
2246
  }
2129
- interface SandboxCommandResult {
2130
- commandId: string;
2131
- /** Execution-service summary, including nonzero exits and output collection failures. It is not application success. */
2132
- status: "completed" | "failed" | "timeout" | "cancelled" | "lease-lost";
2133
- /** Compatibility projection of execution.exitCode. */
2134
- exitCode: number | null;
2135
- /** Null when no process outcome was established; absent on older sandbox results. A resolved invocation may contain an execution error or a nonzero exit. */
2136
- execution?: SandboxCommandExecution | null;
2137
- /** Failures retaining streams or declared outputs, separate from process execution. Absent on older results. */
2138
- collectionErrors?: SandboxCommandCollectionError[];
2139
- /**
2140
- * The stream's output, or its start: up to 100 KiB per stream. On pool versions with the sandbox fast path, an exec it
2141
- * answers holds complete output up to 512 KiB for stdout and stderr together (`stdoutTruncated` false); a stream beyond
2142
- * that budget keeps a 100 KiB preview with `…Truncated` true, its size in `…Bytes` and its content in `…Ref`. Read
2143
- * `…Truncated` rather than assuming a preview size.
2144
- */
2145
- stdoutPreview: string;
2146
- /** As `stdoutPreview`, for stderr; it shares the same 512 KiB inline budget, after stdout. */
2147
- stderrPreview: string;
2148
- stdoutRef: Ref | null;
2149
- stderrRef: Ref | null;
2150
- /** Whether the stream holds more than its preview shows. Absent from results that predate it. */
2151
- stdoutTruncated?: boolean;
2152
- stderrTruncated?: boolean;
2153
- /** The stream's size in bytes; null when it was truncated and not retained. Absent from results that predate it. */
2154
- stdoutBytes?: number | null;
2155
- stderrBytes?: number | null;
2156
- outputs: {
2157
- path: string;
2158
- ref: Ref;
2159
- bytes: number;
2160
- }[];
2161
- sandbox: {
2162
- id: string;
2163
- generation: number;
2164
- fresh: boolean;
2165
- };
2166
- reason?: string;
2247
+ /** A snapshot the provider took: its id, the image a create boots it from, and whether it kept memory. */
2248
+ interface SandboxSnapshot {
2249
+ id: string;
2250
+ image: string;
2251
+ memory: boolean;
2252
+ createdAt: number;
2167
2253
  }
2168
- interface SandboxFileResult {
2254
+
2255
+ /**
2256
+ * A sandbox-pool Resource's operations: the sandbox door's (SANDBOX_DOOR_OPERATIONS in sandbox-door.ts), each one call to it
2257
+ * with the Run's own authority, named as the door names them. The door's port routes are not among them: an endpoint
2258
+ * answers the provider's own authorization, and a forward is the port's stream.
2259
+ */
2260
+ declare const SANDBOX_POOL_OPERATIONS: readonly ["create", "get", "start", "stop", "delete", "update", "exec", "execution", "cancel", "readFile", "writeFile", "deleteFile", "snapshot", "deleteSnapshot"];
2261
+ type SandboxPoolOperation = typeof SANDBOX_POOL_OPERATIONS[number];
2262
+ /** A create through a pool: the door's create request, whose pool is the pool's own Resource. */
2263
+ type SandboxPoolCreateRequest = Omit<SandboxCreateRequest, "pool">;
2264
+ /** A file readFile answered: its path, and its bytes, whole, stored by reference. */
2265
+ interface SandboxFileContent {
2169
2266
  path: string;
2170
2267
  ref: Ref;
2171
2268
  bytes: number;
2172
2269
  }
2173
- interface SandboxReadFileOptions {
2174
- offset?: number;
2175
- limit?: number;
2270
+ /** What writeFile writes: UTF-8 text, or a stored value's bytes. */
2271
+ type SandboxFileBody = string | {
2272
+ ref: Ref;
2273
+ };
2274
+ /** A wait a call long-polls with, in milliseconds: at most SANDBOX_DOOR_MAX_WAIT_MS; omitted or 0 answers at once. */
2275
+ interface SandboxWaitOptions {
2276
+ waitMs?: number;
2176
2277
  invoke?: InvokeOpts;
2177
2278
  }
2178
- interface SandboxReadFileResult {
2179
- path: string;
2180
- content: string;
2181
- contentHash: Ref;
2182
- bytes: number;
2183
- offset: number;
2184
- returnedBytes: number;
2185
- nextOffset: number | null;
2186
- }
2187
- interface SandboxWriteFileResult {
2188
- path: string;
2189
- contentHash: Ref;
2190
- bytes: number;
2191
- }
2192
- interface SandboxMutationResult {
2193
- ok: boolean;
2194
- }
2195
- /** Immutable image handle owned by exactly one SandboxPool Resource. */
2196
- interface SandboxImage {
2279
+ /** One sandbox of a pool, addressed by its id: each method is one door call. */
2280
+ interface Sandbox {
2197
2281
  readonly id: string;
2198
2282
  readonly pool: SandboxPool;
2199
- /** The cache key the image was created or resolved with; null when it has none, or when a handle from `SandboxPool.image` does not know it. */
2200
- readonly cacheKey: string | null;
2201
- delete(opts?: InvokeOpts): Promise<void>;
2202
- }
2203
- /** The authenticated Agent/Session workspace. Its physical sandbox is lazy. */
2204
- interface SandboxWorkspace {
2205
- readonly pool: SandboxPool;
2206
- readonly agent: CRN;
2207
- readonly session: string;
2283
+ get(options?: SandboxWaitOptions): Promise<SandboxView>;
2284
+ /** Answers once the start settles, or the sandbox as it is when the wait ends (`starting`). */
2285
+ start(opts?: InvokeOpts): Promise<SandboxView>;
2286
+ /** What survives a stop is the provider's own (SandboxCapabilities.persistence). */
2287
+ stop(opts?: InvokeOpts): Promise<SandboxView>;
2288
+ delete(opts?: InvokeOpts): Promise<SandboxView>;
2289
+ update(patch: SandboxUpdateRequest, opts?: InvokeOpts): Promise<SandboxView>;
2208
2290
  /**
2209
- * Run one command. `await workspace.exec(...)` (or `Promise.all` of execs) waits for the command inline and continues
2210
- * in the same pass; `start()` first, or racing it with a durable wait, spawn or approval, answers once it is admitted and
2211
- * delivers the result through the Handle. `opts.wait` (`"inline"` | `"async"`) overrides that choice and passes through
2212
- * unchanged; it never changes the Handle id or the operation's identity.
2291
+ * Run one command through the provider's exec API. `await sandbox.exec(...)` waits for it inline; `start()` first, or
2292
+ * racing it with a durable wait, answers once the door admitted it and delivers the result through the Handle.
2213
2293
  */
2214
- exec(input: SandboxExecInput, opts?: InvokeOpts): InvocationHandle<SandboxCommandResult>;
2215
- /** Admit ordinary exec without waiting for exit. Readiness is observable via I/O. */
2216
- openProcess(input: SandboxExecInput, opts?: InvokeOpts): Promise<SandboxProcess>;
2217
- /** Find an active process by key, or reattach by ID, including after exit. Both require this Run's ownership. */
2218
- resolveProcess(selector: string | {
2219
- id: string;
2220
- }, opts?: InvokeOpts): Promise<SandboxProcess | null>;
2221
- /** Synchronous: waits inline unless `options.invoke.wait` is `"async"`. `options.invoke` passes through to the invocation unchanged. */
2222
- readFile(path: string, options?: SandboxReadFileOptions): Promise<SandboxReadFileResult>;
2223
- /** Synchronous: waits inline unless `options.invoke.wait` is `"async"`. `options.invoke` passes through to the invocation unchanged. */
2224
- writeFile(path: string, content: string, options?: {
2225
- mode?: number;
2226
- invoke?: InvokeOpts;
2227
- }): Promise<SandboxWriteFileResult>;
2228
- getFile(path: string, opts?: InvokeOpts): InvocationHandle<SandboxFileResult>;
2229
- putFile(path: string, ref: Ref, options?: {
2230
- mode?: number;
2231
- invoke?: InvokeOpts;
2232
- }): InvocationHandle<SandboxMutationResult>;
2233
- deleteFile(path: string, opts?: InvokeOpts): InvocationHandle<SandboxMutationResult>;
2234
- }
2235
- /** A retained disk's identity and activation fence, separate from any portable checkpoint of its contents. */
2236
- interface SandboxWorkspaceReceipt {
2237
- storageId: string;
2238
- epoch: number;
2239
- coordinator: string;
2240
- /** Opaque provider identity; capabilities are expressed by retained and paths. */
2241
- provider: string;
2242
- paths: string[];
2243
- retained: boolean;
2244
- mutationEpoch: number;
2245
- }
2246
- interface SandboxWorkspacePreparation {
2247
- /** Reuse this key when retrying the same lifecycle action, even across Runs. */
2248
- key: string;
2249
- paths: string[];
2250
- expected?: SandboxWorkspaceReceipt;
2251
- }
2252
- interface SandboxWorkspaceInspection {
2253
- workspace: SandboxWorkspaceReceipt | null;
2254
- state: "active" | "stopping" | "checkpoint" | "stopped" | "missing" | "untracked";
2255
- /** Admitted work may still be writing; the mutation counter alone does not prove backup consistency. */
2256
- busy: boolean;
2257
- /** A lifecycle call whose answer is still uncertain, so an owning Run can join it after recovery. */
2258
- pending?: {
2259
- key: string;
2260
- operation: "resume" | "checkpoint" | "stop" | "discard";
2261
- };
2262
- }
2263
- /** Explicit physical handle used only for lifecycle/image selection controls. */
2264
- interface Sandbox extends SandboxWorkspace {
2265
- readonly id: string;
2266
- /** Replace this sandbox's narrowing of its pool's network, live; null removes it. */
2267
- updateNetwork(network: SandboxEgressPolicy | null, opts?: InvokeOpts): Promise<void>;
2268
- suspend(opts?: InvokeOpts): Promise<void>;
2269
- resume(opts?: InvokeOpts): Promise<void>;
2270
- delete(opts?: InvokeOpts): Promise<void>;
2271
- /** Materialize or resume a workspace, verifying expected storage before reusing it. Unsupported paths retain the archive fallback. */
2272
- prepareWorkspace(input: SandboxWorkspacePreparation, opts?: InvokeOpts): Promise<{
2273
- workspace: SandboxWorkspaceReceipt;
2274
- reused: boolean;
2275
- }>;
2276
- /** Fence admission, drain/cancel work, flush and stop a provider that retains these paths. */
2277
- stopWorkspace(input: {
2278
- key: string;
2279
- expected: SandboxWorkspaceReceipt;
2280
- discard?: boolean;
2281
- }, opts?: InvokeOpts): Promise<{
2282
- workspace: SandboxWorkspaceReceipt;
2283
- }>;
2284
- /** Revoke direct calls and drain work, allowing only the returned Run to export a checkpoint before stop/delete. */
2285
- quiesceWorkspace(input: {
2286
- key: string;
2287
- expected: SandboxWorkspaceReceipt;
2288
- }, opts?: InvokeOpts): Promise<{
2289
- workspace: SandboxWorkspaceReceipt;
2290
- run: string;
2291
- }>;
2292
- inspectWorkspace(input?: {
2293
- expected?: SandboxWorkspaceReceipt;
2294
- probe?: boolean;
2295
- }, opts?: InvokeOpts): Promise<SandboxWorkspaceInspection>;
2296
- /** Explicitly discard a retained workspace; the current activation receipt is required. */
2297
- deleteWorkspace(expected: SandboxWorkspaceReceipt, opts?: InvokeOpts): Promise<void>;
2298
- }
2299
- /** Provider-neutral factory and owner for images and logical sandboxes. */
2294
+ exec(request: SandboxExecRequest, opts?: InvokeOpts): InvocationHandle<SandboxExecution>;
2295
+ /** An execution by its id, such as one another caller started. */
2296
+ execution(id: string, options?: SandboxWaitOptions): Promise<SandboxExecution>;
2297
+ cancelExecution(id: string, opts?: InvokeOpts): Promise<SandboxExecution>;
2298
+ readFile(path: string, opts?: InvokeOpts): Promise<SandboxFileContent>;
2299
+ writeFile(path: string, body: SandboxFileBody, opts?: InvokeOpts): Promise<SandboxFile>;
2300
+ deleteFile(path: string, opts?: InvokeOpts): Promise<SandboxFile>;
2301
+ /** The provider's own snapshot; a later createSandbox names its `image`. */
2302
+ snapshot(opts?: InvokeOpts): Promise<SandboxSnapshot>;
2303
+ deleteSnapshot(id: string, opts?: InvokeOpts): Promise<SandboxSnapshot>;
2304
+ }
2305
+ /** A sandbox createSandbox made, or found again on a replay: its handle, and the sandbox as the door answered it. */
2306
+ interface CreatedSandbox {
2307
+ sandbox: Sandbox;
2308
+ view: SandboxView;
2309
+ }
2310
+ /** A provider-neutral pool of sandboxes, each addressed by id. */
2300
2311
  interface SandboxPool {
2301
2312
  readonly resource: CRN;
2302
- /** Use the current authenticated Agent/Session workspace without creating it explicitly. */
2303
- workspace(): SandboxWorkspace;
2304
- /** Capture an immutable image from a sandbox owned by this pool. */
2305
- createImage(sandbox: Sandbox, options?: CreateSandboxImageOptions, opts?: InvokeOpts): Promise<SandboxImage>;
2306
- /** Resolve an Agent-owned prepared image by its immutable environment digest. */
2307
- resolveImage(cacheKey: string, opts?: InvokeOpts): Promise<SandboxImage | null>;
2308
- /** Address a pool-owned image recorded earlier, e.g. in a Fact. No invocation. The handle does not know the image's
2309
- * cache key (`cacheKey` is null) and its delete() removes a setup-cache image too, so address only images the Agent recorded. */
2310
- image(id: string): SandboxImage;
2311
- /** Register a logical Agent/Session sandbox; provider compute is allocated by its first work operation. The pool refuses
2312
- * an `image` while the Session's sandbox is live: delete that sandbox first to recreate it from an image. */
2313
- createSandbox(agent: CRN, session: string, options?: CreateSandboxOptions, opts?: InvokeOpts): Promise<Sandbox>;
2313
+ /** Create a sandbox on the pool; without an `id`, the door names it from the invocation's idempotency key. */
2314
+ createSandbox(request?: SandboxPoolCreateRequest, opts?: InvokeOpts): Promise<CreatedSandbox>;
2315
+ /** Address a sandbox of the pool by its id, such as one the Session keeps. No invocation. */
2316
+ sandbox(id: string): Sandbox;
2314
2317
  }
2318
+ /** The code a sandbox operation fails with when its pool's provider cannot provide a sandbox now (see `sandboxProviderUnavailable`). */
2319
+ declare const SANDBOX_PROVIDER_UNAVAILABLE = "ProviderUnavailable";
2320
+ /**
2321
+ * Why a provider cannot provide a sandbox now: out of capacity, rate limiting the account, the account's quota spent, the
2322
+ * pool's region unavailable, or an outage (any other provider failure that persisted).
2323
+ */
2324
+ declare const SANDBOX_PROVIDER_FAILURE_CLASSES: readonly ["capacity", "rate_limited", "quota", "region", "outage"];
2325
+ type SandboxProviderFailureClass = typeof SANDBOX_PROVIDER_FAILURE_CLASSES[number];
2326
+ /**
2327
+ * A pool's provider could not provide a sandbox (the door's `ProviderUnavailable`). `retryAfterMs` is when the same provider
2328
+ * is worth asking again. A caller that routes between pools fails over on it.
2329
+ */
2330
+ interface SandboxProviderUnavailable {
2331
+ code: typeof SANDBOX_PROVIDER_UNAVAILABLE;
2332
+ reason: SandboxProviderFailureClass;
2333
+ retryAfterMs: number;
2334
+ message: string;
2335
+ }
2336
+ /**
2337
+ * ProviderUnavailable from whatever carries it, or null for any other failure: the door's refusal (`{ code, message, reason,
2338
+ * retryAfterMs }`), a failed Handle's error (`{ code, message, reason, retryAfterMs, cause }`), or the Error an invocation
2339
+ * rejects with, which keeps `code`, `retryAfterMs` and `cause` (`cause.code` is the reason) across every boundary.
2340
+ */
2341
+ declare function sandboxProviderUnavailable(value: unknown): SandboxProviderUnavailable | null;
2315
2342
 
2316
2343
  /**
2317
2344
  * Model evaluation: one shared state judged against a map of typed questions,
@@ -3320,7 +3347,7 @@ interface InvokeOpts {
3320
3347
  * called before it is awaited or it is raced with a durable wait, spawn, approval or any other Handle.
3321
3348
  *
3322
3349
  * A transport hint, not part of the operation: it never changes the operation hash, the Handle id, the journal or the
3323
- * result, and a platform without the sandbox fast path ignores it. Any other value is a TypeError.
3350
+ * result, and a platform that does not take it ignores it. Any other value is a TypeError.
3324
3351
  */
3325
3352
  wait?: "inline" | "async";
3326
3353
  }
@@ -3475,10 +3502,10 @@ declare function race<T>(handles: Handle<T>[], opts?: {
3475
3502
 
3476
3503
  /**
3477
3504
  * The find, read and run Tools over one bound skills Resource, named from its binding (`.` and `-` become `_`).
3478
- * find and read are the library's catalog operations; run copies the skill's folder into the sandbox workspace once per
3505
+ * find and read are the library's catalog operations; run copies the skill's folder into a sandbox of the bound pool once per
3479
3506
  * bundle and runs one command there.
3480
3507
  */
3481
- declare function skills(binding?: string, sandbox?: string): Record<string, Tool>;
3508
+ declare function skills(binding?: string, pool?: string): Record<string, Tool>;
3482
3509
 
3483
3510
  declare function validateTool(tool: Tool, path?: string): Tool;
3484
3511
  declare function validateView<V extends ViewDef<any, any>>(view: V, path?: string): V;
@@ -5364,6 +5391,58 @@ declare function credentialProviderSetupMetadata(value: unknown, slots: string[]
5364
5391
  /** Defines and validates a Credential Provider package. */
5365
5392
  declare function credentialProvider<C>(definition: CredentialProviderDefinition<C>): CredentialProviderPackage<C>;
5366
5393
 
5394
+ interface ContainerImageReference {
5395
+ registry: string;
5396
+ repository: string;
5397
+ tag: string | null;
5398
+ digest: string | null;
5399
+ reference: string;
5400
+ }
5401
+ /** Immutable OCI identity before any provider-specific preparation. */
5402
+ interface ContainerImageSource {
5403
+ reference: string;
5404
+ digest: `sha256:${string}`;
5405
+ mediaType: string;
5406
+ bytes: number;
5407
+ platform: {
5408
+ os: string;
5409
+ architecture: string;
5410
+ variant?: string;
5411
+ };
5412
+ }
5413
+ /** Digest-pinned image selected for one Linux execution environment. Manifest
5414
+ * metadata is resolved by the runtime pull and recorded in its receipt. */
5415
+ interface ContainerImageSelection {
5416
+ reference: string;
5417
+ platform: {
5418
+ os: string;
5419
+ architecture: string;
5420
+ variant?: string;
5421
+ };
5422
+ }
5423
+ interface ContainerRegistryResponse {
5424
+ status: number;
5425
+ headers: Record<string, string>;
5426
+ body: Uint8Array;
5427
+ }
5428
+ type ContainerRegistryRequest = (request: {
5429
+ url: string;
5430
+ method: "GET";
5431
+ headers: Record<string, string>;
5432
+ maximumBytes: number;
5433
+ }) => Promise<ContainerRegistryResponse>;
5434
+ /** Canonical Docker/OCI distribution reference. Tags remain mutable until the
5435
+ * owning registry resolver pins them; digests are preserved exactly. */
5436
+ declare function containerImageReference(value: string): ContainerImageReference;
5437
+ declare function immutableContainerImageReference(value: string): ContainerImageReference & {
5438
+ digest: `sha256:${string}`;
5439
+ };
5440
+ declare function containerImageSource(value: unknown): ContainerImageSource;
5441
+ declare function containerImageSelection(value: unknown): ContainerImageSelection;
5442
+ /** Resolve a mutable tag or multi-platform index exactly once to one immutable
5443
+ * manifest. The caller owns registry authentication and transport Policy. */
5444
+ declare function resolveContainerImageSource(reference: string, platform: ContainerImageSource["platform"], request: ContainerRegistryRequest, authorization?: string): Promise<ContainerImageSource>;
5445
+
5367
5446
  declare const MCP_PROTOCOL_VERSION = "2025-06-18";
5368
5447
  interface McpClientState {
5369
5448
  protocolVersion: string;
@@ -5642,5 +5721,5 @@ declare function parseLedgerAddress(value: unknown): LedgerAddressParts | null;
5642
5721
  /** Formats ledger address parts; throws when a part breaks its id rule. */
5643
5722
  declare function formatLedgerAddress(parts: LedgerAddressParts): LedgerAddress;
5644
5723
 
5645
- export { AGENT_UI_DEFAULTS, AfterYield, ApiError, CHAT_FORMAT_CAPABILITY, CONSTAL_API_CAPABILITY, CONSTAL_API_GET_KINDS, CONSTAL_API_MODEL_TOOL_DESCRIPTIONS, CONSTAL_API_OPERATIONS, CONSTAL_API_OPERATION_SCHEMAS, CONSTAL_API_QUERY_KINDS, CONSTAL_API_VERSION, CommitConflict, CommitGateRejected, CredentialRevoked, CredentialUnavailable, DATA_SHARE_FEE_BPS, DirectNetworkDenied, EVALUATION_LIMITS, EffectCeilingExceeded, EmptyJoin, GENERAL_QUALITY_JUDGE, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, MODEL_EVALUATION_CAPABILITY, McpClient, NondeterministicReplay, NotAppendOnly, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SANDBOX_EGRESS_LIMITS, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TRAINING_RECIPE_DEFAULTS, TerminalIntegrationFailure, ToolUnavailable, UI_ASSET_CONTENT_TYPES, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentLimit, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, agentUiBundleManifest, agentUiDeclaration, all, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, chatFormat, chatFormatMetadata, chatFormatPin, chatParseInput, chatParsed, chatRenderInput, chatRenderRequest, chatRendering, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, containerImageReference, containerImageSelection, containerImageSource, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, dataShareEarningMicroUsd, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, evaluationArguments, evaluationProtocolRequest, evaluationProtocolResult, formatLedgerAddress, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, judgeAgent, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelMessages, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeCredentialDestinations, normalizeModelGatewayConfig, normalizeSandboxConnectionKeys, normalizeSandboxEgressPolicy, normalizeSandboxLabels, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, noulDecision, opTool, opTools, parseLedgerAddress, parseResourceName, policy, policyName, race, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, runLabels, sandboxControls, sandboxEgressDecision, sandboxEgressHostMatches, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scoreLevel, scorerDraftHash, scorerName, select, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupPanelProviderIsCrn, setupScreen, setupScreenView, setupSubmission, sha256Hex, shareContributionRequest, shareContributionReview, shareEvaluation, sharePrices, shareRequest, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingCorrection, trainingProvider, trainingProviderMetadata, trainingRecipe, uiAssetContentType, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
5646
- export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeployPolicy, AgentGovernanceMeter, AgentSetupMetadata, AgentSetupRequirement, AgentSetupWorkflow, AgentUiDeclaration, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, AwaitPresentation, BatchSpec, BindingCRN, BindingOwnerContext, BindingOwnerScope, BoundOperation, BoundResourceCapabilities, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelContext, ChannelDeliveryError, ChannelDeliveryEvent, ChannelDeliveryOutcome, ChannelDeliveryReport, ChannelFailure, ChannelFetchRequest, ChannelFetchResult, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelObject, ChannelPresence, ChannelPresenceReceipt, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, ChatFormatDefinition, ChatFormatMetadata, ChatFormatPin, ChatMessage, ChatParseRequest, ChatParsed, ChatRenderRequest, ChatRendering, ChatSpan, ChatTool, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, ChoiceAnswer, ChoiceQuestion, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionUsageReport, ConstalApiApplyRequest, ConstalApiChangePlan, ConstalApiChangePlanRef, ConstalApiChangePlanRequest, ConstalApiChangeReceipt, ConstalApiOperationReceipt, ContainerImageReference, ContainerImageSelection, ContainerImageSource, ContainerRegistryRequest, ContainerRegistryResponse, ControlEvent, Cost, CreateSandboxImageOptions, CreateSandboxOptions, CredentialCRN, CredentialDestination, CredentialDestroyResult, CredentialEvidence, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialPresentation, CredentialProviderCRN, CredentialProviderConfigEgressBinding, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, CredentialSetupState, CredentialUninstallRequest, CredentialUninstallResult, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DataSharingScope, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, EvalSuiteCase, EvalSuiteCasePage, EvalSuiteCaseScore, EvalSuiteCaseState, EvalSuiteScoreState, EvaluationAnswer, EvaluationAnswerFor, EvaluationAnswers, EvaluationEntry, EvaluationInvocationArgs, EvaluationInvocationResult, EvaluationProtocol, EvaluationQuestion, EvaluationQuestions, EvaluationRecord, EvaluationSpec, EventBase, Fact, FactRef, FileEntry, FixedMemoryStoreRef, FixedModelGatewayRef, FoldFn, GateEvidence, GateResult, GateVerdict, GatewayCancelRequest, GatewayConfigEgressBinding, GatewayContext, GatewayCredentialSlotSetup, GatewayDefinition, GatewayDiscoverySetup, GatewayModelOffer, GatewayOperation, GatewayPackage, GatewayPackageMetadata, GatewayRecoveryRequest, GatewayRecoveryResult, GatewayRequest, GovernanceContractRef, Handle, HandleOutcome, Hash, HistoryPage, HistoryView, HmacVerification, IgnoredChannelEvent, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationAttachment, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationLifecycle, IntegrationReleaseContext, IntegrationSecret, IntegrationState, InvocationCredentialUse, InvocationHandle, InvokableKind, InvokeOpts, JoinOutcome, JsonScalar, JsonValue, JudgeRubric, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerAddressParts, LedgerEvent, ListSchedulesOptions, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpClientOptions, McpClientState, McpMessageTransport, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCacheHint, ModelCompletion, ModelContentPart, ModelCredentialHeader, ModelFilePart, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelHistoryMessage, ModelHistoryToolCall, ModelInvocationArgs, ModelInvocationResult, ModelProtocolRequestOptions, ModelTechnicalCapabilities, ModelTextPart, ModelTool, NormalizedModelGatewayConfig, NoulAnswer, NoulQuestion, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, Provenance, RawModelProtocol, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceDependencyRef, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourcePattern, ResourceSelector, RollbackReport, RunIdentityView, RunInfo, RunReport, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandCollectionError, SandboxCommandExecution, SandboxCommandResult, SandboxEgressPolicy, SandboxEgressRule, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxLabels, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, SandboxProcess, SandboxProcessCredentials, SandboxProcessIoOperation, SandboxProcessOperation, SandboxProcessReadInput, SandboxProcessReadResult, SandboxProcessStatus, SandboxProcessWriteResult, SandboxReadFileOptions, SandboxReadFileResult, SandboxWorkspace, SandboxWorkspaceInspection, SandboxWorkspacePreparation, SandboxWorkspaceReceipt, SandboxWriteFileResult, Schedule, ScheduleCancellation, ScheduleDuration, ScheduleMissed, ScheduleOccurrence, ScheduleOccurrencePage, ScheduleOptions, SchedulePage, ScheduleState, ScheduleTarget, ScheduleTiming, ScheduleTrigger, ScheduleWhen, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreAnswer, ScoreQuestion, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerDraft, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Share, ShareAction, ShareContribution, ShareContributionImport, ShareContributionRequest, ShareContributionReview, ShareContributionReviewRequest, ShareContributionStatus, ShareEvaluation, ShareEvaluationPin, ShareEvaluationRequest, ShareEvaluationVerdict, ShareEvaluationView, ShareHistory, SharePrice, ShareRequest, ShareReviewDecision, SortField, SpawnAttenuation, SpawnBudget, SpawnHandle, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, StepJournal, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingCorrection, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingPreparation, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingStep, TrainingUsageUnits, TurnDraft, TurnGate, TurnHistoryMessage, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };
5724
+ export { AGENT_UI_DEFAULTS, AfterYield, ApiError, CHAT_FORMAT_CAPABILITY, CONSTAL_API_CAPABILITY, CONSTAL_API_GET_KINDS, CONSTAL_API_MODEL_TOOL_DESCRIPTIONS, CONSTAL_API_OPERATIONS, CONSTAL_API_OPERATION_SCHEMAS, CONSTAL_API_QUERY_KINDS, CONSTAL_API_VERSION, CommitConflict, CommitGateRejected, CredentialRevoked, CredentialUnavailable, DATA_SHARE_FEE_BPS, DirectNetworkDenied, EVALUATION_LIMITS, EffectCeilingExceeded, EmptyJoin, GENERAL_QUALITY_JUDGE, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, MODEL_EVALUATION_CAPABILITY, McpClient, NondeterministicReplay, NotAppendOnly, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SANDBOX_DOOR_MAX_WAIT_MS, SANDBOX_EGRESS_LIMITS, SANDBOX_POOL_OPERATIONS, SANDBOX_PROVIDER_FAILURE_CLASSES, SANDBOX_PROVIDER_UNAVAILABLE, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TRAINING_RECIPE_DEFAULTS, TerminalIntegrationFailure, ToolUnavailable, UI_ASSET_CONTENT_TYPES, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentLimit, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, agentUiBundleManifest, agentUiDeclaration, all, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, chatFormat, chatFormatMetadata, chatFormatPin, chatParseInput, chatParsed, chatRenderInput, chatRenderRequest, chatRendering, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, containerImageReference, containerImageSelection, containerImageSource, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, dataShareEarningMicroUsd, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, evaluationArguments, evaluationProtocolRequest, evaluationProtocolResult, formatLedgerAddress, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, judgeAgent, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelMessages, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeCredentialDestinations, normalizeModelGatewayConfig, normalizeSandboxConnectionKeys, normalizeSandboxEgressPolicy, normalizeSandboxLabels, normalizeSandboxNetworkPolicy, noulDecision, opTool, opTools, parseLedgerAddress, parseResourceName, policy, policyName, race, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, runLabels, sandboxControls, sandboxEgressDecision, sandboxEgressHostMatches, sandboxLimit, sandboxProviderUnavailable, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scoreLevel, scorerDraftHash, scorerName, select, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupPanelProviderIsCrn, setupScreen, setupScreenView, setupSubmission, sha256Hex, shareContributionRequest, shareContributionReview, shareEvaluation, sharePrices, shareRequest, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingCorrection, trainingProvider, trainingProviderMetadata, trainingRecipe, uiAssetContentType, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
5725
+ export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeployPolicy, AgentGovernanceMeter, AgentSetupMetadata, AgentSetupRequirement, AgentSetupWorkflow, AgentUiDeclaration, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, AwaitPresentation, BatchSpec, BindingCRN, BindingOwnerContext, BindingOwnerScope, BoundOperation, BoundResourceCapabilities, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelContext, ChannelDeliveryError, ChannelDeliveryEvent, ChannelDeliveryOutcome, ChannelDeliveryReport, ChannelFailure, ChannelFetchRequest, ChannelFetchResult, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelObject, ChannelPresence, ChannelPresenceReceipt, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, ChatFormatDefinition, ChatFormatMetadata, ChatFormatPin, ChatMessage, ChatParseRequest, ChatParsed, ChatRenderRequest, ChatRendering, ChatSpan, ChatTool, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, ChoiceAnswer, ChoiceQuestion, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionUsageReport, ConstalApiApplyRequest, ConstalApiChangePlan, ConstalApiChangePlanRef, ConstalApiChangePlanRequest, ConstalApiChangeReceipt, ConstalApiOperationReceipt, ContainerImageReference, ContainerImageSelection, ContainerImageSource, ContainerRegistryRequest, ContainerRegistryResponse, ControlEvent, Cost, CreatedSandbox, CredentialCRN, CredentialDestination, CredentialDestroyResult, CredentialEvidence, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialPresentation, CredentialProviderCRN, CredentialProviderConfigEgressBinding, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, CredentialSetupState, CredentialUninstallRequest, CredentialUninstallResult, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DataSharingScope, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, EvalSuiteCase, EvalSuiteCasePage, EvalSuiteCaseScore, EvalSuiteCaseState, EvalSuiteScoreState, EvaluationAnswer, EvaluationAnswerFor, EvaluationAnswers, EvaluationEntry, EvaluationInvocationArgs, EvaluationInvocationResult, EvaluationProtocol, EvaluationQuestion, EvaluationQuestions, EvaluationRecord, EvaluationSpec, EventBase, Fact, FactRef, FileEntry, FixedMemoryStoreRef, FixedModelGatewayRef, FoldFn, GateEvidence, GateResult, GateVerdict, GatewayCancelRequest, GatewayConfigEgressBinding, GatewayContext, GatewayCredentialSlotSetup, GatewayDefinition, GatewayDiscoverySetup, GatewayModelOffer, GatewayOperation, GatewayPackage, GatewayPackageMetadata, GatewayRecoveryRequest, GatewayRecoveryResult, GatewayRequest, GovernanceContractRef, Handle, HandleOutcome, Hash, HistoryPage, HistoryView, HmacVerification, IgnoredChannelEvent, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationAttachment, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationLifecycle, IntegrationReleaseContext, IntegrationSecret, IntegrationState, InvocationCredentialUse, InvocationHandle, InvokableKind, InvokeOpts, JoinOutcome, JsonScalar, JsonValue, JudgeRubric, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerAddressParts, LedgerEvent, ListSchedulesOptions, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpClientOptions, McpClientState, McpMessageTransport, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCacheHint, ModelCompletion, ModelContentPart, ModelCredentialHeader, ModelFilePart, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelHistoryMessage, ModelHistoryToolCall, ModelInvocationArgs, ModelInvocationResult, ModelProtocolRequestOptions, ModelTechnicalCapabilities, ModelTextPart, ModelTool, NormalizedModelGatewayConfig, NoulAnswer, NoulQuestion, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, Provenance, RawModelProtocol, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceDependencyRef, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourcePattern, ResourceSelector, RollbackReport, RunIdentityView, RunInfo, RunReport, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCapabilities, SandboxCreateRequest, SandboxEgress, SandboxEgressCapabilities, SandboxEgressDestination, SandboxEgressPolicy, SandboxEgressRule, SandboxExecCapabilities, SandboxExecRequest, SandboxExecution, SandboxExecutionState, SandboxFile, SandboxFileBody, SandboxFileCapabilities, SandboxFileContent, SandboxFileScope, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxLabels, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPersistence, SandboxPool, SandboxPoolCreateRequest, SandboxPoolOperation, SandboxPortCapabilities, SandboxProviderFailureClass, SandboxProviderUnavailable, SandboxSecretsRoute, SandboxSnapshot, SandboxSnapshotCapabilities, SandboxState, SandboxUpdateRequest, SandboxView, SandboxWaitOptions, Schedule, ScheduleCancellation, ScheduleDuration, ScheduleMissed, ScheduleOccurrence, ScheduleOccurrencePage, ScheduleOptions, SchedulePage, ScheduleState, ScheduleTarget, ScheduleTiming, ScheduleTrigger, ScheduleWhen, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreAnswer, ScoreQuestion, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerDraft, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Share, ShareAction, ShareContribution, ShareContributionImport, ShareContributionRequest, ShareContributionReview, ShareContributionReviewRequest, ShareContributionStatus, ShareEvaluation, ShareEvaluationPin, ShareEvaluationRequest, ShareEvaluationVerdict, ShareEvaluationView, ShareHistory, SharePrice, ShareRequest, ShareReviewDecision, SortField, SpawnAttenuation, SpawnBudget, SpawnHandle, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, StepJournal, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingCorrection, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingPreparation, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingStep, TrainingUsageUnits, TurnDraft, TurnGate, TurnHistoryMessage, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };