@runtypelabs/sdk 11.10.0 → 11.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -201,7 +201,7 @@ interface paths {
201
201
  path?: never;
202
202
  cookie?: never;
203
203
  };
204
- requestBody?: {
204
+ requestBody: {
205
205
  content: {
206
206
  "application/json": {
207
207
  /**
@@ -397,7 +397,7 @@ interface paths {
397
397
  };
398
398
  cookie?: never;
399
399
  };
400
- requestBody?: {
400
+ requestBody: {
401
401
  content: {
402
402
  "application/json": {
403
403
  deployment?: {
@@ -868,7 +868,7 @@ interface paths {
868
868
  path?: never;
869
869
  cookie?: never;
870
870
  };
871
- requestBody?: {
871
+ requestBody: {
872
872
  content: {
873
873
  "application/json": {
874
874
  /**
@@ -1112,6 +1112,7 @@ interface paths {
1112
1112
  alwaysAllow?: boolean;
1113
1113
  alwaysDeny?: boolean;
1114
1114
  };
1115
+ notifyUser?: boolean;
1115
1116
  requestReason?: boolean;
1116
1117
  require: string[] | boolean;
1117
1118
  timeout?: number;
@@ -1480,7 +1481,7 @@ interface paths {
1480
1481
  path?: never;
1481
1482
  cookie?: never;
1482
1483
  };
1483
- requestBody?: {
1484
+ requestBody: {
1484
1485
  content: {
1485
1486
  "application/json": {
1486
1487
  /** @description The complete set of capabilities (flow, sub-agent and saved-tool attachments) on this agent, in display order. Each entry names its source by name, so the declaration is portable across accounts. Capabilities on the agent but absent here are removed; omit the field to leave them untouched. When present, the capabilities are part of the content hash and of the version this converge snapshots. They are written to the agent itself, so they cannot accompany a non-live deploy. */
@@ -1667,6 +1668,7 @@ interface paths {
1667
1668
  alwaysAllow?: boolean;
1668
1669
  alwaysDeny?: boolean;
1669
1670
  };
1671
+ notifyUser?: boolean;
1670
1672
  requestReason?: boolean;
1671
1673
  require: string[] | boolean;
1672
1674
  timeout?: number;
@@ -1915,7 +1917,7 @@ interface paths {
1915
1917
  path?: never;
1916
1918
  cookie?: never;
1917
1919
  };
1918
- requestBody?: {
1920
+ requestBody: {
1919
1921
  content: {
1920
1922
  "application/json": {
1921
1923
  /** @description Sent as `Authorization: Bearer` on the card request. Never stored or echoed. */
@@ -2512,6 +2514,7 @@ interface paths {
2512
2514
  alwaysAllow?: boolean;
2513
2515
  alwaysDeny?: boolean;
2514
2516
  };
2517
+ notifyUser?: boolean;
2515
2518
  requestReason?: boolean;
2516
2519
  require: string[] | boolean;
2517
2520
  timeout?: number;
@@ -3160,7 +3163,7 @@ interface paths {
3160
3163
  };
3161
3164
  cookie?: never;
3162
3165
  };
3163
- requestBody?: {
3166
+ requestBody: {
3164
3167
  content: {
3165
3168
  "application/json": {
3166
3169
  promotion?: components["schemas"]["AgentDeploymentPromotion"];
@@ -3521,7 +3524,7 @@ interface paths {
3521
3524
  };
3522
3525
  cookie?: never;
3523
3526
  };
3524
- requestBody?: {
3527
+ requestBody: {
3525
3528
  content: {
3526
3529
  "application/json": {
3527
3530
  /** @description The complete binding set, NAME to value. An empty object clears every binding. */
@@ -3934,7 +3937,7 @@ interface paths {
3934
3937
  };
3935
3938
  cookie?: never;
3936
3939
  };
3937
- requestBody?: {
3940
+ requestBody: {
3938
3941
  content: {
3939
3942
  "application/json": components["schemas"]["AgentApproveRequest"];
3940
3943
  };
@@ -4052,7 +4055,7 @@ interface paths {
4052
4055
  };
4053
4056
  cookie?: never;
4054
4057
  };
4055
- requestBody?: {
4058
+ requestBody: {
4056
4059
  content: {
4057
4060
  "application/json": {
4058
4061
  enabled?: boolean;
@@ -4920,7 +4923,7 @@ interface paths {
4920
4923
  [name: string]: unknown;
4921
4924
  };
4922
4925
  content: {
4923
- "application/json": components["schemas"]["Error"];
4926
+ "application/json": components["schemas"]["ExecutionFailedError"];
4924
4927
  };
4925
4928
  };
4926
4929
  /** @description An external agent call failed upstream: rejected credentials, rate limited, an HTTP error, a network failure, or an invalid response */
@@ -5726,7 +5729,7 @@ interface paths {
5726
5729
  * Export agent for runtime
5727
5730
  * @description Export a fully-resolved, self-contained agent definition that the @runtypelabs/runtime package can consume directly at boot. Capabilities, flows, and nested sub-agents are inlined recursively (up to 3 levels). Skills bound to the agent are snapshotted into `skills`, each with the skill version it resolved to, and the runtime loads them with no host wiring. MCP credential values and external-agent auth credentials are replaced with secret-name references. A configured `decision_judge` tool carries its published question set (questions, model, version, input mapping and current calibration) at `config.questionSet`, resolved once at export so a self-hosted runtime never looks the question set up; a question set that is missing, unpublished, owned by another account, or pinned to an unpublished version is reported in `warnings` with reason `question_set_unresolved` instead of failing the export. An export that would carry a literal credential typed into a tool config or MCP server is refused with `422` and code `raw_credential_in_export`. Requires the `RUNTIME:EXPORT` scope and an Enterprise plan (the `byoc` entitlement); an unentitled account receives `403` with code `BYOC_PLAN_REQUIRED` in every environment.
5728
5731
  *
5729
- * The response carries `hostDependencies`: the runtime seams the exported artifact needs a host to wire before it can run everything it describes. A durable-class step (`wait-until` or `crawl`) anywhere in the agent's executable closure declares a `durable-pause-host` dependency; a detached-capable dynamic subagent pool or a detached inline subagent tool declares a `background-run-coordinator` dependency. The array is empty when nothing needs wiring.
5732
+ * The response carries `hostDependencies`: the runtime seams the exported artifact needs a host to wire before it can run everything it describes. A durable-class step (`wait-until` or `crawl`) anywhere in the agent's executable closure declares a `durable-pause-host` dependency; a detached-capable dynamic subagent pool or a detached inline subagent tool declares a `background-run-coordinator` dependency; an account-owned tool reference (`mcp:` or `builtin:` integration id) the export did not inline declares a `hosted-tool-resolver` dependency; and an enabled record step (`upsert-record`, `update-record`, `get-record`, `list-records`, `retrieve-record`) declares a `record-store` dependency. The array is empty when nothing needs wiring.
5730
5733
  *
5731
5734
  * The response also carries `warnings`: each referenced sub-agent or flow the export could not embed, with the reason (`not_found`, `claude_managed_unsupported`, `max_depth_exceeded` for nesting deeper than 3 levels, `invalid_flow_config`, `unresolved_tool_ref`, or `unsupported_mcp_auth`), and each configured decision tool whose question set could not be resolved (`question_set_unresolved`). The export still returns `200` and leaves the referencing capability or tool out of the artifact; a decision tool stays in, without `config.questionSet`. The array is empty when every child was embedded.
5732
5735
  *
@@ -6090,7 +6093,7 @@ interface paths {
6090
6093
  };
6091
6094
  cookie?: never;
6092
6095
  };
6093
- requestBody?: {
6096
+ requestBody: {
6094
6097
  content: {
6095
6098
  "application/json": components["schemas"]["AgentResumeRequest"];
6096
6099
  };
@@ -6836,6 +6839,136 @@ interface paths {
6836
6839
  patch?: never;
6837
6840
  trace?: never;
6838
6841
  };
6842
+ "/v1/analytics/end-user-conversations": {
6843
+ parameters: {
6844
+ query?: never;
6845
+ header?: never;
6846
+ path?: never;
6847
+ cookie?: never;
6848
+ };
6849
+ /**
6850
+ * Get product conversations by end user
6851
+ * @description Rank the verified end users of a product by widget conversations (or messages) started in the window. Conversations from visitors without a verified identity are reported as a separate unattributed total. Known limitation: a conversation linked to its end user only through the widget visitor (not stamped with the end user itself, as in product- or tenant-scoped surfaces) loses that link when the visitor is deleted after its idle TTL (default 90 days, configurable via `visitorIdleDays`). Such conversations then move from that end user to the unattributed total, so counts for older windows can drop over time.
6852
+ */
6853
+ get: {
6854
+ parameters: {
6855
+ query: {
6856
+ productId: string;
6857
+ productTenantId?: string;
6858
+ period?: "billing_period" | "7d" | "30d" | "90d";
6859
+ days?: number;
6860
+ sort?: "conversations" | "messages";
6861
+ limit?: number;
6862
+ };
6863
+ header?: never;
6864
+ path?: never;
6865
+ cookie?: never;
6866
+ };
6867
+ requestBody?: never;
6868
+ responses: {
6869
+ /** @description End-user conversation breakdown */
6870
+ 200: {
6871
+ headers: {
6872
+ [name: string]: unknown;
6873
+ };
6874
+ content: {
6875
+ "application/json": {
6876
+ attributed: {
6877
+ conversations: number;
6878
+ endUsers: number;
6879
+ messages: number;
6880
+ };
6881
+ endUsers: {
6882
+ conversations: number;
6883
+ endUser: {
6884
+ email: string | null;
6885
+ externalId: string;
6886
+ id: string;
6887
+ name: string | null;
6888
+ productTenantId: string | null;
6889
+ };
6890
+ firstConversationAt: string;
6891
+ lastConversationAt: string;
6892
+ messages: number;
6893
+ }[];
6894
+ generatedAt: string;
6895
+ period: {
6896
+ days: number;
6897
+ endDate: string;
6898
+ /** @enum {string} */
6899
+ preset?: "billing_period" | "7d" | "30d" | "90d";
6900
+ startDate: string;
6901
+ };
6902
+ scope: {
6903
+ productId: string;
6904
+ productTenantId: string | null;
6905
+ };
6906
+ totals: {
6907
+ conversations: number;
6908
+ messages: number;
6909
+ };
6910
+ unattributed: {
6911
+ conversations: number;
6912
+ messages: number;
6913
+ };
6914
+ };
6915
+ };
6916
+ };
6917
+ /** @description Validation error */
6918
+ 400: {
6919
+ headers: {
6920
+ [name: string]: unknown;
6921
+ };
6922
+ content: {
6923
+ "application/json": components["schemas"]["Error"];
6924
+ };
6925
+ };
6926
+ /** @description Unauthorized */
6927
+ 401: {
6928
+ headers: {
6929
+ [name: string]: unknown;
6930
+ };
6931
+ content: {
6932
+ "application/json": components["schemas"]["Error"];
6933
+ };
6934
+ };
6935
+ /** @description Insufficient permissions */
6936
+ 403: {
6937
+ headers: {
6938
+ [name: string]: unknown;
6939
+ };
6940
+ content: {
6941
+ "application/json": components["schemas"]["Error"];
6942
+ };
6943
+ };
6944
+ /** @description Feature or product not found */
6945
+ 404: {
6946
+ headers: {
6947
+ [name: string]: unknown;
6948
+ };
6949
+ content: {
6950
+ "application/json": components["schemas"]["Error"];
6951
+ };
6952
+ };
6953
+ /** @description Internal server error */
6954
+ 500: {
6955
+ headers: {
6956
+ [name: string]: unknown;
6957
+ };
6958
+ content: {
6959
+ "application/json": components["schemas"]["Error"];
6960
+ };
6961
+ };
6962
+ };
6963
+ };
6964
+ put?: never;
6965
+ post?: never;
6966
+ delete?: never;
6967
+ options?: never;
6968
+ head?: never;
6969
+ patch?: never;
6970
+ trace?: never;
6971
+ };
6839
6972
  "/v1/analytics/end-user-usage": {
6840
6973
  parameters: {
6841
6974
  query?: never;
@@ -8358,6 +8491,10 @@ interface paths {
8358
8491
  recordName: string | null;
8359
8492
  resolvedPrompt?: string | null;
8360
8493
  retryCount?: number | null;
8494
+ sources?: {
8495
+ title?: string;
8496
+ url: string;
8497
+ }[] | null;
8361
8498
  startedAt: string | null;
8362
8499
  status: string;
8363
8500
  stepConfig?: unknown;
@@ -8709,7 +8846,7 @@ interface paths {
8709
8846
  path?: never;
8710
8847
  cookie?: never;
8711
8848
  };
8712
- requestBody?: {
8849
+ requestBody: {
8713
8850
  content: {
8714
8851
  "application/json": {
8715
8852
  /** @default [] */
@@ -11401,7 +11538,7 @@ interface paths {
11401
11538
  path?: never;
11402
11539
  cookie?: never;
11403
11540
  };
11404
- requestBody?: {
11541
+ requestBody: {
11405
11542
  content: {
11406
11543
  "application/json": {
11407
11544
  description?: string | null;
@@ -11523,7 +11660,7 @@ interface paths {
11523
11660
  path?: never;
11524
11661
  cookie?: never;
11525
11662
  };
11526
- requestBody?: {
11663
+ requestBody: {
11527
11664
  content: {
11528
11665
  "application/json": {
11529
11666
  contentHash?: string;
@@ -13614,7 +13751,7 @@ interface paths {
13614
13751
  };
13615
13752
  cookie?: never;
13616
13753
  };
13617
- requestBody?: {
13754
+ requestBody: {
13618
13755
  content: {
13619
13756
  "application/json": {
13620
13757
  /** @enum {string} */
@@ -13925,7 +14062,7 @@ interface paths {
13925
14062
  path?: never;
13926
14063
  cookie?: never;
13927
14064
  };
13928
- requestBody?: {
14065
+ requestBody: {
13929
14066
  content: {
13930
14067
  "application/json": {
13931
14068
  allowDestructive?: boolean;
@@ -14612,7 +14749,7 @@ interface paths {
14612
14749
  };
14613
14750
  cookie?: never;
14614
14751
  };
14615
- requestBody?: {
14752
+ requestBody: {
14616
14753
  content: {
14617
14754
  "application/json": {
14618
14755
  /** @description Deliver the message only while the task still waits on the question journaled at this seq (the `seq` of its `question` event). Otherwise the call answers 409 `DELEGATE_TASK_QUESTION_ANSWERED` and delivers nothing, so an answer is safe to retry. */
@@ -14915,7 +15052,7 @@ interface paths {
14915
15052
  path?: never;
14916
15053
  cookie?: never;
14917
15054
  };
14918
- requestBody?: {
15055
+ requestBody: {
14919
15056
  content: {
14920
15057
  "application/json": {
14921
15058
  appVersion: string;
@@ -15157,7 +15294,7 @@ interface paths {
15157
15294
  };
15158
15295
  cookie?: never;
15159
15296
  };
15160
- requestBody?: {
15297
+ requestBody: {
15161
15298
  content: {
15162
15299
  "application/json": {
15163
15300
  nonce: string;
@@ -15343,7 +15480,7 @@ interface paths {
15343
15480
  path?: never;
15344
15481
  cookie?: never;
15345
15482
  };
15346
- requestBody?: {
15483
+ requestBody: {
15347
15484
  content: {
15348
15485
  "application/json": {
15349
15486
  agent?: {
@@ -16392,7 +16529,7 @@ interface paths {
16392
16529
  [name: string]: unknown;
16393
16530
  };
16394
16531
  content: {
16395
- "application/json": components["schemas"]["InternalError"];
16532
+ "application/json": components["schemas"]["InternalError"] | components["schemas"]["ExecutionFailedError"];
16396
16533
  };
16397
16534
  };
16398
16535
  /** @description Asynchronous execution unavailable */
@@ -16432,7 +16569,7 @@ interface paths {
16432
16569
  path?: never;
16433
16570
  cookie?: never;
16434
16571
  };
16435
- requestBody?: {
16572
+ requestBody: {
16436
16573
  content: {
16437
16574
  "application/json": {
16438
16575
  approvalId: string;
@@ -16557,7 +16694,7 @@ interface paths {
16557
16694
  path?: never;
16558
16695
  cookie?: never;
16559
16696
  };
16560
- requestBody?: {
16697
+ requestBody: {
16561
16698
  content: {
16562
16699
  "application/json": {
16563
16700
  continuation: {
@@ -16742,7 +16879,7 @@ interface paths {
16742
16879
  path?: never;
16743
16880
  cookie?: never;
16744
16881
  };
16745
- requestBody?: {
16882
+ requestBody: {
16746
16883
  content: {
16747
16884
  "application/json": {
16748
16885
  /** @description The execution ID to resume */
@@ -16924,7 +17061,7 @@ interface paths {
16924
17061
  path?: never;
16925
17062
  cookie?: never;
16926
17063
  };
16927
- requestBody?: {
17064
+ requestBody: {
16928
17065
  content: {
16929
17066
  "application/json": {
16930
17067
  /** @description Natural-language documentation question. */
@@ -17138,7 +17275,7 @@ interface paths {
17138
17275
  path?: never;
17139
17276
  cookie?: never;
17140
17277
  };
17141
- requestBody?: {
17278
+ requestBody: {
17142
17279
  content: {
17143
17280
  "application/json": components["schemas"]["EndUserAuthConsumeRequest"];
17144
17281
  };
@@ -17256,7 +17393,7 @@ interface paths {
17256
17393
  path?: never;
17257
17394
  cookie?: never;
17258
17395
  };
17259
- requestBody?: {
17396
+ requestBody: {
17260
17397
  content: {
17261
17398
  "application/json": components["schemas"]["EndUserAuthRefreshRequest"];
17262
17399
  };
@@ -17326,7 +17463,7 @@ interface paths {
17326
17463
  path?: never;
17327
17464
  cookie?: never;
17328
17465
  };
17329
- requestBody?: {
17466
+ requestBody: {
17330
17467
  content: {
17331
17468
  "application/json": components["schemas"]["EndUserAuthRequestLinkRequest"];
17332
17469
  };
@@ -17399,7 +17536,7 @@ interface paths {
17399
17536
  };
17400
17537
  cookie?: never;
17401
17538
  };
17402
- requestBody?: {
17539
+ requestBody: {
17403
17540
  content: {
17404
17541
  "application/json": {
17405
17542
  /** @description The end user's customer-native Identity-Exchange proof (a JWT). Verified server-side against the builder’s configured identity integrations; the verified subject becomes the end-user identity. Never a body-asserted id. */
@@ -17502,7 +17639,7 @@ interface paths {
17502
17639
  path?: never;
17503
17640
  cookie?: never;
17504
17641
  };
17505
- requestBody?: {
17642
+ requestBody: {
17506
17643
  content: {
17507
17644
  "application/json": {
17508
17645
  caseSensitive?: boolean;
@@ -17710,7 +17847,7 @@ interface paths {
17710
17847
  path?: never;
17711
17848
  cookie?: never;
17712
17849
  };
17713
- requestBody?: {
17850
+ requestBody: {
17714
17851
  content: {
17715
17852
  "application/json": {
17716
17853
  evalGroupId: string;
@@ -17831,7 +17968,7 @@ interface paths {
17831
17968
  path?: never;
17832
17969
  cookie?: never;
17833
17970
  };
17834
- requestBody?: {
17971
+ requestBody: {
17835
17972
  content: {
17836
17973
  "application/json": {
17837
17974
  evalGroupId: string;
@@ -18041,7 +18178,7 @@ interface paths {
18041
18178
  path?: never;
18042
18179
  cookie?: never;
18043
18180
  };
18044
- requestBody?: {
18181
+ requestBody: {
18045
18182
  content: {
18046
18183
  "application/json": {
18047
18184
  contentHash?: string;
@@ -18311,7 +18448,7 @@ interface paths {
18311
18448
  path?: never;
18312
18449
  cookie?: never;
18313
18450
  };
18314
- requestBody?: {
18451
+ requestBody: {
18315
18452
  content: {
18316
18453
  "application/json": components["schemas"]["DecomposeCriteriaRequest"];
18317
18454
  };
@@ -18644,7 +18781,7 @@ interface paths {
18644
18781
  path?: never;
18645
18782
  cookie?: never;
18646
18783
  };
18647
- requestBody?: {
18784
+ requestBody: {
18648
18785
  content: {
18649
18786
  "application/json": {
18650
18787
  agent?: components["schemas"]["EvalAgentSelector"] & unknown;
@@ -18920,7 +19057,7 @@ interface paths {
18920
19057
  };
18921
19058
  cookie?: never;
18922
19059
  };
18923
- requestBody?: {
19060
+ requestBody: {
18924
19061
  content: {
18925
19062
  "application/json": {
18926
19063
  /**
@@ -19316,7 +19453,7 @@ interface paths {
19316
19453
  path?: never;
19317
19454
  cookie?: never;
19318
19455
  };
19319
- requestBody?: {
19456
+ requestBody: {
19320
19457
  content: {
19321
19458
  "application/json": {
19322
19459
  agentId?: string;
@@ -19653,7 +19790,7 @@ interface paths {
19653
19790
  };
19654
19791
  cookie?: never;
19655
19792
  };
19656
- requestBody?: {
19793
+ requestBody: {
19657
19794
  content: {
19658
19795
  "application/json": {
19659
19796
  /** @description Pin a run of this suite as the comparison baseline; null clears the pin. */
@@ -19776,7 +19913,7 @@ interface paths {
19776
19913
  };
19777
19914
  cookie?: never;
19778
19915
  };
19779
- requestBody?: {
19916
+ requestBody: {
19780
19917
  content: {
19781
19918
  "application/json": {
19782
19919
  cases: {
@@ -19944,7 +20081,7 @@ interface paths {
19944
20081
  };
19945
20082
  cookie?: never;
19946
20083
  };
19947
- requestBody?: {
20084
+ requestBody: {
19948
20085
  content: {
19949
20086
  "application/json": {
19950
20087
  /** @description Runtime execution id (from a log/trace row) of the agent run to fork from. */
@@ -20117,7 +20254,7 @@ interface paths {
20117
20254
  };
20118
20255
  cookie?: never;
20119
20256
  };
20120
- requestBody?: {
20257
+ requestBody: {
20121
20258
  content: {
20122
20259
  "application/json": {
20123
20260
  enabled?: boolean;
@@ -22360,7 +22497,7 @@ interface paths {
22360
22497
  };
22361
22498
  cookie?: never;
22362
22499
  };
22363
- requestBody?: {
22500
+ requestBody: {
22364
22501
  content: {
22365
22502
  "application/json": {
22366
22503
  /**
@@ -22798,7 +22935,7 @@ interface paths {
22798
22935
  path?: never;
22799
22936
  cookie?: never;
22800
22937
  };
22801
- requestBody?: {
22938
+ requestBody: {
22802
22939
  content: {
22803
22940
  "application/json": {
22804
22941
  description?: string | null;
@@ -22813,6 +22950,20 @@ interface paths {
22813
22950
  type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "get-record" | "list-records" | "api-call" | "transform-data" | "template" | "conditional" | "loop" | "set-variable" | "upsert-record" | "send-email" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary" | "extract";
22814
22951
  when?: string;
22815
22952
  }[];
22953
+ /** @description Inputs the flow expects its caller to supply. Declared names do not raise UNDECLARED_VARIABLE_REFERENCE. */
22954
+ inputs?: {
22955
+ /** @description Short explanation of the value. */
22956
+ description?: string;
22957
+ /** @description Variable name, referenced in steps as {{name}}. */
22958
+ name: string;
22959
+ /** @description Whether callers must supply it. Stored only; not enforced at run time yet. */
22960
+ required?: boolean;
22961
+ /**
22962
+ * @description Expected value type.
22963
+ * @enum {string}
22964
+ */
22965
+ type?: "string" | "number" | "boolean" | "object" | "array";
22966
+ }[];
22816
22967
  name: string;
22817
22968
  steps?: {
22818
22969
  config?: unknown;
@@ -22851,6 +23002,20 @@ interface paths {
22851
23002
  type: string;
22852
23003
  }[];
22853
23004
  id: string;
23005
+ /** @description Inputs the flow expects its caller to supply. Absent when none are declared. */
23006
+ inputs?: {
23007
+ /** @description Short explanation of the value. */
23008
+ description?: string;
23009
+ /** @description Variable name, referenced in steps as {{name}}. */
23010
+ name: string;
23011
+ /** @description Whether callers must supply it. Stored only; not enforced at run time yet. */
23012
+ required?: boolean;
23013
+ /**
23014
+ * @description Expected value type.
23015
+ * @enum {string}
23016
+ */
23017
+ type?: "string" | "number" | "boolean" | "object" | "array";
23018
+ }[];
22854
23019
  lastModifiedSource: string | null;
22855
23020
  lastRunAt?: string | null;
22856
23021
  name: string;
@@ -22929,7 +23094,7 @@ interface paths {
22929
23094
  path?: never;
22930
23095
  cookie?: never;
22931
23096
  };
22932
- requestBody?: {
23097
+ requestBody: {
22933
23098
  content: {
22934
23099
  "application/json": {
22935
23100
  contentHash?: string;
@@ -23150,6 +23315,20 @@ interface paths {
23150
23315
  type: string;
23151
23316
  }[];
23152
23317
  id: string;
23318
+ /** @description Inputs the flow expects its caller to supply. Absent when none are declared. */
23319
+ inputs?: {
23320
+ /** @description Short explanation of the value. */
23321
+ description?: string;
23322
+ /** @description Variable name, referenced in steps as {{name}}. */
23323
+ name: string;
23324
+ /** @description Whether callers must supply it. Stored only; not enforced at run time yet. */
23325
+ required?: boolean;
23326
+ /**
23327
+ * @description Expected value type.
23328
+ * @enum {string}
23329
+ */
23330
+ type?: "string" | "number" | "boolean" | "object" | "array";
23331
+ }[];
23153
23332
  lastModifiedSource: string | null;
23154
23333
  lastRunAt?: string | null;
23155
23334
  name: string;
@@ -23230,6 +23409,20 @@ interface paths {
23230
23409
  type: "prompt" | "crawl" | "fetch-url" | "retrieve-record" | "get-record" | "list-records" | "api-call" | "transform-data" | "template" | "conditional" | "loop" | "set-variable" | "upsert-record" | "send-email" | "send-event" | "send-stream" | "update-record" | "search" | "generate-embedding" | "vector-search" | "tool-call" | "wait-until" | "paginate-api" | "store-vector" | "execute-agent" | "store-asset" | "generate-pdf" | "save-memory" | "recall-memory" | "memory-summary" | "extract";
23231
23410
  when?: string;
23232
23411
  }[];
23412
+ /** @description Inputs the flow expects its caller to supply. Declared names do not raise UNDECLARED_VARIABLE_REFERENCE. */
23413
+ inputs?: {
23414
+ /** @description Short explanation of the value. */
23415
+ description?: string;
23416
+ /** @description Variable name, referenced in steps as {{name}}. */
23417
+ name: string;
23418
+ /** @description Whether callers must supply it. Stored only; not enforced at run time yet. */
23419
+ required?: boolean;
23420
+ /**
23421
+ * @description Expected value type.
23422
+ * @enum {string}
23423
+ */
23424
+ type?: "string" | "number" | "boolean" | "object" | "array";
23425
+ }[] | null;
23233
23426
  name?: string;
23234
23427
  };
23235
23428
  };
@@ -23257,6 +23450,20 @@ interface paths {
23257
23450
  type: string;
23258
23451
  }[];
23259
23452
  id: string;
23453
+ /** @description Inputs the flow expects its caller to supply. Absent when none are declared. */
23454
+ inputs?: {
23455
+ /** @description Short explanation of the value. */
23456
+ description?: string;
23457
+ /** @description Variable name, referenced in steps as {{name}}. */
23458
+ name: string;
23459
+ /** @description Whether callers must supply it. Stored only; not enforced at run time yet. */
23460
+ required?: boolean;
23461
+ /**
23462
+ * @description Expected value type.
23463
+ * @enum {string}
23464
+ */
23465
+ type?: "string" | "number" | "boolean" | "object" | "array";
23466
+ }[];
23260
23467
  lastModifiedSource: string | null;
23261
23468
  lastRunAt?: string | null;
23262
23469
  name: string;
@@ -23404,7 +23611,7 @@ interface paths {
23404
23611
  * Export flow for runtime (limited preview)
23405
23612
  * @description Export a fully-resolved, self-contained flow definition that the @runtypelabs/runtime package can consume directly at boot. All step configs are inlined; no live DB queries are needed at execution time. A configured `decision_judge` tool carries its published question set (questions, model, version, input mapping and current calibration) at `config.questionSet`, resolved once at export so a self-hosted runtime never looks the question set up; a question set that is missing, unpublished, owned by another account, or pinned to an unpublished version is reported in `warnings` with reason `question_set_unresolved` instead of failing the export. An export that would carry a literal credential typed into a tool config or MCP server is refused with `422` and code `raw_credential_in_export`. Requires the `RUNTIME:EXPORT` scope and an Enterprise plan (the `byoc` entitlement); an unentitled account receives `403` with code `BYOC_PLAN_REQUIRED` in every environment.
23406
23613
  *
23407
- * The response carries `hostDependencies`: the runtime seams the exported artifact needs a host to wire before it can run everything it describes. A durable-class step (`wait-until` or `crawl`) anywhere in the flow's executable closure declares a `durable-pause-host` dependency; a detached-capable dynamic subagent pool or a detached inline subagent tool declares a `background-run-coordinator` dependency. The array is empty when nothing needs wiring, and the export is never refused for a declared dependency.
23614
+ * The response carries `hostDependencies`: the runtime seams the exported artifact needs a host to wire before it can run everything it describes. A durable-class step (`wait-until` or `crawl`) anywhere in the flow's executable closure declares a `durable-pause-host` dependency; a detached-capable dynamic subagent pool or a detached inline subagent tool declares a `background-run-coordinator` dependency; an account-owned tool reference (`mcp:` or `builtin:` integration id) the export did not inline declares a `hosted-tool-resolver` dependency; and an enabled record step (`upsert-record`, `update-record`, `get-record`, `list-records`, `retrieve-record`) declares a `record-store` dependency. The array is empty when nothing needs wiring, and the export is never refused for a declared dependency.
23408
23615
  *
23409
23616
  * The response also carries `warnings`: each Claude Managed agent the flow references (embedded only as a stub the runtime cannot run), and each child flow or sub-agent that an embedded agent could not include, with the reason, and each configured decision tool whose question set could not be resolved (`question_set_unresolved`). The array is empty when every child was embedded.
23410
23617
  */
@@ -23633,7 +23840,7 @@ interface paths {
23633
23840
  };
23634
23841
  cookie?: never;
23635
23842
  };
23636
- requestBody?: {
23843
+ requestBody: {
23637
23844
  content: {
23638
23845
  "application/json": {
23639
23846
  recordType: string;
@@ -23851,6 +24058,10 @@ interface paths {
23851
24058
  recordName: string | null;
23852
24059
  resolvedPrompt?: string | null;
23853
24060
  retryCount?: number | null;
24061
+ sources?: {
24062
+ title?: string;
24063
+ url: string;
24064
+ }[] | null;
23854
24065
  startedAt: string | null;
23855
24066
  status: string;
23856
24067
  stepConfig?: unknown;
@@ -24002,7 +24213,7 @@ interface paths {
24002
24213
  path?: never;
24003
24214
  cookie?: never;
24004
24215
  };
24005
- requestBody?: {
24216
+ requestBody: {
24006
24217
  content: {
24007
24218
  "application/json": {
24008
24219
  /** @description Provider management/client credentials. Sealed at rest, bound to this integration, and never returned by any endpoint. Set a field to rotate it; null clears it. */
@@ -24599,7 +24810,7 @@ interface paths {
24599
24810
  };
24600
24811
  cookie?: never;
24601
24812
  };
24602
- requestBody?: {
24813
+ requestBody: {
24603
24814
  content: {
24604
24815
  "application/json": {
24605
24816
  /** @description API key for the provider */
@@ -24834,7 +25045,7 @@ interface paths {
24834
25045
  path?: never;
24835
25046
  cookie?: never;
24836
25047
  };
24837
- requestBody?: {
25048
+ requestBody: {
24838
25049
  content: {
24839
25050
  "application/json": {
24840
25051
  /** @enum {string} */
@@ -25161,7 +25372,7 @@ interface paths {
25161
25372
  path?: never;
25162
25373
  cookie?: never;
25163
25374
  };
25164
- requestBody?: {
25375
+ requestBody: {
25165
25376
  content: {
25166
25377
  "application/json": {
25167
25378
  apiKey: string;
@@ -25335,7 +25546,7 @@ interface paths {
25335
25546
  path?: never;
25336
25547
  cookie?: never;
25337
25548
  };
25338
- requestBody?: {
25549
+ requestBody: {
25339
25550
  content: {
25340
25551
  "application/json": {
25341
25552
  appId?: string;
@@ -25439,7 +25650,7 @@ interface paths {
25439
25650
  path?: never;
25440
25651
  cookie?: never;
25441
25652
  };
25442
- requestBody?: {
25653
+ requestBody: {
25443
25654
  content: {
25444
25655
  "application/json": {
25445
25656
  appName?: string;
@@ -25546,7 +25757,7 @@ interface paths {
25546
25757
  path?: never;
25547
25758
  cookie?: never;
25548
25759
  };
25549
- requestBody?: {
25760
+ requestBody: {
25550
25761
  content: {
25551
25762
  "application/json": {
25552
25763
  appId?: string;
@@ -25654,7 +25865,7 @@ interface paths {
25654
25865
  path?: never;
25655
25866
  cookie?: never;
25656
25867
  };
25657
- requestBody?: {
25868
+ requestBody: {
25658
25869
  content: {
25659
25870
  "application/json": {
25660
25871
  botId: string;
@@ -25812,7 +26023,7 @@ interface paths {
25812
26023
  path?: never;
25813
26024
  cookie?: never;
25814
26025
  };
25815
- requestBody?: {
26026
+ requestBody: {
25816
26027
  content: {
25817
26028
  "application/json": {
25818
26029
  botCommands?: {
@@ -26468,7 +26679,7 @@ interface paths {
26468
26679
  path?: never;
26469
26680
  cookie?: never;
26470
26681
  };
26471
- requestBody?: {
26682
+ requestBody: {
26472
26683
  content: {
26473
26684
  "application/json": {
26474
26685
  accountId: string;
@@ -26565,7 +26776,7 @@ interface paths {
26565
26776
  path?: never;
26566
26777
  cookie?: never;
26567
26778
  };
26568
- requestBody?: {
26779
+ requestBody: {
26569
26780
  content: {
26570
26781
  "application/json": {
26571
26782
  accountId?: string;
@@ -26771,7 +26982,7 @@ interface paths {
26771
26982
  path?: never;
26772
26983
  cookie?: never;
26773
26984
  };
26774
- requestBody?: {
26985
+ requestBody: {
26775
26986
  content: {
26776
26987
  "application/json": {
26777
26988
  accountId: string;
@@ -27288,7 +27499,7 @@ interface paths {
27288
27499
  path?: never;
27289
27500
  cookie?: never;
27290
27501
  };
27291
- requestBody?: {
27502
+ requestBody: {
27292
27503
  content: {
27293
27504
  "application/json": {
27294
27505
  apiKey: string;
@@ -27396,7 +27607,7 @@ interface paths {
27396
27607
  path?: never;
27397
27608
  cookie?: never;
27398
27609
  };
27399
- requestBody?: {
27610
+ requestBody: {
27400
27611
  content: {
27401
27612
  "application/json": {
27402
27613
  apiKey: string;
@@ -29199,6 +29410,106 @@ interface paths {
29199
29410
  patch?: never;
29200
29411
  trace?: never;
29201
29412
  };
29413
+ "/v1/logs/trace/compare": {
29414
+ parameters: {
29415
+ query?: never;
29416
+ header?: never;
29417
+ path?: never;
29418
+ cookie?: never;
29419
+ };
29420
+ get?: never;
29421
+ put?: never;
29422
+ /**
29423
+ * Compare traces
29424
+ * @description Structural diff of two executions (tool-sequence alignment, first divergence, per-side totals, shallow argument drift) or of two cohorts given as query filter sets (tool usage, stop reasons and signal rates over at most 50 sampled runs per side).
29425
+ */
29426
+ post: {
29427
+ parameters: {
29428
+ query?: never;
29429
+ header?: never;
29430
+ path?: never;
29431
+ cookie?: never;
29432
+ };
29433
+ requestBody: {
29434
+ content: {
29435
+ "application/json": components["schemas"]["TraceCompareRequest"];
29436
+ };
29437
+ };
29438
+ responses: {
29439
+ /** @description Comparison */
29440
+ 200: {
29441
+ headers: {
29442
+ [name: string]: unknown;
29443
+ };
29444
+ content: {
29445
+ "application/json": {
29446
+ data: components["schemas"]["TraceCompare"];
29447
+ success: boolean;
29448
+ };
29449
+ };
29450
+ };
29451
+ /** @description Unreadable filter, window over the cap, or too many runs to probe; `code` says which */
29452
+ 400: {
29453
+ headers: {
29454
+ [name: string]: unknown;
29455
+ };
29456
+ content: {
29457
+ "application/json": components["schemas"]["Error"];
29458
+ };
29459
+ };
29460
+ /** @description Unauthorized */
29461
+ 401: {
29462
+ headers: {
29463
+ [name: string]: unknown;
29464
+ };
29465
+ content: {
29466
+ "application/json": components["schemas"]["Error"];
29467
+ };
29468
+ };
29469
+ /** @description API key lacks a read scope (FLOWS:READ, AGENTS:READ or ANALYTICS:READ) */
29470
+ 403: {
29471
+ headers: {
29472
+ [name: string]: unknown;
29473
+ };
29474
+ content: {
29475
+ "application/json": components["schemas"]["Error"];
29476
+ };
29477
+ };
29478
+ /** @description No trace for one of the executions */
29479
+ 404: {
29480
+ headers: {
29481
+ [name: string]: unknown;
29482
+ };
29483
+ content: {
29484
+ "application/json": components["schemas"]["Error"];
29485
+ };
29486
+ };
29487
+ /** @description Internal server error */
29488
+ 500: {
29489
+ headers: {
29490
+ [name: string]: unknown;
29491
+ };
29492
+ content: {
29493
+ "application/json": components["schemas"]["Error"];
29494
+ };
29495
+ };
29496
+ /** @description Log store temporarily unavailable; no entries or counts could be read */
29497
+ 503: {
29498
+ headers: {
29499
+ [name: string]: unknown;
29500
+ };
29501
+ content: {
29502
+ "application/json": components["schemas"]["Error"];
29503
+ };
29504
+ };
29505
+ };
29506
+ };
29507
+ delete?: never;
29508
+ options?: never;
29509
+ head?: never;
29510
+ patch?: never;
29511
+ trace?: never;
29512
+ };
29202
29513
  "/v1/logs/trace/conversation/{conversationId}": {
29203
29514
  parameters: {
29204
29515
  query?: never;
@@ -29605,6 +29916,210 @@ interface paths {
29605
29916
  patch?: never;
29606
29917
  trace?: never;
29607
29918
  };
29919
+ "/v1/logs/trace/execution/{executionId}/slice": {
29920
+ parameters: {
29921
+ query?: never;
29922
+ header?: never;
29923
+ path?: never;
29924
+ cookie?: never;
29925
+ };
29926
+ /**
29927
+ * Read a trace slice
29928
+ * @description A bounded window of one trace: by span index range, span kind, tool name, or around the first failed span. Content stays previews-only unless includeContent is set, which loads it for the selected spans under a byte budget and lists every cut.
29929
+ */
29930
+ get: {
29931
+ parameters: {
29932
+ query?: {
29933
+ /** @description First span index (trace start order) to include. */
29934
+ start?: string;
29935
+ /** @description Span index to stop before. */
29936
+ end?: string;
29937
+ kind?: "model" | "tool" | "step";
29938
+ toolName?: string;
29939
+ /** @description Return the first failed span plus this many spans either side (0-50). Not combinable with start/end. */
29940
+ aroundFirstFailure?: string;
29941
+ /** @description Spans to return, 1-100 (default 25). */
29942
+ limit?: string;
29943
+ /** @description Load full content for the selected spans only, under maxContentBytes. */
29944
+ includeContent?: "true" | "false";
29945
+ /** @description Content byte budget, 1-262144 (default 65536). */
29946
+ maxContentBytes?: string;
29947
+ };
29948
+ header?: never;
29949
+ path: {
29950
+ executionId: string;
29951
+ };
29952
+ cookie?: never;
29953
+ };
29954
+ requestBody?: never;
29955
+ responses: {
29956
+ /** @description Trace slice */
29957
+ 200: {
29958
+ headers: {
29959
+ [name: string]: unknown;
29960
+ };
29961
+ content: {
29962
+ "application/json": {
29963
+ data: components["schemas"]["TraceSlice"];
29964
+ success: boolean;
29965
+ };
29966
+ };
29967
+ };
29968
+ /** @description Unreadable filter, window over the cap, or too many runs to probe; `code` says which */
29969
+ 400: {
29970
+ headers: {
29971
+ [name: string]: unknown;
29972
+ };
29973
+ content: {
29974
+ "application/json": components["schemas"]["Error"];
29975
+ };
29976
+ };
29977
+ /** @description Unauthorized */
29978
+ 401: {
29979
+ headers: {
29980
+ [name: string]: unknown;
29981
+ };
29982
+ content: {
29983
+ "application/json": components["schemas"]["Error"];
29984
+ };
29985
+ };
29986
+ /** @description API key lacks a read scope (FLOWS:READ, AGENTS:READ or ANALYTICS:READ) */
29987
+ 403: {
29988
+ headers: {
29989
+ [name: string]: unknown;
29990
+ };
29991
+ content: {
29992
+ "application/json": components["schemas"]["Error"];
29993
+ };
29994
+ };
29995
+ /** @description No trace for this execution */
29996
+ 404: {
29997
+ headers: {
29998
+ [name: string]: unknown;
29999
+ };
30000
+ content: {
30001
+ "application/json": components["schemas"]["Error"];
30002
+ };
30003
+ };
30004
+ /** @description Internal server error */
30005
+ 500: {
30006
+ headers: {
30007
+ [name: string]: unknown;
30008
+ };
30009
+ content: {
30010
+ "application/json": components["schemas"]["Error"];
30011
+ };
30012
+ };
30013
+ /** @description Log store temporarily unavailable; no entries or counts could be read */
30014
+ 503: {
30015
+ headers: {
30016
+ [name: string]: unknown;
30017
+ };
30018
+ content: {
30019
+ "application/json": components["schemas"]["Error"];
30020
+ };
30021
+ };
30022
+ };
30023
+ };
30024
+ put?: never;
30025
+ post?: never;
30026
+ delete?: never;
30027
+ options?: never;
30028
+ head?: never;
30029
+ patch?: never;
30030
+ trace?: never;
30031
+ };
30032
+ "/v1/logs/trace/query": {
30033
+ parameters: {
30034
+ query?: never;
30035
+ header?: never;
30036
+ path?: never;
30037
+ cookie?: never;
30038
+ };
30039
+ get?: never;
30040
+ put?: never;
30041
+ /**
30042
+ * Query traces
30043
+ * @description Filter runs and group them by one or two dimensions into aggregates (count, failure rate, tokens, cost, duration, tool calls, signal fire rate), each with sample execution ids to drill into. Reads trace headers on indexed columns; model and tool-call metrics probe spans and cap the window at 7 days.
30044
+ */
30045
+ post: {
30046
+ parameters: {
30047
+ query?: never;
30048
+ header?: never;
30049
+ path?: never;
30050
+ cookie?: never;
30051
+ };
30052
+ requestBody: {
30053
+ content: {
30054
+ "application/json": components["schemas"]["TraceQueryRequest"];
30055
+ };
30056
+ };
30057
+ responses: {
30058
+ /** @description Aggregates */
30059
+ 200: {
30060
+ headers: {
30061
+ [name: string]: unknown;
30062
+ };
30063
+ content: {
30064
+ "application/json": {
30065
+ data: components["schemas"]["TraceQueryResult"];
30066
+ success: boolean;
30067
+ };
30068
+ };
30069
+ };
30070
+ /** @description Unreadable filter, window over the cap, or too many runs to probe; `code` says which */
30071
+ 400: {
30072
+ headers: {
30073
+ [name: string]: unknown;
30074
+ };
30075
+ content: {
30076
+ "application/json": components["schemas"]["Error"];
30077
+ };
30078
+ };
30079
+ /** @description Unauthorized */
30080
+ 401: {
30081
+ headers: {
30082
+ [name: string]: unknown;
30083
+ };
30084
+ content: {
30085
+ "application/json": components["schemas"]["Error"];
30086
+ };
30087
+ };
30088
+ /** @description API key lacks a read scope (FLOWS:READ, AGENTS:READ or ANALYTICS:READ) */
30089
+ 403: {
30090
+ headers: {
30091
+ [name: string]: unknown;
30092
+ };
30093
+ content: {
30094
+ "application/json": components["schemas"]["Error"];
30095
+ };
30096
+ };
30097
+ /** @description Internal server error */
30098
+ 500: {
30099
+ headers: {
30100
+ [name: string]: unknown;
30101
+ };
30102
+ content: {
30103
+ "application/json": components["schemas"]["Error"];
30104
+ };
30105
+ };
30106
+ /** @description Log store temporarily unavailable; no entries or counts could be read */
30107
+ 503: {
30108
+ headers: {
30109
+ [name: string]: unknown;
30110
+ };
30111
+ content: {
30112
+ "application/json": components["schemas"]["Error"];
30113
+ };
30114
+ };
30115
+ };
30116
+ };
30117
+ delete?: never;
30118
+ options?: never;
30119
+ head?: never;
30120
+ patch?: never;
30121
+ trace?: never;
30122
+ };
29608
30123
  "/v1/messaging/conversations": {
29609
30124
  parameters: {
29610
30125
  query?: never;
@@ -29727,7 +30242,7 @@ interface paths {
29727
30242
  path?: never;
29728
30243
  cookie?: never;
29729
30244
  };
29730
- requestBody?: {
30245
+ requestBody: {
29731
30246
  content: {
29732
30247
  "application/json": {
29733
30248
  context?: {
@@ -30252,7 +30767,7 @@ interface paths {
30252
30767
  };
30253
30768
  cookie?: never;
30254
30769
  };
30255
- requestBody?: {
30770
+ requestBody: {
30256
30771
  content: {
30257
30772
  "application/json": {
30258
30773
  content: string;
@@ -30484,7 +30999,7 @@ interface paths {
30484
30999
  };
30485
31000
  cookie?: never;
30486
31001
  };
30487
- requestBody?: {
31002
+ requestBody: {
30488
31003
  content: {
30489
31004
  "application/json": {
30490
31005
  content: string;
@@ -30844,7 +31359,7 @@ interface paths {
30844
31359
  };
30845
31360
  cookie?: never;
30846
31361
  };
30847
- requestBody?: {
31362
+ requestBody: {
30848
31363
  content: {
30849
31364
  "application/json": {
30850
31365
  /** Format: email */
@@ -31163,7 +31678,7 @@ interface paths {
31163
31678
  };
31164
31679
  cookie?: never;
31165
31680
  };
31166
- requestBody?: {
31681
+ requestBody: {
31167
31682
  content: {
31168
31683
  "application/json": {
31169
31684
  /** Format: email */
@@ -31289,7 +31804,7 @@ interface paths {
31289
31804
  };
31290
31805
  cookie?: never;
31291
31806
  };
31292
- requestBody?: {
31807
+ requestBody: {
31293
31808
  content: {
31294
31809
  "application/json": {
31295
31810
  imapHost: string;
@@ -31404,7 +31919,7 @@ interface paths {
31404
31919
  path?: never;
31405
31920
  cookie?: never;
31406
31921
  };
31407
- requestBody?: {
31922
+ requestBody: {
31408
31923
  content: {
31409
31924
  "application/json": {
31410
31925
  botToken: string;
@@ -31480,7 +31995,7 @@ interface paths {
31480
31995
  path?: never;
31481
31996
  cookie?: never;
31482
31997
  };
31483
- requestBody?: {
31998
+ requestBody: {
31484
31999
  content: {
31485
32000
  "application/json": {
31486
32001
  botToken: string;
@@ -31674,7 +32189,7 @@ interface paths {
31674
32189
  };
31675
32190
  cookie?: never;
31676
32191
  };
31677
- requestBody?: {
32192
+ requestBody: {
31678
32193
  content: {
31679
32194
  "application/json": {
31680
32195
  credentials?: {
@@ -31916,7 +32431,7 @@ interface paths {
31916
32431
  path?: never;
31917
32432
  cookie?: never;
31918
32433
  };
31919
- requestBody?: {
32434
+ requestBody: {
31920
32435
  content: {
31921
32436
  "application/json": {
31922
32437
  modelId: string;
@@ -33128,7 +33643,7 @@ interface paths {
33128
33643
  };
33129
33644
  cookie?: never;
33130
33645
  };
33131
- requestBody?: {
33646
+ requestBody: {
33132
33647
  content: {
33133
33648
  "application/json": {
33134
33649
  isEnabled: boolean;
@@ -33577,7 +34092,7 @@ interface paths {
33577
34092
  path?: never;
33578
34093
  cookie?: never;
33579
34094
  };
33580
- requestBody?: {
34095
+ requestBody: {
33581
34096
  content: {
33582
34097
  "application/json": {
33583
34098
  canvas?: {
@@ -33905,7 +34420,7 @@ interface paths {
33905
34420
  path?: never;
33906
34421
  cookie?: never;
33907
34422
  };
33908
- requestBody?: {
34423
+ requestBody: {
33909
34424
  content: {
33910
34425
  "application/json": {
33911
34426
  contentHash?: string;
@@ -34056,7 +34571,7 @@ interface paths {
34056
34571
  path?: never;
34057
34572
  cookie?: never;
34058
34573
  };
34059
- requestBody?: {
34574
+ requestBody: {
34060
34575
  content: {
34061
34576
  "application/json": {
34062
34577
  /** @description Hash-only probe: the canonical FPO hash the caller holds. Answers `unchanged` when the live graph reconstructs (as pull-fpo does) to this hash, else `definitionRequired`. Only valid without `fpo`. */
@@ -35081,7 +35596,7 @@ interface paths {
35081
35596
  };
35082
35597
  cookie?: never;
35083
35598
  };
35084
- requestBody?: {
35599
+ requestBody: {
35085
35600
  content: {
35086
35601
  "application/json": {
35087
35602
  agentId?: string;
@@ -36361,7 +36876,7 @@ interface paths {
36361
36876
  };
36362
36877
  cookie?: never;
36363
36878
  };
36364
- requestBody?: {
36879
+ requestBody: {
36365
36880
  content: {
36366
36881
  "application/json": {
36367
36882
  behavior?: unknown;
@@ -36492,7 +37007,7 @@ interface paths {
36492
37007
  };
36493
37008
  cookie?: never;
36494
37009
  };
36495
- requestBody?: {
37010
+ requestBody: {
36496
37011
  content: {
36497
37012
  "application/json": {
36498
37013
  contentHash?: string;
@@ -37047,7 +37562,7 @@ interface paths {
37047
37562
  };
37048
37563
  cookie?: never;
37049
37564
  };
37050
- requestBody?: {
37565
+ requestBody: {
37051
37566
  content: {
37052
37567
  "application/json": {
37053
37568
  eventHint?: string;
@@ -37125,7 +37640,7 @@ interface paths {
37125
37640
  };
37126
37641
  cookie?: never;
37127
37642
  };
37128
- requestBody?: {
37643
+ requestBody: {
37129
37644
  content: {
37130
37645
  "application/json": {
37131
37646
  capabilityId: string;
@@ -37222,7 +37737,7 @@ interface paths {
37222
37737
  };
37223
37738
  cookie?: never;
37224
37739
  };
37225
- requestBody?: {
37740
+ requestBody: {
37226
37741
  content: {
37227
37742
  "application/json": {
37228
37743
  capabilityId: string;
@@ -37982,7 +38497,7 @@ interface paths {
37982
38497
  };
37983
38498
  cookie?: never;
37984
38499
  };
37985
- requestBody?: {
38500
+ requestBody: {
37986
38501
  content: {
37987
38502
  "application/json": {
37988
38503
  cron?: string;
@@ -38878,7 +39393,7 @@ interface paths {
38878
39393
  };
38879
39394
  cookie?: never;
38880
39395
  };
38881
- requestBody?: {
39396
+ requestBody: {
38882
39397
  content: {
38883
39398
  "application/json": {
38884
39399
  payload?: unknown;
@@ -38969,7 +39484,7 @@ interface paths {
38969
39484
  };
38970
39485
  cookie?: never;
38971
39486
  };
38972
- requestBody?: {
39487
+ requestBody: {
38973
39488
  content: {
38974
39489
  "application/json": {
38975
39490
  enabled: boolean;
@@ -39110,7 +39625,7 @@ interface paths {
39110
39625
  };
39111
39626
  cookie?: never;
39112
39627
  };
39113
- requestBody?: {
39628
+ requestBody: {
39114
39629
  content: {
39115
39630
  "application/json": {
39116
39631
  itemId: string;
@@ -39407,7 +39922,7 @@ interface paths {
39407
39922
  };
39408
39923
  cookie?: never;
39409
39924
  };
39410
- requestBody?: {
39925
+ requestBody: {
39411
39926
  content: {
39412
39927
  "application/json": {
39413
39928
  eventTypePath: string;
@@ -39560,7 +40075,7 @@ interface paths {
39560
40075
  };
39561
40076
  cookie?: never;
39562
40077
  };
39563
- requestBody?: {
40078
+ requestBody: {
39564
40079
  content: {
39565
40080
  "application/json": {
39566
40081
  /** @enum {string} */
@@ -40259,7 +40774,7 @@ interface paths {
40259
40774
  };
40260
40775
  cookie?: never;
40261
40776
  };
40262
- requestBody?: {
40777
+ requestBody: {
40263
40778
  content: {
40264
40779
  "application/json": {
40265
40780
  arguments?: {
@@ -40630,7 +41145,7 @@ interface paths {
40630
41145
  path?: never;
40631
41146
  cookie?: never;
40632
41147
  };
40633
- requestBody?: {
41148
+ requestBody: {
40634
41149
  content: {
40635
41150
  "application/json": {
40636
41151
  /** @default gemini-3.8-flash */
@@ -41068,7 +41583,7 @@ interface paths {
41068
41583
  path?: never;
41069
41584
  cookie?: never;
41070
41585
  };
41071
- requestBody?: {
41586
+ requestBody: {
41072
41587
  content: {
41073
41588
  "application/json": {
41074
41589
  apiKey: string;
@@ -41183,7 +41698,7 @@ interface paths {
41183
41698
  path?: never;
41184
41699
  cookie?: never;
41185
41700
  };
41186
- requestBody?: {
41701
+ requestBody: {
41187
41702
  content: {
41188
41703
  "application/json": {
41189
41704
  apiKey: string;
@@ -41269,7 +41784,7 @@ interface paths {
41269
41784
  path?: never;
41270
41785
  cookie?: never;
41271
41786
  };
41272
- requestBody?: {
41787
+ requestBody: {
41273
41788
  content: {
41274
41789
  "application/json": {
41275
41790
  /** @enum {string} */
@@ -41805,7 +42320,7 @@ interface paths {
41805
42320
  };
41806
42321
  cookie?: never;
41807
42322
  };
41808
- requestBody?: {
42323
+ requestBody: {
41809
42324
  content: {
41810
42325
  "application/json": {
41811
42326
  models: {
@@ -42905,7 +43420,7 @@ interface paths {
42905
43420
  path?: never;
42906
43421
  cookie?: never;
42907
43422
  };
42908
- requestBody?: {
43423
+ requestBody: {
42909
43424
  content: {
42910
43425
  "application/json": {
42911
43426
  description?: string | null;
@@ -43009,7 +43524,7 @@ interface paths {
43009
43524
  path?: never;
43010
43525
  cookie?: never;
43011
43526
  };
43012
- requestBody?: {
43527
+ requestBody: {
43013
43528
  content: {
43014
43529
  "application/json": {
43015
43530
  contentHash?: string;
@@ -43618,7 +44133,7 @@ interface paths {
43618
44133
  };
43619
44134
  cookie?: never;
43620
44135
  };
43621
- requestBody?: {
44136
+ requestBody: {
43622
44137
  content: {
43623
44138
  "application/json": {
43624
44139
  /** @description The eval run that measured this calibration. It must resolve in this account; the row is then recorded as `eval_suite`. Without it the row is `customer`. */
@@ -43949,7 +44464,7 @@ interface paths {
43949
44464
  path?: never;
43950
44465
  cookie?: never;
43951
44466
  };
43952
- requestBody?: {
44467
+ requestBody: {
43953
44468
  content: {
43954
44469
  "application/json": {
43955
44470
  messages?: {
@@ -44103,7 +44618,7 @@ interface paths {
44103
44618
  path?: never;
44104
44619
  cookie?: never;
44105
44620
  };
44106
- requestBody?: {
44621
+ requestBody: {
44107
44622
  content: {
44108
44623
  "application/json": {
44109
44624
  ids: string[];
@@ -44549,7 +45064,7 @@ interface paths {
44549
45064
  path?: never;
44550
45065
  cookie?: never;
44551
45066
  };
44552
- requestBody?: {
45067
+ requestBody: {
44553
45068
  content: {
44554
45069
  "application/json": {
44555
45070
  type: string;
@@ -44734,7 +45249,7 @@ interface paths {
44734
45249
  path?: never;
44735
45250
  cookie?: never;
44736
45251
  };
44737
- requestBody?: {
45252
+ requestBody: {
44738
45253
  content: {
44739
45254
  "multipart/form-data": {
44740
45255
  file?: unknown;
@@ -45384,7 +45899,7 @@ interface paths {
45384
45899
  };
45385
45900
  cookie?: never;
45386
45901
  };
45387
- requestBody?: {
45902
+ requestBody: {
45388
45903
  content: {
45389
45904
  "application/json": {
45390
45905
  resultId: string;
@@ -45524,6 +46039,10 @@ interface paths {
45524
46039
  recordName: string | null;
45525
46040
  resolvedPrompt?: string | null;
45526
46041
  retryCount?: number | null;
46042
+ sources?: {
46043
+ title?: string;
46044
+ url: string;
46045
+ }[] | null;
45527
46046
  startedAt: string | null;
45528
46047
  status: string;
45529
46048
  stepConfig?: unknown;
@@ -46205,7 +46724,7 @@ interface paths {
46205
46724
  path?: never;
46206
46725
  cookie?: never;
46207
46726
  };
46208
- requestBody?: {
46727
+ requestBody: {
46209
46728
  content: {
46210
46729
  "application/json": {
46211
46730
  limits?: {
@@ -46447,7 +46966,7 @@ interface paths {
46447
46966
  path?: never;
46448
46967
  cookie?: never;
46449
46968
  };
46450
- requestBody?: {
46969
+ requestBody: {
46451
46970
  content: {
46452
46971
  "application/json": {
46453
46972
  attachments?: {
@@ -46603,7 +47122,7 @@ interface paths {
46603
47122
  path?: never;
46604
47123
  cookie?: never;
46605
47124
  };
46606
- requestBody?: {
47125
+ requestBody: {
46607
47126
  content: {
46608
47127
  "application/json": components["schemas"]["RuntimeExtractionRequest"];
46609
47128
  };
@@ -46721,7 +47240,7 @@ interface paths {
46721
47240
  path?: never;
46722
47241
  cookie?: never;
46723
47242
  };
46724
- requestBody?: {
47243
+ requestBody: {
46725
47244
  content: {
46726
47245
  "application/json": components["schemas"]["RuntimeJudgmentRequest"];
46727
47246
  };
@@ -46854,7 +47373,7 @@ interface paths {
46854
47373
  path?: never;
46855
47374
  cookie?: never;
46856
47375
  };
46857
- requestBody?: {
47376
+ requestBody: {
46858
47377
  content: {
46859
47378
  "application/json": {
46860
47379
  options?: {
@@ -46991,7 +47510,7 @@ interface paths {
46991
47510
  path?: never;
46992
47511
  cookie?: never;
46993
47512
  };
46994
- requestBody?: {
47513
+ requestBody: {
46995
47514
  content: {
46996
47515
  "application/json": {
46997
47516
  memory: {
@@ -47124,7 +47643,7 @@ interface paths {
47124
47643
  path?: never;
47125
47644
  cookie?: never;
47126
47645
  };
47127
- requestBody?: {
47646
+ requestBody: {
47128
47647
  content: {
47129
47648
  "application/json": {
47130
47649
  options?: {
@@ -47249,7 +47768,7 @@ interface paths {
47249
47768
  path?: never;
47250
47769
  cookie?: never;
47251
47770
  };
47252
- requestBody?: {
47771
+ requestBody: {
47253
47772
  content: {
47254
47773
  "application/json": {
47255
47774
  id: string;
@@ -47565,7 +48084,7 @@ interface paths {
47565
48084
  path?: never;
47566
48085
  cookie?: never;
47567
48086
  };
47568
- requestBody?: {
48087
+ requestBody: {
47569
48088
  content: {
47570
48089
  "application/json": {
47571
48090
  id: string;
@@ -47714,7 +48233,7 @@ interface paths {
47714
48233
  path?: never;
47715
48234
  cookie?: never;
47716
48235
  };
47717
- requestBody?: {
48236
+ requestBody: {
47718
48237
  content: {
47719
48238
  "application/json": {
47720
48239
  /** @enum {string} */
@@ -47865,7 +48384,7 @@ interface paths {
47865
48384
  path?: never;
47866
48385
  cookie?: never;
47867
48386
  };
47868
- requestBody?: {
48387
+ requestBody: {
47869
48388
  content: {
47870
48389
  "application/json": {
47871
48390
  maxResults?: number;
@@ -48203,7 +48722,7 @@ interface paths {
48203
48722
  path?: never;
48204
48723
  cookie?: never;
48205
48724
  };
48206
- requestBody?: {
48725
+ requestBody: {
48207
48726
  content: {
48208
48727
  "application/json": {
48209
48728
  displayName?: string;
@@ -48689,7 +49208,7 @@ interface paths {
48689
49208
  path?: never;
48690
49209
  cookie?: never;
48691
49210
  };
48692
- requestBody?: {
49211
+ requestBody: {
48693
49212
  content: {
48694
49213
  "application/gzip": string;
48695
49214
  };
@@ -49021,7 +49540,7 @@ interface paths {
49021
49540
  };
49022
49541
  cookie?: never;
49023
49542
  };
49024
- requestBody?: {
49543
+ requestBody: {
49025
49544
  content: {
49026
49545
  "application/json": {
49027
49546
  displayName?: string;
@@ -50580,7 +51099,7 @@ interface paths {
50580
51099
  };
50581
51100
  cookie?: never;
50582
51101
  };
50583
- requestBody?: {
51102
+ requestBody: {
50584
51103
  content: {
50585
51104
  "application/json": {
50586
51105
  /** @enum {string} */
@@ -51484,7 +52003,7 @@ interface paths {
51484
52003
  path?: never;
51485
52004
  cookie?: never;
51486
52005
  };
51487
- requestBody?: {
52006
+ requestBody: {
51488
52007
  content: {
51489
52008
  "application/json": {
51490
52009
  contentHash?: string;
@@ -52704,7 +53223,7 @@ interface paths {
52704
53223
  path?: never;
52705
53224
  cookie?: never;
52706
53225
  };
52707
- requestBody?: {
53226
+ requestBody: {
52708
53227
  content: {
52709
53228
  "application/json": {
52710
53229
  description?: string;
@@ -52829,7 +53348,7 @@ interface paths {
52829
53348
  path?: never;
52830
53349
  cookie?: never;
52831
53350
  };
52832
- requestBody?: {
53351
+ requestBody: {
52833
53352
  content: {
52834
53353
  "application/json": {
52835
53354
  keys: string[];
@@ -52913,7 +53432,7 @@ interface paths {
52913
53432
  path?: never;
52914
53433
  cookie?: never;
52915
53434
  };
52916
- requestBody?: {
53435
+ requestBody: {
52917
53436
  content: {
52918
53437
  "application/json": {
52919
53438
  returnUrl?: string;
@@ -53046,7 +53565,7 @@ interface paths {
53046
53565
  path?: never;
53047
53566
  cookie?: never;
53048
53567
  };
53049
- requestBody?: {
53568
+ requestBody: {
53050
53569
  content: {
53051
53570
  "application/json": {
53052
53571
  items: {
@@ -53193,7 +53712,7 @@ interface paths {
53193
53712
  path?: never;
53194
53713
  cookie?: never;
53195
53714
  };
53196
- requestBody?: {
53715
+ requestBody: {
53197
53716
  content: {
53198
53717
  "application/json": {
53199
53718
  context?: {
@@ -53613,7 +54132,7 @@ interface paths {
53613
54132
  path?: never;
53614
54133
  cookie?: never;
53615
54134
  };
53616
- requestBody?: {
54135
+ requestBody: {
53617
54136
  content: {
53618
54137
  "application/json": {
53619
54138
  /** @description Required for a PHI organization whose set uses a decision model outside Cloudflare Workers AI. Written to the audit log. */
@@ -53884,7 +54403,7 @@ interface paths {
53884
54403
  path?: never;
53885
54404
  cookie?: never;
53886
54405
  };
53887
- requestBody?: {
54406
+ requestBody: {
53888
54407
  content: {
53889
54408
  "application/json": {
53890
54409
  /** @description A signal set version: `{ unit: "turn", context: { priorTurns }, signals: { <key>: { type, instructions, options?, notable?, ... } }, bands: { act, review } }`. bool and choice signals go to the decision model; text, number, date, duration, list and estimate go to the extraction model. */
@@ -54321,7 +54840,7 @@ interface paths {
54321
54840
  };
54322
54841
  cookie?: never;
54323
54842
  };
54324
- requestBody?: {
54843
+ requestBody: {
54325
54844
  content: {
54326
54845
  "application/json": {
54327
54846
  /** @description A signal set version: `{ unit: "turn", context: { priorTurns }, signals: { <key>: { type, instructions, options?, notable?, ... } }, bands: { act, review } }`. bool and choice signals go to the decision model; text, number, date, duration, list and estimate go to the extraction model. */
@@ -54411,7 +54930,7 @@ interface paths {
54411
54930
  };
54412
54931
  cookie?: never;
54413
54932
  };
54414
- requestBody?: {
54933
+ requestBody: {
54415
54934
  content: {
54416
54935
  "application/json": {
54417
54936
  /** @description Required for a PHI organization whose set uses a decision model outside Cloudflare Workers AI, after a human confirms. */
@@ -54956,7 +55475,7 @@ interface paths {
54956
55475
  path?: never;
54957
55476
  cookie?: never;
54958
55477
  };
54959
- requestBody?: {
55478
+ requestBody: {
54960
55479
  content: {
54961
55480
  "application/json": {
54962
55481
  agentId: string;
@@ -55152,7 +55671,7 @@ interface paths {
55152
55671
  path?: never;
55153
55672
  cookie?: never;
55154
55673
  };
55155
- requestBody?: {
55674
+ requestBody: {
55156
55675
  content: {
55157
55676
  "application/json": {
55158
55677
  contentHash?: string;
@@ -55266,7 +55785,7 @@ interface paths {
55266
55785
  path?: never;
55267
55786
  cookie?: never;
55268
55787
  };
55269
- requestBody?: {
55788
+ requestBody: {
55270
55789
  content: {
55271
55790
  "application/json": {
55272
55791
  markdown: string;
@@ -55349,7 +55868,7 @@ interface paths {
55349
55868
  path?: never;
55350
55869
  cookie?: never;
55351
55870
  };
55352
- requestBody?: {
55871
+ requestBody: {
55353
55872
  content: {
55354
55873
  "application/json": {
55355
55874
  body: string;
@@ -56695,7 +57214,7 @@ interface paths {
56695
57214
  path?: never;
56696
57215
  cookie?: never;
56697
57216
  };
56698
- requestBody?: {
57217
+ requestBody: {
56699
57218
  content: {
56700
57219
  "application/json": {
56701
57220
  config: {
@@ -57086,7 +57605,7 @@ interface paths {
57086
57605
  path?: never;
57087
57606
  cookie?: never;
57088
57607
  };
57089
- requestBody?: {
57608
+ requestBody: {
57090
57609
  content: {
57091
57610
  "application/json": {
57092
57611
  contentHash?: string;
@@ -57401,7 +57920,7 @@ interface paths {
57401
57920
  path?: never;
57402
57921
  cookie?: never;
57403
57922
  };
57404
- requestBody?: {
57923
+ requestBody: {
57405
57924
  content: {
57406
57925
  "application/json": {
57407
57926
  code: string;
@@ -57629,7 +58148,7 @@ interface paths {
57629
58148
  path?: never;
57630
58149
  cookie?: never;
57631
58150
  };
57632
- requestBody?: {
58151
+ requestBody: {
57633
58152
  content: {
57634
58153
  "application/json": {
57635
58154
  autoDeleteInterval?: number;
@@ -58229,7 +58748,7 @@ interface paths {
58229
58748
  };
58230
58749
  cookie?: never;
58231
58750
  };
58232
- requestBody?: {
58751
+ requestBody: {
58233
58752
  content: {
58234
58753
  "application/json": {
58235
58754
  context?: {
@@ -58678,7 +59197,7 @@ interface paths {
58678
59197
  path?: never;
58679
59198
  cookie?: never;
58680
59199
  };
58681
- requestBody?: {
59200
+ requestBody: {
58682
59201
  content: {
58683
59202
  "application/json": {
58684
59203
  /** @enum {string} */
@@ -59065,7 +59584,7 @@ interface paths {
59065
59584
  path?: never;
59066
59585
  cookie?: never;
59067
59586
  };
59068
- requestBody?: {
59587
+ requestBody: {
59069
59588
  content: {
59070
59589
  "application/json": {
59071
59590
  /** @description Template input variables */
@@ -59164,7 +59683,7 @@ interface paths {
59164
59683
  path?: never;
59165
59684
  cookie?: never;
59166
59685
  };
59167
- requestBody?: {
59686
+ requestBody: {
59168
59687
  content: {
59169
59688
  "application/json": {
59170
59689
  /** @description List of available variable names */
@@ -59782,6 +60301,7 @@ interface components {
59782
60301
  alwaysAllow?: boolean;
59783
60302
  alwaysDeny?: boolean;
59784
60303
  };
60304
+ notifyUser?: boolean;
59785
60305
  requestReason?: boolean;
59786
60306
  require: string[] | boolean;
59787
60307
  timeout?: number;
@@ -60619,6 +61139,7 @@ interface components {
60619
61139
  alwaysAllow?: boolean;
60620
61140
  alwaysDeny?: boolean;
60621
61141
  };
61142
+ notifyUser?: boolean;
60622
61143
  requestReason?: boolean;
60623
61144
  require: string[] | boolean;
60624
61145
  timeout?: number;
@@ -61684,6 +62205,12 @@ interface components {
61684
62205
  message: string;
61685
62206
  }[];
61686
62207
  };
62208
+ ExecutionFailedError: components["schemas"]["Error"] & {
62209
+ /** @description Present only for ephemeral inline-create dispatch. */
62210
+ claudeManagedAgentId?: string;
62211
+ /** @description Text the agent produced before its stream was interrupted and could not be restored. */
62212
+ partialText?: string;
62213
+ };
61687
62214
  ExecutionStreamEvent: {
61688
62215
  agentId?: string;
61689
62216
  agentName?: string;
@@ -61734,8 +62261,13 @@ interface components {
61734
62261
  output: number;
61735
62262
  };
61736
62263
  totalTokensUsed?: number;
62264
+ truncatedStepCount?: number;
61737
62265
  /** @enum {string} */
61738
62266
  type: "execution_complete";
62267
+ warnings?: {
62268
+ code: string;
62269
+ message: string;
62270
+ }[];
61739
62271
  } | {
61740
62272
  blockReason?: string;
61741
62273
  code?: string;
@@ -61928,6 +62460,7 @@ interface components {
61928
62460
  };
61929
62461
  success?: boolean;
61930
62462
  tokensUsed?: number;
62463
+ truncated?: boolean;
61931
62464
  /** @enum {string} */
61932
62465
  type: "step_complete";
61933
62466
  unresolvedVariables?: string[];
@@ -63539,10 +64072,10 @@ interface components {
63539
64072
  RuntimeExportWarning: {
63540
64073
  childId?: string;
63541
64074
  /**
63542
- * @description What kind of child the warning is about. `question_set` names the question set id in `childId`.
64075
+ * @description What kind of child the warning is about. `question_set` names the question set id in `childId`. `mcp_server` names a registered MCP server the export kept as an `mcp:` reference instead of inlining it (`unsupported_mcp_auth` for OAuth, `not_found` when the server is missing or inactive); only a host that implements `resolveHostedToolRefs` can run its tools.
63543
64076
  * @enum {string}
63544
64077
  */
63545
- childKind: "agent" | "flow" | "question_set";
64078
+ childKind: "agent" | "flow" | "question_set" | "mcp_server";
63546
64079
  /**
63547
64080
  * @description `child_dropped`: the child is absent from the artifact. `child_stubbed`: the artifact carries a stub the runtime cannot run, or a configured decision tool without its question set.
63548
64081
  * @enum {string}
@@ -63652,6 +64185,32 @@ interface components {
63652
64185
  /** @enum {string} */
63653
64186
  kind: "background-run-coordinator";
63654
64187
  reason: string;
64188
+ } | {
64189
+ interface: string;
64190
+ /** @enum {string} */
64191
+ kind: "hosted-tool-resolver";
64192
+ reason: string;
64193
+ tools: {
64194
+ ownerId?: string;
64195
+ /** @enum {string} */
64196
+ ownerKind: "flow" | "agent" | "capability" | "inline-tool";
64197
+ ownerName?: string;
64198
+ stepId?: string;
64199
+ toolId: string;
64200
+ }[];
64201
+ } | {
64202
+ interface: string;
64203
+ /** @enum {string} */
64204
+ kind: "record-store";
64205
+ reason: string;
64206
+ steps: {
64207
+ ownerId?: string;
64208
+ /** @enum {string} */
64209
+ ownerKind: "flow" | "agent" | "capability" | "inline-tool";
64210
+ ownerName?: string;
64211
+ stepId: string;
64212
+ stepType: string;
64213
+ }[];
63655
64214
  } | {
63656
64215
  interface: string;
63657
64216
  kind: string;
@@ -64220,6 +64779,185 @@ interface components {
64220
64779
  toolId: string;
64221
64780
  updatedAt: string | null;
64222
64781
  };
64782
+ TraceCompare: {
64783
+ alignment: {
64784
+ argDrift: number | null;
64785
+ driftedKeys?: string[];
64786
+ leftIndex: number | null;
64787
+ /** @enum {string} */
64788
+ op: "match" | "left_only" | "right_only" | "reordered";
64789
+ rightIndex: number | null;
64790
+ tool: string;
64791
+ }[];
64792
+ divergence: {
64793
+ alignmentIndex: number;
64794
+ description: string;
64795
+ leftIndex: number | null;
64796
+ rightIndex: number | null;
64797
+ } | null;
64798
+ left: {
64799
+ cost: number | null;
64800
+ durationMs: number | null;
64801
+ executionId: string;
64802
+ inputTokens: number | null;
64803
+ outputTokens: number | null;
64804
+ source: string;
64805
+ status: string | null;
64806
+ stopReason: string | null;
64807
+ toolCalls: number;
64808
+ turns: number | null;
64809
+ };
64810
+ /** @enum {string} */
64811
+ mode: "executions";
64812
+ perTool: {
64813
+ argDrift: number | null;
64814
+ leftCalls: number;
64815
+ leftErrors: number;
64816
+ rightCalls: number;
64817
+ rightErrors: number;
64818
+ tool: string;
64819
+ }[];
64820
+ right: {
64821
+ cost: number | null;
64822
+ durationMs: number | null;
64823
+ executionId: string;
64824
+ inputTokens: number | null;
64825
+ outputTokens: number | null;
64826
+ source: string;
64827
+ status: string | null;
64828
+ stopReason: string | null;
64829
+ toolCalls: number;
64830
+ turns: number | null;
64831
+ };
64832
+ truncated: {
64833
+ left: boolean;
64834
+ right: boolean;
64835
+ };
64836
+ } | {
64837
+ left: {
64838
+ executionIds: string[];
64839
+ failureRate: number | null;
64840
+ sampleLimit: number;
64841
+ sampled: number;
64842
+ signalRates: {
64843
+ [key: string]: {
64844
+ filtered: {
64845
+ evaluated: number;
64846
+ fired: number;
64847
+ rate: number | null;
64848
+ };
64849
+ uniform: {
64850
+ evaluated: number;
64851
+ fired: number;
64852
+ rate: number | null;
64853
+ };
64854
+ };
64855
+ };
64856
+ stopReasons: {
64857
+ [key: string]: number;
64858
+ };
64859
+ toolUsage: {
64860
+ calls: number;
64861
+ callsPerRun: number;
64862
+ errors: number;
64863
+ runsUsing: number;
64864
+ shareOfRuns: number;
64865
+ tool: string;
64866
+ }[];
64867
+ };
64868
+ /** @enum {string} */
64869
+ mode: "cohorts";
64870
+ right: {
64871
+ executionIds: string[];
64872
+ failureRate: number | null;
64873
+ sampleLimit: number;
64874
+ sampled: number;
64875
+ signalRates: {
64876
+ [key: string]: {
64877
+ filtered: {
64878
+ evaluated: number;
64879
+ fired: number;
64880
+ rate: number | null;
64881
+ };
64882
+ uniform: {
64883
+ evaluated: number;
64884
+ fired: number;
64885
+ rate: number | null;
64886
+ };
64887
+ };
64888
+ };
64889
+ stopReasons: {
64890
+ [key: string]: number;
64891
+ };
64892
+ toolUsage: {
64893
+ calls: number;
64894
+ callsPerRun: number;
64895
+ errors: number;
64896
+ runsUsing: number;
64897
+ shareOfRuns: number;
64898
+ tool: string;
64899
+ }[];
64900
+ };
64901
+ toolShareDelta: {
64902
+ delta: number;
64903
+ left: number;
64904
+ right: number;
64905
+ tool: string;
64906
+ }[];
64907
+ window: {
64908
+ from: string;
64909
+ to: string;
64910
+ };
64911
+ };
64912
+ TraceCompareRequest: {
64913
+ from?: string;
64914
+ left: {
64915
+ executionId: string;
64916
+ } | {
64917
+ filters: {
64918
+ agentIds?: string[];
64919
+ /** @description Hosted runs carry no agentVersionId on the trace header yet, so this filter matches ingested runs only. */
64920
+ agentVersionIds?: string[];
64921
+ flowIds?: string[];
64922
+ /** @description Count subagent and nested-flow runs too; unscoped reads fold them by default. */
64923
+ includeChildren?: boolean;
64924
+ /** @description Runs with any model call to this model. Reads spans, so the window is capped at 7 days. */
64925
+ model?: string;
64926
+ /** @description Runs where this signal fired: `key` or `key:value`. */
64927
+ signal?: string;
64928
+ /** @enum {string} */
64929
+ source?: "hosted" | "ingested";
64930
+ /** @enum {string} */
64931
+ status?: "running" | "completed" | "failed";
64932
+ stopReason?: string;
64933
+ surfaceId?: string;
64934
+ };
64935
+ };
64936
+ right: {
64937
+ executionId: string;
64938
+ } | {
64939
+ filters: {
64940
+ agentIds?: string[];
64941
+ /** @description Hosted runs carry no agentVersionId on the trace header yet, so this filter matches ingested runs only. */
64942
+ agentVersionIds?: string[];
64943
+ flowIds?: string[];
64944
+ /** @description Count subagent and nested-flow runs too; unscoped reads fold them by default. */
64945
+ includeChildren?: boolean;
64946
+ /** @description Runs with any model call to this model. Reads spans, so the window is capped at 7 days. */
64947
+ model?: string;
64948
+ /** @description Runs where this signal fired: `key` or `key:value`. */
64949
+ signal?: string;
64950
+ /** @enum {string} */
64951
+ source?: "hosted" | "ingested";
64952
+ /** @enum {string} */
64953
+ status?: "running" | "completed" | "failed";
64954
+ stopReason?: string;
64955
+ surfaceId?: string;
64956
+ };
64957
+ };
64958
+ sampleSize?: number;
64959
+ to?: string;
64960
+ };
64223
64961
  TraceLogEntry: {
64224
64962
  agentId?: string | null;
64225
64963
  agentName?: string | null;
@@ -64363,6 +65101,180 @@ interface components {
64363
65101
  source: "native" | "external";
64364
65102
  surfaceType?: string | null;
64365
65103
  };
65104
+ TraceQueryRequest: {
65105
+ agentIds?: string[];
65106
+ /** @description Hosted runs carry no agentVersionId on the trace header yet, so this filter matches ingested runs only. */
65107
+ agentVersionIds?: string[];
65108
+ cursor?: string;
65109
+ flowIds?: string[];
65110
+ /** @description ISO 8601; default 7 days before `to`. */
65111
+ from?: string;
65112
+ groupBy?: ("agent" | "agent_version" | "flow" | "surface" | "model" | "source" | "status" | "stop_reason" | "day")[];
65113
+ /** @description Count subagent and nested-flow runs too; unscoped reads fold them by default. */
65114
+ includeChildren?: boolean;
65115
+ /** @description Tool-call percentiles per group. Reads spans, so the window is capped at 7 days. Default false. */
65116
+ includeToolCalls?: boolean;
65117
+ limit?: number;
65118
+ /** @description Runs with any model call to this model. Reads spans, so the window is capped at 7 days. */
65119
+ model?: string;
65120
+ /** @description Runs where this signal fired: `key` or `key:value`. */
65121
+ signal?: string;
65122
+ /** @description Fire rate of this signal (`key` or `key:value`) per group; uniform and filtered samples are reported apart. */
65123
+ signalRate?: string;
65124
+ /** @enum {string} */
65125
+ source?: "hosted" | "ingested";
65126
+ /** @enum {string} */
65127
+ status?: "running" | "completed" | "failed";
65128
+ stopReason?: string;
65129
+ surfaceId?: string;
65130
+ /** @description ISO 8601; default now. Windows over 30 days are refused. */
65131
+ to?: string;
65132
+ };
65133
+ TraceQueryResult: {
65134
+ groupBy: ("agent" | "agent_version" | "flow" | "surface" | "model" | "source" | "status" | "stop_reason" | "day")[];
65135
+ groups: {
65136
+ cost: {
65137
+ p50: number | null;
65138
+ p95: number | null;
65139
+ pricedRuns: number;
65140
+ sum: number | null;
65141
+ unpricedRuns: number;
65142
+ };
65143
+ count: number;
65144
+ durationMs: {
65145
+ p50: number | null;
65146
+ p95: number | null;
65147
+ };
65148
+ failed: number;
65149
+ failureRate: number | null;
65150
+ key: {
65151
+ [key: string]: string | null;
65152
+ };
65153
+ sampleExecutionIds: string[];
65154
+ signalRate?: {
65155
+ filtered: {
65156
+ evaluated: number;
65157
+ fired: number;
65158
+ rate: number | null;
65159
+ };
65160
+ uniform: {
65161
+ evaluated: number;
65162
+ fired: number;
65163
+ rate: number | null;
65164
+ };
65165
+ };
65166
+ tokens: {
65167
+ p50: number | null;
65168
+ p95: number | null;
65169
+ reportedRuns: number;
65170
+ sum: number | null;
65171
+ };
65172
+ toolCalls: {
65173
+ p50: number | null;
65174
+ p95: number | null;
65175
+ } | null;
65176
+ }[];
65177
+ nextCursor: string | null;
65178
+ totals: {
65179
+ cost: {
65180
+ p50: number | null;
65181
+ p95: number | null;
65182
+ pricedRuns: number;
65183
+ sum: number | null;
65184
+ unpricedRuns: number;
65185
+ };
65186
+ count: number;
65187
+ durationMs: {
65188
+ p50: number | null;
65189
+ p95: number | null;
65190
+ };
65191
+ failed: number;
65192
+ failureRate: number | null;
65193
+ signalRate?: {
65194
+ filtered: {
65195
+ evaluated: number;
65196
+ fired: number;
65197
+ rate: number | null;
65198
+ };
65199
+ uniform: {
65200
+ evaluated: number;
65201
+ fired: number;
65202
+ rate: number | null;
65203
+ };
65204
+ };
65205
+ tokens: {
65206
+ p50: number | null;
65207
+ p95: number | null;
65208
+ reportedRuns: number;
65209
+ sum: number | null;
65210
+ };
65211
+ toolCalls: {
65212
+ p50: number | null;
65213
+ p95: number | null;
65214
+ } | null;
65215
+ };
65216
+ truncated: boolean;
65217
+ warnings: {
65218
+ code: string;
65219
+ message: string;
65220
+ }[];
65221
+ window: {
65222
+ from: string;
65223
+ to: string;
65224
+ };
65225
+ };
65226
+ TraceSlice: {
65227
+ content: {
65228
+ cut: {
65229
+ bytes: number;
65230
+ field: string;
65231
+ returnedBytes: number;
65232
+ spanId: string;
65233
+ }[];
65234
+ limitBytes: number;
65235
+ loaded: boolean;
65236
+ unavailable: string[];
65237
+ usedBytes: number;
65238
+ };
65239
+ executionId: string;
65240
+ matchedSpans: number;
65241
+ selection: {
65242
+ firstFailedIndex: number | null;
65243
+ from: number;
65244
+ /** @enum {string} */
65245
+ mode: "range" | "around_first_failure";
65246
+ to: number;
65247
+ };
65248
+ source: string;
65249
+ spans: {
65250
+ content?: {
65251
+ [key: string]: unknown;
65252
+ };
65253
+ cost: number | null;
65254
+ durationMs: number | null;
65255
+ error: string | null;
65256
+ index: number;
65257
+ inputPreview: string | null;
65258
+ inputTokens: number | null;
65259
+ kind: string | null;
65260
+ model: string | null;
65261
+ name: string;
65262
+ outputPreview: string | null;
65263
+ outputTokens: number | null;
65264
+ parentSpanId: string | null;
65265
+ spanId: string | null;
65266
+ startedAt: string;
65267
+ status: string;
65268
+ stopReason: string | null;
65269
+ toolName: string | null;
65270
+ }[];
65271
+ totalSpans: number;
65272
+ traceId: string;
65273
+ /** @description The trace exceeded the span read ceiling. */
65274
+ traceTruncated: boolean;
65275
+ /** @description More spans matched than were returned. */
65276
+ truncated: boolean;
65277
+ };
64366
65278
  TraceTree: {
64367
65279
  availability?: {
64368
65280
  /** @enum {boolean} */
@@ -68280,6 +69192,255 @@ export interface ProductionHealthResponse {
68280
69192
  insights: HealthInsight[];
68281
69193
  generatedAt: string;
68282
69194
  }
69195
+ type TraceQueryDimension = 'agent' | 'agent_version' | 'flow' | 'surface' | 'model' | 'source' | 'status' | 'stop_reason' | 'day';
69196
+ /** Filters shared by `queryTraces` and one side of a cohort `compareTrace`. */
69197
+ interface TraceQueryFilters {
69198
+ agentIds?: string[];
69199
+ agentVersionIds?: string[];
69200
+ flowIds?: string[];
69201
+ surfaceId?: string;
69202
+ /** Runs with any model call to this model. Reads spans, so the window is capped at 7 days. */
69203
+ model?: string;
69204
+ source?: 'hosted' | 'ingested';
69205
+ status?: 'running' | 'completed' | 'failed';
69206
+ stopReason?: string;
69207
+ /** `key` or `key:value`, the `runs.list` grammar. */
69208
+ signal?: string;
69209
+ includeChildren?: boolean;
69210
+ }
69211
+ interface TraceQueryRequest extends TraceQueryFilters {
69212
+ /** ISO 8601; default 7 days before `to`. Cohort sides take one shared window on `TraceCompareRequest`. */
69213
+ from?: string;
69214
+ /** ISO 8601; default now. */
69215
+ to?: string;
69216
+ /** One or two dimensions. */
69217
+ groupBy?: TraceQueryDimension[];
69218
+ /** Fire rate of this signal (`key` or `key:value`) per group, uniform and filtered kept apart. */
69219
+ signalRate?: string;
69220
+ includeToolCalls?: boolean;
69221
+ limit?: number;
69222
+ cursor?: string;
69223
+ }
69224
+ interface TraceQueryDistribution {
69225
+ sum: number | null;
69226
+ p50: number | null;
69227
+ p95: number | null;
69228
+ }
69229
+ interface TraceQuerySignalRateSample {
69230
+ evaluated: number;
69231
+ fired: number;
69232
+ rate: number | null;
69233
+ }
69234
+ interface TraceQueryMetrics {
69235
+ count: number;
69236
+ failed: number;
69237
+ failureRate: number | null;
69238
+ tokens: TraceQueryDistribution & {
69239
+ reportedRuns: number;
69240
+ };
69241
+ /** A null cost is unknown, never zero: `unpricedRuns` counts what the sum leaves out. */
69242
+ cost: TraceQueryDistribution & {
69243
+ pricedRuns: number;
69244
+ unpricedRuns: number;
69245
+ };
69246
+ durationMs: {
69247
+ p50: number | null;
69248
+ p95: number | null;
69249
+ };
69250
+ toolCalls: {
69251
+ p50: number | null;
69252
+ p95: number | null;
69253
+ } | null;
69254
+ signalRate?: {
69255
+ uniform: TraceQuerySignalRateSample;
69256
+ filtered: TraceQuerySignalRateSample;
69257
+ };
69258
+ }
69259
+ interface TraceQueryGroup extends TraceQueryMetrics {
69260
+ key: Partial<Record<TraceQueryDimension, string | null>>;
69261
+ sampleExecutionIds: string[];
69262
+ }
69263
+ interface TraceQueryWarning {
69264
+ code: string;
69265
+ message: string;
69266
+ }
69267
+ interface TraceQueryResult {
69268
+ groupBy: TraceQueryDimension[];
69269
+ groups: TraceQueryGroup[];
69270
+ totals: TraceQueryMetrics;
69271
+ truncated: boolean;
69272
+ nextCursor: string | null;
69273
+ warnings: TraceQueryWarning[];
69274
+ window: {
69275
+ from: string;
69276
+ to: string;
69277
+ };
69278
+ }
69279
+ type TraceSliceSpanKind = 'model' | 'tool' | 'step';
69280
+ /** Query parameters for `readTraceSlice`; `aroundFirstFailure` does not combine with `start`/`end`. */
69281
+ interface TraceSliceParams {
69282
+ start?: number;
69283
+ end?: number;
69284
+ kind?: TraceSliceSpanKind;
69285
+ toolName?: string;
69286
+ aroundFirstFailure?: number;
69287
+ limit?: number;
69288
+ includeContent?: boolean;
69289
+ maxContentBytes?: number;
69290
+ }
69291
+ interface TraceSliceSpan {
69292
+ index: number;
69293
+ spanId: string | null;
69294
+ parentSpanId: string | null;
69295
+ kind: string | null;
69296
+ name: string;
69297
+ toolName: string | null;
69298
+ status: string;
69299
+ startedAt: string;
69300
+ durationMs: number | null;
69301
+ model: string | null;
69302
+ inputTokens: number | null;
69303
+ outputTokens: number | null;
69304
+ cost: number | null;
69305
+ stopReason: string | null;
69306
+ error: string | null;
69307
+ inputPreview: string | null;
69308
+ outputPreview: string | null;
69309
+ content?: Record<string, unknown>;
69310
+ }
69311
+ interface TraceSlice {
69312
+ executionId: string;
69313
+ traceId: string;
69314
+ source: string;
69315
+ totalSpans: number;
69316
+ matchedSpans: number;
69317
+ selection: {
69318
+ mode: 'range' | 'around_first_failure';
69319
+ from: number;
69320
+ to: number;
69321
+ firstFailedIndex: number | null;
69322
+ };
69323
+ spans: TraceSliceSpan[];
69324
+ /** More spans matched than were returned. */
69325
+ truncated: boolean;
69326
+ /** The trace exceeded the span read ceiling. */
69327
+ traceTruncated: boolean;
69328
+ content: {
69329
+ loaded: boolean;
69330
+ limitBytes: number;
69331
+ usedBytes: number;
69332
+ cut: Array<{
69333
+ spanId: string;
69334
+ field: string;
69335
+ bytes: number;
69336
+ returnedBytes: number;
69337
+ }>;
69338
+ unavailable: string[];
69339
+ };
69340
+ }
69341
+ type TraceCompareSide = {
69342
+ executionId: string;
69343
+ } | {
69344
+ filters: TraceQueryFilters;
69345
+ };
69346
+ interface TraceCompareRequest {
69347
+ left: TraceCompareSide;
69348
+ right: TraceCompareSide;
69349
+ from?: string;
69350
+ to?: string;
69351
+ sampleSize?: number;
69352
+ }
69353
+ type TraceAlignmentOp = 'match' | 'left_only' | 'right_only' | 'reordered';
69354
+ interface TraceCompareExecutionTotals {
69355
+ executionId: string;
69356
+ source: string;
69357
+ status: string | null;
69358
+ stopReason: string | null;
69359
+ inputTokens: number | null;
69360
+ outputTokens: number | null;
69361
+ cost: number | null;
69362
+ durationMs: number | null;
69363
+ turns: number | null;
69364
+ toolCalls: number;
69365
+ }
69366
+ interface TraceCompareExecutions {
69367
+ mode: 'executions';
69368
+ left: TraceCompareExecutionTotals;
69369
+ right: TraceCompareExecutionTotals;
69370
+ alignment: Array<{
69371
+ op: TraceAlignmentOp;
69372
+ tool: string;
69373
+ leftIndex: number | null;
69374
+ rightIndex: number | null;
69375
+ argDrift: number | null;
69376
+ driftedKeys?: string[];
69377
+ }>;
69378
+ divergence: {
69379
+ alignmentIndex: number;
69380
+ leftIndex: number | null;
69381
+ rightIndex: number | null;
69382
+ description: string;
69383
+ } | null;
69384
+ perTool: Array<{
69385
+ tool: string;
69386
+ leftCalls: number;
69387
+ rightCalls: number;
69388
+ leftErrors: number;
69389
+ rightErrors: number;
69390
+ argDrift: number | null;
69391
+ }>;
69392
+ truncated: {
69393
+ left: boolean;
69394
+ right: boolean;
69395
+ };
69396
+ }
69397
+ interface TraceCompareCohortSide {
69398
+ sampled: number;
69399
+ sampleLimit: number;
69400
+ executionIds: string[];
69401
+ failureRate: number | null;
69402
+ stopReasons: Record<string, number>;
69403
+ toolUsage: Array<{
69404
+ tool: string;
69405
+ calls: number;
69406
+ runsUsing: number;
69407
+ shareOfRuns: number;
69408
+ callsPerRun: number;
69409
+ errors: number;
69410
+ }>;
69411
+ signalRates: Record<string, {
69412
+ uniform: TraceQuerySignalRateSample;
69413
+ filtered: TraceQuerySignalRateSample;
69414
+ }>;
69415
+ }
69416
+ interface TraceCompareCohorts {
69417
+ mode: 'cohorts';
69418
+ window: {
69419
+ from: string;
69420
+ to: string;
69421
+ };
69422
+ left: TraceCompareCohortSide;
69423
+ right: TraceCompareCohortSide;
69424
+ toolShareDelta: Array<{
69425
+ tool: string;
69426
+ left: number;
69427
+ right: number;
69428
+ delta: number;
69429
+ }>;
69430
+ }
69431
+ type TraceCompare = TraceCompareExecutions | TraceCompareCohorts;
69432
+ interface TraceQueryResponse {
69433
+ success: boolean;
69434
+ data: TraceQueryResult;
69435
+ }
69436
+ interface TraceSliceResponse {
69437
+ success: boolean;
69438
+ data: TraceSlice;
69439
+ }
69440
+ interface TraceCompareResponse {
69441
+ success: boolean;
69442
+ data: TraceCompare;
69443
+ }
68283
69444
  /**
68284
69445
  * Agent API key request types.
68285
69446
  *
@@ -71839,6 +73000,22 @@ export declare class LogsEndpoint {
71839
73000
  * Get the trace tree for a conversation (all executions within it).
71840
73001
  */
71841
73002
  traceConversation(conversationId: string): Promise<Record<string, unknown>>;
73003
+ /**
73004
+ * Filter runs and group them by one or two dimensions into aggregates (count, failure rate,
73005
+ * tokens, cost, duration, tool calls, signal fire rate), each with sample execution ids.
73006
+ * Model and tool-call metrics read spans, which caps the window at 7 days.
73007
+ */
73008
+ queryTraces(request?: TraceQueryRequest): Promise<TraceQueryResponse>;
73009
+ /**
73010
+ * Read a bounded window of one trace: by span index range, span kind, tool name, or around
73011
+ * the first failed span. Content stays previews-only unless `includeContent` is set.
73012
+ */
73013
+ readTraceSlice(executionId: string, params?: TraceSliceParams): Promise<TraceSliceResponse>;
73014
+ /**
73015
+ * Compare two executions (tool-call alignment and first divergence) or two cohorts of runs
73016
+ * (failure rate, stop reasons, tool usage, signal rates).
73017
+ */
73018
+ compareTrace(request: TraceCompareRequest): Promise<TraceCompareResponse>;
71842
73019
  }
71843
73020
  /**
71844
73021
  * Agent Versions endpoint handlers
@@ -77360,6 +78537,32 @@ interface SimulationReportedUsage {
77360
78537
  cacheCreationInputTokens?: number;
77361
78538
  }>;
77362
78539
  }
78540
+ /** How completely a local coding harness recorded one turn; evidence coverage, not task success or billing. */
78541
+ interface SimulationHarnessCaptureSummary {
78542
+ version: 1;
78543
+ traceId: string;
78544
+ executionId: string;
78545
+ delivery: 'accepted' | 'partial' | 'failed';
78546
+ dataPolicy: 'metrics' | 'redacted' | 'full';
78547
+ coverage: Record<string, {
78548
+ state: 'available' | 'unavailable' | 'disabled' | 'partial' | 'redacted' | 'truncated';
78549
+ reason?: string;
78550
+ }>;
78551
+ provenance?: {
78552
+ cliVersion?: string;
78553
+ harness: 'claude' | 'codex';
78554
+ backend: 'native' | 'acp';
78555
+ harnessVersion: string;
78556
+ adapterVersion?: string;
78557
+ sdkVersion?: string;
78558
+ protocolVersion: string;
78559
+ profile: 'controlled-mcp' | 'workspace';
78560
+ };
78561
+ observedEvents: number;
78562
+ deliveredEvents: number;
78563
+ droppedEvents: number;
78564
+ unresolvedTools: number;
78565
+ }
77363
78566
  /** Known estimates and reporting coverage, without treating a partial sum as complete. */
77364
78567
  interface SimulationSelfReportedCost {
77365
78568
  knownCostUsd: number | null;
@@ -77500,6 +78703,8 @@ interface SimulationEpisodeScore {
77500
78703
  }
77501
78704
  /** One tool call of a turn, as the layer facts keep it after the transcript expires. */
77502
78705
  interface SimulationToolCallFacts {
78706
+ /** The native tool call id, when the target reported one. */
78707
+ callId?: string;
77503
78708
  callIndex: number;
77504
78709
  shownName: string;
77505
78710
  serverTool: string | null;
@@ -77512,7 +78717,7 @@ interface SimulationToolCallFacts {
77512
78717
  retryOf: number | null;
77513
78718
  intendedTool: string | null;
77514
78719
  intendedSource: 'hint' | 'judge' | null;
77515
- durationMs: number;
78720
+ durationMs: number | null;
77516
78721
  stubbed?: boolean;
77517
78722
  readOnly?: boolean;
77518
78723
  errorText?: string | null;
@@ -77539,6 +78744,7 @@ interface SimulationToolCallFacts {
77539
78744
  }
77540
78745
  /** What one turn crossed: surface, capability, implementation, models and tool calls. */
77541
78746
  interface SimulationTurnLayerFacts {
78747
+ harnessCapture?: SimulationHarnessCaptureSummary;
77542
78748
  reportedUsage?: SimulationReportedUsage;
77543
78749
  turnIndex: number;
77544
78750
  surface: {
@@ -79216,5 +80422,5 @@ export declare function isPreservationSensitiveTask(state: Pick<{
79216
80422
  export declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | undefined, candidatePaths: string[] | undefined): string[];
79217
80423
  export declare function getDefaultPlanPath(taskName: string): string;
79218
80424
  export declare function sanitizeTaskSlug(taskName: string): string;
79219
- export type { A2AHandlerOptions, A2ARunInput, A2ATextMessage, AIGrader, ActivateAgentAliasInput, ActivateAgentPromotionInput, AgentAlias, AgentAliasActivation, AgentAliasArchiveFailure, AgentAliasArchived, AgentAliasList, AgentAliasTransport, AgentCapabilityChange, AgentCapabilityDeclaration, AgentDefinition, AgentDefinitionConfig, AgentDeploymentList, AgentDeploymentPromotion, AgentDeploymentReceipt, AgentPromotionManifest, AgentPromotionTransport, AgentPromotionValidation, AgentPullResult, AgentSkillBinding, AgentSkillBindingChange, AgentStreamEvent, ApiKeyRequest, ApiKeyRequestDelivery, ApiKeyRequestEnvironment, ApiKeyRequestHandoff, ApiKeyRequestListParams, ApiKeyRequestRequester, ApiKeyRequestStatus, ApplyGeneratedProposalOptions, ApplyGeneratedProposalResult, ArchiveAgentAliasEverywhereResult, ArchiveAgentAliasInput, AttachRuntimeToolsOptions, BatchClient, BatchListParams, BatchOptions, BatchRequest, BatchResult, BatchScheduleConfig, BatchStatus, BindSignalSetInput, BindSkillInput, BuiltInGraderId, CaseExpected, CheckGrader, ClaimApiKeyRequestInput, ClaimApiKeyRequestResponse, ClientConversation, ClientToken, ClientTokenConfig, ClientTokenDefinition, ClientTokenEnvironment, ClientTokenVersionPin, ClientWidgetTheme, CollectionPullResult, CollectionSchemaChange, ConditionalGetResult, ConditionalStepConfig, ContextErrorHandling, ContextFallback, CreateApiKeyRequestInput, CreateApiKeyRequestResponse, CreateClientTokenRequest, CreateClientTokenResponse, CreateEvalSuiteInput, CreatePromptData, CreateSignalSetInput, DecisionModelCatalog, DecisionModelCatalogEntry, DecomposeCriteriaResult, DefineAgentInput, DefineEvalCaseInput, DefineEvalInput, DefineFlowInput, DefineProductInput, DefineScheduleInput, DefineSkillInput, DefineSurfaceInput, DefineToolInput, DetachedReattach, DetachedReconnectOptions, DispatchClient, DispatchEvent, DispatchOptions, EnsureAgentConverged, EnsureAgentOptions, EnsureAgentPlan, EnsureAgentResult, EnsureClientTokenConverged, EnsureClientTokenOptions, EnsureClientTokenPlan, EnsureClientTokenResult, EnsureCollectionConverged, EnsureCollectionOptions, EnsureCollectionPlan, EnsureCollectionResult, EnsureEvalApplyOptions, EnsureEvalOptions, EnsureEvalPlan, EnsureEvalResult, EnsureFlowConverged, EnsureFlowOptions, EnsureFlowPlan, EnsureFlowResult, EnsureFpoOptions, EnsureFpoResult, EnsureProductConverged, EnsureProductOptions, EnsureProductPlan, EnsureProductResult, EnsureQuestionSetConverged, EnsureQuestionSetOptions, EnsureQuestionSetPlan, EnsureQuestionSetResult, EnsureScheduleConverged, EnsureScheduleOptions, EnsureSchedulePlan, EnsureScheduleResult, EnsureSkillConverged, EnsureSkillOptions, EnsureSkillPlan, EnsureSkillResult, EnsureSurfaceConverged, EnsureSurfaceOptions, EnsureSurfacePlan, EnsureSurfaceResult, EnsureToolConverged, EnsureToolOptions, EnsureToolPlan, EnsureToolResult, ErrorHandlingMode, EvalAgentSelector, EvalAgentTargetResolution, EvalCaseDefinition, EvalCaseInput, EvalCaseProposal, EvalCaseProposalAccepted, EvalCaseProposalListResult, EvalCasesGenerated, EvalClient, EvalDefinition, EvalEndUserIdentity, EvalIdentityDefaults, EvalListParams, EvalMessage, EvalOptions, EvalProposalSource, EvalProposalStatus, EvalProposedCase, EvalPullResult, EvalRecord, EvalRequest, EvalResult, EvalRunCaseScores, EvalRunConfig, EvalRunEvidence, EvalRunScores, EvalStatus, EvalSuiteCase, EvalSuiteCaseInput, EvalSuiteCoverage, EvalSuiteDetail, EvalSuiteLatestRun, EvalSuiteListResult, EvalSuiteRunQueued, EvalSuiteRunResult, EvalSuiteSummary, EvalTarget, EvalTenantIdentity, ExecutionStreamEvent, ExecutionTerminalOutcome, ExportSimulationDesignBriefResponse, ExtractionModelCatalog, ExtractionModelCatalogEntry, FallbackFailEvent, FallbackStartEvent, FallbackSuccessEvent, FallbackTrigger, FallbackTriggerType, FallbacksExhaustedEvent, FallbacksInitiatedEvent, FetchUrlStepConfig, FieldFormat, FlowCompleteEvent, FlowConfig, FlowDefinition, FlowDefinitionStep, FlowErrorEvent, FlowFallback, FlowInlineEvalInput, FlowPausedEvent, FlowPullResult, FlowStartEvent, FlowStreamEvent, FlowSummary, FlowValidationClient, FlowValidationIssue, FlowValidationResult, FpoEntityOutcome, FpoInput, GenerateEmbeddingStepConfig, GenerateEvalCasesInput, GeneratedRuntimeToolGateDecision, GeneratedRuntimeToolGateOptions, GetApiKeyRequestResponse, GetRecordStepConfig, GetSimulationEpisodeResponse, Gradeable, GraderConfig, GraderOutcome, GraderSeverity, HumanVerdict, JudgeAttemptDiagnostic, JudgeDiagnostics, JudgeParseError, ListAgentAliasesOptions, ListAgentDeploymentsOptions, ListConversationsResponse, ListRecordsStepConfig, ListSimulationEpisodesParams, ListSimulationEpisodesResponse, ListSimulationToolExchangesParams, ListSimulationToolExchangesResponse, LoopStepConfig, ManagedDeploymentAccepted, ManagedDeploymentCapability, ManagedDeploymentConfig, ManagedDeploymentCredentialAuthority, ManagedDeploymentDefinition, ManagedDeploymentDesiredSpec, ManagedDeploymentHealth, ManagedDeploymentLanguage, ManagedDeploymentProfileIdentity, ManagedDeploymentResource, ManagedDeploymentRetention, ManagedDeploymentRuntimeProfile, ManagedDeploymentSleepPolicy, ManagedDeploymentUpdateOptions, ManagedDeploymentWriteOptions, ManagedDeploymentWriteRequest, Message, MessageFallback, ModelFallback, ModelOverride, OrganizationAgentAlias, OrganizationAgentAliasList, PersistedGraderOutcome, PrepareAgentPromotionInput, PreviewSimulationVariantRequest, PreviewSimulationVariantResponse, ProductDefinition, ProductPullResult, PromoteAgentInput, PromoteAgentResult, PromptErrorHandling, PromptFallback, PromptListParams, PromptStepConfig, PullFpoResult, QuestionSetDefinition, QuestionSetPullResult, RecordCollectionDefinition, RecordCollectionValidationMode, RecordConfig, RecordFilter, RecordFilterCondition, RecordFilterGroup, RecordFilterOperator, RetrieveRecordStepConfig, RetryFallback, RollbackAgentAliasInput, RunEvalCaseResult, RunEvalInput, RunEvalResult, RunListParams, RunListResponse, RunListRow, AgentSkillBinding$1 as RuntypeAgentSkillBinding, ConditionalStepConfig$1 as RuntypeConditionalStepConfig, RuntypeConfig, FetchUrlStepConfig$1 as RuntypeFetchUrlStepConfig, FlowConfig$1 as RuntypeFlowConfig, GenerateEmbeddingStepConfig$1 as RuntypeGenerateEmbeddingStepConfig, GetRecordStepConfig$1 as RuntypeGetRecordStepConfig, ListRecordsStepConfig$1 as RuntypeListRecordsStepConfig, LoopStepConfig$1 as RuntypeLoopStepConfig, Message$1 as RuntypeMessage, ModelOverride$1 as RuntypeModelOverride, Prompt$1 as RuntypePrompt, PromptStepConfig$1 as RuntypePromptStepConfig, RecordConfig$1 as RuntypeRecordConfig, RetrieveRecordStepConfig$1 as RuntypeRetrieveRecordStepConfig, SearchStepConfig as RuntypeSearchStepConfig, SendEmailStepConfig as RuntypeSendEmailStepConfig, SendEventStepConfig as RuntypeSendEventStepConfig, SendStreamStepConfig as RuntypeSendStreamStepConfig, SetVariableStepConfig as RuntypeSetVariableStepConfig, Skill as RuntypeSkill, SkillBindingWithAgent as RuntypeSkillBindingWithAgent, SkillCapabilities as RuntypeSkillCapabilities, SkillFrontmatter as RuntypeSkillFrontmatter, SkillManifest as RuntypeSkillManifest, SkillProposal as RuntypeSkillProposal, SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, SkillVersion as RuntypeSkillVersion, TransformDataStepConfig as RuntypeTransformDataStepConfig, UpsertFlowConfig as RuntypeUpsertFlowConfig, UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, VectorSearchStepConfig as RuntypeVectorSearchStepConfig, WaitUntilStepConfig as RuntypeWaitUntilStepConfig, ScheduleDefinition, ScheduleDefinitionMessage, ScheduleEnsureTransport, SchedulePullResult, SearchStepConfig$1 as SearchStepConfig, SendEmailStepConfig$1 as SendEmailStepConfig, SendEventStepConfig$1 as SendEventStepConfig, SendStreamStepConfig$1 as SendStreamStepConfig, SetVariableStepConfig$1 as SetVariableStepConfig, SignalBinding, SignalPreviewReport, SignalSet, SignalSetDefinitionInput, SignalSetPreset, SignalSetVersion, SignalStatRow, SignalStatsParams, SimulationDesignBrief, SimulationEpisode, SimulationEpisodeMetrics, SimulationEpisodeScore, SimulationEpisodeStatus, SimulationEpisodeTranscript, SimulationReportedUsage, SimulationSelfReportedCost, SimulationServedBy, SimulationServedByCounts, SimulationTermination, SimulationToolCallFacts, SimulationToolExchange, SimulationToolProfile, SimulationTranscriptMessage, SimulationTurnLayerFacts, SkillDefinition, SkillListPage, SkillListPagination, SkillListParams, SkillManifestInput, SkillMarkdownInput, SkillOrigin, SkillProposalStatus, SkillPullResult, SkillStatus, SkillTrustLevel, SkillVersionStatus, SkillWithVersion, SkillWriteInput, StepCompleteEvent, StepDeltaEvent, StepFallback, StepFieldMeta, StepStartEvent, StepWaitingLocalEvent, StreamCallbacks, StreamConsumeOptions, StreamEvent, StreamEventOf, SurfaceDefinition, SurfaceDefinitionStatus, SurfaceDefinitionType, SurfacePullResult, ToolDefinition, ToolDefinitionType, ToolPullResult, TransformDataStepConfig$1 as TransformDataStepConfig, UnauthenticatedClaimApiKeyRequestInput, UpdateClientTokenRequest, UpdateEvalCaseInput, UpdateEvalSuiteInput, UpdatePromptData, UpdateSimulationTargetRequest, UpdateSimulationVariantRequest, UploadSimulationToolExchangesRequest, UploadedSimulationToolExchange, UpsertFlowConfig$1 as UpsertFlowConfig, UpsertRecordStepConfig$1 as UpsertRecordStepConfig, ValidateAgentPromotionInput, VectorSearchStepConfig$1 as VectorSearchStepConfig, WaitUntilStepConfig$1 as WaitUntilStepConfig, WorkflowCompileDeps, WorkflowCompletionCriteriaConfig, WorkflowConfig, WorkflowConfigFactory, WorkflowHookEntry, WorkflowHookKind, WorkflowHookRef, WorkflowHookSignatures, WorkflowMilestoneConfig, WorkflowPolicyConfig, WorkflowRecoveryConfig, WorkflowSlot };
80425
+ export type { A2AHandlerOptions, A2ARunInput, A2ATextMessage, AIGrader, ActivateAgentAliasInput, ActivateAgentPromotionInput, AgentAlias, AgentAliasActivation, AgentAliasArchiveFailure, AgentAliasArchived, AgentAliasList, AgentAliasTransport, AgentCapabilityChange, AgentCapabilityDeclaration, AgentDefinition, AgentDefinitionConfig, AgentDeploymentList, AgentDeploymentPromotion, AgentDeploymentReceipt, AgentPromotionManifest, AgentPromotionTransport, AgentPromotionValidation, AgentPullResult, AgentSkillBinding, AgentSkillBindingChange, AgentStreamEvent, ApiKeyRequest, ApiKeyRequestDelivery, ApiKeyRequestEnvironment, ApiKeyRequestHandoff, ApiKeyRequestListParams, ApiKeyRequestRequester, ApiKeyRequestStatus, ApplyGeneratedProposalOptions, ApplyGeneratedProposalResult, ArchiveAgentAliasEverywhereResult, ArchiveAgentAliasInput, AttachRuntimeToolsOptions, BatchClient, BatchListParams, BatchOptions, BatchRequest, BatchResult, BatchScheduleConfig, BatchStatus, BindSignalSetInput, BindSkillInput, BuiltInGraderId, CaseExpected, CheckGrader, ClaimApiKeyRequestInput, ClaimApiKeyRequestResponse, ClientConversation, ClientToken, ClientTokenConfig, ClientTokenDefinition, ClientTokenEnvironment, ClientTokenVersionPin, ClientWidgetTheme, CollectionPullResult, CollectionSchemaChange, ConditionalGetResult, ConditionalStepConfig, ContextErrorHandling, ContextFallback, CreateApiKeyRequestInput, CreateApiKeyRequestResponse, CreateClientTokenRequest, CreateClientTokenResponse, CreateEvalSuiteInput, CreatePromptData, CreateSignalSetInput, DecisionModelCatalog, DecisionModelCatalogEntry, DecomposeCriteriaResult, DefineAgentInput, DefineEvalCaseInput, DefineEvalInput, DefineFlowInput, DefineProductInput, DefineScheduleInput, DefineSkillInput, DefineSurfaceInput, DefineToolInput, DetachedReattach, DetachedReconnectOptions, DispatchClient, DispatchEvent, DispatchOptions, EnsureAgentConverged, EnsureAgentOptions, EnsureAgentPlan, EnsureAgentResult, EnsureClientTokenConverged, EnsureClientTokenOptions, EnsureClientTokenPlan, EnsureClientTokenResult, EnsureCollectionConverged, EnsureCollectionOptions, EnsureCollectionPlan, EnsureCollectionResult, EnsureEvalApplyOptions, EnsureEvalOptions, EnsureEvalPlan, EnsureEvalResult, EnsureFlowConverged, EnsureFlowOptions, EnsureFlowPlan, EnsureFlowResult, EnsureFpoOptions, EnsureFpoResult, EnsureProductConverged, EnsureProductOptions, EnsureProductPlan, EnsureProductResult, EnsureQuestionSetConverged, EnsureQuestionSetOptions, EnsureQuestionSetPlan, EnsureQuestionSetResult, EnsureScheduleConverged, EnsureScheduleOptions, EnsureSchedulePlan, EnsureScheduleResult, EnsureSkillConverged, EnsureSkillOptions, EnsureSkillPlan, EnsureSkillResult, EnsureSurfaceConverged, EnsureSurfaceOptions, EnsureSurfacePlan, EnsureSurfaceResult, EnsureToolConverged, EnsureToolOptions, EnsureToolPlan, EnsureToolResult, ErrorHandlingMode, EvalAgentSelector, EvalAgentTargetResolution, EvalCaseDefinition, EvalCaseInput, EvalCaseProposal, EvalCaseProposalAccepted, EvalCaseProposalListResult, EvalCasesGenerated, EvalClient, EvalDefinition, EvalEndUserIdentity, EvalIdentityDefaults, EvalListParams, EvalMessage, EvalOptions, EvalProposalSource, EvalProposalStatus, EvalProposedCase, EvalPullResult, EvalRecord, EvalRequest, EvalResult, EvalRunCaseScores, EvalRunConfig, EvalRunEvidence, EvalRunScores, EvalStatus, EvalSuiteCase, EvalSuiteCaseInput, EvalSuiteCoverage, EvalSuiteDetail, EvalSuiteLatestRun, EvalSuiteListResult, EvalSuiteRunQueued, EvalSuiteRunResult, EvalSuiteSummary, EvalTarget, EvalTenantIdentity, ExecutionStreamEvent, ExecutionTerminalOutcome, ExportSimulationDesignBriefResponse, ExtractionModelCatalog, ExtractionModelCatalogEntry, FallbackFailEvent, FallbackStartEvent, FallbackSuccessEvent, FallbackTrigger, FallbackTriggerType, FallbacksExhaustedEvent, FallbacksInitiatedEvent, FetchUrlStepConfig, FieldFormat, FlowCompleteEvent, FlowConfig, FlowDefinition, FlowDefinitionStep, FlowErrorEvent, FlowFallback, FlowInlineEvalInput, FlowPausedEvent, FlowPullResult, FlowStartEvent, FlowStreamEvent, FlowSummary, FlowValidationClient, FlowValidationIssue, FlowValidationResult, FpoEntityOutcome, FpoInput, GenerateEmbeddingStepConfig, GenerateEvalCasesInput, GeneratedRuntimeToolGateDecision, GeneratedRuntimeToolGateOptions, GetApiKeyRequestResponse, GetRecordStepConfig, GetSimulationEpisodeResponse, Gradeable, GraderConfig, GraderOutcome, GraderSeverity, HumanVerdict, JudgeAttemptDiagnostic, JudgeDiagnostics, JudgeParseError, ListAgentAliasesOptions, ListAgentDeploymentsOptions, ListConversationsResponse, ListRecordsStepConfig, ListSimulationEpisodesParams, ListSimulationEpisodesResponse, ListSimulationToolExchangesParams, ListSimulationToolExchangesResponse, LoopStepConfig, ManagedDeploymentAccepted, ManagedDeploymentCapability, ManagedDeploymentConfig, ManagedDeploymentCredentialAuthority, ManagedDeploymentDefinition, ManagedDeploymentDesiredSpec, ManagedDeploymentHealth, ManagedDeploymentLanguage, ManagedDeploymentProfileIdentity, ManagedDeploymentResource, ManagedDeploymentRetention, ManagedDeploymentRuntimeProfile, ManagedDeploymentSleepPolicy, ManagedDeploymentUpdateOptions, ManagedDeploymentWriteOptions, ManagedDeploymentWriteRequest, Message, MessageFallback, ModelFallback, ModelOverride, OrganizationAgentAlias, OrganizationAgentAliasList, PersistedGraderOutcome, PrepareAgentPromotionInput, PreviewSimulationVariantRequest, PreviewSimulationVariantResponse, ProductDefinition, ProductPullResult, PromoteAgentInput, PromoteAgentResult, PromptErrorHandling, PromptFallback, PromptListParams, PromptStepConfig, PullFpoResult, QuestionSetDefinition, QuestionSetPullResult, RecordCollectionDefinition, RecordCollectionValidationMode, RecordConfig, RecordFilter, RecordFilterCondition, RecordFilterGroup, RecordFilterOperator, RetrieveRecordStepConfig, RetryFallback, RollbackAgentAliasInput, RunEvalCaseResult, RunEvalInput, RunEvalResult, RunListParams, RunListResponse, RunListRow, AgentSkillBinding$1 as RuntypeAgentSkillBinding, ConditionalStepConfig$1 as RuntypeConditionalStepConfig, RuntypeConfig, FetchUrlStepConfig$1 as RuntypeFetchUrlStepConfig, FlowConfig$1 as RuntypeFlowConfig, GenerateEmbeddingStepConfig$1 as RuntypeGenerateEmbeddingStepConfig, GetRecordStepConfig$1 as RuntypeGetRecordStepConfig, ListRecordsStepConfig$1 as RuntypeListRecordsStepConfig, LoopStepConfig$1 as RuntypeLoopStepConfig, Message$1 as RuntypeMessage, ModelOverride$1 as RuntypeModelOverride, Prompt$1 as RuntypePrompt, PromptStepConfig$1 as RuntypePromptStepConfig, RecordConfig$1 as RuntypeRecordConfig, RetrieveRecordStepConfig$1 as RuntypeRetrieveRecordStepConfig, SearchStepConfig as RuntypeSearchStepConfig, SendEmailStepConfig as RuntypeSendEmailStepConfig, SendEventStepConfig as RuntypeSendEventStepConfig, SendStreamStepConfig as RuntypeSendStreamStepConfig, SetVariableStepConfig as RuntypeSetVariableStepConfig, Skill as RuntypeSkill, SkillBindingWithAgent as RuntypeSkillBindingWithAgent, SkillCapabilities as RuntypeSkillCapabilities, SkillFrontmatter as RuntypeSkillFrontmatter, SkillManifest as RuntypeSkillManifest, SkillProposal as RuntypeSkillProposal, SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, SkillVersion as RuntypeSkillVersion, TransformDataStepConfig as RuntypeTransformDataStepConfig, UpsertFlowConfig as RuntypeUpsertFlowConfig, UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, VectorSearchStepConfig as RuntypeVectorSearchStepConfig, WaitUntilStepConfig as RuntypeWaitUntilStepConfig, ScheduleDefinition, ScheduleDefinitionMessage, ScheduleEnsureTransport, SchedulePullResult, SearchStepConfig$1 as SearchStepConfig, SendEmailStepConfig$1 as SendEmailStepConfig, SendEventStepConfig$1 as SendEventStepConfig, SendStreamStepConfig$1 as SendStreamStepConfig, SetVariableStepConfig$1 as SetVariableStepConfig, SignalBinding, SignalPreviewReport, SignalSet, SignalSetDefinitionInput, SignalSetPreset, SignalSetVersion, SignalStatRow, SignalStatsParams, SimulationDesignBrief, SimulationEpisode, SimulationEpisodeMetrics, SimulationEpisodeScore, SimulationEpisodeStatus, SimulationEpisodeTranscript, SimulationHarnessCaptureSummary, SimulationReportedUsage, SimulationSelfReportedCost, SimulationServedBy, SimulationServedByCounts, SimulationTermination, SimulationToolCallFacts, SimulationToolExchange, SimulationToolProfile, SimulationTranscriptMessage, SimulationTurnLayerFacts, SkillDefinition, SkillListPage, SkillListPagination, SkillListParams, SkillManifestInput, SkillMarkdownInput, SkillOrigin, SkillProposalStatus, SkillPullResult, SkillStatus, SkillTrustLevel, SkillVersionStatus, SkillWithVersion, SkillWriteInput, StepCompleteEvent, StepDeltaEvent, StepFallback, StepFieldMeta, StepStartEvent, StepWaitingLocalEvent, StreamCallbacks, StreamConsumeOptions, StreamEvent, StreamEventOf, SurfaceDefinition, SurfaceDefinitionStatus, SurfaceDefinitionType, SurfacePullResult, ToolDefinition, ToolDefinitionType, ToolPullResult, TraceAlignmentOp, TraceCompare, TraceCompareCohortSide, TraceCompareCohorts, TraceCompareExecutionTotals, TraceCompareExecutions, TraceCompareRequest, TraceCompareResponse, TraceCompareSide, TraceQueryDimension, TraceQueryDistribution, TraceQueryFilters, TraceQueryGroup, TraceQueryMetrics, TraceQueryRequest, TraceQueryResponse, TraceQueryResult, TraceQuerySignalRateSample, TraceQueryWarning, TraceSlice, TraceSliceParams, TraceSliceResponse, TraceSliceSpan, TraceSliceSpanKind, TransformDataStepConfig$1 as TransformDataStepConfig, UnauthenticatedClaimApiKeyRequestInput, UpdateClientTokenRequest, UpdateEvalCaseInput, UpdateEvalSuiteInput, UpdatePromptData, UpdateSimulationTargetRequest, UpdateSimulationVariantRequest, UploadSimulationToolExchangesRequest, UploadedSimulationToolExchange, UpsertFlowConfig$1 as UpsertFlowConfig, UpsertRecordStepConfig$1 as UpsertRecordStepConfig, ValidateAgentPromotionInput, VectorSearchStepConfig$1 as VectorSearchStepConfig, WaitUntilStepConfig$1 as WaitUntilStepConfig, WorkflowCompileDeps, WorkflowCompletionCriteriaConfig, WorkflowConfig, WorkflowConfigFactory, WorkflowHookEntry, WorkflowHookKind, WorkflowHookRef, WorkflowHookSignatures, WorkflowMilestoneConfig, WorkflowPolicyConfig, WorkflowRecoveryConfig, WorkflowSlot };
79220
80426
  export {}