@constal/sdk 3.3.1 → 3.5.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 +162 -146
- package/package.json +2 -3
- package/publish/api.json +66 -34
- package/publish/index.d.ts +528 -667
- package/publish/index.js +2250 -2303
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>;
|
|
@@ -588,6 +603,8 @@ declare function renderTrainingCompletion(input: unknown, expected?: unknown): {
|
|
|
588
603
|
|
|
589
604
|
/** Stable capability shared by configured Models and directly bound Gateways. */
|
|
590
605
|
declare const MODEL_COMPLETION_CAPABILITY: CapabilityContractRef;
|
|
606
|
+
/** Capability of Gateways that evaluate state against typed questions (`evaluate`), alongside or instead of completion. */
|
|
607
|
+
declare const MODEL_EVALUATION_CAPABILITY: CapabilityContractRef;
|
|
591
608
|
type ModelGatewayProtocol = "anthropic" | "openai";
|
|
592
609
|
type RawModelProtocol = ModelGatewayProtocol | "bedrock";
|
|
593
610
|
/** Optional generation choices. Supported effort values are defined by the selected model. */
|
|
@@ -595,37 +612,7 @@ interface ModelGenerationOptions {
|
|
|
595
612
|
maxOutputTokens?: number;
|
|
596
613
|
temperature?: number;
|
|
597
614
|
effort?: string;
|
|
598
|
-
/** Additional fields in the selected provider's request format. */
|
|
599
|
-
providerOptions?: Record<string, unknown>;
|
|
600
615
|
}
|
|
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
616
|
/** Preserve absence: defaults belong to the configured Model or upstream provider. */
|
|
630
617
|
declare function modelGenerationOptions(source: ModelGenerationOptions): ModelGenerationOptions;
|
|
631
618
|
interface ModelTool {
|
|
@@ -640,6 +627,8 @@ interface ModelInvocationArgs extends ModelGenerationOptions {
|
|
|
640
627
|
system?: string;
|
|
641
628
|
objective?: unknown;
|
|
642
629
|
context?: unknown;
|
|
630
|
+
/** Earlier exchanges, oldest first. Each is one message of its own so the prompt prefix grows by appending. */
|
|
631
|
+
history?: ModelHistoryMessage[];
|
|
643
632
|
tools?: ModelTool[];
|
|
644
633
|
/** Constrain whether an offered Tool must be selected for this generation. */
|
|
645
634
|
toolChoice?: "auto" | "required";
|
|
@@ -703,7 +692,16 @@ interface ModelInvocationResult {
|
|
|
703
692
|
}
|
|
704
693
|
declare function normalizeModelGatewayConfig(value: unknown): NormalizedModelGatewayConfig;
|
|
705
694
|
declare function modelGatewayEndpoint(config: Pick<ModelGatewayConfig, "baseUrl" | "protocol">): URL;
|
|
695
|
+
interface ModelHistoryMessage {
|
|
696
|
+
role: "user" | "assistant";
|
|
697
|
+
content: string;
|
|
698
|
+
}
|
|
699
|
+
/** Canonical (sorted-key) JSON: the same objective and context render to the same text whether their objects were built live
|
|
700
|
+
* or loaded back from storage, so a provider's prompt cache keeps matching from one turn to the next. */
|
|
706
701
|
declare function modelPrompt(args: ModelInvocationArgs): string;
|
|
702
|
+
/** The messages of one turn: the static objective and context first, then each earlier exchange as its own message, then
|
|
703
|
+
* feedback about the previous attempt. Without history this is the single prompt message it always was. */
|
|
704
|
+
declare function modelMessages(args: ModelInvocationArgs): ModelHistoryMessage[];
|
|
707
705
|
declare function modelProtocolRequest(protocol: ModelGatewayProtocol, model: string, maxOutputTokens: number, temperature: number | null, args: ModelInvocationArgs): Record<string, unknown>;
|
|
708
706
|
declare function modelProtocolResult(protocol: ModelGatewayProtocol, raw: unknown, provider: string, model: string): ModelInvocationResult;
|
|
709
707
|
|
|
@@ -802,6 +800,8 @@ interface GatewayDefinition<C = unknown> extends Omit<GatewayPackageMetadata, "l
|
|
|
802
800
|
invoke(request: ConnectionRequest, context: IntegrationContext): Promise<unknown>;
|
|
803
801
|
reconcile?(request: ConnectionRecoveryRequest, context: IntegrationContext): Promise<ConnectionRecoveryResult>;
|
|
804
802
|
cancel?(request: ConnectionCancelRequest, context: IntegrationContext): Promise<void>;
|
|
803
|
+
/** Idempotent cleanup of retained operation attachments. May run after restart. */
|
|
804
|
+
release?(attachment: IntegrationAttachment, context: IntegrationReleaseContext): Promise<void>;
|
|
805
805
|
}
|
|
806
806
|
/** A provider-neutral Training Provider authored on the ordinary Connection package substrate. */
|
|
807
807
|
interface TrainingProviderDefinition<C = unknown> extends GatewayDefinition<C> {
|
|
@@ -822,67 +822,9 @@ type GatewayRecoveryRequest<A = unknown> = ConnectionRecoveryRequest<A>;
|
|
|
822
822
|
type GatewayCancelRequest = ConnectionCancelRequest;
|
|
823
823
|
type GatewayRecoveryResult = ConnectionRecoveryResult;
|
|
824
824
|
type GatewayContext = IntegrationContext;
|
|
825
|
-
interface GatewayPackageRef {
|
|
826
|
-
publisher: string;
|
|
827
|
-
namespace: string;
|
|
828
|
-
id: string;
|
|
829
|
-
version: string;
|
|
830
|
-
hash: string;
|
|
831
|
-
}
|
|
832
825
|
declare function checkpointImportMetadata(value: unknown): CheckpointImportMetadata;
|
|
833
826
|
declare function checkpointImportRequest(value: unknown): CheckpointImportRequest;
|
|
834
827
|
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
828
|
declare function gatewayModelOffer(value: unknown): GatewayModelOffer;
|
|
887
829
|
declare function gatewayPackageMetadata(value: unknown): GatewayPackageMetadata;
|
|
888
830
|
/** Compiles package setup templates into an exact, immutable Resource egress policy. */
|
|
@@ -1064,32 +1006,14 @@ interface ScopedCredentialRef {
|
|
|
1064
1006
|
}
|
|
1065
1007
|
type AgentResourceBinding = CRN | ScopedResourceRef;
|
|
1066
1008
|
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
|
-
};
|
|
1009
|
+
interface InvocationCredentialUse {
|
|
1010
|
+
binding: ResourceCredentialBinding;
|
|
1011
|
+
consumer: {
|
|
1012
|
+
kind: "process";
|
|
1013
|
+
delivery: "env" | "file";
|
|
1014
|
+
name: string;
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1093
1017
|
interface BindingAssignmentRevision {
|
|
1094
1018
|
binding: BindingCRN;
|
|
1095
1019
|
revisionHash: Hash;
|
|
@@ -1223,6 +1147,39 @@ declare function agentSetupRequirements(value: unknown, options?: {
|
|
|
1223
1147
|
declare function agentSetupMetadata(value: unknown, options?: {
|
|
1224
1148
|
allowLegacyTenantOwner?: boolean;
|
|
1225
1149
|
}): AgentSetupMetadata;
|
|
1150
|
+
declare const AGENT_UI_DEFAULTS: Readonly<{
|
|
1151
|
+
limits: Readonly<{
|
|
1152
|
+
requestBodyBytes: 131072;
|
|
1153
|
+
responseBodyBytes: 4194304;
|
|
1154
|
+
cpuMs: 1000;
|
|
1155
|
+
subrequests: 8;
|
|
1156
|
+
}>;
|
|
1157
|
+
storage: Readonly<{
|
|
1158
|
+
kind: "sqlite";
|
|
1159
|
+
maximumBytes: 268435456;
|
|
1160
|
+
maximumRowsReadPerRequest: 10000;
|
|
1161
|
+
maximumRowsWrittenPerRequest: 1000;
|
|
1162
|
+
maximumResultBytes: 1048576;
|
|
1163
|
+
}>;
|
|
1164
|
+
}>;
|
|
1165
|
+
/** The `ui` block of constal.agent.json: owns the UI Resource published with the Agent revision. */
|
|
1166
|
+
interface AgentUiDeclaration {
|
|
1167
|
+
id: string;
|
|
1168
|
+
displayName: string;
|
|
1169
|
+
description: string;
|
|
1170
|
+
source: string;
|
|
1171
|
+
channel: ResourceDependencyRef<"channel">;
|
|
1172
|
+
access: {
|
|
1173
|
+
mode: "public";
|
|
1174
|
+
} | {
|
|
1175
|
+
mode: "authenticated";
|
|
1176
|
+
authProvider: ResourceDependencyRef<"auth-provider">;
|
|
1177
|
+
};
|
|
1178
|
+
execution: UiExecution;
|
|
1179
|
+
limits: UiResource["limits"];
|
|
1180
|
+
labels: Record<string, string>;
|
|
1181
|
+
}
|
|
1182
|
+
declare function agentUiDeclaration(value: unknown): AgentUiDeclaration;
|
|
1226
1183
|
/** Route to tenant-local Agents or to explicitly authorized Channel subscriptions. */
|
|
1227
1184
|
type ChannelTarget = ResourceSelector<"agent"> | {
|
|
1228
1185
|
resourceKind: "channel";
|
|
@@ -1311,6 +1268,32 @@ type Action = string & {
|
|
|
1311
1268
|
type ActionPattern = string & {
|
|
1312
1269
|
readonly __actionPattern: "ActionPattern";
|
|
1313
1270
|
};
|
|
1271
|
+
/** Wire schema for the same fixed/scoped credential references accepted by resourceCredentialBinding. */
|
|
1272
|
+
declare const RESOURCE_CREDENTIAL_BINDING_SCHEMA: {
|
|
1273
|
+
readonly anyOf: readonly [{
|
|
1274
|
+
readonly type: "string";
|
|
1275
|
+
readonly pattern: string;
|
|
1276
|
+
}, {
|
|
1277
|
+
readonly type: "object";
|
|
1278
|
+
readonly required: readonly ["kind", "key", "owner", "required"];
|
|
1279
|
+
readonly additionalProperties: false;
|
|
1280
|
+
readonly properties: {
|
|
1281
|
+
readonly kind: {
|
|
1282
|
+
readonly const: "scoped";
|
|
1283
|
+
};
|
|
1284
|
+
readonly key: {
|
|
1285
|
+
readonly type: "string";
|
|
1286
|
+
readonly pattern: string;
|
|
1287
|
+
};
|
|
1288
|
+
readonly owner: {
|
|
1289
|
+
readonly enum: readonly ["tenant", "customer", "principal"];
|
|
1290
|
+
};
|
|
1291
|
+
readonly required: {
|
|
1292
|
+
readonly type: "boolean";
|
|
1293
|
+
};
|
|
1294
|
+
};
|
|
1295
|
+
}];
|
|
1296
|
+
};
|
|
1314
1297
|
declare function scopedBindingKey(value: unknown): ScopedBindingKey;
|
|
1315
1298
|
declare function resourceContractRef(value: unknown): ResourceContractRef;
|
|
1316
1299
|
declare function capabilityContractRef(value: unknown): CapabilityContractRef;
|
|
@@ -1320,7 +1303,8 @@ declare function memoryStoreBinding(value: unknown): MemoryStoreBinding;
|
|
|
1320
1303
|
declare function scopedCredentialRef(value: unknown): ScopedCredentialRef;
|
|
1321
1304
|
declare function agentResourceBinding(value: unknown): AgentResourceBinding;
|
|
1322
1305
|
declare function resourceCredentialBinding(value: unknown): ResourceCredentialBinding;
|
|
1323
|
-
|
|
1306
|
+
/** Canonical non-secret Credential selection carried by one invocation. */
|
|
1307
|
+
declare function invocationCredentialUses(value: unknown): Record<string, InvocationCredentialUse>;
|
|
1324
1308
|
declare function credentialRotationDefaults(value: unknown): CredentialRotationDefaults;
|
|
1325
1309
|
declare function resourceName(parts: ResourceNameParts): ResourceName;
|
|
1326
1310
|
declare function resourceDependencyRef<K extends ResourceKind>(value: unknown, expectedKinds: readonly K[]): ResourceDependencyRef<K>;
|
|
@@ -1346,6 +1330,23 @@ declare function normalizeSandboxNetworkPolicy(value: unknown, options?: {
|
|
|
1346
1330
|
allowPrivate?: boolean;
|
|
1347
1331
|
}): SandboxNetworkPolicy;
|
|
1348
1332
|
|
|
1333
|
+
interface SandboxGovernanceControls {
|
|
1334
|
+
command_timeout_ms: number;
|
|
1335
|
+
cpu: number;
|
|
1336
|
+
disk_gib: number;
|
|
1337
|
+
idle_stop_ms: number;
|
|
1338
|
+
max_concurrent_commands: number;
|
|
1339
|
+
max_file_bytes: number;
|
|
1340
|
+
memory_gib: number;
|
|
1341
|
+
network_cidrs: string[];
|
|
1342
|
+
network_domains: string[];
|
|
1343
|
+
network_egress: string | null;
|
|
1344
|
+
network_mode: "block-all" | "cidr-allow" | "domain-allow" | "managed-http" | "unrestricted";
|
|
1345
|
+
network_transport: "bridge" | "proxy" | null;
|
|
1346
|
+
permitted_paths: string[];
|
|
1347
|
+
}
|
|
1348
|
+
type SandboxGovernanceMeter = "commands" | "compute_ms" | "file_bytes" | "requests";
|
|
1349
|
+
|
|
1349
1350
|
interface GovernanceContractRef {
|
|
1350
1351
|
id: string;
|
|
1351
1352
|
version: string;
|
|
@@ -1378,22 +1379,6 @@ interface AdmissionLimitConstraint {
|
|
|
1378
1379
|
type AdmissionLimitInput<M extends string = string> = Omit<AdmissionLimitConstraint, "kind" | "contract" | "meter"> & {
|
|
1379
1380
|
meter: M;
|
|
1380
1381
|
};
|
|
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
1382
|
interface ModelGovernanceControls {
|
|
1398
1383
|
max_input_tokens: number;
|
|
1399
1384
|
max_output_tokens: number;
|
|
@@ -1552,68 +1537,64 @@ interface AnalyticsClient {
|
|
|
1552
1537
|
}
|
|
1553
1538
|
declare function analyticsEvent<Dimension extends string, Metric extends string>(definition: AnalyticsEventDefinition<Dimension, Metric>): AnalyticsEventDefinition<Dimension, Metric>;
|
|
1554
1539
|
|
|
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
|
-
}>;
|
|
1540
|
+
interface ContainerImageReference {
|
|
1541
|
+
registry: string;
|
|
1542
|
+
repository: string;
|
|
1543
|
+
tag: string | null;
|
|
1544
|
+
digest: string | null;
|
|
1545
|
+
reference: string;
|
|
1546
|
+
}
|
|
1547
|
+
/** Immutable OCI identity before any provider-specific preparation. */
|
|
1548
|
+
interface ContainerImageSource {
|
|
1549
|
+
reference: string;
|
|
1550
|
+
digest: `sha256:${string}`;
|
|
1551
|
+
mediaType: string;
|
|
1552
|
+
bytes: number;
|
|
1553
|
+
platform: {
|
|
1554
|
+
os: string;
|
|
1555
|
+
architecture: string;
|
|
1556
|
+
variant?: string;
|
|
1557
|
+
};
|
|
1602
1558
|
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1559
|
+
/** Digest-pinned image selected for one Linux execution environment. Manifest
|
|
1560
|
+
* metadata is resolved by the runtime pull and recorded in its receipt. */
|
|
1561
|
+
interface ContainerImageSelection {
|
|
1562
|
+
reference: string;
|
|
1563
|
+
platform: {
|
|
1564
|
+
os: string;
|
|
1565
|
+
architecture: string;
|
|
1566
|
+
variant?: string;
|
|
1608
1567
|
};
|
|
1609
1568
|
}
|
|
1610
|
-
|
|
1569
|
+
interface ContainerRegistryResponse {
|
|
1570
|
+
status: number;
|
|
1571
|
+
headers: Record<string, string>;
|
|
1572
|
+
body: Uint8Array;
|
|
1573
|
+
}
|
|
1574
|
+
type ContainerRegistryRequest = (request: {
|
|
1575
|
+
url: string;
|
|
1576
|
+
method: "GET";
|
|
1577
|
+
headers: Record<string, string>;
|
|
1578
|
+
maximumBytes: number;
|
|
1579
|
+
}) => Promise<ContainerRegistryResponse>;
|
|
1580
|
+
/** Canonical Docker/OCI distribution reference. Tags remain mutable until the
|
|
1581
|
+
* owning registry resolver pins them; digests are preserved exactly. */
|
|
1582
|
+
declare function containerImageReference(value: string): ContainerImageReference;
|
|
1583
|
+
declare function immutableContainerImageReference(value: string): ContainerImageReference & {
|
|
1584
|
+
digest: `sha256:${string}`;
|
|
1585
|
+
};
|
|
1586
|
+
declare function containerImageSource(value: unknown): ContainerImageSource;
|
|
1587
|
+
declare function containerImageSelection(value: unknown): ContainerImageSelection;
|
|
1588
|
+
/** Resolve a mutable tag or multi-platform index exactly once to one immutable
|
|
1589
|
+
* manifest. The caller owns registry authentication and transport Policy. */
|
|
1590
|
+
declare function resolveContainerImageSource(reference: string, platform: ContainerImageSource["platform"], request: ContainerRegistryRequest, authorization?: string): Promise<ContainerImageSource>;
|
|
1611
1591
|
|
|
1612
1592
|
/** Canonicalize one provider-neutral path and keep it inside the logical workspace. */
|
|
1613
1593
|
declare function normalizeSandboxWorkspacePath(path: string, cwd?: string): string;
|
|
1614
1594
|
interface CreateSandboxOptions {
|
|
1615
1595
|
image?: SandboxImage;
|
|
1616
1596
|
resetImage?: boolean;
|
|
1597
|
+
execution?: ContainerImageSelection;
|
|
1617
1598
|
}
|
|
1618
1599
|
/**
|
|
1619
1600
|
* Optional immutable identity for a prepared image. Cache keys are supplied as
|
|
@@ -1631,89 +1612,74 @@ interface SandboxExecInput {
|
|
|
1631
1612
|
stdin?: string;
|
|
1632
1613
|
timeoutMs?: number;
|
|
1633
1614
|
outputs?: string[];
|
|
1634
|
-
/**
|
|
1615
|
+
/** Upload stdout and stderr to content-addressed storage even when
|
|
1616
|
+
* `stdoutPreview` holds them completely. By default output stays on the
|
|
1617
|
+
* sandbox disk and `stdoutRef`/`stderrRef` are null unless the preview was
|
|
1618
|
+
* truncated or outputs were declared. */
|
|
1619
|
+
retain?: boolean;
|
|
1620
|
+
/** Keep stdin open for governed process I/O until EOF or process termination. */
|
|
1621
|
+
interactive?: boolean;
|
|
1622
|
+
/** Stable caller-owned name for one interactive process in this Run. */
|
|
1623
|
+
processKey?: string;
|
|
1635
1624
|
credentials?: SandboxProcessCredentials;
|
|
1636
1625
|
}
|
|
1637
1626
|
interface SandboxProcessCredentials {
|
|
1627
|
+
/** Variable receives the Credential value. */
|
|
1638
1628
|
env?: Record<string, ResourceCredentialBinding>;
|
|
1629
|
+
/** Variable receives a memory-backed file path containing the value. */
|
|
1639
1630
|
files?: Record<string, ResourceCredentialBinding>;
|
|
1640
1631
|
}
|
|
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>;
|
|
1632
|
+
declare const SANDBOX_PROCESS_IO_OPERATIONS: readonly ["process.status", "process.read", "process.write", "process.close"];
|
|
1633
|
+
declare const SANDBOX_PROCESS_OPERATIONS: readonly ["process.resolve", "process.status", "process.read", "process.write", "process.close", "process.stop"];
|
|
1634
|
+
type SandboxProcessIoOperation = typeof SANDBOX_PROCESS_IO_OPERATIONS[number];
|
|
1635
|
+
type SandboxProcessOperation = typeof SANDBOX_PROCESS_OPERATIONS[number];
|
|
1636
|
+
interface SandboxProcessReadInput {
|
|
1637
|
+
stream: "stdout" | "stderr";
|
|
1638
|
+
offset: number;
|
|
1639
|
+
limit: number;
|
|
1640
|
+
}
|
|
1641
|
+
interface SandboxProcessReadResult {
|
|
1642
|
+
/** Base64 bytes, which may split a UTF-8 character or application frame. */
|
|
1643
|
+
data: string;
|
|
1644
|
+
bytes: number;
|
|
1645
|
+
offset: number;
|
|
1646
|
+
returnedBytes: number;
|
|
1647
|
+
nextOffset: number;
|
|
1648
|
+
eof: boolean;
|
|
1649
|
+
}
|
|
1650
|
+
interface SandboxProcessWriteResult {
|
|
1651
|
+
id: string;
|
|
1652
|
+
status: "acknowledged" | "uncertain";
|
|
1653
|
+
bytes: number;
|
|
1654
|
+
}
|
|
1655
|
+
interface SandboxProcessStatus {
|
|
1656
|
+
process: string;
|
|
1657
|
+
status: string;
|
|
1658
|
+
generation: number | null;
|
|
1659
|
+
}
|
|
1660
|
+
interface SandboxProcess {
|
|
1661
|
+
readonly id: string;
|
|
1662
|
+
readonly execution: InvocationHandle<SandboxCommandResult> | null;
|
|
1663
|
+
status(opts?: InvokeOpts): InvocationHandle<SandboxProcessStatus>;
|
|
1664
|
+
read(input: SandboxProcessReadInput, opts?: InvokeOpts): InvocationHandle<SandboxProcessReadResult>;
|
|
1665
|
+
write(data: Uint8Array | string, opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
|
|
1666
|
+
closeStdin(opts?: InvokeOpts): InvocationHandle<SandboxProcessWriteResult>;
|
|
1667
|
+
stop(): Promise<void>;
|
|
1709
1668
|
}
|
|
1710
1669
|
interface SandboxCommandResult {
|
|
1711
1670
|
commandId: string;
|
|
1712
1671
|
status: "completed" | "failed" | "timeout" | "cancelled" | "lease-lost";
|
|
1713
1672
|
exitCode: number | null;
|
|
1714
1673
|
stdoutPreview: string;
|
|
1674
|
+
stderrPreview: string;
|
|
1715
1675
|
stdoutRef: Ref | null;
|
|
1716
1676
|
stderrRef: Ref | null;
|
|
1677
|
+
/** Whether the stream holds more than its preview shows. Absent from results that predate it. */
|
|
1678
|
+
stdoutTruncated?: boolean;
|
|
1679
|
+
stderrTruncated?: boolean;
|
|
1680
|
+
/** The stream's size in bytes; null when it was truncated and not retained. Absent from results that predate it. */
|
|
1681
|
+
stdoutBytes?: number | null;
|
|
1682
|
+
stderrBytes?: number | null;
|
|
1717
1683
|
outputs: {
|
|
1718
1684
|
path: string;
|
|
1719
1685
|
ref: Ref;
|
|
@@ -1760,36 +1726,40 @@ interface SandboxImage {
|
|
|
1760
1726
|
readonly cacheKey: string | null;
|
|
1761
1727
|
delete(opts?: InvokeOpts): Promise<void>;
|
|
1762
1728
|
}
|
|
1763
|
-
/**
|
|
1764
|
-
interface
|
|
1765
|
-
readonly id: string;
|
|
1729
|
+
/** The authenticated Agent/Session workspace. Its physical sandbox is lazy. */
|
|
1730
|
+
interface SandboxWorkspace {
|
|
1766
1731
|
readonly pool: SandboxPool;
|
|
1767
1732
|
readonly agent: CRN;
|
|
1768
1733
|
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;
|
|
1734
|
+
exec(input: SandboxExecInput, opts?: InvokeOpts): InvocationHandle<SandboxCommandResult>;
|
|
1735
|
+
/** Admit ordinary exec without waiting for exit. Readiness is observable via I/O. */
|
|
1736
|
+
openProcess(input: SandboxExecInput, opts?: InvokeOpts): Promise<SandboxProcess>;
|
|
1737
|
+
/** Resolve a named process already owned by this authenticated Run. */
|
|
1738
|
+
resolveProcess(key: string, opts?: InvokeOpts): Promise<SandboxProcess | null>;
|
|
1778
1739
|
readFile(path: string, options?: SandboxReadFileOptions): Promise<SandboxReadFileResult>;
|
|
1779
1740
|
writeFile(path: string, content: string, options?: {
|
|
1780
1741
|
mode?: number;
|
|
1781
1742
|
invoke?: InvokeOpts;
|
|
1782
1743
|
}): Promise<SandboxWriteFileResult>;
|
|
1783
|
-
getFile(path: string, opts?: InvokeOpts):
|
|
1744
|
+
getFile(path: string, opts?: InvokeOpts): InvocationHandle<SandboxFileResult>;
|
|
1784
1745
|
putFile(path: string, ref: Ref, options?: {
|
|
1785
1746
|
mode?: number;
|
|
1786
1747
|
invoke?: InvokeOpts;
|
|
1787
|
-
}):
|
|
1788
|
-
deleteFile(path: string, opts?: InvokeOpts):
|
|
1748
|
+
}): InvocationHandle<SandboxMutationResult>;
|
|
1749
|
+
deleteFile(path: string, opts?: InvokeOpts): InvocationHandle<SandboxMutationResult>;
|
|
1750
|
+
}
|
|
1751
|
+
/** Explicit physical handle used only for lifecycle/image selection controls. */
|
|
1752
|
+
interface Sandbox extends SandboxWorkspace {
|
|
1753
|
+
readonly id: string;
|
|
1754
|
+
suspend(opts?: InvokeOpts): Promise<void>;
|
|
1755
|
+
resume(opts?: InvokeOpts): Promise<void>;
|
|
1756
|
+
delete(opts?: InvokeOpts): Promise<void>;
|
|
1789
1757
|
}
|
|
1790
1758
|
/** Provider-neutral factory and owner for images and logical sandboxes. */
|
|
1791
1759
|
interface SandboxPool {
|
|
1792
1760
|
readonly resource: CRN;
|
|
1761
|
+
/** Use the current authenticated Agent/Session workspace without creating it explicitly. */
|
|
1762
|
+
workspace(): SandboxWorkspace;
|
|
1793
1763
|
/** Capture an immutable image from a sandbox owned by this pool. */
|
|
1794
1764
|
createImage(sandbox: Sandbox, options?: CreateSandboxImageOptions, opts?: InvokeOpts): Promise<SandboxImage>;
|
|
1795
1765
|
/** Resolve an Agent-owned prepared image by its immutable environment digest. */
|
|
@@ -1798,6 +1768,115 @@ interface SandboxPool {
|
|
|
1798
1768
|
createSandbox(agent: CRN, session: string, options?: CreateSandboxOptions, opts?: InvokeOpts): Promise<Sandbox>;
|
|
1799
1769
|
}
|
|
1800
1770
|
|
|
1771
|
+
/**
|
|
1772
|
+
* Model evaluation: one shared state judged against a map of typed questions,
|
|
1773
|
+
* answered with constrained values and probabilities instead of generated
|
|
1774
|
+
* prose. The contract mirrors System One models such as TypeSafe Jev, where
|
|
1775
|
+
* every question in a request is evaluated independently and in parallel.
|
|
1776
|
+
*/
|
|
1777
|
+
/** JSON structure accepted wherever an evaluation model reads structure: state, instructions, option and level descriptions, and Noul criteria. */
|
|
1778
|
+
type EvaluationEntry = string | number | boolean | null | EvaluationEntry[] | {
|
|
1779
|
+
[key: string]: EvaluationEntry;
|
|
1780
|
+
};
|
|
1781
|
+
/** Pick exactly one option from a fixed, unordered set. Option keys are the values returned to the Agent. */
|
|
1782
|
+
interface ChoiceQuestion {
|
|
1783
|
+
type: "choice";
|
|
1784
|
+
instructions: EvaluationEntry;
|
|
1785
|
+
/** Option key to description. `null` leaves the option undescribed. */
|
|
1786
|
+
criteria: {
|
|
1787
|
+
[option: string]: EvaluationEntry;
|
|
1788
|
+
};
|
|
1789
|
+
}
|
|
1790
|
+
/** Place the state on an ordered scale. Levels are described in order from the lowest index. */
|
|
1791
|
+
interface ScoreQuestion {
|
|
1792
|
+
type: "score";
|
|
1793
|
+
instructions: EvaluationEntry;
|
|
1794
|
+
/** At least two ordered level descriptions; the answer is a probability-weighted position along them. */
|
|
1795
|
+
criteria: readonly EvaluationEntry[];
|
|
1796
|
+
}
|
|
1797
|
+
/** Estimate the probability that a statement about the state is true. */
|
|
1798
|
+
interface NoulQuestion {
|
|
1799
|
+
type: "noul";
|
|
1800
|
+
instructions: EvaluationEntry;
|
|
1801
|
+
/** Optional descriptions of what yes (near 1) and no (near 0) mean. */
|
|
1802
|
+
criteria?: {
|
|
1803
|
+
true?: EvaluationEntry;
|
|
1804
|
+
false?: EvaluationEntry;
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
type EvaluationQuestion = ChoiceQuestion | ScoreQuestion | NoulQuestion;
|
|
1808
|
+
type EvaluationQuestions = {
|
|
1809
|
+
[id: string]: EvaluationQuestion;
|
|
1810
|
+
};
|
|
1811
|
+
interface ChoiceAnswer<Option extends string = string> {
|
|
1812
|
+
type: "choice";
|
|
1813
|
+
/** The highest-probability option. */
|
|
1814
|
+
choice: Option;
|
|
1815
|
+
/** Every option mapped to its probability; the values sum to one. */
|
|
1816
|
+
probabilities: Record<Option, number>;
|
|
1817
|
+
/** How peaked the distribution is, from 0 to 1. */
|
|
1818
|
+
confidence: number;
|
|
1819
|
+
}
|
|
1820
|
+
interface ScoreAnswer {
|
|
1821
|
+
type: "score";
|
|
1822
|
+
/** Probability-weighted position along the levels; may fall between two of them. */
|
|
1823
|
+
score: number;
|
|
1824
|
+
/** Each level index, as a string key, mapped back to its description. */
|
|
1825
|
+
legend: Record<string, EvaluationEntry>;
|
|
1826
|
+
/** Each level index, as a string key, mapped to its probability; the values sum to one. */
|
|
1827
|
+
probabilities: Record<string, number>;
|
|
1828
|
+
confidence: number;
|
|
1829
|
+
}
|
|
1830
|
+
interface NoulAnswer {
|
|
1831
|
+
type: "noul";
|
|
1832
|
+
/** Probability that the statement is true, from 0 to 1. Noul carries no separate confidence. */
|
|
1833
|
+
noul: number;
|
|
1834
|
+
}
|
|
1835
|
+
type EvaluationAnswer = ChoiceAnswer | ScoreAnswer | NoulAnswer;
|
|
1836
|
+
/** The typed answer a question shape produces; Choice answers keep the literal option keys of their criteria. */
|
|
1837
|
+
type EvaluationAnswerFor<Q> = Q extends ChoiceQuestion ? ChoiceAnswer<Extract<keyof Q["criteria"], string>> : Q extends ScoreQuestion ? ScoreAnswer : Q extends NoulQuestion ? NoulAnswer : EvaluationAnswer;
|
|
1838
|
+
type EvaluationAnswers<Q extends EvaluationQuestions> = {
|
|
1839
|
+
[K in keyof Q]: EvaluationAnswerFor<Q[K]>;
|
|
1840
|
+
};
|
|
1841
|
+
/** Argument shape of the `evaluate` model operation. */
|
|
1842
|
+
interface EvaluationInvocationArgs<Q extends EvaluationQuestions = EvaluationQuestions> {
|
|
1843
|
+
/** Logical Model identity or a model selected through a bound Gateway, evaluated under Policy. */
|
|
1844
|
+
model?: string;
|
|
1845
|
+
/** The content to evaluate: a string, or a JSON object or array of related context. */
|
|
1846
|
+
state: EvaluationEntry;
|
|
1847
|
+
/** At least one named question; answers come back under the same ids. */
|
|
1848
|
+
questions: Q;
|
|
1849
|
+
}
|
|
1850
|
+
interface EvaluationInvocationResult<Q extends EvaluationQuestions = EvaluationQuestions> {
|
|
1851
|
+
answers: EvaluationAnswers<Q>;
|
|
1852
|
+
/** Integration-observed timing for the complete upstream request. */
|
|
1853
|
+
timing?: {
|
|
1854
|
+
upstreamMs: number;
|
|
1855
|
+
};
|
|
1856
|
+
usage: ModelInvocationResult["usage"];
|
|
1857
|
+
provider: string;
|
|
1858
|
+
model: string;
|
|
1859
|
+
}
|
|
1860
|
+
type EvaluationProtocol = "typesafe";
|
|
1861
|
+
declare const EVALUATION_LIMITS: {
|
|
1862
|
+
readonly maxQuestions: 512;
|
|
1863
|
+
readonly maxChoiceOptions: 512;
|
|
1864
|
+
readonly maxScoreLevels: 128;
|
|
1865
|
+
readonly maxDepth: 32;
|
|
1866
|
+
/** Bytes of the canonical request body; evaluation models bound state and questions jointly by tokens. */
|
|
1867
|
+
readonly maxRequestBytes: 1048576;
|
|
1868
|
+
};
|
|
1869
|
+
/** One validated argument shape for Policy, accounting, and provider dispatch. */
|
|
1870
|
+
declare function evaluationArguments(value: unknown): EvaluationInvocationArgs;
|
|
1871
|
+
/** The upstream wire request. TypeSafe's System One endpoint accepts the evaluation contract natively. */
|
|
1872
|
+
declare function evaluationProtocolRequest(protocol: EvaluationProtocol, model: string, args: Pick<EvaluationInvocationArgs, "state" | "questions">): Record<string, unknown>;
|
|
1873
|
+
/** Decode the upstream response into typed answers, refusing any answer outside the options and levels the caller supplied. */
|
|
1874
|
+
declare function evaluationProtocolResult<Q extends EvaluationQuestions>(protocol: EvaluationProtocol, raw: unknown, provider: string, model: string, questions: Q): EvaluationInvocationResult<Q>;
|
|
1875
|
+
/** Read a Noul answer as a decision at the caller's threshold. */
|
|
1876
|
+
declare function noulDecision(answer: NoulAnswer, threshold?: number): boolean;
|
|
1877
|
+
/** The nearest whole level of a Score answer. Use the expectation itself only for threshold comparisons. */
|
|
1878
|
+
declare function scoreLevel(answer: ScoreAnswer): number;
|
|
1879
|
+
|
|
1801
1880
|
type Tier = "scratch" | "standard" | "audit";
|
|
1802
1881
|
type Mode = "script" | "durable";
|
|
1803
1882
|
type EffectClass = "read-only" | "idempotent" | "reconcilable" | "non-idempotent";
|
|
@@ -2044,11 +2123,31 @@ interface Handle<T> extends PromiseLike<T> {
|
|
|
2044
2123
|
readonly error: unknown | undefined;
|
|
2045
2124
|
cancel(): Promise<void>;
|
|
2046
2125
|
}
|
|
2047
|
-
/**
|
|
2126
|
+
/** An asynchronous Resource operation can be admitted before its result is
|
|
2127
|
+
* awaited. Admission is not proof that the external process is ready. */
|
|
2048
2128
|
interface InvocationHandle<T> extends Handle<T> {
|
|
2049
|
-
/** Start through normal authorization and admission; keep the invocation open until it settles. */
|
|
2050
2129
|
start(): Promise<void>;
|
|
2051
2130
|
}
|
|
2131
|
+
/** A message to an exactly bound Agent creates one distinct target Run. */
|
|
2132
|
+
type AgentSendOpts = {
|
|
2133
|
+
session: string;
|
|
2134
|
+
completion?: "receipt";
|
|
2135
|
+
} | {
|
|
2136
|
+
session?: string;
|
|
2137
|
+
completion: "run-result";
|
|
2138
|
+
timeoutMs?: number;
|
|
2139
|
+
};
|
|
2140
|
+
interface AgentDeliveryReceipt {
|
|
2141
|
+
id: string;
|
|
2142
|
+
state: "enqueued";
|
|
2143
|
+
target: {
|
|
2144
|
+
agent: CRN;
|
|
2145
|
+
session: string;
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
interface AgentResultDelivery<T> extends AgentDeliveryReceipt {
|
|
2149
|
+
result: Handle<T>;
|
|
2150
|
+
}
|
|
2052
2151
|
interface CommitOpts {
|
|
2053
2152
|
tier?: Tier;
|
|
2054
2153
|
gate?: string | GateEvidence | {
|
|
@@ -2139,10 +2238,17 @@ interface TurnGate {
|
|
|
2139
2238
|
feedback?(rec: TurnRecord | TurnDraft): string;
|
|
2140
2239
|
onExhausted?: "fail" | "commit-with-verdict";
|
|
2141
2240
|
}
|
|
2241
|
+
/** One prior exchange the model sees as a message of its own, so a provider's prompt cache extends over it. */
|
|
2242
|
+
interface TurnHistoryMessage {
|
|
2243
|
+
role: "user" | "assistant";
|
|
2244
|
+
content: string;
|
|
2245
|
+
}
|
|
2142
2246
|
interface TurnSpec extends ModelGenerationOptions {
|
|
2143
2247
|
system: string;
|
|
2144
2248
|
objective?: unknown;
|
|
2145
2249
|
context?: unknown;
|
|
2250
|
+
/** Earlier exchanges, oldest first, sent as messages after the objective and context rather than inside them. */
|
|
2251
|
+
history?: TurnHistoryMessage[];
|
|
2146
2252
|
tools?: string[];
|
|
2147
2253
|
/** Require one of the offered Tools for this model generation. */
|
|
2148
2254
|
toolChoice?: "auto" | "required";
|
|
@@ -2364,7 +2470,7 @@ interface ReduceFact {
|
|
|
2364
2470
|
}
|
|
2365
2471
|
type ScopeJournalKind = "turn" | "tool" | "step";
|
|
2366
2472
|
type LocalJournalKind = "clock" | "random" | "score" | "commit" | "await" | "spawn" | "map" | "reduce" | "view" | "page" | "truncate" | "cancel" | "capability";
|
|
2367
|
-
type JournalKind = ScopeJournalKind | LocalJournalKind | "invoke";
|
|
2473
|
+
type JournalKind = ScopeJournalKind | LocalJournalKind | "invoke" | "send";
|
|
2368
2474
|
/** Stable identity available to Agent code. Platform execution and deployment
|
|
2369
2475
|
* metadata intentionally remain outside the public Agent context. */
|
|
2370
2476
|
interface RunInfo {
|
|
@@ -2388,8 +2494,8 @@ interface InvokeOpts {
|
|
|
2388
2494
|
capability?: CapabilityRef;
|
|
2389
2495
|
timeoutMs?: number;
|
|
2390
2496
|
dedupeKey?: string;
|
|
2391
|
-
/** Credential
|
|
2392
|
-
credentials?: Record<string,
|
|
2497
|
+
/** Invocation-local Credential selections. Material never enters Agent code. */
|
|
2498
|
+
credentials?: Record<string, InvocationCredentialUse>;
|
|
2393
2499
|
}
|
|
2394
2500
|
interface CapabilityGrant {
|
|
2395
2501
|
actions: string[];
|
|
@@ -2397,41 +2503,48 @@ interface CapabilityGrant {
|
|
|
2397
2503
|
ttlMs: number;
|
|
2398
2504
|
reason: string;
|
|
2399
2505
|
}
|
|
2400
|
-
|
|
2401
|
-
interface ResourceOperation {
|
|
2506
|
+
interface BoundOperation {
|
|
2402
2507
|
op: string;
|
|
2403
|
-
hash: Hash;
|
|
2404
2508
|
description: string;
|
|
2405
|
-
schema:
|
|
2406
|
-
resultSchema:
|
|
2509
|
+
schema: unknown;
|
|
2510
|
+
resultSchema: unknown;
|
|
2407
2511
|
effect: EffectClass;
|
|
2408
2512
|
recovery: Recovery;
|
|
2409
2513
|
async: boolean;
|
|
2514
|
+
audience?: "agent" | "tool";
|
|
2410
2515
|
}
|
|
2411
2516
|
interface BoundResourceCapabilities {
|
|
2412
2517
|
crn: CRN;
|
|
2413
2518
|
kind: ResourceKind;
|
|
2519
|
+
version: string;
|
|
2414
2520
|
hash: Hash;
|
|
2415
|
-
catalogHash: Hash | null;
|
|
2416
2521
|
credentialSlots: string[];
|
|
2417
|
-
operations:
|
|
2522
|
+
operations: BoundOperation[];
|
|
2523
|
+
model?: {
|
|
2524
|
+
id: string;
|
|
2525
|
+
contextTokens?: number;
|
|
2526
|
+
maxOutputTokens?: number;
|
|
2527
|
+
};
|
|
2418
2528
|
}
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2529
|
+
/** One evaluation of shared state against typed questions through a bound evaluation Model, or a Gateway plus explicit model identifier. */
|
|
2530
|
+
interface EvaluationSpec<Q extends EvaluationQuestions = EvaluationQuestions> {
|
|
2531
|
+
state: EvaluationEntry;
|
|
2532
|
+
questions: Q;
|
|
2533
|
+
/** Model binding name; when gateway is supplied, the Gateway's model identifier instead. */
|
|
2534
|
+
model?: string;
|
|
2535
|
+
/** Bound Gateway to use with the explicitly selected model identifier. */
|
|
2536
|
+
gateway?: string;
|
|
2537
|
+
}
|
|
2538
|
+
interface EvaluationRecord<Q extends EvaluationQuestions = EvaluationQuestions> {
|
|
2539
|
+
answers: EvaluationAnswers<Q>;
|
|
2540
|
+
cost: Cost;
|
|
2541
|
+
provider: string;
|
|
2542
|
+
model: string;
|
|
2432
2543
|
}
|
|
2433
2544
|
interface Ctx {
|
|
2434
2545
|
turn(spec: TurnSpec): Promise<TurnRecord>;
|
|
2546
|
+
/** Judge one state with constrained, probabilistic answers instead of a generated turn. Journaled and priced like a model call. */
|
|
2547
|
+
evaluate<Q extends EvaluationQuestions>(spec: EvaluationSpec<Q>): Promise<EvaluationRecord<Q>>;
|
|
2435
2548
|
ledger: {
|
|
2436
2549
|
view<S = HistoryView>(name?: string, opts?: {
|
|
2437
2550
|
of?: LedgerAddress;
|
|
@@ -2450,12 +2563,19 @@ interface Ctx {
|
|
|
2450
2563
|
reduce<I, O>(g: FoldFn<I, O> | SqlFold, over: Over<I>, opts?: ReduceOpts): Handle<ReduceFact>;
|
|
2451
2564
|
step<T>(name: string, fn: () => Promise<T>): Promise<T>;
|
|
2452
2565
|
resources: Record<string, CRN>;
|
|
2453
|
-
/**
|
|
2454
|
-
|
|
2566
|
+
/** Observe one accepted binding as a journaled local step; null means it is not bound. */
|
|
2567
|
+
describeResource(binding: string): Promise<BoundResourceCapabilities | null>;
|
|
2455
2568
|
/** Open a provider-neutral sandbox pool bound into this Run. */
|
|
2456
2569
|
sandboxPool(resource: CRN): SandboxPool;
|
|
2457
2570
|
invoke<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): Promise<T>;
|
|
2458
2571
|
invokeAsync<T>(resource: CRN, op: string, args: unknown, opts?: InvokeOpts): InvocationHandle<T>;
|
|
2572
|
+
send<T>(agent: CRN, input: unknown, opts: AgentSendOpts & {
|
|
2573
|
+
completion: "run-result";
|
|
2574
|
+
}): Promise<AgentResultDelivery<T>>;
|
|
2575
|
+
send(agent: CRN, input: unknown, opts: {
|
|
2576
|
+
session: string;
|
|
2577
|
+
completion?: "receipt";
|
|
2578
|
+
}): Promise<AgentDeliveryReceipt>;
|
|
2459
2579
|
request(policy: PolicyCRN, grant: CapabilityGrant): Handle<CapabilityRef>;
|
|
2460
2580
|
analytics: AnalyticsClient;
|
|
2461
2581
|
run: RunInfo;
|
|
@@ -2481,6 +2601,32 @@ interface AgentDef<S = unknown> {
|
|
|
2481
2601
|
}
|
|
2482
2602
|
type Agent<S = unknown> = AgentDef<S>;
|
|
2483
2603
|
|
|
2604
|
+
interface SkillDescription {
|
|
2605
|
+
id: string;
|
|
2606
|
+
description?: string;
|
|
2607
|
+
source?: string;
|
|
2608
|
+
}
|
|
2609
|
+
interface Skill extends SkillDescription {
|
|
2610
|
+
instructions: string;
|
|
2611
|
+
}
|
|
2612
|
+
interface LoadedSkill extends Skill {
|
|
2613
|
+
hash: string;
|
|
2614
|
+
}
|
|
2615
|
+
/** Discovery and storage belong to the caller. The SDK does not scan a filesystem. */
|
|
2616
|
+
interface SkillSource {
|
|
2617
|
+
list(ctx: Ctx): SkillDescription[] | Promise<SkillDescription[]>;
|
|
2618
|
+
load(id: string, ctx: Ctx): Skill | Promise<Skill>;
|
|
2619
|
+
needs?: Tool["needs"];
|
|
2620
|
+
maxEffect?: Tool["maxEffect"];
|
|
2621
|
+
}
|
|
2622
|
+
interface SkillLibrary {
|
|
2623
|
+
list(ctx: Ctx): Promise<SkillDescription[]>;
|
|
2624
|
+
load(id: string, ctx: Ctx): Promise<LoadedSkill>;
|
|
2625
|
+
tools: Record<string, Tool>;
|
|
2626
|
+
}
|
|
2627
|
+
/** Optional instructions exposed through ordinary model context and Tools. */
|
|
2628
|
+
declare function skills(input: readonly Skill[] | SkillSource): SkillLibrary;
|
|
2629
|
+
|
|
2484
2630
|
declare function validateTool(tool: Tool, path?: string): Tool;
|
|
2485
2631
|
declare function validateView<V extends ViewDef<any, any>>(view: V, path?: string): V;
|
|
2486
2632
|
declare function validatePartitionFn<I, O, R>(fn: PartitionFn<I, O, R>): PartitionFn<I, O, R>;
|
|
@@ -2770,6 +2916,35 @@ interface UiHandler {
|
|
|
2770
2916
|
}): void;
|
|
2771
2917
|
}
|
|
2772
2918
|
declare function uiBundleManifest(value: unknown, execution: UiExecution["mode"]): UiBundleManifest;
|
|
2919
|
+
declare const UI_ASSET_CONTENT_TYPES: Readonly<{
|
|
2920
|
+
readonly html: "text/html; charset=utf-8";
|
|
2921
|
+
readonly htm: "text/html; charset=utf-8";
|
|
2922
|
+
readonly js: "text/javascript; charset=utf-8";
|
|
2923
|
+
readonly mjs: "text/javascript; charset=utf-8";
|
|
2924
|
+
readonly css: "text/css; charset=utf-8";
|
|
2925
|
+
readonly json: "application/json; charset=utf-8";
|
|
2926
|
+
readonly map: "application/json; charset=utf-8";
|
|
2927
|
+
readonly txt: "text/plain; charset=utf-8";
|
|
2928
|
+
readonly md: "text/plain; charset=utf-8";
|
|
2929
|
+
readonly xml: "application/xml";
|
|
2930
|
+
readonly svg: "image/svg+xml";
|
|
2931
|
+
readonly png: "image/png";
|
|
2932
|
+
readonly jpg: "image/jpeg";
|
|
2933
|
+
readonly jpeg: "image/jpeg";
|
|
2934
|
+
readonly gif: "image/gif";
|
|
2935
|
+
readonly webp: "image/webp";
|
|
2936
|
+
readonly ico: "image/x-icon";
|
|
2937
|
+
readonly woff: "font/woff";
|
|
2938
|
+
readonly woff2: "font/woff2";
|
|
2939
|
+
readonly ttf: "font/ttf";
|
|
2940
|
+
readonly wasm: "application/wasm";
|
|
2941
|
+
readonly webmanifest: "application/manifest+json";
|
|
2942
|
+
readonly mp3: "audio/mpeg";
|
|
2943
|
+
readonly mp4: "video/mp4";
|
|
2944
|
+
}>;
|
|
2945
|
+
declare function uiAssetContentType(path: string): string;
|
|
2946
|
+
/** Fills the defaults of a partial `constal.ui.json` authored inside an Agent's UI directory. */
|
|
2947
|
+
declare function agentUiBundleManifest(value: unknown, execution: UiExecution["mode"]): UiBundleManifest;
|
|
2773
2948
|
declare function uiBundle(value: unknown, execution: UiExecution["mode"]): UiBundle;
|
|
2774
2949
|
|
|
2775
2950
|
type SetupStepStatus = "pending" | "current" | "complete" | "blocked";
|
|
@@ -2877,6 +3052,8 @@ interface SetupSubmission {
|
|
|
2877
3052
|
action: string;
|
|
2878
3053
|
values?: Record<string, unknown>;
|
|
2879
3054
|
}
|
|
3055
|
+
/** A panel names its provider by CRN, or by a platform capability name the platform resolves to one published provider. */
|
|
3056
|
+
declare function setupPanelProviderIsCrn(provider: string): boolean;
|
|
2880
3057
|
/** Validates the bounded presentation artifact consumed by trusted Console renderers. */
|
|
2881
3058
|
declare function setupScreen(value: unknown): SetupScreen;
|
|
2882
3059
|
/** Validates one response against the exact open screen revision and form schema. */
|
|
@@ -2911,160 +3088,6 @@ declare function credentialSetupState(requirement: AgentCredentialSetupRequireme
|
|
|
2911
3088
|
namespace: string;
|
|
2912
3089
|
}, inventory: readonly SetupCredentialCandidate[], binding: BindingAssignmentHead | null): CredentialSetupState;
|
|
2913
3090
|
|
|
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
3091
|
declare const CONSTAL_API_CAPABILITY: "constal.api";
|
|
3069
3092
|
declare const CONSTAL_API_VERSION: "1";
|
|
3070
3093
|
declare const CONSTAL_API_OPERATIONS: readonly ["describe", "query", "get", "relations", "explainPolicy", "plan", "apply", "observe"];
|
|
@@ -3077,27 +3100,6 @@ interface ConstalApiObjectRef {
|
|
|
3077
3100
|
namespace: string | null;
|
|
3078
3101
|
version?: string | null;
|
|
3079
3102
|
}
|
|
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
3103
|
interface ConstalApiChangePlanRequest {
|
|
3102
3104
|
objective: string;
|
|
3103
3105
|
operations: Array<{
|
|
@@ -3221,134 +3223,6 @@ declare const CONSTAL_API_MODEL_TOOL_DESCRIPTIONS: {
|
|
|
3221
3223
|
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
3224
|
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
3225
|
};
|
|
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
3226
|
/** Shared schemas pinned into the Resource catalog and Agent Tools. */
|
|
3353
3227
|
declare const CONSTAL_API_OPERATION_SCHEMAS: {
|
|
3354
3228
|
readonly describe: {
|
|
@@ -3356,7 +3230,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
|
|
|
3356
3230
|
readonly additionalProperties: false;
|
|
3357
3231
|
readonly properties: {
|
|
3358
3232
|
readonly domains: {
|
|
3359
|
-
readonly description: "Domain IDs returned in catalog.domains. Omit to discover across all domains.";
|
|
3360
3233
|
readonly type: "array";
|
|
3361
3234
|
readonly maxItems: 128;
|
|
3362
3235
|
readonly items: {
|
|
@@ -3896,71 +3769,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
|
|
|
3896
3769
|
};
|
|
3897
3770
|
};
|
|
3898
3771
|
|
|
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
3772
|
interface PolicyDefinition {
|
|
3965
3773
|
id: string;
|
|
3966
3774
|
version: string;
|
|
@@ -4000,6 +3808,9 @@ interface CatalogTool extends Tool {
|
|
|
4000
3808
|
}
|
|
4001
3809
|
declare function opTool(binding: string, op: string, override?: Partial<Pick<Tool, "name" | "description" | "schema" | "tier" | "once" | "guard" | "preview">>): CatalogTool;
|
|
4002
3810
|
declare function opTools(binding: string, ops?: string[]): CatalogTool[];
|
|
3811
|
+
/** Optional model-facing access to bindings already accepted by this Run.
|
|
3812
|
+
* Installation, binding changes, authorization, and retries keep their existing owners. */
|
|
3813
|
+
declare const resourceTools: Record<"resource_list" | "resource_describe" | "resource_invoke", Tool>;
|
|
4003
3814
|
declare const WEB_FETCH_ARGUMENT_SCHEMA: {
|
|
4004
3815
|
readonly type: "object";
|
|
4005
3816
|
readonly required: readonly ["url"];
|
|
@@ -4380,6 +4191,48 @@ declare function credentialProviderSetupMetadata(value: unknown, slots: string[]
|
|
|
4380
4191
|
/** Defines and validates a Credential Provider package. */
|
|
4381
4192
|
declare function credentialProvider<C>(definition: CredentialProviderDefinition<C>): CredentialProviderPackage<C>;
|
|
4382
4193
|
|
|
4194
|
+
declare const MCP_PROTOCOL_VERSION = "2025-06-18";
|
|
4195
|
+
interface McpClientState {
|
|
4196
|
+
protocolVersion: string;
|
|
4197
|
+
nextRequestId: number;
|
|
4198
|
+
}
|
|
4199
|
+
interface McpMessageTransport {
|
|
4200
|
+
send(message: Record<string, unknown>): Promise<void>;
|
|
4201
|
+
receive(): Promise<unknown>;
|
|
4202
|
+
negotiated?(protocolVersion: string): void | Promise<void>;
|
|
4203
|
+
close(): Promise<void>;
|
|
4204
|
+
}
|
|
4205
|
+
interface McpClientOptions {
|
|
4206
|
+
state?: McpClientState;
|
|
4207
|
+
client?: {
|
|
4208
|
+
name: string;
|
|
4209
|
+
version: string;
|
|
4210
|
+
};
|
|
4211
|
+
onNotification?: (message: {
|
|
4212
|
+
method: string;
|
|
4213
|
+
params?: unknown;
|
|
4214
|
+
}) => void | Promise<void>;
|
|
4215
|
+
}
|
|
4216
|
+
declare function mcpToolDescription(value: unknown): Record<string, unknown>;
|
|
4217
|
+
declare function mcpToolResult(value: unknown): Record<string, unknown>;
|
|
4218
|
+
/** Protocol/session owner shared by Streamable HTTP and stdio transports.
|
|
4219
|
+
* The transport owns bytes; this client owns request correlation and MCP state. */
|
|
4220
|
+
declare class McpClient {
|
|
4221
|
+
#private;
|
|
4222
|
+
readonly transport: McpMessageTransport;
|
|
4223
|
+
readonly options: McpClientOptions;
|
|
4224
|
+
constructor(transport: McpMessageTransport, options?: McpClientOptions);
|
|
4225
|
+
state(): McpClientState;
|
|
4226
|
+
initialize(): Promise<{
|
|
4227
|
+
protocolVersion: string;
|
|
4228
|
+
server: Record<string, unknown>;
|
|
4229
|
+
}>;
|
|
4230
|
+
request(method: string, params: Record<string, unknown>): Promise<unknown>;
|
|
4231
|
+
tools(): Promise<Record<string, unknown>[]>;
|
|
4232
|
+
callTool(name: string, args: Record<string, unknown>): Promise<unknown>;
|
|
4233
|
+
close(): Promise<void>;
|
|
4234
|
+
}
|
|
4235
|
+
|
|
4383
4236
|
type CodeScorerRule = {
|
|
4384
4237
|
op: "all";
|
|
4385
4238
|
rules: CodeScorerRule[];
|
|
@@ -4476,7 +4329,15 @@ declare class NondeterministicReplay extends Error {
|
|
|
4476
4329
|
declare class OutcomeUnknown extends Error {
|
|
4477
4330
|
readonly pos: string;
|
|
4478
4331
|
readonly effect: EffectClass;
|
|
4479
|
-
|
|
4332
|
+
readonly detail: {
|
|
4333
|
+
code?: string;
|
|
4334
|
+
message: string;
|
|
4335
|
+
} | null;
|
|
4336
|
+
/** `detail` is what the platform last heard from the Resource, so the agent learns why the outcome stayed unknown. */
|
|
4337
|
+
constructor(pos: string, effect: EffectClass, detail?: {
|
|
4338
|
+
code?: string;
|
|
4339
|
+
message: string;
|
|
4340
|
+
} | null);
|
|
4480
4341
|
}
|
|
4481
4342
|
declare class LeaseLost extends Error {
|
|
4482
4343
|
constructor(message?: string);
|
|
@@ -4545,5 +4406,5 @@ declare class SessionDeleted extends Error {
|
|
|
4545
4406
|
constructor(session: string);
|
|
4546
4407
|
}
|
|
4547
4408
|
|
|
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,
|
|
4409
|
+
export { AGENT_UI_DEFAULTS, 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, EVALUATION_LIMITS, EffectCeilingExceeded, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, MODEL_EVALUATION_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_ASSET_CONTENT_TYPES, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, agentUiBundleManifest, agentUiDeclaration, 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, evaluationArguments, evaluationProtocolRequest, evaluationProtocolResult, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelMessages, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, noulDecision, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, sandboxControls, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scoreLevel, scorerName, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupPanelProviderIsCrn, setupScreen, setupScreenView, setupSubmission, sha256Hex, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, uiAssetContentType, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
|
|
4410
|
+
export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeliveryReceipt, AgentDeployPolicy, AgentResultDelivery, AgentSendOpts, AgentSetupMetadata, AgentSetupRequirement, AgentSetupWorkflow, AgentUiDeclaration, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, AwaitPresentation, BatchSpec, BindingCRN, BindingOwnerContext, BindingOwnerScope, BoundOperation, BoundResourceCapabilities, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelAlarm, ChannelAlarmResult, ChannelContext, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, ChoiceAnswer, ChoiceQuestion, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionUsageReport, ConstalApiApplyRequest, ConstalApiChangePlan, ConstalApiChangePlanRef, ConstalApiChangePlanRequest, ConstalApiChangeReceipt, ConstalApiOperationReceipt, ContainerImageReference, ContainerImageSelection, ContainerImageSource, ContainerRegistryRequest, ContainerRegistryResponse, ControlEvent, Cost, 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, EvaluationAnswer, EvaluationAnswerFor, EvaluationAnswers, EvaluationEntry, EvaluationInvocationArgs, EvaluationInvocationResult, EvaluationProtocol, EvaluationQuestion, EvaluationQuestions, EvaluationRecord, EvaluationSpec, EventBase, Fact, FactRef, FileEntry, FixedMemoryStoreRef, FixedModelGatewayRef, FoldFn, GateEvidence, GateResult, GateVerdict, GatewayCancelRequest, GatewayConfigEgressBinding, GatewayContext, GatewayCredentialSlotSetup, GatewayDefinition, GatewayDiscoverySetup, GatewayModelOffer, GatewayOperation, GatewayPackage, GatewayPackageMetadata, GatewayRecoveryRequest, GatewayRecoveryResult, GatewayRequest, GovernanceContractRef, Handle, HandleOutcome, Hash, 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, ModelHistoryMessage, ModelInvocationArgs, ModelInvocationResult, ModelTechnicalCapabilities, ModelTool, NormalizedModelGatewayConfig, NoulAnswer, NoulQuestion, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, Provenance, RawModelProtocol, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceDependencyRef, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourcePattern, ResourceSelector, RollbackReport, RunIdentityView, RunInfo, 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, ScoreAnswer, ScoreQuestion, 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 };
|