windmill-client 1.724.0 → 1.725.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/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.724.0",
129
+ VERSION: "1.725.0",
130
130
  WITH_CREDENTIALS: true,
131
131
  interceptors: {
132
132
  request: new Interceptors(),
@@ -4195,7 +4195,8 @@ var VariableService = class {
4195
4195
  *
4196
4196
  * @param data.includeEncrypted ask to include the encrypted value if secret and decrypt secret is not true (default: false)
4197
4197
  *
4198
- * @returns ListableVariable variable
4198
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
4199
+ * @returns unknown variable
4199
4200
  * @throws ApiError
4200
4201
  */
4201
4202
  static getVariable(data) {
@@ -4208,7 +4209,8 @@ var VariableService = class {
4208
4209
  },
4209
4210
  query: {
4210
4211
  decrypt_secret: data.decryptSecret,
4211
- include_encrypted: data.includeEncrypted
4212
+ include_encrypted: data.includeEncrypted,
4213
+ get_draft: data.getDraft
4212
4214
  }
4213
4215
  });
4214
4216
  }
@@ -4263,6 +4265,10 @@ var VariableService = class {
4263
4265
  * @param data.page which page to return (start at 1, default 1)
4264
4266
  * @param data.perPage number of items to return for a given page (default 30, max 100)
4265
4267
  * @param data.label Filter by label
4268
+ * @param data.includeDraftOnly When true, append per-user draft variables whose path has no
4269
+ * deployed variable. Synthesized rows carry `draft_only: true`
4270
+ * so the home page can render a "Draft" badge.
4271
+ *
4266
4272
  * @returns ListableVariable variable list
4267
4273
  * @throws ApiError
4268
4274
  */
@@ -4279,7 +4285,8 @@ var VariableService = class {
4279
4285
  broad_filter: data.broadFilter,
4280
4286
  page: data.page,
4281
4287
  per_page: data.perPage,
4282
- label: data.label
4288
+ label: data.label,
4289
+ include_draft_only: data.includeDraftOnly
4283
4290
  }
4284
4291
  });
4285
4292
  }
@@ -4621,7 +4628,8 @@ var ResourceService = class {
4621
4628
  * @param data The data for the request.
4622
4629
  * @param data.workspace
4623
4630
  * @param data.path
4624
- * @returns Resource resource
4631
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
4632
+ * @returns unknown resource
4625
4633
  * @throws ApiError
4626
4634
  */
4627
4635
  static getResource(data) {
@@ -4631,7 +4639,8 @@ var ResourceService = class {
4631
4639
  path: {
4632
4640
  workspace: data.workspace,
4633
4641
  path: data.path
4634
- }
4642
+ },
4643
+ query: { get_draft: data.getDraft }
4635
4644
  });
4636
4645
  }
4637
4646
  /**
@@ -4728,6 +4737,10 @@ var ResourceService = class {
4728
4737
  * @param data.value JSONB subset match filter using base64 encoded JSON
4729
4738
  * @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
4730
4739
  * @param data.label Filter by label
4740
+ * @param data.includeDraftOnly When true, append per-user draft resources whose path has
4741
+ * no deployed resource. Synthesized rows carry
4742
+ * `draft_only: true`.
4743
+ *
4731
4744
  * @returns ListableResource resource list
4732
4745
  * @throws ApiError
4733
4746
  */
@@ -4746,7 +4759,8 @@ var ResourceService = class {
4746
4759
  description: data.description,
4747
4760
  value: data.value,
4748
4761
  broad_filter: data.broadFilter,
4749
- label: data.label
4762
+ label: data.label,
4763
+ include_draft_only: data.includeDraftOnly
4750
4764
  }
4751
4765
  });
4752
4766
  }
@@ -5267,7 +5281,8 @@ var FlowService = class {
5267
5281
  * @param data.workspace
5268
5282
  * @param data.path
5269
5283
  * @param data.withStarredInfo
5270
- * @returns Flow flow details
5284
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
5285
+ * @returns unknown flow details
5271
5286
  * @throws ApiError
5272
5287
  */
5273
5288
  static getFlowByPath(data) {
@@ -5278,7 +5293,10 @@ var FlowService = class {
5278
5293
  workspace: data.workspace,
5279
5294
  path: data.path
5280
5295
  },
5281
- query: { with_starred_info: data.withStarredInfo }
5296
+ query: {
5297
+ with_starred_info: data.withStarredInfo,
5298
+ get_draft: data.getDraft
5299
+ }
5282
5300
  });
5283
5301
  }
5284
5302
  /**
@@ -5357,24 +5375,6 @@ var FlowService = class {
5357
5375
  });
5358
5376
  }
5359
5377
  /**
5360
- * get flow by path with draft
5361
- * @param data The data for the request.
5362
- * @param data.workspace
5363
- * @param data.path
5364
- * @returns unknown flow details with draft
5365
- * @throws ApiError
5366
- */
5367
- static getFlowByPathWithDraft(data) {
5368
- return request(OpenAPI, {
5369
- method: "GET",
5370
- url: "/w/{workspace}/flows/get/draft/{path}",
5371
- path: {
5372
- workspace: data.workspace,
5373
- path: data.path
5374
- }
5375
- });
5376
- }
5377
- /**
5378
5378
  * exists flow by path
5379
5379
  * @param data The data for the request.
5380
5380
  * @param data.workspace
@@ -5658,7 +5658,12 @@ var AppService = class {
5658
5658
  * @param data.workspace
5659
5659
  * @param data.path
5660
5660
  * @param data.withStarredInfo
5661
- * @returns AppWithLastVersion app details
5661
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
5662
+ * @param data.rawApp When no deployed app exists at this path and `get_draft` is set,
5663
+ * disambiguates which draft kind (`raw_app` or `app`) to look up.
5664
+ * Ignored when a deployed row exists.
5665
+ *
5666
+ * @returns unknown app details
5662
5667
  * @throws ApiError
5663
5668
  */
5664
5669
  static getAppByPath(data) {
@@ -5669,7 +5674,11 @@ var AppService = class {
5669
5674
  workspace: data.workspace,
5670
5675
  path: data.path
5671
5676
  },
5672
- query: { with_starred_info: data.withStarredInfo }
5677
+ query: {
5678
+ with_starred_info: data.withStarredInfo,
5679
+ get_draft: data.getDraft,
5680
+ raw_app: data.rawApp
5681
+ }
5673
5682
  });
5674
5683
  }
5675
5684
  /**
@@ -5691,24 +5700,6 @@ var AppService = class {
5691
5700
  });
5692
5701
  }
5693
5702
  /**
5694
- * get app by path with draft
5695
- * @param data The data for the request.
5696
- * @param data.workspace
5697
- * @param data.path
5698
- * @returns AppWithLastVersionWDraft app details with draft
5699
- * @throws ApiError
5700
- */
5701
- static getAppByPathWithDraft(data) {
5702
- return request(OpenAPI, {
5703
- method: "GET",
5704
- url: "/w/{workspace}/apps/get/draft/{path}",
5705
- path: {
5706
- workspace: data.workspace,
5707
- path: data.path
5708
- }
5709
- });
5710
- }
5711
- /**
5712
5703
  * get app history by path
5713
5704
  * @param data The data for the request.
5714
5705
  * @param data.workspace
@@ -6204,7 +6195,7 @@ var ScriptService = class {
6204
6195
  * If false, show only scripts with dedicated_worker disabled.
6205
6196
  *
6206
6197
  * @param data.label Filter by label
6207
- * @returns Script All scripts
6198
+ * @returns unknown All scripts
6208
6199
  * @throws ApiError
6209
6200
  */
6210
6201
  static listScripts(data) {
@@ -6388,7 +6379,8 @@ var ScriptService = class {
6388
6379
  * @param data.workspace
6389
6380
  * @param data.path
6390
6381
  * @param data.withStarredInfo
6391
- * @returns Script script details
6382
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
6383
+ * @returns unknown script details
6392
6384
  * @throws ApiError
6393
6385
  */
6394
6386
  static getScriptByPath(data) {
@@ -6399,7 +6391,10 @@ var ScriptService = class {
6399
6391
  workspace: data.workspace,
6400
6392
  path: data.path
6401
6393
  },
6402
- query: { with_starred_info: data.withStarredInfo }
6394
+ query: {
6395
+ with_starred_info: data.withStarredInfo,
6396
+ get_draft: data.getDraft
6397
+ }
6403
6398
  });
6404
6399
  }
6405
6400
  /**
@@ -6439,24 +6434,6 @@ var ScriptService = class {
6439
6434
  });
6440
6435
  }
6441
6436
  /**
6442
- * get script by path with draft
6443
- * @param data The data for the request.
6444
- * @param data.workspace
6445
- * @param data.path
6446
- * @returns NewScriptWithDraft script details
6447
- * @throws ApiError
6448
- */
6449
- static getScriptByPathWithDraft(data) {
6450
- return request(OpenAPI, {
6451
- method: "GET",
6452
- url: "/w/{workspace}/scripts/get/draft/{path}",
6453
- path: {
6454
- workspace: data.workspace,
6455
- path: data.path
6456
- }
6457
- });
6458
- }
6459
- /**
6460
6437
  * get history of a script by path
6461
6438
  * @param data The data for the request.
6462
6439
  * @param data.workspace
@@ -6737,40 +6714,63 @@ var ScriptService = class {
6737
6714
  };
6738
6715
  var DraftService = class {
6739
6716
  /**
6740
- * create draft
6717
+ * list every draft the current user has in this workspace, across all kinds
6741
6718
  * @param data The data for the request.
6742
6719
  * @param data.workspace
6743
- * @param data.requestBody
6744
- * @returns string draft created
6720
+ * @returns unknown the user's drafts
6745
6721
  * @throws ApiError
6746
6722
  */
6747
- static createDraft(data) {
6723
+ static listDrafts(data) {
6748
6724
  return request(OpenAPI, {
6749
- method: "POST",
6750
- url: "/w/{workspace}/drafts/create",
6751
- path: { workspace: data.workspace },
6752
- body: data.requestBody,
6753
- mediaType: "application/json"
6725
+ method: "GET",
6726
+ url: "/w/{workspace}/drafts/list",
6727
+ path: { workspace: data.workspace }
6754
6728
  });
6755
6729
  }
6756
6730
  /**
6757
- * delete draft
6731
+ * fetch a single draft's content by workspace username (or the legacy workspace-level row)
6758
6732
  * @param data The data for the request.
6759
6733
  * @param data.workspace
6760
6734
  * @param data.kind
6761
6735
  * @param data.path
6762
- * @returns string draft deleted
6736
+ * @param data.username Workspace username of the draft owner. Omit to fetch the legacy workspace-level (NULL email) row.
6737
+ * @returns unknown draft content
6763
6738
  * @throws ApiError
6764
6739
  */
6765
- static deleteDraft(data) {
6740
+ static getDraftForUser(data) {
6766
6741
  return request(OpenAPI, {
6767
- method: "DELETE",
6768
- url: "/w/{workspace}/drafts/delete/{kind}/{path}",
6742
+ method: "GET",
6743
+ url: "/w/{workspace}/drafts/get/{kind}/{path}",
6769
6744
  path: {
6770
6745
  workspace: data.workspace,
6771
6746
  kind: data.kind,
6772
6747
  path: data.path
6773
- }
6748
+ },
6749
+ query: { username: data.username },
6750
+ errors: { 404: "no draft for that owner at that path" }
6751
+ });
6752
+ }
6753
+ /**
6754
+ * upsert (or clear) the current user's draft at a path
6755
+ * @param data The data for the request.
6756
+ * @param data.workspace
6757
+ * @param data.kind
6758
+ * @param data.path
6759
+ * @param data.requestBody
6760
+ * @returns unknown save result
6761
+ * @throws ApiError
6762
+ */
6763
+ static updateDraft(data) {
6764
+ return request(OpenAPI, {
6765
+ method: "POST",
6766
+ url: "/w/{workspace}/drafts/update/{kind}/{path}",
6767
+ path: {
6768
+ workspace: data.workspace,
6769
+ kind: data.kind,
6770
+ path: data.path
6771
+ },
6772
+ body: data.requestBody,
6773
+ mediaType: "application/json"
6774
6774
  });
6775
6775
  }
6776
6776
  };
@@ -9603,6 +9603,12 @@ var RawAppService = class {
9603
9603
  * show only the starred items
9604
9604
  *
9605
9605
  * @param data.label Filter by label
9606
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
9607
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
9608
+ * so the home page can render a "Draft" badge. Gated to
9609
+ * non-operators + page 0 + no narrowing filters on the backend so
9610
+ * picker callers stay deployed-only and pagination stays clean.
9611
+ *
9606
9612
  * @returns ListableRawApp All raw apps
9607
9613
  * @throws ApiError
9608
9614
  */
@@ -9619,7 +9625,8 @@ var RawAppService = class {
9619
9625
  path_start: data.pathStart,
9620
9626
  path_exact: data.pathExact,
9621
9627
  starred_only: data.starredOnly,
9622
- label: data.label
9628
+ label: data.label,
9629
+ include_draft_only: data.includeDraftOnly
9623
9630
  }
9624
9631
  });
9625
9632
  }
@@ -9770,7 +9777,8 @@ var ScheduleService = class {
9770
9777
  * @param data The data for the request.
9771
9778
  * @param data.workspace
9772
9779
  * @param data.path
9773
- * @returns Schedule schedule deleted
9780
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
9781
+ * @returns unknown schedule deleted
9774
9782
  * @throws ApiError
9775
9783
  */
9776
9784
  static getSchedule(data) {
@@ -9780,7 +9788,8 @@ var ScheduleService = class {
9780
9788
  path: {
9781
9789
  workspace: data.workspace,
9782
9790
  path: data.path
9783
- }
9791
+ },
9792
+ query: { get_draft: data.getDraft }
9784
9793
  });
9785
9794
  }
9786
9795
  /**
@@ -9816,6 +9825,10 @@ var ScheduleService = class {
9816
9825
  * @param data.summary pattern match filter for summary field (case-insensitive)
9817
9826
  * @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
9818
9827
  * @param data.label Filter by label
9828
+ * @param data.includeDraftOnly When true, append per-user draft schedules whose path has
9829
+ * no deployed schedule. Synthesized rows carry
9830
+ * `draft_only: true`.
9831
+ *
9819
9832
  * @returns Schedule schedule list
9820
9833
  * @throws ApiError
9821
9834
  */
@@ -9835,7 +9848,8 @@ var ScheduleService = class {
9835
9848
  description: data.description,
9836
9849
  summary: data.summary,
9837
9850
  broad_filter: data.broadFilter,
9838
- label: data.label
9851
+ label: data.label,
9852
+ include_draft_only: data.includeDraftOnly
9839
9853
  }
9840
9854
  });
9841
9855
  }
@@ -9992,7 +10006,8 @@ var HttpTriggerService = class {
9992
10006
  * @param data The data for the request.
9993
10007
  * @param data.workspace
9994
10008
  * @param data.path
9995
- * @returns HttpTrigger http trigger deleted
10009
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
10010
+ * @returns unknown http trigger deleted
9996
10011
  * @throws ApiError
9997
10012
  */
9998
10013
  static getHttpTrigger(data) {
@@ -10002,7 +10017,8 @@ var HttpTriggerService = class {
10002
10017
  path: {
10003
10018
  workspace: data.workspace,
10004
10019
  path: data.path
10005
- }
10020
+ },
10021
+ query: { get_draft: data.getDraft }
10006
10022
  });
10007
10023
  }
10008
10024
  /**
@@ -10015,6 +10031,12 @@ var HttpTriggerService = class {
10015
10031
  * @param data.isFlow
10016
10032
  * @param data.pathStart
10017
10033
  * @param data.label Filter by label
10034
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10035
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10036
+ * so the home page can render a "Draft" badge. Gated to
10037
+ * non-operators + page 0 + no narrowing filters on the backend so
10038
+ * picker callers stay deployed-only and pagination stays clean.
10039
+ *
10018
10040
  * @returns HttpTrigger http trigger list
10019
10041
  * @throws ApiError
10020
10042
  */
@@ -10029,7 +10051,8 @@ var HttpTriggerService = class {
10029
10051
  path: data.path,
10030
10052
  is_flow: data.isFlow,
10031
10053
  path_start: data.pathStart,
10032
- label: data.label
10054
+ label: data.label,
10055
+ include_draft_only: data.includeDraftOnly
10033
10056
  }
10034
10057
  });
10035
10058
  }
@@ -10152,7 +10175,8 @@ var WebsocketTriggerService = class {
10152
10175
  * @param data The data for the request.
10153
10176
  * @param data.workspace
10154
10177
  * @param data.path
10155
- * @returns WebsocketTrigger websocket trigger deleted
10178
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
10179
+ * @returns unknown websocket trigger deleted
10156
10180
  * @throws ApiError
10157
10181
  */
10158
10182
  static getWebsocketTrigger(data) {
@@ -10162,7 +10186,8 @@ var WebsocketTriggerService = class {
10162
10186
  path: {
10163
10187
  workspace: data.workspace,
10164
10188
  path: data.path
10165
- }
10189
+ },
10190
+ query: { get_draft: data.getDraft }
10166
10191
  });
10167
10192
  }
10168
10193
  /**
@@ -10175,6 +10200,12 @@ var WebsocketTriggerService = class {
10175
10200
  * @param data.isFlow
10176
10201
  * @param data.pathStart
10177
10202
  * @param data.label Filter by label
10203
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10204
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10205
+ * so the home page can render a "Draft" badge. Gated to
10206
+ * non-operators + page 0 + no narrowing filters on the backend so
10207
+ * picker callers stay deployed-only and pagination stays clean.
10208
+ *
10178
10209
  * @returns WebsocketTrigger websocket trigger list
10179
10210
  * @throws ApiError
10180
10211
  */
@@ -10189,7 +10220,8 @@ var WebsocketTriggerService = class {
10189
10220
  path: data.path,
10190
10221
  is_flow: data.isFlow,
10191
10222
  path_start: data.pathStart,
10192
- label: data.label
10223
+ label: data.label,
10224
+ include_draft_only: data.includeDraftOnly
10193
10225
  }
10194
10226
  });
10195
10227
  }
@@ -10312,7 +10344,8 @@ var KafkaTriggerService = class {
10312
10344
  * @param data The data for the request.
10313
10345
  * @param data.workspace
10314
10346
  * @param data.path
10315
- * @returns KafkaTrigger kafka trigger deleted
10347
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
10348
+ * @returns unknown kafka trigger deleted
10316
10349
  * @throws ApiError
10317
10350
  */
10318
10351
  static getKafkaTrigger(data) {
@@ -10322,7 +10355,8 @@ var KafkaTriggerService = class {
10322
10355
  path: {
10323
10356
  workspace: data.workspace,
10324
10357
  path: data.path
10325
- }
10358
+ },
10359
+ query: { get_draft: data.getDraft }
10326
10360
  });
10327
10361
  }
10328
10362
  /**
@@ -10335,6 +10369,12 @@ var KafkaTriggerService = class {
10335
10369
  * @param data.isFlow
10336
10370
  * @param data.pathStart
10337
10371
  * @param data.label Filter by label
10372
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10373
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10374
+ * so the home page can render a "Draft" badge. Gated to
10375
+ * non-operators + page 0 + no narrowing filters on the backend so
10376
+ * picker callers stay deployed-only and pagination stays clean.
10377
+ *
10338
10378
  * @returns KafkaTrigger kafka trigger list
10339
10379
  * @throws ApiError
10340
10380
  */
@@ -10349,7 +10389,8 @@ var KafkaTriggerService = class {
10349
10389
  path: data.path,
10350
10390
  is_flow: data.isFlow,
10351
10391
  path_start: data.pathStart,
10352
- label: data.label
10392
+ label: data.label,
10393
+ include_draft_only: data.includeDraftOnly
10353
10394
  }
10354
10395
  });
10355
10396
  }
@@ -10511,7 +10552,8 @@ var NatsTriggerService = class {
10511
10552
  * @param data The data for the request.
10512
10553
  * @param data.workspace
10513
10554
  * @param data.path
10514
- * @returns NatsTrigger nats trigger deleted
10555
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
10556
+ * @returns unknown nats trigger deleted
10515
10557
  * @throws ApiError
10516
10558
  */
10517
10559
  static getNatsTrigger(data) {
@@ -10521,7 +10563,8 @@ var NatsTriggerService = class {
10521
10563
  path: {
10522
10564
  workspace: data.workspace,
10523
10565
  path: data.path
10524
- }
10566
+ },
10567
+ query: { get_draft: data.getDraft }
10525
10568
  });
10526
10569
  }
10527
10570
  /**
@@ -10534,6 +10577,12 @@ var NatsTriggerService = class {
10534
10577
  * @param data.isFlow
10535
10578
  * @param data.pathStart
10536
10579
  * @param data.label Filter by label
10580
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10581
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10582
+ * so the home page can render a "Draft" badge. Gated to
10583
+ * non-operators + page 0 + no narrowing filters on the backend so
10584
+ * picker callers stay deployed-only and pagination stays clean.
10585
+ *
10537
10586
  * @returns NatsTrigger nats trigger list
10538
10587
  * @throws ApiError
10539
10588
  */
@@ -10548,7 +10597,8 @@ var NatsTriggerService = class {
10548
10597
  path: data.path,
10549
10598
  is_flow: data.isFlow,
10550
10599
  path_start: data.pathStart,
10551
- label: data.label
10600
+ label: data.label,
10601
+ include_draft_only: data.includeDraftOnly
10552
10602
  }
10553
10603
  });
10554
10604
  }
@@ -10671,7 +10721,8 @@ var SqsTriggerService = class {
10671
10721
  * @param data The data for the request.
10672
10722
  * @param data.workspace
10673
10723
  * @param data.path
10674
- * @returns SqsTrigger sqs trigger deleted
10724
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
10725
+ * @returns unknown sqs trigger deleted
10675
10726
  * @throws ApiError
10676
10727
  */
10677
10728
  static getSqsTrigger(data) {
@@ -10681,7 +10732,8 @@ var SqsTriggerService = class {
10681
10732
  path: {
10682
10733
  workspace: data.workspace,
10683
10734
  path: data.path
10684
- }
10735
+ },
10736
+ query: { get_draft: data.getDraft }
10685
10737
  });
10686
10738
  }
10687
10739
  /**
@@ -10694,6 +10746,12 @@ var SqsTriggerService = class {
10694
10746
  * @param data.isFlow
10695
10747
  * @param data.pathStart
10696
10748
  * @param data.label Filter by label
10749
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10750
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10751
+ * so the home page can render a "Draft" badge. Gated to
10752
+ * non-operators + page 0 + no narrowing filters on the backend so
10753
+ * picker callers stay deployed-only and pagination stays clean.
10754
+ *
10697
10755
  * @returns SqsTrigger sqs trigger list
10698
10756
  * @throws ApiError
10699
10757
  */
@@ -10708,7 +10766,8 @@ var SqsTriggerService = class {
10708
10766
  path: data.path,
10709
10767
  is_flow: data.isFlow,
10710
10768
  path_start: data.pathStart,
10711
- label: data.label
10769
+ label: data.label,
10770
+ include_draft_only: data.includeDraftOnly
10712
10771
  }
10713
10772
  });
10714
10773
  }
@@ -11031,6 +11090,12 @@ var NativeTriggerService = class {
11031
11090
  * @param data.path filter by script path
11032
11091
  * @param data.isFlow filter by is_flow
11033
11092
  * @param data.label Filter by label
11093
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
11094
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
11095
+ * so the home page can render a "Draft" badge. Gated to
11096
+ * non-operators + page 0 + no narrowing filters on the backend so
11097
+ * picker callers stay deployed-only and pagination stays clean.
11098
+ *
11034
11099
  * @returns NativeTrigger native triggers list
11035
11100
  * @throws ApiError
11036
11101
  */
@@ -11047,7 +11112,8 @@ var NativeTriggerService = class {
11047
11112
  per_page: data.perPage,
11048
11113
  path: data.path,
11049
11114
  is_flow: data.isFlow,
11050
- label: data.label
11115
+ label: data.label,
11116
+ include_draft_only: data.includeDraftOnly
11051
11117
  }
11052
11118
  });
11053
11119
  }
@@ -11256,7 +11322,8 @@ var MqttTriggerService = class {
11256
11322
  * @param data The data for the request.
11257
11323
  * @param data.workspace
11258
11324
  * @param data.path
11259
- * @returns MqttTrigger mqtt trigger deleted
11325
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
11326
+ * @returns unknown mqtt trigger deleted
11260
11327
  * @throws ApiError
11261
11328
  */
11262
11329
  static getMqttTrigger(data) {
@@ -11266,7 +11333,8 @@ var MqttTriggerService = class {
11266
11333
  path: {
11267
11334
  workspace: data.workspace,
11268
11335
  path: data.path
11269
- }
11336
+ },
11337
+ query: { get_draft: data.getDraft }
11270
11338
  });
11271
11339
  }
11272
11340
  /**
@@ -11279,6 +11347,12 @@ var MqttTriggerService = class {
11279
11347
  * @param data.isFlow
11280
11348
  * @param data.pathStart
11281
11349
  * @param data.label Filter by label
11350
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
11351
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
11352
+ * so the home page can render a "Draft" badge. Gated to
11353
+ * non-operators + page 0 + no narrowing filters on the backend so
11354
+ * picker callers stay deployed-only and pagination stays clean.
11355
+ *
11282
11356
  * @returns MqttTrigger mqtt trigger list
11283
11357
  * @throws ApiError
11284
11358
  */
@@ -11293,7 +11367,8 @@ var MqttTriggerService = class {
11293
11367
  path: data.path,
11294
11368
  is_flow: data.isFlow,
11295
11369
  path_start: data.pathStart,
11296
- label: data.label
11370
+ label: data.label,
11371
+ include_draft_only: data.includeDraftOnly
11297
11372
  }
11298
11373
  });
11299
11374
  }
@@ -11416,7 +11491,8 @@ var GcpTriggerService = class {
11416
11491
  * @param data The data for the request.
11417
11492
  * @param data.workspace
11418
11493
  * @param data.path
11419
- * @returns GcpTrigger gcp trigger deleted
11494
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
11495
+ * @returns unknown gcp trigger deleted
11420
11496
  * @throws ApiError
11421
11497
  */
11422
11498
  static getGcpTrigger(data) {
@@ -11426,7 +11502,8 @@ var GcpTriggerService = class {
11426
11502
  path: {
11427
11503
  workspace: data.workspace,
11428
11504
  path: data.path
11429
- }
11505
+ },
11506
+ query: { get_draft: data.getDraft }
11430
11507
  });
11431
11508
  }
11432
11509
  /**
@@ -11439,6 +11516,12 @@ var GcpTriggerService = class {
11439
11516
  * @param data.isFlow
11440
11517
  * @param data.pathStart
11441
11518
  * @param data.label Filter by label
11519
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
11520
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
11521
+ * so the home page can render a "Draft" badge. Gated to
11522
+ * non-operators + page 0 + no narrowing filters on the backend so
11523
+ * picker callers stay deployed-only and pagination stays clean.
11524
+ *
11442
11525
  * @returns GcpTrigger gcp trigger list
11443
11526
  * @throws ApiError
11444
11527
  */
@@ -11453,7 +11536,8 @@ var GcpTriggerService = class {
11453
11536
  path: data.path,
11454
11537
  is_flow: data.isFlow,
11455
11538
  path_start: data.pathStart,
11456
- label: data.label
11539
+ label: data.label,
11540
+ include_draft_only: data.includeDraftOnly
11457
11541
  }
11458
11542
  });
11459
11543
  }
@@ -11636,7 +11720,8 @@ var AzureTriggerService = class {
11636
11720
  * @param data The data for the request.
11637
11721
  * @param data.workspace
11638
11722
  * @param data.path
11639
- * @returns AzureTrigger azure trigger
11723
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
11724
+ * @returns unknown azure trigger
11640
11725
  * @throws ApiError
11641
11726
  */
11642
11727
  static getAzureTrigger(data) {
@@ -11646,7 +11731,8 @@ var AzureTriggerService = class {
11646
11731
  path: {
11647
11732
  workspace: data.workspace,
11648
11733
  path: data.path
11649
- }
11734
+ },
11735
+ query: { get_draft: data.getDraft }
11650
11736
  });
11651
11737
  }
11652
11738
  /**
@@ -11658,6 +11744,12 @@ var AzureTriggerService = class {
11658
11744
  * @param data.path filter by exact path
11659
11745
  * @param data.isFlow
11660
11746
  * @param data.pathStart
11747
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
11748
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
11749
+ * so the home page can render a "Draft" badge. Gated to
11750
+ * non-operators + page 0 + no narrowing filters on the backend so
11751
+ * picker callers stay deployed-only and pagination stays clean.
11752
+ *
11661
11753
  * @returns AzureTrigger azure trigger list
11662
11754
  * @throws ApiError
11663
11755
  */
@@ -11671,7 +11763,8 @@ var AzureTriggerService = class {
11671
11763
  per_page: data.perPage,
11672
11764
  path: data.path,
11673
11765
  is_flow: data.isFlow,
11674
- path_start: data.pathStart
11766
+ path_start: data.pathStart,
11767
+ include_draft_only: data.includeDraftOnly
11675
11768
  }
11676
11769
  });
11677
11770
  }
@@ -12128,7 +12221,8 @@ var PostgresTriggerService = class {
12128
12221
  * @param data The data for the request.
12129
12222
  * @param data.workspace
12130
12223
  * @param data.path
12131
- * @returns PostgresTrigger get postgres trigger
12224
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
12225
+ * @returns unknown get postgres trigger
12132
12226
  * @throws ApiError
12133
12227
  */
12134
12228
  static getPostgresTrigger(data) {
@@ -12138,7 +12232,8 @@ var PostgresTriggerService = class {
12138
12232
  path: {
12139
12233
  workspace: data.workspace,
12140
12234
  path: data.path
12141
- }
12235
+ },
12236
+ query: { get_draft: data.getDraft }
12142
12237
  });
12143
12238
  }
12144
12239
  /**
@@ -12151,6 +12246,12 @@ var PostgresTriggerService = class {
12151
12246
  * @param data.isFlow
12152
12247
  * @param data.pathStart
12153
12248
  * @param data.label Filter by label
12249
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
12250
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
12251
+ * so the home page can render a "Draft" badge. Gated to
12252
+ * non-operators + page 0 + no narrowing filters on the backend so
12253
+ * picker callers stay deployed-only and pagination stays clean.
12254
+ *
12154
12255
  * @returns PostgresTrigger postgres trigger list
12155
12256
  * @throws ApiError
12156
12257
  */
@@ -12165,7 +12266,8 @@ var PostgresTriggerService = class {
12165
12266
  path: data.path,
12166
12267
  is_flow: data.isFlow,
12167
12268
  path_start: data.pathStart,
12168
- label: data.label
12269
+ label: data.label,
12270
+ include_draft_only: data.includeDraftOnly
12169
12271
  }
12170
12272
  });
12171
12273
  }
@@ -12288,7 +12390,8 @@ var EmailTriggerService = class {
12288
12390
  * @param data The data for the request.
12289
12391
  * @param data.workspace
12290
12392
  * @param data.path
12291
- * @returns EmailTrigger email trigger retrieved
12393
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
12394
+ * @returns unknown email trigger retrieved
12292
12395
  * @throws ApiError
12293
12396
  */
12294
12397
  static getEmailTrigger(data) {
@@ -12298,7 +12401,8 @@ var EmailTriggerService = class {
12298
12401
  path: {
12299
12402
  workspace: data.workspace,
12300
12403
  path: data.path
12301
- }
12404
+ },
12405
+ query: { get_draft: data.getDraft }
12302
12406
  });
12303
12407
  }
12304
12408
  /**
@@ -12311,6 +12415,12 @@ var EmailTriggerService = class {
12311
12415
  * @param data.isFlow
12312
12416
  * @param data.pathStart
12313
12417
  * @param data.label Filter by label
12418
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
12419
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
12420
+ * so the home page can render a "Draft" badge. Gated to
12421
+ * non-operators + page 0 + no narrowing filters on the backend so
12422
+ * picker callers stay deployed-only and pagination stays clean.
12423
+ *
12314
12424
  * @returns EmailTrigger email trigger list
12315
12425
  * @throws ApiError
12316
12426
  */
@@ -12325,7 +12435,8 @@ var EmailTriggerService = class {
12325
12435
  path: data.path,
12326
12436
  is_flow: data.isFlow,
12327
12437
  path_start: data.pathStart,
12328
- label: data.label
12438
+ label: data.label,
12439
+ include_draft_only: data.includeDraftOnly
12329
12440
  }
12330
12441
  });
12331
12442
  }