windmill-cli 1.519.2 → 1.520.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/esm/gen/core/OpenAPI.js +1 -1
- package/esm/gen/services.gen.js +13 -11
- package/esm/src/main.js +1 -1
- package/package.json +1 -1
- package/types/gen/services.gen.d.ts +12 -11
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +225 -0
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/src/main.d.ts +1 -1
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts +225 -0
- package/types/windmill-utils-internal/src/gen/types.gen.d.ts.map +1 -1
package/types/gen/types.gen.d.ts
CHANGED
|
@@ -324,6 +324,9 @@ export type ScriptHistory = {
|
|
|
324
324
|
script_hash: string;
|
|
325
325
|
deployment_msg?: string;
|
|
326
326
|
};
|
|
327
|
+
/**
|
|
328
|
+
* The arguments to pass to the script or flow
|
|
329
|
+
*/
|
|
327
330
|
export type ScriptArgs = {
|
|
328
331
|
[key: string]: unknown;
|
|
329
332
|
};
|
|
@@ -516,18 +519,51 @@ export type ContextualVariable = {
|
|
|
516
519
|
is_custom: boolean;
|
|
517
520
|
};
|
|
518
521
|
export type CreateVariable = {
|
|
522
|
+
/**
|
|
523
|
+
* The path to the variable
|
|
524
|
+
*/
|
|
519
525
|
path: string;
|
|
526
|
+
/**
|
|
527
|
+
* The value of the variable
|
|
528
|
+
*/
|
|
520
529
|
value: string;
|
|
530
|
+
/**
|
|
531
|
+
* Whether the variable is a secret
|
|
532
|
+
*/
|
|
521
533
|
is_secret: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* The description of the variable
|
|
536
|
+
*/
|
|
522
537
|
description: string;
|
|
538
|
+
/**
|
|
539
|
+
* The account identifier
|
|
540
|
+
*/
|
|
523
541
|
account?: number;
|
|
542
|
+
/**
|
|
543
|
+
* Whether the variable is an OAuth variable
|
|
544
|
+
*/
|
|
524
545
|
is_oauth?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* The expiration date of the variable
|
|
548
|
+
*/
|
|
525
549
|
expires_at?: string;
|
|
526
550
|
};
|
|
527
551
|
export type EditVariable = {
|
|
552
|
+
/**
|
|
553
|
+
* The path to the variable
|
|
554
|
+
*/
|
|
528
555
|
path?: string;
|
|
556
|
+
/**
|
|
557
|
+
* The new value of the variable
|
|
558
|
+
*/
|
|
529
559
|
value?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Whether the variable is a secret
|
|
562
|
+
*/
|
|
530
563
|
is_secret?: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* The new description of the variable
|
|
566
|
+
*/
|
|
531
567
|
description?: string;
|
|
532
568
|
};
|
|
533
569
|
export type AuditLog = {
|
|
@@ -603,15 +639,34 @@ export type WorkflowStatus = {
|
|
|
603
639
|
name?: string;
|
|
604
640
|
};
|
|
605
641
|
export type CreateResource = {
|
|
642
|
+
/**
|
|
643
|
+
* The path to the resource
|
|
644
|
+
*/
|
|
606
645
|
path: string;
|
|
607
646
|
value: unknown;
|
|
647
|
+
/**
|
|
648
|
+
* The description of the resource
|
|
649
|
+
*/
|
|
608
650
|
description?: string;
|
|
651
|
+
/**
|
|
652
|
+
* The resource_type associated with the resource
|
|
653
|
+
*/
|
|
609
654
|
resource_type: string;
|
|
610
655
|
};
|
|
611
656
|
export type EditResource = {
|
|
657
|
+
/**
|
|
658
|
+
* The path to the resource
|
|
659
|
+
*/
|
|
612
660
|
path?: string;
|
|
661
|
+
/**
|
|
662
|
+
* The new description of the resource
|
|
663
|
+
*/
|
|
613
664
|
description?: string;
|
|
614
665
|
value?: unknown;
|
|
666
|
+
/**
|
|
667
|
+
* The new resource_type to be associated with the resource
|
|
668
|
+
*/
|
|
669
|
+
resource_type?: string;
|
|
615
670
|
};
|
|
616
671
|
export type Resource = {
|
|
617
672
|
workspace_id?: string;
|
|
@@ -697,52 +752,185 @@ export type ScheduleWJobs = Schedule & {
|
|
|
697
752
|
duration_ms: number;
|
|
698
753
|
}>;
|
|
699
754
|
};
|
|
755
|
+
export type ErrorHandler = 'custom' | 'slack' | 'teams' | 'email';
|
|
700
756
|
export type NewSchedule = {
|
|
757
|
+
/**
|
|
758
|
+
* The path where the schedule will be created
|
|
759
|
+
*/
|
|
701
760
|
path: string;
|
|
761
|
+
/**
|
|
762
|
+
* The cron schedule to trigger the script or flow. Should include seconds.
|
|
763
|
+
*/
|
|
702
764
|
schedule: string;
|
|
765
|
+
/**
|
|
766
|
+
* The timezone to use for the cron schedule
|
|
767
|
+
*/
|
|
703
768
|
timezone: string;
|
|
769
|
+
/**
|
|
770
|
+
* The path to the script or flow to trigger
|
|
771
|
+
*/
|
|
704
772
|
script_path: string;
|
|
773
|
+
/**
|
|
774
|
+
* Whether the schedule is for a flow
|
|
775
|
+
*/
|
|
705
776
|
is_flow: boolean;
|
|
777
|
+
/**
|
|
778
|
+
* The arguments to pass to the script or flow
|
|
779
|
+
*/
|
|
706
780
|
args: ScriptArgs;
|
|
781
|
+
/**
|
|
782
|
+
* Whether the schedule is enabled
|
|
783
|
+
*/
|
|
707
784
|
enabled?: boolean;
|
|
785
|
+
/**
|
|
786
|
+
* The path to the script or flow to trigger on failure
|
|
787
|
+
*/
|
|
708
788
|
on_failure?: string;
|
|
789
|
+
/**
|
|
790
|
+
* The number of times to retry on failure
|
|
791
|
+
*/
|
|
709
792
|
on_failure_times?: number;
|
|
793
|
+
/**
|
|
794
|
+
* Whether the schedule should only run on the exact time
|
|
795
|
+
*/
|
|
710
796
|
on_failure_exact?: boolean;
|
|
797
|
+
/**
|
|
798
|
+
* The arguments to pass to the script or flow on failure
|
|
799
|
+
*/
|
|
711
800
|
on_failure_extra_args?: ScriptArgs;
|
|
801
|
+
/**
|
|
802
|
+
* The path to the script or flow to trigger on recovery
|
|
803
|
+
*/
|
|
712
804
|
on_recovery?: string;
|
|
805
|
+
/**
|
|
806
|
+
* The number of times to retry on recovery
|
|
807
|
+
*/
|
|
713
808
|
on_recovery_times?: number;
|
|
809
|
+
/**
|
|
810
|
+
* The arguments to pass to the script or flow on recovery
|
|
811
|
+
*/
|
|
714
812
|
on_recovery_extra_args?: ScriptArgs;
|
|
813
|
+
/**
|
|
814
|
+
* The path to the script or flow to trigger on success
|
|
815
|
+
*/
|
|
715
816
|
on_success?: string;
|
|
817
|
+
/**
|
|
818
|
+
* The arguments to pass to the script or flow on success
|
|
819
|
+
*/
|
|
716
820
|
on_success_extra_args?: ScriptArgs;
|
|
821
|
+
/**
|
|
822
|
+
* Whether the WebSocket error handler is muted
|
|
823
|
+
*/
|
|
717
824
|
ws_error_handler_muted?: boolean;
|
|
825
|
+
/**
|
|
826
|
+
* The retry configuration for the schedule
|
|
827
|
+
*/
|
|
718
828
|
retry?: Retry;
|
|
829
|
+
/**
|
|
830
|
+
* Whether the schedule should not run if a flow is already running
|
|
831
|
+
*/
|
|
719
832
|
no_flow_overlap?: boolean;
|
|
833
|
+
/**
|
|
834
|
+
* The summary of the schedule
|
|
835
|
+
*/
|
|
720
836
|
summary?: string;
|
|
837
|
+
/**
|
|
838
|
+
* The description of the schedule
|
|
839
|
+
*/
|
|
721
840
|
description?: string;
|
|
841
|
+
/**
|
|
842
|
+
* The tag of the schedule
|
|
843
|
+
*/
|
|
722
844
|
tag?: string;
|
|
845
|
+
/**
|
|
846
|
+
* The date and time the schedule will be paused until
|
|
847
|
+
*/
|
|
723
848
|
paused_until?: string;
|
|
849
|
+
/**
|
|
850
|
+
* The version of the cron schedule to use (last is v2)
|
|
851
|
+
*/
|
|
724
852
|
cron_version?: string;
|
|
725
853
|
};
|
|
726
854
|
export type EditSchedule = {
|
|
855
|
+
/**
|
|
856
|
+
* The cron schedule to trigger the script or flow. Should include seconds.
|
|
857
|
+
*/
|
|
727
858
|
schedule: string;
|
|
859
|
+
/**
|
|
860
|
+
* The timezone to use for the cron schedule
|
|
861
|
+
*/
|
|
728
862
|
timezone: string;
|
|
863
|
+
/**
|
|
864
|
+
* The arguments to pass to the script or flow
|
|
865
|
+
*/
|
|
729
866
|
args: ScriptArgs;
|
|
867
|
+
/**
|
|
868
|
+
* The path to the script or flow to trigger on failure
|
|
869
|
+
*/
|
|
730
870
|
on_failure?: string;
|
|
871
|
+
/**
|
|
872
|
+
* The number of times to retry on failure
|
|
873
|
+
*/
|
|
731
874
|
on_failure_times?: number;
|
|
875
|
+
/**
|
|
876
|
+
* Whether the schedule should only run on the exact time
|
|
877
|
+
*/
|
|
732
878
|
on_failure_exact?: boolean;
|
|
879
|
+
/**
|
|
880
|
+
* The arguments to pass to the script or flow on failure
|
|
881
|
+
*/
|
|
733
882
|
on_failure_extra_args?: ScriptArgs;
|
|
883
|
+
/**
|
|
884
|
+
* The path to the script or flow to trigger on recovery
|
|
885
|
+
*/
|
|
734
886
|
on_recovery?: string;
|
|
887
|
+
/**
|
|
888
|
+
* The number of times to retry on recovery
|
|
889
|
+
*/
|
|
735
890
|
on_recovery_times?: number;
|
|
891
|
+
/**
|
|
892
|
+
* The arguments to pass to the script or flow on recovery
|
|
893
|
+
*/
|
|
736
894
|
on_recovery_extra_args?: ScriptArgs;
|
|
895
|
+
/**
|
|
896
|
+
* The path to the script or flow to trigger on success
|
|
897
|
+
*/
|
|
737
898
|
on_success?: string;
|
|
899
|
+
/**
|
|
900
|
+
* The arguments to pass to the script or flow on success
|
|
901
|
+
*/
|
|
738
902
|
on_success_extra_args?: ScriptArgs;
|
|
903
|
+
/**
|
|
904
|
+
* Whether the WebSocket error handler is muted
|
|
905
|
+
*/
|
|
739
906
|
ws_error_handler_muted?: boolean;
|
|
907
|
+
/**
|
|
908
|
+
* The retry configuration for the schedule
|
|
909
|
+
*/
|
|
740
910
|
retry?: Retry;
|
|
911
|
+
/**
|
|
912
|
+
* Whether the schedule should not run if a flow is already running
|
|
913
|
+
*/
|
|
741
914
|
no_flow_overlap?: boolean;
|
|
915
|
+
/**
|
|
916
|
+
* The summary of the schedule
|
|
917
|
+
*/
|
|
742
918
|
summary?: string;
|
|
919
|
+
/**
|
|
920
|
+
* The description of the schedule
|
|
921
|
+
*/
|
|
743
922
|
description?: string;
|
|
923
|
+
/**
|
|
924
|
+
* The tag of the schedule
|
|
925
|
+
*/
|
|
744
926
|
tag?: string;
|
|
927
|
+
/**
|
|
928
|
+
* The date and time the schedule will be paused until
|
|
929
|
+
*/
|
|
745
930
|
paused_until?: string;
|
|
931
|
+
/**
|
|
932
|
+
* The version of the cron schedule to use (last is v2)
|
|
933
|
+
*/
|
|
746
934
|
cron_version?: string;
|
|
747
935
|
};
|
|
748
936
|
export type TriggerExtraProperty = {
|
|
@@ -1790,6 +1978,9 @@ export type Asset = {
|
|
|
1790
1978
|
export type ParameterId = string;
|
|
1791
1979
|
export type ParameterKey = string;
|
|
1792
1980
|
export type ParameterWorkspaceId = string;
|
|
1981
|
+
/**
|
|
1982
|
+
* The name of the publication
|
|
1983
|
+
*/
|
|
1793
1984
|
export type ParameterPublicationName = string;
|
|
1794
1985
|
export type ParameterVersionId = number;
|
|
1795
1986
|
export type ParameterToken = string;
|
|
@@ -2915,6 +3106,9 @@ export type GetOidcTokenData = {
|
|
|
2915
3106
|
};
|
|
2916
3107
|
export type GetOidcTokenResponse = (string);
|
|
2917
3108
|
export type CreateVariableData = {
|
|
3109
|
+
/**
|
|
3110
|
+
* whether the variable is already encrypted (default false)
|
|
3111
|
+
*/
|
|
2918
3112
|
alreadyEncrypted?: boolean;
|
|
2919
3113
|
/**
|
|
2920
3114
|
* new variable
|
|
@@ -2937,6 +3131,9 @@ export type DeleteVariableData = {
|
|
|
2937
3131
|
};
|
|
2938
3132
|
export type DeleteVariableResponse = (string);
|
|
2939
3133
|
export type UpdateVariableData = {
|
|
3134
|
+
/**
|
|
3135
|
+
* whether the variable is already encrypted (default false)
|
|
3136
|
+
*/
|
|
2940
3137
|
alreadyEncrypted?: boolean;
|
|
2941
3138
|
path: string;
|
|
2942
3139
|
/**
|
|
@@ -2977,6 +3174,9 @@ export type ListVariableData = {
|
|
|
2977
3174
|
* which page to return (start at 1, default 1)
|
|
2978
3175
|
*/
|
|
2979
3176
|
page?: number;
|
|
3177
|
+
/**
|
|
3178
|
+
* filter variables by path prefix
|
|
3179
|
+
*/
|
|
2980
3180
|
pathStart?: string;
|
|
2981
3181
|
/**
|
|
2982
3182
|
* number of items to return for a given page (default 30, max 100)
|
|
@@ -3202,6 +3402,9 @@ export type CreateResourceData = {
|
|
|
3202
3402
|
* new resource
|
|
3203
3403
|
*/
|
|
3204
3404
|
requestBody: CreateResource;
|
|
3405
|
+
/**
|
|
3406
|
+
* update the resource if it already exists (default false)
|
|
3407
|
+
*/
|
|
3205
3408
|
updateIfExists?: boolean;
|
|
3206
3409
|
workspace: string;
|
|
3207
3410
|
};
|
|
@@ -3260,6 +3463,9 @@ export type ListResourceData = {
|
|
|
3260
3463
|
* which page to return (start at 1, default 1)
|
|
3261
3464
|
*/
|
|
3262
3465
|
page?: number;
|
|
3466
|
+
/**
|
|
3467
|
+
* filter resources by path prefix
|
|
3468
|
+
*/
|
|
3263
3469
|
pathStart?: string;
|
|
3264
3470
|
/**
|
|
3265
3471
|
* number of items to return for a given page (default 30, max 100)
|
|
@@ -5346,6 +5552,7 @@ export type GetJobUpdatesSseData = {
|
|
|
5346
5552
|
noLogs?: boolean;
|
|
5347
5553
|
onlyResult?: boolean;
|
|
5348
5554
|
running?: boolean;
|
|
5555
|
+
streamOffset?: number;
|
|
5349
5556
|
workspace: string;
|
|
5350
5557
|
};
|
|
5351
5558
|
export type GetJobUpdatesSseResponse = (string);
|
|
@@ -5605,6 +5812,9 @@ export type ListSchedulesData = {
|
|
|
5605
5812
|
* filter on jobs containing those args as a json subset (@> in postgres)
|
|
5606
5813
|
*/
|
|
5607
5814
|
args?: string;
|
|
5815
|
+
/**
|
|
5816
|
+
* filter schedules by whether they target a flow
|
|
5817
|
+
*/
|
|
5608
5818
|
isFlow?: boolean;
|
|
5609
5819
|
/**
|
|
5610
5820
|
* which page to return (start at 1, default 1)
|
|
@@ -5614,6 +5824,9 @@ export type ListSchedulesData = {
|
|
|
5614
5824
|
* filter by path
|
|
5615
5825
|
*/
|
|
5616
5826
|
path?: string;
|
|
5827
|
+
/**
|
|
5828
|
+
* filter schedules by path prefix
|
|
5829
|
+
*/
|
|
5617
5830
|
pathStart?: string;
|
|
5618
5831
|
/**
|
|
5619
5832
|
* number of items to return for a given page (default 30, max 100)
|
|
@@ -6253,12 +6466,18 @@ export type ListPostgresPublicationData = {
|
|
|
6253
6466
|
export type ListPostgresPublicationResponse = (Array<(string)>);
|
|
6254
6467
|
export type GetPostgresPublicationData = {
|
|
6255
6468
|
path: string;
|
|
6469
|
+
/**
|
|
6470
|
+
* The name of the publication
|
|
6471
|
+
*/
|
|
6256
6472
|
publication: string;
|
|
6257
6473
|
workspace: string;
|
|
6258
6474
|
};
|
|
6259
6475
|
export type GetPostgresPublicationResponse = (PublicationData);
|
|
6260
6476
|
export type CreatePostgresPublicationData = {
|
|
6261
6477
|
path: string;
|
|
6478
|
+
/**
|
|
6479
|
+
* The name of the publication
|
|
6480
|
+
*/
|
|
6262
6481
|
publication: string;
|
|
6263
6482
|
/**
|
|
6264
6483
|
* new publication for postgres
|
|
@@ -6269,6 +6488,9 @@ export type CreatePostgresPublicationData = {
|
|
|
6269
6488
|
export type CreatePostgresPublicationResponse = (string);
|
|
6270
6489
|
export type UpdatePostgresPublicationData = {
|
|
6271
6490
|
path: string;
|
|
6491
|
+
/**
|
|
6492
|
+
* The name of the publication
|
|
6493
|
+
*/
|
|
6272
6494
|
publication: string;
|
|
6273
6495
|
/**
|
|
6274
6496
|
* update publication for postgres
|
|
@@ -6279,6 +6501,9 @@ export type UpdatePostgresPublicationData = {
|
|
|
6279
6501
|
export type UpdatePostgresPublicationResponse = (string);
|
|
6280
6502
|
export type DeletePostgresPublicationData = {
|
|
6281
6503
|
path: string;
|
|
6504
|
+
/**
|
|
6505
|
+
* The name of the publication
|
|
6506
|
+
*/
|
|
6282
6507
|
publication: string;
|
|
6283
6508
|
workspace: string;
|
|
6284
6509
|
};
|