@cloudfleet/sdk 0.6.10 → 0.6.12

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 (53) hide show
  1. package/dist/client/client.d.ts +3 -0
  2. package/dist/client/client.d.ts.map +1 -0
  3. package/dist/client/client.js +146 -0
  4. package/dist/client/client.js.map +1 -0
  5. package/dist/client/index.d.ts +8 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +5 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.d.ts +120 -0
  10. package/dist/client/types.d.ts.map +1 -0
  11. package/dist/client/types.js +2 -0
  12. package/dist/client/types.js.map +1 -0
  13. package/dist/client/utils.d.ts +46 -0
  14. package/dist/client/utils.d.ts.map +1 -0
  15. package/dist/client/utils.js +285 -0
  16. package/dist/client/utils.js.map +1 -0
  17. package/dist/client.gen.d.ts +2 -2
  18. package/dist/client.gen.d.ts.map +1 -1
  19. package/dist/client.gen.js +1 -1
  20. package/dist/client.gen.js.map +1 -1
  21. package/dist/core/auth.d.ts +19 -0
  22. package/dist/core/auth.d.ts.map +1 -0
  23. package/dist/core/auth.js +14 -0
  24. package/dist/core/auth.js.map +1 -0
  25. package/dist/core/bodySerializer.d.ts +18 -0
  26. package/dist/core/bodySerializer.d.ts.map +1 -0
  27. package/dist/core/bodySerializer.js +54 -0
  28. package/dist/core/bodySerializer.js.map +1 -0
  29. package/dist/core/params.d.ts +34 -0
  30. package/dist/core/params.d.ts.map +1 -0
  31. package/dist/core/params.js +88 -0
  32. package/dist/core/params.js.map +1 -0
  33. package/dist/core/pathSerializer.d.ts +34 -0
  34. package/dist/core/pathSerializer.d.ts.map +1 -0
  35. package/dist/core/pathSerializer.js +114 -0
  36. package/dist/core/pathSerializer.js.map +1 -0
  37. package/dist/core/types.d.ts +79 -0
  38. package/dist/core/types.d.ts.map +1 -0
  39. package/dist/core/types.js +2 -0
  40. package/dist/core/types.js.map +1 -0
  41. package/dist/schemas.gen.d.ts +6 -1
  42. package/dist/schemas.gen.d.ts.map +1 -1
  43. package/dist/schemas.gen.js +6 -1
  44. package/dist/schemas.gen.js.map +1 -1
  45. package/dist/sdk.gen.d.ts +48 -48
  46. package/dist/sdk.gen.d.ts.map +1 -1
  47. package/dist/types.gen.d.ts +5 -1
  48. package/dist/types.gen.d.ts.map +1 -1
  49. package/dist/zod.gen.d.ts +2527 -2442
  50. package/dist/zod.gen.d.ts.map +1 -1
  51. package/dist/zod.gen.js +490 -333
  52. package/dist/zod.gen.js.map +1 -1
  53. package/package.json +5 -6
package/dist/zod.gen.js CHANGED
@@ -1,19 +1,19 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { z } from 'zod';
3
3
  export const zBillingContact = z.object({
4
- company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
5
- address1: z.string().optional(),
6
- address2: z.string().optional(),
7
- postalCode: z.string().optional(),
8
- city: z.string().optional(),
9
- state: z.string().optional(),
10
- country: z.string().optional(),
11
- phone: z.string().optional(),
12
- email: z.string().email(),
4
+ company: z.optional(z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/)),
5
+ address1: z.optional(z.string()),
6
+ address2: z.optional(z.string()),
7
+ postalCode: z.optional(z.string()),
8
+ city: z.optional(z.string()),
9
+ state: z.optional(z.string()),
10
+ country: z.optional(z.string()),
11
+ phone: z.optional(z.string()),
12
+ email: z.email(),
13
13
  first_name: z.string(),
14
14
  last_name: z.string(),
15
- tax_id: z.string().optional(),
16
- tax_id_type: z.enum([
15
+ tax_id: z.optional(z.string()),
16
+ tax_id_type: z.optional(z.enum([
17
17
  'ad_nrt',
18
18
  'ae_trn',
19
19
  'al_tin',
@@ -142,21 +142,21 @@ export const zBillingContact = z.object({
142
142
  'zm_tin',
143
143
  'zw_tin',
144
144
  ''
145
- ]).optional()
145
+ ]))
146
146
  });
147
147
  export const zBillingCredits = z.object({
148
- id: z.string().optional(),
149
- date_created: z.string().datetime(),
148
+ id: z.optional(z.string()),
149
+ date_created: z.iso.datetime(),
150
150
  code: z.string(),
151
- description: z.string().optional(),
152
- products: z.array(z.string()).optional(),
151
+ description: z.optional(z.string()),
152
+ products: z.optional(z.array(z.string())),
153
153
  type: z.enum([
154
154
  'credit',
155
155
  'discount'
156
156
  ]),
157
157
  value: z.number(),
158
- billing_period: z.string().datetime(),
159
- value_remaining: z.number().optional()
158
+ billing_period: z.iso.datetime(),
159
+ value_remaining: z.optional(z.number())
160
160
  });
161
161
  export const zChartCreateInput = z.object({
162
162
  values: z.string(),
@@ -202,22 +202,23 @@ export const zClusterCreateInput = z.object({
202
202
  'basic',
203
203
  'pro'
204
204
  ]),
205
- region: z.enum([
205
+ region: z.optional(z.enum([
206
206
  'staging',
207
207
  'northamerica-central-1',
208
208
  'europe-central-1a'
209
- ]).optional(),
210
- version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x')
209
+ ])),
210
+ version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)).default('1.x.x-cfke.x')
211
211
  });
212
212
  export const zClusterJoinInformation = z.object({
213
213
  certificate_authority: z.string(),
214
- endpoint: z.string().url(),
214
+ endpoint: z.url(),
215
215
  auth_key: z.string(),
216
216
  bootstrap_token: z.string(),
217
217
  versions: z.object({
218
218
  kubernetes: z.string(),
219
219
  tailscale: z.string(),
220
- containerd: z.string()
220
+ containerd: z.string(),
221
+ nvidia_driver: z.string()
221
222
  }),
222
223
  third_party_api_access_config: z.object({
223
224
  metadata_url: z.string(),
@@ -231,13 +232,13 @@ export const zCluster = z.object({
231
232
  'basic',
232
233
  'pro'
233
234
  ]),
234
- region: z.enum([
235
+ region: z.optional(z.enum([
235
236
  'staging',
236
237
  'northamerica-central-1',
237
238
  'europe-central-1a'
238
- ]).optional(),
239
- version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
240
- id: z.string().uuid(),
239
+ ])),
240
+ version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)).default('1.x.x-cfke.x'),
241
+ id: z.uuid(),
241
242
  status: z.enum([
242
243
  'active',
243
244
  'deleted',
@@ -246,96 +247,96 @@ export const zCluster = z.object({
246
247
  'failed',
247
248
  'updating'
248
249
  ]),
249
- endpoint: z.union([
250
- z.string().url(),
250
+ endpoint: z.optional(z.union([
251
+ z.url(),
251
252
  z.enum([
252
253
  ''
253
254
  ])
254
- ]).optional(),
255
- certificate_ca: z.string().optional(),
256
- version_current: z.string().optional(),
257
- created_at: z.string().optional(),
258
- updated_at: z.string().optional(),
259
- ready: z.boolean().optional()
255
+ ])),
256
+ certificate_ca: z.optional(z.string()),
257
+ version_current: z.optional(z.string()),
258
+ created_at: z.optional(z.string()),
259
+ updated_at: z.optional(z.string()),
260
+ ready: z.optional(z.boolean())
260
261
  });
261
262
  export const zClusterUpdateInput = z.object({
262
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
263
+ name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
263
264
  tier: z.enum([
264
265
  'basic',
265
266
  'pro'
266
267
  ]),
267
- version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
268
+ version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/))
268
269
  });
269
270
  export const zFleetCreateInput = z.object({
270
- limits: z.object({
271
+ limits: z.optional(z.object({
271
272
  cpu: z.number().gte(0)
272
- }).optional(),
273
- gcp: z.object({
274
- enabled: z.boolean().optional().default(true),
273
+ })),
274
+ gcp: z.optional(z.object({
275
+ enabled: z.optional(z.boolean()).default(true),
275
276
  project: z.string()
276
- }).optional(),
277
- hetzner: z.object({
278
- enabled: z.boolean().optional().default(true),
277
+ })),
278
+ hetzner: z.optional(z.object({
279
+ enabled: z.optional(z.boolean()).default(true),
279
280
  apiKey: z.string()
280
- }).optional(),
281
- aws: z.object({
282
- enabled: z.boolean().optional().default(true),
281
+ })),
282
+ aws: z.optional(z.object({
283
+ enabled: z.optional(z.boolean()).default(true),
283
284
  controllerRoleArn: z.string()
284
- }).optional(),
285
+ })),
285
286
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
286
287
  });
287
288
  export const zFleet = z.object({
288
- limits: z.object({
289
+ limits: z.optional(z.object({
289
290
  cpu: z.number().gte(0)
290
- }).optional(),
291
- gcp: z.object({
292
- enabled: z.boolean().optional().default(true),
291
+ })),
292
+ gcp: z.optional(z.object({
293
+ enabled: z.optional(z.boolean()).default(true),
293
294
  project: z.string()
294
- }).optional(),
295
- hetzner: z.object({
296
- enabled: z.boolean().optional().default(true),
295
+ })),
296
+ hetzner: z.optional(z.object({
297
+ enabled: z.optional(z.boolean()).default(true),
297
298
  apiKey: z.string()
298
- }).optional(),
299
- aws: z.object({
300
- enabled: z.boolean().optional().default(true),
299
+ })),
300
+ aws: z.optional(z.object({
301
+ enabled: z.optional(z.boolean()).default(true),
301
302
  controllerRoleArn: z.string()
302
- }).optional(),
303
+ })),
303
304
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
304
305
  });
305
306
  export const zFleetUpdateInput = z.object({
306
- limits: z.object({
307
+ limits: z.optional(z.object({
307
308
  cpu: z.number().gte(0)
308
- }).optional(),
309
- gcp: z.object({
310
- enabled: z.boolean().optional().default(true),
309
+ })),
310
+ gcp: z.optional(z.object({
311
+ enabled: z.optional(z.boolean()).default(true),
311
312
  project: z.string()
312
- }).optional(),
313
- hetzner: z.object({
314
- enabled: z.boolean().optional().default(true),
313
+ })),
314
+ hetzner: z.optional(z.object({
315
+ enabled: z.optional(z.boolean()).default(true),
315
316
  apiKey: z.string()
316
- }).optional(),
317
- aws: z.object({
318
- enabled: z.boolean().optional().default(true),
317
+ })),
318
+ aws: z.optional(z.object({
319
+ enabled: z.optional(z.boolean()).default(true),
319
320
  controllerRoleArn: z.string()
320
- }).optional()
321
+ }))
321
322
  });
322
323
  export const zInvite = z.object({
323
- id: z.string().optional(),
324
- organization_id: z.string().uuid().optional(),
325
- date_created: z.string().datetime(),
326
- email: z.string().email().optional(),
327
- code: z.string().optional()
324
+ id: z.optional(z.string()),
325
+ organization_id: z.optional(z.uuid()),
326
+ date_created: z.iso.datetime(),
327
+ email: z.optional(z.email()),
328
+ code: z.optional(z.string())
328
329
  });
329
330
  export const zInvoice = z.object({
330
- id: z.string().uuid().optional(),
331
- organizationId: z.string().uuid().optional(),
332
- status: z.enum([
331
+ id: z.optional(z.uuid()),
332
+ organizationId: z.optional(z.uuid()),
333
+ status: z.optional(z.enum([
333
334
  'DRAFT',
334
335
  'COMMITTED',
335
336
  'VOID'
336
- ]).optional(),
337
- amount: z.number().optional(),
338
- currency: z.enum([
337
+ ])),
338
+ amount: z.optional(z.number()),
339
+ currency: z.optional(z.enum([
339
340
  'AED',
340
341
  'AFN',
341
342
  'ALL',
@@ -501,26 +502,26 @@ export const zInvoice = z.object({
501
502
  'ZMW',
502
503
  'ZWD',
503
504
  'BTC'
504
- ]).optional(),
505
- creditAdj: z.number().optional(),
506
- refundAdj: z.number().optional(),
507
- invoiceDate: z.string().optional(),
508
- targetDate: z.string().optional(),
509
- invoiceNumber: z.string().optional(),
510
- balance: z.number().optional(),
511
- bundleKeys: z.string().optional(),
512
- credits: z.array(z.object({
513
- id: z.string().uuid().optional(),
514
- linkedInvoiceItemId: z.string().uuid().optional(),
515
- productName: z.string().optional(),
516
- planName: z.string().optional(),
517
- phaseName: z.string().optional(),
518
- usageName: z.string().optional(),
519
- prettyProductName: z.string().optional(),
520
- prettyPlanName: z.string().optional(),
521
- prettyPhaseName: z.string().optional(),
522
- prettyUsageName: z.string().optional(),
523
- itemType: z.enum([
505
+ ])),
506
+ creditAdj: z.optional(z.number()),
507
+ refundAdj: z.optional(z.number()),
508
+ invoiceDate: z.optional(z.string()),
509
+ targetDate: z.optional(z.string()),
510
+ invoiceNumber: z.optional(z.string()),
511
+ balance: z.optional(z.number()),
512
+ bundleKeys: z.optional(z.string()),
513
+ credits: z.optional(z.array(z.object({
514
+ id: z.optional(z.uuid()),
515
+ linkedInvoiceItemId: z.optional(z.uuid()),
516
+ productName: z.optional(z.string()),
517
+ planName: z.optional(z.string()),
518
+ phaseName: z.optional(z.string()),
519
+ usageName: z.optional(z.string()),
520
+ prettyProductName: z.optional(z.string()),
521
+ prettyPlanName: z.optional(z.string()),
522
+ prettyPhaseName: z.optional(z.string()),
523
+ prettyUsageName: z.optional(z.string()),
524
+ itemType: z.optional(z.enum([
524
525
  'EXTERNAL_CHARGE',
525
526
  'FIXED',
526
527
  'RECURRING',
@@ -531,13 +532,13 @@ export const zInvoice = z.object({
531
532
  'USAGE',
532
533
  'TAX',
533
534
  'PARENT_SUMMARY'
534
- ]).optional(),
535
- description: z.string().optional(),
536
- startDate: z.string().optional(),
537
- endDate: z.string().optional(),
538
- amount: z.number().optional(),
539
- rate: z.number().optional(),
540
- currency: z.enum([
535
+ ])),
536
+ description: z.optional(z.string()),
537
+ startDate: z.optional(z.string()),
538
+ endDate: z.optional(z.string()),
539
+ amount: z.optional(z.number()),
540
+ rate: z.optional(z.number()),
541
+ currency: z.optional(z.enum([
541
542
  'AED',
542
543
  'AFN',
543
544
  'ALL',
@@ -703,24 +704,30 @@ export const zInvoice = z.object({
703
704
  'ZMW',
704
705
  'ZWD',
705
706
  'BTC'
706
- ]).optional(),
707
- quantity: z.number().optional(),
708
- itemDetails: z.string().optional(),
709
- catalogEffectiveDate: z.string().optional(),
710
- childItems: z.array(z.unknown()).optional()
711
- })).optional(),
712
- items: z.array(z.object({
713
- id: z.string().uuid().optional(),
714
- linkedInvoiceItemId: z.string().uuid().optional(),
715
- productName: z.string().optional(),
716
- planName: z.string().optional(),
717
- phaseName: z.string().optional(),
718
- usageName: z.string().optional(),
719
- prettyProductName: z.string().optional(),
720
- prettyPlanName: z.string().optional(),
721
- prettyPhaseName: z.string().optional(),
722
- prettyUsageName: z.string().optional(),
723
- itemType: z.enum([
707
+ ])),
708
+ quantity: z.optional(z.number()),
709
+ itemDetails: z.optional(z.string()),
710
+ catalogEffectiveDate: z.optional(z.string()),
711
+ childItems: z.optional(z.array(z.union([
712
+ z.array(z.unknown()),
713
+ z.boolean(),
714
+ z.number(),
715
+ z.object({}),
716
+ z.string()
717
+ ])))
718
+ }))),
719
+ items: z.optional(z.array(z.object({
720
+ id: z.optional(z.uuid()),
721
+ linkedInvoiceItemId: z.optional(z.uuid()),
722
+ productName: z.optional(z.string()),
723
+ planName: z.optional(z.string()),
724
+ phaseName: z.optional(z.string()),
725
+ usageName: z.optional(z.string()),
726
+ prettyProductName: z.optional(z.string()),
727
+ prettyPlanName: z.optional(z.string()),
728
+ prettyPhaseName: z.optional(z.string()),
729
+ prettyUsageName: z.optional(z.string()),
730
+ itemType: z.optional(z.enum([
724
731
  'EXTERNAL_CHARGE',
725
732
  'FIXED',
726
733
  'RECURRING',
@@ -731,13 +738,13 @@ export const zInvoice = z.object({
731
738
  'USAGE',
732
739
  'TAX',
733
740
  'PARENT_SUMMARY'
734
- ]).optional(),
735
- description: z.string().optional(),
736
- startDate: z.string().optional(),
737
- endDate: z.string().optional(),
738
- amount: z.number().optional(),
739
- rate: z.number().optional(),
740
- currency: z.enum([
741
+ ])),
742
+ description: z.optional(z.string()),
743
+ startDate: z.optional(z.string()),
744
+ endDate: z.optional(z.string()),
745
+ amount: z.optional(z.number()),
746
+ rate: z.optional(z.number()),
747
+ currency: z.optional(z.enum([
741
748
  'AED',
742
749
  'AFN',
743
750
  'ALL',
@@ -903,12 +910,18 @@ export const zInvoice = z.object({
903
910
  'ZMW',
904
911
  'ZWD',
905
912
  'BTC'
906
- ]).optional(),
907
- quantity: z.number().optional(),
908
- itemDetails: z.string().optional(),
909
- catalogEffectiveDate: z.string().optional(),
910
- childItems: z.array(z.unknown()).optional()
911
- })).optional()
913
+ ])),
914
+ quantity: z.optional(z.number()),
915
+ itemDetails: z.optional(z.string()),
916
+ catalogEffectiveDate: z.optional(z.string()),
917
+ childItems: z.optional(z.array(z.union([
918
+ z.array(z.unknown()),
919
+ z.boolean(),
920
+ z.number(),
921
+ z.object({}),
922
+ z.string()
923
+ ])))
924
+ })))
912
925
  });
913
926
  export const zMarketplaceListing = z.object({
914
927
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
@@ -926,22 +939,22 @@ export const zMarketplaceListing = z.object({
926
939
  }))
927
940
  });
928
941
  export const zOrganizationCreateInput = z.object({
929
- email: z.string().email(),
942
+ email: z.email(),
930
943
  first_name: z.string(),
931
944
  last_name: z.string(),
932
945
  company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
933
946
  password: z.string().min(8)
934
947
  });
935
948
  export const zOrganization = z.object({
936
- id: z.string().uuid(),
937
- name: z.string().min(2).max(120).optional(),
938
- date_created: z.string().datetime(),
949
+ id: z.uuid(),
950
+ name: z.optional(z.string().min(2).max(120)),
951
+ date_created: z.iso.datetime(),
939
952
  quota: z.object({
940
- basic_clusters_max: z.number().int().gte(0),
941
- basic_clusters_available: z.number().int(),
942
- pro_clusters_max: z.number().int().gte(0),
943
- pro_clusters_available: z.number().int(),
944
- fleets_max: z.number().int().gte(0),
953
+ basic_clusters_max: z.int().gte(0),
954
+ basic_clusters_available: z.int(),
955
+ pro_clusters_max: z.int().gte(0),
956
+ pro_clusters_available: z.int(),
957
+ fleets_max: z.int().gte(0),
945
958
  cluster_tiers: z.array(z.string()).min(0),
946
959
  regions: z.array(z.string()).min(1),
947
960
  versions: z.array(z.object({
@@ -956,14 +969,14 @@ export const zOrganization = z.object({
956
969
  ])
957
970
  });
958
971
  export const zPaymentMethod = z.object({
959
- id: z.string().uuid(),
972
+ id: z.uuid(),
960
973
  setup: z.boolean(),
961
974
  type: z.enum([
962
975
  'card'
963
976
  ]),
964
977
  last4: z.string(),
965
- exp_month: z.number().int().gte(1).lte(12),
966
- exp_year: z.number().int().gte(2024),
978
+ exp_month: z.int().gte(1).lte(12),
979
+ exp_year: z.int().gte(2024),
967
980
  brand: z.enum([
968
981
  'amex',
969
982
  'diners',
@@ -989,20 +1002,20 @@ export const zToken = z.object({
989
1002
  'Administrator',
990
1003
  'User'
991
1004
  ]),
992
- id: z.string().optional(),
993
- secret: z.string().optional(),
994
- date_created: z.string().datetime()
1005
+ id: z.optional(z.string()),
1006
+ secret: z.optional(z.string()),
1007
+ date_created: z.iso.datetime()
995
1008
  });
996
1009
  export const zTokenUpdateInput = z.object({
997
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
998
- role: z.enum([
1010
+ name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
1011
+ role: z.optional(z.enum([
999
1012
  'Administrator',
1000
1013
  'User'
1001
- ]).optional()
1014
+ ]))
1002
1015
  });
1003
1016
  export const zUsage = z.object({
1004
- hour: z.string().optional(),
1005
- cluster_id: z.string().uuid(),
1017
+ hour: z.optional(z.string()),
1018
+ cluster_id: z.uuid(),
1006
1019
  cluster_tier: z.enum([
1007
1020
  'basic',
1008
1021
  'pro',
@@ -1045,22 +1058,22 @@ export const zUsage = z.object({
1045
1058
  ])
1046
1059
  });
1047
1060
  export const zUserCreateInput = z.object({
1048
- email: z.string().email(),
1061
+ email: z.email(),
1049
1062
  first_name: z.string().min(1).max(50),
1050
1063
  last_name: z.string().min(1).max(50),
1051
1064
  code: z.string(),
1052
1065
  password: z.string().min(8),
1053
- status: z.enum([
1066
+ status: z.optional(z.enum([
1054
1067
  'active',
1055
1068
  'inactive'
1056
- ]).optional(),
1057
- role: z.enum([
1069
+ ])),
1070
+ role: z.optional(z.enum([
1058
1071
  'Administrator',
1059
1072
  'User'
1060
- ]).optional()
1073
+ ]))
1061
1074
  });
1062
1075
  export const zUser = z.object({
1063
- email: z.string().email(),
1076
+ email: z.email(),
1064
1077
  first_name: z.string().min(1).max(50),
1065
1078
  last_name: z.string().min(1).max(50),
1066
1079
  role: z.enum([
@@ -1071,352 +1084,496 @@ export const zUser = z.object({
1071
1084
  'active',
1072
1085
  'inactive'
1073
1086
  ]),
1074
- id: z.string().uuid(),
1075
- date_created: z.string().datetime()
1087
+ id: z.uuid(),
1088
+ date_created: z.iso.datetime()
1076
1089
  });
1077
1090
  export const zUserUpdateInput = z.object({
1078
- email: z.string().email().optional(),
1079
- first_name: z.string().min(1).max(50).optional(),
1080
- last_name: z.string().min(1).max(50).optional(),
1081
- role: z.enum([
1091
+ email: z.optional(z.email()),
1092
+ first_name: z.optional(z.string().min(1).max(50)),
1093
+ last_name: z.optional(z.string().min(1).max(50)),
1094
+ role: z.optional(z.enum([
1082
1095
  'Administrator',
1083
1096
  'User'
1084
- ]).optional(),
1085
- status: z.enum([
1097
+ ])),
1098
+ status: z.optional(z.enum([
1086
1099
  'active',
1087
1100
  'inactive'
1088
- ]).optional()
1101
+ ]))
1102
+ });
1103
+ export const zGetUsageData = z.object({
1104
+ body: z.optional(z.never()),
1105
+ path: z.optional(z.never()),
1106
+ query: z.optional(z.never())
1089
1107
  });
1090
1108
  /**
1091
1109
  * An array of usage records.
1092
1110
  */
1093
1111
  export const zGetUsageResponse = z.array(zUsage);
1112
+ export const zGetBalanceData = z.object({
1113
+ body: z.optional(z.never()),
1114
+ path: z.optional(z.never()),
1115
+ query: z.optional(z.never())
1116
+ });
1094
1117
  /**
1095
1118
  * Current balance of the organization in USD as a floating-point number.
1096
1119
  */
1097
1120
  export const zGetBalanceResponse = z.number();
1121
+ export const zGetPaymentMethodData = z.object({
1122
+ body: z.optional(z.never()),
1123
+ path: z.optional(z.never()),
1124
+ query: z.optional(z.never())
1125
+ });
1098
1126
  /**
1099
1127
  * Redacted payment card information.
1100
1128
  */
1101
1129
  export const zGetPaymentMethodResponse = zPaymentMethod;
1130
+ export const zGetPaymentMethodSecretData = z.object({
1131
+ body: z.optional(z.never()),
1132
+ path: z.optional(z.never()),
1133
+ query: z.optional(z.never())
1134
+ });
1102
1135
  /**
1103
1136
  * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
1104
1137
  *
1105
1138
  */
1106
1139
  export const zGetPaymentMethodSecretResponse = z.object({
1107
- id: z.string().optional()
1140
+ id: z.optional(z.string())
1141
+ });
1142
+ export const zListInvoicesData = z.object({
1143
+ body: z.optional(z.never()),
1144
+ path: z.optional(z.never()),
1145
+ query: z.object({
1146
+ start_date: z.string(),
1147
+ end_date: z.string()
1148
+ })
1108
1149
  });
1109
- /**
1110
- * Start date for the usage. Date of oldest data point to retrieve.
1111
- */
1112
- export const zListInvoicesParameterStartDate = z.string();
1113
- /**
1114
- * End date for the usage. Date of newest data point to retrieve.
1115
- */
1116
- export const zListInvoicesParameterEndDate = z.string();
1117
1150
  /**
1118
1151
  * An array of usage records.
1119
1152
  */
1120
1153
  export const zListInvoicesResponse = z.array(zInvoice);
1121
- /**
1122
- * Unique invoice identifier. UUID v4 string in canonical form
1123
- */
1124
- export const zGetInvoiceParameterId = z.string();
1154
+ export const zGetInvoiceData = z.object({
1155
+ body: z.optional(z.never()),
1156
+ path: z.object({
1157
+ id: z.string()
1158
+ }),
1159
+ query: z.optional(z.never())
1160
+ });
1125
1161
  /**
1126
1162
  * Returns a single Invoice HTML representation under `html` property.
1127
1163
  */
1128
1164
  export const zGetInvoiceResponse = z.object({
1129
- html: z.string().optional()
1165
+ html: z.optional(z.string())
1166
+ });
1167
+ export const zGetContactData = z.object({
1168
+ body: z.optional(z.never()),
1169
+ path: z.optional(z.never()),
1170
+ query: z.optional(z.never())
1130
1171
  });
1131
1172
  /**
1132
1173
  * Returns a single object containing organization contact and billing address details.
1133
1174
  */
1134
1175
  export const zGetContactResponse = zBillingContact;
1135
- export const zUpdateContactData = zBillingContact;
1176
+ export const zUpdateContactData = z.object({
1177
+ body: zBillingContact,
1178
+ path: z.optional(z.never()),
1179
+ query: z.optional(z.never())
1180
+ });
1136
1181
  /**
1137
1182
  * Successfully updated. Returns updated organization details.
1138
1183
  */
1139
1184
  export const zUpdateContactResponse = zBillingContact;
1185
+ export const zGetCreditsData = z.object({
1186
+ body: z.optional(z.never()),
1187
+ path: z.optional(z.never()),
1188
+ query: z.optional(z.never())
1189
+ });
1140
1190
  /**
1141
1191
  * An array of the applied promotional credits records.
1142
1192
  */
1143
1193
  export const zGetCreditsResponse = z.array(zBillingCredits);
1144
1194
  export const zRedeemCreditsData = z.object({
1145
- code: z.string().optional()
1195
+ body: z.object({
1196
+ code: z.optional(z.string())
1197
+ }),
1198
+ path: z.optional(z.never()),
1199
+ query: z.optional(z.never())
1200
+ });
1201
+ export const zListChartsData = z.object({
1202
+ body: z.optional(z.never()),
1203
+ path: z.object({
1204
+ cluster_id: z.string()
1205
+ }),
1206
+ query: z.optional(z.never())
1146
1207
  });
1147
- /**
1148
- * Unique identifier of the cluster. UUID v4 string in canonical form
1149
- */
1150
- export const zListChartsParameterClusterId = z.string();
1151
1208
  /**
1152
1209
  * An array of charts
1153
1210
  */
1154
1211
  export const zListChartsResponse = z.array(zChart);
1155
- export const zCreateChartData = zChartCreateInput;
1156
- /**
1157
- * Unique identifier of the cluster. UUID v4 string in canonical form
1158
- */
1159
- export const zCreateChartParameterClusterId = z.string();
1212
+ export const zCreateChartData = z.object({
1213
+ body: zChartCreateInput,
1214
+ path: z.object({
1215
+ cluster_id: z.string()
1216
+ }),
1217
+ query: z.optional(z.never())
1218
+ });
1160
1219
  /**
1161
1220
  * Successfully created. Returns created Chart ID.
1162
1221
  */
1163
1222
  export const zCreateChartResponse = z.string();
1164
- /**
1165
- * Unique identifier of the cluster. UUID v4 string in canonical form
1166
- */
1167
- export const zDeleteChartParameterClusterId = z.string();
1168
- /**
1169
- * Chart deployment name as the unique identifier of the chart.
1170
- */
1171
- export const zDeleteChartParameterChartName = z.string();
1223
+ export const zDeleteChartData = z.object({
1224
+ body: z.optional(z.never()),
1225
+ path: z.object({
1226
+ cluster_id: z.string(),
1227
+ chart_name: z.string()
1228
+ }),
1229
+ query: z.optional(z.never())
1230
+ });
1172
1231
  /**
1173
1232
  * Successfully deleted.
1174
1233
  */
1175
1234
  export const zDeleteChartResponse = z.string();
1176
- /**
1177
- * Unique identifier of the cluster. UUID v4 string in canonical form
1178
- */
1179
- export const zGetChartParameterClusterId = z.string();
1180
- /**
1181
- * Chart deployment name as the unique identifier of the chart.
1182
- */
1183
- export const zGetChartParameterChartName = z.string();
1235
+ export const zGetChartData = z.object({
1236
+ body: z.optional(z.never()),
1237
+ path: z.object({
1238
+ cluster_id: z.string(),
1239
+ chart_name: z.string()
1240
+ }),
1241
+ query: z.optional(z.never())
1242
+ });
1184
1243
  /**
1185
1244
  * Returns a single object containing chart details.
1186
1245
  */
1187
1246
  export const zGetChartResponse = zChart;
1188
- export const zUpdateChartData = zChartUpdateInput;
1189
- /**
1190
- * Unique identifier of the cluster. UUID v4 string in canonical form
1191
- */
1192
- export const zUpdateChartParameterClusterId = z.string();
1193
- /**
1194
- * Chart deployment name as the unique identifier of the chart.
1195
- */
1196
- export const zUpdateChartParameterChartName = z.string();
1247
+ export const zUpdateChartData = z.object({
1248
+ body: zChartUpdateInput,
1249
+ path: z.object({
1250
+ cluster_id: z.string(),
1251
+ chart_name: z.string()
1252
+ }),
1253
+ query: z.optional(z.never())
1254
+ });
1197
1255
  /**
1198
1256
  * Successfully updated.
1199
1257
  */
1200
1258
  export const zUpdateChartResponse = z.string();
1201
- /**
1202
- * Unique identifier of the cluster. UUID v4 string in canonical form
1203
- */
1204
- export const zListFleetsParameterClusterId = z.string();
1259
+ export const zListFleetsData = z.object({
1260
+ body: z.optional(z.never()),
1261
+ path: z.object({
1262
+ cluster_id: z.string()
1263
+ }),
1264
+ query: z.optional(z.never())
1265
+ });
1205
1266
  /**
1206
1267
  * An array of fleets
1207
1268
  */
1208
1269
  export const zListFleetsResponse = z.array(zFleet);
1209
- export const zCreateFleetData = zFleetCreateInput;
1210
- /**
1211
- * Unique identifier of the cluster. UUID v4 string in canonical form
1212
- */
1213
- export const zCreateFleetParameterClusterId = z.string();
1270
+ export const zCreateFleetData = z.object({
1271
+ body: zFleetCreateInput,
1272
+ path: z.object({
1273
+ cluster_id: z.string()
1274
+ }),
1275
+ query: z.optional(z.never())
1276
+ });
1214
1277
  /**
1215
1278
  * Successfully created. Returns created Fleet ID.
1216
1279
  */
1217
1280
  export const zCreateFleetResponse = z.string();
1218
- /**
1219
- * Unique identifier of the cluster. UUID v4 string in canonical form
1220
- */
1221
- export const zDeleteFleetParameterClusterId = z.string();
1222
- /**
1223
- * Unique identifier of the fleet. UUID v4 string in canonical form
1224
- */
1225
- export const zDeleteFleetParameterFleetName = z.string();
1281
+ export const zDeleteFleetData = z.object({
1282
+ body: z.optional(z.never()),
1283
+ path: z.object({
1284
+ cluster_id: z.string(),
1285
+ fleet_name: z.string()
1286
+ }),
1287
+ query: z.optional(z.never())
1288
+ });
1226
1289
  /**
1227
1290
  * Successfully deleted.
1228
1291
  */
1229
1292
  export const zDeleteFleetResponse = z.string();
1230
- /**
1231
- * Unique identifier of the cluster. UUID v4 string in canonical form
1232
- */
1233
- export const zGetFleetParameterClusterId = z.string();
1234
- /**
1235
- * Unique identifier of the fleet. UUID v4 string in canonical form
1236
- */
1237
- export const zGetFleetParameterFleetName = z.string();
1293
+ export const zGetFleetData = z.object({
1294
+ body: z.optional(z.never()),
1295
+ path: z.object({
1296
+ cluster_id: z.string(),
1297
+ fleet_name: z.string()
1298
+ }),
1299
+ query: z.optional(z.never())
1300
+ });
1238
1301
  /**
1239
1302
  * Returns a single object containing fleet details.
1240
1303
  */
1241
1304
  export const zGetFleetResponse = zFleet;
1242
- export const zUpdateFleetData = zFleetUpdateInput;
1243
- /**
1244
- * Unique identifier of the cluster. UUID v4 string in canonical form
1245
- */
1246
- export const zUpdateFleetParameterClusterId = z.string();
1247
- /**
1248
- * Unique identifier of the fleet. UUID v4 string in canonical form
1249
- */
1250
- export const zUpdateFleetParameterFleetName = z.string();
1305
+ export const zUpdateFleetData = z.object({
1306
+ body: zFleetUpdateInput,
1307
+ path: z.object({
1308
+ cluster_id: z.string(),
1309
+ fleet_name: z.string()
1310
+ }),
1311
+ query: z.optional(z.never())
1312
+ });
1251
1313
  /**
1252
1314
  * Successfully updated.
1253
1315
  */
1254
1316
  export const zUpdateFleetResponse = z.string();
1255
- /**
1256
- * Unique identifier of the cluster. UUID v4 string in canonical form
1257
- */
1258
- export const zQueryClusterParameterClusterId = z.string();
1317
+ export const zQueryClusterData = z.object({
1318
+ body: z.optional(z.never()),
1319
+ path: z.object({
1320
+ cluster_id: z.string()
1321
+ }),
1322
+ query: z.optional(z.never())
1323
+ });
1324
+ export const zListClustersData = z.object({
1325
+ body: z.optional(z.never()),
1326
+ path: z.optional(z.never()),
1327
+ query: z.optional(z.never())
1328
+ });
1259
1329
  /**
1260
1330
  * An array of clusters
1261
1331
  */
1262
1332
  export const zListClustersResponse = z.array(zCluster);
1263
- export const zCreateClusterData = zClusterCreateInput;
1333
+ export const zCreateClusterData = z.object({
1334
+ body: zClusterCreateInput,
1335
+ path: z.optional(z.never()),
1336
+ query: z.optional(z.never())
1337
+ });
1264
1338
  /**
1265
1339
  * Successfully created. Returns created Cluster ID.
1266
1340
  */
1267
1341
  export const zCreateClusterResponse = z.string();
1268
- /**
1269
- * Unique identifier of the cluster. UUID v4 string in canonical form
1270
- */
1271
- export const zDeleteClusterParameterClusterId = z.string();
1342
+ export const zDeleteClusterData = z.object({
1343
+ body: z.optional(z.never()),
1344
+ path: z.object({
1345
+ cluster_id: z.string()
1346
+ }),
1347
+ query: z.optional(z.never())
1348
+ });
1272
1349
  /**
1273
1350
  * Successfully deleted.
1274
1351
  */
1275
1352
  export const zDeleteClusterResponse = z.string();
1276
- /**
1277
- * Unique identifier of the cluster. UUID v4 string in canonical form
1278
- */
1279
- export const zGetClusterParameterClusterId = z.string();
1353
+ export const zGetClusterData = z.object({
1354
+ body: z.optional(z.never()),
1355
+ path: z.object({
1356
+ cluster_id: z.string()
1357
+ }),
1358
+ query: z.optional(z.never())
1359
+ });
1280
1360
  /**
1281
1361
  * Returns a single object containing cluster details.
1282
1362
  */
1283
1363
  export const zGetClusterResponse = zCluster;
1284
- export const zUpdateClusterData = zClusterUpdateInput;
1285
- /**
1286
- * Unique identifier of the cluster. UUID v4 string in canonical form
1287
- */
1288
- export const zUpdateClusterParameterClusterId = z.string();
1364
+ export const zUpdateClusterData = z.object({
1365
+ body: zClusterUpdateInput,
1366
+ path: z.object({
1367
+ cluster_id: z.string()
1368
+ }),
1369
+ query: z.optional(z.never())
1370
+ });
1289
1371
  /**
1290
1372
  * Successfully updated. Returns updated cluster details.
1291
1373
  */
1292
1374
  export const zUpdateClusterResponse = zCluster;
1293
- /**
1294
- * Unique identifier of the cluster. UUID v4 string in canonical form
1295
- */
1296
- export const zGetJoinInformationParameterClusterId = z.string();
1375
+ export const zGetJoinInformationData = z.object({
1376
+ body: z.optional(z.never()),
1377
+ path: z.object({
1378
+ cluster_id: z.string()
1379
+ }),
1380
+ query: z.optional(z.never())
1381
+ });
1297
1382
  /**
1298
1383
  * An object of cluster join information
1299
1384
  */
1300
- export const zGetJoinInformationResponse = zCluster;
1385
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1386
+ export const zListInvitesData = z.object({
1387
+ body: z.optional(z.never()),
1388
+ path: z.optional(z.never()),
1389
+ query: z.optional(z.never())
1390
+ });
1301
1391
  /**
1302
1392
  * An array of invites
1303
1393
  */
1304
1394
  export const zListInvitesResponse = z.array(zInvite);
1305
1395
  export const zCreateInviteData = z.object({
1306
- email: z.string().optional()
1396
+ body: z.object({
1397
+ email: z.optional(z.string())
1398
+ }),
1399
+ path: z.optional(z.never()),
1400
+ query: z.optional(z.never())
1307
1401
  });
1308
1402
  /**
1309
1403
  * Successfully created. Returns created invite details.
1310
1404
  */
1311
1405
  export const zCreateInviteResponse = zInvite;
1312
- /**
1313
- * Invitation code
1314
- */
1315
- export const zGetInviteParameterCode = z.string();
1406
+ export const zGetInviteData = z.object({
1407
+ body: z.optional(z.never()),
1408
+ path: z.object({
1409
+ code: z.string()
1410
+ }),
1411
+ query: z.optional(z.never())
1412
+ });
1316
1413
  /**
1317
1414
  * Returns a single object containing invite details.
1318
1415
  */
1319
1416
  export const zGetInviteResponse = zInvite;
1320
- /**
1321
- * User email address
1322
- */
1323
- export const zDeleteInviteParameterEmail = z.string();
1417
+ export const zDeleteInviteData = z.object({
1418
+ body: z.optional(z.never()),
1419
+ path: z.object({
1420
+ email: z.string()
1421
+ }),
1422
+ query: z.optional(z.never())
1423
+ });
1424
+ export const zListMarketplaceChartsData = z.object({
1425
+ body: z.optional(z.never()),
1426
+ path: z.optional(z.never()),
1427
+ query: z.optional(z.never())
1428
+ });
1324
1429
  /**
1325
1430
  * An array of chart listings in the marketplace.
1326
1431
  */
1327
1432
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1328
- /**
1329
- * Unique identifier of the chart listing in the marketplace.
1330
- */
1331
- export const zGetMarketplaceChartParameterListingId = z.string();
1433
+ export const zGetMarketplaceChartData = z.object({
1434
+ body: z.optional(z.never()),
1435
+ path: z.object({
1436
+ listing_id: z.string()
1437
+ }),
1438
+ query: z.optional(z.never())
1439
+ });
1332
1440
  /**
1333
1441
  * Returns an object containing the chart listing details.
1334
1442
  */
1335
1443
  export const zGetMarketplaceChartResponse = zMarketplaceListing;
1444
+ export const zGetOrganizationData = z.object({
1445
+ body: z.optional(z.never()),
1446
+ path: z.optional(z.never()),
1447
+ query: z.optional(z.never())
1448
+ });
1336
1449
  /**
1337
1450
  * Returns a single object containing organization details.
1338
1451
  */
1339
1452
  export const zGetOrganizationResponse = zOrganization;
1340
- export const zCreateOrganizationData = zOrganizationCreateInput;
1453
+ export const zCreateOrganizationData = z.object({
1454
+ body: zOrganizationCreateInput,
1455
+ path: z.optional(z.never()),
1456
+ query: z.optional(z.never())
1457
+ });
1458
+ export const zListTokensData = z.object({
1459
+ body: z.optional(z.never()),
1460
+ path: z.optional(z.never()),
1461
+ query: z.optional(z.never())
1462
+ });
1341
1463
  /**
1342
1464
  * Returns a list of access token details with masked secrets.
1343
1465
  */
1344
1466
  export const zListTokensResponse = z.array(zToken);
1345
- export const zCreateTokenData = zTokenCreateInput;
1467
+ export const zCreateTokenData = z.object({
1468
+ body: zTokenCreateInput,
1469
+ path: z.optional(z.never()),
1470
+ query: z.optional(z.never())
1471
+ });
1346
1472
  /**
1347
1473
  * Successfully created. Returns created token details with unmasked/raw secret.
1348
1474
  */
1349
1475
  export const zCreateTokenResponse = zToken;
1350
- /**
1351
- * Generated unique identifier of the access token.
1352
- */
1353
- export const zDeleteTokenParameterTokenId = z.string();
1354
- /**
1355
- * Generated unique identifier of the access token.
1356
- */
1357
- export const zGetTokenParameterTokenId = z.string();
1476
+ export const zDeleteTokenData = z.object({
1477
+ body: z.optional(z.never()),
1478
+ path: z.object({
1479
+ token_id: z.string()
1480
+ }),
1481
+ query: z.optional(z.never())
1482
+ });
1483
+ export const zGetTokenData = z.object({
1484
+ body: z.optional(z.never()),
1485
+ path: z.object({
1486
+ token_id: z.string()
1487
+ }),
1488
+ query: z.optional(z.never())
1489
+ });
1358
1490
  /**
1359
1491
  * Returns access token details with masked secret.
1360
1492
  */
1361
1493
  export const zGetTokenResponse = zToken;
1362
- export const zUpdateTokenData = zTokenUpdateInput;
1363
- /**
1364
- * Generated unique identifier of the access token.
1365
- */
1366
- export const zUpdateTokenParameterTokenId = z.string();
1494
+ export const zUpdateTokenData = z.object({
1495
+ body: zTokenUpdateInput,
1496
+ path: z.object({
1497
+ token_id: z.string()
1498
+ }),
1499
+ query: z.optional(z.never())
1500
+ });
1367
1501
  /**
1368
1502
  * Successfully updated. Returns updated token details with masked secret.
1369
1503
  */
1370
1504
  export const zUpdateTokenResponse = zToken;
1371
- /**
1372
- * Generated unique identifier of the access token.
1373
- */
1374
- export const zRegenerateTokenParameterTokenId = z.string();
1505
+ export const zRegenerateTokenData = z.object({
1506
+ body: z.optional(z.never()),
1507
+ path: z.object({
1508
+ token_id: z.string()
1509
+ }),
1510
+ query: z.optional(z.never())
1511
+ });
1375
1512
  /**
1376
1513
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1377
1514
  */
1378
1515
  export const zRegenerateTokenResponse = zToken;
1379
- /**
1380
- * User email address.
1381
- */
1382
- export const zListUserOrganizationsParameterEmail = z.string();
1516
+ export const zListUserOrganizationsData = z.object({
1517
+ body: z.optional(z.never()),
1518
+ path: z.object({
1519
+ email: z.string()
1520
+ }),
1521
+ query: z.optional(z.never())
1522
+ });
1383
1523
  /**
1384
1524
  * An array of organizations the user belongs to.
1385
1525
  */
1386
1526
  export const zListUserOrganizationsResponse = z.array(z.object({
1387
- realm: z.string().optional(),
1388
- displayName: z.string().optional()
1527
+ realm: z.optional(z.string()),
1528
+ displayName: z.optional(z.string())
1389
1529
  }));
1530
+ export const zListUsersData = z.object({
1531
+ body: z.optional(z.never()),
1532
+ path: z.optional(z.never()),
1533
+ query: z.optional(z.never())
1534
+ });
1390
1535
  /**
1391
1536
  * An array of users
1392
1537
  */
1393
1538
  export const zListUsersResponse = z.array(zUser);
1394
- export const zCreateUserData = zUserCreateInput;
1539
+ export const zCreateUserData = z.object({
1540
+ body: zUserCreateInput,
1541
+ path: z.optional(z.never()),
1542
+ query: z.optional(z.never())
1543
+ });
1395
1544
  /**
1396
1545
  * Successfully created. Returns created user details.
1397
1546
  */
1398
1547
  export const zCreateUserResponse = zUser;
1399
- /**
1400
- * Unique user identifier. UUID v4 string in canonical form
1401
- */
1402
- export const zDeleteUserParameterUserId = z.string();
1548
+ export const zDeleteUserData = z.object({
1549
+ body: z.optional(z.never()),
1550
+ path: z.object({
1551
+ user_id: z.string()
1552
+ }),
1553
+ query: z.optional(z.never())
1554
+ });
1403
1555
  /**
1404
1556
  * User profile information
1405
1557
  */
1406
1558
  export const zDeleteUserResponse = zUser;
1407
- /**
1408
- * Unique user identifier. UUID v4 string in canonical form
1409
- */
1410
- export const zGetUserParameterUserId = z.string();
1559
+ export const zGetUserData = z.object({
1560
+ body: z.optional(z.never()),
1561
+ path: z.object({
1562
+ user_id: z.string()
1563
+ }),
1564
+ query: z.optional(z.never())
1565
+ });
1411
1566
  /**
1412
1567
  * User profile information
1413
1568
  */
1414
1569
  export const zGetUserResponse = zUser;
1415
- export const zUpdateUserData = zUserUpdateInput;
1416
- /**
1417
- * Unique user identifier. UUID v4 string in canonical form
1418
- */
1419
- export const zUpdateUserParameterUserId = z.string();
1570
+ export const zUpdateUserData = z.object({
1571
+ body: zUserUpdateInput,
1572
+ path: z.object({
1573
+ user_id: z.string()
1574
+ }),
1575
+ query: z.optional(z.never())
1576
+ });
1420
1577
  /**
1421
1578
  * Successfully created. Returns created user details.
1422
1579
  */