@windmill-labs/shared-utils 1.0.5 → 1.0.12

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.
@@ -1,71 +1,108 @@
1
1
  export declare const $OpenFlow: {
2
2
  readonly type: "object";
3
+ readonly description: "Top-level flow definition containing metadata, configuration, and the flow structure";
3
4
  readonly properties: {
4
5
  readonly summary: {
5
6
  readonly type: "string";
7
+ readonly description: "Short description of what this flow does";
6
8
  };
7
9
  readonly description: {
8
10
  readonly type: "string";
11
+ readonly description: "Detailed documentation for this flow";
9
12
  };
10
13
  readonly value: {
11
14
  readonly $ref: "#/components/schemas/FlowValue";
12
15
  };
13
16
  readonly schema: {
14
17
  readonly type: "object";
18
+ readonly description: "JSON Schema for flow inputs. Use this to define input parameters, their types, defaults, and validation. For resource inputs, set type to 'object' and format to 'resource-<type>' (e.g., 'resource-stripe')";
15
19
  };
16
20
  };
17
21
  readonly required: readonly ["summary", "value"];
18
22
  };
19
23
  export declare const $FlowValue: {
20
24
  readonly type: "object";
25
+ readonly description: "The flow structure containing modules and optional preprocessor/failure handlers";
21
26
  readonly properties: {
22
27
  readonly modules: {
23
28
  readonly type: "array";
29
+ readonly description: "Array of steps that execute in sequence. Each step can be a script, subflow, loop, or branch";
24
30
  readonly items: {
25
31
  readonly $ref: "#/components/schemas/FlowModule";
26
32
  };
27
33
  };
28
34
  readonly failure_module: {
35
+ readonly description: "Special module that executes when the flow fails. Receives error object with message, name, stack, and step_id. Must have id 'failure'. Only supports script/rawscript types";
29
36
  readonly $ref: "#/components/schemas/FlowModule";
30
37
  };
31
38
  readonly preprocessor_module: {
39
+ readonly description: "Special module that runs before the first step on external triggers. Must have id 'preprocessor'. Only supports script/rawscript types. Cannot reference other step results";
32
40
  readonly $ref: "#/components/schemas/FlowModule";
33
41
  };
34
42
  readonly same_worker: {
35
43
  readonly type: "boolean";
44
+ readonly description: "If true, all steps run on the same worker for better performance";
36
45
  };
37
46
  readonly concurrent_limit: {
38
47
  readonly type: "number";
48
+ readonly description: "Maximum number of concurrent executions of this flow";
39
49
  };
40
50
  readonly concurrency_key: {
41
51
  readonly type: "string";
52
+ readonly description: "Expression to group concurrent executions (e.g., by user ID)";
42
53
  };
43
54
  readonly concurrency_time_window_s: {
44
55
  readonly type: "number";
56
+ readonly description: "Time window in seconds for concurrent_limit";
45
57
  };
46
58
  readonly debounce_delay_s: {
47
59
  readonly type: "number";
60
+ readonly description: "Delay in seconds to debounce flow executions";
48
61
  };
49
62
  readonly debounce_key: {
50
63
  readonly type: "string";
64
+ readonly description: "Expression to group debounced executions";
65
+ };
66
+ readonly debounce_args_to_accumulate: {
67
+ readonly type: "array";
68
+ readonly description: "Arguments to accumulate across debounced executions";
69
+ readonly items: {
70
+ readonly type: "string";
71
+ };
72
+ };
73
+ readonly max_total_debouncing_time: {
74
+ readonly type: "number";
75
+ readonly description: "Maximum total time in seconds that a job can be debounced";
76
+ };
77
+ readonly max_total_debounces_amount: {
78
+ readonly type: "number";
79
+ readonly description: "Maximum number of times a job can be debounced";
51
80
  };
52
81
  readonly skip_expr: {
53
82
  readonly type: "string";
83
+ readonly description: "JavaScript expression to conditionally skip the entire flow";
54
84
  };
55
85
  readonly cache_ttl: {
56
86
  readonly type: "number";
87
+ readonly description: "Cache duration in seconds for flow results";
88
+ };
89
+ readonly cache_ignore_s3_path: {
90
+ readonly type: "boolean";
57
91
  };
58
92
  readonly flow_env: {
59
93
  readonly type: "object";
94
+ readonly description: "Environment variables available to all steps";
60
95
  readonly additionalProperties: {
61
96
  readonly type: "string";
62
97
  };
63
98
  };
64
99
  readonly priority: {
65
100
  readonly type: "number";
101
+ readonly description: "Execution priority (higher numbers run first)";
66
102
  };
67
103
  readonly early_return: {
68
104
  readonly type: "string";
105
+ readonly description: "JavaScript expression to return early from the flow";
69
106
  };
70
107
  readonly chat_input_enabled: {
71
108
  readonly type: "boolean";
@@ -83,43 +120,54 @@ export declare const $FlowValue: {
83
120
  };
84
121
  export declare const $Retry: {
85
122
  readonly type: "object";
123
+ readonly description: "Retry configuration for failed module executions";
86
124
  readonly properties: {
87
125
  readonly constant: {
88
126
  readonly type: "object";
127
+ readonly description: "Retry with constant delay between attempts";
89
128
  readonly properties: {
90
129
  readonly attempts: {
91
130
  readonly type: "integer";
131
+ readonly description: "Number of retry attempts";
92
132
  };
93
133
  readonly seconds: {
94
134
  readonly type: "integer";
135
+ readonly description: "Seconds to wait between retries";
95
136
  };
96
137
  };
97
138
  };
98
139
  readonly exponential: {
99
140
  readonly type: "object";
141
+ readonly description: "Retry with exponential backoff (delay doubles each time)";
100
142
  readonly properties: {
101
143
  readonly attempts: {
102
144
  readonly type: "integer";
145
+ readonly description: "Number of retry attempts";
103
146
  };
104
147
  readonly multiplier: {
105
148
  readonly type: "integer";
149
+ readonly description: "Multiplier for exponential backoff";
106
150
  };
107
151
  readonly seconds: {
108
152
  readonly type: "integer";
109
153
  readonly minimum: 1;
154
+ readonly description: "Initial delay in seconds";
110
155
  };
111
156
  readonly random_factor: {
112
157
  readonly type: "integer";
113
158
  readonly minimum: 0;
114
159
  readonly maximum: 100;
160
+ readonly description: "Random jitter percentage (0-100) to avoid thundering herd";
115
161
  };
116
162
  };
117
163
  };
118
164
  readonly retry_if: {
119
165
  readonly type: "object";
166
+ readonly description: "Conditional retry based on error or result";
120
167
  readonly properties: {
121
168
  readonly expr: {
122
169
  readonly type: "string";
170
+ readonly description: "JavaScript expression that returns true to retry. Has access to 'result' and 'error' variables";
123
171
  };
124
172
  };
125
173
  readonly required: readonly ["expr"];
@@ -128,114 +176,150 @@ export declare const $Retry: {
128
176
  };
129
177
  export declare const $StopAfterIf: {
130
178
  readonly type: "object";
179
+ readonly description: "Early termination condition for a module";
131
180
  readonly properties: {
132
181
  readonly skip_if_stopped: {
133
182
  readonly type: "boolean";
183
+ readonly description: "If true, following steps are skipped when this condition triggers";
134
184
  };
135
185
  readonly expr: {
136
186
  readonly type: "string";
187
+ readonly description: "JavaScript expression evaluated after the module runs. Can use 'result' (step's result) or 'flow_input'. Return true to stop";
137
188
  };
138
189
  readonly error_message: {
139
190
  readonly type: "string";
191
+ readonly description: "Custom error message shown when stopping";
140
192
  };
141
193
  };
142
194
  readonly required: readonly ["expr"];
143
195
  };
144
196
  export declare const $FlowModule: {
145
197
  readonly type: "object";
198
+ readonly description: "A single step in a flow. Can be a script, subflow, loop, or branch";
146
199
  readonly properties: {
147
200
  readonly id: {
148
201
  readonly type: "string";
202
+ readonly description: "Unique identifier for this step. Used to reference results via 'results.step_id'. Must be a valid identifier (alphanumeric, underscore, hyphen)";
149
203
  };
150
204
  readonly value: {
151
205
  readonly $ref: "#/components/schemas/FlowModuleValue";
152
206
  };
153
207
  readonly stop_after_if: {
208
+ readonly description: "Early termination condition evaluated after this step completes";
154
209
  readonly $ref: "#/components/schemas/StopAfterIf";
155
210
  };
156
211
  readonly stop_after_all_iters_if: {
212
+ readonly description: "For loops only - early termination condition evaluated after all iterations complete";
157
213
  readonly $ref: "#/components/schemas/StopAfterIf";
158
214
  };
159
215
  readonly skip_if: {
160
216
  readonly type: "object";
217
+ readonly description: "Conditionally skip this step based on previous results or flow inputs";
161
218
  readonly properties: {
162
219
  readonly expr: {
163
220
  readonly type: "string";
221
+ readonly description: "JavaScript expression that returns true to skip. Can use 'flow_input' or 'results.<step_id>'";
164
222
  };
165
223
  };
166
224
  readonly required: readonly ["expr"];
167
225
  };
168
226
  readonly sleep: {
227
+ readonly description: "Delay before executing this step (in seconds or as expression)";
169
228
  readonly $ref: "#/components/schemas/InputTransform";
170
229
  };
171
230
  readonly cache_ttl: {
172
231
  readonly type: "number";
232
+ readonly description: "Cache duration in seconds for this step's results";
233
+ };
234
+ readonly cache_ignore_s3_path: {
235
+ readonly type: "boolean";
173
236
  };
174
237
  readonly timeout: {
238
+ readonly description: "Maximum execution time in seconds (static value or expression)";
175
239
  readonly $ref: "#/components/schemas/InputTransform";
176
240
  };
177
241
  readonly delete_after_use: {
178
242
  readonly type: "boolean";
243
+ readonly description: "If true, this step's result is deleted after use to save memory";
179
244
  };
180
245
  readonly summary: {
181
246
  readonly type: "string";
247
+ readonly description: "Short description of what this step does";
182
248
  };
183
249
  readonly mock: {
184
250
  readonly type: "object";
251
+ readonly description: "Mock configuration for testing without executing the actual step";
185
252
  readonly properties: {
186
253
  readonly enabled: {
187
254
  readonly type: "boolean";
255
+ readonly description: "If true, return mock value instead of executing";
256
+ };
257
+ readonly return_value: {
258
+ readonly description: "Value to return when mocked";
188
259
  };
189
- readonly return_value: {};
190
260
  };
191
261
  };
192
262
  readonly suspend: {
193
263
  readonly type: "object";
264
+ readonly description: "Configuration for approval/resume steps that wait for user input";
194
265
  readonly properties: {
195
266
  readonly required_events: {
196
267
  readonly type: "integer";
268
+ readonly description: "Number of approvals required before continuing";
197
269
  };
198
270
  readonly timeout: {
199
271
  readonly type: "integer";
272
+ readonly description: "Timeout in seconds before auto-continuing or canceling";
200
273
  };
201
274
  readonly resume_form: {
202
275
  readonly type: "object";
276
+ readonly description: "Form schema for collecting input when resuming";
203
277
  readonly properties: {
204
278
  readonly schema: {
205
279
  readonly type: "object";
280
+ readonly description: "JSON Schema for the resume form";
206
281
  };
207
282
  };
208
283
  };
209
284
  readonly user_auth_required: {
210
285
  readonly type: "boolean";
286
+ readonly description: "If true, only authenticated users can approve";
211
287
  };
212
288
  readonly user_groups_required: {
289
+ readonly description: "Expression or list of groups that can approve";
213
290
  readonly $ref: "#/components/schemas/InputTransform";
214
291
  };
215
292
  readonly self_approval_disabled: {
216
293
  readonly type: "boolean";
294
+ readonly description: "If true, the user who started the flow cannot approve";
217
295
  };
218
296
  readonly hide_cancel: {
219
297
  readonly type: "boolean";
298
+ readonly description: "If true, hide the cancel button on the approval form";
220
299
  };
221
300
  readonly continue_on_disapprove_timeout: {
222
301
  readonly type: "boolean";
302
+ readonly description: "If true, continue flow on timeout instead of canceling";
223
303
  };
224
304
  };
225
305
  };
226
306
  readonly priority: {
227
307
  readonly type: "number";
308
+ readonly description: "Execution priority for this step (higher numbers run first)";
228
309
  };
229
310
  readonly continue_on_error: {
230
311
  readonly type: "boolean";
312
+ readonly description: "If true, flow continues even if this step fails";
231
313
  };
232
314
  readonly retry: {
315
+ readonly description: "Retry configuration if this step fails";
233
316
  readonly $ref: "#/components/schemas/Retry";
234
317
  };
235
318
  };
236
319
  readonly required: readonly ["value", "id"];
237
320
  };
238
321
  export declare const $InputTransform: {
322
+ readonly description: "Maps input parameters for a step. Can be a static value or a JavaScript expression that references previous results or flow inputs";
239
323
  readonly oneOf: readonly [{
240
324
  readonly $ref: "#/components/schemas/StaticTransform";
241
325
  }, {
@@ -251,8 +335,11 @@ export declare const $InputTransform: {
251
335
  };
252
336
  export declare const $StaticTransform: {
253
337
  readonly type: "object";
338
+ readonly description: "Static value passed directly to the step. Use for hardcoded values or resource references like '$res:path/to/resource'";
254
339
  readonly properties: {
255
- readonly value: {};
340
+ readonly value: {
341
+ readonly description: "The static value. For resources, use format '$res:path/to/resource'";
342
+ };
256
343
  readonly type: {
257
344
  readonly type: "string";
258
345
  readonly enum: readonly ["static"];
@@ -262,9 +349,11 @@ export declare const $StaticTransform: {
262
349
  };
263
350
  export declare const $JavascriptTransform: {
264
351
  readonly type: "object";
352
+ readonly description: "JavaScript expression evaluated at runtime. Can reference previous step results via 'results.step_id' or flow inputs via 'flow_input.property'. Inside loops, use 'flow_input.iter.value' for the current iteration value";
265
353
  readonly properties: {
266
354
  readonly expr: {
267
355
  readonly type: "string";
356
+ readonly description: "JavaScript expression returning the value. Available variables - results (object with all previous step results), flow_input (flow inputs), flow_input.iter (in loops)";
268
357
  };
269
358
  readonly type: {
270
359
  readonly type: "string";
@@ -274,6 +363,7 @@ export declare const $JavascriptTransform: {
274
363
  readonly required: readonly ["expr", "type"];
275
364
  };
276
365
  export declare const $FlowModuleValue: {
366
+ readonly description: "The actual implementation of a flow step. Can be a script (inline or referenced), subflow, loop, branch, or special module type";
277
367
  readonly oneOf: readonly [{
278
368
  readonly $ref: "#/components/schemas/RawScript";
279
369
  }, {
@@ -310,25 +400,31 @@ export declare const $FlowModuleValue: {
310
400
  };
311
401
  export declare const $RawScript: {
312
402
  readonly type: "object";
403
+ readonly description: "Inline script with code defined directly in the flow. Use 'bun' as default language if unspecified. The script receives arguments from input_transforms";
313
404
  readonly properties: {
314
405
  readonly input_transforms: {
315
406
  readonly type: "object";
407
+ readonly description: "Map of parameter names to their values (static or JavaScript expressions). These become the script's input arguments";
316
408
  readonly additionalProperties: {
317
409
  readonly $ref: "#/components/schemas/InputTransform";
318
410
  };
319
411
  };
320
412
  readonly content: {
321
413
  readonly type: "string";
414
+ readonly description: "The script source code. Should export a 'main' function";
322
415
  };
323
416
  readonly language: {
324
417
  readonly type: "string";
418
+ readonly description: "Programming language for this script";
325
419
  readonly enum: readonly ["deno", "bun", "python3", "go", "bash", "powershell", "postgresql", "mysql", "bigquery", "snowflake", "mssql", "oracledb", "graphql", "nativets", "php"];
326
420
  };
327
421
  readonly path: {
328
422
  readonly type: "string";
423
+ readonly description: "Optional path for saving this script";
329
424
  };
330
425
  readonly lock: {
331
426
  readonly type: "string";
427
+ readonly description: "Lock file content for dependencies";
332
428
  };
333
429
  readonly type: {
334
430
  readonly type: "string";
@@ -336,38 +432,48 @@ export declare const $RawScript: {
336
432
  };
337
433
  readonly tag: {
338
434
  readonly type: "string";
435
+ readonly description: "Worker group tag for execution routing";
339
436
  };
340
437
  readonly concurrent_limit: {
341
438
  readonly type: "number";
439
+ readonly description: "Maximum concurrent executions of this script";
342
440
  };
343
441
  readonly concurrency_time_window_s: {
344
442
  readonly type: "number";
443
+ readonly description: "Time window for concurrent_limit";
345
444
  };
346
445
  readonly custom_concurrency_key: {
347
446
  readonly type: "string";
447
+ readonly description: "Custom key for grouping concurrent executions";
348
448
  };
349
449
  readonly is_trigger: {
350
450
  readonly type: "boolean";
451
+ readonly description: "If true, this script is a trigger that can start the flow";
351
452
  };
352
453
  readonly assets: {
353
454
  readonly type: "array";
455
+ readonly description: "External resources this script accesses (S3 objects, resources, etc.)";
354
456
  readonly items: {
355
457
  readonly type: "object";
356
458
  readonly required: readonly ["path", "kind"];
357
459
  readonly properties: {
358
460
  readonly path: {
359
461
  readonly type: "string";
462
+ readonly description: "Path to the asset";
360
463
  };
361
464
  readonly kind: {
362
465
  readonly type: "string";
363
- readonly enum: readonly ["s3object", "resource", "ducklake"];
466
+ readonly description: "Type of asset";
467
+ readonly enum: readonly ["s3object", "resource", "ducklake", "datatable"];
364
468
  };
365
469
  readonly access_type: {
366
470
  readonly type: "string";
471
+ readonly description: "Access level for this asset";
367
472
  readonly enum: readonly ["r", "w", "rw"];
368
473
  };
369
474
  readonly alt_access_type: {
370
475
  readonly type: "string";
476
+ readonly description: "Alternative access level";
371
477
  readonly enum: readonly ["r", "w", "rw"];
372
478
  };
373
479
  };
@@ -378,18 +484,22 @@ export declare const $RawScript: {
378
484
  };
379
485
  export declare const $PathScript: {
380
486
  readonly type: "object";
487
+ readonly description: "Reference to an existing script by path. Use this when calling a previously saved script instead of writing inline code";
381
488
  readonly properties: {
382
489
  readonly input_transforms: {
383
490
  readonly type: "object";
491
+ readonly description: "Map of parameter names to their values (static or JavaScript expressions). These become the script's input arguments";
384
492
  readonly additionalProperties: {
385
493
  readonly $ref: "#/components/schemas/InputTransform";
386
494
  };
387
495
  };
388
496
  readonly path: {
389
497
  readonly type: "string";
498
+ readonly description: "Path to the script in the workspace (e.g., 'f/scripts/send_email')";
390
499
  };
391
500
  readonly hash: {
392
501
  readonly type: "string";
502
+ readonly description: "Optional specific version hash of the script to use";
393
503
  };
394
504
  readonly type: {
395
505
  readonly type: "string";
@@ -397,24 +507,29 @@ export declare const $PathScript: {
397
507
  };
398
508
  readonly tag_override: {
399
509
  readonly type: "string";
510
+ readonly description: "Override the script's default worker group tag";
400
511
  };
401
512
  readonly is_trigger: {
402
513
  readonly type: "boolean";
514
+ readonly description: "If true, this script is a trigger that can start the flow";
403
515
  };
404
516
  };
405
517
  readonly required: readonly ["type", "path", "input_transforms"];
406
518
  };
407
519
  export declare const $PathFlow: {
408
520
  readonly type: "object";
521
+ readonly description: "Reference to an existing flow by path. Use this to call another flow as a subflow";
409
522
  readonly properties: {
410
523
  readonly input_transforms: {
411
524
  readonly type: "object";
525
+ readonly description: "Map of parameter names to their values (static or JavaScript expressions). These become the subflow's input arguments";
412
526
  readonly additionalProperties: {
413
527
  readonly $ref: "#/components/schemas/InputTransform";
414
528
  };
415
529
  };
416
530
  readonly path: {
417
531
  readonly type: "string";
532
+ readonly description: "Path to the flow in the workspace (e.g., 'f/flows/process_user')";
418
533
  };
419
534
  readonly type: {
420
535
  readonly type: "string";
@@ -425,18 +540,22 @@ export declare const $PathFlow: {
425
540
  };
426
541
  export declare const $ForloopFlow: {
427
542
  readonly type: "object";
543
+ readonly description: "Executes nested modules in a loop over an iterator. Inside the loop, use 'flow_input.iter.value' to access the current iteration value, and 'flow_input.iter.index' for the index. Supports parallel execution for better performance on I/O-bound operations";
428
544
  readonly properties: {
429
545
  readonly modules: {
430
546
  readonly type: "array";
547
+ readonly description: "Steps to execute for each iteration. These can reference the iteration value via 'flow_input.iter.value'";
431
548
  readonly items: {
432
549
  readonly $ref: "#/components/schemas/FlowModule";
433
550
  };
434
551
  };
435
552
  readonly iterator: {
553
+ readonly description: "JavaScript expression that returns an array to iterate over. Can reference 'results.step_id' or 'flow_input'";
436
554
  readonly $ref: "#/components/schemas/InputTransform";
437
555
  };
438
556
  readonly skip_failures: {
439
557
  readonly type: "boolean";
558
+ readonly description: "If true, iteration failures don't stop the loop. Failed iterations return null";
440
559
  };
441
560
  readonly type: {
442
561
  readonly type: "string";
@@ -444,24 +563,32 @@ export declare const $ForloopFlow: {
444
563
  };
445
564
  readonly parallel: {
446
565
  readonly type: "boolean";
566
+ readonly description: "If true, iterations run concurrently (faster for I/O-bound operations). Use with parallelism to control concurrency";
447
567
  };
448
568
  readonly parallelism: {
569
+ readonly description: "Maximum number of concurrent iterations when parallel=true. Limits resource usage. Can be static number or expression";
449
570
  readonly $ref: "#/components/schemas/InputTransform";
450
571
  };
572
+ readonly squash: {
573
+ readonly type: "boolean";
574
+ };
451
575
  };
452
576
  readonly required: readonly ["modules", "iterator", "skip_failures", "type"];
453
577
  };
454
578
  export declare const $WhileloopFlow: {
455
579
  readonly type: "object";
580
+ readonly description: "Executes nested modules repeatedly while a condition is true. The loop checks the condition after each iteration. Use stop_after_if on modules to control loop termination";
456
581
  readonly properties: {
457
582
  readonly modules: {
458
583
  readonly type: "array";
584
+ readonly description: "Steps to execute in each iteration. Use stop_after_if to control when the loop ends";
459
585
  readonly items: {
460
586
  readonly $ref: "#/components/schemas/FlowModule";
461
587
  };
462
588
  };
463
589
  readonly skip_failures: {
464
590
  readonly type: "boolean";
591
+ readonly description: "If true, iteration failures don't stop the loop. Failed iterations return null";
465
592
  };
466
593
  readonly type: {
467
594
  readonly type: "string";
@@ -469,29 +596,39 @@ export declare const $WhileloopFlow: {
469
596
  };
470
597
  readonly parallel: {
471
598
  readonly type: "boolean";
599
+ readonly description: "If true, iterations run concurrently (use with caution in while loops)";
472
600
  };
473
601
  readonly parallelism: {
602
+ readonly description: "Maximum number of concurrent iterations when parallel=true";
474
603
  readonly $ref: "#/components/schemas/InputTransform";
475
604
  };
605
+ readonly squash: {
606
+ readonly type: "boolean";
607
+ };
476
608
  };
477
609
  readonly required: readonly ["modules", "skip_failures", "type"];
478
610
  };
479
611
  export declare const $BranchOne: {
480
612
  readonly type: "object";
613
+ readonly description: "Conditional branching where only the first matching branch executes. Branches are evaluated in order, and the first one with a true expression runs. If no branches match, the default branch executes";
481
614
  readonly properties: {
482
615
  readonly branches: {
483
616
  readonly type: "array";
617
+ readonly description: "Array of branches to evaluate in order. The first branch with expr evaluating to true executes";
484
618
  readonly items: {
485
619
  readonly type: "object";
486
620
  readonly properties: {
487
621
  readonly summary: {
488
622
  readonly type: "string";
623
+ readonly description: "Short description of this branch condition";
489
624
  };
490
625
  readonly expr: {
491
626
  readonly type: "string";
627
+ readonly description: "JavaScript expression that returns boolean. Can use 'results.step_id' or 'flow_input'. First true expr wins";
492
628
  };
493
629
  readonly modules: {
494
630
  readonly type: "array";
631
+ readonly description: "Steps to execute if this branch's expr is true";
495
632
  readonly items: {
496
633
  readonly $ref: "#/components/schemas/FlowModule";
497
634
  };
@@ -502,10 +639,10 @@ export declare const $BranchOne: {
502
639
  };
503
640
  readonly default: {
504
641
  readonly type: "array";
642
+ readonly description: "Steps to execute if no branch expressions match";
505
643
  readonly items: {
506
644
  readonly $ref: "#/components/schemas/FlowModule";
507
645
  };
508
- readonly required: readonly ["modules"];
509
646
  };
510
647
  readonly type: {
511
648
  readonly type: "string";
@@ -516,20 +653,25 @@ export declare const $BranchOne: {
516
653
  };
517
654
  export declare const $BranchAll: {
518
655
  readonly type: "object";
656
+ readonly description: "Parallel branching where all branches execute simultaneously. Unlike BranchOne, all branches run regardless of conditions. Useful for executing independent tasks concurrently";
519
657
  readonly properties: {
520
658
  readonly branches: {
521
659
  readonly type: "array";
660
+ readonly description: "Array of branches that all execute (either in parallel or sequentially)";
522
661
  readonly items: {
523
662
  readonly type: "object";
524
663
  readonly properties: {
525
664
  readonly summary: {
526
665
  readonly type: "string";
666
+ readonly description: "Short description of this branch's purpose";
527
667
  };
528
668
  readonly skip_failure: {
529
669
  readonly type: "boolean";
670
+ readonly description: "If true, failure in this branch doesn't fail the entire flow";
530
671
  };
531
672
  readonly modules: {
532
673
  readonly type: "array";
674
+ readonly description: "Steps to execute in this branch";
533
675
  readonly items: {
534
676
  readonly $ref: "#/components/schemas/FlowModule";
535
677
  };
@@ -544,32 +686,71 @@ export declare const $BranchAll: {
544
686
  };
545
687
  readonly parallel: {
546
688
  readonly type: "boolean";
689
+ readonly description: "If true, all branches execute concurrently. If false, they execute sequentially";
547
690
  };
548
691
  };
549
692
  readonly required: readonly ["branches", "type"];
550
693
  };
551
694
  export declare const $AiAgent: {
552
695
  readonly type: "object";
696
+ readonly description: "AI agent step that can use tools to accomplish tasks. The agent receives inputs and can call any of its configured tools to complete the task";
553
697
  readonly properties: {
554
698
  readonly input_transforms: {
555
699
  readonly type: "object";
556
- readonly additionalProperties: {
557
- readonly $ref: "#/components/schemas/InputTransform";
700
+ readonly description: "Input parameters for the AI agent mapped to their values";
701
+ readonly properties: {
702
+ readonly provider: {
703
+ readonly $ref: "#/components/schemas/InputTransform";
704
+ };
705
+ readonly output_type: {
706
+ readonly $ref: "#/components/schemas/InputTransform";
707
+ };
708
+ readonly user_message: {
709
+ readonly $ref: "#/components/schemas/InputTransform";
710
+ };
711
+ readonly system_prompt: {
712
+ readonly $ref: "#/components/schemas/InputTransform";
713
+ };
714
+ readonly streaming: {
715
+ readonly $ref: "#/components/schemas/InputTransform";
716
+ };
717
+ readonly memory: {
718
+ readonly $ref: "#/components/schemas/InputTransform";
719
+ };
720
+ readonly output_schema: {
721
+ readonly $ref: "#/components/schemas/InputTransform";
722
+ };
723
+ readonly user_images: {
724
+ readonly $ref: "#/components/schemas/InputTransform";
725
+ };
726
+ readonly max_completion_tokens: {
727
+ readonly $ref: "#/components/schemas/InputTransform";
728
+ };
729
+ readonly temperature: {
730
+ readonly $ref: "#/components/schemas/InputTransform";
731
+ };
558
732
  };
733
+ readonly required: readonly ["provider", "user_message", "output_type"];
559
734
  };
560
735
  readonly tools: {
561
736
  readonly type: "array";
737
+ readonly description: "Array of tools the agent can use. The agent decides which tools to call based on the task";
562
738
  readonly items: {
563
739
  readonly type: "object";
740
+ readonly description: "A tool available to an AI agent. Can be a flow module or an external MCP (Model Context Protocol) tool";
564
741
  readonly properties: {
565
742
  readonly id: {
566
743
  readonly type: "string";
744
+ readonly description: "Unique identifier for this tool. Cannot contain spaces - use underscores instead (e.g., 'get_user_data' not 'get user data')";
567
745
  };
568
746
  readonly summary: {
569
747
  readonly type: "string";
748
+ readonly description: "Short description of what this tool does (shown to the AI)";
570
749
  };
571
750
  readonly value: {
751
+ readonly description: "The implementation of a tool. Can be a flow module (script/flow) or an MCP tool reference";
572
752
  readonly oneOf: readonly [{
753
+ readonly description: "A tool implemented as a flow module (script, flow, etc.). The AI can call this like any other flow module";
573
754
  readonly allOf: readonly [{
574
755
  readonly type: "object";
575
756
  readonly properties: {
@@ -584,6 +765,7 @@ export declare const $AiAgent: {
584
765
  }];
585
766
  }, {
586
767
  readonly type: "object";
768
+ readonly description: "Reference to an external MCP (Model Context Protocol) tool. The AI can call tools from MCP servers";
587
769
  readonly properties: {
588
770
  readonly tool_type: {
589
771
  readonly type: "string";
@@ -591,27 +773,41 @@ export declare const $AiAgent: {
591
773
  };
592
774
  readonly resource_path: {
593
775
  readonly type: "string";
776
+ readonly description: "Path to the MCP resource/server configuration";
594
777
  };
595
778
  readonly include_tools: {
596
779
  readonly type: "array";
780
+ readonly description: "Whitelist of specific tools to include from this MCP server";
597
781
  readonly items: {
598
782
  readonly type: "string";
599
783
  };
600
784
  };
601
785
  readonly exclude_tools: {
602
786
  readonly type: "array";
787
+ readonly description: "Blacklist of tools to exclude from this MCP server";
603
788
  readonly items: {
604
789
  readonly type: "string";
605
790
  };
606
791
  };
607
792
  };
608
793
  readonly required: readonly ["tool_type", "resource_path"];
794
+ }, {
795
+ readonly type: "object";
796
+ readonly description: "A tool implemented as a websearch tool. The AI can call this like any other websearch tool";
797
+ readonly properties: {
798
+ readonly tool_type: {
799
+ readonly type: "string";
800
+ readonly enum: readonly ["websearch"];
801
+ };
802
+ };
803
+ readonly required: readonly ["tool_type"];
609
804
  }];
610
805
  readonly discriminator: {
611
806
  readonly propertyName: "tool_type";
612
807
  readonly mapping: {
613
808
  readonly flowmodule: "#/components/schemas/FlowModuleTool";
614
809
  readonly mcp: "#/components/schemas/McpToolValue";
810
+ readonly websearch: "#/components/schemas/WebsearchToolValue";
615
811
  };
616
812
  };
617
813
  };
@@ -625,12 +821,14 @@ export declare const $AiAgent: {
625
821
  };
626
822
  readonly parallel: {
627
823
  readonly type: "boolean";
824
+ readonly description: "If true, the agent can execute multiple tool calls in parallel";
628
825
  };
629
826
  };
630
827
  readonly required: readonly ["tools", "type", "input_transforms"];
631
828
  };
632
829
  export declare const $Identity: {
633
830
  readonly type: "object";
831
+ readonly description: "Pass-through module that returns its input unchanged. Useful for flow structure or as a placeholder";
634
832
  readonly properties: {
635
833
  readonly type: {
636
834
  readonly type: "string";
@@ -638,6 +836,7 @@ export declare const $Identity: {
638
836
  };
639
837
  readonly flow: {
640
838
  readonly type: "boolean";
839
+ readonly description: "If true, marks this as a flow identity (special handling)";
641
840
  };
642
841
  };
643
842
  readonly required: readonly ["type"];
@@ -722,6 +921,9 @@ export declare const $FlowStatusModule: {
722
921
  readonly type: "array";
723
922
  readonly items: {};
724
923
  };
924
+ readonly itered_len: {
925
+ readonly type: "integer";
926
+ };
725
927
  readonly args: {};
726
928
  };
727
929
  };
@@ -849,6 +1051,15 @@ export declare const $FlowStatusModule: {
849
1051
  };
850
1052
  };
851
1053
  readonly required: readonly ["call_id", "function_name", "resource_path", "type"];
1054
+ }, {
1055
+ readonly type: "object";
1056
+ readonly properties: {
1057
+ readonly type: {
1058
+ readonly type: "string";
1059
+ readonly enum: readonly ["web_search"];
1060
+ };
1061
+ };
1062
+ readonly required: readonly ["type"];
852
1063
  }, {
853
1064
  readonly type: "object";
854
1065
  readonly properties: {
@@ -1161,6 +1372,58 @@ export declare const $Configs: {
1161
1372
  };
1162
1373
  };
1163
1374
  };
1375
+ export declare const $WorkspaceDependencies: {
1376
+ readonly type: "object";
1377
+ readonly properties: {
1378
+ readonly id: {
1379
+ readonly type: "integer";
1380
+ };
1381
+ readonly archived: {
1382
+ readonly type: "boolean";
1383
+ };
1384
+ readonly name: {
1385
+ readonly type: "string";
1386
+ };
1387
+ readonly description: {
1388
+ readonly type: "string";
1389
+ };
1390
+ readonly content: {
1391
+ readonly type: "string";
1392
+ };
1393
+ readonly language: {
1394
+ readonly $ref: "#/components/schemas/ScriptLang";
1395
+ };
1396
+ readonly workspace_id: {
1397
+ readonly type: "string";
1398
+ };
1399
+ readonly created_at: {
1400
+ readonly type: "string";
1401
+ readonly format: "date-time";
1402
+ };
1403
+ };
1404
+ readonly required: readonly ["workspace_id", "language", "created_at", "content", "id", "archived"];
1405
+ };
1406
+ export declare const $NewWorkspaceDependencies: {
1407
+ readonly type: "object";
1408
+ readonly properties: {
1409
+ readonly workspace_id: {
1410
+ readonly type: "string";
1411
+ };
1412
+ readonly language: {
1413
+ readonly $ref: "#/components/schemas/ScriptLang";
1414
+ };
1415
+ readonly name: {
1416
+ readonly type: "string";
1417
+ };
1418
+ readonly description: {
1419
+ readonly type: "string";
1420
+ };
1421
+ readonly content: {
1422
+ readonly type: "string";
1423
+ };
1424
+ };
1425
+ readonly required: readonly ["workspace_id", "language", "content"];
1426
+ };
1164
1427
  export declare const $Script: {
1165
1428
  readonly type: "object";
1166
1429
  readonly properties: {
@@ -1260,6 +1523,18 @@ export declare const $Script: {
1260
1523
  readonly debounce_delay_s: {
1261
1524
  readonly type: "integer";
1262
1525
  };
1526
+ readonly debounce_args_to_accumulate: {
1527
+ readonly type: "array";
1528
+ readonly items: {
1529
+ readonly type: "string";
1530
+ };
1531
+ };
1532
+ readonly max_total_debouncing_time: {
1533
+ readonly type: "integer";
1534
+ };
1535
+ readonly max_total_debounces_amount: {
1536
+ readonly type: "integer";
1537
+ };
1263
1538
  readonly cache_ttl: {
1264
1539
  readonly type: "number";
1265
1540
  };
@@ -1354,6 +1629,9 @@ export declare const $NewScript: {
1354
1629
  readonly cache_ttl: {
1355
1630
  readonly type: "number";
1356
1631
  };
1632
+ readonly cache_ignore_s3_path: {
1633
+ readonly type: "boolean";
1634
+ };
1357
1635
  readonly dedicated_worker: {
1358
1636
  readonly type: "boolean";
1359
1637
  };
@@ -1384,6 +1662,18 @@ export declare const $NewScript: {
1384
1662
  readonly debounce_delay_s: {
1385
1663
  readonly type: "integer";
1386
1664
  };
1665
+ readonly debounce_args_to_accumulate: {
1666
+ readonly type: "array";
1667
+ readonly items: {
1668
+ readonly type: "string";
1669
+ };
1670
+ };
1671
+ readonly max_total_debouncing_time: {
1672
+ readonly type: "integer";
1673
+ };
1674
+ readonly max_total_debounces_amount: {
1675
+ readonly type: "integer";
1676
+ };
1387
1677
  readonly visible_to_runner_only: {
1388
1678
  readonly type: "boolean";
1389
1679
  };
@@ -1576,7 +1866,7 @@ export declare const $QueuedJob: {
1576
1866
  };
1577
1867
  readonly job_kind: {
1578
1868
  readonly type: "string";
1579
- readonly enum: readonly ["script", "preview", "dependencies", "flowdependencies", "appdependencies", "flow", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlestepflow", "flowscript", "flownode", "appscript", "aiagent"];
1869
+ readonly enum: readonly ["script", "preview", "dependencies", "flowdependencies", "appdependencies", "flow", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlestepflow", "flowscript", "flownode", "appscript", "aiagent", "unassigned_script", "unassigned_flow", "unassigned_singlestepflow"];
1580
1870
  };
1581
1871
  readonly schedule_path: {
1582
1872
  readonly type: "string";
@@ -1631,14 +1921,299 @@ export declare const $QueuedJob: {
1631
1921
  readonly type: "string";
1632
1922
  };
1633
1923
  };
1634
- readonly required: readonly ["id", "running", "canceled", "job_kind", "permissioned_as", "is_flow_step", "email", "visible_to_owner", "tag"];
1924
+ readonly required: readonly ["id", "running", "canceled", "job_kind", "permissioned_as", "is_flow_step", "email", "visible_to_owner", "tag"];
1925
+ };
1926
+ export declare const $CompletedJob: {
1927
+ readonly type: "object";
1928
+ readonly properties: {
1929
+ readonly workspace_id: {
1930
+ readonly type: "string";
1931
+ };
1932
+ readonly id: {
1933
+ readonly type: "string";
1934
+ readonly format: "uuid";
1935
+ };
1936
+ readonly parent_job: {
1937
+ readonly type: "string";
1938
+ readonly format: "uuid";
1939
+ };
1940
+ readonly created_by: {
1941
+ readonly type: "string";
1942
+ };
1943
+ readonly created_at: {
1944
+ readonly type: "string";
1945
+ readonly format: "date-time";
1946
+ };
1947
+ readonly started_at: {
1948
+ readonly type: "string";
1949
+ readonly format: "date-time";
1950
+ };
1951
+ readonly completed_at: {
1952
+ readonly type: "string";
1953
+ readonly format: "date-time";
1954
+ };
1955
+ readonly duration_ms: {
1956
+ readonly type: "integer";
1957
+ };
1958
+ readonly success: {
1959
+ readonly type: "boolean";
1960
+ };
1961
+ readonly script_path: {
1962
+ readonly type: "string";
1963
+ };
1964
+ readonly script_hash: {
1965
+ readonly type: "string";
1966
+ };
1967
+ readonly args: {
1968
+ readonly $ref: "#/components/schemas/ScriptArgs";
1969
+ };
1970
+ readonly result: {};
1971
+ readonly logs: {
1972
+ readonly type: "string";
1973
+ };
1974
+ readonly deleted: {
1975
+ readonly type: "boolean";
1976
+ };
1977
+ readonly raw_code: {
1978
+ readonly type: "string";
1979
+ };
1980
+ readonly canceled: {
1981
+ readonly type: "boolean";
1982
+ };
1983
+ readonly canceled_by: {
1984
+ readonly type: "string";
1985
+ };
1986
+ readonly canceled_reason: {
1987
+ readonly type: "string";
1988
+ };
1989
+ readonly job_kind: {
1990
+ readonly type: "string";
1991
+ readonly enum: readonly ["script", "preview", "dependencies", "flow", "flowdependencies", "appdependencies", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlestepflow", "flowscript", "flownode", "appscript", "aiagent", "unassigned_script", "unassigned_flow", "unassigned_singlestepflow"];
1992
+ };
1993
+ readonly schedule_path: {
1994
+ readonly type: "string";
1995
+ };
1996
+ readonly permissioned_as: {
1997
+ readonly type: "string";
1998
+ readonly description: "The user (u/userfoo) or group (g/groupfoo) whom\nthe execution of this script will be permissioned_as and by extension its DT_TOKEN.\n";
1999
+ };
2000
+ readonly flow_status: {
2001
+ readonly $ref: "#/components/schemas/FlowStatus";
2002
+ };
2003
+ readonly workflow_as_code_status: {
2004
+ readonly $ref: "#/components/schemas/WorkflowStatus";
2005
+ };
2006
+ readonly raw_flow: {
2007
+ readonly $ref: "#/components/schemas/FlowValue";
2008
+ };
2009
+ readonly is_flow_step: {
2010
+ readonly type: "boolean";
2011
+ };
2012
+ readonly language: {
2013
+ readonly $ref: "#/components/schemas/ScriptLang";
2014
+ };
2015
+ readonly is_skipped: {
2016
+ readonly type: "boolean";
2017
+ };
2018
+ readonly email: {
2019
+ readonly type: "string";
2020
+ };
2021
+ readonly visible_to_owner: {
2022
+ readonly type: "boolean";
2023
+ };
2024
+ readonly mem_peak: {
2025
+ readonly type: "integer";
2026
+ };
2027
+ readonly tag: {
2028
+ readonly type: "string";
2029
+ };
2030
+ readonly priority: {
2031
+ readonly type: "integer";
2032
+ };
2033
+ readonly labels: {
2034
+ readonly type: "array";
2035
+ readonly items: {
2036
+ readonly type: "string";
2037
+ };
2038
+ };
2039
+ readonly self_wait_time_ms: {
2040
+ readonly type: "number";
2041
+ };
2042
+ readonly aggregate_wait_time_ms: {
2043
+ readonly type: "number";
2044
+ };
2045
+ readonly preprocessed: {
2046
+ readonly type: "boolean";
2047
+ };
2048
+ readonly worker: {
2049
+ readonly type: "string";
2050
+ };
2051
+ };
2052
+ readonly required: readonly ["id", "created_by", "duration_ms", "created_at", "started_at", "success", "canceled", "job_kind", "permissioned_as", "is_flow_step", "is_skipped", "email", "visible_to_owner", "tag"];
2053
+ };
2054
+ export declare const $ExportableCompletedJob: {
2055
+ readonly type: "object";
2056
+ readonly description: "Completed job with full data for export/import operations";
2057
+ readonly properties: {
2058
+ readonly id: {
2059
+ readonly type: "string";
2060
+ readonly format: "uuid";
2061
+ };
2062
+ readonly parent_job: {
2063
+ readonly type: "string";
2064
+ readonly format: "uuid";
2065
+ };
2066
+ readonly created_by: {
2067
+ readonly type: "string";
2068
+ };
2069
+ readonly created_at: {
2070
+ readonly type: "string";
2071
+ readonly format: "date-time";
2072
+ };
2073
+ readonly started_at: {
2074
+ readonly type: "string";
2075
+ readonly format: "date-time";
2076
+ };
2077
+ readonly completed_at: {
2078
+ readonly type: "string";
2079
+ readonly format: "date-time";
2080
+ };
2081
+ readonly duration_ms: {
2082
+ readonly type: "integer";
2083
+ };
2084
+ readonly script_path: {
2085
+ readonly type: "string";
2086
+ };
2087
+ readonly script_hash: {
2088
+ readonly type: "string";
2089
+ };
2090
+ readonly args: {
2091
+ readonly type: "object";
2092
+ readonly description: "Full job arguments without size restrictions";
2093
+ };
2094
+ readonly result: {
2095
+ readonly type: "object";
2096
+ readonly description: "Full job result without size restrictions";
2097
+ };
2098
+ readonly logs: {
2099
+ readonly type: "string";
2100
+ readonly description: "Complete job logs from v2_job table";
2101
+ };
2102
+ readonly raw_code: {
2103
+ readonly type: "string";
2104
+ };
2105
+ readonly raw_lock: {
2106
+ readonly type: "string";
2107
+ };
2108
+ readonly canceled_by: {
2109
+ readonly type: "string";
2110
+ };
2111
+ readonly canceled_reason: {
2112
+ readonly type: "string";
2113
+ };
2114
+ readonly job_kind: {
2115
+ readonly type: "string";
2116
+ readonly enum: readonly ["script", "preview", "dependencies", "flow", "flowdependencies", "appdependencies", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlestepflow", "flowscript", "flownode", "appscript", "aiagent", "unassigned_script", "unassigned_flow", "unassigned_singlestepflow"];
2117
+ };
2118
+ readonly trigger: {
2119
+ readonly type: "string";
2120
+ readonly description: "Trigger path for the job (replaces schedule_path)";
2121
+ };
2122
+ readonly trigger_kind: {
2123
+ readonly type: "string";
2124
+ readonly enum: readonly ["webhook", "http", "websocket", "kafka", "email", "nats", "schedule", "app", "ui", "postgres", "sqs", "gcp"];
2125
+ };
2126
+ readonly permissioned_as: {
2127
+ readonly type: "string";
2128
+ };
2129
+ readonly permissioned_as_email: {
2130
+ readonly type: "string";
2131
+ };
2132
+ readonly flow_status: {
2133
+ readonly type: "object";
2134
+ readonly description: "Flow status from v2_job_status table";
2135
+ };
2136
+ readonly workflow_as_code_status: {
2137
+ readonly type: "object";
2138
+ };
2139
+ readonly raw_flow: {
2140
+ readonly type: "object";
2141
+ };
2142
+ readonly is_flow_step: {
2143
+ readonly type: "boolean";
2144
+ };
2145
+ readonly language: {
2146
+ readonly $ref: "#/components/schemas/ScriptLang";
2147
+ };
2148
+ readonly is_skipped: {
2149
+ readonly type: "boolean";
2150
+ };
2151
+ readonly email: {
2152
+ readonly type: "string";
2153
+ };
2154
+ readonly visible_to_owner: {
2155
+ readonly type: "boolean";
2156
+ };
2157
+ readonly mem_peak: {
2158
+ readonly type: "integer";
2159
+ };
2160
+ readonly tag: {
2161
+ readonly type: "string";
2162
+ };
2163
+ readonly priority: {
2164
+ readonly type: "integer";
2165
+ };
2166
+ readonly labels: {
2167
+ readonly type: "array";
2168
+ readonly items: {
2169
+ readonly type: "string";
2170
+ };
2171
+ };
2172
+ readonly same_worker: {
2173
+ readonly type: "boolean";
2174
+ };
2175
+ readonly flow_step_id: {
2176
+ readonly type: "string";
2177
+ };
2178
+ readonly flow_innermost_root_job: {
2179
+ readonly type: "string";
2180
+ readonly format: "uuid";
2181
+ };
2182
+ readonly concurrent_limit: {
2183
+ readonly type: "integer";
2184
+ };
2185
+ readonly concurrency_time_window_s: {
2186
+ readonly type: "integer";
2187
+ };
2188
+ readonly timeout: {
2189
+ readonly type: "integer";
2190
+ };
2191
+ readonly cache_ttl: {
2192
+ readonly type: "integer";
2193
+ };
2194
+ readonly self_wait_time_ms: {
2195
+ readonly type: "integer";
2196
+ };
2197
+ readonly aggregate_wait_time_ms: {
2198
+ readonly type: "integer";
2199
+ };
2200
+ readonly preprocessed: {
2201
+ readonly type: "boolean";
2202
+ };
2203
+ readonly worker: {
2204
+ readonly type: "string";
2205
+ };
2206
+ readonly status: {
2207
+ readonly type: "string";
2208
+ readonly description: "Actual job status from database";
2209
+ };
2210
+ };
2211
+ readonly required: readonly ["id", "created_by", "created_at", "job_kind", "permissioned_as", "email", "visible_to_owner"];
1635
2212
  };
1636
- export declare const $CompletedJob: {
2213
+ export declare const $ExportableQueuedJob: {
1637
2214
  readonly type: "object";
2215
+ readonly description: "Queued job with full data for export/import operations";
1638
2216
  readonly properties: {
1639
- readonly workspace_id: {
1640
- readonly type: "string";
1641
- };
1642
2217
  readonly id: {
1643
2218
  readonly type: "string";
1644
2219
  readonly format: "uuid";
@@ -1658,16 +2233,10 @@ export declare const $CompletedJob: {
1658
2233
  readonly type: "string";
1659
2234
  readonly format: "date-time";
1660
2235
  };
1661
- readonly completed_at: {
2236
+ readonly scheduled_for: {
1662
2237
  readonly type: "string";
1663
2238
  readonly format: "date-time";
1664
2239
  };
1665
- readonly duration_ms: {
1666
- readonly type: "integer";
1667
- };
1668
- readonly success: {
1669
- readonly type: "boolean";
1670
- };
1671
2240
  readonly script_path: {
1672
2241
  readonly type: "string";
1673
2242
  };
@@ -1675,20 +2244,18 @@ export declare const $CompletedJob: {
1675
2244
  readonly type: "string";
1676
2245
  };
1677
2246
  readonly args: {
1678
- readonly $ref: "#/components/schemas/ScriptArgs";
2247
+ readonly type: "object";
2248
+ readonly description: "Full job arguments without size restrictions";
1679
2249
  };
1680
- readonly result: {};
1681
2250
  readonly logs: {
1682
2251
  readonly type: "string";
1683
- };
1684
- readonly deleted: {
1685
- readonly type: "boolean";
2252
+ readonly description: "Complete job logs from v2_job table";
1686
2253
  };
1687
2254
  readonly raw_code: {
1688
2255
  readonly type: "string";
1689
2256
  };
1690
- readonly canceled: {
1691
- readonly type: "boolean";
2257
+ readonly raw_lock: {
2258
+ readonly type: "string";
1692
2259
  };
1693
2260
  readonly canceled_by: {
1694
2261
  readonly type: "string";
@@ -1698,23 +2265,31 @@ export declare const $CompletedJob: {
1698
2265
  };
1699
2266
  readonly job_kind: {
1700
2267
  readonly type: "string";
1701
- readonly enum: readonly ["script", "preview", "dependencies", "flow", "flowdependencies", "appdependencies", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlestepflow", "flowscript", "flownode", "appscript", "aiagent"];
2268
+ readonly enum: readonly ["script", "preview", "dependencies", "flowdependencies", "appdependencies", "flow", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlestepflow", "flowscript", "flownode", "appscript", "aiagent", "unassigned_script", "unassigned_flow", "unassigned_singlestepflow"];
1702
2269
  };
1703
- readonly schedule_path: {
2270
+ readonly trigger: {
2271
+ readonly type: "string";
2272
+ readonly description: "Trigger path for the job (replaces schedule_path)";
2273
+ };
2274
+ readonly trigger_kind: {
1704
2275
  readonly type: "string";
2276
+ readonly enum: readonly ["webhook", "http", "websocket", "kafka", "email", "nats", "schedule", "app", "ui", "postgres", "sqs", "gcp"];
1705
2277
  };
1706
2278
  readonly permissioned_as: {
1707
2279
  readonly type: "string";
1708
- readonly description: "The user (u/userfoo) or group (g/groupfoo) whom\nthe execution of this script will be permissioned_as and by extension its DT_TOKEN.\n";
2280
+ };
2281
+ readonly permissioned_as_email: {
2282
+ readonly type: "string";
1709
2283
  };
1710
2284
  readonly flow_status: {
1711
- readonly $ref: "#/components/schemas/FlowStatus";
2285
+ readonly type: "object";
2286
+ readonly description: "Flow status from v2_job_status table";
1712
2287
  };
1713
2288
  readonly workflow_as_code_status: {
1714
- readonly $ref: "#/components/schemas/WorkflowStatus";
2289
+ readonly type: "object";
1715
2290
  };
1716
2291
  readonly raw_flow: {
1717
- readonly $ref: "#/components/schemas/FlowValue";
2292
+ readonly type: "object";
1718
2293
  };
1719
2294
  readonly is_flow_step: {
1720
2295
  readonly type: "boolean";
@@ -1722,9 +2297,6 @@ export declare const $CompletedJob: {
1722
2297
  readonly language: {
1723
2298
  readonly $ref: "#/components/schemas/ScriptLang";
1724
2299
  };
1725
- readonly is_skipped: {
1726
- readonly type: "boolean";
1727
- };
1728
2300
  readonly email: {
1729
2301
  readonly type: "string";
1730
2302
  };
@@ -1746,20 +2318,46 @@ export declare const $CompletedJob: {
1746
2318
  readonly type: "string";
1747
2319
  };
1748
2320
  };
2321
+ readonly same_worker: {
2322
+ readonly type: "boolean";
2323
+ };
2324
+ readonly flow_step_id: {
2325
+ readonly type: "string";
2326
+ };
2327
+ readonly flow_innermost_root_job: {
2328
+ readonly type: "string";
2329
+ readonly format: "uuid";
2330
+ };
2331
+ readonly concurrent_limit: {
2332
+ readonly type: "integer";
2333
+ };
2334
+ readonly concurrency_time_window_s: {
2335
+ readonly type: "integer";
2336
+ };
2337
+ readonly timeout: {
2338
+ readonly type: "integer";
2339
+ };
2340
+ readonly cache_ttl: {
2341
+ readonly type: "integer";
2342
+ };
1749
2343
  readonly self_wait_time_ms: {
1750
- readonly type: "number";
2344
+ readonly type: "integer";
1751
2345
  };
1752
2346
  readonly aggregate_wait_time_ms: {
1753
- readonly type: "number";
2347
+ readonly type: "integer";
1754
2348
  };
1755
2349
  readonly preprocessed: {
1756
2350
  readonly type: "boolean";
1757
2351
  };
1758
- readonly worker: {
2352
+ readonly suspend: {
2353
+ readonly type: "integer";
2354
+ };
2355
+ readonly suspend_until: {
1759
2356
  readonly type: "string";
2357
+ readonly format: "date-time";
1760
2358
  };
1761
2359
  };
1762
- readonly required: readonly ["id", "created_by", "duration_ms", "created_at", "started_at", "success", "canceled", "job_kind", "permissioned_as", "is_flow_step", "is_skipped", "email", "visible_to_owner", "tag"];
2360
+ readonly required: readonly ["id", "created_by", "created_at", "job_kind", "permissioned_as", "email", "visible_to_owner"];
1763
2361
  };
1764
2362
  export declare const $ObscuredJob: {
1765
2363
  readonly type: "object";
@@ -1903,6 +2501,15 @@ export declare const $Login: {
1903
2501
  };
1904
2502
  readonly required: readonly ["email", "password"];
1905
2503
  };
2504
+ export declare const $PasswordResetResponse: {
2505
+ readonly type: "object";
2506
+ readonly properties: {
2507
+ readonly message: {
2508
+ readonly type: "string";
2509
+ };
2510
+ };
2511
+ readonly required: readonly ["message"];
2512
+ };
1906
2513
  export declare const $EditWorkspaceUser: {
1907
2514
  readonly type: "object";
1908
2515
  readonly properties: {
@@ -2315,6 +2922,22 @@ export declare const $Preview: {
2315
2922
  };
2316
2923
  readonly required: readonly ["args"];
2317
2924
  };
2925
+ export declare const $PreviewInline: {
2926
+ readonly type: "object";
2927
+ readonly properties: {
2928
+ readonly content: {
2929
+ readonly type: "string";
2930
+ readonly description: "The code to run";
2931
+ };
2932
+ readonly args: {
2933
+ readonly $ref: "#/components/schemas/ScriptArgs";
2934
+ };
2935
+ readonly language: {
2936
+ readonly $ref: "#/components/schemas/ScriptLang";
2937
+ };
2938
+ };
2939
+ readonly required: readonly ["content", "args", "language"];
2940
+ };
2318
2941
  export declare const $WorkflowTask: {
2319
2942
  readonly type: "object";
2320
2943
  readonly properties: {
@@ -2837,6 +3460,16 @@ export declare const $EditSchedule: {
2837
3460
  };
2838
3461
  readonly required: readonly ["schedule", "timezone", "args"];
2839
3462
  };
3463
+ export declare const $JobTriggerKind: {
3464
+ readonly description: "job trigger kind (schedule, http, websocket...)";
3465
+ readonly type: "string";
3466
+ readonly enum: readonly ["webhook", "default_email", "email", "schedule", "http", "websocket", "postgres", "kafka", "nats", "mqtt", "sqs", "gcp"];
3467
+ };
3468
+ export declare const $TriggerMode: {
3469
+ readonly description: "job trigger mode";
3470
+ readonly type: "string";
3471
+ readonly enum: readonly ["enabled", "disabled", "suspended"];
3472
+ };
2840
3473
  export declare const $TriggerExtraProperty: {
2841
3474
  readonly type: "object";
2842
3475
  readonly properties: {
@@ -2868,11 +3501,11 @@ export declare const $TriggerExtraProperty: {
2868
3501
  readonly is_flow: {
2869
3502
  readonly type: "boolean";
2870
3503
  };
2871
- readonly enabled: {
2872
- readonly type: "boolean";
3504
+ readonly mode: {
3505
+ readonly $ref: "#/components/schemas/TriggerMode";
2873
3506
  };
2874
3507
  };
2875
- readonly required: readonly ["path", "script_path", "email", "extra_perms", "workspace_id", "edited_by", "edited_at", "is_flow", "enabled"];
3508
+ readonly required: readonly ["path", "script_path", "email", "extra_perms", "workspace_id", "edited_by", "edited_at", "is_flow", "mode"];
2876
3509
  };
2877
3510
  export declare const $AuthenticationMethod: {
2878
3511
  readonly type: "string";
@@ -3128,8 +3761,8 @@ export declare const $NewHttpTrigger: {
3128
3761
  readonly wrap_body: {
3129
3762
  readonly type: "boolean";
3130
3763
  };
3131
- readonly enabled: {
3132
- readonly type: "boolean";
3764
+ readonly mode: {
3765
+ readonly $ref: "#/components/schemas/TriggerMode";
3133
3766
  };
3134
3767
  readonly raw_string: {
3135
3768
  readonly type: "boolean";
@@ -3345,8 +3978,8 @@ export declare const $NewWebsocketTrigger: {
3345
3978
  readonly url: {
3346
3979
  readonly type: "string";
3347
3980
  };
3348
- readonly enabled: {
3349
- readonly type: "boolean";
3981
+ readonly mode: {
3982
+ readonly $ref: "#/components/schemas/TriggerMode";
3350
3983
  };
3351
3984
  readonly filters: {
3352
3985
  readonly type: "array";
@@ -3598,8 +4231,8 @@ export declare const $NewMqttTrigger: {
3598
4231
  readonly is_flow: {
3599
4232
  readonly type: "boolean";
3600
4233
  };
3601
- readonly enabled: {
3602
- readonly type: "boolean";
4234
+ readonly mode: {
4235
+ readonly $ref: "#/components/schemas/TriggerMode";
3603
4236
  };
3604
4237
  readonly error_handler_path: {
3605
4238
  readonly type: "string";
@@ -3646,8 +4279,8 @@ export declare const $EditMqttTrigger: {
3646
4279
  readonly is_flow: {
3647
4280
  readonly type: "boolean";
3648
4281
  };
3649
- readonly enabled: {
3650
- readonly type: "boolean";
4282
+ readonly mode: {
4283
+ readonly $ref: "#/components/schemas/TriggerMode";
3651
4284
  };
3652
4285
  readonly error_handler_path: {
3653
4286
  readonly type: "string";
@@ -3761,8 +4394,8 @@ export declare const $GcpTriggerData: {
3761
4394
  readonly is_flow: {
3762
4395
  readonly type: "boolean";
3763
4396
  };
3764
- readonly enabled: {
3765
- readonly type: "boolean";
4397
+ readonly mode: {
4398
+ readonly $ref: "#/components/schemas/TriggerMode";
3766
4399
  };
3767
4400
  readonly auto_acknowledge_msg: {
3768
4401
  readonly type: "boolean";
@@ -3855,7 +4488,7 @@ export declare const $LoggedWizardStatus: {
3855
4488
  readonly type: "string";
3856
4489
  readonly enum: readonly ["OK", "SKIP", "FAIL"];
3857
4490
  };
3858
- export declare const $DucklakeInstanceCatalogDbStatusLogs: {
4491
+ export declare const $CustomInstanceDbLogs: {
3859
4492
  readonly type: "object";
3860
4493
  readonly properties: {
3861
4494
  readonly super_admin: {
@@ -3869,7 +4502,6 @@ export declare const $DucklakeInstanceCatalogDbStatusLogs: {
3869
4502
  };
3870
4503
  readonly created_database: {
3871
4504
  readonly $ref: "#/components/schemas/LoggedWizardStatus";
3872
- readonly description: "Created database status log";
3873
4505
  };
3874
4506
  readonly db_connect: {
3875
4507
  readonly $ref: "#/components/schemas/LoggedWizardStatus";
@@ -3879,12 +4511,16 @@ export declare const $DucklakeInstanceCatalogDbStatusLogs: {
3879
4511
  };
3880
4512
  };
3881
4513
  };
3882
- export declare const $DucklakeInstanceCatalogDbStatus: {
4514
+ export declare const $CustomInstanceDbTag: {
4515
+ readonly type: "string";
4516
+ readonly enum: readonly ["ducklake", "datatable"];
4517
+ };
4518
+ export declare const $CustomInstanceDb: {
3883
4519
  readonly type: "object";
3884
4520
  readonly required: readonly ["logs", "success"];
3885
4521
  readonly properties: {
3886
4522
  readonly logs: {
3887
- readonly $ref: "#/components/schemas/DucklakeInstanceCatalogDbStatusLogs";
4523
+ readonly $ref: "#/components/schemas/CustomInstanceDbLogs";
3888
4524
  };
3889
4525
  readonly success: {
3890
4526
  readonly type: "boolean";
@@ -3897,6 +4533,9 @@ export declare const $DucklakeInstanceCatalogDbStatus: {
3897
4533
  readonly description: "Error message if the operation failed";
3898
4534
  readonly example: "Connection timeout";
3899
4535
  };
4536
+ readonly tag: {
4537
+ readonly $ref: "#/components/schemas/CustomInstanceDbTag";
4538
+ };
3900
4539
  };
3901
4540
  };
3902
4541
  export declare const $NewSqsTrigger: {
@@ -3926,8 +4565,8 @@ export declare const $NewSqsTrigger: {
3926
4565
  readonly is_flow: {
3927
4566
  readonly type: "boolean";
3928
4567
  };
3929
- readonly enabled: {
3930
- readonly type: "boolean";
4568
+ readonly mode: {
4569
+ readonly $ref: "#/components/schemas/TriggerMode";
3931
4570
  };
3932
4571
  readonly error_handler_path: {
3933
4572
  readonly type: "string";
@@ -3968,8 +4607,8 @@ export declare const $EditSqsTrigger: {
3968
4607
  readonly is_flow: {
3969
4608
  readonly type: "boolean";
3970
4609
  };
3971
- readonly enabled: {
3972
- readonly type: "boolean";
4610
+ readonly mode: {
4611
+ readonly $ref: "#/components/schemas/TriggerMode";
3973
4612
  };
3974
4613
  readonly error_handler_path: {
3975
4614
  readonly type: "string";
@@ -4130,8 +4769,8 @@ export declare const $NewPostgresTrigger: {
4130
4769
  readonly is_flow: {
4131
4770
  readonly type: "boolean";
4132
4771
  };
4133
- readonly enabled: {
4134
- readonly type: "boolean";
4772
+ readonly mode: {
4773
+ readonly $ref: "#/components/schemas/TriggerMode";
4135
4774
  };
4136
4775
  readonly postgres_resource_path: {
4137
4776
  readonly type: "string";
@@ -4169,8 +4808,8 @@ export declare const $EditPostgresTrigger: {
4169
4808
  readonly is_flow: {
4170
4809
  readonly type: "boolean";
4171
4810
  };
4172
- readonly enabled: {
4173
- readonly type: "boolean";
4811
+ readonly mode: {
4812
+ readonly $ref: "#/components/schemas/TriggerMode";
4174
4813
  };
4175
4814
  readonly postgres_resource_path: {
4176
4815
  readonly type: "string";
@@ -4254,8 +4893,8 @@ export declare const $NewKafkaTrigger: {
4254
4893
  readonly type: "string";
4255
4894
  };
4256
4895
  };
4257
- readonly enabled: {
4258
- readonly type: "boolean";
4896
+ readonly mode: {
4897
+ readonly $ref: "#/components/schemas/TriggerMode";
4259
4898
  };
4260
4899
  readonly error_handler_path: {
4261
4900
  readonly type: "string";
@@ -4381,8 +5020,8 @@ export declare const $NewNatsTrigger: {
4381
5020
  readonly type: "string";
4382
5021
  };
4383
5022
  };
4384
- readonly enabled: {
4385
- readonly type: "boolean";
5023
+ readonly mode: {
5024
+ readonly $ref: "#/components/schemas/TriggerMode";
4386
5025
  };
4387
5026
  readonly error_handler_path: {
4388
5027
  readonly type: "string";
@@ -4489,8 +5128,8 @@ export declare const $NewEmailTrigger: {
4489
5128
  readonly retry: {
4490
5129
  readonly $ref: "#/components/schemas/Retry";
4491
5130
  };
4492
- readonly enabled: {
4493
- readonly type: "boolean";
5131
+ readonly mode: {
5132
+ readonly $ref: "#/components/schemas/TriggerMode";
4494
5133
  };
4495
5134
  };
4496
5135
  readonly required: readonly ["path", "script_path", "local_part", "is_flow"];
@@ -4834,6 +5473,39 @@ export declare const $DependencyMap: {
4834
5473
  };
4835
5474
  };
4836
5475
  };
5476
+ export declare const $DependencyDependent: {
5477
+ readonly type: "object";
5478
+ readonly properties: {
5479
+ readonly importer_path: {
5480
+ readonly type: "string";
5481
+ };
5482
+ readonly importer_kind: {
5483
+ readonly type: "string";
5484
+ readonly enum: readonly ["script", "flow", "app"];
5485
+ };
5486
+ readonly importer_node_ids: {
5487
+ readonly type: "array";
5488
+ readonly items: {
5489
+ readonly type: "string";
5490
+ };
5491
+ readonly nullable: true;
5492
+ };
5493
+ };
5494
+ readonly required: readonly ["importer_path", "importer_kind"];
5495
+ };
5496
+ export declare const $DependentsAmount: {
5497
+ readonly type: "object";
5498
+ readonly properties: {
5499
+ readonly imported_path: {
5500
+ readonly type: "string";
5501
+ };
5502
+ readonly count: {
5503
+ readonly type: "integer";
5504
+ readonly format: "int64";
5505
+ };
5506
+ };
5507
+ readonly required: readonly ["imported_path", "count"];
5508
+ };
4837
5509
  export declare const $WorkspaceInvite: {
4838
5510
  readonly type: "object";
4839
5511
  readonly properties: {
@@ -5036,6 +5708,9 @@ export declare const $RestartedFrom: {
5036
5708
  readonly branch_or_iteration_n: {
5037
5709
  readonly type: "integer";
5038
5710
  };
5711
+ readonly flow_version: {
5712
+ readonly type: "integer";
5713
+ };
5039
5714
  };
5040
5715
  };
5041
5716
  export declare const $Policy: {
@@ -5432,9 +6107,68 @@ export declare const $DucklakeSettings: {
5432
6107
  };
5433
6108
  readonly required: readonly ["path"];
5434
6109
  };
6110
+ readonly extra_args: {
6111
+ readonly type: "string";
6112
+ };
6113
+ };
6114
+ };
6115
+ };
6116
+ };
6117
+ };
6118
+ export declare const $DataTableSettings: {
6119
+ readonly type: "object";
6120
+ readonly required: readonly ["datatables"];
6121
+ readonly properties: {
6122
+ readonly datatables: {
6123
+ readonly type: "object";
6124
+ readonly additionalProperties: {
6125
+ readonly type: "object";
6126
+ readonly required: readonly ["database"];
6127
+ readonly properties: {
6128
+ readonly database: {
6129
+ readonly type: "object";
6130
+ readonly properties: {
6131
+ readonly resource_type: {
6132
+ readonly type: "string";
6133
+ readonly enum: readonly ["postgresql", "instance"];
6134
+ };
6135
+ readonly resource_path: {
6136
+ readonly type: "string";
6137
+ };
6138
+ };
6139
+ readonly required: readonly ["resource_type"];
6140
+ };
6141
+ };
6142
+ };
6143
+ };
6144
+ };
6145
+ };
6146
+ export declare const $DataTableSchema: {
6147
+ readonly type: "object";
6148
+ readonly required: readonly ["datatable_name", "schemas"];
6149
+ readonly properties: {
6150
+ readonly datatable_name: {
6151
+ readonly type: "string";
6152
+ };
6153
+ readonly schemas: {
6154
+ readonly type: "object";
6155
+ readonly description: "Hierarchical schema: schema_name -> table_name -> column_name -> compact_type (e.g. 'int4', 'text?', 'int4?=0')";
6156
+ readonly additionalProperties: {
6157
+ readonly type: "object";
6158
+ readonly description: "Tables in this schema";
6159
+ readonly additionalProperties: {
6160
+ readonly type: "object";
6161
+ readonly description: "Columns in this table";
6162
+ readonly additionalProperties: {
6163
+ readonly type: "string";
6164
+ readonly description: "Compact type: 'type[?][=default]' where ? means nullable";
6165
+ };
5435
6166
  };
5436
6167
  };
5437
6168
  };
6169
+ readonly error: {
6170
+ readonly type: "string";
6171
+ };
5438
6172
  };
5439
6173
  };
5440
6174
  export declare const $DynamicInputData: {
@@ -6020,6 +6754,112 @@ export declare const $OperatorSettings: {
6020
6754
  };
6021
6755
  };
6022
6756
  };
6757
+ export declare const $WorkspaceComparison: {
6758
+ readonly type: "object";
6759
+ readonly required: readonly ["all_ahead_items_visible", "all_behind_items_visible", "skipped_comparison", "diffs", "summary"];
6760
+ readonly properties: {
6761
+ readonly all_ahead_items_visible: {
6762
+ readonly type: "boolean";
6763
+ readonly description: "All items with changes ahead are visible by the user of the request.";
6764
+ };
6765
+ readonly all_behind_items_visible: {
6766
+ readonly type: "boolean";
6767
+ readonly description: "All items with changes behind are visible by the user of the request.";
6768
+ };
6769
+ readonly skipped_comparison: {
6770
+ readonly type: "boolean";
6771
+ readonly description: "Whether the comparison was skipped. This happens with old forks that where not being kept track of";
6772
+ };
6773
+ readonly diffs: {
6774
+ readonly type: "array";
6775
+ readonly description: "List of differences found between workspaces";
6776
+ readonly items: {
6777
+ readonly $ref: "#/components/schemas/WorkspaceItemDiff";
6778
+ };
6779
+ };
6780
+ readonly summary: {
6781
+ readonly $ref: "#/components/schemas/CompareSummary";
6782
+ readonly description: "Summary statistics of the comparison";
6783
+ };
6784
+ };
6785
+ };
6786
+ export declare const $WorkspaceItemDiff: {
6787
+ readonly type: "object";
6788
+ readonly required: readonly ["kind", "path", "ahead", "behind", "has_changes", "exists_in_source", "exists_in_fork"];
6789
+ readonly properties: {
6790
+ readonly kind: {
6791
+ readonly type: "string";
6792
+ readonly enum: readonly ["script", "flow", "app", "resource", "variable"];
6793
+ readonly description: "Type of the item";
6794
+ };
6795
+ readonly path: {
6796
+ readonly type: "string";
6797
+ readonly description: "Path of the item in the workspace";
6798
+ };
6799
+ readonly ahead: {
6800
+ readonly type: "integer";
6801
+ readonly description: "Number of versions source is ahead of target";
6802
+ };
6803
+ readonly behind: {
6804
+ readonly type: "integer";
6805
+ readonly description: "Number of versions source is behind target";
6806
+ };
6807
+ readonly has_changes: {
6808
+ readonly type: "boolean";
6809
+ readonly description: "Whether the item has any differences";
6810
+ };
6811
+ readonly exists_in_source: {
6812
+ readonly type: "boolean";
6813
+ readonly description: "If the item exists in the source workspace";
6814
+ };
6815
+ readonly exists_in_fork: {
6816
+ readonly type: "boolean";
6817
+ readonly description: "If the item exists in the fork workspace";
6818
+ };
6819
+ };
6820
+ };
6821
+ export declare const $CompareSummary: {
6822
+ readonly type: "object";
6823
+ readonly required: readonly ["total_diffs", "total_ahead", "total_behind", "scripts_changed", "flows_changed", "apps_changed", "resources_changed", "variables_changed", "conflicts"];
6824
+ readonly properties: {
6825
+ readonly total_diffs: {
6826
+ readonly type: "integer";
6827
+ readonly description: "Total number of items with differences";
6828
+ };
6829
+ readonly total_ahead: {
6830
+ readonly type: "integer";
6831
+ readonly description: "Total number of ahead changes";
6832
+ };
6833
+ readonly total_behind: {
6834
+ readonly type: "integer";
6835
+ readonly description: "Total number of behind changes";
6836
+ };
6837
+ readonly scripts_changed: {
6838
+ readonly type: "integer";
6839
+ readonly description: "Number of scripts with differences";
6840
+ };
6841
+ readonly flows_changed: {
6842
+ readonly type: "integer";
6843
+ readonly description: "Number of flows with differences";
6844
+ };
6845
+ readonly apps_changed: {
6846
+ readonly type: "integer";
6847
+ readonly description: "Number of apps with differences";
6848
+ };
6849
+ readonly resources_changed: {
6850
+ readonly type: "integer";
6851
+ readonly description: "Number of resources with differences";
6852
+ };
6853
+ readonly variables_changed: {
6854
+ readonly type: "integer";
6855
+ readonly description: "Number of variables with differences";
6856
+ };
6857
+ readonly conflicts: {
6858
+ readonly type: "integer";
6859
+ readonly description: "Number of items that are both ahead and behind (conflicts)";
6860
+ };
6861
+ };
6862
+ };
6023
6863
  export declare const $TeamInfo: {
6024
6864
  readonly type: "object";
6025
6865
  readonly required: readonly ["team_id", "team_name", "channels"];
@@ -6106,6 +6946,10 @@ export declare const $GithubInstallations: {
6106
6946
  readonly type: "number";
6107
6947
  readonly description: "Number of repositories loaded per page";
6108
6948
  };
6949
+ readonly error: {
6950
+ readonly type: "string";
6951
+ readonly description: "Error message if token retrieval failed";
6952
+ };
6109
6953
  };
6110
6954
  readonly required: readonly ["installation_id", "account_id", "repositories", "total_count", "per_page"];
6111
6955
  };
@@ -6176,7 +7020,7 @@ export declare const $AssetUsageAccessType: {
6176
7020
  };
6177
7021
  export declare const $AssetKind: {
6178
7022
  readonly type: "string";
6179
- readonly enum: readonly ["s3object", "resource", "ducklake"];
7023
+ readonly enum: readonly ["s3object", "resource", "ducklake", "datatable"];
6180
7024
  };
6181
7025
  export declare const $Asset: {
6182
7026
  readonly type: "object";