@runtypelabs/sdk 10.2.2 → 10.3.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/dist/index.d.cts CHANGED
@@ -809,6 +809,8 @@ interface paths {
809
809
  url: string;
810
810
  }[];
811
811
  model?: string;
812
+ /** @description Scheduled and batch runs only. When true, files the agent writes to /mnt/session/outputs/ are stored as runtype-asset:// handles and the session is resumed for one delivery turn that lists them (for example, to attach them with send_email). */
813
+ outputHandoff?: boolean;
812
814
  /** @enum {string} */
813
815
  setupMode: "create" | "connect";
814
816
  systemPrompt?: string;
@@ -918,6 +920,8 @@ interface paths {
918
920
  thinkingLevel?: string;
919
921
  };
920
922
  sandbox?: {
923
+ /** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
924
+ codingAgents?: "opencode"[];
921
925
  enabled: boolean;
922
926
  /**
923
927
  * @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
@@ -1033,6 +1037,7 @@ interface paths {
1033
1037
  [key: string]: unknown;
1034
1038
  };
1035
1039
  description: string;
1040
+ hiddenParameterNames?: string[];
1036
1041
  idempotent?: boolean;
1037
1042
  name: string;
1038
1043
  parametersSchema: {
@@ -1432,6 +1437,8 @@ interface paths {
1432
1437
  thinkingLevel?: string;
1433
1438
  };
1434
1439
  sandbox?: {
1440
+ /** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
1441
+ codingAgents?: "opencode"[];
1435
1442
  enabled: boolean;
1436
1443
  /**
1437
1444
  * @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
@@ -1547,6 +1554,7 @@ interface paths {
1547
1554
  [key: string]: unknown;
1548
1555
  };
1549
1556
  description: string;
1557
+ hiddenParameterNames?: string[];
1550
1558
  idempotent?: boolean;
1551
1559
  name: string;
1552
1560
  parametersSchema: {
@@ -2111,6 +2119,8 @@ interface paths {
2111
2119
  url: string;
2112
2120
  }[];
2113
2121
  model?: string;
2122
+ /** @description Scheduled and batch runs only. When true, files the agent writes to /mnt/session/outputs/ are stored as runtype-asset:// handles and the session is resumed for one delivery turn that lists them (for example, to attach them with send_email). */
2123
+ outputHandoff?: boolean;
2114
2124
  /** @enum {string} */
2115
2125
  setupMode?: "create" | "connect";
2116
2126
  systemPrompt?: string;
@@ -2220,6 +2230,8 @@ interface paths {
2220
2230
  thinkingLevel?: string;
2221
2231
  };
2222
2232
  sandbox?: {
2233
+ /** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
2234
+ codingAgents?: "opencode"[];
2223
2235
  enabled: boolean;
2224
2236
  /**
2225
2237
  * @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
@@ -2335,6 +2347,7 @@ interface paths {
2335
2347
  [key: string]: unknown;
2336
2348
  };
2337
2349
  description: string;
2350
+ hiddenParameterNames?: string[];
2338
2351
  idempotent?: boolean;
2339
2352
  name: string;
2340
2353
  parametersSchema: {
@@ -4344,7 +4357,8 @@ interface paths {
4344
4357
  };
4345
4358
  /**
4346
4359
  * List agent executions
4347
- * @description List execution history for an agent with cursor pagination. Rows include `finalOutput` by default; pass `view=compact` for the lighter projection that omits it and previews long strings. Supports cross-agent subagent drill-down via parentExecutionId or executionId filters.
4360
+ * @deprecated
4361
+ * @description Deprecated: use `GET /v1/runs?agentId={id}`, the single run list for every agent and flow run, including runs dispatched with `storeResults: false` that write no row here. This endpoint stays available and unchanged. It reads the control-plane `agent_executions` table only. List execution history for an agent with cursor pagination. Rows include `finalOutput` by default; pass `view=compact` for the lighter projection that omits it and previews long strings. Supports cross-agent subagent drill-down via parentExecutionId or executionId filters.
4348
4362
  */
4349
4363
  get: {
4350
4364
  parameters: {
@@ -4780,7 +4794,7 @@ interface paths {
4780
4794
  };
4781
4795
  /**
4782
4796
  * Stream execution events
4783
- * @description Reconnect to a durable agent turn: replay-and-tail its Server-Sent Events. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. The session owner is resolved from the execution's own persisted record — its conversation for a top-level turn, its private child thread for a subagent run — and the optional `conversationId` is used only for a turn that persists no record of its own. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary.
4797
+ * @description Reconnect to a durable agent turn: replay-and-tail its Server-Sent Events. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. The session owner is resolved from the execution's own persisted record — its conversation for a top-level turn, its private child thread for a subagent run — and the optional `conversationId` is used only for a turn that persists no record of its own. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. A Runtype session turn's response carries `X-Runtype-Execution-Driver`, the driver holding the turn when the stream attached: `request-worker` or `workflow-leg` while that driver holds it, otherwise `owner`.
4784
4798
  */
4785
4799
  get: {
4786
4800
  parameters: {
@@ -9678,14 +9692,22 @@ interface paths {
9678
9692
  "application/json": {
9679
9693
  durableRecovery?: boolean;
9680
9694
  flowId?: string;
9681
- identityProof?: string;
9695
+ /** @description Customer-native auth proof for the Identity Exchange, as a bare token string or the `{ provider, token }` object `/v1/client/chat` accepts. The integration is selected by the verified issuer, not by `provider`: in the object form `provider` is a consistency hint (a hint that disagrees with the matched integration is rejected), and the bare string carries no hint. A Runtype-hosted `rt_eu_` token is sent as the bare string. */
9696
+ identityProof?: string | {
9697
+ provider: string;
9698
+ token: string;
9699
+ };
9682
9700
  token: string;
9683
9701
  visitorHistory?: boolean;
9684
9702
  visitorToken?: string;
9685
9703
  } | {
9686
9704
  durableRecovery?: boolean;
9687
9705
  flowId?: string;
9688
- identityProof?: string;
9706
+ /** @description Customer-native auth proof for the Identity Exchange, as a bare token string or the `{ provider, token }` object `/v1/client/chat` accepts. The integration is selected by the verified issuer, not by `provider`: in the object form `provider` is a consistency hint (a hint that disagrees with the matched integration is rejected), and the bare string carries no hint. A Runtype-hosted `rt_eu_` token is sent as the bare string. */
9707
+ identityProof?: string | {
9708
+ provider: string;
9709
+ token: string;
9710
+ };
9689
9711
  sessionId: string;
9690
9712
  token: string;
9691
9713
  visitorHistory?: boolean;
@@ -9694,7 +9716,11 @@ interface paths {
9694
9716
  conversationId: string;
9695
9717
  durableRecovery?: boolean;
9696
9718
  flowId?: string;
9697
- identityProof?: string;
9719
+ /** @description Customer-native auth proof for the Identity Exchange, as a bare token string or the `{ provider, token }` object `/v1/client/chat` accepts. The integration is selected by the verified issuer, not by `provider`: in the object form `provider` is a consistency hint (a hint that disagrees with the matched integration is rejected), and the bare string carries no hint. A Runtype-hosted `rt_eu_` token is sent as the bare string. */
9720
+ identityProof?: string | {
9721
+ provider: string;
9722
+ token: string;
9723
+ };
9698
9724
  token: string;
9699
9725
  visitorHistory?: boolean;
9700
9726
  visitorToken: string;
@@ -9702,7 +9728,11 @@ interface paths {
9702
9728
  conversationId: string;
9703
9729
  durableRecovery?: boolean;
9704
9730
  flowId?: string;
9705
- identityProof: string;
9731
+ /** @description Customer-native auth proof for the Identity Exchange, as a bare token string or the `{ provider, token }` object `/v1/client/chat` accepts. The integration is selected by the verified issuer, not by `provider`: in the object form `provider` is a consistency hint (a hint that disagrees with the matched integration is rejected), and the bare string carries no hint. A Runtype-hosted `rt_eu_` token is sent as the bare string. */
9732
+ identityProof: string | {
9733
+ provider: string;
9734
+ token: string;
9735
+ };
9706
9736
  token: string;
9707
9737
  visitorHistory?: boolean;
9708
9738
  visitorToken?: string;
@@ -12971,6 +13001,8 @@ interface paths {
12971
13001
  thinkingLevel?: string;
12972
13002
  };
12973
13003
  sandbox?: {
13004
+ /** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
13005
+ codingAgents?: "opencode"[];
12974
13006
  enabled: boolean;
12975
13007
  /**
12976
13008
  * @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
@@ -13419,6 +13451,8 @@ interface paths {
13419
13451
  thinkingLevel?: string;
13420
13452
  };
13421
13453
  sandbox?: {
13454
+ /** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
13455
+ codingAgents?: "opencode"[];
13422
13456
  enabled: boolean;
13423
13457
  /**
13424
13458
  * @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
@@ -18137,7 +18171,7 @@ interface paths {
18137
18171
  };
18138
18172
  /**
18139
18173
  * Stream execution events
18140
- * @description Execution-scoped alias of `GET /v1/agents/{id}/executions/{executionId}/events`: reconnect to a durable turn and replay-and-tail its Server-Sent Events without already knowing which agent ran it. The agent is resolved from the execution's own persisted record, so a run started through `/v1/dispatch` reconnects by execution id alone; a record with no agent (an inline definition, which addresses no durable session) answers 404. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. An API key needs `AGENTS:READ`, `AGENTS:*`, `DISPATCH:*`, or `*`; `DISPATCH:*` is admitted because this alias exists for dispatch-started runs.
18174
+ * @description Execution-scoped alias of `GET /v1/agents/{id}/executions/{executionId}/events`: reconnect to a durable turn and replay-and-tail its Server-Sent Events without already knowing which agent ran it. The agent is resolved from the execution's own persisted record, so a run started through `/v1/dispatch` reconnects by execution id alone; a record with no agent (an inline definition, which addresses no durable session) answers 404. A turn that streams over an expired watch lease ends with `await` / `awaitReason: "detached"` while the execution keeps running; pass the last seen SSE `id:` as `after` to rejoin it. Replays buffered events strictly past the `after` cursor, then live-tails if the turn is still running. Each event carries an SSE `id:` line — a durable row seq, or (unified vocabulary) a composite `<seq>.<subIndex>` when one durable row translates to multiple events. Pass that id verbatim after any disconnect (tab reload, sleep, stream timeout) to resume without missing or duplicating events. Replayed and live-tailed frames use the unified execution vocabulary. A Runtype session turn's response carries `X-Runtype-Execution-Driver`, the driver holding the turn when the stream attached: `request-worker` or `workflow-leg` while that driver holds it, otherwise `owner`. An API key needs `AGENTS:READ`, `AGENTS:*`, `DISPATCH:*`, or `*`; `DISPATCH:*` is admitted because this alias exists for dispatch-started runs.
18141
18175
  */
18142
18176
  get: {
18143
18177
  parameters: {
@@ -25184,8 +25218,12 @@ interface paths {
25184
25218
  surfaceId?: string;
25185
25219
  /** @description Filter by conversation ID */
25186
25220
  conversationId?: string;
25187
- /** @description Full-text search in message */
25221
+ /** @description Case-insensitive substring search over a span's message, name, operation, tool name or error class; a live-tier row matches on its message. */
25188
25222
  search?: string;
25223
+ /** @description Comma-separated statuses (running,completed,failed,queued,cancelled,unknown). An unknown value is rejected with 400. A row is unknown while its activity has not finished, else failed at level error and completed otherwise; running, queued and cancelled match no row today. */
25224
+ status?: string;
25225
+ /** @description Comma-separated entry types (flow,step,tool,batch,system,agent,model,schedule,audit). An unknown value is rejected with 400. Matches the type each row is rendered with, so step selects step spans only and flow selects flow runs without their steps. Combined with category by AND. */
25226
+ type?: string;
25189
25227
  /** @description Max results per page (default 500, max 1000) */
25190
25228
  limit?: string;
25191
25229
  /** @description Pagination cursor */
@@ -25413,8 +25451,12 @@ interface paths {
25413
25451
  surfaceId?: string;
25414
25452
  /** @description Filter by conversation ID */
25415
25453
  conversationId?: string;
25416
- /** @description Full-text search in message */
25454
+ /** @description Case-insensitive substring search over a span's message, name, operation, tool name or error class; a live-tier row matches on its message. */
25417
25455
  search?: string;
25456
+ /** @description Comma-separated statuses (running,completed,failed,queued,cancelled,unknown). An unknown value is rejected with 400. A row is unknown while its activity has not finished, else failed at level error and completed otherwise; running, queued and cancelled match no row today. */
25457
+ status?: string;
25458
+ /** @description Comma-separated entry types (flow,step,tool,batch,system,agent,model,schedule,audit). An unknown value is rejected with 400. Matches the type each row is rendered with, so step selects step spans only and flow selects flow runs without their steps. Combined with category by AND. */
25459
+ type?: string;
25418
25460
  /** @description Max results per page (default 500, max 1000) */
25419
25461
  limit?: string;
25420
25462
  /** @description Pagination cursor */
@@ -30771,6 +30813,10 @@ interface paths {
30771
30813
  batchExecutionId: string | null;
30772
30814
  /** @description Budget exhausted. Absent means the overlay did not answer, which is not false and not null. */
30773
30815
  budgetExhausted?: boolean | null;
30816
+ /** @description Prompt-cache reads summed over the run's model calls (a subset of inputTokens). Returned by GET /v1/runs/{executionId} only; null means no model call reported one. */
30817
+ cacheReadTokens?: number | null;
30818
+ /** @description Prompt-cache writes summed over the run's model calls (a subset of inputTokens). Returned by GET /v1/runs/{executionId} only; null means no model call reported one. */
30819
+ cacheWriteTokens?: number | null;
30774
30820
  /** @description Cancel request. Absent means the overlay did not answer, which is not false and not null. */
30775
30821
  cancelRequestedAt?: string | null;
30776
30822
  /** @description How many runs name this one as their parent. The unscoped feed returns roots only, so this is the size of the fold underneath a row; read the children with parentExecutionId=<executionId>. It is populated on a resource-scoped page too, where nothing is folded, so a surface can still offer the same expansion. WHICH children are counted depends on the arm that served the row: the span store counts every child, agent and nested-flow alike, while the legacy control-plane fallback counts agent children only, so on that arm a parent whose only child is a nested flow reports 0. That is deliberate — the fallback arm cannot enumerate a nested-flow child either, so counting one would advertise a fold that opens on nothing. It counts only children the CALLER may read: a credential holding one execution family (AGENTS:READ or FLOWS:READ alone) counts the children of that family and no others, so a count never discloses a run the same credential could not list. NULL means the arm cannot count children at all, which is not zero. */
@@ -30828,6 +30874,8 @@ interface paths {
30828
30874
  pendingApproval?: unknown;
30829
30875
  /** @description Live progress document. Absent means the overlay did not answer, which is not false and not null. */
30830
30876
  progress?: unknown;
30877
+ /** @description Reasoning tokens summed over the run's model calls (a subset of outputTokens). Returned by GET /v1/runs/{executionId} only; null means no model call reported one. */
30878
+ reasoningTokens?: number | null;
30831
30879
  /** @description Record this run processed. */
30832
30880
  recordId: string | null;
30833
30881
  /** @description Retention removed the spans; the run still lists and reads as completed. */
@@ -31835,6 +31883,7 @@ interface paths {
31835
31883
  "application/json": {
31836
31884
  behavior?: unknown;
31837
31885
  config?: unknown;
31886
+ /** @description Inbound config. Slack, Telegram and iMessage accept channelResponseMode (mention, the default; always; or judge, which asks the platform response-gate judgment whether to reply and waits for a mention when the judgment fails), responseRules (free text up to 2000 characters the judgment reads), eagerness (conservative, balanced or eager), onUncertain (silent or reply), responseGateShadow (opt-in: judge and record without changing behavior in mention or always mode), keywords, channelOverrides (per-channel channelResponseMode and eagerness) and contextBackfill ({ mode: window (default), judged (only the messages the judgment finds relevant, falling back to window on failure) or none, maxMessages up to 20, maxAgeMinutes up to 1440 }). */
31838
31887
  inbound?: {
31839
31888
  [key: string]: unknown;
31840
31889
  };
@@ -32304,6 +32353,7 @@ interface paths {
32304
32353
  "application/json": {
32305
32354
  behavior?: unknown;
32306
32355
  config?: unknown;
32356
+ /** @description Inbound config. Slack, Telegram and iMessage accept channelResponseMode (mention, the default; always; or judge, which asks the platform response-gate judgment whether to reply and waits for a mention when the judgment fails), responseRules (free text up to 2000 characters the judgment reads), eagerness (conservative, balanced or eager), onUncertain (silent or reply), responseGateShadow (opt-in: judge and record without changing behavior in mention or always mode), keywords, channelOverrides (per-channel channelResponseMode and eagerness) and contextBackfill ({ mode: window (default), judged (only the messages the judgment finds relevant, falling back to window on failure) or none, maxMessages up to 20, maxAgeMinutes up to 1440 }). */
32307
32357
  inbound?: {
32308
32358
  [key: string]: unknown;
32309
32359
  };
@@ -38167,6 +38217,764 @@ interface paths {
38167
38217
  patch?: never;
38168
38218
  trace?: never;
38169
38219
  };
38220
+ "/v1/question-sets": {
38221
+ parameters: {
38222
+ query?: never;
38223
+ header?: never;
38224
+ path?: never;
38225
+ cookie?: never;
38226
+ };
38227
+ /**
38228
+ * List question sets
38229
+ * @description List the organization's question sets with cursor pagination, newest first.
38230
+ */
38231
+ get: {
38232
+ parameters: {
38233
+ query?: {
38234
+ limit?: string;
38235
+ cursor?: string;
38236
+ direction?: "next" | "prev";
38237
+ includeCount?: string;
38238
+ };
38239
+ header?: never;
38240
+ path?: never;
38241
+ cookie?: never;
38242
+ };
38243
+ requestBody?: never;
38244
+ responses: {
38245
+ /** @description Paginated question sets */
38246
+ 200: {
38247
+ headers: {
38248
+ [name: string]: unknown;
38249
+ };
38250
+ content: {
38251
+ "application/json": {
38252
+ data: components["schemas"]["QuestionSetListItem"][];
38253
+ pagination: components["schemas"]["Pagination"];
38254
+ };
38255
+ };
38256
+ };
38257
+ /** @description Invalid request */
38258
+ 400: {
38259
+ headers: {
38260
+ [name: string]: unknown;
38261
+ };
38262
+ content: {
38263
+ "application/json": components["schemas"]["QuestionSetError"];
38264
+ };
38265
+ };
38266
+ /** @description Unauthorized */
38267
+ 401: {
38268
+ headers: {
38269
+ [name: string]: unknown;
38270
+ };
38271
+ content: {
38272
+ "application/json": components["schemas"]["Error"];
38273
+ };
38274
+ };
38275
+ /** @description Insufficient permissions, or no organization context */
38276
+ 403: {
38277
+ headers: {
38278
+ [name: string]: unknown;
38279
+ };
38280
+ content: {
38281
+ "application/json": components["schemas"]["Error"];
38282
+ };
38283
+ };
38284
+ /** @description Not found */
38285
+ 404: {
38286
+ headers: {
38287
+ [name: string]: unknown;
38288
+ };
38289
+ content: {
38290
+ "application/json": components["schemas"]["QuestionSetError"];
38291
+ };
38292
+ };
38293
+ };
38294
+ };
38295
+ put?: never;
38296
+ /**
38297
+ * Create a question set
38298
+ * @description Create a question set with its first version as a draft. Publish the version before a tool, step or grader can reference it.
38299
+ */
38300
+ post: {
38301
+ parameters: {
38302
+ query?: never;
38303
+ header?: never;
38304
+ path?: never;
38305
+ cookie?: never;
38306
+ };
38307
+ requestBody?: {
38308
+ content: {
38309
+ "application/json": {
38310
+ description?: string | null;
38311
+ inputMapping?: {
38312
+ [key: string]: string;
38313
+ } | null;
38314
+ model?: string | null;
38315
+ name: string;
38316
+ /** @description Judgment questions keyed by question id. Each is `{ type: "boolean" | "choice" | "score", instructions, criteria }`. The id is never sent to the model, so instructions and criteria carry the meaning. */
38317
+ questions: {
38318
+ [key: string]: unknown;
38319
+ };
38320
+ /** @description Stable handle, unique in the organization: lowercase letters, digits, `-` and `_`, up to 64. */
38321
+ slug: string;
38322
+ };
38323
+ };
38324
+ };
38325
+ responses: {
38326
+ /** @description Created */
38327
+ 201: {
38328
+ headers: {
38329
+ [name: string]: unknown;
38330
+ };
38331
+ content: {
38332
+ "application/json": {
38333
+ questionSet: components["schemas"]["QuestionSet"];
38334
+ version: components["schemas"]["QuestionSetVersion"];
38335
+ };
38336
+ };
38337
+ };
38338
+ /** @description Invalid request */
38339
+ 400: {
38340
+ headers: {
38341
+ [name: string]: unknown;
38342
+ };
38343
+ content: {
38344
+ "application/json": components["schemas"]["QuestionSetError"];
38345
+ };
38346
+ };
38347
+ /** @description Unauthorized */
38348
+ 401: {
38349
+ headers: {
38350
+ [name: string]: unknown;
38351
+ };
38352
+ content: {
38353
+ "application/json": components["schemas"]["Error"];
38354
+ };
38355
+ };
38356
+ /** @description Insufficient permissions, or no organization context */
38357
+ 403: {
38358
+ headers: {
38359
+ [name: string]: unknown;
38360
+ };
38361
+ content: {
38362
+ "application/json": components["schemas"]["Error"];
38363
+ };
38364
+ };
38365
+ /** @description Not found */
38366
+ 404: {
38367
+ headers: {
38368
+ [name: string]: unknown;
38369
+ };
38370
+ content: {
38371
+ "application/json": components["schemas"]["QuestionSetError"];
38372
+ };
38373
+ };
38374
+ /** @description Conflict */
38375
+ 409: {
38376
+ headers: {
38377
+ [name: string]: unknown;
38378
+ };
38379
+ content: {
38380
+ "application/json": components["schemas"]["QuestionSetError"];
38381
+ };
38382
+ };
38383
+ };
38384
+ };
38385
+ delete?: never;
38386
+ options?: never;
38387
+ head?: never;
38388
+ patch?: never;
38389
+ trace?: never;
38390
+ };
38391
+ "/v1/question-sets/{id}": {
38392
+ parameters: {
38393
+ query?: never;
38394
+ header?: never;
38395
+ path?: never;
38396
+ cookie?: never;
38397
+ };
38398
+ /**
38399
+ * Get a question set
38400
+ * @description A question set with its versions, newest first.
38401
+ */
38402
+ get: {
38403
+ parameters: {
38404
+ query?: never;
38405
+ header?: never;
38406
+ path: {
38407
+ id: string;
38408
+ };
38409
+ cookie?: never;
38410
+ };
38411
+ requestBody?: never;
38412
+ responses: {
38413
+ /** @description Question set */
38414
+ 200: {
38415
+ headers: {
38416
+ [name: string]: unknown;
38417
+ };
38418
+ content: {
38419
+ "application/json": {
38420
+ questionSet: components["schemas"]["QuestionSet"];
38421
+ versions: components["schemas"]["QuestionSetVersion"][];
38422
+ };
38423
+ };
38424
+ };
38425
+ /** @description Invalid request */
38426
+ 400: {
38427
+ headers: {
38428
+ [name: string]: unknown;
38429
+ };
38430
+ content: {
38431
+ "application/json": components["schemas"]["QuestionSetError"];
38432
+ };
38433
+ };
38434
+ /** @description Unauthorized */
38435
+ 401: {
38436
+ headers: {
38437
+ [name: string]: unknown;
38438
+ };
38439
+ content: {
38440
+ "application/json": components["schemas"]["Error"];
38441
+ };
38442
+ };
38443
+ /** @description Insufficient permissions, or no organization context */
38444
+ 403: {
38445
+ headers: {
38446
+ [name: string]: unknown;
38447
+ };
38448
+ content: {
38449
+ "application/json": components["schemas"]["Error"];
38450
+ };
38451
+ };
38452
+ /** @description Not found */
38453
+ 404: {
38454
+ headers: {
38455
+ [name: string]: unknown;
38456
+ };
38457
+ content: {
38458
+ "application/json": components["schemas"]["QuestionSetError"];
38459
+ };
38460
+ };
38461
+ };
38462
+ };
38463
+ /**
38464
+ * Update a question set
38465
+ * @description Update the name or description, and append a new draft version when `questions`, `inputMapping` or `model` is present. Fields left out of a new version carry over from the latest version. No existing version is changed, and the slug is fixed.
38466
+ */
38467
+ put: {
38468
+ parameters: {
38469
+ query?: never;
38470
+ header?: never;
38471
+ path: {
38472
+ id: string;
38473
+ };
38474
+ cookie?: never;
38475
+ };
38476
+ requestBody?: {
38477
+ content: {
38478
+ "application/json": {
38479
+ description?: string | null;
38480
+ inputMapping?: {
38481
+ [key: string]: string;
38482
+ } | null;
38483
+ model?: string | null;
38484
+ name?: string;
38485
+ /** @description Judgment questions keyed by question id. Each is `{ type: "boolean" | "choice" | "score", instructions, criteria }`. The id is never sent to the model, so instructions and criteria carry the meaning. */
38486
+ questions?: {
38487
+ [key: string]: unknown;
38488
+ };
38489
+ };
38490
+ };
38491
+ };
38492
+ responses: {
38493
+ /** @description Updated */
38494
+ 200: {
38495
+ headers: {
38496
+ [name: string]: unknown;
38497
+ };
38498
+ content: {
38499
+ "application/json": {
38500
+ questionSet: components["schemas"]["QuestionSet"];
38501
+ version: components["schemas"]["QuestionSetVersion"] & (Record<string, never> | null);
38502
+ };
38503
+ };
38504
+ };
38505
+ /** @description Invalid request */
38506
+ 400: {
38507
+ headers: {
38508
+ [name: string]: unknown;
38509
+ };
38510
+ content: {
38511
+ "application/json": components["schemas"]["QuestionSetError"];
38512
+ };
38513
+ };
38514
+ /** @description Unauthorized */
38515
+ 401: {
38516
+ headers: {
38517
+ [name: string]: unknown;
38518
+ };
38519
+ content: {
38520
+ "application/json": components["schemas"]["Error"];
38521
+ };
38522
+ };
38523
+ /** @description Insufficient permissions, or no organization context */
38524
+ 403: {
38525
+ headers: {
38526
+ [name: string]: unknown;
38527
+ };
38528
+ content: {
38529
+ "application/json": components["schemas"]["Error"];
38530
+ };
38531
+ };
38532
+ /** @description Not found */
38533
+ 404: {
38534
+ headers: {
38535
+ [name: string]: unknown;
38536
+ };
38537
+ content: {
38538
+ "application/json": components["schemas"]["QuestionSetError"];
38539
+ };
38540
+ };
38541
+ /** @description Conflict */
38542
+ 409: {
38543
+ headers: {
38544
+ [name: string]: unknown;
38545
+ };
38546
+ content: {
38547
+ "application/json": components["schemas"]["QuestionSetError"];
38548
+ };
38549
+ };
38550
+ };
38551
+ };
38552
+ post?: never;
38553
+ delete?: never;
38554
+ options?: never;
38555
+ head?: never;
38556
+ patch?: never;
38557
+ trace?: never;
38558
+ };
38559
+ "/v1/question-sets/{id}/resolved": {
38560
+ parameters: {
38561
+ query?: never;
38562
+ header?: never;
38563
+ path?: never;
38564
+ cookie?: never;
38565
+ };
38566
+ /**
38567
+ * Resolve a question set
38568
+ * @description The question set exactly as an execution receives it: the current published version (or the published `version` named), with its current calibration. A draft-only set answers 404 QUESTION_SET_UNRESOLVED.
38569
+ */
38570
+ get: {
38571
+ parameters: {
38572
+ query?: {
38573
+ version?: number;
38574
+ };
38575
+ header?: never;
38576
+ path: {
38577
+ id: string;
38578
+ };
38579
+ cookie?: never;
38580
+ };
38581
+ requestBody?: never;
38582
+ responses: {
38583
+ /** @description Resolved */
38584
+ 200: {
38585
+ headers: {
38586
+ [name: string]: unknown;
38587
+ };
38588
+ content: {
38589
+ "application/json": components["schemas"]["ResolvedQuestionSet"];
38590
+ };
38591
+ };
38592
+ /** @description Invalid request */
38593
+ 400: {
38594
+ headers: {
38595
+ [name: string]: unknown;
38596
+ };
38597
+ content: {
38598
+ "application/json": components["schemas"]["QuestionSetError"];
38599
+ };
38600
+ };
38601
+ /** @description Unauthorized */
38602
+ 401: {
38603
+ headers: {
38604
+ [name: string]: unknown;
38605
+ };
38606
+ content: {
38607
+ "application/json": components["schemas"]["Error"];
38608
+ };
38609
+ };
38610
+ /** @description Insufficient permissions, or no organization context */
38611
+ 403: {
38612
+ headers: {
38613
+ [name: string]: unknown;
38614
+ };
38615
+ content: {
38616
+ "application/json": components["schemas"]["Error"];
38617
+ };
38618
+ };
38619
+ /** @description Not found */
38620
+ 404: {
38621
+ headers: {
38622
+ [name: string]: unknown;
38623
+ };
38624
+ content: {
38625
+ "application/json": components["schemas"]["QuestionSetError"];
38626
+ };
38627
+ };
38628
+ };
38629
+ };
38630
+ put?: never;
38631
+ post?: never;
38632
+ delete?: never;
38633
+ options?: never;
38634
+ head?: never;
38635
+ patch?: never;
38636
+ trace?: never;
38637
+ };
38638
+ "/v1/question-sets/{id}/versions": {
38639
+ parameters: {
38640
+ query?: never;
38641
+ header?: never;
38642
+ path?: never;
38643
+ cookie?: never;
38644
+ };
38645
+ /**
38646
+ * List a question set's versions
38647
+ * @description Every version, newest first.
38648
+ */
38649
+ get: {
38650
+ parameters: {
38651
+ query?: never;
38652
+ header?: never;
38653
+ path: {
38654
+ id: string;
38655
+ };
38656
+ cookie?: never;
38657
+ };
38658
+ requestBody?: never;
38659
+ responses: {
38660
+ /** @description Versions */
38661
+ 200: {
38662
+ headers: {
38663
+ [name: string]: unknown;
38664
+ };
38665
+ content: {
38666
+ "application/json": {
38667
+ data: components["schemas"]["QuestionSetVersion"][];
38668
+ };
38669
+ };
38670
+ };
38671
+ /** @description Invalid request */
38672
+ 400: {
38673
+ headers: {
38674
+ [name: string]: unknown;
38675
+ };
38676
+ content: {
38677
+ "application/json": components["schemas"]["QuestionSetError"];
38678
+ };
38679
+ };
38680
+ /** @description Unauthorized */
38681
+ 401: {
38682
+ headers: {
38683
+ [name: string]: unknown;
38684
+ };
38685
+ content: {
38686
+ "application/json": components["schemas"]["Error"];
38687
+ };
38688
+ };
38689
+ /** @description Insufficient permissions, or no organization context */
38690
+ 403: {
38691
+ headers: {
38692
+ [name: string]: unknown;
38693
+ };
38694
+ content: {
38695
+ "application/json": components["schemas"]["Error"];
38696
+ };
38697
+ };
38698
+ /** @description Not found */
38699
+ 404: {
38700
+ headers: {
38701
+ [name: string]: unknown;
38702
+ };
38703
+ content: {
38704
+ "application/json": components["schemas"]["QuestionSetError"];
38705
+ };
38706
+ };
38707
+ };
38708
+ };
38709
+ put?: never;
38710
+ post?: never;
38711
+ delete?: never;
38712
+ options?: never;
38713
+ head?: never;
38714
+ patch?: never;
38715
+ trace?: never;
38716
+ };
38717
+ "/v1/question-sets/{id}/versions/{versionNumber}/calibrations": {
38718
+ parameters: {
38719
+ query?: never;
38720
+ header?: never;
38721
+ path?: never;
38722
+ cookie?: never;
38723
+ };
38724
+ /**
38725
+ * List a question set version's calibrations
38726
+ * @description The calibration history of one version, newest first, with cursor pagination.
38727
+ */
38728
+ get: {
38729
+ parameters: {
38730
+ query?: {
38731
+ /** @description 1-200, default 50. */
38732
+ limit?: string;
38733
+ /** @description `pagination.nextCursor` from a previous page. */
38734
+ cursor?: string;
38735
+ };
38736
+ header?: never;
38737
+ path: {
38738
+ id: string;
38739
+ versionNumber: number;
38740
+ };
38741
+ cookie?: never;
38742
+ };
38743
+ requestBody?: never;
38744
+ responses: {
38745
+ /** @description Calibrations */
38746
+ 200: {
38747
+ headers: {
38748
+ [name: string]: unknown;
38749
+ };
38750
+ content: {
38751
+ "application/json": {
38752
+ data: components["schemas"]["JudgmentCalibrationRecord"][];
38753
+ pagination: components["schemas"]["Pagination"];
38754
+ };
38755
+ };
38756
+ };
38757
+ /** @description Invalid request */
38758
+ 400: {
38759
+ headers: {
38760
+ [name: string]: unknown;
38761
+ };
38762
+ content: {
38763
+ "application/json": components["schemas"]["QuestionSetError"];
38764
+ };
38765
+ };
38766
+ /** @description Unauthorized */
38767
+ 401: {
38768
+ headers: {
38769
+ [name: string]: unknown;
38770
+ };
38771
+ content: {
38772
+ "application/json": components["schemas"]["Error"];
38773
+ };
38774
+ };
38775
+ /** @description Insufficient permissions, or no organization context */
38776
+ 403: {
38777
+ headers: {
38778
+ [name: string]: unknown;
38779
+ };
38780
+ content: {
38781
+ "application/json": components["schemas"]["Error"];
38782
+ };
38783
+ };
38784
+ /** @description Not found */
38785
+ 404: {
38786
+ headers: {
38787
+ [name: string]: unknown;
38788
+ };
38789
+ content: {
38790
+ "application/json": components["schemas"]["QuestionSetError"];
38791
+ };
38792
+ };
38793
+ };
38794
+ };
38795
+ put?: never;
38796
+ /**
38797
+ * Record a calibration for a question set version
38798
+ * @description Append a calibration measurement to a published version and make it the current one. Calibrations are never edited or deleted, so every past decision keeps the calibration it was taken under.
38799
+ */
38800
+ post: {
38801
+ parameters: {
38802
+ query?: never;
38803
+ header?: never;
38804
+ path: {
38805
+ id: string;
38806
+ versionNumber: number;
38807
+ };
38808
+ cookie?: never;
38809
+ };
38810
+ requestBody?: {
38811
+ content: {
38812
+ "application/json": {
38813
+ /** @description The eval run that measured this calibration. It must resolve in this account; the row is then recorded as `eval_suite`. Without it the row is `customer`. */
38814
+ evalRunId?: string;
38815
+ record: {
38816
+ labeledSetRef: string;
38817
+ measuredModel: string;
38818
+ perQuestion: {
38819
+ [key: string]: {
38820
+ ece: number;
38821
+ handledRate: number;
38822
+ heldOutAccuracy: number;
38823
+ targetAccuracy: number;
38824
+ threshold: number;
38825
+ };
38826
+ };
38827
+ };
38828
+ };
38829
+ };
38830
+ };
38831
+ responses: {
38832
+ /** @description Recorded */
38833
+ 201: {
38834
+ headers: {
38835
+ [name: string]: unknown;
38836
+ };
38837
+ content: {
38838
+ "application/json": {
38839
+ calibration: components["schemas"]["JudgmentCalibrationRecord"];
38840
+ version: components["schemas"]["QuestionSetVersion"];
38841
+ };
38842
+ };
38843
+ };
38844
+ /** @description Invalid request */
38845
+ 400: {
38846
+ headers: {
38847
+ [name: string]: unknown;
38848
+ };
38849
+ content: {
38850
+ "application/json": components["schemas"]["QuestionSetError"];
38851
+ };
38852
+ };
38853
+ /** @description Unauthorized */
38854
+ 401: {
38855
+ headers: {
38856
+ [name: string]: unknown;
38857
+ };
38858
+ content: {
38859
+ "application/json": components["schemas"]["Error"];
38860
+ };
38861
+ };
38862
+ /** @description Insufficient permissions, or no organization context */
38863
+ 403: {
38864
+ headers: {
38865
+ [name: string]: unknown;
38866
+ };
38867
+ content: {
38868
+ "application/json": components["schemas"]["Error"];
38869
+ };
38870
+ };
38871
+ /** @description Not found */
38872
+ 404: {
38873
+ headers: {
38874
+ [name: string]: unknown;
38875
+ };
38876
+ content: {
38877
+ "application/json": components["schemas"]["QuestionSetError"];
38878
+ };
38879
+ };
38880
+ /** @description Conflict */
38881
+ 409: {
38882
+ headers: {
38883
+ [name: string]: unknown;
38884
+ };
38885
+ content: {
38886
+ "application/json": components["schemas"]["QuestionSetError"];
38887
+ };
38888
+ };
38889
+ };
38890
+ };
38891
+ delete?: never;
38892
+ options?: never;
38893
+ head?: never;
38894
+ patch?: never;
38895
+ trace?: never;
38896
+ };
38897
+ "/v1/question-sets/{id}/versions/{versionNumber}/publish": {
38898
+ parameters: {
38899
+ query?: never;
38900
+ header?: never;
38901
+ path?: never;
38902
+ cookie?: never;
38903
+ };
38904
+ get?: never;
38905
+ put?: never;
38906
+ /**
38907
+ * Publish a question set version
38908
+ * @description Freeze the version and make it the one executions resolve when they name no version. Publishing an already-published version moves the current pointer back to it.
38909
+ */
38910
+ post: {
38911
+ parameters: {
38912
+ query?: never;
38913
+ header?: never;
38914
+ path: {
38915
+ id: string;
38916
+ versionNumber: number;
38917
+ };
38918
+ cookie?: never;
38919
+ };
38920
+ requestBody?: never;
38921
+ responses: {
38922
+ /** @description Published */
38923
+ 200: {
38924
+ headers: {
38925
+ [name: string]: unknown;
38926
+ };
38927
+ content: {
38928
+ "application/json": {
38929
+ questionSet: components["schemas"]["QuestionSet"];
38930
+ version: components["schemas"]["QuestionSetVersion"];
38931
+ };
38932
+ };
38933
+ };
38934
+ /** @description Invalid request */
38935
+ 400: {
38936
+ headers: {
38937
+ [name: string]: unknown;
38938
+ };
38939
+ content: {
38940
+ "application/json": components["schemas"]["QuestionSetError"];
38941
+ };
38942
+ };
38943
+ /** @description Unauthorized */
38944
+ 401: {
38945
+ headers: {
38946
+ [name: string]: unknown;
38947
+ };
38948
+ content: {
38949
+ "application/json": components["schemas"]["Error"];
38950
+ };
38951
+ };
38952
+ /** @description Insufficient permissions, or no organization context */
38953
+ 403: {
38954
+ headers: {
38955
+ [name: string]: unknown;
38956
+ };
38957
+ content: {
38958
+ "application/json": components["schemas"]["Error"];
38959
+ };
38960
+ };
38961
+ /** @description Not found */
38962
+ 404: {
38963
+ headers: {
38964
+ [name: string]: unknown;
38965
+ };
38966
+ content: {
38967
+ "application/json": components["schemas"]["QuestionSetError"];
38968
+ };
38969
+ };
38970
+ };
38971
+ };
38972
+ delete?: never;
38973
+ options?: never;
38974
+ head?: never;
38975
+ patch?: never;
38976
+ trace?: never;
38977
+ };
38170
38978
  "/v1/records": {
38171
38979
  parameters: {
38172
38980
  query?: never;
@@ -40029,7 +40837,7 @@ interface paths {
40029
40837
  };
40030
40838
  /**
40031
40839
  * List runs
40032
- * @description Every agent and flow run in the span store, newest start first, including runs that write no control-plane row. The UNSCOPED feed is ROOT runs only: a subagent or nested-flow run folds under its parent, `childCount` says how many are folded there, and `parentExecutionId=<id>` reads them. Pass `includeChildren=true` for the flat enumeration. Any resource-scoped filter (`agentId`, `flowId`, `conversationId`, `surfaceId`, `recordId`, `batchExecutionId`, `parentExecutionId`, `rootExecutionId`, `executionId`) is already an explicit selection and never folds, so an agent that only ever runs as a subagent still lists under `agentId`. Each row carries `origin` (dashboard | api | internal | null), read from the caller's authenticated principal, and `test` as its derived alias for `origin === "dashboard"`; any entrance that resolves a principal stamps origin, including the Runtype MCP server tools and Code Mode (`api`) and the hosted `/v1/mcp` proxy (`internal`). A lane with no principal answers null for both by design: schedule, webhook, messaging, A2A, an agent exposed as an MCP surface, subagent, nested flow, a client-token product surface, an ingested run, and any row whose header predates the field. `overlay=live` adds live control-plane fields; the overlay never adds, drops or reorders a row. Returns 404 with `code: "run_history_unavailable"` when neither plane can serve the page, which a client renders as "no run history here" rather than as a failed read.
40840
+ * @description Every agent and flow run in the span store, newest start first, including runs that write no control-plane row. The UNSCOPED feed is ROOT runs only: a subagent or nested-flow run folds under its parent, `childCount` says how many are folded there, and `parentExecutionId=<id>` reads them. Pass `includeChildren=true` for the flat enumeration. Any resource-scoped filter (`agentId`, `flowId`, `conversationId`, `surfaceId`, `recordId`, `batchExecutionId`, `parentExecutionId`, `rootExecutionId`, `executionId`) is already an explicit selection and never folds, so an agent that only ever runs as a subagent still lists under `agentId`. Each row carries `origin` (dashboard | api | internal | null), read from the caller's authenticated principal, and `test` as its derived alias for `origin === "dashboard"`; any entrance that resolves a principal stamps origin, including the Runtype MCP server tools and Code Mode (`api`) and the hosted `/v1/mcp` proxy (`internal`). A lane with no principal answers null for both by design: schedule, webhook, messaging, A2A, an agent exposed as an MCP surface, subagent, nested flow, a client-token product surface, an ingested run, and any row whose header predates the field. `overlay=live` adds live control-plane fields; the overlay never adds, drops or reorders a row. A cursor minted by the retired control-plane list lane (`cp.` prefix) restarts at page one and answers `pagination.cursorReset: true`.
40033
40841
  */
40034
40842
  get: {
40035
40843
  parameters: {
@@ -40088,6 +40896,8 @@ interface paths {
40088
40896
  "application/json": {
40089
40897
  data: components["schemas"]["RunListRow"][];
40090
40898
  pagination: {
40899
+ /** @description True when the supplied cursor could not be honoured and the read restarted at page one. A paging client must stop rather than follow the fresh cursor. Absent otherwise. */
40900
+ cursorReset?: boolean;
40091
40901
  hasMore: boolean;
40092
40902
  hasPrev: boolean;
40093
40903
  limit: number;
@@ -40128,22 +40938,6 @@ interface paths {
40128
40938
  "application/json": components["schemas"]["Error"];
40129
40939
  };
40130
40940
  };
40131
- /** @description No plane can answer: store run reads are off for this organization and the request names a predicate the control plane cannot express */
40132
- 404: {
40133
- headers: {
40134
- [name: string]: unknown;
40135
- };
40136
- content: {
40137
- "application/json": {
40138
- /**
40139
- * @description Neither plane can serve this page, so the caller shows "no run history" rather than a failed read. Matching on the sentence is never the contract.
40140
- * @enum {string}
40141
- */
40142
- code: "run_history_unavailable";
40143
- error: string;
40144
- };
40145
- };
40146
- };
40147
40941
  /** @description Internal server error */
40148
40942
  500: {
40149
40943
  headers: {
@@ -45272,8 +46066,227 @@ interface paths {
45272
46066
  "application/json": components["schemas"]["Error"];
45273
46067
  };
45274
46068
  };
45275
- /** @description Not found */
45276
- 404: {
46069
+ /** @description Not found */
46070
+ 404: {
46071
+ headers: {
46072
+ [name: string]: unknown;
46073
+ };
46074
+ content: {
46075
+ "application/json": components["schemas"]["Error"];
46076
+ };
46077
+ };
46078
+ };
46079
+ };
46080
+ put?: never;
46081
+ post?: never;
46082
+ delete?: never;
46083
+ options?: never;
46084
+ head?: never;
46085
+ patch?: never;
46086
+ trace?: never;
46087
+ };
46088
+ "/v1/skills/{id}/versions/{versionId}/publish": {
46089
+ parameters: {
46090
+ query?: never;
46091
+ header?: never;
46092
+ path?: never;
46093
+ cookie?: never;
46094
+ };
46095
+ get?: never;
46096
+ put?: never;
46097
+ /** Publish a skill version */
46098
+ post: {
46099
+ parameters: {
46100
+ query?: never;
46101
+ header?: never;
46102
+ path: {
46103
+ id: string;
46104
+ versionId: string;
46105
+ };
46106
+ cookie?: never;
46107
+ };
46108
+ requestBody?: never;
46109
+ responses: {
46110
+ /** @description Published */
46111
+ 200: {
46112
+ headers: {
46113
+ [name: string]: unknown;
46114
+ };
46115
+ content: {
46116
+ "application/json": {
46117
+ success: boolean;
46118
+ };
46119
+ };
46120
+ };
46121
+ /** @description Unauthorized */
46122
+ 401: {
46123
+ headers: {
46124
+ [name: string]: unknown;
46125
+ };
46126
+ content: {
46127
+ "application/json": components["schemas"]["Error"];
46128
+ };
46129
+ };
46130
+ /** @description Insufficient permissions */
46131
+ 403: {
46132
+ headers: {
46133
+ [name: string]: unknown;
46134
+ };
46135
+ content: {
46136
+ "application/json": components["schemas"]["Error"];
46137
+ };
46138
+ };
46139
+ /** @description Not found */
46140
+ 404: {
46141
+ headers: {
46142
+ [name: string]: unknown;
46143
+ };
46144
+ content: {
46145
+ "application/json": components["schemas"]["Error"];
46146
+ };
46147
+ };
46148
+ };
46149
+ };
46150
+ delete?: never;
46151
+ options?: never;
46152
+ head?: never;
46153
+ patch?: never;
46154
+ trace?: never;
46155
+ };
46156
+ "/v1/surfaces": {
46157
+ parameters: {
46158
+ query?: never;
46159
+ header?: never;
46160
+ path?: never;
46161
+ cookie?: never;
46162
+ };
46163
+ /**
46164
+ * List surfaces
46165
+ * @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.
46166
+ */
46167
+ get: {
46168
+ parameters: {
46169
+ query?: {
46170
+ limit?: string;
46171
+ cursor?: string;
46172
+ productId?: string;
46173
+ type?: string;
46174
+ status?: string;
46175
+ };
46176
+ header?: never;
46177
+ path?: never;
46178
+ cookie?: never;
46179
+ };
46180
+ requestBody?: never;
46181
+ responses: {
46182
+ /** @description Paginated list of surfaces */
46183
+ 200: {
46184
+ headers: {
46185
+ [name: string]: unknown;
46186
+ };
46187
+ content: {
46188
+ "application/json": {
46189
+ data: {
46190
+ createdAt: string;
46191
+ /** @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. */
46192
+ endpoint: string | null;
46193
+ id: string;
46194
+ inbound: {
46195
+ appId?: string;
46196
+ /** @description Per-channel channelResponseMode and eagerness, keyed by channel ID. */
46197
+ channelOverrides?: {
46198
+ [key: string]: {
46199
+ /** @enum {string} */
46200
+ channelResponseMode?: "mention" | "judge" | "always";
46201
+ /** @enum {string} */
46202
+ eagerness?: "conservative" | "balanced" | "eager";
46203
+ };
46204
+ };
46205
+ /**
46206
+ * @description When the bot answers an unmentioned channel message: mention (default for new surfaces), always, or judge (asks the platform response-gate judgment whether to reply; a failed judgment waits for a mention).
46207
+ * @enum {string}
46208
+ */
46209
+ channelResponseMode?: "mention" | "judge" | "always";
46210
+ /** @description How skipped channel messages reach the conversation when the bot answers: window (default) adds up to maxMessages (default and ceiling 20) from the last maxAgeMinutes (default 360, ceiling 1440) as context; judged adds, within the same bounds, only the messages the platform response-gate judgment finds needed to understand the answered message, and falls back to window when the judgment fails; none adds nothing. */
46211
+ contextBackfill?: {
46212
+ maxAgeMinutes?: number;
46213
+ maxMessages?: number;
46214
+ /** @enum {string} */
46215
+ mode?: "judged" | "window" | "none";
46216
+ };
46217
+ continueThreads?: boolean;
46218
+ /**
46219
+ * @description How readily judge mode replies: conservative, balanced (default) or eager. Each selects a pair of reply and silence thresholds.
46220
+ * @enum {string}
46221
+ */
46222
+ eagerness?: "conservative" | "balanced" | "eager";
46223
+ integrationId?: string;
46224
+ /** @description Whole-word, case-insensitive filter on unmentioned messages in always and judge mode; judge mode applies it before the judgment. */
46225
+ keywords?: {
46226
+ ignore?: string[];
46227
+ require?: string[];
46228
+ };
46229
+ listenChannels?: string[];
46230
+ listenDms?: boolean;
46231
+ /**
46232
+ * @description What judge mode does when the judgment lands between the two thresholds: silent (default) or reply.
46233
+ * @enum {string}
46234
+ */
46235
+ onUncertain?: "silent" | "reply";
46236
+ /** @description Opt-in. In mention or always mode, also judge each unmentioned channel message and record the decision and probability without changing what the bot does. */
46237
+ responseGateShadow?: boolean;
46238
+ /** @description Free text (up to 2000 characters) the judge-mode judgment reads as the rules for when the bot should speak, for example "answer questions about resetting Acme account passwords". */
46239
+ responseRules?: string;
46240
+ teamId?: string;
46241
+ teamName?: string;
46242
+ /**
46243
+ * @deprecated
46244
+ * @description Deprecated; use channelResponseMode. true reads as mention, false as always.
46245
+ */
46246
+ triggerOnMention?: boolean;
46247
+ } | null;
46248
+ name: string;
46249
+ productId: string;
46250
+ /** @description Name of the product this surface belongs to. Non-nullable: the list query inner-joins products (so a surface with no product cannot appear) and products.name is NOT NULL. Present so a cross-product picker can disambiguate two surfaces that share a name. */
46251
+ productName: string;
46252
+ status: string;
46253
+ type: string;
46254
+ updatedAt: string;
46255
+ webhookHealth: components["schemas"]["WebhookHealth"];
46256
+ }[];
46257
+ pagination: components["schemas"]["Pagination"];
46258
+ };
46259
+ };
46260
+ };
46261
+ /** @description Invalid parameters */
46262
+ 400: {
46263
+ headers: {
46264
+ [name: string]: unknown;
46265
+ };
46266
+ content: {
46267
+ "application/json": components["schemas"]["Error"];
46268
+ };
46269
+ };
46270
+ /** @description Unauthorized */
46271
+ 401: {
46272
+ headers: {
46273
+ [name: string]: unknown;
46274
+ };
46275
+ content: {
46276
+ "application/json": components["schemas"]["Error"];
46277
+ };
46278
+ };
46279
+ /** @description Insufficient permissions */
46280
+ 403: {
46281
+ headers: {
46282
+ [name: string]: unknown;
46283
+ };
46284
+ content: {
46285
+ "application/json": components["schemas"]["Error"];
46286
+ };
46287
+ };
46288
+ /** @description Internal server error */
46289
+ 500: {
45277
46290
  headers: {
45278
46291
  [name: string]: unknown;
45279
46292
  };
@@ -45291,75 +46304,7 @@ interface paths {
45291
46304
  patch?: never;
45292
46305
  trace?: never;
45293
46306
  };
45294
- "/v1/skills/{id}/versions/{versionId}/publish": {
45295
- parameters: {
45296
- query?: never;
45297
- header?: never;
45298
- path?: never;
45299
- cookie?: never;
45300
- };
45301
- get?: never;
45302
- put?: never;
45303
- /** Publish a skill version */
45304
- post: {
45305
- parameters: {
45306
- query?: never;
45307
- header?: never;
45308
- path: {
45309
- id: string;
45310
- versionId: string;
45311
- };
45312
- cookie?: never;
45313
- };
45314
- requestBody?: never;
45315
- responses: {
45316
- /** @description Published */
45317
- 200: {
45318
- headers: {
45319
- [name: string]: unknown;
45320
- };
45321
- content: {
45322
- "application/json": {
45323
- success: boolean;
45324
- };
45325
- };
45326
- };
45327
- /** @description Unauthorized */
45328
- 401: {
45329
- headers: {
45330
- [name: string]: unknown;
45331
- };
45332
- content: {
45333
- "application/json": components["schemas"]["Error"];
45334
- };
45335
- };
45336
- /** @description Insufficient permissions */
45337
- 403: {
45338
- headers: {
45339
- [name: string]: unknown;
45340
- };
45341
- content: {
45342
- "application/json": components["schemas"]["Error"];
45343
- };
45344
- };
45345
- /** @description Not found */
45346
- 404: {
45347
- headers: {
45348
- [name: string]: unknown;
45349
- };
45350
- content: {
45351
- "application/json": components["schemas"]["Error"];
45352
- };
45353
- };
45354
- };
45355
- };
45356
- delete?: never;
45357
- options?: never;
45358
- head?: never;
45359
- patch?: never;
45360
- trace?: never;
45361
- };
45362
- "/v1/surfaces": {
46307
+ "/v1/surfaces/{surfaceId}": {
45363
46308
  parameters: {
45364
46309
  query?: never;
45365
46310
  header?: never;
@@ -45367,60 +46312,86 @@ interface paths {
45367
46312
  cookie?: never;
45368
46313
  };
45369
46314
  /**
45370
- * List surfaces
45371
- * @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.
46315
+ * Get surface details
46316
+ * @description Get an authorized surface by its globally unique ID, including items and keys.
45372
46317
  */
45373
46318
  get: {
45374
46319
  parameters: {
45375
- query?: {
45376
- limit?: string;
45377
- cursor?: string;
45378
- productId?: string;
45379
- type?: string;
45380
- status?: string;
45381
- };
46320
+ query?: never;
45382
46321
  header?: never;
45383
- path?: never;
46322
+ path: {
46323
+ surfaceId: string;
46324
+ };
45384
46325
  cookie?: never;
45385
46326
  };
45386
46327
  requestBody?: never;
45387
46328
  responses: {
45388
- /** @description Paginated list of surfaces */
46329
+ /** @description Surface details */
45389
46330
  200: {
45390
46331
  headers: {
45391
46332
  [name: string]: unknown;
45392
46333
  };
45393
46334
  content: {
45394
46335
  "application/json": {
45395
- data: {
46336
+ behavior?: unknown;
46337
+ createdAt: string;
46338
+ /** @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. */
46339
+ endpoint: string | null;
46340
+ id: string;
46341
+ inbound?: unknown;
46342
+ items: {
46343
+ agentId: string | null;
46344
+ agentType: string | null;
46345
+ cachedSkills: unknown[] | null;
46346
+ capabilityId: string;
46347
+ capabilityName: string | null;
46348
+ config?: unknown;
45396
46349
  createdAt: string;
45397
- /** @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. */
45398
- endpoint: string | null;
46350
+ displayOrder: number | null;
46351
+ enabled: boolean;
46352
+ endpointSlug: string | null;
46353
+ exposedDescription: string | null;
46354
+ exposedName: string | null;
46355
+ flowId: string | null;
46356
+ id: string;
46357
+ isEntryPoint: boolean;
46358
+ parametersSchema?: unknown;
46359
+ }[];
46360
+ keys: {
46361
+ canReveal: boolean;
46362
+ createdAt: string;
46363
+ environment: string;
46364
+ expiresAt: string | null;
46365
+ id: string;
46366
+ isActive: boolean;
46367
+ isDevelopment: boolean;
46368
+ keyHint: string | null;
46369
+ keyPrefix: string;
46370
+ lastUsedAt: string | null;
46371
+ name: string | null;
46372
+ rateLimitPerDay: number | null;
46373
+ rateLimitPerMinute: number | null;
46374
+ scopeTargetIds: string[] | null;
46375
+ scopes: string[];
46376
+ usageCount: number | null;
46377
+ }[];
46378
+ name: string;
46379
+ outbound?: unknown;
46380
+ productId: string;
46381
+ scopeTargets: {
46382
+ capabilityId?: string;
45399
46383
  id: string;
45400
- inbound: {
45401
- appId?: string;
45402
- continueThreads?: boolean;
45403
- integrationId?: string;
45404
- listenChannels?: string[];
45405
- listenDms?: boolean;
45406
- teamId?: string;
45407
- teamName?: string;
45408
- triggerOnMention?: boolean;
45409
- } | null;
45410
46384
  name: string;
45411
- productId: string;
45412
- /** @description Name of the product this surface belongs to. Non-nullable: the list query inner-joins products (so a surface with no product cannot appear) and products.name is NOT NULL. Present so a cross-product picker can disambiguate two surfaces that share a name. */
45413
- productName: string;
45414
- status: string;
45415
- type: string;
45416
- updatedAt: string;
45417
- webhookHealth: components["schemas"]["WebhookHealth"];
46385
+ surfaceItemId?: string;
45418
46386
  }[];
45419
- pagination: components["schemas"]["Pagination"];
46387
+ status: string;
46388
+ type: string;
46389
+ updatedAt: string;
46390
+ webhookHealth: components["schemas"]["WebhookHealth"];
45420
46391
  };
45421
46392
  };
45422
46393
  };
45423
- /** @description Invalid parameters */
46394
+ /** @description Invalid surface ID */
45424
46395
  400: {
45425
46396
  headers: {
45426
46397
  [name: string]: unknown;
@@ -45447,6 +46418,15 @@ interface paths {
45447
46418
  "application/json": components["schemas"]["Error"];
45448
46419
  };
45449
46420
  };
46421
+ /** @description Surface not found */
46422
+ 404: {
46423
+ headers: {
46424
+ [name: string]: unknown;
46425
+ };
46426
+ content: {
46427
+ "application/json": components["schemas"]["Error"];
46428
+ };
46429
+ };
45450
46430
  /** @description Internal server error */
45451
46431
  500: {
45452
46432
  headers: {
@@ -45466,7 +46446,7 @@ interface paths {
45466
46446
  patch?: never;
45467
46447
  trace?: never;
45468
46448
  };
45469
- "/v1/surfaces/{surfaceId}": {
46449
+ "/v1/surfaces/{surfaceId}/channel-context": {
45470
46450
  parameters: {
45471
46451
  query?: never;
45472
46452
  header?: never;
@@ -45474,12 +46454,15 @@ interface paths {
45474
46454
  cookie?: never;
45475
46455
  };
45476
46456
  /**
45477
- * Get surface details
45478
- * @description Get an authorized surface by its globally unique ID, including items and keys.
46457
+ * Read a channel context window
46458
+ * @description Read the recent channel messages a Slack, Telegram or iMessage surface holds for one channel or group (at most 20, newest 24 hours, oldest first), each with the response gate decision recorded for it, and the next-turn labels recorded on those decisions. Skipped messages create no conversation, so this is where their decisions are read.
45479
46459
  */
45480
46460
  get: {
45481
46461
  parameters: {
45482
- query?: never;
46462
+ query: {
46463
+ /** @description Slack channel ID, Telegram chat ID, or iMessage group ID. */
46464
+ channelId: string;
46465
+ };
45483
46466
  header?: never;
45484
46467
  path: {
45485
46468
  surfaceId: string;
@@ -45488,72 +46471,24 @@ interface paths {
45488
46471
  };
45489
46472
  requestBody?: never;
45490
46473
  responses: {
45491
- /** @description Surface details */
46474
+ /** @description The channel window with its gate decisions and labels */
45492
46475
  200: {
45493
46476
  headers: {
45494
46477
  [name: string]: unknown;
45495
46478
  };
45496
46479
  content: {
45497
46480
  "application/json": {
45498
- behavior?: unknown;
45499
- createdAt: string;
45500
- /** @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. */
45501
- endpoint: string | null;
45502
- id: string;
45503
- inbound?: unknown;
45504
- items: {
45505
- agentId: string | null;
45506
- agentType: string | null;
45507
- cachedSkills: unknown[] | null;
45508
- capabilityId: string;
45509
- capabilityName: string | null;
45510
- config?: unknown;
45511
- createdAt: string;
45512
- displayOrder: number | null;
45513
- enabled: boolean;
45514
- endpointSlug: string | null;
45515
- exposedDescription: string | null;
45516
- exposedName: string | null;
45517
- flowId: string | null;
45518
- id: string;
45519
- isEntryPoint: boolean;
45520
- parametersSchema?: unknown;
45521
- }[];
45522
- keys: {
45523
- canReveal: boolean;
45524
- createdAt: string;
45525
- environment: string;
45526
- expiresAt: string | null;
45527
- id: string;
45528
- isActive: boolean;
45529
- isDevelopment: boolean;
45530
- keyHint: string | null;
45531
- keyPrefix: string;
45532
- lastUsedAt: string | null;
45533
- name: string | null;
45534
- rateLimitPerDay: number | null;
45535
- rateLimitPerMinute: number | null;
45536
- scopeTargetIds: string[] | null;
45537
- scopes: string[];
45538
- usageCount: number | null;
45539
- }[];
45540
- name: string;
45541
- outbound?: unknown;
45542
- productId: string;
45543
- scopeTargets: {
45544
- capabilityId?: string;
45545
- id: string;
45546
- name: string;
45547
- surfaceItemId?: string;
45548
- }[];
45549
- status: string;
45550
- type: string;
45551
- updatedAt: string;
45552
- webhookHealth: components["schemas"]["WebhookHealth"];
46481
+ channelId: string;
46482
+ /** @description Labels on decisions the channel still retains (newest 50 messages, 24 hours), oldest first. Empty until a next turn produces one. */
46483
+ labels: components["schemas"]["ChannelContextLabel"][];
46484
+ messages: components["schemas"]["ChannelContextMessage"][];
46485
+ /** @enum {string} */
46486
+ provider: "slack" | "telegram" | "imessage";
46487
+ surfaceId: string;
45553
46488
  };
45554
46489
  };
45555
46490
  };
45556
- /** @description Invalid surface ID */
46491
+ /** @description Invalid surface ID, or a surface type without a channel context */
45557
46492
  400: {
45558
46493
  headers: {
45559
46494
  [name: string]: unknown;
@@ -45589,15 +46524,6 @@ interface paths {
45589
46524
  "application/json": components["schemas"]["Error"];
45590
46525
  };
45591
46526
  };
45592
- /** @description Internal server error */
45593
- 500: {
45594
- headers: {
45595
- [name: string]: unknown;
45596
- };
45597
- content: {
45598
- "application/json": components["schemas"]["Error"];
45599
- };
45600
- };
45601
46527
  };
45602
46528
  };
45603
46529
  put?: never;
@@ -45725,7 +46651,7 @@ interface paths {
45725
46651
  };
45726
46652
  /**
45727
46653
  * Inspect OTLP admission, queryability, and durable recovery debt
45728
- * @description Owner-scoped delivery receipts retained for 30 days. Lag is acceptance to the first positive query probe, not stream ACK latency or a production SLO guarantee. Idle is not proof of sink health. No transcripts or retained payloads are returned. Requires ANALYTICS:READ or AGENTS:READ; TELEMETRY:WRITE alone is append-only.
46654
+ * @description Owner-scoped delivery receipts retained for 30 days. Lag is acceptance to confirmation (a positive hot receipt read, or a successful raw send), not a production SLO guarantee. Idle is not proof of sink health. No transcripts or retained payloads are returned. Requires ANALYTICS:READ or AGENTS:READ; TELEMETRY:WRITE alone is append-only.
45729
46655
  */
45730
46656
  get: operations["getOtlpIngestHealth"];
45731
46657
  put?: never;
@@ -47481,18 +48407,22 @@ interface paths {
47481
48407
  parameters: {
47482
48408
  [key: string]: unknown;
47483
48409
  };
48410
+ /** @description Built-in tools only: the instance config an agent's toolConfigs entry would carry, validated against the tool's configSchema. Rejected for a saved tool. */
48411
+ toolConfig?: {
48412
+ [key: string]: unknown;
48413
+ };
47484
48414
  toolId?: string;
47485
48415
  };
47486
48416
  };
47487
48417
  };
47488
48418
  responses: {
47489
- /** @description Tool execution result (JSON for non-flow tools, SSE stream for flow tools) */
48419
+ /** @description Tool execution result: BuiltinToolExecuteResult for a builtin: or platform: id, ExecuteToolResult for a saved non-flow tool, an SSE stream for a flow tool */
47490
48420
  200: {
47491
48421
  headers: {
47492
48422
  [name: string]: unknown;
47493
48423
  };
47494
48424
  content: {
47495
- "application/json": {
48425
+ "application/json": components["schemas"]["BuiltinToolExecuteResult"] | {
47496
48426
  error?: string;
47497
48427
  executionId: string;
47498
48428
  executionTimeMs: number;
@@ -47502,13 +48432,13 @@ interface paths {
47502
48432
  };
47503
48433
  };
47504
48434
  };
47505
- /** @description Validation error */
48435
+ /** @description Invalid request, tool config, or judgment input */
47506
48436
  400: {
47507
48437
  headers: {
47508
48438
  [name: string]: unknown;
47509
48439
  };
47510
48440
  content: {
47511
- "application/json": components["schemas"]["Error"];
48441
+ "application/json": components["schemas"]["ToolExecuteError"];
47512
48442
  };
47513
48443
  };
47514
48444
  /** @description Unauthorized */
@@ -47529,13 +48459,22 @@ interface paths {
47529
48459
  "application/json": components["schemas"]["Error"];
47530
48460
  };
47531
48461
  };
47532
- /** @description Tool not found */
48462
+ /** @description Tool not found, or a judgment question set that does not resolve */
47533
48463
  404: {
47534
48464
  headers: {
47535
48465
  [name: string]: unknown;
47536
48466
  };
47537
48467
  content: {
47538
- "application/json": components["schemas"]["Error"];
48468
+ "application/json": components["schemas"]["ToolExecuteError"];
48469
+ };
48470
+ };
48471
+ /** @description A judgment the gateway cannot serve: an unlisted model or no gateway credential */
48472
+ 422: {
48473
+ headers: {
48474
+ [name: string]: unknown;
48475
+ };
48476
+ content: {
48477
+ "application/json": components["schemas"]["ToolExecuteError"];
47539
48478
  };
47540
48479
  };
47541
48480
  /** @description Internal server error */
@@ -47585,13 +48524,13 @@ interface paths {
47585
48524
  };
47586
48525
  };
47587
48526
  responses: {
47588
- /** @description Tool execution result (forwarded from the execute endpoint) */
48527
+ /** @description Tool execution result, forwarded from the execute endpoint */
47589
48528
  200: {
47590
48529
  headers: {
47591
48530
  [name: string]: unknown;
47592
48531
  };
47593
48532
  content: {
47594
- "application/json": {
48533
+ "application/json": components["schemas"]["BuiltinToolExecuteResult"] | {
47595
48534
  error?: string;
47596
48535
  executionId: string;
47597
48536
  executionTimeMs: number;
@@ -47601,6 +48540,15 @@ interface paths {
47601
48540
  };
47602
48541
  };
47603
48542
  };
48543
+ /** @description Invalid request, tool config, or judgment input */
48544
+ 400: {
48545
+ headers: {
48546
+ [name: string]: unknown;
48547
+ };
48548
+ content: {
48549
+ "application/json": components["schemas"]["ToolExecuteError"];
48550
+ };
48551
+ };
47604
48552
  /** @description Unauthorized */
47605
48553
  401: {
47606
48554
  headers: {
@@ -47619,6 +48567,24 @@ interface paths {
47619
48567
  "application/json": components["schemas"]["Error"];
47620
48568
  };
47621
48569
  };
48570
+ /** @description Tool not found, or a judgment question set that does not resolve */
48571
+ 404: {
48572
+ headers: {
48573
+ [name: string]: unknown;
48574
+ };
48575
+ content: {
48576
+ "application/json": components["schemas"]["ToolExecuteError"];
48577
+ };
48578
+ };
48579
+ /** @description A judgment the gateway cannot serve: an unlisted model or no gateway credential */
48580
+ 422: {
48581
+ headers: {
48582
+ [name: string]: unknown;
48583
+ };
48584
+ content: {
48585
+ "application/json": components["schemas"]["ToolExecuteError"];
48586
+ };
48587
+ };
47622
48588
  /** @description Internal server error */
47623
48589
  500: {
47624
48590
  headers: {
@@ -48730,6 +49696,8 @@ interface components {
48730
49696
  thinkingLevel?: string;
48731
49697
  };
48732
49698
  sandbox?: {
49699
+ /** @description Coding agents the Sandbox can run as typed sessions. Non-empty adds the agent_session_* tools; empty or absent adds none. */
49700
+ codingAgents?: "opencode"[];
48733
49701
  enabled: boolean;
48734
49702
  /**
48735
49703
  * @description Only standard-4 is supported on the hosted Agent Sandbox path; other sizes cannot be enabled.
@@ -48845,6 +49813,7 @@ interface components {
48845
49813
  [key: string]: unknown;
48846
49814
  };
48847
49815
  description: string;
49816
+ hiddenParameterNames?: string[];
48848
49817
  idempotent?: boolean;
48849
49818
  name: string;
48850
49819
  parametersSchema: {
@@ -49009,6 +49978,15 @@ interface components {
49009
49978
  } & {
49010
49979
  [key: string]: unknown;
49011
49980
  };
49981
+ BuiltinToolExecuteResult: {
49982
+ /** @description Execution metadata for the caller, never part of a model-facing tool result. builtin:typesafe_judge sets metadata.judgment: requestedModel, resolvedModelId, keySource, questionSetId and questionSetVersion (configured mode), usage { inputTokens, outputTokens, reported }, and estimatedCostUsd (provider rates, before margin). */
49983
+ metadata?: {
49984
+ [key: string]: unknown;
49985
+ };
49986
+ result?: unknown;
49987
+ toolId: string;
49988
+ toolName: string;
49989
+ };
49012
49990
  CaptureExecutionPreview: {
49013
49991
  /** @description The recorded tool-call actions in invocation order — the fork-picker rows. */
49014
49992
  actions: components["schemas"]["CaptureExecutionPreviewAction"][];
@@ -49036,6 +50014,53 @@ interface components {
49036
50014
  /** @description True when every recorded tool output was captured in full. False when any output was truncated at capture — the case still saves, but tool outputs are partial ("⚠ tool outputs weren’t fully captured"). */
49037
50015
  replayable: boolean;
49038
50016
  };
50017
+ ChannelContextDecision: {
50018
+ /** @description Whether the assistant ran for this message. */
50019
+ activated: boolean;
50020
+ /**
50021
+ * @description The response gate decision. not_judged means no judgment answered: the mode never asks one, or the judgment failed and the message waited for a mention.
50022
+ * @enum {string}
50023
+ */
50024
+ decision: "not_judged" | "reply" | "silent" | "band";
50025
+ /**
50026
+ * @description Why the judgment did not answer, when one was asked and failed. error: the model call failed for a reason other than a provider server error, for example a missing credential or a rejected request. upstream: the model provider returned a server error. timeout: the model budget ran out. unanswered: the model gave no decision. no_assistant: the surface has no product to describe. preparation: the pre-model loads failed or ran out of time. circuit_open: repeated upstream failures paused judgments, so none was asked. Absent on a decision that answered, and on decisions recorded before this field existed.
50027
+ * @enum {string}
50028
+ */
50029
+ failure?: "error" | "upstream" | "timeout" | "unanswered" | "no_assistant" | "preparation" | "circuit_open";
50030
+ /** @description The judged shouldReply probability; absent when not_judged. */
50031
+ probability?: number;
50032
+ } | null;
50033
+ ChannelContextLabel: {
50034
+ decision: components["schemas"]["ChannelContextDecision"];
50035
+ /** @description The labeled message, whose decision the label judges. */
50036
+ externalMessageId: string;
50037
+ /**
50038
+ * @description gate_false_negative: the assistant stayed silent and a person mentioned it soon after. gate_false_positive: the assistant replied and a person pushed back. backfill_false_negative: after a judged context backfill, a person said the answer was already above.
50039
+ * @enum {string}
50040
+ */
50041
+ label: "gate_false_negative" | "gate_false_positive" | "backfill_false_negative";
50042
+ /** @description ISO timestamp the label was recorded. */
50043
+ labeledAt: string;
50044
+ /**
50045
+ * @description The next-turn signal that produced the label.
50046
+ * @enum {string}
50047
+ */
50048
+ source: "mention_after_silence" | "not_you_reply" | "negative_reaction" | "reply_deleted" | "already_said_reply";
50049
+ };
50050
+ ChannelContextMessage: {
50051
+ authorId: string;
50052
+ /** @enum {string} */
50053
+ authorKind: "user" | "assistant" | "bot";
50054
+ decision: components["schemas"]["ChannelContextDecision"];
50055
+ externalMessageId: string;
50056
+ hasAttachment: boolean;
50057
+ mentionsAssistant: boolean;
50058
+ /** @description Message text, truncated to 1,000 characters. */
50059
+ text: string;
50060
+ threadId?: string;
50061
+ /** @description ISO timestamp of the provider message. */
50062
+ timestamp: string;
50063
+ };
49039
50064
  ClientInputDeliveryReceipt: {
49040
50065
  deliveryId: string;
49041
50066
  executionId: string;
@@ -49970,6 +50995,9 @@ interface components {
49970
50995
  /** @enum {string} */
49971
50996
  type: "turn_start";
49972
50997
  } | {
50998
+ attributes?: {
50999
+ [key: string]: string | number | boolean;
51000
+ };
49973
51001
  completedAt?: string;
49974
51002
  content?: string;
49975
51003
  cost?: number;
@@ -50036,6 +51064,9 @@ interface components {
50036
51064
  /** @enum {string} */
50037
51065
  type: "model_call_start";
50038
51066
  } | {
51067
+ attributes?: {
51068
+ [key: string]: string | number | boolean;
51069
+ };
50039
51070
  completedAt?: string;
50040
51071
  cost?: number;
50041
51072
  durationMs?: number;
@@ -50059,6 +51090,7 @@ interface components {
50059
51090
  cacheWrite?: number;
50060
51091
  input: number;
50061
51092
  output: number;
51093
+ reasoning?: number;
50062
51094
  };
50063
51095
  turnId?: string;
50064
51096
  /** @enum {string} */
@@ -50634,6 +51666,23 @@ interface components {
50634
51666
  /** @enum {string} */
50635
51667
  status: "pending" | "applied" | "settled" | "not_applied";
50636
51668
  };
51669
+ JudgmentCalibrationRecord: {
51670
+ createdAt: string;
51671
+ createdByUserId: string | null;
51672
+ evalRunId: string | null;
51673
+ id: string;
51674
+ measuredModel: string;
51675
+ questionSetVersionId: string;
51676
+ /** @description The calibration record as posted. */
51677
+ record: {
51678
+ [key: string]: unknown;
51679
+ };
51680
+ /**
51681
+ * @description Derived: `eval_suite` only when the posted `evalRunId` resolved to an eval run in this account.
51682
+ * @enum {string}
51683
+ */
51684
+ source: "eval_suite" | "customer";
51685
+ };
50637
51686
  ManagedAgentRunOutput: {
50638
51687
  anthropicFileId: string;
50639
51688
  /** @description Asset-storage key the bytes were persisted to. */
@@ -50819,6 +51868,45 @@ interface components {
50819
51868
  productId: string;
50820
51869
  updatedAt: string | null;
50821
51870
  };
51871
+ QuestionSet: {
51872
+ createdAt: string;
51873
+ createdByUserId: string | null;
51874
+ /** @description The published version executions resolve when they name no version; null until a publish. */
51875
+ currentVersionId: string | null;
51876
+ description: string | null;
51877
+ id: string;
51878
+ name: string;
51879
+ organizationId: string;
51880
+ slug: string;
51881
+ updatedAt: string;
51882
+ };
51883
+ QuestionSetError: components["schemas"]["Error"] & {
51884
+ /** @description Stable code, e.g. QUESTION_SET_INVALID or QUESTION_SET_UNRESOLVED. */
51885
+ code?: string;
51886
+ };
51887
+ QuestionSetListItem: components["schemas"]["QuestionSet"] & {
51888
+ currentVersionNumber: number | null;
51889
+ latestVersionNumber: number;
51890
+ };
51891
+ QuestionSetVersion: {
51892
+ createdAt: string;
51893
+ createdByUserId: string | null;
51894
+ currentCalibrationId: string | null;
51895
+ id: string;
51896
+ inputMapping: {
51897
+ [key: string]: string;
51898
+ } | null;
51899
+ /** @description Requested judgment model id; null uses the platform default. */
51900
+ model: string | null;
51901
+ /** @description Set once, at the first publish; a published version never changes. */
51902
+ publishedAt: string | null;
51903
+ questionSetId: string;
51904
+ /** @description Judgment questions keyed by question id. Each is `{ type: "boolean" | "choice" | "score", instructions, criteria }`. The id is never sent to the model, so instructions and criteria carry the meaning. */
51905
+ questions: {
51906
+ [key: string]: unknown;
51907
+ };
51908
+ versionNumber: number;
51909
+ };
50822
51910
  RecordFilterCondition: {
50823
51911
  field: string;
50824
51912
  /** @enum {string} */
@@ -50839,6 +51927,29 @@ interface components {
50839
51927
  recordName?: string;
50840
51928
  schemaVersion: number;
50841
51929
  };
51930
+ ResolvedQuestionSet: {
51931
+ calibration: {
51932
+ createdAt: string;
51933
+ id: string;
51934
+ measuredModel: string;
51935
+ record: {
51936
+ [key: string]: unknown;
51937
+ };
51938
+ /** @enum {string} */
51939
+ source: "eval_suite" | "customer";
51940
+ } | null;
51941
+ id: string;
51942
+ inputMapping: {
51943
+ [key: string]: string;
51944
+ } | null;
51945
+ model: string | null;
51946
+ /** @description Judgment questions keyed by question id. Each is `{ type: "boolean" | "choice" | "score", instructions, criteria }`. The id is never sent to the model, so instructions and criteria carry the meaning. */
51947
+ questions: {
51948
+ [key: string]: unknown;
51949
+ };
51950
+ slug: string;
51951
+ version: number;
51952
+ };
50842
51953
  RunEvalResponse: {
50843
51954
  /** @description The release alias the run resolved through, when it resolved through one. */
50844
51955
  agentTargetAlias?: string | null;
@@ -50925,6 +52036,10 @@ interface components {
50925
52036
  batchExecutionId: string | null;
50926
52037
  /** @description Budget exhausted. Absent means the overlay did not answer, which is not false and not null. */
50927
52038
  budgetExhausted?: boolean | null;
52039
+ /** @description Prompt-cache reads summed over the run's model calls (a subset of inputTokens). Returned by GET /v1/runs/{executionId} only; null means no model call reported one. */
52040
+ cacheReadTokens?: number | null;
52041
+ /** @description Prompt-cache writes summed over the run's model calls (a subset of inputTokens). Returned by GET /v1/runs/{executionId} only; null means no model call reported one. */
52042
+ cacheWriteTokens?: number | null;
50928
52043
  /** @description Cancel request. Absent means the overlay did not answer, which is not false and not null. */
50929
52044
  cancelRequestedAt?: string | null;
50930
52045
  /** @description How many runs name this one as their parent. The unscoped feed returns roots only, so this is the size of the fold underneath a row; read the children with parentExecutionId=<executionId>. It is populated on a resource-scoped page too, where nothing is folded, so a surface can still offer the same expansion. WHICH children are counted depends on the arm that served the row: the span store counts every child, agent and nested-flow alike, while the legacy control-plane fallback counts agent children only, so on that arm a parent whose only child is a nested flow reports 0. That is deliberate — the fallback arm cannot enumerate a nested-flow child either, so counting one would advertise a fold that opens on nothing. It counts only children the CALLER may read: a credential holding one execution family (AGENTS:READ or FLOWS:READ alone) counts the children of that family and no others, so a count never discloses a run the same credential could not list. NULL means the arm cannot count children at all, which is not zero. */
@@ -50982,6 +52097,8 @@ interface components {
50982
52097
  pendingApproval?: unknown;
50983
52098
  /** @description Live progress document. Absent means the overlay did not answer, which is not false and not null. */
50984
52099
  progress?: unknown;
52100
+ /** @description Reasoning tokens summed over the run's model calls (a subset of outputTokens). Returned by GET /v1/runs/{executionId} only; null means no model call reported one. */
52101
+ reasoningTokens?: number | null;
50985
52102
  /** @description Record this run processed. */
50986
52103
  recordId: string | null;
50987
52104
  /** @description Retention removed the spans; the run still lists and reads as completed. */
@@ -51248,6 +52365,13 @@ interface components {
51248
52365
  result: "plan";
51249
52366
  toolId?: string;
51250
52367
  };
52368
+ ToolExecuteError: components["schemas"]["Error"] & {
52369
+ /** @description Stable code for a caller-fixable failure, e.g. JUDGMENT_QUESTIONS_INVALID or QUESTION_SET_UNRESOLVED. */
52370
+ code?: string;
52371
+ details?: {
52372
+ [key: string]: unknown;
52373
+ };
52374
+ };
51251
52375
  ToolPullResponse: {
51252
52376
  contentHash: string;
51253
52377
  definition: {
@@ -51339,6 +52463,7 @@ interface components {
51339
52463
  providerRateLimitHeaders?: {
51340
52464
  [key: string]: string;
51341
52465
  } | null;
52466
+ reasoningTokens?: number | null;
51342
52467
  recordId?: string | null;
51343
52468
  recordName?: string | null;
51344
52469
  requestId?: string | null;
@@ -51576,6 +52701,7 @@ interface operations {
51576
52701
  repairs: number;
51577
52702
  waiting: number;
51578
52703
  };
52704
+ /** @description Hot tier: confirmed by a positive receipt read, not a stream acknowledgment. */
51579
52705
  hot: {
51580
52706
  confirmed: number;
51581
52707
  maximumConfirmedLagMs: number | null;
@@ -51583,6 +52709,7 @@ interface operations {
51583
52709
  repairs: number;
51584
52710
  waiting: number;
51585
52711
  };
52712
+ /** @description Raw storage tier: confirmed when its send succeeds (at-least-once, no read-back). `waiting` counts rows whose send has not yet succeeded. */
51586
52713
  raw: {
51587
52714
  confirmed: number;
51588
52715
  maximumConfirmedLagMs: number | null;
@@ -51605,7 +52732,7 @@ interface operations {
51605
52732
  trace: {
51606
52733
  acceptedAt: string;
51607
52734
  completeness: string;
51608
- /** @description Receipt counts for this trace only; confirmations require positive tier reads, not stream acknowledgments. */
52735
+ /** @description Receipt counts for this trace only; hot confirmations require a positive receipt read, raw confirmations a successful send. */
51609
52736
  delivery: {
51610
52737
  accepted: number;
51611
52738
  /** @description Deprecated: the canonical storage tier is retired and every field is permanently zero. It is emitted only so already-published SDKs, which model it as required, keep parsing; it is removed in a following release. */
@@ -53796,14 +54923,40 @@ interface UpdateToolRequest {
53796
54923
  interface ExecuteToolRequest {
53797
54924
  toolId: string;
53798
54925
  parameters: JsonObject;
54926
+ /** Built-in tools only: the instance config, validated against the tool's configSchema. */
54927
+ toolConfig?: JsonObject;
53799
54928
  }
53800
- interface ExecuteToolResponse {
54929
+ /**
54930
+ * `POST /v1/tools/{id}/execute` (and `/test`) for a saved non-flow tool
54931
+ * (OpenAPI `ExecuteToolResult`).
54932
+ */
54933
+ interface SavedToolExecuteResponse {
53801
54934
  executionId: string;
53802
- result: JsonValue;
53803
- status: 'success' | 'failed';
54935
+ status: 'pending' | 'success' | 'failed' | 'waiting_for_local';
54936
+ result?: JsonValue;
54937
+ error?: string;
54938
+ /** @deprecated The API never sends this field; read `error`. */
53804
54939
  errorMessage?: string;
53805
54940
  executionTimeMs: number;
53806
54941
  }
54942
+ /**
54943
+ * `POST /v1/tools/{id}/execute` (and `/test`) for a `builtin:` or `platform:`
54944
+ * tool (OpenAPI `BuiltinToolExecuteResult`).
54945
+ */
54946
+ interface BuiltinToolExecuteResponse {
54947
+ toolId: string;
54948
+ toolName: string;
54949
+ result?: JsonValue;
54950
+ /** Built-in execution metadata a model never sees, e.g. `metadata.judgment`. */
54951
+ metadata?: JsonObject;
54952
+ }
54953
+ /**
54954
+ * The tool execute response: a built-in result for a `builtin:` or
54955
+ * `platform:` id, a saved-tool result otherwise. Narrow with
54956
+ * `isBuiltinToolExecuteResponse` before reading shape-specific fields.
54957
+ */
54958
+ type ExecuteToolResponse = SavedToolExecuteResponse | BuiltinToolExecuteResponse;
54959
+ declare function isBuiltinToolExecuteResponse(response: ExecuteToolResponse): response is BuiltinToolExecuteResponse;
53807
54960
  type SandboxDeployRetention = '10m' | '1h' | '24h' | 'unlimited';
53808
54961
  type SandboxDeploySleepPolicy = {
53809
54962
  mode: 'never';
@@ -53915,6 +55068,12 @@ interface RuntimeTool {
53915
55068
  * re-decides, rather than silently re-fired.
53916
55069
  */
53917
55070
  idempotent?: boolean;
55071
+ /**
55072
+ * Parameters the runtime fills from execution variables (or `_record.metadata`)
55073
+ * and strips from the schema the model sees. Names starting with `_internal`
55074
+ * are rejected at save time.
55075
+ */
55076
+ hiddenParameterNames?: string[];
53918
55077
  }
53919
55078
  type RuntimeToolConfig = RuntimeFlowToolConfig | RuntimeCustomToolConfig | RuntimeExternalToolConfig | RuntimeLocalToolConfig | RuntimeSubagentToolConfig;
53920
55079
  interface RuntimeLocalToolConfig {
@@ -54277,7 +55436,12 @@ interface LogQueryParams {
54277
55436
  executionId?: string;
54278
55437
  surfaceId?: string;
54279
55438
  conversationId?: string;
55439
+ /** Substring match on a span's message, name, operation, tool name or error class. */
54280
55440
  search?: string;
55441
+ /** Comma-separated statuses (completed,failed,unknown,running,queued,cancelled). */
55442
+ status?: string;
55443
+ /** Comma-separated entry types (flow,step,tool,batch,system,agent,model,schedule,audit). */
55444
+ type?: string;
54281
55445
  limit?: number;
54282
55446
  cursor?: string;
54283
55447
  order?: 'asc' | 'desc';
@@ -57924,6 +59088,12 @@ interface RunListRow {
57924
59088
  spanCount: number | null;
57925
59089
  inputTokens: number | null;
57926
59090
  outputTokens: number | null;
59091
+ /** Prompt-cache reads over the run's model calls (subset of inputTokens); `GET /v1/runs/{id}` only. */
59092
+ cacheReadTokens?: number | null;
59093
+ /** Prompt-cache writes over the run's model calls (subset of inputTokens); `GET /v1/runs/{id}` only. */
59094
+ cacheWriteTokens?: number | null;
59095
+ /** Reasoning tokens over the run's model calls (subset of outputTokens); `GET /v1/runs/{id}` only. */
59096
+ reasoningTokens?: number | null;
57927
59097
  totalCost: string | null;
57928
59098
  selfReportedCost: string | null;
57929
59099
  /**
@@ -58014,6 +59184,8 @@ interface RunListResponse {
58014
59184
  hasMore: boolean;
58015
59185
  hasPrev: boolean;
58016
59186
  limit: number;
59187
+ /** True when the supplied cursor was rejected and the read restarted at page one; stop paging. */
59188
+ cursorReset?: boolean;
58017
59189
  };
58018
59190
  window: {
58019
59191
  from: string;
@@ -61396,6 +62568,8 @@ interface AgentRuntimeToolDefinition {
61396
62568
  toolType: 'flow' | 'custom' | 'external' | 'local' | 'subagent';
61397
62569
  parametersSchema: Record<string, unknown>;
61398
62570
  config?: Record<string, unknown>;
62571
+ /** Parameters filled from execution variables and hidden from the model's schema. */
62572
+ hiddenParameterNames?: string[];
61399
62573
  }
61400
62574
  /**
61401
62575
  * Agent execute request
@@ -64333,4 +65507,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
64333
65507
  declare function getDefaultPlanPath(taskName: string): string;
64334
65508
  declare function sanitizeTaskSlug(taskName: string): string;
64335
65509
 
64336
- export { type AIGrader, type ActivateAgentAliasInput, type ActivateAgentPromotionInput, type Agent, type AgentAdmissionOptions, type AgentAlias, type AgentAliasActivation, type AgentAliasArchiveFailure, type AgentAliasArchived, AgentAliasDependencyError, type AgentAliasList, AgentAliasNotFoundError, AgentAliasPreviewLimitError, AgentAliasRevisionMismatchError, AgentAliasRevisionRequiredError, type AgentAliasTransport, AgentAliasesNamespace, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, type AgentDeploymentList, type AgentDeploymentPromotion, type AgentDeploymentReceipt, AgentDeploymentsNamespace, 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, AgentPromotionError, type AgentPromotionManifest, type AgentPromotionTransport, type AgentPromotionValidation, type AgentPullResult, type AgentReflectionEvent, type AgentRunInsightsResponse, 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 ArchiveAgentAliasEverywhereResult, type ArchiveAgentAliasInput, 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, type DispatchDetachedToolOutputResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeJsonResponse, type DispatchResumeRequest, type DispatchResumeResponse, ENSURE_RELEASE_DEPLOY_CONFLICT_MESSAGE, 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, type EvalAgentSelector, type EvalAgentTargetResolution, 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 EvalRunEvidence, 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 ExecutionCounts, 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 HealthInsight, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type InputDeliveryReceipt, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, LIVE_AGENT_ALIAS, type ListAgentAliasesOptions, type ListAgentDeploymentsOptions, 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 LogSearchedWindow, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type MetricDelta, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type OrganizationAgentAlias, type OrganizationAgentAliasList, type PaginationResponse, type PersistedGraderOutcome, type PrepareAgentPromotionInput, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, type ProductionHealthQuery, type ProductionHealthResponse, ProductsNamespace, type PromoteAgentInput, type PromoteAgentResult, 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 RollbackAgentAliasInput, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunListParams, type RunListResponse, type RunListRow, 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, RunsNamespace, 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 SkillBindingWithAgent as RuntypeSkillBindingWithAgent, 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 SandboxDeployEffectivePolicy, type SandboxDeployRetention, type SandboxDeploySleepPolicy, 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 SlackAppStatusResponse, 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 UpdatedAgent, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateAgentPromotionInput, 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, activateAgentPromotion, agentAliasErrorCode, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildExecutionEventsPath, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildObservationMaskMarker, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, combineAbortSignals, 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, prepareAgentPromotion, processStream, promoteAgent, promotionIdempotencyKey, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, validateAgentPromotion, withDetachedReconnect, withUnifiedEvents };
65510
+ export { type AIGrader, type ActivateAgentAliasInput, type ActivateAgentPromotionInput, type Agent, type AgentAdmissionOptions, type AgentAlias, type AgentAliasActivation, type AgentAliasArchiveFailure, type AgentAliasArchived, AgentAliasDependencyError, type AgentAliasList, AgentAliasNotFoundError, AgentAliasPreviewLimitError, AgentAliasRevisionMismatchError, AgentAliasRevisionRequiredError, type AgentAliasTransport, AgentAliasesNamespace, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, type AgentDeploymentList, type AgentDeploymentPromotion, type AgentDeploymentReceipt, AgentDeploymentsNamespace, 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, AgentPromotionError, type AgentPromotionManifest, type AgentPromotionTransport, type AgentPromotionValidation, type AgentPullResult, type AgentReflectionEvent, type AgentRunInsightsResponse, 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 ArchiveAgentAliasEverywhereResult, type ArchiveAgentAliasInput, 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 BuiltinToolExecuteResponse, 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, type DispatchDetachedToolOutputResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeJsonResponse, type DispatchResumeRequest, type DispatchResumeResponse, ENSURE_RELEASE_DEPLOY_CONFLICT_MESSAGE, 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, type EvalAgentSelector, type EvalAgentTargetResolution, 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 EvalRunEvidence, 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 ExecutionCounts, 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 HealthInsight, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type InputDeliveryReceipt, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, LIVE_AGENT_ALIAS, type ListAgentAliasesOptions, type ListAgentDeploymentsOptions, 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 LogSearchedWindow, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type MetricDelta, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type OrganizationAgentAlias, type OrganizationAgentAliasList, type PaginationResponse, type PersistedGraderOutcome, type PrepareAgentPromotionInput, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, type ProductionHealthQuery, type ProductionHealthResponse, ProductsNamespace, type PromoteAgentInput, type PromoteAgentResult, 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 RollbackAgentAliasInput, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunListParams, type RunListResponse, type RunListRow, 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, RunsNamespace, 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 SkillBindingWithAgent as RuntypeSkillBindingWithAgent, 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 SandboxDeployEffectivePolicy, type SandboxDeployRetention, type SandboxDeploySleepPolicy, type SavedToolExecuteResponse, 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 SlackAppStatusResponse, 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 UpdatedAgent, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateAgentPromotionInput, 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, activateAgentPromotion, agentAliasErrorCode, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildExecutionEventsPath, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildObservationMaskMarker, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, combineAbortSignals, 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, isBuiltinToolExecuteResponse, 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, prepareAgentPromotion, processStream, promoteAgent, promotionIdempotencyKey, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, validateAgentPromotion, withDetachedReconnect, withUnifiedEvents };