@runtypelabs/sdk 10.2.3 → 10.3.1

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.ts 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;
@@ -1035,6 +1037,7 @@ interface paths {
1035
1037
  [key: string]: unknown;
1036
1038
  };
1037
1039
  description: string;
1040
+ hiddenParameterNames?: string[];
1038
1041
  idempotent?: boolean;
1039
1042
  name: string;
1040
1043
  parametersSchema: {
@@ -1551,6 +1554,7 @@ interface paths {
1551
1554
  [key: string]: unknown;
1552
1555
  };
1553
1556
  description: string;
1557
+ hiddenParameterNames?: string[];
1554
1558
  idempotent?: boolean;
1555
1559
  name: string;
1556
1560
  parametersSchema: {
@@ -2115,6 +2119,8 @@ interface paths {
2115
2119
  url: string;
2116
2120
  }[];
2117
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;
2118
2124
  /** @enum {string} */
2119
2125
  setupMode?: "create" | "connect";
2120
2126
  systemPrompt?: string;
@@ -2341,6 +2347,7 @@ interface paths {
2341
2347
  [key: string]: unknown;
2342
2348
  };
2343
2349
  description: string;
2350
+ hiddenParameterNames?: string[];
2344
2351
  idempotent?: boolean;
2345
2352
  name: string;
2346
2353
  parametersSchema: {
@@ -4350,7 +4357,8 @@ interface paths {
4350
4357
  };
4351
4358
  /**
4352
4359
  * List agent executions
4353
- * @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.
4354
4362
  */
4355
4363
  get: {
4356
4364
  parameters: {
@@ -9684,14 +9692,22 @@ interface paths {
9684
9692
  "application/json": {
9685
9693
  durableRecovery?: boolean;
9686
9694
  flowId?: string;
9687
- 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
+ };
9688
9700
  token: string;
9689
9701
  visitorHistory?: boolean;
9690
9702
  visitorToken?: string;
9691
9703
  } | {
9692
9704
  durableRecovery?: boolean;
9693
9705
  flowId?: string;
9694
- 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
+ };
9695
9711
  sessionId: string;
9696
9712
  token: string;
9697
9713
  visitorHistory?: boolean;
@@ -9700,7 +9716,11 @@ interface paths {
9700
9716
  conversationId: string;
9701
9717
  durableRecovery?: boolean;
9702
9718
  flowId?: string;
9703
- 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
+ };
9704
9724
  token: string;
9705
9725
  visitorHistory?: boolean;
9706
9726
  visitorToken: string;
@@ -9708,7 +9728,11 @@ interface paths {
9708
9728
  conversationId: string;
9709
9729
  durableRecovery?: boolean;
9710
9730
  flowId?: string;
9711
- 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
+ };
9712
9736
  token: string;
9713
9737
  visitorHistory?: boolean;
9714
9738
  visitorToken?: string;
@@ -14080,7 +14104,30 @@ interface paths {
14080
14104
  type: "reasoning";
14081
14105
  })[];
14082
14106
  /** @enum {string} */
14083
- role: "system" | "user" | "assistant";
14107
+ role: "system" | "user" | "assistant" | "tool";
14108
+ /** @description Assistant messages only. Every entry must be answered by the next tool message. */
14109
+ toolCalls?: {
14110
+ /** @default {} */
14111
+ args?: {
14112
+ [key: string]: unknown;
14113
+ };
14114
+ providerOptions?: {
14115
+ [key: string]: unknown;
14116
+ };
14117
+ toolCallId: string;
14118
+ toolName: string;
14119
+ }[];
14120
+ /** @description Tool messages only, and required on them. */
14121
+ toolResults?: {
14122
+ providerOptions?: {
14123
+ [key: string]: unknown;
14124
+ };
14125
+ /** @description Whatever the tool returned. */
14126
+ result?: unknown;
14127
+ /** @description Must answer a toolCalls entry issued earlier. */
14128
+ toolCallId: string;
14129
+ toolName: string;
14130
+ }[];
14084
14131
  }[];
14085
14132
  toolOutputs?: {
14086
14133
  [key: string]: unknown;
@@ -14218,7 +14265,7 @@ interface paths {
14218
14265
  "application/json": {
14219
14266
  /** @description The execution ID to resume */
14220
14267
  executionId: string;
14221
- /** @description Optional conversation override for the resumed leg. It REPLACES the stored conversation rather than being appended to it, so send the full conversation you want the model to see, not just the new turn. Omit it to keep the stored conversation unchanged. A `system` message must come first, as in any conversation. Note this is the flow client-tool continuation contract; an agent checkpoint resume (`options.resumeFrom` on `/v1/dispatch`) instead APPENDS its `messages` after the snapshot history — send only new input there. */
14268
+ /** @description Optional conversation override for the resumed leg. It REPLACES the stored conversation rather than being appended to it, so send the full conversation you want the model to see, not just the new turn. Omit it to keep the stored conversation unchanged. A `system` message must come first, as in any conversation. Prior tool turns use the `/v1/dispatch` message shape: an assistant message with `toolCalls`, answered by a `tool` message with `toolResults`. Note this is the flow client-tool continuation contract; an agent checkpoint resume (`options.resumeFrom` on `/v1/dispatch`) instead APPENDS its `messages` after the snapshot history — send only new input there. */
14222
14269
  messages?: {
14223
14270
  content: string | ({
14224
14271
  text: string;
@@ -14244,7 +14291,30 @@ interface paths {
14244
14291
  type: "reasoning";
14245
14292
  })[];
14246
14293
  /** @enum {string} */
14247
- role: "system" | "user" | "assistant";
14294
+ role: "system" | "user" | "assistant" | "tool";
14295
+ /** @description Assistant messages only. Every entry must be answered by the next tool message. */
14296
+ toolCalls?: {
14297
+ /** @default {} */
14298
+ args?: {
14299
+ [key: string]: unknown;
14300
+ };
14301
+ providerOptions?: {
14302
+ [key: string]: unknown;
14303
+ };
14304
+ toolCallId: string;
14305
+ toolName: string;
14306
+ }[];
14307
+ /** @description Tool messages only, and required on them. */
14308
+ toolResults?: {
14309
+ providerOptions?: {
14310
+ [key: string]: unknown;
14311
+ };
14312
+ /** @description Whatever the tool returned. */
14313
+ result?: unknown;
14314
+ /** @description Must answer a toolCalls entry issued earlier. */
14315
+ toolCallId: string;
14316
+ toolName: string;
14317
+ }[];
14248
14318
  }[];
14249
14319
  /**
14250
14320
  * @description Whether to stream the response via SSE
@@ -25194,8 +25264,12 @@ interface paths {
25194
25264
  surfaceId?: string;
25195
25265
  /** @description Filter by conversation ID */
25196
25266
  conversationId?: string;
25197
- /** @description Full-text search in message */
25267
+ /** @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. */
25198
25268
  search?: string;
25269
+ /** @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. */
25270
+ status?: string;
25271
+ /** @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. */
25272
+ type?: string;
25199
25273
  /** @description Max results per page (default 500, max 1000) */
25200
25274
  limit?: string;
25201
25275
  /** @description Pagination cursor */
@@ -25423,8 +25497,12 @@ interface paths {
25423
25497
  surfaceId?: string;
25424
25498
  /** @description Filter by conversation ID */
25425
25499
  conversationId?: string;
25426
- /** @description Full-text search in message */
25500
+ /** @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. */
25427
25501
  search?: string;
25502
+ /** @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. */
25503
+ status?: string;
25504
+ /** @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. */
25505
+ type?: string;
25428
25506
  /** @description Max results per page (default 500, max 1000) */
25429
25507
  limit?: string;
25430
25508
  /** @description Pagination cursor */
@@ -30781,6 +30859,10 @@ interface paths {
30781
30859
  batchExecutionId: string | null;
30782
30860
  /** @description Budget exhausted. Absent means the overlay did not answer, which is not false and not null. */
30783
30861
  budgetExhausted?: boolean | null;
30862
+ /** @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. */
30863
+ cacheReadTokens?: number | null;
30864
+ /** @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. */
30865
+ cacheWriteTokens?: number | null;
30784
30866
  /** @description Cancel request. Absent means the overlay did not answer, which is not false and not null. */
30785
30867
  cancelRequestedAt?: string | null;
30786
30868
  /** @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. */
@@ -30838,6 +30920,8 @@ interface paths {
30838
30920
  pendingApproval?: unknown;
30839
30921
  /** @description Live progress document. Absent means the overlay did not answer, which is not false and not null. */
30840
30922
  progress?: unknown;
30923
+ /** @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. */
30924
+ reasoningTokens?: number | null;
30841
30925
  /** @description Record this run processed. */
30842
30926
  recordId: string | null;
30843
30927
  /** @description Retention removed the spans; the run still lists and reads as completed. */
@@ -31845,6 +31929,7 @@ interface paths {
31845
31929
  "application/json": {
31846
31930
  behavior?: unknown;
31847
31931
  config?: unknown;
31932
+ /** @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 }). */
31848
31933
  inbound?: {
31849
31934
  [key: string]: unknown;
31850
31935
  };
@@ -32314,6 +32399,7 @@ interface paths {
32314
32399
  "application/json": {
32315
32400
  behavior?: unknown;
32316
32401
  config?: unknown;
32402
+ /** @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 }). */
32317
32403
  inbound?: {
32318
32404
  [key: string]: unknown;
32319
32405
  };
@@ -38177,6 +38263,764 @@ interface paths {
38177
38263
  patch?: never;
38178
38264
  trace?: never;
38179
38265
  };
38266
+ "/v1/question-sets": {
38267
+ parameters: {
38268
+ query?: never;
38269
+ header?: never;
38270
+ path?: never;
38271
+ cookie?: never;
38272
+ };
38273
+ /**
38274
+ * List question sets
38275
+ * @description List the organization's question sets with cursor pagination, newest first.
38276
+ */
38277
+ get: {
38278
+ parameters: {
38279
+ query?: {
38280
+ limit?: string;
38281
+ cursor?: string;
38282
+ direction?: "next" | "prev";
38283
+ includeCount?: string;
38284
+ };
38285
+ header?: never;
38286
+ path?: never;
38287
+ cookie?: never;
38288
+ };
38289
+ requestBody?: never;
38290
+ responses: {
38291
+ /** @description Paginated question sets */
38292
+ 200: {
38293
+ headers: {
38294
+ [name: string]: unknown;
38295
+ };
38296
+ content: {
38297
+ "application/json": {
38298
+ data: components["schemas"]["QuestionSetListItem"][];
38299
+ pagination: components["schemas"]["Pagination"];
38300
+ };
38301
+ };
38302
+ };
38303
+ /** @description Invalid request */
38304
+ 400: {
38305
+ headers: {
38306
+ [name: string]: unknown;
38307
+ };
38308
+ content: {
38309
+ "application/json": components["schemas"]["QuestionSetError"];
38310
+ };
38311
+ };
38312
+ /** @description Unauthorized */
38313
+ 401: {
38314
+ headers: {
38315
+ [name: string]: unknown;
38316
+ };
38317
+ content: {
38318
+ "application/json": components["schemas"]["Error"];
38319
+ };
38320
+ };
38321
+ /** @description Insufficient permissions, or no organization context */
38322
+ 403: {
38323
+ headers: {
38324
+ [name: string]: unknown;
38325
+ };
38326
+ content: {
38327
+ "application/json": components["schemas"]["Error"];
38328
+ };
38329
+ };
38330
+ /** @description Not found */
38331
+ 404: {
38332
+ headers: {
38333
+ [name: string]: unknown;
38334
+ };
38335
+ content: {
38336
+ "application/json": components["schemas"]["QuestionSetError"];
38337
+ };
38338
+ };
38339
+ };
38340
+ };
38341
+ put?: never;
38342
+ /**
38343
+ * Create a question set
38344
+ * @description Create a question set with its first version as a draft. Publish the version before a tool, step or grader can reference it.
38345
+ */
38346
+ post: {
38347
+ parameters: {
38348
+ query?: never;
38349
+ header?: never;
38350
+ path?: never;
38351
+ cookie?: never;
38352
+ };
38353
+ requestBody?: {
38354
+ content: {
38355
+ "application/json": {
38356
+ description?: string | null;
38357
+ inputMapping?: {
38358
+ [key: string]: string;
38359
+ } | null;
38360
+ model?: string | null;
38361
+ name: string;
38362
+ /** @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. */
38363
+ questions: {
38364
+ [key: string]: unknown;
38365
+ };
38366
+ /** @description Stable handle, unique in the organization: lowercase letters, digits, `-` and `_`, up to 64. */
38367
+ slug: string;
38368
+ };
38369
+ };
38370
+ };
38371
+ responses: {
38372
+ /** @description Created */
38373
+ 201: {
38374
+ headers: {
38375
+ [name: string]: unknown;
38376
+ };
38377
+ content: {
38378
+ "application/json": {
38379
+ questionSet: components["schemas"]["QuestionSet"];
38380
+ version: components["schemas"]["QuestionSetVersion"];
38381
+ };
38382
+ };
38383
+ };
38384
+ /** @description Invalid request */
38385
+ 400: {
38386
+ headers: {
38387
+ [name: string]: unknown;
38388
+ };
38389
+ content: {
38390
+ "application/json": components["schemas"]["QuestionSetError"];
38391
+ };
38392
+ };
38393
+ /** @description Unauthorized */
38394
+ 401: {
38395
+ headers: {
38396
+ [name: string]: unknown;
38397
+ };
38398
+ content: {
38399
+ "application/json": components["schemas"]["Error"];
38400
+ };
38401
+ };
38402
+ /** @description Insufficient permissions, or no organization context */
38403
+ 403: {
38404
+ headers: {
38405
+ [name: string]: unknown;
38406
+ };
38407
+ content: {
38408
+ "application/json": components["schemas"]["Error"];
38409
+ };
38410
+ };
38411
+ /** @description Not found */
38412
+ 404: {
38413
+ headers: {
38414
+ [name: string]: unknown;
38415
+ };
38416
+ content: {
38417
+ "application/json": components["schemas"]["QuestionSetError"];
38418
+ };
38419
+ };
38420
+ /** @description Conflict */
38421
+ 409: {
38422
+ headers: {
38423
+ [name: string]: unknown;
38424
+ };
38425
+ content: {
38426
+ "application/json": components["schemas"]["QuestionSetError"];
38427
+ };
38428
+ };
38429
+ };
38430
+ };
38431
+ delete?: never;
38432
+ options?: never;
38433
+ head?: never;
38434
+ patch?: never;
38435
+ trace?: never;
38436
+ };
38437
+ "/v1/question-sets/{id}": {
38438
+ parameters: {
38439
+ query?: never;
38440
+ header?: never;
38441
+ path?: never;
38442
+ cookie?: never;
38443
+ };
38444
+ /**
38445
+ * Get a question set
38446
+ * @description A question set with its versions, newest first.
38447
+ */
38448
+ get: {
38449
+ parameters: {
38450
+ query?: never;
38451
+ header?: never;
38452
+ path: {
38453
+ id: string;
38454
+ };
38455
+ cookie?: never;
38456
+ };
38457
+ requestBody?: never;
38458
+ responses: {
38459
+ /** @description Question set */
38460
+ 200: {
38461
+ headers: {
38462
+ [name: string]: unknown;
38463
+ };
38464
+ content: {
38465
+ "application/json": {
38466
+ questionSet: components["schemas"]["QuestionSet"];
38467
+ versions: components["schemas"]["QuestionSetVersion"][];
38468
+ };
38469
+ };
38470
+ };
38471
+ /** @description Invalid request */
38472
+ 400: {
38473
+ headers: {
38474
+ [name: string]: unknown;
38475
+ };
38476
+ content: {
38477
+ "application/json": components["schemas"]["QuestionSetError"];
38478
+ };
38479
+ };
38480
+ /** @description Unauthorized */
38481
+ 401: {
38482
+ headers: {
38483
+ [name: string]: unknown;
38484
+ };
38485
+ content: {
38486
+ "application/json": components["schemas"]["Error"];
38487
+ };
38488
+ };
38489
+ /** @description Insufficient permissions, or no organization context */
38490
+ 403: {
38491
+ headers: {
38492
+ [name: string]: unknown;
38493
+ };
38494
+ content: {
38495
+ "application/json": components["schemas"]["Error"];
38496
+ };
38497
+ };
38498
+ /** @description Not found */
38499
+ 404: {
38500
+ headers: {
38501
+ [name: string]: unknown;
38502
+ };
38503
+ content: {
38504
+ "application/json": components["schemas"]["QuestionSetError"];
38505
+ };
38506
+ };
38507
+ };
38508
+ };
38509
+ /**
38510
+ * Update a question set
38511
+ * @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.
38512
+ */
38513
+ put: {
38514
+ parameters: {
38515
+ query?: never;
38516
+ header?: never;
38517
+ path: {
38518
+ id: string;
38519
+ };
38520
+ cookie?: never;
38521
+ };
38522
+ requestBody?: {
38523
+ content: {
38524
+ "application/json": {
38525
+ description?: string | null;
38526
+ inputMapping?: {
38527
+ [key: string]: string;
38528
+ } | null;
38529
+ model?: string | null;
38530
+ name?: string;
38531
+ /** @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. */
38532
+ questions?: {
38533
+ [key: string]: unknown;
38534
+ };
38535
+ };
38536
+ };
38537
+ };
38538
+ responses: {
38539
+ /** @description Updated */
38540
+ 200: {
38541
+ headers: {
38542
+ [name: string]: unknown;
38543
+ };
38544
+ content: {
38545
+ "application/json": {
38546
+ questionSet: components["schemas"]["QuestionSet"];
38547
+ version: components["schemas"]["QuestionSetVersion"] & (Record<string, never> | null);
38548
+ };
38549
+ };
38550
+ };
38551
+ /** @description Invalid request */
38552
+ 400: {
38553
+ headers: {
38554
+ [name: string]: unknown;
38555
+ };
38556
+ content: {
38557
+ "application/json": components["schemas"]["QuestionSetError"];
38558
+ };
38559
+ };
38560
+ /** @description Unauthorized */
38561
+ 401: {
38562
+ headers: {
38563
+ [name: string]: unknown;
38564
+ };
38565
+ content: {
38566
+ "application/json": components["schemas"]["Error"];
38567
+ };
38568
+ };
38569
+ /** @description Insufficient permissions, or no organization context */
38570
+ 403: {
38571
+ headers: {
38572
+ [name: string]: unknown;
38573
+ };
38574
+ content: {
38575
+ "application/json": components["schemas"]["Error"];
38576
+ };
38577
+ };
38578
+ /** @description Not found */
38579
+ 404: {
38580
+ headers: {
38581
+ [name: string]: unknown;
38582
+ };
38583
+ content: {
38584
+ "application/json": components["schemas"]["QuestionSetError"];
38585
+ };
38586
+ };
38587
+ /** @description Conflict */
38588
+ 409: {
38589
+ headers: {
38590
+ [name: string]: unknown;
38591
+ };
38592
+ content: {
38593
+ "application/json": components["schemas"]["QuestionSetError"];
38594
+ };
38595
+ };
38596
+ };
38597
+ };
38598
+ post?: never;
38599
+ delete?: never;
38600
+ options?: never;
38601
+ head?: never;
38602
+ patch?: never;
38603
+ trace?: never;
38604
+ };
38605
+ "/v1/question-sets/{id}/resolved": {
38606
+ parameters: {
38607
+ query?: never;
38608
+ header?: never;
38609
+ path?: never;
38610
+ cookie?: never;
38611
+ };
38612
+ /**
38613
+ * Resolve a question set
38614
+ * @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.
38615
+ */
38616
+ get: {
38617
+ parameters: {
38618
+ query?: {
38619
+ version?: number;
38620
+ };
38621
+ header?: never;
38622
+ path: {
38623
+ id: string;
38624
+ };
38625
+ cookie?: never;
38626
+ };
38627
+ requestBody?: never;
38628
+ responses: {
38629
+ /** @description Resolved */
38630
+ 200: {
38631
+ headers: {
38632
+ [name: string]: unknown;
38633
+ };
38634
+ content: {
38635
+ "application/json": components["schemas"]["ResolvedQuestionSet"];
38636
+ };
38637
+ };
38638
+ /** @description Invalid request */
38639
+ 400: {
38640
+ headers: {
38641
+ [name: string]: unknown;
38642
+ };
38643
+ content: {
38644
+ "application/json": components["schemas"]["QuestionSetError"];
38645
+ };
38646
+ };
38647
+ /** @description Unauthorized */
38648
+ 401: {
38649
+ headers: {
38650
+ [name: string]: unknown;
38651
+ };
38652
+ content: {
38653
+ "application/json": components["schemas"]["Error"];
38654
+ };
38655
+ };
38656
+ /** @description Insufficient permissions, or no organization context */
38657
+ 403: {
38658
+ headers: {
38659
+ [name: string]: unknown;
38660
+ };
38661
+ content: {
38662
+ "application/json": components["schemas"]["Error"];
38663
+ };
38664
+ };
38665
+ /** @description Not found */
38666
+ 404: {
38667
+ headers: {
38668
+ [name: string]: unknown;
38669
+ };
38670
+ content: {
38671
+ "application/json": components["schemas"]["QuestionSetError"];
38672
+ };
38673
+ };
38674
+ };
38675
+ };
38676
+ put?: never;
38677
+ post?: never;
38678
+ delete?: never;
38679
+ options?: never;
38680
+ head?: never;
38681
+ patch?: never;
38682
+ trace?: never;
38683
+ };
38684
+ "/v1/question-sets/{id}/versions": {
38685
+ parameters: {
38686
+ query?: never;
38687
+ header?: never;
38688
+ path?: never;
38689
+ cookie?: never;
38690
+ };
38691
+ /**
38692
+ * List a question set's versions
38693
+ * @description Every version, newest first.
38694
+ */
38695
+ get: {
38696
+ parameters: {
38697
+ query?: never;
38698
+ header?: never;
38699
+ path: {
38700
+ id: string;
38701
+ };
38702
+ cookie?: never;
38703
+ };
38704
+ requestBody?: never;
38705
+ responses: {
38706
+ /** @description Versions */
38707
+ 200: {
38708
+ headers: {
38709
+ [name: string]: unknown;
38710
+ };
38711
+ content: {
38712
+ "application/json": {
38713
+ data: components["schemas"]["QuestionSetVersion"][];
38714
+ };
38715
+ };
38716
+ };
38717
+ /** @description Invalid request */
38718
+ 400: {
38719
+ headers: {
38720
+ [name: string]: unknown;
38721
+ };
38722
+ content: {
38723
+ "application/json": components["schemas"]["QuestionSetError"];
38724
+ };
38725
+ };
38726
+ /** @description Unauthorized */
38727
+ 401: {
38728
+ headers: {
38729
+ [name: string]: unknown;
38730
+ };
38731
+ content: {
38732
+ "application/json": components["schemas"]["Error"];
38733
+ };
38734
+ };
38735
+ /** @description Insufficient permissions, or no organization context */
38736
+ 403: {
38737
+ headers: {
38738
+ [name: string]: unknown;
38739
+ };
38740
+ content: {
38741
+ "application/json": components["schemas"]["Error"];
38742
+ };
38743
+ };
38744
+ /** @description Not found */
38745
+ 404: {
38746
+ headers: {
38747
+ [name: string]: unknown;
38748
+ };
38749
+ content: {
38750
+ "application/json": components["schemas"]["QuestionSetError"];
38751
+ };
38752
+ };
38753
+ };
38754
+ };
38755
+ put?: never;
38756
+ post?: never;
38757
+ delete?: never;
38758
+ options?: never;
38759
+ head?: never;
38760
+ patch?: never;
38761
+ trace?: never;
38762
+ };
38763
+ "/v1/question-sets/{id}/versions/{versionNumber}/calibrations": {
38764
+ parameters: {
38765
+ query?: never;
38766
+ header?: never;
38767
+ path?: never;
38768
+ cookie?: never;
38769
+ };
38770
+ /**
38771
+ * List a question set version's calibrations
38772
+ * @description The calibration history of one version, newest first, with cursor pagination.
38773
+ */
38774
+ get: {
38775
+ parameters: {
38776
+ query?: {
38777
+ /** @description 1-200, default 50. */
38778
+ limit?: string;
38779
+ /** @description `pagination.nextCursor` from a previous page. */
38780
+ cursor?: string;
38781
+ };
38782
+ header?: never;
38783
+ path: {
38784
+ id: string;
38785
+ versionNumber: number;
38786
+ };
38787
+ cookie?: never;
38788
+ };
38789
+ requestBody?: never;
38790
+ responses: {
38791
+ /** @description Calibrations */
38792
+ 200: {
38793
+ headers: {
38794
+ [name: string]: unknown;
38795
+ };
38796
+ content: {
38797
+ "application/json": {
38798
+ data: components["schemas"]["JudgmentCalibrationRecord"][];
38799
+ pagination: components["schemas"]["Pagination"];
38800
+ };
38801
+ };
38802
+ };
38803
+ /** @description Invalid request */
38804
+ 400: {
38805
+ headers: {
38806
+ [name: string]: unknown;
38807
+ };
38808
+ content: {
38809
+ "application/json": components["schemas"]["QuestionSetError"];
38810
+ };
38811
+ };
38812
+ /** @description Unauthorized */
38813
+ 401: {
38814
+ headers: {
38815
+ [name: string]: unknown;
38816
+ };
38817
+ content: {
38818
+ "application/json": components["schemas"]["Error"];
38819
+ };
38820
+ };
38821
+ /** @description Insufficient permissions, or no organization context */
38822
+ 403: {
38823
+ headers: {
38824
+ [name: string]: unknown;
38825
+ };
38826
+ content: {
38827
+ "application/json": components["schemas"]["Error"];
38828
+ };
38829
+ };
38830
+ /** @description Not found */
38831
+ 404: {
38832
+ headers: {
38833
+ [name: string]: unknown;
38834
+ };
38835
+ content: {
38836
+ "application/json": components["schemas"]["QuestionSetError"];
38837
+ };
38838
+ };
38839
+ };
38840
+ };
38841
+ put?: never;
38842
+ /**
38843
+ * Record a calibration for a question set version
38844
+ * @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.
38845
+ */
38846
+ post: {
38847
+ parameters: {
38848
+ query?: never;
38849
+ header?: never;
38850
+ path: {
38851
+ id: string;
38852
+ versionNumber: number;
38853
+ };
38854
+ cookie?: never;
38855
+ };
38856
+ requestBody?: {
38857
+ content: {
38858
+ "application/json": {
38859
+ /** @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`. */
38860
+ evalRunId?: string;
38861
+ record: {
38862
+ labeledSetRef: string;
38863
+ measuredModel: string;
38864
+ perQuestion: {
38865
+ [key: string]: {
38866
+ ece: number;
38867
+ handledRate: number;
38868
+ heldOutAccuracy: number;
38869
+ targetAccuracy: number;
38870
+ threshold: number;
38871
+ };
38872
+ };
38873
+ };
38874
+ };
38875
+ };
38876
+ };
38877
+ responses: {
38878
+ /** @description Recorded */
38879
+ 201: {
38880
+ headers: {
38881
+ [name: string]: unknown;
38882
+ };
38883
+ content: {
38884
+ "application/json": {
38885
+ calibration: components["schemas"]["JudgmentCalibrationRecord"];
38886
+ version: components["schemas"]["QuestionSetVersion"];
38887
+ };
38888
+ };
38889
+ };
38890
+ /** @description Invalid request */
38891
+ 400: {
38892
+ headers: {
38893
+ [name: string]: unknown;
38894
+ };
38895
+ content: {
38896
+ "application/json": components["schemas"]["QuestionSetError"];
38897
+ };
38898
+ };
38899
+ /** @description Unauthorized */
38900
+ 401: {
38901
+ headers: {
38902
+ [name: string]: unknown;
38903
+ };
38904
+ content: {
38905
+ "application/json": components["schemas"]["Error"];
38906
+ };
38907
+ };
38908
+ /** @description Insufficient permissions, or no organization context */
38909
+ 403: {
38910
+ headers: {
38911
+ [name: string]: unknown;
38912
+ };
38913
+ content: {
38914
+ "application/json": components["schemas"]["Error"];
38915
+ };
38916
+ };
38917
+ /** @description Not found */
38918
+ 404: {
38919
+ headers: {
38920
+ [name: string]: unknown;
38921
+ };
38922
+ content: {
38923
+ "application/json": components["schemas"]["QuestionSetError"];
38924
+ };
38925
+ };
38926
+ /** @description Conflict */
38927
+ 409: {
38928
+ headers: {
38929
+ [name: string]: unknown;
38930
+ };
38931
+ content: {
38932
+ "application/json": components["schemas"]["QuestionSetError"];
38933
+ };
38934
+ };
38935
+ };
38936
+ };
38937
+ delete?: never;
38938
+ options?: never;
38939
+ head?: never;
38940
+ patch?: never;
38941
+ trace?: never;
38942
+ };
38943
+ "/v1/question-sets/{id}/versions/{versionNumber}/publish": {
38944
+ parameters: {
38945
+ query?: never;
38946
+ header?: never;
38947
+ path?: never;
38948
+ cookie?: never;
38949
+ };
38950
+ get?: never;
38951
+ put?: never;
38952
+ /**
38953
+ * Publish a question set version
38954
+ * @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.
38955
+ */
38956
+ post: {
38957
+ parameters: {
38958
+ query?: never;
38959
+ header?: never;
38960
+ path: {
38961
+ id: string;
38962
+ versionNumber: number;
38963
+ };
38964
+ cookie?: never;
38965
+ };
38966
+ requestBody?: never;
38967
+ responses: {
38968
+ /** @description Published */
38969
+ 200: {
38970
+ headers: {
38971
+ [name: string]: unknown;
38972
+ };
38973
+ content: {
38974
+ "application/json": {
38975
+ questionSet: components["schemas"]["QuestionSet"];
38976
+ version: components["schemas"]["QuestionSetVersion"];
38977
+ };
38978
+ };
38979
+ };
38980
+ /** @description Invalid request */
38981
+ 400: {
38982
+ headers: {
38983
+ [name: string]: unknown;
38984
+ };
38985
+ content: {
38986
+ "application/json": components["schemas"]["QuestionSetError"];
38987
+ };
38988
+ };
38989
+ /** @description Unauthorized */
38990
+ 401: {
38991
+ headers: {
38992
+ [name: string]: unknown;
38993
+ };
38994
+ content: {
38995
+ "application/json": components["schemas"]["Error"];
38996
+ };
38997
+ };
38998
+ /** @description Insufficient permissions, or no organization context */
38999
+ 403: {
39000
+ headers: {
39001
+ [name: string]: unknown;
39002
+ };
39003
+ content: {
39004
+ "application/json": components["schemas"]["Error"];
39005
+ };
39006
+ };
39007
+ /** @description Not found */
39008
+ 404: {
39009
+ headers: {
39010
+ [name: string]: unknown;
39011
+ };
39012
+ content: {
39013
+ "application/json": components["schemas"]["QuestionSetError"];
39014
+ };
39015
+ };
39016
+ };
39017
+ };
39018
+ delete?: never;
39019
+ options?: never;
39020
+ head?: never;
39021
+ patch?: never;
39022
+ trace?: never;
39023
+ };
38180
39024
  "/v1/records": {
38181
39025
  parameters: {
38182
39026
  query?: never;
@@ -40039,7 +40883,7 @@ interface paths {
40039
40883
  };
40040
40884
  /**
40041
40885
  * List runs
40042
- * @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.
40886
+ * @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`.
40043
40887
  */
40044
40888
  get: {
40045
40889
  parameters: {
@@ -40098,6 +40942,8 @@ interface paths {
40098
40942
  "application/json": {
40099
40943
  data: components["schemas"]["RunListRow"][];
40100
40944
  pagination: {
40945
+ /** @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. */
40946
+ cursorReset?: boolean;
40101
40947
  hasMore: boolean;
40102
40948
  hasPrev: boolean;
40103
40949
  limit: number;
@@ -40138,22 +40984,6 @@ interface paths {
40138
40984
  "application/json": components["schemas"]["Error"];
40139
40985
  };
40140
40986
  };
40141
- /** @description No plane can answer: store run reads are off for this organization and the request names a predicate the control plane cannot express */
40142
- 404: {
40143
- headers: {
40144
- [name: string]: unknown;
40145
- };
40146
- content: {
40147
- "application/json": {
40148
- /**
40149
- * @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.
40150
- * @enum {string}
40151
- */
40152
- code: "run_history_unavailable";
40153
- error: string;
40154
- };
40155
- };
40156
- };
40157
40987
  /** @description Internal server error */
40158
40988
  500: {
40159
40989
  headers: {
@@ -45282,8 +46112,227 @@ interface paths {
45282
46112
  "application/json": components["schemas"]["Error"];
45283
46113
  };
45284
46114
  };
45285
- /** @description Not found */
45286
- 404: {
46115
+ /** @description Not found */
46116
+ 404: {
46117
+ headers: {
46118
+ [name: string]: unknown;
46119
+ };
46120
+ content: {
46121
+ "application/json": components["schemas"]["Error"];
46122
+ };
46123
+ };
46124
+ };
46125
+ };
46126
+ put?: never;
46127
+ post?: never;
46128
+ delete?: never;
46129
+ options?: never;
46130
+ head?: never;
46131
+ patch?: never;
46132
+ trace?: never;
46133
+ };
46134
+ "/v1/skills/{id}/versions/{versionId}/publish": {
46135
+ parameters: {
46136
+ query?: never;
46137
+ header?: never;
46138
+ path?: never;
46139
+ cookie?: never;
46140
+ };
46141
+ get?: never;
46142
+ put?: never;
46143
+ /** Publish a skill version */
46144
+ post: {
46145
+ parameters: {
46146
+ query?: never;
46147
+ header?: never;
46148
+ path: {
46149
+ id: string;
46150
+ versionId: string;
46151
+ };
46152
+ cookie?: never;
46153
+ };
46154
+ requestBody?: never;
46155
+ responses: {
46156
+ /** @description Published */
46157
+ 200: {
46158
+ headers: {
46159
+ [name: string]: unknown;
46160
+ };
46161
+ content: {
46162
+ "application/json": {
46163
+ success: boolean;
46164
+ };
46165
+ };
46166
+ };
46167
+ /** @description Unauthorized */
46168
+ 401: {
46169
+ headers: {
46170
+ [name: string]: unknown;
46171
+ };
46172
+ content: {
46173
+ "application/json": components["schemas"]["Error"];
46174
+ };
46175
+ };
46176
+ /** @description Insufficient permissions */
46177
+ 403: {
46178
+ headers: {
46179
+ [name: string]: unknown;
46180
+ };
46181
+ content: {
46182
+ "application/json": components["schemas"]["Error"];
46183
+ };
46184
+ };
46185
+ /** @description Not found */
46186
+ 404: {
46187
+ headers: {
46188
+ [name: string]: unknown;
46189
+ };
46190
+ content: {
46191
+ "application/json": components["schemas"]["Error"];
46192
+ };
46193
+ };
46194
+ };
46195
+ };
46196
+ delete?: never;
46197
+ options?: never;
46198
+ head?: never;
46199
+ patch?: never;
46200
+ trace?: never;
46201
+ };
46202
+ "/v1/surfaces": {
46203
+ parameters: {
46204
+ query?: never;
46205
+ header?: never;
46206
+ path?: never;
46207
+ cookie?: never;
46208
+ };
46209
+ /**
46210
+ * List surfaces
46211
+ * @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.
46212
+ */
46213
+ get: {
46214
+ parameters: {
46215
+ query?: {
46216
+ limit?: string;
46217
+ cursor?: string;
46218
+ productId?: string;
46219
+ type?: string;
46220
+ status?: string;
46221
+ };
46222
+ header?: never;
46223
+ path?: never;
46224
+ cookie?: never;
46225
+ };
46226
+ requestBody?: never;
46227
+ responses: {
46228
+ /** @description Paginated list of surfaces */
46229
+ 200: {
46230
+ headers: {
46231
+ [name: string]: unknown;
46232
+ };
46233
+ content: {
46234
+ "application/json": {
46235
+ data: {
46236
+ createdAt: string;
46237
+ /** @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. */
46238
+ endpoint: string | null;
46239
+ id: string;
46240
+ inbound: {
46241
+ appId?: string;
46242
+ /** @description Per-channel channelResponseMode and eagerness, keyed by channel ID. */
46243
+ channelOverrides?: {
46244
+ [key: string]: {
46245
+ /** @enum {string} */
46246
+ channelResponseMode?: "mention" | "judge" | "always";
46247
+ /** @enum {string} */
46248
+ eagerness?: "conservative" | "balanced" | "eager";
46249
+ };
46250
+ };
46251
+ /**
46252
+ * @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).
46253
+ * @enum {string}
46254
+ */
46255
+ channelResponseMode?: "mention" | "judge" | "always";
46256
+ /** @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. */
46257
+ contextBackfill?: {
46258
+ maxAgeMinutes?: number;
46259
+ maxMessages?: number;
46260
+ /** @enum {string} */
46261
+ mode?: "judged" | "window" | "none";
46262
+ };
46263
+ continueThreads?: boolean;
46264
+ /**
46265
+ * @description How readily judge mode replies: conservative, balanced (default) or eager. Each selects a pair of reply and silence thresholds.
46266
+ * @enum {string}
46267
+ */
46268
+ eagerness?: "conservative" | "balanced" | "eager";
46269
+ integrationId?: string;
46270
+ /** @description Whole-word, case-insensitive filter on unmentioned messages in always and judge mode; judge mode applies it before the judgment. */
46271
+ keywords?: {
46272
+ ignore?: string[];
46273
+ require?: string[];
46274
+ };
46275
+ listenChannels?: string[];
46276
+ listenDms?: boolean;
46277
+ /**
46278
+ * @description What judge mode does when the judgment lands between the two thresholds: silent (default) or reply.
46279
+ * @enum {string}
46280
+ */
46281
+ onUncertain?: "silent" | "reply";
46282
+ /** @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. */
46283
+ responseGateShadow?: boolean;
46284
+ /** @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". */
46285
+ responseRules?: string;
46286
+ teamId?: string;
46287
+ teamName?: string;
46288
+ /**
46289
+ * @deprecated
46290
+ * @description Deprecated; use channelResponseMode. true reads as mention, false as always.
46291
+ */
46292
+ triggerOnMention?: boolean;
46293
+ } | null;
46294
+ name: string;
46295
+ productId: string;
46296
+ /** @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. */
46297
+ productName: string;
46298
+ status: string;
46299
+ type: string;
46300
+ updatedAt: string;
46301
+ webhookHealth: components["schemas"]["WebhookHealth"];
46302
+ }[];
46303
+ pagination: components["schemas"]["Pagination"];
46304
+ };
46305
+ };
46306
+ };
46307
+ /** @description Invalid parameters */
46308
+ 400: {
46309
+ headers: {
46310
+ [name: string]: unknown;
46311
+ };
46312
+ content: {
46313
+ "application/json": components["schemas"]["Error"];
46314
+ };
46315
+ };
46316
+ /** @description Unauthorized */
46317
+ 401: {
46318
+ headers: {
46319
+ [name: string]: unknown;
46320
+ };
46321
+ content: {
46322
+ "application/json": components["schemas"]["Error"];
46323
+ };
46324
+ };
46325
+ /** @description Insufficient permissions */
46326
+ 403: {
46327
+ headers: {
46328
+ [name: string]: unknown;
46329
+ };
46330
+ content: {
46331
+ "application/json": components["schemas"]["Error"];
46332
+ };
46333
+ };
46334
+ /** @description Internal server error */
46335
+ 500: {
45287
46336
  headers: {
45288
46337
  [name: string]: unknown;
45289
46338
  };
@@ -45301,75 +46350,7 @@ interface paths {
45301
46350
  patch?: never;
45302
46351
  trace?: never;
45303
46352
  };
45304
- "/v1/skills/{id}/versions/{versionId}/publish": {
45305
- parameters: {
45306
- query?: never;
45307
- header?: never;
45308
- path?: never;
45309
- cookie?: never;
45310
- };
45311
- get?: never;
45312
- put?: never;
45313
- /** Publish a skill version */
45314
- post: {
45315
- parameters: {
45316
- query?: never;
45317
- header?: never;
45318
- path: {
45319
- id: string;
45320
- versionId: string;
45321
- };
45322
- cookie?: never;
45323
- };
45324
- requestBody?: never;
45325
- responses: {
45326
- /** @description Published */
45327
- 200: {
45328
- headers: {
45329
- [name: string]: unknown;
45330
- };
45331
- content: {
45332
- "application/json": {
45333
- success: boolean;
45334
- };
45335
- };
45336
- };
45337
- /** @description Unauthorized */
45338
- 401: {
45339
- headers: {
45340
- [name: string]: unknown;
45341
- };
45342
- content: {
45343
- "application/json": components["schemas"]["Error"];
45344
- };
45345
- };
45346
- /** @description Insufficient permissions */
45347
- 403: {
45348
- headers: {
45349
- [name: string]: unknown;
45350
- };
45351
- content: {
45352
- "application/json": components["schemas"]["Error"];
45353
- };
45354
- };
45355
- /** @description Not found */
45356
- 404: {
45357
- headers: {
45358
- [name: string]: unknown;
45359
- };
45360
- content: {
45361
- "application/json": components["schemas"]["Error"];
45362
- };
45363
- };
45364
- };
45365
- };
45366
- delete?: never;
45367
- options?: never;
45368
- head?: never;
45369
- patch?: never;
45370
- trace?: never;
45371
- };
45372
- "/v1/surfaces": {
46353
+ "/v1/surfaces/{surfaceId}": {
45373
46354
  parameters: {
45374
46355
  query?: never;
45375
46356
  header?: never;
@@ -45377,60 +46358,86 @@ interface paths {
45377
46358
  cookie?: never;
45378
46359
  };
45379
46360
  /**
45380
- * List surfaces
45381
- * @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.
46361
+ * Get surface details
46362
+ * @description Get an authorized surface by its globally unique ID, including items and keys.
45382
46363
  */
45383
46364
  get: {
45384
46365
  parameters: {
45385
- query?: {
45386
- limit?: string;
45387
- cursor?: string;
45388
- productId?: string;
45389
- type?: string;
45390
- status?: string;
45391
- };
46366
+ query?: never;
45392
46367
  header?: never;
45393
- path?: never;
46368
+ path: {
46369
+ surfaceId: string;
46370
+ };
45394
46371
  cookie?: never;
45395
46372
  };
45396
46373
  requestBody?: never;
45397
46374
  responses: {
45398
- /** @description Paginated list of surfaces */
46375
+ /** @description Surface details */
45399
46376
  200: {
45400
46377
  headers: {
45401
46378
  [name: string]: unknown;
45402
46379
  };
45403
46380
  content: {
45404
46381
  "application/json": {
45405
- data: {
46382
+ behavior?: unknown;
46383
+ createdAt: string;
46384
+ /** @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. */
46385
+ endpoint: string | null;
46386
+ id: string;
46387
+ inbound?: unknown;
46388
+ items: {
46389
+ agentId: string | null;
46390
+ agentType: string | null;
46391
+ cachedSkills: unknown[] | null;
46392
+ capabilityId: string;
46393
+ capabilityName: string | null;
46394
+ config?: unknown;
45406
46395
  createdAt: string;
45407
- /** @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. */
45408
- endpoint: string | null;
46396
+ displayOrder: number | null;
46397
+ enabled: boolean;
46398
+ endpointSlug: string | null;
46399
+ exposedDescription: string | null;
46400
+ exposedName: string | null;
46401
+ flowId: string | null;
46402
+ id: string;
46403
+ isEntryPoint: boolean;
46404
+ parametersSchema?: unknown;
46405
+ }[];
46406
+ keys: {
46407
+ canReveal: boolean;
46408
+ createdAt: string;
46409
+ environment: string;
46410
+ expiresAt: string | null;
46411
+ id: string;
46412
+ isActive: boolean;
46413
+ isDevelopment: boolean;
46414
+ keyHint: string | null;
46415
+ keyPrefix: string;
46416
+ lastUsedAt: string | null;
46417
+ name: string | null;
46418
+ rateLimitPerDay: number | null;
46419
+ rateLimitPerMinute: number | null;
46420
+ scopeTargetIds: string[] | null;
46421
+ scopes: string[];
46422
+ usageCount: number | null;
46423
+ }[];
46424
+ name: string;
46425
+ outbound?: unknown;
46426
+ productId: string;
46427
+ scopeTargets: {
46428
+ capabilityId?: string;
45409
46429
  id: string;
45410
- inbound: {
45411
- appId?: string;
45412
- continueThreads?: boolean;
45413
- integrationId?: string;
45414
- listenChannels?: string[];
45415
- listenDms?: boolean;
45416
- teamId?: string;
45417
- teamName?: string;
45418
- triggerOnMention?: boolean;
45419
- } | null;
45420
46430
  name: string;
45421
- productId: string;
45422
- /** @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. */
45423
- productName: string;
45424
- status: string;
45425
- type: string;
45426
- updatedAt: string;
45427
- webhookHealth: components["schemas"]["WebhookHealth"];
46431
+ surfaceItemId?: string;
45428
46432
  }[];
45429
- pagination: components["schemas"]["Pagination"];
46433
+ status: string;
46434
+ type: string;
46435
+ updatedAt: string;
46436
+ webhookHealth: components["schemas"]["WebhookHealth"];
45430
46437
  };
45431
46438
  };
45432
46439
  };
45433
- /** @description Invalid parameters */
46440
+ /** @description Invalid surface ID */
45434
46441
  400: {
45435
46442
  headers: {
45436
46443
  [name: string]: unknown;
@@ -45457,6 +46464,15 @@ interface paths {
45457
46464
  "application/json": components["schemas"]["Error"];
45458
46465
  };
45459
46466
  };
46467
+ /** @description Surface not found */
46468
+ 404: {
46469
+ headers: {
46470
+ [name: string]: unknown;
46471
+ };
46472
+ content: {
46473
+ "application/json": components["schemas"]["Error"];
46474
+ };
46475
+ };
45460
46476
  /** @description Internal server error */
45461
46477
  500: {
45462
46478
  headers: {
@@ -45476,7 +46492,7 @@ interface paths {
45476
46492
  patch?: never;
45477
46493
  trace?: never;
45478
46494
  };
45479
- "/v1/surfaces/{surfaceId}": {
46495
+ "/v1/surfaces/{surfaceId}/channel-context": {
45480
46496
  parameters: {
45481
46497
  query?: never;
45482
46498
  header?: never;
@@ -45484,12 +46500,15 @@ interface paths {
45484
46500
  cookie?: never;
45485
46501
  };
45486
46502
  /**
45487
- * Get surface details
45488
- * @description Get an authorized surface by its globally unique ID, including items and keys.
46503
+ * Read a channel context window
46504
+ * @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.
45489
46505
  */
45490
46506
  get: {
45491
46507
  parameters: {
45492
- query?: never;
46508
+ query: {
46509
+ /** @description Slack channel ID, Telegram chat ID, or iMessage group ID. */
46510
+ channelId: string;
46511
+ };
45493
46512
  header?: never;
45494
46513
  path: {
45495
46514
  surfaceId: string;
@@ -45498,72 +46517,24 @@ interface paths {
45498
46517
  };
45499
46518
  requestBody?: never;
45500
46519
  responses: {
45501
- /** @description Surface details */
46520
+ /** @description The channel window with its gate decisions and labels */
45502
46521
  200: {
45503
46522
  headers: {
45504
46523
  [name: string]: unknown;
45505
46524
  };
45506
46525
  content: {
45507
46526
  "application/json": {
45508
- behavior?: unknown;
45509
- createdAt: string;
45510
- /** @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. */
45511
- endpoint: string | null;
45512
- id: string;
45513
- inbound?: unknown;
45514
- items: {
45515
- agentId: string | null;
45516
- agentType: string | null;
45517
- cachedSkills: unknown[] | null;
45518
- capabilityId: string;
45519
- capabilityName: string | null;
45520
- config?: unknown;
45521
- createdAt: string;
45522
- displayOrder: number | null;
45523
- enabled: boolean;
45524
- endpointSlug: string | null;
45525
- exposedDescription: string | null;
45526
- exposedName: string | null;
45527
- flowId: string | null;
45528
- id: string;
45529
- isEntryPoint: boolean;
45530
- parametersSchema?: unknown;
45531
- }[];
45532
- keys: {
45533
- canReveal: boolean;
45534
- createdAt: string;
45535
- environment: string;
45536
- expiresAt: string | null;
45537
- id: string;
45538
- isActive: boolean;
45539
- isDevelopment: boolean;
45540
- keyHint: string | null;
45541
- keyPrefix: string;
45542
- lastUsedAt: string | null;
45543
- name: string | null;
45544
- rateLimitPerDay: number | null;
45545
- rateLimitPerMinute: number | null;
45546
- scopeTargetIds: string[] | null;
45547
- scopes: string[];
45548
- usageCount: number | null;
45549
- }[];
45550
- name: string;
45551
- outbound?: unknown;
45552
- productId: string;
45553
- scopeTargets: {
45554
- capabilityId?: string;
45555
- id: string;
45556
- name: string;
45557
- surfaceItemId?: string;
45558
- }[];
45559
- status: string;
45560
- type: string;
45561
- updatedAt: string;
45562
- webhookHealth: components["schemas"]["WebhookHealth"];
46527
+ channelId: string;
46528
+ /** @description Labels on decisions the channel still retains (newest 50 messages, 24 hours), oldest first. Empty until a next turn produces one. */
46529
+ labels: components["schemas"]["ChannelContextLabel"][];
46530
+ messages: components["schemas"]["ChannelContextMessage"][];
46531
+ /** @enum {string} */
46532
+ provider: "slack" | "telegram" | "imessage";
46533
+ surfaceId: string;
45563
46534
  };
45564
46535
  };
45565
46536
  };
45566
- /** @description Invalid surface ID */
46537
+ /** @description Invalid surface ID, or a surface type without a channel context */
45567
46538
  400: {
45568
46539
  headers: {
45569
46540
  [name: string]: unknown;
@@ -45599,15 +46570,6 @@ interface paths {
45599
46570
  "application/json": components["schemas"]["Error"];
45600
46571
  };
45601
46572
  };
45602
- /** @description Internal server error */
45603
- 500: {
45604
- headers: {
45605
- [name: string]: unknown;
45606
- };
45607
- content: {
45608
- "application/json": components["schemas"]["Error"];
45609
- };
45610
- };
45611
46573
  };
45612
46574
  };
45613
46575
  put?: never;
@@ -45735,7 +46697,7 @@ interface paths {
45735
46697
  };
45736
46698
  /**
45737
46699
  * Inspect OTLP admission, queryability, and durable recovery debt
45738
- * @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.
46700
+ * @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.
45739
46701
  */
45740
46702
  get: operations["getOtlpIngestHealth"];
45741
46703
  put?: never;
@@ -47491,18 +48453,22 @@ interface paths {
47491
48453
  parameters: {
47492
48454
  [key: string]: unknown;
47493
48455
  };
48456
+ /** @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. */
48457
+ toolConfig?: {
48458
+ [key: string]: unknown;
48459
+ };
47494
48460
  toolId?: string;
47495
48461
  };
47496
48462
  };
47497
48463
  };
47498
48464
  responses: {
47499
- /** @description Tool execution result (JSON for non-flow tools, SSE stream for flow tools) */
48465
+ /** @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 */
47500
48466
  200: {
47501
48467
  headers: {
47502
48468
  [name: string]: unknown;
47503
48469
  };
47504
48470
  content: {
47505
- "application/json": {
48471
+ "application/json": components["schemas"]["BuiltinToolExecuteResult"] | {
47506
48472
  error?: string;
47507
48473
  executionId: string;
47508
48474
  executionTimeMs: number;
@@ -47512,13 +48478,13 @@ interface paths {
47512
48478
  };
47513
48479
  };
47514
48480
  };
47515
- /** @description Validation error */
48481
+ /** @description Invalid request, tool config, or judgment input */
47516
48482
  400: {
47517
48483
  headers: {
47518
48484
  [name: string]: unknown;
47519
48485
  };
47520
48486
  content: {
47521
- "application/json": components["schemas"]["Error"];
48487
+ "application/json": components["schemas"]["ToolExecuteError"];
47522
48488
  };
47523
48489
  };
47524
48490
  /** @description Unauthorized */
@@ -47539,13 +48505,22 @@ interface paths {
47539
48505
  "application/json": components["schemas"]["Error"];
47540
48506
  };
47541
48507
  };
47542
- /** @description Tool not found */
48508
+ /** @description Tool not found, or a judgment question set that does not resolve */
47543
48509
  404: {
47544
48510
  headers: {
47545
48511
  [name: string]: unknown;
47546
48512
  };
47547
48513
  content: {
47548
- "application/json": components["schemas"]["Error"];
48514
+ "application/json": components["schemas"]["ToolExecuteError"];
48515
+ };
48516
+ };
48517
+ /** @description A judgment the gateway cannot serve: an unlisted model or no gateway credential */
48518
+ 422: {
48519
+ headers: {
48520
+ [name: string]: unknown;
48521
+ };
48522
+ content: {
48523
+ "application/json": components["schemas"]["ToolExecuteError"];
47549
48524
  };
47550
48525
  };
47551
48526
  /** @description Internal server error */
@@ -47595,13 +48570,13 @@ interface paths {
47595
48570
  };
47596
48571
  };
47597
48572
  responses: {
47598
- /** @description Tool execution result (forwarded from the execute endpoint) */
48573
+ /** @description Tool execution result, forwarded from the execute endpoint */
47599
48574
  200: {
47600
48575
  headers: {
47601
48576
  [name: string]: unknown;
47602
48577
  };
47603
48578
  content: {
47604
- "application/json": {
48579
+ "application/json": components["schemas"]["BuiltinToolExecuteResult"] | {
47605
48580
  error?: string;
47606
48581
  executionId: string;
47607
48582
  executionTimeMs: number;
@@ -47611,6 +48586,15 @@ interface paths {
47611
48586
  };
47612
48587
  };
47613
48588
  };
48589
+ /** @description Invalid request, tool config, or judgment input */
48590
+ 400: {
48591
+ headers: {
48592
+ [name: string]: unknown;
48593
+ };
48594
+ content: {
48595
+ "application/json": components["schemas"]["ToolExecuteError"];
48596
+ };
48597
+ };
47614
48598
  /** @description Unauthorized */
47615
48599
  401: {
47616
48600
  headers: {
@@ -47629,6 +48613,24 @@ interface paths {
47629
48613
  "application/json": components["schemas"]["Error"];
47630
48614
  };
47631
48615
  };
48616
+ /** @description Tool not found, or a judgment question set that does not resolve */
48617
+ 404: {
48618
+ headers: {
48619
+ [name: string]: unknown;
48620
+ };
48621
+ content: {
48622
+ "application/json": components["schemas"]["ToolExecuteError"];
48623
+ };
48624
+ };
48625
+ /** @description A judgment the gateway cannot serve: an unlisted model or no gateway credential */
48626
+ 422: {
48627
+ headers: {
48628
+ [name: string]: unknown;
48629
+ };
48630
+ content: {
48631
+ "application/json": components["schemas"]["ToolExecuteError"];
48632
+ };
48633
+ };
47632
48634
  /** @description Internal server error */
47633
48635
  500: {
47634
48636
  headers: {
@@ -48857,6 +49859,7 @@ interface components {
48857
49859
  [key: string]: unknown;
48858
49860
  };
48859
49861
  description: string;
49862
+ hiddenParameterNames?: string[];
48860
49863
  idempotent?: boolean;
48861
49864
  name: string;
48862
49865
  parametersSchema: {
@@ -49021,6 +50024,15 @@ interface components {
49021
50024
  } & {
49022
50025
  [key: string]: unknown;
49023
50026
  };
50027
+ BuiltinToolExecuteResult: {
50028
+ /** @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). */
50029
+ metadata?: {
50030
+ [key: string]: unknown;
50031
+ };
50032
+ result?: unknown;
50033
+ toolId: string;
50034
+ toolName: string;
50035
+ };
49024
50036
  CaptureExecutionPreview: {
49025
50037
  /** @description The recorded tool-call actions in invocation order — the fork-picker rows. */
49026
50038
  actions: components["schemas"]["CaptureExecutionPreviewAction"][];
@@ -49048,6 +50060,53 @@ interface components {
49048
50060
  /** @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"). */
49049
50061
  replayable: boolean;
49050
50062
  };
50063
+ ChannelContextDecision: {
50064
+ /** @description Whether the assistant ran for this message. */
50065
+ activated: boolean;
50066
+ /**
50067
+ * @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.
50068
+ * @enum {string}
50069
+ */
50070
+ decision: "not_judged" | "reply" | "silent" | "band";
50071
+ /**
50072
+ * @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.
50073
+ * @enum {string}
50074
+ */
50075
+ failure?: "error" | "upstream" | "timeout" | "unanswered" | "no_assistant" | "preparation" | "circuit_open";
50076
+ /** @description The judged shouldReply probability; absent when not_judged. */
50077
+ probability?: number;
50078
+ } | null;
50079
+ ChannelContextLabel: {
50080
+ decision: components["schemas"]["ChannelContextDecision"];
50081
+ /** @description The labeled message, whose decision the label judges. */
50082
+ externalMessageId: string;
50083
+ /**
50084
+ * @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.
50085
+ * @enum {string}
50086
+ */
50087
+ label: "gate_false_negative" | "gate_false_positive" | "backfill_false_negative";
50088
+ /** @description ISO timestamp the label was recorded. */
50089
+ labeledAt: string;
50090
+ /**
50091
+ * @description The next-turn signal that produced the label.
50092
+ * @enum {string}
50093
+ */
50094
+ source: "mention_after_silence" | "not_you_reply" | "negative_reaction" | "reply_deleted" | "already_said_reply";
50095
+ };
50096
+ ChannelContextMessage: {
50097
+ authorId: string;
50098
+ /** @enum {string} */
50099
+ authorKind: "user" | "assistant" | "bot";
50100
+ decision: components["schemas"]["ChannelContextDecision"];
50101
+ externalMessageId: string;
50102
+ hasAttachment: boolean;
50103
+ mentionsAssistant: boolean;
50104
+ /** @description Message text, truncated to 1,000 characters. */
50105
+ text: string;
50106
+ threadId?: string;
50107
+ /** @description ISO timestamp of the provider message. */
50108
+ timestamp: string;
50109
+ };
49051
50110
  ClientInputDeliveryReceipt: {
49052
50111
  deliveryId: string;
49053
50112
  executionId: string;
@@ -49982,6 +51041,9 @@ interface components {
49982
51041
  /** @enum {string} */
49983
51042
  type: "turn_start";
49984
51043
  } | {
51044
+ attributes?: {
51045
+ [key: string]: string | number | boolean;
51046
+ };
49985
51047
  completedAt?: string;
49986
51048
  content?: string;
49987
51049
  cost?: number;
@@ -50048,6 +51110,9 @@ interface components {
50048
51110
  /** @enum {string} */
50049
51111
  type: "model_call_start";
50050
51112
  } | {
51113
+ attributes?: {
51114
+ [key: string]: string | number | boolean;
51115
+ };
50051
51116
  completedAt?: string;
50052
51117
  cost?: number;
50053
51118
  durationMs?: number;
@@ -50071,6 +51136,7 @@ interface components {
50071
51136
  cacheWrite?: number;
50072
51137
  input: number;
50073
51138
  output: number;
51139
+ reasoning?: number;
50074
51140
  };
50075
51141
  turnId?: string;
50076
51142
  /** @enum {string} */
@@ -50646,6 +51712,23 @@ interface components {
50646
51712
  /** @enum {string} */
50647
51713
  status: "pending" | "applied" | "settled" | "not_applied";
50648
51714
  };
51715
+ JudgmentCalibrationRecord: {
51716
+ createdAt: string;
51717
+ createdByUserId: string | null;
51718
+ evalRunId: string | null;
51719
+ id: string;
51720
+ measuredModel: string;
51721
+ questionSetVersionId: string;
51722
+ /** @description The calibration record as posted. */
51723
+ record: {
51724
+ [key: string]: unknown;
51725
+ };
51726
+ /**
51727
+ * @description Derived: `eval_suite` only when the posted `evalRunId` resolved to an eval run in this account.
51728
+ * @enum {string}
51729
+ */
51730
+ source: "eval_suite" | "customer";
51731
+ };
50649
51732
  ManagedAgentRunOutput: {
50650
51733
  anthropicFileId: string;
50651
51734
  /** @description Asset-storage key the bytes were persisted to. */
@@ -50831,6 +51914,45 @@ interface components {
50831
51914
  productId: string;
50832
51915
  updatedAt: string | null;
50833
51916
  };
51917
+ QuestionSet: {
51918
+ createdAt: string;
51919
+ createdByUserId: string | null;
51920
+ /** @description The published version executions resolve when they name no version; null until a publish. */
51921
+ currentVersionId: string | null;
51922
+ description: string | null;
51923
+ id: string;
51924
+ name: string;
51925
+ organizationId: string;
51926
+ slug: string;
51927
+ updatedAt: string;
51928
+ };
51929
+ QuestionSetError: components["schemas"]["Error"] & {
51930
+ /** @description Stable code, e.g. QUESTION_SET_INVALID or QUESTION_SET_UNRESOLVED. */
51931
+ code?: string;
51932
+ };
51933
+ QuestionSetListItem: components["schemas"]["QuestionSet"] & {
51934
+ currentVersionNumber: number | null;
51935
+ latestVersionNumber: number;
51936
+ };
51937
+ QuestionSetVersion: {
51938
+ createdAt: string;
51939
+ createdByUserId: string | null;
51940
+ currentCalibrationId: string | null;
51941
+ id: string;
51942
+ inputMapping: {
51943
+ [key: string]: string;
51944
+ } | null;
51945
+ /** @description Requested judgment model id; null uses the platform default. */
51946
+ model: string | null;
51947
+ /** @description Set once, at the first publish; a published version never changes. */
51948
+ publishedAt: string | null;
51949
+ questionSetId: string;
51950
+ /** @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. */
51951
+ questions: {
51952
+ [key: string]: unknown;
51953
+ };
51954
+ versionNumber: number;
51955
+ };
50834
51956
  RecordFilterCondition: {
50835
51957
  field: string;
50836
51958
  /** @enum {string} */
@@ -50851,6 +51973,29 @@ interface components {
50851
51973
  recordName?: string;
50852
51974
  schemaVersion: number;
50853
51975
  };
51976
+ ResolvedQuestionSet: {
51977
+ calibration: {
51978
+ createdAt: string;
51979
+ id: string;
51980
+ measuredModel: string;
51981
+ record: {
51982
+ [key: string]: unknown;
51983
+ };
51984
+ /** @enum {string} */
51985
+ source: "eval_suite" | "customer";
51986
+ } | null;
51987
+ id: string;
51988
+ inputMapping: {
51989
+ [key: string]: string;
51990
+ } | null;
51991
+ model: string | null;
51992
+ /** @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. */
51993
+ questions: {
51994
+ [key: string]: unknown;
51995
+ };
51996
+ slug: string;
51997
+ version: number;
51998
+ };
50854
51999
  RunEvalResponse: {
50855
52000
  /** @description The release alias the run resolved through, when it resolved through one. */
50856
52001
  agentTargetAlias?: string | null;
@@ -50937,6 +52082,10 @@ interface components {
50937
52082
  batchExecutionId: string | null;
50938
52083
  /** @description Budget exhausted. Absent means the overlay did not answer, which is not false and not null. */
50939
52084
  budgetExhausted?: boolean | null;
52085
+ /** @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. */
52086
+ cacheReadTokens?: number | null;
52087
+ /** @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. */
52088
+ cacheWriteTokens?: number | null;
50940
52089
  /** @description Cancel request. Absent means the overlay did not answer, which is not false and not null. */
50941
52090
  cancelRequestedAt?: string | null;
50942
52091
  /** @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. */
@@ -50994,6 +52143,8 @@ interface components {
50994
52143
  pendingApproval?: unknown;
50995
52144
  /** @description Live progress document. Absent means the overlay did not answer, which is not false and not null. */
50996
52145
  progress?: unknown;
52146
+ /** @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. */
52147
+ reasoningTokens?: number | null;
50997
52148
  /** @description Record this run processed. */
50998
52149
  recordId: string | null;
50999
52150
  /** @description Retention removed the spans; the run still lists and reads as completed. */
@@ -51260,6 +52411,13 @@ interface components {
51260
52411
  result: "plan";
51261
52412
  toolId?: string;
51262
52413
  };
52414
+ ToolExecuteError: components["schemas"]["Error"] & {
52415
+ /** @description Stable code for a caller-fixable failure, e.g. JUDGMENT_QUESTIONS_INVALID or QUESTION_SET_UNRESOLVED. */
52416
+ code?: string;
52417
+ details?: {
52418
+ [key: string]: unknown;
52419
+ };
52420
+ };
51263
52421
  ToolPullResponse: {
51264
52422
  contentHash: string;
51265
52423
  definition: {
@@ -51351,6 +52509,7 @@ interface components {
51351
52509
  providerRateLimitHeaders?: {
51352
52510
  [key: string]: string;
51353
52511
  } | null;
52512
+ reasoningTokens?: number | null;
51354
52513
  recordId?: string | null;
51355
52514
  recordName?: string | null;
51356
52515
  requestId?: string | null;
@@ -51588,6 +52747,7 @@ interface operations {
51588
52747
  repairs: number;
51589
52748
  waiting: number;
51590
52749
  };
52750
+ /** @description Hot tier: confirmed by a positive receipt read, not a stream acknowledgment. */
51591
52751
  hot: {
51592
52752
  confirmed: number;
51593
52753
  maximumConfirmedLagMs: number | null;
@@ -51595,6 +52755,7 @@ interface operations {
51595
52755
  repairs: number;
51596
52756
  waiting: number;
51597
52757
  };
52758
+ /** @description Raw storage tier: confirmed when its send succeeds (at-least-once, no read-back). `waiting` counts rows whose send has not yet succeeded. */
51598
52759
  raw: {
51599
52760
  confirmed: number;
51600
52761
  maximumConfirmedLagMs: number | null;
@@ -51617,7 +52778,7 @@ interface operations {
51617
52778
  trace: {
51618
52779
  acceptedAt: string;
51619
52780
  completeness: string;
51620
- /** @description Receipt counts for this trace only; confirmations require positive tier reads, not stream acknowledgments. */
52781
+ /** @description Receipt counts for this trace only; hot confirmations require a positive receipt read, raw confirmations a successful send. */
51621
52782
  delivery: {
51622
52783
  accepted: number;
51623
52784
  /** @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. */
@@ -53808,14 +54969,40 @@ interface UpdateToolRequest {
53808
54969
  interface ExecuteToolRequest {
53809
54970
  toolId: string;
53810
54971
  parameters: JsonObject;
54972
+ /** Built-in tools only: the instance config, validated against the tool's configSchema. */
54973
+ toolConfig?: JsonObject;
53811
54974
  }
53812
- interface ExecuteToolResponse {
54975
+ /**
54976
+ * `POST /v1/tools/{id}/execute` (and `/test`) for a saved non-flow tool
54977
+ * (OpenAPI `ExecuteToolResult`).
54978
+ */
54979
+ interface SavedToolExecuteResponse {
53813
54980
  executionId: string;
53814
- result: JsonValue;
53815
- status: 'success' | 'failed';
54981
+ status: 'pending' | 'success' | 'failed' | 'waiting_for_local';
54982
+ result?: JsonValue;
54983
+ error?: string;
54984
+ /** @deprecated The API never sends this field; read `error`. */
53816
54985
  errorMessage?: string;
53817
54986
  executionTimeMs: number;
53818
54987
  }
54988
+ /**
54989
+ * `POST /v1/tools/{id}/execute` (and `/test`) for a `builtin:` or `platform:`
54990
+ * tool (OpenAPI `BuiltinToolExecuteResult`).
54991
+ */
54992
+ interface BuiltinToolExecuteResponse {
54993
+ toolId: string;
54994
+ toolName: string;
54995
+ result?: JsonValue;
54996
+ /** Built-in execution metadata a model never sees, e.g. `metadata.judgment`. */
54997
+ metadata?: JsonObject;
54998
+ }
54999
+ /**
55000
+ * The tool execute response: a built-in result for a `builtin:` or
55001
+ * `platform:` id, a saved-tool result otherwise. Narrow with
55002
+ * `isBuiltinToolExecuteResponse` before reading shape-specific fields.
55003
+ */
55004
+ type ExecuteToolResponse = SavedToolExecuteResponse | BuiltinToolExecuteResponse;
55005
+ declare function isBuiltinToolExecuteResponse(response: ExecuteToolResponse): response is BuiltinToolExecuteResponse;
53819
55006
  type SandboxDeployRetention = '10m' | '1h' | '24h' | 'unlimited';
53820
55007
  type SandboxDeploySleepPolicy = {
53821
55008
  mode: 'never';
@@ -53927,6 +55114,12 @@ interface RuntimeTool {
53927
55114
  * re-decides, rather than silently re-fired.
53928
55115
  */
53929
55116
  idempotent?: boolean;
55117
+ /**
55118
+ * Parameters the runtime fills from execution variables (or `_record.metadata`)
55119
+ * and strips from the schema the model sees. Names starting with `_internal`
55120
+ * are rejected at save time.
55121
+ */
55122
+ hiddenParameterNames?: string[];
53930
55123
  }
53931
55124
  type RuntimeToolConfig = RuntimeFlowToolConfig | RuntimeCustomToolConfig | RuntimeExternalToolConfig | RuntimeLocalToolConfig | RuntimeSubagentToolConfig;
53932
55125
  interface RuntimeLocalToolConfig {
@@ -54289,7 +55482,12 @@ interface LogQueryParams {
54289
55482
  executionId?: string;
54290
55483
  surfaceId?: string;
54291
55484
  conversationId?: string;
55485
+ /** Substring match on a span's message, name, operation, tool name or error class. */
54292
55486
  search?: string;
55487
+ /** Comma-separated statuses (completed,failed,unknown,running,queued,cancelled). */
55488
+ status?: string;
55489
+ /** Comma-separated entry types (flow,step,tool,batch,system,agent,model,schedule,audit). */
55490
+ type?: string;
54293
55491
  limit?: number;
54294
55492
  cursor?: string;
54295
55493
  order?: 'asc' | 'desc';
@@ -57936,6 +59134,12 @@ interface RunListRow {
57936
59134
  spanCount: number | null;
57937
59135
  inputTokens: number | null;
57938
59136
  outputTokens: number | null;
59137
+ /** Prompt-cache reads over the run's model calls (subset of inputTokens); `GET /v1/runs/{id}` only. */
59138
+ cacheReadTokens?: number | null;
59139
+ /** Prompt-cache writes over the run's model calls (subset of inputTokens); `GET /v1/runs/{id}` only. */
59140
+ cacheWriteTokens?: number | null;
59141
+ /** Reasoning tokens over the run's model calls (subset of outputTokens); `GET /v1/runs/{id}` only. */
59142
+ reasoningTokens?: number | null;
57939
59143
  totalCost: string | null;
57940
59144
  selfReportedCost: string | null;
57941
59145
  /**
@@ -58026,6 +59230,8 @@ interface RunListResponse {
58026
59230
  hasMore: boolean;
58027
59231
  hasPrev: boolean;
58028
59232
  limit: number;
59233
+ /** True when the supplied cursor was rejected and the read restarted at page one; stop paging. */
59234
+ cursorReset?: boolean;
58029
59235
  };
58030
59236
  window: {
58031
59237
  from: string;
@@ -61408,6 +62614,8 @@ interface AgentRuntimeToolDefinition {
61408
62614
  toolType: 'flow' | 'custom' | 'external' | 'local' | 'subagent';
61409
62615
  parametersSchema: Record<string, unknown>;
61410
62616
  config?: Record<string, unknown>;
62617
+ /** Parameters filled from execution variables and hidden from the model's schema. */
62618
+ hiddenParameterNames?: string[];
61411
62619
  }
61412
62620
  /**
61413
62621
  * Agent execute request
@@ -64345,4 +65553,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
64345
65553
  declare function getDefaultPlanPath(taskName: string): string;
64346
65554
  declare function sanitizeTaskSlug(taskName: string): string;
64347
65555
 
64348
- 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 };
65556
+ 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 };