@runtypelabs/sdk 4.6.0 → 4.7.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
@@ -5049,6 +5049,506 @@ interface paths {
5049
5049
  patch?: never;
5050
5050
  trace?: never;
5051
5051
  };
5052
+ "/v1/client/chat": {
5053
+ parameters: {
5054
+ query?: never;
5055
+ header?: never;
5056
+ path?: never;
5057
+ cookie?: never;
5058
+ };
5059
+ get?: never;
5060
+ put?: never;
5061
+ /**
5062
+ * Send a client chat message
5063
+ * @description Send a message for a browser client-token chat session. The request streams flow/agent events over Server-Sent Events. `turnId` and `submitMode` are optional and let newer Persona clients suppress stale interrupted responses; older clients can omit both fields.
5064
+ */
5065
+ post: {
5066
+ parameters: {
5067
+ query?: never;
5068
+ header?: never;
5069
+ path?: never;
5070
+ cookie?: never;
5071
+ };
5072
+ requestBody: {
5073
+ content: {
5074
+ "application/json": {
5075
+ assistantMessageId?: string;
5076
+ clientTools?: {
5077
+ description: string;
5078
+ name: string;
5079
+ /** @enum {string} */
5080
+ origin?: "webmcp" | "sdk";
5081
+ pageOrigin?: string;
5082
+ parametersSchema: {
5083
+ /** @enum {string} */
5084
+ type: "object";
5085
+ } & {
5086
+ [key: string]: unknown;
5087
+ };
5088
+ }[];
5089
+ clientToolsFingerprint?: string;
5090
+ inputs?: {
5091
+ [key: string]: unknown;
5092
+ };
5093
+ messages: {
5094
+ content: string | ({
5095
+ text: string;
5096
+ /** @enum {string} */
5097
+ type: "text";
5098
+ } | {
5099
+ image: string;
5100
+ mimeType?: string;
5101
+ /** @enum {string} */
5102
+ type: "image";
5103
+ } | {
5104
+ data: string;
5105
+ filename: string;
5106
+ mimeType: string;
5107
+ /** @enum {string} */
5108
+ type: "file";
5109
+ } | {
5110
+ providerOptions?: {
5111
+ [key: string]: unknown;
5112
+ };
5113
+ text: string;
5114
+ /** @enum {string} */
5115
+ type: "reasoning";
5116
+ })[];
5117
+ id?: string;
5118
+ /** @enum {string} */
5119
+ role: "user" | "assistant" | "system";
5120
+ }[];
5121
+ metadata?: {
5122
+ [key: string]: unknown;
5123
+ };
5124
+ sessionId: string;
5125
+ /** @enum {string} */
5126
+ submitMode?: "normal" | "interrupt";
5127
+ turnId?: string;
5128
+ };
5129
+ };
5130
+ };
5131
+ responses: {
5132
+ /** @description SSE stream of chat execution events */
5133
+ 200: {
5134
+ headers: {
5135
+ [name: string]: unknown;
5136
+ };
5137
+ content: {
5138
+ "text/event-stream": unknown;
5139
+ };
5140
+ };
5141
+ /** @description Validation error */
5142
+ 400: {
5143
+ headers: {
5144
+ [name: string]: unknown;
5145
+ };
5146
+ content: {
5147
+ "application/json": components["schemas"]["Error"];
5148
+ };
5149
+ };
5150
+ /** @description Session not found or expired */
5151
+ 401: {
5152
+ headers: {
5153
+ [name: string]: unknown;
5154
+ };
5155
+ content: {
5156
+ "application/json": components["schemas"]["Error"];
5157
+ };
5158
+ };
5159
+ /** @description Client token inactive or origin not allowed */
5160
+ 403: {
5161
+ headers: {
5162
+ [name: string]: unknown;
5163
+ };
5164
+ content: {
5165
+ "application/json": components["schemas"]["Error"];
5166
+ };
5167
+ };
5168
+ /** @description Referenced flow or agent not found */
5169
+ 404: {
5170
+ headers: {
5171
+ [name: string]: unknown;
5172
+ };
5173
+ content: {
5174
+ "application/json": components["schemas"]["Error"];
5175
+ };
5176
+ };
5177
+ /** @description Conflict. Either the client tools registry fingerprint was not found (`client_tools_resend_required`; resend full clientTools[]. The response may include `clientToolsFingerprint` for retry correlation), or this turn was superseded by a newer interrupting turn before it could start (`turn_superseded`). */
5178
+ 409: {
5179
+ headers: {
5180
+ [name: string]: unknown;
5181
+ };
5182
+ content: {
5183
+ "application/json": components["schemas"]["Error"];
5184
+ };
5185
+ };
5186
+ /** @description Daily execution limit exceeded */
5187
+ 429: {
5188
+ headers: {
5189
+ [name: string]: unknown;
5190
+ };
5191
+ content: {
5192
+ "application/json": components["schemas"]["Error"];
5193
+ };
5194
+ };
5195
+ /** @description Internal server error */
5196
+ 500: {
5197
+ headers: {
5198
+ [name: string]: unknown;
5199
+ };
5200
+ content: {
5201
+ "application/json": components["schemas"]["Error"];
5202
+ };
5203
+ };
5204
+ };
5205
+ };
5206
+ delete?: never;
5207
+ options?: never;
5208
+ head?: never;
5209
+ patch?: never;
5210
+ trace?: never;
5211
+ };
5212
+ "/v1/client/feedback": {
5213
+ parameters: {
5214
+ query?: never;
5215
+ header?: never;
5216
+ path?: never;
5217
+ cookie?: never;
5218
+ };
5219
+ get?: never;
5220
+ put?: never;
5221
+ /**
5222
+ * Submit feedback on a message
5223
+ * @description Record message-level (`upvote` / `downvote` / `copy`, requires `messageId`) or conversation-level (`csat` 1-5, `nps` 0-10, requires `rating`) feedback for a client-token session. Idempotent per (session, type, message): a matching prior submission is updated. Expired-but-active sessions are accepted so post-conversation surveys still land.
5224
+ */
5225
+ post: {
5226
+ parameters: {
5227
+ query?: never;
5228
+ header?: never;
5229
+ path?: never;
5230
+ cookie?: never;
5231
+ };
5232
+ requestBody: {
5233
+ content: {
5234
+ "application/json": {
5235
+ comment?: string;
5236
+ messageId?: string;
5237
+ metadata?: {
5238
+ [key: string]: unknown;
5239
+ };
5240
+ rating?: number;
5241
+ sessionId: string;
5242
+ /** @enum {string} */
5243
+ type: "upvote" | "downvote" | "copy" | "csat" | "nps";
5244
+ };
5245
+ };
5246
+ };
5247
+ responses: {
5248
+ /** @description Existing feedback updated */
5249
+ 200: {
5250
+ headers: {
5251
+ [name: string]: unknown;
5252
+ };
5253
+ content: {
5254
+ "application/json": {
5255
+ feedbackId: string;
5256
+ message?: string;
5257
+ /** @enum {boolean} */
5258
+ success: true;
5259
+ };
5260
+ };
5261
+ };
5262
+ /** @description Feedback recorded */
5263
+ 201: {
5264
+ headers: {
5265
+ [name: string]: unknown;
5266
+ };
5267
+ content: {
5268
+ "application/json": {
5269
+ feedbackId: string;
5270
+ message?: string;
5271
+ /** @enum {boolean} */
5272
+ success: true;
5273
+ };
5274
+ };
5275
+ };
5276
+ /** @description Validation error or invalid session ID format */
5277
+ 400: {
5278
+ headers: {
5279
+ [name: string]: unknown;
5280
+ };
5281
+ content: {
5282
+ "application/json": components["schemas"]["Error"];
5283
+ };
5284
+ };
5285
+ /** @description Session deactivated, client token inactive, or origin mismatch */
5286
+ 403: {
5287
+ headers: {
5288
+ [name: string]: unknown;
5289
+ };
5290
+ content: {
5291
+ "application/json": components["schemas"]["Error"];
5292
+ };
5293
+ };
5294
+ /** @description Session not found */
5295
+ 404: {
5296
+ headers: {
5297
+ [name: string]: unknown;
5298
+ };
5299
+ content: {
5300
+ "application/json": components["schemas"]["Error"];
5301
+ };
5302
+ };
5303
+ /** @description Internal server error */
5304
+ 500: {
5305
+ headers: {
5306
+ [name: string]: unknown;
5307
+ };
5308
+ content: {
5309
+ "application/json": components["schemas"]["Error"];
5310
+ };
5311
+ };
5312
+ };
5313
+ };
5314
+ delete?: never;
5315
+ options?: never;
5316
+ head?: never;
5317
+ patch?: never;
5318
+ trace?: never;
5319
+ };
5320
+ "/v1/client/init": {
5321
+ parameters: {
5322
+ query?: never;
5323
+ header?: never;
5324
+ path?: never;
5325
+ cookie?: never;
5326
+ };
5327
+ get?: never;
5328
+ put?: never;
5329
+ /**
5330
+ * Initialize a client session
5331
+ * @description Exchange a client token for a browser chat session. Validates the token + request `Origin`, resolves the target flow or agent, and returns the session id plus widget display config. Pass an existing `sessionId` to reuse a prior conversation record.
5332
+ */
5333
+ post: {
5334
+ parameters: {
5335
+ query?: never;
5336
+ header?: never;
5337
+ path?: never;
5338
+ cookie?: never;
5339
+ };
5340
+ requestBody: {
5341
+ content: {
5342
+ "application/json": {
5343
+ flowId?: string;
5344
+ sessionId?: string;
5345
+ token: string;
5346
+ };
5347
+ };
5348
+ };
5349
+ responses: {
5350
+ /** @description Session created */
5351
+ 200: {
5352
+ headers: {
5353
+ [name: string]: unknown;
5354
+ };
5355
+ content: {
5356
+ "application/json": {
5357
+ config: {
5358
+ placeholder?: string;
5359
+ theme?: unknown;
5360
+ welcomeMessage?: string | null;
5361
+ };
5362
+ /** @description ISO-8601 session idle-expiry timestamp. */
5363
+ expiresAt: string;
5364
+ flow: {
5365
+ description?: string | null;
5366
+ /** @description Resolved flow or agent ID for this session. */
5367
+ id: string;
5368
+ name?: string | null;
5369
+ };
5370
+ /** @description The created (or resumed) client session ID. */
5371
+ sessionId: string;
5372
+ };
5373
+ };
5374
+ };
5375
+ /** @description Validation error / flow required or not allowed */
5376
+ 400: {
5377
+ headers: {
5378
+ [name: string]: unknown;
5379
+ };
5380
+ content: {
5381
+ "application/json": components["schemas"]["Error"];
5382
+ };
5383
+ };
5384
+ /** @description Invalid client token */
5385
+ 401: {
5386
+ headers: {
5387
+ [name: string]: unknown;
5388
+ };
5389
+ content: {
5390
+ "application/json": components["schemas"]["Error"];
5391
+ };
5392
+ };
5393
+ /** @description Client token inactive or origin not allowed */
5394
+ 403: {
5395
+ headers: {
5396
+ [name: string]: unknown;
5397
+ };
5398
+ content: {
5399
+ "application/json": components["schemas"]["Error"];
5400
+ };
5401
+ };
5402
+ /** @description Referenced flow or agent not found */
5403
+ 404: {
5404
+ headers: {
5405
+ [name: string]: unknown;
5406
+ };
5407
+ content: {
5408
+ "application/json": components["schemas"]["Error"];
5409
+ };
5410
+ };
5411
+ /** @description Internal server error */
5412
+ 500: {
5413
+ headers: {
5414
+ [name: string]: unknown;
5415
+ };
5416
+ content: {
5417
+ "application/json": components["schemas"]["Error"];
5418
+ };
5419
+ };
5420
+ };
5421
+ };
5422
+ delete?: never;
5423
+ options?: never;
5424
+ head?: never;
5425
+ patch?: never;
5426
+ trace?: never;
5427
+ };
5428
+ "/v1/client/resume": {
5429
+ parameters: {
5430
+ query?: never;
5431
+ header?: never;
5432
+ path?: never;
5433
+ cookie?: never;
5434
+ };
5435
+ get?: never;
5436
+ put?: never;
5437
+ /**
5438
+ * Resume a paused client execution
5439
+ * @description Session-authenticated sibling of `POST /v1/dispatch/resume` for browser client-token sessions. Resumes a paused local-tool (WebMCP / clientTools) execution by supplying `toolOutputs` keyed by the per-call `toolCallId` (or tool name, legacy). Streams the continued flow/agent events over Server-Sent Events. Does not count against execution limits.
5440
+ */
5441
+ post: {
5442
+ parameters: {
5443
+ query?: never;
5444
+ header?: never;
5445
+ path?: never;
5446
+ cookie?: never;
5447
+ };
5448
+ requestBody: {
5449
+ content: {
5450
+ "application/json": {
5451
+ executionId: string;
5452
+ messages?: {
5453
+ content: string | ({
5454
+ text: string;
5455
+ /** @enum {string} */
5456
+ type: "text";
5457
+ } | {
5458
+ image: string;
5459
+ mimeType?: string;
5460
+ /** @enum {string} */
5461
+ type: "image";
5462
+ } | {
5463
+ data: string;
5464
+ filename: string;
5465
+ mimeType: string;
5466
+ /** @enum {string} */
5467
+ type: "file";
5468
+ } | {
5469
+ providerOptions?: {
5470
+ [key: string]: unknown;
5471
+ };
5472
+ text: string;
5473
+ /** @enum {string} */
5474
+ type: "reasoning";
5475
+ })[];
5476
+ /** @enum {string} */
5477
+ role: "system" | "user" | "assistant";
5478
+ }[];
5479
+ sessionId: string;
5480
+ /** @default true */
5481
+ streamResponse?: boolean;
5482
+ /** @default {} */
5483
+ toolOutputs?: {
5484
+ [key: string]: unknown;
5485
+ };
5486
+ };
5487
+ };
5488
+ };
5489
+ responses: {
5490
+ /** @description SSE stream of the resumed execution events */
5491
+ 200: {
5492
+ headers: {
5493
+ [name: string]: unknown;
5494
+ };
5495
+ content: {
5496
+ "text/event-stream": unknown;
5497
+ };
5498
+ };
5499
+ /** @description Validation error */
5500
+ 400: {
5501
+ headers: {
5502
+ [name: string]: unknown;
5503
+ };
5504
+ content: {
5505
+ "application/json": components["schemas"]["Error"];
5506
+ };
5507
+ };
5508
+ /** @description Session not found or expired */
5509
+ 401: {
5510
+ headers: {
5511
+ [name: string]: unknown;
5512
+ };
5513
+ content: {
5514
+ "application/json": components["schemas"]["Error"];
5515
+ };
5516
+ };
5517
+ /** @description Client token inactive, origin mismatch, or execution belongs to another user */
5518
+ 403: {
5519
+ headers: {
5520
+ [name: string]: unknown;
5521
+ };
5522
+ content: {
5523
+ "application/json": components["schemas"]["Error"];
5524
+ };
5525
+ };
5526
+ /** @description No paused execution found for the executionId */
5527
+ 404: {
5528
+ headers: {
5529
+ [name: string]: unknown;
5530
+ };
5531
+ content: {
5532
+ "application/json": components["schemas"]["Error"];
5533
+ };
5534
+ };
5535
+ /** @description Internal server error */
5536
+ 500: {
5537
+ headers: {
5538
+ [name: string]: unknown;
5539
+ };
5540
+ content: {
5541
+ "application/json": components["schemas"]["Error"];
5542
+ };
5543
+ };
5544
+ };
5545
+ };
5546
+ delete?: never;
5547
+ options?: never;
5548
+ head?: never;
5549
+ patch?: never;
5550
+ trace?: never;
5551
+ };
5052
5552
  "/v1/context-templates": {
5053
5553
  parameters: {
5054
5554
  query?: never;
@@ -13736,6 +14236,10 @@ interface paths {
13736
14236
  surface_id?: string;
13737
14237
  /** @description Filter by status (open, closed, archived, all) */
13738
14238
  status?: string;
14239
+ /** @description Filter by agent mode (auto, human, all) */
14240
+ agentMode?: string;
14241
+ /** @description Filter by agent mode (deprecated, use agentMode) */
14242
+ agent_mode?: string;
13739
14243
  /** @description Search by subject, participant name, or email */
13740
14244
  search?: string;
13741
14245
  };
@@ -13753,6 +14257,7 @@ interface paths {
13753
14257
  content: {
13754
14258
  "application/json": {
13755
14259
  data: ({
14260
+ agentMode: string;
13756
14261
  createdAt: string;
13757
14262
  externalParticipantId: string | null;
13758
14263
  externalThreadId: string | null;
@@ -13764,6 +14269,10 @@ interface paths {
13764
14269
  status: string;
13765
14270
  subject: string | null;
13766
14271
  surfaceId: string;
14272
+ takeoverActorId: string | null;
14273
+ takeoverActorType: string | null;
14274
+ takeoverAt: string | null;
14275
+ takeoverReason: string | null;
13767
14276
  timezone: string | null;
13768
14277
  updatedAt: string;
13769
14278
  } & {
@@ -13857,6 +14366,7 @@ interface paths {
13857
14366
  };
13858
14367
  content: {
13859
14368
  "application/json": {
14369
+ agentMode: string;
13860
14370
  context?: {
13861
14371
  [key: string]: unknown;
13862
14372
  };
@@ -13879,6 +14389,10 @@ interface paths {
13879
14389
  type: string | null;
13880
14390
  };
13881
14391
  surfaceId: string;
14392
+ takeoverActorId: string | null;
14393
+ takeoverActorType: string | null;
14394
+ takeoverAt: string | null;
14395
+ takeoverReason: string | null;
13882
14396
  timezone: string | null;
13883
14397
  updatedAt: string;
13884
14398
  } & {
@@ -13959,6 +14473,7 @@ interface paths {
13959
14473
  };
13960
14474
  content: {
13961
14475
  "application/json": {
14476
+ agentMode: string;
13962
14477
  context?: {
13963
14478
  [key: string]: unknown;
13964
14479
  };
@@ -13981,6 +14496,10 @@ interface paths {
13981
14496
  type: string | null;
13982
14497
  };
13983
14498
  surfaceId: string;
14499
+ takeoverActorId: string | null;
14500
+ takeoverActorType: string | null;
14501
+ takeoverAt: string | null;
14502
+ takeoverReason: string | null;
13984
14503
  timezone: string | null;
13985
14504
  updatedAt: string;
13986
14505
  } & {
@@ -14070,6 +14589,7 @@ interface paths {
14070
14589
  };
14071
14590
  content: {
14072
14591
  "application/json": {
14592
+ agentMode: string;
14073
14593
  context?: {
14074
14594
  [key: string]: unknown;
14075
14595
  };
@@ -14092,6 +14612,10 @@ interface paths {
14092
14612
  type: string | null;
14093
14613
  };
14094
14614
  surfaceId: string;
14615
+ takeoverActorId: string | null;
14616
+ takeoverActorType: string | null;
14617
+ takeoverAt: string | null;
14618
+ takeoverReason: string | null;
14095
14619
  timezone: string | null;
14096
14620
  updatedAt: string;
14097
14621
  } & {
@@ -14135,64 +14659,525 @@ interface paths {
14135
14659
  "application/json": components["schemas"]["Error"];
14136
14660
  };
14137
14661
  };
14138
- /** @description Internal server error */
14139
- 500: {
14140
- headers: {
14141
- [name: string]: unknown;
14142
- };
14143
- content: {
14144
- "application/json": components["schemas"]["Error"];
14145
- };
14146
- };
14147
- };
14148
- };
14149
- post?: never;
14150
- /**
14151
- * Delete conversation
14152
- * @description Delete a messaging conversation by ID.
14153
- */
14154
- delete: {
14155
- parameters: {
14156
- query?: never;
14157
- header?: never;
14158
- path: {
14159
- id: string;
14160
- };
14161
- cookie?: never;
14162
- };
14163
- requestBody?: never;
14164
- responses: {
14165
- /** @description Conversation deleted */
14166
- 200: {
14167
- headers: {
14168
- [name: string]: unknown;
14169
- };
14170
- content: {
14171
- "application/json": {
14172
- success: boolean;
14173
- };
14174
- };
14175
- };
14176
- /** @description Invalid conversation ID format */
14177
- 400: {
14178
- headers: {
14179
- [name: string]: unknown;
14180
- };
14181
- content: {
14182
- "application/json": components["schemas"]["Error"];
14183
- };
14184
- };
14185
- /** @description Unauthorized */
14186
- 401: {
14187
- headers: {
14188
- [name: string]: unknown;
14189
- };
14190
- content: {
14191
- "application/json": components["schemas"]["Error"];
14192
- };
14193
- };
14194
- /** @description Insufficient permissions */
14195
- 403: {
14662
+ /** @description Internal server error */
14663
+ 500: {
14664
+ headers: {
14665
+ [name: string]: unknown;
14666
+ };
14667
+ content: {
14668
+ "application/json": components["schemas"]["Error"];
14669
+ };
14670
+ };
14671
+ };
14672
+ };
14673
+ post?: never;
14674
+ /**
14675
+ * Delete conversation
14676
+ * @description Delete a messaging conversation by ID.
14677
+ */
14678
+ delete: {
14679
+ parameters: {
14680
+ query?: never;
14681
+ header?: never;
14682
+ path: {
14683
+ id: string;
14684
+ };
14685
+ cookie?: never;
14686
+ };
14687
+ requestBody?: never;
14688
+ responses: {
14689
+ /** @description Conversation deleted */
14690
+ 200: {
14691
+ headers: {
14692
+ [name: string]: unknown;
14693
+ };
14694
+ content: {
14695
+ "application/json": {
14696
+ success: boolean;
14697
+ };
14698
+ };
14699
+ };
14700
+ /** @description Invalid conversation ID format */
14701
+ 400: {
14702
+ headers: {
14703
+ [name: string]: unknown;
14704
+ };
14705
+ content: {
14706
+ "application/json": components["schemas"]["Error"];
14707
+ };
14708
+ };
14709
+ /** @description Unauthorized */
14710
+ 401: {
14711
+ headers: {
14712
+ [name: string]: unknown;
14713
+ };
14714
+ content: {
14715
+ "application/json": components["schemas"]["Error"];
14716
+ };
14717
+ };
14718
+ /** @description Insufficient permissions */
14719
+ 403: {
14720
+ headers: {
14721
+ [name: string]: unknown;
14722
+ };
14723
+ content: {
14724
+ "application/json": components["schemas"]["Error"];
14725
+ };
14726
+ };
14727
+ /** @description Conversation not found */
14728
+ 404: {
14729
+ headers: {
14730
+ [name: string]: unknown;
14731
+ };
14732
+ content: {
14733
+ "application/json": components["schemas"]["Error"];
14734
+ };
14735
+ };
14736
+ /** @description Internal server error */
14737
+ 500: {
14738
+ headers: {
14739
+ [name: string]: unknown;
14740
+ };
14741
+ content: {
14742
+ "application/json": components["schemas"]["Error"];
14743
+ };
14744
+ };
14745
+ };
14746
+ };
14747
+ options?: never;
14748
+ head?: never;
14749
+ patch?: never;
14750
+ trace?: never;
14751
+ };
14752
+ "/v1/messaging/conversations/{id}/messages": {
14753
+ parameters: {
14754
+ query?: never;
14755
+ header?: never;
14756
+ path?: never;
14757
+ cookie?: never;
14758
+ };
14759
+ /**
14760
+ * List messages
14761
+ * @description Get messages for a conversation.
14762
+ */
14763
+ get: {
14764
+ parameters: {
14765
+ query?: {
14766
+ /** @description Max results (default 100, max 100) */
14767
+ limit?: string;
14768
+ /** @description Sort order: asc or desc (default asc) */
14769
+ order?: string;
14770
+ };
14771
+ header?: never;
14772
+ path: {
14773
+ id: string;
14774
+ };
14775
+ cookie?: never;
14776
+ };
14777
+ requestBody?: never;
14778
+ responses: {
14779
+ /** @description List of messages */
14780
+ 200: {
14781
+ headers: {
14782
+ [name: string]: unknown;
14783
+ };
14784
+ content: {
14785
+ "application/json": {
14786
+ data: ({
14787
+ content: string;
14788
+ conversationId: string;
14789
+ createdAt: string;
14790
+ direction: string | null;
14791
+ externalMessageId: string | null;
14792
+ flowStepResultId: string | null;
14793
+ id: string;
14794
+ metadata: {
14795
+ [key: string]: unknown;
14796
+ };
14797
+ role: string;
14798
+ } & {
14799
+ [key: string]: unknown;
14800
+ })[];
14801
+ totalCount: number;
14802
+ };
14803
+ };
14804
+ };
14805
+ /** @description Invalid conversation ID format */
14806
+ 400: {
14807
+ headers: {
14808
+ [name: string]: unknown;
14809
+ };
14810
+ content: {
14811
+ "application/json": components["schemas"]["Error"];
14812
+ };
14813
+ };
14814
+ /** @description Unauthorized */
14815
+ 401: {
14816
+ headers: {
14817
+ [name: string]: unknown;
14818
+ };
14819
+ content: {
14820
+ "application/json": components["schemas"]["Error"];
14821
+ };
14822
+ };
14823
+ /** @description Conversation not found */
14824
+ 404: {
14825
+ headers: {
14826
+ [name: string]: unknown;
14827
+ };
14828
+ content: {
14829
+ "application/json": components["schemas"]["Error"];
14830
+ };
14831
+ };
14832
+ /** @description Internal server error */
14833
+ 500: {
14834
+ headers: {
14835
+ [name: string]: unknown;
14836
+ };
14837
+ content: {
14838
+ "application/json": components["schemas"]["Error"];
14839
+ };
14840
+ };
14841
+ };
14842
+ };
14843
+ put?: never;
14844
+ /**
14845
+ * Create message
14846
+ * @description Add a message to a conversation.
14847
+ */
14848
+ post: {
14849
+ parameters: {
14850
+ query?: never;
14851
+ header?: never;
14852
+ path: {
14853
+ id: string;
14854
+ };
14855
+ cookie?: never;
14856
+ };
14857
+ requestBody?: {
14858
+ content: {
14859
+ "application/json": {
14860
+ content: string;
14861
+ /** @enum {string} */
14862
+ direction?: "inbound" | "outbound";
14863
+ externalMessageId?: string;
14864
+ flowStepResultId?: string;
14865
+ metadata?: {
14866
+ attachments?: {
14867
+ contentType: string;
14868
+ name: string;
14869
+ size: number;
14870
+ url?: string;
14871
+ }[];
14872
+ deliveryError?: string;
14873
+ /** @enum {string} */
14874
+ deliveryStatus?: "pending" | "sent" | "delivered" | "failed" | "bounced";
14875
+ externalTimestamp?: string;
14876
+ headers?: {
14877
+ [key: string]: string;
14878
+ };
14879
+ };
14880
+ /** @enum {string} */
14881
+ role: "user" | "assistant" | "system";
14882
+ };
14883
+ };
14884
+ };
14885
+ responses: {
14886
+ /** @description Created message */
14887
+ 201: {
14888
+ headers: {
14889
+ [name: string]: unknown;
14890
+ };
14891
+ content: {
14892
+ "application/json": {
14893
+ content: string;
14894
+ conversationId: string;
14895
+ createdAt: string;
14896
+ direction: string | null;
14897
+ externalMessageId: string | null;
14898
+ flowStepResultId: string | null;
14899
+ id: string;
14900
+ metadata: {
14901
+ [key: string]: unknown;
14902
+ };
14903
+ role: string;
14904
+ } & {
14905
+ [key: string]: unknown;
14906
+ };
14907
+ };
14908
+ };
14909
+ /** @description Invalid conversation ID format */
14910
+ 400: {
14911
+ headers: {
14912
+ [name: string]: unknown;
14913
+ };
14914
+ content: {
14915
+ "application/json": components["schemas"]["Error"];
14916
+ };
14917
+ };
14918
+ /** @description Unauthorized */
14919
+ 401: {
14920
+ headers: {
14921
+ [name: string]: unknown;
14922
+ };
14923
+ content: {
14924
+ "application/json": components["schemas"]["Error"];
14925
+ };
14926
+ };
14927
+ /** @description Insufficient permissions */
14928
+ 403: {
14929
+ headers: {
14930
+ [name: string]: unknown;
14931
+ };
14932
+ content: {
14933
+ "application/json": components["schemas"]["Error"];
14934
+ };
14935
+ };
14936
+ /** @description Conversation not found */
14937
+ 404: {
14938
+ headers: {
14939
+ [name: string]: unknown;
14940
+ };
14941
+ content: {
14942
+ "application/json": components["schemas"]["Error"];
14943
+ };
14944
+ };
14945
+ /** @description Internal server error */
14946
+ 500: {
14947
+ headers: {
14948
+ [name: string]: unknown;
14949
+ };
14950
+ content: {
14951
+ "application/json": components["schemas"]["Error"];
14952
+ };
14953
+ };
14954
+ };
14955
+ };
14956
+ delete?: never;
14957
+ options?: never;
14958
+ head?: never;
14959
+ patch?: never;
14960
+ trace?: never;
14961
+ };
14962
+ "/v1/messaging/conversations/{id}/resume": {
14963
+ parameters: {
14964
+ query?: never;
14965
+ header?: never;
14966
+ path?: never;
14967
+ cookie?: never;
14968
+ };
14969
+ get?: never;
14970
+ put?: never;
14971
+ /**
14972
+ * Resume agent handling
14973
+ * @description Switch a messaging conversation from human-operator mode back to automatic agent handling.
14974
+ */
14975
+ post: {
14976
+ parameters: {
14977
+ query?: never;
14978
+ header?: never;
14979
+ path: {
14980
+ id: string;
14981
+ };
14982
+ cookie?: never;
14983
+ };
14984
+ requestBody?: never;
14985
+ responses: {
14986
+ /** @description Conversation resumed to auto mode */
14987
+ 200: {
14988
+ headers: {
14989
+ [name: string]: unknown;
14990
+ };
14991
+ content: {
14992
+ "application/json": {
14993
+ agentMode: string;
14994
+ id: string;
14995
+ takeoverActorId: string | null;
14996
+ takeoverActorType: string | null;
14997
+ takeoverAt: string | null;
14998
+ takeoverReason: string | null;
14999
+ updatedAt: string;
15000
+ } & {
15001
+ [key: string]: unknown;
15002
+ };
15003
+ };
15004
+ };
15005
+ /** @description Invalid request */
15006
+ 400: {
15007
+ headers: {
15008
+ [name: string]: unknown;
15009
+ };
15010
+ content: {
15011
+ "application/json": components["schemas"]["Error"];
15012
+ };
15013
+ };
15014
+ /** @description Unauthorized */
15015
+ 401: {
15016
+ headers: {
15017
+ [name: string]: unknown;
15018
+ };
15019
+ content: {
15020
+ "application/json": components["schemas"]["Error"];
15021
+ };
15022
+ };
15023
+ /** @description Insufficient permissions */
15024
+ 403: {
15025
+ headers: {
15026
+ [name: string]: unknown;
15027
+ };
15028
+ content: {
15029
+ "application/json": components["schemas"]["Error"];
15030
+ };
15031
+ };
15032
+ /** @description Conversation not found */
15033
+ 404: {
15034
+ headers: {
15035
+ [name: string]: unknown;
15036
+ };
15037
+ content: {
15038
+ "application/json": components["schemas"]["Error"];
15039
+ };
15040
+ };
15041
+ /** @description Conversation already in auto mode */
15042
+ 409: {
15043
+ headers: {
15044
+ [name: string]: unknown;
15045
+ };
15046
+ content: {
15047
+ "application/json": components["schemas"]["Error"];
15048
+ };
15049
+ };
15050
+ /** @description Internal server error */
15051
+ 500: {
15052
+ headers: {
15053
+ [name: string]: unknown;
15054
+ };
15055
+ content: {
15056
+ "application/json": components["schemas"]["Error"];
15057
+ };
15058
+ };
15059
+ };
15060
+ };
15061
+ delete?: never;
15062
+ options?: never;
15063
+ head?: never;
15064
+ patch?: never;
15065
+ trace?: never;
15066
+ };
15067
+ "/v1/messaging/conversations/{id}/send": {
15068
+ parameters: {
15069
+ query?: never;
15070
+ header?: never;
15071
+ path?: never;
15072
+ cookie?: never;
15073
+ };
15074
+ get?: never;
15075
+ put?: never;
15076
+ /**
15077
+ * Send human-authored message
15078
+ * @description Send a human-authored outbound message through the conversation's messaging channel.
15079
+ */
15080
+ post: {
15081
+ parameters: {
15082
+ query?: never;
15083
+ header?: never;
15084
+ path: {
15085
+ id: string;
15086
+ };
15087
+ cookie?: never;
15088
+ };
15089
+ requestBody?: {
15090
+ content: {
15091
+ "application/json": {
15092
+ content: string;
15093
+ metadata?: {
15094
+ attachments?: {
15095
+ contentType: string;
15096
+ name: string;
15097
+ size: number;
15098
+ url?: string;
15099
+ }[];
15100
+ externalTimestamp?: string;
15101
+ headers?: {
15102
+ [key: string]: string;
15103
+ };
15104
+ };
15105
+ /** @default true */
15106
+ requireHumanMode?: boolean;
15107
+ };
15108
+ };
15109
+ };
15110
+ responses: {
15111
+ /** @description Message sent to channel */
15112
+ 201: {
15113
+ headers: {
15114
+ [name: string]: unknown;
15115
+ };
15116
+ content: {
15117
+ "application/json": {
15118
+ deliveryResult: {
15119
+ deliveryStatus: string;
15120
+ externalMessageId: string | null;
15121
+ } & {
15122
+ [key: string]: unknown;
15123
+ };
15124
+ message: {
15125
+ content: string;
15126
+ conversationId: string;
15127
+ createdAt: string;
15128
+ direction: string | null;
15129
+ externalMessageId: string | null;
15130
+ id?: string;
15131
+ metadata: {
15132
+ [key: string]: unknown;
15133
+ };
15134
+ role: string;
15135
+ } & {
15136
+ [key: string]: unknown;
15137
+ };
15138
+ } & {
15139
+ [key: string]: unknown;
15140
+ };
15141
+ };
15142
+ };
15143
+ /** @description Invalid request */
15144
+ 400: {
15145
+ headers: {
15146
+ [name: string]: unknown;
15147
+ };
15148
+ content: {
15149
+ "application/json": components["schemas"]["Error"];
15150
+ };
15151
+ };
15152
+ /** @description Unauthorized */
15153
+ 401: {
15154
+ headers: {
15155
+ [name: string]: unknown;
15156
+ };
15157
+ content: {
15158
+ "application/json": components["schemas"]["Error"];
15159
+ };
15160
+ };
15161
+ /** @description Insufficient permissions */
15162
+ 403: {
15163
+ headers: {
15164
+ [name: string]: unknown;
15165
+ };
15166
+ content: {
15167
+ "application/json": components["schemas"]["Error"];
15168
+ };
15169
+ };
15170
+ /** @description Conversation not found */
15171
+ 404: {
15172
+ headers: {
15173
+ [name: string]: unknown;
15174
+ };
15175
+ content: {
15176
+ "application/json": components["schemas"]["Error"];
15177
+ };
15178
+ };
15179
+ /** @description Conversation or surface cannot be addressed */
15180
+ 422: {
14196
15181
  headers: {
14197
15182
  [name: string]: unknown;
14198
15183
  };
@@ -14200,8 +15185,8 @@ interface paths {
14200
15185
  "application/json": components["schemas"]["Error"];
14201
15186
  };
14202
15187
  };
14203
- /** @description Conversation not found */
14204
- 404: {
15188
+ /** @description Internal server error */
15189
+ 500: {
14205
15190
  headers: {
14206
15191
  [name: string]: unknown;
14207
15192
  };
@@ -14209,8 +15194,8 @@ interface paths {
14209
15194
  "application/json": components["schemas"]["Error"];
14210
15195
  };
14211
15196
  };
14212
- /** @description Internal server error */
14213
- 500: {
15197
+ /** @description Channel delivery failed */
15198
+ 502: {
14214
15199
  headers: {
14215
15200
  [name: string]: unknown;
14216
15201
  };
@@ -14220,106 +15205,24 @@ interface paths {
14220
15205
  };
14221
15206
  };
14222
15207
  };
15208
+ delete?: never;
14223
15209
  options?: never;
14224
15210
  head?: never;
14225
15211
  patch?: never;
14226
15212
  trace?: never;
14227
15213
  };
14228
- "/v1/messaging/conversations/{id}/messages": {
15214
+ "/v1/messaging/conversations/{id}/takeover": {
14229
15215
  parameters: {
14230
15216
  query?: never;
14231
15217
  header?: never;
14232
15218
  path?: never;
14233
15219
  cookie?: never;
14234
15220
  };
14235
- /**
14236
- * List messages
14237
- * @description Get messages for a conversation.
14238
- */
14239
- get: {
14240
- parameters: {
14241
- query?: {
14242
- /** @description Max results (default 100, max 100) */
14243
- limit?: string;
14244
- /** @description Sort order: asc or desc (default asc) */
14245
- order?: string;
14246
- };
14247
- header?: never;
14248
- path: {
14249
- id: string;
14250
- };
14251
- cookie?: never;
14252
- };
14253
- requestBody?: never;
14254
- responses: {
14255
- /** @description List of messages */
14256
- 200: {
14257
- headers: {
14258
- [name: string]: unknown;
14259
- };
14260
- content: {
14261
- "application/json": {
14262
- data: ({
14263
- content: string;
14264
- conversationId: string;
14265
- createdAt: string;
14266
- direction: string | null;
14267
- externalMessageId: string | null;
14268
- flowStepResultId: string | null;
14269
- id: string;
14270
- metadata: {
14271
- [key: string]: unknown;
14272
- };
14273
- role: string;
14274
- } & {
14275
- [key: string]: unknown;
14276
- })[];
14277
- totalCount: number;
14278
- };
14279
- };
14280
- };
14281
- /** @description Invalid conversation ID format */
14282
- 400: {
14283
- headers: {
14284
- [name: string]: unknown;
14285
- };
14286
- content: {
14287
- "application/json": components["schemas"]["Error"];
14288
- };
14289
- };
14290
- /** @description Unauthorized */
14291
- 401: {
14292
- headers: {
14293
- [name: string]: unknown;
14294
- };
14295
- content: {
14296
- "application/json": components["schemas"]["Error"];
14297
- };
14298
- };
14299
- /** @description Conversation not found */
14300
- 404: {
14301
- headers: {
14302
- [name: string]: unknown;
14303
- };
14304
- content: {
14305
- "application/json": components["schemas"]["Error"];
14306
- };
14307
- };
14308
- /** @description Internal server error */
14309
- 500: {
14310
- headers: {
14311
- [name: string]: unknown;
14312
- };
14313
- content: {
14314
- "application/json": components["schemas"]["Error"];
14315
- };
14316
- };
14317
- };
14318
- };
15221
+ get?: never;
14319
15222
  put?: never;
14320
15223
  /**
14321
- * Create message
14322
- * @description Add a message to a conversation.
15224
+ * Take over conversation
15225
+ * @description Switch a messaging conversation into human-operator mode so inbound messages are persisted but agent replies are suppressed.
14323
15226
  */
14324
15227
  post: {
14325
15228
  parameters: {
@@ -14333,56 +15236,31 @@ interface paths {
14333
15236
  requestBody?: {
14334
15237
  content: {
14335
15238
  "application/json": {
14336
- content: string;
14337
- /** @enum {string} */
14338
- direction?: "inbound" | "outbound";
14339
- externalMessageId?: string;
14340
- flowStepResultId?: string;
14341
- metadata?: {
14342
- attachments?: {
14343
- contentType: string;
14344
- name: string;
14345
- size: number;
14346
- url?: string;
14347
- }[];
14348
- deliveryError?: string;
14349
- /** @enum {string} */
14350
- deliveryStatus?: "pending" | "sent" | "delivered" | "failed" | "bounced";
14351
- externalTimestamp?: string;
14352
- headers?: {
14353
- [key: string]: string;
14354
- };
14355
- };
14356
- /** @enum {string} */
14357
- role: "user" | "assistant" | "system";
15239
+ reason?: string;
14358
15240
  };
14359
15241
  };
14360
15242
  };
14361
15243
  responses: {
14362
- /** @description Created message */
14363
- 201: {
15244
+ /** @description Conversation switched to human mode */
15245
+ 200: {
14364
15246
  headers: {
14365
15247
  [name: string]: unknown;
14366
15248
  };
14367
15249
  content: {
14368
15250
  "application/json": {
14369
- content: string;
14370
- conversationId: string;
14371
- createdAt: string;
14372
- direction: string | null;
14373
- externalMessageId: string | null;
14374
- flowStepResultId: string | null;
15251
+ agentMode: string;
14375
15252
  id: string;
14376
- metadata: {
14377
- [key: string]: unknown;
14378
- };
14379
- role: string;
15253
+ takeoverActorId: string | null;
15254
+ takeoverActorType: string | null;
15255
+ takeoverAt: string | null;
15256
+ takeoverReason: string | null;
15257
+ updatedAt: string;
14380
15258
  } & {
14381
15259
  [key: string]: unknown;
14382
15260
  };
14383
15261
  };
14384
15262
  };
14385
- /** @description Invalid conversation ID format */
15263
+ /** @description Invalid request */
14386
15264
  400: {
14387
15265
  headers: {
14388
15266
  [name: string]: unknown;
@@ -14418,6 +15296,15 @@ interface paths {
14418
15296
  "application/json": components["schemas"]["Error"];
14419
15297
  };
14420
15298
  };
15299
+ /** @description Conversation already in human mode */
15300
+ 409: {
15301
+ headers: {
15302
+ [name: string]: unknown;
15303
+ };
15304
+ content: {
15305
+ "application/json": components["schemas"]["Error"];
15306
+ };
15307
+ };
14421
15308
  /** @description Internal server error */
14422
15309
  500: {
14423
15310
  headers: {
@@ -17740,7 +18627,9 @@ interface paths {
17740
18627
  */
17741
18628
  get: {
17742
18629
  parameters: {
17743
- query?: never;
18630
+ query?: {
18631
+ includeEditorContext?: string;
18632
+ };
17744
18633
  header?: never;
17745
18634
  path: {
17746
18635
  id: string;
@@ -17763,6 +18652,17 @@ interface paths {
17763
18652
  createdAt: string;
17764
18653
  dashboardUrl?: string;
17765
18654
  description: string | null;
18655
+ editorContext?: {
18656
+ agentConfigMap: {
18657
+ [key: string]: unknown;
18658
+ };
18659
+ flowStepsMap: {
18660
+ [key: string]: {
18661
+ name: string;
18662
+ type: string;
18663
+ }[];
18664
+ };
18665
+ };
17766
18666
  icon: string | null;
17767
18667
  id: string;
17768
18668
  name: string;
@@ -32327,6 +33227,8 @@ interface components {
32327
33227
  stepId?: string;
32328
33228
  stepName?: string;
32329
33229
  stepType?: string;
33230
+ /** @enum {string} */
33231
+ stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
32330
33232
  success?: boolean;
32331
33233
  tokensUsed?: number;
32332
33234
  toolContext?: {
@@ -32719,6 +33621,8 @@ interface components {
32719
33621
  stepId?: string;
32720
33622
  stepName?: string;
32721
33623
  stepType?: string;
33624
+ /** @enum {string} */
33625
+ stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
32722
33626
  success?: boolean;
32723
33627
  tokensUsed?: number;
32724
33628
  toolContext?: {
@@ -33061,8 +33965,12 @@ interface components {
33061
33965
  * alias below is the REFERENCE PATTERN the entity-codegen workflow clones.
33062
33966
  */
33063
33967
 
33968
+ /** Combined dispatch stream: agent + flow + artifact events (50 literals). */
33969
+ type DispatchEvent = components['schemas']['DispatchSSEEvent'];
33064
33970
  /** Flow-execution event union (26 literals). */
33065
33971
  type FlowStreamEvent = components['schemas']['FlowSSEEvent'];
33972
+ /** Agent-loop event union (19 literals). */
33973
+ type AgentStreamEvent = components['schemas']['AgentSSEEvent'];
33066
33974
  /**
33067
33975
  * Narrow a stream union to one event by its `type` discriminant.
33068
33976
  * @example type StepStart = StreamEventOf<FlowStreamEvent, 'step_start'>
@@ -33218,7 +34126,8 @@ interface PromptStepConfig$1 {
33218
34126
  content: string;
33219
34127
  }>;
33220
34128
  outputVariable?: string;
33221
- responseFormat?: 'text' | 'json';
34129
+ mode?: string;
34130
+ responseFormat?: 'default' | 'json' | 'markdown' | 'html' | 'xml' | 'text';
33222
34131
  temperature?: number;
33223
34132
  topP?: number;
33224
34133
  topK?: number;
@@ -33237,6 +34146,10 @@ interface PromptStepConfig$1 {
33237
34146
  * ```
33238
34147
  */
33239
34148
  reasoning?: boolean | ReasoningConfig;
34149
+ artifacts?: {
34150
+ enabled: true;
34151
+ types: Array<'markdown' | 'component'>;
34152
+ };
33240
34153
  streamOutput?: boolean;
33241
34154
  /** Tools configuration - supports saved tools (toolIds) and inline runtime tools */
33242
34155
  tools?: ToolsConfig;
@@ -33252,22 +34165,25 @@ interface FetchUrlStepConfig$1 {
33252
34165
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
33253
34166
  headers?: Record<string, string>;
33254
34167
  body?: string;
34168
+ auth?: Record<string, unknown>;
33255
34169
  responseType?: 'json' | 'text' | 'xml';
33256
34170
  markdownIfAvailable?: boolean;
33257
34171
  outputVariable?: string;
33258
- fetchMethod?: 'http' | 'firecrawl';
34172
+ /** `http` is accepted as a legacy alias and normalized to `standard`. */
34173
+ fetchMethod?: 'standard' | 'http' | 'firecrawl';
33259
34174
  firecrawl?: {
33260
34175
  formats?: string[];
33261
34176
  [key: string]: any;
33262
34177
  };
33263
34178
  /** Error handling configuration - supports simple mode or fallback chains */
33264
34179
  errorHandling?: ErrorHandlingMode | ContextErrorHandling;
34180
+ defaultValue?: unknown;
33265
34181
  streamOutput?: boolean;
33266
34182
  enabled?: boolean;
33267
34183
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
33268
34184
  when?: string;
33269
34185
  }
33270
- interface CrawlStepConfig {
34186
+ interface CrawlStepConfig$1 {
33271
34187
  name: string;
33272
34188
  url: string;
33273
34189
  limit?: number;
@@ -33292,6 +34208,8 @@ interface CrawlStepConfig {
33292
34208
  errorHandling?: ErrorHandlingMode | ContextErrorHandling;
33293
34209
  pollIntervalMs?: number;
33294
34210
  completionTimeoutMs?: number;
34211
+ defaultValue?: unknown;
34212
+ asyncCrawl?: boolean;
33295
34213
  enabled?: boolean;
33296
34214
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
33297
34215
  when?: string;
@@ -33299,8 +34217,25 @@ interface CrawlStepConfig {
33299
34217
  interface TransformDataStepConfig$1 {
33300
34218
  name: string;
33301
34219
  script: string;
34220
+ inputVariables?: string[];
33302
34221
  outputVariable?: string;
33303
- sandboxProvider?: 'quickjs' | 'daytona' | 'cloudflare-worker';
34222
+ sandboxProvider?: 'quickjs' | 'daytona' | 'cloudflare-worker' | 'runtype-sandbox' | 'cloudflare-sandbox';
34223
+ language?: 'javascript' | 'typescript' | 'python';
34224
+ inputMode?: 'code' | 'variable';
34225
+ packageJson?: string;
34226
+ persistSandbox?: boolean;
34227
+ reuseSandboxId?: string;
34228
+ networkAccess?: 'off' | 'on' | {
34229
+ allowedHostnames: string[];
34230
+ };
34231
+ errorHandling?: ErrorHandlingMode | ContextErrorHandling;
34232
+ defaultValue?: unknown;
34233
+ tools?: {
34234
+ toolIds?: string[];
34235
+ toolConfigs?: Record<string, unknown>;
34236
+ runtimeTools?: unknown[];
34237
+ mcpServers?: unknown[];
34238
+ };
33304
34239
  streamOutput?: boolean;
33305
34240
  enabled?: boolean;
33306
34241
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33327,7 +34262,21 @@ interface SearchStepConfig$1 {
33327
34262
  name: string;
33328
34263
  provider: string;
33329
34264
  query: string;
34265
+ temperature?: number;
34266
+ maxTokens?: number;
33330
34267
  maxResults?: number;
34268
+ dateRange?: {
34269
+ from?: string;
34270
+ to?: string;
34271
+ };
34272
+ allowedDomains?: string[];
34273
+ blockedDomains?: string[];
34274
+ userLocation?: {
34275
+ country?: string;
34276
+ region?: string;
34277
+ };
34278
+ sources?: Array<Record<string, unknown>>;
34279
+ exaOptions?: Record<string, unknown>;
33331
34280
  outputVariable?: string;
33332
34281
  returnCitations?: boolean;
33333
34282
  /** Error handling configuration - supports simple mode or fallback chains */
@@ -33342,10 +34291,20 @@ interface SendEmailStepConfig$1 {
33342
34291
  to: string;
33343
34292
  from?: string;
33344
34293
  subject: string;
33345
- html: string;
34294
+ replyTo?: string;
34295
+ cc?: string;
34296
+ bcc?: string;
34297
+ html?: string;
34298
+ text?: string;
34299
+ attachments?: Array<{
34300
+ filename: string;
34301
+ content: string;
34302
+ contentType?: string;
34303
+ }>;
33346
34304
  outputVariable?: string;
33347
34305
  /** Error handling configuration - supports simple mode or fallback chains */
33348
34306
  errorHandling?: ErrorHandlingMode | ContextErrorHandling;
34307
+ defaultValue?: unknown;
33349
34308
  streamOutput?: boolean;
33350
34309
  enabled?: boolean;
33351
34310
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33379,8 +34338,10 @@ interface RecordFilter {
33379
34338
  }
33380
34339
  interface RetrieveRecordStepConfig$1 {
33381
34340
  name: string;
34341
+ retrievalMode?: 'id' | 'query';
33382
34342
  recordType?: string;
33383
34343
  recordName?: string;
34344
+ recordId?: string;
33384
34345
  /**
33385
34346
  * Optional chip-style filter (metadata + top-level columns: id, name,
33386
34347
  * createdAt, updatedAt). Coexists with recordType/recordName for
@@ -33388,9 +34349,12 @@ interface RetrieveRecordStepConfig$1 {
33388
34349
  * both are set.
33389
34350
  */
33390
34351
  recordFilter?: RecordFilter;
33391
- fieldsToInclude?: string[];
33392
- fieldsToExclude?: string[];
34352
+ fieldsToInclude?: string | string[];
34353
+ fieldsToExclude?: string | string[];
34354
+ availableFields?: string[];
33393
34355
  outputVariable?: string;
34356
+ fields?: string[];
34357
+ includeMetadata?: boolean;
33394
34358
  streamOutput?: boolean;
33395
34359
  enabled?: boolean;
33396
34360
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33415,9 +34379,16 @@ interface VectorSearchStepConfig$1 {
33415
34379
  query: string;
33416
34380
  recordType?: string;
33417
34381
  embeddingModel?: string;
34382
+ vectorStore?: 'pgvector' | 'weaviate' | 'vectorize' | 'pinecone';
34383
+ weaviateConfig?: Record<string, unknown>;
34384
+ vectorizeConfig?: Record<string, unknown>;
34385
+ pineconeConfig?: Record<string, unknown>;
33418
34386
  limit?: number;
33419
34387
  threshold?: number;
34388
+ metadataFilters?: Record<string, unknown>;
33420
34389
  outputVariable?: string;
34390
+ includeEmbedding?: boolean;
34391
+ includeMetadata?: boolean;
33421
34392
  streamOutput?: boolean;
33422
34393
  enabled?: boolean;
33423
34394
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33425,9 +34396,22 @@ interface VectorSearchStepConfig$1 {
33425
34396
  }
33426
34397
  interface GenerateEmbeddingStepConfig$1 {
33427
34398
  name: string;
33428
- text: string;
34399
+ text?: string;
34400
+ inputSource?: 'text' | 'variable' | 'record';
34401
+ variableName?: string;
34402
+ recordId?: string;
34403
+ recordType?: string;
34404
+ recordName?: string;
34405
+ textField?: string;
34406
+ storeInRecord?: boolean;
33429
34407
  embeddingModel?: string;
33430
34408
  maxLength?: number;
34409
+ inputMode?: 'single' | 'batch';
34410
+ inputVariable?: string;
34411
+ itemAlias?: string;
34412
+ textTemplate?: string;
34413
+ batchSize?: number;
34414
+ vectorStore?: Record<string, unknown>;
33431
34415
  outputVariable?: string;
33432
34416
  streamOutput?: boolean;
33433
34417
  enabled?: boolean;
@@ -33483,7 +34467,13 @@ interface FetchGitHubStepConfig$1 {
33483
34467
  repository: string;
33484
34468
  branch?: string;
33485
34469
  path?: string;
34470
+ token?: string;
33486
34471
  outputVariable?: string;
34472
+ contentType?: 'raw' | 'metadata' | 'both';
34473
+ includePatterns?: string[];
34474
+ excludePatterns?: string[];
34475
+ compress?: boolean;
34476
+ style?: 'xml' | 'json' | 'markdown';
33487
34477
  streamOutput?: boolean;
33488
34478
  enabled?: boolean;
33489
34479
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33622,6 +34612,29 @@ interface FlowSummary {
33622
34612
  /** Whether the flow completed successfully */
33623
34613
  success: boolean;
33624
34614
  }
34615
+ /**
34616
+ * Generic flow-step config for step types that do not yet have a typed SDK
34617
+ * helper method. Prefer the typed helpers (`prompt`, `fetchUrl`, etc.) when
34618
+ * available; use `step()` for newly-added or advanced dashboard/API step types
34619
+ * so code-first flows do not have to wait for a dedicated ergonomic wrapper.
34620
+ */
34621
+ interface RawStepConfig$1 {
34622
+ type: FlowStepType;
34623
+ name?: string;
34624
+ config?: Record<string, any>;
34625
+ enabled?: boolean;
34626
+ /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
34627
+ when?: string;
34628
+ }
34629
+ /** Generic config accepted by advanced step helpers that do not yet have
34630
+ * dedicated strongly-typed SDK config interfaces. `name`, `enabled`, and
34631
+ * `when` are lifted to the step envelope; every other property is preserved in
34632
+ * the step `config` object. */
34633
+ type RawStepMethodConfig$1 = {
34634
+ name: string;
34635
+ enabled?: boolean;
34636
+ when?: string;
34637
+ } & Record<string, any>;
33625
34638
  /**
33626
34639
  * A single validation finding (error / warning / recommendation). Spec-derived
33627
34640
  * from the `POST /v1/public/flows/validate` response so it cannot drift from the
@@ -33712,6 +34725,12 @@ declare class FlowBuilder {
33712
34725
  * Set dispatch options
33713
34726
  */
33714
34727
  withOptions(options: DispatchOptions$1): this;
34728
+ /**
34729
+ * Add a generic flow step. Prefer the typed helper methods when available;
34730
+ * this escape hatch keeps code-first flows compatible with newer dashboard/API
34731
+ * step types before a dedicated SDK convenience method exists.
34732
+ */
34733
+ step(config: RawStepConfig$1): this;
33715
34734
  /**
33716
34735
  * Add a prompt step
33717
34736
  */
@@ -33719,7 +34738,7 @@ declare class FlowBuilder {
33719
34738
  /**
33720
34739
  * Add a crawl step
33721
34740
  */
33722
- crawl(config: CrawlStepConfig): this;
34741
+ crawl(config: CrawlStepConfig$1): this;
33723
34742
  /**
33724
34743
  * Add a fetch URL step
33725
34744
  */
@@ -33780,6 +34799,30 @@ declare class FlowBuilder {
33780
34799
  * Add a fetch GitHub step
33781
34800
  */
33782
34801
  fetchGitHub(config: FetchGitHubStepConfig$1): this;
34802
+ /** Add an api-call step. */
34803
+ apiCall(config: RawStepMethodConfig$1): this;
34804
+ /** Add a template rendering step. */
34805
+ template(config: RawStepMethodConfig$1): this;
34806
+ /** Add an update-record step. */
34807
+ updateRecord(config: RawStepMethodConfig$1): this;
34808
+ /** Add a deterministic tool-call step. */
34809
+ toolCall(config: RawStepMethodConfig$1): this;
34810
+ /** Add a paginate-api step. */
34811
+ paginateApi(config: RawStepMethodConfig$1): this;
34812
+ /** Add a store-vector step. */
34813
+ storeVector(config: RawStepMethodConfig$1): this;
34814
+ /** Add an execute-agent step. */
34815
+ executeAgent(config: RawStepMethodConfig$1): this;
34816
+ /** Add a store-asset step. */
34817
+ storeAsset(config: RawStepMethodConfig$1): this;
34818
+ /** Add a generate-pdf step. */
34819
+ generatePdf(config: RawStepMethodConfig$1): this;
34820
+ /** Add a save-memory step. */
34821
+ saveMemory(config: RawStepMethodConfig$1): this;
34822
+ /** Add a recall-memory step. */
34823
+ recallMemory(config: RawStepMethodConfig$1): this;
34824
+ /** Add a memory-summary step. */
34825
+ memorySummary(config: RawStepMethodConfig$1): this;
33783
34826
  /**
33784
34827
  * Attach a subagent runtime tool to the most recent prompt step.
33785
34828
  *
@@ -33934,6 +34977,7 @@ declare class FlowBuilder {
33934
34977
  * ```
33935
34978
  */
33936
34979
  when(expression: string): this;
34980
+ private addRawStep;
33937
34981
  private addStep;
33938
34982
  }
33939
34983
  /**
@@ -35025,18 +36069,19 @@ type RecordConfig = Omit<RecordConfig$1, 'metadata'> & {
35025
36069
  metadata?: JsonObject;
35026
36070
  };
35027
36071
  type Message = Message$1;
35028
- type NamespaceStepConfig<T> = Omit<T, 'when'>;
36072
+ type NamespaceStepConfig<T> = T;
35029
36073
  type FetchUrlNamespaceConfig = NamespaceStepConfig<FetchUrlStepConfig$1>;
35030
36074
  type ConditionalNamespaceConfig = NamespaceStepConfig<ConditionalStepConfig$1>;
35031
36075
  type SendEventNamespaceConfig = NamespaceStepConfig<SendEventStepConfig$1>;
35032
36076
  type PromptStepConfig = NamespaceStepConfig<PromptStepConfig$1>;
36077
+ type CrawlStepConfig = NamespaceStepConfig<CrawlStepConfig$1>;
35033
36078
  type FetchUrlStepConfig = Omit<FetchUrlNamespaceConfig, 'firecrawl'> & {
35034
36079
  firecrawl?: {
35035
36080
  formats?: string[];
35036
36081
  [key: string]: unknown;
35037
36082
  };
35038
36083
  };
35039
- type TransformDataStepConfig = Omit<NamespaceStepConfig<TransformDataStepConfig$1>, 'sandboxProvider'>;
36084
+ type TransformDataStepConfig = NamespaceStepConfig<TransformDataStepConfig$1>;
35040
36085
  type SetVariableStepConfig = NamespaceStepConfig<SetVariableStepConfig$1>;
35041
36086
  type ConditionalStepConfig = Omit<ConditionalNamespaceConfig, 'trueSteps' | 'falseSteps'> & {
35042
36087
  trueSteps?: unknown[];
@@ -35055,6 +36100,10 @@ type SendEventStepConfig = Omit<SendEventNamespaceConfig, 'properties'> & {
35055
36100
  };
35056
36101
  type SendTextStepConfig = NamespaceStepConfig<SendTextStepConfig$1>;
35057
36102
  type FetchGitHubStepConfig = NamespaceStepConfig<FetchGitHubStepConfig$1>;
36103
+ type RawStepConfig = Omit<RawStepConfig$1, 'when'> & {
36104
+ when?: string;
36105
+ };
36106
+ type RawStepMethodConfig = RawStepMethodConfig$1;
35058
36107
 
35059
36108
  type DispatchOptions = Omit<DispatchOptions$1, 'flowTimeoutMs' | 'stepTimeoutMs'>;
35060
36109
  declare class FlowsNamespace {
@@ -35127,6 +36176,7 @@ declare class RuntypeFlowBuilder {
35127
36176
  private steps;
35128
36177
  private recordConfig;
35129
36178
  private messagesConfig;
36179
+ private inputsConfig;
35130
36180
  private stepCounter;
35131
36181
  private existingFlowId;
35132
36182
  private mode;
@@ -35141,14 +36191,28 @@ declare class RuntypeFlowBuilder {
35141
36191
  * Set conversation messages
35142
36192
  */
35143
36193
  withMessages(messages: Message[]): this;
36194
+ /**
36195
+ * Set top-level input variables accessible as {{varName}} in templates.
36196
+ */
36197
+ withInputs(inputs: Record<string, unknown>): this;
35144
36198
  /**
35145
36199
  * Set dispatch options
35146
36200
  */
35147
36201
  withOptions(options: Partial<DispatchOptions>): this;
36202
+ /**
36203
+ * Add a generic flow step. Prefer the typed helper methods when available;
36204
+ * this escape hatch keeps code-first flows compatible with newer dashboard/API
36205
+ * step types before a dedicated SDK convenience method exists.
36206
+ */
36207
+ step(config: RawStepConfig): this;
35148
36208
  /**
35149
36209
  * Add a prompt step
35150
36210
  */
35151
36211
  prompt(config: PromptStepConfig): this;
36212
+ /**
36213
+ * Add a crawl step
36214
+ */
36215
+ crawl(config: CrawlStepConfig): this;
35152
36216
  /**
35153
36217
  * Add a fetch URL step
35154
36218
  */
@@ -35209,6 +36273,35 @@ declare class RuntypeFlowBuilder {
35209
36273
  * Add a fetch GitHub step
35210
36274
  */
35211
36275
  fetchGitHub(config: FetchGitHubStepConfig): this;
36276
+ /** Add an api-call step. */
36277
+ apiCall(config: RawStepMethodConfig): this;
36278
+ /** Add a template rendering step. */
36279
+ template(config: RawStepMethodConfig): this;
36280
+ /** Add an update-record step. */
36281
+ updateRecord(config: RawStepMethodConfig): this;
36282
+ /** Add a deterministic tool-call step. */
36283
+ toolCall(config: RawStepMethodConfig): this;
36284
+ /** Add a paginate-api step. */
36285
+ paginateApi(config: RawStepMethodConfig): this;
36286
+ /** Add a store-vector step. */
36287
+ storeVector(config: RawStepMethodConfig): this;
36288
+ /** Add an execute-agent step. */
36289
+ executeAgent(config: RawStepMethodConfig): this;
36290
+ /** Add a store-asset step. */
36291
+ storeAsset(config: RawStepMethodConfig): this;
36292
+ /** Add a generate-pdf step. */
36293
+ generatePdf(config: RawStepMethodConfig): this;
36294
+ /** Add a save-memory step. */
36295
+ saveMemory(config: RawStepMethodConfig): this;
36296
+ /** Add a recall-memory step. */
36297
+ recallMemory(config: RawStepMethodConfig): this;
36298
+ /** Add a memory-summary step. */
36299
+ memorySummary(config: RawStepMethodConfig): this;
36300
+ /**
36301
+ * Set a run condition (when predicate) on the last added step.
36302
+ * If the expression evaluates to falsy at runtime, the step is skipped.
36303
+ */
36304
+ when(expression: string): this;
35212
36305
  /**
35213
36306
  * Execute the flow with streaming response
35214
36307
  *
@@ -35293,6 +36386,7 @@ declare class RuntypeFlowBuilder {
35293
36386
  */
35294
36387
  private dispatchWithPersistedFlow;
35295
36388
  private computeContentHash;
36389
+ private addRawStep;
35296
36390
  private addStep;
35297
36391
  }
35298
36392
 
@@ -39544,13 +40638,653 @@ interface StepFieldMeta {
39544
40638
  * `api-call` shares fields with `fetch-url`; `update-record` shares with
39545
40639
  * `upsert-record`.
39546
40640
  */
39547
- declare const STEP_FIELD_REGISTRY: Record<string, readonly StepFieldMeta[]>;
40641
+ declare const STEP_FIELD_REGISTRY: {
40642
+ readonly prompt: readonly [{
40643
+ readonly key: "model";
40644
+ readonly format: "json";
40645
+ }, {
40646
+ readonly key: "userPrompt";
40647
+ readonly format: "template";
40648
+ }, {
40649
+ readonly key: "systemPrompt";
40650
+ readonly format: "template";
40651
+ }, {
40652
+ readonly key: "previousMessages";
40653
+ readonly format: "value";
40654
+ }, {
40655
+ readonly key: "outputVariable";
40656
+ readonly format: "json";
40657
+ }, {
40658
+ readonly key: "mode";
40659
+ readonly format: "json";
40660
+ }, {
40661
+ readonly key: "responseFormat";
40662
+ readonly format: "json";
40663
+ readonly skipDefault: "text";
40664
+ }, {
40665
+ readonly key: "temperature";
40666
+ readonly format: "raw";
40667
+ }, {
40668
+ readonly key: "topP";
40669
+ readonly format: "raw";
40670
+ }, {
40671
+ readonly key: "topK";
40672
+ readonly format: "raw";
40673
+ }, {
40674
+ readonly key: "frequencyPenalty";
40675
+ readonly format: "raw";
40676
+ }, {
40677
+ readonly key: "presencePenalty";
40678
+ readonly format: "raw";
40679
+ }, {
40680
+ readonly key: "seed";
40681
+ readonly format: "raw";
40682
+ }, {
40683
+ readonly key: "maxTokens";
40684
+ readonly format: "raw";
40685
+ }, {
40686
+ readonly key: "reasoning";
40687
+ readonly format: "value";
40688
+ }, {
40689
+ readonly key: "artifacts";
40690
+ readonly format: "value";
40691
+ }, {
40692
+ readonly key: "streamOutput";
40693
+ readonly format: "raw";
40694
+ readonly emitWhen: "falsy";
40695
+ }, {
40696
+ readonly key: "tools";
40697
+ readonly format: "value";
40698
+ }, {
40699
+ readonly key: "errorHandling";
40700
+ readonly format: "value";
40701
+ readonly skipDefault: "fail";
40702
+ }];
40703
+ readonly crawl: readonly [{
40704
+ readonly key: "url";
40705
+ readonly format: "json";
40706
+ }, {
40707
+ readonly key: "limit";
40708
+ readonly format: "raw";
40709
+ }, {
40710
+ readonly key: "depth";
40711
+ readonly format: "raw";
40712
+ }, {
40713
+ readonly key: "source";
40714
+ readonly format: "json";
40715
+ }, {
40716
+ readonly key: "formats";
40717
+ readonly format: "value";
40718
+ }, {
40719
+ readonly key: "render";
40720
+ readonly format: "raw";
40721
+ }, {
40722
+ readonly key: "maxAge";
40723
+ readonly format: "raw";
40724
+ }, {
40725
+ readonly key: "modifiedSince";
40726
+ readonly format: "json";
40727
+ }, {
40728
+ readonly key: "options";
40729
+ readonly format: "value";
40730
+ }, {
40731
+ readonly key: "authenticate";
40732
+ readonly format: "value";
40733
+ }, {
40734
+ readonly key: "cookies";
40735
+ readonly format: "value";
40736
+ }, {
40737
+ readonly key: "setExtraHTTPHeaders";
40738
+ readonly format: "value";
40739
+ }, {
40740
+ readonly key: "gotoOptions";
40741
+ readonly format: "value";
40742
+ }, {
40743
+ readonly key: "waitForSelector";
40744
+ readonly format: "json";
40745
+ }, {
40746
+ readonly key: "rejectResourceTypes";
40747
+ readonly format: "value";
40748
+ }, {
40749
+ readonly key: "rejectRequestPattern";
40750
+ readonly format: "value";
40751
+ }, {
40752
+ readonly key: "userAgent";
40753
+ readonly format: "json";
40754
+ }, {
40755
+ readonly key: "jsonOptions";
40756
+ readonly format: "value";
40757
+ }, {
40758
+ readonly key: "pollIntervalMs";
40759
+ readonly format: "raw";
40760
+ }, {
40761
+ readonly key: "completionTimeoutMs";
40762
+ readonly format: "raw";
40763
+ }, {
40764
+ readonly key: "asyncCrawl";
40765
+ readonly format: "raw";
40766
+ }, {
40767
+ readonly key: "outputVariable";
40768
+ readonly format: "json";
40769
+ }, {
40770
+ readonly key: "streamOutput";
40771
+ readonly format: "raw";
40772
+ }, {
40773
+ readonly key: "errorHandling";
40774
+ readonly format: "value";
40775
+ readonly skipDefault: "fail";
40776
+ }, {
40777
+ readonly key: "defaultValue";
40778
+ readonly format: "value";
40779
+ }];
40780
+ readonly 'fetch-url': readonly [{
40781
+ readonly key: "url";
40782
+ readonly format: "json";
40783
+ readonly source: "http.url";
40784
+ }, {
40785
+ readonly key: "method";
40786
+ readonly format: "json";
40787
+ readonly source: "http.method";
40788
+ readonly skipDefault: "GET";
40789
+ }, {
40790
+ readonly key: "headers";
40791
+ readonly format: "value";
40792
+ readonly source: "http.headers";
40793
+ }, {
40794
+ readonly key: "body";
40795
+ readonly format: "template";
40796
+ readonly source: "http.body";
40797
+ }, {
40798
+ readonly key: "auth";
40799
+ readonly format: "value";
40800
+ }, {
40801
+ readonly key: "responseType";
40802
+ readonly format: "json";
40803
+ }, {
40804
+ readonly key: "markdownIfAvailable";
40805
+ readonly format: "raw";
40806
+ }, {
40807
+ readonly key: "fetchMethod";
40808
+ readonly format: "json";
40809
+ readonly skipDefault: "standard";
40810
+ }, {
40811
+ readonly key: "firecrawl";
40812
+ readonly format: "value";
40813
+ }, {
40814
+ readonly key: "outputVariable";
40815
+ readonly format: "json";
40816
+ }, {
40817
+ readonly key: "streamOutput";
40818
+ readonly format: "raw";
40819
+ }, {
40820
+ readonly key: "errorHandling";
40821
+ readonly format: "value";
40822
+ readonly skipDefault: "fail";
40823
+ }, {
40824
+ readonly key: "defaultValue";
40825
+ readonly format: "value";
40826
+ }];
40827
+ readonly 'api-call': readonly StepFieldMeta[];
40828
+ readonly 'transform-data': readonly [{
40829
+ readonly key: "inputVariables";
40830
+ readonly format: "value";
40831
+ }, {
40832
+ readonly key: "script";
40833
+ readonly format: "template";
40834
+ }, {
40835
+ readonly key: "outputVariable";
40836
+ readonly format: "json";
40837
+ }, {
40838
+ readonly key: "sandboxProvider";
40839
+ readonly format: "json";
40840
+ }, {
40841
+ readonly key: "language";
40842
+ readonly format: "json";
40843
+ }, {
40844
+ readonly key: "inputMode";
40845
+ readonly format: "json";
40846
+ }, {
40847
+ readonly key: "packageJson";
40848
+ readonly format: "template";
40849
+ }, {
40850
+ readonly key: "persistSandbox";
40851
+ readonly format: "raw";
40852
+ }, {
40853
+ readonly key: "reuseSandboxId";
40854
+ readonly format: "json";
40855
+ }, {
40856
+ readonly key: "networkAccess";
40857
+ readonly format: "value";
40858
+ }, {
40859
+ readonly key: "errorHandling";
40860
+ readonly format: "value";
40861
+ readonly skipDefault: "fail";
40862
+ }, {
40863
+ readonly key: "defaultValue";
40864
+ readonly format: "value";
40865
+ }, {
40866
+ readonly key: "tools";
40867
+ readonly format: "value";
40868
+ }, {
40869
+ readonly key: "streamOutput";
40870
+ readonly format: "raw";
40871
+ }];
40872
+ readonly 'set-variable': readonly [{
40873
+ readonly key: "variableName";
40874
+ readonly format: "json";
40875
+ }, {
40876
+ readonly key: "value";
40877
+ readonly format: "template";
40878
+ }];
40879
+ readonly conditional: readonly [{
40880
+ readonly key: "condition";
40881
+ readonly format: "template";
40882
+ }, {
40883
+ readonly key: "trueSteps";
40884
+ readonly format: "value";
40885
+ }, {
40886
+ readonly key: "falseSteps";
40887
+ readonly format: "value";
40888
+ }];
40889
+ readonly search: readonly [{
40890
+ readonly key: "provider";
40891
+ readonly format: "json";
40892
+ }, {
40893
+ readonly key: "query";
40894
+ readonly format: "template";
40895
+ }, {
40896
+ readonly key: "temperature";
40897
+ readonly format: "raw";
40898
+ }, {
40899
+ readonly key: "maxTokens";
40900
+ readonly format: "raw";
40901
+ }, {
40902
+ readonly key: "maxResults";
40903
+ readonly format: "raw";
40904
+ readonly skipDefault: 10;
40905
+ }, {
40906
+ readonly key: "returnCitations";
40907
+ readonly format: "raw";
40908
+ }, {
40909
+ readonly key: "dateRange";
40910
+ readonly format: "value";
40911
+ }, {
40912
+ readonly key: "allowedDomains";
40913
+ readonly format: "value";
40914
+ }, {
40915
+ readonly key: "blockedDomains";
40916
+ readonly format: "value";
40917
+ }, {
40918
+ readonly key: "userLocation";
40919
+ readonly format: "value";
40920
+ }, {
40921
+ readonly key: "sources";
40922
+ readonly format: "value";
40923
+ }, {
40924
+ readonly key: "exaOptions";
40925
+ readonly format: "value";
40926
+ }, {
40927
+ readonly key: "outputVariable";
40928
+ readonly format: "json";
40929
+ }, {
40930
+ readonly key: "streamOutput";
40931
+ readonly format: "raw";
40932
+ }, {
40933
+ readonly key: "errorHandling";
40934
+ readonly format: "value";
40935
+ readonly skipDefault: "fail";
40936
+ }];
40937
+ readonly 'send-email': readonly [{
40938
+ readonly key: "to";
40939
+ readonly format: "json";
40940
+ }, {
40941
+ readonly key: "from";
40942
+ readonly format: "json";
40943
+ }, {
40944
+ readonly key: "subject";
40945
+ readonly format: "template";
40946
+ }, {
40947
+ readonly key: "replyTo";
40948
+ readonly format: "json";
40949
+ }, {
40950
+ readonly key: "cc";
40951
+ readonly format: "json";
40952
+ }, {
40953
+ readonly key: "bcc";
40954
+ readonly format: "json";
40955
+ }, {
40956
+ readonly key: "html";
40957
+ readonly format: "template";
40958
+ }, {
40959
+ readonly key: "text";
40960
+ readonly format: "template";
40961
+ }, {
40962
+ readonly key: "attachments";
40963
+ readonly format: "value";
40964
+ }, {
40965
+ readonly key: "outputVariable";
40966
+ readonly format: "json";
40967
+ }, {
40968
+ readonly key: "streamOutput";
40969
+ readonly format: "raw";
40970
+ }, {
40971
+ readonly key: "errorHandling";
40972
+ readonly format: "value";
40973
+ readonly skipDefault: "fail";
40974
+ }, {
40975
+ readonly key: "defaultValue";
40976
+ readonly format: "value";
40977
+ }];
40978
+ readonly 'send-stream': readonly [{
40979
+ readonly key: "message";
40980
+ readonly format: "template";
40981
+ }];
40982
+ readonly 'retrieve-record': readonly [{
40983
+ readonly key: "retrievalMode";
40984
+ readonly format: "json";
40985
+ }, {
40986
+ readonly key: "recordType";
40987
+ readonly format: "json";
40988
+ }, {
40989
+ readonly key: "recordName";
40990
+ readonly format: "json";
40991
+ }, {
40992
+ readonly key: "recordId";
40993
+ readonly format: "json";
40994
+ }, {
40995
+ readonly key: "recordFilter";
40996
+ readonly format: "value";
40997
+ }, {
40998
+ readonly key: "fieldsToInclude";
40999
+ readonly format: "json";
41000
+ }, {
41001
+ readonly key: "fieldsToExclude";
41002
+ readonly format: "json";
41003
+ }, {
41004
+ readonly key: "availableFields";
41005
+ readonly format: "value";
41006
+ }, {
41007
+ readonly key: "outputVariable";
41008
+ readonly format: "json";
41009
+ }, {
41010
+ readonly key: "fields";
41011
+ readonly format: "value";
41012
+ }, {
41013
+ readonly key: "includeMetadata";
41014
+ readonly format: "raw";
41015
+ }, {
41016
+ readonly key: "streamOutput";
41017
+ readonly format: "raw";
41018
+ }];
41019
+ readonly 'upsert-record': readonly [{
41020
+ readonly key: "recordType";
41021
+ readonly format: "json";
41022
+ }, {
41023
+ readonly key: "recordName";
41024
+ readonly format: "json";
41025
+ }, {
41026
+ readonly key: "sourceVariable";
41027
+ readonly format: "json";
41028
+ }, {
41029
+ readonly key: "mergeStrategy";
41030
+ readonly format: "json";
41031
+ readonly skipDefault: "merge";
41032
+ }, {
41033
+ readonly key: "outputVariable";
41034
+ readonly format: "json";
41035
+ }, {
41036
+ readonly key: "streamOutput";
41037
+ readonly format: "raw";
41038
+ }, {
41039
+ readonly key: "errorHandling";
41040
+ readonly format: "value";
41041
+ readonly skipDefault: "fail";
41042
+ }];
41043
+ readonly 'update-record': readonly StepFieldMeta[];
41044
+ readonly 'vector-search': readonly [{
41045
+ readonly key: "query";
41046
+ readonly format: "template";
41047
+ }, {
41048
+ readonly key: "recordType";
41049
+ readonly format: "json";
41050
+ }, {
41051
+ readonly key: "embeddingModel";
41052
+ readonly format: "json";
41053
+ }, {
41054
+ readonly key: "vectorStore";
41055
+ readonly format: "json";
41056
+ }, {
41057
+ readonly key: "weaviateConfig";
41058
+ readonly format: "value";
41059
+ }, {
41060
+ readonly key: "vectorizeConfig";
41061
+ readonly format: "value";
41062
+ }, {
41063
+ readonly key: "pineconeConfig";
41064
+ readonly format: "value";
41065
+ }, {
41066
+ readonly key: "limit";
41067
+ readonly format: "raw";
41068
+ readonly skipDefault: 5;
41069
+ }, {
41070
+ readonly key: "threshold";
41071
+ readonly format: "raw";
41072
+ readonly skipDefault: 0.7;
41073
+ }, {
41074
+ readonly key: "metadataFilters";
41075
+ readonly format: "value";
41076
+ }, {
41077
+ readonly key: "outputVariable";
41078
+ readonly format: "json";
41079
+ }, {
41080
+ readonly key: "includeEmbedding";
41081
+ readonly format: "raw";
41082
+ }, {
41083
+ readonly key: "includeMetadata";
41084
+ readonly format: "raw";
41085
+ }, {
41086
+ readonly key: "streamOutput";
41087
+ readonly format: "raw";
41088
+ }];
41089
+ readonly 'generate-embedding': readonly [{
41090
+ readonly key: "inputSource";
41091
+ readonly format: "json";
41092
+ readonly skipDefault: "text";
41093
+ }, {
41094
+ readonly key: "text";
41095
+ readonly format: "template";
41096
+ }, {
41097
+ readonly key: "variableName";
41098
+ readonly format: "json";
41099
+ }, {
41100
+ readonly key: "recordId";
41101
+ readonly format: "json";
41102
+ }, {
41103
+ readonly key: "recordType";
41104
+ readonly format: "json";
41105
+ }, {
41106
+ readonly key: "recordName";
41107
+ readonly format: "json";
41108
+ }, {
41109
+ readonly key: "textField";
41110
+ readonly format: "json";
41111
+ }, {
41112
+ readonly key: "storeInRecord";
41113
+ readonly format: "raw";
41114
+ }, {
41115
+ readonly key: "embeddingModel";
41116
+ readonly format: "json";
41117
+ }, {
41118
+ readonly key: "maxLength";
41119
+ readonly format: "raw";
41120
+ }, {
41121
+ readonly key: "inputMode";
41122
+ readonly format: "json";
41123
+ }, {
41124
+ readonly key: "inputVariable";
41125
+ readonly format: "json";
41126
+ }, {
41127
+ readonly key: "itemAlias";
41128
+ readonly format: "json";
41129
+ }, {
41130
+ readonly key: "textTemplate";
41131
+ readonly format: "template";
41132
+ }, {
41133
+ readonly key: "batchSize";
41134
+ readonly format: "raw";
41135
+ }, {
41136
+ readonly key: "vectorStore";
41137
+ readonly format: "value";
41138
+ }, {
41139
+ readonly key: "outputVariable";
41140
+ readonly format: "json";
41141
+ }, {
41142
+ readonly key: "streamOutput";
41143
+ readonly format: "raw";
41144
+ }];
41145
+ readonly 'wait-until': readonly [{
41146
+ readonly key: "delayMs";
41147
+ readonly format: "raw";
41148
+ }, {
41149
+ readonly key: "continueOnTimeout";
41150
+ readonly format: "raw";
41151
+ readonly emitWhen: "truthy";
41152
+ }, {
41153
+ readonly key: "poll";
41154
+ readonly format: "value";
41155
+ readonly sourceCheck: "poll.enabled";
41156
+ }, {
41157
+ readonly key: "outputVariable";
41158
+ readonly format: "json";
41159
+ }, {
41160
+ readonly key: "streamOutput";
41161
+ readonly format: "raw";
41162
+ }, {
41163
+ readonly key: "errorHandling";
41164
+ readonly format: "value";
41165
+ readonly skipDefault: "fail";
41166
+ }];
41167
+ readonly 'send-event': readonly [{
41168
+ readonly key: "provider";
41169
+ readonly format: "json";
41170
+ }, {
41171
+ readonly key: "eventName";
41172
+ readonly format: "json";
41173
+ }, {
41174
+ readonly key: "properties";
41175
+ readonly format: "value";
41176
+ }, {
41177
+ readonly key: "outputVariable";
41178
+ readonly format: "json";
41179
+ }, {
41180
+ readonly key: "streamOutput";
41181
+ readonly format: "raw";
41182
+ }, {
41183
+ readonly key: "errorHandling";
41184
+ readonly format: "value";
41185
+ readonly skipDefault: "fail";
41186
+ }];
41187
+ readonly 'send-text': readonly [{
41188
+ readonly key: "to";
41189
+ readonly format: "json";
41190
+ }, {
41191
+ readonly key: "from";
41192
+ readonly format: "json";
41193
+ }, {
41194
+ readonly key: "message";
41195
+ readonly format: "template";
41196
+ }, {
41197
+ readonly key: "outputVariable";
41198
+ readonly format: "json";
41199
+ }, {
41200
+ readonly key: "streamOutput";
41201
+ readonly format: "raw";
41202
+ }, {
41203
+ readonly key: "errorHandling";
41204
+ readonly format: "value";
41205
+ readonly skipDefault: "fail";
41206
+ }];
41207
+ readonly 'fetch-github': readonly [{
41208
+ readonly key: "repository";
41209
+ readonly format: "json";
41210
+ }, {
41211
+ readonly key: "branch";
41212
+ readonly format: "json";
41213
+ }, {
41214
+ readonly key: "path";
41215
+ readonly format: "json";
41216
+ }, {
41217
+ readonly key: "token";
41218
+ readonly format: "json";
41219
+ }, {
41220
+ readonly key: "outputVariable";
41221
+ readonly format: "json";
41222
+ }, {
41223
+ readonly key: "contentType";
41224
+ readonly format: "json";
41225
+ }, {
41226
+ readonly key: "includePatterns";
41227
+ readonly format: "value";
41228
+ }, {
41229
+ readonly key: "excludePatterns";
41230
+ readonly format: "value";
41231
+ }, {
41232
+ readonly key: "compress";
41233
+ readonly format: "raw";
41234
+ }, {
41235
+ readonly key: "style";
41236
+ readonly format: "json";
41237
+ }, {
41238
+ readonly key: "streamOutput";
41239
+ readonly format: "raw";
41240
+ }];
41241
+ readonly template: readonly StepFieldMeta[];
41242
+ readonly 'store-asset': readonly StepFieldMeta[];
41243
+ readonly 'generate-pdf': readonly StepFieldMeta[];
41244
+ readonly 'tool-call': readonly StepFieldMeta[];
41245
+ readonly 'paginate-api': readonly StepFieldMeta[];
41246
+ readonly 'store-vector': readonly StepFieldMeta[];
41247
+ readonly 'execute-agent': readonly StepFieldMeta[];
41248
+ readonly 'save-memory': readonly StepFieldMeta[];
41249
+ readonly 'recall-memory': readonly StepFieldMeta[];
41250
+ readonly 'memory-summary': readonly StepFieldMeta[];
41251
+ };
39548
41252
  /**
39549
41253
  * Maps every step type to its FlowBuilder method name. Covers all known step
39550
41254
  * types including those without typed config interfaces. Code generators use
39551
41255
  * this instead of maintaining their own mapping.
39552
41256
  */
39553
- declare const STEP_TYPE_TO_METHOD: Record<string, string>;
41257
+ declare const STEP_TYPE_TO_METHOD: {
41258
+ readonly prompt: "prompt";
41259
+ readonly crawl: "crawl";
41260
+ readonly 'fetch-url': "fetchUrl";
41261
+ readonly 'api-call': "apiCall";
41262
+ readonly 'retrieve-record': "retrieveRecord";
41263
+ readonly 'fetch-github': "fetchGitHub";
41264
+ readonly 'transform-data': "transformData";
41265
+ readonly template: "template";
41266
+ readonly conditional: "conditional";
41267
+ readonly 'set-variable': "setVariable";
41268
+ readonly 'upsert-record': "upsertRecord";
41269
+ readonly 'update-record': "updateRecord";
41270
+ readonly 'send-email': "sendEmail";
41271
+ readonly 'send-text': "sendText";
41272
+ readonly 'send-event': "sendEvent";
41273
+ readonly 'send-stream': "sendStream";
41274
+ readonly search: "search";
41275
+ readonly 'generate-embedding': "generateEmbedding";
41276
+ readonly 'vector-search': "vectorSearch";
41277
+ readonly 'tool-call': "toolCall";
41278
+ readonly 'wait-until': "waitUntil";
41279
+ readonly 'paginate-api': "paginateApi";
41280
+ readonly 'store-vector': "storeVector";
41281
+ readonly 'execute-agent': "executeAgent";
41282
+ readonly 'store-asset': "storeAsset";
41283
+ readonly 'generate-pdf': "generatePdf";
41284
+ readonly 'save-memory': "saveMemory";
41285
+ readonly 'recall-memory': "recallMemory";
41286
+ readonly 'memory-summary': "memorySummary";
41287
+ };
39554
41288
 
39555
41289
  /**
39556
41290
  * Default marathon workflow: research → planning → execution.
@@ -39620,4 +41354,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
39620
41354
  declare function getDefaultPlanPath(taskName: string): string;
39621
41355
  declare function sanitizeTaskSlug(taskName: string): string;
39622
41356
 
39623
- export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, 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, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, 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 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 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, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, 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 FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, 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, 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 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 ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, 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 SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, 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 SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, 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 SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, 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 WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
41357
+ export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, 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, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, 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 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 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, 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 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 FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, 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 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, 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 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 ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContinuation, 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 SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, 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 SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, 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 SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, 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 WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, createClient, createExternalTool, defaultWorkflow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeCandidatePath, parseFinalBuffer, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };