@cloudfleet/sdk 0.0.1-9835b73 → 0.0.1-a9ecdcd

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 (68) hide show
  1. package/dist/client/client.gen.d.ts +3 -0
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/client.gen.js +205 -0
  4. package/dist/client/client.gen.js.map +1 -0
  5. package/dist/client/index.d.ts +9 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +7 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.gen.d.ts +125 -0
  10. package/dist/client/types.gen.d.ts.map +1 -0
  11. package/dist/client/types.gen.js +3 -0
  12. package/dist/client/types.gen.js.map +1 -0
  13. package/dist/client/utils.gen.d.ts +34 -0
  14. package/dist/client/utils.gen.d.ts.map +1 -0
  15. package/dist/client/utils.gen.js +231 -0
  16. package/dist/client/utils.gen.js.map +1 -0
  17. package/dist/client.gen.d.ts +4 -4
  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.gen.d.ts +19 -0
  22. package/dist/core/auth.gen.d.ts.map +1 -0
  23. package/dist/core/auth.gen.js +15 -0
  24. package/dist/core/auth.gen.js.map +1 -0
  25. package/dist/core/bodySerializer.gen.d.ts +18 -0
  26. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/core/bodySerializer.gen.js +58 -0
  28. package/dist/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/core/params.gen.d.ts +34 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +89 -0
  32. package/dist/core/params.gen.js.map +1 -0
  33. package/dist/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/core/pathSerializer.gen.js +115 -0
  36. package/dist/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  38. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  39. package/dist/core/queryKeySerializer.gen.js +100 -0
  40. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/core/serverSentEvents.gen.js +136 -0
  44. package/dist/core/serverSentEvents.gen.js.map +1 -0
  45. package/dist/core/types.gen.d.ts +79 -0
  46. package/dist/core/types.gen.d.ts.map +1 -0
  47. package/dist/core/types.gen.js +3 -0
  48. package/dist/core/types.gen.js.map +1 -0
  49. package/dist/core/utils.gen.d.ts +20 -0
  50. package/dist/core/utils.gen.d.ts.map +1 -0
  51. package/dist/core/utils.gen.js +88 -0
  52. package/dist/core/utils.gen.js.map +1 -0
  53. package/dist/schemas.gen.d.ts +12 -7
  54. package/dist/schemas.gen.d.ts.map +1 -1
  55. package/dist/schemas.gen.js +12 -7
  56. package/dist/schemas.gen.js.map +1 -1
  57. package/dist/sdk.gen.d.ts +50 -50
  58. package/dist/sdk.gen.d.ts.map +1 -1
  59. package/dist/sdk.gen.js +48 -48
  60. package/dist/sdk.gen.js.map +1 -1
  61. package/dist/services/kubernetes/api.d.ts +12 -12
  62. package/dist/types.gen.d.ts +12 -8
  63. package/dist/types.gen.d.ts.map +1 -1
  64. package/dist/zod.gen.d.ts +2533 -2442
  65. package/dist/zod.gen.d.ts.map +1 -1
  66. package/dist/zod.gen.js +494 -335
  67. package/dist/zod.gen.js.map +1 -1
  68. 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,24 @@ 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
- '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')
208
+ 'europe-central-1a',
209
+ 'northamerica-central-1a'
210
+ ])),
211
+ 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
212
  });
212
213
  export const zClusterJoinInformation = z.object({
213
214
  certificate_authority: z.string(),
214
- endpoint: z.string().url(),
215
+ endpoint: z.url(),
215
216
  auth_key: z.string(),
216
217
  bootstrap_token: z.string(),
217
218
  versions: z.object({
218
219
  kubernetes: z.string(),
219
220
  tailscale: z.string(),
220
- containerd: z.string()
221
+ containerd: z.string(),
222
+ nvidia_driver: z.string()
221
223
  }),
222
224
  third_party_api_access_config: z.object({
223
225
  metadata_url: z.string(),
@@ -231,13 +233,14 @@ export const zCluster = z.object({
231
233
  'basic',
232
234
  'pro'
233
235
  ]),
234
- region: z.enum([
236
+ region: z.optional(z.enum([
235
237
  'staging',
236
238
  'northamerica-central-1',
237
- '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
+ 'europe-central-1a',
240
+ 'northamerica-central-1a'
241
+ ])),
242
+ 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'),
243
+ id: z.uuid(),
241
244
  status: z.enum([
242
245
  'active',
243
246
  'deleted',
@@ -246,96 +249,96 @@ export const zCluster = z.object({
246
249
  'failed',
247
250
  'updating'
248
251
  ]),
249
- endpoint: z.union([
250
- z.string().url(),
252
+ endpoint: z.optional(z.union([
253
+ z.url(),
251
254
  z.enum([
252
255
  ''
253
256
  ])
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()
257
+ ])),
258
+ certificate_ca: z.optional(z.string()),
259
+ version_current: z.optional(z.string()),
260
+ created_at: z.optional(z.string()),
261
+ updated_at: z.optional(z.string()),
262
+ ready: z.optional(z.boolean())
260
263
  });
261
264
  export const zClusterUpdateInput = z.object({
262
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
265
+ name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
263
266
  tier: z.enum([
264
267
  'basic',
265
268
  'pro'
266
269
  ]),
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()
270
+ 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
271
  });
269
272
  export const zFleetCreateInput = z.object({
270
- limits: z.object({
273
+ limits: z.optional(z.object({
271
274
  cpu: z.number().gte(0)
272
- }).optional(),
273
- gcp: z.object({
274
- enabled: z.boolean().optional().default(true),
275
+ })),
276
+ gcp: z.optional(z.object({
277
+ enabled: z.optional(z.boolean()).default(true),
275
278
  project: z.string()
276
- }).optional(),
277
- hetzner: z.object({
278
- enabled: z.boolean().optional().default(true),
279
+ })),
280
+ hetzner: z.optional(z.object({
281
+ enabled: z.optional(z.boolean()).default(true),
279
282
  apiKey: z.string()
280
- }).optional(),
281
- aws: z.object({
282
- enabled: z.boolean().optional().default(true),
283
+ })),
284
+ aws: z.optional(z.object({
285
+ enabled: z.optional(z.boolean()).default(true),
283
286
  controllerRoleArn: z.string()
284
- }).optional(),
287
+ })),
285
288
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
286
289
  });
287
290
  export const zFleet = z.object({
288
- limits: z.object({
291
+ limits: z.optional(z.object({
289
292
  cpu: z.number().gte(0)
290
- }).optional(),
291
- gcp: z.object({
292
- enabled: z.boolean().optional().default(true),
293
+ })),
294
+ gcp: z.optional(z.object({
295
+ enabled: z.optional(z.boolean()).default(true),
293
296
  project: z.string()
294
- }).optional(),
295
- hetzner: z.object({
296
- enabled: z.boolean().optional().default(true),
297
+ })),
298
+ hetzner: z.optional(z.object({
299
+ enabled: z.optional(z.boolean()).default(true),
297
300
  apiKey: z.string()
298
- }).optional(),
299
- aws: z.object({
300
- enabled: z.boolean().optional().default(true),
301
+ })),
302
+ aws: z.optional(z.object({
303
+ enabled: z.optional(z.boolean()).default(true),
301
304
  controllerRoleArn: z.string()
302
- }).optional(),
305
+ })),
303
306
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
304
307
  });
305
308
  export const zFleetUpdateInput = z.object({
306
- limits: z.object({
309
+ limits: z.optional(z.object({
307
310
  cpu: z.number().gte(0)
308
- }).optional(),
309
- gcp: z.object({
310
- enabled: z.boolean().optional().default(true),
311
+ })),
312
+ gcp: z.optional(z.object({
313
+ enabled: z.optional(z.boolean()).default(true),
311
314
  project: z.string()
312
- }).optional(),
313
- hetzner: z.object({
314
- enabled: z.boolean().optional().default(true),
315
+ })),
316
+ hetzner: z.optional(z.object({
317
+ enabled: z.optional(z.boolean()).default(true),
315
318
  apiKey: z.string()
316
- }).optional(),
317
- aws: z.object({
318
- enabled: z.boolean().optional().default(true),
319
+ })),
320
+ aws: z.optional(z.object({
321
+ enabled: z.optional(z.boolean()).default(true),
319
322
  controllerRoleArn: z.string()
320
- }).optional()
323
+ }))
321
324
  });
322
325
  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()
326
+ id: z.optional(z.string()),
327
+ organization_id: z.optional(z.uuid()),
328
+ date_created: z.iso.datetime(),
329
+ email: z.optional(z.email()),
330
+ code: z.optional(z.string())
328
331
  });
329
332
  export const zInvoice = z.object({
330
- id: z.string().uuid().optional(),
331
- organizationId: z.string().uuid().optional(),
332
- status: z.enum([
333
+ id: z.optional(z.uuid()),
334
+ organizationId: z.optional(z.uuid()),
335
+ status: z.optional(z.enum([
333
336
  'DRAFT',
334
337
  'COMMITTED',
335
338
  'VOID'
336
- ]).optional(),
337
- amount: z.number().optional(),
338
- currency: z.enum([
339
+ ])),
340
+ amount: z.optional(z.number()),
341
+ currency: z.optional(z.enum([
339
342
  'AED',
340
343
  'AFN',
341
344
  'ALL',
@@ -501,26 +504,26 @@ export const zInvoice = z.object({
501
504
  'ZMW',
502
505
  'ZWD',
503
506
  '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([
507
+ ])),
508
+ creditAdj: z.optional(z.number()),
509
+ refundAdj: z.optional(z.number()),
510
+ invoiceDate: z.optional(z.string()),
511
+ targetDate: z.optional(z.string()),
512
+ invoiceNumber: z.optional(z.string()),
513
+ balance: z.optional(z.number()),
514
+ bundleKeys: z.optional(z.string()),
515
+ credits: z.optional(z.array(z.object({
516
+ id: z.optional(z.uuid()),
517
+ linkedInvoiceItemId: z.optional(z.uuid()),
518
+ productName: z.optional(z.string()),
519
+ planName: z.optional(z.string()),
520
+ phaseName: z.optional(z.string()),
521
+ usageName: z.optional(z.string()),
522
+ prettyProductName: z.optional(z.string()),
523
+ prettyPlanName: z.optional(z.string()),
524
+ prettyPhaseName: z.optional(z.string()),
525
+ prettyUsageName: z.optional(z.string()),
526
+ itemType: z.optional(z.enum([
524
527
  'EXTERNAL_CHARGE',
525
528
  'FIXED',
526
529
  'RECURRING',
@@ -531,13 +534,13 @@ export const zInvoice = z.object({
531
534
  'USAGE',
532
535
  'TAX',
533
536
  '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([
537
+ ])),
538
+ description: z.optional(z.string()),
539
+ startDate: z.optional(z.string()),
540
+ endDate: z.optional(z.string()),
541
+ amount: z.optional(z.number()),
542
+ rate: z.optional(z.number()),
543
+ currency: z.optional(z.enum([
541
544
  'AED',
542
545
  'AFN',
543
546
  'ALL',
@@ -703,24 +706,30 @@ export const zInvoice = z.object({
703
706
  'ZMW',
704
707
  'ZWD',
705
708
  '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([
709
+ ])),
710
+ quantity: z.optional(z.number()),
711
+ itemDetails: z.optional(z.string()),
712
+ catalogEffectiveDate: z.optional(z.string()),
713
+ childItems: z.optional(z.array(z.union([
714
+ z.array(z.unknown()),
715
+ z.boolean(),
716
+ z.number(),
717
+ z.record(z.string(), z.unknown()),
718
+ z.string()
719
+ ])))
720
+ }))),
721
+ items: z.optional(z.array(z.object({
722
+ id: z.optional(z.uuid()),
723
+ linkedInvoiceItemId: z.optional(z.uuid()),
724
+ productName: z.optional(z.string()),
725
+ planName: z.optional(z.string()),
726
+ phaseName: z.optional(z.string()),
727
+ usageName: z.optional(z.string()),
728
+ prettyProductName: z.optional(z.string()),
729
+ prettyPlanName: z.optional(z.string()),
730
+ prettyPhaseName: z.optional(z.string()),
731
+ prettyUsageName: z.optional(z.string()),
732
+ itemType: z.optional(z.enum([
724
733
  'EXTERNAL_CHARGE',
725
734
  'FIXED',
726
735
  'RECURRING',
@@ -731,13 +740,13 @@ export const zInvoice = z.object({
731
740
  'USAGE',
732
741
  'TAX',
733
742
  '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([
743
+ ])),
744
+ description: z.optional(z.string()),
745
+ startDate: z.optional(z.string()),
746
+ endDate: z.optional(z.string()),
747
+ amount: z.optional(z.number()),
748
+ rate: z.optional(z.number()),
749
+ currency: z.optional(z.enum([
741
750
  'AED',
742
751
  'AFN',
743
752
  'ALL',
@@ -903,12 +912,18 @@ export const zInvoice = z.object({
903
912
  'ZMW',
904
913
  'ZWD',
905
914
  '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()
915
+ ])),
916
+ quantity: z.optional(z.number()),
917
+ itemDetails: z.optional(z.string()),
918
+ catalogEffectiveDate: z.optional(z.string()),
919
+ childItems: z.optional(z.array(z.union([
920
+ z.array(z.unknown()),
921
+ z.boolean(),
922
+ z.number(),
923
+ z.record(z.string(), z.unknown()),
924
+ z.string()
925
+ ])))
926
+ })))
912
927
  });
913
928
  export const zMarketplaceListing = z.object({
914
929
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
@@ -926,22 +941,22 @@ export const zMarketplaceListing = z.object({
926
941
  }))
927
942
  });
928
943
  export const zOrganizationCreateInput = z.object({
929
- email: z.string().email(),
944
+ email: z.email(),
930
945
  first_name: z.string(),
931
946
  last_name: z.string(),
932
947
  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
948
  password: z.string().min(8)
934
949
  });
935
950
  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(),
951
+ id: z.uuid(),
952
+ name: z.optional(z.string().min(2).max(120)),
953
+ date_created: z.iso.datetime(),
939
954
  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),
955
+ basic_clusters_max: z.int().gte(0),
956
+ basic_clusters_available: z.int(),
957
+ pro_clusters_max: z.int().gte(0),
958
+ pro_clusters_available: z.int(),
959
+ fleets_max: z.int().gte(0),
945
960
  cluster_tiers: z.array(z.string()).min(0),
946
961
  regions: z.array(z.string()).min(1),
947
962
  versions: z.array(z.object({
@@ -956,14 +971,14 @@ export const zOrganization = z.object({
956
971
  ])
957
972
  });
958
973
  export const zPaymentMethod = z.object({
959
- id: z.string().uuid(),
974
+ id: z.uuid(),
960
975
  setup: z.boolean(),
961
976
  type: z.enum([
962
977
  'card'
963
978
  ]),
964
979
  last4: z.string(),
965
- exp_month: z.number().int().gte(1).lte(12),
966
- exp_year: z.number().int().gte(2024),
980
+ exp_month: z.int().gte(1).lte(12),
981
+ exp_year: z.int().gte(2024),
967
982
  brand: z.enum([
968
983
  'amex',
969
984
  'diners',
@@ -989,20 +1004,20 @@ export const zToken = z.object({
989
1004
  'Administrator',
990
1005
  'User'
991
1006
  ]),
992
- id: z.string().optional(),
993
- secret: z.string().optional(),
994
- date_created: z.string().datetime()
1007
+ id: z.optional(z.string()),
1008
+ secret: z.optional(z.string()),
1009
+ date_created: z.iso.datetime()
995
1010
  });
996
1011
  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([
1012
+ name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
1013
+ role: z.optional(z.enum([
999
1014
  'Administrator',
1000
1015
  'User'
1001
- ]).optional()
1016
+ ]))
1002
1017
  });
1003
1018
  export const zUsage = z.object({
1004
- hour: z.string().optional(),
1005
- cluster_id: z.string().uuid(),
1019
+ hour: z.optional(z.string()),
1020
+ cluster_id: z.uuid(),
1006
1021
  cluster_tier: z.enum([
1007
1022
  'basic',
1008
1023
  'pro',
@@ -1045,22 +1060,22 @@ export const zUsage = z.object({
1045
1060
  ])
1046
1061
  });
1047
1062
  export const zUserCreateInput = z.object({
1048
- email: z.string().email(),
1063
+ email: z.email(),
1049
1064
  first_name: z.string().min(1).max(50),
1050
1065
  last_name: z.string().min(1).max(50),
1051
1066
  code: z.string(),
1052
1067
  password: z.string().min(8),
1053
- status: z.enum([
1068
+ status: z.optional(z.enum([
1054
1069
  'active',
1055
1070
  'inactive'
1056
- ]).optional(),
1057
- role: z.enum([
1071
+ ])),
1072
+ role: z.optional(z.enum([
1058
1073
  'Administrator',
1059
1074
  'User'
1060
- ]).optional()
1075
+ ]))
1061
1076
  });
1062
1077
  export const zUser = z.object({
1063
- email: z.string().email(),
1078
+ email: z.email(),
1064
1079
  first_name: z.string().min(1).max(50),
1065
1080
  last_name: z.string().min(1).max(50),
1066
1081
  role: z.enum([
@@ -1071,352 +1086,496 @@ export const zUser = z.object({
1071
1086
  'active',
1072
1087
  'inactive'
1073
1088
  ]),
1074
- id: z.string().uuid(),
1075
- date_created: z.string().datetime()
1089
+ id: z.uuid(),
1090
+ date_created: z.iso.datetime()
1076
1091
  });
1077
1092
  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([
1093
+ email: z.optional(z.email()),
1094
+ first_name: z.optional(z.string().min(1).max(50)),
1095
+ last_name: z.optional(z.string().min(1).max(50)),
1096
+ role: z.optional(z.enum([
1082
1097
  'Administrator',
1083
1098
  'User'
1084
- ]).optional(),
1085
- status: z.enum([
1099
+ ])),
1100
+ status: z.optional(z.enum([
1086
1101
  'active',
1087
1102
  'inactive'
1088
- ]).optional()
1103
+ ]))
1104
+ });
1105
+ export const zGetUsageData = z.object({
1106
+ body: z.optional(z.never()),
1107
+ path: z.optional(z.never()),
1108
+ query: z.optional(z.never())
1089
1109
  });
1090
1110
  /**
1091
1111
  * An array of usage records.
1092
1112
  */
1093
1113
  export const zGetUsageResponse = z.array(zUsage);
1114
+ export const zGetBalanceData = z.object({
1115
+ body: z.optional(z.never()),
1116
+ path: z.optional(z.never()),
1117
+ query: z.optional(z.never())
1118
+ });
1094
1119
  /**
1095
1120
  * Current balance of the organization in USD as a floating-point number.
1096
1121
  */
1097
1122
  export const zGetBalanceResponse = z.number();
1123
+ export const zGetPaymentMethodData = z.object({
1124
+ body: z.optional(z.never()),
1125
+ path: z.optional(z.never()),
1126
+ query: z.optional(z.never())
1127
+ });
1098
1128
  /**
1099
1129
  * Redacted payment card information.
1100
1130
  */
1101
1131
  export const zGetPaymentMethodResponse = zPaymentMethod;
1132
+ export const zGetPaymentMethodSecretData = z.object({
1133
+ body: z.optional(z.never()),
1134
+ path: z.optional(z.never()),
1135
+ query: z.optional(z.never())
1136
+ });
1102
1137
  /**
1103
1138
  * 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
1139
  *
1105
1140
  */
1106
1141
  export const zGetPaymentMethodSecretResponse = z.object({
1107
- id: z.string().optional()
1142
+ id: z.optional(z.string())
1143
+ });
1144
+ export const zListInvoicesData = z.object({
1145
+ body: z.optional(z.never()),
1146
+ path: z.optional(z.never()),
1147
+ query: z.object({
1148
+ start_date: z.string(),
1149
+ end_date: z.string()
1150
+ })
1108
1151
  });
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
1152
  /**
1118
1153
  * An array of usage records.
1119
1154
  */
1120
1155
  export const zListInvoicesResponse = z.array(zInvoice);
1121
- /**
1122
- * Unique invoice identifier. UUID v4 string in canonical form
1123
- */
1124
- export const zGetInvoiceParameterId = z.string();
1156
+ export const zGetInvoiceData = z.object({
1157
+ body: z.optional(z.never()),
1158
+ path: z.object({
1159
+ id: z.string()
1160
+ }),
1161
+ query: z.optional(z.never())
1162
+ });
1125
1163
  /**
1126
1164
  * Returns a single Invoice HTML representation under `html` property.
1127
1165
  */
1128
1166
  export const zGetInvoiceResponse = z.object({
1129
- html: z.string().optional()
1167
+ html: z.optional(z.string())
1168
+ });
1169
+ export const zGetContactData = z.object({
1170
+ body: z.optional(z.never()),
1171
+ path: z.optional(z.never()),
1172
+ query: z.optional(z.never())
1130
1173
  });
1131
1174
  /**
1132
1175
  * Returns a single object containing organization contact and billing address details.
1133
1176
  */
1134
1177
  export const zGetContactResponse = zBillingContact;
1135
- export const zUpdateContactData = zBillingContact;
1178
+ export const zUpdateContactData = z.object({
1179
+ body: zBillingContact,
1180
+ path: z.optional(z.never()),
1181
+ query: z.optional(z.never())
1182
+ });
1136
1183
  /**
1137
1184
  * Successfully updated. Returns updated organization details.
1138
1185
  */
1139
1186
  export const zUpdateContactResponse = zBillingContact;
1187
+ export const zGetCreditsData = z.object({
1188
+ body: z.optional(z.never()),
1189
+ path: z.optional(z.never()),
1190
+ query: z.optional(z.never())
1191
+ });
1140
1192
  /**
1141
1193
  * An array of the applied promotional credits records.
1142
1194
  */
1143
1195
  export const zGetCreditsResponse = z.array(zBillingCredits);
1144
1196
  export const zRedeemCreditsData = z.object({
1145
- code: z.string().optional()
1197
+ body: z.object({
1198
+ code: z.optional(z.string())
1199
+ }),
1200
+ path: z.optional(z.never()),
1201
+ query: z.optional(z.never())
1202
+ });
1203
+ export const zListChartsData = z.object({
1204
+ body: z.optional(z.never()),
1205
+ path: z.object({
1206
+ cluster_id: z.string()
1207
+ }),
1208
+ query: z.optional(z.never())
1146
1209
  });
1147
- /**
1148
- * Unique identifier of the cluster. UUID v4 string in canonical form
1149
- */
1150
- export const zListChartsParameterClusterId = z.string();
1151
1210
  /**
1152
1211
  * An array of charts
1153
1212
  */
1154
1213
  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();
1214
+ export const zCreateChartData = z.object({
1215
+ body: zChartCreateInput,
1216
+ path: z.object({
1217
+ cluster_id: z.string()
1218
+ }),
1219
+ query: z.optional(z.never())
1220
+ });
1160
1221
  /**
1161
1222
  * Successfully created. Returns created Chart ID.
1162
1223
  */
1163
1224
  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();
1225
+ export const zDeleteChartData = z.object({
1226
+ body: z.optional(z.never()),
1227
+ path: z.object({
1228
+ cluster_id: z.string(),
1229
+ chart_name: z.string()
1230
+ }),
1231
+ query: z.optional(z.never())
1232
+ });
1172
1233
  /**
1173
1234
  * Successfully deleted.
1174
1235
  */
1175
1236
  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();
1237
+ export const zGetChartData = z.object({
1238
+ body: z.optional(z.never()),
1239
+ path: z.object({
1240
+ cluster_id: z.string(),
1241
+ chart_name: z.string()
1242
+ }),
1243
+ query: z.optional(z.never())
1244
+ });
1184
1245
  /**
1185
1246
  * Returns a single object containing chart details.
1186
1247
  */
1187
1248
  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();
1249
+ export const zUpdateChartData = z.object({
1250
+ body: zChartUpdateInput,
1251
+ path: z.object({
1252
+ cluster_id: z.string(),
1253
+ chart_name: z.string()
1254
+ }),
1255
+ query: z.optional(z.never())
1256
+ });
1197
1257
  /**
1198
1258
  * Successfully updated.
1199
1259
  */
1200
1260
  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();
1261
+ export const zListFleetsData = z.object({
1262
+ body: z.optional(z.never()),
1263
+ path: z.object({
1264
+ cluster_id: z.string()
1265
+ }),
1266
+ query: z.optional(z.never())
1267
+ });
1205
1268
  /**
1206
1269
  * An array of fleets
1207
1270
  */
1208
1271
  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();
1272
+ export const zCreateFleetData = z.object({
1273
+ body: zFleetCreateInput,
1274
+ path: z.object({
1275
+ cluster_id: z.string()
1276
+ }),
1277
+ query: z.optional(z.never())
1278
+ });
1214
1279
  /**
1215
1280
  * Successfully created. Returns created Fleet ID.
1216
1281
  */
1217
1282
  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();
1283
+ export const zDeleteFleetData = z.object({
1284
+ body: z.optional(z.never()),
1285
+ path: z.object({
1286
+ cluster_id: z.string(),
1287
+ fleet_name: z.string()
1288
+ }),
1289
+ query: z.optional(z.never())
1290
+ });
1226
1291
  /**
1227
1292
  * Successfully deleted.
1228
1293
  */
1229
1294
  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();
1295
+ export const zGetFleetData = z.object({
1296
+ body: z.optional(z.never()),
1297
+ path: z.object({
1298
+ cluster_id: z.string(),
1299
+ fleet_name: z.string()
1300
+ }),
1301
+ query: z.optional(z.never())
1302
+ });
1238
1303
  /**
1239
1304
  * Returns a single object containing fleet details.
1240
1305
  */
1241
1306
  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();
1307
+ export const zUpdateFleetData = z.object({
1308
+ body: zFleetUpdateInput,
1309
+ path: z.object({
1310
+ cluster_id: z.string(),
1311
+ fleet_name: z.string()
1312
+ }),
1313
+ query: z.optional(z.never())
1314
+ });
1251
1315
  /**
1252
1316
  * Successfully updated.
1253
1317
  */
1254
1318
  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();
1319
+ export const zQueryClusterData = z.object({
1320
+ body: z.optional(z.never()),
1321
+ path: z.object({
1322
+ cluster_id: z.string()
1323
+ }),
1324
+ query: z.optional(z.never())
1325
+ });
1326
+ export const zListClustersData = z.object({
1327
+ body: z.optional(z.never()),
1328
+ path: z.optional(z.never()),
1329
+ query: z.optional(z.never())
1330
+ });
1259
1331
  /**
1260
1332
  * An array of clusters
1261
1333
  */
1262
1334
  export const zListClustersResponse = z.array(zCluster);
1263
- export const zCreateClusterData = zClusterCreateInput;
1335
+ export const zCreateClusterData = z.object({
1336
+ body: zClusterCreateInput,
1337
+ path: z.optional(z.never()),
1338
+ query: z.optional(z.never())
1339
+ });
1264
1340
  /**
1265
1341
  * Successfully created. Returns created Cluster ID.
1266
1342
  */
1267
1343
  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();
1344
+ export const zDeleteClusterData = z.object({
1345
+ body: z.optional(z.never()),
1346
+ path: z.object({
1347
+ cluster_id: z.string()
1348
+ }),
1349
+ query: z.optional(z.never())
1350
+ });
1272
1351
  /**
1273
1352
  * Successfully deleted.
1274
1353
  */
1275
1354
  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();
1355
+ export const zGetClusterData = z.object({
1356
+ body: z.optional(z.never()),
1357
+ path: z.object({
1358
+ cluster_id: z.string()
1359
+ }),
1360
+ query: z.optional(z.never())
1361
+ });
1280
1362
  /**
1281
1363
  * Returns a single object containing cluster details.
1282
1364
  */
1283
1365
  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();
1366
+ export const zUpdateClusterData = z.object({
1367
+ body: zClusterUpdateInput,
1368
+ path: z.object({
1369
+ cluster_id: z.string()
1370
+ }),
1371
+ query: z.optional(z.never())
1372
+ });
1289
1373
  /**
1290
1374
  * Successfully updated. Returns updated cluster details.
1291
1375
  */
1292
1376
  export const zUpdateClusterResponse = zCluster;
1293
- /**
1294
- * Unique identifier of the cluster. UUID v4 string in canonical form
1295
- */
1296
- export const zGetJoinInformationParameterClusterId = z.string();
1377
+ export const zGetJoinInformationData = z.object({
1378
+ body: z.optional(z.never()),
1379
+ path: z.object({
1380
+ cluster_id: z.string()
1381
+ }),
1382
+ query: z.optional(z.never())
1383
+ });
1297
1384
  /**
1298
1385
  * An object of cluster join information
1299
1386
  */
1300
- export const zGetJoinInformationResponse = zCluster;
1387
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1388
+ export const zListInvitesData = z.object({
1389
+ body: z.optional(z.never()),
1390
+ path: z.optional(z.never()),
1391
+ query: z.optional(z.never())
1392
+ });
1301
1393
  /**
1302
1394
  * An array of invites
1303
1395
  */
1304
1396
  export const zListInvitesResponse = z.array(zInvite);
1305
1397
  export const zCreateInviteData = z.object({
1306
- email: z.string().optional()
1398
+ body: z.object({
1399
+ email: z.optional(z.string())
1400
+ }),
1401
+ path: z.optional(z.never()),
1402
+ query: z.optional(z.never())
1307
1403
  });
1308
1404
  /**
1309
1405
  * Successfully created. Returns created invite details.
1310
1406
  */
1311
1407
  export const zCreateInviteResponse = zInvite;
1312
- /**
1313
- * Invitation code
1314
- */
1315
- export const zGetInviteParameterCode = z.string();
1408
+ export const zGetInviteData = z.object({
1409
+ body: z.optional(z.never()),
1410
+ path: z.object({
1411
+ code: z.string()
1412
+ }),
1413
+ query: z.optional(z.never())
1414
+ });
1316
1415
  /**
1317
1416
  * Returns a single object containing invite details.
1318
1417
  */
1319
1418
  export const zGetInviteResponse = zInvite;
1320
- /**
1321
- * User email address
1322
- */
1323
- export const zDeleteInviteParameterEmail = z.string();
1419
+ export const zDeleteInviteData = z.object({
1420
+ body: z.optional(z.never()),
1421
+ path: z.object({
1422
+ email: z.string()
1423
+ }),
1424
+ query: z.optional(z.never())
1425
+ });
1426
+ export const zListMarketplaceChartsData = z.object({
1427
+ body: z.optional(z.never()),
1428
+ path: z.optional(z.never()),
1429
+ query: z.optional(z.never())
1430
+ });
1324
1431
  /**
1325
1432
  * An array of chart listings in the marketplace.
1326
1433
  */
1327
1434
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1328
- /**
1329
- * Unique identifier of the chart listing in the marketplace.
1330
- */
1331
- export const zGetMarketplaceChartParameterListingId = z.string();
1435
+ export const zGetMarketplaceChartData = z.object({
1436
+ body: z.optional(z.never()),
1437
+ path: z.object({
1438
+ listing_id: z.string()
1439
+ }),
1440
+ query: z.optional(z.never())
1441
+ });
1332
1442
  /**
1333
1443
  * Returns an object containing the chart listing details.
1334
1444
  */
1335
1445
  export const zGetMarketplaceChartResponse = zMarketplaceListing;
1446
+ export const zGetOrganizationData = z.object({
1447
+ body: z.optional(z.never()),
1448
+ path: z.optional(z.never()),
1449
+ query: z.optional(z.never())
1450
+ });
1336
1451
  /**
1337
1452
  * Returns a single object containing organization details.
1338
1453
  */
1339
1454
  export const zGetOrganizationResponse = zOrganization;
1340
- export const zCreateOrganizationData = zOrganizationCreateInput;
1455
+ export const zCreateOrganizationData = z.object({
1456
+ body: zOrganizationCreateInput,
1457
+ path: z.optional(z.never()),
1458
+ query: z.optional(z.never())
1459
+ });
1460
+ export const zListTokensData = z.object({
1461
+ body: z.optional(z.never()),
1462
+ path: z.optional(z.never()),
1463
+ query: z.optional(z.never())
1464
+ });
1341
1465
  /**
1342
1466
  * Returns a list of access token details with masked secrets.
1343
1467
  */
1344
1468
  export const zListTokensResponse = z.array(zToken);
1345
- export const zCreateTokenData = zTokenCreateInput;
1469
+ export const zCreateTokenData = z.object({
1470
+ body: zTokenCreateInput,
1471
+ path: z.optional(z.never()),
1472
+ query: z.optional(z.never())
1473
+ });
1346
1474
  /**
1347
1475
  * Successfully created. Returns created token details with unmasked/raw secret.
1348
1476
  */
1349
1477
  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();
1478
+ export const zDeleteTokenData = z.object({
1479
+ body: z.optional(z.never()),
1480
+ path: z.object({
1481
+ token_id: z.string()
1482
+ }),
1483
+ query: z.optional(z.never())
1484
+ });
1485
+ export const zGetTokenData = z.object({
1486
+ body: z.optional(z.never()),
1487
+ path: z.object({
1488
+ token_id: z.string()
1489
+ }),
1490
+ query: z.optional(z.never())
1491
+ });
1358
1492
  /**
1359
1493
  * Returns access token details with masked secret.
1360
1494
  */
1361
1495
  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();
1496
+ export const zUpdateTokenData = z.object({
1497
+ body: zTokenUpdateInput,
1498
+ path: z.object({
1499
+ token_id: z.string()
1500
+ }),
1501
+ query: z.optional(z.never())
1502
+ });
1367
1503
  /**
1368
1504
  * Successfully updated. Returns updated token details with masked secret.
1369
1505
  */
1370
1506
  export const zUpdateTokenResponse = zToken;
1371
- /**
1372
- * Generated unique identifier of the access token.
1373
- */
1374
- export const zRegenerateTokenParameterTokenId = z.string();
1507
+ export const zRegenerateTokenData = z.object({
1508
+ body: z.optional(z.never()),
1509
+ path: z.object({
1510
+ token_id: z.string()
1511
+ }),
1512
+ query: z.optional(z.never())
1513
+ });
1375
1514
  /**
1376
1515
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1377
1516
  */
1378
1517
  export const zRegenerateTokenResponse = zToken;
1379
- /**
1380
- * User email address.
1381
- */
1382
- export const zListUserOrganizationsParameterEmail = z.string();
1518
+ export const zListUserOrganizationsData = z.object({
1519
+ body: z.optional(z.never()),
1520
+ path: z.object({
1521
+ email: z.string()
1522
+ }),
1523
+ query: z.optional(z.never())
1524
+ });
1383
1525
  /**
1384
1526
  * An array of organizations the user belongs to.
1385
1527
  */
1386
1528
  export const zListUserOrganizationsResponse = z.array(z.object({
1387
- realm: z.string().optional(),
1388
- displayName: z.string().optional()
1529
+ realm: z.optional(z.string()),
1530
+ displayName: z.optional(z.string())
1389
1531
  }));
1532
+ export const zListUsersData = z.object({
1533
+ body: z.optional(z.never()),
1534
+ path: z.optional(z.never()),
1535
+ query: z.optional(z.never())
1536
+ });
1390
1537
  /**
1391
1538
  * An array of users
1392
1539
  */
1393
1540
  export const zListUsersResponse = z.array(zUser);
1394
- export const zCreateUserData = zUserCreateInput;
1541
+ export const zCreateUserData = z.object({
1542
+ body: zUserCreateInput,
1543
+ path: z.optional(z.never()),
1544
+ query: z.optional(z.never())
1545
+ });
1395
1546
  /**
1396
1547
  * Successfully created. Returns created user details.
1397
1548
  */
1398
1549
  export const zCreateUserResponse = zUser;
1399
- /**
1400
- * Unique user identifier. UUID v4 string in canonical form
1401
- */
1402
- export const zDeleteUserParameterUserId = z.string();
1550
+ export const zDeleteUserData = z.object({
1551
+ body: z.optional(z.never()),
1552
+ path: z.object({
1553
+ user_id: z.string()
1554
+ }),
1555
+ query: z.optional(z.never())
1556
+ });
1403
1557
  /**
1404
1558
  * User profile information
1405
1559
  */
1406
1560
  export const zDeleteUserResponse = zUser;
1407
- /**
1408
- * Unique user identifier. UUID v4 string in canonical form
1409
- */
1410
- export const zGetUserParameterUserId = z.string();
1561
+ export const zGetUserData = z.object({
1562
+ body: z.optional(z.never()),
1563
+ path: z.object({
1564
+ user_id: z.string()
1565
+ }),
1566
+ query: z.optional(z.never())
1567
+ });
1411
1568
  /**
1412
1569
  * User profile information
1413
1570
  */
1414
1571
  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();
1572
+ export const zUpdateUserData = z.object({
1573
+ body: zUserUpdateInput,
1574
+ path: z.object({
1575
+ user_id: z.string()
1576
+ }),
1577
+ query: z.optional(z.never())
1578
+ });
1420
1579
  /**
1421
1580
  * Successfully created. Returns created user details.
1422
1581
  */