@constal/sdk 3.2.0 → 3.3.1

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,65 @@ 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
+ /** Build the selected working directory with Docker available in this sandbox. */
1590
+ interface SandboxImageBuildInput {
1591
+ context?: string;
1592
+ dockerfile?: string;
1593
+ target?: string;
1594
+ platform?: string;
1595
+ buildArgs?: Record<string, string>;
1596
+ cache?: boolean;
1597
+ secrets?: Record<string, ResourceCredentialBinding>;
1598
+ registries?: Record<string, {
1599
+ username: string;
1600
+ credential: ResourceCredentialBinding;
1601
+ }>;
1602
+ }
1603
+ interface SandboxImageBuildResult extends SandboxCommandResult {
1604
+ image?: {
1605
+ reference: string;
1606
+ digest: string;
1607
+ metadata: Ref;
1608
+ };
1609
+ }
1610
+ declare function sandboxImageBuildInput(value: unknown): SandboxImageBuildInput;
1611
+
1612
+ /** Canonicalize one provider-neutral path and keep it inside the logical workspace. */
1613
+ declare function normalizeSandboxWorkspacePath(path: string, cwd?: string): string;
1432
1614
  interface CreateSandboxOptions {
1433
1615
  image?: SandboxImage;
1434
1616
  resetImage?: boolean;
@@ -1449,6 +1631,81 @@ interface SandboxExecInput {
1449
1631
  stdin?: string;
1450
1632
  timeoutMs?: number;
1451
1633
  outputs?: string[];
1634
+ /** Values resolve at process start. File keys name variables receiving a runtime-owned credential-file path. */
1635
+ credentials?: SandboxProcessCredentials;
1636
+ }
1637
+ interface SandboxProcessCredentials {
1638
+ env?: Record<string, ResourceCredentialBinding>;
1639
+ files?: Record<string, ResourceCredentialBinding>;
1640
+ }
1641
+ declare const SANDBOX_PROCESS_CREDENTIALS_SCHEMA: {
1642
+ readonly type: "object";
1643
+ readonly additionalProperties: false;
1644
+ readonly properties: {
1645
+ readonly env: {
1646
+ readonly type: "object";
1647
+ readonly additionalProperties: {
1648
+ readonly anyOf: readonly [{
1649
+ readonly type: "string";
1650
+ readonly minLength: 1;
1651
+ readonly description: "An existing Credential resource CRN.";
1652
+ }, {
1653
+ readonly type: "object";
1654
+ readonly required: readonly ["kind", "key", "owner", "required"];
1655
+ readonly additionalProperties: false;
1656
+ readonly properties: {
1657
+ readonly kind: {
1658
+ readonly const: "scoped";
1659
+ };
1660
+ readonly key: {
1661
+ readonly type: "string";
1662
+ readonly minLength: 1;
1663
+ };
1664
+ readonly owner: {
1665
+ readonly enum: readonly ["tenant", "principal", "customer"];
1666
+ };
1667
+ readonly required: {
1668
+ readonly type: "boolean";
1669
+ };
1670
+ };
1671
+ }];
1672
+ };
1673
+ };
1674
+ readonly files: {
1675
+ readonly type: "object";
1676
+ readonly additionalProperties: {
1677
+ readonly anyOf: readonly [{
1678
+ readonly type: "string";
1679
+ readonly minLength: 1;
1680
+ readonly description: "An existing Credential resource CRN.";
1681
+ }, {
1682
+ readonly type: "object";
1683
+ readonly required: readonly ["kind", "key", "owner", "required"];
1684
+ readonly additionalProperties: false;
1685
+ readonly properties: {
1686
+ readonly kind: {
1687
+ readonly const: "scoped";
1688
+ };
1689
+ readonly key: {
1690
+ readonly type: "string";
1691
+ readonly minLength: 1;
1692
+ };
1693
+ readonly owner: {
1694
+ readonly enum: readonly ["tenant", "principal", "customer"];
1695
+ };
1696
+ readonly required: {
1697
+ readonly type: "boolean";
1698
+ };
1699
+ };
1700
+ }];
1701
+ };
1702
+ };
1703
+ };
1704
+ };
1705
+ declare function sandboxProcessCredentials(value: unknown): SandboxProcessCredentials;
1706
+ interface SandboxCredentialTargets {
1707
+ env?: Record<string, string>;
1708
+ files?: Record<string, string>;
1452
1709
  }
1453
1710
  interface SandboxCommandResult {
1454
1711
  commandId: string;
@@ -1513,6 +1770,11 @@ interface Sandbox {
1513
1770
  resume(opts?: InvokeOpts): Promise<void>;
1514
1771
  delete(opts?: InvokeOpts): Promise<void>;
1515
1772
  exec(input: SandboxExecInput, opts?: InvokeOpts): Handle<SandboxCommandResult>;
1773
+ buildImage(input: SandboxImageBuildInput, opts?: InvokeOpts): Handle<SandboxImageBuildResult>;
1774
+ /** Admit a persistent command without waiting for its exit. */
1775
+ startProcess(input: SandboxExecInput, opts?: InvokeOpts): Promise<SandboxProcess>;
1776
+ /** Reuse a process identity in its originating Run; the service checks ownership on every operation. */
1777
+ process(id: string): SandboxProcess;
1516
1778
  readFile(path: string, options?: SandboxReadFileOptions): Promise<SandboxReadFileResult>;
1517
1779
  writeFile(path: string, content: string, options?: {
1518
1780
  mode?: number;
@@ -1782,6 +2044,11 @@ interface Handle<T> extends PromiseLike<T> {
1782
2044
  readonly error: unknown | undefined;
1783
2045
  cancel(): Promise<void>;
1784
2046
  }
2047
+ /** A durable Resource invocation may be admitted separately from awaiting its result. */
2048
+ interface InvocationHandle<T> extends Handle<T> {
2049
+ /** Start through normal authorization and admission; keep the invocation open until it settles. */
2050
+ start(): Promise<void>;
2051
+ }
1785
2052
  interface CommitOpts {
1786
2053
  tier?: Tier;
1787
2054
  gate?: string | GateEvidence | {
@@ -1860,6 +2127,7 @@ interface TurnDraft {
1860
2127
  }[];
1861
2128
  final: boolean;
1862
2129
  artifact: unknown;
2130
+ completion?: ModelCompletion;
1863
2131
  }
1864
2132
  interface TurnGate {
1865
2133
  id?: string;
@@ -1918,6 +2186,7 @@ interface TurnRecord {
1918
2186
  cost: Cost;
1919
2187
  attempts: number;
1920
2188
  gate: GateVerdict | null;
2189
+ completion?: ModelCompletion;
1921
2190
  }
1922
2191
  interface DataManifest {
1923
2192
  hash: Hash;
@@ -2119,6 +2388,8 @@ interface InvokeOpts {
2119
2388
  capability?: CapabilityRef;
2120
2389
  timeoutMs?: number;
2121
2390
  dedupeKey?: string;
2391
+ /** Credential references for this invocation's consuming adapter; values remain platform-owned. */
2392
+ credentials?: Record<string, ResourceCredentialBinding>;
2122
2393
  }
2123
2394
  interface CapabilityGrant {
2124
2395
  actions: string[];
@@ -2126,6 +2397,39 @@ interface CapabilityGrant {
2126
2397
  ttlMs: number;
2127
2398
  reason: string;
2128
2399
  }
2400
+ /** Public invocation contracts from this Run's pinned bindings, without resource configuration or credentials. */
2401
+ interface ResourceOperation {
2402
+ op: string;
2403
+ hash: Hash;
2404
+ description: string;
2405
+ schema: object;
2406
+ resultSchema: object;
2407
+ effect: EffectClass;
2408
+ recovery: Recovery;
2409
+ async: boolean;
2410
+ }
2411
+ interface BoundResourceCapabilities {
2412
+ crn: CRN;
2413
+ kind: ResourceKind;
2414
+ hash: Hash;
2415
+ catalogHash: Hash | null;
2416
+ credentialSlots: string[];
2417
+ operations: ResourceOperation[];
2418
+ }
2419
+ interface RunCapabilities {
2420
+ resourcesHash: Hash;
2421
+ toolsetHash: Hash;
2422
+ resources: Record<string, BoundResourceCapabilities>;
2423
+ tools: Record<string, {
2424
+ crn: CRN;
2425
+ hash: Hash;
2426
+ name: string;
2427
+ version: string;
2428
+ description: string;
2429
+ schema: object;
2430
+ maxEffect: EffectClass;
2431
+ }>;
2432
+ }
2129
2433
  interface Ctx {
2130
2434
  turn(spec: TurnSpec): Promise<TurnRecord>;
2131
2435
  ledger: {
@@ -2146,10 +2450,12 @@ interface Ctx {
2146
2450
  reduce<I, O>(g: FoldFn<I, O> | SqlFold, over: Over<I>, opts?: ReduceOpts): Handle<ReduceFact>;
2147
2451
  step<T>(name: string, fn: () => Promise<T>): Promise<T>;
2148
2452
  resources: Record<string, CRN>;
2453
+ /** A copy of the current Run's pinned public contracts. Invocation still evaluates Policy. */
2454
+ capabilities(): RunCapabilities;
2149
2455
  /** Open a provider-neutral sandbox pool bound into this Run. */
2150
2456
  sandboxPool(resource: CRN): SandboxPool;
2151
2457
  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>;
2458
+ invokeAsync<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): InvocationHandle<T>;
2153
2459
  request(policy: PolicyCRN, grant: CapabilityGrant): Handle<CapabilityRef>;
2154
2460
  analytics: AnalyticsClient;
2155
2461
  run: RunInfo;
@@ -2605,6 +2911,160 @@ declare function credentialSetupState(requirement: AgentCredentialSetupRequireme
2605
2911
  namespace: string;
2606
2912
  }, inventory: readonly SetupCredentialCandidate[], binding: BindingAssignmentHead | null): CredentialSetupState;
2607
2913
 
2914
+ interface SkillDescription {
2915
+ id: string;
2916
+ description?: string;
2917
+ /** Caller-supplied location or source identity, such as a file path or artifact reference. */
2918
+ source?: string;
2919
+ }
2920
+ interface Skill extends SkillDescription {
2921
+ instructions: string;
2922
+ }
2923
+ /** A caller supplies discovery and loading. The SDK has no repository or filesystem convention. */
2924
+ interface SkillSource {
2925
+ list(ctx: Ctx): Promise<SkillDescription[]> | SkillDescription[];
2926
+ load(id: string, ctx: Ctx): Promise<Skill> | Skill;
2927
+ needs?: Tool["needs"];
2928
+ maxEffect?: Tool["maxEffect"];
2929
+ }
2930
+ interface LoadedSkill extends Skill {
2931
+ hash: string;
2932
+ }
2933
+ interface SkillSet {
2934
+ list(ctx: Ctx): Promise<SkillDescription[]>;
2935
+ load(id: string, ctx: Ctx): Promise<LoadedSkill>;
2936
+ /** Register and offer these through the same Agent and turn Tool APIs as other Tools. */
2937
+ tools: Record<string, Tool>;
2938
+ }
2939
+ /** Compose explicitly supplied skills into ordinary context data and Tools. */
2940
+ declare function skills(input: readonly Skill[] | SkillSource): SkillSet;
2941
+
2942
+ /** A complete index for initial model context; full schemas remain discoverable per binding. */
2943
+ declare function resourceIndex(ctx: Pick<Ctx, "capabilities">): {
2944
+ resourcesHash: string;
2945
+ toolsetHash: string;
2946
+ resources: {
2947
+ operations: {
2948
+ op: string;
2949
+ description: string;
2950
+ effect: EffectClass;
2951
+ async: boolean;
2952
+ }[];
2953
+ crn: CRN;
2954
+ kind: ResourceKind;
2955
+ hash: Hash;
2956
+ catalogHash: Hash | null;
2957
+ credentialSlots: string[];
2958
+ binding: string;
2959
+ }[];
2960
+ };
2961
+ /** Journal capability context at each use so earlier turns replay with their original snapshot. */
2962
+ declare function resourceContext(ctx: Ctx): Promise<{
2963
+ resourcesHash: string;
2964
+ toolsetHash: string;
2965
+ resources: {
2966
+ operations: {
2967
+ op: string;
2968
+ description: string;
2969
+ effect: EffectClass;
2970
+ async: boolean;
2971
+ }[];
2972
+ crn: CRN;
2973
+ kind: ResourceKind;
2974
+ hash: Hash;
2975
+ catalogHash: Hash | null;
2976
+ credentialSlots: string[];
2977
+ binding: string;
2978
+ }[];
2979
+ run: RunInfo;
2980
+ }>;
2981
+ /** Opt-in model access to existing bound Resource contracts and ordinary invocation. */
2982
+ declare const resourceTools: Record<string, Tool>;
2983
+
2984
+ interface McpMessage {
2985
+ jsonrpc: "2.0";
2986
+ id?: string | number | null;
2987
+ method?: string;
2988
+ params?: unknown;
2989
+ result?: unknown;
2990
+ error?: {
2991
+ code?: unknown;
2992
+ message?: unknown;
2993
+ data?: unknown;
2994
+ };
2995
+ }
2996
+ interface McpTool extends Record<string, unknown> {
2997
+ name: string;
2998
+ description: string;
2999
+ inputSchema: Record<string, unknown>;
3000
+ outputSchema: Record<string, unknown>;
3001
+ annotations: Record<string, unknown>;
3002
+ }
3003
+ declare function message(value: unknown): McpMessage;
3004
+ declare function result(response: McpMessage): unknown;
3005
+ declare function initialized(value: unknown): {
3006
+ protocolVersion: string;
3007
+ server: Record<string, unknown>;
3008
+ capabilities: Record<string, unknown>;
3009
+ };
3010
+ declare function tools(request: (method: string, params: Record<string, unknown>) => Promise<unknown>, maximum?: number): Promise<McpTool[]>;
3011
+ declare function tool(value: unknown): McpTool;
3012
+ declare function unwrapToolResult(value: unknown, outputSchema: Record<string, unknown>): unknown;
3013
+ /** Shared wire protocol for the HTTP Gateway and opt-in process transport. */
3014
+ declare const mcpProtocol: {
3015
+ version: string;
3016
+ message: typeof message;
3017
+ result: typeof result;
3018
+ initialized: typeof initialized;
3019
+ tool: typeof tool;
3020
+ tools: typeof tools;
3021
+ toolResult: typeof unwrapToolResult;
3022
+ initialization: () => {
3023
+ protocolVersion: string;
3024
+ capabilities: {};
3025
+ clientInfo: {
3026
+ name: string;
3027
+ version: string;
3028
+ };
3029
+ };
3030
+ };
3031
+
3032
+ /** A cursor into the retained process output. Partial frames remain in the process, not a second store. */
3033
+ interface McpProcessState {
3034
+ offset: number;
3035
+ protocolVersion: string | null;
3036
+ server: Record<string, unknown>;
3037
+ capabilities: Record<string, unknown>;
3038
+ toolsChanged: boolean;
3039
+ }
3040
+
3041
+ interface ProcessConnection {
3042
+ pool: CRN;
3043
+ command: SandboxExecInput;
3044
+ /** Optional deadline for one protocol request; distinct from the server command's lifetime. */
3045
+ requestTimeoutMs?: number;
3046
+ }
3047
+ interface ProcessConnectionState {
3048
+ definition: string;
3049
+ pool: CRN;
3050
+ process: string;
3051
+ state: "connected" | "failed" | "closed";
3052
+ protocol: McpProcessState;
3053
+ tools: McpTool[];
3054
+ error?: {
3055
+ name: string;
3056
+ message: string;
3057
+ } | null;
3058
+ }
3059
+
3060
+ interface ConnectionState {
3061
+ process?: ProcessConnectionState;
3062
+ resource?: {
3063
+ binding: string;
3064
+ attempt: ResourceConnectionAttempt;
3065
+ };
3066
+ }
3067
+
2608
3068
  declare const CONSTAL_API_CAPABILITY: "constal.api";
2609
3069
  declare const CONSTAL_API_VERSION: "1";
2610
3070
  declare const CONSTAL_API_OPERATIONS: readonly ["describe", "query", "get", "relations", "explainPolicy", "plan", "apply", "observe"];
@@ -2617,6 +3077,27 @@ interface ConstalApiObjectRef {
2617
3077
  namespace: string | null;
2618
3078
  version?: string | null;
2619
3079
  }
3080
+ interface ConstalApiQueryEvidence {
3081
+ source: "registry" | "coordinator" | "analytics" | "archive" | "auth" | "billing";
3082
+ observedAt: number;
3083
+ authoritativeFor: string[];
3084
+ lagMs: number | null;
3085
+ complete: boolean;
3086
+ warnings: string[];
3087
+ queryHash: Hash;
3088
+ }
3089
+ interface ConstalApiObjectSummary extends ConstalApiObjectRef {
3090
+ displayName: string;
3091
+ state: string | null;
3092
+ updatedAt: number | null;
3093
+ fields: Record<string, unknown>;
3094
+ }
3095
+ interface ConstalApiQueryResult {
3096
+ object: "constal.api.query";
3097
+ items: ConstalApiObjectSummary[];
3098
+ next: string | null;
3099
+ evidence: ConstalApiQueryEvidence;
3100
+ }
2620
3101
  interface ConstalApiChangePlanRequest {
2621
3102
  objective: string;
2622
3103
  operations: Array<{
@@ -2740,6 +3221,134 @@ declare const CONSTAL_API_MODEL_TOOL_DESCRIPTIONS: {
2740
3221
  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.";
2741
3222
  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.";
2742
3223
  };
3224
+ /** The existing HTTP Model creation body, also advertised by the native API. */
3225
+ declare const CONSTAL_MODEL_CREATE_SCHEMA: {
3226
+ readonly type: "object";
3227
+ readonly required: readonly ["id", "gateway", "offer"];
3228
+ readonly additionalProperties: false;
3229
+ readonly properties: {
3230
+ readonly id: {
3231
+ readonly type: "string";
3232
+ readonly minLength: 1;
3233
+ readonly maxLength: 63;
3234
+ readonly pattern: "^[a-z0-9][a-z0-9-]*$";
3235
+ readonly description: "Name of the new Model Resource.";
3236
+ };
3237
+ readonly gateway: {
3238
+ readonly type: "string";
3239
+ readonly minLength: 1;
3240
+ readonly maxLength: 2048;
3241
+ readonly pattern: string;
3242
+ readonly description: "Exact Gateway Resource CRN.";
3243
+ };
3244
+ readonly offer: {
3245
+ readonly description: "Select an advertised provider model or supply manual model metadata.";
3246
+ readonly anyOf: readonly [{
3247
+ readonly type: "object";
3248
+ readonly required: readonly ["kind", "modelId"];
3249
+ readonly additionalProperties: false;
3250
+ readonly properties: {
3251
+ readonly kind: {
3252
+ readonly const: "advertised";
3253
+ };
3254
+ readonly modelId: {
3255
+ readonly type: "string";
3256
+ readonly minLength: 1;
3257
+ readonly maxLength: 512;
3258
+ };
3259
+ };
3260
+ }, {
3261
+ readonly type: "object";
3262
+ readonly required: readonly ["kind", "model"];
3263
+ readonly additionalProperties: false;
3264
+ readonly properties: {
3265
+ readonly kind: {
3266
+ readonly const: "manual";
3267
+ };
3268
+ readonly model: {
3269
+ readonly type: "object";
3270
+ readonly additionalProperties: false;
3271
+ readonly required: readonly ["id", "displayName", "contextTokens", "maxOutputTokens", "pricing"];
3272
+ readonly properties: {
3273
+ readonly id: {
3274
+ readonly type: "string";
3275
+ readonly minLength: 1;
3276
+ readonly maxLength: 512;
3277
+ };
3278
+ readonly displayName: {
3279
+ readonly type: "string";
3280
+ readonly minLength: 1;
3281
+ readonly maxLength: 128;
3282
+ };
3283
+ readonly contextTokens: {
3284
+ readonly type: "integer";
3285
+ readonly minimum: 1;
3286
+ readonly maximum: number;
3287
+ };
3288
+ readonly maxOutputTokens: {
3289
+ readonly type: "integer";
3290
+ readonly minimum: 1;
3291
+ readonly maximum: number;
3292
+ };
3293
+ readonly inputModalities: {
3294
+ readonly type: "array";
3295
+ readonly minItems: 1;
3296
+ readonly maxItems: 16;
3297
+ readonly uniqueItems: true;
3298
+ readonly items: {
3299
+ readonly type: "string";
3300
+ readonly pattern: string;
3301
+ };
3302
+ };
3303
+ readonly outputModalities: {
3304
+ readonly type: "array";
3305
+ readonly minItems: 1;
3306
+ readonly maxItems: 16;
3307
+ readonly uniqueItems: true;
3308
+ readonly items: {
3309
+ readonly type: "string";
3310
+ readonly pattern: string;
3311
+ };
3312
+ };
3313
+ readonly pricing: {
3314
+ readonly type: readonly ["object", "null"];
3315
+ };
3316
+ };
3317
+ };
3318
+ };
3319
+ }];
3320
+ };
3321
+ readonly defaults: {
3322
+ readonly description: "Generation settings used when calling this Model; omitted settings retain provider defaults.";
3323
+ readonly type: "object";
3324
+ readonly additionalProperties: false;
3325
+ readonly properties: {
3326
+ readonly maxOutputTokens: {
3327
+ readonly type: "integer";
3328
+ readonly minimum: 1;
3329
+ readonly maximum: 1048576;
3330
+ };
3331
+ readonly temperature: {
3332
+ readonly type: "number";
3333
+ readonly minimum: 0;
3334
+ readonly maximum: 2;
3335
+ };
3336
+ readonly effort: {
3337
+ readonly type: "string";
3338
+ readonly minLength: 1;
3339
+ };
3340
+ readonly providerOptions: {
3341
+ readonly type: "object";
3342
+ };
3343
+ };
3344
+ };
3345
+ readonly temperature: {
3346
+ readonly type: "number";
3347
+ readonly minimum: 0;
3348
+ readonly maximum: 2;
3349
+ };
3350
+ };
3351
+ };
2743
3352
  /** Shared schemas pinned into the Resource catalog and Agent Tools. */
2744
3353
  declare const CONSTAL_API_OPERATION_SCHEMAS: {
2745
3354
  readonly describe: {
@@ -2747,6 +3356,7 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
2747
3356
  readonly additionalProperties: false;
2748
3357
  readonly properties: {
2749
3358
  readonly domains: {
3359
+ readonly description: "Domain IDs returned in catalog.domains. Omit to discover across all domains.";
2750
3360
  readonly type: "array";
2751
3361
  readonly maxItems: 128;
2752
3362
  readonly items: {
@@ -3286,6 +3896,71 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3286
3896
  };
3287
3897
  };
3288
3898
 
3899
+ interface AgentConnection {
3900
+ /** Use an already-bound Resource, or choose the binding for a new connection. */
3901
+ binding?: string;
3902
+ description?: string;
3903
+ /** Installation is optional when the Resource is already bound. */
3904
+ package?: GatewayPackageRef;
3905
+ config?: Record<string, unknown>;
3906
+ credentials?: Record<string, ResourceCredentialBinding>;
3907
+ process?: ProcessConnection;
3908
+ }
3909
+ interface ConnectionDescription {
3910
+ name: string;
3911
+ binding?: string;
3912
+ description?: string;
3913
+ transport?: "stdio";
3914
+ }
3915
+ interface ConnectionSource {
3916
+ list(ctx: Ctx): Promise<ConnectionDescription[]>;
3917
+ load(name: string, ctx: Ctx): Promise<AgentConnection>;
3918
+ needs?: Tool["needs"];
3919
+ }
3920
+ interface ResourceConnectionAttempt {
3921
+ state: "bound" | "failed" | "unavailable";
3922
+ stage?: "installation" | "attachment";
3923
+ message?: string;
3924
+ installation?: ConstalApiChangeReceipt;
3925
+ attachment?: ConstalApiChangeReceipt;
3926
+ }
3927
+ interface ConnectionStatus extends ConnectionDescription {
3928
+ state: "configured" | "bound" | "connected" | "failed" | "closed" | "unavailable";
3929
+ resource?: BoundResourceCapabilities;
3930
+ process?: {
3931
+ id: string;
3932
+ pool: ProcessConnection["pool"];
3933
+ };
3934
+ tools?: McpTool[];
3935
+ server?: Record<string, unknown>;
3936
+ capabilities?: Record<string, unknown>;
3937
+ toolsChanged?: boolean;
3938
+ error?: {
3939
+ name: string;
3940
+ message: string;
3941
+ };
3942
+ /** Latest explicit connection attempt; current Resource availability is reported separately. */
3943
+ lastAttempt?: ResourceConnectionAttempt;
3944
+ }
3945
+ /** Opt-in connection composition through the existing native API, Resource bindings, and journal. */
3946
+ declare function connections(supplied: Record<string, AgentConnection> | ConnectionSource, options?: {
3947
+ api?: string;
3948
+ }): {
3949
+ index: (ctx: Ctx) => Promise<ConnectionStatus[]>;
3950
+ tools: Record<string, Tool>;
3951
+ views: ViewDef<{
3952
+ [x: string]: Record<string, ConnectionState>;
3953
+ }, Fact<unknown>>[];
3954
+ };
3955
+
3956
+ /** One option identity for callers and admission, preserving existing invocation hashes when no override is supplied. */
3957
+ declare function normalizeInvocationOptions(options: InvokeOpts): {
3958
+ credentials?: Record<string, ResourceCredentialBinding>;
3959
+ capability: string | null;
3960
+ timeoutMs: number | null;
3961
+ dedupeKey: string | null;
3962
+ };
3963
+
3289
3964
  interface PolicyDefinition {
3290
3965
  id: string;
3291
3966
  version: string;
@@ -3870,5 +4545,5 @@ declare class SessionDeleted extends Error {
3870
4545
  constructor(session: string);
3871
4546
  }
3872
4547
 
3873
- 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, setupCredentialReceipt, 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 };
3874
- 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, SetupCredentialReceipt, 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 };
4548
+ 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, 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 };
4549
+ 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, 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, 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 };