@cloudfleet/sdk 0.0.1-66590b1 → 0.0.1-674f1a2

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