@constal/sdk 6.13.0 → 6.15.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constal/sdk",
3
- "version": "6.13.0",
3
+ "version": "6.15.0",
4
4
  "description": "Public TypeScript SDK for authoring Constal agents, integrations, policies, channels, and credential providers",
5
5
  "keywords": [
6
6
  "constal",
package/publish/api.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@constal/sdk",
3
- "version": "6.13.0",
3
+ "version": "6.15.0",
4
4
  "exports": [
5
5
  "AGENT_UI_DEFAULTS",
6
6
  "Action",
@@ -384,6 +384,7 @@
384
384
  "SandboxOrphanEvent",
385
385
  "SandboxOrphanWithdrawnEvent",
386
386
  "SandboxPersistence",
387
+ "SandboxPlacement",
387
388
  "SandboxPool",
388
389
  "SandboxPoolCreateRequest",
389
390
  "SandboxPoolOperation",
@@ -2010,16 +2010,17 @@ type SandboxSize = keyof typeof SANDBOX_SIZES;
2010
2010
  /**
2011
2011
  * The events of a deployment's sandbox service:
2012
2012
  *
2013
- * - `sandbox.lifecycle` and `sandbox.usage`, written by the sandbox's coordinator in the transaction that changed its view
2014
- * or metered its time or its egress, numbered per sandbox (`seq`) across both types. The coordinator keeps them for the sandbox's
2015
- * lifetime, its history (the door's history operation), and its alarm delivers each to its namespace's sandbox index
2016
- * after the call that wrote it answered, again until the index takes it, so a failed delivery loses none. Delivery is at
2017
- * least once and in no order: the index keeps a sandbox's newest view by `seq`, and counts a usage item once by its `id`;
2013
+ * - `sandbox.lifecycle`, `sandbox.usage` and `sandbox.snapshot`, written by the sandbox's coordinator in the transaction that
2014
+ * changed its view, metered its time or its egress, or changed one of its snapshots, numbered per sandbox (`seq`) across
2015
+ * the three types. The coordinator keeps them for good, its history (the door's history operation), and its alarm delivers
2016
+ * each to its namespace's sandbox index after the call that wrote it answered, again until the index takes it, so a failed
2017
+ * delivery loses none. Delivery is at least once and in no order: the index keeps a sandbox's newest view, and a
2018
+ * snapshot's newest, by `seq`, and counts a usage item once by its `id`;
2018
2019
  * - `sandbox.orphan` and `sandbox.orphan.withdrawn`, written by the watcher of a provider account (one per tenant,
2019
2020
  * namespace and provider account) and delivered so to the same index, which keeps an orphan by its `provider`,
2020
2021
  * `account` and `instance` as the one of their events with the latest `at` says, a withdrawal winning a tie.
2021
2022
  *
2022
- * The index answers the door's list and usage operations (packages/sdk/src/sandbox-door.ts).
2023
+ * The index answers the door's list, usage and listSnapshots operations (packages/sdk/src/sandbox-door.ts).
2023
2024
  */
2024
2025
  /**
2025
2026
  * What a sandbox's coordinator metered, as it settles it with the platform; `id` makes its debit once. Its `usage` carries
@@ -2066,16 +2067,28 @@ interface SandboxUsageEvent extends SandboxCoordinatorEvent {
2066
2067
  type: "sandbox.usage";
2067
2068
  item: SandboxUsageItem;
2068
2069
  }
2070
+ /**
2071
+ * A change to one of the sandbox's snapshots (its take, a state its provider moved it to, its expiry moved by a restore, its
2072
+ * delete asked), the snapshot once changed; `gone` once its provider confirmed its delete, or at once where its provider
2073
+ * deletes none, after which the index lists it no more.
2074
+ */
2075
+ interface SandboxSnapshotEvent extends SandboxCoordinatorEvent {
2076
+ type: "sandbox.snapshot";
2077
+ snapshot: SandboxSnapshot;
2078
+ gone: boolean;
2079
+ }
2069
2080
  /**
2070
2081
  * A provider instance tagged with the tenant and namespace that none of their sandboxes on that provider account holds (its
2071
2082
  * tags name no sandbox, or the sandbox they name answers it is none of its), which the account's watcher found listing it,
2072
- * settled (neither starting nor stopping), a relist apart, and reports once. Nothing deletes it: the account's owner decides
2073
- * what it is. It names the pool account and not a pool because the instance carries only its tenant's, namespace's,
2074
- * account's and claimed sandbox's tags, and so no pool can be known for it.
2083
+ * settled (neither starting nor stopping), a relist apart, and reports once. The tags are Constal's claim on it, so the
2084
+ * watcher then deletes it at its provider where nothing owns it: the sandbox its tags name answers it is none of its nor its
2085
+ * create's, or no live sandbox of the namespace holds its provider id; its report is withdrawn once the provider has it no
2086
+ * more. It names the pool account and not a pool because the instance carries only its tenant's, namespace's, account's
2087
+ * and claimed sandbox's tags, and so no pool can be known for it.
2075
2088
  *
2076
- * One watcher lists one pool account of a namespace, and knows only that account's sandboxes. So where two of a
2077
- * namespace's accounts reach one account at the provider (two Credentials of one provider key or team, or a Credential and
2078
- * the deployment's own account), each watcher lists the other's sandboxes too, and reports them as its orphans.
2089
+ * One watcher lists one pool account of a namespace, by that account's tag. So where two of a namespace's accounts reach
2090
+ * one account at the provider (two Credentials of one provider key or team, or a Credential and the deployment's own
2091
+ * account), each lists only the instances its own account's creates tagged, and takes none of the other's for an orphan.
2079
2092
  */
2080
2093
  interface SandboxOrphanEvent {
2081
2094
  type: "sandbox.orphan";
@@ -2094,9 +2107,9 @@ interface SandboxOrphanEvent {
2094
2107
  /**
2095
2108
  * An orphan reported before (SandboxOrphanEvent) that is an orphan no more. Either the sandbox its tags name then answered
2096
2109
  * the account's watcher that it is its own: the report was of an instance that sandbox's create had made and not yet
2097
- * answered. Or the provider has it no more: it is gone, its account's owner having deleted it, say. Or the account's key
2098
- * was removed, and its watcher watches it no more. Each report is withdrawn at most once, by the watcher that made it. The
2099
- * index keeps the withdrawal, so a report no later than it, delivered after it, does not bring the orphan back.
2110
+ * answered. Or the provider has it no more: it is gone, its watcher or its account's owner having deleted it. Or the
2111
+ * account's key was removed, and its watcher watches it no more. Each report is withdrawn at most once, by the watcher that
2112
+ * made it. The index keeps the withdrawal, so a report no later than it, delivered after it, does not bring the orphan back.
2100
2113
  */
2101
2114
  interface SandboxOrphanWithdrawnEvent extends Omit<SandboxOrphanEvent, "type" | "at"> {
2102
2115
  type: "sandbox.orphan.withdrawn";
@@ -2104,7 +2117,7 @@ interface SandboxOrphanWithdrawnEvent extends Omit<SandboxOrphanEvent, "type" |
2104
2117
  at: number;
2105
2118
  }
2106
2119
  /** A sandbox's own events, as its coordinator keeps them: its history. */
2107
- type SandboxHistoryEvent = SandboxLifecycleEvent | SandboxUsageEvent;
2120
+ type SandboxHistoryEvent = SandboxLifecycleEvent | SandboxUsageEvent | SandboxSnapshotEvent;
2108
2121
  /** The events a namespace's sandbox index takes: its coordinators' and its account watchers'. */
2109
2122
  type SandboxIndexedEvent = SandboxHistoryEvent | SandboxOrphanEvent | SandboxOrphanWithdrawnEvent;
2110
2123
 
@@ -2195,10 +2208,33 @@ type SandboxPortCapabilities = {
2195
2208
  } | {
2196
2209
  via: "door";
2197
2210
  };
2198
- /** The provider's own snapshots: whether one keeps memory (a create from it resumes its processes), and what taking one does to the sandbox. */
2211
+ /**
2212
+ * How the provider ends a snapshot on its own: it keeps it until it is deleted (`kept`); it deletes it once it goes `idleMs`
2213
+ * without a restore, each restore starting that time again (`expires`; `idleMs` null where the provider states it per
2214
+ * snapshot, as its read of each answers when it ends); or it deactivates it once it goes `idleMs` unused, holding it still
2215
+ * but booting it only once its activate renews it (`deactivates`).
2216
+ */
2217
+ type SandboxSnapshotRetention = {
2218
+ kind: "kept";
2219
+ } | {
2220
+ kind: "expires";
2221
+ idleMs: number | null;
2222
+ } | {
2223
+ kind: "deactivates";
2224
+ idleMs: number;
2225
+ };
2226
+ /**
2227
+ * The provider's own snapshots, as its model has them, which the door follows and imposes nothing on: what one keeps beside
2228
+ * the disk (its memory and processes, so a create from it resumes them: `always`, `never`, or as its take asks,
2229
+ * `optional`), what taking one does to the sandbox (`effect`), whether a create from one boots at a size other than its own
2230
+ * (`resize`), whether the provider deletes one (`delete`), and how it ends one on its own (`retention`).
2231
+ */
2199
2232
  interface SandboxSnapshotCapabilities {
2200
- memory: boolean;
2233
+ memory: "always" | "never" | "optional";
2201
2234
  effect: "none" | "pause" | "stop";
2235
+ resize: boolean;
2236
+ delete: boolean;
2237
+ retention: SandboxSnapshotRetention;
2202
2238
  }
2203
2239
  /**
2204
2240
  * What survives the door's stop on this provider, which is the provider's own: memory, processes and disk (its stop is a
@@ -2268,20 +2304,43 @@ interface SandboxCapabilities {
2268
2304
  /** The provider's own labels of a sandbox (SandboxLabelCapabilities); null where it keeps none. */
2269
2305
  labels: SandboxLabelCapabilities | null;
2270
2306
  }
2271
- /** POST /sandboxes. */
2272
- interface SandboxCreateRequest {
2273
- /** The sandbox's id (SANDBOX_DOOR_ID), one the caller chose; omitted: one the door mints, kept under the create's key. */
2274
- id?: string;
2307
+ /**
2308
+ * One pool of a create's placement order (SandboxCreateRequest.pools), and what the create asks of that pool alone: what
2309
+ * its provider boots, as a provider's own snapshot of an image differs from one pool to the next.
2310
+ */
2311
+ interface SandboxPlacement {
2275
2312
  /**
2276
- * The sandbox-pool Resource it runs on (its provider, account, region, and default image and size), by its CRN; the
2277
- * sandbox keeps the name sandboxDoorPoolName gives it.
2313
+ * The sandbox-pool Resource (its provider, account, region, and default image and size), by its CRN; a sandbox it runs
2314
+ * on keeps the name sandboxDoorPoolName gives it.
2278
2315
  */
2279
2316
  pool: CRN;
2280
2317
  /**
2281
- * What the provider boots: an image reference it can boot, or a snapshot's `image`; omitted: the pool's, which a pool one of
2282
- * whose providers has no default image refuses (Invalid, `image`).
2318
+ * What the provider boots there: an image reference it can boot; omitted, with no `snapshot`: the pool's, which a pool one
2319
+ * of whose providers has no default image refuses (Invalid, `image`).
2283
2320
  */
2284
2321
  image?: string;
2322
+ /**
2323
+ * A snapshot the door boots there, by its own id (SandboxSnapshot.id), in place of an image: on the pool's provider that
2324
+ * holds it, under its own pool account alone, and only `ready`, or `inactive`, which the door has its provider renew as the
2325
+ * create restores it. Booting it is authorized as a read of it is (`sandbox:snapshot` on the pool it was taken in). One
2326
+ * `pending` is `Conflict`; one `failed` or `expired`, or one on a pool with no such provider or account, is `Invalid`
2327
+ * naming the field.
2328
+ */
2329
+ snapshot?: string;
2330
+ }
2331
+ /**
2332
+ * POST /sandboxes: the sandbox, and the pools it may run on. Its coordinator creates it on its first pool, and walks on to
2333
+ * the next, a fresh provider create there under that pool's configuration and account, where the pool refused it as a
2334
+ * pool: its providers could not provide (`ProviderUnavailable`) or failed it (`ProviderError`, a sandbox that failed
2335
+ * without ever running among those), lack what it asks (`Unsupported`), or no key of the pool's account is bound
2336
+ * (`Invalid`, `pool.account`). It runs for good on the first pool that runs it. A refusal of another kind ends the walk with
2337
+ * it; where every pool refused, the create answers the last `ProviderUnavailable` of the walk, if any, else the last refusal.
2338
+ */
2339
+ interface SandboxCreateRequest {
2340
+ /** The sandbox's id (SANDBOX_DOOR_ID), one the caller chose; omitted: one the door mints, kept under the create's key. */
2341
+ id?: string;
2342
+ /** The pools it may run on, in the order it tries them; one pool is a list of one. */
2343
+ pools: SandboxPlacement[];
2285
2344
  /** 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. */
2286
2345
  size?: SandboxSize | SandboxResources;
2287
2346
  /** The command the image starts with, in place of its own (`create.command`). */
@@ -2331,6 +2390,7 @@ type SandboxProviderAllocation = {
2331
2390
  interface SandboxView {
2332
2391
  id: string;
2333
2392
  namespace: string;
2393
+ /** The pool it runs in (sandboxDoorPoolName); while its create's walk goes on, the pool the walk last admitted. */
2334
2394
  pool: string;
2335
2395
  state: SandboxState;
2336
2396
  /**
@@ -2394,12 +2454,49 @@ interface SandboxFile {
2394
2454
  path: string;
2395
2455
  bytes: number | null;
2396
2456
  }
2397
- /** A snapshot the provider took: its id, the image a create boots it from, and whether it kept memory. */
2457
+ /**
2458
+ * A snapshot's state, its provider's as its coordinator last saw it: taken but not yet made by its provider (`pending`),
2459
+ * restorable (`ready`), held by its provider but booted only once renewed (`inactive`), not made (`failed`), or ended by its
2460
+ * provider on its own (`expired`). A delete is no state: it is the snapshot's `deletingAt`, and the snapshot is gone once its
2461
+ * provider confirms.
2462
+ */
2463
+ declare const SANDBOX_SNAPSHOT_STATES: readonly ["pending", "ready", "inactive", "failed", "expired"];
2464
+ type SandboxSnapshotState = typeof SANDBOX_SNAPSHOT_STATES[number];
2465
+ /** POST /sandboxes/{id}/snapshots: its labels, and whether it keeps memory (`snapshots.memory`); omitted, as its provider takes one. */
2466
+ interface SandboxSnapshotRequest {
2467
+ labels?: SandboxLabels;
2468
+ memory?: boolean;
2469
+ }
2470
+ /**
2471
+ * A snapshot the provider took of a sandbox, an object of its own that outlives its sandbox, as its sandbox's coordinator,
2472
+ * its store of record, keeps it: its own id, by which the door reaches it; the sandbox it was taken of and the pool it ran in
2473
+ * then, which a call on it is authorized on; its labels, its take's alone; where it is held (its provider, the pool account,
2474
+ * its Credential CRN or null for the deployment's own, and the provider's own id for it); the image a create boots it from;
2475
+ * whether it kept memory, as taken; the size a create from it boots at, as its provider says (a field it does not say null;
2476
+ * null where it says none) and its size at the provider in bytes, where it says; its state (SandboxSnapshotState), and for
2477
+ * `failed` and `expired` its provider's reason; when its provider ends it on its own, where a clock does
2478
+ * (SandboxSnapshotRetention), which a restore may move; when it was taken; and when its delete was asked, null before.
2479
+ */
2398
2480
  interface SandboxSnapshot {
2399
2481
  id: string;
2482
+ namespace: string;
2483
+ sandbox: string;
2484
+ pool: string;
2485
+ labels: SandboxLabels;
2486
+ provider: {
2487
+ name: string;
2488
+ account: string | null;
2489
+ id: string;
2490
+ };
2400
2491
  image: string;
2401
2492
  memory: boolean;
2493
+ resources: SandboxProviderAllocation | null;
2494
+ bytes: number | null;
2495
+ state: SandboxSnapshotState;
2496
+ message: string | null;
2497
+ expiresAt: number | null;
2402
2498
  createdAt: number;
2499
+ deletingAt: number | null;
2403
2500
  }
2404
2501
 
2405
2502
  /**
@@ -2410,8 +2507,11 @@ interface SandboxSnapshot {
2410
2507
  */
2411
2508
  declare const SANDBOX_POOL_OPERATIONS: readonly ["create", "get", "start", "stop", "delete", "update", "exec", "execution", "cancel", "readFile", "writeFile", "deleteFile", "snapshot", "deleteSnapshot"];
2412
2509
  type SandboxPoolOperation = typeof SANDBOX_POOL_OPERATIONS[number];
2413
- /** A create through a pool: the door's create request, whose pool is the pool's own Resource. */
2414
- type SandboxPoolCreateRequest = Omit<SandboxCreateRequest, "pool">;
2510
+ /**
2511
+ * A create through a pool: the door's create request, whose one pool is the pool's own Resource, with what it asks of that
2512
+ * pool (SandboxPlacement) as its own fields.
2513
+ */
2514
+ type SandboxPoolCreateRequest = Omit<SandboxCreateRequest, "pools"> & Omit<SandboxPlacement, "pool">;
2415
2515
  /** A file readFile answered: its path, and its bytes, whole, stored by reference. */
2416
2516
  interface SandboxFileContent {
2417
2517
  path: string;
@@ -2449,9 +2549,8 @@ interface Sandbox {
2449
2549
  readFile(path: string, opts?: InvokeOpts): Promise<SandboxFileContent>;
2450
2550
  writeFile(path: string, body: SandboxFileBody, opts?: InvokeOpts): Promise<SandboxFile>;
2451
2551
  deleteFile(path: string, opts?: InvokeOpts): Promise<SandboxFile>;
2452
- /** The provider's own snapshot; a later createSandbox names its `image`. */
2453
- snapshot(opts?: InvokeOpts): Promise<SandboxSnapshot>;
2454
- deleteSnapshot(id: string, opts?: InvokeOpts): Promise<SandboxSnapshot>;
2552
+ /** The provider's own snapshot, which outlives the sandbox; a later createSandbox boots it by naming it (`snapshot`). */
2553
+ snapshot(request?: SandboxSnapshotRequest, opts?: InvokeOpts): Promise<SandboxSnapshot>;
2455
2554
  }
2456
2555
  /** A sandbox createSandbox made, or found again on a replay: its handle, and the sandbox as the door answered it. */
2457
2556
  interface CreatedSandbox {
@@ -2468,6 +2567,8 @@ interface SandboxPool {
2468
2567
  createSandbox(request?: SandboxPoolCreateRequest, opts?: InvokeOpts): Promise<CreatedSandbox>;
2469
2568
  /** Address a sandbox of the pool by its id, such as one the Session keeps. No invocation. */
2470
2569
  sandbox(id: string): Sandbox;
2570
+ /** Delete a snapshot taken on the pool, by its own id, whether its sandbox is deleted or not. */
2571
+ deleteSnapshot(id: string, opts?: InvokeOpts): Promise<SandboxSnapshot>;
2471
2572
  }
2472
2573
  /** The code a sandbox operation fails with when its pool's provider cannot provide a sandbox now (see `sandboxProviderUnavailable`). */
2473
2574
  declare const SANDBOX_PROVIDER_UNAVAILABLE = "ProviderUnavailable";
@@ -5898,4 +5999,4 @@ declare function parseLedgerAddress(value: unknown): LedgerAddressParts | null;
5898
5999
  declare function formatLedgerAddress(parts: LedgerAddressParts): LedgerAddress;
5899
6000
 
5900
6001
  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, 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 };
5901
- 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, SandboxHistoryEvent, SandboxIndexedEvent, SandboxLabelCapabilities, SandboxLabels, SandboxLifecycleEvent, SandboxNetworkMode, SandboxNetworkPolicy, SandboxOrphanEvent, SandboxOrphanWithdrawnEvent, SandboxPersistence, SandboxPool, SandboxPoolCreateRequest, SandboxPoolOperation, SandboxPortCapabilities, SandboxProviderAllocation, SandboxProviderFailureClass, SandboxProviderUnavailable, SandboxSecretsRoute, SandboxSnapshot, SandboxSnapshotCapabilities, SandboxState, SandboxUpdateRequest, SandboxUsageEvent, SandboxUsageItem, 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 };
6002
+ 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, SandboxHistoryEvent, SandboxIndexedEvent, SandboxLabelCapabilities, SandboxLabels, SandboxLifecycleEvent, SandboxNetworkMode, SandboxNetworkPolicy, SandboxOrphanEvent, SandboxOrphanWithdrawnEvent, SandboxPersistence, SandboxPlacement, SandboxPool, SandboxPoolCreateRequest, SandboxPoolOperation, SandboxPortCapabilities, SandboxProviderAllocation, SandboxProviderFailureClass, SandboxProviderUnavailable, SandboxSecretsRoute, SandboxSnapshot, SandboxSnapshotCapabilities, SandboxState, SandboxUpdateRequest, SandboxUsageEvent, SandboxUsageItem, 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 };