windmill-client 1.723.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.
@@ -3827,7 +3827,8 @@ var VariableService = class {
3827
3827
  *
3828
3828
  * @param data.includeEncrypted ask to include the encrypted value if secret and decrypt secret is not true (default: false)
3829
3829
  *
3830
- * @returns ListableVariable variable
3830
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
3831
+ * @returns unknown variable
3831
3832
  * @throws ApiError
3832
3833
  */
3833
3834
  static getVariable(data) {
@@ -3840,7 +3841,8 @@ var VariableService = class {
3840
3841
  },
3841
3842
  query: {
3842
3843
  decrypt_secret: data.decryptSecret,
3843
- include_encrypted: data.includeEncrypted
3844
+ include_encrypted: data.includeEncrypted,
3845
+ get_draft: data.getDraft
3844
3846
  }
3845
3847
  });
3846
3848
  }
@@ -3895,6 +3897,10 @@ var VariableService = class {
3895
3897
  * @param data.page which page to return (start at 1, default 1)
3896
3898
  * @param data.perPage number of items to return for a given page (default 30, max 100)
3897
3899
  * @param data.label Filter by label
3900
+ * @param data.includeDraftOnly When true, append per-user draft variables whose path has no
3901
+ * deployed variable. Synthesized rows carry `draft_only: true`
3902
+ * so the home page can render a "Draft" badge.
3903
+ *
3898
3904
  * @returns ListableVariable variable list
3899
3905
  * @throws ApiError
3900
3906
  */
@@ -3911,7 +3917,8 @@ var VariableService = class {
3911
3917
  broad_filter: data.broadFilter,
3912
3918
  page: data.page,
3913
3919
  per_page: data.perPage,
3914
- label: data.label
3920
+ label: data.label,
3921
+ include_draft_only: data.includeDraftOnly
3915
3922
  }
3916
3923
  });
3917
3924
  }
@@ -4253,7 +4260,8 @@ var ResourceService = class {
4253
4260
  * @param data The data for the request.
4254
4261
  * @param data.workspace
4255
4262
  * @param data.path
4256
- * @returns Resource resource
4263
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
4264
+ * @returns unknown resource
4257
4265
  * @throws ApiError
4258
4266
  */
4259
4267
  static getResource(data) {
@@ -4263,7 +4271,8 @@ var ResourceService = class {
4263
4271
  path: {
4264
4272
  workspace: data.workspace,
4265
4273
  path: data.path
4266
- }
4274
+ },
4275
+ query: { get_draft: data.getDraft }
4267
4276
  });
4268
4277
  }
4269
4278
  /**
@@ -4360,6 +4369,10 @@ var ResourceService = class {
4360
4369
  * @param data.value JSONB subset match filter using base64 encoded JSON
4361
4370
  * @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
4362
4371
  * @param data.label Filter by label
4372
+ * @param data.includeDraftOnly When true, append per-user draft resources whose path has
4373
+ * no deployed resource. Synthesized rows carry
4374
+ * `draft_only: true`.
4375
+ *
4363
4376
  * @returns ListableResource resource list
4364
4377
  * @throws ApiError
4365
4378
  */
@@ -4378,7 +4391,8 @@ var ResourceService = class {
4378
4391
  description: data.description,
4379
4392
  value: data.value,
4380
4393
  broad_filter: data.broadFilter,
4381
- label: data.label
4394
+ label: data.label,
4395
+ include_draft_only: data.includeDraftOnly
4382
4396
  }
4383
4397
  });
4384
4398
  }
@@ -4899,7 +4913,8 @@ var FlowService = class {
4899
4913
  * @param data.workspace
4900
4914
  * @param data.path
4901
4915
  * @param data.withStarredInfo
4902
- * @returns Flow flow details
4916
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
4917
+ * @returns unknown flow details
4903
4918
  * @throws ApiError
4904
4919
  */
4905
4920
  static getFlowByPath(data) {
@@ -4910,7 +4925,10 @@ var FlowService = class {
4910
4925
  workspace: data.workspace,
4911
4926
  path: data.path
4912
4927
  },
4913
- query: { with_starred_info: data.withStarredInfo }
4928
+ query: {
4929
+ with_starred_info: data.withStarredInfo,
4930
+ get_draft: data.getDraft
4931
+ }
4914
4932
  });
4915
4933
  }
4916
4934
  /**
@@ -4989,24 +5007,6 @@ var FlowService = class {
4989
5007
  });
4990
5008
  }
4991
5009
  /**
4992
- * get flow by path with draft
4993
- * @param data The data for the request.
4994
- * @param data.workspace
4995
- * @param data.path
4996
- * @returns unknown flow details with draft
4997
- * @throws ApiError
4998
- */
4999
- static getFlowByPathWithDraft(data) {
5000
- return request(OpenAPI, {
5001
- method: "GET",
5002
- url: "/w/{workspace}/flows/get/draft/{path}",
5003
- path: {
5004
- workspace: data.workspace,
5005
- path: data.path
5006
- }
5007
- });
5008
- }
5009
- /**
5010
5010
  * exists flow by path
5011
5011
  * @param data The data for the request.
5012
5012
  * @param data.workspace
@@ -5290,7 +5290,12 @@ var AppService = class {
5290
5290
  * @param data.workspace
5291
5291
  * @param data.path
5292
5292
  * @param data.withStarredInfo
5293
- * @returns AppWithLastVersion app details
5293
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
5294
+ * @param data.rawApp When no deployed app exists at this path and `get_draft` is set,
5295
+ * disambiguates which draft kind (`raw_app` or `app`) to look up.
5296
+ * Ignored when a deployed row exists.
5297
+ *
5298
+ * @returns unknown app details
5294
5299
  * @throws ApiError
5295
5300
  */
5296
5301
  static getAppByPath(data) {
@@ -5301,7 +5306,11 @@ var AppService = class {
5301
5306
  workspace: data.workspace,
5302
5307
  path: data.path
5303
5308
  },
5304
- query: { with_starred_info: data.withStarredInfo }
5309
+ query: {
5310
+ with_starred_info: data.withStarredInfo,
5311
+ get_draft: data.getDraft,
5312
+ raw_app: data.rawApp
5313
+ }
5305
5314
  });
5306
5315
  }
5307
5316
  /**
@@ -5323,24 +5332,6 @@ var AppService = class {
5323
5332
  });
5324
5333
  }
5325
5334
  /**
5326
- * get app by path with draft
5327
- * @param data The data for the request.
5328
- * @param data.workspace
5329
- * @param data.path
5330
- * @returns AppWithLastVersionWDraft app details with draft
5331
- * @throws ApiError
5332
- */
5333
- static getAppByPathWithDraft(data) {
5334
- return request(OpenAPI, {
5335
- method: "GET",
5336
- url: "/w/{workspace}/apps/get/draft/{path}",
5337
- path: {
5338
- workspace: data.workspace,
5339
- path: data.path
5340
- }
5341
- });
5342
- }
5343
- /**
5344
5335
  * get app history by path
5345
5336
  * @param data The data for the request.
5346
5337
  * @param data.workspace
@@ -5836,7 +5827,7 @@ var ScriptService = class {
5836
5827
  * If false, show only scripts with dedicated_worker disabled.
5837
5828
  *
5838
5829
  * @param data.label Filter by label
5839
- * @returns Script All scripts
5830
+ * @returns unknown All scripts
5840
5831
  * @throws ApiError
5841
5832
  */
5842
5833
  static listScripts(data) {
@@ -6020,7 +6011,8 @@ var ScriptService = class {
6020
6011
  * @param data.workspace
6021
6012
  * @param data.path
6022
6013
  * @param data.withStarredInfo
6023
- * @returns Script script details
6014
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
6015
+ * @returns unknown script details
6024
6016
  * @throws ApiError
6025
6017
  */
6026
6018
  static getScriptByPath(data) {
@@ -6031,7 +6023,10 @@ var ScriptService = class {
6031
6023
  workspace: data.workspace,
6032
6024
  path: data.path
6033
6025
  },
6034
- query: { with_starred_info: data.withStarredInfo }
6026
+ query: {
6027
+ with_starred_info: data.withStarredInfo,
6028
+ get_draft: data.getDraft
6029
+ }
6035
6030
  });
6036
6031
  }
6037
6032
  /**
@@ -6071,24 +6066,6 @@ var ScriptService = class {
6071
6066
  });
6072
6067
  }
6073
6068
  /**
6074
- * get script by path with draft
6075
- * @param data The data for the request.
6076
- * @param data.workspace
6077
- * @param data.path
6078
- * @returns NewScriptWithDraft script details
6079
- * @throws ApiError
6080
- */
6081
- static getScriptByPathWithDraft(data) {
6082
- return request(OpenAPI, {
6083
- method: "GET",
6084
- url: "/w/{workspace}/scripts/get/draft/{path}",
6085
- path: {
6086
- workspace: data.workspace,
6087
- path: data.path
6088
- }
6089
- });
6090
- }
6091
- /**
6092
6069
  * get history of a script by path
6093
6070
  * @param data The data for the request.
6094
6071
  * @param data.workspace
@@ -6369,40 +6346,63 @@ var ScriptService = class {
6369
6346
  };
6370
6347
  var DraftService = class {
6371
6348
  /**
6372
- * create draft
6349
+ * list every draft the current user has in this workspace, across all kinds
6373
6350
  * @param data The data for the request.
6374
6351
  * @param data.workspace
6375
- * @param data.requestBody
6376
- * @returns string draft created
6352
+ * @returns unknown the user's drafts
6377
6353
  * @throws ApiError
6378
6354
  */
6379
- static createDraft(data) {
6355
+ static listDrafts(data) {
6380
6356
  return request(OpenAPI, {
6381
- method: "POST",
6382
- url: "/w/{workspace}/drafts/create",
6383
- path: { workspace: data.workspace },
6384
- body: data.requestBody,
6385
- mediaType: "application/json"
6357
+ method: "GET",
6358
+ url: "/w/{workspace}/drafts/list",
6359
+ path: { workspace: data.workspace }
6386
6360
  });
6387
6361
  }
6388
6362
  /**
6389
- * delete draft
6363
+ * fetch a single draft's content by workspace username (or the legacy workspace-level row)
6390
6364
  * @param data The data for the request.
6391
6365
  * @param data.workspace
6392
6366
  * @param data.kind
6393
6367
  * @param data.path
6394
- * @returns string draft deleted
6368
+ * @param data.username Workspace username of the draft owner. Omit to fetch the legacy workspace-level (NULL email) row.
6369
+ * @returns unknown draft content
6395
6370
  * @throws ApiError
6396
6371
  */
6397
- static deleteDraft(data) {
6372
+ static getDraftForUser(data) {
6398
6373
  return request(OpenAPI, {
6399
- method: "DELETE",
6400
- url: "/w/{workspace}/drafts/delete/{kind}/{path}",
6374
+ method: "GET",
6375
+ url: "/w/{workspace}/drafts/get/{kind}/{path}",
6401
6376
  path: {
6402
6377
  workspace: data.workspace,
6403
6378
  kind: data.kind,
6404
6379
  path: data.path
6405
- }
6380
+ },
6381
+ query: { username: data.username },
6382
+ errors: { 404: "no draft for that owner at that path" }
6383
+ });
6384
+ }
6385
+ /**
6386
+ * upsert (or clear) the current user's draft at a path
6387
+ * @param data The data for the request.
6388
+ * @param data.workspace
6389
+ * @param data.kind
6390
+ * @param data.path
6391
+ * @param data.requestBody
6392
+ * @returns unknown save result
6393
+ * @throws ApiError
6394
+ */
6395
+ static updateDraft(data) {
6396
+ return request(OpenAPI, {
6397
+ method: "POST",
6398
+ url: "/w/{workspace}/drafts/update/{kind}/{path}",
6399
+ path: {
6400
+ workspace: data.workspace,
6401
+ kind: data.kind,
6402
+ path: data.path
6403
+ },
6404
+ body: data.requestBody,
6405
+ mediaType: "application/json"
6406
6406
  });
6407
6407
  }
6408
6408
  };
@@ -9235,6 +9235,12 @@ var RawAppService = class {
9235
9235
  * show only the starred items
9236
9236
  *
9237
9237
  * @param data.label Filter by label
9238
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
9239
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
9240
+ * so the home page can render a "Draft" badge. Gated to
9241
+ * non-operators + page 0 + no narrowing filters on the backend so
9242
+ * picker callers stay deployed-only and pagination stays clean.
9243
+ *
9238
9244
  * @returns ListableRawApp All raw apps
9239
9245
  * @throws ApiError
9240
9246
  */
@@ -9251,7 +9257,8 @@ var RawAppService = class {
9251
9257
  path_start: data.pathStart,
9252
9258
  path_exact: data.pathExact,
9253
9259
  starred_only: data.starredOnly,
9254
- label: data.label
9260
+ label: data.label,
9261
+ include_draft_only: data.includeDraftOnly
9255
9262
  }
9256
9263
  });
9257
9264
  }
@@ -9402,7 +9409,8 @@ var ScheduleService = class {
9402
9409
  * @param data The data for the request.
9403
9410
  * @param data.workspace
9404
9411
  * @param data.path
9405
- * @returns Schedule schedule deleted
9412
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
9413
+ * @returns unknown schedule deleted
9406
9414
  * @throws ApiError
9407
9415
  */
9408
9416
  static getSchedule(data) {
@@ -9412,7 +9420,8 @@ var ScheduleService = class {
9412
9420
  path: {
9413
9421
  workspace: data.workspace,
9414
9422
  path: data.path
9415
- }
9423
+ },
9424
+ query: { get_draft: data.getDraft }
9416
9425
  });
9417
9426
  }
9418
9427
  /**
@@ -9448,6 +9457,10 @@ var ScheduleService = class {
9448
9457
  * @param data.summary pattern match filter for summary field (case-insensitive)
9449
9458
  * @param data.broadFilter broad search across multiple fields (case-insensitive substring match)
9450
9459
  * @param data.label Filter by label
9460
+ * @param data.includeDraftOnly When true, append per-user draft schedules whose path has
9461
+ * no deployed schedule. Synthesized rows carry
9462
+ * `draft_only: true`.
9463
+ *
9451
9464
  * @returns Schedule schedule list
9452
9465
  * @throws ApiError
9453
9466
  */
@@ -9467,7 +9480,8 @@ var ScheduleService = class {
9467
9480
  description: data.description,
9468
9481
  summary: data.summary,
9469
9482
  broad_filter: data.broadFilter,
9470
- label: data.label
9483
+ label: data.label,
9484
+ include_draft_only: data.includeDraftOnly
9471
9485
  }
9472
9486
  });
9473
9487
  }
@@ -9624,7 +9638,8 @@ var HttpTriggerService = class {
9624
9638
  * @param data The data for the request.
9625
9639
  * @param data.workspace
9626
9640
  * @param data.path
9627
- * @returns HttpTrigger http trigger deleted
9641
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
9642
+ * @returns unknown http trigger deleted
9628
9643
  * @throws ApiError
9629
9644
  */
9630
9645
  static getHttpTrigger(data) {
@@ -9634,7 +9649,8 @@ var HttpTriggerService = class {
9634
9649
  path: {
9635
9650
  workspace: data.workspace,
9636
9651
  path: data.path
9637
- }
9652
+ },
9653
+ query: { get_draft: data.getDraft }
9638
9654
  });
9639
9655
  }
9640
9656
  /**
@@ -9647,6 +9663,12 @@ var HttpTriggerService = class {
9647
9663
  * @param data.isFlow
9648
9664
  * @param data.pathStart
9649
9665
  * @param data.label Filter by label
9666
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
9667
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
9668
+ * so the home page can render a "Draft" badge. Gated to
9669
+ * non-operators + page 0 + no narrowing filters on the backend so
9670
+ * picker callers stay deployed-only and pagination stays clean.
9671
+ *
9650
9672
  * @returns HttpTrigger http trigger list
9651
9673
  * @throws ApiError
9652
9674
  */
@@ -9661,7 +9683,8 @@ var HttpTriggerService = class {
9661
9683
  path: data.path,
9662
9684
  is_flow: data.isFlow,
9663
9685
  path_start: data.pathStart,
9664
- label: data.label
9686
+ label: data.label,
9687
+ include_draft_only: data.includeDraftOnly
9665
9688
  }
9666
9689
  });
9667
9690
  }
@@ -9784,7 +9807,8 @@ var WebsocketTriggerService = class {
9784
9807
  * @param data The data for the request.
9785
9808
  * @param data.workspace
9786
9809
  * @param data.path
9787
- * @returns WebsocketTrigger websocket trigger deleted
9810
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
9811
+ * @returns unknown websocket trigger deleted
9788
9812
  * @throws ApiError
9789
9813
  */
9790
9814
  static getWebsocketTrigger(data) {
@@ -9794,7 +9818,8 @@ var WebsocketTriggerService = class {
9794
9818
  path: {
9795
9819
  workspace: data.workspace,
9796
9820
  path: data.path
9797
- }
9821
+ },
9822
+ query: { get_draft: data.getDraft }
9798
9823
  });
9799
9824
  }
9800
9825
  /**
@@ -9807,6 +9832,12 @@ var WebsocketTriggerService = class {
9807
9832
  * @param data.isFlow
9808
9833
  * @param data.pathStart
9809
9834
  * @param data.label Filter by label
9835
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
9836
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
9837
+ * so the home page can render a "Draft" badge. Gated to
9838
+ * non-operators + page 0 + no narrowing filters on the backend so
9839
+ * picker callers stay deployed-only and pagination stays clean.
9840
+ *
9810
9841
  * @returns WebsocketTrigger websocket trigger list
9811
9842
  * @throws ApiError
9812
9843
  */
@@ -9821,7 +9852,8 @@ var WebsocketTriggerService = class {
9821
9852
  path: data.path,
9822
9853
  is_flow: data.isFlow,
9823
9854
  path_start: data.pathStart,
9824
- label: data.label
9855
+ label: data.label,
9856
+ include_draft_only: data.includeDraftOnly
9825
9857
  }
9826
9858
  });
9827
9859
  }
@@ -9944,7 +9976,8 @@ var KafkaTriggerService = class {
9944
9976
  * @param data The data for the request.
9945
9977
  * @param data.workspace
9946
9978
  * @param data.path
9947
- * @returns KafkaTrigger kafka trigger deleted
9979
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
9980
+ * @returns unknown kafka trigger deleted
9948
9981
  * @throws ApiError
9949
9982
  */
9950
9983
  static getKafkaTrigger(data) {
@@ -9954,7 +9987,8 @@ var KafkaTriggerService = class {
9954
9987
  path: {
9955
9988
  workspace: data.workspace,
9956
9989
  path: data.path
9957
- }
9990
+ },
9991
+ query: { get_draft: data.getDraft }
9958
9992
  });
9959
9993
  }
9960
9994
  /**
@@ -9967,6 +10001,12 @@ var KafkaTriggerService = class {
9967
10001
  * @param data.isFlow
9968
10002
  * @param data.pathStart
9969
10003
  * @param data.label Filter by label
10004
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10005
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10006
+ * so the home page can render a "Draft" badge. Gated to
10007
+ * non-operators + page 0 + no narrowing filters on the backend so
10008
+ * picker callers stay deployed-only and pagination stays clean.
10009
+ *
9970
10010
  * @returns KafkaTrigger kafka trigger list
9971
10011
  * @throws ApiError
9972
10012
  */
@@ -9981,7 +10021,8 @@ var KafkaTriggerService = class {
9981
10021
  path: data.path,
9982
10022
  is_flow: data.isFlow,
9983
10023
  path_start: data.pathStart,
9984
- label: data.label
10024
+ label: data.label,
10025
+ include_draft_only: data.includeDraftOnly
9985
10026
  }
9986
10027
  });
9987
10028
  }
@@ -10143,7 +10184,8 @@ var NatsTriggerService = class {
10143
10184
  * @param data The data for the request.
10144
10185
  * @param data.workspace
10145
10186
  * @param data.path
10146
- * @returns NatsTrigger nats trigger deleted
10187
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
10188
+ * @returns unknown nats trigger deleted
10147
10189
  * @throws ApiError
10148
10190
  */
10149
10191
  static getNatsTrigger(data) {
@@ -10153,7 +10195,8 @@ var NatsTriggerService = class {
10153
10195
  path: {
10154
10196
  workspace: data.workspace,
10155
10197
  path: data.path
10156
- }
10198
+ },
10199
+ query: { get_draft: data.getDraft }
10157
10200
  });
10158
10201
  }
10159
10202
  /**
@@ -10166,6 +10209,12 @@ var NatsTriggerService = class {
10166
10209
  * @param data.isFlow
10167
10210
  * @param data.pathStart
10168
10211
  * @param data.label Filter by label
10212
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10213
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10214
+ * so the home page can render a "Draft" badge. Gated to
10215
+ * non-operators + page 0 + no narrowing filters on the backend so
10216
+ * picker callers stay deployed-only and pagination stays clean.
10217
+ *
10169
10218
  * @returns NatsTrigger nats trigger list
10170
10219
  * @throws ApiError
10171
10220
  */
@@ -10180,7 +10229,8 @@ var NatsTriggerService = class {
10180
10229
  path: data.path,
10181
10230
  is_flow: data.isFlow,
10182
10231
  path_start: data.pathStart,
10183
- label: data.label
10232
+ label: data.label,
10233
+ include_draft_only: data.includeDraftOnly
10184
10234
  }
10185
10235
  });
10186
10236
  }
@@ -10303,7 +10353,8 @@ var SqsTriggerService = class {
10303
10353
  * @param data The data for the request.
10304
10354
  * @param data.workspace
10305
10355
  * @param data.path
10306
- * @returns SqsTrigger sqs trigger deleted
10356
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
10357
+ * @returns unknown sqs trigger deleted
10307
10358
  * @throws ApiError
10308
10359
  */
10309
10360
  static getSqsTrigger(data) {
@@ -10313,7 +10364,8 @@ var SqsTriggerService = class {
10313
10364
  path: {
10314
10365
  workspace: data.workspace,
10315
10366
  path: data.path
10316
- }
10367
+ },
10368
+ query: { get_draft: data.getDraft }
10317
10369
  });
10318
10370
  }
10319
10371
  /**
@@ -10326,6 +10378,12 @@ var SqsTriggerService = class {
10326
10378
  * @param data.isFlow
10327
10379
  * @param data.pathStart
10328
10380
  * @param data.label Filter by label
10381
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10382
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10383
+ * so the home page can render a "Draft" badge. Gated to
10384
+ * non-operators + page 0 + no narrowing filters on the backend so
10385
+ * picker callers stay deployed-only and pagination stays clean.
10386
+ *
10329
10387
  * @returns SqsTrigger sqs trigger list
10330
10388
  * @throws ApiError
10331
10389
  */
@@ -10340,7 +10398,8 @@ var SqsTriggerService = class {
10340
10398
  path: data.path,
10341
10399
  is_flow: data.isFlow,
10342
10400
  path_start: data.pathStart,
10343
- label: data.label
10401
+ label: data.label,
10402
+ include_draft_only: data.includeDraftOnly
10344
10403
  }
10345
10404
  });
10346
10405
  }
@@ -10663,6 +10722,12 @@ var NativeTriggerService = class {
10663
10722
  * @param data.path filter by script path
10664
10723
  * @param data.isFlow filter by is_flow
10665
10724
  * @param data.label Filter by label
10725
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10726
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10727
+ * so the home page can render a "Draft" badge. Gated to
10728
+ * non-operators + page 0 + no narrowing filters on the backend so
10729
+ * picker callers stay deployed-only and pagination stays clean.
10730
+ *
10666
10731
  * @returns NativeTrigger native triggers list
10667
10732
  * @throws ApiError
10668
10733
  */
@@ -10679,7 +10744,8 @@ var NativeTriggerService = class {
10679
10744
  per_page: data.perPage,
10680
10745
  path: data.path,
10681
10746
  is_flow: data.isFlow,
10682
- label: data.label
10747
+ label: data.label,
10748
+ include_draft_only: data.includeDraftOnly
10683
10749
  }
10684
10750
  });
10685
10751
  }
@@ -10888,7 +10954,8 @@ var MqttTriggerService = class {
10888
10954
  * @param data The data for the request.
10889
10955
  * @param data.workspace
10890
10956
  * @param data.path
10891
- * @returns MqttTrigger mqtt trigger deleted
10957
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
10958
+ * @returns unknown mqtt trigger deleted
10892
10959
  * @throws ApiError
10893
10960
  */
10894
10961
  static getMqttTrigger(data) {
@@ -10898,7 +10965,8 @@ var MqttTriggerService = class {
10898
10965
  path: {
10899
10966
  workspace: data.workspace,
10900
10967
  path: data.path
10901
- }
10968
+ },
10969
+ query: { get_draft: data.getDraft }
10902
10970
  });
10903
10971
  }
10904
10972
  /**
@@ -10911,6 +10979,12 @@ var MqttTriggerService = class {
10911
10979
  * @param data.isFlow
10912
10980
  * @param data.pathStart
10913
10981
  * @param data.label Filter by label
10982
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
10983
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
10984
+ * so the home page can render a "Draft" badge. Gated to
10985
+ * non-operators + page 0 + no narrowing filters on the backend so
10986
+ * picker callers stay deployed-only and pagination stays clean.
10987
+ *
10914
10988
  * @returns MqttTrigger mqtt trigger list
10915
10989
  * @throws ApiError
10916
10990
  */
@@ -10925,7 +10999,8 @@ var MqttTriggerService = class {
10925
10999
  path: data.path,
10926
11000
  is_flow: data.isFlow,
10927
11001
  path_start: data.pathStart,
10928
- label: data.label
11002
+ label: data.label,
11003
+ include_draft_only: data.includeDraftOnly
10929
11004
  }
10930
11005
  });
10931
11006
  }
@@ -11048,7 +11123,8 @@ var GcpTriggerService = class {
11048
11123
  * @param data The data for the request.
11049
11124
  * @param data.workspace
11050
11125
  * @param data.path
11051
- * @returns GcpTrigger gcp trigger deleted
11126
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
11127
+ * @returns unknown gcp trigger deleted
11052
11128
  * @throws ApiError
11053
11129
  */
11054
11130
  static getGcpTrigger(data) {
@@ -11058,7 +11134,8 @@ var GcpTriggerService = class {
11058
11134
  path: {
11059
11135
  workspace: data.workspace,
11060
11136
  path: data.path
11061
- }
11137
+ },
11138
+ query: { get_draft: data.getDraft }
11062
11139
  });
11063
11140
  }
11064
11141
  /**
@@ -11071,6 +11148,12 @@ var GcpTriggerService = class {
11071
11148
  * @param data.isFlow
11072
11149
  * @param data.pathStart
11073
11150
  * @param data.label Filter by label
11151
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
11152
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
11153
+ * so the home page can render a "Draft" badge. Gated to
11154
+ * non-operators + page 0 + no narrowing filters on the backend so
11155
+ * picker callers stay deployed-only and pagination stays clean.
11156
+ *
11074
11157
  * @returns GcpTrigger gcp trigger list
11075
11158
  * @throws ApiError
11076
11159
  */
@@ -11085,7 +11168,8 @@ var GcpTriggerService = class {
11085
11168
  path: data.path,
11086
11169
  is_flow: data.isFlow,
11087
11170
  path_start: data.pathStart,
11088
- label: data.label
11171
+ label: data.label,
11172
+ include_draft_only: data.includeDraftOnly
11089
11173
  }
11090
11174
  });
11091
11175
  }
@@ -11268,7 +11352,8 @@ var AzureTriggerService = class {
11268
11352
  * @param data The data for the request.
11269
11353
  * @param data.workspace
11270
11354
  * @param data.path
11271
- * @returns AzureTrigger azure trigger
11355
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
11356
+ * @returns unknown azure trigger
11272
11357
  * @throws ApiError
11273
11358
  */
11274
11359
  static getAzureTrigger(data) {
@@ -11278,7 +11363,8 @@ var AzureTriggerService = class {
11278
11363
  path: {
11279
11364
  workspace: data.workspace,
11280
11365
  path: data.path
11281
- }
11366
+ },
11367
+ query: { get_draft: data.getDraft }
11282
11368
  });
11283
11369
  }
11284
11370
  /**
@@ -11290,6 +11376,12 @@ var AzureTriggerService = class {
11290
11376
  * @param data.path filter by exact path
11291
11377
  * @param data.isFlow
11292
11378
  * @param data.pathStart
11379
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
11380
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
11381
+ * so the home page can render a "Draft" badge. Gated to
11382
+ * non-operators + page 0 + no narrowing filters on the backend so
11383
+ * picker callers stay deployed-only and pagination stays clean.
11384
+ *
11293
11385
  * @returns AzureTrigger azure trigger list
11294
11386
  * @throws ApiError
11295
11387
  */
@@ -11303,7 +11395,8 @@ var AzureTriggerService = class {
11303
11395
  per_page: data.perPage,
11304
11396
  path: data.path,
11305
11397
  is_flow: data.isFlow,
11306
- path_start: data.pathStart
11398
+ path_start: data.pathStart,
11399
+ include_draft_only: data.includeDraftOnly
11307
11400
  }
11308
11401
  });
11309
11402
  }
@@ -11760,7 +11853,8 @@ var PostgresTriggerService = class {
11760
11853
  * @param data The data for the request.
11761
11854
  * @param data.workspace
11762
11855
  * @param data.path
11763
- * @returns PostgresTrigger get postgres trigger
11856
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
11857
+ * @returns unknown get postgres trigger
11764
11858
  * @throws ApiError
11765
11859
  */
11766
11860
  static getPostgresTrigger(data) {
@@ -11770,7 +11864,8 @@ var PostgresTriggerService = class {
11770
11864
  path: {
11771
11865
  workspace: data.workspace,
11772
11866
  path: data.path
11773
- }
11867
+ },
11868
+ query: { get_draft: data.getDraft }
11774
11869
  });
11775
11870
  }
11776
11871
  /**
@@ -11783,6 +11878,12 @@ var PostgresTriggerService = class {
11783
11878
  * @param data.isFlow
11784
11879
  * @param data.pathStart
11785
11880
  * @param data.label Filter by label
11881
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
11882
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
11883
+ * so the home page can render a "Draft" badge. Gated to
11884
+ * non-operators + page 0 + no narrowing filters on the backend so
11885
+ * picker callers stay deployed-only and pagination stays clean.
11886
+ *
11786
11887
  * @returns PostgresTrigger postgres trigger list
11787
11888
  * @throws ApiError
11788
11889
  */
@@ -11797,7 +11898,8 @@ var PostgresTriggerService = class {
11797
11898
  path: data.path,
11798
11899
  is_flow: data.isFlow,
11799
11900
  path_start: data.pathStart,
11800
- label: data.label
11901
+ label: data.label,
11902
+ include_draft_only: data.includeDraftOnly
11801
11903
  }
11802
11904
  });
11803
11905
  }
@@ -11920,7 +12022,8 @@ var EmailTriggerService = class {
11920
12022
  * @param data The data for the request.
11921
12023
  * @param data.workspace
11922
12024
  * @param data.path
11923
- * @returns EmailTrigger email trigger retrieved
12025
+ * @param data.getDraft When true, overlay the authed user's draft (if any) onto the deployed payload.
12026
+ * @returns unknown email trigger retrieved
11924
12027
  * @throws ApiError
11925
12028
  */
11926
12029
  static getEmailTrigger(data) {
@@ -11930,7 +12033,8 @@ var EmailTriggerService = class {
11930
12033
  path: {
11931
12034
  workspace: data.workspace,
11932
12035
  path: data.path
11933
- }
12036
+ },
12037
+ query: { get_draft: data.getDraft }
11934
12038
  });
11935
12039
  }
11936
12040
  /**
@@ -11943,6 +12047,12 @@ var EmailTriggerService = class {
11943
12047
  * @param data.isFlow
11944
12048
  * @param data.pathStart
11945
12049
  * @param data.label Filter by label
12050
+ * @param data.includeDraftOnly When true, append per-user draft rows whose path has no
12051
+ * deployed counterpart. Synthesized rows carry `draft_only: true`
12052
+ * so the home page can render a "Draft" badge. Gated to
12053
+ * non-operators + page 0 + no narrowing filters on the backend so
12054
+ * picker callers stay deployed-only and pagination stays clean.
12055
+ *
11946
12056
  * @returns EmailTrigger email trigger list
11947
12057
  * @throws ApiError
11948
12058
  */
@@ -11957,7 +12067,8 @@ var EmailTriggerService = class {
11957
12067
  path: data.path,
11958
12068
  is_flow: data.isFlow,
11959
12069
  path_start: data.pathStart,
11960
- label: data.label
12070
+ label: data.label,
12071
+ include_draft_only: data.includeDraftOnly
11961
12072
  }
11962
12073
  });
11963
12074
  }