@constal/sdk 6.2.0 → 6.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 CHANGED
@@ -124,39 +124,35 @@ create Resources, change bindings, acquire credentials themselves, or retry
124
124
  failed operations. Use the Constal API Resource for installation and rebind;
125
125
  an accepted rebind receipt is not proof that the current frame has the new pin.
126
126
 
127
- ## Optional skills
127
+ ## Skills
128
128
 
129
- Supply instructions directly or provide a source that loads them using your
130
- existing Tools and Resources. The SDK does not search a filesystem or decide
131
- which skill a task needs.
129
+ A skills Resource is one library of Agent Skills, installed by deploying an
130
+ archive that holds `constal.skills.json`. `skills(binding, sandbox)` returns
131
+ three Tools over the library the Agent binds as `binding` (default `skills`),
132
+ named from the binding with `.` and `-` as `_`:
132
133
 
133
134
  ```ts
134
135
  import { agent, skills } from "@constal/sdk";
135
136
 
136
- const practices = skills([{
137
- id: "testing",
138
- description: "The team's testing conventions.",
139
- instructions: "Use the existing package tests to establish and verify behavior.",
140
- }]);
137
+ const library = skills("skills", "sandbox");
141
138
 
142
139
  export default agent({
143
140
  id: "maintainer", version: "1.0.0", model: "model",
144
- tools: practices.tools,
141
+ tools: library,
145
142
  async onMessage(request, ctx) {
146
- return ctx.turn({
147
- system: "You maintain the project's software.",
148
- context: { request, skills: await practices.list(ctx) },
149
- tools: Object.keys(practices.tools),
150
- });
143
+ return ctx.turn({ system: "You maintain the project's software.", context: { request }, tools: Object.keys(library) });
151
144
  },
152
145
  });
153
146
  ```
154
147
 
155
- For a custom source, pass `list(ctx)` and `load(id, ctx)` functions instead of an
156
- array. Declare its normal `needs` and `maxEffect` when loading uses Resources.
157
- `list_skills` returns metadata; `read_skill` returns the complete instructions,
158
- source when supplied, and content hash. These are ordinary authorized Tool calls.
159
- Skill instructions do not grant additional authority.
148
+ `skills_find` and `skills_read` are the library's `find` and `read` operations;
149
+ their schemas and descriptions come from its catalog at deployment.
150
+ `skills_run` bundles the skill, copies its folder once per bundle into the
151
+ workspace of the sandbox pool bound as `sandbox` (default `sandbox`), at
152
+ `/workspace/skills/<ref>`, and runs one command there; it answers the folder's
153
+ path and the command's result. It needs the library's `bundle` and the pool's
154
+ `exec` and `putFile`, under the pool's own Policy. Call `skills()` once per
155
+ bound library.
160
156
 
161
157
  ## Ledger addresses and delivery
162
158
 
@@ -197,7 +193,10 @@ or dropped start of one whose event did not come from the owner's Session
197
193
  its Session, or failing there for good, is reported to its sender as a
198
194
  `RunReport` with status `refused`. `ctx.await(label, { afterRun: "delivery" })`
199
195
  settles when a delivery steers the waiting Run and resolves to `{ seq, eventId }`
200
- of the steer that woke it; the delivery itself stays in the ledger.
196
+ of the steer that woke it; the delivery itself stays in the ledger. A Run that a
197
+ delivery or a report starts belongs to its sender's end-to-end run, as does a
198
+ Run started through the Constal API from a Run: performance reads a Channel's,
199
+ a schedule's or an API call's Run and every Run it leads to together.
201
200
 
202
201
  Policy decides a view of another Session (`ledger:read`; the pages its cursor
203
202
  then reads need no further check) and a delivery to another Session at its
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constal/sdk",
3
- "version": "6.2.0",
3
+ "version": "6.5.0",
4
4
  "description": "Public TypeScript SDK for authoring Constal agents, integrations, policies, channels, and credential providers",
5
5
  "keywords": [
6
6
  "constal",
package/publish/api.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@constal/sdk",
3
- "version": "6.2.0",
3
+ "version": "6.5.0",
4
4
  "exports": [
5
5
  "AGENT_UI_DEFAULTS",
6
6
  "Action",
@@ -134,6 +134,7 @@
134
134
  "CredentialMintRequest",
135
135
  "CredentialMintResult",
136
136
  "CredentialProviderCRN",
137
+ "CredentialProviderConfigEgressBinding",
137
138
  "CredentialProviderContext",
138
139
  "CredentialProviderCredentialSlotSetup",
139
140
  "CredentialProviderDefinition",
@@ -193,6 +194,7 @@
193
194
  "FixedMemoryStoreRef",
194
195
  "FixedModelGatewayRef",
195
196
  "FoldFn",
197
+ "GENERAL_QUALITY_JUDGE",
196
198
  "GateEvidence",
197
199
  "GateExhausted",
198
200
  "GateResult",
@@ -250,7 +252,6 @@
250
252
  "LedgerAddressParts",
251
253
  "LedgerEvent",
252
254
  "ListSchedulesOptions",
253
- "LoadedSkill",
254
255
  "LocalResourceRef",
255
256
  "MCP_CLIENT_CAPABILITY",
256
257
  "MCP_PROTOCOL_VERSION",
@@ -433,10 +434,6 @@
433
434
  "SharePrice",
434
435
  "ShareRequest",
435
436
  "ShareReviewDecision",
436
- "Skill",
437
- "SkillDescription",
438
- "SkillLibrary",
439
- "SkillSource",
440
437
  "SortField",
441
438
  "SpawnAttenuation",
442
439
  "SpawnBudget",
@@ -631,6 +628,7 @@
631
628
  "resourceTools",
632
629
  "runLabels",
633
630
  "sandboxControls",
631
+ "sandboxEgressCredentialRuleFor",
634
632
  "sandboxEgressDecision",
635
633
  "sandboxEgressHostMatches",
636
634
  "sandboxLimit",
@@ -1156,9 +1156,9 @@ declare function runLabels(input: {
1156
1156
  tags?: Record<string, string>;
1157
1157
  }): Record<string, string>;
1158
1158
 
1159
- 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"];
1159
+ 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", "skills", "system"];
1160
1160
  declare const PLATFORM_ADDRESS_KINDS: readonly ["analytics", "role", "principal", "customer", "binding", "session", "run", "ledger", "table", "artifact", "deployment"];
1161
- declare const INVOKABLE_KINDS: readonly ["model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault"];
1161
+ declare const INVOKABLE_KINDS: readonly ["model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault", "skills"];
1162
1162
  type ResourceKind = typeof RESOURCE_KINDS[number];
1163
1163
  type PlatformAddressKind = typeof PLATFORM_ADDRESS_KINDS[number];
1164
1164
  type CRNKind = ResourceKind | PlatformAddressKind;
@@ -1905,13 +1905,18 @@ interface SandboxEgressPolicy {
1905
1905
  default?: "allow" | "deny";
1906
1906
  }
1907
1907
  /**
1908
- * For requests to matching hosts, the egress gate adds one header built from a Credential, resolved at each request
1909
- * through the platform's Credential use (binding controls, scope, Policy, a use record naming the destination). The
1910
- * sandbox never sees the value, and the gate redacts it from what the response echoes back.
1908
+ * The first rule whose host and path match a request adds its header: one built from a Credential, resolved at each
1909
+ * request through the platform's Credential use (binding controls, scope, Policy, a use record naming the destination).
1910
+ * The sandbox never sees the value, and the gate redacts it from what the response echoes back.
1911
1911
  */
1912
1912
  interface SandboxEgressCredentialRule {
1913
1913
  /** Exact host names, or `*.example.com` for the apex and every name under it. Requests must be https. */
1914
1914
  hosts: string[];
1915
+ /**
1916
+ * Path prefixes on those hosts, each `/` and whole segments (`/acme`, `/acme/app.git`). A request matches when its path
1917
+ * equals one or continues it with `/`. Compared exactly as sent: no case folding, no percent-decoding. Omitted: every path.
1918
+ */
1919
+ paths?: string[];
1915
1920
  /** A Credential slot the pool declares. */
1916
1921
  slot?: string;
1917
1922
  /** Only on createSandbox: a Credential (or a scoped binding to one) the call delegates to this sandbox. */
@@ -1924,6 +1929,13 @@ interface SandboxEgressCredentialRule {
1924
1929
  basic?: {
1925
1930
  username?: string;
1926
1931
  };
1932
+ /**
1933
+ * For git over HTTPS through this rule: the refs a push (a `git-receive-pack` request) may update, each a full ref name
1934
+ * (`refs/heads/leonard/t-1`) or a prefix ending in `/*` for every ref under it (`refs/heads/leonard/t-1/*`). The gate
1935
+ * reads the push's ref-update commands, never its pack, and refuses a push that names any other ref, with the reason git
1936
+ * shows. `[]` refuses every push. Omitted: the gate reads no request body through this rule.
1937
+ */
1938
+ push?: string[];
1927
1939
  }
1928
1940
  /** A rule as the pool receives it: a delegated binding arrives as the invocation's Credential use `egress-<n>` (`use`). */
1929
1941
  interface SandboxEgressCredentialGrant extends SandboxEgressCredentialRule {
@@ -1940,6 +1952,11 @@ declare const SANDBOX_EGRESS_LIMITS: {
1940
1952
  };
1941
1953
  /** Whether `pattern` (exact, or `*.d` for `d` and every name under it) admits `hostname`. */
1942
1954
  declare function sandboxEgressHostMatches(pattern: string, hostname: string): boolean;
1955
+ /**
1956
+ * The Credential rule a request gets: the first, in order, whose `hosts` admit its host and whose `paths`, when it has
1957
+ * them, admit its path (equal, or continued with `/`). The query never takes part. None: the request carries no Credential.
1958
+ */
1959
+ declare function sandboxEgressCredentialRuleFor<R extends Pick<SandboxEgressCredentialRule, "hosts" | "paths">>(rules: readonly R[], url: URL | string): R | undefined;
1943
1960
  declare function normalizeSandboxEgressPolicy(value: unknown): SandboxEgressPolicy;
1944
1961
  /** The decision a policy gives a host: the first matching rule, else its default. Null admits everything. */
1945
1962
  declare function sandboxEgressDecision(policy: SandboxEgressPolicy | null | undefined, hostname: string): {
@@ -1964,8 +1981,9 @@ interface CreateSandboxOptions {
1964
1981
  execution?: ContainerImageSelection;
1965
1982
  /** Narrows the pool's network for this sandbox; `Sandbox.updateNetwork` replaces it later. */
1966
1983
  network?: SandboxEgressPolicy;
1967
- /** Headers the pool's egress gate adds from Credentials, beside the pool's own rules. A rule naming a `binding` is
1968
- * delegated by this call; calling createSandbox again for the Session renews the delegation. */
1984
+ /** Headers the pool's egress gate adds from Credentials, after the pool's own rules. A rule naming a `binding` is
1985
+ * delegated by this call; calling createSandbox again for the Session renews the delegation, and calling it again with
1986
+ * other rules replaces them. */
1969
1987
  credentials?: SandboxEgressCredentialRule[];
1970
1988
  /** Labels every egress event of this sandbox carries. */
1971
1989
  labels?: SandboxLabels;
@@ -3340,31 +3358,12 @@ declare function race<T>(handles: Handle<T>[], opts?: {
3340
3358
  win: "first" | "first-success";
3341
3359
  }): Promise<T>;
3342
3360
 
3343
- interface SkillDescription {
3344
- id: string;
3345
- description?: string;
3346
- source?: string;
3347
- }
3348
- interface Skill extends SkillDescription {
3349
- instructions: string;
3350
- }
3351
- interface LoadedSkill extends Skill {
3352
- hash: string;
3353
- }
3354
- /** Discovery and storage belong to the caller. The SDK does not scan a filesystem. */
3355
- interface SkillSource {
3356
- list(ctx: Ctx): SkillDescription[] | Promise<SkillDescription[]>;
3357
- load(id: string, ctx: Ctx): Skill | Promise<Skill>;
3358
- needs?: Tool["needs"];
3359
- maxEffect?: Tool["maxEffect"];
3360
- }
3361
- interface SkillLibrary {
3362
- list(ctx: Ctx): Promise<SkillDescription[]>;
3363
- load(id: string, ctx: Ctx): Promise<LoadedSkill>;
3364
- tools: Record<string, Tool>;
3365
- }
3366
- /** Optional instructions exposed through ordinary model context and Tools. */
3367
- declare function skills(input: readonly Skill[] | SkillSource): SkillLibrary;
3361
+ /**
3362
+ * The find, read and run Tools over one bound skills Resource, named from its binding (`.` and `-` become `_`).
3363
+ * find and read are the library's catalog operations; run copies the skill's folder into the sandbox workspace once per
3364
+ * bundle and runs one command there.
3365
+ */
3366
+ declare function skills(binding?: string, sandbox?: string): Record<string, Tool>;
3368
3367
 
3369
3368
  declare function validateTool(tool: Tool, path?: string): Tool;
3370
3369
  declare function validateView<V extends ViewDef<any, any>>(view: V, path?: string): V;
@@ -3993,8 +3992,8 @@ interface ConstalApiError {
3993
3992
  * management Resource. Keep authorization-only CRN families such as ledger,
3994
3993
  * table, and artifact out of this model-facing inventory contract.
3995
3994
  */
3996
- declare const CONSTAL_API_QUERY_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", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
3997
- declare const CONSTAL_API_GET_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", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
3995
+ declare const CONSTAL_API_QUERY_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", "skills", "system", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
3996
+ declare const CONSTAL_API_GET_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", "skills", "system", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
3998
3997
  declare const CONSTAL_API_MODEL_TOOL_DESCRIPTIONS: {
3999
3998
  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.";
4000
3999
  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.";
@@ -4050,7 +4049,7 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
4050
4049
  readonly description: "Query one exact catalog kind. Kind ids are lower-case, singular, and must be selected from the enum; abstract names and pluralizations are invalid.";
4051
4050
  readonly properties: {
4052
4051
  readonly kind: {
4053
- readonly enum: readonly ["agent", "channel", "ui", "auth-provider", "policy", "credential-provider", "credential", "tool", "scorer", "dataset", "model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
4052
+ readonly enum: readonly ["agent", "channel", "ui", "auth-provider", "policy", "credential-provider", "credential", "tool", "scorer", "dataset", "model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault", "skills", "system", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
4054
4053
  readonly description: "Exact queryable kind. Never guess a kind or change its casing.";
4055
4054
  };
4056
4055
  readonly scope: {
@@ -4155,7 +4154,7 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
4155
4154
  readonly additionalProperties: false;
4156
4155
  readonly properties: {
4157
4156
  readonly kind: {
4158
- readonly enum: readonly ["agent", "channel", "ui", "auth-provider", "policy", "credential-provider", "credential", "tool", "scorer", "dataset", "model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
4157
+ readonly enum: readonly ["agent", "channel", "ui", "auth-provider", "policy", "credential-provider", "credential", "tool", "scorer", "dataset", "model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault", "skills", "system", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
4159
4158
  readonly description: "Exact lower-case object kind returned by a governed platform result.";
4160
4159
  };
4161
4160
  readonly id: {
@@ -4239,7 +4238,7 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
4239
4238
  readonly additionalProperties: false;
4240
4239
  readonly properties: {
4241
4240
  readonly kind: {
4242
- readonly enum: readonly ["agent", "channel", "ui", "auth-provider", "policy", "credential-provider", "credential", "tool", "scorer", "dataset", "model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
4241
+ readonly enum: readonly ["agent", "channel", "ui", "auth-provider", "policy", "credential-provider", "credential", "tool", "scorer", "dataset", "model", "memory", "cas", "web", "service", "mcp", "db", "browser", "sandbox-pool", "vault", "skills", "system", "analytics", "customer", "binding", "session", "run", "deployment", "documentation", "analytics-event", "namespace", "team-member", "team-invite", "api-key", "billing-account", "invoice", "subscription", "resource-contract", "dataset-draft", "dataset-case", "eval-score", "eval-sample", "eval-policy", "eval-suite", "eval-baseline", "eval-schedule", "failure-group", "training-job", "checkpoint", "training-provider", "training-model", "checkpoint-gateway", "credential-provider-package", "credential-consumer", "credential-use", "credential-event", "gateway-package", "rollout", "wait", "run-queue-item"];
4243
4242
  readonly description: "Exact lower-case object kind returned by a governed platform result.";
4244
4243
  };
4245
4244
  readonly id: {
@@ -5108,6 +5107,12 @@ interface CredentialProviderSetupMetadata {
5108
5107
  /** Presentation metadata keyed by the provider's declared bootstrap Credential slots. */
5109
5108
  credentialSlots?: Record<string, CredentialProviderCredentialSlotSetup>;
5110
5109
  }
5110
+ /** An egress rule each install compiles from its config: the exact HTTPS endpoint a top-level config property holds. */
5111
+ interface CredentialProviderConfigEgressBinding {
5112
+ urlProperty: string;
5113
+ operations: string[];
5114
+ methods: string[];
5115
+ }
5111
5116
  interface CredentialProviderPackageMetadata {
5112
5117
  lifecycleVersion: 3;
5113
5118
  displayName: string;
@@ -5120,20 +5125,30 @@ interface CredentialProviderPackageMetadata {
5120
5125
  credentialSlots: string[];
5121
5126
  /** Non-secret configuration collected separately for each Credential created from this provider. */
5122
5127
  credentialConfigSchema: object;
5123
- /** Interactive acquisition metadata. Null for non-interactive providers. */
5128
+ /**
5129
+ * Interactive acquisition metadata. Null for non-interactive providers. `origins` are fixed when the package is published;
5130
+ * `urlProperty` names the top-level config property whose HTTPS URL's origin each install may send a browser to.
5131
+ */
5124
5132
  interaction: {
5125
5133
  origins: string[];
5134
+ } | {
5135
+ urlProperty: string;
5126
5136
  } | null;
5127
5137
  rotation: CredentialRotationDefaults;
5128
5138
  egress: IntegrationEgressPolicy;
5139
+ /** Install-time templates compiled to exact Resource egress rules. */
5140
+ configEgress?: CredentialProviderConfigEgressBinding[];
5129
5141
  }
5130
5142
  interface CredentialProviderDefinition<C = unknown> extends Omit<CredentialProviderPackageMetadata, "interaction" | "credentialConfigSchema" | "lifecycleVersion"> {
5131
5143
  id: string;
5132
5144
  version: string;
5133
5145
  configSchema: object;
5134
5146
  credentialConfigSchema: object;
5135
- interaction?: {
5147
+ interaction?: ({
5136
5148
  origins: string[];
5149
+ } | {
5150
+ urlProperty: string;
5151
+ }) & {
5137
5152
  start(request: CredentialInteractionStartRequest, context: IntegrationContext): Promise<CredentialInteractionResult>;
5138
5153
  advance(request: CredentialInteractionAdvanceRequest, context: IntegrationContext): Promise<CredentialInteractionResult>;
5139
5154
  };
@@ -5282,6 +5297,21 @@ interface JudgeRubric {
5282
5297
  levels?: EvaluationEntry[];
5283
5298
  }>;
5284
5299
  }
5300
+ /**
5301
+ * The default quality Judge: what a Judge Scorer judges with to measure any Agent's production quality, without knowing the
5302
+ * Agent. It judges a whole Run (its trajectory) on the outcome a person who asked would care about, on a 0 to 1 scale where a
5303
+ * Run passes at 0.5; each dimension's name is the reason a failing Run fails. The platform recognizes a Judge Scorer as the
5304
+ * default quality Judge by its rubric, so create the Scorer with exactly this rubric and pin a `judgeAgent` Agent as its Judge.
5305
+ */
5306
+ declare const GENERAL_QUALITY_JUDGE: {
5307
+ applies: "trajectory";
5308
+ scale: {
5309
+ min: number;
5310
+ max: number;
5311
+ };
5312
+ threshold: number;
5313
+ rubric: JudgeRubric;
5314
+ };
5285
5315
  /**
5286
5316
  * An Agent that judges with an evaluation Model, for a Judge Scorer whose rubric is a JudgeRubric. Bind its `model` to an
5287
5317
  * evaluation Model, such as `crn:constal:production:platform:default:model/jev`. Each Run evaluates the judged value against
@@ -5429,5 +5459,5 @@ declare function parseLedgerAddress(value: unknown): LedgerAddressParts | null;
5429
5459
  /** Formats ledger address parts; throws when a part breaks its id rule. */
5430
5460
  declare function formatLedgerAddress(parts: LedgerAddressParts): LedgerAddress;
5431
5461
 
5432
- export { AGENT_UI_DEFAULTS, AfterYield, ApiError, CHAT_FORMAT_CAPABILITY, 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, DATA_SHARE_FEE_BPS, DirectNetworkDenied, EVALUATION_LIMITS, EffectCeilingExceeded, EmptyJoin, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, MODEL_EVALUATION_CAPABILITY, McpClient, NondeterministicReplay, NotAppendOnly, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SANDBOX_EGRESS_LIMITS, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TRAINING_RECIPE_DEFAULTS, TerminalIntegrationFailure, ToolUnavailable, UI_ASSET_CONTENT_TYPES, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentLimit, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, agentUiBundleManifest, agentUiDeclaration, all, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, chatFormat, chatFormatMetadata, chatFormatPin, chatParseInput, chatParsed, chatRenderInput, chatRenderRequest, chatRendering, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, containerImageReference, containerImageSelection, containerImageSource, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, dataShareEarningMicroUsd, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, evaluationArguments, evaluationProtocolRequest, evaluationProtocolResult, formatLedgerAddress, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, judgeAgent, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelMessages, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxEgressCredentialRules, normalizeSandboxEgressPolicy, normalizeSandboxLabels, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, noulDecision, opTool, opTools, parseLedgerAddress, parseResourceName, policy, policyName, race, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, runLabels, sandboxControls, sandboxEgressDecision, sandboxEgressHostMatches, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scoreLevel, scorerDraftHash, scorerName, select, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupPanelProviderIsCrn, setupScreen, setupScreenView, setupSubmission, sha256Hex, shareContributionRequest, shareContributionReview, shareEvaluation, sharePrices, shareRequest, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingCorrection, trainingProvider, trainingProviderMetadata, trainingRecipe, uiAssetContentType, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
5433
- export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeployPolicy, AgentGovernanceMeter, 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, ChannelContext, ChannelDeliveryError, ChannelDeliveryEvent, ChannelDeliveryOutcome, ChannelDeliveryReport, ChannelFailure, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, ChatFormatDefinition, ChatFormatMetadata, ChatFormatPin, ChatMessage, ChatParseRequest, ChatParsed, ChatRenderRequest, ChatRendering, ChatSpan, ChatTool, 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, CredentialUninstallRequest, CredentialUninstallResult, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DataSharingScope, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, EvalSuiteCase, EvalSuiteCasePage, EvalSuiteCaseScore, EvalSuiteCaseState, EvalSuiteScoreState, 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, HistoryPage, HistoryView, HmacVerification, IgnoredChannelEvent, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationAttachment, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationLifecycle, IntegrationReleaseContext, IntegrationSecret, IntegrationState, InvocationCredentialUse, InvocationHandle, InvokableKind, InvokeOpts, JoinOutcome, JsonScalar, JsonValue, JudgeRubric, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerAddressParts, LedgerEvent, ListSchedulesOptions, LoadedSkill, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpClientOptions, McpClientState, McpMessageTransport, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCacheHint, ModelCompletion, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelHistoryMessage, ModelHistoryToolCall, ModelInvocationArgs, ModelInvocationResult, ModelProtocolRequestOptions, 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, RunReport, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandCollectionError, SandboxCommandExecution, SandboxCommandResult, SandboxEgressCredentialRule, SandboxEgressPolicy, SandboxEgressRule, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxLabels, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, SandboxProcess, SandboxProcessCredentials, SandboxProcessIoOperation, SandboxProcessOperation, SandboxProcessReadInput, SandboxProcessReadResult, SandboxProcessStatus, SandboxProcessWriteResult, SandboxReadFileOptions, SandboxReadFileResult, SandboxWorkspace, SandboxWriteFileResult, Schedule, ScheduleCancellation, ScheduleDuration, ScheduleMissed, ScheduleOccurrence, ScheduleOccurrencePage, ScheduleOptions, SchedulePage, ScheduleState, ScheduleTarget, ScheduleTiming, ScheduleTrigger, ScheduleWhen, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreAnswer, ScoreQuestion, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerDraft, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Share, ShareAction, ShareContribution, ShareContributionImport, ShareContributionRequest, ShareContributionReview, ShareContributionReviewRequest, ShareContributionStatus, ShareEvaluation, ShareEvaluationPin, ShareEvaluationRequest, ShareEvaluationVerdict, ShareEvaluationView, ShareHistory, SharePrice, ShareRequest, ShareReviewDecision, Skill, SkillDescription, SkillLibrary, SkillSource, SortField, SpawnAttenuation, SpawnBudget, SpawnHandle, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, StepJournal, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingCorrection, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingPreparation, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingStep, TrainingUsageUnits, TurnDraft, TurnGate, TurnHistoryMessage, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };
5462
+ export { AGENT_UI_DEFAULTS, AfterYield, ApiError, CHAT_FORMAT_CAPABILITY, 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, DATA_SHARE_FEE_BPS, DirectNetworkDenied, EVALUATION_LIMITS, EffectCeilingExceeded, EmptyJoin, GENERAL_QUALITY_JUDGE, GateExhausted, IntegrationRequestNotSent, LeaseLost, MCP_CLIENT_CAPABILITY, MCP_PROTOCOL_VERSION, MEMORY_OPERATION_DECLARATIONS, MODEL_CHECKPOINT_IMPORT_CAPABILITY, MODEL_COMPLETION_CAPABILITY, MODEL_EVALUATION_CAPABILITY, McpClient, NondeterministicReplay, NotAppendOnly, OutcomeUnknown, PolicyConstraintFailed, PolicyDecisionFailed, RESOURCE_CREDENTIAL_BINDING_SCHEMA, RESOURCE_KINDS, ResourceDisabled, ResourceInvalid, ResourceUnbound, RollbackTargetInvalid, SANDBOX_EGRESS_LIMITS, SessionDeleted, SpawnCardinality, SwallowedYield, TRAINING_PROVIDER_CAPABILITY, TRAINING_RECIPE_DEFAULTS, TerminalIntegrationFailure, ToolUnavailable, UI_ASSET_CONTENT_TYPES, UI_BUNDLE_BOUNDS, UnknownTool, WEB_FETCH_ARGUMENT_SCHEMA, WEB_SEARCH_ARGUMENT_SCHEMA, action, actionPattern, agent, agentLimit, agentResourceBinding, agentSetupMetadata, agentSetupRequirements, agentUiBundleManifest, agentUiDeclaration, all, analyticsEvent, approximateTokens, authProvider, authProviderName, bindingName, bucketFor, canonicalJson, capabilityContractRef, casTool, channel, channelIngressRequest, channelIngressSource, channelSourceEvidence, channelSubscriptionRequest, channelTarget, chatFormat, chatFormatMetadata, chatFormatPin, chatParseInput, chatParsed, chatRenderInput, chatRenderRequest, chatRendering, checkpointArtifactRef, checkpointDeploymentRequest, checkpointImportMetadata, checkpointImportRequest, codeScorerIR, containerImageReference, containerImageSelection, containerImageSource, credentialEvidence, credentialInteractionAction, credentialInteractionEvent, credentialInteractionResult, credentialName, credentialProvider, credentialProviderConfigSchema, credentialProviderName, credentialProviderSetupMetadata, credentialRotationDefaults, credentialSetupState, customerTenantName, cutBatches, cutPartitions, dataShareEarningMicroUsd, datasetName, evaluateCodeScorer, evaluatePolicyDefinition, evaluationArguments, evaluationProtocolRequest, evaluationProtocolResult, formatLedgerAddress, gateway, gatewayModelOffer, gatewayPackageMetadata, hash, hashValue, immutableContainerImageReference, integrationEgressPolicy, invocationCredentialUses, judgeAgent, labelSelector, matchesAction, matchesLabelSelector, matchesResource, mcpToolDescription, mcpToolResult, memoryStoreBinding, modelAdvertisedPricing, modelControls, modelGatewayBinding, modelGatewayEndpoint, modelGenerationOptions, modelLimit, modelMessages, modelPrompt, modelProtocolRequest, modelProtocolResult, murmur3_32, normalizeModelGatewayConfig, normalizeSandboxEgressCredentialRules, normalizeSandboxEgressPolicy, normalizeSandboxLabels, normalizeSandboxNetworkPolicy, normalizeSandboxWorkspacePath, noulDecision, opTool, opTools, parseLedgerAddress, parseResourceName, policy, policyName, race, resolveBindingOwner, resolveContainerImageSource, resolveGatewayEgress, resolveResourceDependencyRef, resourceContractRef, resourceCredentialBinding, resourceDependencyRef, resourceLabelMap, resourceName, resourceNeed, resourcePattern, resourceSelector, resourceTools, runLabels, sandboxControls, sandboxEgressCredentialRuleFor, sandboxEgressDecision, sandboxEgressHostMatches, sandboxLimit, scopedBindingKey, scopedCredentialRef, scopedResourceRef, scoreLevel, scorerDraftHash, scorerName, select, selectableResourceLabels, setupAwait, setupCredentialReceipt, setupPanelProviderIsCrn, setupScreen, setupScreenView, setupSubmission, sha256Hex, shareContributionRequest, shareContributionReview, shareEvaluation, sharePrices, shareRequest, skills, stageOutput, startTrainingRequest, subtask, tableDescribe, tableQuery, trainingCorrection, trainingProvider, trainingProviderMetadata, trainingRecipe, uiAssetContentType, uiBundle, uiBundleManifest, uiLimit, uiName, validateBatchSpec, validateFoldFn, validateJsonSchema, validateJsonSchemaDefinition, validatePartitionFn, validatePartitionSpec, validateStageOutputSpec, validateTool, validateView, webFetch, webSearch };
5463
+ export type { Action, ActionPattern, Actor, AdmissionLimitConstraint, AdmissionLimitInput, AdmissionLimitScope, AdmissionLimitWindow, Agent, AgentCredentialSetupRequirement, AgentDef, AgentDeployPolicy, AgentGovernanceMeter, 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, ChannelContext, ChannelDeliveryError, ChannelDeliveryEvent, ChannelDeliveryOutcome, ChannelDeliveryReport, ChannelFailure, ChannelIngressEvent, ChannelIngressSource, ChannelMessage, ChannelProtocol, ChannelReceiveResult, ChannelRequest, ChannelResponse, ChannelSourceEvidence, ChannelSubscriptionRequest, ChannelTarget, ChatFormatDefinition, ChatFormatMetadata, ChatFormatPin, ChatMessage, ChatParseRequest, ChatParsed, ChatRenderRequest, ChatRendering, ChatSpan, ChatTool, 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, CredentialProviderConfigEgressBinding, CredentialProviderContext, CredentialProviderCredentialSlotSetup, CredentialProviderDefinition, CredentialProviderPackage, CredentialProviderPackageMetadata, CredentialProviderSecretInput, CredentialProviderSetupMetadata, CredentialSetupState, CredentialUninstallRequest, CredentialUninstallResult, CredentialVerifyResult, Ctx, CustomerTenantCRN, DataManifest, DataSharingScope, DatasetCRN, DatasetDraft, DatasetRef, DelegatedGrant, DelegationCeiling, DeliveryMode, DeliveryReceipt, DispatchResult, EffectClass, EvalComparison, EvalDivergence, EvalMode, EvalSubject, EvalSubjectSource, EvalSuiteCase, EvalSuiteCasePage, EvalSuiteCaseScore, EvalSuiteCaseState, EvalSuiteScoreState, 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, HistoryPage, HistoryView, HmacVerification, IgnoredChannelEvent, IngressRequest, IngressTarget, IntegrationArtifactEgressRequest, IntegrationArtifactEgressResponse, IntegrationAttachment, IntegrationContext, IntegrationEgressPolicy, IntegrationEgressRequest, IntegrationEgressResponse, IntegrationEgressRule, IntegrationLifecycle, IntegrationReleaseContext, IntegrationSecret, IntegrationState, InvocationCredentialUse, InvocationHandle, InvokableKind, InvokeOpts, JoinOutcome, JsonScalar, JsonValue, JudgeRubric, LabelRequest, LabelSelector, LabelSelectorOperator, LabelSelectorRequirement, LedgerAddress, LedgerAddressParts, LedgerEvent, ListSchedulesOptions, LocalResourceRef, ManifestIndexPage, MapFact, MapOpts, McpClientOptions, McpClientState, McpMessageTransport, MemoryDeleteArgs, MemoryGetArgs, MemoryRecord, MemoryRememberArgs, MemorySearchArgs, MemorySearchHit, MemoryStoreBinding, Mode, ModelAdvertisedPricing, ModelCacheHint, ModelCompletion, ModelCredentialHeader, ModelGatewayBinding, ModelGatewayConfig, ModelGatewayProtocol, ModelGenerationOptions, ModelGovernanceControls, ModelGovernanceMeter, ModelHistoryMessage, ModelHistoryToolCall, ModelInvocationArgs, ModelInvocationResult, ModelProtocolRequestOptions, 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, RunReport, RunStatusDetail, RunSuiteRequest, Sandbox, SandboxCommandCollectionError, SandboxCommandExecution, SandboxCommandResult, SandboxEgressCredentialRule, SandboxEgressPolicy, SandboxEgressRule, SandboxExecInput, SandboxFileResult, SandboxGovernanceControls, SandboxGovernanceMeter, SandboxImage, SandboxLabels, SandboxMutationResult, SandboxNetworkMode, SandboxNetworkPolicy, SandboxPool, SandboxProcess, SandboxProcessCredentials, SandboxProcessIoOperation, SandboxProcessOperation, SandboxProcessReadInput, SandboxProcessReadResult, SandboxProcessStatus, SandboxProcessWriteResult, SandboxReadFileOptions, SandboxReadFileResult, SandboxWorkspace, SandboxWriteFileResult, Schedule, ScheduleCancellation, ScheduleDuration, ScheduleMissed, ScheduleOccurrence, ScheduleOccurrencePage, ScheduleOptions, SchedulePage, ScheduleState, ScheduleTarget, ScheduleTiming, ScheduleTrigger, ScheduleWhen, ScopedBindingKey, ScopedCredentialRef, ScopedMemoryStoreRef, ScopedModelGatewayRef, ScopedResourceRef, ScoreAnswer, ScoreQuestion, ScoreRequest, ScorerApplies, ScorerCRN, ScorerDef, ScorerDraft, ScorerEvaluation, ScorerKind, ScorerRef, ScorerVerdictIntent, SetEvalBaselineRequest, SetupAction, SetupCredentialCandidate, SetupCredentialInteractionPanel, SetupCredentialReceipt, SetupFormPanel, SetupPanel, SetupProgressPanel, SetupReviewPanel, SetupScreen, SetupStepStatus, SetupStepSummary, SetupSubmission, SetupTerminalPanel, SetupWorkflowStatus, Share, ShareAction, ShareContribution, ShareContributionImport, ShareContributionRequest, ShareContributionReview, ShareContributionReviewRequest, ShareContributionStatus, ShareEvaluation, ShareEvaluationPin, ShareEvaluationRequest, ShareEvaluationVerdict, ShareEvaluationView, ShareHistory, SharePrice, ShareRequest, ShareReviewDecision, SortField, SpawnAttenuation, SpawnBudget, SpawnHandle, SpawnOpts, SqlFold, StageInfo, StageOutputSpec, StartTrainingRequest, SteerEvent, StepJournal, SuiteFact, TableAggregate, TableDescribeArgs, TableFilter, TableFilterOperation, TableOrder, TableQueryArgs, TableQueryPlan, TableQueryResult, TableScalar, TableSnapshotDescription, Task, Tier, Tool, ToolCallRecord, TrainingCorrection, TrainingJobFact, TrainingJobReference, TrainingJobState, TrainingJobStatus, TrainingMethod, TrainingModelOffer, TrainingPreparation, TrainingProviderDefinition, TrainingProviderMetadata, TrainingProviderPin, TrainingRecipe, TrainingResumePoint, TrainingStep, TrainingUsageUnits, TurnDraft, TurnGate, TurnHistoryMessage, TurnRecord, TurnSpec, UiAccess, UiBundle, UiBundleManifest, UiCRN, UiCapability, UiExecution, UiGovernanceMeter, UiHandler, UiResource, UiRuntimeContext, UiSource, UiSqlResult, UiState, UpstreamPayer, Verdict, VerdictSamplingMode, ViewDef, WaitResolvedEvent };