@runtypelabs/sdk 4.6.1 → 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.cjs +609 -70
- package/dist/index.d.cts +1348 -14
- package/dist/index.d.ts +1348 -14
- package/dist/index.mjs +609 -70
- package/package.json +1 -1
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;
|
|
@@ -32727,6 +33227,8 @@ interface components {
|
|
|
32727
33227
|
stepId?: string;
|
|
32728
33228
|
stepName?: string;
|
|
32729
33229
|
stepType?: string;
|
|
33230
|
+
/** @enum {string} */
|
|
33231
|
+
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
32730
33232
|
success?: boolean;
|
|
32731
33233
|
tokensUsed?: number;
|
|
32732
33234
|
toolContext?: {
|
|
@@ -33119,6 +33621,8 @@ interface components {
|
|
|
33119
33621
|
stepId?: string;
|
|
33120
33622
|
stepName?: string;
|
|
33121
33623
|
stepType?: string;
|
|
33624
|
+
/** @enum {string} */
|
|
33625
|
+
stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
|
|
33122
33626
|
success?: boolean;
|
|
33123
33627
|
tokensUsed?: number;
|
|
33124
33628
|
toolContext?: {
|
|
@@ -33461,8 +33965,12 @@ interface components {
|
|
|
33461
33965
|
* alias below is the REFERENCE PATTERN the entity-codegen workflow clones.
|
|
33462
33966
|
*/
|
|
33463
33967
|
|
|
33968
|
+
/** Combined dispatch stream: agent + flow + artifact events (50 literals). */
|
|
33969
|
+
type DispatchEvent = components['schemas']['DispatchSSEEvent'];
|
|
33464
33970
|
/** Flow-execution event union (26 literals). */
|
|
33465
33971
|
type FlowStreamEvent = components['schemas']['FlowSSEEvent'];
|
|
33972
|
+
/** Agent-loop event union (19 literals). */
|
|
33973
|
+
type AgentStreamEvent = components['schemas']['AgentSSEEvent'];
|
|
33466
33974
|
/**
|
|
33467
33975
|
* Narrow a stream union to one event by its `type` discriminant.
|
|
33468
33976
|
* @example type StepStart = StreamEventOf<FlowStreamEvent, 'step_start'>
|
|
@@ -33618,7 +34126,8 @@ interface PromptStepConfig$1 {
|
|
|
33618
34126
|
content: string;
|
|
33619
34127
|
}>;
|
|
33620
34128
|
outputVariable?: string;
|
|
33621
|
-
|
|
34129
|
+
mode?: string;
|
|
34130
|
+
responseFormat?: 'default' | 'json' | 'markdown' | 'html' | 'xml' | 'text';
|
|
33622
34131
|
temperature?: number;
|
|
33623
34132
|
topP?: number;
|
|
33624
34133
|
topK?: number;
|
|
@@ -33637,6 +34146,10 @@ interface PromptStepConfig$1 {
|
|
|
33637
34146
|
* ```
|
|
33638
34147
|
*/
|
|
33639
34148
|
reasoning?: boolean | ReasoningConfig;
|
|
34149
|
+
artifacts?: {
|
|
34150
|
+
enabled: true;
|
|
34151
|
+
types: Array<'markdown' | 'component'>;
|
|
34152
|
+
};
|
|
33640
34153
|
streamOutput?: boolean;
|
|
33641
34154
|
/** Tools configuration - supports saved tools (toolIds) and inline runtime tools */
|
|
33642
34155
|
tools?: ToolsConfig;
|
|
@@ -33652,22 +34165,25 @@ interface FetchUrlStepConfig$1 {
|
|
|
33652
34165
|
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
33653
34166
|
headers?: Record<string, string>;
|
|
33654
34167
|
body?: string;
|
|
34168
|
+
auth?: Record<string, unknown>;
|
|
33655
34169
|
responseType?: 'json' | 'text' | 'xml';
|
|
33656
34170
|
markdownIfAvailable?: boolean;
|
|
33657
34171
|
outputVariable?: string;
|
|
33658
|
-
|
|
34172
|
+
/** `http` is accepted as a legacy alias and normalized to `standard`. */
|
|
34173
|
+
fetchMethod?: 'standard' | 'http' | 'firecrawl';
|
|
33659
34174
|
firecrawl?: {
|
|
33660
34175
|
formats?: string[];
|
|
33661
34176
|
[key: string]: any;
|
|
33662
34177
|
};
|
|
33663
34178
|
/** Error handling configuration - supports simple mode or fallback chains */
|
|
33664
34179
|
errorHandling?: ErrorHandlingMode | ContextErrorHandling;
|
|
34180
|
+
defaultValue?: unknown;
|
|
33665
34181
|
streamOutput?: boolean;
|
|
33666
34182
|
enabled?: boolean;
|
|
33667
34183
|
/** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
|
|
33668
34184
|
when?: string;
|
|
33669
34185
|
}
|
|
33670
|
-
interface CrawlStepConfig {
|
|
34186
|
+
interface CrawlStepConfig$1 {
|
|
33671
34187
|
name: string;
|
|
33672
34188
|
url: string;
|
|
33673
34189
|
limit?: number;
|
|
@@ -33692,6 +34208,8 @@ interface CrawlStepConfig {
|
|
|
33692
34208
|
errorHandling?: ErrorHandlingMode | ContextErrorHandling;
|
|
33693
34209
|
pollIntervalMs?: number;
|
|
33694
34210
|
completionTimeoutMs?: number;
|
|
34211
|
+
defaultValue?: unknown;
|
|
34212
|
+
asyncCrawl?: boolean;
|
|
33695
34213
|
enabled?: boolean;
|
|
33696
34214
|
/** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
|
|
33697
34215
|
when?: string;
|
|
@@ -33699,8 +34217,25 @@ interface CrawlStepConfig {
|
|
|
33699
34217
|
interface TransformDataStepConfig$1 {
|
|
33700
34218
|
name: string;
|
|
33701
34219
|
script: string;
|
|
34220
|
+
inputVariables?: string[];
|
|
33702
34221
|
outputVariable?: string;
|
|
33703
|
-
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
|
+
};
|
|
33704
34239
|
streamOutput?: boolean;
|
|
33705
34240
|
enabled?: boolean;
|
|
33706
34241
|
/** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
|
|
@@ -33727,7 +34262,21 @@ interface SearchStepConfig$1 {
|
|
|
33727
34262
|
name: string;
|
|
33728
34263
|
provider: string;
|
|
33729
34264
|
query: string;
|
|
34265
|
+
temperature?: number;
|
|
34266
|
+
maxTokens?: number;
|
|
33730
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>;
|
|
33731
34280
|
outputVariable?: string;
|
|
33732
34281
|
returnCitations?: boolean;
|
|
33733
34282
|
/** Error handling configuration - supports simple mode or fallback chains */
|
|
@@ -33742,10 +34291,20 @@ interface SendEmailStepConfig$1 {
|
|
|
33742
34291
|
to: string;
|
|
33743
34292
|
from?: string;
|
|
33744
34293
|
subject: string;
|
|
33745
|
-
|
|
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
|
+
}>;
|
|
33746
34304
|
outputVariable?: string;
|
|
33747
34305
|
/** Error handling configuration - supports simple mode or fallback chains */
|
|
33748
34306
|
errorHandling?: ErrorHandlingMode | ContextErrorHandling;
|
|
34307
|
+
defaultValue?: unknown;
|
|
33749
34308
|
streamOutput?: boolean;
|
|
33750
34309
|
enabled?: boolean;
|
|
33751
34310
|
/** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
|
|
@@ -33779,8 +34338,10 @@ interface RecordFilter {
|
|
|
33779
34338
|
}
|
|
33780
34339
|
interface RetrieveRecordStepConfig$1 {
|
|
33781
34340
|
name: string;
|
|
34341
|
+
retrievalMode?: 'id' | 'query';
|
|
33782
34342
|
recordType?: string;
|
|
33783
34343
|
recordName?: string;
|
|
34344
|
+
recordId?: string;
|
|
33784
34345
|
/**
|
|
33785
34346
|
* Optional chip-style filter (metadata + top-level columns: id, name,
|
|
33786
34347
|
* createdAt, updatedAt). Coexists with recordType/recordName for
|
|
@@ -33788,9 +34349,12 @@ interface RetrieveRecordStepConfig$1 {
|
|
|
33788
34349
|
* both are set.
|
|
33789
34350
|
*/
|
|
33790
34351
|
recordFilter?: RecordFilter;
|
|
33791
|
-
fieldsToInclude?: string[];
|
|
33792
|
-
fieldsToExclude?: string[];
|
|
34352
|
+
fieldsToInclude?: string | string[];
|
|
34353
|
+
fieldsToExclude?: string | string[];
|
|
34354
|
+
availableFields?: string[];
|
|
33793
34355
|
outputVariable?: string;
|
|
34356
|
+
fields?: string[];
|
|
34357
|
+
includeMetadata?: boolean;
|
|
33794
34358
|
streamOutput?: boolean;
|
|
33795
34359
|
enabled?: boolean;
|
|
33796
34360
|
/** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
|
|
@@ -33815,9 +34379,16 @@ interface VectorSearchStepConfig$1 {
|
|
|
33815
34379
|
query: string;
|
|
33816
34380
|
recordType?: string;
|
|
33817
34381
|
embeddingModel?: string;
|
|
34382
|
+
vectorStore?: 'pgvector' | 'weaviate' | 'vectorize' | 'pinecone';
|
|
34383
|
+
weaviateConfig?: Record<string, unknown>;
|
|
34384
|
+
vectorizeConfig?: Record<string, unknown>;
|
|
34385
|
+
pineconeConfig?: Record<string, unknown>;
|
|
33818
34386
|
limit?: number;
|
|
33819
34387
|
threshold?: number;
|
|
34388
|
+
metadataFilters?: Record<string, unknown>;
|
|
33820
34389
|
outputVariable?: string;
|
|
34390
|
+
includeEmbedding?: boolean;
|
|
34391
|
+
includeMetadata?: boolean;
|
|
33821
34392
|
streamOutput?: boolean;
|
|
33822
34393
|
enabled?: boolean;
|
|
33823
34394
|
/** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
|
|
@@ -33825,9 +34396,22 @@ interface VectorSearchStepConfig$1 {
|
|
|
33825
34396
|
}
|
|
33826
34397
|
interface GenerateEmbeddingStepConfig$1 {
|
|
33827
34398
|
name: string;
|
|
33828
|
-
text
|
|
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;
|
|
33829
34407
|
embeddingModel?: string;
|
|
33830
34408
|
maxLength?: number;
|
|
34409
|
+
inputMode?: 'single' | 'batch';
|
|
34410
|
+
inputVariable?: string;
|
|
34411
|
+
itemAlias?: string;
|
|
34412
|
+
textTemplate?: string;
|
|
34413
|
+
batchSize?: number;
|
|
34414
|
+
vectorStore?: Record<string, unknown>;
|
|
33831
34415
|
outputVariable?: string;
|
|
33832
34416
|
streamOutput?: boolean;
|
|
33833
34417
|
enabled?: boolean;
|
|
@@ -33883,7 +34467,13 @@ interface FetchGitHubStepConfig$1 {
|
|
|
33883
34467
|
repository: string;
|
|
33884
34468
|
branch?: string;
|
|
33885
34469
|
path?: string;
|
|
34470
|
+
token?: string;
|
|
33886
34471
|
outputVariable?: string;
|
|
34472
|
+
contentType?: 'raw' | 'metadata' | 'both';
|
|
34473
|
+
includePatterns?: string[];
|
|
34474
|
+
excludePatterns?: string[];
|
|
34475
|
+
compress?: boolean;
|
|
34476
|
+
style?: 'xml' | 'json' | 'markdown';
|
|
33887
34477
|
streamOutput?: boolean;
|
|
33888
34478
|
enabled?: boolean;
|
|
33889
34479
|
/** JavaScript predicate evaluated at runtime. If falsy, the step is skipped. */
|
|
@@ -34022,6 +34612,29 @@ interface FlowSummary {
|
|
|
34022
34612
|
/** Whether the flow completed successfully */
|
|
34023
34613
|
success: boolean;
|
|
34024
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>;
|
|
34025
34638
|
/**
|
|
34026
34639
|
* A single validation finding (error / warning / recommendation). Spec-derived
|
|
34027
34640
|
* from the `POST /v1/public/flows/validate` response so it cannot drift from the
|
|
@@ -34112,6 +34725,12 @@ declare class FlowBuilder {
|
|
|
34112
34725
|
* Set dispatch options
|
|
34113
34726
|
*/
|
|
34114
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;
|
|
34115
34734
|
/**
|
|
34116
34735
|
* Add a prompt step
|
|
34117
34736
|
*/
|
|
@@ -34119,7 +34738,7 @@ declare class FlowBuilder {
|
|
|
34119
34738
|
/**
|
|
34120
34739
|
* Add a crawl step
|
|
34121
34740
|
*/
|
|
34122
|
-
crawl(config: CrawlStepConfig): this;
|
|
34741
|
+
crawl(config: CrawlStepConfig$1): this;
|
|
34123
34742
|
/**
|
|
34124
34743
|
* Add a fetch URL step
|
|
34125
34744
|
*/
|
|
@@ -34180,6 +34799,30 @@ declare class FlowBuilder {
|
|
|
34180
34799
|
* Add a fetch GitHub step
|
|
34181
34800
|
*/
|
|
34182
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;
|
|
34183
34826
|
/**
|
|
34184
34827
|
* Attach a subagent runtime tool to the most recent prompt step.
|
|
34185
34828
|
*
|
|
@@ -34334,6 +34977,7 @@ declare class FlowBuilder {
|
|
|
34334
34977
|
* ```
|
|
34335
34978
|
*/
|
|
34336
34979
|
when(expression: string): this;
|
|
34980
|
+
private addRawStep;
|
|
34337
34981
|
private addStep;
|
|
34338
34982
|
}
|
|
34339
34983
|
/**
|
|
@@ -35425,18 +36069,19 @@ type RecordConfig = Omit<RecordConfig$1, 'metadata'> & {
|
|
|
35425
36069
|
metadata?: JsonObject;
|
|
35426
36070
|
};
|
|
35427
36071
|
type Message = Message$1;
|
|
35428
|
-
type NamespaceStepConfig<T> =
|
|
36072
|
+
type NamespaceStepConfig<T> = T;
|
|
35429
36073
|
type FetchUrlNamespaceConfig = NamespaceStepConfig<FetchUrlStepConfig$1>;
|
|
35430
36074
|
type ConditionalNamespaceConfig = NamespaceStepConfig<ConditionalStepConfig$1>;
|
|
35431
36075
|
type SendEventNamespaceConfig = NamespaceStepConfig<SendEventStepConfig$1>;
|
|
35432
36076
|
type PromptStepConfig = NamespaceStepConfig<PromptStepConfig$1>;
|
|
36077
|
+
type CrawlStepConfig = NamespaceStepConfig<CrawlStepConfig$1>;
|
|
35433
36078
|
type FetchUrlStepConfig = Omit<FetchUrlNamespaceConfig, 'firecrawl'> & {
|
|
35434
36079
|
firecrawl?: {
|
|
35435
36080
|
formats?: string[];
|
|
35436
36081
|
[key: string]: unknown;
|
|
35437
36082
|
};
|
|
35438
36083
|
};
|
|
35439
|
-
type TransformDataStepConfig =
|
|
36084
|
+
type TransformDataStepConfig = NamespaceStepConfig<TransformDataStepConfig$1>;
|
|
35440
36085
|
type SetVariableStepConfig = NamespaceStepConfig<SetVariableStepConfig$1>;
|
|
35441
36086
|
type ConditionalStepConfig = Omit<ConditionalNamespaceConfig, 'trueSteps' | 'falseSteps'> & {
|
|
35442
36087
|
trueSteps?: unknown[];
|
|
@@ -35455,6 +36100,10 @@ type SendEventStepConfig = Omit<SendEventNamespaceConfig, 'properties'> & {
|
|
|
35455
36100
|
};
|
|
35456
36101
|
type SendTextStepConfig = NamespaceStepConfig<SendTextStepConfig$1>;
|
|
35457
36102
|
type FetchGitHubStepConfig = NamespaceStepConfig<FetchGitHubStepConfig$1>;
|
|
36103
|
+
type RawStepConfig = Omit<RawStepConfig$1, 'when'> & {
|
|
36104
|
+
when?: string;
|
|
36105
|
+
};
|
|
36106
|
+
type RawStepMethodConfig = RawStepMethodConfig$1;
|
|
35458
36107
|
|
|
35459
36108
|
type DispatchOptions = Omit<DispatchOptions$1, 'flowTimeoutMs' | 'stepTimeoutMs'>;
|
|
35460
36109
|
declare class FlowsNamespace {
|
|
@@ -35527,6 +36176,7 @@ declare class RuntypeFlowBuilder {
|
|
|
35527
36176
|
private steps;
|
|
35528
36177
|
private recordConfig;
|
|
35529
36178
|
private messagesConfig;
|
|
36179
|
+
private inputsConfig;
|
|
35530
36180
|
private stepCounter;
|
|
35531
36181
|
private existingFlowId;
|
|
35532
36182
|
private mode;
|
|
@@ -35541,14 +36191,28 @@ declare class RuntypeFlowBuilder {
|
|
|
35541
36191
|
* Set conversation messages
|
|
35542
36192
|
*/
|
|
35543
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;
|
|
35544
36198
|
/**
|
|
35545
36199
|
* Set dispatch options
|
|
35546
36200
|
*/
|
|
35547
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;
|
|
35548
36208
|
/**
|
|
35549
36209
|
* Add a prompt step
|
|
35550
36210
|
*/
|
|
35551
36211
|
prompt(config: PromptStepConfig): this;
|
|
36212
|
+
/**
|
|
36213
|
+
* Add a crawl step
|
|
36214
|
+
*/
|
|
36215
|
+
crawl(config: CrawlStepConfig): this;
|
|
35552
36216
|
/**
|
|
35553
36217
|
* Add a fetch URL step
|
|
35554
36218
|
*/
|
|
@@ -35609,6 +36273,35 @@ declare class RuntypeFlowBuilder {
|
|
|
35609
36273
|
* Add a fetch GitHub step
|
|
35610
36274
|
*/
|
|
35611
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;
|
|
35612
36305
|
/**
|
|
35613
36306
|
* Execute the flow with streaming response
|
|
35614
36307
|
*
|
|
@@ -35693,6 +36386,7 @@ declare class RuntypeFlowBuilder {
|
|
|
35693
36386
|
*/
|
|
35694
36387
|
private dispatchWithPersistedFlow;
|
|
35695
36388
|
private computeContentHash;
|
|
36389
|
+
private addRawStep;
|
|
35696
36390
|
private addStep;
|
|
35697
36391
|
}
|
|
35698
36392
|
|
|
@@ -39944,13 +40638,653 @@ interface StepFieldMeta {
|
|
|
39944
40638
|
* `api-call` shares fields with `fetch-url`; `update-record` shares with
|
|
39945
40639
|
* `upsert-record`.
|
|
39946
40640
|
*/
|
|
39947
|
-
declare const STEP_FIELD_REGISTRY:
|
|
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
|
+
};
|
|
39948
41252
|
/**
|
|
39949
41253
|
* Maps every step type to its FlowBuilder method name. Covers all known step
|
|
39950
41254
|
* types including those without typed config interfaces. Code generators use
|
|
39951
41255
|
* this instead of maintaining their own mapping.
|
|
39952
41256
|
*/
|
|
39953
|
-
declare const STEP_TYPE_TO_METHOD:
|
|
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
|
+
};
|
|
39954
41288
|
|
|
39955
41289
|
/**
|
|
39956
41290
|
* Default marathon workflow: research → planning → execution.
|
|
@@ -40020,4 +41354,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
|
|
|
40020
41354
|
declare function getDefaultPlanPath(taskName: string): string;
|
|
40021
41355
|
declare function sanitizeTaskSlug(taskName: string): string;
|
|
40022
41356
|
|
|
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 };
|
|
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 };
|