@constal/sdk 3.3.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +106 -149
- package/package.json +2 -3
- package/publish/api.json +30 -34
- package/publish/index.d.ts +270 -666
- package/publish/index.js +1825 -2262
package/publish/index.d.ts
CHANGED
|
@@ -41,11 +41,26 @@ interface IntegrationState {
|
|
|
41
41
|
list(prefix: string): Promise<string[]>;
|
|
42
42
|
invalidate(prefix: string): Promise<void>;
|
|
43
43
|
}
|
|
44
|
+
/** Non-secret cleanup coordinates retained for the current operation. */
|
|
45
|
+
interface IntegrationAttachment {
|
|
46
|
+
kind: string;
|
|
47
|
+
id: string;
|
|
48
|
+
args: unknown;
|
|
49
|
+
}
|
|
50
|
+
interface IntegrationLifecycle {
|
|
51
|
+
retain(attachment: IntegrationAttachment): Promise<void>;
|
|
52
|
+
/** Request early release; completion of the operation also requests release. */
|
|
53
|
+
release(attachment: Pick<IntegrationAttachment, "kind" | "id">): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
type IntegrationReleaseContext = Pick<IntegrationContext, "config" | "secret" | "state" | "store" | "audit" | "egress">;
|
|
44
56
|
/** Capabilities shared by user-authored Connection and Credential Provider code. */
|
|
45
57
|
interface IntegrationContext {
|
|
46
58
|
readonly config: unknown;
|
|
47
59
|
secret(slot: string): Promise<IntegrationSecret>;
|
|
48
60
|
state: IntegrationState;
|
|
61
|
+
/** Available for packages declaring a release handler. Cleanup uses the
|
|
62
|
+
* existing durable Resource lifecycle, including retry after owner restart. */
|
|
63
|
+
lifecycle?: IntegrationLifecycle;
|
|
49
64
|
/** Load one content-addressed artifact already admitted to this Resource invocation. */
|
|
50
65
|
load(ref: Ref, maximumBytes: number): Promise<ArrayBuffer>;
|
|
51
66
|
store(bytes: ArrayBuffer | string): Promise<Ref>;
|
|
@@ -595,37 +610,7 @@ interface ModelGenerationOptions {
|
|
|
595
610
|
maxOutputTokens?: number;
|
|
596
611
|
temperature?: number;
|
|
597
612
|
effort?: string;
|
|
598
|
-
/** Additional fields in the selected provider's request format. */
|
|
599
|
-
providerOptions?: Record<string, unknown>;
|
|
600
613
|
}
|
|
601
|
-
declare const MODEL_GENERATION_OPTIONS_SCHEMA: {
|
|
602
|
-
readonly type: "object";
|
|
603
|
-
readonly additionalProperties: false;
|
|
604
|
-
readonly properties: {
|
|
605
|
-
readonly maxOutputTokens: {
|
|
606
|
-
readonly type: "integer";
|
|
607
|
-
readonly minimum: 1;
|
|
608
|
-
readonly maximum: 1048576;
|
|
609
|
-
};
|
|
610
|
-
readonly temperature: {
|
|
611
|
-
readonly type: "number";
|
|
612
|
-
readonly minimum: 0;
|
|
613
|
-
readonly maximum: 2;
|
|
614
|
-
};
|
|
615
|
-
readonly effort: {
|
|
616
|
-
readonly type: "string";
|
|
617
|
-
readonly minLength: 1;
|
|
618
|
-
};
|
|
619
|
-
readonly providerOptions: {
|
|
620
|
-
readonly type: "object";
|
|
621
|
-
};
|
|
622
|
-
};
|
|
623
|
-
};
|
|
624
|
-
declare const MODEL_GENERATION_OPTION_KEYS: readonly (keyof ModelGenerationOptions)[];
|
|
625
|
-
/** Provider parameters supplement one model completion; identity, context and common controls retain their typed API. */
|
|
626
|
-
declare function modelProviderOptions(value: unknown): Record<string, unknown>;
|
|
627
|
-
/** Apply after protocol translation so provider-specific fields reach the actual upstream API. */
|
|
628
|
-
declare function applyModelProviderOptions(request: Record<string, unknown>, value?: Record<string, unknown>): Record<string, unknown>;
|
|
629
614
|
/** Preserve absence: defaults belong to the configured Model or upstream provider. */
|
|
630
615
|
declare function modelGenerationOptions(source: ModelGenerationOptions): ModelGenerationOptions;
|
|
631
616
|
interface ModelTool {
|
|
@@ -802,6 +787,8 @@ interface GatewayDefinition<C = unknown> extends Omit<GatewayPackageMetadata, "l
|
|
|
802
787
|
invoke(request: ConnectionRequest, context: IntegrationContext): Promise<unknown>;
|
|
803
788
|
reconcile?(request: ConnectionRecoveryRequest, context: IntegrationContext): Promise<ConnectionRecoveryResult>;
|
|
804
789
|
cancel?(request: ConnectionCancelRequest, context: IntegrationContext): Promise<void>;
|
|
790
|
+
/** Idempotent cleanup of retained operation attachments. May run after restart. */
|
|
791
|
+
release?(attachment: IntegrationAttachment, context: IntegrationReleaseContext): Promise<void>;
|
|
805
792
|
}
|
|
806
793
|
/** A provider-neutral Training Provider authored on the ordinary Connection package substrate. */
|
|
807
794
|
interface TrainingProviderDefinition<C = unknown> extends GatewayDefinition<C> {
|
|
@@ -822,67 +809,9 @@ type GatewayRecoveryRequest<A = unknown> = ConnectionRecoveryRequest<A>;
|
|
|
822
809
|
type GatewayCancelRequest = ConnectionCancelRequest;
|
|
823
810
|
type GatewayRecoveryResult = ConnectionRecoveryResult;
|
|
824
811
|
type GatewayContext = IntegrationContext;
|
|
825
|
-
interface GatewayPackageRef {
|
|
826
|
-
publisher: string;
|
|
827
|
-
namespace: string;
|
|
828
|
-
id: string;
|
|
829
|
-
version: string;
|
|
830
|
-
hash: string;
|
|
831
|
-
}
|
|
832
812
|
declare function checkpointImportMetadata(value: unknown): CheckpointImportMetadata;
|
|
833
813
|
declare function checkpointImportRequest(value: unknown): CheckpointImportRequest;
|
|
834
814
|
declare function checkpointDeploymentRequest(value: unknown): CheckpointDeploymentRequest;
|
|
835
|
-
/** Shared shape for advertised and manually supplied model metadata. */
|
|
836
|
-
declare const GATEWAY_MODEL_OFFER_SCHEMA: {
|
|
837
|
-
readonly type: "object";
|
|
838
|
-
readonly additionalProperties: false;
|
|
839
|
-
readonly required: readonly ["id", "displayName", "contextTokens", "maxOutputTokens", "pricing"];
|
|
840
|
-
readonly properties: {
|
|
841
|
-
readonly id: {
|
|
842
|
-
readonly type: "string";
|
|
843
|
-
readonly minLength: 1;
|
|
844
|
-
readonly maxLength: 512;
|
|
845
|
-
};
|
|
846
|
-
readonly displayName: {
|
|
847
|
-
readonly type: "string";
|
|
848
|
-
readonly minLength: 1;
|
|
849
|
-
readonly maxLength: 128;
|
|
850
|
-
};
|
|
851
|
-
readonly contextTokens: {
|
|
852
|
-
readonly type: "integer";
|
|
853
|
-
readonly minimum: 1;
|
|
854
|
-
readonly maximum: number;
|
|
855
|
-
};
|
|
856
|
-
readonly maxOutputTokens: {
|
|
857
|
-
readonly type: "integer";
|
|
858
|
-
readonly minimum: 1;
|
|
859
|
-
readonly maximum: number;
|
|
860
|
-
};
|
|
861
|
-
readonly inputModalities: {
|
|
862
|
-
readonly type: "array";
|
|
863
|
-
readonly minItems: 1;
|
|
864
|
-
readonly maxItems: 16;
|
|
865
|
-
readonly uniqueItems: true;
|
|
866
|
-
readonly items: {
|
|
867
|
-
readonly type: "string";
|
|
868
|
-
readonly pattern: string;
|
|
869
|
-
};
|
|
870
|
-
};
|
|
871
|
-
readonly outputModalities: {
|
|
872
|
-
readonly type: "array";
|
|
873
|
-
readonly minItems: 1;
|
|
874
|
-
readonly maxItems: 16;
|
|
875
|
-
readonly uniqueItems: true;
|
|
876
|
-
readonly items: {
|
|
877
|
-
readonly type: "string";
|
|
878
|
-
readonly pattern: string;
|
|
879
|
-
};
|
|
880
|
-
};
|
|
881
|
-
readonly pricing: {
|
|
882
|
-
readonly type: readonly ["object", "null"];
|
|
883
|
-
};
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
815
|
declare function gatewayModelOffer(value: unknown): GatewayModelOffer;
|
|
887
816
|
declare function gatewayPackageMetadata(value: unknown): GatewayPackageMetadata;
|
|
888
817
|
/** Compiles package setup templates into an exact, immutable Resource egress policy. */
|
|
@@ -1064,32 +993,14 @@ interface ScopedCredentialRef {
|
|
|
1064
993
|
}
|
|
1065
994
|
type AgentResourceBinding = CRN | ScopedResourceRef;
|
|
1066
995
|
type ResourceCredentialBinding = CredentialCRN | ScopedCredentialRef;
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
readonly additionalProperties: false;
|
|
1076
|
-
readonly properties: {
|
|
1077
|
-
readonly kind: {
|
|
1078
|
-
readonly const: "scoped";
|
|
1079
|
-
};
|
|
1080
|
-
readonly key: {
|
|
1081
|
-
readonly type: "string";
|
|
1082
|
-
readonly minLength: 1;
|
|
1083
|
-
};
|
|
1084
|
-
readonly owner: {
|
|
1085
|
-
readonly enum: readonly ["tenant", "principal", "customer"];
|
|
1086
|
-
};
|
|
1087
|
-
readonly required: {
|
|
1088
|
-
readonly type: "boolean";
|
|
1089
|
-
};
|
|
1090
|
-
};
|
|
1091
|
-
}];
|
|
1092
|
-
};
|
|
996
|
+
interface InvocationCredentialUse {
|
|
997
|
+
binding: ResourceCredentialBinding;
|
|
998
|
+
consumer: {
|
|
999
|
+
kind: "process";
|
|
1000
|
+
delivery: "env" | "file";
|
|
1001
|
+
name: string;
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1093
1004
|
interface BindingAssignmentRevision {
|
|
1094
1005
|
binding: BindingCRN;
|
|
1095
1006
|
revisionHash: Hash;
|
|
@@ -1311,6 +1222,32 @@ type Action = string & {
|
|
|
1311
1222
|
type ActionPattern = string & {
|
|
1312
1223
|
readonly __actionPattern: "ActionPattern";
|
|
1313
1224
|
};
|
|
1225
|
+
/** Wire schema for the same fixed/scoped credential references accepted by resourceCredentialBinding. */
|
|
1226
|
+
declare const RESOURCE_CREDENTIAL_BINDING_SCHEMA: {
|
|
1227
|
+
readonly anyOf: readonly [{
|
|
1228
|
+
readonly type: "string";
|
|
1229
|
+
readonly pattern: string;
|
|
1230
|
+
}, {
|
|
1231
|
+
readonly type: "object";
|
|
1232
|
+
readonly required: readonly ["kind", "key", "owner", "required"];
|
|
1233
|
+
readonly additionalProperties: false;
|
|
1234
|
+
readonly properties: {
|
|
1235
|
+
readonly kind: {
|
|
1236
|
+
readonly const: "scoped";
|
|
1237
|
+
};
|
|
1238
|
+
readonly key: {
|
|
1239
|
+
readonly type: "string";
|
|
1240
|
+
readonly pattern: string;
|
|
1241
|
+
};
|
|
1242
|
+
readonly owner: {
|
|
1243
|
+
readonly enum: readonly ["tenant", "customer", "principal"];
|
|
1244
|
+
};
|
|
1245
|
+
readonly required: {
|
|
1246
|
+
readonly type: "boolean";
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
}];
|
|
1250
|
+
};
|
|
1314
1251
|
declare function scopedBindingKey(value: unknown): ScopedBindingKey;
|
|
1315
1252
|
declare function resourceContractRef(value: unknown): ResourceContractRef;
|
|
1316
1253
|
declare function capabilityContractRef(value: unknown): CapabilityContractRef;
|
|
@@ -1320,7 +1257,8 @@ declare function memoryStoreBinding(value: unknown): MemoryStoreBinding;
|
|
|
1320
1257
|
declare function scopedCredentialRef(value: unknown): ScopedCredentialRef;
|
|
1321
1258
|
declare function agentResourceBinding(value: unknown): AgentResourceBinding;
|
|
1322
1259
|
declare function resourceCredentialBinding(value: unknown): ResourceCredentialBinding;
|
|
1323
|
-
|
|
1260
|
+
/** Canonical non-secret Credential selection carried by one invocation. */
|
|
1261
|
+
declare function invocationCredentialUses(value: unknown): Record<string, InvocationCredentialUse>;
|
|
1324
1262
|
declare function credentialRotationDefaults(value: unknown): CredentialRotationDefaults;
|
|
1325
1263
|
declare function resourceName(parts: ResourceNameParts): ResourceName;
|
|
1326
1264
|
declare function resourceDependencyRef<K extends ResourceKind>(value: unknown, expectedKinds: readonly K[]): ResourceDependencyRef<K>;
|
|
@@ -1346,6 +1284,23 @@ declare function normalizeSandboxNetworkPolicy(value: unknown, options?: {
|
|
|
1346
1284
|
allowPrivate?: boolean;
|
|
1347
1285
|
}): SandboxNetworkPolicy;
|
|
1348
1286
|
|
|
1287
|
+
interface SandboxGovernanceControls {
|
|
1288
|
+
command_timeout_ms: number;
|
|
1289
|
+
cpu: number;
|
|
1290
|
+
disk_gib: number;
|
|
1291
|
+
idle_stop_ms: number;
|
|
1292
|
+
max_concurrent_commands: number;
|
|
1293
|
+
max_file_bytes: number;
|
|
1294
|
+
memory_gib: number;
|
|
1295
|
+
network_cidrs: string[];
|
|
1296
|
+
network_domains: string[];
|
|
1297
|
+
network_egress: string | null;
|
|
1298
|
+
network_mode: "block-all" | "cidr-allow" | "domain-allow" | "managed-http" | "unrestricted";
|
|
1299
|
+
network_transport: "bridge" | "proxy" | null;
|
|
1300
|
+
permitted_paths: string[];
|
|
1301
|
+
}
|
|
1302
|
+
type SandboxGovernanceMeter = "commands" | "compute_ms" | "file_bytes" | "requests";
|
|
1303
|
+
|
|
1349
1304
|
interface GovernanceContractRef {
|
|
1350
1305
|
id: string;
|
|
1351
1306
|
version: string;
|
|
@@ -1378,22 +1333,6 @@ interface AdmissionLimitConstraint {
|
|
|
1378
1333
|
type AdmissionLimitInput<M extends string = string> = Omit<AdmissionLimitConstraint, "kind" | "contract" | "meter"> & {
|
|
1379
1334
|
meter: M;
|
|
1380
1335
|
};
|
|
1381
|
-
interface SandboxGovernanceControls {
|
|
1382
|
-
command_timeout_ms: number;
|
|
1383
|
-
cpu: number;
|
|
1384
|
-
disk_gib: number;
|
|
1385
|
-
idle_stop_ms: number;
|
|
1386
|
-
max_concurrent_commands: number;
|
|
1387
|
-
max_file_bytes: number;
|
|
1388
|
-
memory_gib: number;
|
|
1389
|
-
network_cidrs: string[];
|
|
1390
|
-
network_domains: string[];
|
|
1391
|
-
network_egress: string | null;
|
|
1392
|
-
network_mode: "block-all" | "cidr-allow" | "domain-allow" | "managed-http" | "unrestricted";
|
|
1393
|
-
network_transport: "bridge" | "proxy" | null;
|
|
1394
|
-
permitted_paths: string[];
|
|
1395
|
-
}
|
|
1396
|
-
type SandboxGovernanceMeter = "commands" | "compute_ms" | "file_bytes" | "requests";
|
|
1397
1336
|
interface ModelGovernanceControls {
|
|
1398
1337
|
max_input_tokens: number;
|
|
1399
1338
|
max_output_tokens: number;
|
|
@@ -1552,68 +1491,64 @@ interface AnalyticsClient {
|
|
|
1552
1491
|
}
|
|
1553
1492
|
declare function analyticsEvent<Dimension extends string, Metric extends string>(definition: AnalyticsEventDefinition<Dimension, Metric>): AnalyticsEventDefinition<Dimension, Metric>;
|
|
1554
1493
|
|
|
1555
|
-
interface
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
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
|
-
}>;
|
|
1494
|
+
interface ContainerImageReference {
|
|
1495
|
+
registry: string;
|
|
1496
|
+
repository: string;
|
|
1497
|
+
tag: string | null;
|
|
1498
|
+
digest: string | null;
|
|
1499
|
+
reference: string;
|
|
1500
|
+
}
|
|
1501
|
+
/** Immutable OCI identity before any provider-specific preparation. */
|
|
1502
|
+
interface ContainerImageSource {
|
|
1503
|
+
reference: string;
|
|
1504
|
+
digest: `sha256:${string}`;
|
|
1505
|
+
mediaType: string;
|
|
1506
|
+
bytes: number;
|
|
1507
|
+
platform: {
|
|
1508
|
+
os: string;
|
|
1509
|
+
architecture: string;
|
|
1510
|
+
variant?: string;
|
|
1511
|
+
};
|
|
1602
1512
|
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1513
|
+
/** Digest-pinned image selected for one Linux execution environment. Manifest
|
|
1514
|
+
* metadata is resolved by the runtime pull and recorded in its receipt. */
|
|
1515
|
+
interface ContainerImageSelection {
|
|
1516
|
+
reference: string;
|
|
1517
|
+
platform: {
|
|
1518
|
+
os: string;
|
|
1519
|
+
architecture: string;
|
|
1520
|
+
variant?: string;
|
|
1608
1521
|
};
|
|
1609
1522
|
}
|
|
1610
|
-
|
|
1523
|
+
interface ContainerRegistryResponse {
|
|
1524
|
+
status: number;
|
|
1525
|
+
headers: Record<string, string>;
|
|
1526
|
+
body: Uint8Array;
|
|
1527
|
+
}
|
|
1528
|
+
type ContainerRegistryRequest = (request: {
|
|
1529
|
+
url: string;
|
|
1530
|
+
method: "GET";
|
|
1531
|
+
headers: Record<string, string>;
|
|
1532
|
+
maximumBytes: number;
|
|
1533
|
+
}) => Promise<ContainerRegistryResponse>;
|
|
1534
|
+
/** Canonical Docker/OCI distribution reference. Tags remain mutable until the
|
|
1535
|
+
* owning registry resolver pins them; digests are preserved exactly. */
|
|
1536
|
+
declare function containerImageReference(value: string): ContainerImageReference;
|
|
1537
|
+
declare function immutableContainerImageReference(value: string): ContainerImageReference & {
|
|
1538
|
+
digest: `sha256:${string}`;
|
|
1539
|
+
};
|
|
1540
|
+
declare function containerImageSource(value: unknown): ContainerImageSource;
|
|
1541
|
+
declare function containerImageSelection(value: unknown): ContainerImageSelection;
|
|
1542
|
+
/** Resolve a mutable tag or multi-platform index exactly once to one immutable
|
|
1543
|
+
* manifest. The caller owns registry authentication and transport Policy. */
|
|
1544
|
+
declare function resolveContainerImageSource(reference: string, platform: ContainerImageSource["platform"], request: ContainerRegistryRequest, authorization?: string): Promise<ContainerImageSource>;
|
|
1611
1545
|
|
|
1612
1546
|
/** Canonicalize one provider-neutral path and keep it inside the logical workspace. */
|
|
1613
1547
|
declare function normalizeSandboxWorkspacePath(path: string, cwd?: string): string;
|
|
1614
1548
|
interface CreateSandboxOptions {
|
|
1615
1549
|
image?: SandboxImage;
|
|
1616
1550
|
resetImage?: boolean;
|
|
1551
|
+
execution?: ContainerImageSelection;
|
|
1617
1552
|
}
|
|
1618
1553
|
/**
|
|
1619
1554
|
* Optional immutable identity for a prepared image. Cache keys are supplied as
|
|
@@ -1631,81 +1566,54 @@ interface SandboxExecInput {
|
|
|
1631
1566
|
stdin?: string;
|
|
1632
1567
|
timeoutMs?: number;
|
|
1633
1568
|
outputs?: string[];
|
|
1634
|
-
/**
|
|
1569
|
+
/** Keep stdin open for governed process I/O until EOF or process termination. */
|
|
1570
|
+
interactive?: boolean;
|
|
1571
|
+
/** Stable caller-owned name for one interactive process in this Run. */
|
|
1572
|
+
processKey?: string;
|
|
1635
1573
|
credentials?: SandboxProcessCredentials;
|
|
1636
1574
|
}
|
|
1637
1575
|
interface SandboxProcessCredentials {
|
|
1576
|
+
/** Variable receives the Credential value. */
|
|
1638
1577
|
env?: Record<string, ResourceCredentialBinding>;
|
|
1578
|
+
/** Variable receives a memory-backed file path containing the value. */
|
|
1639
1579
|
files?: Record<string, ResourceCredentialBinding>;
|
|
1640
1580
|
}
|
|
1641
|
-
declare const
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
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>;
|
|
1581
|
+
declare const SANDBOX_PROCESS_IO_OPERATIONS: readonly ["process.status", "process.read", "process.write", "process.close"];
|
|
1582
|
+
declare const SANDBOX_PROCESS_OPERATIONS: readonly ["process.resolve", "process.status", "process.read", "process.write", "process.close", "process.stop"];
|
|
1583
|
+
type SandboxProcessIoOperation = typeof SANDBOX_PROCESS_IO_OPERATIONS[number];
|
|
1584
|
+
type SandboxProcessOperation = typeof SANDBOX_PROCESS_OPERATIONS[number];
|
|
1585
|
+
interface SandboxProcessReadInput {
|
|
1586
|
+
stream: "stdout" | "stderr";
|
|
1587
|
+
offset: number;
|
|
1588
|
+
limit: number;
|
|
1589
|
+
}
|
|
1590
|
+
interface SandboxProcessReadResult {
|
|
1591
|
+
/** Base64 bytes, which may split a UTF-8 character or application frame. */
|
|
1592
|
+
data: string;
|
|
1593
|
+
bytes: number;
|
|
1594
|
+
offset: number;
|
|
1595
|
+
returnedBytes: number;
|
|
1596
|
+
nextOffset: number;
|
|
1597
|
+
eof: boolean;
|
|
1598
|
+
}
|
|
1599
|
+
interface SandboxProcessWriteResult {
|
|
1600
|
+
id: string;
|
|
1601
|
+
status: "acknowledged" | "uncertain";
|
|
1602
|
+
bytes: number;
|
|
1603
|
+
}
|
|
1604
|
+
interface SandboxProcessStatus {
|
|
1605
|
+
process: string;
|
|
1606
|
+
status: string;
|
|
1607
|
+
generation: number | null;
|
|
1608
|
+
}
|
|
1609
|
+
interface SandboxProcess {
|
|
1610
|
+
readonly id: string;
|
|
1611
|
+
readonly execution: InvocationHandle<SandboxCommandResult> | null;
|
|
1612
|
+
status(opts?: InvokeOpts): InvocationHandle<SandboxProcessStatus>;
|
|
1613
|
+
read(input: SandboxProcessReadInput, opts?: InvokeOpts): InvocationHandle<SandboxProcessReadResult>;
|
|
1614
|
+
write(data: Uint8Array | string, opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
|
|
1615
|
+
closeStdin(opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
|
|
1616
|
+
stop(): Promise<void>;
|
|
1709
1617
|
}
|
|
1710
1618
|
interface SandboxCommandResult {
|
|
1711
1619
|
commandId: string;
|
|
@@ -1760,36 +1668,40 @@ interface SandboxImage {
|
|
|
1760
1668
|
readonly cacheKey: string | null;
|
|
1761
1669
|
delete(opts?: InvokeOpts): Promise<void>;
|
|
1762
1670
|
}
|
|
1763
|
-
/**
|
|
1764
|
-
interface
|
|
1765
|
-
readonly id: string;
|
|
1671
|
+
/** The authenticated Agent/Session workspace. Its physical sandbox is lazy. */
|
|
1672
|
+
interface SandboxWorkspace {
|
|
1766
1673
|
readonly pool: SandboxPool;
|
|
1767
1674
|
readonly agent: CRN;
|
|
1768
1675
|
readonly session: string;
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
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;
|
|
1676
|
+
exec(input: SandboxExecInput, opts?: InvokeOpts): InvocationHandle<SandboxCommandResult>;
|
|
1677
|
+
/** Admit ordinary exec without waiting for exit. Readiness is observable via I/O. */
|
|
1678
|
+
openProcess(input: SandboxExecInput, opts?: InvokeOpts): Promise<SandboxProcess>;
|
|
1679
|
+
/** Resolve a named process already owned by this authenticated Run. */
|
|
1680
|
+
resolveProcess(key: string, opts?: InvokeOpts): Promise<SandboxProcess | null>;
|
|
1778
1681
|
readFile(path: string, options?: SandboxReadFileOptions): Promise<SandboxReadFileResult>;
|
|
1779
1682
|
writeFile(path: string, content: string, options?: {
|
|
1780
1683
|
mode?: number;
|
|
1781
1684
|
invoke?: InvokeOpts;
|
|
1782
1685
|
}): Promise<SandboxWriteFileResult>;
|
|
1783
|
-
getFile(path: string, opts?: InvokeOpts):
|
|
1686
|
+
getFile(path: string, opts?: InvokeOpts): InvocationHandle<SandboxFileResult>;
|
|
1784
1687
|
putFile(path: string, ref: Ref, options?: {
|
|
1785
1688
|
mode?: number;
|
|
1786
1689
|
invoke?: InvokeOpts;
|
|
1787
|
-
}):
|
|
1788
|
-
deleteFile(path: string, opts?: InvokeOpts):
|
|
1690
|
+
}): InvocationHandle<SandboxMutationResult>;
|
|
1691
|
+
deleteFile(path: string, opts?: InvokeOpts): InvocationHandle<SandboxMutationResult>;
|
|
1692
|
+
}
|
|
1693
|
+
/** Explicit physical handle used only for lifecycle/image selection controls. */
|
|
1694
|
+
interface Sandbox extends SandboxWorkspace {
|
|
1695
|
+
readonly id: string;
|
|
1696
|
+
suspend(opts?: InvokeOpts): Promise<void>;
|
|
1697
|
+
resume(opts?: InvokeOpts): Promise<void>;
|
|
1698
|
+
delete(opts?: InvokeOpts): Promise<void>;
|
|
1789
1699
|
}
|
|
1790
1700
|
/** Provider-neutral factory and owner for images and logical sandboxes. */
|
|
1791
1701
|
interface SandboxPool {
|
|
1792
1702
|
readonly resource: CRN;
|
|
1703
|
+
/** Use the current authenticated Agent/Session workspace without creating it explicitly. */
|
|
1704
|
+
workspace(): SandboxWorkspace;
|
|
1793
1705
|
/** Capture an immutable image from a sandbox owned by this pool. */
|
|
1794
1706
|
createImage(sandbox: Sandbox, options?: CreateSandboxImageOptions, opts?: InvokeOpts): Promise<SandboxImage>;
|
|
1795
1707
|
/** Resolve an Agent-owned prepared image by its immutable environment digest. */
|
|
@@ -2044,9 +1956,9 @@ interface Handle<T> extends PromiseLike<T> {
|
|
|
2044
1956
|
readonly error: unknown | undefined;
|
|
2045
1957
|
cancel(): Promise<void>;
|
|
2046
1958
|
}
|
|
2047
|
-
/**
|
|
1959
|
+
/** An asynchronous Resource operation can be admitted before its result is
|
|
1960
|
+
* awaited. Admission is not proof that the external process is ready. */
|
|
2048
1961
|
interface InvocationHandle<T> extends Handle<T> {
|
|
2049
|
-
/** Start through normal authorization and admission; keep the invocation open until it settles. */
|
|
2050
1962
|
start(): Promise<void>;
|
|
2051
1963
|
}
|
|
2052
1964
|
interface CommitOpts {
|
|
@@ -2388,8 +2300,8 @@ interface InvokeOpts {
|
|
|
2388
2300
|
capability?: CapabilityRef;
|
|
2389
2301
|
timeoutMs?: number;
|
|
2390
2302
|
dedupeKey?: string;
|
|
2391
|
-
/** Credential
|
|
2392
|
-
credentials?: Record<string,
|
|
2303
|
+
/** Invocation-local Credential selections. Material never enters Agent code. */
|
|
2304
|
+
credentials?: Record<string, InvocationCredentialUse>;
|
|
2393
2305
|
}
|
|
2394
2306
|
interface CapabilityGrant {
|
|
2395
2307
|
actions: string[];
|
|
@@ -2397,38 +2309,28 @@ interface CapabilityGrant {
|
|
|
2397
2309
|
ttlMs: number;
|
|
2398
2310
|
reason: string;
|
|
2399
2311
|
}
|
|
2400
|
-
|
|
2401
|
-
interface ResourceOperation {
|
|
2312
|
+
interface BoundOperation {
|
|
2402
2313
|
op: string;
|
|
2403
|
-
hash: Hash;
|
|
2404
2314
|
description: string;
|
|
2405
|
-
schema:
|
|
2406
|
-
resultSchema:
|
|
2315
|
+
schema: unknown;
|
|
2316
|
+
resultSchema: unknown;
|
|
2407
2317
|
effect: EffectClass;
|
|
2408
2318
|
recovery: Recovery;
|
|
2409
2319
|
async: boolean;
|
|
2320
|
+
audience?: "agent" | "tool";
|
|
2410
2321
|
}
|
|
2411
2322
|
interface BoundResourceCapabilities {
|
|
2412
2323
|
crn: CRN;
|
|
2413
2324
|
kind: ResourceKind;
|
|
2325
|
+
version: string;
|
|
2414
2326
|
hash: Hash;
|
|
2415
|
-
catalogHash: Hash | null;
|
|
2416
2327
|
credentialSlots: string[];
|
|
2417
|
-
operations:
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
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
|
-
}>;
|
|
2328
|
+
operations: BoundOperation[];
|
|
2329
|
+
model?: {
|
|
2330
|
+
id: string;
|
|
2331
|
+
contextTokens?: number;
|
|
2332
|
+
maxOutputTokens?: number;
|
|
2333
|
+
};
|
|
2432
2334
|
}
|
|
2433
2335
|
interface Ctx {
|
|
2434
2336
|
turn(spec: TurnSpec): Promise<TurnRecord>;
|
|
@@ -2450,8 +2352,8 @@ interface Ctx {
|
|
|
2450
2352
|
reduce<I, O>(g: FoldFn<I, O> | SqlFold, over: Over<I>, opts?: ReduceOpts): Handle<ReduceFact>;
|
|
2451
2353
|
step<T>(name: string, fn: () => Promise<T>): Promise<T>;
|
|
2452
2354
|
resources: Record<string, CRN>;
|
|
2453
|
-
/**
|
|
2454
|
-
|
|
2355
|
+
/** Observe one accepted binding as a journaled local step; null means it is not bound. */
|
|
2356
|
+
describeResource(binding: string): Promise<BoundResourceCapabilities | null>;
|
|
2455
2357
|
/** Open a provider-neutral sandbox pool bound into this Run. */
|
|
2456
2358
|
sandboxPool(resource: CRN): SandboxPool;
|
|
2457
2359
|
invoke<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): Promise<T>;
|
|
@@ -2481,6 +2383,32 @@ interface AgentDef<S = unknown> {
|
|
|
2481
2383
|
}
|
|
2482
2384
|
type Agent<S = unknown> = AgentDef<S>;
|
|
2483
2385
|
|
|
2386
|
+
interface SkillDescription {
|
|
2387
|
+
id: string;
|
|
2388
|
+
description?: string;
|
|
2389
|
+
source?: string;
|
|
2390
|
+
}
|
|
2391
|
+
interface Skill extends SkillDescription {
|
|
2392
|
+
instructions: string;
|
|
2393
|
+
}
|
|
2394
|
+
interface LoadedSkill extends Skill {
|
|
2395
|
+
hash: string;
|
|
2396
|
+
}
|
|
2397
|
+
/** Discovery and storage belong to the caller. The SDK does not scan a filesystem. */
|
|
2398
|
+
interface SkillSource {
|
|
2399
|
+
list(ctx: Ctx): SkillDescription[] | Promise<SkillDescription[]>;
|
|
2400
|
+
load(id: string, ctx: Ctx): Skill | Promise<Skill>;
|
|
2401
|
+
needs?: Tool["needs"];
|
|
2402
|
+
maxEffect?: Tool["maxEffect"];
|
|
2403
|
+
}
|
|
2404
|
+
interface SkillLibrary {
|
|
2405
|
+
list(ctx: Ctx): Promise<SkillDescription[]>;
|
|
2406
|
+
load(id: string, ctx: Ctx): Promise<LoadedSkill>;
|
|
2407
|
+
tools: Record<string, Tool>;
|
|
2408
|
+
}
|
|
2409
|
+
/** Optional instructions exposed through ordinary model context and Tools. */
|
|
2410
|
+
declare function skills(input: readonly Skill[] | SkillSource): SkillLibrary;
|
|
2411
|
+
|
|
2484
2412
|
declare function validateTool(tool: Tool, path?: string): Tool;
|
|
2485
2413
|
declare function validateView<V extends ViewDef<any, any>>(view: V, path?: string): V;
|
|
2486
2414
|
declare function validatePartitionFn<I, O, R>(fn: PartitionFn<I, O, R>): PartitionFn<I, O, R>;
|
|
@@ -2911,160 +2839,6 @@ declare function credentialSetupState(requirement: AgentCredentialSetupRequireme
|
|
|
2911
2839
|
namespace: string;
|
|
2912
2840
|
}, inventory: readonly SetupCredentialCandidate[], binding: BindingAssignmentHead | null): CredentialSetupState;
|
|
2913
2841
|
|
|
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
|
-
|
|
3068
2842
|
declare const CONSTAL_API_CAPABILITY: "constal.api";
|
|
3069
2843
|
declare const CONSTAL_API_VERSION: "1";
|
|
3070
2844
|
declare const CONSTAL_API_OPERATIONS: readonly ["describe", "query", "get", "relations", "explainPolicy", "plan", "apply", "observe"];
|
|
@@ -3077,27 +2851,6 @@ interface ConstalApiObjectRef {
|
|
|
3077
2851
|
namespace: string | null;
|
|
3078
2852
|
version?: string | null;
|
|
3079
2853
|
}
|
|
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
|
-
}
|
|
3101
2854
|
interface ConstalApiChangePlanRequest {
|
|
3102
2855
|
objective: string;
|
|
3103
2856
|
operations: Array<{
|
|
@@ -3221,134 +2974,6 @@ declare const CONSTAL_API_MODEL_TOOL_DESCRIPTIONS: {
|
|
|
3221
2974
|
readonly query: "Query authorized Constal objects with bounded pagination and evidence. Select the exact lower-case singular kind from the schema enum; never pluralize, recase, or substitute an abstract kind. If context supplies platformToolContract.queryScope, copy it unchanged. Otherwise use only an exact namespace allowed by the delegated Run authority, and tenant scope only for an explicitly tenant-wide request. Use catalog-advertised fields and filters; constrained kinds require their advertised filter. Preserve next and evidence completeness.";
|
|
3222
2975
|
readonly get: "Retrieve one exact authorized Constal object or immutable revision. Pass a complete ref unchanged from query, relations, runtime inspection, or a governed receipt; never construct a kind, id, namespace, CRN, hash, or cursor from display text. The schema enum contains every supported addressable kind. For a Run, omit fields for complete diagnosis or request only documented top-level fields, and follow only the returned page cursor.";
|
|
3223
2976
|
};
|
|
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
|
-
};
|
|
3352
2977
|
/** Shared schemas pinned into the Resource catalog and Agent Tools. */
|
|
3353
2978
|
declare const CONSTAL_API_OPERATION_SCHEMAS: {
|
|
3354
2979
|
readonly describe: {
|
|
@@ -3356,7 +2981,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
|
|
|
3356
2981
|
readonly additionalProperties: false;
|
|
3357
2982
|
readonly properties: {
|
|
3358
2983
|
readonly domains: {
|
|
3359
|
-
readonly description: "Domain IDs returned in catalog.domains. Omit to discover across all domains.";
|
|
3360
2984
|
readonly type: "array";
|
|
3361
2985
|
readonly maxItems: 128;
|
|
3362
2986
|
readonly items: {
|
|
@@ -3896,71 +3520,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
|
|
|
3896
3520
|
};
|
|
3897
3521
|
};
|
|
3898
3522
|
|
|
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
|
-
|
|
3964
3523
|
interface PolicyDefinition {
|
|
3965
3524
|
id: string;
|
|
3966
3525
|
version: string;
|
|
@@ -4000,6 +3559,9 @@ interface CatalogTool extends Tool {
|
|
|
4000
3559
|
}
|
|
4001
3560
|
declare function opTool(binding: string, op: string, override?: Partial<Pick<Tool, "name" | "description" | "schema" | "tier" | "once" | "guard" | "preview">>): CatalogTool;
|
|
4002
3561
|
declare function opTools(binding: string, ops?: string[]): CatalogTool[];
|
|
3562
|
+
/** Optional model-facing access to bindings already accepted by this Run.
|
|
3563
|
+
* Installation, binding changes, authorization, and retries keep their existing owners. */
|
|
3564
|
+
declare const resourceTools: Record<"resource_list" | "resource_describe" | "resource_invoke", Tool>;
|
|
4003
3565
|
declare const WEB_FETCH_ARGUMENT_SCHEMA: {
|
|
4004
3566
|
readonly type: "object";
|
|
4005
3567
|
readonly required: readonly ["url"];
|
|
@@ -4380,6 +3942,48 @@ declare function credentialProviderSetupMetadata(value: unknown, slots: string[]
|
|
|
4380
3942
|
/** Defines and validates a Credential Provider package. */
|
|
4381
3943
|
declare function credentialProvider<C>(definition: CredentialProviderDefinition<C>): CredentialProviderPackage<C>;
|
|
4382
3944
|
|
|
3945
|
+
declare const MCP_PROTOCOL_VERSION = "2025-06-18";
|
|
3946
|
+
interface McpClientState {
|
|
3947
|
+
protocolVersion: string;
|
|
3948
|
+
nextRequestId: number;
|
|
3949
|
+
}
|
|
3950
|
+
interface McpMessageTransport {
|
|
3951
|
+
send(message: Record<string, unknown>): Promise<void>;
|
|
3952
|
+
receive(): Promise<unknown>;
|
|
3953
|
+
negotiated?(protocolVersion: string): void | Promise<void>;
|
|
3954
|
+
close(): Promise<void>;
|
|
3955
|
+
}
|
|
3956
|
+
interface McpClientOptions {
|
|
3957
|
+
state?: McpClientState;
|
|
3958
|
+
client?: {
|
|
3959
|
+
name: string;
|
|
3960
|
+
version: string;
|
|
3961
|
+
};
|
|
3962
|
+
onNotification?: (message: {
|
|
3963
|
+
method: string;
|
|
3964
|
+
params?: unknown;
|
|
3965
|
+
}) => void | Promise<void>;
|
|
3966
|
+
}
|
|
3967
|
+
declare function mcpToolDescription(value: unknown): Record<string, unknown>;
|
|
3968
|
+
declare function mcpToolResult(value: unknown): Record<string, unknown>;
|
|
3969
|
+
/** Protocol/session owner shared by Streamable HTTP and stdio transports.
|
|
3970
|
+
* The transport owns bytes; this client owns request correlation and MCP state. */
|
|
3971
|
+
declare class McpClient {
|
|
3972
|
+
#private;
|
|
3973
|
+
readonly transport: McpMessageTransport;
|
|
3974
|
+
readonly options: McpClientOptions;
|
|
3975
|
+
constructor(transport: McpMessageTransport, options?: McpClientOptions);
|
|
3976
|
+
state(): McpClientState;
|
|
3977
|
+
initialize(): Promise<{
|
|
3978
|
+
protocolVersion: string;
|
|
3979
|
+
server: Record<string, unknown>;
|
|
3980
|
+
}>;
|
|
3981
|
+
request(method: string, params: Record<string, unknown>): Promise<unknown>;
|
|
3982
|
+
tools(): Promise<Record<string, unknown>[]>;
|
|
3983
|
+
callTool(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
3984
|
+
close(): Promise<void>;
|
|
3985
|
+
}
|
|
3986
|
+
|
|
4383
3987
|
type CodeScorerRule = {
|
|
4384
3988
|
op: "all";
|
|
4385
3989
|
rules: CodeScorerRule[];
|
|
@@ -4545,5 +4149,5 @@ declare class SessionDeleted extends Error {
|
|
|
4545
4149
|
constructor(session: string);
|
|
4546
4150
|
}
|
|
4547
4151
|
|
|
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,
|
|
4549
|
-
export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent,
|
|
4152
|
+
export { AfterYield, ApiError, CONSTAL_API_CAPABILITY, CONSTAL_API_GET_KINDS, CONSTAL_API_MODEL_TOOL_DESCRIPTIONS, CONSTAL_API_OPERATIONS, CONSTAL_API_OPERATION_SCHEMAS, CONSTAL_API_QUERY_KINDS, CONSTAL_API_VERSION, CommitConflict, CommitGateRejected, CredentialRevoked, CredentialUnavailable, DirectNetworkDenied, EffectCeilingExceeded, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, McpClient, NondeterministicReplay, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TerminalIntegrationFailure, ToolUnavailable, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, containerImageReference, containerImageSelection, containerImageSource, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, sandboxControls, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scorerName, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupScreen, setupScreenView, setupSubmission, sha256Hex, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
|
|
4153
|
+
export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeployPolicy, AgentSetupMetadata, AgentSetupRequirement, AgentSetupWorkflow, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, AwaitPresentation, BatchSpec, BindingCRN, BindingOwnerContext, BindingOwnerScope, BoundOperation, BoundResourceCapabilities, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelAlarm, ChannelAlarmResult, ChannelContext, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionUsageReport, ConstalApiApplyRequest, ConstalApiChangePlan, ConstalApiChangePlanRef, ConstalApiChangePlanRequest, ConstalApiChangeReceipt, ConstalApiOperationReceipt, ContainerImageReference, ContainerImageSelection, ContainerImageSource, ContainerRegistryRequest, ContainerRegistryResponse, ControlEvent, Cost, CreateSandboxImageOptions, CreateSandboxOptions, CredentialCRN, CredentialDestroyResult, CredentialEvidence, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialProviderCRN, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, CredentialSetupState, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, EventBase, Fact, FactRef, FileEntry, FixedMemoryStoreRef, FixedModelGatewayRef, FoldFn, GateEvidence, GateResult, GateVerdict, GatewayCancelRequest, GatewayConfigEgressBinding, GatewayContext, GatewayCredentialSlotSetup, GatewayDefinition, GatewayDiscoverySetup, GatewayModelOffer, GatewayOperation, GatewayPackage, GatewayPackageMetadata, GatewayRecoveryRequest, GatewayRecoveryResult, GatewayRequest, GovernanceContractRef, Handle, HandleOutcome, Hash, HistoryView, IgnoredChannelEvent, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationAttachment, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationLifecycle, IntegrationReleaseContext, IntegrationSecret, IntegrationState, InvocationCredentialUse, InvocationHandle, InvokableKind, InvokeOpts, JsonScalar, JsonValue, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerEvent, LoadedSkill, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpClientOptions, McpClientState, McpMessageTransport, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCompletion, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelInvocationArgs, ModelInvocationResult, ModelTechnicalCapabilities, ModelTool, NormalizedModelGatewayConfig, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, Provenance, RawModelProtocol, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceDependencyRef, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourcePattern, ResourceSelector, RollbackReport, RunIdentityView, RunInfo, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandResult, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, SandboxProcess, SandboxProcessCredentials, SandboxProcessIoOperation, SandboxProcessOperation, SandboxProcessReadInput, SandboxProcessReadResult, SandboxProcessStatus, SandboxProcessWriteResult, SandboxReadFileOptions, SandboxReadFileResult, SandboxWorkspace, SandboxWriteFileResult, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Skill, SkillDescription, SkillLibrary, SkillSource, SortField, SpawnAttenuation, SpawnBudget, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingUsageUnits, TurnDraft, TurnGate, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };
|