@runtypelabs/sdk 9.17.2 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1033,6 +1033,7 @@ interface paths {
1033
1033
  [key: string]: unknown;
1034
1034
  };
1035
1035
  description: string;
1036
+ idempotent?: boolean;
1036
1037
  name: string;
1037
1038
  parametersSchema: {
1038
1039
  [key: string]: unknown;
@@ -1546,6 +1547,7 @@ interface paths {
1546
1547
  [key: string]: unknown;
1547
1548
  };
1548
1549
  description: string;
1550
+ idempotent?: boolean;
1549
1551
  name: string;
1550
1552
  parametersSchema: {
1551
1553
  [key: string]: unknown;
@@ -2193,7 +2195,7 @@ interface paths {
2193
2195
  reflectionInterval?: number;
2194
2196
  treatLengthCutoffAsFailure?: boolean;
2195
2197
  };
2196
- maxTokens?: number;
2198
+ maxTokens?: number | null;
2197
2199
  memory?: {
2198
2200
  enabled: boolean;
2199
2201
  injectSummary?: boolean;
@@ -2333,6 +2335,7 @@ interface paths {
2333
2335
  [key: string]: unknown;
2334
2336
  };
2335
2337
  description: string;
2338
+ idempotent?: boolean;
2336
2339
  name: string;
2337
2340
  parametersSchema: {
2338
2341
  [key: string]: unknown;
@@ -4351,6 +4354,8 @@ interface paths {
4351
4354
  includeCount?: string;
4352
4355
  status?: "queued" | "running" | "paused" | "completed" | "failed" | "cancelled" | "interrupted";
4353
4356
  surfaceType?: string;
4357
+ /** @description Only runs recorded with this agent source; `external` selects runs ingested from outside Runtype (OTLP / compatibility ingest). */
4358
+ agentSource?: "saved" | "inline" | "dynamic" | "external";
4354
4359
  from?: string;
4355
4360
  to?: string;
4356
4361
  parentExecutionId?: string;
@@ -4409,6 +4414,12 @@ interface paths {
4409
4414
  lastHeartbeatAt: string | null;
4410
4415
  /** @enum {string} */
4411
4416
  notificationMode: "none" | "narrate" | "react";
4417
+ /** @description What instrumentation produced an ingested run, as the OTLP ingest resolved it: the adapter a producer named itself as (`runtype.adapter.name`) and every normalizer that claimed the trace. An empty `normalizers` array states that nothing claimed it, which is what a producer already speaking canonical GenAI semantic conventions looks like. `null` means the producer was never recorded (a hosted run, or a run ingested before this was persisted) and must not be read as "identified as nothing". */
4418
+ otelProducer: {
4419
+ adapterName?: string;
4420
+ adapterVersion?: string;
4421
+ normalizers?: string[];
4422
+ } | null;
4412
4423
  parentAgentId: string | null;
4413
4424
  parentConversationId: string | null;
4414
4425
  parentExecutionId: string | null;
@@ -4548,6 +4559,11 @@ interface paths {
4548
4559
  conversationId: string | null;
4549
4560
  createdAt: string;
4550
4561
  executionId: string;
4562
+ /**
4563
+ * @description Which substrate actually ran this turn. `durable` means a Durable Object owned it: a Runtype session for an attached turn (the only lane that sets the `X-Runtype-Execution-Driver` response header), or the run owner a detached run is handed to. `in_process` means the request worker ran it to completion. Read back from the run's own admission-time record, so it reports what happened rather than what the current routing policy would choose now. `executionMode` cannot answer this on its own: both lanes record `attached` for an attached turn. One routing rule is worth knowing when comparing runs: `POST /v1/dispatch` keeps a request that sets `options.debugMode: true` on `in_process`.
4564
+ * @enum {string}
4565
+ */
4566
+ executionLane: "durable" | "in_process";
4551
4567
  /** @enum {string} */
4552
4568
  executionMode: "attached" | "detached";
4553
4569
  expiresAt: string | null;
@@ -18367,6 +18383,11 @@ interface paths {
18367
18383
  createdAt: string;
18368
18384
  error?: string;
18369
18385
  executionId: string;
18386
+ /**
18387
+ * @description Which substrate ran this turn: `durable` for a Durable Object (a Runtype session, or the run owner a detached run is handed to), `in_process` for the request worker. Present only for an execution with a canonical agent row; a flow handle and a Claude Managed handle omit it.
18388
+ * @enum {string}
18389
+ */
18390
+ executionLane?: "durable" | "in_process";
18370
18391
  httpStatus?: number;
18371
18392
  result?: unknown;
18372
18393
  /** @enum {string} */
@@ -25149,10 +25170,14 @@ interface paths {
25149
25170
  get: {
25150
25171
  parameters: {
25151
25172
  query?: {
25152
- /** @description Start timestamp (ISO 8601) */
25173
+ /** @description Start timestamp (ISO 8601). Defaults to 24 hours ago. */
25153
25174
  from?: string;
25154
- /** @description End timestamp (ISO 8601) */
25175
+ /** @description End timestamp (ISO 8601). Defaults to now. */
25155
25176
  to?: string;
25177
+ /** @description Alias for from. Ignored when from is also given. */
25178
+ startTime?: string;
25179
+ /** @description Alias for to. Ignored when to is also given. */
25180
+ endTime?: string;
25156
25181
  /** @description Comma-separated log levels (debug,info,warn,error) */
25157
25182
  level?: string;
25158
25183
  /** @description Comma-separated categories */
@@ -25201,6 +25226,13 @@ interface paths {
25201
25226
  };
25202
25227
  };
25203
25228
  success: boolean;
25229
+ /** @description The time window the query resolved to, after defaults and from/to aliases. */
25230
+ window: {
25231
+ /** @description Resolved start timestamp the query actually used */
25232
+ from: string;
25233
+ /** @description Resolved end timestamp the query actually used */
25234
+ to: string;
25235
+ };
25204
25236
  };
25205
25237
  };
25206
25238
  };
@@ -25412,10 +25444,14 @@ interface paths {
25412
25444
  get: {
25413
25445
  parameters: {
25414
25446
  query?: {
25415
- /** @description Start timestamp (ISO 8601) */
25447
+ /** @description Start timestamp (ISO 8601). Defaults to 24 hours ago. */
25416
25448
  from?: string;
25417
- /** @description End timestamp (ISO 8601) */
25449
+ /** @description End timestamp (ISO 8601). Defaults to now. */
25418
25450
  to?: string;
25451
+ /** @description Alias for from. Ignored when from is also given. */
25452
+ startTime?: string;
25453
+ /** @description Alias for to. Ignored when to is also given. */
25454
+ endTime?: string;
25419
25455
  /** @description Comma-separated log levels (debug,info,warn,error) */
25420
25456
  level?: string;
25421
25457
  /** @description Comma-separated categories */
@@ -25477,9 +25513,25 @@ interface paths {
25477
25513
  total: number;
25478
25514
  };
25479
25515
  success: boolean;
25516
+ /** @description The time window the query resolved to, after defaults and from/to aliases. */
25517
+ window: {
25518
+ /** @description Resolved start timestamp the query actually used */
25519
+ from: string;
25520
+ /** @description Resolved end timestamp the query actually used */
25521
+ to: string;
25522
+ };
25480
25523
  };
25481
25524
  };
25482
25525
  };
25526
+ /** @description Invalid request */
25527
+ 400: {
25528
+ headers: {
25529
+ [name: string]: unknown;
25530
+ };
25531
+ content: {
25532
+ "application/json": components["schemas"]["Error"];
25533
+ };
25534
+ };
25483
25535
  /** @description Unauthorized */
25484
25536
  401: {
25485
25537
  headers: {
@@ -25551,7 +25603,7 @@ interface paths {
25551
25603
  };
25552
25604
  content: {
25553
25605
  "application/json": {
25554
- data?: unknown;
25606
+ data: components["schemas"]["ConversationTrace"];
25555
25607
  success: boolean;
25556
25608
  };
25557
25609
  };
@@ -25623,7 +25675,7 @@ interface paths {
25623
25675
  };
25624
25676
  content: {
25625
25677
  "application/json": {
25626
- data?: unknown;
25678
+ data: components["schemas"]["TraceTree"];
25627
25679
  success: boolean;
25628
25680
  };
25629
25681
  };
@@ -25703,6 +25755,8 @@ interface paths {
25703
25755
  status: string;
25704
25756
  }[];
25705
25757
  success: boolean;
25758
+ /** @description Present and true only when the span-store leg of this read hit its per-parent ceiling, so later children it holds are not listed. Absent otherwise. */
25759
+ truncated?: boolean;
25706
25760
  };
25707
25761
  };
25708
25762
  };
@@ -30713,7 +30767,7 @@ interface paths {
30713
30767
  };
30714
30768
  /**
30715
30769
  * Get product activity
30716
- * @description First page of every activity source a product has: one entry per conversational surface (messaging conversations or client-conversation records) and one per distinct agent capability (compact executions). Rows, cursors and `hasMore` are identical to the per-source list endpoints, so a client can continue any source with its own endpoint. A source that fails returns empty rows plus an `error`; the response is still 200.
30770
+ * @description First page of every activity source a product has: one entry per conversational surface (messaging conversations or client-conversation records) and one per distinct agent capability. Agent rows are `RunListRow`s read the way `GET /v1/runs?agentId=` reads them, so a client continues that source with `/v1/runs` and the surface sources with their own list endpoints; rows, cursors and `hasMore` match. A source that fails returns empty rows plus an `error`; the response is still 200.
30717
30771
  */
30718
30772
  get: {
30719
30773
  parameters: {
@@ -30740,71 +30794,105 @@ interface paths {
30740
30794
  agents: {
30741
30795
  agentId: string;
30742
30796
  data: {
30797
+ /** @description Agent that ran. */
30743
30798
  agentId: string | null;
30744
- agentSource: string | null;
30745
- agentSpec?: unknown;
30799
+ /** @description How the run chose its version: alias, version or legacy-live-row. Absent means the overlay did not answer, which is not false and not null. */
30800
+ agentTargetResolution?: string | null;
30801
+ /** @description Agent version that ran. Absent means the overlay did not answer, which is not false and not null. */
30802
+ agentVersionId?: string | null;
30803
+ /** @description Version label. Absent means the overlay did not answer, which is not false and not null. */
30804
+ agentVersionLabel?: string | null;
30805
+ /** @description Version number, for a version chip and version grouping. Absent means the overlay did not answer, which is not false and not null. */
30806
+ agentVersionNumber?: number | null;
30807
+ /** @description Batch this run belongs to. */
30808
+ batchExecutionId: string | null;
30809
+ /** @description Budget exhausted. Absent means the overlay did not answer, which is not false and not null. */
30810
+ budgetExhausted?: boolean | null;
30811
+ /** @description Cancel request. Absent means the overlay did not answer, which is not false and not null. */
30812
+ cancelRequestedAt?: string | null;
30746
30813
  /**
30747
- * @description How the run selected its definition: `alias` or `version` for a request that named a selector, `legacy-live-row` for a run that read the mutable agent row.
30748
- * @enum {string}
30814
+ * @description Storage completeness; null on a row the control-plane arm served.
30815
+ * @enum {string|null}
30749
30816
  */
30750
- agentTargetResolution: "alias" | "version" | "legacy-live-row";
30751
- /** @description Version number and label for `agentVersionId`, joined from `agent_versions`. `null` exactly when `agentVersionId` is `null`. */
30752
- agentVersion: {
30753
- id: string;
30754
- label: string | null;
30755
- versionNumber: number;
30756
- } | null;
30757
- /** @description The `agent_versions` row this run was recorded against, or `null`. `null` means the surface that admitted the run stamps no version (A2A, Product API, A2A pause admission and the Product MCP capability path record none today) or the run predates version stamping. It is never a claim that the run executed an unversioned configuration. */
30758
- agentVersionId: string | null;
30759
- /** @description Whether the agent loop ended by exhausting its `maxTurns` budget. Read this rather than inferring truncation from `stopReason`: a single-turn loop publishes `end_turn` on a budget end to preserve its original payload shape, and several clean success paths publish that same value. `null` means UNKNOWN — a run recorded before this field existed, or one executed by a lane that reports no per-iteration breakdown (external agents, Claude Managed) — and must not be read as `false`. */
30760
- budgetExhausted: boolean | null;
30761
- cancelRequestedAt: string | null;
30762
- completedAt: string | null;
30763
- /** @description The conversation thread this run belongs to, so consumers can group a multi-turn conversation's runs without a per-run log query. This is the run's OWN thread, distinct from `parentConversationId` (subagent lineage, the conversation of the run that spawned it). `null` on stateless surfaces (webhook, schedule, eval, one-shot API) and on runs persisted before the column existed. */
30817
+ completeness: "partial" | "complete" | "conflicted" | "expired" | "deleted" | null;
30818
+ /** @description Conversation this run belongs to. */
30764
30819
  conversationId: string | null;
30765
- createdAt: string;
30820
+ /** @description Wall-clock duration in milliseconds. */
30821
+ durationMs: number | null;
30822
+ /** @description ISO instant the run ended; null while it is still running. */
30823
+ endedAt: string | null;
30824
+ /** @description Runtime execution id; the key for /v1/logs and /v1/runs/{id}. */
30766
30825
  executionId: string;
30767
- /** @enum {string} */
30768
- executionMode: "attached" | "detached";
30769
- expiresAt: string | null;
30770
- /** @description The run's final output. Present by default; omitted when `view=compact`. */
30771
- finalOutput?: unknown;
30772
- id: string;
30826
+ /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
30827
+ expiresAt?: string | null;
30828
+ /** @description Fidelity of the projection behind this row. */
30829
+ fidelityTier: string | null;
30830
+ /** @description Flow that ran. */
30831
+ flowId: string | null;
30832
+ /** @description Messages the run started from. Absent means the overlay did not answer, which is not false and not null. */
30773
30833
  inputMessages?: unknown;
30774
- iterations: number | null;
30775
- lastHeartbeatAt: string | null;
30776
- /** @enum {string} */
30777
- notificationMode: "none" | "narrate" | "react";
30778
- parentAgentId: string | null;
30779
- parentConversationId: string | null;
30834
+ /** @description Input tokens reported. */
30835
+ inputTokens: number | null;
30836
+ /** @description Loop iterations from the terminal frame. */
30837
+ iterations?: number | null;
30838
+ /**
30839
+ * @description Whether an agent or a flow ran.
30840
+ * @enum {string}
30841
+ */
30842
+ kind: "agent" | "flow";
30843
+ /** @description Last heartbeat. Absent means the overlay did not answer, which is not false and not null. */
30844
+ lastHeartbeatAt?: string | null;
30845
+ /** @description Framework identity the producer reported, for a versionless run group. Absent means the overlay did not answer, which is not false and not null. */
30846
+ otelProducer?: unknown;
30847
+ /** @description Output tokens reported. */
30848
+ outputTokens: number | null;
30849
+ /** @description Run that spawned this one. */
30780
30850
  parentExecutionId: string | null;
30851
+ /** @description Parent's tool call that spawned this run. */
30781
30852
  parentToolCallId: string | null;
30782
- pendingApproval: {
30783
- approvalId: string;
30784
- description?: string;
30785
- parameters?: unknown;
30786
- reason?: string;
30787
- requestedAt: string;
30788
- timeout?: number;
30789
- toolCallId: string;
30790
- toolName: string;
30791
- toolType: string;
30792
- } | null;
30853
+ /** @description Approval awaiting a human. Absent means the overlay did not answer, which is not false and not null. */
30854
+ pendingApproval?: unknown;
30855
+ /** @description Live progress document. Absent means the overlay did not answer, which is not false and not null. */
30793
30856
  progress?: unknown;
30794
- retryOfExecutionId: string | null;
30857
+ /** @description Record this run processed. */
30858
+ recordId: string | null;
30859
+ /** @description Retention removed the spans; the run still lists and reads as completed. */
30860
+ retentionElided?: boolean;
30861
+ /** @description Outermost run of the tree. */
30795
30862
  rootExecutionId: string | null;
30796
- startedAt: string | null;
30797
- /** @enum {string} */
30798
- status: "queued" | "running" | "paused" | "completed" | "failed" | "cancelled" | "interrupted";
30799
- stopReason: string | null;
30863
+ /** @description Cost the producer reported. */
30864
+ selfReportedCost: string | null;
30865
+ /**
30866
+ * @description hosted, or ingested for an OTLP export. An ingested run is never reported running.
30867
+ * @enum {string}
30868
+ */
30869
+ source: "hosted" | "ingested";
30870
+ /** @description Spans the projection wrote. */
30871
+ spanCount: number | null;
30872
+ /** @description ISO instant the run started. */
30873
+ startedAt: string;
30874
+ /**
30875
+ * @description Customer-facing status, derived by runStatusFrom.
30876
+ * @enum {string}
30877
+ */
30878
+ status: "queued" | "running" | "awaiting" | "completed" | "failed" | "cancelled";
30879
+ /** @description Stop reason from the terminal frame. */
30880
+ stopReason?: string | null;
30881
+ /** @description Product surface that entered this run. */
30882
+ surfaceId: string | null;
30883
+ /** @description Surface family (api, chat, webhook, schedule, ...). */
30800
30884
  surfaceType: string | null;
30885
+ /** @description True when the run was dispatched with storeResults: false, so it has no control-plane row and no overlay. NULL means the header states nothing about it, which is not false: headers written before this field shipped, and lanes that take no such flag, carry no dispatch stamp and are never backfilled. */
30886
+ test: boolean | null;
30887
+ /** @description Metered cost as a decimal string. */
30801
30888
  totalCost: string | null;
30802
- totalTokens?: unknown;
30889
+ /** @description Trace id in the span store; null on a row the control-plane arm served. */
30890
+ traceId: string | null;
30803
30891
  }[];
30804
30892
  error?: {
30805
30893
  message: string;
30806
30894
  };
30807
- pagination: components["schemas"]["Pagination"];
30895
+ pagination: components["schemas"]["RunListPagination"];
30808
30896
  }[];
30809
30897
  surfaces: {
30810
30898
  data: (({
@@ -39953,6 +40041,233 @@ interface paths {
39953
40041
  patch?: never;
39954
40042
  trace?: never;
39955
40043
  };
40044
+ "/v1/runs": {
40045
+ parameters: {
40046
+ query?: never;
40047
+ header?: never;
40048
+ path?: never;
40049
+ cookie?: never;
40050
+ };
40051
+ /**
40052
+ * List runs
40053
+ * @description Every agent and flow run in the span store, newest start first. A run dispatched with `storeResults: false` is listed with `test: true` rather than being invisible. `overlay=live` adds live control-plane fields; the overlay never adds, drops or reorders a row. Returns 404 when run reads are not enabled for the organization.
40054
+ */
40055
+ get: {
40056
+ parameters: {
40057
+ query?: {
40058
+ /** @description Filter by agent id; repeat for a set. */
40059
+ agentId?: string | string[];
40060
+ /** @description Filter by flow id; repeat for a set. */
40061
+ flowId?: string | string[];
40062
+ /** @description Filter by conversation id. */
40063
+ conversationId?: string;
40064
+ /** @description Filter by surface id. */
40065
+ surfaceId?: string;
40066
+ /** @description Filter by surface family. */
40067
+ surfaceType?: string;
40068
+ /** @description Filter by record id. */
40069
+ recordId?: string;
40070
+ /** @description Filter by batch id; repeat for a set. */
40071
+ batchExecutionId?: string | string[];
40072
+ /** @description Runs spawned by this execution. */
40073
+ parentExecutionId?: string;
40074
+ /** @description Runs in this execution tree. */
40075
+ rootExecutionId?: string;
40076
+ /** @description Read specific runs by id; at most 100 per request. */
40077
+ executionId?: string | string[];
40078
+ /** @description Filter by producing lane. */
40079
+ source?: "hosted" | "ingested";
40080
+ /** @description status accepts only running, completed or failed. queued, awaiting and cancelled exist only in the live overlay, which may never change which rows a page holds, so the server cannot filter on them. */
40081
+ status?: "running" | "completed" | "failed";
40082
+ /** @description Window start (ISO 8601). Defaults to 24 hours ago. */
40083
+ from?: string;
40084
+ /** @description Window end (ISO 8601). Defaults to now. */
40085
+ to?: string;
40086
+ /** @description full (the default) returns every field. compact omits exactly these 14: stopReason, iterations, agentVersionId, agentVersionLabel, agentVersionNumber, agentTargetResolution, otelProducer, lastHeartbeatAt, expiresAt, cancelRequestedAt, progress, pendingApproval, budgetExhausted and inputMessages. The status is still overlay-corrected on a compact page; only the fields differ. */
40087
+ view?: "compact" | "full";
40088
+ /** @description live adds control-plane fields; defaults to live for a session, none for an API key. */
40089
+ overlay?: "live" | "none";
40090
+ /** @description Page size, at most 100. */
40091
+ limit?: string;
40092
+ /** @description Keyset cursor from a previous page. */
40093
+ cursor?: string;
40094
+ };
40095
+ header?: never;
40096
+ path?: never;
40097
+ cookie?: never;
40098
+ };
40099
+ requestBody?: never;
40100
+ responses: {
40101
+ /** @description Runs returned */
40102
+ 200: {
40103
+ headers: {
40104
+ [name: string]: unknown;
40105
+ };
40106
+ content: {
40107
+ "application/json": {
40108
+ data: components["schemas"]["RunListRow"][];
40109
+ pagination: {
40110
+ hasMore: boolean;
40111
+ hasPrev: boolean;
40112
+ limit: number;
40113
+ nextCursor: string | null;
40114
+ };
40115
+ /** @description The started_at window the query resolved to, after defaults. */
40116
+ window: {
40117
+ from: string;
40118
+ to: string;
40119
+ };
40120
+ };
40121
+ };
40122
+ };
40123
+ /** @description Invalid request, including a filter whose value could not be read */
40124
+ 400: {
40125
+ headers: {
40126
+ [name: string]: unknown;
40127
+ };
40128
+ content: {
40129
+ "application/json": components["schemas"]["Error"];
40130
+ };
40131
+ };
40132
+ /** @description Unauthorized */
40133
+ 401: {
40134
+ headers: {
40135
+ [name: string]: unknown;
40136
+ };
40137
+ content: {
40138
+ "application/json": components["schemas"]["Error"];
40139
+ };
40140
+ };
40141
+ /** @description Insufficient API key permissions */
40142
+ 403: {
40143
+ headers: {
40144
+ [name: string]: unknown;
40145
+ };
40146
+ content: {
40147
+ "application/json": components["schemas"]["Error"];
40148
+ };
40149
+ };
40150
+ /** @description Run reads are not enabled for this organization */
40151
+ 404: {
40152
+ headers: {
40153
+ [name: string]: unknown;
40154
+ };
40155
+ content: {
40156
+ "application/json": components["schemas"]["Error"];
40157
+ };
40158
+ };
40159
+ /** @description Internal server error */
40160
+ 500: {
40161
+ headers: {
40162
+ [name: string]: unknown;
40163
+ };
40164
+ content: {
40165
+ "application/json": components["schemas"]["Error"];
40166
+ };
40167
+ };
40168
+ };
40169
+ };
40170
+ put?: never;
40171
+ post?: never;
40172
+ delete?: never;
40173
+ options?: never;
40174
+ head?: never;
40175
+ patch?: never;
40176
+ trace?: never;
40177
+ };
40178
+ "/v1/runs/{executionId}": {
40179
+ parameters: {
40180
+ query?: never;
40181
+ header?: never;
40182
+ path?: never;
40183
+ cookie?: never;
40184
+ };
40185
+ /**
40186
+ * Read one run
40187
+ * @description One run the caller owns, in the row shape the list returns. An API key must hold the scope of the run's own execution kind (AGENTS:READ or FLOWS:READ, and both when the run states neither). Use `GET /v1/logs/trace/execution/{id}` for its span tree.
40188
+ */
40189
+ get: {
40190
+ parameters: {
40191
+ query?: {
40192
+ /** @description live adds control-plane fields; defaults to live for a session, none for an API key. */
40193
+ overlay?: "live" | "none";
40194
+ /** @description full (the default) returns every field. compact omits exactly these 14: stopReason, iterations, agentVersionId, agentVersionLabel, agentVersionNumber, agentTargetResolution, otelProducer, lastHeartbeatAt, expiresAt, cancelRequestedAt, progress, pendingApproval, budgetExhausted and inputMessages. The status is still overlay-corrected on a compact page; only the fields differ. */
40195
+ view?: "compact" | "full";
40196
+ };
40197
+ header?: never;
40198
+ path: {
40199
+ executionId: string;
40200
+ };
40201
+ cookie?: never;
40202
+ };
40203
+ requestBody?: never;
40204
+ responses: {
40205
+ /** @description Run returned */
40206
+ 200: {
40207
+ headers: {
40208
+ [name: string]: unknown;
40209
+ };
40210
+ content: {
40211
+ "application/json": {
40212
+ data: components["schemas"]["RunListRow"];
40213
+ };
40214
+ };
40215
+ };
40216
+ /** @description Invalid request, including a filter whose value could not be read */
40217
+ 400: {
40218
+ headers: {
40219
+ [name: string]: unknown;
40220
+ };
40221
+ content: {
40222
+ "application/json": components["schemas"]["Error"];
40223
+ };
40224
+ };
40225
+ /** @description Unauthorized */
40226
+ 401: {
40227
+ headers: {
40228
+ [name: string]: unknown;
40229
+ };
40230
+ content: {
40231
+ "application/json": components["schemas"]["Error"];
40232
+ };
40233
+ };
40234
+ /** @description Insufficient API key permissions */
40235
+ 403: {
40236
+ headers: {
40237
+ [name: string]: unknown;
40238
+ };
40239
+ content: {
40240
+ "application/json": components["schemas"]["Error"];
40241
+ };
40242
+ };
40243
+ /** @description Run not found */
40244
+ 404: {
40245
+ headers: {
40246
+ [name: string]: unknown;
40247
+ };
40248
+ content: {
40249
+ "application/json": components["schemas"]["Error"];
40250
+ };
40251
+ };
40252
+ /** @description Internal server error */
40253
+ 500: {
40254
+ headers: {
40255
+ [name: string]: unknown;
40256
+ };
40257
+ content: {
40258
+ "application/json": components["schemas"]["Error"];
40259
+ };
40260
+ };
40261
+ };
40262
+ };
40263
+ put?: never;
40264
+ post?: never;
40265
+ delete?: never;
40266
+ options?: never;
40267
+ head?: never;
40268
+ patch?: never;
40269
+ trace?: never;
40270
+ };
39956
40271
  "/v1/runtime/crawl": {
39957
40272
  parameters: {
39958
40273
  query?: never;
@@ -41912,6 +42227,7 @@ interface paths {
41912
42227
  flowId: string | null;
41913
42228
  id: string;
41914
42229
  processedRecords: number | null;
42230
+ run: components["schemas"]["ScheduleRunLink"];
41915
42231
  scheduleId: string;
41916
42232
  startedAt: string | null;
41917
42233
  status: string;
@@ -42652,6 +42968,7 @@ interface paths {
42652
42968
  flowId: string | null;
42653
42969
  id: string;
42654
42970
  processedRecords: number | null;
42971
+ run: components["schemas"]["ScheduleRunLink"];
42655
42972
  scheduleId: string;
42656
42973
  startedAt: string | null;
42657
42974
  status: string;
@@ -45698,6 +46015,7 @@ interface paths {
45698
46015
  updatedAt: string;
45699
46016
  userId: string | null;
45700
46017
  validation?: {
46018
+ recommendations?: components["schemas"]["FlowValidationIssue"][];
45701
46019
  warnings: {
45702
46020
  code: string;
45703
46021
  column?: number;
@@ -46196,6 +46514,7 @@ interface paths {
46196
46514
  updatedAt: string;
46197
46515
  userId: string | null;
46198
46516
  validation?: {
46517
+ recommendations?: components["schemas"]["FlowValidationIssue"][];
46199
46518
  warnings: {
46200
46519
  code: string;
46201
46520
  column?: number;
@@ -47009,6 +47328,7 @@ interface paths {
47009
47328
  updatedAt: string;
47010
47329
  userId: string | null;
47011
47330
  validation?: {
47331
+ recommendations?: components["schemas"]["FlowValidationIssue"][];
47012
47332
  warnings: {
47013
47333
  code: string;
47014
47334
  column?: number;
@@ -48537,6 +48857,7 @@ interface components {
48537
48857
  [key: string]: unknown;
48538
48858
  };
48539
48859
  description: string;
48860
+ idempotent?: boolean;
48540
48861
  name: string;
48541
48862
  parametersSchema: {
48542
48863
  [key: string]: unknown;
@@ -48774,6 +49095,22 @@ interface components {
48774
49095
  /** @description The system the transcript came from, for example "intercom" or "custom". */
48775
49096
  system: string;
48776
49097
  };
49098
+ ConversationTrace: {
49099
+ conversationId: string;
49100
+ executions: {
49101
+ executionId: string;
49102
+ timestamp: string;
49103
+ tree: components["schemas"]["TraceTree"];
49104
+ }[];
49105
+ producedBy?: components["schemas"]["TraceProducedBy"] & unknown;
49106
+ totalExecutions: number;
49107
+ truncation?: {
49108
+ limit: number;
49109
+ message: string;
49110
+ /** @enum {string} */
49111
+ reason: "record_limit";
49112
+ };
49113
+ };
48777
49114
  ConversationTranscriptMessage: {
48778
49115
  author?: components["schemas"]["ConversationMessageAuthor"];
48779
49116
  /** @description Plain string, or an array of {type:"text"|"image"|"file"|"reasoning"|"asset_ref"} parts. */
@@ -49347,6 +49684,11 @@ interface components {
49347
49684
  * @enum {string|null}
49348
49685
  */
49349
49686
  executionEngine?: "runtime" | "legacy" | "external" | null;
49687
+ /**
49688
+ * @description Present when the failure belongs to the platform, not the target: the model gateway went silent and the stall watchdog gave up before the target could answer. Such a case runs no graders (its outcomes are empty) and is excluded from the suite score. Absent on an ordinary failure.
49689
+ * @enum {string}
49690
+ */
49691
+ failureKind?: "platform_stall";
49350
49692
  name: string;
49351
49693
  /** @description For a checkpoint ("saved from run") case run in next-step mode: the tool-call intent(s) the target emitted as its graded next step. An empty array means it replied with a message instead of calling a tool. Null for ordinary runs and for runs recorded before this field shipped. */
49352
49694
  nextStepToolCalls: {
@@ -49395,9 +49737,11 @@ interface components {
49395
49737
  /** @description The eval name recorded on the run. */
49396
49738
  name: string | null;
49397
49739
  passedCases: number;
49740
+ /** @description Cases the platform aborted before the target could answer. They run no graders and are counted in neither half of score, so totalCases minus this is the denominator score was taken over. */
49741
+ platformAbortedCases: number;
49398
49742
  /** @description The run (batch execution) id these scores belong to. */
49399
49743
  runId: string;
49400
- /** @description Suite score, 0..1 (passed cases / total cases); null when the run has no cases. */
49744
+ /** @description Suite score, 0..1 (passed cases / graded cases). Platform-aborted cases are excluded from both halves; null when the run graded no cases. */
49401
49745
  score: number | null;
49402
49746
  /** @description The severity semantics the run was graded with (and that these verdicts reproduce): true when a soft grader miss failed its case. */
49403
49747
  strict: boolean;
@@ -49476,6 +49820,8 @@ interface components {
49476
49820
  EvalSuiteLatestRun: {
49477
49821
  completedAt: string | null;
49478
49822
  passedCases: number | null;
49823
+ /** @description Cases the platform aborted before the target could answer. They run no graders and are counted in neither half of score, so totalCases minus this is the denominator score was taken over. */
49824
+ platformAbortedCases: number | null;
49479
49825
  runId: string;
49480
49826
  /** @description Suite score of the run, 0..1; null while unscored (in flight / unscoreable). */
49481
49827
  score: number | null;
@@ -49683,6 +50029,52 @@ interface components {
49683
50029
  };
49684
50030
  /** @enum {string} */
49685
50031
  type: "turn_complete";
50032
+ } | {
50033
+ executionId: string;
50034
+ id: string;
50035
+ iteration?: number;
50036
+ model?: string;
50037
+ ordinal: number;
50038
+ provider?: string;
50039
+ seq: number;
50040
+ startedAt?: string;
50041
+ stepId?: string;
50042
+ subagent?: {
50043
+ agentName?: string;
50044
+ parentToolCallId?: string;
50045
+ toolName: string;
50046
+ };
50047
+ turnId?: string;
50048
+ /** @enum {string} */
50049
+ type: "model_call_start";
50050
+ } | {
50051
+ completedAt?: string;
50052
+ cost?: number;
50053
+ durationMs?: number;
50054
+ executionId: string;
50055
+ finishReason?: string;
50056
+ id: string;
50057
+ iteration?: number;
50058
+ model?: string;
50059
+ ordinal: number;
50060
+ provider?: string;
50061
+ responseModel?: string;
50062
+ seq: number;
50063
+ subagent?: {
50064
+ agentName?: string;
50065
+ parentToolCallId?: string;
50066
+ toolName: string;
50067
+ };
50068
+ success?: boolean;
50069
+ tokens?: {
50070
+ cacheRead?: number;
50071
+ cacheWrite?: number;
50072
+ input: number;
50073
+ output: number;
50074
+ };
50075
+ turnId?: string;
50076
+ /** @enum {string} */
50077
+ type: "model_call_complete";
49686
50078
  } | {
49687
50079
  executionId: string;
49688
50080
  id: string;
@@ -50475,6 +50867,11 @@ interface components {
50475
50867
  /** @description Why the case errored (the provider or execution failure text, 2000 chars max). Present only when errored is true and the run reported a cause. */
50476
50868
  error?: string;
50477
50869
  errored: boolean;
50870
+ /**
50871
+ * @description Present when the failure belongs to the platform, not the target: the model gateway went silent and the stall watchdog gave up before the target could answer. Such a case runs no graders and is excluded from the suite score. Absent on an ordinary failure.
50872
+ * @enum {string}
50873
+ */
50874
+ failureKind?: "platform_stall";
50478
50875
  name: string;
50479
50876
  outcomes: {
50480
50877
  /** @description AI graders only: transcript entries the verdict rests on — indices into the run's trace steps (message) or tool calls (tool_call). */
@@ -50508,15 +50905,119 @@ interface components {
50508
50905
  /** @description True when every case passed every grader. */
50509
50906
  passed: boolean;
50510
50907
  passedCases: number;
50908
+ /** @description Cases the platform aborted before the target could answer. They run no graders and are counted in neither half of score, so totalCases minus this is the denominator score was taken over. */
50909
+ platformAbortedCases: number;
50511
50910
  /** @description The persisted run id — query its scores via GET /eval/runs/{runId}/scores. Null for an ephemeral (virtual/inline) run. */
50512
50911
  runId: string | null;
50513
- /** @description Suite score, 0..1 (passed cases / total cases). */
50912
+ /** @description Suite score, 0..1 (passed cases / graded cases). Platform-aborted cases are excluded from both halves. */
50514
50913
  score: number;
50515
50914
  suiteId: string | null;
50516
50915
  /** @enum {string} */
50517
50916
  targetType: "flow" | "agent";
50518
50917
  totalCases: number;
50519
50918
  };
50919
+ RunListPagination: {
50920
+ hasMore: boolean;
50921
+ hasPrev: boolean;
50922
+ limit: number;
50923
+ nextCursor: string | null;
50924
+ };
50925
+ RunListRow: {
50926
+ /** @description Agent that ran. */
50927
+ agentId: string | null;
50928
+ /** @description How the run chose its version: alias, version or legacy-live-row. Absent means the overlay did not answer, which is not false and not null. */
50929
+ agentTargetResolution?: string | null;
50930
+ /** @description Agent version that ran. Absent means the overlay did not answer, which is not false and not null. */
50931
+ agentVersionId?: string | null;
50932
+ /** @description Version label. Absent means the overlay did not answer, which is not false and not null. */
50933
+ agentVersionLabel?: string | null;
50934
+ /** @description Version number, for a version chip and version grouping. Absent means the overlay did not answer, which is not false and not null. */
50935
+ agentVersionNumber?: number | null;
50936
+ /** @description Batch this run belongs to. */
50937
+ batchExecutionId: string | null;
50938
+ /** @description Budget exhausted. Absent means the overlay did not answer, which is not false and not null. */
50939
+ budgetExhausted?: boolean | null;
50940
+ /** @description Cancel request. Absent means the overlay did not answer, which is not false and not null. */
50941
+ cancelRequestedAt?: string | null;
50942
+ /**
50943
+ * @description Storage completeness; null on a row the control-plane arm served.
50944
+ * @enum {string|null}
50945
+ */
50946
+ completeness: "partial" | "complete" | "conflicted" | "expired" | "deleted" | null;
50947
+ /** @description Conversation this run belongs to. */
50948
+ conversationId: string | null;
50949
+ /** @description Wall-clock duration in milliseconds. */
50950
+ durationMs: number | null;
50951
+ /** @description ISO instant the run ended; null while it is still running. */
50952
+ endedAt: string | null;
50953
+ /** @description Runtime execution id; the key for /v1/logs and /v1/runs/{id}. */
50954
+ executionId: string;
50955
+ /** @description Budget expiry. Absent means the overlay did not answer, which is not false and not null. */
50956
+ expiresAt?: string | null;
50957
+ /** @description Fidelity of the projection behind this row. */
50958
+ fidelityTier: string | null;
50959
+ /** @description Flow that ran. */
50960
+ flowId: string | null;
50961
+ /** @description Messages the run started from. Absent means the overlay did not answer, which is not false and not null. */
50962
+ inputMessages?: unknown;
50963
+ /** @description Input tokens reported. */
50964
+ inputTokens: number | null;
50965
+ /** @description Loop iterations from the terminal frame. */
50966
+ iterations?: number | null;
50967
+ /**
50968
+ * @description Whether an agent or a flow ran.
50969
+ * @enum {string}
50970
+ */
50971
+ kind: "agent" | "flow";
50972
+ /** @description Last heartbeat. Absent means the overlay did not answer, which is not false and not null. */
50973
+ lastHeartbeatAt?: string | null;
50974
+ /** @description Framework identity the producer reported, for a versionless run group. Absent means the overlay did not answer, which is not false and not null. */
50975
+ otelProducer?: unknown;
50976
+ /** @description Output tokens reported. */
50977
+ outputTokens: number | null;
50978
+ /** @description Run that spawned this one. */
50979
+ parentExecutionId: string | null;
50980
+ /** @description Parent's tool call that spawned this run. */
50981
+ parentToolCallId: string | null;
50982
+ /** @description Approval awaiting a human. Absent means the overlay did not answer, which is not false and not null. */
50983
+ pendingApproval?: unknown;
50984
+ /** @description Live progress document. Absent means the overlay did not answer, which is not false and not null. */
50985
+ progress?: unknown;
50986
+ /** @description Record this run processed. */
50987
+ recordId: string | null;
50988
+ /** @description Retention removed the spans; the run still lists and reads as completed. */
50989
+ retentionElided?: boolean;
50990
+ /** @description Outermost run of the tree. */
50991
+ rootExecutionId: string | null;
50992
+ /** @description Cost the producer reported. */
50993
+ selfReportedCost: string | null;
50994
+ /**
50995
+ * @description hosted, or ingested for an OTLP export. An ingested run is never reported running.
50996
+ * @enum {string}
50997
+ */
50998
+ source: "hosted" | "ingested";
50999
+ /** @description Spans the projection wrote. */
51000
+ spanCount: number | null;
51001
+ /** @description ISO instant the run started. */
51002
+ startedAt: string;
51003
+ /**
51004
+ * @description Customer-facing status, derived by runStatusFrom.
51005
+ * @enum {string}
51006
+ */
51007
+ status: "queued" | "running" | "awaiting" | "completed" | "failed" | "cancelled";
51008
+ /** @description Stop reason from the terminal frame. */
51009
+ stopReason?: string | null;
51010
+ /** @description Product surface that entered this run. */
51011
+ surfaceId: string | null;
51012
+ /** @description Surface family (api, chat, webhook, schedule, ...). */
51013
+ surfaceType: string | null;
51014
+ /** @description True when the run was dispatched with storeResults: false, so it has no control-plane row and no overlay. NULL means the header states nothing about it, which is not false: headers written before this field shipped, and lanes that take no such flag, carry no dispatch stamp and are never backfilled. */
51015
+ test: boolean | null;
51016
+ /** @description Metered cost as a decimal string. */
51017
+ totalCost: string | null;
51018
+ /** @description Trace id in the span store; null on a row the control-plane arm served. */
51019
+ traceId: string | null;
51020
+ };
50520
51021
  RuntimeEmailAdmissionError: {
50521
51022
  code?: string;
50522
51023
  error: string;
@@ -50560,6 +51061,19 @@ interface components {
50560
51061
  /** @description Dashboard-relative URL to the billing/upgrade page. */
50561
51062
  upgradeUrl?: string;
50562
51063
  };
51064
+ ScheduleRunLink: {
51065
+ /** @description The agent_executions ROW id the scheduled run stored. Provenance only: a different id space from executionId, and never a /v1/runs key. */
51066
+ agentExecutionRowId: string | null;
51067
+ /** @description The batch whose per-record runs are GET /v1/runs?batchExecutionId=. */
51068
+ batchExecutionId: string | null;
51069
+ /** @description The RUNTIME execution id, which is what GET /v1/runs/{executionId} keys on. Null unless kind is run. */
51070
+ executionId: string | null;
51071
+ /**
51072
+ * @description run: one execution, readable at GET /v1/runs/{executionId}. records: a batch, whose per-record runs are GET /v1/runs?batchExecutionId=. none: no readable run was recorded for this scheduled run.
51073
+ * @enum {string}
51074
+ */
51075
+ kind: "run" | "records" | "none";
51076
+ };
50563
51077
  SkillEnsureConflict: {
50564
51078
  /** @enum {string} */
50565
51079
  code: "external_modification" | "remote_changed";
@@ -50748,6 +51262,183 @@ interface components {
50748
51262
  toolId: string;
50749
51263
  updatedAt: string | null;
50750
51264
  };
51265
+ TraceLogEntry: {
51266
+ agentId?: string | null;
51267
+ agentName?: string | null;
51268
+ batchExecutionId?: string | null;
51269
+ cacheReadTokens?: number | null;
51270
+ cacheWriteTokens?: number | null;
51271
+ completionTokens?: number | null;
51272
+ configuredModel?: string | null;
51273
+ conversationId?: string | null;
51274
+ description?: string;
51275
+ durationMs?: number | null;
51276
+ error?: string | null;
51277
+ errorStack?: string | null;
51278
+ estimatedContextBreakdown?: ({
51279
+ categories: {
51280
+ [key: string]: {
51281
+ chars: number;
51282
+ estimatedTokens: number;
51283
+ } & {
51284
+ [key: string]: unknown;
51285
+ };
51286
+ };
51287
+ contextWindowSize?: number;
51288
+ estimatedTotalTokens: number;
51289
+ estimatedUtilizationPercent?: number;
51290
+ } & {
51291
+ [key: string]: unknown;
51292
+ }) | null;
51293
+ /** @description Observed cost. Absent or null means unknown, never zero. */
51294
+ estimatedCost?: number | string | null;
51295
+ eventName?: string | null;
51296
+ executionSessionId?: string | null;
51297
+ fallbackModel?: string | null;
51298
+ flowId?: string | null;
51299
+ flowName?: string | null;
51300
+ id: string;
51301
+ /** @description Arbitrary JSON; shape varies by producer. */
51302
+ input?: unknown;
51303
+ inputSummary?: string | null;
51304
+ isStreaming?: boolean;
51305
+ iteration?: number | null;
51306
+ /** @enum {string} */
51307
+ level: "debug" | "info" | "warn" | "error";
51308
+ /** @enum {string|null} */
51309
+ loggingPolicy?: "off" | null;
51310
+ /** @description Producer bag. Span-store reads carry spanKind, completeness, logicalParentId, otlpAttributes, otlpSpanEvents, systemInstructions, artifacts and state here. */
51311
+ metadata?: {
51312
+ [key: string]: unknown;
51313
+ };
51314
+ modelUsed?: string | null;
51315
+ /** @enum {string} */
51316
+ otlpIncompleteActivity?: "invoke_agent" | "chat" | "execute_tool";
51317
+ /** @enum {string} */
51318
+ otlpInstrumentationWarning?: "span_not_ended";
51319
+ otlpOperationName?: string | null;
51320
+ otlpParentSpanId?: string | null;
51321
+ otlpRecordHash?: string | null;
51322
+ /** @enum {string|null} */
51323
+ otlpRecordKind?: "span" | "span_event" | "log_record" | null;
51324
+ otlpRetentionScope?: string | null;
51325
+ otlpSpanEventIndex?: number | null;
51326
+ otlpSpanId?: string | null;
51327
+ /** @description Arbitrary JSON; shape varies by producer. */
51328
+ output?: unknown;
51329
+ outputSummary?: string | null;
51330
+ promptTokens?: number | null;
51331
+ providerErrorClass?: string | null;
51332
+ providerHost?: string | null;
51333
+ providerHttpMethod?: string | null;
51334
+ providerHttpStatus?: number | null;
51335
+ providerRateLimitHeaders?: {
51336
+ [key: string]: string;
51337
+ } | null;
51338
+ recordId?: string | null;
51339
+ recordName?: string | null;
51340
+ requestId?: string | null;
51341
+ resolvedModel?: string | null;
51342
+ seq?: number;
51343
+ /** @enum {string} */
51344
+ status: "running" | "completed" | "failed" | "queued" | "cancelled" | "unknown";
51345
+ stepId?: string | null;
51346
+ stepName?: string | null;
51347
+ stepType?: string | null;
51348
+ stopReason?: string | null;
51349
+ streamContent?: string;
51350
+ subtitle?: string;
51351
+ surfaceId?: string | null;
51352
+ surfaceType?: string | null;
51353
+ timestamp: string;
51354
+ title: string;
51355
+ toolCallId?: string | null;
51356
+ toolName?: string | null;
51357
+ toolType?: string | null;
51358
+ totalTokens?: number | null;
51359
+ turnId?: string | null;
51360
+ /** @enum {string} */
51361
+ type: "flow" | "step" | "tool" | "batch" | "system" | "agent" | "model" | "schedule" | "audit";
51362
+ usedFallback?: boolean | null;
51363
+ } & {
51364
+ [key: string]: unknown;
51365
+ };
51366
+ TraceNode: {
51367
+ childExecutionId?: string | null;
51368
+ children: components["schemas"]["TraceNode"][];
51369
+ depth: number;
51370
+ endOffsetMs?: number | null;
51371
+ endedAt?: string | null;
51372
+ entry: components["schemas"]["TraceLogEntry"];
51373
+ failed?: boolean;
51374
+ /** @enum {string} */
51375
+ lifecycle?: "single" | "paired" | "start-only" | "complete-only";
51376
+ /** @enum {string} */
51377
+ nodeType: "root" | "iteration" | "model" | "tool" | "step" | "system";
51378
+ recorded?: boolean;
51379
+ startEntry?: components["schemas"]["TraceLogEntry"];
51380
+ startOffsetMs?: number | null;
51381
+ startedAt?: string | null;
51382
+ synthetic?: boolean;
51383
+ };
51384
+ TraceProducedBy: {
51385
+ adapterName?: string | null;
51386
+ adapterVersion?: string | null;
51387
+ agentId?: string | null;
51388
+ agentName?: string | null;
51389
+ agentVersionId?: string | null;
51390
+ agentVersionLabel?: string | null;
51391
+ callable?: boolean;
51392
+ fidelityTier?: string | null;
51393
+ flowId?: string | null;
51394
+ flowName?: string | null;
51395
+ flowVersionId?: string | null;
51396
+ productId?: string | null;
51397
+ productName?: string | null;
51398
+ /** @enum {string} */
51399
+ source: "native" | "external";
51400
+ surfaceType?: string | null;
51401
+ };
51402
+ TraceTree: {
51403
+ availability?: {
51404
+ /** @enum {boolean} */
51405
+ available: false;
51406
+ message: string;
51407
+ /** @enum {string} */
51408
+ reason: "json_ingest_compatibility_path";
51409
+ };
51410
+ /** @description Present only when the child-run read hit its per-parent ceiling, so later child runs are not grafted and their tool-call spans carry no `childExecutionId`. Absent otherwise. */
51411
+ childTruncation?: {
51412
+ limit: number;
51413
+ message: string;
51414
+ /** @enum {string} */
51415
+ reason: "child_limit";
51416
+ };
51417
+ /** @description A span with spilled content could not be read back; those spans carry previews. */
51418
+ contentUnavailable?: boolean;
51419
+ failedCount?: number;
51420
+ nodeCount: number;
51421
+ producedBy?: components["schemas"]["TraceProducedBy"];
51422
+ root: components["schemas"]["TraceNode"] | null;
51423
+ /** @description The run itself failed, as opposed to a span inside a run that completed. */
51424
+ runFailed?: boolean;
51425
+ /** @enum {string} */
51426
+ source?: "logs" | "records" | "logs+records";
51427
+ startedAt?: string | null;
51428
+ toolTimeMs?: number | null;
51429
+ toolTimeOverlapped?: boolean;
51430
+ totalCost: number | null;
51431
+ totalDuration: number | null;
51432
+ totalTokens: number | null;
51433
+ /** @enum {string} */
51434
+ totalsSource?: "execution" | "partial";
51435
+ truncation?: {
51436
+ limit: number;
51437
+ message: string;
51438
+ /** @enum {string} */
51439
+ reason: "record_limit";
51440
+ };
51441
+ };
50751
51442
  UpdateUserProfileResponse: {
50752
51443
  email?: string;
50753
51444
  firstName?: string;
@@ -50873,6 +51564,7 @@ interface operations {
50873
51564
  /** @enum {string} */
50874
51565
  status: "idle" | "observing" | "degraded" | "queryable";
50875
51566
  tiers: {
51567
+ /** @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. */
50876
51568
  canonical: {
50877
51569
  confirmed: number;
50878
51570
  maximumConfirmedLagMs: number | null;
@@ -50912,6 +51604,7 @@ interface operations {
50912
51604
  /** @description Receipt counts for this trace only; confirmations require positive tier reads, not stream acknowledgments. */
50913
51605
  delivery: {
50914
51606
  accepted: number;
51607
+ /** @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. */
50915
51608
  canonicalConfirmed: number;
50916
51609
  complete: number;
50917
51610
  hotConfirmed: number;
@@ -52413,6 +53106,7 @@ declare function createExternalTool(config: {
52413
53106
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
52414
53107
  headers?: Record<string, string>;
52415
53108
  body?: string;
53109
+ idempotent?: boolean;
52416
53110
  }): RuntimeTool;
52417
53111
 
52418
53112
  type JsonPrimitive = string | number | boolean | null;
@@ -52483,6 +53177,8 @@ interface ApiKey {
52483
53177
  name: string;
52484
53178
  keyPrefix: string;
52485
53179
  searchHint?: string;
53180
+ /** Owning organization, fixed at mint together with the owning user. Present on create, get and list. */
53181
+ organizationId?: string;
52486
53182
  permissions: string[];
52487
53183
  isActive: boolean;
52488
53184
  expiresAt?: string;
@@ -53049,6 +53745,8 @@ interface FlowToolConfig {
53049
53745
  flowName?: string;
53050
53746
  parameterMapping: Record<string, string>;
53051
53747
  outputMapping?: string;
53748
+ /** Flow variable to return to the model instead of the terminal step output. */
53749
+ outputVariable?: string;
53052
53750
  }
53053
53751
  interface CustomToolConfig {
53054
53752
  code: string;
@@ -53207,6 +53905,12 @@ interface RuntimeTool {
53207
53905
  toolType: 'flow' | 'custom' | 'external' | 'local' | 'subagent';
53208
53906
  parametersSchema: JSONSchema;
53209
53907
  config?: RuntimeToolConfig;
53908
+ /**
53909
+ * Safe for a resumed durable turn to dispatch a second time. Absent means
53910
+ * not safe: an interrupted call is repaired into an errored result the model
53911
+ * re-decides, rather than silently re-fired.
53912
+ */
53913
+ idempotent?: boolean;
53210
53914
  }
53211
53915
  type RuntimeToolConfig = RuntimeFlowToolConfig | RuntimeCustomToolConfig | RuntimeExternalToolConfig | RuntimeLocalToolConfig | RuntimeSubagentToolConfig;
53212
53916
  interface RuntimeLocalToolConfig {
@@ -53225,6 +53929,8 @@ interface RuntimeFlowToolConfig {
53225
53929
  flowName?: string;
53226
53930
  parameterMapping?: Record<string, string>;
53227
53931
  outputMapping?: string;
53932
+ /** Flow variable to return to the model instead of the terminal step output. */
53933
+ outputVariable?: string;
53228
53934
  }
53229
53935
  interface RuntimeCustomToolConfig {
53230
53936
  code: string;
@@ -53510,10 +54216,17 @@ interface LogQueryResult {
53510
54216
  /** True when historical (R2 SQL) logs were unavailable and only recent hot-tier entries are included. */
53511
54217
  degraded?: boolean;
53512
54218
  }
54219
+ /** The `from`/`to` the API resolved for a logs query, after defaults and aliases. */
54220
+ interface LogSearchedWindow {
54221
+ from: string;
54222
+ to: string;
54223
+ }
53513
54224
  /** Logs are wrapped in a `{ success, data }` envelope by the API. */
53514
54225
  interface LogQueryResponse {
53515
54226
  success: boolean;
53516
54227
  data: LogQueryResult;
54228
+ /** The window the query actually ran over. An empty list names its own range. */
54229
+ window: LogSearchedWindow;
53517
54230
  _debug?: unknown;
53518
54231
  }
53519
54232
  interface LogStatsResult {
@@ -53534,11 +54247,19 @@ interface LogStatsResponse {
53534
54247
  success: boolean;
53535
54248
  data: LogStatsResult;
53536
54249
  cachedAt?: string | null;
54250
+ /** The window the query actually ran over, so `cachedAt` never speaks for another range. */
54251
+ window: LogSearchedWindow;
53537
54252
  _debug?: unknown;
53538
54253
  }
53539
54254
  interface LogQueryParams {
54255
+ /** Start timestamp (ISO 8601). Defaults to 24 hours ago. */
53540
54256
  from?: string;
54257
+ /** End timestamp (ISO 8601). Defaults to now. */
53541
54258
  to?: string;
54259
+ /** Alias for {@link LogQueryParams.from}, ignored when `from` is also set. */
54260
+ startTime?: string;
54261
+ /** Alias for {@link LogQueryParams.to}, ignored when `to` is also set. */
54262
+ endTime?: string;
53542
54263
  /** Comma-separated levels (debug,info,warn,error). */
53543
54264
  level?: string;
53544
54265
  /** Comma-separated categories (execution,agent,tool,model,system,error). */
@@ -54373,6 +55094,12 @@ interface RunEvalCaseResult {
54373
55094
  errored: boolean;
54374
55095
  /** Why the case errored (provider or execution failure text); present only when `errored` is true and a cause was reported. */
54375
55096
  error?: string;
55097
+ /**
55098
+ * Present when the failure belongs to the platform, not the target: the model
55099
+ * gateway went silent and the stall watchdog gave up before the target could
55100
+ * answer. Such a case runs no graders and is excluded from the suite score.
55101
+ */
55102
+ failureKind?: 'platform_stall';
54376
55103
  }
54377
55104
  /**
54378
55105
  * Pin an Agent-target run to one version. Supply at most one of `alias` or
@@ -54410,12 +55137,18 @@ interface RunEvalResult extends EvalRunEvidence {
54410
55137
  * or `null` for an ephemeral (virtual/inline) run.
54411
55138
  */
54412
55139
  runId: string | null;
54413
- /** Suite score, 0..1 (passed cases / total cases). */
55140
+ /** Suite score, 0..1 (passed cases / graded cases; platform-aborted cases are excluded). */
54414
55141
  score: number;
54415
55142
  /** True when every case passed every grader. */
54416
55143
  passed: boolean;
54417
55144
  totalCases: number;
54418
55145
  passedCases: number;
55146
+ /**
55147
+ * Cases the platform aborted before the target could answer. They run no
55148
+ * graders and count in neither half of `score`, so `totalCases` minus this is
55149
+ * the denominator `score` was taken over.
55150
+ */
55151
+ platformAbortedCases: number;
54419
55152
  cases: RunEvalCaseResult[];
54420
55153
  }
54421
55154
  /**
@@ -54453,6 +55186,12 @@ interface EvalRunCaseScores {
54453
55186
  * calling a tool. Null for ordinary runs and pre-feature rows.
54454
55187
  */
54455
55188
  nextStepToolCalls: NextStepToolCall[] | null;
55189
+ /**
55190
+ * Present when the platform aborted the case before the target could answer
55191
+ * (the model gateway went silent and the stall watchdog gave up). Such a case
55192
+ * has no outcomes and is excluded from the run's score.
55193
+ */
55194
+ failureKind?: 'platform_stall';
54456
55195
  }
54457
55196
  /** Persisted per-case grader scores for a run (`client.evals.getRunScores`). */
54458
55197
  interface EvalRunScores extends EvalRunEvidence {
@@ -54463,10 +55202,19 @@ interface EvalRunScores extends EvalRunEvidence {
54463
55202
  name: string | null;
54464
55203
  /** The severity semantics the run was graded with (soft misses fail when true). */
54465
55204
  strict: boolean;
54466
- /** Suite score, 0..1; null when the run has no persisted scores. */
55205
+ /**
55206
+ * Suite score, 0..1 (passed cases / graded cases; platform-aborted cases are
55207
+ * excluded from both halves); null when the run graded no cases.
55208
+ */
54467
55209
  score: number | null;
54468
55210
  totalCases: number;
54469
55211
  passedCases: number;
55212
+ /**
55213
+ * Cases the platform aborted before the target could answer. They run no
55214
+ * graders and count in neither half of `score`, so `totalCases` minus this is
55215
+ * the denominator `score` was taken over.
55216
+ */
55217
+ platformAbortedCases: number;
54470
55218
  cases: EvalRunCaseScores[];
54471
55219
  }
54472
55220
  /**
@@ -55188,6 +55936,12 @@ interface EvalSuiteLatestRun {
55188
55936
  score: number | null;
55189
55937
  totalCases: number | null;
55190
55938
  passedCases: number | null;
55939
+ /**
55940
+ * Cases the platform aborted before the target could answer. They run no
55941
+ * graders and count in neither half of `score`, so `totalCases` minus this is
55942
+ * the denominator `score` was taken over.
55943
+ */
55944
+ platformAbortedCases: number | null;
55191
55945
  }
55192
55946
  /** A suite as returned by list/update (no cases). */
55193
55947
  interface EvalSuiteSummary {
@@ -57119,6 +57873,111 @@ declare class ExecutionsNamespace {
57119
57873
  getStatus(executionId: string): Promise<AsyncExecutionStatus>;
57120
57874
  }
57121
57875
 
57876
+ /**
57877
+ * One run, as `GET /v1/runs` returns it. A local copy of `RunListRow` from
57878
+ * `@runtypelabs/shared`: this package is published to npm and its source runs
57879
+ * directly from the staging smoke lane, where a workspace specifier does not
57880
+ * resolve. Pinned against the shared schema in `marathon-shared-parity.test.ts`.
57881
+ */
57882
+ interface RunListRow {
57883
+ executionId: string;
57884
+ traceId: string | null;
57885
+ startedAt: string;
57886
+ endedAt: string | null;
57887
+ durationMs: number | null;
57888
+ status: 'queued' | 'running' | 'awaiting' | 'completed' | 'failed' | 'cancelled';
57889
+ kind: 'agent' | 'flow';
57890
+ agentId: string | null;
57891
+ flowId: string | null;
57892
+ conversationId: string | null;
57893
+ surfaceId: string | null;
57894
+ surfaceType: string | null;
57895
+ recordId: string | null;
57896
+ batchExecutionId: string | null;
57897
+ parentExecutionId: string | null;
57898
+ parentToolCallId: string | null;
57899
+ rootExecutionId: string | null;
57900
+ source: 'hosted' | 'ingested';
57901
+ fidelityTier: string | null;
57902
+ completeness: 'partial' | 'complete' | 'conflicted' | 'expired' | 'deleted' | null;
57903
+ retentionElided?: boolean;
57904
+ spanCount: number | null;
57905
+ inputTokens: number | null;
57906
+ outputTokens: number | null;
57907
+ totalCost: string | null;
57908
+ selfReportedCost: string | null;
57909
+ /**
57910
+ * True when the run was dispatched with `storeResults: false`, such as an
57911
+ * editor test. NULL means the header states nothing about it, which is not
57912
+ * `false`: headers written before the field shipped carry no dispatch stamp.
57913
+ */
57914
+ test: boolean | null;
57915
+ stopReason?: string | null;
57916
+ iterations?: number | null;
57917
+ /** Overlay fields. Absent means the overlay did not answer, never `false`. */
57918
+ agentVersionId?: string | null;
57919
+ agentVersionLabel?: string | null;
57920
+ agentVersionNumber?: number | null;
57921
+ agentTargetResolution?: string | null;
57922
+ otelProducer?: unknown;
57923
+ lastHeartbeatAt?: string | null;
57924
+ expiresAt?: string | null;
57925
+ cancelRequestedAt?: string | null;
57926
+ progress?: unknown;
57927
+ pendingApproval?: unknown;
57928
+ budgetExhausted?: boolean | null;
57929
+ inputMessages?: unknown;
57930
+ }
57931
+ /** Filters `GET /v1/runs` accepts. Every one lands on an indexed or key column. */
57932
+ interface RunListParams {
57933
+ agentId?: string | string[];
57934
+ flowId?: string | string[];
57935
+ conversationId?: string;
57936
+ surfaceId?: string;
57937
+ surfaceType?: string;
57938
+ recordId?: string;
57939
+ batchExecutionId?: string | string[];
57940
+ parentExecutionId?: string;
57941
+ rootExecutionId?: string;
57942
+ executionId?: string | string[];
57943
+ source?: 'hosted' | 'ingested';
57944
+ /**
57945
+ * `running`, `completed` or `failed` only. `queued`, `awaiting` and
57946
+ * `cancelled` exist only in the live overlay and answer 400.
57947
+ */
57948
+ status?: 'running' | 'completed' | 'failed';
57949
+ from?: string;
57950
+ to?: string;
57951
+ view?: 'compact' | 'full';
57952
+ overlay?: 'live' | 'none';
57953
+ limit?: number;
57954
+ cursor?: string;
57955
+ }
57956
+ interface RunListResponse {
57957
+ data: RunListRow[];
57958
+ pagination: {
57959
+ nextCursor: string | null;
57960
+ hasMore: boolean;
57961
+ hasPrev: boolean;
57962
+ limit: number;
57963
+ };
57964
+ window: {
57965
+ from: string;
57966
+ to: string;
57967
+ };
57968
+ }
57969
+ /**
57970
+ * Read-only namespace over `/v1/runs`, the one list of agent and flow runs.
57971
+ * A run dispatched with `storeResults: false` is listed with `test: true`
57972
+ * rather than being absent.
57973
+ */
57974
+ declare class RunsNamespace {
57975
+ private readonly getClient;
57976
+ constructor(getClient: () => RuntypeClient$1);
57977
+ list(params?: RunListParams): Promise<RunListResponse>;
57978
+ get(executionId: string, params?: Pick<RunListParams, 'view' | 'overlay'>): Promise<RunListRow>;
57979
+ }
57980
+
57122
57981
  /** Canonical normalized form of a tool definition (name excluded — identity). */
57123
57982
  declare function normalizeToolDefinition(definition: ToolContentInput): {
57124
57983
  toolType: string;
@@ -58079,6 +58938,17 @@ declare class Runtype {
58079
58938
  static get agents(): AgentsNamespace;
58080
58939
  /** Poll durable handles returned by asynchronous execute operations. */
58081
58940
  static get executions(): ExecutionsNamespace;
58941
+ /**
58942
+ * Runs namespace - the one list of agent and flow runs, read from the span
58943
+ * store. Includes runs dispatched with `storeResults: false` as `test: true`.
58944
+ *
58945
+ * @example
58946
+ * ```typescript
58947
+ * const { data } = await Runtype.runs.list({ agentId, status: 'failed' })
58948
+ * const run = await Runtype.runs.get(data[0].executionId, { view: 'full' })
58949
+ * ```
58950
+ */
58951
+ static get runs(): RunsNamespace;
58082
58952
  /**
58083
58953
  * Tools namespace - Tool config-as-code (define / ensure / pull)
58084
58954
  *
@@ -59746,6 +60616,8 @@ declare class ToolsEndpoint {
59746
60616
  description: string;
59747
60617
  parameterMapping?: Record<string, string>;
59748
60618
  outputMapping?: string;
60619
+ /** Flow variable to return to the model instead of the terminal step output. */
60620
+ outputVariable?: string;
59749
60621
  }): Promise<Tool>;
59750
60622
  /**
59751
60623
  * Get all built-in tools
@@ -63396,4 +64268,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
63396
64268
  declare function getDefaultPlanPath(taskName: string): string;
63397
64269
  declare function sanitizeTaskSlug(taskName: string): string;
63398
64270
 
63399
- 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 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 RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type 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 };
64271
+ 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 };