windmill-client 1.661.0 → 1.662.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.
@@ -29,7 +29,7 @@ const OpenAPI = {
29
29
  PASSWORD: void 0,
30
30
  TOKEN: getEnv("WM_TOKEN"),
31
31
  USERNAME: void 0,
32
- VERSION: "1.661.0",
32
+ VERSION: "1.662.0",
33
33
  WITH_CREDENTIALS: true,
34
34
  interceptors: {
35
35
  request: new Interceptors(),
package/dist/index.js CHANGED
@@ -126,7 +126,7 @@ const OpenAPI = {
126
126
  PASSWORD: void 0,
127
127
  TOKEN: getEnv$1("WM_TOKEN"),
128
128
  USERNAME: void 0,
129
- VERSION: "1.661.0",
129
+ VERSION: "1.662.0",
130
130
  WITH_CREDENTIALS: true,
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -2014,6 +2014,10 @@ export type Schedule = {
2014
2014
  * Email of the user who owns this schedule, used for permissioned_as
2015
2015
  */
2016
2016
  email: string;
2017
+ /**
2018
+ * The user or group this schedule runs as (e.g., 'u/admin' or 'g/mygroup')
2019
+ */
2020
+ permissioned_as: string;
2017
2021
  /**
2018
2022
  * Last error message if the schedule failed to trigger
2019
2023
  */
@@ -2174,13 +2178,13 @@ export type NewSchedule = {
2174
2178
  */
2175
2179
  dynamic_skip?: string | null;
2176
2180
  /**
2177
- * Email of the user who the scheduled jobs run as. Used during deployment to preserve the original schedule owner.
2181
+ * The user or group this schedule runs as. Used during deployment to preserve the original schedule owner.
2178
2182
  */
2179
- email?: string;
2183
+ permissioned_as?: string;
2180
2184
  /**
2181
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2185
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2182
2186
  */
2183
- preserve_email?: boolean;
2187
+ preserve_permissioned_as?: boolean;
2184
2188
  };
2185
2189
  export type EditSchedule = {
2186
2190
  /**
@@ -2253,13 +2257,13 @@ export type EditSchedule = {
2253
2257
  */
2254
2258
  dynamic_skip?: string | null;
2255
2259
  /**
2256
- * Email of the user who the scheduled jobs run as. Used during deployment to preserve the original schedule owner.
2260
+ * 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.
2257
2261
  */
2258
- email?: string;
2262
+ permissioned_as?: string | null;
2259
2263
  /**
2260
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2264
+ * If true and user is admin/wm_deployers, preserve the provided permissioned_as instead of using the deploying user's identity
2261
2265
  */
2262
- preserve_email?: boolean;
2266
+ preserve_permissioned_as?: boolean | null;
2263
2267
  };
2264
2268
  /**
2265
2269
  * job trigger kind (schedule, http, websocket...)
@@ -2279,9 +2283,9 @@ export type TriggerExtraProperty = {
2279
2283
  */
2280
2284
  script_path: string;
2281
2285
  /**
2282
- * Email of the user who owns this trigger, used for permissioned_as
2286
+ * The user or group this trigger runs as (permissioned_as)
2283
2287
  */
2284
- email: string;
2288
+ permissioned_as: string;
2285
2289
  /**
2286
2290
  * Additional permissions for this trigger
2287
2291
  */
@@ -2515,13 +2519,13 @@ export type NewHttpTrigger = {
2515
2519
  */
2516
2520
  retry?: Retry;
2517
2521
  /**
2518
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2522
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2519
2523
  */
2520
- email?: string;
2524
+ permissioned_as?: string;
2521
2525
  /**
2522
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2526
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2523
2527
  */
2524
- preserve_email?: boolean;
2528
+ preserve_permissioned_as?: boolean;
2525
2529
  };
2526
2530
  export type EditHttpTrigger = {
2527
2531
  /**
@@ -2614,13 +2618,13 @@ export type EditHttpTrigger = {
2614
2618
  */
2615
2619
  retry?: Retry;
2616
2620
  /**
2617
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2621
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2618
2622
  */
2619
- email?: string;
2623
+ permissioned_as?: string;
2620
2624
  /**
2621
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2625
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2622
2626
  */
2623
- preserve_email?: boolean;
2627
+ preserve_permissioned_as?: boolean;
2624
2628
  };
2625
2629
  export type TriggersCount = {
2626
2630
  primary_schedule?: {
@@ -2748,13 +2752,13 @@ export type NewWebsocketTrigger = {
2748
2752
  */
2749
2753
  retry?: Retry;
2750
2754
  /**
2751
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2755
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2752
2756
  */
2753
- email?: string;
2757
+ permissioned_as?: string;
2754
2758
  /**
2755
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2759
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2756
2760
  */
2757
- preserve_email?: boolean;
2761
+ preserve_permissioned_as?: boolean;
2758
2762
  };
2759
2763
  export type EditWebsocketTrigger = {
2760
2764
  /**
@@ -2809,13 +2813,13 @@ export type EditWebsocketTrigger = {
2809
2813
  */
2810
2814
  retry?: Retry;
2811
2815
  /**
2812
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2816
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2813
2817
  */
2814
- email?: string;
2818
+ permissioned_as?: string;
2815
2819
  /**
2816
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2820
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2817
2821
  */
2818
- preserve_email?: boolean;
2822
+ preserve_permissioned_as?: boolean;
2819
2823
  };
2820
2824
  export type WebsocketTriggerInitialMessage = {
2821
2825
  raw_message: string;
@@ -2941,13 +2945,13 @@ export type NewMqttTrigger = {
2941
2945
  */
2942
2946
  retry?: Retry;
2943
2947
  /**
2944
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
2948
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
2945
2949
  */
2946
- email?: string;
2950
+ permissioned_as?: string;
2947
2951
  /**
2948
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
2952
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
2949
2953
  */
2950
- preserve_email?: boolean;
2954
+ preserve_permissioned_as?: boolean;
2951
2955
  };
2952
2956
  export type EditMqttTrigger = {
2953
2957
  /**
@@ -3000,13 +3004,13 @@ export type EditMqttTrigger = {
3000
3004
  */
3001
3005
  retry?: Retry;
3002
3006
  /**
3003
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3007
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3004
3008
  */
3005
- email?: string;
3009
+ permissioned_as?: string;
3006
3010
  /**
3007
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3011
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3008
3012
  */
3009
- preserve_email?: boolean;
3013
+ preserve_permissioned_as?: boolean;
3010
3014
  };
3011
3015
  /**
3012
3016
  * 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.
@@ -3130,13 +3134,13 @@ export type GcpTriggerData = {
3130
3134
  */
3131
3135
  retry?: Retry;
3132
3136
  /**
3133
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3137
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3134
3138
  */
3135
- email?: string;
3139
+ permissioned_as?: string;
3136
3140
  /**
3137
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3141
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3138
3142
  */
3139
- preserve_email?: boolean;
3143
+ preserve_permissioned_as?: boolean;
3140
3144
  };
3141
3145
  export type GetAllTopicSubscription = {
3142
3146
  topic_id: string;
@@ -3252,13 +3256,13 @@ export type NewSqsTrigger = {
3252
3256
  */
3253
3257
  retry?: Retry;
3254
3258
  /**
3255
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3259
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3256
3260
  */
3257
- email?: string;
3261
+ permissioned_as?: string;
3258
3262
  /**
3259
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3263
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3260
3264
  */
3261
- preserve_email?: boolean;
3265
+ preserve_permissioned_as?: boolean;
3262
3266
  };
3263
3267
  export type EditSqsTrigger = {
3264
3268
  /**
@@ -3303,13 +3307,13 @@ export type EditSqsTrigger = {
3303
3307
  */
3304
3308
  retry?: Retry;
3305
3309
  /**
3306
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3310
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3307
3311
  */
3308
- email?: string;
3312
+ permissioned_as?: string;
3309
3313
  /**
3310
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3314
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3311
3315
  */
3312
- preserve_email?: boolean;
3316
+ preserve_permissioned_as?: boolean;
3313
3317
  };
3314
3318
  export type Slot = {
3315
3319
  name?: string;
@@ -3418,13 +3422,13 @@ export type NewPostgresTrigger = {
3418
3422
  */
3419
3423
  retry?: Retry;
3420
3424
  /**
3421
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3425
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3422
3426
  */
3423
- email?: string;
3427
+ permissioned_as?: string;
3424
3428
  /**
3425
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3429
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3426
3430
  */
3427
- preserve_email?: boolean;
3431
+ preserve_permissioned_as?: boolean;
3428
3432
  };
3429
3433
  export type EditPostgresTrigger = {
3430
3434
  /**
@@ -3469,13 +3473,13 @@ export type EditPostgresTrigger = {
3469
3473
  */
3470
3474
  retry?: Retry;
3471
3475
  /**
3472
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3476
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3473
3477
  */
3474
- email?: string;
3478
+ permissioned_as?: string;
3475
3479
  /**
3476
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3480
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3477
3481
  */
3478
- preserve_email?: boolean;
3482
+ preserve_permissioned_as?: boolean;
3479
3483
  };
3480
3484
  export type KafkaTrigger = TriggerExtraProperty & {
3481
3485
  /**
@@ -3578,13 +3582,13 @@ export type NewKafkaTrigger = {
3578
3582
  */
3579
3583
  retry?: Retry;
3580
3584
  /**
3581
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3585
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3582
3586
  */
3583
- email?: string;
3587
+ permissioned_as?: string;
3584
3588
  /**
3585
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3589
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3586
3590
  */
3587
- preserve_email?: boolean;
3591
+ preserve_permissioned_as?: boolean;
3588
3592
  };
3589
3593
  export type EditKafkaTrigger = {
3590
3594
  /**
@@ -3636,13 +3640,13 @@ export type EditKafkaTrigger = {
3636
3640
  */
3637
3641
  retry?: Retry;
3638
3642
  /**
3639
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3643
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3640
3644
  */
3641
- email?: string;
3645
+ permissioned_as?: string;
3642
3646
  /**
3643
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3647
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3644
3648
  */
3645
- preserve_email?: boolean;
3649
+ preserve_permissioned_as?: boolean;
3646
3650
  };
3647
3651
  export type NatsTrigger = TriggerExtraProperty & {
3648
3652
  /**
@@ -3737,13 +3741,13 @@ export type NewNatsTrigger = {
3737
3741
  */
3738
3742
  retry?: Retry;
3739
3743
  /**
3740
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3744
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3741
3745
  */
3742
- email?: string;
3746
+ permissioned_as?: string;
3743
3747
  /**
3744
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3748
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3745
3749
  */
3746
- preserve_email?: boolean;
3750
+ preserve_permissioned_as?: boolean;
3747
3751
  };
3748
3752
  export type EditNatsTrigger = {
3749
3753
  /**
@@ -3791,13 +3795,13 @@ export type EditNatsTrigger = {
3791
3795
  */
3792
3796
  retry?: Retry;
3793
3797
  /**
3794
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3798
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3795
3799
  */
3796
- email?: string;
3800
+ permissioned_as?: string;
3797
3801
  /**
3798
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3802
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3799
3803
  */
3800
- preserve_email?: boolean;
3804
+ preserve_permissioned_as?: boolean;
3801
3805
  };
3802
3806
  export type EmailTrigger = TriggerExtraProperty & {
3803
3807
  local_part: string;
@@ -3817,13 +3821,13 @@ export type NewEmailTrigger = {
3817
3821
  retry?: Retry;
3818
3822
  mode?: TriggerMode;
3819
3823
  /**
3820
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3824
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3821
3825
  */
3822
- email?: string;
3826
+ permissioned_as?: string;
3823
3827
  /**
3824
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3828
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3825
3829
  */
3826
- preserve_email?: boolean;
3830
+ preserve_permissioned_as?: boolean;
3827
3831
  };
3828
3832
  export type EditEmailTrigger = {
3829
3833
  path: string;
@@ -3835,13 +3839,13 @@ export type EditEmailTrigger = {
3835
3839
  error_handler_args?: ScriptArgs;
3836
3840
  retry?: Retry;
3837
3841
  /**
3838
- * Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
3842
+ * The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
3839
3843
  */
3840
- email?: string;
3844
+ permissioned_as?: string;
3841
3845
  /**
3842
- * When true and the caller is a member of the 'wm_deployers' group, preserves the original email value instead of overwriting it.
3846
+ * When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it.
3843
3847
  */
3844
- preserve_email?: boolean;
3848
+ preserve_permissioned_as?: boolean;
3845
3849
  };
3846
3850
  export type Group = {
3847
3851
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "windmill-client",
3
3
  "description": "Windmill SDK client for browsers and Node.js",
4
- "version": "1.661.0",
4
+ "version": "1.662.0",
5
5
  "author": "Ruben Fiszel",
6
6
  "license": "Apache 2.0",
7
7
  "sideEffects": false,