@constal/sdk 3.3.0 → 3.4.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.
@@ -41,11 +41,26 @@ interface IntegrationState {
41
41
  list(prefix: string): Promise<string[]>;
42
42
  invalidate(prefix: string): Promise<void>;
43
43
  }
44
+ /** Non-secret cleanup coordinates retained for the current operation. */
45
+ interface IntegrationAttachment {
46
+ kind: string;
47
+ id: string;
48
+ args: unknown;
49
+ }
50
+ interface IntegrationLifecycle {
51
+ retain(attachment: IntegrationAttachment): Promise<void>;
52
+ /** Request early release; completion of the operation also requests release. */
53
+ release(attachment: Pick<IntegrationAttachment, "kind" | "id">): Promise<void>;
54
+ }
55
+ type IntegrationReleaseContext = Pick<IntegrationContext, "config" | "secret" | "state" | "store" | "audit" | "egress">;
44
56
  /** Capabilities shared by user-authored Connection and Credential Provider code. */
45
57
  interface IntegrationContext {
46
58
  readonly config: unknown;
47
59
  secret(slot: string): Promise<IntegrationSecret>;
48
60
  state: IntegrationState;
61
+ /** Available for packages declaring a release handler. Cleanup uses the
62
+ * existing durable Resource lifecycle, including retry after owner restart. */
63
+ lifecycle?: IntegrationLifecycle;
49
64
  /** Load one content-addressed artifact already admitted to this Resource invocation. */
50
65
  load(ref: Ref, maximumBytes: number): Promise<ArrayBuffer>;
51
66
  store(bytes: ArrayBuffer | string): Promise<Ref>;
@@ -595,37 +610,7 @@ interface ModelGenerationOptions {
595
610
  maxOutputTokens?: number;
596
611
  temperature?: number;
597
612
  effort?: string;
598
- /** Additional fields in the selected provider's request format. */
599
- providerOptions?: Record<string, unknown>;
600
613
  }
601
- declare const MODEL_GENERATION_OPTIONS_SCHEMA: {
602
- readonly type: "object";
603
- readonly additionalProperties: false;
604
- readonly properties: {
605
- readonly maxOutputTokens: {
606
- readonly type: "integer";
607
- readonly minimum: 1;
608
- readonly maximum: 1048576;
609
- };
610
- readonly temperature: {
611
- readonly type: "number";
612
- readonly minimum: 0;
613
- readonly maximum: 2;
614
- };
615
- readonly effort: {
616
- readonly type: "string";
617
- readonly minLength: 1;
618
- };
619
- readonly providerOptions: {
620
- readonly type: "object";
621
- };
622
- };
623
- };
624
- declare const MODEL_GENERATION_OPTION_KEYS: readonly (keyof ModelGenerationOptions)[];
625
- /** Provider parameters supplement one model completion; identity, context and common controls retain their typed API. */
626
- declare function modelProviderOptions(value: unknown): Record<string, unknown>;
627
- /** Apply after protocol translation so provider-specific fields reach the actual upstream API. */
628
- declare function applyModelProviderOptions(request: Record<string, unknown>, value?: Record<string, unknown>): Record<string, unknown>;
629
614
  /** Preserve absence: defaults belong to the configured Model or upstream provider. */
630
615
  declare function modelGenerationOptions(source: ModelGenerationOptions): ModelGenerationOptions;
631
616
  interface ModelTool {
@@ -802,6 +787,8 @@ interface GatewayDefinition<C = unknown> extends Omit<GatewayPackageMetadata, "l
802
787
  invoke(request: ConnectionRequest, context: IntegrationContext): Promise<unknown>;
803
788
  reconcile?(request: ConnectionRecoveryRequest, context: IntegrationContext): Promise<ConnectionRecoveryResult>;
804
789
  cancel?(request: ConnectionCancelRequest, context: IntegrationContext): Promise<void>;
790
+ /** Idempotent cleanup of retained operation attachments. May run after restart. */
791
+ release?(attachment: IntegrationAttachment, context: IntegrationReleaseContext): Promise<void>;
805
792
  }
806
793
  /** A provider-neutral Training Provider authored on the ordinary Connection package substrate. */
807
794
  interface TrainingProviderDefinition<C = unknown> extends GatewayDefinition<C> {
@@ -822,67 +809,9 @@ type GatewayRecoveryRequest<A = unknown> = ConnectionRecoveryRequest<A>;
822
809
  type GatewayCancelRequest = ConnectionCancelRequest;
823
810
  type GatewayRecoveryResult = ConnectionRecoveryResult;
824
811
  type GatewayContext = IntegrationContext;
825
- interface GatewayPackageRef {
826
- publisher: string;
827
- namespace: string;
828
- id: string;
829
- version: string;
830
- hash: string;
831
- }
832
812
  declare function checkpointImportMetadata(value: unknown): CheckpointImportMetadata;
833
813
  declare function checkpointImportRequest(value: unknown): CheckpointImportRequest;
834
814
  declare function checkpointDeploymentRequest(value: unknown): CheckpointDeploymentRequest;
835
- /** Shared shape for advertised and manually supplied model metadata. */
836
- declare const GATEWAY_MODEL_OFFER_SCHEMA: {
837
- readonly type: "object";
838
- readonly additionalProperties: false;
839
- readonly required: readonly ["id", "displayName", "contextTokens", "maxOutputTokens", "pricing"];
840
- readonly properties: {
841
- readonly id: {
842
- readonly type: "string";
843
- readonly minLength: 1;
844
- readonly maxLength: 512;
845
- };
846
- readonly displayName: {
847
- readonly type: "string";
848
- readonly minLength: 1;
849
- readonly maxLength: 128;
850
- };
851
- readonly contextTokens: {
852
- readonly type: "integer";
853
- readonly minimum: 1;
854
- readonly maximum: number;
855
- };
856
- readonly maxOutputTokens: {
857
- readonly type: "integer";
858
- readonly minimum: 1;
859
- readonly maximum: number;
860
- };
861
- readonly inputModalities: {
862
- readonly type: "array";
863
- readonly minItems: 1;
864
- readonly maxItems: 16;
865
- readonly uniqueItems: true;
866
- readonly items: {
867
- readonly type: "string";
868
- readonly pattern: string;
869
- };
870
- };
871
- readonly outputModalities: {
872
- readonly type: "array";
873
- readonly minItems: 1;
874
- readonly maxItems: 16;
875
- readonly uniqueItems: true;
876
- readonly items: {
877
- readonly type: "string";
878
- readonly pattern: string;
879
- };
880
- };
881
- readonly pricing: {
882
- readonly type: readonly ["object", "null"];
883
- };
884
- };
885
- };
886
815
  declare function gatewayModelOffer(value: unknown): GatewayModelOffer;
887
816
  declare function gatewayPackageMetadata(value: unknown): GatewayPackageMetadata;
888
817
  /** Compiles package setup templates into an exact, immutable Resource egress policy. */
@@ -1064,32 +993,14 @@ interface ScopedCredentialRef {
1064
993
  }
1065
994
  type AgentResourceBinding = CRN | ScopedResourceRef;
1066
995
  type ResourceCredentialBinding = CredentialCRN | ScopedCredentialRef;
1067
- declare const RESOURCE_CREDENTIAL_BINDING_SCHEMA: {
1068
- readonly anyOf: readonly [{
1069
- readonly type: "string";
1070
- readonly minLength: 1;
1071
- readonly description: "An existing Credential resource CRN.";
1072
- }, {
1073
- readonly type: "object";
1074
- readonly required: readonly ["kind", "key", "owner", "required"];
1075
- readonly additionalProperties: false;
1076
- readonly properties: {
1077
- readonly kind: {
1078
- readonly const: "scoped";
1079
- };
1080
- readonly key: {
1081
- readonly type: "string";
1082
- readonly minLength: 1;
1083
- };
1084
- readonly owner: {
1085
- readonly enum: readonly ["tenant", "principal", "customer"];
1086
- };
1087
- readonly required: {
1088
- readonly type: "boolean";
1089
- };
1090
- };
1091
- }];
1092
- };
996
+ interface InvocationCredentialUse {
997
+ binding: ResourceCredentialBinding;
998
+ consumer: {
999
+ kind: "process";
1000
+ delivery: "env" | "file";
1001
+ name: string;
1002
+ };
1003
+ }
1093
1004
  interface BindingAssignmentRevision {
1094
1005
  binding: BindingCRN;
1095
1006
  revisionHash: Hash;
@@ -1311,6 +1222,32 @@ type Action = string & {
1311
1222
  type ActionPattern = string & {
1312
1223
  readonly __actionPattern: "ActionPattern";
1313
1224
  };
1225
+ /** Wire schema for the same fixed/scoped credential references accepted by resourceCredentialBinding. */
1226
+ declare const RESOURCE_CREDENTIAL_BINDING_SCHEMA: {
1227
+ readonly anyOf: readonly [{
1228
+ readonly type: "string";
1229
+ readonly pattern: string;
1230
+ }, {
1231
+ readonly type: "object";
1232
+ readonly required: readonly ["kind", "key", "owner", "required"];
1233
+ readonly additionalProperties: false;
1234
+ readonly properties: {
1235
+ readonly kind: {
1236
+ readonly const: "scoped";
1237
+ };
1238
+ readonly key: {
1239
+ readonly type: "string";
1240
+ readonly pattern: string;
1241
+ };
1242
+ readonly owner: {
1243
+ readonly enum: readonly ["tenant", "customer", "principal"];
1244
+ };
1245
+ readonly required: {
1246
+ readonly type: "boolean";
1247
+ };
1248
+ };
1249
+ }];
1250
+ };
1314
1251
  declare function scopedBindingKey(value: unknown): ScopedBindingKey;
1315
1252
  declare function resourceContractRef(value: unknown): ResourceContractRef;
1316
1253
  declare function capabilityContractRef(value: unknown): CapabilityContractRef;
@@ -1320,7 +1257,8 @@ declare function memoryStoreBinding(value: unknown): MemoryStoreBinding;
1320
1257
  declare function scopedCredentialRef(value: unknown): ScopedCredentialRef;
1321
1258
  declare function agentResourceBinding(value: unknown): AgentResourceBinding;
1322
1259
  declare function resourceCredentialBinding(value: unknown): ResourceCredentialBinding;
1323
- declare function resourceCredentialBindings(value: unknown): Record<string, ResourceCredentialBinding>;
1260
+ /** Canonical non-secret Credential selection carried by one invocation. */
1261
+ declare function invocationCredentialUses(value: unknown): Record<string, InvocationCredentialUse>;
1324
1262
  declare function credentialRotationDefaults(value: unknown): CredentialRotationDefaults;
1325
1263
  declare function resourceName(parts: ResourceNameParts): ResourceName;
1326
1264
  declare function resourceDependencyRef<K extends ResourceKind>(value: unknown, expectedKinds: readonly K[]): ResourceDependencyRef<K>;
@@ -1346,6 +1284,23 @@ declare function normalizeSandboxNetworkPolicy(value: unknown, options?: {
1346
1284
  allowPrivate?: boolean;
1347
1285
  }): SandboxNetworkPolicy;
1348
1286
 
1287
+ interface SandboxGovernanceControls {
1288
+ command_timeout_ms: number;
1289
+ cpu: number;
1290
+ disk_gib: number;
1291
+ idle_stop_ms: number;
1292
+ max_concurrent_commands: number;
1293
+ max_file_bytes: number;
1294
+ memory_gib: number;
1295
+ network_cidrs: string[];
1296
+ network_domains: string[];
1297
+ network_egress: string | null;
1298
+ network_mode: "block-all" | "cidr-allow" | "domain-allow" | "managed-http" | "unrestricted";
1299
+ network_transport: "bridge" | "proxy" | null;
1300
+ permitted_paths: string[];
1301
+ }
1302
+ type SandboxGovernanceMeter = "commands" | "compute_ms" | "file_bytes" | "requests";
1303
+
1349
1304
  interface GovernanceContractRef {
1350
1305
  id: string;
1351
1306
  version: string;
@@ -1378,22 +1333,6 @@ interface AdmissionLimitConstraint {
1378
1333
  type AdmissionLimitInput<M extends string = string> = Omit<AdmissionLimitConstraint, "kind" | "contract" | "meter"> & {
1379
1334
  meter: M;
1380
1335
  };
1381
- interface SandboxGovernanceControls {
1382
- command_timeout_ms: number;
1383
- cpu: number;
1384
- disk_gib: number;
1385
- idle_stop_ms: number;
1386
- max_concurrent_commands: number;
1387
- max_file_bytes: number;
1388
- memory_gib: number;
1389
- network_cidrs: string[];
1390
- network_domains: string[];
1391
- network_egress: string | null;
1392
- network_mode: "block-all" | "cidr-allow" | "domain-allow" | "managed-http" | "unrestricted";
1393
- network_transport: "bridge" | "proxy" | null;
1394
- permitted_paths: string[];
1395
- }
1396
- type SandboxGovernanceMeter = "commands" | "compute_ms" | "file_bytes" | "requests";
1397
1336
  interface ModelGovernanceControls {
1398
1337
  max_input_tokens: number;
1399
1338
  max_output_tokens: number;
@@ -1552,76 +1491,64 @@ interface AnalyticsClient {
1552
1491
  }
1553
1492
  declare function analyticsEvent<Dimension extends string, Metric extends string>(definition: AnalyticsEventDefinition<Dimension, Metric>): AnalyticsEventDefinition<Dimension, Metric>;
1554
1493
 
1555
- interface SandboxProcessReadOptions {
1556
- stream?: "stdout" | "stderr";
1557
- offset?: number;
1558
- limit?: number;
1559
- invoke?: InvokeOpts;
1560
- }
1561
- interface SandboxProcessReadResult {
1562
- /** Base64 bytes; decode after joining ranges when reading UTF-8 text. */
1563
- data: string;
1564
- offset: number;
1565
- nextOffset: number;
1566
- totalBytes: number;
1567
- exited: boolean;
1568
- exitCode?: number;
1569
- }
1570
- interface SandboxProcessWriteInput {
1571
- data: string;
1572
- encoding?: "utf8" | "base64";
1573
- close?: boolean;
1574
- }
1575
- interface SandboxProcessWriteResult {
1576
- written: number;
1577
- error?: string;
1578
- }
1579
- /** An interactive command in its originating Run. Its ordinary invocation owns cleanup and billing. */
1580
- interface SandboxProcess {
1581
- readonly id: string;
1582
- read(options?: SandboxProcessReadOptions): Promise<SandboxProcessReadResult>;
1583
- write(input: SandboxProcessWriteInput, opts?: InvokeOpts): Handle<SandboxProcessWriteResult>;
1584
- stop(opts?: InvokeOpts): Handle<{
1585
- stopped: true;
1586
- }>;
1494
+ interface ContainerImageReference {
1495
+ registry: string;
1496
+ repository: string;
1497
+ tag: string | null;
1498
+ digest: string | null;
1499
+ reference: string;
1587
1500
  }
1588
-
1589
- /** Immutable OCI source identity, independent of any provider's adapted image format. */
1501
+ /** Immutable OCI identity before any provider-specific preparation. */
1590
1502
  interface ContainerImageSource {
1591
1503
  reference: string;
1592
- digest: string;
1504
+ digest: `sha256:${string}`;
1593
1505
  mediaType: string;
1594
1506
  bytes: number;
1507
+ platform: {
1508
+ os: string;
1509
+ architecture: string;
1510
+ variant?: string;
1511
+ };
1595
1512
  }
1596
-
1597
- /** Build the selected working directory with Docker available in this sandbox. */
1598
- interface SandboxImageBuildInput {
1599
- context?: string;
1600
- dockerfile?: string;
1601
- target?: string;
1602
- platform?: string;
1603
- buildArgs?: Record<string, string>;
1604
- cache?: boolean;
1605
- secrets?: Record<string, ResourceCredentialBinding>;
1606
- registries?: Record<string, {
1607
- username: string;
1608
- credential: ResourceCredentialBinding;
1609
- }>;
1610
- }
1611
- interface SandboxImageBuildResult extends SandboxCommandResult {
1612
- image?: {
1613
- reference: string;
1614
- digest: string;
1615
- metadata: Ref;
1513
+ /** Digest-pinned image selected for one Linux execution environment. Manifest
1514
+ * metadata is resolved by the runtime pull and recorded in its receipt. */
1515
+ interface ContainerImageSelection {
1516
+ reference: string;
1517
+ platform: {
1518
+ os: string;
1519
+ architecture: string;
1520
+ variant?: string;
1616
1521
  };
1617
1522
  }
1618
- declare function sandboxImageBuildInput(value: unknown): SandboxImageBuildInput;
1523
+ interface ContainerRegistryResponse {
1524
+ status: number;
1525
+ headers: Record<string, string>;
1526
+ body: Uint8Array;
1527
+ }
1528
+ type ContainerRegistryRequest = (request: {
1529
+ url: string;
1530
+ method: "GET";
1531
+ headers: Record<string, string>;
1532
+ maximumBytes: number;
1533
+ }) => Promise<ContainerRegistryResponse>;
1534
+ /** Canonical Docker/OCI distribution reference. Tags remain mutable until the
1535
+ * owning registry resolver pins them; digests are preserved exactly. */
1536
+ declare function containerImageReference(value: string): ContainerImageReference;
1537
+ declare function immutableContainerImageReference(value: string): ContainerImageReference & {
1538
+ digest: `sha256:${string}`;
1539
+ };
1540
+ declare function containerImageSource(value: unknown): ContainerImageSource;
1541
+ declare function containerImageSelection(value: unknown): ContainerImageSelection;
1542
+ /** Resolve a mutable tag or multi-platform index exactly once to one immutable
1543
+ * manifest. The caller owns registry authentication and transport Policy. */
1544
+ declare function resolveContainerImageSource(reference: string, platform: ContainerImageSource["platform"], request: ContainerRegistryRequest, authorization?: string): Promise<ContainerImageSource>;
1619
1545
 
1620
1546
  /** Canonicalize one provider-neutral path and keep it inside the logical workspace. */
1621
1547
  declare function normalizeSandboxWorkspacePath(path: string, cwd?: string): string;
1622
1548
  interface CreateSandboxOptions {
1623
1549
  image?: SandboxImage;
1624
1550
  resetImage?: boolean;
1551
+ execution?: ContainerImageSelection;
1625
1552
  }
1626
1553
  /**
1627
1554
  * Optional immutable identity for a prepared image. Cache keys are supplied as
@@ -1631,15 +1558,6 @@ interface CreateSandboxOptions {
1631
1558
  interface CreateSandboxImageOptions {
1632
1559
  cacheKey?: string;
1633
1560
  }
1634
- interface ImportSandboxImageInput {
1635
- reference: string;
1636
- /** Reuse a completed, matching provider image. False requests a fresh import. */
1637
- cache?: boolean;
1638
- registry?: {
1639
- username: string;
1640
- credential: ResourceCredentialBinding;
1641
- };
1642
- }
1643
1561
  interface SandboxExecInput {
1644
1562
  cmd: string;
1645
1563
  args?: string[];
@@ -1648,81 +1566,54 @@ interface SandboxExecInput {
1648
1566
  stdin?: string;
1649
1567
  timeoutMs?: number;
1650
1568
  outputs?: string[];
1651
- /** Values resolve at process start. File keys name variables receiving a runtime-owned credential-file path. */
1569
+ /** Keep stdin open for governed process I/O until EOF or process termination. */
1570
+ interactive?: boolean;
1571
+ /** Stable caller-owned name for one interactive process in this Run. */
1572
+ processKey?: string;
1652
1573
  credentials?: SandboxProcessCredentials;
1653
1574
  }
1654
1575
  interface SandboxProcessCredentials {
1576
+ /** Variable receives the Credential value. */
1655
1577
  env?: Record<string, ResourceCredentialBinding>;
1578
+ /** Variable receives a memory-backed file path containing the value. */
1656
1579
  files?: Record<string, ResourceCredentialBinding>;
1657
1580
  }
1658
- declare const SANDBOX_PROCESS_CREDENTIALS_SCHEMA: {
1659
- readonly type: "object";
1660
- readonly additionalProperties: false;
1661
- readonly properties: {
1662
- readonly env: {
1663
- readonly type: "object";
1664
- readonly additionalProperties: {
1665
- readonly anyOf: readonly [{
1666
- readonly type: "string";
1667
- readonly minLength: 1;
1668
- readonly description: "An existing Credential resource CRN.";
1669
- }, {
1670
- readonly type: "object";
1671
- readonly required: readonly ["kind", "key", "owner", "required"];
1672
- readonly additionalProperties: false;
1673
- readonly properties: {
1674
- readonly kind: {
1675
- readonly const: "scoped";
1676
- };
1677
- readonly key: {
1678
- readonly type: "string";
1679
- readonly minLength: 1;
1680
- };
1681
- readonly owner: {
1682
- readonly enum: readonly ["tenant", "principal", "customer"];
1683
- };
1684
- readonly required: {
1685
- readonly type: "boolean";
1686
- };
1687
- };
1688
- }];
1689
- };
1690
- };
1691
- readonly files: {
1692
- readonly type: "object";
1693
- readonly additionalProperties: {
1694
- readonly anyOf: readonly [{
1695
- readonly type: "string";
1696
- readonly minLength: 1;
1697
- readonly description: "An existing Credential resource CRN.";
1698
- }, {
1699
- readonly type: "object";
1700
- readonly required: readonly ["kind", "key", "owner", "required"];
1701
- readonly additionalProperties: false;
1702
- readonly properties: {
1703
- readonly kind: {
1704
- readonly const: "scoped";
1705
- };
1706
- readonly key: {
1707
- readonly type: "string";
1708
- readonly minLength: 1;
1709
- };
1710
- readonly owner: {
1711
- readonly enum: readonly ["tenant", "principal", "customer"];
1712
- };
1713
- readonly required: {
1714
- readonly type: "boolean";
1715
- };
1716
- };
1717
- }];
1718
- };
1719
- };
1720
- };
1721
- };
1722
- declare function sandboxProcessCredentials(value: unknown): SandboxProcessCredentials;
1723
- interface SandboxCredentialTargets {
1724
- env?: Record<string, string>;
1725
- files?: Record<string, string>;
1581
+ declare const SANDBOX_PROCESS_IO_OPERATIONS: readonly ["process.status", "process.read", "process.write", "process.close"];
1582
+ declare const SANDBOX_PROCESS_OPERATIONS: readonly ["process.resolve", "process.status", "process.read", "process.write", "process.close", "process.stop"];
1583
+ type SandboxProcessIoOperation = typeof SANDBOX_PROCESS_IO_OPERATIONS[number];
1584
+ type SandboxProcessOperation = typeof SANDBOX_PROCESS_OPERATIONS[number];
1585
+ interface SandboxProcessReadInput {
1586
+ stream: "stdout" | "stderr";
1587
+ offset: number;
1588
+ limit: number;
1589
+ }
1590
+ interface SandboxProcessReadResult {
1591
+ /** Base64 bytes, which may split a UTF-8 character or application frame. */
1592
+ data: string;
1593
+ bytes: number;
1594
+ offset: number;
1595
+ returnedBytes: number;
1596
+ nextOffset: number;
1597
+ eof: boolean;
1598
+ }
1599
+ interface SandboxProcessWriteResult {
1600
+ id: string;
1601
+ status: "acknowledged" | "uncertain";
1602
+ bytes: number;
1603
+ }
1604
+ interface SandboxProcessStatus {
1605
+ process: string;
1606
+ status: string;
1607
+ generation: number | null;
1608
+ }
1609
+ interface SandboxProcess {
1610
+ readonly id: string;
1611
+ readonly execution: InvocationHandle<SandboxCommandResult> | null;
1612
+ status(opts?: InvokeOpts): InvocationHandle<SandboxProcessStatus>;
1613
+ read(input: SandboxProcessReadInput, opts?: InvokeOpts): InvocationHandle<SandboxProcessReadResult>;
1614
+ write(data: Uint8Array | string, opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
1615
+ closeStdin(opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
1616
+ stop(): Promise<void>;
1726
1617
  }
1727
1618
  interface SandboxCommandResult {
1728
1619
  commandId: string;
@@ -1775,43 +1666,42 @@ interface SandboxImage {
1775
1666
  readonly id: string;
1776
1667
  readonly pool: SandboxPool;
1777
1668
  readonly cacheKey: string | null;
1778
- readonly source?: ContainerImageSource;
1779
1669
  delete(opts?: InvokeOpts): Promise<void>;
1780
1670
  }
1781
- /** Normalize explicit registry input; this does not contact a provider or load credential material. */
1782
- declare function importSandboxImageInput(value: unknown): ImportSandboxImageInput;
1783
- /** Mutable, Agent/Session-scoped workspace backed by a VM or container provider. */
1784
- interface Sandbox {
1785
- readonly id: string;
1671
+ /** The authenticated Agent/Session workspace. Its physical sandbox is lazy. */
1672
+ interface SandboxWorkspace {
1786
1673
  readonly pool: SandboxPool;
1787
1674
  readonly agent: CRN;
1788
1675
  readonly session: string;
1789
- suspend(opts?: InvokeOpts): Promise<void>;
1790
- resume(opts?: InvokeOpts): Promise<void>;
1791
- delete(opts?: InvokeOpts): Promise<void>;
1792
- exec(input: SandboxExecInput, opts?: InvokeOpts): Handle<SandboxCommandResult>;
1793
- buildImage(input: SandboxImageBuildInput, opts?: InvokeOpts): Handle<SandboxImageBuildResult>;
1794
- /** Admit a persistent command without waiting for its exit. */
1795
- startProcess(input: SandboxExecInput, opts?: InvokeOpts): Promise<SandboxProcess>;
1796
- /** Reuse a process identity in its originating Run; the service checks ownership on every operation. */
1797
- process(id: string): SandboxProcess;
1676
+ exec(input: SandboxExecInput, opts?: InvokeOpts): InvocationHandle<SandboxCommandResult>;
1677
+ /** Admit ordinary exec without waiting for exit. Readiness is observable via I/O. */
1678
+ openProcess(input: SandboxExecInput, opts?: InvokeOpts): Promise<SandboxProcess>;
1679
+ /** Resolve a named process already owned by this authenticated Run. */
1680
+ resolveProcess(key: string, opts?: InvokeOpts): Promise<SandboxProcess | null>;
1798
1681
  readFile(path: string, options?: SandboxReadFileOptions): Promise<SandboxReadFileResult>;
1799
1682
  writeFile(path: string, content: string, options?: {
1800
1683
  mode?: number;
1801
1684
  invoke?: InvokeOpts;
1802
1685
  }): Promise<SandboxWriteFileResult>;
1803
- getFile(path: string, opts?: InvokeOpts): Handle<SandboxFileResult>;
1686
+ getFile(path: string, opts?: InvokeOpts): InvocationHandle<SandboxFileResult>;
1804
1687
  putFile(path: string, ref: Ref, options?: {
1805
1688
  mode?: number;
1806
1689
  invoke?: InvokeOpts;
1807
- }): Handle<SandboxMutationResult>;
1808
- deleteFile(path: string, opts?: InvokeOpts): Handle<SandboxMutationResult>;
1690
+ }): InvocationHandle<SandboxMutationResult>;
1691
+ deleteFile(path: string, opts?: InvokeOpts): InvocationHandle<SandboxMutationResult>;
1692
+ }
1693
+ /** Explicit physical handle used only for lifecycle/image selection controls. */
1694
+ interface Sandbox extends SandboxWorkspace {
1695
+ readonly id: string;
1696
+ suspend(opts?: InvokeOpts): Promise<void>;
1697
+ resume(opts?: InvokeOpts): Promise<void>;
1698
+ delete(opts?: InvokeOpts): Promise<void>;
1809
1699
  }
1810
1700
  /** Provider-neutral factory and owner for images and logical sandboxes. */
1811
1701
  interface SandboxPool {
1812
1702
  readonly resource: CRN;
1813
- /** Import an existing registry image into a provider-supported pool. Registry access uses Credential references. */
1814
- importImage(input: ImportSandboxImageInput, opts?: InvokeOpts): Promise<SandboxImage>;
1703
+ /** Use the current authenticated Agent/Session workspace without creating it explicitly. */
1704
+ workspace(): SandboxWorkspace;
1815
1705
  /** Capture an immutable image from a sandbox owned by this pool. */
1816
1706
  createImage(sandbox: Sandbox, options?: CreateSandboxImageOptions, opts?: InvokeOpts): Promise<SandboxImage>;
1817
1707
  /** Resolve an Agent-owned prepared image by its immutable environment digest. */
@@ -2066,9 +1956,9 @@ interface Handle<T> extends PromiseLike<T> {
2066
1956
  readonly error: unknown | undefined;
2067
1957
  cancel(): Promise<void>;
2068
1958
  }
2069
- /** A durable Resource invocation may be admitted separately from awaiting its result. */
1959
+ /** An asynchronous Resource operation can be admitted before its result is
1960
+ * awaited. Admission is not proof that the external process is ready. */
2070
1961
  interface InvocationHandle<T> extends Handle<T> {
2071
- /** Start through normal authorization and admission; keep the invocation open until it settles. */
2072
1962
  start(): Promise<void>;
2073
1963
  }
2074
1964
  interface CommitOpts {
@@ -2410,8 +2300,8 @@ interface InvokeOpts {
2410
2300
  capability?: CapabilityRef;
2411
2301
  timeoutMs?: number;
2412
2302
  dedupeKey?: string;
2413
- /** Credential references for this invocation's consuming adapter; values remain platform-owned. */
2414
- credentials?: Record<string, ResourceCredentialBinding>;
2303
+ /** Invocation-local Credential selections. Material never enters Agent code. */
2304
+ credentials?: Record<string, InvocationCredentialUse>;
2415
2305
  }
2416
2306
  interface CapabilityGrant {
2417
2307
  actions: string[];
@@ -2419,38 +2309,28 @@ interface CapabilityGrant {
2419
2309
  ttlMs: number;
2420
2310
  reason: string;
2421
2311
  }
2422
- /** Public invocation contracts from this Run's pinned bindings, without resource configuration or credentials. */
2423
- interface ResourceOperation {
2312
+ interface BoundOperation {
2424
2313
  op: string;
2425
- hash: Hash;
2426
2314
  description: string;
2427
- schema: object;
2428
- resultSchema: object;
2315
+ schema: unknown;
2316
+ resultSchema: unknown;
2429
2317
  effect: EffectClass;
2430
2318
  recovery: Recovery;
2431
2319
  async: boolean;
2320
+ audience?: "agent" | "tool";
2432
2321
  }
2433
2322
  interface BoundResourceCapabilities {
2434
2323
  crn: CRN;
2435
2324
  kind: ResourceKind;
2325
+ version: string;
2436
2326
  hash: Hash;
2437
- catalogHash: Hash | null;
2438
2327
  credentialSlots: string[];
2439
- operations: ResourceOperation[];
2440
- }
2441
- interface RunCapabilities {
2442
- resourcesHash: Hash;
2443
- toolsetHash: Hash;
2444
- resources: Record<string, BoundResourceCapabilities>;
2445
- tools: Record<string, {
2446
- crn: CRN;
2447
- hash: Hash;
2448
- name: string;
2449
- version: string;
2450
- description: string;
2451
- schema: object;
2452
- maxEffect: EffectClass;
2453
- }>;
2328
+ operations: BoundOperation[];
2329
+ model?: {
2330
+ id: string;
2331
+ contextTokens?: number;
2332
+ maxOutputTokens?: number;
2333
+ };
2454
2334
  }
2455
2335
  interface Ctx {
2456
2336
  turn(spec: TurnSpec): Promise<TurnRecord>;
@@ -2472,8 +2352,8 @@ interface Ctx {
2472
2352
  reduce<I, O>(g: FoldFn<I, O> | SqlFold, over: Over<I>, opts?: ReduceOpts): Handle<ReduceFact>;
2473
2353
  step<T>(name: string, fn: () => Promise<T>): Promise<T>;
2474
2354
  resources: Record<string, CRN>;
2475
- /** A copy of the current Run's pinned public contracts. Invocation still evaluates Policy. */
2476
- capabilities(): RunCapabilities;
2355
+ /** Observe one accepted binding as a journaled local step; null means it is not bound. */
2356
+ describeResource(binding: string): Promise<BoundResourceCapabilities | null>;
2477
2357
  /** Open a provider-neutral sandbox pool bound into this Run. */
2478
2358
  sandboxPool(resource: CRN): SandboxPool;
2479
2359
  invoke<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): Promise<T>;
@@ -2503,6 +2383,32 @@ interface AgentDef<S = unknown> {
2503
2383
  }
2504
2384
  type Agent<S = unknown> = AgentDef<S>;
2505
2385
 
2386
+ interface SkillDescription {
2387
+ id: string;
2388
+ description?: string;
2389
+ source?: string;
2390
+ }
2391
+ interface Skill extends SkillDescription {
2392
+ instructions: string;
2393
+ }
2394
+ interface LoadedSkill extends Skill {
2395
+ hash: string;
2396
+ }
2397
+ /** Discovery and storage belong to the caller. The SDK does not scan a filesystem. */
2398
+ interface SkillSource {
2399
+ list(ctx: Ctx): SkillDescription[] | Promise<SkillDescription[]>;
2400
+ load(id: string, ctx: Ctx): Skill | Promise<Skill>;
2401
+ needs?: Tool["needs"];
2402
+ maxEffect?: Tool["maxEffect"];
2403
+ }
2404
+ interface SkillLibrary {
2405
+ list(ctx: Ctx): Promise<SkillDescription[]>;
2406
+ load(id: string, ctx: Ctx): Promise<LoadedSkill>;
2407
+ tools: Record<string, Tool>;
2408
+ }
2409
+ /** Optional instructions exposed through ordinary model context and Tools. */
2410
+ declare function skills(input: readonly Skill[] | SkillSource): SkillLibrary;
2411
+
2506
2412
  declare function validateTool(tool: Tool, path?: string): Tool;
2507
2413
  declare function validateView<V extends ViewDef<any, any>>(view: V, path?: string): V;
2508
2414
  declare function validatePartitionFn<I, O, R>(fn: PartitionFn<I, O, R>): PartitionFn<I, O, R>;
@@ -2933,160 +2839,6 @@ declare function credentialSetupState(requirement: AgentCredentialSetupRequireme
2933
2839
  namespace: string;
2934
2840
  }, inventory: readonly SetupCredentialCandidate[], binding: BindingAssignmentHead | null): CredentialSetupState;
2935
2841
 
2936
- interface SkillDescription {
2937
- id: string;
2938
- description?: string;
2939
- /** Caller-supplied location or source identity, such as a file path or artifact reference. */
2940
- source?: string;
2941
- }
2942
- interface Skill extends SkillDescription {
2943
- instructions: string;
2944
- }
2945
- /** A caller supplies discovery and loading. The SDK has no repository or filesystem convention. */
2946
- interface SkillSource {
2947
- list(ctx: Ctx): Promise<SkillDescription[]> | SkillDescription[];
2948
- load(id: string, ctx: Ctx): Promise<Skill> | Skill;
2949
- needs?: Tool["needs"];
2950
- maxEffect?: Tool["maxEffect"];
2951
- }
2952
- interface LoadedSkill extends Skill {
2953
- hash: string;
2954
- }
2955
- interface SkillSet {
2956
- list(ctx: Ctx): Promise<SkillDescription[]>;
2957
- load(id: string, ctx: Ctx): Promise<LoadedSkill>;
2958
- /** Register and offer these through the same Agent and turn Tool APIs as other Tools. */
2959
- tools: Record<string, Tool>;
2960
- }
2961
- /** Compose explicitly supplied skills into ordinary context data and Tools. */
2962
- declare function skills(input: readonly Skill[] | SkillSource): SkillSet;
2963
-
2964
- /** A complete index for initial model context; full schemas remain discoverable per binding. */
2965
- declare function resourceIndex(ctx: Pick<Ctx, "capabilities">): {
2966
- resourcesHash: string;
2967
- toolsetHash: string;
2968
- resources: {
2969
- operations: {
2970
- op: string;
2971
- description: string;
2972
- effect: EffectClass;
2973
- async: boolean;
2974
- }[];
2975
- crn: CRN;
2976
- kind: ResourceKind;
2977
- hash: Hash;
2978
- catalogHash: Hash | null;
2979
- credentialSlots: string[];
2980
- binding: string;
2981
- }[];
2982
- };
2983
- /** Journal capability context at each use so earlier turns replay with their original snapshot. */
2984
- declare function resourceContext(ctx: Ctx): Promise<{
2985
- resourcesHash: string;
2986
- toolsetHash: string;
2987
- resources: {
2988
- operations: {
2989
- op: string;
2990
- description: string;
2991
- effect: EffectClass;
2992
- async: boolean;
2993
- }[];
2994
- crn: CRN;
2995
- kind: ResourceKind;
2996
- hash: Hash;
2997
- catalogHash: Hash | null;
2998
- credentialSlots: string[];
2999
- binding: string;
3000
- }[];
3001
- run: RunInfo;
3002
- }>;
3003
- /** Opt-in model access to existing bound Resource contracts and ordinary invocation. */
3004
- declare const resourceTools: Record<string, Tool>;
3005
-
3006
- interface McpMessage {
3007
- jsonrpc: "2.0";
3008
- id?: string | number | null;
3009
- method?: string;
3010
- params?: unknown;
3011
- result?: unknown;
3012
- error?: {
3013
- code?: unknown;
3014
- message?: unknown;
3015
- data?: unknown;
3016
- };
3017
- }
3018
- interface McpTool extends Record<string, unknown> {
3019
- name: string;
3020
- description: string;
3021
- inputSchema: Record<string, unknown>;
3022
- outputSchema: Record<string, unknown>;
3023
- annotations: Record<string, unknown>;
3024
- }
3025
- declare function message(value: unknown): McpMessage;
3026
- declare function result(response: McpMessage): unknown;
3027
- declare function initialized(value: unknown): {
3028
- protocolVersion: string;
3029
- server: Record<string, unknown>;
3030
- capabilities: Record<string, unknown>;
3031
- };
3032
- declare function tools(request: (method: string, params: Record<string, unknown>) => Promise<unknown>, maximum?: number): Promise<McpTool[]>;
3033
- declare function tool(value: unknown): McpTool;
3034
- declare function unwrapToolResult(value: unknown, outputSchema: Record<string, unknown>): unknown;
3035
- /** Shared wire protocol for the HTTP Gateway and opt-in process transport. */
3036
- declare const mcpProtocol: {
3037
- version: string;
3038
- message: typeof message;
3039
- result: typeof result;
3040
- initialized: typeof initialized;
3041
- tool: typeof tool;
3042
- tools: typeof tools;
3043
- toolResult: typeof unwrapToolResult;
3044
- initialization: () => {
3045
- protocolVersion: string;
3046
- capabilities: {};
3047
- clientInfo: {
3048
- name: string;
3049
- version: string;
3050
- };
3051
- };
3052
- };
3053
-
3054
- /** A cursor into the retained process output. Partial frames remain in the process, not a second store. */
3055
- interface McpProcessState {
3056
- offset: number;
3057
- protocolVersion: string | null;
3058
- server: Record<string, unknown>;
3059
- capabilities: Record<string, unknown>;
3060
- toolsChanged: boolean;
3061
- }
3062
-
3063
- interface ProcessConnection {
3064
- pool: CRN;
3065
- command: SandboxExecInput;
3066
- /** Optional deadline for one protocol request; distinct from the server command's lifetime. */
3067
- requestTimeoutMs?: number;
3068
- }
3069
- interface ProcessConnectionState {
3070
- definition: string;
3071
- pool: CRN;
3072
- process: string;
3073
- state: "connected" | "failed" | "closed";
3074
- protocol: McpProcessState;
3075
- tools: McpTool[];
3076
- error?: {
3077
- name: string;
3078
- message: string;
3079
- } | null;
3080
- }
3081
-
3082
- interface ConnectionState {
3083
- process?: ProcessConnectionState;
3084
- resource?: {
3085
- binding: string;
3086
- attempt: ResourceConnectionAttempt;
3087
- };
3088
- }
3089
-
3090
2842
  declare const CONSTAL_API_CAPABILITY: "constal.api";
3091
2843
  declare const CONSTAL_API_VERSION: "1";
3092
2844
  declare const CONSTAL_API_OPERATIONS: readonly ["describe", "query", "get", "relations", "explainPolicy", "plan", "apply", "observe"];
@@ -3099,27 +2851,6 @@ interface ConstalApiObjectRef {
3099
2851
  namespace: string | null;
3100
2852
  version?: string | null;
3101
2853
  }
3102
- interface ConstalApiQueryEvidence {
3103
- source: "registry" | "coordinator" | "analytics" | "archive" | "auth" | "billing";
3104
- observedAt: number;
3105
- authoritativeFor: string[];
3106
- lagMs: number | null;
3107
- complete: boolean;
3108
- warnings: string[];
3109
- queryHash: Hash;
3110
- }
3111
- interface ConstalApiObjectSummary extends ConstalApiObjectRef {
3112
- displayName: string;
3113
- state: string | null;
3114
- updatedAt: number | null;
3115
- fields: Record<string, unknown>;
3116
- }
3117
- interface ConstalApiQueryResult {
3118
- object: "constal.api.query";
3119
- items: ConstalApiObjectSummary[];
3120
- next: string | null;
3121
- evidence: ConstalApiQueryEvidence;
3122
- }
3123
2854
  interface ConstalApiChangePlanRequest {
3124
2855
  objective: string;
3125
2856
  operations: Array<{
@@ -3243,134 +2974,6 @@ declare const CONSTAL_API_MODEL_TOOL_DESCRIPTIONS: {
3243
2974
  readonly query: "Query authorized Constal objects with bounded pagination and evidence. Select the exact lower-case singular kind from the schema enum; never pluralize, recase, or substitute an abstract kind. If context supplies platformToolContract.queryScope, copy it unchanged. Otherwise use only an exact namespace allowed by the delegated Run authority, and tenant scope only for an explicitly tenant-wide request. Use catalog-advertised fields and filters; constrained kinds require their advertised filter. Preserve next and evidence completeness.";
3244
2975
  readonly get: "Retrieve one exact authorized Constal object or immutable revision. Pass a complete ref unchanged from query, relations, runtime inspection, or a governed receipt; never construct a kind, id, namespace, CRN, hash, or cursor from display text. The schema enum contains every supported addressable kind. For a Run, omit fields for complete diagnosis or request only documented top-level fields, and follow only the returned page cursor.";
3245
2976
  };
3246
- /** The existing HTTP Model creation body, also advertised by the native API. */
3247
- declare const CONSTAL_MODEL_CREATE_SCHEMA: {
3248
- readonly type: "object";
3249
- readonly required: readonly ["id", "gateway", "offer"];
3250
- readonly additionalProperties: false;
3251
- readonly properties: {
3252
- readonly id: {
3253
- readonly type: "string";
3254
- readonly minLength: 1;
3255
- readonly maxLength: 63;
3256
- readonly pattern: "^[a-z0-9][a-z0-9-]*$";
3257
- readonly description: "Name of the new Model Resource.";
3258
- };
3259
- readonly gateway: {
3260
- readonly type: "string";
3261
- readonly minLength: 1;
3262
- readonly maxLength: 2048;
3263
- readonly pattern: string;
3264
- readonly description: "Exact Gateway Resource CRN.";
3265
- };
3266
- readonly offer: {
3267
- readonly description: "Select an advertised provider model or supply manual model metadata.";
3268
- readonly anyOf: readonly [{
3269
- readonly type: "object";
3270
- readonly required: readonly ["kind", "modelId"];
3271
- readonly additionalProperties: false;
3272
- readonly properties: {
3273
- readonly kind: {
3274
- readonly const: "advertised";
3275
- };
3276
- readonly modelId: {
3277
- readonly type: "string";
3278
- readonly minLength: 1;
3279
- readonly maxLength: 512;
3280
- };
3281
- };
3282
- }, {
3283
- readonly type: "object";
3284
- readonly required: readonly ["kind", "model"];
3285
- readonly additionalProperties: false;
3286
- readonly properties: {
3287
- readonly kind: {
3288
- readonly const: "manual";
3289
- };
3290
- readonly model: {
3291
- readonly type: "object";
3292
- readonly additionalProperties: false;
3293
- readonly required: readonly ["id", "displayName", "contextTokens", "maxOutputTokens", "pricing"];
3294
- readonly properties: {
3295
- readonly id: {
3296
- readonly type: "string";
3297
- readonly minLength: 1;
3298
- readonly maxLength: 512;
3299
- };
3300
- readonly displayName: {
3301
- readonly type: "string";
3302
- readonly minLength: 1;
3303
- readonly maxLength: 128;
3304
- };
3305
- readonly contextTokens: {
3306
- readonly type: "integer";
3307
- readonly minimum: 1;
3308
- readonly maximum: number;
3309
- };
3310
- readonly maxOutputTokens: {
3311
- readonly type: "integer";
3312
- readonly minimum: 1;
3313
- readonly maximum: number;
3314
- };
3315
- readonly inputModalities: {
3316
- readonly type: "array";
3317
- readonly minItems: 1;
3318
- readonly maxItems: 16;
3319
- readonly uniqueItems: true;
3320
- readonly items: {
3321
- readonly type: "string";
3322
- readonly pattern: string;
3323
- };
3324
- };
3325
- readonly outputModalities: {
3326
- readonly type: "array";
3327
- readonly minItems: 1;
3328
- readonly maxItems: 16;
3329
- readonly uniqueItems: true;
3330
- readonly items: {
3331
- readonly type: "string";
3332
- readonly pattern: string;
3333
- };
3334
- };
3335
- readonly pricing: {
3336
- readonly type: readonly ["object", "null"];
3337
- };
3338
- };
3339
- };
3340
- };
3341
- }];
3342
- };
3343
- readonly defaults: {
3344
- readonly description: "Generation settings used when calling this Model; omitted settings retain provider defaults.";
3345
- readonly type: "object";
3346
- readonly additionalProperties: false;
3347
- readonly properties: {
3348
- readonly maxOutputTokens: {
3349
- readonly type: "integer";
3350
- readonly minimum: 1;
3351
- readonly maximum: 1048576;
3352
- };
3353
- readonly temperature: {
3354
- readonly type: "number";
3355
- readonly minimum: 0;
3356
- readonly maximum: 2;
3357
- };
3358
- readonly effort: {
3359
- readonly type: "string";
3360
- readonly minLength: 1;
3361
- };
3362
- readonly providerOptions: {
3363
- readonly type: "object";
3364
- };
3365
- };
3366
- };
3367
- readonly temperature: {
3368
- readonly type: "number";
3369
- readonly minimum: 0;
3370
- readonly maximum: 2;
3371
- };
3372
- };
3373
- };
3374
2977
  /** Shared schemas pinned into the Resource catalog and Agent Tools. */
3375
2978
  declare const CONSTAL_API_OPERATION_SCHEMAS: {
3376
2979
  readonly describe: {
@@ -3378,7 +2981,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3378
2981
  readonly additionalProperties: false;
3379
2982
  readonly properties: {
3380
2983
  readonly domains: {
3381
- readonly description: "Domain IDs returned in catalog.domains. Omit to discover across all domains.";
3382
2984
  readonly type: "array";
3383
2985
  readonly maxItems: 128;
3384
2986
  readonly items: {
@@ -3918,71 +3520,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3918
3520
  };
3919
3521
  };
3920
3522
 
3921
- interface AgentConnection {
3922
- /** Use an already-bound Resource, or choose the binding for a new connection. */
3923
- binding?: string;
3924
- description?: string;
3925
- /** Installation is optional when the Resource is already bound. */
3926
- package?: GatewayPackageRef;
3927
- config?: Record<string, unknown>;
3928
- credentials?: Record<string, ResourceCredentialBinding>;
3929
- process?: ProcessConnection;
3930
- }
3931
- interface ConnectionDescription {
3932
- name: string;
3933
- binding?: string;
3934
- description?: string;
3935
- transport?: "stdio";
3936
- }
3937
- interface ConnectionSource {
3938
- list(ctx: Ctx): Promise<ConnectionDescription[]>;
3939
- load(name: string, ctx: Ctx): Promise<AgentConnection>;
3940
- needs?: Tool["needs"];
3941
- }
3942
- interface ResourceConnectionAttempt {
3943
- state: "bound" | "failed" | "unavailable";
3944
- stage?: "installation" | "attachment";
3945
- message?: string;
3946
- installation?: ConstalApiChangeReceipt;
3947
- attachment?: ConstalApiChangeReceipt;
3948
- }
3949
- interface ConnectionStatus extends ConnectionDescription {
3950
- state: "configured" | "bound" | "connected" | "failed" | "closed" | "unavailable";
3951
- resource?: BoundResourceCapabilities;
3952
- process?: {
3953
- id: string;
3954
- pool: ProcessConnection["pool"];
3955
- };
3956
- tools?: McpTool[];
3957
- server?: Record<string, unknown>;
3958
- capabilities?: Record<string, unknown>;
3959
- toolsChanged?: boolean;
3960
- error?: {
3961
- name: string;
3962
- message: string;
3963
- };
3964
- /** Latest explicit connection attempt; current Resource availability is reported separately. */
3965
- lastAttempt?: ResourceConnectionAttempt;
3966
- }
3967
- /** Opt-in connection composition through the existing native API, Resource bindings, and journal. */
3968
- declare function connections(supplied: Record<string, AgentConnection> | ConnectionSource, options?: {
3969
- api?: string;
3970
- }): {
3971
- index: (ctx: Ctx) => Promise<ConnectionStatus[]>;
3972
- tools: Record<string, Tool>;
3973
- views: ViewDef<{
3974
- [x: string]: Record<string, ConnectionState>;
3975
- }, Fact<unknown>>[];
3976
- };
3977
-
3978
- /** One option identity for callers and admission, preserving existing invocation hashes when no override is supplied. */
3979
- declare function normalizeInvocationOptions(options: InvokeOpts): {
3980
- credentials?: Record<string, ResourceCredentialBinding>;
3981
- capability: string | null;
3982
- timeoutMs: number | null;
3983
- dedupeKey: string | null;
3984
- };
3985
-
3986
3523
  interface PolicyDefinition {
3987
3524
  id: string;
3988
3525
  version: string;
@@ -4022,6 +3559,9 @@ interface CatalogTool extends Tool {
4022
3559
  }
4023
3560
  declare function opTool(binding: string, op: string, override?: Partial<Pick<Tool, "name" | "description" | "schema" | "tier" | "once" | "guard" | "preview">>): CatalogTool;
4024
3561
  declare function opTools(binding: string, ops?: string[]): CatalogTool[];
3562
+ /** Optional model-facing access to bindings already accepted by this Run.
3563
+ * Installation, binding changes, authorization, and retries keep their existing owners. */
3564
+ declare const resourceTools: Record<"resource_list" | "resource_describe" | "resource_invoke", Tool>;
4025
3565
  declare const WEB_FETCH_ARGUMENT_SCHEMA: {
4026
3566
  readonly type: "object";
4027
3567
  readonly required: readonly ["url"];
@@ -4402,6 +3942,48 @@ declare function credentialProviderSetupMetadata(value: unknown, slots: string[]
4402
3942
  /** Defines and validates a Credential Provider package. */
4403
3943
  declare function credentialProvider<C>(definition: CredentialProviderDefinition<C>): CredentialProviderPackage<C>;
4404
3944
 
3945
+ declare const MCP_PROTOCOL_VERSION = "2025-06-18";
3946
+ interface McpClientState {
3947
+ protocolVersion: string;
3948
+ nextRequestId: number;
3949
+ }
3950
+ interface McpMessageTransport {
3951
+ send(message: Record<string, unknown>): Promise<void>;
3952
+ receive(): Promise<unknown>;
3953
+ negotiated?(protocolVersion: string): void | Promise<void>;
3954
+ close(): Promise<void>;
3955
+ }
3956
+ interface McpClientOptions {
3957
+ state?: McpClientState;
3958
+ client?: {
3959
+ name: string;
3960
+ version: string;
3961
+ };
3962
+ onNotification?: (message: {
3963
+ method: string;
3964
+ params?: unknown;
3965
+ }) => void | Promise<void>;
3966
+ }
3967
+ declare function mcpToolDescription(value: unknown): Record<string, unknown>;
3968
+ declare function mcpToolResult(value: unknown): Record<string, unknown>;
3969
+ /** Protocol/session owner shared by Streamable HTTP and stdio transports.
3970
+ * The transport owns bytes; this client owns request correlation and MCP state. */
3971
+ declare class McpClient {
3972
+ #private;
3973
+ readonly transport: McpMessageTransport;
3974
+ readonly options: McpClientOptions;
3975
+ constructor(transport: McpMessageTransport, options?: McpClientOptions);
3976
+ state(): McpClientState;
3977
+ initialize(): Promise<{
3978
+ protocolVersion: string;
3979
+ server: Record<string, unknown>;
3980
+ }>;
3981
+ request(method: string, params: Record<string, unknown>): Promise<unknown>;
3982
+ tools(): Promise<Record<string, unknown>[]>;
3983
+ callTool(name: string, args: Record<string, unknown>): Promise<unknown>;
3984
+ close(): Promise<void>;
3985
+ }
3986
+
4405
3987
  type CodeScorerRule = {
4406
3988
  op: "all";
4407
3989
  rules: CodeScorerRule[];
@@ -4567,5 +4149,5 @@ declare class SessionDeleted extends Error {
4567
4149
  constructor(session: string);
4568
4150
  }
4569
4151
 
4570
- export { AfterYield, ApiError, 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, CONSTAL_MODEL_CREATE_SCHEMA, CommitConflict, CommitGateRejected, CredentialRevoked, CredentialUnavailable, DirectNetworkDenied, EffectCeilingExceeded, GATEWAY_MODEL_OFFER_SCHEMA, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, MODEL_GENERATION_OPTIONS_SCHEMA, MODEL_GENERATION_OPTION_KEYS, NondeterministicReplay, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SANDBOX_PROCESS_CREDENTIALS_SCHEMA, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TerminalIntegrationFailure, ToolUnavailable, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, analyticsEvent, applyModelProviderOptions, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, connections, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, importSandboxImageInput, integrationEgressPolicy, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpProtocol, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelPrompt, modelProtocolRequest, modelProtocolResult, modelProviderOptions, murmur3_32, normalizeInvocationOptions, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveBindingOwner, resolveGatewayEgress, resolveResourceDependencyRef, resourceContext, resourceContractRef, resourceCredentialBinding, resourceCredentialBindings, resourceDependencyRef, resourceIndex, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, sandboxControls, sandboxImageBuildInput, sandboxLimit, sandboxProcessCredentials, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scorerName, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupScreen, setupScreenView, setupSubmission, sha256Hex, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
4571
- export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentConnection, AgentCredentialSetupRequirement, AgentDef, AgentDeployPolicy, AgentSetupMetadata, AgentSetupRequirement, AgentSetupWorkflow, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, AwaitPresentation, BatchSpec, BindingCRN, BindingOwnerContext, BindingOwnerScope, BoundResourceCapabilities, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelAlarm, ChannelAlarmResult, ChannelContext, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionDescription, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionSource, ConnectionStatus, ConnectionUsageReport, ConstalApiApplyRequest, ConstalApiChangePlan, ConstalApiChangePlanRef, ConstalApiChangePlanRequest, ConstalApiChangeReceipt, ConstalApiOperationReceipt, ConstalApiQueryResult, ContainerImageSource, ControlEvent, Cost, CreateSandboxImageOptions, CreateSandboxOptions, CredentialCRN, CredentialDestroyResult, CredentialEvidence, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialProviderCRN, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, CredentialSetupState, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, EventBase, Fact, FactRef, FileEntry, FixedMemoryStoreRef, FixedModelGatewayRef, FoldFn, GateEvidence, GateResult, GateVerdict, GatewayCancelRequest, GatewayConfigEgressBinding, GatewayContext, GatewayCredentialSlotSetup, GatewayDefinition, GatewayDiscoverySetup, GatewayModelOffer, GatewayOperation, GatewayPackage, GatewayPackageMetadata, GatewayPackageRef, GatewayRecoveryRequest, GatewayRecoveryResult, GatewayRequest, GovernanceContractRef, Handle, HandleOutcome, Hash, HistoryView, IgnoredChannelEvent, ImportSandboxImageInput, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationSecret, IntegrationState, InvocationHandle, InvokableKind, InvokeOpts, JsonScalar, JsonValue, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerEvent, LoadedSkill, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpMessage, McpTool, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCompletion, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelInvocationArgs, ModelInvocationResult, ModelTechnicalCapabilities, ModelTool, NormalizedModelGatewayConfig, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, ProcessConnection, Provenance, RawModelProtocol, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceConnectionAttempt, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceDependencyRef, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourceOperation, ResourcePattern, ResourceSelector, RollbackReport, RunCapabilities, RunIdentityView, RunInfo, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandResult, SandboxCredentialTargets, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxImageBuildInput, SandboxImageBuildResult, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, SandboxProcess, SandboxProcessCredentials, SandboxProcessReadOptions, SandboxProcessReadResult, SandboxProcessWriteInput, SandboxProcessWriteResult, SandboxReadFileOptions, SandboxReadFileResult, SandboxWriteFileResult, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Skill, SkillDescription, SkillSet, SkillSource, SortField, SpawnAttenuation, SpawnBudget, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingUsageUnits, TurnDraft, TurnGate, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };
4152
+ export { AfterYield, ApiError, 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, DirectNetworkDenied, EffectCeilingExceeded, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, McpClient, NondeterministicReplay, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TerminalIntegrationFailure, ToolUnavailable, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, containerImageReference, containerImageSelection, containerImageSource, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, sandboxControls, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scorerName, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupScreen, setupScreenView, setupSubmission, sha256Hex, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
4153
+ export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeployPolicy, AgentSetupMetadata, AgentSetupRequirement, AgentSetupWorkflow, 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, ChannelAlarm, ChannelAlarmResult, ChannelContext, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, 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, CredentialDestroyResult, CredentialEvidence, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialProviderCRN, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, CredentialSetupState, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, 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, HistoryView, IgnoredChannelEvent, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationAttachment, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationLifecycle, IntegrationReleaseContext, IntegrationSecret, IntegrationState, InvocationCredentialUse, InvocationHandle, InvokableKind, InvokeOpts, JsonScalar, JsonValue, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerEvent, LoadedSkill, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpClientOptions, McpClientState, McpMessageTransport, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCompletion, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelInvocationArgs, ModelInvocationResult, ModelTechnicalCapabilities, ModelTool, NormalizedModelGatewayConfig, 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, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandResult, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, SandboxProcess, SandboxProcessCredentials, SandboxProcessIoOperation, SandboxProcessOperation, SandboxProcessReadInput, SandboxProcessReadResult, SandboxProcessStatus, SandboxProcessWriteResult, SandboxReadFileOptions, SandboxReadFileResult, SandboxWorkspace, SandboxWriteFileResult, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Skill, SkillDescription, SkillLibrary, SkillSource, SortField, SpawnAttenuation, SpawnBudget, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingUsageUnits, TurnDraft, TurnGate, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };