@runtypelabs/sdk 9.3.1 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/index.cjs +22 -17
- package/dist/index.d.cts +130 -22
- package/dist/index.d.ts +130 -22
- package/dist/index.mjs +22 -17
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @runtypelabs/sdk
|
|
2
2
|
|
|
3
|
+
## 9.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 31e02de: Add opt-in durable recovery for Persona client-token chat surfaces, including automatic reconnect authorization for Runtime and Claude Managed owners, durable client-tool continuation, and typed surface/init/resume contracts.
|
|
8
|
+
- b08a7a2: Organization admins now see every management API key in the organization from `GET /v1/api-keys` and `GET /v1/api-keys/analytics`; other members still see only the keys they created. Each listed key carries `ownerUserId`, `ownerName` and `isOwn`. Keys owned by another member are read-only for the admin (update, regenerate, reveal and delete stay owner-scoped), and the dashboard shows them with an owner line and a "View only" badge in place of the action buttons.
|
|
9
|
+
- 0584e9a: Remove the development/production distinction on product surfaces (ADR 0023). Every surface accepts both test and live credentials and there is no promotion step; the `SURFACE_TYPE_PRERELEASE`, `SURFACE_HAS_LIVE_KEYS`, `SURFACE_ENVIRONMENT_MISMATCH` and `ENVIRONMENT_MISMATCH` errors are gone, OAuth-minted MCP surface keys are live keys, and a surface's integration tools resolve the organization-connection environment of the deployment they run in. For one release the wire keeps a compatibility shape: surface reads return `environment: 'production'` as a deprecated constant; create, update, ensure, FPO import, the MCP `create_surface` / `list_surfaces` inputs and the SDK `defineSurface` accept an `environment` key and ignore it; the `?environment=` list filter answers `400 SURFACE_ENVIRONMENT_RETIRED`. The `product_surfaces.environment` column is backfilled to `'production'`, never read, and dropped in a follow-up.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 3285445: Remove the retired slow-mode execution throttle. Nothing produced `inSlowMode: true` since execution counts became uncapped, so the 10s delay branches, the `slow_mode_hourly` block type, the `X-Slow-Mode-*` headers, the `UsageTrackerDO.checkBuildTierExecution` / `resetSlowModeState` RPCs and their `hourly_rate_counts` table, and the `inSlowMode` field on 429 responses are gone. `/v1/usage-limits` keeps emitting `inSlowMode: false` as a deprecated constant because pinned Python/Ruby SDK models require the property. The plan-upgrade counter reset survives as `resetExecutionCountersForPlanChange` (daily + monthly). The Analytics Engine `doubles[3]` slot stays at 0 so historical column positions are unchanged.
|
|
14
|
+
|
|
15
|
+
## 9.3.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- ccd07e2: Report a truncated agent turn as a failure instead of a clean completion. When a model turn ends with the provider finish reason `length` while a tool call's arguments are still streaming, the agent loop now stops with the loop-level `stopReason: 'length'` and `success: false` — previously the run reported `success: true` / `stopReason: 'complete'` with an empty output and an unpaired tool start that was only discoverable by pairing trace events. `decideLoopContinuation` gains the matching `length_cutoff` reason on both the runtime and its api twin, and the cutoff verdict outranks `max_cost` so a run that trips both is still reported as failed.
|
|
20
|
+
|
|
21
|
+
The cutoff is attributed per tool call, not per turn. A turn that runs a multi-step authored flow ends on its LAST prompt step's stop reason, so each unpaired `tool_start` is stamped with the stop reason of the step that owned it: an early step that truncated mid tool call fails the run even when a later step ends cleanly, and an unpaired start from a clean step no longer fails a run whose last step merely truncated its text.
|
|
22
|
+
|
|
23
|
+
Every `tool_start` the loop leaves in flight at turn end is now closed by a synthesized failed `tool_complete`, under any stop reason rather than only the cutoff — an unpaired start was previously discarded when the next turn began. The cutoff close-out names the output-token limit; any other unresolved start reports that the turn ended first.
|
|
24
|
+
|
|
25
|
+
The loop-level stop reason and any salvaged reply are now observable: `execution_error` carries an optional `stopReason` and an optional `finalOutput` (both loose, like `execution_complete`'s), emitted by both the runtime emitter and the api's legacy translator. The buffered `/v1/dispatch` agent envelope reports the same verdict that `agent_executions.stop_reason` persists instead of hard-coding `error`, the SDK's `execution_error` → `agent_complete` fold forwards it rather than flattening it to `error`, and both durable readers project a failure terminal through one shared helper. A cut-off run still spends its final-reply elicitation turn, and a messaging surface delivers that salvaged sentence instead of the surface's generic error message while still recording the run as failed. The run's span no longer reports status OK.
|
|
26
|
+
|
|
27
|
+
MIGRATION: this changes the default verdict for an existing agent whose turns are truncated mid tool call — a run that used to report `success: true` with empty output now reports `success: false` with `stopReason: 'length'`. The fix is to raise the agent's `maxTokens`. To pin the old verdict while you do, set the new `loopConfig.treatLengthCutoffAsFailure` to `false`; it defaults to `true`, and the synthesized failed `tool_complete` close-outs are emitted either way.
|
|
28
|
+
|
|
29
|
+
- 8ab7d4a: Apply flow and agent version snapshots to the live execution rows atomically when publishing from any API surface.
|
|
30
|
+
|
|
3
31
|
## 9.3.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -666,7 +666,8 @@ function createAgentEventTranslator() {
|
|
|
666
666
|
seq,
|
|
667
667
|
agentId,
|
|
668
668
|
success: false,
|
|
669
|
-
|
|
669
|
+
// WHY(#7794): Forward the loop verdict like the execution_complete arm; `error` is the no-verdict answer.
|
|
670
|
+
stopReason: data.stopReason ?? "error",
|
|
670
671
|
error: errorMessage(data.error),
|
|
671
672
|
completedAt: data.completedAt
|
|
672
673
|
})
|
|
@@ -5675,7 +5676,8 @@ function normalizeSurfaceDefinition(definition) {
|
|
|
5675
5676
|
type: definition.type,
|
|
5676
5677
|
behavior,
|
|
5677
5678
|
status: definition.status || "draft",
|
|
5678
|
-
|
|
5679
|
+
// INVARIANT: Mirrors the shared hash's frozen literal for the retired field; keeps existing configHashes stable.
|
|
5680
|
+
environment: "development"
|
|
5679
5681
|
};
|
|
5680
5682
|
}
|
|
5681
5683
|
async function computeSurfaceContentHash(definition) {
|
|
@@ -5687,9 +5689,9 @@ var DEFINE_SURFACE_TOP_LEVEL_KEYS = /* @__PURE__ */ new Set([
|
|
|
5687
5689
|
"behavior",
|
|
5688
5690
|
"inbound",
|
|
5689
5691
|
"outbound",
|
|
5690
|
-
"status"
|
|
5691
|
-
"environment"
|
|
5692
|
+
"status"
|
|
5692
5693
|
]);
|
|
5694
|
+
var DEFINE_SURFACE_RETIRED_KEYS = /* @__PURE__ */ new Set(["environment"]);
|
|
5693
5695
|
var SURFACE_DEFINITION_TYPES = /* @__PURE__ */ new Set([
|
|
5694
5696
|
"chat",
|
|
5695
5697
|
"mcp",
|
|
@@ -5732,13 +5734,12 @@ function defineSurface(input) {
|
|
|
5732
5734
|
if (input.status !== void 0 && !["draft", "active", "paused"].includes(input.status)) {
|
|
5733
5735
|
throw new Error('defineSurface "status" must be one of: draft, active, paused');
|
|
5734
5736
|
}
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
const unknownKeys = Object.keys(input).filter((key) => !DEFINE_SURFACE_TOP_LEVEL_KEYS.has(key));
|
|
5737
|
+
const unknownKeys = Object.keys(input).filter(
|
|
5738
|
+
(key) => !DEFINE_SURFACE_TOP_LEVEL_KEYS.has(key) && !DEFINE_SURFACE_RETIRED_KEYS.has(key)
|
|
5739
|
+
);
|
|
5739
5740
|
if (unknownKeys.length > 0) {
|
|
5740
5741
|
throw new Error(
|
|
5741
|
-
`defineSurface: unknown field(s): ${unknownKeys.join(", ")}. Allowed fields are name, type, behavior, inbound, outbound, status
|
|
5742
|
+
`defineSurface: unknown field(s): ${unknownKeys.join(", ")}. Allowed fields are name, type, behavior, inbound, outbound, status.`
|
|
5742
5743
|
);
|
|
5743
5744
|
}
|
|
5744
5745
|
return {
|
|
@@ -5747,8 +5748,7 @@ function defineSurface(input) {
|
|
|
5747
5748
|
...input.behavior !== void 0 ? { behavior: input.behavior } : {},
|
|
5748
5749
|
...input.inbound !== void 0 ? { inbound: input.inbound } : {},
|
|
5749
5750
|
...input.outbound !== void 0 ? { outbound: input.outbound } : {},
|
|
5750
|
-
...input.status !== void 0 ? { status: input.status } : {}
|
|
5751
|
-
...input.environment !== void 0 ? { environment: input.environment } : {}
|
|
5751
|
+
...input.status !== void 0 ? { status: input.status } : {}
|
|
5752
5752
|
};
|
|
5753
5753
|
}
|
|
5754
5754
|
var SurfaceEnsureConflictError = class extends Error {
|
|
@@ -6487,7 +6487,7 @@ var Runtype = class {
|
|
|
6487
6487
|
|
|
6488
6488
|
// src/version.ts
|
|
6489
6489
|
var FALLBACK_VERSION = "0.0.0";
|
|
6490
|
-
var SDK_VERSION = "9.
|
|
6490
|
+
var SDK_VERSION = "9.4.0".length > 0 ? "9.4.0" : FALLBACK_VERSION;
|
|
6491
6491
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6492
6492
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6493
6493
|
|
|
@@ -9066,7 +9066,10 @@ var ApiKeysEndpoint = class {
|
|
|
9066
9066
|
this.requests = new ApiKeyRequestsEndpoint(client);
|
|
9067
9067
|
}
|
|
9068
9068
|
/**
|
|
9069
|
-
* List
|
|
9069
|
+
* List the API keys visible to the caller. An organization admin on a Clerk
|
|
9070
|
+
* session receives every key in the organization (each carrying `ownerUserId`,
|
|
9071
|
+
* `ownerName` and `isOwn`); other members, and every API-key caller, receive
|
|
9072
|
+
* only the keys they created. Keys with `isOwn: false` are read-only.
|
|
9070
9073
|
*/
|
|
9071
9074
|
async list() {
|
|
9072
9075
|
const response = await this.client.get(
|
|
@@ -13126,9 +13129,10 @@ var AgentVersionsEndpoint = class {
|
|
|
13126
13129
|
/**
|
|
13127
13130
|
* Publish a version (promote it to the agent's published version).
|
|
13128
13131
|
*/
|
|
13129
|
-
async publish(agentId, versionId) {
|
|
13132
|
+
async publish(agentId, versionId, options = {}) {
|
|
13130
13133
|
return this.client.post(`/agent-versions/${agentId}/publish`, {
|
|
13131
|
-
versionId
|
|
13134
|
+
versionId,
|
|
13135
|
+
...options
|
|
13132
13136
|
});
|
|
13133
13137
|
}
|
|
13134
13138
|
};
|
|
@@ -13157,9 +13161,10 @@ var FlowVersionsEndpoint = class {
|
|
|
13157
13161
|
/**
|
|
13158
13162
|
* Publish a version (promote it to the flow's published version).
|
|
13159
13163
|
*/
|
|
13160
|
-
async publish(flowId, versionId) {
|
|
13164
|
+
async publish(flowId, versionId, options = {}) {
|
|
13161
13165
|
return this.client.post(`/flow-versions/${flowId}/publish`, {
|
|
13162
|
-
versionId
|
|
13166
|
+
versionId,
|
|
13167
|
+
...options
|
|
13163
13168
|
});
|
|
13164
13169
|
}
|
|
13165
13170
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -228,6 +228,12 @@ interface paths {
|
|
|
228
228
|
requestBody?: {
|
|
229
229
|
content: {
|
|
230
230
|
"application/json": {
|
|
231
|
+
/**
|
|
232
|
+
* @description Use overwrite only after confirming replacement of a code-managed agent.
|
|
233
|
+
* @default error
|
|
234
|
+
* @enum {string}
|
|
235
|
+
*/
|
|
236
|
+
onConflict?: "error" | "overwrite";
|
|
231
237
|
versionId: string;
|
|
232
238
|
};
|
|
233
239
|
};
|
|
@@ -241,9 +247,15 @@ interface paths {
|
|
|
241
247
|
content: {
|
|
242
248
|
"application/json": {
|
|
243
249
|
agentId: string;
|
|
250
|
+
applied: {
|
|
251
|
+
[key: string]: boolean;
|
|
252
|
+
};
|
|
253
|
+
/** @enum {string} */
|
|
254
|
+
lastModifiedSource: "dashboard" | "api" | "mcp";
|
|
244
255
|
message: string;
|
|
245
256
|
success: boolean;
|
|
246
257
|
versionId: string;
|
|
258
|
+
warnings: string[];
|
|
247
259
|
};
|
|
248
260
|
};
|
|
249
261
|
};
|
|
@@ -285,6 +297,20 @@ interface paths {
|
|
|
285
297
|
"application/json": components["schemas"]["Error"];
|
|
286
298
|
};
|
|
287
299
|
};
|
|
300
|
+
/** @description Publishing would overwrite a definition managed by code */
|
|
301
|
+
409: {
|
|
302
|
+
headers: {
|
|
303
|
+
[name: string]: unknown;
|
|
304
|
+
};
|
|
305
|
+
content: {
|
|
306
|
+
"application/json": components["schemas"]["Error"] & {
|
|
307
|
+
/** @enum {string} */
|
|
308
|
+
code: "managed_by_code_conflict";
|
|
309
|
+
/** @enum {string} */
|
|
310
|
+
lastModifiedSource: "sdk" | "terraform";
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
288
314
|
/** @description Internal server error */
|
|
289
315
|
500: {
|
|
290
316
|
headers: {
|
|
@@ -713,6 +739,7 @@ interface paths {
|
|
|
713
739
|
maxCost?: number;
|
|
714
740
|
maxTurns?: number;
|
|
715
741
|
reflectionInterval?: number;
|
|
742
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
716
743
|
};
|
|
717
744
|
maxTokens?: number;
|
|
718
745
|
memory?: {
|
|
@@ -1143,6 +1170,7 @@ interface paths {
|
|
|
1143
1170
|
maxCost?: number;
|
|
1144
1171
|
maxTurns?: number;
|
|
1145
1172
|
reflectionInterval?: number;
|
|
1173
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
1146
1174
|
};
|
|
1147
1175
|
maxTokens?: number;
|
|
1148
1176
|
memory?: {
|
|
@@ -1841,6 +1869,7 @@ interface paths {
|
|
|
1841
1869
|
maxCost?: number;
|
|
1842
1870
|
maxTurns?: number;
|
|
1843
1871
|
reflectionInterval?: number;
|
|
1872
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
1844
1873
|
};
|
|
1845
1874
|
maxTokens?: number;
|
|
1846
1875
|
memory?: {
|
|
@@ -7692,12 +7721,14 @@ interface paths {
|
|
|
7692
7721
|
requestBody: {
|
|
7693
7722
|
content: {
|
|
7694
7723
|
"application/json": {
|
|
7724
|
+
durableRecovery?: boolean;
|
|
7695
7725
|
flowId?: string;
|
|
7696
7726
|
identityProof?: string;
|
|
7697
7727
|
token: string;
|
|
7698
7728
|
visitorHistory?: boolean;
|
|
7699
7729
|
visitorToken?: string;
|
|
7700
7730
|
} | {
|
|
7731
|
+
durableRecovery?: boolean;
|
|
7701
7732
|
flowId?: string;
|
|
7702
7733
|
identityProof?: string;
|
|
7703
7734
|
sessionId: string;
|
|
@@ -7706,6 +7737,7 @@ interface paths {
|
|
|
7706
7737
|
visitorToken?: string;
|
|
7707
7738
|
} | {
|
|
7708
7739
|
conversationId: string;
|
|
7740
|
+
durableRecovery?: boolean;
|
|
7709
7741
|
flowId?: string;
|
|
7710
7742
|
identityProof?: string;
|
|
7711
7743
|
token: string;
|
|
@@ -7713,6 +7745,7 @@ interface paths {
|
|
|
7713
7745
|
visitorToken: string;
|
|
7714
7746
|
} | {
|
|
7715
7747
|
conversationId: string;
|
|
7748
|
+
durableRecovery?: boolean;
|
|
7716
7749
|
flowId?: string;
|
|
7717
7750
|
identityProof: string;
|
|
7718
7751
|
token: string;
|
|
@@ -7747,6 +7780,11 @@ interface paths {
|
|
|
7747
7780
|
conversationId: string;
|
|
7748
7781
|
/** @description Opaque change token for `conversationId` at the moment this session was created. Compare it for equality and nothing else — it is unordered and unparseable. It changes on every transcript mutation, including a display-projection finalization that deliberately leaves `updatedAt` untouched, so a second device or a reloaded tab can tell whether the transcript it holds is still current. */
|
|
7749
7782
|
conversationRevision: string;
|
|
7783
|
+
/** @description Returned when the request negotiates `durableRecovery`. Older servers omit it; clients must then keep ordinary streaming behavior. */
|
|
7784
|
+
durableRecovery?: {
|
|
7785
|
+
/** @description Whether this initialized client-token session has the visitor credential and surface policy needed to use the durable execution reconnect route. Reporting only: individual turns still self-identify as durable through replay cursors. */
|
|
7786
|
+
enabled: boolean;
|
|
7787
|
+
};
|
|
7750
7788
|
/** @description ISO-8601 session idle-expiry timestamp. */
|
|
7751
7789
|
expiresAt: string;
|
|
7752
7790
|
/** @description Resolved flow or agent for this session. Present on every response except the data-only Runtype App branch, which returns `app` instead. Retained for compatibility: `id` always carries the same value as the canonical top-level `targetId`, which new clients should read instead. */
|
|
@@ -7860,6 +7898,8 @@ interface paths {
|
|
|
7860
7898
|
requestBody: {
|
|
7861
7899
|
content: {
|
|
7862
7900
|
"application/json": {
|
|
7901
|
+
/** @default */
|
|
7902
|
+
after?: string;
|
|
7863
7903
|
/** @description Id for the assistant message this resumed leg produces. The leg's completion is persisted to the conversation, so sending the id the client already uses locally makes a later re-send of that same message deduplicate exactly instead of by text. Optional and backward compatible. */
|
|
7864
7904
|
assistantMessageId?: string;
|
|
7865
7905
|
clientTools?: {
|
|
@@ -10897,6 +10937,7 @@ interface paths {
|
|
|
10897
10937
|
maxCost?: number;
|
|
10898
10938
|
maxTurns?: number;
|
|
10899
10939
|
reflectionInterval?: number;
|
|
10940
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
10900
10941
|
};
|
|
10901
10942
|
maxTokens?: number;
|
|
10902
10943
|
memory?: {
|
|
@@ -11272,6 +11313,7 @@ interface paths {
|
|
|
11272
11313
|
maxCost?: number;
|
|
11273
11314
|
maxTurns?: number;
|
|
11274
11315
|
reflectionInterval?: number;
|
|
11316
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
11275
11317
|
};
|
|
11276
11318
|
maxTokens?: number;
|
|
11277
11319
|
memory?: {
|
|
@@ -16667,6 +16709,12 @@ interface paths {
|
|
|
16667
16709
|
requestBody?: {
|
|
16668
16710
|
content: {
|
|
16669
16711
|
"application/json": {
|
|
16712
|
+
/**
|
|
16713
|
+
* @description Use overwrite only after confirming replacement of a code-managed flow.
|
|
16714
|
+
* @default error
|
|
16715
|
+
* @enum {string}
|
|
16716
|
+
*/
|
|
16717
|
+
onConflict?: "error" | "overwrite";
|
|
16670
16718
|
versionId: string;
|
|
16671
16719
|
};
|
|
16672
16720
|
};
|
|
@@ -16679,10 +16727,16 @@ interface paths {
|
|
|
16679
16727
|
};
|
|
16680
16728
|
content: {
|
|
16681
16729
|
"application/json": {
|
|
16730
|
+
applied: {
|
|
16731
|
+
[key: string]: boolean;
|
|
16732
|
+
};
|
|
16682
16733
|
flowId: string;
|
|
16734
|
+
/** @enum {string} */
|
|
16735
|
+
lastModifiedSource: "dashboard" | "api" | "mcp";
|
|
16683
16736
|
message: string;
|
|
16684
16737
|
success: boolean;
|
|
16685
16738
|
versionId: string;
|
|
16739
|
+
warnings: string[];
|
|
16686
16740
|
};
|
|
16687
16741
|
};
|
|
16688
16742
|
};
|
|
@@ -16724,6 +16778,20 @@ interface paths {
|
|
|
16724
16778
|
"application/json": components["schemas"]["Error"];
|
|
16725
16779
|
};
|
|
16726
16780
|
};
|
|
16781
|
+
/** @description Publishing would overwrite a definition managed by code */
|
|
16782
|
+
409: {
|
|
16783
|
+
headers: {
|
|
16784
|
+
[name: string]: unknown;
|
|
16785
|
+
};
|
|
16786
|
+
content: {
|
|
16787
|
+
"application/json": components["schemas"]["Error"] & {
|
|
16788
|
+
/** @enum {string} */
|
|
16789
|
+
code: "managed_by_code_conflict";
|
|
16790
|
+
/** @enum {string} */
|
|
16791
|
+
lastModifiedSource: "sdk" | "terraform";
|
|
16792
|
+
};
|
|
16793
|
+
};
|
|
16794
|
+
};
|
|
16727
16795
|
/** @description Internal server error */
|
|
16728
16796
|
500: {
|
|
16729
16797
|
headers: {
|
|
@@ -28741,6 +28809,7 @@ interface paths {
|
|
|
28741
28809
|
cursor?: string;
|
|
28742
28810
|
type?: string;
|
|
28743
28811
|
status?: string;
|
|
28812
|
+
/** @description Retired; answers 400 SURFACE_ENVIRONMENT_RETIRED. */
|
|
28744
28813
|
environment?: string;
|
|
28745
28814
|
};
|
|
28746
28815
|
header?: never;
|
|
@@ -28763,7 +28832,11 @@ interface paths {
|
|
|
28763
28832
|
createdAt: string;
|
|
28764
28833
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
28765
28834
|
endpoint: string | null;
|
|
28766
|
-
|
|
28835
|
+
/**
|
|
28836
|
+
* @deprecated
|
|
28837
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
28838
|
+
*/
|
|
28839
|
+
environment?: string;
|
|
28767
28840
|
id: string;
|
|
28768
28841
|
inbound?: unknown;
|
|
28769
28842
|
name: string;
|
|
@@ -28844,10 +28917,7 @@ interface paths {
|
|
|
28844
28917
|
"application/json": {
|
|
28845
28918
|
behavior?: unknown;
|
|
28846
28919
|
config?: unknown;
|
|
28847
|
-
/**
|
|
28848
|
-
* @default development
|
|
28849
|
-
* @enum {string}
|
|
28850
|
-
*/
|
|
28920
|
+
/** @enum {string} */
|
|
28851
28921
|
environment?: "production" | "development";
|
|
28852
28922
|
inbound?: {
|
|
28853
28923
|
[key: string]: unknown;
|
|
@@ -28875,7 +28945,11 @@ interface paths {
|
|
|
28875
28945
|
createdAt: string;
|
|
28876
28946
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
28877
28947
|
endpoint: string | null;
|
|
28878
|
-
|
|
28948
|
+
/**
|
|
28949
|
+
* @deprecated
|
|
28950
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
28951
|
+
*/
|
|
28952
|
+
environment?: string;
|
|
28879
28953
|
id: string;
|
|
28880
28954
|
inbound?: unknown;
|
|
28881
28955
|
items: unknown[];
|
|
@@ -29199,7 +29273,11 @@ interface paths {
|
|
|
29199
29273
|
createdAt: string;
|
|
29200
29274
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
29201
29275
|
endpoint: string | null;
|
|
29202
|
-
|
|
29276
|
+
/**
|
|
29277
|
+
* @deprecated
|
|
29278
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
29279
|
+
*/
|
|
29280
|
+
environment?: string;
|
|
29203
29281
|
id: string;
|
|
29204
29282
|
inbound?: unknown;
|
|
29205
29283
|
items: {
|
|
@@ -29346,7 +29424,11 @@ interface paths {
|
|
|
29346
29424
|
createdAt: string;
|
|
29347
29425
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
29348
29426
|
endpoint: string | null;
|
|
29349
|
-
|
|
29427
|
+
/**
|
|
29428
|
+
* @deprecated
|
|
29429
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
29430
|
+
*/
|
|
29431
|
+
environment?: string;
|
|
29350
29432
|
id: string;
|
|
29351
29433
|
inbound?: unknown;
|
|
29352
29434
|
name: string;
|
|
@@ -30177,8 +30259,8 @@ interface paths {
|
|
|
30177
30259
|
cookie?: never;
|
|
30178
30260
|
};
|
|
30179
30261
|
/**
|
|
30180
|
-
* Reveal
|
|
30181
|
-
* @description Reveal the plaintext of a
|
|
30262
|
+
* Reveal test surface key
|
|
30263
|
+
* @description Reveal the plaintext of a test surface key. Session-only — API key authentication is rejected.
|
|
30182
30264
|
*/
|
|
30183
30265
|
get: {
|
|
30184
30266
|
parameters: {
|
|
@@ -42041,7 +42123,7 @@ interface paths {
|
|
|
42041
42123
|
};
|
|
42042
42124
|
/**
|
|
42043
42125
|
* List surfaces
|
|
42044
|
-
* @description List product surfaces across the authenticated user/org's products with cursor-based pagination. Supports filtering by product, type,
|
|
42126
|
+
* @description List product surfaces across the authenticated user/org's products with cursor-based pagination. Supports filtering by product, type, and status. Slack inbound config is returned only for Slack surfaces and only includes safe-to-expose keys.
|
|
42045
42127
|
*/
|
|
42046
42128
|
get: {
|
|
42047
42129
|
parameters: {
|
|
@@ -42051,6 +42133,7 @@ interface paths {
|
|
|
42051
42133
|
productId?: string;
|
|
42052
42134
|
type?: string;
|
|
42053
42135
|
status?: string;
|
|
42136
|
+
/** @description Retired; answers 400 SURFACE_ENVIRONMENT_RETIRED. */
|
|
42054
42137
|
environment?: string;
|
|
42055
42138
|
};
|
|
42056
42139
|
header?: never;
|
|
@@ -42070,7 +42153,11 @@ interface paths {
|
|
|
42070
42153
|
createdAt: string;
|
|
42071
42154
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
42072
42155
|
endpoint: string | null;
|
|
42073
|
-
|
|
42156
|
+
/**
|
|
42157
|
+
* @deprecated
|
|
42158
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
42159
|
+
*/
|
|
42160
|
+
environment?: string;
|
|
42074
42161
|
id: string;
|
|
42075
42162
|
inbound: {
|
|
42076
42163
|
appId?: string;
|
|
@@ -44817,6 +44904,7 @@ interface components {
|
|
|
44817
44904
|
maxCost?: number;
|
|
44818
44905
|
maxTurns?: number;
|
|
44819
44906
|
reflectionInterval?: number;
|
|
44907
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
44820
44908
|
};
|
|
44821
44909
|
maxTokens?: number;
|
|
44822
44910
|
memory?: {
|
|
@@ -45744,9 +45832,11 @@ interface components {
|
|
|
45744
45832
|
message: string;
|
|
45745
45833
|
};
|
|
45746
45834
|
executionId: string;
|
|
45835
|
+
finalOutput?: string;
|
|
45747
45836
|
/** @enum {string} */
|
|
45748
45837
|
kind: "agent" | "flow";
|
|
45749
45838
|
seq: number;
|
|
45839
|
+
stopReason?: string;
|
|
45750
45840
|
/** @enum {string} */
|
|
45751
45841
|
type: "execution_error";
|
|
45752
45842
|
upgradeUrl?: string;
|
|
@@ -48307,6 +48397,14 @@ interface ApiKey {
|
|
|
48307
48397
|
createdAt: string;
|
|
48308
48398
|
updatedAt?: string;
|
|
48309
48399
|
lastUsedAt?: string;
|
|
48400
|
+
isTestKey?: boolean;
|
|
48401
|
+
canReveal?: boolean;
|
|
48402
|
+
/** User who created the key; differs from the caller only in the organization-admin view. */
|
|
48403
|
+
ownerUserId?: string;
|
|
48404
|
+
/** Owning member's display name or email; populated only for organization admins. */
|
|
48405
|
+
ownerName?: string | null;
|
|
48406
|
+
/** False for a key an organization admin can see but did not create. Such keys are read-only. */
|
|
48407
|
+
isOwn?: boolean;
|
|
48310
48408
|
}
|
|
48311
48409
|
interface ModelConfig {
|
|
48312
48410
|
id: string;
|
|
@@ -49355,6 +49453,12 @@ interface AgentVersionPublishResponse {
|
|
|
49355
49453
|
message: string;
|
|
49356
49454
|
agentId: string;
|
|
49357
49455
|
versionId: string;
|
|
49456
|
+
applied: Record<string, boolean>;
|
|
49457
|
+
warnings: string[];
|
|
49458
|
+
lastModifiedSource: 'dashboard' | 'api' | 'mcp';
|
|
49459
|
+
}
|
|
49460
|
+
interface VersionPublishOptions {
|
|
49461
|
+
onConflict?: 'error' | 'overwrite';
|
|
49358
49462
|
}
|
|
49359
49463
|
interface FlowVersionListItem {
|
|
49360
49464
|
id: string;
|
|
@@ -49377,6 +49481,9 @@ interface FlowVersionPublishResponse {
|
|
|
49377
49481
|
message: string;
|
|
49378
49482
|
flowId: string;
|
|
49379
49483
|
versionId: string;
|
|
49484
|
+
applied: Record<string, boolean>;
|
|
49485
|
+
warnings: string[];
|
|
49486
|
+
lastModifiedSource: 'dashboard' | 'api' | 'mcp';
|
|
49380
49487
|
}
|
|
49381
49488
|
type VersionType = 'published' | 'draft' | 'test' | 'virtual';
|
|
49382
49489
|
type Integration = paths['/v1/integrations']['get']['responses'][200]['content']['application/json']['integrations'][number];
|
|
@@ -52756,12 +52863,10 @@ interface SurfaceContentInput {
|
|
|
52756
52863
|
inbound?: Record<string, unknown> | null;
|
|
52757
52864
|
outbound?: Record<string, unknown> | null;
|
|
52758
52865
|
status?: string | null;
|
|
52759
|
-
environment?: string | null;
|
|
52760
52866
|
}
|
|
52761
52867
|
/** The surface types `ensure` accepts (mirrors the server's createSurfaceSchema). */
|
|
52762
52868
|
type SurfaceDefinitionType = 'chat' | 'mcp' | 'mcp_code' | 'api' | 'webhook' | 'schedule' | 'a2a' | 'email' | 'slack' | 'sms' | 'imessage' | 'discord' | 'whatsapp' | 'telegram' | 'hosted-page' | 'chrome_extension';
|
|
52763
52869
|
type SurfaceDefinitionStatus = 'draft' | 'active' | 'paused';
|
|
52764
|
-
type SurfaceDefinitionEnvironment = 'production' | 'development';
|
|
52765
52870
|
/** `defineSurface` input: identity (name) + the convergeable content fields. */
|
|
52766
52871
|
interface DefineSurfaceInput {
|
|
52767
52872
|
name: string;
|
|
@@ -52770,7 +52875,8 @@ interface DefineSurfaceInput {
|
|
|
52770
52875
|
inbound?: Record<string, unknown>;
|
|
52771
52876
|
outbound?: Record<string, unknown>;
|
|
52772
52877
|
status?: SurfaceDefinitionStatus;
|
|
52773
|
-
environment
|
|
52878
|
+
/** @deprecated Surface environment was retired (ADR 0023); accepted and dropped. */
|
|
52879
|
+
environment?: 'production' | 'development';
|
|
52774
52880
|
}
|
|
52775
52881
|
/** The canonical (wire) definition produced by `defineSurface`. */
|
|
52776
52882
|
interface SurfaceDefinition {
|
|
@@ -52780,7 +52886,6 @@ interface SurfaceDefinition {
|
|
|
52780
52886
|
inbound?: Record<string, unknown>;
|
|
52781
52887
|
outbound?: Record<string, unknown>;
|
|
52782
52888
|
status?: SurfaceDefinitionStatus;
|
|
52783
|
-
environment?: SurfaceDefinitionEnvironment;
|
|
52784
52889
|
}
|
|
52785
52890
|
/**
|
|
52786
52891
|
* Pure-local declarative constructor for a surface definition. No I/O.
|
|
@@ -54313,7 +54418,10 @@ declare class ApiKeysEndpoint {
|
|
|
54313
54418
|
readonly requests: ApiKeyRequestsEndpoint;
|
|
54314
54419
|
constructor(client: ApiClient);
|
|
54315
54420
|
/**
|
|
54316
|
-
* List
|
|
54421
|
+
* List the API keys visible to the caller. An organization admin on a Clerk
|
|
54422
|
+
* session receives every key in the organization (each carrying `ownerUserId`,
|
|
54423
|
+
* `ownerName` and `isOwn`); other members, and every API-key caller, receive
|
|
54424
|
+
* only the keys they created. Keys with `isOwn: false` are read-only.
|
|
54317
54425
|
*/
|
|
54318
54426
|
list(): Promise<ApiKey[]>;
|
|
54319
54427
|
/**
|
|
@@ -55285,7 +55393,7 @@ interface AgentCompleteEvent extends BaseAgentEvent {
|
|
|
55285
55393
|
agentId: string;
|
|
55286
55394
|
success: boolean;
|
|
55287
55395
|
iterations: number;
|
|
55288
|
-
stopReason: 'complete' | 'end_turn' | 'max_turns' | 'max_cost' | 'timeout' | 'error';
|
|
55396
|
+
stopReason: 'complete' | 'end_turn' | 'max_turns' | 'max_cost' | 'timeout' | 'error' | 'length';
|
|
55289
55397
|
completedAt: string;
|
|
55290
55398
|
totalCost?: number;
|
|
55291
55399
|
totalTokens?: {
|
|
@@ -55578,7 +55686,7 @@ interface AgentExecuteResponse {
|
|
|
55578
55686
|
input: number;
|
|
55579
55687
|
output: number;
|
|
55580
55688
|
};
|
|
55581
|
-
stopReason: 'complete' | 'end_turn' | 'max_turns' | 'max_cost' | 'timeout' | 'error' | 'paused';
|
|
55689
|
+
stopReason: 'complete' | 'end_turn' | 'max_turns' | 'max_cost' | 'timeout' | 'error' | 'paused' | 'length';
|
|
55582
55690
|
reflections?: string[];
|
|
55583
55691
|
error?: string;
|
|
55584
55692
|
/**
|
|
@@ -56560,7 +56668,7 @@ declare class AgentVersionsEndpoint {
|
|
|
56560
56668
|
/**
|
|
56561
56669
|
* Publish a version (promote it to the agent's published version).
|
|
56562
56670
|
*/
|
|
56563
|
-
publish(agentId: string, versionId: string): Promise<AgentVersionPublishResponse>;
|
|
56671
|
+
publish(agentId: string, versionId: string, options?: VersionPublishOptions): Promise<AgentVersionPublishResponse>;
|
|
56564
56672
|
}
|
|
56565
56673
|
/**
|
|
56566
56674
|
* Flow Versions endpoint handlers
|
|
@@ -56588,7 +56696,7 @@ declare class FlowVersionsEndpoint {
|
|
|
56588
56696
|
/**
|
|
56589
56697
|
* Publish a version (promote it to the flow's published version).
|
|
56590
56698
|
*/
|
|
56591
|
-
publish(flowId: string, versionId: string): Promise<FlowVersionPublishResponse>;
|
|
56699
|
+
publish(flowId: string, versionId: string, options?: VersionPublishOptions): Promise<FlowVersionPublishResponse>;
|
|
56592
56700
|
}
|
|
56593
56701
|
/**
|
|
56594
56702
|
* Integrations endpoint handlers
|
|
@@ -58315,4 +58423,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
58315
58423
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
58316
58424
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
58317
58425
|
|
|
58318
|
-
export { type AIGrader, type Agent, type AgentAdmissionOptions, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, type ApiKeyRequest, type ApiKeyRequestDelivery, type ApiKeyRequestEnvironment, type ApiKeyRequestHandoff, type ApiKeyRequestListParams, type ApiKeyRequestRequester, type ApiKeyRequestStatus, ApiKeyRequestsEndpoint, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AsyncExecutionHandle, type AsyncExecutionStatus, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, type CatalogClientToolRef, ChatEndpoint, type CheckGrader, type ClaimApiKeyRequestInput, type ClaimApiKeyRequestResponse, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientToolEntry, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateApiKeyRequestInput, type CreateApiKeyRequestResponse, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DetachedReattach, type DetachedReconnectOptions, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, ExecutionsEndpoint, ExecutionsNamespace, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetApiKeyRequestResponse, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withDetachedReconnect, withUnifiedEvents };
|
|
58426
|
+
export { type AIGrader, type Agent, type AgentAdmissionOptions, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, type ApiKeyRequest, type ApiKeyRequestDelivery, type ApiKeyRequestEnvironment, type ApiKeyRequestHandoff, type ApiKeyRequestListParams, type ApiKeyRequestRequester, type ApiKeyRequestStatus, ApiKeyRequestsEndpoint, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AsyncExecutionHandle, type AsyncExecutionStatus, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, type CatalogClientToolRef, ChatEndpoint, type CheckGrader, type ClaimApiKeyRequestInput, type ClaimApiKeyRequestResponse, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientToolEntry, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateApiKeyRequestInput, type CreateApiKeyRequestResponse, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DetachedReattach, type DetachedReconnectOptions, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, ExecutionsEndpoint, ExecutionsNamespace, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetApiKeyRequestResponse, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionPublishOptions, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withDetachedReconnect, withUnifiedEvents };
|
package/dist/index.d.ts
CHANGED
|
@@ -228,6 +228,12 @@ interface paths {
|
|
|
228
228
|
requestBody?: {
|
|
229
229
|
content: {
|
|
230
230
|
"application/json": {
|
|
231
|
+
/**
|
|
232
|
+
* @description Use overwrite only after confirming replacement of a code-managed agent.
|
|
233
|
+
* @default error
|
|
234
|
+
* @enum {string}
|
|
235
|
+
*/
|
|
236
|
+
onConflict?: "error" | "overwrite";
|
|
231
237
|
versionId: string;
|
|
232
238
|
};
|
|
233
239
|
};
|
|
@@ -241,9 +247,15 @@ interface paths {
|
|
|
241
247
|
content: {
|
|
242
248
|
"application/json": {
|
|
243
249
|
agentId: string;
|
|
250
|
+
applied: {
|
|
251
|
+
[key: string]: boolean;
|
|
252
|
+
};
|
|
253
|
+
/** @enum {string} */
|
|
254
|
+
lastModifiedSource: "dashboard" | "api" | "mcp";
|
|
244
255
|
message: string;
|
|
245
256
|
success: boolean;
|
|
246
257
|
versionId: string;
|
|
258
|
+
warnings: string[];
|
|
247
259
|
};
|
|
248
260
|
};
|
|
249
261
|
};
|
|
@@ -285,6 +297,20 @@ interface paths {
|
|
|
285
297
|
"application/json": components["schemas"]["Error"];
|
|
286
298
|
};
|
|
287
299
|
};
|
|
300
|
+
/** @description Publishing would overwrite a definition managed by code */
|
|
301
|
+
409: {
|
|
302
|
+
headers: {
|
|
303
|
+
[name: string]: unknown;
|
|
304
|
+
};
|
|
305
|
+
content: {
|
|
306
|
+
"application/json": components["schemas"]["Error"] & {
|
|
307
|
+
/** @enum {string} */
|
|
308
|
+
code: "managed_by_code_conflict";
|
|
309
|
+
/** @enum {string} */
|
|
310
|
+
lastModifiedSource: "sdk" | "terraform";
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
288
314
|
/** @description Internal server error */
|
|
289
315
|
500: {
|
|
290
316
|
headers: {
|
|
@@ -713,6 +739,7 @@ interface paths {
|
|
|
713
739
|
maxCost?: number;
|
|
714
740
|
maxTurns?: number;
|
|
715
741
|
reflectionInterval?: number;
|
|
742
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
716
743
|
};
|
|
717
744
|
maxTokens?: number;
|
|
718
745
|
memory?: {
|
|
@@ -1143,6 +1170,7 @@ interface paths {
|
|
|
1143
1170
|
maxCost?: number;
|
|
1144
1171
|
maxTurns?: number;
|
|
1145
1172
|
reflectionInterval?: number;
|
|
1173
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
1146
1174
|
};
|
|
1147
1175
|
maxTokens?: number;
|
|
1148
1176
|
memory?: {
|
|
@@ -1841,6 +1869,7 @@ interface paths {
|
|
|
1841
1869
|
maxCost?: number;
|
|
1842
1870
|
maxTurns?: number;
|
|
1843
1871
|
reflectionInterval?: number;
|
|
1872
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
1844
1873
|
};
|
|
1845
1874
|
maxTokens?: number;
|
|
1846
1875
|
memory?: {
|
|
@@ -7692,12 +7721,14 @@ interface paths {
|
|
|
7692
7721
|
requestBody: {
|
|
7693
7722
|
content: {
|
|
7694
7723
|
"application/json": {
|
|
7724
|
+
durableRecovery?: boolean;
|
|
7695
7725
|
flowId?: string;
|
|
7696
7726
|
identityProof?: string;
|
|
7697
7727
|
token: string;
|
|
7698
7728
|
visitorHistory?: boolean;
|
|
7699
7729
|
visitorToken?: string;
|
|
7700
7730
|
} | {
|
|
7731
|
+
durableRecovery?: boolean;
|
|
7701
7732
|
flowId?: string;
|
|
7702
7733
|
identityProof?: string;
|
|
7703
7734
|
sessionId: string;
|
|
@@ -7706,6 +7737,7 @@ interface paths {
|
|
|
7706
7737
|
visitorToken?: string;
|
|
7707
7738
|
} | {
|
|
7708
7739
|
conversationId: string;
|
|
7740
|
+
durableRecovery?: boolean;
|
|
7709
7741
|
flowId?: string;
|
|
7710
7742
|
identityProof?: string;
|
|
7711
7743
|
token: string;
|
|
@@ -7713,6 +7745,7 @@ interface paths {
|
|
|
7713
7745
|
visitorToken: string;
|
|
7714
7746
|
} | {
|
|
7715
7747
|
conversationId: string;
|
|
7748
|
+
durableRecovery?: boolean;
|
|
7716
7749
|
flowId?: string;
|
|
7717
7750
|
identityProof: string;
|
|
7718
7751
|
token: string;
|
|
@@ -7747,6 +7780,11 @@ interface paths {
|
|
|
7747
7780
|
conversationId: string;
|
|
7748
7781
|
/** @description Opaque change token for `conversationId` at the moment this session was created. Compare it for equality and nothing else — it is unordered and unparseable. It changes on every transcript mutation, including a display-projection finalization that deliberately leaves `updatedAt` untouched, so a second device or a reloaded tab can tell whether the transcript it holds is still current. */
|
|
7749
7782
|
conversationRevision: string;
|
|
7783
|
+
/** @description Returned when the request negotiates `durableRecovery`. Older servers omit it; clients must then keep ordinary streaming behavior. */
|
|
7784
|
+
durableRecovery?: {
|
|
7785
|
+
/** @description Whether this initialized client-token session has the visitor credential and surface policy needed to use the durable execution reconnect route. Reporting only: individual turns still self-identify as durable through replay cursors. */
|
|
7786
|
+
enabled: boolean;
|
|
7787
|
+
};
|
|
7750
7788
|
/** @description ISO-8601 session idle-expiry timestamp. */
|
|
7751
7789
|
expiresAt: string;
|
|
7752
7790
|
/** @description Resolved flow or agent for this session. Present on every response except the data-only Runtype App branch, which returns `app` instead. Retained for compatibility: `id` always carries the same value as the canonical top-level `targetId`, which new clients should read instead. */
|
|
@@ -7860,6 +7898,8 @@ interface paths {
|
|
|
7860
7898
|
requestBody: {
|
|
7861
7899
|
content: {
|
|
7862
7900
|
"application/json": {
|
|
7901
|
+
/** @default */
|
|
7902
|
+
after?: string;
|
|
7863
7903
|
/** @description Id for the assistant message this resumed leg produces. The leg's completion is persisted to the conversation, so sending the id the client already uses locally makes a later re-send of that same message deduplicate exactly instead of by text. Optional and backward compatible. */
|
|
7864
7904
|
assistantMessageId?: string;
|
|
7865
7905
|
clientTools?: {
|
|
@@ -10897,6 +10937,7 @@ interface paths {
|
|
|
10897
10937
|
maxCost?: number;
|
|
10898
10938
|
maxTurns?: number;
|
|
10899
10939
|
reflectionInterval?: number;
|
|
10940
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
10900
10941
|
};
|
|
10901
10942
|
maxTokens?: number;
|
|
10902
10943
|
memory?: {
|
|
@@ -11272,6 +11313,7 @@ interface paths {
|
|
|
11272
11313
|
maxCost?: number;
|
|
11273
11314
|
maxTurns?: number;
|
|
11274
11315
|
reflectionInterval?: number;
|
|
11316
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
11275
11317
|
};
|
|
11276
11318
|
maxTokens?: number;
|
|
11277
11319
|
memory?: {
|
|
@@ -16667,6 +16709,12 @@ interface paths {
|
|
|
16667
16709
|
requestBody?: {
|
|
16668
16710
|
content: {
|
|
16669
16711
|
"application/json": {
|
|
16712
|
+
/**
|
|
16713
|
+
* @description Use overwrite only after confirming replacement of a code-managed flow.
|
|
16714
|
+
* @default error
|
|
16715
|
+
* @enum {string}
|
|
16716
|
+
*/
|
|
16717
|
+
onConflict?: "error" | "overwrite";
|
|
16670
16718
|
versionId: string;
|
|
16671
16719
|
};
|
|
16672
16720
|
};
|
|
@@ -16679,10 +16727,16 @@ interface paths {
|
|
|
16679
16727
|
};
|
|
16680
16728
|
content: {
|
|
16681
16729
|
"application/json": {
|
|
16730
|
+
applied: {
|
|
16731
|
+
[key: string]: boolean;
|
|
16732
|
+
};
|
|
16682
16733
|
flowId: string;
|
|
16734
|
+
/** @enum {string} */
|
|
16735
|
+
lastModifiedSource: "dashboard" | "api" | "mcp";
|
|
16683
16736
|
message: string;
|
|
16684
16737
|
success: boolean;
|
|
16685
16738
|
versionId: string;
|
|
16739
|
+
warnings: string[];
|
|
16686
16740
|
};
|
|
16687
16741
|
};
|
|
16688
16742
|
};
|
|
@@ -16724,6 +16778,20 @@ interface paths {
|
|
|
16724
16778
|
"application/json": components["schemas"]["Error"];
|
|
16725
16779
|
};
|
|
16726
16780
|
};
|
|
16781
|
+
/** @description Publishing would overwrite a definition managed by code */
|
|
16782
|
+
409: {
|
|
16783
|
+
headers: {
|
|
16784
|
+
[name: string]: unknown;
|
|
16785
|
+
};
|
|
16786
|
+
content: {
|
|
16787
|
+
"application/json": components["schemas"]["Error"] & {
|
|
16788
|
+
/** @enum {string} */
|
|
16789
|
+
code: "managed_by_code_conflict";
|
|
16790
|
+
/** @enum {string} */
|
|
16791
|
+
lastModifiedSource: "sdk" | "terraform";
|
|
16792
|
+
};
|
|
16793
|
+
};
|
|
16794
|
+
};
|
|
16727
16795
|
/** @description Internal server error */
|
|
16728
16796
|
500: {
|
|
16729
16797
|
headers: {
|
|
@@ -28741,6 +28809,7 @@ interface paths {
|
|
|
28741
28809
|
cursor?: string;
|
|
28742
28810
|
type?: string;
|
|
28743
28811
|
status?: string;
|
|
28812
|
+
/** @description Retired; answers 400 SURFACE_ENVIRONMENT_RETIRED. */
|
|
28744
28813
|
environment?: string;
|
|
28745
28814
|
};
|
|
28746
28815
|
header?: never;
|
|
@@ -28763,7 +28832,11 @@ interface paths {
|
|
|
28763
28832
|
createdAt: string;
|
|
28764
28833
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
28765
28834
|
endpoint: string | null;
|
|
28766
|
-
|
|
28835
|
+
/**
|
|
28836
|
+
* @deprecated
|
|
28837
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
28838
|
+
*/
|
|
28839
|
+
environment?: string;
|
|
28767
28840
|
id: string;
|
|
28768
28841
|
inbound?: unknown;
|
|
28769
28842
|
name: string;
|
|
@@ -28844,10 +28917,7 @@ interface paths {
|
|
|
28844
28917
|
"application/json": {
|
|
28845
28918
|
behavior?: unknown;
|
|
28846
28919
|
config?: unknown;
|
|
28847
|
-
/**
|
|
28848
|
-
* @default development
|
|
28849
|
-
* @enum {string}
|
|
28850
|
-
*/
|
|
28920
|
+
/** @enum {string} */
|
|
28851
28921
|
environment?: "production" | "development";
|
|
28852
28922
|
inbound?: {
|
|
28853
28923
|
[key: string]: unknown;
|
|
@@ -28875,7 +28945,11 @@ interface paths {
|
|
|
28875
28945
|
createdAt: string;
|
|
28876
28946
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
28877
28947
|
endpoint: string | null;
|
|
28878
|
-
|
|
28948
|
+
/**
|
|
28949
|
+
* @deprecated
|
|
28950
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
28951
|
+
*/
|
|
28952
|
+
environment?: string;
|
|
28879
28953
|
id: string;
|
|
28880
28954
|
inbound?: unknown;
|
|
28881
28955
|
items: unknown[];
|
|
@@ -29199,7 +29273,11 @@ interface paths {
|
|
|
29199
29273
|
createdAt: string;
|
|
29200
29274
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
29201
29275
|
endpoint: string | null;
|
|
29202
|
-
|
|
29276
|
+
/**
|
|
29277
|
+
* @deprecated
|
|
29278
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
29279
|
+
*/
|
|
29280
|
+
environment?: string;
|
|
29203
29281
|
id: string;
|
|
29204
29282
|
inbound?: unknown;
|
|
29205
29283
|
items: {
|
|
@@ -29346,7 +29424,11 @@ interface paths {
|
|
|
29346
29424
|
createdAt: string;
|
|
29347
29425
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
29348
29426
|
endpoint: string | null;
|
|
29349
|
-
|
|
29427
|
+
/**
|
|
29428
|
+
* @deprecated
|
|
29429
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
29430
|
+
*/
|
|
29431
|
+
environment?: string;
|
|
29350
29432
|
id: string;
|
|
29351
29433
|
inbound?: unknown;
|
|
29352
29434
|
name: string;
|
|
@@ -30177,8 +30259,8 @@ interface paths {
|
|
|
30177
30259
|
cookie?: never;
|
|
30178
30260
|
};
|
|
30179
30261
|
/**
|
|
30180
|
-
* Reveal
|
|
30181
|
-
* @description Reveal the plaintext of a
|
|
30262
|
+
* Reveal test surface key
|
|
30263
|
+
* @description Reveal the plaintext of a test surface key. Session-only — API key authentication is rejected.
|
|
30182
30264
|
*/
|
|
30183
30265
|
get: {
|
|
30184
30266
|
parameters: {
|
|
@@ -42041,7 +42123,7 @@ interface paths {
|
|
|
42041
42123
|
};
|
|
42042
42124
|
/**
|
|
42043
42125
|
* List surfaces
|
|
42044
|
-
* @description List product surfaces across the authenticated user/org's products with cursor-based pagination. Supports filtering by product, type,
|
|
42126
|
+
* @description List product surfaces across the authenticated user/org's products with cursor-based pagination. Supports filtering by product, type, and status. Slack inbound config is returned only for Slack surfaces and only includes safe-to-expose keys.
|
|
42045
42127
|
*/
|
|
42046
42128
|
get: {
|
|
42047
42129
|
parameters: {
|
|
@@ -42051,6 +42133,7 @@ interface paths {
|
|
|
42051
42133
|
productId?: string;
|
|
42052
42134
|
type?: string;
|
|
42053
42135
|
status?: string;
|
|
42136
|
+
/** @description Retired; answers 400 SURFACE_ENVIRONMENT_RETIRED. */
|
|
42054
42137
|
environment?: string;
|
|
42055
42138
|
};
|
|
42056
42139
|
header?: never;
|
|
@@ -42070,7 +42153,11 @@ interface paths {
|
|
|
42070
42153
|
createdAt: string;
|
|
42071
42154
|
/** @description Canonical public URL of this surface (MCP, API, A2A, AG-UI, webhook, chat). Null for surface types reached through their own channels (Slack, email, schedule, ...). Clients should use this instead of constructing the URL themselves. */
|
|
42072
42155
|
endpoint: string | null;
|
|
42073
|
-
|
|
42156
|
+
/**
|
|
42157
|
+
* @deprecated
|
|
42158
|
+
* @description Always 'production'. Surface environment was retired (ADR 0023); the field is removed together with the retained column.
|
|
42159
|
+
*/
|
|
42160
|
+
environment?: string;
|
|
42074
42161
|
id: string;
|
|
42075
42162
|
inbound: {
|
|
42076
42163
|
appId?: string;
|
|
@@ -44817,6 +44904,7 @@ interface components {
|
|
|
44817
44904
|
maxCost?: number;
|
|
44818
44905
|
maxTurns?: number;
|
|
44819
44906
|
reflectionInterval?: number;
|
|
44907
|
+
treatLengthCutoffAsFailure?: boolean;
|
|
44820
44908
|
};
|
|
44821
44909
|
maxTokens?: number;
|
|
44822
44910
|
memory?: {
|
|
@@ -45744,9 +45832,11 @@ interface components {
|
|
|
45744
45832
|
message: string;
|
|
45745
45833
|
};
|
|
45746
45834
|
executionId: string;
|
|
45835
|
+
finalOutput?: string;
|
|
45747
45836
|
/** @enum {string} */
|
|
45748
45837
|
kind: "agent" | "flow";
|
|
45749
45838
|
seq: number;
|
|
45839
|
+
stopReason?: string;
|
|
45750
45840
|
/** @enum {string} */
|
|
45751
45841
|
type: "execution_error";
|
|
45752
45842
|
upgradeUrl?: string;
|
|
@@ -48307,6 +48397,14 @@ interface ApiKey {
|
|
|
48307
48397
|
createdAt: string;
|
|
48308
48398
|
updatedAt?: string;
|
|
48309
48399
|
lastUsedAt?: string;
|
|
48400
|
+
isTestKey?: boolean;
|
|
48401
|
+
canReveal?: boolean;
|
|
48402
|
+
/** User who created the key; differs from the caller only in the organization-admin view. */
|
|
48403
|
+
ownerUserId?: string;
|
|
48404
|
+
/** Owning member's display name or email; populated only for organization admins. */
|
|
48405
|
+
ownerName?: string | null;
|
|
48406
|
+
/** False for a key an organization admin can see but did not create. Such keys are read-only. */
|
|
48407
|
+
isOwn?: boolean;
|
|
48310
48408
|
}
|
|
48311
48409
|
interface ModelConfig {
|
|
48312
48410
|
id: string;
|
|
@@ -49355,6 +49453,12 @@ interface AgentVersionPublishResponse {
|
|
|
49355
49453
|
message: string;
|
|
49356
49454
|
agentId: string;
|
|
49357
49455
|
versionId: string;
|
|
49456
|
+
applied: Record<string, boolean>;
|
|
49457
|
+
warnings: string[];
|
|
49458
|
+
lastModifiedSource: 'dashboard' | 'api' | 'mcp';
|
|
49459
|
+
}
|
|
49460
|
+
interface VersionPublishOptions {
|
|
49461
|
+
onConflict?: 'error' | 'overwrite';
|
|
49358
49462
|
}
|
|
49359
49463
|
interface FlowVersionListItem {
|
|
49360
49464
|
id: string;
|
|
@@ -49377,6 +49481,9 @@ interface FlowVersionPublishResponse {
|
|
|
49377
49481
|
message: string;
|
|
49378
49482
|
flowId: string;
|
|
49379
49483
|
versionId: string;
|
|
49484
|
+
applied: Record<string, boolean>;
|
|
49485
|
+
warnings: string[];
|
|
49486
|
+
lastModifiedSource: 'dashboard' | 'api' | 'mcp';
|
|
49380
49487
|
}
|
|
49381
49488
|
type VersionType = 'published' | 'draft' | 'test' | 'virtual';
|
|
49382
49489
|
type Integration = paths['/v1/integrations']['get']['responses'][200]['content']['application/json']['integrations'][number];
|
|
@@ -52756,12 +52863,10 @@ interface SurfaceContentInput {
|
|
|
52756
52863
|
inbound?: Record<string, unknown> | null;
|
|
52757
52864
|
outbound?: Record<string, unknown> | null;
|
|
52758
52865
|
status?: string | null;
|
|
52759
|
-
environment?: string | null;
|
|
52760
52866
|
}
|
|
52761
52867
|
/** The surface types `ensure` accepts (mirrors the server's createSurfaceSchema). */
|
|
52762
52868
|
type SurfaceDefinitionType = 'chat' | 'mcp' | 'mcp_code' | 'api' | 'webhook' | 'schedule' | 'a2a' | 'email' | 'slack' | 'sms' | 'imessage' | 'discord' | 'whatsapp' | 'telegram' | 'hosted-page' | 'chrome_extension';
|
|
52763
52869
|
type SurfaceDefinitionStatus = 'draft' | 'active' | 'paused';
|
|
52764
|
-
type SurfaceDefinitionEnvironment = 'production' | 'development';
|
|
52765
52870
|
/** `defineSurface` input: identity (name) + the convergeable content fields. */
|
|
52766
52871
|
interface DefineSurfaceInput {
|
|
52767
52872
|
name: string;
|
|
@@ -52770,7 +52875,8 @@ interface DefineSurfaceInput {
|
|
|
52770
52875
|
inbound?: Record<string, unknown>;
|
|
52771
52876
|
outbound?: Record<string, unknown>;
|
|
52772
52877
|
status?: SurfaceDefinitionStatus;
|
|
52773
|
-
environment
|
|
52878
|
+
/** @deprecated Surface environment was retired (ADR 0023); accepted and dropped. */
|
|
52879
|
+
environment?: 'production' | 'development';
|
|
52774
52880
|
}
|
|
52775
52881
|
/** The canonical (wire) definition produced by `defineSurface`. */
|
|
52776
52882
|
interface SurfaceDefinition {
|
|
@@ -52780,7 +52886,6 @@ interface SurfaceDefinition {
|
|
|
52780
52886
|
inbound?: Record<string, unknown>;
|
|
52781
52887
|
outbound?: Record<string, unknown>;
|
|
52782
52888
|
status?: SurfaceDefinitionStatus;
|
|
52783
|
-
environment?: SurfaceDefinitionEnvironment;
|
|
52784
52889
|
}
|
|
52785
52890
|
/**
|
|
52786
52891
|
* Pure-local declarative constructor for a surface definition. No I/O.
|
|
@@ -54313,7 +54418,10 @@ declare class ApiKeysEndpoint {
|
|
|
54313
54418
|
readonly requests: ApiKeyRequestsEndpoint;
|
|
54314
54419
|
constructor(client: ApiClient);
|
|
54315
54420
|
/**
|
|
54316
|
-
* List
|
|
54421
|
+
* List the API keys visible to the caller. An organization admin on a Clerk
|
|
54422
|
+
* session receives every key in the organization (each carrying `ownerUserId`,
|
|
54423
|
+
* `ownerName` and `isOwn`); other members, and every API-key caller, receive
|
|
54424
|
+
* only the keys they created. Keys with `isOwn: false` are read-only.
|
|
54317
54425
|
*/
|
|
54318
54426
|
list(): Promise<ApiKey[]>;
|
|
54319
54427
|
/**
|
|
@@ -55285,7 +55393,7 @@ interface AgentCompleteEvent extends BaseAgentEvent {
|
|
|
55285
55393
|
agentId: string;
|
|
55286
55394
|
success: boolean;
|
|
55287
55395
|
iterations: number;
|
|
55288
|
-
stopReason: 'complete' | 'end_turn' | 'max_turns' | 'max_cost' | 'timeout' | 'error';
|
|
55396
|
+
stopReason: 'complete' | 'end_turn' | 'max_turns' | 'max_cost' | 'timeout' | 'error' | 'length';
|
|
55289
55397
|
completedAt: string;
|
|
55290
55398
|
totalCost?: number;
|
|
55291
55399
|
totalTokens?: {
|
|
@@ -55578,7 +55686,7 @@ interface AgentExecuteResponse {
|
|
|
55578
55686
|
input: number;
|
|
55579
55687
|
output: number;
|
|
55580
55688
|
};
|
|
55581
|
-
stopReason: 'complete' | 'end_turn' | 'max_turns' | 'max_cost' | 'timeout' | 'error' | 'paused';
|
|
55689
|
+
stopReason: 'complete' | 'end_turn' | 'max_turns' | 'max_cost' | 'timeout' | 'error' | 'paused' | 'length';
|
|
55582
55690
|
reflections?: string[];
|
|
55583
55691
|
error?: string;
|
|
55584
55692
|
/**
|
|
@@ -56560,7 +56668,7 @@ declare class AgentVersionsEndpoint {
|
|
|
56560
56668
|
/**
|
|
56561
56669
|
* Publish a version (promote it to the agent's published version).
|
|
56562
56670
|
*/
|
|
56563
|
-
publish(agentId: string, versionId: string): Promise<AgentVersionPublishResponse>;
|
|
56671
|
+
publish(agentId: string, versionId: string, options?: VersionPublishOptions): Promise<AgentVersionPublishResponse>;
|
|
56564
56672
|
}
|
|
56565
56673
|
/**
|
|
56566
56674
|
* Flow Versions endpoint handlers
|
|
@@ -56588,7 +56696,7 @@ declare class FlowVersionsEndpoint {
|
|
|
56588
56696
|
/**
|
|
56589
56697
|
* Publish a version (promote it to the flow's published version).
|
|
56590
56698
|
*/
|
|
56591
|
-
publish(flowId: string, versionId: string): Promise<FlowVersionPublishResponse>;
|
|
56699
|
+
publish(flowId: string, versionId: string, options?: VersionPublishOptions): Promise<FlowVersionPublishResponse>;
|
|
56592
56700
|
}
|
|
56593
56701
|
/**
|
|
56594
56702
|
* Integrations endpoint handlers
|
|
@@ -58315,4 +58423,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
58315
58423
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
58316
58424
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
58317
58425
|
|
|
58318
|
-
export { type AIGrader, type Agent, type AgentAdmissionOptions, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, type ApiKeyRequest, type ApiKeyRequestDelivery, type ApiKeyRequestEnvironment, type ApiKeyRequestHandoff, type ApiKeyRequestListParams, type ApiKeyRequestRequester, type ApiKeyRequestStatus, ApiKeyRequestsEndpoint, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AsyncExecutionHandle, type AsyncExecutionStatus, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, type CatalogClientToolRef, ChatEndpoint, type CheckGrader, type ClaimApiKeyRequestInput, type ClaimApiKeyRequestResponse, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientToolEntry, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateApiKeyRequestInput, type CreateApiKeyRequestResponse, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DetachedReattach, type DetachedReconnectOptions, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, ExecutionsEndpoint, ExecutionsNamespace, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetApiKeyRequestResponse, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withDetachedReconnect, withUnifiedEvents };
|
|
58426
|
+
export { type AIGrader, type Agent, type AgentAdmissionOptions, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, type ApiKeyRequest, type ApiKeyRequestDelivery, type ApiKeyRequestEnvironment, type ApiKeyRequestHandoff, type ApiKeyRequestListParams, type ApiKeyRequestRequester, type ApiKeyRequestStatus, ApiKeyRequestsEndpoint, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AsyncExecutionHandle, type AsyncExecutionStatus, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, type CatalogClientToolRef, ChatEndpoint, type CheckGrader, type ClaimApiKeyRequestInput, type ClaimApiKeyRequestResponse, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientToolEntry, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateApiKeyRequestInput, type CreateApiKeyRequestResponse, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DetachedReattach, type DetachedReconnectOptions, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, ExecutionsEndpoint, ExecutionsNamespace, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetApiKeyRequestResponse, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionPublishOptions, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withDetachedReconnect, withUnifiedEvents };
|
package/dist/index.mjs
CHANGED
|
@@ -471,7 +471,8 @@ function createAgentEventTranslator() {
|
|
|
471
471
|
seq,
|
|
472
472
|
agentId,
|
|
473
473
|
success: false,
|
|
474
|
-
|
|
474
|
+
// WHY(#7794): Forward the loop verdict like the execution_complete arm; `error` is the no-verdict answer.
|
|
475
|
+
stopReason: data.stopReason ?? "error",
|
|
475
476
|
error: errorMessage(data.error),
|
|
476
477
|
completedAt: data.completedAt
|
|
477
478
|
})
|
|
@@ -5480,7 +5481,8 @@ function normalizeSurfaceDefinition(definition) {
|
|
|
5480
5481
|
type: definition.type,
|
|
5481
5482
|
behavior,
|
|
5482
5483
|
status: definition.status || "draft",
|
|
5483
|
-
|
|
5484
|
+
// INVARIANT: Mirrors the shared hash's frozen literal for the retired field; keeps existing configHashes stable.
|
|
5485
|
+
environment: "development"
|
|
5484
5486
|
};
|
|
5485
5487
|
}
|
|
5486
5488
|
async function computeSurfaceContentHash(definition) {
|
|
@@ -5492,9 +5494,9 @@ var DEFINE_SURFACE_TOP_LEVEL_KEYS = /* @__PURE__ */ new Set([
|
|
|
5492
5494
|
"behavior",
|
|
5493
5495
|
"inbound",
|
|
5494
5496
|
"outbound",
|
|
5495
|
-
"status"
|
|
5496
|
-
"environment"
|
|
5497
|
+
"status"
|
|
5497
5498
|
]);
|
|
5499
|
+
var DEFINE_SURFACE_RETIRED_KEYS = /* @__PURE__ */ new Set(["environment"]);
|
|
5498
5500
|
var SURFACE_DEFINITION_TYPES = /* @__PURE__ */ new Set([
|
|
5499
5501
|
"chat",
|
|
5500
5502
|
"mcp",
|
|
@@ -5537,13 +5539,12 @@ function defineSurface(input) {
|
|
|
5537
5539
|
if (input.status !== void 0 && !["draft", "active", "paused"].includes(input.status)) {
|
|
5538
5540
|
throw new Error('defineSurface "status" must be one of: draft, active, paused');
|
|
5539
5541
|
}
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
const unknownKeys = Object.keys(input).filter((key) => !DEFINE_SURFACE_TOP_LEVEL_KEYS.has(key));
|
|
5542
|
+
const unknownKeys = Object.keys(input).filter(
|
|
5543
|
+
(key) => !DEFINE_SURFACE_TOP_LEVEL_KEYS.has(key) && !DEFINE_SURFACE_RETIRED_KEYS.has(key)
|
|
5544
|
+
);
|
|
5544
5545
|
if (unknownKeys.length > 0) {
|
|
5545
5546
|
throw new Error(
|
|
5546
|
-
`defineSurface: unknown field(s): ${unknownKeys.join(", ")}. Allowed fields are name, type, behavior, inbound, outbound, status
|
|
5547
|
+
`defineSurface: unknown field(s): ${unknownKeys.join(", ")}. Allowed fields are name, type, behavior, inbound, outbound, status.`
|
|
5547
5548
|
);
|
|
5548
5549
|
}
|
|
5549
5550
|
return {
|
|
@@ -5552,8 +5553,7 @@ function defineSurface(input) {
|
|
|
5552
5553
|
...input.behavior !== void 0 ? { behavior: input.behavior } : {},
|
|
5553
5554
|
...input.inbound !== void 0 ? { inbound: input.inbound } : {},
|
|
5554
5555
|
...input.outbound !== void 0 ? { outbound: input.outbound } : {},
|
|
5555
|
-
...input.status !== void 0 ? { status: input.status } : {}
|
|
5556
|
-
...input.environment !== void 0 ? { environment: input.environment } : {}
|
|
5556
|
+
...input.status !== void 0 ? { status: input.status } : {}
|
|
5557
5557
|
};
|
|
5558
5558
|
}
|
|
5559
5559
|
var SurfaceEnsureConflictError = class extends Error {
|
|
@@ -6292,7 +6292,7 @@ var Runtype = class {
|
|
|
6292
6292
|
|
|
6293
6293
|
// src/version.ts
|
|
6294
6294
|
var FALLBACK_VERSION = "0.0.0";
|
|
6295
|
-
var SDK_VERSION = "9.
|
|
6295
|
+
var SDK_VERSION = "9.4.0".length > 0 ? "9.4.0" : FALLBACK_VERSION;
|
|
6296
6296
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6297
6297
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6298
6298
|
|
|
@@ -8871,7 +8871,10 @@ var ApiKeysEndpoint = class {
|
|
|
8871
8871
|
this.requests = new ApiKeyRequestsEndpoint(client);
|
|
8872
8872
|
}
|
|
8873
8873
|
/**
|
|
8874
|
-
* List
|
|
8874
|
+
* List the API keys visible to the caller. An organization admin on a Clerk
|
|
8875
|
+
* session receives every key in the organization (each carrying `ownerUserId`,
|
|
8876
|
+
* `ownerName` and `isOwn`); other members, and every API-key caller, receive
|
|
8877
|
+
* only the keys they created. Keys with `isOwn: false` are read-only.
|
|
8875
8878
|
*/
|
|
8876
8879
|
async list() {
|
|
8877
8880
|
const response = await this.client.get(
|
|
@@ -12931,9 +12934,10 @@ var AgentVersionsEndpoint = class {
|
|
|
12931
12934
|
/**
|
|
12932
12935
|
* Publish a version (promote it to the agent's published version).
|
|
12933
12936
|
*/
|
|
12934
|
-
async publish(agentId, versionId) {
|
|
12937
|
+
async publish(agentId, versionId, options = {}) {
|
|
12935
12938
|
return this.client.post(`/agent-versions/${agentId}/publish`, {
|
|
12936
|
-
versionId
|
|
12939
|
+
versionId,
|
|
12940
|
+
...options
|
|
12937
12941
|
});
|
|
12938
12942
|
}
|
|
12939
12943
|
};
|
|
@@ -12962,9 +12966,10 @@ var FlowVersionsEndpoint = class {
|
|
|
12962
12966
|
/**
|
|
12963
12967
|
* Publish a version (promote it to the flow's published version).
|
|
12964
12968
|
*/
|
|
12965
|
-
async publish(flowId, versionId) {
|
|
12969
|
+
async publish(flowId, versionId, options = {}) {
|
|
12966
12970
|
return this.client.post(`/flow-versions/${flowId}/publish`, {
|
|
12967
|
-
versionId
|
|
12971
|
+
versionId,
|
|
12972
|
+
...options
|
|
12968
12973
|
});
|
|
12969
12974
|
}
|
|
12970
12975
|
};
|
package/package.json
CHANGED