windmill-utils-internal 1.3.5 → 1.3.6

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.
@@ -105,6 +105,35 @@ export type FlowValue = {
105
105
  * Sticky notes attached to the flow
106
106
  */
107
107
  notes?: Array<FlowNote>;
108
+ /**
109
+ * Semantic groups of modules for organizational purposes
110
+ */
111
+ groups?: Array<{
112
+ /**
113
+ * Display name for this group
114
+ */
115
+ summary?: string;
116
+ /**
117
+ * Markdown note shown below the group header
118
+ */
119
+ note?: string;
120
+ /**
121
+ * If true, this group is collapsed by default in the flow editor. UI hint only.
122
+ */
123
+ autocollapse?: boolean;
124
+ /**
125
+ * ID of the first flow module in this group (topological entry point)
126
+ */
127
+ start_id: string;
128
+ /**
129
+ * ID of the last flow module in this group (topological exit point)
130
+ */
131
+ end_id: string;
132
+ /**
133
+ * Color for the group in the flow editor
134
+ */
135
+ color?: string;
136
+ }>;
108
137
  };
109
138
  /**
110
139
  * Retry configuration for failed module executions
@@ -167,9 +196,9 @@ export type StopAfterIf = {
167
196
  */
168
197
  expr: string;
169
198
  /**
170
- * Custom error message shown when stopping
199
+ * Custom error message when stopping with an error. Mutually exclusive with skip_if_stopped. If set to a non-empty string, the flow stops with this error. If empty string, a default error message is used. If null or omitted, no error is raised.
171
200
  */
172
- error_message?: string;
201
+ error_message?: (string) | null;
173
202
  };
174
203
  /**
175
204
  * A single step in a flow. Can be a script, subflow, loop, or branch
@@ -287,6 +316,31 @@ export type FlowModule = {
287
316
  * Retry configuration if this step fails
288
317
  */
289
318
  retry?: Retry;
319
+ /**
320
+ * Debounce configuration for this step (EE only)
321
+ */
322
+ debouncing?: {
323
+ /**
324
+ * Delay in seconds to debounce this step's executions across flow runs
325
+ */
326
+ debounce_delay_s?: number;
327
+ /**
328
+ * Expression to group debounced executions. Supports $workspace and $args[name]. Default: $workspace/flow/<flow_path>-<step_id>
329
+ */
330
+ debounce_key?: string;
331
+ /**
332
+ * Array-type arguments to accumulate across debounced executions
333
+ */
334
+ debounce_args_to_accumulate?: Array<(string)>;
335
+ /**
336
+ * Maximum total time in seconds before forced execution
337
+ */
338
+ max_total_debouncing_time?: number;
339
+ /**
340
+ * Maximum number of debounces before forced execution
341
+ */
342
+ max_total_debounces_amount?: number;
343
+ };
290
344
  };
291
345
  /**
292
346
  * Maps input parameters for a step. Can be a static value or a JavaScript expression that references previous results or flow inputs
@@ -637,12 +691,12 @@ export type AiAgent = {
637
691
  */
638
692
  output_schema?: (InputTransform);
639
693
  /**
640
- * Array of image references for vision-capable models.
694
+ * Array of file references (images or PDFs) for the AI agent.
641
695
  * Format: Array<{ bucket: string, key: string }> - S3 object references
642
- * Example: [{ bucket: 'my-bucket', key: 'images/photo.jpg' }]
696
+ * Example: [{ bucket: 'my-bucket', key: 'documents/report.pdf' }]
643
697
  *
644
698
  */
645
- user_images?: (InputTransform);
699
+ user_attachments?: (InputTransform);
646
700
  /**
647
701
  * Integer. Maximum number of tokens the AI will generate in its response.
648
702
  * Range: 1 to 4,294,967,295. Typical values: 256-4096 for most use cases.
@@ -1257,6 +1311,15 @@ export type AIConfig = {
1257
1311
  [key: string]: (number);
1258
1312
  };
1259
1313
  };
1314
+ export type InstanceAIProviderSummary = {
1315
+ provider: AIProvider;
1316
+ models: Array<(string)>;
1317
+ };
1318
+ export type InstanceAISummary = {
1319
+ providers: Array<InstanceAIProviderSummary>;
1320
+ default_model?: AIProviderModel;
1321
+ code_completion_model?: AIProviderModel;
1322
+ };
1260
1323
  export type Alert = {
1261
1324
  name: string;
1262
1325
  tags_to_monitor: Array<(string)>;
@@ -2052,6 +2115,10 @@ export type Schedule = {
2052
2115
  * Email of the user who owns this schedule, used for permissioned_as
2053
2116
  */
2054
2117
  email: string;
2118
+ /**
2119
+ * The user or group this schedule runs as (e.g., 'u/admin' or 'g/mygroup')
2120
+ */
2121
+ permissioned_as: string;
2055
2122
  /**
2056
2123
  * Last error message if the schedule failed to trigger
2057
2124
  */
@@ -2212,13 +2279,13 @@ export type NewSchedule = {
2212
2279
  */
2213
2280
  dynamic_skip?: (string) | null;
2214
2281
  /**
2215
- * Email of the user who the scheduled jobs run as. Used during deployment to preserve the original schedule owner.
2282
+ * The user or group this schedule runs as. Used during deployment to preserve the original schedule owner.
2216
2283
  */
2217
- email?: string;
2284
+ permissioned_as?: string;
2218
2285
  /**
2219
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2286
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2220
2287
  */
2221
- preserve_email?: boolean;
2288
+ preserve_permissioned_as?: boolean;
2222
2289
  };
2223
2290
  export type EditSchedule = {
2224
2291
  /**
@@ -2291,13 +2358,13 @@ export type EditSchedule = {
2291
2358
  */
2292
2359
  dynamic_skip?: (string) | null;
2293
2360
  /**
2294
- * Email of the user who the scheduled jobs run as. Used during deployment to preserve the original schedule owner.
2361
+ * The user or group this schedule runs as (e.g., 'u/admin' or 'g/mygroup'). Only admins and wm_deployers can set this via preserve_permissioned_as.
2295
2362
  */
2296
- email?: string;
2363
+ permissioned_as?: (string) | null;
2297
2364
  /**
2298
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2365
+ * If true and user is admin/wm_deployers, preserve the provided permissioned_as instead of using the deploying user's identity
2299
2366
  */
2300
- preserve_email?: boolean;
2367
+ preserve_permissioned_as?: (boolean) | null;
2301
2368
  };
2302
2369
  /**
2303
2370
  * job trigger kind (schedule, http, websocket...)
@@ -2317,9 +2384,9 @@ export type TriggerExtraProperty = {
2317
2384
  */
2318
2385
  script_path: string;
2319
2386
  /**
2320
- * Email of the user who owns this trigger, used for permissioned_as
2387
+ * The user or group this trigger runs as (permissioned_as)
2321
2388
  */
2322
- email: string;
2389
+ permissioned_as: string;
2323
2390
  /**
2324
2391
  * Additional permissions for this trigger
2325
2392
  */
@@ -2554,13 +2621,13 @@ export type NewHttpTrigger = {
2554
2621
  */
2555
2622
  retry?: Retry;
2556
2623
  /**
2557
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2624
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2558
2625
  */
2559
- email?: string;
2626
+ permissioned_as?: string;
2560
2627
  /**
2561
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2628
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2562
2629
  */
2563
- preserve_email?: boolean;
2630
+ preserve_permissioned_as?: boolean;
2564
2631
  };
2565
2632
  export type EditHttpTrigger = {
2566
2633
  /**
@@ -2653,13 +2720,13 @@ export type EditHttpTrigger = {
2653
2720
  */
2654
2721
  retry?: Retry;
2655
2722
  /**
2656
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2723
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2657
2724
  */
2658
- email?: string;
2725
+ permissioned_as?: string;
2659
2726
  /**
2660
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2727
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2661
2728
  */
2662
- preserve_email?: boolean;
2729
+ preserve_permissioned_as?: boolean;
2663
2730
  };
2664
2731
  export type TriggersCount = {
2665
2732
  primary_schedule?: {
@@ -2787,13 +2854,13 @@ export type NewWebsocketTrigger = {
2787
2854
  */
2788
2855
  retry?: Retry;
2789
2856
  /**
2790
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2857
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2791
2858
  */
2792
- email?: string;
2859
+ permissioned_as?: string;
2793
2860
  /**
2794
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2861
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2795
2862
  */
2796
- preserve_email?: boolean;
2863
+ preserve_permissioned_as?: boolean;
2797
2864
  };
2798
2865
  export type EditWebsocketTrigger = {
2799
2866
  /**
@@ -2848,13 +2915,13 @@ export type EditWebsocketTrigger = {
2848
2915
  */
2849
2916
  retry?: Retry;
2850
2917
  /**
2851
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2918
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2852
2919
  */
2853
- email?: string;
2920
+ permissioned_as?: string;
2854
2921
  /**
2855
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2922
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2856
2923
  */
2857
- preserve_email?: boolean;
2924
+ preserve_permissioned_as?: boolean;
2858
2925
  };
2859
2926
  export type WebsocketTriggerInitialMessage = {
2860
2927
  raw_message: string;
@@ -2980,13 +3047,13 @@ export type NewMqttTrigger = {
2980
3047
  */
2981
3048
  retry?: Retry;
2982
3049
  /**
2983
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3050
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2984
3051
  */
2985
- email?: string;
3052
+ permissioned_as?: string;
2986
3053
  /**
2987
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3054
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2988
3055
  */
2989
- preserve_email?: boolean;
3056
+ preserve_permissioned_as?: boolean;
2990
3057
  };
2991
3058
  export type EditMqttTrigger = {
2992
3059
  /**
@@ -3039,13 +3106,13 @@ export type EditMqttTrigger = {
3039
3106
  */
3040
3107
  retry?: Retry;
3041
3108
  /**
3042
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3109
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3043
3110
  */
3044
- email?: string;
3111
+ permissioned_as?: string;
3045
3112
  /**
3046
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3113
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3047
3114
  */
3048
- preserve_email?: boolean;
3115
+ preserve_permissioned_as?: boolean;
3049
3116
  };
3050
3117
  /**
3051
3118
  * Delivery mode for messages. 'push' for HTTP push delivery where messages are sent to a webhook endpoint, 'pull' for polling where the trigger actively fetches messages.
@@ -3169,13 +3236,13 @@ export type GcpTriggerData = {
3169
3236
  */
3170
3237
  retry?: Retry;
3171
3238
  /**
3172
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3239
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3173
3240
  */
3174
- email?: string;
3241
+ permissioned_as?: string;
3175
3242
  /**
3176
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3243
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3177
3244
  */
3178
- preserve_email?: boolean;
3245
+ preserve_permissioned_as?: boolean;
3179
3246
  };
3180
3247
  export type GetAllTopicSubscription = {
3181
3248
  topic_id: string;
@@ -3291,13 +3358,13 @@ export type NewSqsTrigger = {
3291
3358
  */
3292
3359
  retry?: Retry;
3293
3360
  /**
3294
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3361
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3295
3362
  */
3296
- email?: string;
3363
+ permissioned_as?: string;
3297
3364
  /**
3298
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3365
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3299
3366
  */
3300
- preserve_email?: boolean;
3367
+ preserve_permissioned_as?: boolean;
3301
3368
  };
3302
3369
  export type EditSqsTrigger = {
3303
3370
  /**
@@ -3342,13 +3409,13 @@ export type EditSqsTrigger = {
3342
3409
  */
3343
3410
  retry?: Retry;
3344
3411
  /**
3345
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3412
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3346
3413
  */
3347
- email?: string;
3414
+ permissioned_as?: string;
3348
3415
  /**
3349
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3416
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3350
3417
  */
3351
- preserve_email?: boolean;
3418
+ preserve_permissioned_as?: boolean;
3352
3419
  };
3353
3420
  export type Slot = {
3354
3421
  name?: string;
@@ -3457,13 +3524,13 @@ export type NewPostgresTrigger = {
3457
3524
  */
3458
3525
  retry?: Retry;
3459
3526
  /**
3460
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3527
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3461
3528
  */
3462
- email?: string;
3529
+ permissioned_as?: string;
3463
3530
  /**
3464
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3531
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3465
3532
  */
3466
- preserve_email?: boolean;
3533
+ preserve_permissioned_as?: boolean;
3467
3534
  };
3468
3535
  export type EditPostgresTrigger = {
3469
3536
  /**
@@ -3508,13 +3575,13 @@ export type EditPostgresTrigger = {
3508
3575
  */
3509
3576
  retry?: Retry;
3510
3577
  /**
3511
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3578
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3512
3579
  */
3513
- email?: string;
3580
+ permissioned_as?: string;
3514
3581
  /**
3515
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3582
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3516
3583
  */
3517
- preserve_email?: boolean;
3584
+ preserve_permissioned_as?: boolean;
3518
3585
  };
3519
3586
  export type KafkaTrigger = TriggerExtraProperty & {
3520
3587
  /**
@@ -3621,13 +3688,13 @@ export type NewKafkaTrigger = {
3621
3688
  */
3622
3689
  retry?: Retry;
3623
3690
  /**
3624
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3691
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3625
3692
  */
3626
- email?: string;
3693
+ permissioned_as?: string;
3627
3694
  /**
3628
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3695
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3629
3696
  */
3630
- preserve_email?: boolean;
3697
+ preserve_permissioned_as?: boolean;
3631
3698
  };
3632
3699
  export type EditKafkaTrigger = {
3633
3700
  /**
@@ -3679,13 +3746,13 @@ export type EditKafkaTrigger = {
3679
3746
  */
3680
3747
  retry?: Retry;
3681
3748
  /**
3682
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3749
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3683
3750
  */
3684
- email?: string;
3751
+ permissioned_as?: string;
3685
3752
  /**
3686
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3753
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3687
3754
  */
3688
- preserve_email?: boolean;
3755
+ preserve_permissioned_as?: boolean;
3689
3756
  };
3690
3757
  export type NatsTrigger = TriggerExtraProperty & {
3691
3758
  /**
@@ -3780,13 +3847,13 @@ export type NewNatsTrigger = {
3780
3847
  */
3781
3848
  retry?: Retry;
3782
3849
  /**
3783
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3850
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3784
3851
  */
3785
- email?: string;
3852
+ permissioned_as?: string;
3786
3853
  /**
3787
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3854
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3788
3855
  */
3789
- preserve_email?: boolean;
3856
+ preserve_permissioned_as?: boolean;
3790
3857
  };
3791
3858
  export type EditNatsTrigger = {
3792
3859
  /**
@@ -3834,13 +3901,13 @@ export type EditNatsTrigger = {
3834
3901
  */
3835
3902
  retry?: Retry;
3836
3903
  /**
3837
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3904
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3838
3905
  */
3839
- email?: string;
3906
+ permissioned_as?: string;
3840
3907
  /**
3841
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3908
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3842
3909
  */
3843
- preserve_email?: boolean;
3910
+ preserve_permissioned_as?: boolean;
3844
3911
  };
3845
3912
  export type EmailTrigger = TriggerExtraProperty & {
3846
3913
  local_part: string;
@@ -3860,13 +3927,13 @@ export type NewEmailTrigger = {
3860
3927
  retry?: Retry;
3861
3928
  mode?: TriggerMode;
3862
3929
  /**
3863
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3930
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3864
3931
  */
3865
- email?: string;
3932
+ permissioned_as?: string;
3866
3933
  /**
3867
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3934
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3868
3935
  */
3869
- preserve_email?: boolean;
3936
+ preserve_permissioned_as?: boolean;
3870
3937
  };
3871
3938
  export type EditEmailTrigger = {
3872
3939
  path: string;
@@ -3878,13 +3945,13 @@ export type EditEmailTrigger = {
3878
3945
  error_handler_args?: ScriptArgs;
3879
3946
  retry?: Retry;
3880
3947
  /**
3881
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3948
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3882
3949
  */
3883
- email?: string;
3950
+ permissioned_as?: string;
3884
3951
  /**
3885
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3952
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3886
3953
  */
3887
- preserve_email?: boolean;
3954
+ preserve_permissioned_as?: boolean;
3888
3955
  };
3889
3956
  export type Group = {
3890
3957
  name: string;
@@ -4014,6 +4081,7 @@ export type GlobalUserInfo = {
4014
4081
  operator_only?: boolean;
4015
4082
  first_time_user: boolean;
4016
4083
  role_source: 'manual' | 'instance_group';
4084
+ disabled: boolean;
4017
4085
  };
4018
4086
  export type login_type = 'password' | 'github';
4019
4087
  export type role_source = 'manual' | 'instance_group';
@@ -4525,7 +4593,7 @@ export type WorkspaceItemDiff = {
4525
4593
  /**
4526
4594
  * Type of the item
4527
4595
  */
4528
- kind: 'script' | 'flow' | 'app' | 'resource' | 'variable' | 'resource_type';
4596
+ kind: 'script' | 'flow' | 'app' | 'raw_app' | 'resource' | 'variable' | 'resource_type';
4529
4597
  /**
4530
4598
  * Path of the item in the workspace
4531
4599
  */
@@ -4554,7 +4622,7 @@ export type WorkspaceItemDiff = {
4554
4622
  /**
4555
4623
  * Type of the item
4556
4624
  */
4557
- export type kind5 = 'script' | 'flow' | 'app' | 'resource' | 'variable' | 'resource_type';
4625
+ export type kind5 = 'script' | 'flow' | 'app' | 'raw_app' | 'resource' | 'variable' | 'resource_type';
4558
4626
  export type CompareSummary = {
4559
4627
  /**
4560
4628
  * Total number of items with differences
@@ -4727,6 +4795,11 @@ export type RuleBypasserGroups = Array<(string)>;
4727
4795
  * Users that can bypass this ruleset
4728
4796
  */
4729
4797
  export type RuleBypasserUsers = Array<(string)>;
4798
+ export type QuotaInfo = {
4799
+ used: number;
4800
+ limit: number;
4801
+ prunable: number;
4802
+ };
4730
4803
  export type NativeServiceName = 'nextcloud' | 'google';
4731
4804
  /**
4732
4805
  * A native trigger stored in Windmill
@@ -4759,6 +4832,10 @@ export type NativeTrigger = {
4759
4832
  * Error message if the trigger is in an error state
4760
4833
  */
4761
4834
  error?: (string) | null;
4835
+ /**
4836
+ * Short summary to be displayed when listed
4837
+ */
4838
+ summary?: (string) | null;
4762
4839
  };
4763
4840
  /**
4764
4841
  * Full trigger response containing both Windmill data and external service data
@@ -4791,6 +4868,10 @@ export type NativeTriggerWithExternal = {
4791
4868
  * Error message if the trigger is in an error state
4792
4869
  */
4793
4870
  error?: (string) | null;
4871
+ /**
4872
+ * Short summary to be displayed when listed
4873
+ */
4874
+ summary?: (string) | null;
4794
4875
  /**
4795
4876
  * Configuration data from the external service
4796
4877
  */
@@ -4854,6 +4935,10 @@ export type NativeTriggerData = {
4854
4935
  service_config: {
4855
4936
  [key: string]: unknown;
4856
4937
  };
4938
+ /**
4939
+ * Short summary to be displayed when listed
4940
+ */
4941
+ summary?: (string) | null;
4857
4942
  };
4858
4943
  /**
4859
4944
  * Response returned when a native trigger is created
@@ -5280,6 +5365,7 @@ export type GlobalUserUpdateData = {
5280
5365
  is_super_admin?: boolean;
5281
5366
  is_devops?: boolean;
5282
5367
  name?: string;
5368
+ disabled?: boolean;
5283
5369
  };
5284
5370
  };
5285
5371
  export type GlobalUserUpdateResponse = (string);
@@ -5900,6 +5986,14 @@ export type GetDependentsData = {
5900
5986
  workspace: string;
5901
5987
  };
5902
5988
  export type GetDependentsResponse = (Array<DependencyDependent>);
5989
+ export type GetImportsData = {
5990
+ /**
5991
+ * The script path to get imports for
5992
+ */
5993
+ importerPath: string;
5994
+ workspace: string;
5995
+ };
5996
+ export type GetImportsResponse = (Array<(string)>);
5903
5997
  export type GetDependentsAmountsData = {
5904
5998
  /**
5905
5999
  * List of imported paths to get dependents counts for
@@ -6088,7 +6182,20 @@ export type EditCopilotConfigData = {
6088
6182
  requestBody: AIConfig;
6089
6183
  workspace: string;
6090
6184
  };
6091
- export type EditCopilotConfigResponse = (string);
6185
+ export type EditCopilotConfigResponse = ({
6186
+ effective_ai_config: AIConfig;
6187
+ has_instance_ai_config: boolean;
6188
+ uses_instance_ai_config: boolean;
6189
+ instance_ai_summary?: InstanceAISummary;
6190
+ });
6191
+ export type GetCopilotSettingsStateData = {
6192
+ workspace: string;
6193
+ };
6194
+ export type GetCopilotSettingsStateResponse = ({
6195
+ has_instance_ai_config: boolean;
6196
+ uses_instance_ai_config: boolean;
6197
+ instance_ai_summary?: InstanceAISummary;
6198
+ });
6092
6199
  export type GetCopilotInfoData = {
6093
6200
  workspace: string;
6094
6201
  };
@@ -6151,6 +6258,16 @@ export type EditDataTableConfigData = {
6151
6258
  workspace: string;
6152
6259
  };
6153
6260
  export type EditDataTableConfigResponse = (unknown);
6261
+ export type GetGitSyncEnabledData = {
6262
+ workspace: string;
6263
+ };
6264
+ export type GetGitSyncEnabledResponse = ({
6265
+ enabled?: boolean;
6266
+ reason?: (string) | null;
6267
+ max_repos?: (number) | null;
6268
+ user_count?: (number) | null;
6269
+ max_users?: (number) | null;
6270
+ });
6154
6271
  export type EditWorkspaceGitSyncConfigData = {
6155
6272
  /**
6156
6273
  * Workspace Git sync settings
@@ -6253,6 +6370,7 @@ export type GetWorkspaceDefaultAppData = {
6253
6370
  };
6254
6371
  export type GetWorkspaceDefaultAppResponse = ({
6255
6372
  default_app_path?: string;
6373
+ default_app_raw?: boolean;
6256
6374
  });
6257
6375
  export type GetWorkspaceUsageData = {
6258
6376
  workspace: string;
@@ -6547,6 +6665,25 @@ export type LogAiChatData = {
6547
6665
  workspace: string;
6548
6666
  };
6549
6667
  export type LogAiChatResponse = (void);
6668
+ export type GetCloudQuotasData = {
6669
+ workspace: string;
6670
+ };
6671
+ export type GetCloudQuotasResponse = ({
6672
+ scripts: QuotaInfo;
6673
+ flows: QuotaInfo;
6674
+ apps: QuotaInfo;
6675
+ variables: QuotaInfo;
6676
+ resources: QuotaInfo;
6677
+ });
6678
+ export type PruneVersionsData = {
6679
+ requestBody: {
6680
+ resource_type: 'scripts' | 'flows' | 'apps';
6681
+ };
6682
+ workspace: string;
6683
+ };
6684
+ export type PruneVersionsResponse = ({
6685
+ pruned: number;
6686
+ });
6550
6687
  export type SetPublicAppRateLimitData = {
6551
6688
  /**
6552
6689
  * Public app rate limit configuration
@@ -6631,6 +6768,10 @@ export type CreateAccountData = {
6631
6768
  * MCP server URL for MCP OAuth token refresh
6632
6769
  */
6633
6770
  mcp_server_url?: string;
6771
+ /**
6772
+ * OAuth scopes to use for token refresh. Overrides instance-level scopes.
6773
+ */
6774
+ scopes?: Array<(string)>;
6634
6775
  };
6635
6776
  workspace: string;
6636
6777
  };
@@ -7418,6 +7559,14 @@ export type UpdateScriptHistoryData = {
7418
7559
  workspace: string;
7419
7560
  };
7420
7561
  export type UpdateScriptHistoryResponse = (string);
7562
+ export type ListDedicatedWithDepsData = {
7563
+ workspace: string;
7564
+ };
7565
+ export type ListDedicatedWithDepsResponse = (Array<{
7566
+ path: string;
7567
+ language: 'python3' | 'deno' | 'go' | 'bash' | 'powershell' | 'postgresql' | 'mysql' | 'bigquery' | 'snowflake' | 'mssql' | 'graphql' | 'nativets' | 'bun' | 'bunnative' | 'php' | 'rust' | 'ansible' | 'csharp' | 'oracledb' | 'duckdb' | 'java' | 'ruby';
7568
+ workspace_dep_names: Array<(string)>;
7569
+ }>);
7421
7570
  export type RawScriptByPathData = {
7422
7571
  path: string;
7423
7572
  workspace: string;
@@ -7455,6 +7604,47 @@ export type GetScriptDeploymentStatusResponse = ({
7455
7604
  lock_error_logs?: string;
7456
7605
  job_id?: string;
7457
7606
  });
7607
+ export type StoreRawScriptTempData = {
7608
+ /**
7609
+ * script content to store
7610
+ */
7611
+ requestBody: string;
7612
+ workspace: string;
7613
+ };
7614
+ export type StoreRawScriptTempResponse = (string);
7615
+ export type DiffRawScriptsWithDeployedData = {
7616
+ /**
7617
+ * scripts and workspace deps to diff against deployed versions
7618
+ */
7619
+ requestBody: {
7620
+ /**
7621
+ * map of script path to SHA256 content hash
7622
+ */
7623
+ scripts: {
7624
+ [key: string]: (string);
7625
+ };
7626
+ /**
7627
+ * workspace dependencies to diff
7628
+ */
7629
+ workspace_deps?: Array<{
7630
+ /**
7631
+ * CLI path (e.g. dependencies/package.json)
7632
+ */
7633
+ path: string;
7634
+ language: ScriptLang;
7635
+ /**
7636
+ * named workspace dependency (null for default)
7637
+ */
7638
+ name?: string;
7639
+ /**
7640
+ * SHA256 content hash
7641
+ */
7642
+ hash: string;
7643
+ }>;
7644
+ };
7645
+ workspace: string;
7646
+ };
7647
+ export type DiffRawScriptsWithDeployedResponse = (Array<(string)>);
7458
7648
  export type ListSelectedJobGroupsData = {
7459
7649
  /**
7460
7650
  * script args
@@ -9724,6 +9914,7 @@ export type GetJobUpdatesResponse = ({
9724
9914
  workflow_as_code_status?: WorkflowStatus;
9725
9915
  });
9726
9916
  export type GetJobUpdatesSseData = {
9917
+ fast?: boolean;
9727
9918
  getProgress?: boolean;
9728
9919
  id: string;
9729
9920
  logOffset?: number;
@@ -9881,6 +10072,65 @@ export type GetTeamsApprovalPayloadData = {
9881
10072
  workspace: string;
9882
10073
  };
9883
10074
  export type GetTeamsApprovalPayloadResponse = (unknown);
10075
+ export type ResumeSuspendedData = {
10076
+ jobId: string;
10077
+ requestBody: {
10078
+ /**
10079
+ * payload to send to the resumed job
10080
+ */
10081
+ payload?: unknown;
10082
+ /**
10083
+ * approval token for unauthenticated access
10084
+ */
10085
+ approval_token?: string;
10086
+ /**
10087
+ * whether to approve (true) or cancel (false) the job
10088
+ */
10089
+ approved?: boolean;
10090
+ };
10091
+ workspace: string;
10092
+ };
10093
+ export type ResumeSuspendedResponse = (string);
10094
+ export type GetApprovalInfoData = {
10095
+ jobId: string;
10096
+ /**
10097
+ * approval token for unauthenticated access
10098
+ */
10099
+ token?: string;
10100
+ workspace: string;
10101
+ };
10102
+ export type GetApprovalInfoResponse = ({
10103
+ flow_id: string;
10104
+ /**
10105
+ * form schema for the approval step
10106
+ */
10107
+ form_schema?: unknown;
10108
+ /**
10109
+ * description of the approval step
10110
+ */
10111
+ description?: unknown;
10112
+ approval_conditions?: {
10113
+ user_auth_required: boolean;
10114
+ user_groups_required: Array<(string)>;
10115
+ self_approval_disabled: boolean;
10116
+ };
10117
+ /**
10118
+ * whether the current user/token holder can approve
10119
+ */
10120
+ can_approve: boolean;
10121
+ /**
10122
+ * whether user authentication is required to approve
10123
+ */
10124
+ user_auth_required: boolean;
10125
+ /**
10126
+ * whether to hide the cancel button in the UI
10127
+ */
10128
+ hide_cancel?: boolean;
10129
+ approvers: Array<{
10130
+ resume_id: number;
10131
+ approver: string;
10132
+ }>;
10133
+ });
9884
10134
  export type ResumeSuspendedJobGetData = {
9885
10135
  approver?: string;
9886
10136
  id: string;
@@ -12196,6 +12446,10 @@ export type CountSearchLogsIndexResponse = ({
12196
12446
  [key: string]: unknown;
12197
12447
  };
12198
12448
  });
12449
+ export type GetIndexDiskStorageSizesResponse = ({
12450
+ job_index_disk_size_bytes?: (number) | null;
12451
+ log_index_disk_size_bytes?: (number) | null;
12452
+ });
12199
12453
  export type ClearIndexData = {
12200
12454
  idxName: 'JobIndex' | 'ServiceLogIndex';
12201
12455
  };