windmill-utils-internal 1.3.0 → 1.3.2
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/config/config.js +18 -60
- package/dist/config/index.js +1 -17
- package/dist/constants.js +2 -5
- package/dist/gen/core/ApiError.js +1 -5
- package/dist/gen/core/ApiRequestOptions.js +1 -2
- package/dist/gen/core/ApiResult.js +1 -2
- package/dist/gen/core/CancelablePromise.js +2 -7
- package/dist/gen/core/OpenAPI.js +3 -7
- package/dist/gen/core/request.js +42 -60
- package/dist/gen/index.js +5 -26
- package/dist/gen/services.gen.d.ts +875 -57
- package/dist/gen/services.gen.js +2876 -1708
- package/dist/gen/types.gen.d.ts +2363 -197
- package/dist/gen/types.gen.js +1 -2
- package/dist/index.js +5 -24
- package/dist/inline-scripts/extractor.d.ts +12 -1
- package/dist/inline-scripts/extractor.js +14 -15
- package/dist/inline-scripts/index.js +2 -18
- package/dist/inline-scripts/replacer.d.ts +1 -1
- package/dist/inline-scripts/replacer.js +5 -7
- package/dist/parse/index.js +1 -17
- package/dist/parse/parse-schema.d.ts +5 -2
- package/dist/parse/parse-schema.js +30 -7
- package/dist/path-utils/index.js +1 -17
- package/dist/path-utils/path-assigner.d.ts +31 -1
- package/dist/path-utils/path-assigner.js +91 -10
- package/package.json +1 -1
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -1,172 +1,607 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Top-level flow definition containing metadata, configuration, and the flow structure
|
|
3
|
+
*/
|
|
1
4
|
export type OpenFlow = {
|
|
5
|
+
/**
|
|
6
|
+
* Short description of what this flow does
|
|
7
|
+
*/
|
|
2
8
|
summary: string;
|
|
9
|
+
/**
|
|
10
|
+
* Detailed documentation for this flow
|
|
11
|
+
*/
|
|
3
12
|
description?: string;
|
|
4
13
|
value: FlowValue;
|
|
14
|
+
/**
|
|
15
|
+
* 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')
|
|
16
|
+
*/
|
|
5
17
|
schema?: {
|
|
6
18
|
[key: string]: unknown;
|
|
7
19
|
};
|
|
8
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* The flow structure containing modules and optional preprocessor/failure handlers
|
|
23
|
+
*/
|
|
9
24
|
export type FlowValue = {
|
|
25
|
+
/**
|
|
26
|
+
* Array of steps that execute in sequence. Each step can be a script, subflow, loop, or branch
|
|
27
|
+
*/
|
|
10
28
|
modules: Array<FlowModule>;
|
|
29
|
+
/**
|
|
30
|
+
* 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
|
|
31
|
+
*/
|
|
11
32
|
failure_module?: FlowModule;
|
|
33
|
+
/**
|
|
34
|
+
* 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
|
|
35
|
+
*/
|
|
12
36
|
preprocessor_module?: FlowModule;
|
|
37
|
+
/**
|
|
38
|
+
* If true, all steps run on the same worker for better performance
|
|
39
|
+
*/
|
|
13
40
|
same_worker?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Maximum number of concurrent executions of this flow
|
|
43
|
+
*/
|
|
14
44
|
concurrent_limit?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Expression to group concurrent executions (e.g., by user ID)
|
|
47
|
+
*/
|
|
15
48
|
concurrency_key?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Time window in seconds for concurrent_limit
|
|
51
|
+
*/
|
|
16
52
|
concurrency_time_window_s?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Delay in seconds to debounce flow executions
|
|
55
|
+
*/
|
|
56
|
+
debounce_delay_s?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Expression to group debounced executions
|
|
59
|
+
*/
|
|
60
|
+
debounce_key?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Arguments to accumulate across debounced executions
|
|
63
|
+
*/
|
|
64
|
+
debounce_args_to_accumulate?: Array<(string)>;
|
|
65
|
+
/**
|
|
66
|
+
* Maximum total time in seconds that a job can be debounced
|
|
67
|
+
*/
|
|
68
|
+
max_total_debouncing_time?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Maximum number of times a job can be debounced
|
|
71
|
+
*/
|
|
72
|
+
max_total_debounces_amount?: number;
|
|
73
|
+
/**
|
|
74
|
+
* JavaScript expression to conditionally skip the entire flow
|
|
75
|
+
*/
|
|
17
76
|
skip_expr?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Cache duration in seconds for flow results
|
|
79
|
+
*/
|
|
18
80
|
cache_ttl?: number;
|
|
81
|
+
cache_ignore_s3_path?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Environment variables available to all steps
|
|
84
|
+
*/
|
|
85
|
+
flow_env?: {
|
|
86
|
+
[key: string]: (string);
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Execution priority (higher numbers run first)
|
|
90
|
+
*/
|
|
19
91
|
priority?: number;
|
|
92
|
+
/**
|
|
93
|
+
* JavaScript expression to return early from the flow
|
|
94
|
+
*/
|
|
20
95
|
early_return?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Whether this flow accepts chat-style input
|
|
98
|
+
*/
|
|
99
|
+
chat_input_enabled?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Sticky notes attached to the flow
|
|
102
|
+
*/
|
|
103
|
+
notes?: Array<FlowNote>;
|
|
21
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Retry configuration for failed module executions
|
|
107
|
+
*/
|
|
22
108
|
export type Retry = {
|
|
109
|
+
/**
|
|
110
|
+
* Retry with constant delay between attempts
|
|
111
|
+
*/
|
|
23
112
|
constant?: {
|
|
113
|
+
/**
|
|
114
|
+
* Number of retry attempts
|
|
115
|
+
*/
|
|
24
116
|
attempts?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Seconds to wait between retries
|
|
119
|
+
*/
|
|
25
120
|
seconds?: number;
|
|
26
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
* Retry with exponential backoff (delay doubles each time)
|
|
124
|
+
*/
|
|
27
125
|
exponential?: {
|
|
126
|
+
/**
|
|
127
|
+
* Number of retry attempts
|
|
128
|
+
*/
|
|
28
129
|
attempts?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Multiplier for exponential backoff
|
|
132
|
+
*/
|
|
29
133
|
multiplier?: number;
|
|
134
|
+
/**
|
|
135
|
+
* Initial delay in seconds
|
|
136
|
+
*/
|
|
30
137
|
seconds?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Random jitter percentage (0-100) to avoid thundering herd
|
|
140
|
+
*/
|
|
31
141
|
random_factor?: number;
|
|
32
142
|
};
|
|
143
|
+
/**
|
|
144
|
+
* Conditional retry based on error or result
|
|
145
|
+
*/
|
|
33
146
|
retry_if?: {
|
|
147
|
+
/**
|
|
148
|
+
* JavaScript expression that returns true to retry. Has access to 'result' and 'error' variables
|
|
149
|
+
*/
|
|
34
150
|
expr: string;
|
|
35
151
|
};
|
|
36
152
|
};
|
|
153
|
+
/**
|
|
154
|
+
* Early termination condition for a module
|
|
155
|
+
*/
|
|
37
156
|
export type StopAfterIf = {
|
|
157
|
+
/**
|
|
158
|
+
* If true, following steps are skipped when this condition triggers
|
|
159
|
+
*/
|
|
38
160
|
skip_if_stopped?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* JavaScript expression evaluated after the module runs. Can use 'result' (step's result) or 'flow_input'. Return true to stop
|
|
163
|
+
*/
|
|
39
164
|
expr: string;
|
|
165
|
+
/**
|
|
166
|
+
* Custom error message shown when stopping
|
|
167
|
+
*/
|
|
40
168
|
error_message?: string;
|
|
41
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* A single step in a flow. Can be a script, subflow, loop, or branch
|
|
172
|
+
*/
|
|
42
173
|
export type FlowModule = {
|
|
174
|
+
/**
|
|
175
|
+
* Unique identifier for this step. Used to reference results via 'results.step_id'. Must be a valid identifier (alphanumeric, underscore, hyphen)
|
|
176
|
+
*/
|
|
43
177
|
id: string;
|
|
44
178
|
value: FlowModuleValue;
|
|
179
|
+
/**
|
|
180
|
+
* Early termination condition evaluated after this step completes
|
|
181
|
+
*/
|
|
45
182
|
stop_after_if?: StopAfterIf;
|
|
183
|
+
/**
|
|
184
|
+
* For loops only - early termination condition evaluated after all iterations complete
|
|
185
|
+
*/
|
|
46
186
|
stop_after_all_iters_if?: StopAfterIf;
|
|
187
|
+
/**
|
|
188
|
+
* Conditionally skip this step based on previous results or flow inputs
|
|
189
|
+
*/
|
|
47
190
|
skip_if?: {
|
|
191
|
+
/**
|
|
192
|
+
* JavaScript expression that returns true to skip. Can use 'flow_input' or 'results.<step_id>'
|
|
193
|
+
*/
|
|
48
194
|
expr: string;
|
|
49
195
|
};
|
|
196
|
+
/**
|
|
197
|
+
* Delay before executing this step (in seconds or as expression)
|
|
198
|
+
*/
|
|
50
199
|
sleep?: InputTransform;
|
|
200
|
+
/**
|
|
201
|
+
* Cache duration in seconds for this step's results
|
|
202
|
+
*/
|
|
51
203
|
cache_ttl?: number;
|
|
52
|
-
|
|
204
|
+
cache_ignore_s3_path?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Maximum execution time in seconds (static value or expression)
|
|
207
|
+
*/
|
|
208
|
+
timeout?: InputTransform;
|
|
209
|
+
/**
|
|
210
|
+
* If true, this step's result is deleted after use to save memory
|
|
211
|
+
*/
|
|
53
212
|
delete_after_use?: boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Short description of what this step does
|
|
215
|
+
*/
|
|
54
216
|
summary?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Mock configuration for testing without executing the actual step
|
|
219
|
+
*/
|
|
55
220
|
mock?: {
|
|
221
|
+
/**
|
|
222
|
+
* If true, return mock value instead of executing
|
|
223
|
+
*/
|
|
56
224
|
enabled?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Value to return when mocked
|
|
227
|
+
*/
|
|
57
228
|
return_value?: unknown;
|
|
58
229
|
};
|
|
230
|
+
/**
|
|
231
|
+
* Configuration for approval/resume steps that wait for user input
|
|
232
|
+
*/
|
|
59
233
|
suspend?: {
|
|
234
|
+
/**
|
|
235
|
+
* Number of approvals required before continuing
|
|
236
|
+
*/
|
|
60
237
|
required_events?: number;
|
|
238
|
+
/**
|
|
239
|
+
* Timeout in seconds before auto-continuing or canceling
|
|
240
|
+
*/
|
|
61
241
|
timeout?: number;
|
|
242
|
+
/**
|
|
243
|
+
* Form schema for collecting input when resuming
|
|
244
|
+
*/
|
|
62
245
|
resume_form?: {
|
|
246
|
+
/**
|
|
247
|
+
* JSON Schema for the resume form
|
|
248
|
+
*/
|
|
63
249
|
schema?: {
|
|
64
250
|
[key: string]: unknown;
|
|
65
251
|
};
|
|
66
252
|
};
|
|
253
|
+
/**
|
|
254
|
+
* If true, only authenticated users can approve
|
|
255
|
+
*/
|
|
67
256
|
user_auth_required?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Expression or list of groups that can approve
|
|
259
|
+
*/
|
|
68
260
|
user_groups_required?: InputTransform;
|
|
261
|
+
/**
|
|
262
|
+
* If true, the user who started the flow cannot approve
|
|
263
|
+
*/
|
|
69
264
|
self_approval_disabled?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* If true, hide the cancel button on the approval form
|
|
267
|
+
*/
|
|
70
268
|
hide_cancel?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* If true, continue flow on timeout instead of canceling
|
|
271
|
+
*/
|
|
71
272
|
continue_on_disapprove_timeout?: boolean;
|
|
72
273
|
};
|
|
274
|
+
/**
|
|
275
|
+
* Execution priority for this step (higher numbers run first)
|
|
276
|
+
*/
|
|
73
277
|
priority?: number;
|
|
278
|
+
/**
|
|
279
|
+
* If true, flow continues even if this step fails
|
|
280
|
+
*/
|
|
74
281
|
continue_on_error?: boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Retry configuration if this step fails
|
|
284
|
+
*/
|
|
75
285
|
retry?: Retry;
|
|
76
286
|
};
|
|
287
|
+
/**
|
|
288
|
+
* Maps input parameters for a step. Can be a static value or a JavaScript expression that references previous results or flow inputs
|
|
289
|
+
*/
|
|
77
290
|
export type InputTransform = StaticTransform | JavascriptTransform;
|
|
291
|
+
/**
|
|
292
|
+
* Static value passed directly to the step. Use for hardcoded values or resource references like '$res:path/to/resource'
|
|
293
|
+
*/
|
|
78
294
|
export type StaticTransform = {
|
|
79
|
-
|
|
295
|
+
/**
|
|
296
|
+
* The static value. For resources, use format '$res:path/to/resource'
|
|
297
|
+
*/
|
|
298
|
+
value?: unknown;
|
|
80
299
|
type: 'static';
|
|
81
300
|
};
|
|
301
|
+
/**
|
|
302
|
+
* 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
|
|
303
|
+
*/
|
|
82
304
|
export type JavascriptTransform = {
|
|
305
|
+
/**
|
|
306
|
+
* JavaScript expression returning the value. Available variables - results (object with all previous step results), flow_input (flow inputs), flow_input.iter (in loops)
|
|
307
|
+
*/
|
|
83
308
|
expr: string;
|
|
84
309
|
type: 'javascript';
|
|
85
310
|
};
|
|
311
|
+
/**
|
|
312
|
+
* The actual implementation of a flow step. Can be a script (inline or referenced), subflow, loop, branch, or special module type
|
|
313
|
+
*/
|
|
86
314
|
export type FlowModuleValue = RawScript | PathScript | PathFlow | ForloopFlow | WhileloopFlow | BranchOne | BranchAll | Identity | AiAgent;
|
|
315
|
+
/**
|
|
316
|
+
* Inline script with code defined directly in the flow. Use 'bun' as default language if unspecified. The script receives arguments from input_transforms
|
|
317
|
+
*/
|
|
87
318
|
export type RawScript = {
|
|
319
|
+
/**
|
|
320
|
+
* Map of parameter names to their values (static or JavaScript expressions). These become the script's input arguments
|
|
321
|
+
*/
|
|
88
322
|
input_transforms: {
|
|
89
323
|
[key: string]: InputTransform;
|
|
90
324
|
};
|
|
325
|
+
/**
|
|
326
|
+
* The script source code. Should export a 'main' function
|
|
327
|
+
*/
|
|
91
328
|
content: string;
|
|
329
|
+
/**
|
|
330
|
+
* Programming language for this script
|
|
331
|
+
*/
|
|
92
332
|
language: 'deno' | 'bun' | 'python3' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'php';
|
|
333
|
+
/**
|
|
334
|
+
* Optional path for saving this script
|
|
335
|
+
*/
|
|
93
336
|
path?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Lock file content for dependencies
|
|
339
|
+
*/
|
|
94
340
|
lock?: string;
|
|
95
341
|
type: 'rawscript';
|
|
342
|
+
/**
|
|
343
|
+
* Worker group tag for execution routing
|
|
344
|
+
*/
|
|
96
345
|
tag?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Maximum concurrent executions of this script
|
|
348
|
+
*/
|
|
97
349
|
concurrent_limit?: number;
|
|
350
|
+
/**
|
|
351
|
+
* Time window for concurrent_limit
|
|
352
|
+
*/
|
|
98
353
|
concurrency_time_window_s?: number;
|
|
354
|
+
/**
|
|
355
|
+
* Custom key for grouping concurrent executions
|
|
356
|
+
*/
|
|
99
357
|
custom_concurrency_key?: string;
|
|
358
|
+
/**
|
|
359
|
+
* If true, this script is a trigger that can start the flow
|
|
360
|
+
*/
|
|
100
361
|
is_trigger?: boolean;
|
|
362
|
+
/**
|
|
363
|
+
* External resources this script accesses (S3 objects, resources, etc.)
|
|
364
|
+
*/
|
|
101
365
|
assets?: Array<{
|
|
366
|
+
/**
|
|
367
|
+
* Path to the asset
|
|
368
|
+
*/
|
|
102
369
|
path: string;
|
|
103
|
-
|
|
370
|
+
/**
|
|
371
|
+
* Type of asset
|
|
372
|
+
*/
|
|
373
|
+
kind: 's3object' | 'resource' | 'ducklake' | 'datatable';
|
|
374
|
+
/**
|
|
375
|
+
* Access level for this asset
|
|
376
|
+
*/
|
|
104
377
|
access_type?: 'r' | 'w' | 'rw';
|
|
378
|
+
/**
|
|
379
|
+
* Alternative access level
|
|
380
|
+
*/
|
|
105
381
|
alt_access_type?: 'r' | 'w' | 'rw';
|
|
106
382
|
}>;
|
|
107
383
|
};
|
|
384
|
+
/**
|
|
385
|
+
* Programming language for this script
|
|
386
|
+
*/
|
|
108
387
|
export type language = 'deno' | 'bun' | 'python3' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'php';
|
|
388
|
+
/**
|
|
389
|
+
* Reference to an existing script by path. Use this when calling a previously saved script instead of writing inline code
|
|
390
|
+
*/
|
|
109
391
|
export type PathScript = {
|
|
392
|
+
/**
|
|
393
|
+
* Map of parameter names to their values (static or JavaScript expressions). These become the script's input arguments
|
|
394
|
+
*/
|
|
110
395
|
input_transforms: {
|
|
111
396
|
[key: string]: InputTransform;
|
|
112
397
|
};
|
|
398
|
+
/**
|
|
399
|
+
* Path to the script in the workspace (e.g., 'f/scripts/send_email')
|
|
400
|
+
*/
|
|
113
401
|
path: string;
|
|
402
|
+
/**
|
|
403
|
+
* Optional specific version hash of the script to use
|
|
404
|
+
*/
|
|
114
405
|
hash?: string;
|
|
115
406
|
type: 'script';
|
|
407
|
+
/**
|
|
408
|
+
* Override the script's default worker group tag
|
|
409
|
+
*/
|
|
116
410
|
tag_override?: string;
|
|
411
|
+
/**
|
|
412
|
+
* If true, this script is a trigger that can start the flow
|
|
413
|
+
*/
|
|
117
414
|
is_trigger?: boolean;
|
|
118
415
|
};
|
|
416
|
+
/**
|
|
417
|
+
* Reference to an existing flow by path. Use this to call another flow as a subflow
|
|
418
|
+
*/
|
|
119
419
|
export type PathFlow = {
|
|
420
|
+
/**
|
|
421
|
+
* Map of parameter names to their values (static or JavaScript expressions). These become the subflow's input arguments
|
|
422
|
+
*/
|
|
120
423
|
input_transforms: {
|
|
121
424
|
[key: string]: InputTransform;
|
|
122
425
|
};
|
|
426
|
+
/**
|
|
427
|
+
* Path to the flow in the workspace (e.g., 'f/flows/process_user')
|
|
428
|
+
*/
|
|
123
429
|
path: string;
|
|
124
430
|
type: 'flow';
|
|
125
431
|
};
|
|
432
|
+
/**
|
|
433
|
+
* 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
|
|
434
|
+
*/
|
|
126
435
|
export type ForloopFlow = {
|
|
436
|
+
/**
|
|
437
|
+
* Steps to execute for each iteration. These can reference the iteration value via 'flow_input.iter.value'
|
|
438
|
+
*/
|
|
127
439
|
modules: Array<FlowModule>;
|
|
440
|
+
/**
|
|
441
|
+
* JavaScript expression that returns an array to iterate over. Can reference 'results.step_id' or 'flow_input'
|
|
442
|
+
*/
|
|
128
443
|
iterator: InputTransform;
|
|
444
|
+
/**
|
|
445
|
+
* If true, iteration failures don't stop the loop. Failed iterations return null
|
|
446
|
+
*/
|
|
129
447
|
skip_failures: boolean;
|
|
130
448
|
type: 'forloopflow';
|
|
449
|
+
/**
|
|
450
|
+
* If true, iterations run concurrently (faster for I/O-bound operations). Use with parallelism to control concurrency
|
|
451
|
+
*/
|
|
131
452
|
parallel?: boolean;
|
|
132
|
-
|
|
453
|
+
/**
|
|
454
|
+
* Maximum number of concurrent iterations when parallel=true. Limits resource usage. Can be static number or expression
|
|
455
|
+
*/
|
|
456
|
+
parallelism?: InputTransform;
|
|
457
|
+
squash?: boolean;
|
|
133
458
|
};
|
|
459
|
+
/**
|
|
460
|
+
* 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
|
|
461
|
+
*/
|
|
134
462
|
export type WhileloopFlow = {
|
|
463
|
+
/**
|
|
464
|
+
* Steps to execute in each iteration. Use stop_after_if to control when the loop ends
|
|
465
|
+
*/
|
|
135
466
|
modules: Array<FlowModule>;
|
|
467
|
+
/**
|
|
468
|
+
* If true, iteration failures don't stop the loop. Failed iterations return null
|
|
469
|
+
*/
|
|
136
470
|
skip_failures: boolean;
|
|
137
471
|
type: 'whileloopflow';
|
|
472
|
+
/**
|
|
473
|
+
* If true, iterations run concurrently (use with caution in while loops)
|
|
474
|
+
*/
|
|
138
475
|
parallel?: boolean;
|
|
139
|
-
|
|
476
|
+
/**
|
|
477
|
+
* Maximum number of concurrent iterations when parallel=true
|
|
478
|
+
*/
|
|
479
|
+
parallelism?: InputTransform;
|
|
480
|
+
squash?: boolean;
|
|
140
481
|
};
|
|
482
|
+
/**
|
|
483
|
+
* 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
|
|
484
|
+
*/
|
|
141
485
|
export type BranchOne = {
|
|
486
|
+
/**
|
|
487
|
+
* Array of branches to evaluate in order. The first branch with expr evaluating to true executes
|
|
488
|
+
*/
|
|
142
489
|
branches: Array<{
|
|
490
|
+
/**
|
|
491
|
+
* Short description of this branch condition
|
|
492
|
+
*/
|
|
143
493
|
summary?: string;
|
|
494
|
+
/**
|
|
495
|
+
* JavaScript expression that returns boolean. Can use 'results.step_id' or 'flow_input'. First true expr wins
|
|
496
|
+
*/
|
|
144
497
|
expr: string;
|
|
498
|
+
/**
|
|
499
|
+
* Steps to execute if this branch's expr is true
|
|
500
|
+
*/
|
|
145
501
|
modules: Array<FlowModule>;
|
|
146
502
|
}>;
|
|
503
|
+
/**
|
|
504
|
+
* Steps to execute if no branch expressions match
|
|
505
|
+
*/
|
|
147
506
|
default: Array<FlowModule>;
|
|
148
507
|
type: 'branchone';
|
|
149
508
|
};
|
|
509
|
+
/**
|
|
510
|
+
* Parallel branching where all branches execute simultaneously. Unlike BranchOne, all branches run regardless of conditions. Useful for executing independent tasks concurrently
|
|
511
|
+
*/
|
|
150
512
|
export type BranchAll = {
|
|
513
|
+
/**
|
|
514
|
+
* Array of branches that all execute (either in parallel or sequentially)
|
|
515
|
+
*/
|
|
151
516
|
branches: Array<{
|
|
517
|
+
/**
|
|
518
|
+
* Short description of this branch's purpose
|
|
519
|
+
*/
|
|
152
520
|
summary?: string;
|
|
521
|
+
/**
|
|
522
|
+
* If true, failure in this branch doesn't fail the entire flow
|
|
523
|
+
*/
|
|
153
524
|
skip_failure?: boolean;
|
|
525
|
+
/**
|
|
526
|
+
* Steps to execute in this branch
|
|
527
|
+
*/
|
|
154
528
|
modules: Array<FlowModule>;
|
|
155
529
|
}>;
|
|
156
530
|
type: 'branchall';
|
|
531
|
+
/**
|
|
532
|
+
* If true, all branches execute concurrently. If false, they execute sequentially
|
|
533
|
+
*/
|
|
157
534
|
parallel?: boolean;
|
|
158
535
|
};
|
|
536
|
+
/**
|
|
537
|
+
* 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
|
|
538
|
+
*/
|
|
159
539
|
export type AiAgent = {
|
|
540
|
+
/**
|
|
541
|
+
* Input parameters for the AI agent mapped to their values
|
|
542
|
+
*/
|
|
160
543
|
input_transforms: {
|
|
161
|
-
|
|
544
|
+
provider: InputTransform;
|
|
545
|
+
output_type: InputTransform;
|
|
546
|
+
user_message: InputTransform;
|
|
547
|
+
system_prompt?: InputTransform;
|
|
548
|
+
streaming?: InputTransform;
|
|
549
|
+
memory?: InputTransform;
|
|
550
|
+
output_schema?: InputTransform;
|
|
551
|
+
user_images?: InputTransform;
|
|
552
|
+
max_completion_tokens?: InputTransform;
|
|
553
|
+
temperature?: InputTransform;
|
|
162
554
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
555
|
+
/**
|
|
556
|
+
* Array of tools the agent can use. The agent decides which tools to call based on the task
|
|
557
|
+
*/
|
|
558
|
+
tools: Array<{
|
|
559
|
+
/**
|
|
560
|
+
* Unique identifier for this tool. Cannot contain spaces - use underscores instead (e.g., 'get_user_data' not 'get user data')
|
|
561
|
+
*/
|
|
562
|
+
id: string;
|
|
563
|
+
/**
|
|
564
|
+
* Short description of what this tool does (shown to the AI)
|
|
565
|
+
*/
|
|
566
|
+
summary?: string;
|
|
567
|
+
/**
|
|
568
|
+
* The implementation of a tool. Can be a flow module (script/flow) or an MCP tool reference
|
|
569
|
+
*/
|
|
570
|
+
value: (({
|
|
571
|
+
tool_type: 'flowmodule';
|
|
572
|
+
} & FlowModuleValue) | {
|
|
573
|
+
tool_type: 'mcp';
|
|
574
|
+
/**
|
|
575
|
+
* Path to the MCP resource/server configuration
|
|
576
|
+
*/
|
|
577
|
+
resource_path: string;
|
|
578
|
+
/**
|
|
579
|
+
* Whitelist of specific tools to include from this MCP server
|
|
580
|
+
*/
|
|
581
|
+
include_tools?: Array<(string)>;
|
|
582
|
+
/**
|
|
583
|
+
* Blacklist of tools to exclude from this MCP server
|
|
584
|
+
*/
|
|
585
|
+
exclude_tools?: Array<(string)>;
|
|
586
|
+
} | {
|
|
587
|
+
tool_type: 'websearch';
|
|
588
|
+
});
|
|
589
|
+
}>;
|
|
590
|
+
type: 'aiagent';
|
|
591
|
+
/**
|
|
592
|
+
* If true, the agent can execute multiple tool calls in parallel
|
|
593
|
+
*/
|
|
594
|
+
parallel?: boolean;
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Pass-through module that returns its input unchanged. Useful for flow structure or as a placeholder
|
|
598
|
+
*/
|
|
599
|
+
export type Identity = {
|
|
600
|
+
type: 'identity';
|
|
601
|
+
/**
|
|
602
|
+
* If true, marks this as a flow identity (special handling)
|
|
603
|
+
*/
|
|
604
|
+
flow?: boolean;
|
|
170
605
|
};
|
|
171
606
|
export type FlowStatus = {
|
|
172
607
|
step: number;
|
|
@@ -192,10 +627,15 @@ export type FlowStatusModule = {
|
|
|
192
627
|
iterator?: {
|
|
193
628
|
index?: number;
|
|
194
629
|
itered?: Array<unknown>;
|
|
630
|
+
itered_len?: number;
|
|
195
631
|
args?: unknown;
|
|
196
632
|
};
|
|
197
633
|
flow_jobs?: Array<(string)>;
|
|
198
634
|
flow_jobs_success?: Array<(boolean)>;
|
|
635
|
+
flow_jobs_duration?: {
|
|
636
|
+
started_at?: Array<(string)>;
|
|
637
|
+
duration_ms?: Array<(number)>;
|
|
638
|
+
};
|
|
199
639
|
branch_chosen?: {
|
|
200
640
|
type: 'branch' | 'default';
|
|
201
641
|
branch?: number;
|
|
@@ -215,12 +655,149 @@ export type FlowStatusModule = {
|
|
|
215
655
|
function_name: string;
|
|
216
656
|
type: 'tool_call';
|
|
217
657
|
module_id: string;
|
|
658
|
+
} | {
|
|
659
|
+
call_id: string;
|
|
660
|
+
function_name: string;
|
|
661
|
+
resource_path: string;
|
|
662
|
+
type: 'mcp_tool_call';
|
|
663
|
+
arguments?: {
|
|
664
|
+
[key: string]: unknown;
|
|
665
|
+
};
|
|
666
|
+
} | {
|
|
667
|
+
type: 'web_search';
|
|
218
668
|
} | {
|
|
219
669
|
type: 'message';
|
|
220
670
|
})>;
|
|
221
671
|
agent_actions_success?: Array<(boolean)>;
|
|
222
672
|
};
|
|
223
673
|
export type type = 'WaitingForPriorSteps' | 'WaitingForEvents' | 'WaitingForExecutor' | 'InProgress' | 'Success' | 'Failure';
|
|
674
|
+
/**
|
|
675
|
+
* A sticky note attached to a flow for documentation and annotation
|
|
676
|
+
*/
|
|
677
|
+
export type FlowNote = {
|
|
678
|
+
/**
|
|
679
|
+
* Unique identifier for the note
|
|
680
|
+
*/
|
|
681
|
+
id: string;
|
|
682
|
+
/**
|
|
683
|
+
* Content of the note
|
|
684
|
+
*/
|
|
685
|
+
text: string;
|
|
686
|
+
/**
|
|
687
|
+
* Position of the note in the flow editor
|
|
688
|
+
*/
|
|
689
|
+
position?: {
|
|
690
|
+
/**
|
|
691
|
+
* X coordinate
|
|
692
|
+
*/
|
|
693
|
+
x: number;
|
|
694
|
+
/**
|
|
695
|
+
* Y coordinate
|
|
696
|
+
*/
|
|
697
|
+
y: number;
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* Size of the note in the flow editor
|
|
701
|
+
*/
|
|
702
|
+
size?: {
|
|
703
|
+
/**
|
|
704
|
+
* Width in pixels
|
|
705
|
+
*/
|
|
706
|
+
width: number;
|
|
707
|
+
/**
|
|
708
|
+
* Height in pixels
|
|
709
|
+
*/
|
|
710
|
+
height: number;
|
|
711
|
+
};
|
|
712
|
+
/**
|
|
713
|
+
* Color of the note (e.g., "yellow", "#ffff00")
|
|
714
|
+
*/
|
|
715
|
+
color: string;
|
|
716
|
+
/**
|
|
717
|
+
* Type of note - 'free' for standalone notes, 'group' for notes that group other nodes
|
|
718
|
+
*/
|
|
719
|
+
type: 'free' | 'group';
|
|
720
|
+
/**
|
|
721
|
+
* Whether the note is locked and cannot be edited or moved
|
|
722
|
+
*/
|
|
723
|
+
locked?: boolean;
|
|
724
|
+
/**
|
|
725
|
+
* For group notes, the IDs of nodes contained within this group
|
|
726
|
+
*/
|
|
727
|
+
contained_node_ids?: Array<(string)>;
|
|
728
|
+
};
|
|
729
|
+
/**
|
|
730
|
+
* Type of note - 'free' for standalone notes, 'group' for notes that group other nodes
|
|
731
|
+
*/
|
|
732
|
+
export type type2 = 'free' | 'group';
|
|
733
|
+
export type FlowConversation = {
|
|
734
|
+
/**
|
|
735
|
+
* Unique identifier for the conversation
|
|
736
|
+
*/
|
|
737
|
+
id: string;
|
|
738
|
+
/**
|
|
739
|
+
* The workspace ID where the conversation belongs
|
|
740
|
+
*/
|
|
741
|
+
workspace_id: string;
|
|
742
|
+
/**
|
|
743
|
+
* Path of the flow this conversation is for
|
|
744
|
+
*/
|
|
745
|
+
flow_path: string;
|
|
746
|
+
/**
|
|
747
|
+
* Optional title for the conversation
|
|
748
|
+
*/
|
|
749
|
+
title?: (string) | null;
|
|
750
|
+
/**
|
|
751
|
+
* When the conversation was created
|
|
752
|
+
*/
|
|
753
|
+
created_at: string;
|
|
754
|
+
/**
|
|
755
|
+
* When the conversation was last updated
|
|
756
|
+
*/
|
|
757
|
+
updated_at: string;
|
|
758
|
+
/**
|
|
759
|
+
* Username who created the conversation
|
|
760
|
+
*/
|
|
761
|
+
created_by: string;
|
|
762
|
+
};
|
|
763
|
+
export type FlowConversationMessage = {
|
|
764
|
+
/**
|
|
765
|
+
* Unique identifier for the message
|
|
766
|
+
*/
|
|
767
|
+
id: string;
|
|
768
|
+
/**
|
|
769
|
+
* The conversation this message belongs to
|
|
770
|
+
*/
|
|
771
|
+
conversation_id: string;
|
|
772
|
+
/**
|
|
773
|
+
* Type of the message
|
|
774
|
+
*/
|
|
775
|
+
message_type: 'user' | 'assistant' | 'system' | 'tool';
|
|
776
|
+
/**
|
|
777
|
+
* The message content
|
|
778
|
+
*/
|
|
779
|
+
content: string;
|
|
780
|
+
/**
|
|
781
|
+
* Associated job ID if this message came from a flow run
|
|
782
|
+
*/
|
|
783
|
+
job_id?: (string) | null;
|
|
784
|
+
/**
|
|
785
|
+
* When the message was created
|
|
786
|
+
*/
|
|
787
|
+
created_at: string;
|
|
788
|
+
/**
|
|
789
|
+
* The step name that produced that message
|
|
790
|
+
*/
|
|
791
|
+
step_name?: string;
|
|
792
|
+
/**
|
|
793
|
+
* Whether the message is a success
|
|
794
|
+
*/
|
|
795
|
+
success?: boolean;
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Type of the message
|
|
799
|
+
*/
|
|
800
|
+
export type message_type = 'user' | 'assistant' | 'system' | 'tool';
|
|
224
801
|
export type EndpointTool = {
|
|
225
802
|
/**
|
|
226
803
|
* The tool name/operation ID
|
|
@@ -261,7 +838,7 @@ export type EndpointTool = {
|
|
|
261
838
|
[key: string]: unknown;
|
|
262
839
|
} | null;
|
|
263
840
|
};
|
|
264
|
-
export type AIProvider = 'openai' | 'azure_openai' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'customai';
|
|
841
|
+
export type AIProvider = 'openai' | 'azure_openai' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'aws_bedrock' | 'customai';
|
|
265
842
|
export type GitSyncObjectType = 'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule' | 'user' | 'group' | 'trigger' | 'settings' | 'key';
|
|
266
843
|
export type AIProviderModel = {
|
|
267
844
|
model: string;
|
|
@@ -280,6 +857,9 @@ export type AIConfig = {
|
|
|
280
857
|
custom_prompts?: {
|
|
281
858
|
[key: string]: (string);
|
|
282
859
|
};
|
|
860
|
+
max_tokens_per_model?: {
|
|
861
|
+
[key: string]: (number);
|
|
862
|
+
};
|
|
283
863
|
};
|
|
284
864
|
export type Alert = {
|
|
285
865
|
name: string;
|
|
@@ -291,6 +871,23 @@ export type Alert = {
|
|
|
291
871
|
export type Configs = {
|
|
292
872
|
alerts?: Array<Alert>;
|
|
293
873
|
} | null;
|
|
874
|
+
export type WorkspaceDependencies = {
|
|
875
|
+
id: number;
|
|
876
|
+
archived: boolean;
|
|
877
|
+
name?: string;
|
|
878
|
+
description?: string;
|
|
879
|
+
content: string;
|
|
880
|
+
language: ScriptLang;
|
|
881
|
+
workspace_id: string;
|
|
882
|
+
created_at: string;
|
|
883
|
+
};
|
|
884
|
+
export type NewWorkspaceDependencies = {
|
|
885
|
+
workspace_id: string;
|
|
886
|
+
language: ScriptLang;
|
|
887
|
+
name?: string;
|
|
888
|
+
description?: string;
|
|
889
|
+
content: string;
|
|
890
|
+
};
|
|
294
891
|
export type Script = {
|
|
295
892
|
workspace_id?: string;
|
|
296
893
|
hash: string;
|
|
@@ -326,6 +923,11 @@ export type Script = {
|
|
|
326
923
|
concurrent_limit?: number;
|
|
327
924
|
concurrency_time_window_s?: number;
|
|
328
925
|
concurrency_key?: string;
|
|
926
|
+
debounce_key?: string;
|
|
927
|
+
debounce_delay_s?: number;
|
|
928
|
+
debounce_args_to_accumulate?: Array<(string)>;
|
|
929
|
+
max_total_debouncing_time?: number;
|
|
930
|
+
max_total_debounces_amount?: number;
|
|
329
931
|
cache_ttl?: number;
|
|
330
932
|
dedicated_worker?: boolean;
|
|
331
933
|
ws_error_handler_muted?: boolean;
|
|
@@ -359,6 +961,7 @@ export type NewScript = {
|
|
|
359
961
|
concurrent_limit?: number;
|
|
360
962
|
concurrency_time_window_s?: number;
|
|
361
963
|
cache_ttl?: number;
|
|
964
|
+
cache_ignore_s3_path?: boolean;
|
|
362
965
|
dedicated_worker?: boolean;
|
|
363
966
|
ws_error_handler_muted?: boolean;
|
|
364
967
|
priority?: number;
|
|
@@ -367,6 +970,11 @@ export type NewScript = {
|
|
|
367
970
|
delete_after_use?: boolean;
|
|
368
971
|
deployment_message?: string;
|
|
369
972
|
concurrency_key?: string;
|
|
973
|
+
debounce_key?: string;
|
|
974
|
+
debounce_delay_s?: number;
|
|
975
|
+
debounce_args_to_accumulate?: Array<(string)>;
|
|
976
|
+
max_total_debouncing_time?: number;
|
|
977
|
+
max_total_debounces_amount?: number;
|
|
370
978
|
visible_to_runner_only?: boolean;
|
|
371
979
|
no_main_func?: boolean;
|
|
372
980
|
codebase?: string;
|
|
@@ -431,7 +1039,7 @@ export type QueuedJob = {
|
|
|
431
1039
|
canceled_by?: string;
|
|
432
1040
|
canceled_reason?: string;
|
|
433
1041
|
last_ping?: string;
|
|
434
|
-
job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | '
|
|
1042
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlestepflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent' | 'unassigned_script' | 'unassigned_flow' | 'unassigned_singlestepflow';
|
|
435
1043
|
schedule_path?: string;
|
|
436
1044
|
/**
|
|
437
1045
|
* The user (u/userfoo) or group (g/groupfoo) whom
|
|
@@ -455,7 +1063,7 @@ export type QueuedJob = {
|
|
|
455
1063
|
preprocessed?: boolean;
|
|
456
1064
|
worker?: string;
|
|
457
1065
|
};
|
|
458
|
-
export type job_kind = 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | '
|
|
1066
|
+
export type job_kind = 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlestepflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent' | 'unassigned_script' | 'unassigned_flow' | 'unassigned_singlestepflow';
|
|
459
1067
|
export type CompletedJob = {
|
|
460
1068
|
workspace_id?: string;
|
|
461
1069
|
id: string;
|
|
@@ -463,6 +1071,7 @@ export type CompletedJob = {
|
|
|
463
1071
|
created_by: string;
|
|
464
1072
|
created_at: string;
|
|
465
1073
|
started_at: string;
|
|
1074
|
+
completed_at?: string;
|
|
466
1075
|
duration_ms: number;
|
|
467
1076
|
success: boolean;
|
|
468
1077
|
script_path?: string;
|
|
@@ -475,7 +1084,7 @@ export type CompletedJob = {
|
|
|
475
1084
|
canceled: boolean;
|
|
476
1085
|
canceled_by?: string;
|
|
477
1086
|
canceled_reason?: string;
|
|
478
|
-
job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | '
|
|
1087
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlestepflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent' | 'unassigned_script' | 'unassigned_flow' | 'unassigned_singlestepflow';
|
|
479
1088
|
schedule_path?: string;
|
|
480
1089
|
/**
|
|
481
1090
|
* The user (u/userfoo) or group (g/groupfoo) whom
|
|
@@ -500,6 +1109,152 @@ export type CompletedJob = {
|
|
|
500
1109
|
preprocessed?: boolean;
|
|
501
1110
|
worker?: string;
|
|
502
1111
|
};
|
|
1112
|
+
/**
|
|
1113
|
+
* Completed job with full data for export/import operations
|
|
1114
|
+
*/
|
|
1115
|
+
export type ExportableCompletedJob = {
|
|
1116
|
+
id: string;
|
|
1117
|
+
parent_job?: string;
|
|
1118
|
+
created_by: string;
|
|
1119
|
+
created_at: string;
|
|
1120
|
+
started_at?: string;
|
|
1121
|
+
completed_at?: string;
|
|
1122
|
+
duration_ms?: number;
|
|
1123
|
+
script_path?: string;
|
|
1124
|
+
script_hash?: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* Full job arguments without size restrictions
|
|
1127
|
+
*/
|
|
1128
|
+
args?: {
|
|
1129
|
+
[key: string]: unknown;
|
|
1130
|
+
};
|
|
1131
|
+
/**
|
|
1132
|
+
* Full job result without size restrictions
|
|
1133
|
+
*/
|
|
1134
|
+
result?: {
|
|
1135
|
+
[key: string]: unknown;
|
|
1136
|
+
};
|
|
1137
|
+
/**
|
|
1138
|
+
* Complete job logs from v2_job table
|
|
1139
|
+
*/
|
|
1140
|
+
logs?: string;
|
|
1141
|
+
raw_code?: string;
|
|
1142
|
+
raw_lock?: string;
|
|
1143
|
+
canceled_by?: string;
|
|
1144
|
+
canceled_reason?: string;
|
|
1145
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlestepflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent' | 'unassigned_script' | 'unassigned_flow' | 'unassigned_singlestepflow';
|
|
1146
|
+
/**
|
|
1147
|
+
* Trigger path for the job (replaces schedule_path)
|
|
1148
|
+
*/
|
|
1149
|
+
trigger?: string;
|
|
1150
|
+
trigger_kind?: 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'schedule' | 'app' | 'ui' | 'postgres' | 'sqs' | 'gcp';
|
|
1151
|
+
permissioned_as: string;
|
|
1152
|
+
permissioned_as_email?: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* Flow status from v2_job_status table
|
|
1155
|
+
*/
|
|
1156
|
+
flow_status?: {
|
|
1157
|
+
[key: string]: unknown;
|
|
1158
|
+
};
|
|
1159
|
+
workflow_as_code_status?: {
|
|
1160
|
+
[key: string]: unknown;
|
|
1161
|
+
};
|
|
1162
|
+
raw_flow?: {
|
|
1163
|
+
[key: string]: unknown;
|
|
1164
|
+
};
|
|
1165
|
+
is_flow_step?: boolean;
|
|
1166
|
+
language?: ScriptLang;
|
|
1167
|
+
is_skipped?: boolean;
|
|
1168
|
+
email: string;
|
|
1169
|
+
visible_to_owner: boolean;
|
|
1170
|
+
mem_peak?: number;
|
|
1171
|
+
tag?: string;
|
|
1172
|
+
priority?: number;
|
|
1173
|
+
labels?: Array<(string)>;
|
|
1174
|
+
same_worker?: boolean;
|
|
1175
|
+
flow_step_id?: string;
|
|
1176
|
+
flow_innermost_root_job?: string;
|
|
1177
|
+
concurrent_limit?: number;
|
|
1178
|
+
concurrency_time_window_s?: number;
|
|
1179
|
+
timeout?: number;
|
|
1180
|
+
cache_ttl?: number;
|
|
1181
|
+
self_wait_time_ms?: number;
|
|
1182
|
+
aggregate_wait_time_ms?: number;
|
|
1183
|
+
preprocessed?: boolean;
|
|
1184
|
+
worker?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* Actual job status from database
|
|
1187
|
+
*/
|
|
1188
|
+
status?: string;
|
|
1189
|
+
};
|
|
1190
|
+
export type trigger_kind = 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'schedule' | 'app' | 'ui' | 'postgres' | 'sqs' | 'gcp';
|
|
1191
|
+
/**
|
|
1192
|
+
* Queued job with full data for export/import operations
|
|
1193
|
+
*/
|
|
1194
|
+
export type ExportableQueuedJob = {
|
|
1195
|
+
id: string;
|
|
1196
|
+
parent_job?: string;
|
|
1197
|
+
created_by: string;
|
|
1198
|
+
created_at: string;
|
|
1199
|
+
started_at?: string;
|
|
1200
|
+
scheduled_for?: string;
|
|
1201
|
+
script_path?: string;
|
|
1202
|
+
script_hash?: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* Full job arguments without size restrictions
|
|
1205
|
+
*/
|
|
1206
|
+
args?: {
|
|
1207
|
+
[key: string]: unknown;
|
|
1208
|
+
};
|
|
1209
|
+
/**
|
|
1210
|
+
* Complete job logs from v2_job table
|
|
1211
|
+
*/
|
|
1212
|
+
logs?: string;
|
|
1213
|
+
raw_code?: string;
|
|
1214
|
+
raw_lock?: string;
|
|
1215
|
+
canceled_by?: string;
|
|
1216
|
+
canceled_reason?: string;
|
|
1217
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlestepflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent' | 'unassigned_script' | 'unassigned_flow' | 'unassigned_singlestepflow';
|
|
1218
|
+
/**
|
|
1219
|
+
* Trigger path for the job (replaces schedule_path)
|
|
1220
|
+
*/
|
|
1221
|
+
trigger?: string;
|
|
1222
|
+
trigger_kind?: 'webhook' | 'http' | 'websocket' | 'kafka' | 'email' | 'nats' | 'schedule' | 'app' | 'ui' | 'postgres' | 'sqs' | 'gcp';
|
|
1223
|
+
permissioned_as: string;
|
|
1224
|
+
permissioned_as_email?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* Flow status from v2_job_status table
|
|
1227
|
+
*/
|
|
1228
|
+
flow_status?: {
|
|
1229
|
+
[key: string]: unknown;
|
|
1230
|
+
};
|
|
1231
|
+
workflow_as_code_status?: {
|
|
1232
|
+
[key: string]: unknown;
|
|
1233
|
+
};
|
|
1234
|
+
raw_flow?: {
|
|
1235
|
+
[key: string]: unknown;
|
|
1236
|
+
};
|
|
1237
|
+
is_flow_step?: boolean;
|
|
1238
|
+
language?: ScriptLang;
|
|
1239
|
+
email: string;
|
|
1240
|
+
visible_to_owner: boolean;
|
|
1241
|
+
mem_peak?: number;
|
|
1242
|
+
tag?: string;
|
|
1243
|
+
priority?: number;
|
|
1244
|
+
labels?: Array<(string)>;
|
|
1245
|
+
same_worker?: boolean;
|
|
1246
|
+
flow_step_id?: string;
|
|
1247
|
+
flow_innermost_root_job?: string;
|
|
1248
|
+
concurrent_limit?: number;
|
|
1249
|
+
concurrency_time_window_s?: number;
|
|
1250
|
+
timeout?: number;
|
|
1251
|
+
cache_ttl?: number;
|
|
1252
|
+
self_wait_time_ms?: number;
|
|
1253
|
+
aggregate_wait_time_ms?: number;
|
|
1254
|
+
preprocessed?: boolean;
|
|
1255
|
+
suspend?: number;
|
|
1256
|
+
suspend_until?: string;
|
|
1257
|
+
};
|
|
503
1258
|
export type ObscuredJob = {
|
|
504
1259
|
typ?: string;
|
|
505
1260
|
started_at?: string;
|
|
@@ -510,7 +1265,7 @@ export type Job = (CompletedJob & {
|
|
|
510
1265
|
}) | (QueuedJob & {
|
|
511
1266
|
type?: 'QueuedJob';
|
|
512
1267
|
});
|
|
513
|
-
export type
|
|
1268
|
+
export type type3 = 'CompletedJob';
|
|
514
1269
|
export type User = {
|
|
515
1270
|
email: string;
|
|
516
1271
|
username: string;
|
|
@@ -649,6 +1404,7 @@ export type EditVariable = {
|
|
|
649
1404
|
description?: string;
|
|
650
1405
|
};
|
|
651
1406
|
export type AuditLog = {
|
|
1407
|
+
workspace_id: string;
|
|
652
1408
|
id: number;
|
|
653
1409
|
timestamp: string;
|
|
654
1410
|
username: string;
|
|
@@ -694,7 +1450,7 @@ export type MainArgSignature = {
|
|
|
694
1450
|
no_main_func: (boolean) | null;
|
|
695
1451
|
has_preprocessor: (boolean) | null;
|
|
696
1452
|
};
|
|
697
|
-
export type
|
|
1453
|
+
export type type4 = 'Valid' | 'Invalid';
|
|
698
1454
|
export type ScriptLang = 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp' | 'nu' | 'java' | 'ruby' | 'duckdb';
|
|
699
1455
|
export type Preview = {
|
|
700
1456
|
/**
|
|
@@ -717,6 +1473,14 @@ export type Preview = {
|
|
|
717
1473
|
lock?: string;
|
|
718
1474
|
};
|
|
719
1475
|
export type kind2 = 'code' | 'identity' | 'http';
|
|
1476
|
+
export type PreviewInline = {
|
|
1477
|
+
/**
|
|
1478
|
+
* The code to run
|
|
1479
|
+
*/
|
|
1480
|
+
content: string;
|
|
1481
|
+
args: ScriptArgs;
|
|
1482
|
+
language: ScriptLang;
|
|
1483
|
+
};
|
|
720
1484
|
export type WorkflowTask = {
|
|
721
1485
|
args: ScriptArgs;
|
|
722
1486
|
};
|
|
@@ -835,6 +1599,10 @@ export type Schedule = {
|
|
|
835
1599
|
tag?: string;
|
|
836
1600
|
paused_until?: string;
|
|
837
1601
|
cron_version?: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean.
|
|
1604
|
+
*/
|
|
1605
|
+
dynamic_skip?: string;
|
|
838
1606
|
};
|
|
839
1607
|
export type ScheduleWJobs = Schedule & {
|
|
840
1608
|
jobs?: Array<{
|
|
@@ -941,6 +1709,10 @@ export type NewSchedule = {
|
|
|
941
1709
|
* The version of the cron schedule to use (last is v2)
|
|
942
1710
|
*/
|
|
943
1711
|
cron_version?: string;
|
|
1712
|
+
/**
|
|
1713
|
+
* Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean.
|
|
1714
|
+
*/
|
|
1715
|
+
dynamic_skip?: string;
|
|
944
1716
|
};
|
|
945
1717
|
export type EditSchedule = {
|
|
946
1718
|
/**
|
|
@@ -1023,7 +1795,19 @@ export type EditSchedule = {
|
|
|
1023
1795
|
* The version of the cron schedule to use (last is v2)
|
|
1024
1796
|
*/
|
|
1025
1797
|
cron_version?: string;
|
|
1798
|
+
/**
|
|
1799
|
+
* Path to a script that validates scheduled datetimes. Receives scheduled_for datetime and returns boolean.
|
|
1800
|
+
*/
|
|
1801
|
+
dynamic_skip?: string;
|
|
1026
1802
|
};
|
|
1803
|
+
/**
|
|
1804
|
+
* job trigger kind (schedule, http, websocket...)
|
|
1805
|
+
*/
|
|
1806
|
+
export type JobTriggerKind = 'webhook' | 'default_email' | 'email' | 'schedule' | 'http' | 'websocket' | 'postgres' | 'kafka' | 'nats' | 'mqtt' | 'sqs' | 'gcp';
|
|
1807
|
+
/**
|
|
1808
|
+
* job trigger mode
|
|
1809
|
+
*/
|
|
1810
|
+
export type TriggerMode = 'enabled' | 'disabled' | 'suspended';
|
|
1027
1811
|
export type TriggerExtraProperty = {
|
|
1028
1812
|
path: string;
|
|
1029
1813
|
script_path: string;
|
|
@@ -1035,6 +1819,7 @@ export type TriggerExtraProperty = {
|
|
|
1035
1819
|
edited_by: string;
|
|
1036
1820
|
edited_at: string;
|
|
1037
1821
|
is_flow: boolean;
|
|
1822
|
+
mode: TriggerMode;
|
|
1038
1823
|
};
|
|
1039
1824
|
export type AuthenticationMethod = 'none' | 'windmill' | 'api_key' | 'basic_http' | 'custom_script' | 'signature';
|
|
1040
1825
|
export type RunnableKind = 'script' | 'flow';
|
|
@@ -1075,6 +1860,7 @@ export type GenerateOpenapiSpec = {
|
|
|
1075
1860
|
webhook_filters?: Array<WebhookFilters>;
|
|
1076
1861
|
};
|
|
1077
1862
|
export type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch';
|
|
1863
|
+
export type HttpRequestType = 'sync' | 'async' | 'sync_sse';
|
|
1078
1864
|
export type HttpTrigger = TriggerExtraProperty & {
|
|
1079
1865
|
route_path: string;
|
|
1080
1866
|
static_asset_config?: {
|
|
@@ -1086,7 +1872,7 @@ export type HttpTrigger = TriggerExtraProperty & {
|
|
|
1086
1872
|
authentication_resource_path?: string;
|
|
1087
1873
|
summary?: string;
|
|
1088
1874
|
description?: string;
|
|
1089
|
-
|
|
1875
|
+
request_type: HttpRequestType;
|
|
1090
1876
|
authentication_method: AuthenticationMethod;
|
|
1091
1877
|
is_static_website: boolean;
|
|
1092
1878
|
workspaced_route: boolean;
|
|
@@ -1111,10 +1897,15 @@ export type NewHttpTrigger = {
|
|
|
1111
1897
|
is_flow: boolean;
|
|
1112
1898
|
http_method: HttpMethod;
|
|
1113
1899
|
authentication_resource_path?: string;
|
|
1114
|
-
|
|
1900
|
+
/**
|
|
1901
|
+
* Deprecated, use request_type instead
|
|
1902
|
+
*/
|
|
1903
|
+
is_async?: boolean;
|
|
1904
|
+
request_type?: HttpRequestType;
|
|
1115
1905
|
authentication_method: AuthenticationMethod;
|
|
1116
1906
|
is_static_website: boolean;
|
|
1117
1907
|
wrap_body?: boolean;
|
|
1908
|
+
mode?: TriggerMode;
|
|
1118
1909
|
raw_string?: boolean;
|
|
1119
1910
|
error_handler_path?: string;
|
|
1120
1911
|
error_handler_args?: ScriptArgs;
|
|
@@ -1135,7 +1926,11 @@ export type EditHttpTrigger = {
|
|
|
1135
1926
|
authentication_resource_path?: string;
|
|
1136
1927
|
is_flow: boolean;
|
|
1137
1928
|
http_method: HttpMethod;
|
|
1138
|
-
|
|
1929
|
+
/**
|
|
1930
|
+
* Deprecated, use request_type instead
|
|
1931
|
+
*/
|
|
1932
|
+
is_async?: boolean;
|
|
1933
|
+
request_type?: HttpRequestType;
|
|
1139
1934
|
authentication_method: AuthenticationMethod;
|
|
1140
1935
|
is_static_website: boolean;
|
|
1141
1936
|
wrap_body?: boolean;
|
|
@@ -1152,6 +1947,7 @@ export type TriggersCount = {
|
|
|
1152
1947
|
http_routes_count?: number;
|
|
1153
1948
|
webhook_count?: number;
|
|
1154
1949
|
email_count?: number;
|
|
1950
|
+
default_email_count?: number;
|
|
1155
1951
|
websocket_count?: number;
|
|
1156
1952
|
postgres_count?: number;
|
|
1157
1953
|
kafka_count?: number;
|
|
@@ -1165,7 +1961,6 @@ export type WebsocketTrigger = TriggerExtraProperty & {
|
|
|
1165
1961
|
server_id?: string;
|
|
1166
1962
|
last_server_ping?: string;
|
|
1167
1963
|
error?: string;
|
|
1168
|
-
enabled: boolean;
|
|
1169
1964
|
filters: Array<{
|
|
1170
1965
|
key: string;
|
|
1171
1966
|
value: unknown;
|
|
@@ -1173,6 +1968,7 @@ export type WebsocketTrigger = TriggerExtraProperty & {
|
|
|
1173
1968
|
initial_messages?: Array<WebsocketTriggerInitialMessage>;
|
|
1174
1969
|
url_runnable_args?: ScriptArgs;
|
|
1175
1970
|
can_return_message: boolean;
|
|
1971
|
+
can_return_error_result: boolean;
|
|
1176
1972
|
error_handler_path?: string;
|
|
1177
1973
|
error_handler_args?: ScriptArgs;
|
|
1178
1974
|
retry?: Retry;
|
|
@@ -1182,7 +1978,7 @@ export type NewWebsocketTrigger = {
|
|
|
1182
1978
|
script_path: string;
|
|
1183
1979
|
is_flow: boolean;
|
|
1184
1980
|
url: string;
|
|
1185
|
-
|
|
1981
|
+
mode?: TriggerMode;
|
|
1186
1982
|
filters: Array<{
|
|
1187
1983
|
key: string;
|
|
1188
1984
|
value: unknown;
|
|
@@ -1190,6 +1986,7 @@ export type NewWebsocketTrigger = {
|
|
|
1190
1986
|
initial_messages?: Array<WebsocketTriggerInitialMessage>;
|
|
1191
1987
|
url_runnable_args?: ScriptArgs;
|
|
1192
1988
|
can_return_message: boolean;
|
|
1989
|
+
can_return_error_result: boolean;
|
|
1193
1990
|
error_handler_path?: string;
|
|
1194
1991
|
error_handler_args?: ScriptArgs;
|
|
1195
1992
|
retry?: Retry;
|
|
@@ -1206,6 +2003,7 @@ export type EditWebsocketTrigger = {
|
|
|
1206
2003
|
initial_messages?: Array<WebsocketTriggerInitialMessage>;
|
|
1207
2004
|
url_runnable_args?: ScriptArgs;
|
|
1208
2005
|
can_return_message: boolean;
|
|
2006
|
+
can_return_error_result: boolean;
|
|
1209
2007
|
error_handler_path?: string;
|
|
1210
2008
|
error_handler_args?: ScriptArgs;
|
|
1211
2009
|
retry?: Retry;
|
|
@@ -1243,7 +2041,6 @@ export type MqttTrigger = TriggerExtraProperty & {
|
|
|
1243
2041
|
server_id?: string;
|
|
1244
2042
|
last_server_ping?: string;
|
|
1245
2043
|
error?: string;
|
|
1246
|
-
enabled: boolean;
|
|
1247
2044
|
error_handler_path?: string;
|
|
1248
2045
|
error_handler_args?: ScriptArgs;
|
|
1249
2046
|
retry?: Retry;
|
|
@@ -1258,7 +2055,7 @@ export type NewMqttTrigger = {
|
|
|
1258
2055
|
path: string;
|
|
1259
2056
|
script_path: string;
|
|
1260
2057
|
is_flow: boolean;
|
|
1261
|
-
|
|
2058
|
+
mode?: TriggerMode;
|
|
1262
2059
|
error_handler_path?: string;
|
|
1263
2060
|
error_handler_args?: ScriptArgs;
|
|
1264
2061
|
retry?: Retry;
|
|
@@ -1273,7 +2070,7 @@ export type EditMqttTrigger = {
|
|
|
1273
2070
|
path: string;
|
|
1274
2071
|
script_path: string;
|
|
1275
2072
|
is_flow: boolean;
|
|
1276
|
-
|
|
2073
|
+
mode?: TriggerMode;
|
|
1277
2074
|
error_handler_path?: string;
|
|
1278
2075
|
error_handler_args?: ScriptArgs;
|
|
1279
2076
|
retry?: Retry;
|
|
@@ -1293,7 +2090,6 @@ export type GcpTrigger = TriggerExtraProperty & {
|
|
|
1293
2090
|
subscription_mode: SubscriptionMode;
|
|
1294
2091
|
last_server_ping?: string;
|
|
1295
2092
|
error?: string;
|
|
1296
|
-
enabled: boolean;
|
|
1297
2093
|
error_handler_path?: string;
|
|
1298
2094
|
error_handler_args?: ScriptArgs;
|
|
1299
2095
|
retry?: Retry;
|
|
@@ -1313,8 +2109,12 @@ export type GcpTriggerData = {
|
|
|
1313
2109
|
path: string;
|
|
1314
2110
|
script_path: string;
|
|
1315
2111
|
is_flow: boolean;
|
|
1316
|
-
|
|
2112
|
+
mode?: TriggerMode;
|
|
1317
2113
|
auto_acknowledge_msg?: boolean;
|
|
2114
|
+
/**
|
|
2115
|
+
* Time in seconds within which the message must be acknowledged. If not provided, defaults to the subscription's acknowledgment deadline (600 seconds).
|
|
2116
|
+
*/
|
|
2117
|
+
ack_deadline?: number;
|
|
1318
2118
|
error_handler_path?: string;
|
|
1319
2119
|
error_handler_args?: ScriptArgs;
|
|
1320
2120
|
retry?: Retry;
|
|
@@ -1334,11 +2134,32 @@ export type SqsTrigger = TriggerExtraProperty & {
|
|
|
1334
2134
|
server_id?: string;
|
|
1335
2135
|
last_server_ping?: string;
|
|
1336
2136
|
error?: string;
|
|
1337
|
-
enabled: boolean;
|
|
1338
2137
|
error_handler_path?: string;
|
|
1339
2138
|
error_handler_args?: ScriptArgs;
|
|
1340
2139
|
retry?: Retry;
|
|
1341
2140
|
};
|
|
2141
|
+
export type LoggedWizardStatus = 'OK' | 'SKIP' | 'FAIL';
|
|
2142
|
+
export type CustomInstanceDbLogs = {
|
|
2143
|
+
super_admin?: LoggedWizardStatus;
|
|
2144
|
+
database_credentials?: LoggedWizardStatus;
|
|
2145
|
+
valid_dbname?: LoggedWizardStatus;
|
|
2146
|
+
created_database?: LoggedWizardStatus;
|
|
2147
|
+
db_connect?: LoggedWizardStatus;
|
|
2148
|
+
grant_permissions?: LoggedWizardStatus;
|
|
2149
|
+
};
|
|
2150
|
+
export type CustomInstanceDbTag = 'ducklake' | 'datatable';
|
|
2151
|
+
export type CustomInstanceDb = {
|
|
2152
|
+
logs: CustomInstanceDbLogs;
|
|
2153
|
+
/**
|
|
2154
|
+
* Whether the operation completed successfully
|
|
2155
|
+
*/
|
|
2156
|
+
success: boolean;
|
|
2157
|
+
/**
|
|
2158
|
+
* Error message if the operation failed
|
|
2159
|
+
*/
|
|
2160
|
+
error?: (string) | null;
|
|
2161
|
+
tag?: CustomInstanceDbTag;
|
|
2162
|
+
};
|
|
1342
2163
|
export type NewSqsTrigger = {
|
|
1343
2164
|
queue_url: string;
|
|
1344
2165
|
aws_auth_resource_type: AwsAuthResourceType;
|
|
@@ -1347,7 +2168,7 @@ export type NewSqsTrigger = {
|
|
|
1347
2168
|
path: string;
|
|
1348
2169
|
script_path: string;
|
|
1349
2170
|
is_flow: boolean;
|
|
1350
|
-
|
|
2171
|
+
mode?: TriggerMode;
|
|
1351
2172
|
error_handler_path?: string;
|
|
1352
2173
|
error_handler_args?: ScriptArgs;
|
|
1353
2174
|
retry?: Retry;
|
|
@@ -1360,7 +2181,7 @@ export type EditSqsTrigger = {
|
|
|
1360
2181
|
path: string;
|
|
1361
2182
|
script_path: string;
|
|
1362
2183
|
is_flow: boolean;
|
|
1363
|
-
|
|
2184
|
+
mode?: TriggerMode;
|
|
1364
2185
|
error_handler_path?: string;
|
|
1365
2186
|
error_handler_args?: ScriptArgs;
|
|
1366
2187
|
retry?: Retry;
|
|
@@ -1392,7 +2213,6 @@ export type TemplateScript = {
|
|
|
1392
2213
|
language: Language;
|
|
1393
2214
|
};
|
|
1394
2215
|
export type PostgresTrigger = TriggerExtraProperty & {
|
|
1395
|
-
enabled: boolean;
|
|
1396
2216
|
postgres_resource_path: string;
|
|
1397
2217
|
publication_name: string;
|
|
1398
2218
|
server_id?: string;
|
|
@@ -1409,7 +2229,7 @@ export type NewPostgresTrigger = {
|
|
|
1409
2229
|
path: string;
|
|
1410
2230
|
script_path: string;
|
|
1411
2231
|
is_flow: boolean;
|
|
1412
|
-
|
|
2232
|
+
mode?: TriggerMode;
|
|
1413
2233
|
postgres_resource_path: string;
|
|
1414
2234
|
publication?: PublicationData;
|
|
1415
2235
|
error_handler_path?: string;
|
|
@@ -1422,7 +2242,7 @@ export type EditPostgresTrigger = {
|
|
|
1422
2242
|
path: string;
|
|
1423
2243
|
script_path: string;
|
|
1424
2244
|
is_flow: boolean;
|
|
1425
|
-
|
|
2245
|
+
mode?: TriggerMode;
|
|
1426
2246
|
postgres_resource_path: string;
|
|
1427
2247
|
publication?: PublicationData;
|
|
1428
2248
|
error_handler_path?: string;
|
|
@@ -1436,7 +2256,6 @@ export type KafkaTrigger = TriggerExtraProperty & {
|
|
|
1436
2256
|
server_id?: string;
|
|
1437
2257
|
last_server_ping?: string;
|
|
1438
2258
|
error?: string;
|
|
1439
|
-
enabled: boolean;
|
|
1440
2259
|
error_handler_path?: string;
|
|
1441
2260
|
error_handler_args?: ScriptArgs;
|
|
1442
2261
|
retry?: Retry;
|
|
@@ -1448,7 +2267,7 @@ export type NewKafkaTrigger = {
|
|
|
1448
2267
|
kafka_resource_path: string;
|
|
1449
2268
|
group_id: string;
|
|
1450
2269
|
topics: Array<(string)>;
|
|
1451
|
-
|
|
2270
|
+
mode?: TriggerMode;
|
|
1452
2271
|
error_handler_path?: string;
|
|
1453
2272
|
error_handler_args?: ScriptArgs;
|
|
1454
2273
|
retry?: Retry;
|
|
@@ -1473,7 +2292,6 @@ export type NatsTrigger = TriggerExtraProperty & {
|
|
|
1473
2292
|
server_id?: string;
|
|
1474
2293
|
last_server_ping?: string;
|
|
1475
2294
|
error?: string;
|
|
1476
|
-
enabled: boolean;
|
|
1477
2295
|
error_handler_path?: string;
|
|
1478
2296
|
error_handler_args?: ScriptArgs;
|
|
1479
2297
|
retry?: Retry;
|
|
@@ -1487,7 +2305,7 @@ export type NewNatsTrigger = {
|
|
|
1487
2305
|
stream_name?: string;
|
|
1488
2306
|
consumer_name?: string;
|
|
1489
2307
|
subjects: Array<(string)>;
|
|
1490
|
-
|
|
2308
|
+
mode?: TriggerMode;
|
|
1491
2309
|
error_handler_path?: string;
|
|
1492
2310
|
error_handler_args?: ScriptArgs;
|
|
1493
2311
|
retry?: Retry;
|
|
@@ -1505,6 +2323,34 @@ export type EditNatsTrigger = {
|
|
|
1505
2323
|
error_handler_args?: ScriptArgs;
|
|
1506
2324
|
retry?: Retry;
|
|
1507
2325
|
};
|
|
2326
|
+
export type EmailTrigger = TriggerExtraProperty & {
|
|
2327
|
+
local_part: string;
|
|
2328
|
+
workspaced_local_part?: boolean;
|
|
2329
|
+
error_handler_path?: string;
|
|
2330
|
+
error_handler_args?: ScriptArgs;
|
|
2331
|
+
retry?: Retry;
|
|
2332
|
+
};
|
|
2333
|
+
export type NewEmailTrigger = {
|
|
2334
|
+
path: string;
|
|
2335
|
+
script_path: string;
|
|
2336
|
+
local_part: string;
|
|
2337
|
+
workspaced_local_part?: boolean;
|
|
2338
|
+
is_flow: boolean;
|
|
2339
|
+
error_handler_path?: string;
|
|
2340
|
+
error_handler_args?: ScriptArgs;
|
|
2341
|
+
retry?: Retry;
|
|
2342
|
+
mode?: TriggerMode;
|
|
2343
|
+
};
|
|
2344
|
+
export type EditEmailTrigger = {
|
|
2345
|
+
path: string;
|
|
2346
|
+
script_path: string;
|
|
2347
|
+
local_part?: string;
|
|
2348
|
+
workspaced_local_part?: boolean;
|
|
2349
|
+
is_flow: boolean;
|
|
2350
|
+
error_handler_path?: string;
|
|
2351
|
+
error_handler_args?: ScriptArgs;
|
|
2352
|
+
retry?: Retry;
|
|
2353
|
+
};
|
|
1508
2354
|
export type Group = {
|
|
1509
2355
|
name: string;
|
|
1510
2356
|
summary?: string;
|
|
@@ -1559,6 +2405,7 @@ export type WorkerPing = {
|
|
|
1559
2405
|
vcpus?: number;
|
|
1560
2406
|
memory_usage?: number;
|
|
1561
2407
|
wm_memory_usage?: number;
|
|
2408
|
+
job_isolation?: string;
|
|
1562
2409
|
};
|
|
1563
2410
|
export type UserWorkspaceList = {
|
|
1564
2411
|
email: string;
|
|
@@ -1568,6 +2415,9 @@ export type UserWorkspaceList = {
|
|
|
1568
2415
|
username: string;
|
|
1569
2416
|
color: string;
|
|
1570
2417
|
operator_settings?: OperatorSettings;
|
|
2418
|
+
parent_workspace_id?: (string) | null;
|
|
2419
|
+
created_by?: (string) | null;
|
|
2420
|
+
disabled: boolean;
|
|
1571
2421
|
}>;
|
|
1572
2422
|
};
|
|
1573
2423
|
export type CreateWorkspace = {
|
|
@@ -1576,18 +2426,42 @@ export type CreateWorkspace = {
|
|
|
1576
2426
|
username?: string;
|
|
1577
2427
|
color?: string;
|
|
1578
2428
|
};
|
|
2429
|
+
export type CreateWorkspaceFork = {
|
|
2430
|
+
id: string;
|
|
2431
|
+
name: string;
|
|
2432
|
+
color?: string;
|
|
2433
|
+
};
|
|
1579
2434
|
export type Workspace = {
|
|
1580
2435
|
id: string;
|
|
1581
2436
|
name: string;
|
|
1582
2437
|
owner: string;
|
|
1583
2438
|
domain?: string;
|
|
1584
2439
|
color?: string;
|
|
2440
|
+
parent_workspace_id?: (string) | null;
|
|
2441
|
+
};
|
|
2442
|
+
export type DependencyMap = {
|
|
2443
|
+
workspace_id?: (string) | null;
|
|
2444
|
+
importer_path?: (string) | null;
|
|
2445
|
+
importer_kind?: (string) | null;
|
|
2446
|
+
imported_path?: (string) | null;
|
|
2447
|
+
importer_node_id?: (string) | null;
|
|
2448
|
+
};
|
|
2449
|
+
export type DependencyDependent = {
|
|
2450
|
+
importer_path: string;
|
|
2451
|
+
importer_kind: 'script' | 'flow' | 'app';
|
|
2452
|
+
importer_node_ids?: Array<(string)> | null;
|
|
2453
|
+
};
|
|
2454
|
+
export type importer_kind = 'script' | 'flow' | 'app';
|
|
2455
|
+
export type DependentsAmount = {
|
|
2456
|
+
imported_path: string;
|
|
2457
|
+
count: number;
|
|
1585
2458
|
};
|
|
1586
2459
|
export type WorkspaceInvite = {
|
|
1587
2460
|
workspace_id: string;
|
|
1588
2461
|
email: string;
|
|
1589
2462
|
is_admin: boolean;
|
|
1590
2463
|
operator: boolean;
|
|
2464
|
+
parent_workspace_id?: (string) | null;
|
|
1591
2465
|
};
|
|
1592
2466
|
export type GlobalUserInfo = {
|
|
1593
2467
|
email: string;
|
|
@@ -1599,10 +2473,12 @@ export type GlobalUserInfo = {
|
|
|
1599
2473
|
company?: string;
|
|
1600
2474
|
username?: string;
|
|
1601
2475
|
operator_only?: boolean;
|
|
2476
|
+
first_time_user: boolean;
|
|
1602
2477
|
};
|
|
1603
2478
|
export type login_type = 'password' | 'github';
|
|
1604
2479
|
export type Flow = OpenFlow & FlowMetadata & {
|
|
1605
2480
|
lock_error_logs?: string;
|
|
2481
|
+
version_id?: number;
|
|
1606
2482
|
};
|
|
1607
2483
|
export type ExtraPerms = {
|
|
1608
2484
|
[key: string]: (boolean);
|
|
@@ -1645,6 +2521,7 @@ export type RestartedFrom = {
|
|
|
1645
2521
|
flow_job_id?: string;
|
|
1646
2522
|
step_id?: string;
|
|
1647
2523
|
branch_or_iteration_n?: number;
|
|
2524
|
+
flow_version?: number;
|
|
1648
2525
|
};
|
|
1649
2526
|
export type Policy = {
|
|
1650
2527
|
triggerables?: {
|
|
@@ -1761,6 +2638,7 @@ export type LargeFileStorage = {
|
|
|
1761
2638
|
azure_blob_resource_path?: string;
|
|
1762
2639
|
gcs_resource_path?: string;
|
|
1763
2640
|
public_resource?: boolean;
|
|
2641
|
+
advanced_permissions?: Array<S3PermissionRule>;
|
|
1764
2642
|
secondary_storage?: {
|
|
1765
2643
|
[key: string]: {
|
|
1766
2644
|
type?: 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc' | 'GoogleCloudStorage';
|
|
@@ -1771,7 +2649,7 @@ export type LargeFileStorage = {
|
|
|
1771
2649
|
};
|
|
1772
2650
|
};
|
|
1773
2651
|
};
|
|
1774
|
-
export type
|
|
2652
|
+
export type type5 = 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc' | 'GoogleCloudStorage';
|
|
1775
2653
|
export type DucklakeSettings = {
|
|
1776
2654
|
ducklakes: {
|
|
1777
2655
|
[key: string]: {
|
|
@@ -1786,6 +2664,58 @@ export type DucklakeSettings = {
|
|
|
1786
2664
|
};
|
|
1787
2665
|
};
|
|
1788
2666
|
};
|
|
2667
|
+
export type DataTableSettings = {
|
|
2668
|
+
datatables: {
|
|
2669
|
+
[key: string]: {
|
|
2670
|
+
database: {
|
|
2671
|
+
resource_type: 'postgresql' | 'instance';
|
|
2672
|
+
resource_path?: string;
|
|
2673
|
+
};
|
|
2674
|
+
};
|
|
2675
|
+
};
|
|
2676
|
+
};
|
|
2677
|
+
export type DataTableSchema = {
|
|
2678
|
+
datatable_name: string;
|
|
2679
|
+
/**
|
|
2680
|
+
* Hierarchical schema: schema_name -> table_name -> column_name -> compact_type (e.g. 'int4', 'text?', 'int4?=0')
|
|
2681
|
+
*/
|
|
2682
|
+
schemas: {
|
|
2683
|
+
[key: string]: {
|
|
2684
|
+
[key: string]: {
|
|
2685
|
+
[key: string]: (string);
|
|
2686
|
+
};
|
|
2687
|
+
};
|
|
2688
|
+
};
|
|
2689
|
+
error?: string;
|
|
2690
|
+
};
|
|
2691
|
+
export type DynamicInputData = {
|
|
2692
|
+
/**
|
|
2693
|
+
* Name of the function to execute for dynamic select
|
|
2694
|
+
*/
|
|
2695
|
+
entrypoint_function: string;
|
|
2696
|
+
/**
|
|
2697
|
+
* Arguments to pass to the function
|
|
2698
|
+
*/
|
|
2699
|
+
args?: {
|
|
2700
|
+
[key: string]: unknown;
|
|
2701
|
+
};
|
|
2702
|
+
runnable_ref: ({
|
|
2703
|
+
source: 'deployed';
|
|
2704
|
+
/**
|
|
2705
|
+
* Path to the deployed script or flow
|
|
2706
|
+
*/
|
|
2707
|
+
path: string;
|
|
2708
|
+
runnable_kind: RunnableKind;
|
|
2709
|
+
} | {
|
|
2710
|
+
source: 'inline';
|
|
2711
|
+
/**
|
|
2712
|
+
* Code content for inline execution
|
|
2713
|
+
*/
|
|
2714
|
+
code: string;
|
|
2715
|
+
language?: ScriptLang;
|
|
2716
|
+
});
|
|
2717
|
+
};
|
|
2718
|
+
export type source2 = 'deployed';
|
|
1789
2719
|
export type WindmillLargeFile = {
|
|
1790
2720
|
s3: string;
|
|
1791
2721
|
};
|
|
@@ -1825,6 +2755,10 @@ export type WorkspaceDefaultScripts = {
|
|
|
1825
2755
|
[key: string]: (string);
|
|
1826
2756
|
};
|
|
1827
2757
|
};
|
|
2758
|
+
export type S3PermissionRule = {
|
|
2759
|
+
pattern: string;
|
|
2760
|
+
allow: string;
|
|
2761
|
+
};
|
|
1828
2762
|
export type GitRepositorySettings = {
|
|
1829
2763
|
script_path: string;
|
|
1830
2764
|
git_repo_resource_path: string;
|
|
@@ -1839,10 +2773,6 @@ export type GitRepositorySettings = {
|
|
|
1839
2773
|
};
|
|
1840
2774
|
exclude_types_override?: Array<GitSyncObjectType>;
|
|
1841
2775
|
};
|
|
1842
|
-
export type UploadFilePart = {
|
|
1843
|
-
part_number: number;
|
|
1844
|
-
tag: string;
|
|
1845
|
-
};
|
|
1846
2776
|
export type MetricMetadata = {
|
|
1847
2777
|
id: string;
|
|
1848
2778
|
name?: string;
|
|
@@ -1946,7 +2876,7 @@ export type CriticalAlert = {
|
|
|
1946
2876
|
*/
|
|
1947
2877
|
workspace_id?: (string) | null;
|
|
1948
2878
|
};
|
|
1949
|
-
export type CaptureTriggerKind = 'webhook' | 'http' | 'websocket' | 'kafka' | '
|
|
2879
|
+
export type CaptureTriggerKind = 'webhook' | 'http' | 'websocket' | 'kafka' | 'default_email' | 'nats' | 'postgres' | 'sqs' | 'mqtt' | 'gcp' | 'email';
|
|
1950
2880
|
export type Capture = {
|
|
1951
2881
|
trigger_kind: CaptureTriggerKind;
|
|
1952
2882
|
main_args: unknown;
|
|
@@ -2002,6 +2932,100 @@ export type OperatorSettings = {
|
|
|
2002
2932
|
*/
|
|
2003
2933
|
workers: boolean;
|
|
2004
2934
|
} | null;
|
|
2935
|
+
export type WorkspaceComparison = {
|
|
2936
|
+
/**
|
|
2937
|
+
* All items with changes ahead are visible by the user of the request.
|
|
2938
|
+
*/
|
|
2939
|
+
all_ahead_items_visible: boolean;
|
|
2940
|
+
/**
|
|
2941
|
+
* All items with changes behind are visible by the user of the request.
|
|
2942
|
+
*/
|
|
2943
|
+
all_behind_items_visible: boolean;
|
|
2944
|
+
/**
|
|
2945
|
+
* Whether the comparison was skipped. This happens with old forks that where not being kept track of
|
|
2946
|
+
*/
|
|
2947
|
+
skipped_comparison: boolean;
|
|
2948
|
+
/**
|
|
2949
|
+
* List of differences found between workspaces
|
|
2950
|
+
*/
|
|
2951
|
+
diffs: Array<WorkspaceItemDiff>;
|
|
2952
|
+
/**
|
|
2953
|
+
* Summary statistics of the comparison
|
|
2954
|
+
*/
|
|
2955
|
+
summary: CompareSummary;
|
|
2956
|
+
};
|
|
2957
|
+
export type WorkspaceItemDiff = {
|
|
2958
|
+
/**
|
|
2959
|
+
* Type of the item
|
|
2960
|
+
*/
|
|
2961
|
+
kind: 'script' | 'flow' | 'app' | 'resource' | 'variable';
|
|
2962
|
+
/**
|
|
2963
|
+
* Path of the item in the workspace
|
|
2964
|
+
*/
|
|
2965
|
+
path: string;
|
|
2966
|
+
/**
|
|
2967
|
+
* Number of versions source is ahead of target
|
|
2968
|
+
*/
|
|
2969
|
+
ahead: number;
|
|
2970
|
+
/**
|
|
2971
|
+
* Number of versions source is behind target
|
|
2972
|
+
*/
|
|
2973
|
+
behind: number;
|
|
2974
|
+
/**
|
|
2975
|
+
* Whether the item has any differences
|
|
2976
|
+
*/
|
|
2977
|
+
has_changes: boolean;
|
|
2978
|
+
/**
|
|
2979
|
+
* If the item exists in the source workspace
|
|
2980
|
+
*/
|
|
2981
|
+
exists_in_source: boolean;
|
|
2982
|
+
/**
|
|
2983
|
+
* If the item exists in the fork workspace
|
|
2984
|
+
*/
|
|
2985
|
+
exists_in_fork: boolean;
|
|
2986
|
+
};
|
|
2987
|
+
/**
|
|
2988
|
+
* Type of the item
|
|
2989
|
+
*/
|
|
2990
|
+
export type kind3 = 'script' | 'flow' | 'app' | 'resource' | 'variable';
|
|
2991
|
+
export type CompareSummary = {
|
|
2992
|
+
/**
|
|
2993
|
+
* Total number of items with differences
|
|
2994
|
+
*/
|
|
2995
|
+
total_diffs: number;
|
|
2996
|
+
/**
|
|
2997
|
+
* Total number of ahead changes
|
|
2998
|
+
*/
|
|
2999
|
+
total_ahead: number;
|
|
3000
|
+
/**
|
|
3001
|
+
* Total number of behind changes
|
|
3002
|
+
*/
|
|
3003
|
+
total_behind: number;
|
|
3004
|
+
/**
|
|
3005
|
+
* Number of scripts with differences
|
|
3006
|
+
*/
|
|
3007
|
+
scripts_changed: number;
|
|
3008
|
+
/**
|
|
3009
|
+
* Number of flows with differences
|
|
3010
|
+
*/
|
|
3011
|
+
flows_changed: number;
|
|
3012
|
+
/**
|
|
3013
|
+
* Number of apps with differences
|
|
3014
|
+
*/
|
|
3015
|
+
apps_changed: number;
|
|
3016
|
+
/**
|
|
3017
|
+
* Number of resources with differences
|
|
3018
|
+
*/
|
|
3019
|
+
resources_changed: number;
|
|
3020
|
+
/**
|
|
3021
|
+
* Number of variables with differences
|
|
3022
|
+
*/
|
|
3023
|
+
variables_changed: number;
|
|
3024
|
+
/**
|
|
3025
|
+
* Number of items that are both ahead and behind (conflicts)
|
|
3026
|
+
*/
|
|
3027
|
+
conflicts: number;
|
|
3028
|
+
};
|
|
2005
3029
|
export type TeamInfo = {
|
|
2006
3030
|
/**
|
|
2007
3031
|
* The unique identifier of the Microsoft Teams team
|
|
@@ -2042,6 +3066,18 @@ export type GithubInstallations = Array<{
|
|
|
2042
3066
|
name: string;
|
|
2043
3067
|
url: string;
|
|
2044
3068
|
}>;
|
|
3069
|
+
/**
|
|
3070
|
+
* Total number of repositories available for this installation
|
|
3071
|
+
*/
|
|
3072
|
+
total_count: number;
|
|
3073
|
+
/**
|
|
3074
|
+
* Number of repositories loaded per page
|
|
3075
|
+
*/
|
|
3076
|
+
per_page: number;
|
|
3077
|
+
/**
|
|
3078
|
+
* Error message if token retrieval failed
|
|
3079
|
+
*/
|
|
3080
|
+
error?: string;
|
|
2045
3081
|
}>;
|
|
2046
3082
|
export type WorkspaceGithubInstallation = {
|
|
2047
3083
|
account_id: string;
|
|
@@ -2073,7 +3109,7 @@ export type TeamsChannel = {
|
|
|
2073
3109
|
};
|
|
2074
3110
|
export type AssetUsageKind = 'script' | 'flow';
|
|
2075
3111
|
export type AssetUsageAccessType = 'r' | 'w' | 'rw';
|
|
2076
|
-
export type AssetKind = 's3object' | 'resource' | 'ducklake';
|
|
3112
|
+
export type AssetKind = 's3object' | 'resource' | 'ducklake' | 'datatable';
|
|
2077
3113
|
export type Asset = {
|
|
2078
3114
|
path: string;
|
|
2079
3115
|
kind: AssetKind;
|
|
@@ -2105,6 +3141,10 @@ export type ParameterPage = number;
|
|
|
2105
3141
|
* number of items to return for a given page (default 30, max 100)
|
|
2106
3142
|
*/
|
|
2107
3143
|
export type ParameterPerPage = number;
|
|
3144
|
+
/**
|
|
3145
|
+
* trigger kind (schedule, http, websocket...)
|
|
3146
|
+
*/
|
|
3147
|
+
export type ParameterJobTriggerKind = JobTriggerKind;
|
|
2108
3148
|
/**
|
|
2109
3149
|
* order by desc order (default true)
|
|
2110
3150
|
*/
|
|
@@ -2148,6 +3188,10 @@ export type ParameterIncludeHeader = string;
|
|
|
2148
3188
|
*
|
|
2149
3189
|
*/
|
|
2150
3190
|
export type ParameterQueueLimit = string;
|
|
3191
|
+
/**
|
|
3192
|
+
* skip the preprocessor
|
|
3193
|
+
*/
|
|
3194
|
+
export type ParameterSkipPreprocessor = boolean;
|
|
2151
3195
|
/**
|
|
2152
3196
|
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
2153
3197
|
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
@@ -2162,6 +3206,10 @@ export type ParameterScriptStartPath = string;
|
|
|
2162
3206
|
* mask to filter by schedule path
|
|
2163
3207
|
*/
|
|
2164
3208
|
export type ParameterSchedulePath = string;
|
|
3209
|
+
/**
|
|
3210
|
+
* mask to filter by trigger path
|
|
3211
|
+
*/
|
|
3212
|
+
export type ParameterTriggerPath = string;
|
|
2165
3213
|
/**
|
|
2166
3214
|
* mask to filter exact matching path
|
|
2167
3215
|
*/
|
|
@@ -2191,17 +3239,21 @@ export type ParameterStartedAfter = string;
|
|
|
2191
3239
|
*/
|
|
2192
3240
|
export type ParameterBefore = string;
|
|
2193
3241
|
/**
|
|
2194
|
-
* filter on
|
|
3242
|
+
* filter on started before (inclusive) timestamp
|
|
3243
|
+
*/
|
|
3244
|
+
export type ParameterCompletedBefore = string;
|
|
3245
|
+
/**
|
|
3246
|
+
* filter on started after (exclusive) timestamp
|
|
2195
3247
|
*/
|
|
2196
|
-
export type
|
|
3248
|
+
export type ParameterCompletedAfter = string;
|
|
2197
3249
|
/**
|
|
2198
|
-
* filter on
|
|
3250
|
+
* filter on jobs created after X for jobs in the queue only
|
|
2199
3251
|
*/
|
|
2200
|
-
export type
|
|
3252
|
+
export type ParameterCreatedAfterQueue = string;
|
|
2201
3253
|
/**
|
|
2202
|
-
* filter on
|
|
3254
|
+
* filter on jobs created before X for jobs in the queue only
|
|
2203
3255
|
*/
|
|
2204
|
-
export type
|
|
3256
|
+
export type ParameterCreatedBeforeQueue = string;
|
|
2205
3257
|
/**
|
|
2206
3258
|
* filter on successful jobs
|
|
2207
3259
|
*/
|
|
@@ -2267,6 +3319,20 @@ export type ParameterRunnableKind = 'script' | 'flow';
|
|
|
2267
3319
|
export type BackendVersionResponse = (string);
|
|
2268
3320
|
export type BackendUptodateResponse = (string);
|
|
2269
3321
|
export type GetLicenseIdResponse = (string);
|
|
3322
|
+
export type QueryDocumentationData = {
|
|
3323
|
+
/**
|
|
3324
|
+
* query to send to the AI documentation assistant
|
|
3325
|
+
*/
|
|
3326
|
+
requestBody: {
|
|
3327
|
+
/**
|
|
3328
|
+
* The documentation query to send to the AI assistant
|
|
3329
|
+
*/
|
|
3330
|
+
query: string;
|
|
3331
|
+
};
|
|
3332
|
+
};
|
|
3333
|
+
export type QueryDocumentationResponse = ({
|
|
3334
|
+
[key: string]: unknown;
|
|
3335
|
+
});
|
|
2270
3336
|
export type GetOpenApiYamlResponse = (string);
|
|
2271
3337
|
export type GetAuditLogData = {
|
|
2272
3338
|
id: number;
|
|
@@ -2438,15 +3504,37 @@ export type GlobalUsersOverwriteData = {
|
|
|
2438
3504
|
};
|
|
2439
3505
|
export type GlobalUsersOverwriteResponse = (string);
|
|
2440
3506
|
export type GlobalUsersExportResponse = (Array<ExportedUser>);
|
|
3507
|
+
export type SubmitOnboardingDataData = {
|
|
3508
|
+
requestBody: {
|
|
3509
|
+
touch_point?: string;
|
|
3510
|
+
use_case?: string;
|
|
3511
|
+
};
|
|
3512
|
+
};
|
|
3513
|
+
export type SubmitOnboardingDataResponse = (string);
|
|
2441
3514
|
export type DeleteUserData = {
|
|
2442
3515
|
username: string;
|
|
2443
3516
|
workspace: string;
|
|
2444
3517
|
};
|
|
2445
3518
|
export type DeleteUserResponse = (string);
|
|
3519
|
+
export type ConvertUserToGroupData = {
|
|
3520
|
+
username: string;
|
|
3521
|
+
workspace: string;
|
|
3522
|
+
};
|
|
3523
|
+
export type ConvertUserToGroupResponse = (string);
|
|
3524
|
+
export type GetGlobalConnectedRepositoriesData = {
|
|
3525
|
+
/**
|
|
3526
|
+
* Page number for pagination (default 1)
|
|
3527
|
+
*/
|
|
3528
|
+
page?: number;
|
|
3529
|
+
};
|
|
2446
3530
|
export type GetGlobalConnectedRepositoriesResponse = (GithubInstallations);
|
|
2447
3531
|
export type ListWorkspacesResponse = (Array<Workspace>);
|
|
2448
3532
|
export type IsDomainAllowedResponse = (boolean);
|
|
2449
3533
|
export type ListUserWorkspacesResponse = (UserWorkspaceList);
|
|
3534
|
+
export type GetWorkspaceAsSuperAdminData = {
|
|
3535
|
+
workspace: string;
|
|
3536
|
+
};
|
|
3537
|
+
export type GetWorkspaceAsSuperAdminResponse = (Workspace);
|
|
2450
3538
|
export type ListWorkspacesAsSuperAdminData = {
|
|
2451
3539
|
/**
|
|
2452
3540
|
* which page to return (start at 1, default 1)
|
|
@@ -2465,6 +3553,22 @@ export type CreateWorkspaceData = {
|
|
|
2465
3553
|
requestBody: CreateWorkspace;
|
|
2466
3554
|
};
|
|
2467
3555
|
export type CreateWorkspaceResponse = (string);
|
|
3556
|
+
export type CreateWorkspaceForkGitBranchData = {
|
|
3557
|
+
/**
|
|
3558
|
+
* new forked workspace
|
|
3559
|
+
*/
|
|
3560
|
+
requestBody: CreateWorkspaceFork;
|
|
3561
|
+
workspace: string;
|
|
3562
|
+
};
|
|
3563
|
+
export type CreateWorkspaceForkGitBranchResponse = (Array<(string)>);
|
|
3564
|
+
export type CreateWorkspaceForkData = {
|
|
3565
|
+
/**
|
|
3566
|
+
* new forked workspace
|
|
3567
|
+
*/
|
|
3568
|
+
requestBody: CreateWorkspaceFork;
|
|
3569
|
+
workspace: string;
|
|
3570
|
+
};
|
|
3571
|
+
export type CreateWorkspaceForkResponse = (string);
|
|
2468
3572
|
export type ExistsWorkspaceData = {
|
|
2469
3573
|
/**
|
|
2470
3574
|
* id of workspace
|
|
@@ -2481,17 +3585,22 @@ export type ExistsUsernameData = {
|
|
|
2481
3585
|
};
|
|
2482
3586
|
};
|
|
2483
3587
|
export type ExistsUsernameResponse = (boolean);
|
|
2484
|
-
export type
|
|
2485
|
-
|
|
2486
|
-
};
|
|
2487
|
-
export type
|
|
2488
|
-
|
|
3588
|
+
export type RefreshCustomInstanceUserPwdResponse = ({
|
|
3589
|
+
[key: string]: unknown;
|
|
3590
|
+
});
|
|
3591
|
+
export type ListCustomInstanceDbsResponse = ({
|
|
3592
|
+
[key: string]: CustomInstanceDb;
|
|
3593
|
+
});
|
|
3594
|
+
export type SetupCustomInstanceDbData = {
|
|
2489
3595
|
/**
|
|
2490
3596
|
* The name of the database to create
|
|
2491
3597
|
*/
|
|
2492
3598
|
name: string;
|
|
3599
|
+
requestBody: {
|
|
3600
|
+
tag?: CustomInstanceDbTag;
|
|
3601
|
+
};
|
|
2493
3602
|
};
|
|
2494
|
-
export type
|
|
3603
|
+
export type SetupCustomInstanceDbResponse = (CustomInstanceDb);
|
|
2495
3604
|
export type GetGlobalData = {
|
|
2496
3605
|
key: string;
|
|
2497
3606
|
};
|
|
@@ -2605,6 +3714,7 @@ export type RefreshUserTokenData = {
|
|
|
2605
3714
|
export type RefreshUserTokenResponse = (string);
|
|
2606
3715
|
export type GetTutorialProgressResponse = ({
|
|
2607
3716
|
progress?: number;
|
|
3717
|
+
skipped_all?: boolean;
|
|
2608
3718
|
});
|
|
2609
3719
|
export type UpdateTutorialProgressData = {
|
|
2610
3720
|
/**
|
|
@@ -2612,6 +3722,7 @@ export type UpdateTutorialProgressData = {
|
|
|
2612
3722
|
*/
|
|
2613
3723
|
requestBody: {
|
|
2614
3724
|
progress?: number;
|
|
3725
|
+
skipped_all?: boolean;
|
|
2615
3726
|
};
|
|
2616
3727
|
};
|
|
2617
3728
|
export type UpdateTutorialProgressResponse = (string);
|
|
@@ -2621,7 +3732,6 @@ export type GetRunnableResponse = ({
|
|
|
2621
3732
|
workspace: string;
|
|
2622
3733
|
endpoint_async: string;
|
|
2623
3734
|
endpoint_sync: string;
|
|
2624
|
-
endpoint_openai_sync: string;
|
|
2625
3735
|
summary: string;
|
|
2626
3736
|
description?: string;
|
|
2627
3737
|
kind: string;
|
|
@@ -2707,6 +3817,7 @@ export type InviteUserData = {
|
|
|
2707
3817
|
email: string;
|
|
2708
3818
|
is_admin: boolean;
|
|
2709
3819
|
operator: boolean;
|
|
3820
|
+
parent_workspace_id?: (string) | null;
|
|
2710
3821
|
};
|
|
2711
3822
|
workspace: string;
|
|
2712
3823
|
};
|
|
@@ -2745,6 +3856,7 @@ export type UnarchiveWorkspaceData = {
|
|
|
2745
3856
|
};
|
|
2746
3857
|
export type UnarchiveWorkspaceResponse = (string);
|
|
2747
3858
|
export type DeleteWorkspaceData = {
|
|
3859
|
+
onlyDeleteForks?: boolean;
|
|
2748
3860
|
workspace: string;
|
|
2749
3861
|
};
|
|
2750
3862
|
export type DeleteWorkspaceResponse = (string);
|
|
@@ -2788,6 +3900,22 @@ export type UpdateOperatorSettingsData = {
|
|
|
2788
3900
|
workspace: string;
|
|
2789
3901
|
};
|
|
2790
3902
|
export type UpdateOperatorSettingsResponse = (string);
|
|
3903
|
+
export type CompareWorkspacesData = {
|
|
3904
|
+
/**
|
|
3905
|
+
* The ID of the workspace to compare with
|
|
3906
|
+
*/
|
|
3907
|
+
targetWorkspaceId: string;
|
|
3908
|
+
workspace: string;
|
|
3909
|
+
};
|
|
3910
|
+
export type CompareWorkspacesResponse = (WorkspaceComparison);
|
|
3911
|
+
export type ResetDiffTallyData = {
|
|
3912
|
+
/**
|
|
3913
|
+
* The ID of the workspace to compare with
|
|
3914
|
+
*/
|
|
3915
|
+
forkWorkspaceId: string;
|
|
3916
|
+
workspace: string;
|
|
3917
|
+
};
|
|
3918
|
+
export type ResetDiffTallyResponse = (unknown);
|
|
2791
3919
|
export type ExistsEmailData = {
|
|
2792
3920
|
email: string;
|
|
2793
3921
|
};
|
|
@@ -2819,9 +3947,12 @@ export type GetSettingsResponse = ({
|
|
|
2819
3947
|
slack_name?: string;
|
|
2820
3948
|
slack_team_id?: string;
|
|
2821
3949
|
slack_command_script?: string;
|
|
3950
|
+
slack_oauth_client_id?: string;
|
|
3951
|
+
slack_oauth_client_secret?: string;
|
|
2822
3952
|
teams_team_id?: string;
|
|
2823
3953
|
teams_command_script?: string;
|
|
2824
3954
|
teams_team_name?: string;
|
|
3955
|
+
teams_team_guid?: string;
|
|
2825
3956
|
auto_invite_domain?: string;
|
|
2826
3957
|
auto_invite_operator?: boolean;
|
|
2827
3958
|
auto_add?: boolean;
|
|
@@ -2839,6 +3970,7 @@ export type GetSettingsResponse = ({
|
|
|
2839
3970
|
error_handler_muted_on_cancel: boolean;
|
|
2840
3971
|
large_file_storage?: LargeFileStorage;
|
|
2841
3972
|
ducklake?: DucklakeSettings;
|
|
3973
|
+
datatable?: DataTableSettings;
|
|
2842
3974
|
git_sync?: WorkspaceGitSyncSettings;
|
|
2843
3975
|
deploy_ui?: WorkspaceDeployUISettings;
|
|
2844
3976
|
default_app?: string;
|
|
@@ -2889,6 +4021,30 @@ export type SetThresholdAlertData = {
|
|
|
2889
4021
|
workspace: string;
|
|
2890
4022
|
};
|
|
2891
4023
|
export type SetThresholdAlertResponse = (string);
|
|
4024
|
+
export type RebuildDependencyMapData = {
|
|
4025
|
+
workspace: string;
|
|
4026
|
+
};
|
|
4027
|
+
export type RebuildDependencyMapResponse = (string);
|
|
4028
|
+
export type GetDependentsData = {
|
|
4029
|
+
/**
|
|
4030
|
+
* The imported path to get dependents for
|
|
4031
|
+
*/
|
|
4032
|
+
importedPath: string;
|
|
4033
|
+
workspace: string;
|
|
4034
|
+
};
|
|
4035
|
+
export type GetDependentsResponse = (Array<DependencyDependent>);
|
|
4036
|
+
export type GetDependentsAmountsData = {
|
|
4037
|
+
/**
|
|
4038
|
+
* List of imported paths to get dependents counts for
|
|
4039
|
+
*/
|
|
4040
|
+
requestBody: Array<(string)>;
|
|
4041
|
+
workspace: string;
|
|
4042
|
+
};
|
|
4043
|
+
export type GetDependentsAmountsResponse = (Array<DependentsAmount>);
|
|
4044
|
+
export type GetDependencyMapData = {
|
|
4045
|
+
workspace: string;
|
|
4046
|
+
};
|
|
4047
|
+
export type GetDependencyMapResponse = (Array<DependencyMap>);
|
|
2892
4048
|
export type EditSlackCommandData = {
|
|
2893
4049
|
/**
|
|
2894
4050
|
* WorkspaceInvite
|
|
@@ -2899,6 +4055,31 @@ export type EditSlackCommandData = {
|
|
|
2899
4055
|
workspace: string;
|
|
2900
4056
|
};
|
|
2901
4057
|
export type EditSlackCommandResponse = (string);
|
|
4058
|
+
export type GetWorkspaceSlackOauthConfigData = {
|
|
4059
|
+
workspace: string;
|
|
4060
|
+
};
|
|
4061
|
+
export type GetWorkspaceSlackOauthConfigResponse = ({
|
|
4062
|
+
slack_oauth_client_id?: (string) | null;
|
|
4063
|
+
/**
|
|
4064
|
+
* Masked with *** if set
|
|
4065
|
+
*/
|
|
4066
|
+
slack_oauth_client_secret?: (string) | null;
|
|
4067
|
+
});
|
|
4068
|
+
export type SetWorkspaceSlackOauthConfigData = {
|
|
4069
|
+
/**
|
|
4070
|
+
* Slack OAuth Configuration
|
|
4071
|
+
*/
|
|
4072
|
+
requestBody: {
|
|
4073
|
+
slack_oauth_client_id: string;
|
|
4074
|
+
slack_oauth_client_secret: string;
|
|
4075
|
+
};
|
|
4076
|
+
workspace: string;
|
|
4077
|
+
};
|
|
4078
|
+
export type SetWorkspaceSlackOauthConfigResponse = (string);
|
|
4079
|
+
export type DeleteWorkspaceSlackOauthConfigData = {
|
|
4080
|
+
workspace: string;
|
|
4081
|
+
};
|
|
4082
|
+
export type DeleteWorkspaceSlackOauthConfigResponse = (string);
|
|
2902
4083
|
export type EditTeamsCommandData = {
|
|
2903
4084
|
/**
|
|
2904
4085
|
* WorkspaceInvite
|
|
@@ -2910,21 +4091,48 @@ export type EditTeamsCommandData = {
|
|
|
2910
4091
|
};
|
|
2911
4092
|
export type EditTeamsCommandResponse = (string);
|
|
2912
4093
|
export type ListAvailableTeamsIdsData = {
|
|
4094
|
+
/**
|
|
4095
|
+
* Pagination cursor URL from previous response. Pass this to fetch the next page of results.
|
|
4096
|
+
*/
|
|
4097
|
+
nextLink?: string;
|
|
4098
|
+
/**
|
|
4099
|
+
* Search teams by name. If omitted, returns first page of all teams.
|
|
4100
|
+
*/
|
|
4101
|
+
search?: string;
|
|
2913
4102
|
workspace: string;
|
|
2914
4103
|
};
|
|
2915
|
-
export type ListAvailableTeamsIdsResponse = (
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
4104
|
+
export type ListAvailableTeamsIdsResponse = ({
|
|
4105
|
+
teams?: Array<{
|
|
4106
|
+
team_name?: string;
|
|
4107
|
+
team_id?: string;
|
|
4108
|
+
}>;
|
|
4109
|
+
/**
|
|
4110
|
+
* Total number of teams across all pages
|
|
4111
|
+
*/
|
|
4112
|
+
total_count?: number;
|
|
4113
|
+
/**
|
|
4114
|
+
* Number of teams per page (configurable via TEAMS_PER_PAGE env var)
|
|
4115
|
+
*/
|
|
4116
|
+
per_page?: number;
|
|
4117
|
+
/**
|
|
4118
|
+
* URL to fetch next page of results. Null if no more pages.
|
|
4119
|
+
*/
|
|
4120
|
+
next_link?: (string) | null;
|
|
4121
|
+
});
|
|
2919
4122
|
export type ListAvailableTeamsChannelsData = {
|
|
4123
|
+
/**
|
|
4124
|
+
* Microsoft Teams team ID
|
|
4125
|
+
*/
|
|
4126
|
+
teamId: string;
|
|
2920
4127
|
workspace: string;
|
|
2921
4128
|
};
|
|
2922
|
-
export type ListAvailableTeamsChannelsResponse = (
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
4129
|
+
export type ListAvailableTeamsChannelsResponse = ({
|
|
4130
|
+
channels?: Array<{
|
|
4131
|
+
channel_name?: string;
|
|
4132
|
+
channel_id?: string;
|
|
4133
|
+
}>;
|
|
4134
|
+
total_count?: number;
|
|
4135
|
+
});
|
|
2928
4136
|
export type ConnectTeamsData = {
|
|
2929
4137
|
/**
|
|
2930
4138
|
* connect teams
|
|
@@ -3044,6 +4252,14 @@ export type ListDucklakesData = {
|
|
|
3044
4252
|
workspace: string;
|
|
3045
4253
|
};
|
|
3046
4254
|
export type ListDucklakesResponse = (Array<(string)>);
|
|
4255
|
+
export type ListDataTablesData = {
|
|
4256
|
+
workspace: string;
|
|
4257
|
+
};
|
|
4258
|
+
export type ListDataTablesResponse = (Array<(string)>);
|
|
4259
|
+
export type ListDataTableSchemasData = {
|
|
4260
|
+
workspace: string;
|
|
4261
|
+
};
|
|
4262
|
+
export type ListDataTableSchemasResponse = (Array<DataTableSchema>);
|
|
3047
4263
|
export type EditDucklakeConfigData = {
|
|
3048
4264
|
/**
|
|
3049
4265
|
* Ducklake settings
|
|
@@ -3054,6 +4270,16 @@ export type EditDucklakeConfigData = {
|
|
|
3054
4270
|
workspace: string;
|
|
3055
4271
|
};
|
|
3056
4272
|
export type EditDucklakeConfigResponse = (unknown);
|
|
4273
|
+
export type EditDataTableConfigData = {
|
|
4274
|
+
/**
|
|
4275
|
+
* DataTable settings
|
|
4276
|
+
*/
|
|
4277
|
+
requestBody: {
|
|
4278
|
+
settings: DataTableSettings;
|
|
4279
|
+
};
|
|
4280
|
+
workspace: string;
|
|
4281
|
+
};
|
|
4282
|
+
export type EditDataTableConfigResponse = (unknown);
|
|
3057
4283
|
export type EditWorkspaceGitSyncConfigData = {
|
|
3058
4284
|
/**
|
|
3059
4285
|
* Workspace Git sync settings
|
|
@@ -3177,6 +4403,7 @@ export type GetUsedTriggersResponse = ({
|
|
|
3177
4403
|
mqtt_used: boolean;
|
|
3178
4404
|
gcp_used: boolean;
|
|
3179
4405
|
sqs_used: boolean;
|
|
4406
|
+
email_used: boolean;
|
|
3180
4407
|
});
|
|
3181
4408
|
export type ListUsersData = {
|
|
3182
4409
|
workspace: string;
|
|
@@ -3228,6 +4455,7 @@ export type ListTokensData = {
|
|
|
3228
4455
|
export type ListTokensResponse = (Array<TruncatedToken>);
|
|
3229
4456
|
export type GetOidcTokenData = {
|
|
3230
4457
|
audience: string;
|
|
4458
|
+
expiresIn?: number;
|
|
3231
4459
|
workspace: string;
|
|
3232
4460
|
};
|
|
3233
4461
|
export type GetOidcTokenResponse = (string);
|
|
@@ -3256,6 +4484,16 @@ export type DeleteVariableData = {
|
|
|
3256
4484
|
workspace: string;
|
|
3257
4485
|
};
|
|
3258
4486
|
export type DeleteVariableResponse = (string);
|
|
4487
|
+
export type DeleteVariablesBulkData = {
|
|
4488
|
+
/**
|
|
4489
|
+
* paths to delete
|
|
4490
|
+
*/
|
|
4491
|
+
requestBody: {
|
|
4492
|
+
paths: Array<(string)>;
|
|
4493
|
+
};
|
|
4494
|
+
workspace: string;
|
|
4495
|
+
};
|
|
4496
|
+
export type DeleteVariablesBulkResponse = (Array<(string)>);
|
|
3259
4497
|
export type UpdateVariableData = {
|
|
3260
4498
|
/**
|
|
3261
4499
|
* whether the variable is already encrypted (default false)
|
|
@@ -3414,7 +4652,10 @@ export type CreateAccountData = {
|
|
|
3414
4652
|
* code endpoint
|
|
3415
4653
|
*/
|
|
3416
4654
|
requestBody: {
|
|
3417
|
-
|
|
4655
|
+
/**
|
|
4656
|
+
* OAuth refresh token. For authorization_code flow, this contains the actual refresh token. For client_credentials flow, this must be set to an empty string.
|
|
4657
|
+
*/
|
|
4658
|
+
refresh_token: string;
|
|
3418
4659
|
expires_in: number;
|
|
3419
4660
|
client: string;
|
|
3420
4661
|
grant_type?: string;
|
|
@@ -3504,7 +4745,6 @@ export type GetOauthConnectResponse = ({
|
|
|
3504
4745
|
scopes?: Array<(string)>;
|
|
3505
4746
|
grant_types?: Array<(string)>;
|
|
3506
4747
|
});
|
|
3507
|
-
export type SyncTeamsResponse = (Array<TeamInfo>);
|
|
3508
4748
|
export type SendMessageToConversationData = {
|
|
3509
4749
|
requestBody: {
|
|
3510
4750
|
/**
|
|
@@ -3545,6 +4785,16 @@ export type DeleteResourceData = {
|
|
|
3545
4785
|
workspace: string;
|
|
3546
4786
|
};
|
|
3547
4787
|
export type DeleteResourceResponse = (string);
|
|
4788
|
+
export type DeleteResourcesBulkData = {
|
|
4789
|
+
/**
|
|
4790
|
+
* paths to delete
|
|
4791
|
+
*/
|
|
4792
|
+
requestBody: {
|
|
4793
|
+
paths: Array<(string)>;
|
|
4794
|
+
};
|
|
4795
|
+
workspace: string;
|
|
4796
|
+
};
|
|
4797
|
+
export type DeleteResourcesBulkResponse = (Array<(string)>);
|
|
3548
4798
|
export type UpdateResourceData = {
|
|
3549
4799
|
path: string;
|
|
3550
4800
|
/**
|
|
@@ -3588,6 +4838,17 @@ export type GetResourceValueData = {
|
|
|
3588
4838
|
workspace: string;
|
|
3589
4839
|
};
|
|
3590
4840
|
export type GetResourceValueResponse = (unknown);
|
|
4841
|
+
export type GetGitCommitHashData = {
|
|
4842
|
+
gitSshIdentity?: string;
|
|
4843
|
+
path: string;
|
|
4844
|
+
workspace: string;
|
|
4845
|
+
};
|
|
4846
|
+
export type GetGitCommitHashResponse = ({
|
|
4847
|
+
/**
|
|
4848
|
+
* Latest commit hash from git ls-remote
|
|
4849
|
+
*/
|
|
4850
|
+
commit_hash: string;
|
|
4851
|
+
});
|
|
3591
4852
|
export type ExistsResourceData = {
|
|
3592
4853
|
path: string;
|
|
3593
4854
|
workspace: string;
|
|
@@ -3624,6 +4885,17 @@ export type ListSearchResourceResponse = (Array<{
|
|
|
3624
4885
|
path: string;
|
|
3625
4886
|
value: unknown;
|
|
3626
4887
|
}>);
|
|
4888
|
+
export type GetMcpToolsData = {
|
|
4889
|
+
path: string;
|
|
4890
|
+
workspace: string;
|
|
4891
|
+
};
|
|
4892
|
+
export type GetMcpToolsResponse = (Array<{
|
|
4893
|
+
name: string;
|
|
4894
|
+
description?: string;
|
|
4895
|
+
parameters: {
|
|
4896
|
+
[key: string]: unknown;
|
|
4897
|
+
};
|
|
4898
|
+
}>);
|
|
3627
4899
|
export type ListResourceNamesData = {
|
|
3628
4900
|
name: string;
|
|
3629
4901
|
workspace: string;
|
|
@@ -3756,6 +5028,12 @@ export type GetHubScriptByPathResponse = ({
|
|
|
3756
5028
|
language: string;
|
|
3757
5029
|
summary?: string;
|
|
3758
5030
|
});
|
|
5031
|
+
export type PickHubScriptByPathData = {
|
|
5032
|
+
path: string;
|
|
5033
|
+
};
|
|
5034
|
+
export type PickHubScriptByPathResponse = ({
|
|
5035
|
+
success: boolean;
|
|
5036
|
+
});
|
|
3759
5037
|
export type GetTopHubScriptsData = {
|
|
3760
5038
|
/**
|
|
3761
5039
|
* query scripts app
|
|
@@ -3914,6 +5192,12 @@ export type ListScriptsData = {
|
|
|
3914
5192
|
*
|
|
3915
5193
|
*/
|
|
3916
5194
|
withDeploymentMsg?: boolean;
|
|
5195
|
+
/**
|
|
5196
|
+
* (default false)
|
|
5197
|
+
* If true, the description field will be omitted from the response.
|
|
5198
|
+
*
|
|
5199
|
+
*/
|
|
5200
|
+
withoutDescription?: boolean;
|
|
3917
5201
|
workspace: string;
|
|
3918
5202
|
};
|
|
3919
5203
|
export type ListScriptsResponse = (Array<Script>);
|
|
@@ -3962,6 +5246,36 @@ export type GetCustomTagsData = {
|
|
|
3962
5246
|
export type GetCustomTagsResponse = (Array<(string)>);
|
|
3963
5247
|
export type GeDefaultTagsResponse = (Array<(string)>);
|
|
3964
5248
|
export type IsDefaultTagsPerWorkspaceResponse = (boolean);
|
|
5249
|
+
export type CreateWorkspaceDependenciesData = {
|
|
5250
|
+
/**
|
|
5251
|
+
* New workspace dependencies
|
|
5252
|
+
*/
|
|
5253
|
+
requestBody: NewWorkspaceDependencies;
|
|
5254
|
+
workspace: string;
|
|
5255
|
+
};
|
|
5256
|
+
export type CreateWorkspaceDependenciesResponse = (string);
|
|
5257
|
+
export type ArchiveWorkspaceDependenciesData = {
|
|
5258
|
+
language: ScriptLang;
|
|
5259
|
+
name?: string;
|
|
5260
|
+
workspace: string;
|
|
5261
|
+
};
|
|
5262
|
+
export type ArchiveWorkspaceDependenciesResponse = (unknown);
|
|
5263
|
+
export type DeleteWorkspaceDependenciesData = {
|
|
5264
|
+
language: ScriptLang;
|
|
5265
|
+
name?: string;
|
|
5266
|
+
workspace: string;
|
|
5267
|
+
};
|
|
5268
|
+
export type DeleteWorkspaceDependenciesResponse = (unknown);
|
|
5269
|
+
export type ListWorkspaceDependenciesData = {
|
|
5270
|
+
workspace: string;
|
|
5271
|
+
};
|
|
5272
|
+
export type ListWorkspaceDependenciesResponse = (Array<WorkspaceDependencies>);
|
|
5273
|
+
export type GetLatestWorkspaceDependenciesData = {
|
|
5274
|
+
language: ScriptLang;
|
|
5275
|
+
name?: string;
|
|
5276
|
+
workspace: string;
|
|
5277
|
+
};
|
|
5278
|
+
export type GetLatestWorkspaceDependenciesResponse = (WorkspaceDependencies);
|
|
3965
5279
|
export type ArchiveScriptByPathData = {
|
|
3966
5280
|
path: string;
|
|
3967
5281
|
workspace: string;
|
|
@@ -3986,6 +5300,16 @@ export type DeleteScriptByPathData = {
|
|
|
3986
5300
|
workspace: string;
|
|
3987
5301
|
};
|
|
3988
5302
|
export type DeleteScriptByPathResponse = (string);
|
|
5303
|
+
export type DeleteScriptsBulkData = {
|
|
5304
|
+
/**
|
|
5305
|
+
* paths to delete
|
|
5306
|
+
*/
|
|
5307
|
+
requestBody: {
|
|
5308
|
+
paths: Array<(string)>;
|
|
5309
|
+
};
|
|
5310
|
+
workspace: string;
|
|
5311
|
+
};
|
|
5312
|
+
export type DeleteScriptsBulkResponse = (Array<(string)>);
|
|
3989
5313
|
export type GetScriptByPathData = {
|
|
3990
5314
|
path: string;
|
|
3991
5315
|
withStarredInfo?: boolean;
|
|
@@ -4069,70 +5393,370 @@ export type GetScriptDeploymentStatusData = {
|
|
|
4069
5393
|
export type GetScriptDeploymentStatusResponse = ({
|
|
4070
5394
|
lock?: string;
|
|
4071
5395
|
lock_error_logs?: string;
|
|
5396
|
+
job_id?: string;
|
|
4072
5397
|
});
|
|
4073
5398
|
export type ListSelectedJobGroupsData = {
|
|
4074
5399
|
/**
|
|
4075
5400
|
* script args
|
|
4076
5401
|
*/
|
|
4077
|
-
requestBody: Array<(string)>;
|
|
5402
|
+
requestBody: Array<(string)>;
|
|
5403
|
+
workspace: string;
|
|
5404
|
+
};
|
|
5405
|
+
export type ListSelectedJobGroupsResponse = (Array<{
|
|
5406
|
+
kind: 'script' | 'flow';
|
|
5407
|
+
script_path: string;
|
|
5408
|
+
latest_schema: {
|
|
5409
|
+
[key: string]: unknown;
|
|
5410
|
+
};
|
|
5411
|
+
schemas: Array<{
|
|
5412
|
+
schema: {
|
|
5413
|
+
[key: string]: unknown;
|
|
5414
|
+
};
|
|
5415
|
+
script_hash: string;
|
|
5416
|
+
job_ids: Array<(string)>;
|
|
5417
|
+
}>;
|
|
5418
|
+
}>);
|
|
5419
|
+
export type RunScriptByPathData = {
|
|
5420
|
+
/**
|
|
5421
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5422
|
+
*/
|
|
5423
|
+
cacheTtl?: string;
|
|
5424
|
+
/**
|
|
5425
|
+
* make the run invisible to the the script owner (default false)
|
|
5426
|
+
*/
|
|
5427
|
+
invisibleToOwner?: boolean;
|
|
5428
|
+
/**
|
|
5429
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5430
|
+
*/
|
|
5431
|
+
jobId?: string;
|
|
5432
|
+
/**
|
|
5433
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
5434
|
+
*/
|
|
5435
|
+
parentJob?: string;
|
|
5436
|
+
path: string;
|
|
5437
|
+
/**
|
|
5438
|
+
* script args
|
|
5439
|
+
*/
|
|
5440
|
+
requestBody: ScriptArgs;
|
|
5441
|
+
/**
|
|
5442
|
+
* when to schedule this job (leave empty for immediate run)
|
|
5443
|
+
*/
|
|
5444
|
+
scheduledFor?: string;
|
|
5445
|
+
/**
|
|
5446
|
+
* schedule the script to execute in the number of seconds starting now
|
|
5447
|
+
*/
|
|
5448
|
+
scheduledInSecs?: number;
|
|
5449
|
+
/**
|
|
5450
|
+
* skip the preprocessor
|
|
5451
|
+
*/
|
|
5452
|
+
skipPreprocessor?: boolean;
|
|
5453
|
+
/**
|
|
5454
|
+
* Override the tag to use
|
|
5455
|
+
*/
|
|
5456
|
+
tag?: string;
|
|
5457
|
+
workspace: string;
|
|
5458
|
+
};
|
|
5459
|
+
export type RunScriptByPathResponse = (string);
|
|
5460
|
+
export type RunWaitResultScriptByPathData = {
|
|
5461
|
+
/**
|
|
5462
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5463
|
+
*/
|
|
5464
|
+
cacheTtl?: string;
|
|
5465
|
+
/**
|
|
5466
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
5467
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5468
|
+
*
|
|
5469
|
+
*/
|
|
5470
|
+
includeHeader?: string;
|
|
5471
|
+
/**
|
|
5472
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5473
|
+
*/
|
|
5474
|
+
jobId?: string;
|
|
5475
|
+
/**
|
|
5476
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
5477
|
+
*/
|
|
5478
|
+
parentJob?: string;
|
|
5479
|
+
path: string;
|
|
5480
|
+
/**
|
|
5481
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5482
|
+
*
|
|
5483
|
+
*/
|
|
5484
|
+
queueLimit?: string;
|
|
5485
|
+
/**
|
|
5486
|
+
* script args
|
|
5487
|
+
*/
|
|
5488
|
+
requestBody: ScriptArgs;
|
|
5489
|
+
/**
|
|
5490
|
+
* skip the preprocessor
|
|
5491
|
+
*/
|
|
5492
|
+
skipPreprocessor?: boolean;
|
|
5493
|
+
/**
|
|
5494
|
+
* Override the tag to use
|
|
5495
|
+
*/
|
|
5496
|
+
tag?: string;
|
|
5497
|
+
workspace: string;
|
|
5498
|
+
};
|
|
5499
|
+
export type RunWaitResultScriptByPathResponse = (unknown);
|
|
5500
|
+
export type RunWaitResultScriptByPathGetData = {
|
|
5501
|
+
/**
|
|
5502
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5503
|
+
*/
|
|
5504
|
+
cacheTtl?: string;
|
|
5505
|
+
/**
|
|
5506
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
5507
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5508
|
+
*
|
|
5509
|
+
*/
|
|
5510
|
+
includeHeader?: string;
|
|
5511
|
+
/**
|
|
5512
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5513
|
+
*/
|
|
5514
|
+
jobId?: string;
|
|
5515
|
+
/**
|
|
5516
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
5517
|
+
*/
|
|
5518
|
+
parentJob?: string;
|
|
5519
|
+
path: string;
|
|
5520
|
+
/**
|
|
5521
|
+
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5522
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5523
|
+
*
|
|
5524
|
+
*/
|
|
5525
|
+
payload?: string;
|
|
5526
|
+
/**
|
|
5527
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5528
|
+
*
|
|
5529
|
+
*/
|
|
5530
|
+
queueLimit?: string;
|
|
5531
|
+
/**
|
|
5532
|
+
* skip the preprocessor
|
|
5533
|
+
*/
|
|
5534
|
+
skipPreprocessor?: boolean;
|
|
5535
|
+
/**
|
|
5536
|
+
* Override the tag to use
|
|
5537
|
+
*/
|
|
5538
|
+
tag?: string;
|
|
5539
|
+
workspace: string;
|
|
5540
|
+
};
|
|
5541
|
+
export type RunWaitResultScriptByPathGetResponse = (unknown);
|
|
5542
|
+
export type RunWaitResultFlowByPathData = {
|
|
5543
|
+
/**
|
|
5544
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
5545
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5546
|
+
*
|
|
5547
|
+
*/
|
|
5548
|
+
includeHeader?: string;
|
|
5549
|
+
/**
|
|
5550
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5551
|
+
*/
|
|
5552
|
+
jobId?: string;
|
|
5553
|
+
/**
|
|
5554
|
+
* memory ID for chat-enabled flows
|
|
5555
|
+
*/
|
|
5556
|
+
memoryId?: string;
|
|
5557
|
+
path: string;
|
|
5558
|
+
/**
|
|
5559
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5560
|
+
*
|
|
5561
|
+
*/
|
|
5562
|
+
queueLimit?: string;
|
|
5563
|
+
/**
|
|
5564
|
+
* script args
|
|
5565
|
+
*/
|
|
5566
|
+
requestBody: ScriptArgs;
|
|
5567
|
+
/**
|
|
5568
|
+
* skip the preprocessor
|
|
5569
|
+
*/
|
|
5570
|
+
skipPreprocessor?: boolean;
|
|
5571
|
+
workspace: string;
|
|
5572
|
+
};
|
|
5573
|
+
export type RunWaitResultFlowByPathResponse = (unknown);
|
|
5574
|
+
export type RunWaitResultFlowByVersionData = {
|
|
5575
|
+
/**
|
|
5576
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
5577
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5578
|
+
*
|
|
5579
|
+
*/
|
|
5580
|
+
includeHeader?: string;
|
|
5581
|
+
/**
|
|
5582
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5583
|
+
*/
|
|
5584
|
+
jobId?: string;
|
|
5585
|
+
/**
|
|
5586
|
+
* memory ID for chat-enabled flows
|
|
5587
|
+
*/
|
|
5588
|
+
memoryId?: string;
|
|
5589
|
+
/**
|
|
5590
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5591
|
+
*
|
|
5592
|
+
*/
|
|
5593
|
+
queueLimit?: string;
|
|
5594
|
+
/**
|
|
5595
|
+
* script args
|
|
5596
|
+
*/
|
|
5597
|
+
requestBody: ScriptArgs;
|
|
5598
|
+
/**
|
|
5599
|
+
* skip the preprocessor
|
|
5600
|
+
*/
|
|
5601
|
+
skipPreprocessor?: boolean;
|
|
5602
|
+
/**
|
|
5603
|
+
* flow version ID
|
|
5604
|
+
*/
|
|
5605
|
+
version: number;
|
|
5606
|
+
workspace: string;
|
|
5607
|
+
};
|
|
5608
|
+
export type RunWaitResultFlowByVersionResponse = (unknown);
|
|
5609
|
+
export type RunWaitResultFlowByVersionGetData = {
|
|
5610
|
+
/**
|
|
5611
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
5612
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5613
|
+
*
|
|
5614
|
+
*/
|
|
5615
|
+
includeHeader?: string;
|
|
5616
|
+
/**
|
|
5617
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5618
|
+
*/
|
|
5619
|
+
jobId?: string;
|
|
5620
|
+
/**
|
|
5621
|
+
* memory ID for chat-enabled flows
|
|
5622
|
+
*/
|
|
5623
|
+
memoryId?: string;
|
|
5624
|
+
/**
|
|
5625
|
+
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5626
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5627
|
+
*
|
|
5628
|
+
*/
|
|
5629
|
+
payload?: string;
|
|
5630
|
+
/**
|
|
5631
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5632
|
+
*
|
|
5633
|
+
*/
|
|
5634
|
+
queueLimit?: string;
|
|
5635
|
+
/**
|
|
5636
|
+
* skip the preprocessor
|
|
5637
|
+
*/
|
|
5638
|
+
skipPreprocessor?: boolean;
|
|
5639
|
+
/**
|
|
5640
|
+
* flow version ID
|
|
5641
|
+
*/
|
|
5642
|
+
version: number;
|
|
5643
|
+
workspace: string;
|
|
5644
|
+
};
|
|
5645
|
+
export type RunWaitResultFlowByVersionGetResponse = (unknown);
|
|
5646
|
+
export type RunAndStreamFlowByPathData = {
|
|
5647
|
+
/**
|
|
5648
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
5649
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5650
|
+
*
|
|
5651
|
+
*/
|
|
5652
|
+
includeHeader?: string;
|
|
5653
|
+
/**
|
|
5654
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5655
|
+
*/
|
|
5656
|
+
jobId?: string;
|
|
5657
|
+
/**
|
|
5658
|
+
* memory ID for chat-enabled flows
|
|
5659
|
+
*/
|
|
5660
|
+
memoryId?: string;
|
|
5661
|
+
path: string;
|
|
5662
|
+
/**
|
|
5663
|
+
* delay between polling for job updates in milliseconds
|
|
5664
|
+
*/
|
|
5665
|
+
pollDelayMs?: number;
|
|
5666
|
+
/**
|
|
5667
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5668
|
+
*
|
|
5669
|
+
*/
|
|
5670
|
+
queueLimit?: string;
|
|
5671
|
+
/**
|
|
5672
|
+
* flow args
|
|
5673
|
+
*/
|
|
5674
|
+
requestBody: ScriptArgs;
|
|
5675
|
+
/**
|
|
5676
|
+
* skip the preprocessor
|
|
5677
|
+
*/
|
|
5678
|
+
skipPreprocessor?: boolean;
|
|
5679
|
+
workspace: string;
|
|
5680
|
+
};
|
|
5681
|
+
export type RunAndStreamFlowByPathResponse = (string);
|
|
5682
|
+
export type RunAndStreamFlowByPathGetData = {
|
|
5683
|
+
/**
|
|
5684
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
5685
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5686
|
+
*
|
|
5687
|
+
*/
|
|
5688
|
+
includeHeader?: string;
|
|
5689
|
+
/**
|
|
5690
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5691
|
+
*/
|
|
5692
|
+
jobId?: string;
|
|
5693
|
+
/**
|
|
5694
|
+
* memory ID for chat-enabled flows
|
|
5695
|
+
*/
|
|
5696
|
+
memoryId?: string;
|
|
5697
|
+
path: string;
|
|
5698
|
+
/**
|
|
5699
|
+
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5700
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5701
|
+
*
|
|
5702
|
+
*/
|
|
5703
|
+
payload?: string;
|
|
5704
|
+
/**
|
|
5705
|
+
* delay between polling for job updates in milliseconds
|
|
5706
|
+
*/
|
|
5707
|
+
pollDelayMs?: number;
|
|
5708
|
+
/**
|
|
5709
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5710
|
+
*
|
|
5711
|
+
*/
|
|
5712
|
+
queueLimit?: string;
|
|
5713
|
+
/**
|
|
5714
|
+
* skip the preprocessor
|
|
5715
|
+
*/
|
|
5716
|
+
skipPreprocessor?: boolean;
|
|
4078
5717
|
workspace: string;
|
|
4079
5718
|
};
|
|
4080
|
-
export type
|
|
4081
|
-
|
|
4082
|
-
script_path: string;
|
|
4083
|
-
latest_schema: {
|
|
4084
|
-
[key: string]: unknown;
|
|
4085
|
-
};
|
|
4086
|
-
schemas: Array<{
|
|
4087
|
-
schema: {
|
|
4088
|
-
[key: string]: unknown;
|
|
4089
|
-
};
|
|
4090
|
-
script_hash: string;
|
|
4091
|
-
job_ids: Array<(string)>;
|
|
4092
|
-
}>;
|
|
4093
|
-
}>);
|
|
4094
|
-
export type RunScriptByPathData = {
|
|
4095
|
-
/**
|
|
4096
|
-
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
4097
|
-
*/
|
|
4098
|
-
cacheTtl?: string;
|
|
5719
|
+
export type RunAndStreamFlowByPathGetResponse = (string);
|
|
5720
|
+
export type RunAndStreamFlowByVersionData = {
|
|
4099
5721
|
/**
|
|
4100
|
-
*
|
|
5722
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
5723
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5724
|
+
*
|
|
4101
5725
|
*/
|
|
4102
|
-
|
|
5726
|
+
includeHeader?: string;
|
|
4103
5727
|
/**
|
|
4104
5728
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
4105
5729
|
*/
|
|
4106
5730
|
jobId?: string;
|
|
4107
5731
|
/**
|
|
4108
|
-
*
|
|
5732
|
+
* memory ID for chat-enabled flows
|
|
4109
5733
|
*/
|
|
4110
|
-
|
|
4111
|
-
path: string;
|
|
5734
|
+
memoryId?: string;
|
|
4112
5735
|
/**
|
|
4113
|
-
*
|
|
5736
|
+
* delay between polling for job updates in milliseconds
|
|
4114
5737
|
*/
|
|
4115
|
-
|
|
5738
|
+
pollDelayMs?: number;
|
|
4116
5739
|
/**
|
|
4117
|
-
*
|
|
5740
|
+
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5741
|
+
*
|
|
4118
5742
|
*/
|
|
4119
|
-
|
|
5743
|
+
queueLimit?: string;
|
|
4120
5744
|
/**
|
|
4121
|
-
*
|
|
5745
|
+
* flow args
|
|
4122
5746
|
*/
|
|
4123
|
-
|
|
5747
|
+
requestBody: ScriptArgs;
|
|
4124
5748
|
/**
|
|
4125
5749
|
* skip the preprocessor
|
|
4126
5750
|
*/
|
|
4127
5751
|
skipPreprocessor?: boolean;
|
|
4128
5752
|
/**
|
|
4129
|
-
*
|
|
5753
|
+
* flow version ID
|
|
4130
5754
|
*/
|
|
4131
|
-
|
|
5755
|
+
version: number;
|
|
4132
5756
|
workspace: string;
|
|
4133
5757
|
};
|
|
4134
|
-
export type
|
|
4135
|
-
export type
|
|
5758
|
+
export type RunAndStreamFlowByVersionResponse = (string);
|
|
5759
|
+
export type RunAndStreamFlowByVersionGetData = {
|
|
4136
5760
|
/**
|
|
4137
5761
|
* List of headers's keys (separated with ',') whove value are added to the args
|
|
4138
5762
|
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
@@ -4144,23 +5768,36 @@ export type OpenaiSyncScriptByPathData = {
|
|
|
4144
5768
|
*/
|
|
4145
5769
|
jobId?: string;
|
|
4146
5770
|
/**
|
|
4147
|
-
*
|
|
5771
|
+
* memory ID for chat-enabled flows
|
|
4148
5772
|
*/
|
|
4149
|
-
|
|
4150
|
-
|
|
5773
|
+
memoryId?: string;
|
|
5774
|
+
/**
|
|
5775
|
+
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5776
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5777
|
+
*
|
|
5778
|
+
*/
|
|
5779
|
+
payload?: string;
|
|
5780
|
+
/**
|
|
5781
|
+
* delay between polling for job updates in milliseconds
|
|
5782
|
+
*/
|
|
5783
|
+
pollDelayMs?: number;
|
|
4151
5784
|
/**
|
|
4152
5785
|
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
4153
5786
|
*
|
|
4154
5787
|
*/
|
|
4155
5788
|
queueLimit?: string;
|
|
4156
5789
|
/**
|
|
4157
|
-
*
|
|
5790
|
+
* skip the preprocessor
|
|
4158
5791
|
*/
|
|
4159
|
-
|
|
5792
|
+
skipPreprocessor?: boolean;
|
|
5793
|
+
/**
|
|
5794
|
+
* flow version ID
|
|
5795
|
+
*/
|
|
5796
|
+
version: number;
|
|
4160
5797
|
workspace: string;
|
|
4161
5798
|
};
|
|
4162
|
-
export type
|
|
4163
|
-
export type
|
|
5799
|
+
export type RunAndStreamFlowByVersionGetResponse = (string);
|
|
5800
|
+
export type RunAndStreamScriptByPathData = {
|
|
4164
5801
|
/**
|
|
4165
5802
|
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
4166
5803
|
*/
|
|
@@ -4180,6 +5817,10 @@ export type RunWaitResultScriptByPathData = {
|
|
|
4180
5817
|
*/
|
|
4181
5818
|
parentJob?: string;
|
|
4182
5819
|
path: string;
|
|
5820
|
+
/**
|
|
5821
|
+
* delay between polling for job updates in milliseconds
|
|
5822
|
+
*/
|
|
5823
|
+
pollDelayMs?: number;
|
|
4183
5824
|
/**
|
|
4184
5825
|
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
4185
5826
|
*
|
|
@@ -4189,14 +5830,18 @@ export type RunWaitResultScriptByPathData = {
|
|
|
4189
5830
|
* script args
|
|
4190
5831
|
*/
|
|
4191
5832
|
requestBody: ScriptArgs;
|
|
5833
|
+
/**
|
|
5834
|
+
* skip the preprocessor
|
|
5835
|
+
*/
|
|
5836
|
+
skipPreprocessor?: boolean;
|
|
4192
5837
|
/**
|
|
4193
5838
|
* Override the tag to use
|
|
4194
5839
|
*/
|
|
4195
5840
|
tag?: string;
|
|
4196
5841
|
workspace: string;
|
|
4197
5842
|
};
|
|
4198
|
-
export type
|
|
4199
|
-
export type
|
|
5843
|
+
export type RunAndStreamScriptByPathResponse = (string);
|
|
5844
|
+
export type RunAndStreamScriptByPathGetData = {
|
|
4200
5845
|
/**
|
|
4201
5846
|
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
4202
5847
|
*/
|
|
@@ -4222,19 +5867,32 @@ export type RunWaitResultScriptByPathGetData = {
|
|
|
4222
5867
|
*
|
|
4223
5868
|
*/
|
|
4224
5869
|
payload?: string;
|
|
5870
|
+
/**
|
|
5871
|
+
* delay between polling for job updates in milliseconds
|
|
5872
|
+
*/
|
|
5873
|
+
pollDelayMs?: number;
|
|
4225
5874
|
/**
|
|
4226
5875
|
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
4227
5876
|
*
|
|
4228
5877
|
*/
|
|
4229
5878
|
queueLimit?: string;
|
|
5879
|
+
/**
|
|
5880
|
+
* skip the preprocessor
|
|
5881
|
+
*/
|
|
5882
|
+
skipPreprocessor?: boolean;
|
|
4230
5883
|
/**
|
|
4231
5884
|
* Override the tag to use
|
|
4232
5885
|
*/
|
|
4233
5886
|
tag?: string;
|
|
4234
5887
|
workspace: string;
|
|
4235
5888
|
};
|
|
4236
|
-
export type
|
|
4237
|
-
export type
|
|
5889
|
+
export type RunAndStreamScriptByPathGetResponse = (string);
|
|
5890
|
+
export type RunAndStreamScriptByHashData = {
|
|
5891
|
+
/**
|
|
5892
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5893
|
+
*/
|
|
5894
|
+
cacheTtl?: string;
|
|
5895
|
+
hash: string;
|
|
4238
5896
|
/**
|
|
4239
5897
|
* List of headers's keys (separated with ',') whove value are added to the args
|
|
4240
5898
|
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
@@ -4245,7 +5903,14 @@ export type OpenaiSyncFlowByPathData = {
|
|
|
4245
5903
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
4246
5904
|
*/
|
|
4247
5905
|
jobId?: string;
|
|
4248
|
-
|
|
5906
|
+
/**
|
|
5907
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
5908
|
+
*/
|
|
5909
|
+
parentJob?: string;
|
|
5910
|
+
/**
|
|
5911
|
+
* delay between polling for job updates in milliseconds
|
|
5912
|
+
*/
|
|
5913
|
+
pollDelayMs?: number;
|
|
4249
5914
|
/**
|
|
4250
5915
|
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
4251
5916
|
*
|
|
@@ -4255,10 +5920,23 @@ export type OpenaiSyncFlowByPathData = {
|
|
|
4255
5920
|
* script args
|
|
4256
5921
|
*/
|
|
4257
5922
|
requestBody: ScriptArgs;
|
|
5923
|
+
/**
|
|
5924
|
+
* skip the preprocessor
|
|
5925
|
+
*/
|
|
5926
|
+
skipPreprocessor?: boolean;
|
|
5927
|
+
/**
|
|
5928
|
+
* Override the tag to use
|
|
5929
|
+
*/
|
|
5930
|
+
tag?: string;
|
|
4258
5931
|
workspace: string;
|
|
4259
5932
|
};
|
|
4260
|
-
export type
|
|
4261
|
-
export type
|
|
5933
|
+
export type RunAndStreamScriptByHashResponse = (string);
|
|
5934
|
+
export type RunAndStreamScriptByHashGetData = {
|
|
5935
|
+
/**
|
|
5936
|
+
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5937
|
+
*/
|
|
5938
|
+
cacheTtl?: string;
|
|
5939
|
+
hash: string;
|
|
4262
5940
|
/**
|
|
4263
5941
|
* List of headers's keys (separated with ',') whove value are added to the args
|
|
4264
5942
|
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
@@ -4269,19 +5947,36 @@ export type RunWaitResultFlowByPathData = {
|
|
|
4269
5947
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
4270
5948
|
*/
|
|
4271
5949
|
jobId?: string;
|
|
4272
|
-
|
|
5950
|
+
/**
|
|
5951
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
5952
|
+
*/
|
|
5953
|
+
parentJob?: string;
|
|
5954
|
+
/**
|
|
5955
|
+
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5956
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5957
|
+
*
|
|
5958
|
+
*/
|
|
5959
|
+
payload?: string;
|
|
5960
|
+
/**
|
|
5961
|
+
* delay between polling for job updates in milliseconds
|
|
5962
|
+
*/
|
|
5963
|
+
pollDelayMs?: number;
|
|
4273
5964
|
/**
|
|
4274
5965
|
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
4275
5966
|
*
|
|
4276
5967
|
*/
|
|
4277
5968
|
queueLimit?: string;
|
|
4278
5969
|
/**
|
|
4279
|
-
*
|
|
5970
|
+
* skip the preprocessor
|
|
4280
5971
|
*/
|
|
4281
|
-
|
|
5972
|
+
skipPreprocessor?: boolean;
|
|
5973
|
+
/**
|
|
5974
|
+
* Override the tag to use
|
|
5975
|
+
*/
|
|
5976
|
+
tag?: string;
|
|
4282
5977
|
workspace: string;
|
|
4283
5978
|
};
|
|
4284
|
-
export type
|
|
5979
|
+
export type RunAndStreamScriptByHashGetResponse = (string);
|
|
4285
5980
|
export type ResultByIdData = {
|
|
4286
5981
|
flowJobId: string;
|
|
4287
5982
|
nodeId: string;
|
|
@@ -4350,6 +6045,12 @@ export type ListFlowsData = {
|
|
|
4350
6045
|
*
|
|
4351
6046
|
*/
|
|
4352
6047
|
withDeploymentMsg?: boolean;
|
|
6048
|
+
/**
|
|
6049
|
+
* (default false)
|
|
6050
|
+
* If true, the description field will be omitted from the response.
|
|
6051
|
+
*
|
|
6052
|
+
*/
|
|
6053
|
+
withoutDescription?: boolean;
|
|
4353
6054
|
workspace: string;
|
|
4354
6055
|
};
|
|
4355
6056
|
export type ListFlowsResponse = (Array<(Flow & {
|
|
@@ -4367,19 +6068,18 @@ export type GetFlowLatestVersionData = {
|
|
|
4367
6068
|
};
|
|
4368
6069
|
export type GetFlowLatestVersionResponse = (FlowVersion);
|
|
4369
6070
|
export type ListFlowPathsFromWorkspaceRunnableData = {
|
|
6071
|
+
matchPathStart?: boolean;
|
|
4370
6072
|
path: string;
|
|
4371
6073
|
runnableKind: 'script' | 'flow';
|
|
4372
6074
|
workspace: string;
|
|
4373
6075
|
};
|
|
4374
6076
|
export type ListFlowPathsFromWorkspaceRunnableResponse = (Array<(string)>);
|
|
4375
6077
|
export type GetFlowVersionData = {
|
|
4376
|
-
path: string;
|
|
4377
6078
|
version: number;
|
|
4378
6079
|
workspace: string;
|
|
4379
6080
|
};
|
|
4380
6081
|
export type GetFlowVersionResponse = (Flow);
|
|
4381
6082
|
export type UpdateFlowHistoryData = {
|
|
4382
|
-
path: string;
|
|
4383
6083
|
/**
|
|
4384
6084
|
* Flow deployment message
|
|
4385
6085
|
*/
|
|
@@ -4402,6 +6102,7 @@ export type GetFlowDeploymentStatusData = {
|
|
|
4402
6102
|
};
|
|
4403
6103
|
export type GetFlowDeploymentStatusResponse = ({
|
|
4404
6104
|
lock_error_logs?: string;
|
|
6105
|
+
job_id?: string;
|
|
4405
6106
|
});
|
|
4406
6107
|
export type GetTriggersCountOfFlowData = {
|
|
4407
6108
|
path: string;
|
|
@@ -4478,6 +6179,50 @@ export type DeleteFlowByPathData = {
|
|
|
4478
6179
|
workspace: string;
|
|
4479
6180
|
};
|
|
4480
6181
|
export type DeleteFlowByPathResponse = (string);
|
|
6182
|
+
export type ListFlowConversationsData = {
|
|
6183
|
+
/**
|
|
6184
|
+
* filter conversations by flow path
|
|
6185
|
+
*/
|
|
6186
|
+
flowPath?: string;
|
|
6187
|
+
/**
|
|
6188
|
+
* which page to return (start at 1, default 1)
|
|
6189
|
+
*/
|
|
6190
|
+
page?: number;
|
|
6191
|
+
/**
|
|
6192
|
+
* number of items to return for a given page (default 30, max 100)
|
|
6193
|
+
*/
|
|
6194
|
+
perPage?: number;
|
|
6195
|
+
workspace: string;
|
|
6196
|
+
};
|
|
6197
|
+
export type ListFlowConversationsResponse = (Array<FlowConversation>);
|
|
6198
|
+
export type DeleteFlowConversationData = {
|
|
6199
|
+
/**
|
|
6200
|
+
* conversation id
|
|
6201
|
+
*/
|
|
6202
|
+
conversationId: string;
|
|
6203
|
+
workspace: string;
|
|
6204
|
+
};
|
|
6205
|
+
export type DeleteFlowConversationResponse = (string);
|
|
6206
|
+
export type ListConversationMessagesData = {
|
|
6207
|
+
/**
|
|
6208
|
+
* id to fetch only the messages after that id
|
|
6209
|
+
*/
|
|
6210
|
+
afterId?: string;
|
|
6211
|
+
/**
|
|
6212
|
+
* conversation id
|
|
6213
|
+
*/
|
|
6214
|
+
conversationId: string;
|
|
6215
|
+
/**
|
|
6216
|
+
* which page to return (start at 1, default 1)
|
|
6217
|
+
*/
|
|
6218
|
+
page?: number;
|
|
6219
|
+
/**
|
|
6220
|
+
* number of items to return for a given page (default 30, max 100)
|
|
6221
|
+
*/
|
|
6222
|
+
perPage?: number;
|
|
6223
|
+
workspace: string;
|
|
6224
|
+
};
|
|
6225
|
+
export type ListConversationMessagesResponse = (Array<FlowConversationMessage>);
|
|
4481
6226
|
export type ListRawAppsData = {
|
|
4482
6227
|
/**
|
|
4483
6228
|
* mask to filter exact matching user creator
|
|
@@ -4676,6 +6421,11 @@ export type GetPublicSecretOfAppData = {
|
|
|
4676
6421
|
workspace: string;
|
|
4677
6422
|
};
|
|
4678
6423
|
export type GetPublicSecretOfAppResponse = (string);
|
|
6424
|
+
export type GetPublicSecretOfLatestVersionOfAppData = {
|
|
6425
|
+
path: string;
|
|
6426
|
+
workspace: string;
|
|
6427
|
+
};
|
|
6428
|
+
export type GetPublicSecretOfLatestVersionOfAppResponse = (string);
|
|
4679
6429
|
export type GetAppByVersionData = {
|
|
4680
6430
|
id: number;
|
|
4681
6431
|
workspace: string;
|
|
@@ -4792,6 +6542,12 @@ export type ExecuteComponentData = {
|
|
|
4792
6542
|
[key: string]: unknown;
|
|
4793
6543
|
};
|
|
4794
6544
|
force_viewer_allow_user_resources?: Array<(string)>;
|
|
6545
|
+
/**
|
|
6546
|
+
* Runnable query parameters
|
|
6547
|
+
*/
|
|
6548
|
+
run_query_params?: {
|
|
6549
|
+
[key: string]: unknown;
|
|
6550
|
+
};
|
|
4795
6551
|
};
|
|
4796
6552
|
workspace: string;
|
|
4797
6553
|
};
|
|
@@ -4835,6 +6591,10 @@ export type RunFlowByPathData = {
|
|
|
4835
6591
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
4836
6592
|
*/
|
|
4837
6593
|
jobId?: string;
|
|
6594
|
+
/**
|
|
6595
|
+
* memory ID for chat-enabled flows
|
|
6596
|
+
*/
|
|
6597
|
+
memoryId?: string;
|
|
4838
6598
|
/**
|
|
4839
6599
|
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
4840
6600
|
*/
|
|
@@ -4863,6 +6623,56 @@ export type RunFlowByPathData = {
|
|
|
4863
6623
|
workspace: string;
|
|
4864
6624
|
};
|
|
4865
6625
|
export type RunFlowByPathResponse = (string);
|
|
6626
|
+
export type RunFlowByVersionData = {
|
|
6627
|
+
/**
|
|
6628
|
+
* List of headers's keys (separated with ',') whove value are added to the args
|
|
6629
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
6630
|
+
*
|
|
6631
|
+
*/
|
|
6632
|
+
includeHeader?: string;
|
|
6633
|
+
/**
|
|
6634
|
+
* make the run invisible to the the flow owner (default false)
|
|
6635
|
+
*/
|
|
6636
|
+
invisibleToOwner?: boolean;
|
|
6637
|
+
/**
|
|
6638
|
+
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
6639
|
+
*/
|
|
6640
|
+
jobId?: string;
|
|
6641
|
+
/**
|
|
6642
|
+
* memory ID for chat-enabled flows
|
|
6643
|
+
*/
|
|
6644
|
+
memoryId?: string;
|
|
6645
|
+
/**
|
|
6646
|
+
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
6647
|
+
*/
|
|
6648
|
+
parentJob?: string;
|
|
6649
|
+
/**
|
|
6650
|
+
* flow args
|
|
6651
|
+
*/
|
|
6652
|
+
requestBody: ScriptArgs;
|
|
6653
|
+
/**
|
|
6654
|
+
* when to schedule this job (leave empty for immediate run)
|
|
6655
|
+
*/
|
|
6656
|
+
scheduledFor?: string;
|
|
6657
|
+
/**
|
|
6658
|
+
* schedule the script to execute in the number of seconds starting now
|
|
6659
|
+
*/
|
|
6660
|
+
scheduledInSecs?: number;
|
|
6661
|
+
/**
|
|
6662
|
+
* skip the preprocessor
|
|
6663
|
+
*/
|
|
6664
|
+
skipPreprocessor?: boolean;
|
|
6665
|
+
/**
|
|
6666
|
+
* Override the tag to use
|
|
6667
|
+
*/
|
|
6668
|
+
tag?: string;
|
|
6669
|
+
/**
|
|
6670
|
+
* flow version ID
|
|
6671
|
+
*/
|
|
6672
|
+
version: number;
|
|
6673
|
+
workspace: string;
|
|
6674
|
+
};
|
|
6675
|
+
export type RunFlowByVersionResponse = (string);
|
|
4866
6676
|
export type BatchReRunJobsData = {
|
|
4867
6677
|
/**
|
|
4868
6678
|
* list of job ids to re run and arg tranforms
|
|
@@ -4890,10 +6700,6 @@ export type BatchReRunJobsData = {
|
|
|
4890
6700
|
};
|
|
4891
6701
|
export type BatchReRunJobsResponse = (string);
|
|
4892
6702
|
export type RestartFlowAtStepData = {
|
|
4893
|
-
/**
|
|
4894
|
-
* for branchall or loop, the iteration at which the flow should restart
|
|
4895
|
-
*/
|
|
4896
|
-
branchOrIterationN: number;
|
|
4897
6703
|
id: string;
|
|
4898
6704
|
/**
|
|
4899
6705
|
* List of headers's keys (separated with ',') whove value are added to the args
|
|
@@ -4914,9 +6720,22 @@ export type RestartFlowAtStepData = {
|
|
|
4914
6720
|
*/
|
|
4915
6721
|
parentJob?: string;
|
|
4916
6722
|
/**
|
|
4917
|
-
* flow
|
|
6723
|
+
* restart flow parameters
|
|
4918
6724
|
*/
|
|
4919
|
-
requestBody:
|
|
6725
|
+
requestBody: {
|
|
6726
|
+
/**
|
|
6727
|
+
* step id to restart the flow from
|
|
6728
|
+
*/
|
|
6729
|
+
step_id: string;
|
|
6730
|
+
/**
|
|
6731
|
+
* for branchall or loop, the iteration at which the flow should restart (optional)
|
|
6732
|
+
*/
|
|
6733
|
+
branch_or_iteration_n?: number;
|
|
6734
|
+
/**
|
|
6735
|
+
* specific flow version to use for restart (optional, uses current version if not specified)
|
|
6736
|
+
*/
|
|
6737
|
+
flow_version?: number;
|
|
6738
|
+
};
|
|
4920
6739
|
/**
|
|
4921
6740
|
* when to schedule this job (leave empty for immediate run)
|
|
4922
6741
|
*/
|
|
@@ -4925,10 +6744,6 @@ export type RestartFlowAtStepData = {
|
|
|
4925
6744
|
* schedule the script to execute in the number of seconds starting now
|
|
4926
6745
|
*/
|
|
4927
6746
|
scheduledInSecs?: number;
|
|
4928
|
-
/**
|
|
4929
|
-
* step id to restart the flow from
|
|
4930
|
-
*/
|
|
4931
|
-
stepId: string;
|
|
4932
6747
|
/**
|
|
4933
6748
|
* Override the tag to use
|
|
4934
6749
|
*/
|
|
@@ -5007,6 +6822,14 @@ export type RunScriptPreviewData = {
|
|
|
5007
6822
|
workspace: string;
|
|
5008
6823
|
};
|
|
5009
6824
|
export type RunScriptPreviewResponse = (string);
|
|
6825
|
+
export type RunScriptPreviewInlineData = {
|
|
6826
|
+
/**
|
|
6827
|
+
* preview
|
|
6828
|
+
*/
|
|
6829
|
+
requestBody: PreviewInline;
|
|
6830
|
+
workspace: string;
|
|
6831
|
+
};
|
|
6832
|
+
export type RunScriptPreviewInlineResponse = (unknown);
|
|
5010
6833
|
export type RunScriptPreviewAndWaitResultData = {
|
|
5011
6834
|
/**
|
|
5012
6835
|
* preview
|
|
@@ -5053,6 +6876,10 @@ export type RunFlowPreviewData = {
|
|
|
5053
6876
|
* The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
|
|
5054
6877
|
*/
|
|
5055
6878
|
jobId?: string;
|
|
6879
|
+
/**
|
|
6880
|
+
* memory ID for chat-enabled flows
|
|
6881
|
+
*/
|
|
6882
|
+
memoryId?: string;
|
|
5056
6883
|
/**
|
|
5057
6884
|
* preview
|
|
5058
6885
|
*/
|
|
@@ -5061,6 +6888,10 @@ export type RunFlowPreviewData = {
|
|
|
5061
6888
|
};
|
|
5062
6889
|
export type RunFlowPreviewResponse = (string);
|
|
5063
6890
|
export type RunFlowPreviewAndWaitResultData = {
|
|
6891
|
+
/**
|
|
6892
|
+
* memory ID for chat-enabled flows
|
|
6893
|
+
*/
|
|
6894
|
+
memoryId?: string;
|
|
5064
6895
|
/**
|
|
5065
6896
|
* preview
|
|
5066
6897
|
*/
|
|
@@ -5068,6 +6899,14 @@ export type RunFlowPreviewAndWaitResultData = {
|
|
|
5068
6899
|
workspace: string;
|
|
5069
6900
|
};
|
|
5070
6901
|
export type RunFlowPreviewAndWaitResultResponse = (unknown);
|
|
6902
|
+
export type RunDynamicSelectData = {
|
|
6903
|
+
/**
|
|
6904
|
+
* dynamic select request
|
|
6905
|
+
*/
|
|
6906
|
+
requestBody: DynamicInputData;
|
|
6907
|
+
workspace: string;
|
|
6908
|
+
};
|
|
6909
|
+
export type RunDynamicSelectResponse = (string);
|
|
5071
6910
|
export type ListQueueData = {
|
|
5072
6911
|
/**
|
|
5073
6912
|
* allow wildcards (*) in the filter of label, tag, worker
|
|
@@ -5157,6 +6996,14 @@ export type ListQueueData = {
|
|
|
5157
6996
|
* filter on jobs with a given tag/worker group
|
|
5158
6997
|
*/
|
|
5159
6998
|
tag?: string;
|
|
6999
|
+
/**
|
|
7000
|
+
* trigger kind (schedule, http, websocket...)
|
|
7001
|
+
*/
|
|
7002
|
+
triggerKind?: JobTriggerKind;
|
|
7003
|
+
/**
|
|
7004
|
+
* mask to filter by trigger path
|
|
7005
|
+
*/
|
|
7006
|
+
triggerPath?: string;
|
|
5160
7007
|
/**
|
|
5161
7008
|
* worker this job was ran on
|
|
5162
7009
|
*/
|
|
@@ -5199,29 +7046,33 @@ export type ListFilteredJobsUuidsData = {
|
|
|
5199
7046
|
*/
|
|
5200
7047
|
args?: string;
|
|
5201
7048
|
/**
|
|
5202
|
-
* filter on
|
|
7049
|
+
* filter on started after (exclusive) timestamp
|
|
5203
7050
|
*/
|
|
5204
|
-
|
|
7051
|
+
completedAfter?: string;
|
|
5205
7052
|
/**
|
|
5206
|
-
* filter on
|
|
7053
|
+
* filter on started before (inclusive) timestamp
|
|
7054
|
+
*/
|
|
7055
|
+
completedBefore?: string;
|
|
7056
|
+
/**
|
|
7057
|
+
* filter on created after (exclusive) timestamp
|
|
5207
7058
|
*/
|
|
5208
|
-
|
|
7059
|
+
createdAfter?: string;
|
|
5209
7060
|
/**
|
|
5210
|
-
*
|
|
7061
|
+
* filter on jobs created after X for jobs in the queue only
|
|
5211
7062
|
*/
|
|
5212
|
-
|
|
7063
|
+
createdAfterQueue?: string;
|
|
5213
7064
|
/**
|
|
5214
|
-
* filter on
|
|
7065
|
+
* filter on created before (inclusive) timestamp
|
|
5215
7066
|
*/
|
|
5216
|
-
|
|
7067
|
+
createdBefore?: string;
|
|
5217
7068
|
/**
|
|
5218
|
-
* filter on
|
|
7069
|
+
* filter on jobs created before X for jobs in the queue only
|
|
5219
7070
|
*/
|
|
5220
|
-
|
|
7071
|
+
createdBeforeQueue?: string;
|
|
5221
7072
|
/**
|
|
5222
|
-
*
|
|
7073
|
+
* mask to filter exact matching user creator
|
|
5223
7074
|
*/
|
|
5224
|
-
|
|
7075
|
+
createdBy?: string;
|
|
5225
7076
|
/**
|
|
5226
7077
|
* has null parent
|
|
5227
7078
|
*/
|
|
@@ -5407,6 +7258,7 @@ export type ListFilteredQueueUuidsData = {
|
|
|
5407
7258
|
};
|
|
5408
7259
|
export type ListFilteredQueueUuidsResponse = (Array<(string)>);
|
|
5409
7260
|
export type CancelSelectionData = {
|
|
7261
|
+
forceCancel?: boolean;
|
|
5410
7262
|
/**
|
|
5411
7263
|
* uuids of the jobs to cancel
|
|
5412
7264
|
*/
|
|
@@ -5414,6 +7266,48 @@ export type CancelSelectionData = {
|
|
|
5414
7266
|
workspace: string;
|
|
5415
7267
|
};
|
|
5416
7268
|
export type CancelSelectionResponse = (Array<(string)>);
|
|
7269
|
+
export type ResumeSuspendedTriggerJobsData = {
|
|
7270
|
+
/**
|
|
7271
|
+
* Optional list of job IDs to reassign
|
|
7272
|
+
*/
|
|
7273
|
+
requestBody?: {
|
|
7274
|
+
/**
|
|
7275
|
+
* Optional list of specific job UUIDs to reassign. If not provided, all suspended jobs for the trigger will be reassigned.
|
|
7276
|
+
*/
|
|
7277
|
+
job_ids?: Array<(string)>;
|
|
7278
|
+
};
|
|
7279
|
+
/**
|
|
7280
|
+
* The kind of trigger
|
|
7281
|
+
*/
|
|
7282
|
+
triggerKind: JobTriggerKind;
|
|
7283
|
+
/**
|
|
7284
|
+
* The path of the trigger (can contain forward slashes)
|
|
7285
|
+
*/
|
|
7286
|
+
triggerPath: string;
|
|
7287
|
+
workspace: string;
|
|
7288
|
+
};
|
|
7289
|
+
export type ResumeSuspendedTriggerJobsResponse = (string);
|
|
7290
|
+
export type CancelSuspendedTriggerJobsData = {
|
|
7291
|
+
/**
|
|
7292
|
+
* Optional list of job IDs to cancel
|
|
7293
|
+
*/
|
|
7294
|
+
requestBody?: {
|
|
7295
|
+
/**
|
|
7296
|
+
* Optional list of specific job UUIDs to cancel. If not provided, all suspended jobs for the trigger will be canceled.
|
|
7297
|
+
*/
|
|
7298
|
+
job_ids?: Array<(string)>;
|
|
7299
|
+
};
|
|
7300
|
+
/**
|
|
7301
|
+
* The kind of trigger
|
|
7302
|
+
*/
|
|
7303
|
+
triggerKind: JobTriggerKind;
|
|
7304
|
+
/**
|
|
7305
|
+
* The path of the trigger (can contain forward slashes)
|
|
7306
|
+
*/
|
|
7307
|
+
triggerPath: string;
|
|
7308
|
+
workspace: string;
|
|
7309
|
+
};
|
|
7310
|
+
export type CancelSuspendedTriggerJobsResponse = (string);
|
|
5417
7311
|
export type ListCompletedJobsData = {
|
|
5418
7312
|
/**
|
|
5419
7313
|
* allow wildcards (*) in the filter of label, tag, worker
|
|
@@ -5510,6 +7404,45 @@ export type ListCompletedJobsData = {
|
|
|
5510
7404
|
workspace: string;
|
|
5511
7405
|
};
|
|
5512
7406
|
export type ListCompletedJobsResponse = (Array<CompletedJob>);
|
|
7407
|
+
export type ExportCompletedJobsData = {
|
|
7408
|
+
/**
|
|
7409
|
+
* which page to return (start at 1, default 1)
|
|
7410
|
+
*/
|
|
7411
|
+
page?: number;
|
|
7412
|
+
/**
|
|
7413
|
+
* number of items to return for a given page (default 30, max 100)
|
|
7414
|
+
*/
|
|
7415
|
+
perPage?: number;
|
|
7416
|
+
workspace: string;
|
|
7417
|
+
};
|
|
7418
|
+
export type ExportCompletedJobsResponse = (Array<ExportableCompletedJob>);
|
|
7419
|
+
export type ImportCompletedJobsData = {
|
|
7420
|
+
requestBody: Array<ExportableCompletedJob>;
|
|
7421
|
+
workspace: string;
|
|
7422
|
+
};
|
|
7423
|
+
export type ImportCompletedJobsResponse = (string);
|
|
7424
|
+
export type ExportQueuedJobsData = {
|
|
7425
|
+
/**
|
|
7426
|
+
* which page to return (start at 1, default 1)
|
|
7427
|
+
*/
|
|
7428
|
+
page?: number;
|
|
7429
|
+
/**
|
|
7430
|
+
* number of items to return for a given page (default 30, max 100)
|
|
7431
|
+
*/
|
|
7432
|
+
perPage?: number;
|
|
7433
|
+
workspace: string;
|
|
7434
|
+
};
|
|
7435
|
+
export type ExportQueuedJobsResponse = (Array<ExportableQueuedJob>);
|
|
7436
|
+
export type ImportQueuedJobsData = {
|
|
7437
|
+
requestBody: Array<ExportableQueuedJob>;
|
|
7438
|
+
workspace: string;
|
|
7439
|
+
};
|
|
7440
|
+
export type ImportQueuedJobsResponse = (string);
|
|
7441
|
+
export type DeleteJobsData = {
|
|
7442
|
+
requestBody: Array<(string)>;
|
|
7443
|
+
workspace: string;
|
|
7444
|
+
};
|
|
7445
|
+
export type DeleteJobsResponse = (string);
|
|
5513
7446
|
export type ListJobsData = {
|
|
5514
7447
|
/**
|
|
5515
7448
|
* allow wildcards (*) in the filter of label, tag, worker
|
|
@@ -5524,29 +7457,33 @@ export type ListJobsData = {
|
|
|
5524
7457
|
*/
|
|
5525
7458
|
args?: string;
|
|
5526
7459
|
/**
|
|
5527
|
-
* filter on
|
|
7460
|
+
* filter on started after (exclusive) timestamp
|
|
5528
7461
|
*/
|
|
5529
|
-
|
|
7462
|
+
completedAfter?: string;
|
|
5530
7463
|
/**
|
|
5531
|
-
* filter on
|
|
7464
|
+
* filter on started before (inclusive) timestamp
|
|
5532
7465
|
*/
|
|
5533
|
-
|
|
7466
|
+
completedBefore?: string;
|
|
5534
7467
|
/**
|
|
5535
|
-
*
|
|
7468
|
+
* filter on created after (exclusive) timestamp
|
|
5536
7469
|
*/
|
|
5537
|
-
|
|
7470
|
+
createdAfter?: string;
|
|
7471
|
+
/**
|
|
7472
|
+
* filter on jobs created after X for jobs in the queue only
|
|
7473
|
+
*/
|
|
7474
|
+
createdAfterQueue?: string;
|
|
5538
7475
|
/**
|
|
5539
|
-
* filter on
|
|
7476
|
+
* filter on created before (inclusive) timestamp
|
|
5540
7477
|
*/
|
|
5541
|
-
|
|
7478
|
+
createdBefore?: string;
|
|
5542
7479
|
/**
|
|
5543
|
-
* filter on
|
|
7480
|
+
* filter on jobs created before X for jobs in the queue only
|
|
5544
7481
|
*/
|
|
5545
|
-
|
|
7482
|
+
createdBeforeQueue?: string;
|
|
5546
7483
|
/**
|
|
5547
|
-
*
|
|
7484
|
+
* mask to filter exact matching user creator
|
|
5548
7485
|
*/
|
|
5549
|
-
|
|
7486
|
+
createdBy?: string;
|
|
5550
7487
|
/**
|
|
5551
7488
|
* has null parent
|
|
5552
7489
|
*/
|
|
@@ -5571,10 +7508,6 @@ export type ListJobsData = {
|
|
|
5571
7508
|
* mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
|
|
5572
7509
|
*/
|
|
5573
7510
|
label?: string;
|
|
5574
|
-
/**
|
|
5575
|
-
* which page to return (start at 1, default 1)
|
|
5576
|
-
*/
|
|
5577
|
-
page?: number;
|
|
5578
7511
|
/**
|
|
5579
7512
|
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
5580
7513
|
*/
|
|
@@ -5631,6 +7564,10 @@ export type ListJobsData = {
|
|
|
5631
7564
|
* filter on jobs with a given tag/worker group
|
|
5632
7565
|
*/
|
|
5633
7566
|
tag?: string;
|
|
7567
|
+
/**
|
|
7568
|
+
* trigger kind (schedule, http, websocket...)
|
|
7569
|
+
*/
|
|
7570
|
+
triggerKind?: JobTriggerKind;
|
|
5634
7571
|
/**
|
|
5635
7572
|
* worker this job was ran on
|
|
5636
7573
|
*/
|
|
@@ -5681,6 +7618,14 @@ export type GetJobArgsData = {
|
|
|
5681
7618
|
workspace: string;
|
|
5682
7619
|
};
|
|
5683
7620
|
export type GetJobArgsResponse = (unknown);
|
|
7621
|
+
export type GetStartedAtByIdsData = {
|
|
7622
|
+
/**
|
|
7623
|
+
* ids
|
|
7624
|
+
*/
|
|
7625
|
+
requestBody: Array<(string)>;
|
|
7626
|
+
workspace: string;
|
|
7627
|
+
};
|
|
7628
|
+
export type GetStartedAtByIdsResponse = (Array<(string)>);
|
|
5684
7629
|
export type GetJobUpdatesData = {
|
|
5685
7630
|
getProgress?: boolean;
|
|
5686
7631
|
id: string;
|
|
@@ -5748,6 +7693,15 @@ export type GetCompletedJobResultMaybeResponse = ({
|
|
|
5748
7693
|
success?: boolean;
|
|
5749
7694
|
started?: boolean;
|
|
5750
7695
|
});
|
|
7696
|
+
export type GetCompletedJobTimingData = {
|
|
7697
|
+
id: string;
|
|
7698
|
+
workspace: string;
|
|
7699
|
+
};
|
|
7700
|
+
export type GetCompletedJobTimingResponse = ({
|
|
7701
|
+
created_at: string;
|
|
7702
|
+
started_at?: string;
|
|
7703
|
+
duration_ms?: number;
|
|
7704
|
+
});
|
|
5751
7705
|
export type DeleteCompletedJobData = {
|
|
5752
7706
|
id: string;
|
|
5753
7707
|
workspace: string;
|
|
@@ -5786,6 +7740,21 @@ export type ForceCancelQueuedJobData = {
|
|
|
5786
7740
|
workspace: string;
|
|
5787
7741
|
};
|
|
5788
7742
|
export type ForceCancelQueuedJobResponse = (string);
|
|
7743
|
+
export type GetQueuePositionData = {
|
|
7744
|
+
scheduledFor: number;
|
|
7745
|
+
workspace: string;
|
|
7746
|
+
};
|
|
7747
|
+
export type GetQueuePositionResponse = ({
|
|
7748
|
+
/**
|
|
7749
|
+
* The position in queue (1-based), null if not in queue or already running
|
|
7750
|
+
*/
|
|
7751
|
+
position?: number;
|
|
7752
|
+
});
|
|
7753
|
+
export type GetScheduledForData = {
|
|
7754
|
+
id: string;
|
|
7755
|
+
workspace: string;
|
|
7756
|
+
};
|
|
7757
|
+
export type GetScheduledForResponse = (number);
|
|
5789
7758
|
export type CreateJobSignatureData = {
|
|
5790
7759
|
approver?: string;
|
|
5791
7760
|
id: string;
|
|
@@ -6109,6 +8078,14 @@ export type ExistsRouteData = {
|
|
|
6109
8078
|
workspace: string;
|
|
6110
8079
|
};
|
|
6111
8080
|
export type ExistsRouteResponse = (boolean);
|
|
8081
|
+
export type SetHttpTriggerModeData = {
|
|
8082
|
+
path: string;
|
|
8083
|
+
requestBody: {
|
|
8084
|
+
mode: TriggerMode;
|
|
8085
|
+
};
|
|
8086
|
+
workspace: string;
|
|
8087
|
+
};
|
|
8088
|
+
export type SetHttpTriggerModeResponse = (string);
|
|
6112
8089
|
export type CreateWebsocketTriggerData = {
|
|
6113
8090
|
/**
|
|
6114
8091
|
* new websocket trigger
|
|
@@ -6159,17 +8136,17 @@ export type ExistsWebsocketTriggerData = {
|
|
|
6159
8136
|
workspace: string;
|
|
6160
8137
|
};
|
|
6161
8138
|
export type ExistsWebsocketTriggerResponse = (boolean);
|
|
6162
|
-
export type
|
|
8139
|
+
export type SetWebsocketTriggerModeData = {
|
|
6163
8140
|
path: string;
|
|
6164
8141
|
/**
|
|
6165
8142
|
* updated websocket trigger enable
|
|
6166
8143
|
*/
|
|
6167
8144
|
requestBody: {
|
|
6168
|
-
|
|
8145
|
+
mode: TriggerMode;
|
|
6169
8146
|
};
|
|
6170
8147
|
workspace: string;
|
|
6171
8148
|
};
|
|
6172
|
-
export type
|
|
8149
|
+
export type SetWebsocketTriggerModeResponse = (string);
|
|
6173
8150
|
export type TestWebsocketConnectionData = {
|
|
6174
8151
|
/**
|
|
6175
8152
|
* test websocket connection
|
|
@@ -6232,17 +8209,17 @@ export type ExistsKafkaTriggerData = {
|
|
|
6232
8209
|
workspace: string;
|
|
6233
8210
|
};
|
|
6234
8211
|
export type ExistsKafkaTriggerResponse = (boolean);
|
|
6235
|
-
export type
|
|
8212
|
+
export type SetKafkaTriggerModeData = {
|
|
6236
8213
|
path: string;
|
|
6237
8214
|
/**
|
|
6238
8215
|
* updated kafka trigger enable
|
|
6239
8216
|
*/
|
|
6240
8217
|
requestBody: {
|
|
6241
|
-
|
|
8218
|
+
mode: TriggerMode;
|
|
6242
8219
|
};
|
|
6243
8220
|
workspace: string;
|
|
6244
8221
|
};
|
|
6245
|
-
export type
|
|
8222
|
+
export type SetKafkaTriggerModeResponse = (string);
|
|
6246
8223
|
export type TestKafkaConnectionData = {
|
|
6247
8224
|
/**
|
|
6248
8225
|
* test kafka connection
|
|
@@ -6305,17 +8282,17 @@ export type ExistsNatsTriggerData = {
|
|
|
6305
8282
|
workspace: string;
|
|
6306
8283
|
};
|
|
6307
8284
|
export type ExistsNatsTriggerResponse = (boolean);
|
|
6308
|
-
export type
|
|
8285
|
+
export type SetNatsTriggerModeData = {
|
|
6309
8286
|
path: string;
|
|
6310
8287
|
/**
|
|
6311
8288
|
* updated nats trigger enable
|
|
6312
8289
|
*/
|
|
6313
8290
|
requestBody: {
|
|
6314
|
-
|
|
8291
|
+
mode: TriggerMode;
|
|
6315
8292
|
};
|
|
6316
8293
|
workspace: string;
|
|
6317
8294
|
};
|
|
6318
|
-
export type
|
|
8295
|
+
export type SetNatsTriggerModeResponse = (string);
|
|
6319
8296
|
export type TestNatsConnectionData = {
|
|
6320
8297
|
/**
|
|
6321
8298
|
* test nats connection
|
|
@@ -6378,17 +8355,17 @@ export type ExistsSqsTriggerData = {
|
|
|
6378
8355
|
workspace: string;
|
|
6379
8356
|
};
|
|
6380
8357
|
export type ExistsSqsTriggerResponse = (boolean);
|
|
6381
|
-
export type
|
|
8358
|
+
export type SetSqsTriggerModeData = {
|
|
6382
8359
|
path: string;
|
|
6383
8360
|
/**
|
|
6384
8361
|
* updated sqs trigger enable
|
|
6385
8362
|
*/
|
|
6386
8363
|
requestBody: {
|
|
6387
|
-
|
|
8364
|
+
mode: TriggerMode;
|
|
6388
8365
|
};
|
|
6389
8366
|
workspace: string;
|
|
6390
8367
|
};
|
|
6391
|
-
export type
|
|
8368
|
+
export type SetSqsTriggerModeResponse = (string);
|
|
6392
8369
|
export type TestSqsConnectionData = {
|
|
6393
8370
|
/**
|
|
6394
8371
|
* test sqs connection
|
|
@@ -6451,17 +8428,17 @@ export type ExistsMqttTriggerData = {
|
|
|
6451
8428
|
workspace: string;
|
|
6452
8429
|
};
|
|
6453
8430
|
export type ExistsMqttTriggerResponse = (boolean);
|
|
6454
|
-
export type
|
|
8431
|
+
export type SetMqttTriggerModeData = {
|
|
6455
8432
|
path: string;
|
|
6456
8433
|
/**
|
|
6457
8434
|
* updated mqtt trigger enable
|
|
6458
8435
|
*/
|
|
6459
8436
|
requestBody: {
|
|
6460
|
-
|
|
8437
|
+
mode: TriggerMode;
|
|
6461
8438
|
};
|
|
6462
8439
|
workspace: string;
|
|
6463
8440
|
};
|
|
6464
|
-
export type
|
|
8441
|
+
export type SetMqttTriggerModeResponse = (string);
|
|
6465
8442
|
export type TestMqttConnectionData = {
|
|
6466
8443
|
/**
|
|
6467
8444
|
* test mqtt connection
|
|
@@ -6524,17 +8501,17 @@ export type ExistsGcpTriggerData = {
|
|
|
6524
8501
|
workspace: string;
|
|
6525
8502
|
};
|
|
6526
8503
|
export type ExistsGcpTriggerResponse = (boolean);
|
|
6527
|
-
export type
|
|
8504
|
+
export type SetGcpTriggerModeData = {
|
|
6528
8505
|
path: string;
|
|
6529
8506
|
/**
|
|
6530
8507
|
* updated gcp trigger enable
|
|
6531
8508
|
*/
|
|
6532
8509
|
requestBody: {
|
|
6533
|
-
|
|
8510
|
+
mode: TriggerMode;
|
|
6534
8511
|
};
|
|
6535
8512
|
workspace: string;
|
|
6536
8513
|
};
|
|
6537
|
-
export type
|
|
8514
|
+
export type SetGcpTriggerModeResponse = (string);
|
|
6538
8515
|
export type TestGcpConnectionData = {
|
|
6539
8516
|
/**
|
|
6540
8517
|
* test gcp connection
|
|
@@ -6715,17 +8692,17 @@ export type ExistsPostgresTriggerData = {
|
|
|
6715
8692
|
workspace: string;
|
|
6716
8693
|
};
|
|
6717
8694
|
export type ExistsPostgresTriggerResponse = (boolean);
|
|
6718
|
-
export type
|
|
8695
|
+
export type SetPostgresTriggerModeData = {
|
|
6719
8696
|
path: string;
|
|
6720
8697
|
/**
|
|
6721
8698
|
* updated postgres trigger enable
|
|
6722
8699
|
*/
|
|
6723
8700
|
requestBody: {
|
|
6724
|
-
|
|
8701
|
+
mode: TriggerMode;
|
|
6725
8702
|
};
|
|
6726
8703
|
workspace: string;
|
|
6727
8704
|
};
|
|
6728
|
-
export type
|
|
8705
|
+
export type SetPostgresTriggerModeResponse = (string);
|
|
6729
8706
|
export type TestPostgresConnectionData = {
|
|
6730
8707
|
/**
|
|
6731
8708
|
* test postgres connection
|
|
@@ -6736,6 +8713,76 @@ export type TestPostgresConnectionData = {
|
|
|
6736
8713
|
workspace: string;
|
|
6737
8714
|
};
|
|
6738
8715
|
export type TestPostgresConnectionResponse = (string);
|
|
8716
|
+
export type CreateEmailTriggerData = {
|
|
8717
|
+
/**
|
|
8718
|
+
* new email trigger
|
|
8719
|
+
*/
|
|
8720
|
+
requestBody: NewEmailTrigger;
|
|
8721
|
+
workspace: string;
|
|
8722
|
+
};
|
|
8723
|
+
export type CreateEmailTriggerResponse = (string);
|
|
8724
|
+
export type UpdateEmailTriggerData = {
|
|
8725
|
+
path: string;
|
|
8726
|
+
/**
|
|
8727
|
+
* updated trigger
|
|
8728
|
+
*/
|
|
8729
|
+
requestBody: EditEmailTrigger;
|
|
8730
|
+
workspace: string;
|
|
8731
|
+
};
|
|
8732
|
+
export type UpdateEmailTriggerResponse = (string);
|
|
8733
|
+
export type DeleteEmailTriggerData = {
|
|
8734
|
+
path: string;
|
|
8735
|
+
workspace: string;
|
|
8736
|
+
};
|
|
8737
|
+
export type DeleteEmailTriggerResponse = (string);
|
|
8738
|
+
export type GetEmailTriggerData = {
|
|
8739
|
+
path: string;
|
|
8740
|
+
workspace: string;
|
|
8741
|
+
};
|
|
8742
|
+
export type GetEmailTriggerResponse = (EmailTrigger);
|
|
8743
|
+
export type ListEmailTriggersData = {
|
|
8744
|
+
isFlow?: boolean;
|
|
8745
|
+
/**
|
|
8746
|
+
* which page to return (start at 1, default 1)
|
|
8747
|
+
*/
|
|
8748
|
+
page?: number;
|
|
8749
|
+
/**
|
|
8750
|
+
* filter by path
|
|
8751
|
+
*/
|
|
8752
|
+
path?: string;
|
|
8753
|
+
pathStart?: string;
|
|
8754
|
+
/**
|
|
8755
|
+
* number of items to return for a given page (default 30, max 100)
|
|
8756
|
+
*/
|
|
8757
|
+
perPage?: number;
|
|
8758
|
+
workspace: string;
|
|
8759
|
+
};
|
|
8760
|
+
export type ListEmailTriggersResponse = (Array<EmailTrigger>);
|
|
8761
|
+
export type ExistsEmailTriggerData = {
|
|
8762
|
+
path: string;
|
|
8763
|
+
workspace: string;
|
|
8764
|
+
};
|
|
8765
|
+
export type ExistsEmailTriggerResponse = (boolean);
|
|
8766
|
+
export type ExistsEmailLocalPartData = {
|
|
8767
|
+
/**
|
|
8768
|
+
* email local part exists request
|
|
8769
|
+
*/
|
|
8770
|
+
requestBody: {
|
|
8771
|
+
local_part: string;
|
|
8772
|
+
workspaced_local_part?: boolean;
|
|
8773
|
+
trigger_path?: string;
|
|
8774
|
+
};
|
|
8775
|
+
workspace: string;
|
|
8776
|
+
};
|
|
8777
|
+
export type ExistsEmailLocalPartResponse = (boolean);
|
|
8778
|
+
export type SetEmailTriggerModeData = {
|
|
8779
|
+
path: string;
|
|
8780
|
+
requestBody: {
|
|
8781
|
+
mode: TriggerMode;
|
|
8782
|
+
};
|
|
8783
|
+
workspace: string;
|
|
8784
|
+
};
|
|
8785
|
+
export type SetEmailTriggerModeResponse = (string);
|
|
6739
8786
|
export type ListInstanceGroupsResponse = (Array<InstanceGroup>);
|
|
6740
8787
|
export type ListInstanceGroupsWithWorkspacesResponse = (Array<InstanceGroupWithWorkspaces>);
|
|
6741
8788
|
export type GetInstanceGroupData = {
|
|
@@ -6868,6 +8915,25 @@ export type RemoveUserToGroupData = {
|
|
|
6868
8915
|
workspace: string;
|
|
6869
8916
|
};
|
|
6870
8917
|
export type RemoveUserToGroupResponse = (string);
|
|
8918
|
+
export type GetGroupPermissionHistoryData = {
|
|
8919
|
+
name: string;
|
|
8920
|
+
/**
|
|
8921
|
+
* which page to return (start at 1, default 1)
|
|
8922
|
+
*/
|
|
8923
|
+
page?: number;
|
|
8924
|
+
/**
|
|
8925
|
+
* number of items to return for a given page (default 30, max 100)
|
|
8926
|
+
*/
|
|
8927
|
+
perPage?: number;
|
|
8928
|
+
workspace: string;
|
|
8929
|
+
};
|
|
8930
|
+
export type GetGroupPermissionHistoryResponse = (Array<{
|
|
8931
|
+
id?: number;
|
|
8932
|
+
changed_by?: string;
|
|
8933
|
+
changed_at?: string;
|
|
8934
|
+
change_type?: string;
|
|
8935
|
+
member_affected?: (string) | null;
|
|
8936
|
+
}>);
|
|
6871
8937
|
export type ListFoldersData = {
|
|
6872
8938
|
/**
|
|
6873
8939
|
* which page to return (start at 1, default 1)
|
|
@@ -6968,6 +9034,25 @@ export type RemoveOwnerToFolderData = {
|
|
|
6968
9034
|
workspace: string;
|
|
6969
9035
|
};
|
|
6970
9036
|
export type RemoveOwnerToFolderResponse = (string);
|
|
9037
|
+
export type GetFolderPermissionHistoryData = {
|
|
9038
|
+
name: string;
|
|
9039
|
+
/**
|
|
9040
|
+
* which page to return (start at 1, default 1)
|
|
9041
|
+
*/
|
|
9042
|
+
page?: number;
|
|
9043
|
+
/**
|
|
9044
|
+
* number of items to return for a given page (default 30, max 100)
|
|
9045
|
+
*/
|
|
9046
|
+
perPage?: number;
|
|
9047
|
+
workspace: string;
|
|
9048
|
+
};
|
|
9049
|
+
export type GetFolderPermissionHistoryResponse = (Array<{
|
|
9050
|
+
id?: number;
|
|
9051
|
+
changed_by?: string;
|
|
9052
|
+
changed_at?: string;
|
|
9053
|
+
change_type?: string;
|
|
9054
|
+
affected?: (string) | null;
|
|
9055
|
+
}>);
|
|
6971
9056
|
export type ListWorkersData = {
|
|
6972
9057
|
/**
|
|
6973
9058
|
* which page to return (start at 1, default 1)
|
|
@@ -7027,6 +9112,14 @@ export type DeleteConfigData = {
|
|
|
7027
9112
|
export type DeleteConfigResponse = (string);
|
|
7028
9113
|
export type ListConfigsResponse = (Array<Config>);
|
|
7029
9114
|
export type ListAutoscalingEventsData = {
|
|
9115
|
+
/**
|
|
9116
|
+
* which page to return (start at 1, default 1)
|
|
9117
|
+
*/
|
|
9118
|
+
page?: number;
|
|
9119
|
+
/**
|
|
9120
|
+
* number of items to return for a given page (default 30, max 100)
|
|
9121
|
+
*/
|
|
9122
|
+
perPage?: number;
|
|
7030
9123
|
workerGroup: string;
|
|
7031
9124
|
};
|
|
7032
9125
|
export type ListAutoscalingEventsResponse = (Array<AutoscalingEvent>);
|
|
@@ -7095,8 +9188,9 @@ export type ListBlacklistedAgentTokensResponse = (Array<{
|
|
|
7095
9188
|
*/
|
|
7096
9189
|
blacklisted_by: string;
|
|
7097
9190
|
}>);
|
|
9191
|
+
export type GetMinVersionResponse = (string);
|
|
7098
9192
|
export type GetGranularAclsData = {
|
|
7099
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
|
|
9193
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger';
|
|
7100
9194
|
path: string;
|
|
7101
9195
|
workspace: string;
|
|
7102
9196
|
};
|
|
@@ -7104,7 +9198,7 @@ export type GetGranularAclsResponse = ({
|
|
|
7104
9198
|
[key: string]: (boolean);
|
|
7105
9199
|
});
|
|
7106
9200
|
export type AddGranularAclsData = {
|
|
7107
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
|
|
9201
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger';
|
|
7108
9202
|
path: string;
|
|
7109
9203
|
/**
|
|
7110
9204
|
* acl to add
|
|
@@ -7117,7 +9211,7 @@ export type AddGranularAclsData = {
|
|
|
7117
9211
|
};
|
|
7118
9212
|
export type AddGranularAclsResponse = (string);
|
|
7119
9213
|
export type RemoveGranularAclsData = {
|
|
7120
|
-
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger';
|
|
9214
|
+
kind: 'script' | 'group_' | 'resource' | 'schedule' | 'variable' | 'flow' | 'folder' | 'app' | 'raw_app' | 'http_trigger' | 'websocket_trigger' | 'kafka_trigger' | 'nats_trigger' | 'postgres_trigger' | 'mqtt_trigger' | 'gcp_trigger' | 'sqs_trigger' | 'email_trigger';
|
|
7121
9215
|
path: string;
|
|
7122
9216
|
/**
|
|
7123
9217
|
* acl to add
|
|
@@ -7387,6 +9481,53 @@ export type LoadFilePreviewData = {
|
|
|
7387
9481
|
workspace: string;
|
|
7388
9482
|
};
|
|
7389
9483
|
export type LoadFilePreviewResponse = (WindmillFilePreview);
|
|
9484
|
+
export type ListGitRepoFilesData = {
|
|
9485
|
+
marker?: string;
|
|
9486
|
+
maxKeys: number;
|
|
9487
|
+
prefix?: string;
|
|
9488
|
+
storage?: string;
|
|
9489
|
+
workspace: string;
|
|
9490
|
+
};
|
|
9491
|
+
export type ListGitRepoFilesResponse = ({
|
|
9492
|
+
next_marker?: string;
|
|
9493
|
+
windmill_large_files: Array<WindmillLargeFile>;
|
|
9494
|
+
restricted_access?: boolean;
|
|
9495
|
+
});
|
|
9496
|
+
export type LoadGitRepoFilePreviewData = {
|
|
9497
|
+
csvHasHeader?: boolean;
|
|
9498
|
+
csvSeparator?: string;
|
|
9499
|
+
fileKey: string;
|
|
9500
|
+
fileMimeType?: string;
|
|
9501
|
+
fileSizeInBytes?: number;
|
|
9502
|
+
readBytesFrom?: number;
|
|
9503
|
+
readBytesLength?: number;
|
|
9504
|
+
storage?: string;
|
|
9505
|
+
workspace: string;
|
|
9506
|
+
};
|
|
9507
|
+
export type LoadGitRepoFilePreviewResponse = (WindmillFilePreview);
|
|
9508
|
+
export type LoadGitRepoFileMetadataData = {
|
|
9509
|
+
fileKey: string;
|
|
9510
|
+
storage?: string;
|
|
9511
|
+
workspace: string;
|
|
9512
|
+
};
|
|
9513
|
+
export type LoadGitRepoFileMetadataResponse = (WindmillFileMetadata);
|
|
9514
|
+
export type CheckS3FolderExistsData = {
|
|
9515
|
+
/**
|
|
9516
|
+
* S3 file key to check (e.g., gitrepos/{workspace_id}/u/user/resource/{commit_hash})
|
|
9517
|
+
*/
|
|
9518
|
+
fileKey: string;
|
|
9519
|
+
workspace: string;
|
|
9520
|
+
};
|
|
9521
|
+
export type CheckS3FolderExistsResponse = ({
|
|
9522
|
+
/**
|
|
9523
|
+
* Whether the path exists
|
|
9524
|
+
*/
|
|
9525
|
+
exists: boolean;
|
|
9526
|
+
/**
|
|
9527
|
+
* Whether the path is a folder (true) or file (false)
|
|
9528
|
+
*/
|
|
9529
|
+
is_folder: boolean;
|
|
9530
|
+
});
|
|
7390
9531
|
export type LoadParquetPreviewData = {
|
|
7391
9532
|
limit?: number;
|
|
7392
9533
|
offset?: number;
|
|
@@ -7452,6 +9593,23 @@ export type FileUploadData = {
|
|
|
7452
9593
|
export type FileUploadResponse = ({
|
|
7453
9594
|
file_key: string;
|
|
7454
9595
|
});
|
|
9596
|
+
export type GitRepoViewerFileUploadData = {
|
|
9597
|
+
contentDisposition?: string;
|
|
9598
|
+
contentType?: string;
|
|
9599
|
+
fileExtension?: string;
|
|
9600
|
+
fileKey?: string;
|
|
9601
|
+
/**
|
|
9602
|
+
* File content
|
|
9603
|
+
*/
|
|
9604
|
+
requestBody: (Blob | File);
|
|
9605
|
+
resourceType?: string;
|
|
9606
|
+
s3ResourcePath?: string;
|
|
9607
|
+
storage?: string;
|
|
9608
|
+
workspace: string;
|
|
9609
|
+
};
|
|
9610
|
+
export type GitRepoViewerFileUploadResponse = ({
|
|
9611
|
+
file_key: string;
|
|
9612
|
+
});
|
|
7455
9613
|
export type FileDownloadData = {
|
|
7456
9614
|
fileKey: string;
|
|
7457
9615
|
resourceType?: string;
|
|
@@ -7550,23 +9708,27 @@ export type ListExtendedJobsData = {
|
|
|
7550
9708
|
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
7551
9709
|
*/
|
|
7552
9710
|
args?: string;
|
|
7553
|
-
concurrencyKey?: string;
|
|
7554
9711
|
/**
|
|
7555
|
-
*
|
|
9712
|
+
* filter on started after (exclusive) timestamp
|
|
7556
9713
|
*/
|
|
7557
|
-
|
|
9714
|
+
completedAfter?: string;
|
|
7558
9715
|
/**
|
|
7559
|
-
* filter on
|
|
9716
|
+
* filter on started before (inclusive) timestamp
|
|
9717
|
+
*/
|
|
9718
|
+
completedBefore?: string;
|
|
9719
|
+
concurrencyKey?: string;
|
|
9720
|
+
/**
|
|
9721
|
+
* filter on jobs created after X for jobs in the queue only
|
|
7560
9722
|
*/
|
|
7561
|
-
|
|
9723
|
+
createdAfterQueue?: string;
|
|
7562
9724
|
/**
|
|
7563
|
-
* filter on
|
|
9725
|
+
* filter on jobs created before X for jobs in the queue only
|
|
7564
9726
|
*/
|
|
7565
|
-
|
|
9727
|
+
createdBeforeQueue?: string;
|
|
7566
9728
|
/**
|
|
7567
|
-
*
|
|
9729
|
+
* mask to filter exact matching user creator
|
|
7568
9730
|
*/
|
|
7569
|
-
|
|
9731
|
+
createdBy?: string;
|
|
7570
9732
|
/**
|
|
7571
9733
|
* has null parent
|
|
7572
9734
|
*/
|
|
@@ -7648,6 +9810,10 @@ export type ListExtendedJobsData = {
|
|
|
7648
9810
|
* filter on jobs with a given tag/worker group
|
|
7649
9811
|
*/
|
|
7650
9812
|
tag?: string;
|
|
9813
|
+
/**
|
|
9814
|
+
* trigger kind (schedule, http, websocket...)
|
|
9815
|
+
*/
|
|
9816
|
+
triggerKind?: JobTriggerKind;
|
|
7651
9817
|
workspace: string;
|
|
7652
9818
|
};
|
|
7653
9819
|
export type ListExtendedJobsResponse = (ExtendedJobs);
|