@runtypelabs/sdk 4.20.0 → 4.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -8325,10 +8325,7 @@ interface paths {
8325
8325
  */
8326
8326
  post: {
8327
8327
  parameters: {
8328
- query?: {
8329
- /** @description Set to `unified` to receive the opt-in Persona 4.0 unified SSE vocabulary. Omit for the legacy dispatch SSE event union. */
8330
- events?: "unified";
8331
- };
8328
+ query?: never;
8332
8329
  header?: never;
8333
8330
  path?: never;
8334
8331
  cookie?: never;
@@ -8348,7 +8345,6 @@ interface paths {
8348
8345
  };
8349
8346
  content: {
8350
8347
  "text/event-stream": unknown;
8351
- "text/event-stream; events=unified": unknown;
8352
8348
  };
8353
8349
  };
8354
8350
  /** @description Validation error */
@@ -8437,10 +8433,7 @@ interface paths {
8437
8433
  */
8438
8434
  post: {
8439
8435
  parameters: {
8440
- query?: {
8441
- /** @description Set to `unified` to receive the opt-in Persona 4.0 unified SSE vocabulary. Omit for the legacy dispatch SSE event union. */
8442
- events?: "unified";
8443
- };
8436
+ query?: never;
8444
8437
  header?: never;
8445
8438
  path?: never;
8446
8439
  cookie?: never;
@@ -8465,7 +8458,6 @@ interface paths {
8465
8458
  };
8466
8459
  content: {
8467
8460
  "text/event-stream": unknown;
8468
- "text/event-stream; events=unified": unknown;
8469
8461
  };
8470
8462
  };
8471
8463
  /** @description Validation error */
@@ -8527,10 +8519,7 @@ interface paths {
8527
8519
  */
8528
8520
  post: {
8529
8521
  parameters: {
8530
- query?: {
8531
- /** @description Set to `unified` to receive the opt-in Persona 4.0 unified SSE vocabulary. Omit for the legacy dispatch SSE event union. */
8532
- events?: "unified";
8533
- };
8522
+ query?: never;
8534
8523
  header?: never;
8535
8524
  path?: never;
8536
8525
  cookie?: never;
@@ -8555,7 +8544,6 @@ interface paths {
8555
8544
  };
8556
8545
  content: {
8557
8546
  "text/event-stream": unknown;
8558
- "text/event-stream; events=unified": unknown;
8559
8547
  };
8560
8548
  };
8561
8549
  /** @description Validation error */
@@ -8617,10 +8605,7 @@ interface paths {
8617
8605
  */
8618
8606
  post: {
8619
8607
  parameters: {
8620
- query?: {
8621
- /** @description Set to `unified` to receive the opt-in Persona 4.0 unified SSE vocabulary. Omit for the legacy dispatch SSE event union. */
8622
- events?: "unified";
8623
- };
8608
+ query?: never;
8624
8609
  header?: never;
8625
8610
  path?: never;
8626
8611
  cookie?: never;
@@ -8652,7 +8637,6 @@ interface paths {
8652
8637
  };
8653
8638
  content: {
8654
8639
  "text/event-stream": unknown;
8655
- "text/event-stream; events=unified": unknown;
8656
8640
  };
8657
8641
  };
8658
8642
  /** @description Validation error */
@@ -35797,315 +35781,6 @@ interface components {
35797
35781
  /** @description Present only when a raw tool_… reference could not be emitted as a portable tool:<name> (the tool was deleted, or its name is shadowed by an older same-named tool). Those references are left as raw ids, which the ensure surface rejects; each warning explains how to fix it. */
35798
35782
  warnings?: string[];
35799
35783
  };
35800
- AgentSSEEvent: {
35801
- agentId: string;
35802
- agentName: string;
35803
- config?: {
35804
- enableReflection?: boolean;
35805
- model?: string;
35806
- };
35807
- executionId: string;
35808
- maxTurns: number;
35809
- seq: number;
35810
- startedAt: string;
35811
- /** @enum {string} */
35812
- type: "agent_start";
35813
- } | {
35814
- executionId: string;
35815
- iteration: number;
35816
- maxTurns: number;
35817
- seq: number;
35818
- startedAt: string;
35819
- totalCost?: number;
35820
- /** @enum {string} */
35821
- type: "agent_iteration_start";
35822
- } | {
35823
- executionId: string;
35824
- iteration: number;
35825
- /** @enum {string} */
35826
- role: "user" | "assistant" | "system";
35827
- seq: number;
35828
- turnId: string;
35829
- turnIndex: number;
35830
- /** @enum {string} */
35831
- type: "agent_turn_start";
35832
- } | {
35833
- /** @enum {string} */
35834
- contentType: "text" | "thinking" | "tool_input";
35835
- delta: string;
35836
- executionId: string;
35837
- iteration: number;
35838
- seq: number;
35839
- turnId: string;
35840
- /** @enum {string} */
35841
- type: "agent_turn_delta";
35842
- } | {
35843
- completedAt: string;
35844
- content?: string;
35845
- cost?: number;
35846
- estimatedContextBreakdown?: {
35847
- categories: {
35848
- [key: string]: {
35849
- chars: number;
35850
- estimatedTokens: number;
35851
- };
35852
- };
35853
- contextWindowSize?: number;
35854
- estimatedTotalTokens: number;
35855
- estimatedUtilizationPercent?: number;
35856
- };
35857
- executionId: string;
35858
- iteration: number;
35859
- /** @enum {string} */
35860
- role: "user" | "assistant" | "system";
35861
- seq: number;
35862
- /** @enum {string} */
35863
- stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
35864
- tokens?: {
35865
- input: number;
35866
- output: number;
35867
- };
35868
- turnId: string;
35869
- /** @enum {string} */
35870
- type: "agent_turn_complete";
35871
- } | {
35872
- executionId: string;
35873
- iteration: number;
35874
- /** @enum {string} */
35875
- origin?: "webmcp" | "sdk";
35876
- pageOrigin?: string;
35877
- parameters?: {
35878
- [key: string]: unknown;
35879
- };
35880
- seq: number;
35881
- toolCallId: string;
35882
- toolName: string;
35883
- /** @enum {string} */
35884
- toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
35885
- /** @enum {string} */
35886
- type: "agent_tool_start";
35887
- } | {
35888
- delta: string;
35889
- executionId: string;
35890
- iteration: number;
35891
- seq: number;
35892
- toolCallId: string;
35893
- /** @enum {string} */
35894
- type: "agent_tool_delta";
35895
- } | {
35896
- delta: string;
35897
- executionId: string;
35898
- iteration: number;
35899
- seq: number;
35900
- toolCallId: string;
35901
- /** @enum {string} */
35902
- type: "agent_tool_input_delta";
35903
- } | {
35904
- executionId: string;
35905
- hiddenParameterNames?: string[];
35906
- iteration: number;
35907
- parameters: {
35908
- [key: string]: unknown;
35909
- };
35910
- seq: number;
35911
- toolCallId: string;
35912
- toolName: string;
35913
- /** @enum {string} */
35914
- type: "agent_tool_input_complete";
35915
- } | {
35916
- executionId: string;
35917
- executionTime?: number;
35918
- iteration: number;
35919
- result?: unknown;
35920
- seq: number;
35921
- success: boolean;
35922
- toolCallId: string;
35923
- toolName: string;
35924
- /** @enum {string} */
35925
- type: "agent_tool_complete";
35926
- } | {
35927
- executionId?: string;
35928
- iteration: number;
35929
- media: ({
35930
- annotations?: {
35931
- audience?: ("user" | "assistant")[];
35932
- };
35933
- data: string;
35934
- mediaType: string;
35935
- /** @enum {string} */
35936
- type: "media";
35937
- } | {
35938
- annotations?: {
35939
- audience?: ("user" | "assistant")[];
35940
- };
35941
- mediaType?: string;
35942
- /** @enum {string} */
35943
- type: "image-url";
35944
- url: string;
35945
- } | {
35946
- annotations?: {
35947
- audience?: ("user" | "assistant")[];
35948
- };
35949
- mediaType: string;
35950
- /** @enum {string} */
35951
- type: "file-url";
35952
- url: string;
35953
- })[];
35954
- seq?: number;
35955
- toolCallId: string;
35956
- toolName: string;
35957
- /** @enum {string} */
35958
- type: "agent_media";
35959
- } | {
35960
- approvalId: string;
35961
- description: string;
35962
- executionId: string;
35963
- externalAgent?: {
35964
- contextId?: string;
35965
- taskId?: string;
35966
- };
35967
- iteration?: number;
35968
- parameters?: {
35969
- [key: string]: unknown;
35970
- };
35971
- reason?: string;
35972
- seq: number;
35973
- startedAt: string;
35974
- timeout: number;
35975
- toolCallId: string;
35976
- toolName: string;
35977
- toolType: string;
35978
- /** @enum {string} */
35979
- type: "agent_approval_start";
35980
- } | {
35981
- approvalId: string;
35982
- completedAt: string;
35983
- /** @enum {string} */
35984
- decision: "approved" | "denied" | "timeout";
35985
- executionId: string;
35986
- /** @enum {string} */
35987
- resolvedBy: "user" | "system";
35988
- seq: number;
35989
- /** @enum {string} */
35990
- type: "agent_approval_complete";
35991
- } | {
35992
- awaitedAt: string;
35993
- executionId: string;
35994
- /** @enum {string} */
35995
- origin?: "webmcp" | "sdk";
35996
- pageOrigin?: string;
35997
- parameters?: {
35998
- [key: string]: unknown;
35999
- };
36000
- seq: number;
36001
- toolCallId?: string;
36002
- toolId: string;
36003
- toolName: string;
36004
- /** @enum {string} */
36005
- type: "agent_await";
36006
- } | {
36007
- completedAt: string;
36008
- cost?: number;
36009
- duration?: number;
36010
- estimatedContextBreakdown?: {
36011
- categories: {
36012
- [key: string]: {
36013
- chars: number;
36014
- estimatedTokens: number;
36015
- };
36016
- };
36017
- contextWindowSize?: number;
36018
- estimatedTotalTokens: number;
36019
- estimatedUtilizationPercent?: number;
36020
- };
36021
- executionId: string;
36022
- iteration: number;
36023
- output?: string;
36024
- runningTotalCost?: number;
36025
- seq: number;
36026
- stopConditionMet: boolean;
36027
- tokens?: {
36028
- input: number;
36029
- output: number;
36030
- };
36031
- toolCallsMade: number;
36032
- /** @enum {string} */
36033
- type: "agent_iteration_complete";
36034
- } | {
36035
- executionId: string;
36036
- iteration: number;
36037
- reflection?: string;
36038
- seq: number;
36039
- timestamp?: string;
36040
- /** @enum {string} */
36041
- type: "agent_reflection";
36042
- } | {
36043
- activatedCapabilities: string[];
36044
- executionId: string;
36045
- iteration: number;
36046
- seq: number;
36047
- skill: string;
36048
- timestamp?: string;
36049
- toolCallId: string;
36050
- /** @enum {string} */
36051
- type: "agent_skill_loaded";
36052
- } | {
36053
- executionId: string;
36054
- iteration: number;
36055
- /** @enum {string} */
36056
- outcome: "pending_approval" | "auto_published";
36057
- proposalId?: string;
36058
- seq: number;
36059
- skill: string;
36060
- timestamp?: string;
36061
- toolCallId: string;
36062
- /** @enum {string} */
36063
- type: "agent_skill_proposed";
36064
- } | {
36065
- agentId: string;
36066
- completedAt: string;
36067
- duration?: number;
36068
- error?: string;
36069
- executionId: string;
36070
- externalAgent?: {
36071
- contextId?: string;
36072
- taskId?: string;
36073
- };
36074
- finalOutput?: string;
36075
- iterations: number;
36076
- seq: number;
36077
- /** @enum {string} */
36078
- stopReason: "complete" | "end_turn" | "max_turns" | "max_cost" | "timeout" | "error";
36079
- success: boolean;
36080
- totalCost?: number;
36081
- totalTokens?: {
36082
- input: number;
36083
- output: number;
36084
- };
36085
- /** @enum {string} */
36086
- type: "agent_complete";
36087
- } | {
36088
- error: {
36089
- code: string;
36090
- details?: {
36091
- [key: string]: unknown;
36092
- };
36093
- message: string;
36094
- };
36095
- executionId: string;
36096
- iteration?: number;
36097
- recoverable: boolean;
36098
- seq: number;
36099
- timestamp?: string;
36100
- /** @enum {string} */
36101
- type: "agent_error";
36102
- } | {
36103
- executionId: string;
36104
- seq: number;
36105
- timestamp: string;
36106
- /** @enum {string} */
36107
- type: "agent_ping";
36108
- };
36109
35784
  DailyUsageResponse: {
36110
35785
  daily?: {
36111
35786
  atSpendLimit: boolean;
@@ -36146,701 +35821,6 @@ interface components {
36146
35821
  tier: string;
36147
35822
  };
36148
35823
  };
36149
- DispatchSSEEvent: {
36150
- agentId: string;
36151
- agentName: string;
36152
- config?: {
36153
- enableReflection?: boolean;
36154
- model?: string;
36155
- };
36156
- executionId: string;
36157
- maxTurns: number;
36158
- seq: number;
36159
- startedAt: string;
36160
- /** @enum {string} */
36161
- type: "agent_start";
36162
- } | {
36163
- executionId: string;
36164
- iteration: number;
36165
- maxTurns: number;
36166
- seq: number;
36167
- startedAt: string;
36168
- totalCost?: number;
36169
- /** @enum {string} */
36170
- type: "agent_iteration_start";
36171
- } | {
36172
- executionId: string;
36173
- iteration: number;
36174
- /** @enum {string} */
36175
- role: "user" | "assistant" | "system";
36176
- seq: number;
36177
- turnId: string;
36178
- turnIndex: number;
36179
- /** @enum {string} */
36180
- type: "agent_turn_start";
36181
- } | {
36182
- /** @enum {string} */
36183
- contentType: "text" | "thinking" | "tool_input";
36184
- delta: string;
36185
- executionId: string;
36186
- iteration: number;
36187
- seq: number;
36188
- turnId: string;
36189
- /** @enum {string} */
36190
- type: "agent_turn_delta";
36191
- } | {
36192
- completedAt: string;
36193
- content?: string;
36194
- cost?: number;
36195
- estimatedContextBreakdown?: {
36196
- categories: {
36197
- [key: string]: {
36198
- chars: number;
36199
- estimatedTokens: number;
36200
- };
36201
- };
36202
- contextWindowSize?: number;
36203
- estimatedTotalTokens: number;
36204
- estimatedUtilizationPercent?: number;
36205
- };
36206
- executionId: string;
36207
- iteration: number;
36208
- /** @enum {string} */
36209
- role: "user" | "assistant" | "system";
36210
- seq: number;
36211
- /** @enum {string} */
36212
- stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
36213
- tokens?: {
36214
- input: number;
36215
- output: number;
36216
- };
36217
- turnId: string;
36218
- /** @enum {string} */
36219
- type: "agent_turn_complete";
36220
- } | {
36221
- executionId: string;
36222
- iteration: number;
36223
- /** @enum {string} */
36224
- origin?: "webmcp" | "sdk";
36225
- pageOrigin?: string;
36226
- parameters?: {
36227
- [key: string]: unknown;
36228
- };
36229
- seq: number;
36230
- toolCallId: string;
36231
- toolName: string;
36232
- /** @enum {string} */
36233
- toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
36234
- /** @enum {string} */
36235
- type: "agent_tool_start";
36236
- } | {
36237
- delta: string;
36238
- executionId: string;
36239
- iteration: number;
36240
- seq: number;
36241
- toolCallId: string;
36242
- /** @enum {string} */
36243
- type: "agent_tool_delta";
36244
- } | {
36245
- delta: string;
36246
- executionId: string;
36247
- iteration: number;
36248
- seq: number;
36249
- toolCallId: string;
36250
- /** @enum {string} */
36251
- type: "agent_tool_input_delta";
36252
- } | {
36253
- executionId: string;
36254
- hiddenParameterNames?: string[];
36255
- iteration: number;
36256
- parameters: {
36257
- [key: string]: unknown;
36258
- };
36259
- seq: number;
36260
- toolCallId: string;
36261
- toolName: string;
36262
- /** @enum {string} */
36263
- type: "agent_tool_input_complete";
36264
- } | {
36265
- executionId: string;
36266
- executionTime?: number;
36267
- iteration: number;
36268
- result?: unknown;
36269
- seq: number;
36270
- success: boolean;
36271
- toolCallId: string;
36272
- toolName: string;
36273
- /** @enum {string} */
36274
- type: "agent_tool_complete";
36275
- } | {
36276
- executionId?: string;
36277
- iteration: number;
36278
- media: ({
36279
- annotations?: {
36280
- audience?: ("user" | "assistant")[];
36281
- };
36282
- data: string;
36283
- mediaType: string;
36284
- /** @enum {string} */
36285
- type: "media";
36286
- } | {
36287
- annotations?: {
36288
- audience?: ("user" | "assistant")[];
36289
- };
36290
- mediaType?: string;
36291
- /** @enum {string} */
36292
- type: "image-url";
36293
- url: string;
36294
- } | {
36295
- annotations?: {
36296
- audience?: ("user" | "assistant")[];
36297
- };
36298
- mediaType: string;
36299
- /** @enum {string} */
36300
- type: "file-url";
36301
- url: string;
36302
- })[];
36303
- seq?: number;
36304
- toolCallId: string;
36305
- toolName: string;
36306
- /** @enum {string} */
36307
- type: "agent_media";
36308
- } | {
36309
- approvalId: string;
36310
- description: string;
36311
- executionId: string;
36312
- externalAgent?: {
36313
- contextId?: string;
36314
- taskId?: string;
36315
- };
36316
- iteration?: number;
36317
- parameters?: {
36318
- [key: string]: unknown;
36319
- };
36320
- reason?: string;
36321
- seq: number;
36322
- startedAt: string;
36323
- timeout: number;
36324
- toolCallId: string;
36325
- toolName: string;
36326
- toolType: string;
36327
- /** @enum {string} */
36328
- type: "agent_approval_start";
36329
- } | {
36330
- approvalId: string;
36331
- completedAt: string;
36332
- /** @enum {string} */
36333
- decision: "approved" | "denied" | "timeout";
36334
- executionId: string;
36335
- /** @enum {string} */
36336
- resolvedBy: "user" | "system";
36337
- seq: number;
36338
- /** @enum {string} */
36339
- type: "agent_approval_complete";
36340
- } | {
36341
- awaitedAt: string;
36342
- executionId: string;
36343
- /** @enum {string} */
36344
- origin?: "webmcp" | "sdk";
36345
- pageOrigin?: string;
36346
- parameters?: {
36347
- [key: string]: unknown;
36348
- };
36349
- seq: number;
36350
- toolCallId?: string;
36351
- toolId: string;
36352
- toolName: string;
36353
- /** @enum {string} */
36354
- type: "agent_await";
36355
- } | {
36356
- completedAt: string;
36357
- cost?: number;
36358
- duration?: number;
36359
- estimatedContextBreakdown?: {
36360
- categories: {
36361
- [key: string]: {
36362
- chars: number;
36363
- estimatedTokens: number;
36364
- };
36365
- };
36366
- contextWindowSize?: number;
36367
- estimatedTotalTokens: number;
36368
- estimatedUtilizationPercent?: number;
36369
- };
36370
- executionId: string;
36371
- iteration: number;
36372
- output?: string;
36373
- runningTotalCost?: number;
36374
- seq: number;
36375
- stopConditionMet: boolean;
36376
- tokens?: {
36377
- input: number;
36378
- output: number;
36379
- };
36380
- toolCallsMade: number;
36381
- /** @enum {string} */
36382
- type: "agent_iteration_complete";
36383
- } | {
36384
- executionId: string;
36385
- iteration: number;
36386
- reflection?: string;
36387
- seq: number;
36388
- timestamp?: string;
36389
- /** @enum {string} */
36390
- type: "agent_reflection";
36391
- } | {
36392
- activatedCapabilities: string[];
36393
- executionId: string;
36394
- iteration: number;
36395
- seq: number;
36396
- skill: string;
36397
- timestamp?: string;
36398
- toolCallId: string;
36399
- /** @enum {string} */
36400
- type: "agent_skill_loaded";
36401
- } | {
36402
- executionId: string;
36403
- iteration: number;
36404
- /** @enum {string} */
36405
- outcome: "pending_approval" | "auto_published";
36406
- proposalId?: string;
36407
- seq: number;
36408
- skill: string;
36409
- timestamp?: string;
36410
- toolCallId: string;
36411
- /** @enum {string} */
36412
- type: "agent_skill_proposed";
36413
- } | {
36414
- agentId: string;
36415
- completedAt: string;
36416
- duration?: number;
36417
- error?: string;
36418
- executionId: string;
36419
- externalAgent?: {
36420
- contextId?: string;
36421
- taskId?: string;
36422
- };
36423
- finalOutput?: string;
36424
- iterations: number;
36425
- seq: number;
36426
- /** @enum {string} */
36427
- stopReason: "complete" | "end_turn" | "max_turns" | "max_cost" | "timeout" | "error";
36428
- success: boolean;
36429
- totalCost?: number;
36430
- totalTokens?: {
36431
- input: number;
36432
- output: number;
36433
- };
36434
- /** @enum {string} */
36435
- type: "agent_complete";
36436
- } | {
36437
- error: {
36438
- code: string;
36439
- details?: {
36440
- [key: string]: unknown;
36441
- };
36442
- message: string;
36443
- };
36444
- executionId: string;
36445
- iteration?: number;
36446
- recoverable: boolean;
36447
- seq: number;
36448
- timestamp?: string;
36449
- /** @enum {string} */
36450
- type: "agent_error";
36451
- } | {
36452
- executionId: string;
36453
- seq: number;
36454
- timestamp: string;
36455
- /** @enum {string} */
36456
- type: "agent_ping";
36457
- } | {
36458
- executionContext?: {
36459
- [key: string]: unknown;
36460
- };
36461
- executionId?: string;
36462
- flowId: string;
36463
- flowName?: string;
36464
- input?: unknown;
36465
- seq?: number;
36466
- source?: string;
36467
- startedAt: string;
36468
- toolContext?: {
36469
- executionId: string;
36470
- stepId: string;
36471
- toolId: string;
36472
- };
36473
- totalSteps?: number;
36474
- /** @enum {string} */
36475
- type: "flow_start";
36476
- } | {
36477
- claudeManagedAgentId?: string;
36478
- completedAt?: string;
36479
- completedSteps?: number;
36480
- duration?: number;
36481
- executionContext?: {
36482
- [key: string]: unknown;
36483
- };
36484
- executionId?: string;
36485
- executionTime?: number;
36486
- failedSteps?: number;
36487
- finalOutput?: string;
36488
- flowId?: string;
36489
- flowName?: string;
36490
- output?: unknown;
36491
- seq?: number;
36492
- source?: string;
36493
- success?: boolean;
36494
- successfulSteps?: number;
36495
- toolContext?: {
36496
- executionId: string;
36497
- stepId: string;
36498
- toolId: string;
36499
- };
36500
- totalSteps?: number;
36501
- totalTokensUsed?: number;
36502
- /** @enum {string} */
36503
- type: "flow_complete";
36504
- } | {
36505
- code?: string;
36506
- error: string | {
36507
- code: string;
36508
- message: string;
36509
- stepId?: string;
36510
- stepType?: string;
36511
- };
36512
- executionId?: string;
36513
- executionTime?: number;
36514
- flowId?: string;
36515
- seq?: number;
36516
- timestamp?: string;
36517
- toolContext?: {
36518
- executionId: string;
36519
- stepId: string;
36520
- toolId: string;
36521
- };
36522
- /** @enum {string} */
36523
- type: "flow_error";
36524
- upgradeUrl?: string;
36525
- } | {
36526
- awaitedAt: string;
36527
- executionId?: string;
36528
- flowId: string;
36529
- /** @enum {string} */
36530
- origin?: "webmcp" | "sdk";
36531
- pageOrigin?: string;
36532
- parameters?: {
36533
- [key: string]: unknown;
36534
- };
36535
- seq?: number;
36536
- toolCallId?: string;
36537
- toolId?: string;
36538
- toolName?: string;
36539
- /** @enum {string} */
36540
- type: "flow_await";
36541
- } | {
36542
- estimatedTokens?: number;
36543
- executionId?: string;
36544
- id?: string;
36545
- index?: number;
36546
- name?: string;
36547
- outputVariable?: string;
36548
- seq?: number;
36549
- startedAt: string;
36550
- stepId?: string;
36551
- stepName?: string;
36552
- stepType?: string;
36553
- toolContext?: {
36554
- executionId: string;
36555
- stepId: string;
36556
- toolId: string;
36557
- };
36558
- totalSteps?: number;
36559
- /** @enum {string} */
36560
- type: "step_start";
36561
- } | {
36562
- delta?: string;
36563
- executionId?: string;
36564
- id?: string;
36565
- messageId?: string;
36566
- partId?: string;
36567
- seq?: number;
36568
- text?: string;
36569
- toolContext?: {
36570
- executionId: string;
36571
- stepId: string;
36572
- toolId: string;
36573
- };
36574
- toolId?: string;
36575
- /** @enum {string} */
36576
- type: "step_delta";
36577
- } | {
36578
- completedAt?: string;
36579
- duration?: number;
36580
- durationMs?: number;
36581
- error?: string;
36582
- executionId?: string;
36583
- executionTime?: number;
36584
- id?: string;
36585
- index?: number;
36586
- name?: string;
36587
- output?: unknown;
36588
- result?: unknown;
36589
- seq?: number;
36590
- stepId?: string;
36591
- stepName?: string;
36592
- stepType?: string;
36593
- /** @enum {string} */
36594
- stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
36595
- success?: boolean;
36596
- tokensUsed?: number;
36597
- toolContext?: {
36598
- executionId: string;
36599
- stepId: string;
36600
- toolId: string;
36601
- };
36602
- /** @enum {string} */
36603
- type: "step_complete";
36604
- unresolvedVariables?: string[];
36605
- } | {
36606
- error: string;
36607
- executionId?: string;
36608
- executionTime?: number;
36609
- id?: string;
36610
- index?: number;
36611
- name?: string;
36612
- seq?: number;
36613
- stepType?: string;
36614
- /** @enum {string} */
36615
- type: "step_error";
36616
- } | {
36617
- error?: string;
36618
- executionId?: string;
36619
- id: string;
36620
- index?: number;
36621
- name?: string;
36622
- seq?: number;
36623
- skippedAt: string;
36624
- stepType: string;
36625
- totalSteps: number;
36626
- /** @enum {string} */
36627
- type: "step_skip";
36628
- when: string;
36629
- } | ({
36630
- executionId?: string;
36631
- reason?: string;
36632
- seq?: number;
36633
- /** @enum {string} */
36634
- type: "step_await";
36635
- } & {
36636
- [key: string]: unknown;
36637
- }) | ({
36638
- agentContext?: {
36639
- executionId: string;
36640
- iteration: number;
36641
- seq: number;
36642
- };
36643
- executionId?: string;
36644
- hiddenParameterNames?: string[];
36645
- name?: string;
36646
- parameters?: {
36647
- [key: string]: unknown;
36648
- };
36649
- providerOptions?: {
36650
- [key: string]: unknown;
36651
- };
36652
- seq?: number;
36653
- startedAt?: string;
36654
- stepId?: string;
36655
- toolCallId?: string;
36656
- toolId?: string;
36657
- toolName?: string;
36658
- /** @enum {string} */
36659
- toolType: "flow" | "mcp" | "builtin" | "custom" | "external" | "advisor" | "subagent" | "local";
36660
- /** @enum {string} */
36661
- type: "tool_start";
36662
- } & {
36663
- [key: string]: unknown;
36664
- }) | ({
36665
- delta?: string;
36666
- executionId?: string;
36667
- seq?: number;
36668
- toolId?: string;
36669
- /** @enum {string} */
36670
- type: "tool_delta";
36671
- } & {
36672
- [key: string]: unknown;
36673
- }) | {
36674
- delta: string;
36675
- executionId?: string;
36676
- seq?: number;
36677
- stepId?: string;
36678
- toolCallId?: string;
36679
- toolId?: string;
36680
- /** @enum {string} */
36681
- type: "tool_input_delta";
36682
- } | {
36683
- executionId?: string;
36684
- hiddenParameterNames?: string[];
36685
- parameters: {
36686
- [key: string]: unknown;
36687
- };
36688
- providerOptions?: {
36689
- [key: string]: unknown;
36690
- };
36691
- seq?: number;
36692
- stepId?: string;
36693
- toolCallId?: string;
36694
- toolId?: string;
36695
- toolName?: string;
36696
- /** @enum {string} */
36697
- type: "tool_input_complete";
36698
- } | {
36699
- agentContext?: {
36700
- executionId: string;
36701
- iteration: number;
36702
- seq: number;
36703
- };
36704
- completedAt?: string;
36705
- error?: string;
36706
- executionId?: string;
36707
- executionTime?: number;
36708
- name?: string;
36709
- result?: unknown;
36710
- seq?: number;
36711
- stepId?: string;
36712
- success: boolean;
36713
- toolCallId?: string;
36714
- toolCost?: number;
36715
- toolId?: string;
36716
- toolName?: string;
36717
- /** @enum {string} */
36718
- type: "tool_complete";
36719
- } | {
36720
- agentContext?: {
36721
- executionId: string;
36722
- iteration: number;
36723
- seq: number;
36724
- };
36725
- error: string;
36726
- executionId?: string;
36727
- executionTime?: number;
36728
- failedAt?: string;
36729
- name: string;
36730
- seq?: number;
36731
- toolId: string;
36732
- /** @enum {string} */
36733
- type: "tool_error";
36734
- } | {
36735
- executionId?: string;
36736
- id: string;
36737
- seq?: number;
36738
- text: string;
36739
- /** @enum {string} */
36740
- type: "chunk";
36741
- } | ({
36742
- executionId?: string;
36743
- seq?: number;
36744
- /** @enum {string} */
36745
- type: "text_start";
36746
- } & {
36747
- [key: string]: unknown;
36748
- }) | ({
36749
- executionId?: string;
36750
- seq?: number;
36751
- /** @enum {string} */
36752
- type: "text_end";
36753
- } & {
36754
- [key: string]: unknown;
36755
- }) | ({
36756
- executionId?: string;
36757
- seq?: number;
36758
- /** @enum {string} */
36759
- type: "reason_start";
36760
- } & {
36761
- [key: string]: unknown;
36762
- }) | ({
36763
- executionId?: string;
36764
- seq?: number;
36765
- /** @enum {string} */
36766
- type: "reason_delta";
36767
- } & {
36768
- [key: string]: unknown;
36769
- }) | ({
36770
- executionId?: string;
36771
- seq?: number;
36772
- /** @enum {string} */
36773
- type: "reason_complete";
36774
- } & {
36775
- [key: string]: unknown;
36776
- }) | ({
36777
- executionId?: string;
36778
- seq?: number;
36779
- /** @enum {string} */
36780
- type: "source";
36781
- } & {
36782
- [key: string]: unknown;
36783
- }) | ({
36784
- executionId?: string;
36785
- seq?: number;
36786
- /** @enum {string} */
36787
- type: "fallback_start";
36788
- } & {
36789
- [key: string]: unknown;
36790
- }) | ({
36791
- executionId?: string;
36792
- seq?: number;
36793
- /** @enum {string} */
36794
- type: "fallback_complete";
36795
- } & {
36796
- [key: string]: unknown;
36797
- }) | ({
36798
- executionId?: string;
36799
- seq?: number;
36800
- /** @enum {string} */
36801
- type: "fallback_exhausted";
36802
- } & {
36803
- [key: string]: unknown;
36804
- }) | {
36805
- /** @enum {string} */
36806
- artifactType: "markdown" | "component";
36807
- component?: string;
36808
- id: string;
36809
- title?: string;
36810
- /** @enum {string} */
36811
- type: "artifact_start";
36812
- } | {
36813
- delta: string;
36814
- id: string;
36815
- /** @enum {string} */
36816
- type: "artifact_delta";
36817
- } | {
36818
- component: string;
36819
- id: string;
36820
- props: {
36821
- [key: string]: unknown;
36822
- };
36823
- /** @enum {string} */
36824
- type: "artifact_update";
36825
- } | {
36826
- id: string;
36827
- /** @enum {string} */
36828
- type: "artifact_complete";
36829
- } | ({
36830
- /** @enum {string} */
36831
- artifactType?: "markdown" | "component";
36832
- component?: string;
36833
- content?: string;
36834
- id?: string;
36835
- props?: {
36836
- [key: string]: unknown;
36837
- };
36838
- title?: string;
36839
- /** @enum {string} */
36840
- type: "artifact";
36841
- } & {
36842
- [key: string]: unknown;
36843
- });
36844
35824
  EnrichedSkillProposal: components["schemas"]["SkillProposal"] & {
36845
35825
  proposingAgent: {
36846
35826
  id: string;
@@ -38124,12 +37104,26 @@ interface components {
38124
37104
  * alias below is the REFERENCE PATTERN the entity-codegen workflow clones.
38125
37105
  */
38126
37106
 
38127
- /** Combined dispatch stream: agent + flow + artifact events (50 literals). */
38128
- type DispatchEvent = components['schemas']['DispatchSSEEvent'];
38129
- /** Flow-execution event union (26 literals). */
37107
+ /**
37108
+ * The unified 33-event vocabulary — the default wire format for every execution
37109
+ * stream (dispatch, agents, client chat). This is the canonical stream type.
37110
+ */
37111
+ type UnifiedStreamEvent = components['schemas']['UnifiedSSEEvent'];
37112
+ /**
37113
+ * @deprecated The dispatch stream now emits the unified vocabulary; this is an
37114
+ * alias of {@link UnifiedStreamEvent}. Prefer `UnifiedStreamEvent`.
37115
+ */
37116
+ type DispatchEvent = components['schemas']['UnifiedSSEEvent'];
37117
+ /**
37118
+ * Legacy flow-execution event union. Retained for the eval stream
37119
+ * (`/v1/eval/stream`), which still emits the legacy vocabulary.
37120
+ */
38130
37121
  type FlowStreamEvent = components['schemas']['FlowSSEEvent'];
38131
- /** Agent-loop event union (19 literals). */
38132
- type AgentStreamEvent = components['schemas']['AgentSSEEvent'];
37122
+ /**
37123
+ * @deprecated The agent stream now emits the unified vocabulary; this is an
37124
+ * alias of {@link UnifiedStreamEvent}. Prefer `UnifiedStreamEvent`.
37125
+ */
37126
+ type AgentStreamEvent = components['schemas']['UnifiedSSEEvent'];
38133
37127
  /**
38134
37128
  * Narrow a stream union to one event by its `type` discriminant.
38135
37129
  * @example type StepStart = StreamEventOf<FlowStreamEvent, 'step_start'>
@@ -38138,6 +37132,83 @@ type StreamEventOf<U, T extends string> = Extract<U, {
38138
37132
  type: T;
38139
37133
  }>;
38140
37134
 
37135
+ /**
37136
+ * SSE Stream Utilities for FlowBuilder
37137
+ *
37138
+ * Provides utilities for parsing Server-Sent Events (SSE) streams
37139
+ * from the Runtype API dispatch endpoint.
37140
+ */
37141
+
37142
+ /**
37143
+ * Options for the flow stream consumers.
37144
+ *
37145
+ * `unified` controls translation of the SSE branch from the unified 33-event
37146
+ * wire vocabulary back to the legacy flow event shapes:
37147
+ * - `undefined` (default): AUTO-DETECT — translate iff the stream is detected
37148
+ * as unified (an execution stream always leads with `execution_start`).
37149
+ * This makes the public `streamEvents(response)` / `processStream(response,
37150
+ * cb)` pattern correct on a `dispatch()` response without the caller knowing
37151
+ * the wire format, and keeps a still-legacy stream (`/prompts/{id}/run`,
37152
+ * eval) flowing through untouched.
37153
+ * - `true`: force translation (internal callers that KNOW the route is unified).
37154
+ * - `false`: force legacy passthrough (never translate).
37155
+ * The non-streaming JSON branch always stays legacy — the api only translates
37156
+ * the SSE writer, never the JSON `events` array.
37157
+ */
37158
+ interface StreamConsumeOptions {
37159
+ unified?: boolean;
37160
+ }
37161
+ /**
37162
+ * Parse SSE stream chunks into individual events
37163
+ *
37164
+ * @param chunk - New chunk from the stream
37165
+ * @param buffer - Previous incomplete buffer
37166
+ * @returns Parsed events and remaining buffer
37167
+ */
37168
+ declare function parseSSEChunk(chunk: string, buffer: string): {
37169
+ events: string[];
37170
+ remainingBuffer: string;
37171
+ };
37172
+ /**
37173
+ * Parse final buffer if it contains a complete event
37174
+ *
37175
+ * @param buffer - Remaining buffer after stream ends
37176
+ * @returns Parsed event JSON string or null
37177
+ */
37178
+ declare function parseFinalBuffer(buffer: string): string | null;
37179
+ /**
37180
+ * Process a streaming response with callbacks
37181
+ *
37182
+ * @param response - Fetch Response object with streaming body
37183
+ * @param callbacks - Callbacks for different event types
37184
+ * @returns Promise resolving to FlowSummary when complete
37185
+ *
37186
+ * @example
37187
+ * ```typescript
37188
+ * const response = await client.dispatch(config)
37189
+ * const summary = await processStream(response, {
37190
+ * onStepDelta: (chunk) => process.stdout.write(chunk),
37191
+ * onFlowComplete: (event) => console.log('Done!'),
37192
+ * })
37193
+ * ```
37194
+ */
37195
+ declare function processStream(response: Response, callbacks?: StreamCallbacks, options?: StreamConsumeOptions): Promise<FlowSummary>;
37196
+ /**
37197
+ * Create an async iterator over SSE events
37198
+ *
37199
+ * @param response - Fetch Response object with streaming body
37200
+ * @yields Parsed SSE events
37201
+ *
37202
+ * @example
37203
+ * ```typescript
37204
+ * const response = await client.dispatch(config)
37205
+ * for await (const event of streamEvents(response)) {
37206
+ * console.log(event.type, event)
37207
+ * }
37208
+ * ```
37209
+ */
37210
+ declare function streamEvents(response: Response, options?: StreamConsumeOptions): AsyncGenerator<StreamEvent>;
37211
+
38141
37212
  /**
38142
37213
  * FlowResult - Wrapper for streaming flow execution responses
38143
37214
  *
@@ -38174,7 +37245,13 @@ declare class FlowResult {
38174
37245
  private response;
38175
37246
  private consumed;
38176
37247
  private cachedSummary;
38177
- constructor(response: Response, summary?: FlowSummary);
37248
+ private streamOptions;
37249
+ /**
37250
+ * @param options.unified - The response is a unified-vocabulary SSE stream
37251
+ * (`/dispatch` since the unified-SSE cutover). Set by dispatch call sites;
37252
+ * left unset by still-legacy producers (`/prompts/{id}/run`, eval stream).
37253
+ */
37254
+ constructor(response: Response, summary?: FlowSummary, options?: StreamConsumeOptions);
38178
37255
  /**
38179
37256
  * Get the raw Response object for manual handling
38180
37257
  *
@@ -44825,6 +43902,12 @@ interface ParsedSSEEvent {
44825
43902
  */
44826
43903
  interface AgentStreamCallbacks {
44827
43904
  onAgentStart?: (event: AgentStartEvent) => void;
43905
+ /**
43906
+ * @deprecated No longer emitted on the unified wire vocabulary (the default
43907
+ * since the unified-SSE cutover): iteration boundaries are folded into the
43908
+ * `iteration` field on `onTurnStart` / `onTurnComplete` / tool events. Read
43909
+ * that field instead. Still fires on a legacy stream during the rollout.
43910
+ */
44828
43911
  onIterationStart?: (event: AgentIterationStartEvent) => void;
44829
43912
  onTurnStart?: (event: AgentTurnStartEvent) => void;
44830
43913
  onTurnDelta?: (event: AgentTurnDeltaEvent) => void;
@@ -44837,6 +43920,12 @@ interface AgentStreamCallbacks {
44837
43920
  onMedia?: (event: AgentMediaEvent) => void;
44838
43921
  onApprovalStart?: (event: AgentApprovalStartEvent) => void;
44839
43922
  onApprovalComplete?: (event: AgentApprovalCompleteEvent) => void;
43923
+ /**
43924
+ * @deprecated No longer emitted on the unified wire vocabulary (the default
43925
+ * since the unified-SSE cutover): iteration boundaries are folded into the
43926
+ * `iteration` field on turn/tool events. Use `onTurnComplete` for per-turn
43927
+ * cost/token data. Still fires on a legacy stream during the rollout.
43928
+ */
44840
43929
  onIterationComplete?: (event: AgentIterationCompleteEvent) => void;
44841
43930
  onReflection?: (event: AgentReflectionEvent) => void;
44842
43931
  onAgentComplete?: (event: AgentCompleteEvent) => void;
@@ -46420,62 +45509,74 @@ declare function parseOffloadedOutputId(value: string): string | undefined;
46420
45509
  declare function parseLedgerArtifactRelativePath(value: string): string | undefined;
46421
45510
 
46422
45511
  /**
46423
- * SSE Stream Utilities for FlowBuilder
45512
+ * Unified → legacy SSE event adapter (the client-side mirror of the api's
45513
+ * `apps/api/src/lib/unified-event-stream.ts`).
46424
45514
  *
46425
- * Provides utilities for parsing Server-Sent Events (SSE) streams
46426
- * from the Runtype API dispatch endpoint.
46427
- */
46428
-
46429
- /**
46430
- * Parse SSE stream chunks into individual events
45515
+ * As of the unified-SSE cutover (runtypelabs/core unified-sse-default) the
45516
+ * execution streams the SDK consumes — `/dispatch`, `/dispatch/resume`,
45517
+ * `/agents/{id}/execute`, `/agents/{id}/resume` — default to the 33-event
45518
+ * unified vocabulary (`unifiedSSEEventSchema` in `@runtypelabs/shared`). The
45519
+ * SDK opts INTO that vocabulary explicitly with `?events=unified` on those
45520
+ * requests (see the call sites in `endpoints.ts` / `runtype.ts` /
45521
+ * `flows-namespace.ts`), then translates the unified frames back into the
45522
+ * SDK's stable, hand-written legacy event shapes here.
46431
45523
  *
46432
- * @param chunk - New chunk from the stream
46433
- * @param buffer - Previous incomplete buffer
46434
- * @returns Parsed events and remaining buffer
45524
+ * Why translate instead of rewriting every consumer switch: the SDK's public
45525
+ * callback contracts (`StreamCallbacks`, `AgentStreamCallbacks`) and their event
45526
+ * types are part of the published surface. Reversing the wire at the parse
45527
+ * boundary moves the SDK onto the unified format on the wire while keeping that
45528
+ * surface byte-stable for downstream consumers. The translation is the inverse
45529
+ * of the api edge translator's mapping table
45530
+ * (`docs/features/planning/2026-06-16-persona-sse-event-merged-spec.md`).
45531
+ *
45532
+ * Scope: only the events the SDK's consumers actually read are reconstructed;
45533
+ * everything else (artifact channel, `source`, `custom`, fallback live-beat,
45534
+ * `step_skip`) maps to zero legacy events. Two unified-contract folds are NOT
45535
+ * reconstructed because the unified vocabulary deliberately discards them:
45536
+ * - `agent_iteration_start` / `agent_iteration_complete` are folded into the
45537
+ * `iteration` field on turn/tool frames, so `onIterationStart` /
45538
+ * `onIterationComplete` no longer fire.
45539
+ * - the additive `fallback` summary on `step_complete` / `turn_complete` is
45540
+ * dropped (the SDK never consumed the legacy `fallback_*` events either).
45541
+ *
45542
+ * Each translator is STATEFUL (channel block ids, current step/turn/iteration,
45543
+ * media accumulation) and therefore must be constructed once PER STREAM — never
45544
+ * shared across executions.
46435
45545
  */
46436
- declare function parseSSEChunk(chunk: string, buffer: string): {
46437
- events: string[];
46438
- remainingBuffer: string;
45546
+ type Json = Record<string, unknown>;
45547
+ /** A reconstructed legacy event (shape validated by the consumer switch/cast). */
45548
+ type LegacyEvent = Json & {
45549
+ type: string;
46439
45550
  };
46440
45551
  /**
46441
- * Parse final buffer if it contains a complete event
46442
- *
46443
- * @param buffer - Remaining buffer after stream ends
46444
- * @returns Parsed event JSON string or null
45552
+ * Query string that opts a streaming request into the unified SSE vocabulary
45553
+ * (`?events=unified`, resolved by the api's `resolveSseEventFormat`). The SDK
45554
+ * requests it explicitly on the cut-over routes so it controls its own wire
45555
+ * format regardless of the server-side `default-sse-event-format` rollout flag.
46445
45556
  */
46446
- declare function parseFinalBuffer(buffer: string): string | null;
45557
+ declare const UNIFIED_EVENTS_QUERY = "events=unified";
45558
+ /** Append the unified-events opt-in to a request path, preserving any existing query. */
45559
+ declare function withUnifiedEvents(path: string): string;
45560
+ /** True when `type` is an unambiguous unified-vocabulary event discriminator. */
45561
+ declare function isUnifiedEventType(type: unknown): boolean;
46447
45562
  /**
46448
- * Process a streaming response with callbacks
46449
- *
46450
- * @param response - Fetch Response object with streaming body
46451
- * @param callbacks - Callbacks for different event types
46452
- * @returns Promise resolving to FlowSummary when complete
45563
+ * Create a stateful translator from the unified vocabulary to the legacy flow
45564
+ * event shapes consumed by `stream-utils.ts` / `flows-namespace.ts` /
45565
+ * `client.ts`. Returns 0+ legacy events per unified event. Construct one per
45566
+ * stream.
46453
45567
  *
46454
- * @example
46455
- * ```typescript
46456
- * const response = await client.dispatch(config)
46457
- * const summary = await processStream(response, {
46458
- * onStepDelta: (chunk) => process.stdout.write(chunk),
46459
- * onFlowComplete: (event) => console.log('Done!'),
46460
- * })
46461
- * ```
45568
+ * Tolerant by design: unified frames are translated; legacy flow frames pass
45569
+ * through unchanged (so a legacy stream — e.g. during the rollout window —
45570
+ * still works). The overlapping `step_start` / `step_complete` read both
45571
+ * vocabularies' field names.
46462
45572
  */
46463
- declare function processStream(response: Response, callbacks?: StreamCallbacks): Promise<FlowSummary>;
45573
+ declare function createFlowEventTranslator(): (event: unknown) => LegacyEvent[];
46464
45574
  /**
46465
- * Create an async iterator over SSE events
46466
- *
46467
- * @param response - Fetch Response object with streaming body
46468
- * @yields Parsed SSE events
46469
- *
46470
- * @example
46471
- * ```typescript
46472
- * const response = await client.dispatch(config)
46473
- * for await (const event of streamEvents(response)) {
46474
- * console.log(event.type, event)
46475
- * }
46476
- * ```
45575
+ * Create a stateful translator from the unified vocabulary to the legacy
45576
+ * `agent_*` event shapes dispatched by `processAgentStream` in `endpoints.ts`.
45577
+ * Returns 0+ legacy events per unified event. Construct one per stream.
46477
45578
  */
46478
- declare function streamEvents(response: Response): AsyncGenerator<StreamEvent>;
45579
+ declare function createAgentEventTranslator(): (event: unknown) => LegacyEvent[];
46479
45580
 
46480
45581
  /**
46481
45582
  * BatchBuilder - Fluent builder for batch operations
@@ -47853,4 +46954,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
47853
46954
  declare function getDefaultPlanPath(taskName: string): string;
47854
46955
  declare function sanitizeTaskSlug(taskName: string): string;
47855
46956
 
47856
- export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullFpo, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };
46957
+ export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AssetReferenceContentPart, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillScanFinding as RuntypeSkillScanFinding, type SkillScanResult as RuntypeSkillScanResult, type SkillScanVerdict as RuntypeSkillScanVerdict, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionEnvironment, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, UNIFIED_EVENTS_QUERY, type UnifiedStreamEvent, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullFpo, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook, withUnifiedEvents };