@runtypelabs/sdk 4.6.1 → 4.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -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;
@@ -32185,6 +32685,7 @@ interface components {
32185
32685
  iteration: number;
32186
32686
  reflection?: string;
32187
32687
  seq: number;
32688
+ timestamp?: string;
32188
32689
  /** @enum {string} */
32189
32690
  type: "agent_reflection";
32190
32691
  } | {
@@ -32193,6 +32694,7 @@ interface components {
32193
32694
  iteration: number;
32194
32695
  seq: number;
32195
32696
  skill: string;
32697
+ timestamp?: string;
32196
32698
  toolCallId: string;
32197
32699
  /** @enum {string} */
32198
32700
  type: "agent_skill_loaded";
@@ -32204,6 +32706,7 @@ interface components {
32204
32706
  proposalId?: string;
32205
32707
  seq: number;
32206
32708
  skill: string;
32709
+ timestamp?: string;
32207
32710
  toolCallId: string;
32208
32711
  /** @enum {string} */
32209
32712
  type: "agent_skill_proposed";
@@ -32242,6 +32745,7 @@ interface components {
32242
32745
  iteration?: number;
32243
32746
  recoverable: boolean;
32244
32747
  seq: number;
32748
+ timestamp?: string;
32245
32749
  /** @enum {string} */
32246
32750
  type: "agent_error";
32247
32751
  } | {
@@ -32529,6 +33033,7 @@ interface components {
32529
33033
  iteration: number;
32530
33034
  reflection?: string;
32531
33035
  seq: number;
33036
+ timestamp?: string;
32532
33037
  /** @enum {string} */
32533
33038
  type: "agent_reflection";
32534
33039
  } | {
@@ -32537,6 +33042,7 @@ interface components {
32537
33042
  iteration: number;
32538
33043
  seq: number;
32539
33044
  skill: string;
33045
+ timestamp?: string;
32540
33046
  toolCallId: string;
32541
33047
  /** @enum {string} */
32542
33048
  type: "agent_skill_loaded";
@@ -32548,6 +33054,7 @@ interface components {
32548
33054
  proposalId?: string;
32549
33055
  seq: number;
32550
33056
  skill: string;
33057
+ timestamp?: string;
32551
33058
  toolCallId: string;
32552
33059
  /** @enum {string} */
32553
33060
  type: "agent_skill_proposed";
@@ -32586,6 +33093,7 @@ interface components {
32586
33093
  iteration?: number;
32587
33094
  recoverable: boolean;
32588
33095
  seq: number;
33096
+ timestamp?: string;
32589
33097
  /** @enum {string} */
32590
33098
  type: "agent_error";
32591
33099
  } | {
@@ -32625,6 +33133,7 @@ interface components {
32625
33133
  failedSteps?: number;
32626
33134
  finalOutput?: string;
32627
33135
  flowId?: string;
33136
+ flowName?: string;
32628
33137
  output?: unknown;
32629
33138
  seq?: number;
32630
33139
  source?: string;
@@ -32682,6 +33191,7 @@ interface components {
32682
33191
  id?: string;
32683
33192
  index?: number;
32684
33193
  name?: string;
33194
+ outputVariable?: string;
32685
33195
  seq?: number;
32686
33196
  startedAt: string;
32687
33197
  stepId?: string;
@@ -32727,6 +33237,8 @@ interface components {
32727
33237
  stepId?: string;
32728
33238
  stepName?: string;
32729
33239
  stepType?: string;
33240
+ /** @enum {string} */
33241
+ stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
32730
33242
  success?: boolean;
32731
33243
  tokensUsed?: number;
32732
33244
  toolContext?: {
@@ -33017,6 +33529,7 @@ interface components {
33017
33529
  failedSteps?: number;
33018
33530
  finalOutput?: string;
33019
33531
  flowId?: string;
33532
+ flowName?: string;
33020
33533
  output?: unknown;
33021
33534
  seq?: number;
33022
33535
  source?: string;
@@ -33074,6 +33587,7 @@ interface components {
33074
33587
  id?: string;
33075
33588
  index?: number;
33076
33589
  name?: string;
33590
+ outputVariable?: string;
33077
33591
  seq?: number;
33078
33592
  startedAt: string;
33079
33593
  stepId?: string;
@@ -33119,6 +33633,8 @@ interface components {
33119
33633
  stepId?: string;
33120
33634
  stepName?: string;
33121
33635
  stepType?: string;
33636
+ /** @enum {string} */
33637
+ stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
33122
33638
  success?: boolean;
33123
33639
  tokensUsed?: number;
33124
33640
  toolContext?: {
@@ -33461,8 +33977,12 @@ interface components {
33461
33977
  * alias below is the REFERENCE PATTERN the entity-codegen workflow clones.
33462
33978
  */
33463
33979
 
33980
+ /** Combined dispatch stream: agent + flow + artifact events (50 literals). */
33981
+ type DispatchEvent = components['schemas']['DispatchSSEEvent'];
33464
33982
  /** Flow-execution event union (26 literals). */
33465
33983
  type FlowStreamEvent = components['schemas']['FlowSSEEvent'];
33984
+ /** Agent-loop event union (19 literals). */
33985
+ type AgentStreamEvent = components['schemas']['AgentSSEEvent'];
33466
33986
  /**
33467
33987
  * Narrow a stream union to one event by its `type` discriminant.
33468
33988
  * @example type StepStart = StreamEventOf<FlowStreamEvent, 'step_start'>
@@ -33618,7 +34138,8 @@ interface PromptStepConfig$1 {
33618
34138
  content: string;
33619
34139
  }>;
33620
34140
  outputVariable?: string;
33621
- responseFormat?: 'text' | 'json';
34141
+ mode?: string;
34142
+ responseFormat?: 'default' | 'json' | 'markdown' | 'html' | 'xml' | 'text';
33622
34143
  temperature?: number;
33623
34144
  topP?: number;
33624
34145
  topK?: number;
@@ -33637,6 +34158,10 @@ interface PromptStepConfig$1 {
33637
34158
  * ```
33638
34159
  */
33639
34160
  reasoning?: boolean | ReasoningConfig;
34161
+ artifacts?: {
34162
+ enabled: true;
34163
+ types: Array<'markdown' | 'component'>;
34164
+ };
33640
34165
  streamOutput?: boolean;
33641
34166
  /** Tools configuration - supports saved tools (toolIds) and inline runtime tools */
33642
34167
  tools?: ToolsConfig;
@@ -33652,22 +34177,25 @@ interface FetchUrlStepConfig$1 {
33652
34177
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
33653
34178
  headers?: Record<string, string>;
33654
34179
  body?: string;
34180
+ auth?: Record<string, unknown>;
33655
34181
  responseType?: 'json' | 'text' | 'xml';
33656
34182
  markdownIfAvailable?: boolean;
33657
34183
  outputVariable?: string;
33658
- fetchMethod?: 'http' | 'firecrawl';
34184
+ /** `http` is accepted as a legacy alias and normalized to `standard`. */
34185
+ fetchMethod?: 'standard' | 'http' | 'firecrawl';
33659
34186
  firecrawl?: {
33660
34187
  formats?: string[];
33661
34188
  [key: string]: any;
33662
34189
  };
33663
34190
  /** Error handling configuration - supports simple mode or fallback chains */
33664
34191
  errorHandling?: ErrorHandlingMode | ContextErrorHandling;
34192
+ defaultValue?: unknown;
33665
34193
  streamOutput?: boolean;
33666
34194
  enabled?: boolean;
33667
34195
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
33668
34196
  when?: string;
33669
34197
  }
33670
- interface CrawlStepConfig {
34198
+ interface CrawlStepConfig$1 {
33671
34199
  name: string;
33672
34200
  url: string;
33673
34201
  limit?: number;
@@ -33692,6 +34220,8 @@ interface CrawlStepConfig {
33692
34220
  errorHandling?: ErrorHandlingMode | ContextErrorHandling;
33693
34221
  pollIntervalMs?: number;
33694
34222
  completionTimeoutMs?: number;
34223
+ defaultValue?: unknown;
34224
+ asyncCrawl?: boolean;
33695
34225
  enabled?: boolean;
33696
34226
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
33697
34227
  when?: string;
@@ -33699,8 +34229,25 @@ interface CrawlStepConfig {
33699
34229
  interface TransformDataStepConfig$1 {
33700
34230
  name: string;
33701
34231
  script: string;
34232
+ inputVariables?: string[];
33702
34233
  outputVariable?: string;
33703
- sandboxProvider?: 'quickjs' | 'daytona' | 'cloudflare-worker';
34234
+ sandboxProvider?: 'quickjs' | 'daytona' | 'cloudflare-worker' | 'runtype-sandbox' | 'cloudflare-sandbox';
34235
+ language?: 'javascript' | 'typescript' | 'python';
34236
+ inputMode?: 'code' | 'variable';
34237
+ packageJson?: string;
34238
+ persistSandbox?: boolean;
34239
+ reuseSandboxId?: string;
34240
+ networkAccess?: 'off' | 'on' | {
34241
+ allowedHostnames: string[];
34242
+ };
34243
+ errorHandling?: ErrorHandlingMode | ContextErrorHandling;
34244
+ defaultValue?: unknown;
34245
+ tools?: {
34246
+ toolIds?: string[];
34247
+ toolConfigs?: Record<string, unknown>;
34248
+ runtimeTools?: unknown[];
34249
+ mcpServers?: unknown[];
34250
+ };
33704
34251
  streamOutput?: boolean;
33705
34252
  enabled?: boolean;
33706
34253
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33727,7 +34274,21 @@ interface SearchStepConfig$1 {
33727
34274
  name: string;
33728
34275
  provider: string;
33729
34276
  query: string;
34277
+ temperature?: number;
34278
+ maxTokens?: number;
33730
34279
  maxResults?: number;
34280
+ dateRange?: {
34281
+ from?: string;
34282
+ to?: string;
34283
+ };
34284
+ allowedDomains?: string[];
34285
+ blockedDomains?: string[];
34286
+ userLocation?: {
34287
+ country?: string;
34288
+ region?: string;
34289
+ };
34290
+ sources?: Array<Record<string, unknown>>;
34291
+ exaOptions?: Record<string, unknown>;
33731
34292
  outputVariable?: string;
33732
34293
  returnCitations?: boolean;
33733
34294
  /** Error handling configuration - supports simple mode or fallback chains */
@@ -33742,10 +34303,20 @@ interface SendEmailStepConfig$1 {
33742
34303
  to: string;
33743
34304
  from?: string;
33744
34305
  subject: string;
33745
- html: string;
34306
+ replyTo?: string;
34307
+ cc?: string;
34308
+ bcc?: string;
34309
+ html?: string;
34310
+ text?: string;
34311
+ attachments?: Array<{
34312
+ filename: string;
34313
+ content: string;
34314
+ contentType?: string;
34315
+ }>;
33746
34316
  outputVariable?: string;
33747
34317
  /** Error handling configuration - supports simple mode or fallback chains */
33748
34318
  errorHandling?: ErrorHandlingMode | ContextErrorHandling;
34319
+ defaultValue?: unknown;
33749
34320
  streamOutput?: boolean;
33750
34321
  enabled?: boolean;
33751
34322
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33779,8 +34350,10 @@ interface RecordFilter {
33779
34350
  }
33780
34351
  interface RetrieveRecordStepConfig$1 {
33781
34352
  name: string;
34353
+ retrievalMode?: 'id' | 'query';
33782
34354
  recordType?: string;
33783
34355
  recordName?: string;
34356
+ recordId?: string;
33784
34357
  /**
33785
34358
  * Optional chip-style filter (metadata + top-level columns: id, name,
33786
34359
  * createdAt, updatedAt). Coexists with recordType/recordName for
@@ -33788,9 +34361,12 @@ interface RetrieveRecordStepConfig$1 {
33788
34361
  * both are set.
33789
34362
  */
33790
34363
  recordFilter?: RecordFilter;
33791
- fieldsToInclude?: string[];
33792
- fieldsToExclude?: string[];
34364
+ fieldsToInclude?: string | string[];
34365
+ fieldsToExclude?: string | string[];
34366
+ availableFields?: string[];
33793
34367
  outputVariable?: string;
34368
+ fields?: string[];
34369
+ includeMetadata?: boolean;
33794
34370
  streamOutput?: boolean;
33795
34371
  enabled?: boolean;
33796
34372
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33815,9 +34391,16 @@ interface VectorSearchStepConfig$1 {
33815
34391
  query: string;
33816
34392
  recordType?: string;
33817
34393
  embeddingModel?: string;
34394
+ vectorStore?: 'pgvector' | 'weaviate' | 'vectorize' | 'pinecone';
34395
+ weaviateConfig?: Record<string, unknown>;
34396
+ vectorizeConfig?: Record<string, unknown>;
34397
+ pineconeConfig?: Record<string, unknown>;
33818
34398
  limit?: number;
33819
34399
  threshold?: number;
34400
+ metadataFilters?: Record<string, unknown>;
33820
34401
  outputVariable?: string;
34402
+ includeEmbedding?: boolean;
34403
+ includeMetadata?: boolean;
33821
34404
  streamOutput?: boolean;
33822
34405
  enabled?: boolean;
33823
34406
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -33825,9 +34408,22 @@ interface VectorSearchStepConfig$1 {
33825
34408
  }
33826
34409
  interface GenerateEmbeddingStepConfig$1 {
33827
34410
  name: string;
33828
- text: string;
34411
+ text?: string;
34412
+ inputSource?: 'text' | 'variable' | 'record';
34413
+ variableName?: string;
34414
+ recordId?: string;
34415
+ recordType?: string;
34416
+ recordName?: string;
34417
+ textField?: string;
34418
+ storeInRecord?: boolean;
33829
34419
  embeddingModel?: string;
33830
34420
  maxLength?: number;
34421
+ inputMode?: 'single' | 'batch';
34422
+ inputVariable?: string;
34423
+ itemAlias?: string;
34424
+ textTemplate?: string;
34425
+ batchSize?: number;
34426
+ vectorStore?: Record<string, unknown>;
33831
34427
  outputVariable?: string;
33832
34428
  streamOutput?: boolean;
33833
34429
  enabled?: boolean;
@@ -33883,7 +34479,13 @@ interface FetchGitHubStepConfig$1 {
33883
34479
  repository: string;
33884
34480
  branch?: string;
33885
34481
  path?: string;
34482
+ token?: string;
33886
34483
  outputVariable?: string;
34484
+ contentType?: 'raw' | 'metadata' | 'both';
34485
+ includePatterns?: string[];
34486
+ excludePatterns?: string[];
34487
+ compress?: boolean;
34488
+ style?: 'xml' | 'json' | 'markdown';
33887
34489
  streamOutput?: boolean;
33888
34490
  enabled?: boolean;
33889
34491
  /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
@@ -34022,6 +34624,29 @@ interface FlowSummary {
34022
34624
  /** Whether the flow completed successfully */
34023
34625
  success: boolean;
34024
34626
  }
34627
+ /**
34628
+ * Generic flow-step config for step types that do not yet have a typed SDK
34629
+ * helper method. Prefer the typed helpers (`prompt`, `fetchUrl`, etc.) when
34630
+ * available; use `step()` for newly-added or advanced dashboard/API step types
34631
+ * so code-first flows do not have to wait for a dedicated ergonomic wrapper.
34632
+ */
34633
+ interface RawStepConfig$1 {
34634
+ type: FlowStepType;
34635
+ name?: string;
34636
+ config?: Record<string, any>;
34637
+ enabled?: boolean;
34638
+ /** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
34639
+ when?: string;
34640
+ }
34641
+ /** Generic config accepted by advanced step helpers that do not yet have
34642
+ * dedicated strongly-typed SDK config interfaces. `name`, `enabled`, and
34643
+ * `when` are lifted to the step envelope; every other property is preserved in
34644
+ * the step `config` object. */
34645
+ type RawStepMethodConfig$1 = {
34646
+ name: string;
34647
+ enabled?: boolean;
34648
+ when?: string;
34649
+ } & Record<string, any>;
34025
34650
  /**
34026
34651
  * A single validation finding (error / warning / recommendation). Spec-derived
34027
34652
  * from the `POST /v1/public/flows/validate` response so it cannot drift from the
@@ -34112,6 +34737,12 @@ declare class FlowBuilder {
34112
34737
  * Set dispatch options
34113
34738
  */
34114
34739
  withOptions(options: DispatchOptions$1): this;
34740
+ /**
34741
+ * Add a generic flow step. Prefer the typed helper methods when available;
34742
+ * this escape hatch keeps code-first flows compatible with newer dashboard/API
34743
+ * step types before a dedicated SDK convenience method exists.
34744
+ */
34745
+ step(config: RawStepConfig$1): this;
34115
34746
  /**
34116
34747
  * Add a prompt step
34117
34748
  */
@@ -34119,7 +34750,7 @@ declare class FlowBuilder {
34119
34750
  /**
34120
34751
  * Add a crawl step
34121
34752
  */
34122
- crawl(config: CrawlStepConfig): this;
34753
+ crawl(config: CrawlStepConfig$1): this;
34123
34754
  /**
34124
34755
  * Add a fetch URL step
34125
34756
  */
@@ -34180,6 +34811,30 @@ declare class FlowBuilder {
34180
34811
  * Add a fetch GitHub step
34181
34812
  */
34182
34813
  fetchGitHub(config: FetchGitHubStepConfig$1): this;
34814
+ /** Add an api-call step. */
34815
+ apiCall(config: RawStepMethodConfig$1): this;
34816
+ /** Add a template rendering step. */
34817
+ template(config: RawStepMethodConfig$1): this;
34818
+ /** Add an update-record step. */
34819
+ updateRecord(config: RawStepMethodConfig$1): this;
34820
+ /** Add a deterministic tool-call step. */
34821
+ toolCall(config: RawStepMethodConfig$1): this;
34822
+ /** Add a paginate-api step. */
34823
+ paginateApi(config: RawStepMethodConfig$1): this;
34824
+ /** Add a store-vector step. */
34825
+ storeVector(config: RawStepMethodConfig$1): this;
34826
+ /** Add an execute-agent step. */
34827
+ executeAgent(config: RawStepMethodConfig$1): this;
34828
+ /** Add a store-asset step. */
34829
+ storeAsset(config: RawStepMethodConfig$1): this;
34830
+ /** Add a generate-pdf step. */
34831
+ generatePdf(config: RawStepMethodConfig$1): this;
34832
+ /** Add a save-memory step. */
34833
+ saveMemory(config: RawStepMethodConfig$1): this;
34834
+ /** Add a recall-memory step. */
34835
+ recallMemory(config: RawStepMethodConfig$1): this;
34836
+ /** Add a memory-summary step. */
34837
+ memorySummary(config: RawStepMethodConfig$1): this;
34183
34838
  /**
34184
34839
  * Attach a subagent runtime tool to the most recent prompt step.
34185
34840
  *
@@ -34334,6 +34989,7 @@ declare class FlowBuilder {
34334
34989
  * ```
34335
34990
  */
34336
34991
  when(expression: string): this;
34992
+ private addRawStep;
34337
34993
  private addStep;
34338
34994
  }
34339
34995
  /**
@@ -35425,18 +36081,19 @@ type RecordConfig = Omit<RecordConfig$1, 'metadata'> & {
35425
36081
  metadata?: JsonObject;
35426
36082
  };
35427
36083
  type Message = Message$1;
35428
- type NamespaceStepConfig<T> = Omit<T, 'when'>;
36084
+ type NamespaceStepConfig<T> = T;
35429
36085
  type FetchUrlNamespaceConfig = NamespaceStepConfig<FetchUrlStepConfig$1>;
35430
36086
  type ConditionalNamespaceConfig = NamespaceStepConfig<ConditionalStepConfig$1>;
35431
36087
  type SendEventNamespaceConfig = NamespaceStepConfig<SendEventStepConfig$1>;
35432
36088
  type PromptStepConfig = NamespaceStepConfig<PromptStepConfig$1>;
36089
+ type CrawlStepConfig = NamespaceStepConfig<CrawlStepConfig$1>;
35433
36090
  type FetchUrlStepConfig = Omit<FetchUrlNamespaceConfig, 'firecrawl'> & {
35434
36091
  firecrawl?: {
35435
36092
  formats?: string[];
35436
36093
  [key: string]: unknown;
35437
36094
  };
35438
36095
  };
35439
- type TransformDataStepConfig = Omit<NamespaceStepConfig<TransformDataStepConfig$1>, 'sandboxProvider'>;
36096
+ type TransformDataStepConfig = NamespaceStepConfig<TransformDataStepConfig$1>;
35440
36097
  type SetVariableStepConfig = NamespaceStepConfig<SetVariableStepConfig$1>;
35441
36098
  type ConditionalStepConfig = Omit<ConditionalNamespaceConfig, 'trueSteps' | 'falseSteps'> & {
35442
36099
  trueSteps?: unknown[];
@@ -35455,6 +36112,10 @@ type SendEventStepConfig = Omit<SendEventNamespaceConfig, 'properties'> & {
35455
36112
  };
35456
36113
  type SendTextStepConfig = NamespaceStepConfig<SendTextStepConfig$1>;
35457
36114
  type FetchGitHubStepConfig = NamespaceStepConfig<FetchGitHubStepConfig$1>;
36115
+ type RawStepConfig = Omit<RawStepConfig$1, 'when'> & {
36116
+ when?: string;
36117
+ };
36118
+ type RawStepMethodConfig = RawStepMethodConfig$1;
35458
36119
 
35459
36120
  type DispatchOptions = Omit<DispatchOptions$1, 'flowTimeoutMs' | 'stepTimeoutMs'>;
35460
36121
  declare class FlowsNamespace {
@@ -35527,6 +36188,7 @@ declare class RuntypeFlowBuilder {
35527
36188
  private steps;
35528
36189
  private recordConfig;
35529
36190
  private messagesConfig;
36191
+ private inputsConfig;
35530
36192
  private stepCounter;
35531
36193
  private existingFlowId;
35532
36194
  private mode;
@@ -35541,14 +36203,28 @@ declare class RuntypeFlowBuilder {
35541
36203
  * Set conversation messages
35542
36204
  */
35543
36205
  withMessages(messages: Message[]): this;
36206
+ /**
36207
+ * Set top-level input variables accessible as {{varName}} in templates.
36208
+ */
36209
+ withInputs(inputs: Record<string, unknown>): this;
35544
36210
  /**
35545
36211
  * Set dispatch options
35546
36212
  */
35547
36213
  withOptions(options: Partial<DispatchOptions>): this;
36214
+ /**
36215
+ * Add a generic flow step. Prefer the typed helper methods when available;
36216
+ * this escape hatch keeps code-first flows compatible with newer dashboard/API
36217
+ * step types before a dedicated SDK convenience method exists.
36218
+ */
36219
+ step(config: RawStepConfig): this;
35548
36220
  /**
35549
36221
  * Add a prompt step
35550
36222
  */
35551
36223
  prompt(config: PromptStepConfig): this;
36224
+ /**
36225
+ * Add a crawl step
36226
+ */
36227
+ crawl(config: CrawlStepConfig): this;
35552
36228
  /**
35553
36229
  * Add a fetch URL step
35554
36230
  */
@@ -35609,6 +36285,35 @@ declare class RuntypeFlowBuilder {
35609
36285
  * Add a fetch GitHub step
35610
36286
  */
35611
36287
  fetchGitHub(config: FetchGitHubStepConfig): this;
36288
+ /** Add an api-call step. */
36289
+ apiCall(config: RawStepMethodConfig): this;
36290
+ /** Add a template rendering step. */
36291
+ template(config: RawStepMethodConfig): this;
36292
+ /** Add an update-record step. */
36293
+ updateRecord(config: RawStepMethodConfig): this;
36294
+ /** Add a deterministic tool-call step. */
36295
+ toolCall(config: RawStepMethodConfig): this;
36296
+ /** Add a paginate-api step. */
36297
+ paginateApi(config: RawStepMethodConfig): this;
36298
+ /** Add a store-vector step. */
36299
+ storeVector(config: RawStepMethodConfig): this;
36300
+ /** Add an execute-agent step. */
36301
+ executeAgent(config: RawStepMethodConfig): this;
36302
+ /** Add a store-asset step. */
36303
+ storeAsset(config: RawStepMethodConfig): this;
36304
+ /** Add a generate-pdf step. */
36305
+ generatePdf(config: RawStepMethodConfig): this;
36306
+ /** Add a save-memory step. */
36307
+ saveMemory(config: RawStepMethodConfig): this;
36308
+ /** Add a recall-memory step. */
36309
+ recallMemory(config: RawStepMethodConfig): this;
36310
+ /** Add a memory-summary step. */
36311
+ memorySummary(config: RawStepMethodConfig): this;
36312
+ /**
36313
+ * Set a run condition (when predicate) on the last added step.
36314
+ * If the expression evaluates to falsy at runtime, the step is skipped.
36315
+ */
36316
+ when(expression: string): this;
35612
36317
  /**
35613
36318
  * Execute the flow with streaming response
35614
36319
  *
@@ -35693,6 +36398,7 @@ declare class RuntypeFlowBuilder {
35693
36398
  */
35694
36399
  private dispatchWithPersistedFlow;
35695
36400
  private computeContentHash;
36401
+ private addRawStep;
35696
36402
  private addStep;
35697
36403
  }
35698
36404
 
@@ -39944,13 +40650,653 @@ interface StepFieldMeta {
39944
40650
  * `api-call` shares fields with `fetch-url`; `update-record` shares with
39945
40651
  * `upsert-record`.
39946
40652
  */
39947
- declare const STEP_FIELD_REGISTRY: Record<string, readonly StepFieldMeta[]>;
40653
+ declare const STEP_FIELD_REGISTRY: {
40654
+ readonly prompt: readonly [{
40655
+ readonly key: "model";
40656
+ readonly format: "json";
40657
+ }, {
40658
+ readonly key: "userPrompt";
40659
+ readonly format: "template";
40660
+ }, {
40661
+ readonly key: "systemPrompt";
40662
+ readonly format: "template";
40663
+ }, {
40664
+ readonly key: "previousMessages";
40665
+ readonly format: "value";
40666
+ }, {
40667
+ readonly key: "outputVariable";
40668
+ readonly format: "json";
40669
+ }, {
40670
+ readonly key: "mode";
40671
+ readonly format: "json";
40672
+ }, {
40673
+ readonly key: "responseFormat";
40674
+ readonly format: "json";
40675
+ readonly skipDefault: "text";
40676
+ }, {
40677
+ readonly key: "temperature";
40678
+ readonly format: "raw";
40679
+ }, {
40680
+ readonly key: "topP";
40681
+ readonly format: "raw";
40682
+ }, {
40683
+ readonly key: "topK";
40684
+ readonly format: "raw";
40685
+ }, {
40686
+ readonly key: "frequencyPenalty";
40687
+ readonly format: "raw";
40688
+ }, {
40689
+ readonly key: "presencePenalty";
40690
+ readonly format: "raw";
40691
+ }, {
40692
+ readonly key: "seed";
40693
+ readonly format: "raw";
40694
+ }, {
40695
+ readonly key: "maxTokens";
40696
+ readonly format: "raw";
40697
+ }, {
40698
+ readonly key: "reasoning";
40699
+ readonly format: "value";
40700
+ }, {
40701
+ readonly key: "artifacts";
40702
+ readonly format: "value";
40703
+ }, {
40704
+ readonly key: "streamOutput";
40705
+ readonly format: "raw";
40706
+ readonly emitWhen: "falsy";
40707
+ }, {
40708
+ readonly key: "tools";
40709
+ readonly format: "value";
40710
+ }, {
40711
+ readonly key: "errorHandling";
40712
+ readonly format: "value";
40713
+ readonly skipDefault: "fail";
40714
+ }];
40715
+ readonly crawl: readonly [{
40716
+ readonly key: "url";
40717
+ readonly format: "json";
40718
+ }, {
40719
+ readonly key: "limit";
40720
+ readonly format: "raw";
40721
+ }, {
40722
+ readonly key: "depth";
40723
+ readonly format: "raw";
40724
+ }, {
40725
+ readonly key: "source";
40726
+ readonly format: "json";
40727
+ }, {
40728
+ readonly key: "formats";
40729
+ readonly format: "value";
40730
+ }, {
40731
+ readonly key: "render";
40732
+ readonly format: "raw";
40733
+ }, {
40734
+ readonly key: "maxAge";
40735
+ readonly format: "raw";
40736
+ }, {
40737
+ readonly key: "modifiedSince";
40738
+ readonly format: "json";
40739
+ }, {
40740
+ readonly key: "options";
40741
+ readonly format: "value";
40742
+ }, {
40743
+ readonly key: "authenticate";
40744
+ readonly format: "value";
40745
+ }, {
40746
+ readonly key: "cookies";
40747
+ readonly format: "value";
40748
+ }, {
40749
+ readonly key: "setExtraHTTPHeaders";
40750
+ readonly format: "value";
40751
+ }, {
40752
+ readonly key: "gotoOptions";
40753
+ readonly format: "value";
40754
+ }, {
40755
+ readonly key: "waitForSelector";
40756
+ readonly format: "json";
40757
+ }, {
40758
+ readonly key: "rejectResourceTypes";
40759
+ readonly format: "value";
40760
+ }, {
40761
+ readonly key: "rejectRequestPattern";
40762
+ readonly format: "value";
40763
+ }, {
40764
+ readonly key: "userAgent";
40765
+ readonly format: "json";
40766
+ }, {
40767
+ readonly key: "jsonOptions";
40768
+ readonly format: "value";
40769
+ }, {
40770
+ readonly key: "pollIntervalMs";
40771
+ readonly format: "raw";
40772
+ }, {
40773
+ readonly key: "completionTimeoutMs";
40774
+ readonly format: "raw";
40775
+ }, {
40776
+ readonly key: "asyncCrawl";
40777
+ readonly format: "raw";
40778
+ }, {
40779
+ readonly key: "outputVariable";
40780
+ readonly format: "json";
40781
+ }, {
40782
+ readonly key: "streamOutput";
40783
+ readonly format: "raw";
40784
+ }, {
40785
+ readonly key: "errorHandling";
40786
+ readonly format: "value";
40787
+ readonly skipDefault: "fail";
40788
+ }, {
40789
+ readonly key: "defaultValue";
40790
+ readonly format: "value";
40791
+ }];
40792
+ readonly 'fetch-url': readonly [{
40793
+ readonly key: "url";
40794
+ readonly format: "json";
40795
+ readonly source: "http.url";
40796
+ }, {
40797
+ readonly key: "method";
40798
+ readonly format: "json";
40799
+ readonly source: "http.method";
40800
+ readonly skipDefault: "GET";
40801
+ }, {
40802
+ readonly key: "headers";
40803
+ readonly format: "value";
40804
+ readonly source: "http.headers";
40805
+ }, {
40806
+ readonly key: "body";
40807
+ readonly format: "template";
40808
+ readonly source: "http.body";
40809
+ }, {
40810
+ readonly key: "auth";
40811
+ readonly format: "value";
40812
+ }, {
40813
+ readonly key: "responseType";
40814
+ readonly format: "json";
40815
+ }, {
40816
+ readonly key: "markdownIfAvailable";
40817
+ readonly format: "raw";
40818
+ }, {
40819
+ readonly key: "fetchMethod";
40820
+ readonly format: "json";
40821
+ readonly skipDefault: "standard";
40822
+ }, {
40823
+ readonly key: "firecrawl";
40824
+ readonly format: "value";
40825
+ }, {
40826
+ readonly key: "outputVariable";
40827
+ readonly format: "json";
40828
+ }, {
40829
+ readonly key: "streamOutput";
40830
+ readonly format: "raw";
40831
+ }, {
40832
+ readonly key: "errorHandling";
40833
+ readonly format: "value";
40834
+ readonly skipDefault: "fail";
40835
+ }, {
40836
+ readonly key: "defaultValue";
40837
+ readonly format: "value";
40838
+ }];
40839
+ readonly 'api-call': readonly StepFieldMeta[];
40840
+ readonly 'transform-data': readonly [{
40841
+ readonly key: "inputVariables";
40842
+ readonly format: "value";
40843
+ }, {
40844
+ readonly key: "script";
40845
+ readonly format: "template";
40846
+ }, {
40847
+ readonly key: "outputVariable";
40848
+ readonly format: "json";
40849
+ }, {
40850
+ readonly key: "sandboxProvider";
40851
+ readonly format: "json";
40852
+ }, {
40853
+ readonly key: "language";
40854
+ readonly format: "json";
40855
+ }, {
40856
+ readonly key: "inputMode";
40857
+ readonly format: "json";
40858
+ }, {
40859
+ readonly key: "packageJson";
40860
+ readonly format: "template";
40861
+ }, {
40862
+ readonly key: "persistSandbox";
40863
+ readonly format: "raw";
40864
+ }, {
40865
+ readonly key: "reuseSandboxId";
40866
+ readonly format: "json";
40867
+ }, {
40868
+ readonly key: "networkAccess";
40869
+ readonly format: "value";
40870
+ }, {
40871
+ readonly key: "errorHandling";
40872
+ readonly format: "value";
40873
+ readonly skipDefault: "fail";
40874
+ }, {
40875
+ readonly key: "defaultValue";
40876
+ readonly format: "value";
40877
+ }, {
40878
+ readonly key: "tools";
40879
+ readonly format: "value";
40880
+ }, {
40881
+ readonly key: "streamOutput";
40882
+ readonly format: "raw";
40883
+ }];
40884
+ readonly 'set-variable': readonly [{
40885
+ readonly key: "variableName";
40886
+ readonly format: "json";
40887
+ }, {
40888
+ readonly key: "value";
40889
+ readonly format: "template";
40890
+ }];
40891
+ readonly conditional: readonly [{
40892
+ readonly key: "condition";
40893
+ readonly format: "template";
40894
+ }, {
40895
+ readonly key: "trueSteps";
40896
+ readonly format: "value";
40897
+ }, {
40898
+ readonly key: "falseSteps";
40899
+ readonly format: "value";
40900
+ }];
40901
+ readonly search: readonly [{
40902
+ readonly key: "provider";
40903
+ readonly format: "json";
40904
+ }, {
40905
+ readonly key: "query";
40906
+ readonly format: "template";
40907
+ }, {
40908
+ readonly key: "temperature";
40909
+ readonly format: "raw";
40910
+ }, {
40911
+ readonly key: "maxTokens";
40912
+ readonly format: "raw";
40913
+ }, {
40914
+ readonly key: "maxResults";
40915
+ readonly format: "raw";
40916
+ readonly skipDefault: 10;
40917
+ }, {
40918
+ readonly key: "returnCitations";
40919
+ readonly format: "raw";
40920
+ }, {
40921
+ readonly key: "dateRange";
40922
+ readonly format: "value";
40923
+ }, {
40924
+ readonly key: "allowedDomains";
40925
+ readonly format: "value";
40926
+ }, {
40927
+ readonly key: "blockedDomains";
40928
+ readonly format: "value";
40929
+ }, {
40930
+ readonly key: "userLocation";
40931
+ readonly format: "value";
40932
+ }, {
40933
+ readonly key: "sources";
40934
+ readonly format: "value";
40935
+ }, {
40936
+ readonly key: "exaOptions";
40937
+ readonly format: "value";
40938
+ }, {
40939
+ readonly key: "outputVariable";
40940
+ readonly format: "json";
40941
+ }, {
40942
+ readonly key: "streamOutput";
40943
+ readonly format: "raw";
40944
+ }, {
40945
+ readonly key: "errorHandling";
40946
+ readonly format: "value";
40947
+ readonly skipDefault: "fail";
40948
+ }];
40949
+ readonly 'send-email': readonly [{
40950
+ readonly key: "to";
40951
+ readonly format: "json";
40952
+ }, {
40953
+ readonly key: "from";
40954
+ readonly format: "json";
40955
+ }, {
40956
+ readonly key: "subject";
40957
+ readonly format: "template";
40958
+ }, {
40959
+ readonly key: "replyTo";
40960
+ readonly format: "json";
40961
+ }, {
40962
+ readonly key: "cc";
40963
+ readonly format: "json";
40964
+ }, {
40965
+ readonly key: "bcc";
40966
+ readonly format: "json";
40967
+ }, {
40968
+ readonly key: "html";
40969
+ readonly format: "template";
40970
+ }, {
40971
+ readonly key: "text";
40972
+ readonly format: "template";
40973
+ }, {
40974
+ readonly key: "attachments";
40975
+ readonly format: "value";
40976
+ }, {
40977
+ readonly key: "outputVariable";
40978
+ readonly format: "json";
40979
+ }, {
40980
+ readonly key: "streamOutput";
40981
+ readonly format: "raw";
40982
+ }, {
40983
+ readonly key: "errorHandling";
40984
+ readonly format: "value";
40985
+ readonly skipDefault: "fail";
40986
+ }, {
40987
+ readonly key: "defaultValue";
40988
+ readonly format: "value";
40989
+ }];
40990
+ readonly 'send-stream': readonly [{
40991
+ readonly key: "message";
40992
+ readonly format: "template";
40993
+ }];
40994
+ readonly 'retrieve-record': readonly [{
40995
+ readonly key: "retrievalMode";
40996
+ readonly format: "json";
40997
+ }, {
40998
+ readonly key: "recordType";
40999
+ readonly format: "json";
41000
+ }, {
41001
+ readonly key: "recordName";
41002
+ readonly format: "json";
41003
+ }, {
41004
+ readonly key: "recordId";
41005
+ readonly format: "json";
41006
+ }, {
41007
+ readonly key: "recordFilter";
41008
+ readonly format: "value";
41009
+ }, {
41010
+ readonly key: "fieldsToInclude";
41011
+ readonly format: "json";
41012
+ }, {
41013
+ readonly key: "fieldsToExclude";
41014
+ readonly format: "json";
41015
+ }, {
41016
+ readonly key: "availableFields";
41017
+ readonly format: "value";
41018
+ }, {
41019
+ readonly key: "outputVariable";
41020
+ readonly format: "json";
41021
+ }, {
41022
+ readonly key: "fields";
41023
+ readonly format: "value";
41024
+ }, {
41025
+ readonly key: "includeMetadata";
41026
+ readonly format: "raw";
41027
+ }, {
41028
+ readonly key: "streamOutput";
41029
+ readonly format: "raw";
41030
+ }];
41031
+ readonly 'upsert-record': readonly [{
41032
+ readonly key: "recordType";
41033
+ readonly format: "json";
41034
+ }, {
41035
+ readonly key: "recordName";
41036
+ readonly format: "json";
41037
+ }, {
41038
+ readonly key: "sourceVariable";
41039
+ readonly format: "json";
41040
+ }, {
41041
+ readonly key: "mergeStrategy";
41042
+ readonly format: "json";
41043
+ readonly skipDefault: "merge";
41044
+ }, {
41045
+ readonly key: "outputVariable";
41046
+ readonly format: "json";
41047
+ }, {
41048
+ readonly key: "streamOutput";
41049
+ readonly format: "raw";
41050
+ }, {
41051
+ readonly key: "errorHandling";
41052
+ readonly format: "value";
41053
+ readonly skipDefault: "fail";
41054
+ }];
41055
+ readonly 'update-record': readonly StepFieldMeta[];
41056
+ readonly 'vector-search': readonly [{
41057
+ readonly key: "query";
41058
+ readonly format: "template";
41059
+ }, {
41060
+ readonly key: "recordType";
41061
+ readonly format: "json";
41062
+ }, {
41063
+ readonly key: "embeddingModel";
41064
+ readonly format: "json";
41065
+ }, {
41066
+ readonly key: "vectorStore";
41067
+ readonly format: "json";
41068
+ }, {
41069
+ readonly key: "weaviateConfig";
41070
+ readonly format: "value";
41071
+ }, {
41072
+ readonly key: "vectorizeConfig";
41073
+ readonly format: "value";
41074
+ }, {
41075
+ readonly key: "pineconeConfig";
41076
+ readonly format: "value";
41077
+ }, {
41078
+ readonly key: "limit";
41079
+ readonly format: "raw";
41080
+ readonly skipDefault: 5;
41081
+ }, {
41082
+ readonly key: "threshold";
41083
+ readonly format: "raw";
41084
+ readonly skipDefault: 0.7;
41085
+ }, {
41086
+ readonly key: "metadataFilters";
41087
+ readonly format: "value";
41088
+ }, {
41089
+ readonly key: "outputVariable";
41090
+ readonly format: "json";
41091
+ }, {
41092
+ readonly key: "includeEmbedding";
41093
+ readonly format: "raw";
41094
+ }, {
41095
+ readonly key: "includeMetadata";
41096
+ readonly format: "raw";
41097
+ }, {
41098
+ readonly key: "streamOutput";
41099
+ readonly format: "raw";
41100
+ }];
41101
+ readonly 'generate-embedding': readonly [{
41102
+ readonly key: "inputSource";
41103
+ readonly format: "json";
41104
+ readonly skipDefault: "text";
41105
+ }, {
41106
+ readonly key: "text";
41107
+ readonly format: "template";
41108
+ }, {
41109
+ readonly key: "variableName";
41110
+ readonly format: "json";
41111
+ }, {
41112
+ readonly key: "recordId";
41113
+ readonly format: "json";
41114
+ }, {
41115
+ readonly key: "recordType";
41116
+ readonly format: "json";
41117
+ }, {
41118
+ readonly key: "recordName";
41119
+ readonly format: "json";
41120
+ }, {
41121
+ readonly key: "textField";
41122
+ readonly format: "json";
41123
+ }, {
41124
+ readonly key: "storeInRecord";
41125
+ readonly format: "raw";
41126
+ }, {
41127
+ readonly key: "embeddingModel";
41128
+ readonly format: "json";
41129
+ }, {
41130
+ readonly key: "maxLength";
41131
+ readonly format: "raw";
41132
+ }, {
41133
+ readonly key: "inputMode";
41134
+ readonly format: "json";
41135
+ }, {
41136
+ readonly key: "inputVariable";
41137
+ readonly format: "json";
41138
+ }, {
41139
+ readonly key: "itemAlias";
41140
+ readonly format: "json";
41141
+ }, {
41142
+ readonly key: "textTemplate";
41143
+ readonly format: "template";
41144
+ }, {
41145
+ readonly key: "batchSize";
41146
+ readonly format: "raw";
41147
+ }, {
41148
+ readonly key: "vectorStore";
41149
+ readonly format: "value";
41150
+ }, {
41151
+ readonly key: "outputVariable";
41152
+ readonly format: "json";
41153
+ }, {
41154
+ readonly key: "streamOutput";
41155
+ readonly format: "raw";
41156
+ }];
41157
+ readonly 'wait-until': readonly [{
41158
+ readonly key: "delayMs";
41159
+ readonly format: "raw";
41160
+ }, {
41161
+ readonly key: "continueOnTimeout";
41162
+ readonly format: "raw";
41163
+ readonly emitWhen: "truthy";
41164
+ }, {
41165
+ readonly key: "poll";
41166
+ readonly format: "value";
41167
+ readonly sourceCheck: "poll.enabled";
41168
+ }, {
41169
+ readonly key: "outputVariable";
41170
+ readonly format: "json";
41171
+ }, {
41172
+ readonly key: "streamOutput";
41173
+ readonly format: "raw";
41174
+ }, {
41175
+ readonly key: "errorHandling";
41176
+ readonly format: "value";
41177
+ readonly skipDefault: "fail";
41178
+ }];
41179
+ readonly 'send-event': readonly [{
41180
+ readonly key: "provider";
41181
+ readonly format: "json";
41182
+ }, {
41183
+ readonly key: "eventName";
41184
+ readonly format: "json";
41185
+ }, {
41186
+ readonly key: "properties";
41187
+ readonly format: "value";
41188
+ }, {
41189
+ readonly key: "outputVariable";
41190
+ readonly format: "json";
41191
+ }, {
41192
+ readonly key: "streamOutput";
41193
+ readonly format: "raw";
41194
+ }, {
41195
+ readonly key: "errorHandling";
41196
+ readonly format: "value";
41197
+ readonly skipDefault: "fail";
41198
+ }];
41199
+ readonly 'send-text': readonly [{
41200
+ readonly key: "to";
41201
+ readonly format: "json";
41202
+ }, {
41203
+ readonly key: "from";
41204
+ readonly format: "json";
41205
+ }, {
41206
+ readonly key: "message";
41207
+ readonly format: "template";
41208
+ }, {
41209
+ readonly key: "outputVariable";
41210
+ readonly format: "json";
41211
+ }, {
41212
+ readonly key: "streamOutput";
41213
+ readonly format: "raw";
41214
+ }, {
41215
+ readonly key: "errorHandling";
41216
+ readonly format: "value";
41217
+ readonly skipDefault: "fail";
41218
+ }];
41219
+ readonly 'fetch-github': readonly [{
41220
+ readonly key: "repository";
41221
+ readonly format: "json";
41222
+ }, {
41223
+ readonly key: "branch";
41224
+ readonly format: "json";
41225
+ }, {
41226
+ readonly key: "path";
41227
+ readonly format: "json";
41228
+ }, {
41229
+ readonly key: "token";
41230
+ readonly format: "json";
41231
+ }, {
41232
+ readonly key: "outputVariable";
41233
+ readonly format: "json";
41234
+ }, {
41235
+ readonly key: "contentType";
41236
+ readonly format: "json";
41237
+ }, {
41238
+ readonly key: "includePatterns";
41239
+ readonly format: "value";
41240
+ }, {
41241
+ readonly key: "excludePatterns";
41242
+ readonly format: "value";
41243
+ }, {
41244
+ readonly key: "compress";
41245
+ readonly format: "raw";
41246
+ }, {
41247
+ readonly key: "style";
41248
+ readonly format: "json";
41249
+ }, {
41250
+ readonly key: "streamOutput";
41251
+ readonly format: "raw";
41252
+ }];
41253
+ readonly template: readonly StepFieldMeta[];
41254
+ readonly 'store-asset': readonly StepFieldMeta[];
41255
+ readonly 'generate-pdf': readonly StepFieldMeta[];
41256
+ readonly 'tool-call': readonly StepFieldMeta[];
41257
+ readonly 'paginate-api': readonly StepFieldMeta[];
41258
+ readonly 'store-vector': readonly StepFieldMeta[];
41259
+ readonly 'execute-agent': readonly StepFieldMeta[];
41260
+ readonly 'save-memory': readonly StepFieldMeta[];
41261
+ readonly 'recall-memory': readonly StepFieldMeta[];
41262
+ readonly 'memory-summary': readonly StepFieldMeta[];
41263
+ };
39948
41264
  /**
39949
41265
  * Maps every step type to its FlowBuilder method name. Covers all known step
39950
41266
  * types including those without typed config interfaces. Code generators use
39951
41267
  * this instead of maintaining their own mapping.
39952
41268
  */
39953
- declare const STEP_TYPE_TO_METHOD: Record<string, string>;
41269
+ declare const STEP_TYPE_TO_METHOD: {
41270
+ readonly prompt: "prompt";
41271
+ readonly crawl: "crawl";
41272
+ readonly 'fetch-url': "fetchUrl";
41273
+ readonly 'api-call': "apiCall";
41274
+ readonly 'retrieve-record': "retrieveRecord";
41275
+ readonly 'fetch-github': "fetchGitHub";
41276
+ readonly 'transform-data': "transformData";
41277
+ readonly template: "template";
41278
+ readonly conditional: "conditional";
41279
+ readonly 'set-variable': "setVariable";
41280
+ readonly 'upsert-record': "upsertRecord";
41281
+ readonly 'update-record': "updateRecord";
41282
+ readonly 'send-email': "sendEmail";
41283
+ readonly 'send-text': "sendText";
41284
+ readonly 'send-event': "sendEvent";
41285
+ readonly 'send-stream': "sendStream";
41286
+ readonly search: "search";
41287
+ readonly 'generate-embedding': "generateEmbedding";
41288
+ readonly 'vector-search': "vectorSearch";
41289
+ readonly 'tool-call': "toolCall";
41290
+ readonly 'wait-until': "waitUntil";
41291
+ readonly 'paginate-api': "paginateApi";
41292
+ readonly 'store-vector': "storeVector";
41293
+ readonly 'execute-agent': "executeAgent";
41294
+ readonly 'store-asset': "storeAsset";
41295
+ readonly 'generate-pdf': "generatePdf";
41296
+ readonly 'save-memory': "saveMemory";
41297
+ readonly 'recall-memory': "recallMemory";
41298
+ readonly 'memory-summary': "memorySummary";
41299
+ };
39954
41300
 
39955
41301
  /**
39956
41302
  * Default marathon workflow: research → planning → execution.
@@ -40020,4 +41366,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
40020
41366
  declare function getDefaultPlanPath(taskName: string): string;
40021
41367
  declare function sanitizeTaskSlug(taskName: string): string;
40022
41368
 
40023
- 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 };
41369
+ 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 };