@lessly/sdk-app 7.0.0 → 8.0.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.
Files changed (55) hide show
  1. package/dist/analytics/index.cjs +11 -0
  2. package/dist/analytics/index.cjs.map +1 -0
  3. package/dist/analytics/index.d.cts +8 -0
  4. package/dist/analytics/index.d.ts +8 -0
  5. package/dist/analytics/index.js +9 -0
  6. package/dist/analytics/index.js.map +1 -0
  7. package/dist/brain/index.cjs +0 -10
  8. package/dist/brain/index.cjs.map +1 -1
  9. package/dist/brain/index.d.cts +2 -10
  10. package/dist/brain/index.d.ts +2 -10
  11. package/dist/brain/index.js +1 -9
  12. package/dist/brain/index.js.map +1 -1
  13. package/dist/{client.gen-oPZGjxpS.d.cts → client.gen-t1yMTANn.d.cts} +2899 -249
  14. package/dist/{client.gen-oPZGjxpS.d.ts → client.gen-t1yMTANn.d.ts} +2899 -249
  15. package/dist/consent/index.d.cts +1 -1
  16. package/dist/consent/index.d.ts +1 -1
  17. package/dist/deployment/index.cjs +531 -0
  18. package/dist/deployment/index.cjs.map +1 -0
  19. package/dist/deployment/index.d.cts +424 -0
  20. package/dist/deployment/index.d.ts +424 -0
  21. package/dist/deployment/index.js +425 -0
  22. package/dist/deployment/index.js.map +1 -0
  23. package/dist/index.cjs +1878 -150
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +1 -1
  26. package/dist/index.d.ts +1 -1
  27. package/dist/index.js +1878 -150
  28. package/dist/index.js.map +1 -1
  29. package/dist/mail/index.d.cts +2 -2
  30. package/dist/mail/index.d.ts +2 -2
  31. package/dist/organization/index.d.cts +1 -1
  32. package/dist/organization/index.d.ts +1 -1
  33. package/dist/playground/index.cjs +66 -0
  34. package/dist/playground/index.cjs.map +1 -0
  35. package/dist/playground/index.d.cts +52 -0
  36. package/dist/playground/index.d.ts +52 -0
  37. package/dist/playground/index.js +53 -0
  38. package/dist/playground/index.js.map +1 -0
  39. package/dist/tracking/index.d.cts +1 -1
  40. package/dist/tracking/index.d.ts +1 -1
  41. package/dist/waitlist/index.d.cts +1 -1
  42. package/dist/waitlist/index.d.ts +1 -1
  43. package/package.json +17 -2
  44. package/src/gen/analytics/index.ts +3 -0
  45. package/src/gen/analytics/queryOptions.gen.ts +11 -0
  46. package/src/gen/bindings.gen.ts +1878 -150
  47. package/src/gen/brain/index.ts +1 -1
  48. package/src/gen/brain/queryOptions.gen.ts +0 -14
  49. package/src/gen/client.gen.ts +450 -8
  50. package/src/gen/deployment/index.ts +3 -0
  51. package/src/gen/deployment/queryOptions.gen.ts +681 -0
  52. package/src/gen/manifest.gen.ts +1 -1
  53. package/src/gen/playground/index.ts +3 -0
  54. package/src/gen/playground/queryOptions.gen.ts +86 -0
  55. package/src/gen/types.gen.ts +2932 -242
@@ -0,0 +1,681 @@
1
+ // AUTOGENERATED by scripts/generate.ts — do not edit.
2
+ import type { GeneratedClient } from '../client.gen';
3
+ import type {
4
+ DeploymentAlertCreateInput,
5
+ DeploymentAlertDeleteInput,
6
+ DeploymentAlertEventsListInput,
7
+ DeploymentAlertEventsListOutput,
8
+ DeploymentAlertListInput,
9
+ DeploymentAlertListOutput,
10
+ DeploymentAlertUpdateInput,
11
+ DeploymentAnalyticsQueryInput,
12
+ DeploymentAnalyticsQueryOutput,
13
+ DeploymentAuditListInput,
14
+ DeploymentAuditListOutput,
15
+ DeploymentBuildGetInput,
16
+ DeploymentBuildGetOutput,
17
+ DeploymentBuildListInput,
18
+ DeploymentBuildListOutput,
19
+ DeploymentBuildLogsInput,
20
+ DeploymentBuildLogsOutput,
21
+ DeploymentCanvasGetInput,
22
+ DeploymentCanvasGetOutput,
23
+ DeploymentCanvasMoveNodeInput,
24
+ DeploymentCloudSqlBackfillLogFlagsInput,
25
+ DeploymentCloudSqlDatabaseAttachInput,
26
+ DeploymentCloudSqlDatabaseCreateInput,
27
+ DeploymentCloudSqlDatabaseDeleteInput,
28
+ DeploymentCloudSqlDatabaseDetachInput,
29
+ DeploymentCloudSqlDatabaseGetInput,
30
+ DeploymentCloudSqlDatabaseGetOutput,
31
+ DeploymentCloudSqlDatabaseListInput,
32
+ DeploymentCloudSqlDatabaseListOutput,
33
+ DeploymentCloudSqlInstanceBackupInput,
34
+ DeploymentCloudSqlInstanceBackupListInput,
35
+ DeploymentCloudSqlInstanceBackupListOutput,
36
+ DeploymentCloudSqlInstanceCreateInput,
37
+ DeploymentCloudSqlInstanceDeleteInput,
38
+ DeploymentCloudSqlInstanceGetInput,
39
+ DeploymentCloudSqlInstanceGetOutput,
40
+ DeploymentCloudSqlInstanceListInput,
41
+ DeploymentCloudSqlInstanceListOutput,
42
+ DeploymentCloudSqlInstanceResizeInput,
43
+ DeploymentCloudSqlInstanceRestoreInput,
44
+ DeploymentCloudSqlLogsInput,
45
+ DeploymentCloudSqlLogsOutput,
46
+ DeploymentDeploymentCancelInput,
47
+ DeploymentDeploymentGetInput,
48
+ DeploymentDeploymentGetOutput,
49
+ DeploymentDeploymentListInput,
50
+ DeploymentDeploymentListOutput,
51
+ DeploymentDomainAddInput,
52
+ DeploymentDomainAllowedListInput,
53
+ DeploymentDomainAllowedListOutput,
54
+ DeploymentDomainGetInput,
55
+ DeploymentDomainGetOutput,
56
+ DeploymentDomainListByServiceInput,
57
+ DeploymentDomainListByServiceOutput,
58
+ DeploymentDomainListInput,
59
+ DeploymentDomainListOutput,
60
+ DeploymentDomainRedirectWwwInput,
61
+ DeploymentDomainRemoveInput,
62
+ DeploymentDomainRoutesAddInput,
63
+ DeploymentDomainRoutesListInput,
64
+ DeploymentDomainRoutesListOutput,
65
+ DeploymentDomainRoutesRemoveInput,
66
+ DeploymentDomainRoutesUpdateInput,
67
+ DeploymentDomainVerifyInput,
68
+ DeploymentEnvironmentCreateInput,
69
+ DeploymentEnvironmentDeleteInput,
70
+ DeploymentEnvironmentForkInput,
71
+ DeploymentEnvironmentGetInput,
72
+ DeploymentEnvironmentGetOutput,
73
+ DeploymentEnvironmentListInput,
74
+ DeploymentEnvironmentListOutput,
75
+ DeploymentEnvironmentReconcileInput,
76
+ DeploymentEnvironmentUpdateInput,
77
+ DeploymentEventsListByEnvironmentInput,
78
+ DeploymentEventsListByEnvironmentOutput,
79
+ DeploymentEventsListByServiceInput,
80
+ DeploymentEventsListByServiceOutput,
81
+ DeploymentManagedServiceBackupInput,
82
+ DeploymentManagedServiceBackupListInput,
83
+ DeploymentManagedServiceBackupListOutput,
84
+ DeploymentManagedServiceConnectInfoInput,
85
+ DeploymentManagedServiceConnectInfoOutput,
86
+ DeploymentManagedServiceDeleteInput,
87
+ DeploymentManagedServiceGetInput,
88
+ DeploymentManagedServiceGetOutput,
89
+ DeploymentManagedServiceListInput,
90
+ DeploymentManagedServiceListOutput,
91
+ DeploymentManagedServiceLogsInput,
92
+ DeploymentManagedServiceLogsOutput,
93
+ DeploymentManagedServiceProvisionInput,
94
+ DeploymentManagedServiceReconcileInput,
95
+ DeploymentManagedServiceResizeInput,
96
+ DeploymentManagedServiceRestoreInput,
97
+ DeploymentManagedServiceStartInput,
98
+ DeploymentManagedServiceStopInput,
99
+ DeploymentManagedServiceTypesInput,
100
+ DeploymentManagedServiceTypesOutput,
101
+ DeploymentMetricsGetInput,
102
+ DeploymentMetricsGetOutput,
103
+ DeploymentPreviewEnvironmentCreateInput,
104
+ DeploymentPreviewEnvironmentDeleteInput,
105
+ DeploymentPreviewEnvironmentListInput,
106
+ DeploymentPreviewEnvironmentListOutput,
107
+ DeploymentPreviewPolicyGetInput,
108
+ DeploymentPreviewPolicyGetOutput,
109
+ DeploymentPreviewPolicySetInput,
110
+ DeploymentServiceCreateInput,
111
+ DeploymentServiceDeleteInput,
112
+ DeploymentServiceExecInput,
113
+ DeploymentServiceGetInput,
114
+ DeploymentServiceGetOutput,
115
+ DeploymentServiceListInput,
116
+ DeploymentServiceListOutput,
117
+ DeploymentServiceLogsInput,
118
+ DeploymentServiceLogsOutput,
119
+ DeploymentServiceRedeployInput,
120
+ DeploymentServiceRestartInput,
121
+ DeploymentServiceRollbackInput,
122
+ DeploymentServiceScaleInput,
123
+ DeploymentServiceUpdateInput,
124
+ DeploymentSshCommandInput,
125
+ DeploymentSshCommandOutput,
126
+ DeploymentSshKeyDeleteInput,
127
+ DeploymentSshKeyListInput,
128
+ DeploymentSshKeyListOutput,
129
+ DeploymentSshKeyRegisterInput,
130
+ DeploymentVariableListEnvInput,
131
+ DeploymentVariableListEnvOutput,
132
+ DeploymentVariableListInput,
133
+ DeploymentVariableListOutput,
134
+ DeploymentVariableListProductInput,
135
+ DeploymentVariableListProductOutput,
136
+ DeploymentVariableSetEnvInput,
137
+ DeploymentVariableSetInput,
138
+ DeploymentVariableSetProductInput,
139
+ DeploymentVariableUnsetEnvInput,
140
+ DeploymentVariableUnsetInput,
141
+ DeploymentVariableUnsetProductInput,
142
+ DeploymentVcsBranchListInput,
143
+ DeploymentVcsBranchListOutput,
144
+ DeploymentVcsConnectionListInput,
145
+ DeploymentVcsConnectionListOutput,
146
+ DeploymentVcsRepoListInput,
147
+ DeploymentVcsRepoListOutput,
148
+ DeploymentVolumeCreateInput,
149
+ DeploymentVolumeDeleteInput,
150
+ DeploymentVolumeDetachInput,
151
+ DeploymentVolumeGetInput,
152
+ DeploymentVolumeGetOutput,
153
+ DeploymentVolumeListInput,
154
+ DeploymentVolumeListOutput,
155
+ DeploymentVolumeResizeInput,
156
+ } from '../types.gen';
157
+
158
+ export const deploymentAlertCreateMutationOptions = (sdk: GeneratedClient) => ({
159
+ mutationKey: ['deployment', 'alert', 'create'],
160
+ mutationFn: (input: DeploymentAlertCreateInput) => sdk['deployment']['alert']['create'](input),
161
+ });
162
+
163
+ export const deploymentAlertDeleteMutationOptions = (sdk: GeneratedClient) => ({
164
+ mutationKey: ['deployment', 'alert', 'delete'],
165
+ mutationFn: (input: DeploymentAlertDeleteInput) => sdk['deployment']['alert']['delete'](input),
166
+ });
167
+
168
+ export const deploymentAlertEventsListQueryOptions = (sdk: GeneratedClient, input: DeploymentAlertEventsListInput) => ({
169
+ queryKey: ['deployment', 'alert-events', 'list', input] as const,
170
+ queryFn: () => sdk['deployment']['alert-events']['list'](input),
171
+ });
172
+
173
+ export const deploymentAlertListQueryOptions = (sdk: GeneratedClient, input: DeploymentAlertListInput) => ({
174
+ queryKey: ['deployment', 'alert', 'list', input] as const,
175
+ queryFn: () => sdk['deployment']['alert']['list'](input),
176
+ });
177
+
178
+ export const deploymentAlertUpdateMutationOptions = (sdk: GeneratedClient) => ({
179
+ mutationKey: ['deployment', 'alert', 'update'],
180
+ mutationFn: (input: DeploymentAlertUpdateInput) => sdk['deployment']['alert']['update'](input),
181
+ });
182
+
183
+ export const deploymentAnalyticsQueryQueryOptions = (sdk: GeneratedClient, input: DeploymentAnalyticsQueryInput) => ({
184
+ queryKey: ['deployment', 'analytics', 'query', input] as const,
185
+ queryFn: () => sdk['deployment']['analytics']['query'](input),
186
+ });
187
+
188
+ export const deploymentAuditListQueryOptions = (sdk: GeneratedClient, input: DeploymentAuditListInput) => ({
189
+ queryKey: ['deployment', 'audit', 'list', input] as const,
190
+ queryFn: () => sdk['deployment']['audit']['list'](input),
191
+ });
192
+
193
+ export const deploymentBuildGetQueryOptions = (sdk: GeneratedClient, input: DeploymentBuildGetInput) => ({
194
+ queryKey: ['deployment', 'build', 'get', input] as const,
195
+ queryFn: () => sdk['deployment']['build']['get'](input),
196
+ });
197
+
198
+ export const deploymentBuildListQueryOptions = (sdk: GeneratedClient, input: DeploymentBuildListInput) => ({
199
+ queryKey: ['deployment', 'build', 'list', input] as const,
200
+ queryFn: () => sdk['deployment']['build']['list'](input),
201
+ });
202
+
203
+ export const deploymentBuildLogsQueryOptions = (sdk: GeneratedClient, input: DeploymentBuildLogsInput) => ({
204
+ queryKey: ['deployment', 'build', 'logs', input] as const,
205
+ queryFn: () => sdk['deployment']['build']['logs'](input),
206
+ });
207
+
208
+ export const deploymentCanvasGetQueryOptions = (sdk: GeneratedClient, input: DeploymentCanvasGetInput) => ({
209
+ queryKey: ['deployment', 'canvas', 'get', input] as const,
210
+ queryFn: () => sdk['deployment']['canvas']['get'](input),
211
+ });
212
+
213
+ export const deploymentCanvasMoveNodeMutationOptions = (sdk: GeneratedClient) => ({
214
+ mutationKey: ['deployment', 'canvas-move', 'node'],
215
+ mutationFn: (input: DeploymentCanvasMoveNodeInput) => sdk['deployment']['canvas-move']['node'](input),
216
+ });
217
+
218
+ export const deploymentCloudSqlBackfillLogFlagsMutationOptions = (sdk: GeneratedClient) => ({
219
+ mutationKey: ['deployment', 'cloud-sql-backfill-log', 'flags'],
220
+ mutationFn: (input: DeploymentCloudSqlBackfillLogFlagsInput) => sdk['deployment']['cloud-sql-backfill-log']['flags'](input),
221
+ });
222
+
223
+ export const deploymentCloudSqlDatabaseAttachMutationOptions = (sdk: GeneratedClient) => ({
224
+ mutationKey: ['deployment', 'cloud-sql-database', 'attach'],
225
+ mutationFn: (input: DeploymentCloudSqlDatabaseAttachInput) => sdk['deployment']['cloud-sql-database']['attach'](input),
226
+ });
227
+
228
+ export const deploymentCloudSqlDatabaseCreateMutationOptions = (sdk: GeneratedClient) => ({
229
+ mutationKey: ['deployment', 'cloud-sql-database', 'create'],
230
+ mutationFn: (input: DeploymentCloudSqlDatabaseCreateInput) => sdk['deployment']['cloud-sql-database']['create'](input),
231
+ });
232
+
233
+ export const deploymentCloudSqlDatabaseDeleteMutationOptions = (sdk: GeneratedClient) => ({
234
+ mutationKey: ['deployment', 'cloud-sql-database', 'delete'],
235
+ mutationFn: (input: DeploymentCloudSqlDatabaseDeleteInput) => sdk['deployment']['cloud-sql-database']['delete'](input),
236
+ });
237
+
238
+ export const deploymentCloudSqlDatabaseDetachMutationOptions = (sdk: GeneratedClient) => ({
239
+ mutationKey: ['deployment', 'cloud-sql-database', 'detach'],
240
+ mutationFn: (input: DeploymentCloudSqlDatabaseDetachInput) => sdk['deployment']['cloud-sql-database']['detach'](input),
241
+ });
242
+
243
+ export const deploymentCloudSqlDatabaseGetQueryOptions = (sdk: GeneratedClient, input: DeploymentCloudSqlDatabaseGetInput) => ({
244
+ queryKey: ['deployment', 'cloud-sql-database', 'get', input] as const,
245
+ queryFn: () => sdk['deployment']['cloud-sql-database']['get'](input),
246
+ });
247
+
248
+ export const deploymentCloudSqlDatabaseListQueryOptions = (sdk: GeneratedClient, input: DeploymentCloudSqlDatabaseListInput) => ({
249
+ queryKey: ['deployment', 'cloud-sql-database', 'list', input] as const,
250
+ queryFn: () => sdk['deployment']['cloud-sql-database']['list'](input),
251
+ });
252
+
253
+ export const deploymentCloudSqlInstanceBackupMutationOptions = (sdk: GeneratedClient) => ({
254
+ mutationKey: ['deployment', 'cloud-sql-instance', 'backup'],
255
+ mutationFn: (input: DeploymentCloudSqlInstanceBackupInput) => sdk['deployment']['cloud-sql-instance']['backup'](input),
256
+ });
257
+
258
+ export const deploymentCloudSqlInstanceBackupListQueryOptions = (sdk: GeneratedClient, input: DeploymentCloudSqlInstanceBackupListInput) => ({
259
+ queryKey: ['deployment', 'cloud-sql-instance-backup', 'list', input] as const,
260
+ queryFn: () => sdk['deployment']['cloud-sql-instance-backup']['list'](input),
261
+ });
262
+
263
+ export const deploymentCloudSqlInstanceCreateMutationOptions = (sdk: GeneratedClient) => ({
264
+ mutationKey: ['deployment', 'cloud-sql-instance', 'create'],
265
+ mutationFn: (input: DeploymentCloudSqlInstanceCreateInput) => sdk['deployment']['cloud-sql-instance']['create'](input),
266
+ });
267
+
268
+ export const deploymentCloudSqlInstanceDeleteMutationOptions = (sdk: GeneratedClient) => ({
269
+ mutationKey: ['deployment', 'cloud-sql-instance', 'delete'],
270
+ mutationFn: (input: DeploymentCloudSqlInstanceDeleteInput) => sdk['deployment']['cloud-sql-instance']['delete'](input),
271
+ });
272
+
273
+ export const deploymentCloudSqlInstanceGetQueryOptions = (sdk: GeneratedClient, input: DeploymentCloudSqlInstanceGetInput) => ({
274
+ queryKey: ['deployment', 'cloud-sql-instance', 'get', input] as const,
275
+ queryFn: () => sdk['deployment']['cloud-sql-instance']['get'](input),
276
+ });
277
+
278
+ export const deploymentCloudSqlInstanceListQueryOptions = (sdk: GeneratedClient, input: DeploymentCloudSqlInstanceListInput) => ({
279
+ queryKey: ['deployment', 'cloud-sql-instance', 'list', input] as const,
280
+ queryFn: () => sdk['deployment']['cloud-sql-instance']['list'](input),
281
+ });
282
+
283
+ export const deploymentCloudSqlInstanceResizeMutationOptions = (sdk: GeneratedClient) => ({
284
+ mutationKey: ['deployment', 'cloud-sql-instance', 'resize'],
285
+ mutationFn: (input: DeploymentCloudSqlInstanceResizeInput) => sdk['deployment']['cloud-sql-instance']['resize'](input),
286
+ });
287
+
288
+ export const deploymentCloudSqlInstanceRestoreMutationOptions = (sdk: GeneratedClient) => ({
289
+ mutationKey: ['deployment', 'cloud-sql-instance', 'restore'],
290
+ mutationFn: (input: DeploymentCloudSqlInstanceRestoreInput) => sdk['deployment']['cloud-sql-instance']['restore'](input),
291
+ });
292
+
293
+ export const deploymentCloudSqlLogsQueryOptions = (sdk: GeneratedClient, input: DeploymentCloudSqlLogsInput) => ({
294
+ queryKey: ['deployment', 'cloud-sql', 'logs', input] as const,
295
+ queryFn: () => sdk['deployment']['cloud-sql']['logs'](input),
296
+ });
297
+
298
+ export const deploymentDeploymentCancelMutationOptions = (sdk: GeneratedClient) => ({
299
+ mutationKey: ['deployment', 'deployment', 'cancel'],
300
+ mutationFn: (input: DeploymentDeploymentCancelInput) => sdk['deployment']['deployment']['cancel'](input),
301
+ });
302
+
303
+ export const deploymentDeploymentGetQueryOptions = (sdk: GeneratedClient, input: DeploymentDeploymentGetInput) => ({
304
+ queryKey: ['deployment', 'deployment', 'get', input] as const,
305
+ queryFn: () => sdk['deployment']['deployment']['get'](input),
306
+ });
307
+
308
+ export const deploymentDeploymentListQueryOptions = (sdk: GeneratedClient, input: DeploymentDeploymentListInput) => ({
309
+ queryKey: ['deployment', 'deployment', 'list', input] as const,
310
+ queryFn: () => sdk['deployment']['deployment']['list'](input),
311
+ });
312
+
313
+ export const deploymentDomainAddMutationOptions = (sdk: GeneratedClient) => ({
314
+ mutationKey: ['deployment', 'domain', 'add'],
315
+ mutationFn: (input: DeploymentDomainAddInput) => sdk['deployment']['domain']['add'](input),
316
+ });
317
+
318
+ export const deploymentDomainAllowedListQueryOptions = (sdk: GeneratedClient, input: DeploymentDomainAllowedListInput) => ({
319
+ queryKey: ['deployment', 'domain-allowed', 'list', input] as const,
320
+ queryFn: () => sdk['deployment']['domain-allowed']['list'](input),
321
+ });
322
+
323
+ export const deploymentDomainGetQueryOptions = (sdk: GeneratedClient, input: DeploymentDomainGetInput) => ({
324
+ queryKey: ['deployment', 'domain', 'get', input] as const,
325
+ queryFn: () => sdk['deployment']['domain']['get'](input),
326
+ });
327
+
328
+ export const deploymentDomainListQueryOptions = (sdk: GeneratedClient, input: DeploymentDomainListInput) => ({
329
+ queryKey: ['deployment', 'domain', 'list', input] as const,
330
+ queryFn: () => sdk['deployment']['domain']['list'](input),
331
+ });
332
+
333
+ export const deploymentDomainListByServiceQueryOptions = (sdk: GeneratedClient, input: DeploymentDomainListByServiceInput) => ({
334
+ queryKey: ['deployment', 'domain-list-by', 'service', input] as const,
335
+ queryFn: () => sdk['deployment']['domain-list-by']['service'](input),
336
+ });
337
+
338
+ export const deploymentDomainRedirectWwwMutationOptions = (sdk: GeneratedClient) => ({
339
+ mutationKey: ['deployment', 'domain-redirect', 'www'],
340
+ mutationFn: (input: DeploymentDomainRedirectWwwInput) => sdk['deployment']['domain-redirect']['www'](input),
341
+ });
342
+
343
+ export const deploymentDomainRemoveMutationOptions = (sdk: GeneratedClient) => ({
344
+ mutationKey: ['deployment', 'domain', 'remove'],
345
+ mutationFn: (input: DeploymentDomainRemoveInput) => sdk['deployment']['domain']['remove'](input),
346
+ });
347
+
348
+ export const deploymentDomainRoutesAddMutationOptions = (sdk: GeneratedClient) => ({
349
+ mutationKey: ['deployment', 'domain-routes', 'add'],
350
+ mutationFn: (input: DeploymentDomainRoutesAddInput) => sdk['deployment']['domain-routes']['add'](input),
351
+ });
352
+
353
+ export const deploymentDomainRoutesListQueryOptions = (sdk: GeneratedClient, input: DeploymentDomainRoutesListInput) => ({
354
+ queryKey: ['deployment', 'domain-routes', 'list', input] as const,
355
+ queryFn: () => sdk['deployment']['domain-routes']['list'](input),
356
+ });
357
+
358
+ export const deploymentDomainRoutesRemoveMutationOptions = (sdk: GeneratedClient) => ({
359
+ mutationKey: ['deployment', 'domain-routes', 'remove'],
360
+ mutationFn: (input: DeploymentDomainRoutesRemoveInput) => sdk['deployment']['domain-routes']['remove'](input),
361
+ });
362
+
363
+ export const deploymentDomainRoutesUpdateMutationOptions = (sdk: GeneratedClient) => ({
364
+ mutationKey: ['deployment', 'domain-routes', 'update'],
365
+ mutationFn: (input: DeploymentDomainRoutesUpdateInput) => sdk['deployment']['domain-routes']['update'](input),
366
+ });
367
+
368
+ export const deploymentDomainVerifyMutationOptions = (sdk: GeneratedClient) => ({
369
+ mutationKey: ['deployment', 'domain', 'verify'],
370
+ mutationFn: (input: DeploymentDomainVerifyInput) => sdk['deployment']['domain']['verify'](input),
371
+ });
372
+
373
+ export const deploymentEnvironmentCreateMutationOptions = (sdk: GeneratedClient) => ({
374
+ mutationKey: ['deployment', 'environment', 'create'],
375
+ mutationFn: (input: DeploymentEnvironmentCreateInput) => sdk['deployment']['environment']['create'](input),
376
+ });
377
+
378
+ export const deploymentEnvironmentDeleteMutationOptions = (sdk: GeneratedClient) => ({
379
+ mutationKey: ['deployment', 'environment', 'delete'],
380
+ mutationFn: (input: DeploymentEnvironmentDeleteInput) => sdk['deployment']['environment']['delete'](input),
381
+ });
382
+
383
+ export const deploymentEnvironmentForkMutationOptions = (sdk: GeneratedClient) => ({
384
+ mutationKey: ['deployment', 'environment', 'fork'],
385
+ mutationFn: (input: DeploymentEnvironmentForkInput) => sdk['deployment']['environment']['fork'](input),
386
+ });
387
+
388
+ export const deploymentEnvironmentGetQueryOptions = (sdk: GeneratedClient, input: DeploymentEnvironmentGetInput) => ({
389
+ queryKey: ['deployment', 'environment', 'get', input] as const,
390
+ queryFn: () => sdk['deployment']['environment']['get'](input),
391
+ });
392
+
393
+ export const deploymentEnvironmentListQueryOptions = (sdk: GeneratedClient, input: DeploymentEnvironmentListInput) => ({
394
+ queryKey: ['deployment', 'environment', 'list', input] as const,
395
+ queryFn: () => sdk['deployment']['environment']['list'](input),
396
+ });
397
+
398
+ export const deploymentEnvironmentReconcileMutationOptions = (sdk: GeneratedClient) => ({
399
+ mutationKey: ['deployment', 'environment', 'reconcile'],
400
+ mutationFn: (input: DeploymentEnvironmentReconcileInput) => sdk['deployment']['environment']['reconcile'](input),
401
+ });
402
+
403
+ export const deploymentEnvironmentUpdateMutationOptions = (sdk: GeneratedClient) => ({
404
+ mutationKey: ['deployment', 'environment', 'update'],
405
+ mutationFn: (input: DeploymentEnvironmentUpdateInput) => sdk['deployment']['environment']['update'](input),
406
+ });
407
+
408
+ export const deploymentEventsListByEnvironmentQueryOptions = (sdk: GeneratedClient, input: DeploymentEventsListByEnvironmentInput) => ({
409
+ queryKey: ['deployment', 'events-list-by', 'environment', input] as const,
410
+ queryFn: () => sdk['deployment']['events-list-by']['environment'](input),
411
+ });
412
+
413
+ export const deploymentEventsListByServiceQueryOptions = (sdk: GeneratedClient, input: DeploymentEventsListByServiceInput) => ({
414
+ queryKey: ['deployment', 'events-list-by', 'service', input] as const,
415
+ queryFn: () => sdk['deployment']['events-list-by']['service'](input),
416
+ });
417
+
418
+ export const deploymentManagedServiceBackupMutationOptions = (sdk: GeneratedClient) => ({
419
+ mutationKey: ['deployment', 'managed-service', 'backup'],
420
+ mutationFn: (input: DeploymentManagedServiceBackupInput) => sdk['deployment']['managed-service']['backup'](input),
421
+ });
422
+
423
+ export const deploymentManagedServiceBackupListQueryOptions = (sdk: GeneratedClient, input: DeploymentManagedServiceBackupListInput) => ({
424
+ queryKey: ['deployment', 'managed-service-backup', 'list', input] as const,
425
+ queryFn: () => sdk['deployment']['managed-service-backup']['list'](input),
426
+ });
427
+
428
+ export const deploymentManagedServiceConnectInfoQueryOptions = (sdk: GeneratedClient, input: DeploymentManagedServiceConnectInfoInput) => ({
429
+ queryKey: ['deployment', 'managed-service-connect', 'info', input] as const,
430
+ queryFn: () => sdk['deployment']['managed-service-connect']['info'](input),
431
+ });
432
+
433
+ export const deploymentManagedServiceDeleteMutationOptions = (sdk: GeneratedClient) => ({
434
+ mutationKey: ['deployment', 'managed-service', 'delete'],
435
+ mutationFn: (input: DeploymentManagedServiceDeleteInput) => sdk['deployment']['managed-service']['delete'](input),
436
+ });
437
+
438
+ export const deploymentManagedServiceGetQueryOptions = (sdk: GeneratedClient, input: DeploymentManagedServiceGetInput) => ({
439
+ queryKey: ['deployment', 'managed-service', 'get', input] as const,
440
+ queryFn: () => sdk['deployment']['managed-service']['get'](input),
441
+ });
442
+
443
+ export const deploymentManagedServiceListQueryOptions = (sdk: GeneratedClient, input: DeploymentManagedServiceListInput) => ({
444
+ queryKey: ['deployment', 'managed-service', 'list', input] as const,
445
+ queryFn: () => sdk['deployment']['managed-service']['list'](input),
446
+ });
447
+
448
+ export const deploymentManagedServiceLogsQueryOptions = (sdk: GeneratedClient, input: DeploymentManagedServiceLogsInput) => ({
449
+ queryKey: ['deployment', 'managed-service', 'logs', input] as const,
450
+ queryFn: () => sdk['deployment']['managed-service']['logs'](input),
451
+ });
452
+
453
+ export const deploymentManagedServiceProvisionMutationOptions = (sdk: GeneratedClient) => ({
454
+ mutationKey: ['deployment', 'managed-service', 'provision'],
455
+ mutationFn: (input: DeploymentManagedServiceProvisionInput) => sdk['deployment']['managed-service']['provision'](input),
456
+ });
457
+
458
+ export const deploymentManagedServiceReconcileMutationOptions = (sdk: GeneratedClient) => ({
459
+ mutationKey: ['deployment', 'managed-service', 'reconcile'],
460
+ mutationFn: (input: DeploymentManagedServiceReconcileInput) => sdk['deployment']['managed-service']['reconcile'](input),
461
+ });
462
+
463
+ export const deploymentManagedServiceResizeMutationOptions = (sdk: GeneratedClient) => ({
464
+ mutationKey: ['deployment', 'managed-service', 'resize'],
465
+ mutationFn: (input: DeploymentManagedServiceResizeInput) => sdk['deployment']['managed-service']['resize'](input),
466
+ });
467
+
468
+ export const deploymentManagedServiceRestoreMutationOptions = (sdk: GeneratedClient) => ({
469
+ mutationKey: ['deployment', 'managed-service', 'restore'],
470
+ mutationFn: (input: DeploymentManagedServiceRestoreInput) => sdk['deployment']['managed-service']['restore'](input),
471
+ });
472
+
473
+ export const deploymentManagedServiceStartMutationOptions = (sdk: GeneratedClient) => ({
474
+ mutationKey: ['deployment', 'managed-service', 'start'],
475
+ mutationFn: (input: DeploymentManagedServiceStartInput) => sdk['deployment']['managed-service']['start'](input),
476
+ });
477
+
478
+ export const deploymentManagedServiceStopMutationOptions = (sdk: GeneratedClient) => ({
479
+ mutationKey: ['deployment', 'managed-service', 'stop'],
480
+ mutationFn: (input: DeploymentManagedServiceStopInput) => sdk['deployment']['managed-service']['stop'](input),
481
+ });
482
+
483
+ export const deploymentManagedServiceTypesQueryOptions = (sdk: GeneratedClient, input: DeploymentManagedServiceTypesInput) => ({
484
+ queryKey: ['deployment', 'managed-service', 'types', input] as const,
485
+ queryFn: () => sdk['deployment']['managed-service']['types'](input),
486
+ });
487
+
488
+ export const deploymentMetricsGetQueryOptions = (sdk: GeneratedClient, input: DeploymentMetricsGetInput) => ({
489
+ queryKey: ['deployment', 'metrics', 'get', input] as const,
490
+ queryFn: () => sdk['deployment']['metrics']['get'](input),
491
+ });
492
+
493
+ export const deploymentPreviewEnvironmentCreateMutationOptions = (sdk: GeneratedClient) => ({
494
+ mutationKey: ['deployment', 'preview-environment', 'create'],
495
+ mutationFn: (input: DeploymentPreviewEnvironmentCreateInput) => sdk['deployment']['preview-environment']['create'](input),
496
+ });
497
+
498
+ export const deploymentPreviewEnvironmentDeleteMutationOptions = (sdk: GeneratedClient) => ({
499
+ mutationKey: ['deployment', 'preview-environment', 'delete'],
500
+ mutationFn: (input: DeploymentPreviewEnvironmentDeleteInput) => sdk['deployment']['preview-environment']['delete'](input),
501
+ });
502
+
503
+ export const deploymentPreviewEnvironmentListQueryOptions = (sdk: GeneratedClient, input: DeploymentPreviewEnvironmentListInput) => ({
504
+ queryKey: ['deployment', 'preview-environment', 'list', input] as const,
505
+ queryFn: () => sdk['deployment']['preview-environment']['list'](input),
506
+ });
507
+
508
+ export const deploymentPreviewPolicyGetQueryOptions = (sdk: GeneratedClient, input: DeploymentPreviewPolicyGetInput) => ({
509
+ queryKey: ['deployment', 'preview-policy', 'get', input] as const,
510
+ queryFn: () => sdk['deployment']['preview-policy']['get'](input),
511
+ });
512
+
513
+ export const deploymentPreviewPolicySetMutationOptions = (sdk: GeneratedClient) => ({
514
+ mutationKey: ['deployment', 'preview-policy', 'set'],
515
+ mutationFn: (input: DeploymentPreviewPolicySetInput) => sdk['deployment']['preview-policy']['set'](input),
516
+ });
517
+
518
+ export const deploymentServiceCreateMutationOptions = (sdk: GeneratedClient) => ({
519
+ mutationKey: ['deployment', 'service', 'create'],
520
+ mutationFn: (input: DeploymentServiceCreateInput) => sdk['deployment']['service']['create'](input),
521
+ });
522
+
523
+ export const deploymentServiceDeleteMutationOptions = (sdk: GeneratedClient) => ({
524
+ mutationKey: ['deployment', 'service', 'delete'],
525
+ mutationFn: (input: DeploymentServiceDeleteInput) => sdk['deployment']['service']['delete'](input),
526
+ });
527
+
528
+ export const deploymentServiceExecMutationOptions = (sdk: GeneratedClient) => ({
529
+ mutationKey: ['deployment', 'service', 'exec'],
530
+ mutationFn: (input: DeploymentServiceExecInput) => sdk['deployment']['service']['exec'](input),
531
+ });
532
+
533
+ export const deploymentServiceGetQueryOptions = (sdk: GeneratedClient, input: DeploymentServiceGetInput) => ({
534
+ queryKey: ['deployment', 'service', 'get', input] as const,
535
+ queryFn: () => sdk['deployment']['service']['get'](input),
536
+ });
537
+
538
+ export const deploymentServiceListQueryOptions = (sdk: GeneratedClient, input: DeploymentServiceListInput) => ({
539
+ queryKey: ['deployment', 'service', 'list', input] as const,
540
+ queryFn: () => sdk['deployment']['service']['list'](input),
541
+ });
542
+
543
+ export const deploymentServiceLogsQueryOptions = (sdk: GeneratedClient, input: DeploymentServiceLogsInput) => ({
544
+ queryKey: ['deployment', 'service', 'logs', input] as const,
545
+ queryFn: () => sdk['deployment']['service']['logs'](input),
546
+ });
547
+
548
+ export const deploymentServiceRedeployMutationOptions = (sdk: GeneratedClient) => ({
549
+ mutationKey: ['deployment', 'service', 'redeploy'],
550
+ mutationFn: (input: DeploymentServiceRedeployInput) => sdk['deployment']['service']['redeploy'](input),
551
+ });
552
+
553
+ export const deploymentServiceRestartMutationOptions = (sdk: GeneratedClient) => ({
554
+ mutationKey: ['deployment', 'service', 'restart'],
555
+ mutationFn: (input: DeploymentServiceRestartInput) => sdk['deployment']['service']['restart'](input),
556
+ });
557
+
558
+ export const deploymentServiceRollbackMutationOptions = (sdk: GeneratedClient) => ({
559
+ mutationKey: ['deployment', 'service', 'rollback'],
560
+ mutationFn: (input: DeploymentServiceRollbackInput) => sdk['deployment']['service']['rollback'](input),
561
+ });
562
+
563
+ export const deploymentServiceScaleMutationOptions = (sdk: GeneratedClient) => ({
564
+ mutationKey: ['deployment', 'service', 'scale'],
565
+ mutationFn: (input: DeploymentServiceScaleInput) => sdk['deployment']['service']['scale'](input),
566
+ });
567
+
568
+ export const deploymentServiceUpdateMutationOptions = (sdk: GeneratedClient) => ({
569
+ mutationKey: ['deployment', 'service', 'update'],
570
+ mutationFn: (input: DeploymentServiceUpdateInput) => sdk['deployment']['service']['update'](input),
571
+ });
572
+
573
+ export const deploymentSshCommandQueryOptions = (sdk: GeneratedClient, input: DeploymentSshCommandInput) => ({
574
+ queryKey: ['deployment', 'ssh', 'command', input] as const,
575
+ queryFn: () => sdk['deployment']['ssh']['command'](input),
576
+ });
577
+
578
+ export const deploymentSshKeyDeleteMutationOptions = (sdk: GeneratedClient) => ({
579
+ mutationKey: ['deployment', 'ssh-key', 'delete'],
580
+ mutationFn: (input: DeploymentSshKeyDeleteInput) => sdk['deployment']['ssh-key']['delete'](input),
581
+ });
582
+
583
+ export const deploymentSshKeyListQueryOptions = (sdk: GeneratedClient, input: DeploymentSshKeyListInput) => ({
584
+ queryKey: ['deployment', 'ssh-key', 'list', input] as const,
585
+ queryFn: () => sdk['deployment']['ssh-key']['list'](input),
586
+ });
587
+
588
+ export const deploymentSshKeyRegisterMutationOptions = (sdk: GeneratedClient) => ({
589
+ mutationKey: ['deployment', 'ssh-key', 'register'],
590
+ mutationFn: (input: DeploymentSshKeyRegisterInput) => sdk['deployment']['ssh-key']['register'](input),
591
+ });
592
+
593
+ export const deploymentVariableListQueryOptions = (sdk: GeneratedClient, input: DeploymentVariableListInput) => ({
594
+ queryKey: ['deployment', 'variable', 'list', input] as const,
595
+ queryFn: () => sdk['deployment']['variable']['list'](input),
596
+ });
597
+
598
+ export const deploymentVariableListEnvQueryOptions = (sdk: GeneratedClient, input: DeploymentVariableListEnvInput) => ({
599
+ queryKey: ['deployment', 'variable-list', 'env', input] as const,
600
+ queryFn: () => sdk['deployment']['variable-list']['env'](input),
601
+ });
602
+
603
+ export const deploymentVariableListProductQueryOptions = (sdk: GeneratedClient, input: DeploymentVariableListProductInput) => ({
604
+ queryKey: ['deployment', 'variable-list', 'product', input] as const,
605
+ queryFn: () => sdk['deployment']['variable-list']['product'](input),
606
+ });
607
+
608
+ export const deploymentVariableSetMutationOptions = (sdk: GeneratedClient) => ({
609
+ mutationKey: ['deployment', 'variable', 'set'],
610
+ mutationFn: (input: DeploymentVariableSetInput) => sdk['deployment']['variable']['set'](input),
611
+ });
612
+
613
+ export const deploymentVariableSetEnvMutationOptions = (sdk: GeneratedClient) => ({
614
+ mutationKey: ['deployment', 'variable-set', 'env'],
615
+ mutationFn: (input: DeploymentVariableSetEnvInput) => sdk['deployment']['variable-set']['env'](input),
616
+ });
617
+
618
+ export const deploymentVariableSetProductMutationOptions = (sdk: GeneratedClient) => ({
619
+ mutationKey: ['deployment', 'variable-set', 'product'],
620
+ mutationFn: (input: DeploymentVariableSetProductInput) => sdk['deployment']['variable-set']['product'](input),
621
+ });
622
+
623
+ export const deploymentVariableUnsetMutationOptions = (sdk: GeneratedClient) => ({
624
+ mutationKey: ['deployment', 'variable', 'unset'],
625
+ mutationFn: (input: DeploymentVariableUnsetInput) => sdk['deployment']['variable']['unset'](input),
626
+ });
627
+
628
+ export const deploymentVariableUnsetEnvMutationOptions = (sdk: GeneratedClient) => ({
629
+ mutationKey: ['deployment', 'variable-unset', 'env'],
630
+ mutationFn: (input: DeploymentVariableUnsetEnvInput) => sdk['deployment']['variable-unset']['env'](input),
631
+ });
632
+
633
+ export const deploymentVariableUnsetProductMutationOptions = (sdk: GeneratedClient) => ({
634
+ mutationKey: ['deployment', 'variable-unset', 'product'],
635
+ mutationFn: (input: DeploymentVariableUnsetProductInput) => sdk['deployment']['variable-unset']['product'](input),
636
+ });
637
+
638
+ export const deploymentVcsBranchListQueryOptions = (sdk: GeneratedClient, input: DeploymentVcsBranchListInput) => ({
639
+ queryKey: ['deployment', 'vcs-branch', 'list', input] as const,
640
+ queryFn: () => sdk['deployment']['vcs-branch']['list'](input),
641
+ });
642
+
643
+ export const deploymentVcsConnectionListQueryOptions = (sdk: GeneratedClient, input: DeploymentVcsConnectionListInput) => ({
644
+ queryKey: ['deployment', 'vcs-connection', 'list', input] as const,
645
+ queryFn: () => sdk['deployment']['vcs-connection']['list'](input),
646
+ });
647
+
648
+ export const deploymentVcsRepoListQueryOptions = (sdk: GeneratedClient, input: DeploymentVcsRepoListInput) => ({
649
+ queryKey: ['deployment', 'vcs-repo', 'list', input] as const,
650
+ queryFn: () => sdk['deployment']['vcs-repo']['list'](input),
651
+ });
652
+
653
+ export const deploymentVolumeCreateMutationOptions = (sdk: GeneratedClient) => ({
654
+ mutationKey: ['deployment', 'volume', 'create'],
655
+ mutationFn: (input: DeploymentVolumeCreateInput) => sdk['deployment']['volume']['create'](input),
656
+ });
657
+
658
+ export const deploymentVolumeDeleteMutationOptions = (sdk: GeneratedClient) => ({
659
+ mutationKey: ['deployment', 'volume', 'delete'],
660
+ mutationFn: (input: DeploymentVolumeDeleteInput) => sdk['deployment']['volume']['delete'](input),
661
+ });
662
+
663
+ export const deploymentVolumeDetachMutationOptions = (sdk: GeneratedClient) => ({
664
+ mutationKey: ['deployment', 'volume', 'detach'],
665
+ mutationFn: (input: DeploymentVolumeDetachInput) => sdk['deployment']['volume']['detach'](input),
666
+ });
667
+
668
+ export const deploymentVolumeGetQueryOptions = (sdk: GeneratedClient, input: DeploymentVolumeGetInput) => ({
669
+ queryKey: ['deployment', 'volume', 'get', input] as const,
670
+ queryFn: () => sdk['deployment']['volume']['get'](input),
671
+ });
672
+
673
+ export const deploymentVolumeListQueryOptions = (sdk: GeneratedClient, input: DeploymentVolumeListInput) => ({
674
+ queryKey: ['deployment', 'volume', 'list', input] as const,
675
+ queryFn: () => sdk['deployment']['volume']['list'](input),
676
+ });
677
+
678
+ export const deploymentVolumeResizeMutationOptions = (sdk: GeneratedClient) => ({
679
+ mutationKey: ['deployment', 'volume', 'resize'],
680
+ mutationFn: (input: DeploymentVolumeResizeInput) => sdk['deployment']['volume']['resize'](input),
681
+ });