@constal/sdk 3.1.0 → 3.3.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.
@@ -595,7 +595,39 @@ interface ModelGenerationOptions {
595
595
  maxOutputTokens?: number;
596
596
  temperature?: number;
597
597
  effort?: string;
598
+ /** Additional fields in the selected provider's request format. */
599
+ providerOptions?: Record<string, unknown>;
598
600
  }
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
+ /** Preserve absence: defaults belong to the configured Model or upstream provider. */
630
+ declare function modelGenerationOptions(source: ModelGenerationOptions): ModelGenerationOptions;
599
631
  interface ModelTool {
600
632
  name: string;
601
633
  version?: string;
@@ -639,8 +671,14 @@ type NormalizedModelGatewayConfig = Omit<ModelGatewayConfig, "maxOutputTokens" |
639
671
  gatewayAuth: ModelCredentialHeader | null;
640
672
  providerAuth: ModelCredentialHeader | null;
641
673
  };
674
+ /** Provider response completeness, independent of whether an Agent task is finished. */
675
+ interface ModelCompletion {
676
+ status: "complete" | "incomplete" | "unknown";
677
+ reason: string | null;
678
+ }
642
679
  interface ModelInvocationResult {
643
680
  content: string;
681
+ completion?: ModelCompletion;
644
682
  toolCalls?: {
645
683
  id: string;
646
684
  name: string;
@@ -784,9 +822,67 @@ type GatewayRecoveryRequest<A = unknown> = ConnectionRecoveryRequest<A>;
784
822
  type GatewayCancelRequest = ConnectionCancelRequest;
785
823
  type GatewayRecoveryResult = ConnectionRecoveryResult;
786
824
  type GatewayContext = IntegrationContext;
825
+ interface GatewayPackageRef {
826
+ publisher: string;
827
+ namespace: string;
828
+ id: string;
829
+ version: string;
830
+ hash: string;
831
+ }
787
832
  declare function checkpointImportMetadata(value: unknown): CheckpointImportMetadata;
788
833
  declare function checkpointImportRequest(value: unknown): CheckpointImportRequest;
789
834
  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
+ };
790
886
  declare function gatewayModelOffer(value: unknown): GatewayModelOffer;
791
887
  declare function gatewayPackageMetadata(value: unknown): GatewayPackageMetadata;
792
888
  /** Compiles package setup templates into an exact, immutable Resource egress policy. */
@@ -968,6 +1064,32 @@ interface ScopedCredentialRef {
968
1064
  }
969
1065
  type AgentResourceBinding = CRN | ScopedResourceRef;
970
1066
  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
+ };
971
1093
  interface BindingAssignmentRevision {
972
1094
  binding: BindingCRN;
973
1095
  revisionHash: Hash;
@@ -1198,6 +1320,7 @@ declare function memoryStoreBinding(value: unknown): MemoryStoreBinding;
1198
1320
  declare function scopedCredentialRef(value: unknown): ScopedCredentialRef;
1199
1321
  declare function agentResourceBinding(value: unknown): AgentResourceBinding;
1200
1322
  declare function resourceCredentialBinding(value: unknown): ResourceCredentialBinding;
1323
+ declare function resourceCredentialBindings(value: unknown): Record<string, ResourceCredentialBinding>;
1201
1324
  declare function credentialRotationDefaults(value: unknown): CredentialRotationDefaults;
1202
1325
  declare function resourceName(parts: ResourceNameParts): ResourceName;
1203
1326
  declare function resourceDependencyRef<K extends ResourceKind>(value: unknown, expectedKinds: readonly K[]): ResourceDependencyRef<K>;
@@ -1429,6 +1552,73 @@ interface AnalyticsClient {
1429
1552
  }
1430
1553
  declare function analyticsEvent<Dimension extends string, Metric extends string>(definition: AnalyticsEventDefinition<Dimension, Metric>): AnalyticsEventDefinition<Dimension, Metric>;
1431
1554
 
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
+ }>;
1587
+ }
1588
+
1589
+ /** Immutable OCI source identity, independent of any provider's adapted image format. */
1590
+ interface ContainerImageSource {
1591
+ reference: string;
1592
+ digest: string;
1593
+ mediaType: string;
1594
+ bytes: number;
1595
+ }
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;
1616
+ };
1617
+ }
1618
+ declare function sandboxImageBuildInput(value: unknown): SandboxImageBuildInput;
1619
+
1620
+ /** Canonicalize one provider-neutral path and keep it inside the logical workspace. */
1621
+ declare function normalizeSandboxWorkspacePath(path: string, cwd?: string): string;
1432
1622
  interface CreateSandboxOptions {
1433
1623
  image?: SandboxImage;
1434
1624
  resetImage?: boolean;
@@ -1441,6 +1631,15 @@ interface CreateSandboxOptions {
1441
1631
  interface CreateSandboxImageOptions {
1442
1632
  cacheKey?: string;
1443
1633
  }
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
+ }
1444
1643
  interface SandboxExecInput {
1445
1644
  cmd: string;
1446
1645
  args?: string[];
@@ -1449,6 +1648,81 @@ interface SandboxExecInput {
1449
1648
  stdin?: string;
1450
1649
  timeoutMs?: number;
1451
1650
  outputs?: string[];
1651
+ /** Values resolve at process start. File keys name variables receiving a runtime-owned credential-file path. */
1652
+ credentials?: SandboxProcessCredentials;
1653
+ }
1654
+ interface SandboxProcessCredentials {
1655
+ env?: Record<string, ResourceCredentialBinding>;
1656
+ files?: Record<string, ResourceCredentialBinding>;
1657
+ }
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>;
1452
1726
  }
1453
1727
  interface SandboxCommandResult {
1454
1728
  commandId: string;
@@ -1501,8 +1775,11 @@ interface SandboxImage {
1501
1775
  readonly id: string;
1502
1776
  readonly pool: SandboxPool;
1503
1777
  readonly cacheKey: string | null;
1778
+ readonly source?: ContainerImageSource;
1504
1779
  delete(opts?: InvokeOpts): Promise<void>;
1505
1780
  }
1781
+ /** Normalize explicit registry input; this does not contact a provider or load credential material. */
1782
+ declare function importSandboxImageInput(value: unknown): ImportSandboxImageInput;
1506
1783
  /** Mutable, Agent/Session-scoped workspace backed by a VM or container provider. */
1507
1784
  interface Sandbox {
1508
1785
  readonly id: string;
@@ -1513,6 +1790,11 @@ interface Sandbox {
1513
1790
  resume(opts?: InvokeOpts): Promise<void>;
1514
1791
  delete(opts?: InvokeOpts): Promise<void>;
1515
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;
1516
1798
  readFile(path: string, options?: SandboxReadFileOptions): Promise<SandboxReadFileResult>;
1517
1799
  writeFile(path: string, content: string, options?: {
1518
1800
  mode?: number;
@@ -1528,6 +1810,8 @@ interface Sandbox {
1528
1810
  /** Provider-neutral factory and owner for images and logical sandboxes. */
1529
1811
  interface SandboxPool {
1530
1812
  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>;
1531
1815
  /** Capture an immutable image from a sandbox owned by this pool. */
1532
1816
  createImage(sandbox: Sandbox, options?: CreateSandboxImageOptions, opts?: InvokeOpts): Promise<SandboxImage>;
1533
1817
  /** Resolve an Agent-owned prepared image by its immutable environment digest. */
@@ -1782,6 +2066,11 @@ interface Handle<T> extends PromiseLike<T> {
1782
2066
  readonly error: unknown | undefined;
1783
2067
  cancel(): Promise<void>;
1784
2068
  }
2069
+ /** A durable Resource invocation may be admitted separately from awaiting its result. */
2070
+ interface InvocationHandle<T> extends Handle<T> {
2071
+ /** Start through normal authorization and admission; keep the invocation open until it settles. */
2072
+ start(): Promise<void>;
2073
+ }
1785
2074
  interface CommitOpts {
1786
2075
  tier?: Tier;
1787
2076
  gate?: string | GateEvidence | {
@@ -1860,6 +2149,7 @@ interface TurnDraft {
1860
2149
  }[];
1861
2150
  final: boolean;
1862
2151
  artifact: unknown;
2152
+ completion?: ModelCompletion;
1863
2153
  }
1864
2154
  interface TurnGate {
1865
2155
  id?: string;
@@ -1918,6 +2208,7 @@ interface TurnRecord {
1918
2208
  cost: Cost;
1919
2209
  attempts: number;
1920
2210
  gate: GateVerdict | null;
2211
+ completion?: ModelCompletion;
1921
2212
  }
1922
2213
  interface DataManifest {
1923
2214
  hash: Hash;
@@ -2119,6 +2410,8 @@ interface InvokeOpts {
2119
2410
  capability?: CapabilityRef;
2120
2411
  timeoutMs?: number;
2121
2412
  dedupeKey?: string;
2413
+ /** Credential references for this invocation's consuming adapter; values remain platform-owned. */
2414
+ credentials?: Record<string, ResourceCredentialBinding>;
2122
2415
  }
2123
2416
  interface CapabilityGrant {
2124
2417
  actions: string[];
@@ -2126,6 +2419,39 @@ interface CapabilityGrant {
2126
2419
  ttlMs: number;
2127
2420
  reason: string;
2128
2421
  }
2422
+ /** Public invocation contracts from this Run's pinned bindings, without resource configuration or credentials. */
2423
+ interface ResourceOperation {
2424
+ op: string;
2425
+ hash: Hash;
2426
+ description: string;
2427
+ schema: object;
2428
+ resultSchema: object;
2429
+ effect: EffectClass;
2430
+ recovery: Recovery;
2431
+ async: boolean;
2432
+ }
2433
+ interface BoundResourceCapabilities {
2434
+ crn: CRN;
2435
+ kind: ResourceKind;
2436
+ hash: Hash;
2437
+ catalogHash: Hash | null;
2438
+ 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
+ }>;
2454
+ }
2129
2455
  interface Ctx {
2130
2456
  turn(spec: TurnSpec): Promise<TurnRecord>;
2131
2457
  ledger: {
@@ -2146,10 +2472,12 @@ interface Ctx {
2146
2472
  reduce<I, O>(g: FoldFn<I, O> | SqlFold, over: Over<I>, opts?: ReduceOpts): Handle<ReduceFact>;
2147
2473
  step<T>(name: string, fn: () => Promise<T>): Promise<T>;
2148
2474
  resources: Record<string, CRN>;
2475
+ /** A copy of the current Run's pinned public contracts. Invocation still evaluates Policy. */
2476
+ capabilities(): RunCapabilities;
2149
2477
  /** Open a provider-neutral sandbox pool bound into this Run. */
2150
2478
  sandboxPool(resource: CRN): SandboxPool;
2151
2479
  invoke<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): Promise<T>;
2152
- invokeAsync<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): Handle<T>;
2480
+ invokeAsync<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): InvocationHandle<T>;
2153
2481
  request(policy: PolicyCRN, grant: CapabilityGrant): Handle<CapabilityRef>;
2154
2482
  analytics: AnalyticsClient;
2155
2483
  run: RunInfo;
@@ -2495,6 +2823,26 @@ interface SetupCredentialInteractionPanel extends SetupPanelBase {
2495
2823
  provider: string;
2496
2824
  credentialId: string;
2497
2825
  operation: "connect" | "reauthorize" | "manage";
2826
+ /** Opt into the generic completion contract; omission preserves existing screens. */
2827
+ receipt?: "reference" | "evidence";
2828
+ /** Reuse/save a choice through the ordinary scoped Credential binding API. */
2829
+ selection?: Pick<AgentCredentialSetupRequirement, "selector" | "binding">;
2830
+ /** Non-secret creation configuration, validated by the Credential Provider. */
2831
+ configuration?: Record<string, unknown>;
2832
+ }
2833
+ interface SetupCredentialReceipt {
2834
+ object: "constal.setup.credential";
2835
+ version: 1;
2836
+ credential: {
2837
+ crn: string;
2838
+ hash: string;
2839
+ };
2840
+ evidence: CredentialEvidence | null;
2841
+ binding: {
2842
+ crn: string;
2843
+ headSeq: number;
2844
+ revisionHash: string;
2845
+ } | null;
2498
2846
  }
2499
2847
  interface SetupReviewPanel extends SetupPanelBase {
2500
2848
  kind: "review";
@@ -2555,6 +2903,8 @@ interface SetupSubmission {
2555
2903
  declare function setupScreen(value: unknown): SetupScreen;
2556
2904
  /** Validates one response against the exact open screen revision and form schema. */
2557
2905
  declare function setupSubmission(value: unknown, screen: SetupScreen): SetupSubmission;
2906
+ /** Validate non-secret completion data. It is a snapshot, never a grant of authority. */
2907
+ declare function setupCredentialReceipt(value: unknown, panel: SetupCredentialInteractionPanel): SetupCredentialReceipt;
2558
2908
  /** Await options for the exact screen. Runtime wait resolution remains the authority and replay fence. */
2559
2909
  declare function setupAwait(screen: SetupScreen): AwaitOpts<SetupSubmission>;
2560
2910
  /** A deterministic latest-screen projection for Console discovery and reload. */
@@ -2583,6 +2933,160 @@ declare function credentialSetupState(requirement: AgentCredentialSetupRequireme
2583
2933
  namespace: string;
2584
2934
  }, inventory: readonly SetupCredentialCandidate[], binding: BindingAssignmentHead | null): CredentialSetupState;
2585
2935
 
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
+
2586
3090
  declare const CONSTAL_API_CAPABILITY: "constal.api";
2587
3091
  declare const CONSTAL_API_VERSION: "1";
2588
3092
  declare const CONSTAL_API_OPERATIONS: readonly ["describe", "query", "get", "relations", "explainPolicy", "plan", "apply", "observe"];
@@ -2595,6 +3099,27 @@ interface ConstalApiObjectRef {
2595
3099
  namespace: string | null;
2596
3100
  version?: string | null;
2597
3101
  }
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
+ }
2598
3123
  interface ConstalApiChangePlanRequest {
2599
3124
  objective: string;
2600
3125
  operations: Array<{
@@ -2718,6 +3243,134 @@ declare const CONSTAL_API_MODEL_TOOL_DESCRIPTIONS: {
2718
3243
  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.";
2719
3244
  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.";
2720
3245
  };
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
+ };
2721
3374
  /** Shared schemas pinned into the Resource catalog and Agent Tools. */
2722
3375
  declare const CONSTAL_API_OPERATION_SCHEMAS: {
2723
3376
  readonly describe: {
@@ -2725,6 +3378,7 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
2725
3378
  readonly additionalProperties: false;
2726
3379
  readonly properties: {
2727
3380
  readonly domains: {
3381
+ readonly description: "Domain IDs returned in catalog.domains. Omit to discover across all domains.";
2728
3382
  readonly type: "array";
2729
3383
  readonly maxItems: 128;
2730
3384
  readonly items: {
@@ -3264,6 +3918,71 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3264
3918
  };
3265
3919
  };
3266
3920
 
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
+
3267
3986
  interface PolicyDefinition {
3268
3987
  id: string;
3269
3988
  version: string;
@@ -3848,5 +4567,5 @@ declare class SessionDeleted extends Error {
3848
4567
  constructor(session: string);
3849
4568
  }
3850
4569
 
3851
- 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, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, NondeterministicReplay, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, 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, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, integrationEgressPolicy, labelSelector, matchesAction, matchesLabelSelector, matchesResource, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelLimit, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveBindingOwner, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, sandboxControls, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scorerName, selectableResourceLabels, setupAwait, setupScreen, setupScreenView, setupSubmission, sha256Hex, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
3852
- 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, 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, 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, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationSecret, IntegrationState, InvokableKind, InvokeOpts, JsonScalar, JsonValue, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerEvent, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, 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, SandboxReadFileOptions, SandboxReadFileResult, SandboxWriteFileResult, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, 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 };
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 };