windmill-utils-internal 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/dist/config/config.d.ts +11 -0
- package/dist/config/config.js +231 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +17 -0
- package/dist/gen/core/OpenAPI.js +1 -1
- package/dist/gen/services.gen.d.ts +117 -16
- package/dist/gen/services.gen.js +252 -30
- package/dist/gen/types.gen.d.ts +440 -11
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/inline-scripts/extractor.js +3 -1
- package/dist/inline-scripts/replacer.js +20 -22
- package/dist/parse/parse-schema.d.ts +2 -0
- package/dist/parse/parse-schema.js +4 -0
- package/dist/path-utils/path-assigner.d.ts +6 -6
- package/dist/path-utils/path-assigner.js +26 -10
- package/package.json +5 -5
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export type JavascriptTransform = {
|
|
|
80
80
|
expr: string;
|
|
81
81
|
type: 'javascript';
|
|
82
82
|
};
|
|
83
|
-
export type FlowModuleValue = RawScript | PathScript | PathFlow | ForloopFlow | WhileloopFlow | BranchOne | BranchAll | Identity;
|
|
83
|
+
export type FlowModuleValue = RawScript | PathScript | PathFlow | ForloopFlow | WhileloopFlow | BranchOne | BranchAll | Identity | AiAgent;
|
|
84
84
|
export type RawScript = {
|
|
85
85
|
input_transforms: {
|
|
86
86
|
[key: string]: InputTransform;
|
|
@@ -97,7 +97,7 @@ export type RawScript = {
|
|
|
97
97
|
is_trigger?: boolean;
|
|
98
98
|
assets?: Array<{
|
|
99
99
|
path: string;
|
|
100
|
-
kind: 's3object' | 'resource';
|
|
100
|
+
kind: 's3object' | 'resource' | 'ducklake';
|
|
101
101
|
access_type?: 'r' | 'w' | 'rw';
|
|
102
102
|
alt_access_type?: 'r' | 'w' | 'rw';
|
|
103
103
|
}>;
|
|
@@ -153,6 +153,14 @@ export type BranchAll = {
|
|
|
153
153
|
type: 'branchall';
|
|
154
154
|
parallel?: boolean;
|
|
155
155
|
};
|
|
156
|
+
export type AiAgent = {
|
|
157
|
+
input_transforms: {
|
|
158
|
+
[key: string]: InputTransform;
|
|
159
|
+
};
|
|
160
|
+
tools: Array<FlowModule>;
|
|
161
|
+
type: 'aiagent';
|
|
162
|
+
parallel?: boolean;
|
|
163
|
+
};
|
|
156
164
|
export type Identity = {
|
|
157
165
|
type: 'identity';
|
|
158
166
|
flow?: boolean;
|
|
@@ -199,8 +207,57 @@ export type FlowStatusModule = {
|
|
|
199
207
|
}>;
|
|
200
208
|
failed_retries?: Array<(string)>;
|
|
201
209
|
skipped?: boolean;
|
|
210
|
+
agent_actions?: Array<({
|
|
211
|
+
job_id: string;
|
|
212
|
+
function_name: string;
|
|
213
|
+
type: 'tool_call';
|
|
214
|
+
module_id: string;
|
|
215
|
+
} | {
|
|
216
|
+
type: 'message';
|
|
217
|
+
})>;
|
|
218
|
+
agent_actions_success?: Array<(boolean)>;
|
|
202
219
|
};
|
|
203
220
|
export type type = 'WaitingForPriorSteps' | 'WaitingForEvents' | 'WaitingForExecutor' | 'InProgress' | 'Success' | 'Failure';
|
|
221
|
+
export type EndpointTool = {
|
|
222
|
+
/**
|
|
223
|
+
* The tool name/operation ID
|
|
224
|
+
*/
|
|
225
|
+
name: string;
|
|
226
|
+
/**
|
|
227
|
+
* Short description of the tool
|
|
228
|
+
*/
|
|
229
|
+
description: string;
|
|
230
|
+
/**
|
|
231
|
+
* Detailed instructions for using the tool
|
|
232
|
+
*/
|
|
233
|
+
instructions: string;
|
|
234
|
+
/**
|
|
235
|
+
* API endpoint path
|
|
236
|
+
*/
|
|
237
|
+
path: string;
|
|
238
|
+
/**
|
|
239
|
+
* HTTP method (GET, POST, etc.)
|
|
240
|
+
*/
|
|
241
|
+
method: string;
|
|
242
|
+
/**
|
|
243
|
+
* JSON schema for path parameters
|
|
244
|
+
*/
|
|
245
|
+
path_params_schema?: {
|
|
246
|
+
[key: string]: unknown;
|
|
247
|
+
} | null;
|
|
248
|
+
/**
|
|
249
|
+
* JSON schema for query parameters
|
|
250
|
+
*/
|
|
251
|
+
query_params_schema?: {
|
|
252
|
+
[key: string]: unknown;
|
|
253
|
+
} | null;
|
|
254
|
+
/**
|
|
255
|
+
* JSON schema for request body
|
|
256
|
+
*/
|
|
257
|
+
body_schema?: {
|
|
258
|
+
[key: string]: unknown;
|
|
259
|
+
} | null;
|
|
260
|
+
};
|
|
204
261
|
export type AIProvider = 'openai' | 'azure_openai' | 'anthropic' | 'mistral' | 'deepseek' | 'googleai' | 'groq' | 'openrouter' | 'togetherai' | 'customai';
|
|
205
262
|
export type GitSyncObjectType = 'script' | 'flow' | 'app' | 'folder' | 'resource' | 'variable' | 'secret' | 'resourcetype' | 'schedule' | 'user' | 'group' | 'trigger' | 'settings' | 'key';
|
|
206
263
|
export type AIProviderModel = {
|
|
@@ -217,6 +274,9 @@ export type AIConfig = {
|
|
|
217
274
|
};
|
|
218
275
|
default_model?: AIProviderModel;
|
|
219
276
|
code_completion_model?: AIProviderModel;
|
|
277
|
+
custom_prompts?: {
|
|
278
|
+
[key: string]: (string);
|
|
279
|
+
};
|
|
220
280
|
};
|
|
221
281
|
export type Alert = {
|
|
222
282
|
name: string;
|
|
@@ -311,7 +371,7 @@ export type NewScript = {
|
|
|
311
371
|
on_behalf_of_email?: string;
|
|
312
372
|
assets?: Array<{
|
|
313
373
|
path: string;
|
|
314
|
-
kind:
|
|
374
|
+
kind: AssetKind;
|
|
315
375
|
access_type?: 'r' | 'w' | 'rw';
|
|
316
376
|
alt_access_type?: 'r' | 'w' | 'rw';
|
|
317
377
|
}>;
|
|
@@ -324,6 +384,9 @@ export type ScriptHistory = {
|
|
|
324
384
|
script_hash: string;
|
|
325
385
|
deployment_msg?: string;
|
|
326
386
|
};
|
|
387
|
+
/**
|
|
388
|
+
* The arguments to pass to the script or flow
|
|
389
|
+
*/
|
|
327
390
|
export type ScriptArgs = {
|
|
328
391
|
[key: string]: unknown;
|
|
329
392
|
};
|
|
@@ -365,7 +428,7 @@ export type QueuedJob = {
|
|
|
365
428
|
canceled_by?: string;
|
|
366
429
|
canceled_reason?: string;
|
|
367
430
|
last_ping?: string;
|
|
368
|
-
job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript';
|
|
431
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent';
|
|
369
432
|
schedule_path?: string;
|
|
370
433
|
/**
|
|
371
434
|
* The user (u/userfoo) or group (g/groupfoo) whom
|
|
@@ -389,7 +452,7 @@ export type QueuedJob = {
|
|
|
389
452
|
preprocessed?: boolean;
|
|
390
453
|
worker?: string;
|
|
391
454
|
};
|
|
392
|
-
export type job_kind = 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript';
|
|
455
|
+
export type job_kind = 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent';
|
|
393
456
|
export type CompletedJob = {
|
|
394
457
|
workspace_id?: string;
|
|
395
458
|
id: string;
|
|
@@ -409,7 +472,7 @@ export type CompletedJob = {
|
|
|
409
472
|
canceled: boolean;
|
|
410
473
|
canceled_by?: string;
|
|
411
474
|
canceled_reason?: string;
|
|
412
|
-
job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript';
|
|
475
|
+
job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript' | 'flownode' | 'appscript' | 'aiagent';
|
|
413
476
|
schedule_path?: string;
|
|
414
477
|
/**
|
|
415
478
|
* The user (u/userfoo) or group (g/groupfoo) whom
|
|
@@ -457,7 +520,26 @@ export type User = {
|
|
|
457
520
|
groups?: Array<(string)>;
|
|
458
521
|
folders: Array<(string)>;
|
|
459
522
|
folders_owners: Array<(string)>;
|
|
523
|
+
added_via?: ((UserSource) | null);
|
|
460
524
|
};
|
|
525
|
+
export type UserSource = {
|
|
526
|
+
/**
|
|
527
|
+
* How the user was added to the workspace
|
|
528
|
+
*/
|
|
529
|
+
source: 'domain' | 'instance_group' | 'manual';
|
|
530
|
+
/**
|
|
531
|
+
* The domain used for auto-invite (when source is 'domain')
|
|
532
|
+
*/
|
|
533
|
+
domain?: string;
|
|
534
|
+
/**
|
|
535
|
+
* The instance group name (when source is 'instance_group')
|
|
536
|
+
*/
|
|
537
|
+
group?: string;
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* How the user was added to the workspace
|
|
541
|
+
*/
|
|
542
|
+
export type source = 'domain' | 'instance_group' | 'manual';
|
|
461
543
|
export type UserUsage = {
|
|
462
544
|
email?: string;
|
|
463
545
|
executions?: number;
|
|
@@ -516,18 +598,51 @@ export type ContextualVariable = {
|
|
|
516
598
|
is_custom: boolean;
|
|
517
599
|
};
|
|
518
600
|
export type CreateVariable = {
|
|
601
|
+
/**
|
|
602
|
+
* The path to the variable
|
|
603
|
+
*/
|
|
519
604
|
path: string;
|
|
605
|
+
/**
|
|
606
|
+
* The value of the variable
|
|
607
|
+
*/
|
|
520
608
|
value: string;
|
|
609
|
+
/**
|
|
610
|
+
* Whether the variable is a secret
|
|
611
|
+
*/
|
|
521
612
|
is_secret: boolean;
|
|
613
|
+
/**
|
|
614
|
+
* The description of the variable
|
|
615
|
+
*/
|
|
522
616
|
description: string;
|
|
617
|
+
/**
|
|
618
|
+
* The account identifier
|
|
619
|
+
*/
|
|
523
620
|
account?: number;
|
|
621
|
+
/**
|
|
622
|
+
* Whether the variable is an OAuth variable
|
|
623
|
+
*/
|
|
524
624
|
is_oauth?: boolean;
|
|
625
|
+
/**
|
|
626
|
+
* The expiration date of the variable
|
|
627
|
+
*/
|
|
525
628
|
expires_at?: string;
|
|
526
629
|
};
|
|
527
630
|
export type EditVariable = {
|
|
631
|
+
/**
|
|
632
|
+
* The path to the variable
|
|
633
|
+
*/
|
|
528
634
|
path?: string;
|
|
635
|
+
/**
|
|
636
|
+
* The new value of the variable
|
|
637
|
+
*/
|
|
529
638
|
value?: string;
|
|
639
|
+
/**
|
|
640
|
+
* Whether the variable is a secret
|
|
641
|
+
*/
|
|
530
642
|
is_secret?: boolean;
|
|
643
|
+
/**
|
|
644
|
+
* The new description of the variable
|
|
645
|
+
*/
|
|
531
646
|
description?: string;
|
|
532
647
|
};
|
|
533
648
|
export type AuditLog = {
|
|
@@ -577,10 +692,19 @@ export type MainArgSignature = {
|
|
|
577
692
|
has_preprocessor: (boolean) | null;
|
|
578
693
|
};
|
|
579
694
|
export type type3 = 'Valid' | 'Invalid';
|
|
580
|
-
export type ScriptLang = 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'oracledb' | 'graphql' | 'nativets' | 'bun' | 'php' | 'rust' | 'ansible' | 'csharp' | 'nu' | 'java' | 'duckdb';
|
|
695
|
+
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';
|
|
581
696
|
export type Preview = {
|
|
697
|
+
/**
|
|
698
|
+
* The code to run
|
|
699
|
+
*/
|
|
582
700
|
content?: string;
|
|
701
|
+
/**
|
|
702
|
+
* The path to the script
|
|
703
|
+
*/
|
|
583
704
|
path?: string;
|
|
705
|
+
/**
|
|
706
|
+
* The hash of the script
|
|
707
|
+
*/
|
|
584
708
|
script_hash?: string;
|
|
585
709
|
args: ScriptArgs;
|
|
586
710
|
language?: ScriptLang;
|
|
@@ -603,15 +727,34 @@ export type WorkflowStatus = {
|
|
|
603
727
|
name?: string;
|
|
604
728
|
};
|
|
605
729
|
export type CreateResource = {
|
|
730
|
+
/**
|
|
731
|
+
* The path to the resource
|
|
732
|
+
*/
|
|
606
733
|
path: string;
|
|
607
734
|
value: unknown;
|
|
735
|
+
/**
|
|
736
|
+
* The description of the resource
|
|
737
|
+
*/
|
|
608
738
|
description?: string;
|
|
739
|
+
/**
|
|
740
|
+
* The resource_type associated with the resource
|
|
741
|
+
*/
|
|
609
742
|
resource_type: string;
|
|
610
743
|
};
|
|
611
744
|
export type EditResource = {
|
|
745
|
+
/**
|
|
746
|
+
* The path to the resource
|
|
747
|
+
*/
|
|
612
748
|
path?: string;
|
|
749
|
+
/**
|
|
750
|
+
* The new description of the resource
|
|
751
|
+
*/
|
|
613
752
|
description?: string;
|
|
614
753
|
value?: unknown;
|
|
754
|
+
/**
|
|
755
|
+
* The new resource_type to be associated with the resource
|
|
756
|
+
*/
|
|
757
|
+
resource_type?: string;
|
|
615
758
|
};
|
|
616
759
|
export type Resource = {
|
|
617
760
|
workspace_id?: string;
|
|
@@ -697,52 +840,185 @@ export type ScheduleWJobs = Schedule & {
|
|
|
697
840
|
duration_ms: number;
|
|
698
841
|
}>;
|
|
699
842
|
};
|
|
843
|
+
export type ErrorHandler = 'custom' | 'slack' | 'teams' | 'email';
|
|
700
844
|
export type NewSchedule = {
|
|
845
|
+
/**
|
|
846
|
+
* The path where the schedule will be created
|
|
847
|
+
*/
|
|
701
848
|
path: string;
|
|
849
|
+
/**
|
|
850
|
+
* The cron schedule to trigger the script or flow. Should include seconds.
|
|
851
|
+
*/
|
|
702
852
|
schedule: string;
|
|
853
|
+
/**
|
|
854
|
+
* The timezone to use for the cron schedule
|
|
855
|
+
*/
|
|
703
856
|
timezone: string;
|
|
857
|
+
/**
|
|
858
|
+
* The path to the script or flow to trigger
|
|
859
|
+
*/
|
|
704
860
|
script_path: string;
|
|
861
|
+
/**
|
|
862
|
+
* Whether the schedule is for a flow
|
|
863
|
+
*/
|
|
705
864
|
is_flow: boolean;
|
|
865
|
+
/**
|
|
866
|
+
* The arguments to pass to the script or flow
|
|
867
|
+
*/
|
|
706
868
|
args: ScriptArgs;
|
|
869
|
+
/**
|
|
870
|
+
* Whether the schedule is enabled
|
|
871
|
+
*/
|
|
707
872
|
enabled?: boolean;
|
|
873
|
+
/**
|
|
874
|
+
* The path to the script or flow to trigger on failure
|
|
875
|
+
*/
|
|
708
876
|
on_failure?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The number of times to retry on failure
|
|
879
|
+
*/
|
|
709
880
|
on_failure_times?: number;
|
|
881
|
+
/**
|
|
882
|
+
* Whether the schedule should only run on the exact time
|
|
883
|
+
*/
|
|
710
884
|
on_failure_exact?: boolean;
|
|
885
|
+
/**
|
|
886
|
+
* The arguments to pass to the script or flow on failure
|
|
887
|
+
*/
|
|
711
888
|
on_failure_extra_args?: ScriptArgs;
|
|
889
|
+
/**
|
|
890
|
+
* The path to the script or flow to trigger on recovery
|
|
891
|
+
*/
|
|
712
892
|
on_recovery?: string;
|
|
893
|
+
/**
|
|
894
|
+
* The number of times to retry on recovery
|
|
895
|
+
*/
|
|
713
896
|
on_recovery_times?: number;
|
|
897
|
+
/**
|
|
898
|
+
* The arguments to pass to the script or flow on recovery
|
|
899
|
+
*/
|
|
714
900
|
on_recovery_extra_args?: ScriptArgs;
|
|
901
|
+
/**
|
|
902
|
+
* The path to the script or flow to trigger on success
|
|
903
|
+
*/
|
|
715
904
|
on_success?: string;
|
|
905
|
+
/**
|
|
906
|
+
* The arguments to pass to the script or flow on success
|
|
907
|
+
*/
|
|
716
908
|
on_success_extra_args?: ScriptArgs;
|
|
909
|
+
/**
|
|
910
|
+
* Whether the WebSocket error handler is muted
|
|
911
|
+
*/
|
|
717
912
|
ws_error_handler_muted?: boolean;
|
|
913
|
+
/**
|
|
914
|
+
* The retry configuration for the schedule
|
|
915
|
+
*/
|
|
718
916
|
retry?: Retry;
|
|
917
|
+
/**
|
|
918
|
+
* Whether the schedule should not run if a flow is already running
|
|
919
|
+
*/
|
|
719
920
|
no_flow_overlap?: boolean;
|
|
921
|
+
/**
|
|
922
|
+
* The summary of the schedule
|
|
923
|
+
*/
|
|
720
924
|
summary?: string;
|
|
925
|
+
/**
|
|
926
|
+
* The description of the schedule
|
|
927
|
+
*/
|
|
721
928
|
description?: string;
|
|
929
|
+
/**
|
|
930
|
+
* The tag of the schedule
|
|
931
|
+
*/
|
|
722
932
|
tag?: string;
|
|
933
|
+
/**
|
|
934
|
+
* The date and time the schedule will be paused until
|
|
935
|
+
*/
|
|
723
936
|
paused_until?: string;
|
|
937
|
+
/**
|
|
938
|
+
* The version of the cron schedule to use (last is v2)
|
|
939
|
+
*/
|
|
724
940
|
cron_version?: string;
|
|
725
941
|
};
|
|
726
942
|
export type EditSchedule = {
|
|
943
|
+
/**
|
|
944
|
+
* The cron schedule to trigger the script or flow. Should include seconds.
|
|
945
|
+
*/
|
|
727
946
|
schedule: string;
|
|
947
|
+
/**
|
|
948
|
+
* The timezone to use for the cron schedule
|
|
949
|
+
*/
|
|
728
950
|
timezone: string;
|
|
951
|
+
/**
|
|
952
|
+
* The arguments to pass to the script or flow
|
|
953
|
+
*/
|
|
729
954
|
args: ScriptArgs;
|
|
955
|
+
/**
|
|
956
|
+
* The path to the script or flow to trigger on failure
|
|
957
|
+
*/
|
|
730
958
|
on_failure?: string;
|
|
959
|
+
/**
|
|
960
|
+
* The number of times to retry on failure
|
|
961
|
+
*/
|
|
731
962
|
on_failure_times?: number;
|
|
963
|
+
/**
|
|
964
|
+
* Whether the schedule should only run on the exact time
|
|
965
|
+
*/
|
|
732
966
|
on_failure_exact?: boolean;
|
|
967
|
+
/**
|
|
968
|
+
* The arguments to pass to the script or flow on failure
|
|
969
|
+
*/
|
|
733
970
|
on_failure_extra_args?: ScriptArgs;
|
|
971
|
+
/**
|
|
972
|
+
* The path to the script or flow to trigger on recovery
|
|
973
|
+
*/
|
|
734
974
|
on_recovery?: string;
|
|
975
|
+
/**
|
|
976
|
+
* The number of times to retry on recovery
|
|
977
|
+
*/
|
|
735
978
|
on_recovery_times?: number;
|
|
979
|
+
/**
|
|
980
|
+
* The arguments to pass to the script or flow on recovery
|
|
981
|
+
*/
|
|
736
982
|
on_recovery_extra_args?: ScriptArgs;
|
|
983
|
+
/**
|
|
984
|
+
* The path to the script or flow to trigger on success
|
|
985
|
+
*/
|
|
737
986
|
on_success?: string;
|
|
987
|
+
/**
|
|
988
|
+
* The arguments to pass to the script or flow on success
|
|
989
|
+
*/
|
|
738
990
|
on_success_extra_args?: ScriptArgs;
|
|
991
|
+
/**
|
|
992
|
+
* Whether the WebSocket error handler is muted
|
|
993
|
+
*/
|
|
739
994
|
ws_error_handler_muted?: boolean;
|
|
995
|
+
/**
|
|
996
|
+
* The retry configuration for the schedule
|
|
997
|
+
*/
|
|
740
998
|
retry?: Retry;
|
|
999
|
+
/**
|
|
1000
|
+
* Whether the schedule should not run if a flow is already running
|
|
1001
|
+
*/
|
|
741
1002
|
no_flow_overlap?: boolean;
|
|
1003
|
+
/**
|
|
1004
|
+
* The summary of the schedule
|
|
1005
|
+
*/
|
|
742
1006
|
summary?: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* The description of the schedule
|
|
1009
|
+
*/
|
|
743
1010
|
description?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* The tag of the schedule
|
|
1013
|
+
*/
|
|
744
1014
|
tag?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* The date and time the schedule will be paused until
|
|
1017
|
+
*/
|
|
745
1018
|
paused_until?: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* The version of the cron schedule to use (last is v2)
|
|
1021
|
+
*/
|
|
746
1022
|
cron_version?: string;
|
|
747
1023
|
};
|
|
748
1024
|
export type TriggerExtraProperty = {
|
|
@@ -1035,6 +1311,7 @@ export type GcpTriggerData = {
|
|
|
1035
1311
|
script_path: string;
|
|
1036
1312
|
is_flow: boolean;
|
|
1037
1313
|
enabled?: boolean;
|
|
1314
|
+
auto_acknowledge_msg?: boolean;
|
|
1038
1315
|
error_handler_path?: string;
|
|
1039
1316
|
error_handler_args?: ScriptArgs;
|
|
1040
1317
|
retry?: Retry;
|
|
@@ -1238,6 +1515,17 @@ export type InstanceGroup = {
|
|
|
1238
1515
|
summary?: string;
|
|
1239
1516
|
emails?: Array<(string)>;
|
|
1240
1517
|
};
|
|
1518
|
+
export type InstanceGroupWithWorkspaces = {
|
|
1519
|
+
name: string;
|
|
1520
|
+
summary?: string;
|
|
1521
|
+
emails?: Array<(string)>;
|
|
1522
|
+
workspaces?: Array<WorkspaceInfo>;
|
|
1523
|
+
};
|
|
1524
|
+
export type WorkspaceInfo = {
|
|
1525
|
+
workspace_id?: string;
|
|
1526
|
+
workspace_name?: string;
|
|
1527
|
+
role?: string;
|
|
1528
|
+
};
|
|
1241
1529
|
export type Folder = {
|
|
1242
1530
|
name: string;
|
|
1243
1531
|
owners: Array<(string)>;
|
|
@@ -1481,6 +1769,20 @@ export type LargeFileStorage = {
|
|
|
1481
1769
|
};
|
|
1482
1770
|
};
|
|
1483
1771
|
export type type4 = 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc' | 'GoogleCloudStorage';
|
|
1772
|
+
export type DucklakeSettings = {
|
|
1773
|
+
ducklakes: {
|
|
1774
|
+
[key: string]: {
|
|
1775
|
+
catalog: {
|
|
1776
|
+
resource_type: 'postgresql' | 'mysql' | 'instance';
|
|
1777
|
+
resource_path?: string;
|
|
1778
|
+
};
|
|
1779
|
+
storage: {
|
|
1780
|
+
storage?: string;
|
|
1781
|
+
path: string;
|
|
1782
|
+
};
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1484
1786
|
export type WindmillLargeFile = {
|
|
1485
1787
|
s3: string;
|
|
1486
1788
|
};
|
|
@@ -1768,7 +2070,7 @@ export type TeamsChannel = {
|
|
|
1768
2070
|
};
|
|
1769
2071
|
export type AssetUsageKind = 'script' | 'flow';
|
|
1770
2072
|
export type AssetUsageAccessType = 'r' | 'w' | 'rw';
|
|
1771
|
-
export type AssetKind = 's3object' | 'resource';
|
|
2073
|
+
export type AssetKind = 's3object' | 'resource' | 'ducklake';
|
|
1772
2074
|
export type Asset = {
|
|
1773
2075
|
path: string;
|
|
1774
2076
|
kind: AssetKind;
|
|
@@ -1776,6 +2078,9 @@ export type Asset = {
|
|
|
1776
2078
|
export type ParameterId = string;
|
|
1777
2079
|
export type ParameterKey = string;
|
|
1778
2080
|
export type ParameterWorkspaceId = string;
|
|
2081
|
+
/**
|
|
2082
|
+
* The name of the publication
|
|
2083
|
+
*/
|
|
1779
2084
|
export type ParameterPublicationName = string;
|
|
1780
2085
|
export type ParameterVersionId = number;
|
|
1781
2086
|
export type ParameterToken = string;
|
|
@@ -2173,6 +2478,17 @@ export type ExistsUsernameData = {
|
|
|
2173
2478
|
};
|
|
2174
2479
|
};
|
|
2175
2480
|
export type ExistsUsernameResponse = (boolean);
|
|
2481
|
+
export type DatabasesExistData = {
|
|
2482
|
+
requestBody: Array<(string)>;
|
|
2483
|
+
};
|
|
2484
|
+
export type DatabasesExistResponse = (Array<(string)>);
|
|
2485
|
+
export type CreateDucklakeDatabaseData = {
|
|
2486
|
+
/**
|
|
2487
|
+
* The name of the database to create
|
|
2488
|
+
*/
|
|
2489
|
+
name: string;
|
|
2490
|
+
};
|
|
2491
|
+
export type CreateDucklakeDatabaseResponse = (unknown);
|
|
2176
2492
|
export type GetGlobalData = {
|
|
2177
2493
|
key: string;
|
|
2178
2494
|
};
|
|
@@ -2506,6 +2822,10 @@ export type GetSettingsResponse = ({
|
|
|
2506
2822
|
auto_invite_domain?: string;
|
|
2507
2823
|
auto_invite_operator?: boolean;
|
|
2508
2824
|
auto_add?: boolean;
|
|
2825
|
+
auto_add_instance_groups?: Array<(string)>;
|
|
2826
|
+
auto_add_instance_groups_roles?: {
|
|
2827
|
+
[key: string]: (string);
|
|
2828
|
+
};
|
|
2509
2829
|
plan?: string;
|
|
2510
2830
|
customer_id?: string;
|
|
2511
2831
|
webhook?: string;
|
|
@@ -2515,6 +2835,7 @@ export type GetSettingsResponse = ({
|
|
|
2515
2835
|
error_handler_extra_args?: ScriptArgs;
|
|
2516
2836
|
error_handler_muted_on_cancel: boolean;
|
|
2517
2837
|
large_file_storage?: LargeFileStorage;
|
|
2838
|
+
ducklake?: DucklakeSettings;
|
|
2518
2839
|
git_sync?: WorkspaceGitSyncSettings;
|
|
2519
2840
|
deploy_ui?: WorkspaceDeployUISettings;
|
|
2520
2841
|
default_app?: string;
|
|
@@ -2534,6 +2855,10 @@ export type GetIsPremiumData = {
|
|
|
2534
2855
|
};
|
|
2535
2856
|
export type GetIsPremiumResponse = (boolean);
|
|
2536
2857
|
export type GetPremiumInfoData = {
|
|
2858
|
+
/**
|
|
2859
|
+
* skip fetching subscription status from stripe
|
|
2860
|
+
*/
|
|
2861
|
+
skipSubscriptionFetch?: boolean;
|
|
2537
2862
|
workspace: string;
|
|
2538
2863
|
};
|
|
2539
2864
|
export type GetPremiumInfoResponse = ({
|
|
@@ -2541,6 +2866,8 @@ export type GetPremiumInfoResponse = ({
|
|
|
2541
2866
|
usage?: number;
|
|
2542
2867
|
owner: string;
|
|
2543
2868
|
status?: string;
|
|
2869
|
+
is_past_due: boolean;
|
|
2870
|
+
max_tolerated_executions?: number;
|
|
2544
2871
|
});
|
|
2545
2872
|
export type GetThresholdAlertData = {
|
|
2546
2873
|
workspace: string;
|
|
@@ -2653,6 +2980,19 @@ export type EditAutoInviteData = {
|
|
|
2653
2980
|
workspace: string;
|
|
2654
2981
|
};
|
|
2655
2982
|
export type EditAutoInviteResponse = (string);
|
|
2983
|
+
export type EditInstanceGroupsData = {
|
|
2984
|
+
/**
|
|
2985
|
+
* Instance Groups Configuration
|
|
2986
|
+
*/
|
|
2987
|
+
requestBody: {
|
|
2988
|
+
groups?: Array<(string)>;
|
|
2989
|
+
roles?: {
|
|
2990
|
+
[key: string]: (string);
|
|
2991
|
+
};
|
|
2992
|
+
};
|
|
2993
|
+
workspace: string;
|
|
2994
|
+
};
|
|
2995
|
+
export type EditInstanceGroupsResponse = (string);
|
|
2656
2996
|
export type EditWebhookData = {
|
|
2657
2997
|
/**
|
|
2658
2998
|
* WorkspaceWebhook
|
|
@@ -2697,6 +3037,20 @@ export type EditLargeFileStorageConfigData = {
|
|
|
2697
3037
|
workspace: string;
|
|
2698
3038
|
};
|
|
2699
3039
|
export type EditLargeFileStorageConfigResponse = (unknown);
|
|
3040
|
+
export type ListDucklakesData = {
|
|
3041
|
+
workspace: string;
|
|
3042
|
+
};
|
|
3043
|
+
export type ListDucklakesResponse = (Array<(string)>);
|
|
3044
|
+
export type EditDucklakeConfigData = {
|
|
3045
|
+
/**
|
|
3046
|
+
* Ducklake settings
|
|
3047
|
+
*/
|
|
3048
|
+
requestBody: {
|
|
3049
|
+
settings: DucklakeSettings;
|
|
3050
|
+
};
|
|
3051
|
+
workspace: string;
|
|
3052
|
+
};
|
|
3053
|
+
export type EditDucklakeConfigResponse = (unknown);
|
|
2700
3054
|
export type EditWorkspaceGitSyncConfigData = {
|
|
2701
3055
|
/**
|
|
2702
3056
|
* Workspace Git sync settings
|
|
@@ -2875,6 +3229,9 @@ export type GetOidcTokenData = {
|
|
|
2875
3229
|
};
|
|
2876
3230
|
export type GetOidcTokenResponse = (string);
|
|
2877
3231
|
export type CreateVariableData = {
|
|
3232
|
+
/**
|
|
3233
|
+
* whether the variable is already encrypted (default false)
|
|
3234
|
+
*/
|
|
2878
3235
|
alreadyEncrypted?: boolean;
|
|
2879
3236
|
/**
|
|
2880
3237
|
* new variable
|
|
@@ -2897,6 +3254,9 @@ export type DeleteVariableData = {
|
|
|
2897
3254
|
};
|
|
2898
3255
|
export type DeleteVariableResponse = (string);
|
|
2899
3256
|
export type UpdateVariableData = {
|
|
3257
|
+
/**
|
|
3258
|
+
* whether the variable is already encrypted (default false)
|
|
3259
|
+
*/
|
|
2900
3260
|
alreadyEncrypted?: boolean;
|
|
2901
3261
|
path: string;
|
|
2902
3262
|
/**
|
|
@@ -2937,6 +3297,9 @@ export type ListVariableData = {
|
|
|
2937
3297
|
* which page to return (start at 1, default 1)
|
|
2938
3298
|
*/
|
|
2939
3299
|
page?: number;
|
|
3300
|
+
/**
|
|
3301
|
+
* filter variables by path prefix
|
|
3302
|
+
*/
|
|
2940
3303
|
pathStart?: string;
|
|
2941
3304
|
/**
|
|
2942
3305
|
* number of items to return for a given page (default 30, max 100)
|
|
@@ -3162,6 +3525,9 @@ export type CreateResourceData = {
|
|
|
3162
3525
|
* new resource
|
|
3163
3526
|
*/
|
|
3164
3527
|
requestBody: CreateResource;
|
|
3528
|
+
/**
|
|
3529
|
+
* update the resource if it already exists (default false)
|
|
3530
|
+
*/
|
|
3165
3531
|
updateIfExists?: boolean;
|
|
3166
3532
|
workspace: string;
|
|
3167
3533
|
};
|
|
@@ -3220,6 +3586,9 @@ export type ListResourceData = {
|
|
|
3220
3586
|
* which page to return (start at 1, default 1)
|
|
3221
3587
|
*/
|
|
3222
3588
|
page?: number;
|
|
3589
|
+
/**
|
|
3590
|
+
* filter resources by path prefix
|
|
3591
|
+
*/
|
|
3223
3592
|
pathStart?: string;
|
|
3224
3593
|
/**
|
|
3225
3594
|
* number of items to return for a given page (default 30, max 100)
|
|
@@ -4626,6 +4995,14 @@ export type RunScriptPreviewData = {
|
|
|
4626
4995
|
workspace: string;
|
|
4627
4996
|
};
|
|
4628
4997
|
export type RunScriptPreviewResponse = (string);
|
|
4998
|
+
export type RunScriptPreviewAndWaitResultData = {
|
|
4999
|
+
/**
|
|
5000
|
+
* preview
|
|
5001
|
+
*/
|
|
5002
|
+
requestBody: Preview;
|
|
5003
|
+
workspace: string;
|
|
5004
|
+
};
|
|
5005
|
+
export type RunScriptPreviewAndWaitResultResponse = (unknown);
|
|
4629
5006
|
export type RunCodeWorkflowTaskData = {
|
|
4630
5007
|
entrypoint: string;
|
|
4631
5008
|
jobId: string;
|
|
@@ -4671,6 +5048,14 @@ export type RunFlowPreviewData = {
|
|
|
4671
5048
|
workspace: string;
|
|
4672
5049
|
};
|
|
4673
5050
|
export type RunFlowPreviewResponse = (string);
|
|
5051
|
+
export type RunFlowPreviewAndWaitResultData = {
|
|
5052
|
+
/**
|
|
5053
|
+
* preview
|
|
5054
|
+
*/
|
|
5055
|
+
requestBody: FlowPreview;
|
|
5056
|
+
workspace: string;
|
|
5057
|
+
};
|
|
5058
|
+
export type RunFlowPreviewAndWaitResultResponse = (unknown);
|
|
4674
5059
|
export type ListQueueData = {
|
|
4675
5060
|
/**
|
|
4676
5061
|
* allow wildcards (*) in the filter of label, tag, worker
|
|
@@ -5270,9 +5655,15 @@ export type GetRootJobIdData = {
|
|
|
5270
5655
|
export type GetRootJobIdResponse = (string);
|
|
5271
5656
|
export type GetJobLogsData = {
|
|
5272
5657
|
id: string;
|
|
5658
|
+
removeAnsiWarnings?: boolean;
|
|
5273
5659
|
workspace: string;
|
|
5274
5660
|
};
|
|
5275
5661
|
export type GetJobLogsResponse = (string);
|
|
5662
|
+
export type GetCompletedJobLogsTailData = {
|
|
5663
|
+
id: string;
|
|
5664
|
+
workspace: string;
|
|
5665
|
+
};
|
|
5666
|
+
export type GetCompletedJobLogsTailResponse = (string);
|
|
5276
5667
|
export type GetJobArgsData = {
|
|
5277
5668
|
id: string;
|
|
5278
5669
|
workspace: string;
|
|
@@ -5282,7 +5673,9 @@ export type GetJobUpdatesData = {
|
|
|
5282
5673
|
getProgress?: boolean;
|
|
5283
5674
|
id: string;
|
|
5284
5675
|
logOffset?: number;
|
|
5676
|
+
noLogs?: boolean;
|
|
5285
5677
|
running?: boolean;
|
|
5678
|
+
streamOffset?: number;
|
|
5286
5679
|
workspace: string;
|
|
5287
5680
|
};
|
|
5288
5681
|
export type GetJobUpdatesResponse = ({
|
|
@@ -5292,6 +5685,8 @@ export type GetJobUpdatesResponse = ({
|
|
|
5292
5685
|
log_offset?: number;
|
|
5293
5686
|
mem_peak?: number;
|
|
5294
5687
|
progress?: number;
|
|
5688
|
+
stream_offset?: number;
|
|
5689
|
+
new_result_stream?: string;
|
|
5295
5690
|
flow_status?: FlowStatus;
|
|
5296
5691
|
workflow_as_code_status?: WorkflowStatus;
|
|
5297
5692
|
});
|
|
@@ -5299,8 +5694,10 @@ export type GetJobUpdatesSseData = {
|
|
|
5299
5694
|
getProgress?: boolean;
|
|
5300
5695
|
id: string;
|
|
5301
5696
|
logOffset?: number;
|
|
5697
|
+
noLogs?: boolean;
|
|
5302
5698
|
onlyResult?: boolean;
|
|
5303
5699
|
running?: boolean;
|
|
5700
|
+
streamOffset?: number;
|
|
5304
5701
|
workspace: string;
|
|
5305
5702
|
};
|
|
5306
5703
|
export type GetJobUpdatesSseResponse = (string);
|
|
@@ -5560,6 +5957,9 @@ export type ListSchedulesData = {
|
|
|
5560
5957
|
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
5561
5958
|
*/
|
|
5562
5959
|
args?: string;
|
|
5960
|
+
/**
|
|
5961
|
+
* filter schedules by whether they target a flow
|
|
5962
|
+
*/
|
|
5563
5963
|
isFlow?: boolean;
|
|
5564
5964
|
/**
|
|
5565
5965
|
* which page to return (start at 1, default 1)
|
|
@@ -5569,6 +5969,9 @@ export type ListSchedulesData = {
|
|
|
5569
5969
|
* filter by path
|
|
5570
5970
|
*/
|
|
5571
5971
|
path?: string;
|
|
5972
|
+
/**
|
|
5973
|
+
* filter schedules by path prefix
|
|
5974
|
+
*/
|
|
5572
5975
|
pathStart?: string;
|
|
5573
5976
|
/**
|
|
5574
5977
|
* number of items to return for a given page (default 30, max 100)
|
|
@@ -6208,12 +6611,18 @@ export type ListPostgresPublicationData = {
|
|
|
6208
6611
|
export type ListPostgresPublicationResponse = (Array<(string)>);
|
|
6209
6612
|
export type GetPostgresPublicationData = {
|
|
6210
6613
|
path: string;
|
|
6614
|
+
/**
|
|
6615
|
+
* The name of the publication
|
|
6616
|
+
*/
|
|
6211
6617
|
publication: string;
|
|
6212
6618
|
workspace: string;
|
|
6213
6619
|
};
|
|
6214
6620
|
export type GetPostgresPublicationResponse = (PublicationData);
|
|
6215
6621
|
export type CreatePostgresPublicationData = {
|
|
6216
6622
|
path: string;
|
|
6623
|
+
/**
|
|
6624
|
+
* The name of the publication
|
|
6625
|
+
*/
|
|
6217
6626
|
publication: string;
|
|
6218
6627
|
/**
|
|
6219
6628
|
* new publication for postgres
|
|
@@ -6224,6 +6633,9 @@ export type CreatePostgresPublicationData = {
|
|
|
6224
6633
|
export type CreatePostgresPublicationResponse = (string);
|
|
6225
6634
|
export type UpdatePostgresPublicationData = {
|
|
6226
6635
|
path: string;
|
|
6636
|
+
/**
|
|
6637
|
+
* The name of the publication
|
|
6638
|
+
*/
|
|
6227
6639
|
publication: string;
|
|
6228
6640
|
/**
|
|
6229
6641
|
* update publication for postgres
|
|
@@ -6234,6 +6646,9 @@ export type UpdatePostgresPublicationData = {
|
|
|
6234
6646
|
export type UpdatePostgresPublicationResponse = (string);
|
|
6235
6647
|
export type DeletePostgresPublicationData = {
|
|
6236
6648
|
path: string;
|
|
6649
|
+
/**
|
|
6650
|
+
* The name of the publication
|
|
6651
|
+
*/
|
|
6237
6652
|
publication: string;
|
|
6238
6653
|
workspace: string;
|
|
6239
6654
|
};
|
|
@@ -6310,6 +6725,7 @@ export type TestPostgresConnectionData = {
|
|
|
6310
6725
|
};
|
|
6311
6726
|
export type TestPostgresConnectionResponse = (string);
|
|
6312
6727
|
export type ListInstanceGroupsResponse = (Array<InstanceGroup>);
|
|
6728
|
+
export type ListInstanceGroupsWithWorkspacesResponse = (Array<InstanceGroupWithWorkspaces>);
|
|
6313
6729
|
export type GetInstanceGroupData = {
|
|
6314
6730
|
name: string;
|
|
6315
6731
|
};
|
|
@@ -6555,10 +6971,15 @@ export type ListWorkersData = {
|
|
|
6555
6971
|
pingSince?: number;
|
|
6556
6972
|
};
|
|
6557
6973
|
export type ListWorkersResponse = (Array<WorkerPing>);
|
|
6558
|
-
export type
|
|
6559
|
-
|
|
6974
|
+
export type ExistsWorkersWithTagsData = {
|
|
6975
|
+
/**
|
|
6976
|
+
* comma separated list of tags
|
|
6977
|
+
*/
|
|
6978
|
+
tags: string;
|
|
6560
6979
|
};
|
|
6561
|
-
export type
|
|
6980
|
+
export type ExistsWorkersWithTagsResponse = ({
|
|
6981
|
+
[key: string]: (boolean);
|
|
6982
|
+
});
|
|
6562
6983
|
export type GetQueueMetricsResponse = (Array<{
|
|
6563
6984
|
id: string;
|
|
6564
6985
|
values: Array<{
|
|
@@ -6569,6 +6990,9 @@ export type GetQueueMetricsResponse = (Array<{
|
|
|
6569
6990
|
export type GetCountsOfJobsWaitingPerTagResponse = ({
|
|
6570
6991
|
[key: string]: (number);
|
|
6571
6992
|
});
|
|
6993
|
+
export type GetCountsOfRunningJobsPerTagResponse = ({
|
|
6994
|
+
[key: string]: (number);
|
|
6995
|
+
});
|
|
6572
6996
|
export type ListWorkerGroupsResponse = (Array<{
|
|
6573
6997
|
name: string;
|
|
6574
6998
|
config: unknown;
|
|
@@ -6594,6 +7018,7 @@ export type ListAutoscalingEventsData = {
|
|
|
6594
7018
|
workerGroup: string;
|
|
6595
7019
|
};
|
|
6596
7020
|
export type ListAutoscalingEventsResponse = (Array<AutoscalingEvent>);
|
|
7021
|
+
export type NativeKubernetesAutoscalingHealthcheckResponse = (unknown);
|
|
6597
7022
|
export type ListAvailablePythonVersionsResponse = (Array<(string)>);
|
|
6598
7023
|
export type CreateAgentTokenData = {
|
|
6599
7024
|
/**
|
|
@@ -7317,3 +7742,7 @@ export type ListAssetsByUsageResponse = (Array<Array<{
|
|
|
7317
7742
|
kind: AssetKind;
|
|
7318
7743
|
access_type?: AssetUsageAccessType;
|
|
7319
7744
|
}>>);
|
|
7745
|
+
export type ListMcpToolsData = {
|
|
7746
|
+
workspace: string;
|
|
7747
|
+
};
|
|
7748
|
+
export type ListMcpToolsResponse = (Array<EndpointTool>);
|