@constal/sdk 1.0.0 → 2.1.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/package.json +1 -1
- package/publish/api.json +56 -1
- package/publish/index.d.ts +1084 -12
- package/publish/index.js +717 -124
package/publish/index.d.ts
CHANGED
|
@@ -228,6 +228,8 @@ interface CaseRow {
|
|
|
228
228
|
fact: FactRef;
|
|
229
229
|
agent?: string;
|
|
230
230
|
customer?: CustomerTenantCRN | null;
|
|
231
|
+
/** Exact immutable execution identity captured with a production Run. */
|
|
232
|
+
subject?: EvalSubject;
|
|
231
233
|
} | null;
|
|
232
234
|
tags: Record<string, string>;
|
|
233
235
|
}
|
|
@@ -726,7 +728,7 @@ declare function labelSelector(value: unknown): LabelSelector;
|
|
|
726
728
|
declare function resourceSelector<K extends CRNKind>(value: unknown, allowedKinds: readonly K[]): ResourceSelector<K>;
|
|
727
729
|
declare function matchesLabelSelector(selector: LabelSelector, labels: Record<string, string>): boolean;
|
|
728
730
|
|
|
729
|
-
declare const RESOURCE_KINDS: readonly ["agent", "channel", "auth-provider", "policy", "credential-provider", "credential", "tool", "scorer", "dataset", "model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault"];
|
|
731
|
+
declare const RESOURCE_KINDS: readonly ["agent", "channel", "ui", "auth-provider", "policy", "credential-provider", "credential", "tool", "scorer", "dataset", "model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault"];
|
|
730
732
|
declare const PLATFORM_ADDRESS_KINDS: readonly ["analytics", "role", "principal", "customer", "binding", "session", "run", "ledger", "table", "artifact", "deployment"];
|
|
731
733
|
declare const INVOKABLE_KINDS: readonly ["model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault"];
|
|
732
734
|
type ResourceKind = typeof RESOURCE_KINDS[number];
|
|
@@ -749,6 +751,9 @@ type CredentialProviderCRN = CRN & {
|
|
|
749
751
|
type AuthProviderCRN = CRN & {
|
|
750
752
|
readonly __authProviderCRN: "AuthProviderCRN";
|
|
751
753
|
};
|
|
754
|
+
type UiCRN = CRN & {
|
|
755
|
+
readonly __uiCRN: "UiCRN";
|
|
756
|
+
};
|
|
752
757
|
type PolicyCRN = CRN & {
|
|
753
758
|
readonly __policyCRN: "PolicyCRN";
|
|
754
759
|
};
|
|
@@ -872,6 +877,15 @@ type SandboxNetworkPolicy = {
|
|
|
872
877
|
} | {
|
|
873
878
|
mode: "unrestricted";
|
|
874
879
|
};
|
|
880
|
+
interface ResourceHeader {
|
|
881
|
+
crn: CRN;
|
|
882
|
+
kind: ResourceKind;
|
|
883
|
+
version: string;
|
|
884
|
+
hash: Hash;
|
|
885
|
+
policies: PolicyCRN[];
|
|
886
|
+
/** Immutable user labels. The Registry adds protected identity labels during selection. */
|
|
887
|
+
labels?: Record<string, string>;
|
|
888
|
+
}
|
|
875
889
|
type UpstreamPayer = "platform" | "tenant";
|
|
876
890
|
interface ModelTechnicalCapabilities {
|
|
877
891
|
contextTokens: number;
|
|
@@ -894,6 +908,68 @@ interface PolicyDelegationCeiling {
|
|
|
894
908
|
resources: ResourcePattern[];
|
|
895
909
|
maxTtlMs: number;
|
|
896
910
|
}
|
|
911
|
+
type UiSource = {
|
|
912
|
+
kind: "template";
|
|
913
|
+
template: "chat";
|
|
914
|
+
version: string;
|
|
915
|
+
} | {
|
|
916
|
+
kind: "bundle";
|
|
917
|
+
artifact: {
|
|
918
|
+
cas: {
|
|
919
|
+
crn: CRN;
|
|
920
|
+
hash: Hash;
|
|
921
|
+
};
|
|
922
|
+
ref: Hash;
|
|
923
|
+
manifestHash: Hash;
|
|
924
|
+
format: "constal.ui.v1";
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
type UiAccess = {
|
|
928
|
+
mode: "public";
|
|
929
|
+
} | {
|
|
930
|
+
mode: "authenticated";
|
|
931
|
+
authProvider: {
|
|
932
|
+
crn: AuthProviderCRN;
|
|
933
|
+
hash: Hash;
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
type UiExecution = {
|
|
937
|
+
mode: "stateless";
|
|
938
|
+
} | {
|
|
939
|
+
mode: "durable";
|
|
940
|
+
storage: {
|
|
941
|
+
kind: "sqlite";
|
|
942
|
+
maximumBytes: number;
|
|
943
|
+
maximumRowsReadPerRequest: number;
|
|
944
|
+
maximumRowsWrittenPerRequest: number;
|
|
945
|
+
maximumResultBytes: number;
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
interface UiResource extends ResourceHeader {
|
|
949
|
+
crn: UiCRN;
|
|
950
|
+
kind: "ui";
|
|
951
|
+
displayName: string;
|
|
952
|
+
description: string;
|
|
953
|
+
source: UiSource;
|
|
954
|
+
target: {
|
|
955
|
+
channel: {
|
|
956
|
+
crn: CRN;
|
|
957
|
+
hash: Hash;
|
|
958
|
+
};
|
|
959
|
+
agent: {
|
|
960
|
+
crn: CRN;
|
|
961
|
+
hash: Hash;
|
|
962
|
+
};
|
|
963
|
+
};
|
|
964
|
+
access: UiAccess;
|
|
965
|
+
execution: UiExecution;
|
|
966
|
+
limits: {
|
|
967
|
+
requestBodyBytes: number;
|
|
968
|
+
responseBodyBytes: number;
|
|
969
|
+
cpuMs: number;
|
|
970
|
+
subrequests: number;
|
|
971
|
+
};
|
|
972
|
+
}
|
|
897
973
|
interface CredentialRotationDefaults {
|
|
898
974
|
mode: "manual" | "scheduled" | "auto";
|
|
899
975
|
intervalMs: number | null;
|
|
@@ -927,6 +1003,7 @@ declare function parseResourceName(value: string): ResourceNameParts;
|
|
|
927
1003
|
declare function credentialName(value: string): CredentialCRN;
|
|
928
1004
|
declare function credentialProviderName(value: string): CredentialProviderCRN;
|
|
929
1005
|
declare function authProviderName(value: string): AuthProviderCRN;
|
|
1006
|
+
declare function uiName(value: string): UiCRN;
|
|
930
1007
|
declare function policyName(value: string): PolicyCRN;
|
|
931
1008
|
declare function scorerName(value: string): ScorerCRN;
|
|
932
1009
|
declare function datasetName(value: string): DatasetCRN;
|
|
@@ -997,10 +1074,12 @@ interface ModelGovernanceControls {
|
|
|
997
1074
|
temperature_max: number;
|
|
998
1075
|
}
|
|
999
1076
|
type ModelGovernanceMeter = "cached_input_tokens" | "input_tokens" | "output_tokens" | "requests";
|
|
1077
|
+
type UiGovernanceMeter = "requests";
|
|
1000
1078
|
declare function sandboxControls(values: Partial<SandboxGovernanceControls>): ResourceControlsConstraint;
|
|
1001
1079
|
declare function sandboxLimit(input: AdmissionLimitInput<SandboxGovernanceMeter>): AdmissionLimitConstraint;
|
|
1002
1080
|
declare function modelControls(values: Partial<ModelGovernanceControls>): ResourceControlsConstraint;
|
|
1003
1081
|
declare function modelLimit(input: AdmissionLimitInput<ModelGovernanceMeter>): AdmissionLimitConstraint;
|
|
1082
|
+
declare function uiLimit(input: AdmissionLimitInput<UiGovernanceMeter>): AdmissionLimitConstraint;
|
|
1004
1083
|
|
|
1005
1084
|
type PrincipalKind = "user" | "service" | "channel" | "agent" | "anonymous";
|
|
1006
1085
|
interface CustomerPrincipalContext {
|
|
@@ -1048,8 +1127,11 @@ type PolicyInvocationOrigin = {
|
|
|
1048
1127
|
tool: CRN | null;
|
|
1049
1128
|
} | {
|
|
1050
1129
|
kind: "ingress";
|
|
1051
|
-
|
|
1052
|
-
|
|
1130
|
+
target: {
|
|
1131
|
+
kind: "channel" | "ui";
|
|
1132
|
+
crn: CRN;
|
|
1133
|
+
};
|
|
1134
|
+
authProvider: CRN | null;
|
|
1053
1135
|
} | {
|
|
1054
1136
|
kind: "channel";
|
|
1055
1137
|
channel: CRN;
|
|
@@ -1146,6 +1228,15 @@ declare function analyticsEvent<Dimension extends string, Metric extends string>
|
|
|
1146
1228
|
|
|
1147
1229
|
interface CreateSandboxOptions {
|
|
1148
1230
|
image?: SandboxImage;
|
|
1231
|
+
resetImage?: boolean;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Optional immutable identity for a prepared image. Cache keys are supplied as
|
|
1235
|
+
* full SHA-256 digests so a SandboxPool can safely scope and reuse an image
|
|
1236
|
+
* without interpreting an Agent's environment manifest.
|
|
1237
|
+
*/
|
|
1238
|
+
interface CreateSandboxImageOptions {
|
|
1239
|
+
cacheKey?: string;
|
|
1149
1240
|
}
|
|
1150
1241
|
interface SandboxExecInput {
|
|
1151
1242
|
cmd: string;
|
|
@@ -1187,6 +1278,7 @@ interface SandboxMutationResult {
|
|
|
1187
1278
|
interface SandboxImage {
|
|
1188
1279
|
readonly id: string;
|
|
1189
1280
|
readonly pool: SandboxPool;
|
|
1281
|
+
readonly cacheKey: string | null;
|
|
1190
1282
|
delete(opts?: InvokeOpts): Promise<void>;
|
|
1191
1283
|
}
|
|
1192
1284
|
/** Mutable, Agent/Session-scoped workspace backed by a VM or container provider. */
|
|
@@ -1210,7 +1302,9 @@ interface Sandbox {
|
|
|
1210
1302
|
interface SandboxPool {
|
|
1211
1303
|
readonly resource: CRN;
|
|
1212
1304
|
/** Capture an immutable image from a sandbox owned by this pool. */
|
|
1213
|
-
createImage(sandbox: Sandbox, opts?: InvokeOpts): Promise<SandboxImage>;
|
|
1305
|
+
createImage(sandbox: Sandbox, options?: CreateSandboxImageOptions, opts?: InvokeOpts): Promise<SandboxImage>;
|
|
1306
|
+
/** Resolve an Agent-owned prepared image by its immutable environment digest. */
|
|
1307
|
+
resolveImage(cacheKey: string, opts?: InvokeOpts): Promise<SandboxImage | null>;
|
|
1214
1308
|
/** Register a logical Agent/Session sandbox; provider compute is allocated by its first work operation. */
|
|
1215
1309
|
createSandbox(agent: CRN, session: string, options?: CreateSandboxOptions, opts?: InvokeOpts): Promise<Sandbox>;
|
|
1216
1310
|
}
|
|
@@ -1415,10 +1509,33 @@ interface Task<T> {
|
|
|
1415
1509
|
version: string;
|
|
1416
1510
|
run(input: any, ctx: Ctx): Promise<T>;
|
|
1417
1511
|
}
|
|
1512
|
+
interface SpawnBudget {
|
|
1513
|
+
turns: number;
|
|
1514
|
+
microUsd: number;
|
|
1515
|
+
wallMs: number;
|
|
1516
|
+
}
|
|
1517
|
+
/** Exact local Resource and Tool names retained by a child Run. Omitted names
|
|
1518
|
+
* are unavailable to the child even when they are bound to the parent. */
|
|
1519
|
+
interface SpawnAttenuation {
|
|
1520
|
+
bindings: readonly string[];
|
|
1521
|
+
tools: readonly string[];
|
|
1522
|
+
}
|
|
1418
1523
|
interface SpawnOpts {
|
|
1419
1524
|
retries?: number;
|
|
1420
1525
|
dedupe?: "specHash";
|
|
1421
1526
|
from?: BranchRef;
|
|
1527
|
+
budget?: SpawnBudget;
|
|
1528
|
+
attenuation?: SpawnAttenuation;
|
|
1529
|
+
}
|
|
1530
|
+
/** Bounded, non-secret content that a Channel or UI may present while a Run is suspended. */
|
|
1531
|
+
interface AwaitPresentation {
|
|
1532
|
+
object: "constal.await.presentation";
|
|
1533
|
+
version: 1;
|
|
1534
|
+
kind: string;
|
|
1535
|
+
title: string;
|
|
1536
|
+
/** GitHub-flavored Markdown. */
|
|
1537
|
+
body: string;
|
|
1538
|
+
metadata?: Record<string, string | number | boolean | null>;
|
|
1422
1539
|
}
|
|
1423
1540
|
interface AwaitOpts<T> {
|
|
1424
1541
|
timeout?: number;
|
|
@@ -1426,6 +1543,8 @@ interface AwaitOpts<T> {
|
|
|
1426
1543
|
schema?: object;
|
|
1427
1544
|
maxBytes?: number;
|
|
1428
1545
|
afterRun?: "ignore" | "message";
|
|
1546
|
+
/** Explicitly public presentation; never include Credential material or private evidence. */
|
|
1547
|
+
presentation?: AwaitPresentation;
|
|
1429
1548
|
}
|
|
1430
1549
|
interface Handle<T> extends PromiseLike<T> {
|
|
1431
1550
|
readonly id: string;
|
|
@@ -1488,6 +1607,11 @@ interface Tool {
|
|
|
1488
1607
|
needs?: ResourceNeed[];
|
|
1489
1608
|
tier?: Tier;
|
|
1490
1609
|
guard?(args: any, ctx: Ctx): string | null;
|
|
1610
|
+
/**
|
|
1611
|
+
* Return a bounded, deterministic, secret-safe projection of a large result
|
|
1612
|
+
* for later model Turns. The runtime retains the complete result by Ref.
|
|
1613
|
+
*/
|
|
1614
|
+
preview?(result: any): unknown;
|
|
1491
1615
|
once?: "per-run-and-args" | "per-run";
|
|
1492
1616
|
run(args: any, ctx: Ctx): Promise<any>;
|
|
1493
1617
|
}
|
|
@@ -1522,9 +1646,13 @@ interface TurnSpec {
|
|
|
1522
1646
|
objective?: unknown;
|
|
1523
1647
|
context?: unknown;
|
|
1524
1648
|
tools?: string[];
|
|
1649
|
+
/** Require one of the offered Tools for this model generation. */
|
|
1650
|
+
toolChoice?: "auto" | "required";
|
|
1525
1651
|
gate?: TurnGate;
|
|
1526
1652
|
model?: string;
|
|
1527
1653
|
stream?: boolean;
|
|
1654
|
+
/** Requested output ceiling for this turn. The bound Model and Policy may lower it. */
|
|
1655
|
+
maxOutputTokens?: number;
|
|
1528
1656
|
}
|
|
1529
1657
|
interface ToolCallRecord {
|
|
1530
1658
|
id: string;
|
|
@@ -1543,6 +1671,8 @@ interface ToolCallRecord {
|
|
|
1543
1671
|
actor: Actor;
|
|
1544
1672
|
valueRef?: Ref;
|
|
1545
1673
|
};
|
|
1674
|
+
policyDecisionHash?: Hash;
|
|
1675
|
+
refusal?: "policy" | "guard";
|
|
1546
1676
|
}
|
|
1547
1677
|
interface TurnRecord {
|
|
1548
1678
|
hash: Hash;
|
|
@@ -1820,12 +1950,14 @@ declare function validateFoldFn<I, O>(fn: FoldFn<I, O> | SqlFold): FoldFn<I, O>
|
|
|
1820
1950
|
declare function agent<S>(def: AgentDef<S>): AgentDef<S>;
|
|
1821
1951
|
declare function subtask<T>(def: Task<T>): Task<T>;
|
|
1822
1952
|
|
|
1823
|
-
interface
|
|
1953
|
+
interface IngressRequest {
|
|
1824
1954
|
method: string;
|
|
1825
1955
|
url: string;
|
|
1826
1956
|
headers: Record<string, string>;
|
|
1827
1957
|
bodyBase64: string | null;
|
|
1828
1958
|
}
|
|
1959
|
+
/** The Channel protocol consumes the shared bounded ingress envelope. */
|
|
1960
|
+
type ChannelRequest = IngressRequest;
|
|
1829
1961
|
interface ChannelResponse {
|
|
1830
1962
|
status: number;
|
|
1831
1963
|
headers?: Record<string, string>;
|
|
@@ -1851,6 +1983,12 @@ interface CanonicalEventDraft<T = unknown> {
|
|
|
1851
1983
|
occurredAt?: number;
|
|
1852
1984
|
deliver?: DeliveryMode;
|
|
1853
1985
|
}
|
|
1986
|
+
interface IgnoredChannelEvent {
|
|
1987
|
+
ignored: true;
|
|
1988
|
+
reason: string;
|
|
1989
|
+
response: ChannelResponse;
|
|
1990
|
+
}
|
|
1991
|
+
type ChannelReceiveResult<T = unknown> = CanonicalEventDraft<T> | IgnoredChannelEvent;
|
|
1854
1992
|
interface DispatchResult<T = unknown> {
|
|
1855
1993
|
event: CanonicalEvent;
|
|
1856
1994
|
runId: string;
|
|
@@ -1870,6 +2008,8 @@ interface ChannelContext {
|
|
|
1870
2008
|
channel: CRN;
|
|
1871
2009
|
principal: Principal;
|
|
1872
2010
|
invocationId: string;
|
|
2011
|
+
/** Immutable deployment-authored Channel configuration pinned for this invocation. */
|
|
2012
|
+
config: unknown;
|
|
1873
2013
|
resources: Record<string, CRN>;
|
|
1874
2014
|
analytics: AnalyticsClient;
|
|
1875
2015
|
invoke<T>(resource: CRN, op: string, args: unknown, opts?: {
|
|
@@ -1904,7 +2044,7 @@ interface ChannelAlarmResult<Delivery = unknown> {
|
|
|
1904
2044
|
interface ChannelProtocol<Input = unknown, Output = unknown, Delivery = Output> {
|
|
1905
2045
|
id: string;
|
|
1906
2046
|
version: string;
|
|
1907
|
-
receive(request: ChannelRequest, context: ChannelContext): Promise<
|
|
2047
|
+
receive(request: ChannelRequest, context: ChannelContext): Promise<ChannelReceiveResult<Input>> | ChannelReceiveResult<Input>;
|
|
1908
2048
|
respond(result: DispatchResult<Output>, context: ChannelContext): Promise<ChannelResponse> | ChannelResponse;
|
|
1909
2049
|
send?(message: ChannelMessage<Delivery>, context: ChannelContext): Promise<DeliveryReceipt> | DeliveryReceipt;
|
|
1910
2050
|
alarm?(alarm: ChannelAlarm, context: ChannelContext): Promise<ChannelAlarmResult<Delivery> | void> | ChannelAlarmResult<Delivery> | void;
|
|
@@ -1920,9 +2060,13 @@ interface Channel<Input = unknown, Output = unknown, Delivery = Output> {
|
|
|
1920
2060
|
}
|
|
1921
2061
|
declare function channel<I, O, D = O>(definition: Channel<I, O, D>): Channel<I, O, D>;
|
|
1922
2062
|
|
|
2063
|
+
interface IngressTarget {
|
|
2064
|
+
kind: "channel" | "ui";
|
|
2065
|
+
crn: CRN;
|
|
2066
|
+
}
|
|
1923
2067
|
interface AuthProviderRequest {
|
|
1924
|
-
request:
|
|
1925
|
-
|
|
2068
|
+
request: IngressRequest;
|
|
2069
|
+
ingress: IngressTarget;
|
|
1926
2070
|
audience: CRN;
|
|
1927
2071
|
}
|
|
1928
2072
|
type AuthProviderResult = {
|
|
@@ -1940,7 +2084,7 @@ type AuthProviderResult = {
|
|
|
1940
2084
|
interface AuthProviderContext {
|
|
1941
2085
|
requestId: string;
|
|
1942
2086
|
provider: AuthProviderCRN;
|
|
1943
|
-
|
|
2087
|
+
ingress: IngressTarget;
|
|
1944
2088
|
resources: Record<string, CRN>;
|
|
1945
2089
|
invoke<T>(resource: CRN, op: string, args: unknown): Promise<T>;
|
|
1946
2090
|
}
|
|
@@ -1952,6 +2096,821 @@ interface AuthProvider {
|
|
|
1952
2096
|
}
|
|
1953
2097
|
declare function authProvider(definition: AuthProvider): AuthProvider;
|
|
1954
2098
|
|
|
2099
|
+
declare const UI_BUNDLE_BOUNDS: Readonly<{
|
|
2100
|
+
maximumManifestBytes: 16384;
|
|
2101
|
+
maximumModules: 128;
|
|
2102
|
+
maximumAssets: 512;
|
|
2103
|
+
maximumFileBytes: 4194304;
|
|
2104
|
+
maximumExpandedBytes: 16777216;
|
|
2105
|
+
}>;
|
|
2106
|
+
interface UiBundleManifest {
|
|
2107
|
+
schemaVersion: 1;
|
|
2108
|
+
kind: "constal.ui";
|
|
2109
|
+
runtime: {
|
|
2110
|
+
contract: "constal.ui-handler.v1";
|
|
2111
|
+
entry: string;
|
|
2112
|
+
};
|
|
2113
|
+
state?: {
|
|
2114
|
+
schemaVersion: number;
|
|
2115
|
+
compatibleSchemaVersions: {
|
|
2116
|
+
minimum: number;
|
|
2117
|
+
maximum: number;
|
|
2118
|
+
};
|
|
2119
|
+
};
|
|
2120
|
+
assets: {
|
|
2121
|
+
root: string;
|
|
2122
|
+
fallback: string;
|
|
2123
|
+
};
|
|
2124
|
+
contentSecurityPolicy: "strict";
|
|
2125
|
+
}
|
|
2126
|
+
interface UiBundle {
|
|
2127
|
+
manifest: UiBundleManifest;
|
|
2128
|
+
modules: Record<string, {
|
|
2129
|
+
type: "esmodule";
|
|
2130
|
+
source: string;
|
|
2131
|
+
}>;
|
|
2132
|
+
assets: Record<string, {
|
|
2133
|
+
bodyBase64: string;
|
|
2134
|
+
contentType: string;
|
|
2135
|
+
}>;
|
|
2136
|
+
}
|
|
2137
|
+
interface UiCapability {
|
|
2138
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
2139
|
+
}
|
|
2140
|
+
interface UiSqlResult<Row extends Record<string, unknown> = Record<string, unknown>> {
|
|
2141
|
+
rows: Row[];
|
|
2142
|
+
rowsRead: number;
|
|
2143
|
+
rowsWritten: number;
|
|
2144
|
+
databaseSize: number;
|
|
2145
|
+
}
|
|
2146
|
+
interface UiState {
|
|
2147
|
+
query<Row extends Record<string, unknown> = Record<string, unknown>>(sql: string, bindings?: unknown[]): UiSqlResult<Row>;
|
|
2148
|
+
batch(statements: Array<{
|
|
2149
|
+
sql: string;
|
|
2150
|
+
bindings?: unknown[];
|
|
2151
|
+
}>): UiSqlResult[];
|
|
2152
|
+
}
|
|
2153
|
+
interface UiRuntimeContext {
|
|
2154
|
+
ui: CRN;
|
|
2155
|
+
revision: Hash;
|
|
2156
|
+
publicBaseUrl: string;
|
|
2157
|
+
assets: UiCapability;
|
|
2158
|
+
channel: UiCapability;
|
|
2159
|
+
state?: UiState;
|
|
2160
|
+
}
|
|
2161
|
+
interface UiHandler {
|
|
2162
|
+
fetch(request: Request, context: UiRuntimeContext): Response | Promise<Response>;
|
|
2163
|
+
/** Runs without network capabilities inside one synchronous SQLite transaction. */
|
|
2164
|
+
migrate?(migration: {
|
|
2165
|
+
from: number | null;
|
|
2166
|
+
to: number;
|
|
2167
|
+
}, context: Pick<UiRuntimeContext, "ui" | "revision" | "publicBaseUrl"> & {
|
|
2168
|
+
state: UiState;
|
|
2169
|
+
}): void;
|
|
2170
|
+
}
|
|
2171
|
+
declare function uiBundleManifest(value: unknown, execution: UiExecution["mode"]): UiBundleManifest;
|
|
2172
|
+
declare function uiBundle(value: unknown, execution: UiExecution["mode"]): UiBundle;
|
|
2173
|
+
|
|
2174
|
+
type SetupStepStatus = "pending" | "current" | "complete" | "blocked";
|
|
2175
|
+
type SetupWorkflowStatus = "active" | "blocked" | "complete" | "cancelled";
|
|
2176
|
+
interface SetupStepSummary {
|
|
2177
|
+
id: string;
|
|
2178
|
+
label: string;
|
|
2179
|
+
status: SetupStepStatus;
|
|
2180
|
+
optional?: boolean;
|
|
2181
|
+
}
|
|
2182
|
+
interface SetupAction {
|
|
2183
|
+
id: string;
|
|
2184
|
+
label: string;
|
|
2185
|
+
intent: "primary" | "secondary" | "danger";
|
|
2186
|
+
}
|
|
2187
|
+
interface SetupPanelBase {
|
|
2188
|
+
id: string;
|
|
2189
|
+
title: string;
|
|
2190
|
+
description: string;
|
|
2191
|
+
actions: SetupAction[];
|
|
2192
|
+
}
|
|
2193
|
+
interface SetupFormPanel extends SetupPanelBase {
|
|
2194
|
+
kind: "form";
|
|
2195
|
+
schema: object;
|
|
2196
|
+
initialValues?: Record<string, unknown>;
|
|
2197
|
+
}
|
|
2198
|
+
interface SetupCredentialInteractionPanel extends SetupPanelBase {
|
|
2199
|
+
kind: "credential-interaction";
|
|
2200
|
+
provider: string;
|
|
2201
|
+
credentialId: string;
|
|
2202
|
+
operation: "connect" | "reauthorize" | "manage";
|
|
2203
|
+
}
|
|
2204
|
+
interface SetupReviewPanel extends SetupPanelBase {
|
|
2205
|
+
kind: "review";
|
|
2206
|
+
sections: Array<{
|
|
2207
|
+
id: string;
|
|
2208
|
+
title: string;
|
|
2209
|
+
rows: Array<{
|
|
2210
|
+
label: string;
|
|
2211
|
+
value: string;
|
|
2212
|
+
tone?: "default" | "muted" | "warning";
|
|
2213
|
+
}>;
|
|
2214
|
+
}>;
|
|
2215
|
+
}
|
|
2216
|
+
interface SetupProgressPanel extends SetupPanelBase {
|
|
2217
|
+
kind: "progress";
|
|
2218
|
+
progress: Array<{
|
|
2219
|
+
id: string;
|
|
2220
|
+
label: string;
|
|
2221
|
+
status: "pending" | "running" | "complete" | "failed";
|
|
2222
|
+
detail?: string;
|
|
2223
|
+
}>;
|
|
2224
|
+
}
|
|
2225
|
+
interface SetupTerminalPanel extends SetupPanelBase {
|
|
2226
|
+
kind: "complete" | "blocked";
|
|
2227
|
+
summary: string;
|
|
2228
|
+
details?: Array<{
|
|
2229
|
+
label: string;
|
|
2230
|
+
value: string;
|
|
2231
|
+
}>;
|
|
2232
|
+
}
|
|
2233
|
+
type SetupPanel = SetupFormPanel | SetupCredentialInteractionPanel | SetupReviewPanel | SetupProgressPanel | SetupTerminalPanel;
|
|
2234
|
+
interface SetupScreen {
|
|
2235
|
+
object: "constal.setup.screen";
|
|
2236
|
+
version: 1;
|
|
2237
|
+
workflow: {
|
|
2238
|
+
id: string;
|
|
2239
|
+
version: string;
|
|
2240
|
+
targetAgent: string;
|
|
2241
|
+
};
|
|
2242
|
+
revision: number;
|
|
2243
|
+
status: SetupWorkflowStatus;
|
|
2244
|
+
title: string;
|
|
2245
|
+
description: string;
|
|
2246
|
+
steps: SetupStepSummary[];
|
|
2247
|
+
current: SetupPanel;
|
|
2248
|
+
waitLabel: string | null;
|
|
2249
|
+
}
|
|
2250
|
+
interface SetupSubmission {
|
|
2251
|
+
object: "constal.setup.submission";
|
|
2252
|
+
version: 1;
|
|
2253
|
+
workflow: string;
|
|
2254
|
+
revision: number;
|
|
2255
|
+
step: string;
|
|
2256
|
+
action: string;
|
|
2257
|
+
values?: Record<string, unknown>;
|
|
2258
|
+
}
|
|
2259
|
+
/** Validates the bounded presentation artifact consumed by trusted Console renderers. */
|
|
2260
|
+
declare function setupScreen(value: unknown): SetupScreen;
|
|
2261
|
+
/** Validates one response against the exact open screen revision and form schema. */
|
|
2262
|
+
declare function setupSubmission(value: unknown, screen: SetupScreen): SetupSubmission;
|
|
2263
|
+
/** Await options for the exact screen. Runtime wait resolution remains the authority and replay fence. */
|
|
2264
|
+
declare function setupAwait(screen: SetupScreen): AwaitOpts<SetupSubmission>;
|
|
2265
|
+
/** A deterministic latest-screen projection for Console discovery and reload. */
|
|
2266
|
+
declare function setupScreenView(id?: string): ViewDef<SetupScreen | null, Fact>;
|
|
2267
|
+
|
|
2268
|
+
declare const CONSTAL_API_CAPABILITY: "constal.api";
|
|
2269
|
+
declare const CONSTAL_API_VERSION: "1";
|
|
2270
|
+
declare const CONSTAL_API_OPERATIONS: readonly ["describe", "query", "get", "relations", "explainPolicy", "plan", "apply", "observe"];
|
|
2271
|
+
type ConstalApiRisk = "read" | "low" | "material" | "destructive" | "financial" | "secret";
|
|
2272
|
+
interface ConstalApiObjectRef {
|
|
2273
|
+
kind: string;
|
|
2274
|
+
id: string;
|
|
2275
|
+
crn: CRN | null;
|
|
2276
|
+
hash: Hash | null;
|
|
2277
|
+
namespace: string | null;
|
|
2278
|
+
version?: string | null;
|
|
2279
|
+
}
|
|
2280
|
+
interface ConstalApiChangePlanRequest {
|
|
2281
|
+
objective: string;
|
|
2282
|
+
operations: Array<{
|
|
2283
|
+
id?: string;
|
|
2284
|
+
operation: string;
|
|
2285
|
+
target?: string;
|
|
2286
|
+
input: unknown;
|
|
2287
|
+
expectedCurrentHash?: Hash | null;
|
|
2288
|
+
dependsOn?: string[];
|
|
2289
|
+
}>;
|
|
2290
|
+
validateOnly?: boolean;
|
|
2291
|
+
}
|
|
2292
|
+
interface ConstalApiPlannedOperation {
|
|
2293
|
+
id: string;
|
|
2294
|
+
operation: string;
|
|
2295
|
+
target: ConstalApiObjectRef;
|
|
2296
|
+
input: unknown;
|
|
2297
|
+
inputHash: Hash;
|
|
2298
|
+
expectedCurrentHash: Hash | null;
|
|
2299
|
+
dependsOn: string[];
|
|
2300
|
+
effect: EffectClass;
|
|
2301
|
+
recovery: Recovery;
|
|
2302
|
+
risk: ConstalApiRisk;
|
|
2303
|
+
idempotencyKey: string;
|
|
2304
|
+
}
|
|
2305
|
+
interface ConstalApiChangePlan {
|
|
2306
|
+
object: "constal.change-plan";
|
|
2307
|
+
id: string;
|
|
2308
|
+
hash: Hash;
|
|
2309
|
+
catalogRevision: Hash;
|
|
2310
|
+
tenant: string;
|
|
2311
|
+
principal: CRN;
|
|
2312
|
+
authorityHash: Hash;
|
|
2313
|
+
createdAt: number;
|
|
2314
|
+
expiresAt: number;
|
|
2315
|
+
objective: string;
|
|
2316
|
+
operations: ConstalApiPlannedOperation[];
|
|
2317
|
+
diff: Array<{
|
|
2318
|
+
operation: string;
|
|
2319
|
+
target: ConstalApiObjectRef;
|
|
2320
|
+
before: unknown;
|
|
2321
|
+
after: unknown;
|
|
2322
|
+
}>;
|
|
2323
|
+
impact: {
|
|
2324
|
+
resources: ConstalApiObjectRef[];
|
|
2325
|
+
policies: ConstalApiObjectRef[];
|
|
2326
|
+
bindings: ConstalApiObjectRef[];
|
|
2327
|
+
};
|
|
2328
|
+
estimatedCost: {
|
|
2329
|
+
currency: "USD";
|
|
2330
|
+
microUsd: number;
|
|
2331
|
+
basis: string;
|
|
2332
|
+
} | null;
|
|
2333
|
+
approvals: Array<{
|
|
2334
|
+
operation: string;
|
|
2335
|
+
reason: string;
|
|
2336
|
+
risk: ConstalApiRisk;
|
|
2337
|
+
}>;
|
|
2338
|
+
validation: Array<{
|
|
2339
|
+
id: string;
|
|
2340
|
+
status: "passed" | "failed" | "pending";
|
|
2341
|
+
detail: string;
|
|
2342
|
+
}>;
|
|
2343
|
+
rollback: {
|
|
2344
|
+
supported: boolean;
|
|
2345
|
+
operations: string[];
|
|
2346
|
+
reason: string | null;
|
|
2347
|
+
} | null;
|
|
2348
|
+
warnings: string[];
|
|
2349
|
+
}
|
|
2350
|
+
interface ConstalApiChangePlanRef {
|
|
2351
|
+
id: string;
|
|
2352
|
+
hash: Hash;
|
|
2353
|
+
}
|
|
2354
|
+
interface ConstalApiApplyRequest {
|
|
2355
|
+
plan: ConstalApiChangePlanRef;
|
|
2356
|
+
eventId: string;
|
|
2357
|
+
}
|
|
2358
|
+
interface ConstalApiOperationReceipt {
|
|
2359
|
+
operation: string;
|
|
2360
|
+
step: string;
|
|
2361
|
+
state: "pending" | "succeeded" | "failed" | "outcome-unknown" | "skipped";
|
|
2362
|
+
target: ConstalApiObjectRef;
|
|
2363
|
+
result: unknown;
|
|
2364
|
+
error: ConstalApiError | null;
|
|
2365
|
+
startedAt: number;
|
|
2366
|
+
completedAt: number;
|
|
2367
|
+
}
|
|
2368
|
+
interface ConstalApiChangeReceipt {
|
|
2369
|
+
object: "constal.change-receipt";
|
|
2370
|
+
id: string;
|
|
2371
|
+
plan: {
|
|
2372
|
+
id: string;
|
|
2373
|
+
hash: Hash;
|
|
2374
|
+
};
|
|
2375
|
+
eventId: string;
|
|
2376
|
+
state: "pending" | "succeeded" | "partially-succeeded" | "failed" | "cancelled" | "outcome-unknown";
|
|
2377
|
+
operations: ConstalApiOperationReceipt[];
|
|
2378
|
+
createdAt: number;
|
|
2379
|
+
updatedAt: number;
|
|
2380
|
+
}
|
|
2381
|
+
interface ConstalApiError {
|
|
2382
|
+
object: "constal.api.error";
|
|
2383
|
+
code: string;
|
|
2384
|
+
message: string;
|
|
2385
|
+
operation?: string;
|
|
2386
|
+
target?: string;
|
|
2387
|
+
retryable: boolean;
|
|
2388
|
+
requestId: string;
|
|
2389
|
+
evidence?: ConstalApiObjectRef[];
|
|
2390
|
+
details?: unknown;
|
|
2391
|
+
}
|
|
2392
|
+
/** Shared schemas pinned into the Resource catalog and Agent Tools. */
|
|
2393
|
+
declare const CONSTAL_API_OPERATION_SCHEMAS: {
|
|
2394
|
+
readonly describe: {
|
|
2395
|
+
readonly type: "object";
|
|
2396
|
+
readonly additionalProperties: false;
|
|
2397
|
+
readonly properties: {
|
|
2398
|
+
readonly domains: {
|
|
2399
|
+
readonly type: "array";
|
|
2400
|
+
readonly maxItems: 128;
|
|
2401
|
+
readonly items: {
|
|
2402
|
+
readonly type: "string";
|
|
2403
|
+
readonly minLength: 1;
|
|
2404
|
+
readonly maxLength: 256;
|
|
2405
|
+
};
|
|
2406
|
+
};
|
|
2407
|
+
readonly kinds: {
|
|
2408
|
+
readonly type: "array";
|
|
2409
|
+
readonly maxItems: 128;
|
|
2410
|
+
readonly items: {
|
|
2411
|
+
readonly type: "string";
|
|
2412
|
+
readonly minLength: 1;
|
|
2413
|
+
readonly maxLength: 256;
|
|
2414
|
+
};
|
|
2415
|
+
};
|
|
2416
|
+
readonly operations: {
|
|
2417
|
+
readonly type: "array";
|
|
2418
|
+
readonly maxItems: 128;
|
|
2419
|
+
readonly items: {
|
|
2420
|
+
readonly type: "string";
|
|
2421
|
+
readonly minLength: 1;
|
|
2422
|
+
readonly maxLength: 256;
|
|
2423
|
+
};
|
|
2424
|
+
};
|
|
2425
|
+
readonly include: {
|
|
2426
|
+
readonly type: "array";
|
|
2427
|
+
readonly maxItems: 5;
|
|
2428
|
+
readonly uniqueItems: true;
|
|
2429
|
+
readonly items: {
|
|
2430
|
+
readonly enum: readonly ["objects", "operations", "relations", "schemas", "docs"];
|
|
2431
|
+
};
|
|
2432
|
+
};
|
|
2433
|
+
readonly cursor: {
|
|
2434
|
+
readonly type: "string";
|
|
2435
|
+
readonly maxLength: 4096;
|
|
2436
|
+
};
|
|
2437
|
+
readonly limit: {
|
|
2438
|
+
readonly type: "integer";
|
|
2439
|
+
readonly minimum: 1;
|
|
2440
|
+
readonly maximum: 200;
|
|
2441
|
+
};
|
|
2442
|
+
};
|
|
2443
|
+
};
|
|
2444
|
+
readonly query: {
|
|
2445
|
+
readonly type: "object";
|
|
2446
|
+
readonly required: readonly ["kind", "scope"];
|
|
2447
|
+
readonly additionalProperties: false;
|
|
2448
|
+
readonly properties: {
|
|
2449
|
+
readonly kind: {
|
|
2450
|
+
readonly type: "string";
|
|
2451
|
+
readonly minLength: 1;
|
|
2452
|
+
readonly maxLength: 128;
|
|
2453
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9._-]{0,127}$";
|
|
2454
|
+
};
|
|
2455
|
+
readonly scope: {
|
|
2456
|
+
readonly anyOf: readonly [{
|
|
2457
|
+
readonly type: "object";
|
|
2458
|
+
readonly required: readonly ["kind", "namespace"];
|
|
2459
|
+
readonly additionalProperties: false;
|
|
2460
|
+
readonly properties: {
|
|
2461
|
+
readonly kind: {
|
|
2462
|
+
readonly const: "namespace";
|
|
2463
|
+
};
|
|
2464
|
+
readonly namespace: {
|
|
2465
|
+
readonly type: "string";
|
|
2466
|
+
readonly minLength: 1;
|
|
2467
|
+
readonly maxLength: 128;
|
|
2468
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9._-]{0,127}$";
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
}, {
|
|
2472
|
+
readonly type: "object";
|
|
2473
|
+
readonly required: readonly ["kind"];
|
|
2474
|
+
readonly additionalProperties: false;
|
|
2475
|
+
readonly properties: {
|
|
2476
|
+
readonly kind: {
|
|
2477
|
+
readonly const: "tenant";
|
|
2478
|
+
};
|
|
2479
|
+
};
|
|
2480
|
+
}];
|
|
2481
|
+
};
|
|
2482
|
+
readonly filter: {
|
|
2483
|
+
readonly type: "object";
|
|
2484
|
+
};
|
|
2485
|
+
readonly search: {
|
|
2486
|
+
readonly type: "string";
|
|
2487
|
+
readonly maxLength: 512;
|
|
2488
|
+
};
|
|
2489
|
+
readonly order: {
|
|
2490
|
+
readonly type: "array";
|
|
2491
|
+
readonly maxItems: 8;
|
|
2492
|
+
readonly items: {
|
|
2493
|
+
readonly type: "object";
|
|
2494
|
+
readonly required: readonly ["field", "direction"];
|
|
2495
|
+
readonly additionalProperties: false;
|
|
2496
|
+
readonly properties: {
|
|
2497
|
+
readonly field: {
|
|
2498
|
+
readonly type: "string";
|
|
2499
|
+
readonly minLength: 1;
|
|
2500
|
+
readonly maxLength: 128;
|
|
2501
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9._-]{0,127}$";
|
|
2502
|
+
};
|
|
2503
|
+
readonly direction: {
|
|
2504
|
+
readonly enum: readonly ["ascending", "descending"];
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2508
|
+
};
|
|
2509
|
+
readonly fields: {
|
|
2510
|
+
readonly type: "array";
|
|
2511
|
+
readonly maxItems: 128;
|
|
2512
|
+
readonly items: {
|
|
2513
|
+
readonly type: "string";
|
|
2514
|
+
readonly minLength: 1;
|
|
2515
|
+
readonly maxLength: 256;
|
|
2516
|
+
};
|
|
2517
|
+
};
|
|
2518
|
+
readonly limit: {
|
|
2519
|
+
readonly type: "integer";
|
|
2520
|
+
readonly minimum: 1;
|
|
2521
|
+
readonly maximum: 200;
|
|
2522
|
+
};
|
|
2523
|
+
readonly cursor: {
|
|
2524
|
+
readonly type: "string";
|
|
2525
|
+
readonly maxLength: 4096;
|
|
2526
|
+
};
|
|
2527
|
+
readonly asOf: {
|
|
2528
|
+
readonly type: "integer";
|
|
2529
|
+
readonly minimum: 0;
|
|
2530
|
+
};
|
|
2531
|
+
readonly range: {
|
|
2532
|
+
readonly type: "object";
|
|
2533
|
+
readonly required: readonly ["start", "end"];
|
|
2534
|
+
readonly additionalProperties: false;
|
|
2535
|
+
readonly properties: {
|
|
2536
|
+
readonly start: {
|
|
2537
|
+
readonly type: "integer";
|
|
2538
|
+
readonly minimum: 0;
|
|
2539
|
+
};
|
|
2540
|
+
readonly end: {
|
|
2541
|
+
readonly type: "integer";
|
|
2542
|
+
readonly minimum: 0;
|
|
2543
|
+
};
|
|
2544
|
+
};
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
};
|
|
2548
|
+
readonly get: {
|
|
2549
|
+
readonly type: "object";
|
|
2550
|
+
readonly required: readonly ["ref"];
|
|
2551
|
+
readonly additionalProperties: false;
|
|
2552
|
+
readonly properties: {
|
|
2553
|
+
readonly ref: {
|
|
2554
|
+
readonly anyOf: readonly [{
|
|
2555
|
+
readonly type: "object";
|
|
2556
|
+
readonly additionalProperties: false;
|
|
2557
|
+
readonly properties: {
|
|
2558
|
+
readonly kind: {
|
|
2559
|
+
readonly type: "string";
|
|
2560
|
+
readonly maxLength: 128;
|
|
2561
|
+
};
|
|
2562
|
+
readonly id: {
|
|
2563
|
+
readonly type: "string";
|
|
2564
|
+
readonly maxLength: 512;
|
|
2565
|
+
};
|
|
2566
|
+
readonly crn: {
|
|
2567
|
+
readonly type: readonly ["string", "null"];
|
|
2568
|
+
readonly maxLength: 2048;
|
|
2569
|
+
};
|
|
2570
|
+
readonly hash: {
|
|
2571
|
+
readonly anyOf: readonly [{
|
|
2572
|
+
readonly type: "null";
|
|
2573
|
+
}, {
|
|
2574
|
+
readonly type: "string";
|
|
2575
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
2576
|
+
}];
|
|
2577
|
+
};
|
|
2578
|
+
readonly namespace: {
|
|
2579
|
+
readonly type: readonly ["string", "null"];
|
|
2580
|
+
readonly maxLength: 128;
|
|
2581
|
+
};
|
|
2582
|
+
readonly version: {
|
|
2583
|
+
readonly type: readonly ["string", "null"];
|
|
2584
|
+
readonly maxLength: 128;
|
|
2585
|
+
};
|
|
2586
|
+
};
|
|
2587
|
+
}, {
|
|
2588
|
+
readonly type: "object";
|
|
2589
|
+
readonly required: readonly ["crn"];
|
|
2590
|
+
readonly additionalProperties: false;
|
|
2591
|
+
readonly properties: {
|
|
2592
|
+
readonly crn: {
|
|
2593
|
+
readonly type: "string";
|
|
2594
|
+
readonly minLength: 1;
|
|
2595
|
+
readonly maxLength: 2048;
|
|
2596
|
+
};
|
|
2597
|
+
readonly hash: {
|
|
2598
|
+
readonly type: "string";
|
|
2599
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
2600
|
+
};
|
|
2601
|
+
};
|
|
2602
|
+
}];
|
|
2603
|
+
};
|
|
2604
|
+
readonly fields: {
|
|
2605
|
+
readonly type: "array";
|
|
2606
|
+
readonly maxItems: 128;
|
|
2607
|
+
readonly items: {
|
|
2608
|
+
readonly type: "string";
|
|
2609
|
+
readonly minLength: 1;
|
|
2610
|
+
readonly maxLength: 256;
|
|
2611
|
+
};
|
|
2612
|
+
};
|
|
2613
|
+
readonly page: {
|
|
2614
|
+
readonly type: "object";
|
|
2615
|
+
readonly additionalProperties: false;
|
|
2616
|
+
readonly properties: {
|
|
2617
|
+
readonly cursor: {
|
|
2618
|
+
readonly type: "string";
|
|
2619
|
+
readonly maxLength: 4096;
|
|
2620
|
+
};
|
|
2621
|
+
readonly limit: {
|
|
2622
|
+
readonly type: "integer";
|
|
2623
|
+
readonly minimum: 1;
|
|
2624
|
+
readonly maximum: 500;
|
|
2625
|
+
};
|
|
2626
|
+
};
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
};
|
|
2630
|
+
readonly relations: {
|
|
2631
|
+
readonly type: "object";
|
|
2632
|
+
readonly required: readonly ["start"];
|
|
2633
|
+
readonly additionalProperties: false;
|
|
2634
|
+
readonly properties: {
|
|
2635
|
+
readonly start: {
|
|
2636
|
+
readonly anyOf: readonly [{
|
|
2637
|
+
readonly type: "object";
|
|
2638
|
+
readonly additionalProperties: false;
|
|
2639
|
+
readonly properties: {
|
|
2640
|
+
readonly kind: {
|
|
2641
|
+
readonly type: "string";
|
|
2642
|
+
readonly maxLength: 128;
|
|
2643
|
+
};
|
|
2644
|
+
readonly id: {
|
|
2645
|
+
readonly type: "string";
|
|
2646
|
+
readonly maxLength: 512;
|
|
2647
|
+
};
|
|
2648
|
+
readonly crn: {
|
|
2649
|
+
readonly type: readonly ["string", "null"];
|
|
2650
|
+
readonly maxLength: 2048;
|
|
2651
|
+
};
|
|
2652
|
+
readonly hash: {
|
|
2653
|
+
readonly anyOf: readonly [{
|
|
2654
|
+
readonly type: "null";
|
|
2655
|
+
}, {
|
|
2656
|
+
readonly type: "string";
|
|
2657
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
2658
|
+
}];
|
|
2659
|
+
};
|
|
2660
|
+
readonly namespace: {
|
|
2661
|
+
readonly type: readonly ["string", "null"];
|
|
2662
|
+
readonly maxLength: 128;
|
|
2663
|
+
};
|
|
2664
|
+
readonly version: {
|
|
2665
|
+
readonly type: readonly ["string", "null"];
|
|
2666
|
+
readonly maxLength: 128;
|
|
2667
|
+
};
|
|
2668
|
+
};
|
|
2669
|
+
}, {
|
|
2670
|
+
readonly type: "object";
|
|
2671
|
+
readonly required: readonly ["crn"];
|
|
2672
|
+
readonly additionalProperties: false;
|
|
2673
|
+
readonly properties: {
|
|
2674
|
+
readonly crn: {
|
|
2675
|
+
readonly type: "string";
|
|
2676
|
+
readonly minLength: 1;
|
|
2677
|
+
readonly maxLength: 2048;
|
|
2678
|
+
};
|
|
2679
|
+
readonly hash: {
|
|
2680
|
+
readonly type: "string";
|
|
2681
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2684
|
+
}];
|
|
2685
|
+
};
|
|
2686
|
+
readonly direction: {
|
|
2687
|
+
readonly enum: readonly ["outgoing", "incoming", "both"];
|
|
2688
|
+
};
|
|
2689
|
+
readonly types: {
|
|
2690
|
+
readonly type: "array";
|
|
2691
|
+
readonly maxItems: 128;
|
|
2692
|
+
readonly items: {
|
|
2693
|
+
readonly type: "string";
|
|
2694
|
+
readonly minLength: 1;
|
|
2695
|
+
readonly maxLength: 256;
|
|
2696
|
+
};
|
|
2697
|
+
};
|
|
2698
|
+
readonly depth: {
|
|
2699
|
+
readonly type: "integer";
|
|
2700
|
+
readonly minimum: 1;
|
|
2701
|
+
readonly maximum: 3;
|
|
2702
|
+
};
|
|
2703
|
+
readonly limit: {
|
|
2704
|
+
readonly type: "integer";
|
|
2705
|
+
readonly minimum: 1;
|
|
2706
|
+
readonly maximum: 200;
|
|
2707
|
+
};
|
|
2708
|
+
readonly cursor: {
|
|
2709
|
+
readonly type: "string";
|
|
2710
|
+
readonly maxLength: 4096;
|
|
2711
|
+
};
|
|
2712
|
+
};
|
|
2713
|
+
};
|
|
2714
|
+
readonly explainPolicy: {
|
|
2715
|
+
readonly type: "object";
|
|
2716
|
+
readonly required: readonly ["action", "resource"];
|
|
2717
|
+
readonly additionalProperties: false;
|
|
2718
|
+
readonly properties: {
|
|
2719
|
+
readonly principal: {
|
|
2720
|
+
readonly anyOf: readonly [{
|
|
2721
|
+
readonly type: "string";
|
|
2722
|
+
readonly maxLength: 2048;
|
|
2723
|
+
}, {
|
|
2724
|
+
readonly type: "object";
|
|
2725
|
+
readonly required: readonly ["roles", "scopes"];
|
|
2726
|
+
readonly additionalProperties: false;
|
|
2727
|
+
readonly properties: {
|
|
2728
|
+
readonly name: {
|
|
2729
|
+
readonly type: "string";
|
|
2730
|
+
readonly maxLength: 2048;
|
|
2731
|
+
};
|
|
2732
|
+
readonly roles: {
|
|
2733
|
+
readonly type: "array";
|
|
2734
|
+
readonly maxItems: 64;
|
|
2735
|
+
readonly uniqueItems: true;
|
|
2736
|
+
readonly items: {
|
|
2737
|
+
readonly type: "string";
|
|
2738
|
+
readonly minLength: 1;
|
|
2739
|
+
readonly maxLength: 2048;
|
|
2740
|
+
};
|
|
2741
|
+
};
|
|
2742
|
+
readonly scopes: {
|
|
2743
|
+
readonly type: "array";
|
|
2744
|
+
readonly maxItems: 256;
|
|
2745
|
+
readonly uniqueItems: true;
|
|
2746
|
+
readonly items: {
|
|
2747
|
+
readonly type: "string";
|
|
2748
|
+
readonly pattern: "^(?:\\*|[a-z][a-z0-9-]{0,63}:(?:[a-z][a-z0-9-]{0,63}|\\*))$";
|
|
2749
|
+
};
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2752
|
+
}];
|
|
2753
|
+
};
|
|
2754
|
+
readonly action: {
|
|
2755
|
+
readonly type: "string";
|
|
2756
|
+
readonly pattern: string;
|
|
2757
|
+
};
|
|
2758
|
+
readonly resource: {
|
|
2759
|
+
readonly type: "string";
|
|
2760
|
+
readonly minLength: 1;
|
|
2761
|
+
readonly maxLength: 2048;
|
|
2762
|
+
};
|
|
2763
|
+
readonly context: {
|
|
2764
|
+
readonly type: "object";
|
|
2765
|
+
};
|
|
2766
|
+
readonly arguments: {};
|
|
2767
|
+
readonly at: {
|
|
2768
|
+
readonly type: "object";
|
|
2769
|
+
readonly required: readonly ["run"];
|
|
2770
|
+
readonly additionalProperties: false;
|
|
2771
|
+
readonly properties: {
|
|
2772
|
+
readonly run: {
|
|
2773
|
+
readonly type: "object";
|
|
2774
|
+
readonly required: readonly ["namespace", "agent", "session", "run"];
|
|
2775
|
+
readonly additionalProperties: false;
|
|
2776
|
+
readonly properties: {
|
|
2777
|
+
readonly namespace: {
|
|
2778
|
+
readonly type: "string";
|
|
2779
|
+
readonly minLength: 1;
|
|
2780
|
+
readonly maxLength: 128;
|
|
2781
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9._-]{0,127}$";
|
|
2782
|
+
};
|
|
2783
|
+
readonly agent: {
|
|
2784
|
+
readonly type: "string";
|
|
2785
|
+
readonly minLength: 1;
|
|
2786
|
+
readonly maxLength: 63;
|
|
2787
|
+
readonly pattern: "^[a-z0-9][a-z0-9-]{0,62}$";
|
|
2788
|
+
};
|
|
2789
|
+
readonly session: {
|
|
2790
|
+
readonly type: "string";
|
|
2791
|
+
readonly minLength: 1;
|
|
2792
|
+
readonly maxLength: 256;
|
|
2793
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
|
|
2794
|
+
};
|
|
2795
|
+
readonly run: {
|
|
2796
|
+
readonly type: "string";
|
|
2797
|
+
readonly minLength: 1;
|
|
2798
|
+
readonly maxLength: 256;
|
|
2799
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
|
|
2800
|
+
};
|
|
2801
|
+
};
|
|
2802
|
+
};
|
|
2803
|
+
};
|
|
2804
|
+
};
|
|
2805
|
+
};
|
|
2806
|
+
};
|
|
2807
|
+
readonly plan: {
|
|
2808
|
+
readonly type: "object";
|
|
2809
|
+
readonly required: readonly ["objective", "operations"];
|
|
2810
|
+
readonly additionalProperties: false;
|
|
2811
|
+
readonly properties: {
|
|
2812
|
+
readonly objective: {
|
|
2813
|
+
readonly type: "string";
|
|
2814
|
+
readonly minLength: 1;
|
|
2815
|
+
readonly maxLength: 8192;
|
|
2816
|
+
};
|
|
2817
|
+
readonly validateOnly: {
|
|
2818
|
+
readonly type: "boolean";
|
|
2819
|
+
};
|
|
2820
|
+
readonly operations: {
|
|
2821
|
+
readonly type: "array";
|
|
2822
|
+
readonly minItems: 1;
|
|
2823
|
+
readonly maxItems: 64;
|
|
2824
|
+
readonly items: {
|
|
2825
|
+
readonly type: "object";
|
|
2826
|
+
readonly required: readonly ["operation", "input"];
|
|
2827
|
+
readonly additionalProperties: false;
|
|
2828
|
+
readonly properties: {
|
|
2829
|
+
readonly id: {
|
|
2830
|
+
readonly type: "string";
|
|
2831
|
+
readonly minLength: 1;
|
|
2832
|
+
readonly maxLength: 256;
|
|
2833
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
|
|
2834
|
+
};
|
|
2835
|
+
readonly operation: {
|
|
2836
|
+
readonly type: "string";
|
|
2837
|
+
readonly minLength: 1;
|
|
2838
|
+
readonly maxLength: 128;
|
|
2839
|
+
readonly pattern: "^[A-Za-z][A-Za-z0-9._-]{0,127}$";
|
|
2840
|
+
};
|
|
2841
|
+
readonly target: {
|
|
2842
|
+
readonly type: "string";
|
|
2843
|
+
readonly maxLength: 2048;
|
|
2844
|
+
};
|
|
2845
|
+
readonly input: {};
|
|
2846
|
+
readonly expectedCurrentHash: {
|
|
2847
|
+
readonly anyOf: readonly [{
|
|
2848
|
+
readonly type: "null";
|
|
2849
|
+
}, {
|
|
2850
|
+
readonly type: "string";
|
|
2851
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
2852
|
+
}];
|
|
2853
|
+
};
|
|
2854
|
+
readonly dependsOn: {
|
|
2855
|
+
readonly type: "array";
|
|
2856
|
+
readonly maxItems: 64;
|
|
2857
|
+
readonly items: {
|
|
2858
|
+
readonly type: "string";
|
|
2859
|
+
readonly minLength: 1;
|
|
2860
|
+
readonly maxLength: 256;
|
|
2861
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
|
|
2862
|
+
};
|
|
2863
|
+
};
|
|
2864
|
+
};
|
|
2865
|
+
};
|
|
2866
|
+
};
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2869
|
+
readonly apply: {
|
|
2870
|
+
readonly type: "object";
|
|
2871
|
+
readonly required: readonly ["plan", "eventId"];
|
|
2872
|
+
readonly additionalProperties: false;
|
|
2873
|
+
readonly properties: {
|
|
2874
|
+
readonly plan: {
|
|
2875
|
+
readonly type: "object";
|
|
2876
|
+
readonly required: readonly ["id", "hash"];
|
|
2877
|
+
readonly additionalProperties: false;
|
|
2878
|
+
readonly properties: {
|
|
2879
|
+
readonly id: {
|
|
2880
|
+
readonly type: "string";
|
|
2881
|
+
readonly minLength: 1;
|
|
2882
|
+
readonly maxLength: 256;
|
|
2883
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
|
|
2884
|
+
};
|
|
2885
|
+
readonly hash: {
|
|
2886
|
+
readonly type: "string";
|
|
2887
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
2888
|
+
};
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
readonly eventId: {
|
|
2892
|
+
readonly type: "string";
|
|
2893
|
+
readonly minLength: 1;
|
|
2894
|
+
readonly maxLength: 256;
|
|
2895
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
|
|
2896
|
+
};
|
|
2897
|
+
};
|
|
2898
|
+
};
|
|
2899
|
+
readonly observe: {
|
|
2900
|
+
readonly type: "object";
|
|
2901
|
+
readonly required: readonly ["id"];
|
|
2902
|
+
readonly additionalProperties: false;
|
|
2903
|
+
readonly properties: {
|
|
2904
|
+
readonly id: {
|
|
2905
|
+
readonly type: "string";
|
|
2906
|
+
readonly minLength: 1;
|
|
2907
|
+
readonly maxLength: 256;
|
|
2908
|
+
readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
|
|
2909
|
+
};
|
|
2910
|
+
};
|
|
2911
|
+
};
|
|
2912
|
+
};
|
|
2913
|
+
|
|
1955
2914
|
interface PolicyDefinition {
|
|
1956
2915
|
id: string;
|
|
1957
2916
|
version: string;
|
|
@@ -1989,8 +2948,109 @@ interface CatalogTool extends Tool {
|
|
|
1989
2948
|
op: string;
|
|
1990
2949
|
};
|
|
1991
2950
|
}
|
|
1992
|
-
declare function opTool(binding: string, op: string, override?: Partial<Pick<Tool, "name" | "description" | "tier" | "once" | "guard">>): CatalogTool;
|
|
2951
|
+
declare function opTool(binding: string, op: string, override?: Partial<Pick<Tool, "name" | "description" | "schema" | "tier" | "once" | "guard" | "preview">>): CatalogTool;
|
|
1993
2952
|
declare function opTools(binding: string, ops?: string[]): CatalogTool[];
|
|
2953
|
+
declare const WEB_FETCH_ARGUMENT_SCHEMA: {
|
|
2954
|
+
readonly type: "object";
|
|
2955
|
+
readonly required: readonly ["url"];
|
|
2956
|
+
readonly additionalProperties: false;
|
|
2957
|
+
readonly properties: {
|
|
2958
|
+
readonly url: {
|
|
2959
|
+
readonly type: "string";
|
|
2960
|
+
readonly minLength: 1;
|
|
2961
|
+
readonly maxLength: 2048;
|
|
2962
|
+
};
|
|
2963
|
+
readonly accept: {
|
|
2964
|
+
readonly type: "string";
|
|
2965
|
+
readonly maxLength: 256;
|
|
2966
|
+
};
|
|
2967
|
+
};
|
|
2968
|
+
};
|
|
2969
|
+
declare const WEB_SEARCH_ARGUMENT_SCHEMA: {
|
|
2970
|
+
readonly type: "object";
|
|
2971
|
+
readonly required: readonly ["query"];
|
|
2972
|
+
readonly additionalProperties: false;
|
|
2973
|
+
readonly properties: {
|
|
2974
|
+
readonly query: {
|
|
2975
|
+
readonly type: "string";
|
|
2976
|
+
readonly minLength: 1;
|
|
2977
|
+
readonly maxLength: 4096;
|
|
2978
|
+
readonly description: "A self-contained description of the information to find.";
|
|
2979
|
+
};
|
|
2980
|
+
readonly searchQueries: {
|
|
2981
|
+
readonly type: "array";
|
|
2982
|
+
readonly minItems: 1;
|
|
2983
|
+
readonly maxItems: 3;
|
|
2984
|
+
readonly uniqueItems: true;
|
|
2985
|
+
readonly description: "Optional concise keyword queries that narrow the search.";
|
|
2986
|
+
readonly items: {
|
|
2987
|
+
readonly type: "string";
|
|
2988
|
+
readonly minLength: 1;
|
|
2989
|
+
readonly maxLength: 256;
|
|
2990
|
+
};
|
|
2991
|
+
};
|
|
2992
|
+
readonly maximumResults: {
|
|
2993
|
+
readonly type: "integer";
|
|
2994
|
+
readonly minimum: 1;
|
|
2995
|
+
readonly maximum: 20;
|
|
2996
|
+
readonly description: "Maximum number of sources to return.";
|
|
2997
|
+
};
|
|
2998
|
+
readonly maximumCharacters: {
|
|
2999
|
+
readonly type: "integer";
|
|
3000
|
+
readonly minimum: 1000;
|
|
3001
|
+
readonly maximum: 60000;
|
|
3002
|
+
readonly description: "Maximum total excerpt characters to return.";
|
|
3003
|
+
};
|
|
3004
|
+
readonly includeDomains: {
|
|
3005
|
+
readonly type: "array";
|
|
3006
|
+
readonly maxItems: 50;
|
|
3007
|
+
readonly uniqueItems: true;
|
|
3008
|
+
readonly description: "Optional domains to restrict results to.";
|
|
3009
|
+
readonly items: {
|
|
3010
|
+
readonly type: "string";
|
|
3011
|
+
readonly minLength: 1;
|
|
3012
|
+
readonly maxLength: 253;
|
|
3013
|
+
};
|
|
3014
|
+
};
|
|
3015
|
+
readonly excludeDomains: {
|
|
3016
|
+
readonly type: "array";
|
|
3017
|
+
readonly maxItems: 50;
|
|
3018
|
+
readonly uniqueItems: true;
|
|
3019
|
+
readonly description: "Optional domains to omit.";
|
|
3020
|
+
readonly items: {
|
|
3021
|
+
readonly type: "string";
|
|
3022
|
+
readonly minLength: 1;
|
|
3023
|
+
readonly maxLength: 253;
|
|
3024
|
+
};
|
|
3025
|
+
};
|
|
3026
|
+
readonly afterDate: {
|
|
3027
|
+
readonly type: "string";
|
|
3028
|
+
readonly pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$";
|
|
3029
|
+
readonly description: "Optional earliest publication date in YYYY-MM-DD form.";
|
|
3030
|
+
};
|
|
3031
|
+
readonly searchDepth: {
|
|
3032
|
+
readonly type: "string";
|
|
3033
|
+
readonly enum: readonly ["basic", "advanced"];
|
|
3034
|
+
readonly description: "Provider search depth when supported.";
|
|
3035
|
+
};
|
|
3036
|
+
readonly includeAnswer: {
|
|
3037
|
+
readonly type: "boolean";
|
|
3038
|
+
readonly description: "Request a provider-synthesized answer when supported.";
|
|
3039
|
+
};
|
|
3040
|
+
readonly includeRawContent: {
|
|
3041
|
+
readonly type: "boolean";
|
|
3042
|
+
readonly description: "Include bounded raw source content when supported.";
|
|
3043
|
+
};
|
|
3044
|
+
readonly includeImages: {
|
|
3045
|
+
readonly type: "boolean";
|
|
3046
|
+
readonly description: "Include relevant image results when supported.";
|
|
3047
|
+
};
|
|
3048
|
+
readonly includeImageDescriptions: {
|
|
3049
|
+
readonly type: "boolean";
|
|
3050
|
+
readonly description: "Include image descriptions when supported.";
|
|
3051
|
+
};
|
|
3052
|
+
};
|
|
3053
|
+
};
|
|
1994
3054
|
declare const webFetch: CatalogTool;
|
|
1995
3055
|
declare const webSearch: CatalogTool;
|
|
1996
3056
|
declare const casTool: Tool;
|
|
@@ -2077,10 +3137,14 @@ interface MemoryRememberArgs {
|
|
|
2077
3137
|
id?: string;
|
|
2078
3138
|
content: string;
|
|
2079
3139
|
metadata?: Record<string, unknown>;
|
|
3140
|
+
/** Optional host-derived subpartition within the already authenticated Memory owner partition. */
|
|
3141
|
+
scope?: string;
|
|
2080
3142
|
}
|
|
2081
3143
|
interface MemorySearchArgs {
|
|
2082
3144
|
query: string;
|
|
2083
3145
|
limit?: number;
|
|
3146
|
+
/** Must match the host-derived scope used while remembering records. */
|
|
3147
|
+
scope?: string;
|
|
2084
3148
|
}
|
|
2085
3149
|
interface MemoryGetArgs {
|
|
2086
3150
|
id: string;
|
|
@@ -2286,6 +3350,7 @@ declare function credentialProviderSetupMetadata(value: unknown, slots: string[]
|
|
|
2286
3350
|
declare function credentialProvider<C>(definition: CredentialProviderDefinition<C>): CredentialProviderPackage<C>;
|
|
2287
3351
|
|
|
2288
3352
|
type ModelGatewayProtocol = "anthropic" | "openai";
|
|
3353
|
+
type RawModelProtocol = ModelGatewayProtocol | "bedrock";
|
|
2289
3354
|
interface ModelTool {
|
|
2290
3355
|
name: string;
|
|
2291
3356
|
version?: string;
|
|
@@ -2299,10 +3364,17 @@ interface ModelInvocationArgs {
|
|
|
2299
3364
|
objective?: unknown;
|
|
2300
3365
|
context?: unknown;
|
|
2301
3366
|
tools?: ModelTool[];
|
|
3367
|
+
/** Constrain whether an offered Tool must be selected for this generation. */
|
|
3368
|
+
toolChoice?: "auto" | "required";
|
|
2302
3369
|
feedback?: string[];
|
|
2303
3370
|
maxOutputTokens?: number;
|
|
2304
3371
|
temperature?: number;
|
|
2305
3372
|
stream?: boolean;
|
|
3373
|
+
/** Host-adapter escape hatch for a qualified upstream SDK wire request. Credentials and the selected model remain platform-owned. */
|
|
3374
|
+
rawProtocol?: {
|
|
3375
|
+
protocol: RawModelProtocol;
|
|
3376
|
+
request: Record<string, unknown>;
|
|
3377
|
+
};
|
|
2306
3378
|
}
|
|
2307
3379
|
interface ModelCredentialHeader {
|
|
2308
3380
|
slot: string;
|
|
@@ -2519,5 +3591,5 @@ declare class SessionDeleted extends Error {
|
|
|
2519
3591
|
constructor(session: string);
|
|
2520
3592
|
}
|
|
2521
3593
|
|
|
2522
|
-
export { AfterYield, ApiError, CommitConflict, CommitGateRejected, CredentialRevoked, CredentialUnavailable, DirectNetworkDenied, EffectCeilingExceeded, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, NondeterministicReplay, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TerminalIntegrationFailure, ToolUnavailable, UnknownTool, action, actionPattern, agent, agentResourceBinding, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, customerTenantName, cutBatches, cutPartitions, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, integrationEgressPolicy, labelSelector, matchesAction, matchesLabelSelector, matchesResource, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelLimit, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveGatewayEgress, resourceContractRef, resourceCredentialBinding, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, sandboxControls, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scorerName, sha256Hex, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
|
|
2523
|
-
export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentDef, AgentDeployPolicy, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, BatchSpec, BindingCRN, BindingOwnerScope, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelAlarm, ChannelAlarmResult, ChannelContext, ChannelMessage, ChannelProtocol, ChannelRequest, ChannelResponse, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionUsageReport, ControlEvent, Cost, CreateSandboxOptions, CredentialCRN, CredentialDestroyResult, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialProviderCRN, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, 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, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationSecret, IntegrationState, InvokableKind, InvokeOpts, JsonScalar, JsonValue, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerEvent, ManifestIndexPage, MapFact, MapOpts, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGovernanceControls, ModelGovernanceMeter, ModelInvocationArgs, ModelInvocationResult, ModelTechnicalCapabilities, ModelTool, NormalizedModelGatewayConfig, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, Provenance, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourcePattern, ResourceSelector, RollbackReport, RunIdentityView, RunInfo, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandResult, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SortField, 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, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };
|
|
3594
|
+
export { AfterYield, ApiError, CONSTAL_API_CAPABILITY, CONSTAL_API_OPERATIONS, CONSTAL_API_OPERATION_SCHEMAS, CONSTAL_API_VERSION, CommitConflict, CommitGateRejected, CredentialRevoked, CredentialUnavailable, DirectNetworkDenied, EffectCeilingExceeded, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, NondeterministicReplay, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, 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, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, customerTenantName, cutBatches, cutPartitions, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, integrationEgressPolicy, labelSelector, matchesAction, matchesLabelSelector, matchesResource, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelLimit, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxNetworkPolicy, opTool, opTools, parseResourceName, policy, policyName, renderTrainingCompletion, resolveGatewayEgress, resourceContractRef, resourceCredentialBinding, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, sandboxControls, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scorerName, setupAwait, setupScreen, setupScreenView, setupSubmission, sha256Hex, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingProvider, trainingProviderMetadata, trainingRecipe, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
|
|
3595
|
+
export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentDef, AgentDeployPolicy, AnalyticsClient, AnalyticsDimensionValue, AnalyticsEventDefinition, AnalyticsIntent, AnalyticsValues, AuthProvider, AuthProviderCRN, AuthProviderContext, AuthProviderRequest, AuthProviderResult, AwaitOpts, AwaitPresentation, BatchSpec, BindingCRN, BindingOwnerScope, BranchRef, CRN, CRNKind, CanonicalEvent, CanonicalEventDraft, CapabilityContractRef, CapabilityGrant, CapabilityRef, CaptureCaseRequest, CaseRow, CatalogTool, Channel, ChannelAlarm, ChannelAlarmResult, ChannelContext, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, CheckpointDeploymentRequest, CheckpointImportMetadata, CheckpointImportRequest, CodeScoreResult, CodeScorerIR, CodeScorerRule, CommitOpts, CompareSuitesRequest, Compensation, ConnectionCancelRequest, ConnectionIdentity, ConnectionOperation, ConnectionRecoveryRequest, ConnectionRecoveryResult, ConnectionRequest, ConnectionUsageReport, ConstalApiApplyRequest, ConstalApiChangePlan, ConstalApiChangePlanRef, ConstalApiChangePlanRequest, ConstalApiChangeReceipt, ConstalApiOperationReceipt, ControlEvent, Cost, CreateSandboxImageOptions, CreateSandboxOptions, CredentialCRN, CredentialDestroyResult, CredentialInteractionAction, CredentialInteractionAdvanceRequest, CredentialInteractionEvent, CredentialInteractionPrimaryAction, CredentialInteractionProof, CredentialInteractionResult, CredentialInteractionStartRequest, CredentialMaterialRequest, CredentialMintRequest, CredentialMintResult, CredentialProviderCRN, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, 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, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationSecret, IntegrationState, InvokableKind, InvokeOpts, JsonScalar, JsonValue, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerEvent, ManifestIndexPage, MapFact, MapOpts, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGovernanceControls, ModelGovernanceMeter, ModelInvocationArgs, ModelInvocationResult, ModelTechnicalCapabilities, ModelTool, NormalizedModelGatewayConfig, Out, Over, PartitionFn, PartitionSpec, Partitioning, PolicyCRN, PolicyConstraint, PolicyContextValue, PolicyDefinition, PolicyInput, PolicyInvocationOrigin, PolicyOutcome, Principal, PrincipalKind, Provenance, RawModelProtocol, Recovery, ReduceFact, ReduceOpts, Ref, RequestLabelRequest, ResourceContractRef, ResourceControlsConstraint, ResourceCredentialBinding, ResourceKind, ResourceName, ResourceNameParts, ResourceNeed, ResourcePattern, ResourceSelector, RollbackReport, RunIdentityView, RunInfo, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandResult, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialInteractionPanel, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, SortField, SpawnAttenuation, SpawnBudget, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingUsageUnits, TurnDraft, TurnGate, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };
|