@runtypelabs/sdk 9.17.3 → 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.ts 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;
@@ -4411,6 +4414,12 @@ interface paths {
4411
4414
  lastHeartbeatAt: string | null;
4412
4415
  /** @enum {string} */
4413
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;
4414
4423
  parentAgentId: string | null;
4415
4424
  parentConversationId: string | null;
4416
4425
  parentExecutionId: string | null;
@@ -4550,6 +4559,11 @@ interface paths {
4550
4559
  conversationId: string | null;
4551
4560
  createdAt: string;
4552
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";
4553
4567
  /** @enum {string} */
4554
4568
  executionMode: "attached" | "detached";
4555
4569
  expiresAt: string | null;
@@ -18369,6 +18383,11 @@ interface paths {
18369
18383
  createdAt: string;
18370
18384
  error?: string;
18371
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";
18372
18391
  httpStatus?: number;
18373
18392
  result?: unknown;
18374
18393
  /** @enum {string} */
@@ -25151,10 +25170,14 @@ interface paths {
25151
25170
  get: {
25152
25171
  parameters: {
25153
25172
  query?: {
25154
- /** @description Start timestamp (ISO 8601) */
25173
+ /** @description Start timestamp (ISO 8601). Defaults to 24 hours ago. */
25155
25174
  from?: string;
25156
- /** @description End timestamp (ISO 8601) */
25175
+ /** @description End timestamp (ISO 8601). Defaults to now. */
25157
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;
25158
25181
  /** @description Comma-separated log levels (debug,info,warn,error) */
25159
25182
  level?: string;
25160
25183
  /** @description Comma-separated categories */
@@ -25203,6 +25226,13 @@ interface paths {
25203
25226
  };
25204
25227
  };
25205
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
+ };
25206
25236
  };
25207
25237
  };
25208
25238
  };
@@ -25414,10 +25444,14 @@ interface paths {
25414
25444
  get: {
25415
25445
  parameters: {
25416
25446
  query?: {
25417
- /** @description Start timestamp (ISO 8601) */
25447
+ /** @description Start timestamp (ISO 8601). Defaults to 24 hours ago. */
25418
25448
  from?: string;
25419
- /** @description End timestamp (ISO 8601) */
25449
+ /** @description End timestamp (ISO 8601). Defaults to now. */
25420
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;
25421
25455
  /** @description Comma-separated log levels (debug,info,warn,error) */
25422
25456
  level?: string;
25423
25457
  /** @description Comma-separated categories */
@@ -25479,9 +25513,25 @@ interface paths {
25479
25513
  total: number;
25480
25514
  };
25481
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
+ };
25482
25523
  };
25483
25524
  };
25484
25525
  };
25526
+ /** @description Invalid request */
25527
+ 400: {
25528
+ headers: {
25529
+ [name: string]: unknown;
25530
+ };
25531
+ content: {
25532
+ "application/json": components["schemas"]["Error"];
25533
+ };
25534
+ };
25485
25535
  /** @description Unauthorized */
25486
25536
  401: {
25487
25537
  headers: {
@@ -25553,7 +25603,7 @@ interface paths {
25553
25603
  };
25554
25604
  content: {
25555
25605
  "application/json": {
25556
- data?: unknown;
25606
+ data: components["schemas"]["ConversationTrace"];
25557
25607
  success: boolean;
25558
25608
  };
25559
25609
  };
@@ -25625,7 +25675,7 @@ interface paths {
25625
25675
  };
25626
25676
  content: {
25627
25677
  "application/json": {
25628
- data?: unknown;
25678
+ data: components["schemas"]["TraceTree"];
25629
25679
  success: boolean;
25630
25680
  };
25631
25681
  };
@@ -25705,6 +25755,8 @@ interface paths {
25705
25755
  status: string;
25706
25756
  }[];
25707
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;
25708
25760
  };
25709
25761
  };
25710
25762
  };
@@ -30715,7 +30767,7 @@ interface paths {
30715
30767
  };
30716
30768
  /**
30717
30769
  * Get product activity
30718
- * @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.
30719
30771
  */
30720
30772
  get: {
30721
30773
  parameters: {
@@ -30742,71 +30794,105 @@ interface paths {
30742
30794
  agents: {
30743
30795
  agentId: string;
30744
30796
  data: {
30797
+ /** @description Agent that ran. */
30745
30798
  agentId: string | null;
30746
- agentSource: string | null;
30747
- 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;
30748
30813
  /**
30749
- * @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.
30750
- * @enum {string}
30814
+ * @description Storage completeness; null on a row the control-plane arm served.
30815
+ * @enum {string|null}
30751
30816
  */
30752
- agentTargetResolution: "alias" | "version" | "legacy-live-row";
30753
- /** @description Version number and label for `agentVersionId`, joined from `agent_versions`. `null` exactly when `agentVersionId` is `null`. */
30754
- agentVersion: {
30755
- id: string;
30756
- label: string | null;
30757
- versionNumber: number;
30758
- } | null;
30759
- /** @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. */
30760
- agentVersionId: string | null;
30761
- /** @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`. */
30762
- budgetExhausted: boolean | null;
30763
- cancelRequestedAt: string | null;
30764
- completedAt: string | null;
30765
- /** @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. */
30766
30819
  conversationId: string | null;
30767
- 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}. */
30768
30825
  executionId: string;
30769
- /** @enum {string} */
30770
- executionMode: "attached" | "detached";
30771
- expiresAt: string | null;
30772
- /** @description The run's final output. Present by default; omitted when `view=compact`. */
30773
- finalOutput?: unknown;
30774
- 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. */
30775
30833
  inputMessages?: unknown;
30776
- iterations: number | null;
30777
- lastHeartbeatAt: string | null;
30778
- /** @enum {string} */
30779
- notificationMode: "none" | "narrate" | "react";
30780
- parentAgentId: string | null;
30781
- 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. */
30782
30850
  parentExecutionId: string | null;
30851
+ /** @description Parent's tool call that spawned this run. */
30783
30852
  parentToolCallId: string | null;
30784
- pendingApproval: {
30785
- approvalId: string;
30786
- description?: string;
30787
- parameters?: unknown;
30788
- reason?: string;
30789
- requestedAt: string;
30790
- timeout?: number;
30791
- toolCallId: string;
30792
- toolName: string;
30793
- toolType: string;
30794
- } | 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. */
30795
30856
  progress?: unknown;
30796
- 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. */
30797
30862
  rootExecutionId: string | null;
30798
- startedAt: string | null;
30799
- /** @enum {string} */
30800
- status: "queued" | "running" | "paused" | "completed" | "failed" | "cancelled" | "interrupted";
30801
- 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, ...). */
30802
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. */
30803
30888
  totalCost: string | null;
30804
- totalTokens?: unknown;
30889
+ /** @description Trace id in the span store; null on a row the control-plane arm served. */
30890
+ traceId: string | null;
30805
30891
  }[];
30806
30892
  error?: {
30807
30893
  message: string;
30808
30894
  };
30809
- pagination: components["schemas"]["Pagination"];
30895
+ pagination: components["schemas"]["RunListPagination"];
30810
30896
  }[];
30811
30897
  surfaces: {
30812
30898
  data: (({
@@ -39955,6 +40041,233 @@ interface paths {
39955
40041
  patch?: never;
39956
40042
  trace?: never;
39957
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
+ };
39958
40271
  "/v1/runtime/crawl": {
39959
40272
  parameters: {
39960
40273
  query?: never;
@@ -41914,6 +42227,7 @@ interface paths {
41914
42227
  flowId: string | null;
41915
42228
  id: string;
41916
42229
  processedRecords: number | null;
42230
+ run: components["schemas"]["ScheduleRunLink"];
41917
42231
  scheduleId: string;
41918
42232
  startedAt: string | null;
41919
42233
  status: string;
@@ -42654,6 +42968,7 @@ interface paths {
42654
42968
  flowId: string | null;
42655
42969
  id: string;
42656
42970
  processedRecords: number | null;
42971
+ run: components["schemas"]["ScheduleRunLink"];
42657
42972
  scheduleId: string;
42658
42973
  startedAt: string | null;
42659
42974
  status: string;
@@ -45700,6 +46015,7 @@ interface paths {
45700
46015
  updatedAt: string;
45701
46016
  userId: string | null;
45702
46017
  validation?: {
46018
+ recommendations?: components["schemas"]["FlowValidationIssue"][];
45703
46019
  warnings: {
45704
46020
  code: string;
45705
46021
  column?: number;
@@ -46198,6 +46514,7 @@ interface paths {
46198
46514
  updatedAt: string;
46199
46515
  userId: string | null;
46200
46516
  validation?: {
46517
+ recommendations?: components["schemas"]["FlowValidationIssue"][];
46201
46518
  warnings: {
46202
46519
  code: string;
46203
46520
  column?: number;
@@ -47011,6 +47328,7 @@ interface paths {
47011
47328
  updatedAt: string;
47012
47329
  userId: string | null;
47013
47330
  validation?: {
47331
+ recommendations?: components["schemas"]["FlowValidationIssue"][];
47014
47332
  warnings: {
47015
47333
  code: string;
47016
47334
  column?: number;
@@ -48539,6 +48857,7 @@ interface components {
48539
48857
  [key: string]: unknown;
48540
48858
  };
48541
48859
  description: string;
48860
+ idempotent?: boolean;
48542
48861
  name: string;
48543
48862
  parametersSchema: {
48544
48863
  [key: string]: unknown;
@@ -48776,6 +49095,22 @@ interface components {
48776
49095
  /** @description The system the transcript came from, for example "intercom" or "custom". */
48777
49096
  system: string;
48778
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
+ };
48779
49114
  ConversationTranscriptMessage: {
48780
49115
  author?: components["schemas"]["ConversationMessageAuthor"];
48781
49116
  /** @description Plain string, or an array of {type:"text"|"image"|"file"|"reasoning"|"asset_ref"} parts. */
@@ -49349,6 +49684,11 @@ interface components {
49349
49684
  * @enum {string|null}
49350
49685
  */
49351
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";
49352
49692
  name: string;
49353
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. */
49354
49694
  nextStepToolCalls: {
@@ -49397,9 +49737,11 @@ interface components {
49397
49737
  /** @description The eval name recorded on the run. */
49398
49738
  name: string | null;
49399
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;
49400
49742
  /** @description The run (batch execution) id these scores belong to. */
49401
49743
  runId: string;
49402
- /** @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. */
49403
49745
  score: number | null;
49404
49746
  /** @description The severity semantics the run was graded with (and that these verdicts reproduce): true when a soft grader miss failed its case. */
49405
49747
  strict: boolean;
@@ -49478,6 +49820,8 @@ interface components {
49478
49820
  EvalSuiteLatestRun: {
49479
49821
  completedAt: string | null;
49480
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;
49481
49825
  runId: string;
49482
49826
  /** @description Suite score of the run, 0..1; null while unscored (in flight / unscoreable). */
49483
49827
  score: number | null;
@@ -49685,6 +50029,52 @@ interface components {
49685
50029
  };
49686
50030
  /** @enum {string} */
49687
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";
49688
50078
  } | {
49689
50079
  executionId: string;
49690
50080
  id: string;
@@ -50477,6 +50867,11 @@ interface components {
50477
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. */
50478
50868
  error?: string;
50479
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";
50480
50875
  name: string;
50481
50876
  outcomes: {
50482
50877
  /** @description AI graders only: transcript entries the verdict rests on — indices into the run's trace steps (message) or tool calls (tool_call). */
@@ -50510,15 +50905,119 @@ interface components {
50510
50905
  /** @description True when every case passed every grader. */
50511
50906
  passed: boolean;
50512
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;
50513
50910
  /** @description The persisted run id — query its scores via GET /eval/runs/{runId}/scores. Null for an ephemeral (virtual/inline) run. */
50514
50911
  runId: string | null;
50515
- /** @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. */
50516
50913
  score: number;
50517
50914
  suiteId: string | null;
50518
50915
  /** @enum {string} */
50519
50916
  targetType: "flow" | "agent";
50520
50917
  totalCases: number;
50521
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
+ };
50522
51021
  RuntimeEmailAdmissionError: {
50523
51022
  code?: string;
50524
51023
  error: string;
@@ -50562,6 +51061,19 @@ interface components {
50562
51061
  /** @description Dashboard-relative URL to the billing/upgrade page. */
50563
51062
  upgradeUrl?: string;
50564
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
+ };
50565
51077
  SkillEnsureConflict: {
50566
51078
  /** @enum {string} */
50567
51079
  code: "external_modification" | "remote_changed";
@@ -50750,6 +51262,183 @@ interface components {
50750
51262
  toolId: string;
50751
51263
  updatedAt: string | null;
50752
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
+ };
50753
51442
  UpdateUserProfileResponse: {
50754
51443
  email?: string;
50755
51444
  firstName?: string;
@@ -50875,6 +51564,7 @@ interface operations {
50875
51564
  /** @enum {string} */
50876
51565
  status: "idle" | "observing" | "degraded" | "queryable";
50877
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. */
50878
51568
  canonical: {
50879
51569
  confirmed: number;
50880
51570
  maximumConfirmedLagMs: number | null;
@@ -50914,6 +51604,7 @@ interface operations {
50914
51604
  /** @description Receipt counts for this trace only; confirmations require positive tier reads, not stream acknowledgments. */
50915
51605
  delivery: {
50916
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. */
50917
51608
  canonicalConfirmed: number;
50918
51609
  complete: number;
50919
51610
  hotConfirmed: number;
@@ -52415,6 +53106,7 @@ declare function createExternalTool(config: {
52415
53106
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
52416
53107
  headers?: Record<string, string>;
52417
53108
  body?: string;
53109
+ idempotent?: boolean;
52418
53110
  }): RuntimeTool;
52419
53111
 
52420
53112
  type JsonPrimitive = string | number | boolean | null;
@@ -52485,6 +53177,8 @@ interface ApiKey {
52485
53177
  name: string;
52486
53178
  keyPrefix: string;
52487
53179
  searchHint?: string;
53180
+ /** Owning organization, fixed at mint together with the owning user. Present on create, get and list. */
53181
+ organizationId?: string;
52488
53182
  permissions: string[];
52489
53183
  isActive: boolean;
52490
53184
  expiresAt?: string;
@@ -53211,6 +53905,12 @@ interface RuntimeTool {
53211
53905
  toolType: 'flow' | 'custom' | 'external' | 'local' | 'subagent';
53212
53906
  parametersSchema: JSONSchema;
53213
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;
53214
53914
  }
53215
53915
  type RuntimeToolConfig = RuntimeFlowToolConfig | RuntimeCustomToolConfig | RuntimeExternalToolConfig | RuntimeLocalToolConfig | RuntimeSubagentToolConfig;
53216
53916
  interface RuntimeLocalToolConfig {
@@ -53516,10 +54216,17 @@ interface LogQueryResult {
53516
54216
  /** True when historical (R2 SQL) logs were unavailable and only recent hot-tier entries are included. */
53517
54217
  degraded?: boolean;
53518
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
+ }
53519
54224
  /** Logs are wrapped in a `{ success, data }` envelope by the API. */
53520
54225
  interface LogQueryResponse {
53521
54226
  success: boolean;
53522
54227
  data: LogQueryResult;
54228
+ /** The window the query actually ran over. An empty list names its own range. */
54229
+ window: LogSearchedWindow;
53523
54230
  _debug?: unknown;
53524
54231
  }
53525
54232
  interface LogStatsResult {
@@ -53540,11 +54247,19 @@ interface LogStatsResponse {
53540
54247
  success: boolean;
53541
54248
  data: LogStatsResult;
53542
54249
  cachedAt?: string | null;
54250
+ /** The window the query actually ran over, so `cachedAt` never speaks for another range. */
54251
+ window: LogSearchedWindow;
53543
54252
  _debug?: unknown;
53544
54253
  }
53545
54254
  interface LogQueryParams {
54255
+ /** Start timestamp (ISO 8601). Defaults to 24 hours ago. */
53546
54256
  from?: string;
54257
+ /** End timestamp (ISO 8601). Defaults to now. */
53547
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;
53548
54263
  /** Comma-separated levels (debug,info,warn,error). */
53549
54264
  level?: string;
53550
54265
  /** Comma-separated categories (execution,agent,tool,model,system,error). */
@@ -54379,6 +55094,12 @@ interface RunEvalCaseResult {
54379
55094
  errored: boolean;
54380
55095
  /** Why the case errored (provider or execution failure text); present only when `errored` is true and a cause was reported. */
54381
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';
54382
55103
  }
54383
55104
  /**
54384
55105
  * Pin an Agent-target run to one version. Supply at most one of `alias` or
@@ -54416,12 +55137,18 @@ interface RunEvalResult extends EvalRunEvidence {
54416
55137
  * or `null` for an ephemeral (virtual/inline) run.
54417
55138
  */
54418
55139
  runId: string | null;
54419
- /** Suite score, 0..1 (passed cases / total cases). */
55140
+ /** Suite score, 0..1 (passed cases / graded cases; platform-aborted cases are excluded). */
54420
55141
  score: number;
54421
55142
  /** True when every case passed every grader. */
54422
55143
  passed: boolean;
54423
55144
  totalCases: number;
54424
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;
54425
55152
  cases: RunEvalCaseResult[];
54426
55153
  }
54427
55154
  /**
@@ -54459,6 +55186,12 @@ interface EvalRunCaseScores {
54459
55186
  * calling a tool. Null for ordinary runs and pre-feature rows.
54460
55187
  */
54461
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';
54462
55195
  }
54463
55196
  /** Persisted per-case grader scores for a run (`client.evals.getRunScores`). */
54464
55197
  interface EvalRunScores extends EvalRunEvidence {
@@ -54469,10 +55202,19 @@ interface EvalRunScores extends EvalRunEvidence {
54469
55202
  name: string | null;
54470
55203
  /** The severity semantics the run was graded with (soft misses fail when true). */
54471
55204
  strict: boolean;
54472
- /** 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
+ */
54473
55209
  score: number | null;
54474
55210
  totalCases: number;
54475
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;
54476
55218
  cases: EvalRunCaseScores[];
54477
55219
  }
54478
55220
  /**
@@ -55194,6 +55936,12 @@ interface EvalSuiteLatestRun {
55194
55936
  score: number | null;
55195
55937
  totalCases: number | null;
55196
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;
55197
55945
  }
55198
55946
  /** A suite as returned by list/update (no cases). */
55199
55947
  interface EvalSuiteSummary {
@@ -57125,6 +57873,111 @@ declare class ExecutionsNamespace {
57125
57873
  getStatus(executionId: string): Promise<AsyncExecutionStatus>;
57126
57874
  }
57127
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
+
57128
57981
  /** Canonical normalized form of a tool definition (name excluded — identity). */
57129
57982
  declare function normalizeToolDefinition(definition: ToolContentInput): {
57130
57983
  toolType: string;
@@ -58085,6 +58938,17 @@ declare class Runtype {
58085
58938
  static get agents(): AgentsNamespace;
58086
58939
  /** Poll durable handles returned by asynchronous execute operations. */
58087
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;
58088
58952
  /**
58089
58953
  * Tools namespace - Tool config-as-code (define / ensure / pull)
58090
58954
  *
@@ -63404,4 +64268,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
63404
64268
  declare function getDefaultPlanPath(taskName: string): string;
63405
64269
  declare function sanitizeTaskSlug(taskName: string): string;
63406
64270
 
63407
- 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 };