@cloudfleet/sdk 0.0.1-90edb44 → 0.0.1-95c9d9a

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 (64) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1125 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1129 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts.map +1 -1
  6. package/dist/client/client.gen.js +167 -96
  7. package/dist/client/client.gen.js.map +1 -1
  8. package/dist/client/index.d.ts +2 -1
  9. package/dist/client/index.d.ts.map +1 -1
  10. package/dist/client/index.js +1 -0
  11. package/dist/client/index.js.map +1 -1
  12. package/dist/client/types.gen.d.ts +16 -18
  13. package/dist/client/types.gen.d.ts.map +1 -1
  14. package/dist/client/utils.gen.d.ts +13 -21
  15. package/dist/client/utils.gen.d.ts.map +1 -1
  16. package/dist/client/utils.gen.js +58 -115
  17. package/dist/client/utils.gen.js.map +1 -1
  18. package/dist/client.gen.d.ts +3 -3
  19. package/dist/client.gen.d.ts.map +1 -1
  20. package/dist/client.gen.js +1 -3
  21. package/dist/client.gen.js.map +1 -1
  22. package/dist/core/auth.gen.d.ts.map +1 -1
  23. package/dist/core/auth.gen.js.map +1 -1
  24. package/dist/core/bodySerializer.gen.d.ts +16 -8
  25. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  26. package/dist/core/bodySerializer.gen.js +4 -1
  27. package/dist/core/bodySerializer.gen.js.map +1 -1
  28. package/dist/core/params.gen.d.ts +10 -0
  29. package/dist/core/params.gen.d.ts.map +1 -1
  30. package/dist/core/params.gen.js +18 -6
  31. package/dist/core/params.gen.js.map +1 -1
  32. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  33. package/dist/core/pathSerializer.gen.js +3 -11
  34. package/dist/core/pathSerializer.gen.js.map +1 -1
  35. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  36. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  37. package/dist/core/queryKeySerializer.gen.js +93 -0
  38. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  39. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  40. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  41. package/dist/core/serverSentEvents.gen.js +133 -0
  42. package/dist/core/serverSentEvents.gen.js.map +1 -0
  43. package/dist/core/types.gen.d.ts +13 -13
  44. package/dist/core/types.gen.d.ts.map +1 -1
  45. package/dist/core/utils.gen.d.ts +20 -0
  46. package/dist/core/utils.gen.d.ts.map +1 -0
  47. package/dist/core/utils.gen.js +88 -0
  48. package/dist/core/utils.gen.js.map +1 -0
  49. package/dist/schemas.gen.d.ts +1210 -556
  50. package/dist/schemas.gen.d.ts.map +1 -1
  51. package/dist/schemas.gen.js +2505 -650
  52. package/dist/schemas.gen.js.map +1 -1
  53. package/dist/sdk.gen.d.ts +130 -20
  54. package/dist/sdk.gen.d.ts.map +1 -1
  55. package/dist/sdk.gen.js +217 -164
  56. package/dist/sdk.gen.js.map +1 -1
  57. package/dist/services/kubernetes/api.d.ts +20 -20
  58. package/dist/types.gen.d.ts +1007 -336
  59. package/dist/types.gen.d.ts.map +1 -1
  60. package/dist/zod.gen.d.ts +2718 -1941
  61. package/dist/zod.gen.d.ts.map +1 -1
  62. package/dist/zod.gen.js +1198 -1082
  63. package/dist/zod.gen.js.map +1 -1
  64. package/package.json +29 -6
package/dist/zod.gen.js CHANGED
@@ -1,19 +1,18 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod';
2
+ import * as z from 'zod';
3
3
  export const zBillingContact = z.object({
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()),
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
12
  email: z.email(),
13
- first_name: z.string(),
14
- last_name: z.string(),
15
- tax_id: z.optional(z.string()),
16
- tax_id_type: z.optional(z.enum([
13
+ individual_name: z.string(),
14
+ tax_id: z.string().optional(),
15
+ tax_id_type: z.enum([
17
16
  'ad_nrt',
18
17
  'ae_trn',
19
18
  'al_tin',
@@ -142,21 +141,17 @@ export const zBillingContact = z.object({
142
141
  'zm_tin',
143
142
  'zw_tin',
144
143
  ''
145
- ]))
144
+ ]).optional()
146
145
  });
147
146
  export const zBillingCredits = z.object({
148
- id: z.optional(z.string()),
149
- date_created: z.iso.datetime(),
147
+ id: z.string().optional(),
148
+ type: z.enum(['credit', 'discount']),
149
+ date_start: z.iso.datetime(),
150
+ date_end: z.iso.datetime().optional(),
150
151
  code: z.string(),
151
- description: z.optional(z.string()),
152
- products: z.optional(z.array(z.string())),
153
- type: z.enum([
154
- 'credit',
155
- 'discount'
156
- ]),
157
- value: z.number(),
158
- billing_period: z.iso.datetime(),
159
- value_remaining: z.optional(z.number())
152
+ description: z.string().optional(),
153
+ value_total: z.number(),
154
+ value_remaining: z.number().optional()
160
155
  });
161
156
  export const zChartCreateInput = z.object({
162
157
  values: z.string(),
@@ -198,21 +193,24 @@ export const zChartUpdateInput = z.object({
198
193
  });
199
194
  export const zClusterCreateInput = z.object({
200
195
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
201
- tier: z.enum([
202
- 'basic',
203
- 'pro'
204
- ]),
205
- region: z.optional(z.enum([
206
- 'staging',
196
+ tier: z.enum(['basic', 'pro']),
197
+ region: z.enum([
198
+ 'staging-1a',
207
199
  'northamerica-central-1',
208
200
  'europe-central-1a',
209
201
  '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')
202
+ ]).optional().default('staging-1a'),
203
+ version_channel: z.enum([
204
+ '1.x.x-cfke.x',
205
+ '1.31.x-cfke.x',
206
+ '1.32.x-cfke.x',
207
+ '1.33.x-cfke.x'
208
+ ]).optional().default('1.x.x-cfke.x')
212
209
  });
213
210
  export const zClusterJoinInformation = z.object({
214
211
  certificate_authority: z.string(),
215
212
  endpoint: z.url(),
213
+ cluster_dns: z.string(),
216
214
  auth_key: z.string(),
217
215
  bootstrap_token: z.string(),
218
216
  versions: z.object({
@@ -229,716 +227,828 @@ export const zClusterJoinInformation = z.object({
229
227
  });
230
228
  export const zCluster = z.object({
231
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
232
- tier: z.enum([
233
- 'basic',
234
- 'pro'
235
- ]),
236
- region: z.optional(z.enum([
237
- 'staging',
230
+ tier: z.enum(['basic', 'pro']),
231
+ region: z.enum([
232
+ 'staging-1a',
238
233
  'northamerica-central-1',
239
234
  'europe-central-1a',
240
235
  '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'),
236
+ ]).optional().default('staging-1a'),
243
237
  id: z.uuid(),
244
238
  status: z.enum([
245
239
  'active',
240
+ 'disabled',
246
241
  'deleted',
247
242
  'creating',
248
243
  'deployed',
249
244
  'failed',
250
245
  'updating'
251
246
  ]),
252
- endpoint: z.optional(z.union([
247
+ endpoint: z.union([
253
248
  z.url(),
254
- z.enum([
255
- ''
256
- ])
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())
249
+ z.enum([''])
250
+ ]).optional(),
251
+ certificate_ca: z.string().optional(),
252
+ version_current: z.string().optional(),
253
+ created_at: z.string().optional(),
254
+ updated_at: z.string().optional(),
255
+ ready: z.boolean().optional(),
256
+ 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()
263
257
  });
264
258
  export const zClusterUpdateInput = z.object({
265
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
266
- tier: z.enum([
267
- 'basic',
268
- 'pro'
269
- ]),
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-]+)*))?$/))
259
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
260
+ tier: z.enum(['basic', 'pro']),
261
+ 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
262
  });
272
263
  export const zFleetCreateInput = z.object({
273
- limits: z.optional(z.object({
274
- cpu: z.number().gte(0)
275
- })),
276
- gcp: z.optional(z.object({
277
- enabled: z.optional(z.boolean()).default(true),
264
+ limits: z.object({
265
+ cpu: z.number().gte(8).optional()
266
+ }).optional(),
267
+ gcp: z.object({
268
+ enabled: z.boolean().optional().default(true),
278
269
  project: z.string()
279
- })),
280
- hetzner: z.optional(z.object({
281
- enabled: z.optional(z.boolean()).default(true),
282
- apiKey: z.string()
283
- })),
284
- aws: z.optional(z.object({
285
- enabled: z.optional(z.boolean()).default(true),
270
+ }).optional(),
271
+ hetzner: z.object({
272
+ enabled: z.boolean().optional().default(true),
273
+ apiKey: z.string().optional()
274
+ }).optional(),
275
+ aws: z.object({
276
+ enabled: z.boolean().optional().default(true),
286
277
  controllerRoleArn: z.string()
287
- })),
278
+ }).optional(),
279
+ constraints: z.object({
280
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).optional(),
281
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).optional(),
282
+ 'cfke.io/instance-family': z.array(z.enum([
283
+ 'a1',
284
+ 'a2',
285
+ 'a3',
286
+ 'a4',
287
+ 'c1',
288
+ 'c2',
289
+ 'c2d',
290
+ 'c3',
291
+ 'c3d',
292
+ 'c4',
293
+ 'c4a',
294
+ 'c4d',
295
+ 'c5',
296
+ 'c5a',
297
+ 'c5ad',
298
+ 'c5d',
299
+ 'c5n',
300
+ 'c6a',
301
+ 'c6g',
302
+ 'c6gd',
303
+ 'c6gn',
304
+ 'c6i',
305
+ 'c6id',
306
+ 'c6in',
307
+ 'c7a',
308
+ 'c7g',
309
+ 'c7gd',
310
+ 'c7gn',
311
+ 'c7i',
312
+ 'c7i-flex',
313
+ 'c8g',
314
+ 'c8gd',
315
+ 'cax',
316
+ 'ccx',
317
+ 'cpx',
318
+ 'cx',
319
+ 'd2',
320
+ 'd3',
321
+ 'd3en',
322
+ 'dl1',
323
+ 'dl2q',
324
+ 'e2',
325
+ 'f1',
326
+ 'f2',
327
+ 'g1',
328
+ 'g2',
329
+ 'g4ad',
330
+ 'g4dn',
331
+ 'g5',
332
+ 'g5g',
333
+ 'g6',
334
+ 'g6e',
335
+ 'gr6',
336
+ 'h1',
337
+ 'h3',
338
+ 'hpc6a',
339
+ 'hpc6id',
340
+ 'hpc7a',
341
+ 'hpc7g',
342
+ 'i2',
343
+ 'i3',
344
+ 'i3en',
345
+ 'i4g',
346
+ 'i4i',
347
+ 'i7i',
348
+ 'i7ie',
349
+ 'i8g',
350
+ 'im4gn',
351
+ 'inf1',
352
+ 'inf2',
353
+ 'is4gen',
354
+ 'm1',
355
+ 'm2',
356
+ 'm3',
357
+ 'm4',
358
+ 'm5',
359
+ 'm5a',
360
+ 'm5ad',
361
+ 'm5d',
362
+ 'm5dn',
363
+ 'm5n',
364
+ 'm5zn',
365
+ 'm6a',
366
+ 'm6g',
367
+ 'm6gd',
368
+ 'm6i',
369
+ 'm6id',
370
+ 'm6idn',
371
+ 'm6in',
372
+ 'm7a',
373
+ 'm7g',
374
+ 'm7gd',
375
+ 'm7i',
376
+ 'm7i-flex',
377
+ 'm8g',
378
+ 'm8gd',
379
+ 'n1',
380
+ 'n2',
381
+ 'n2d',
382
+ 'n4',
383
+ 'p3',
384
+ 'p3dn',
385
+ 'p4d',
386
+ 'p4de',
387
+ 'p5',
388
+ 'p5e',
389
+ 'p5en',
390
+ 'p6-b200',
391
+ 'r3',
392
+ 'r4',
393
+ 'r5',
394
+ 'r5a',
395
+ 'r5ad',
396
+ 'r5b',
397
+ 'r5d',
398
+ 'r5dn',
399
+ 'r5n',
400
+ 'r6a',
401
+ 'r6g',
402
+ 'r6gd',
403
+ 'r6i',
404
+ 'r6id',
405
+ 'r6idn',
406
+ 'r6in',
407
+ 'r7a',
408
+ 'r7g',
409
+ 'r7gd',
410
+ 'r7i',
411
+ 'r7iz',
412
+ 'r8g',
413
+ 'r8gd',
414
+ 't2',
415
+ 't2a',
416
+ 't2d',
417
+ 't3',
418
+ 't3a',
419
+ 't4g',
420
+ 'trn1',
421
+ 'trn1n',
422
+ 'u-3tb1',
423
+ 'u-6tb1',
424
+ 'u7i-12tb',
425
+ 'u7i-6tb',
426
+ 'u7i-8tb',
427
+ 'u7in-16tb',
428
+ 'u7in-24tb',
429
+ 'u7in-32tb',
430
+ 'vt1',
431
+ 'x1',
432
+ 'x1e',
433
+ 'x2gd',
434
+ 'x2idn',
435
+ 'x2iedn',
436
+ 'x2iezn',
437
+ 'x4',
438
+ 'x8g',
439
+ 'z1d',
440
+ 'z3'
441
+ ])).optional(),
442
+ 'topology.kubernetes.io/region': z.array(z.enum([
443
+ 'africa-south1',
444
+ 'ap-northeast-1',
445
+ 'ap-northeast-2',
446
+ 'ap-northeast-3',
447
+ 'ap-south-1',
448
+ 'ap-southeast-1',
449
+ 'ap-southeast-2',
450
+ 'ash',
451
+ 'asia-east1',
452
+ 'asia-east2',
453
+ 'asia-northeast1',
454
+ 'asia-northeast2',
455
+ 'asia-northeast3',
456
+ 'asia-south1',
457
+ 'asia-south2',
458
+ 'asia-southeast1',
459
+ 'asia-southeast2',
460
+ 'australia-southeast1',
461
+ 'australia-southeast2',
462
+ 'ca-central-1',
463
+ 'eu-central-1',
464
+ 'eu-central-2',
465
+ 'eu-north-1',
466
+ 'eu-west-1',
467
+ 'eu-west-2',
468
+ 'eu-west-3',
469
+ 'europe-central2',
470
+ 'europe-north1',
471
+ 'europe-southwest1',
472
+ 'europe-west1',
473
+ 'europe-west10',
474
+ 'europe-west12',
475
+ 'europe-west2',
476
+ 'europe-west3',
477
+ 'europe-west4',
478
+ 'europe-west6',
479
+ 'europe-west8',
480
+ 'europe-west9',
481
+ 'fsn1',
482
+ 'hel1',
483
+ 'hil',
484
+ 'me-central1',
485
+ 'me-central2',
486
+ 'me-west1',
487
+ 'nbg1',
488
+ 'northamerica-northeast1',
489
+ 'northamerica-northeast2',
490
+ 'sa-east-1',
491
+ 'sin',
492
+ 'southamerica-east1',
493
+ 'southamerica-west1',
494
+ 'us-central1',
495
+ 'us-east-1',
496
+ 'us-east-2',
497
+ 'us-east1',
498
+ 'us-east4',
499
+ 'us-east5',
500
+ 'us-south1',
501
+ 'us-west-1',
502
+ 'us-west-2',
503
+ 'us-west1',
504
+ 'us-west2',
505
+ 'us-west3',
506
+ 'us-west4'
507
+ ])).optional()
508
+ }).optional(),
509
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional(),
288
510
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
289
511
  });
290
512
  export const zFleet = z.object({
291
- limits: z.optional(z.object({
292
- cpu: z.number().gte(0)
293
- })),
294
- gcp: z.optional(z.object({
295
- enabled: z.optional(z.boolean()).default(true),
513
+ limits: z.object({
514
+ cpu: z.number().gte(8).optional()
515
+ }).optional(),
516
+ gcp: z.object({
517
+ enabled: z.boolean().optional().default(true),
296
518
  project: z.string()
297
- })),
298
- hetzner: z.optional(z.object({
299
- enabled: z.optional(z.boolean()).default(true),
300
- apiKey: z.string()
301
- })),
302
- aws: z.optional(z.object({
303
- enabled: z.optional(z.boolean()).default(true),
519
+ }).optional(),
520
+ hetzner: z.object({
521
+ enabled: z.boolean().optional().default(true),
522
+ apiKey: z.string().optional()
523
+ }).optional(),
524
+ aws: z.object({
525
+ enabled: z.boolean().optional().default(true),
304
526
  controllerRoleArn: z.string()
305
- })),
527
+ }).optional(),
528
+ constraints: z.object({
529
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).optional(),
530
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).optional(),
531
+ 'cfke.io/instance-family': z.array(z.enum([
532
+ 'a1',
533
+ 'a2',
534
+ 'a3',
535
+ 'a4',
536
+ 'c1',
537
+ 'c2',
538
+ 'c2d',
539
+ 'c3',
540
+ 'c3d',
541
+ 'c4',
542
+ 'c4a',
543
+ 'c4d',
544
+ 'c5',
545
+ 'c5a',
546
+ 'c5ad',
547
+ 'c5d',
548
+ 'c5n',
549
+ 'c6a',
550
+ 'c6g',
551
+ 'c6gd',
552
+ 'c6gn',
553
+ 'c6i',
554
+ 'c6id',
555
+ 'c6in',
556
+ 'c7a',
557
+ 'c7g',
558
+ 'c7gd',
559
+ 'c7gn',
560
+ 'c7i',
561
+ 'c7i-flex',
562
+ 'c8g',
563
+ 'c8gd',
564
+ 'cax',
565
+ 'ccx',
566
+ 'cpx',
567
+ 'cx',
568
+ 'd2',
569
+ 'd3',
570
+ 'd3en',
571
+ 'dl1',
572
+ 'dl2q',
573
+ 'e2',
574
+ 'f1',
575
+ 'f2',
576
+ 'g1',
577
+ 'g2',
578
+ 'g4ad',
579
+ 'g4dn',
580
+ 'g5',
581
+ 'g5g',
582
+ 'g6',
583
+ 'g6e',
584
+ 'gr6',
585
+ 'h1',
586
+ 'h3',
587
+ 'hpc6a',
588
+ 'hpc6id',
589
+ 'hpc7a',
590
+ 'hpc7g',
591
+ 'i2',
592
+ 'i3',
593
+ 'i3en',
594
+ 'i4g',
595
+ 'i4i',
596
+ 'i7i',
597
+ 'i7ie',
598
+ 'i8g',
599
+ 'im4gn',
600
+ 'inf1',
601
+ 'inf2',
602
+ 'is4gen',
603
+ 'm1',
604
+ 'm2',
605
+ 'm3',
606
+ 'm4',
607
+ 'm5',
608
+ 'm5a',
609
+ 'm5ad',
610
+ 'm5d',
611
+ 'm5dn',
612
+ 'm5n',
613
+ 'm5zn',
614
+ 'm6a',
615
+ 'm6g',
616
+ 'm6gd',
617
+ 'm6i',
618
+ 'm6id',
619
+ 'm6idn',
620
+ 'm6in',
621
+ 'm7a',
622
+ 'm7g',
623
+ 'm7gd',
624
+ 'm7i',
625
+ 'm7i-flex',
626
+ 'm8g',
627
+ 'm8gd',
628
+ 'n1',
629
+ 'n2',
630
+ 'n2d',
631
+ 'n4',
632
+ 'p3',
633
+ 'p3dn',
634
+ 'p4d',
635
+ 'p4de',
636
+ 'p5',
637
+ 'p5e',
638
+ 'p5en',
639
+ 'p6-b200',
640
+ 'r3',
641
+ 'r4',
642
+ 'r5',
643
+ 'r5a',
644
+ 'r5ad',
645
+ 'r5b',
646
+ 'r5d',
647
+ 'r5dn',
648
+ 'r5n',
649
+ 'r6a',
650
+ 'r6g',
651
+ 'r6gd',
652
+ 'r6i',
653
+ 'r6id',
654
+ 'r6idn',
655
+ 'r6in',
656
+ 'r7a',
657
+ 'r7g',
658
+ 'r7gd',
659
+ 'r7i',
660
+ 'r7iz',
661
+ 'r8g',
662
+ 'r8gd',
663
+ 't2',
664
+ 't2a',
665
+ 't2d',
666
+ 't3',
667
+ 't3a',
668
+ 't4g',
669
+ 'trn1',
670
+ 'trn1n',
671
+ 'u-3tb1',
672
+ 'u-6tb1',
673
+ 'u7i-12tb',
674
+ 'u7i-6tb',
675
+ 'u7i-8tb',
676
+ 'u7in-16tb',
677
+ 'u7in-24tb',
678
+ 'u7in-32tb',
679
+ 'vt1',
680
+ 'x1',
681
+ 'x1e',
682
+ 'x2gd',
683
+ 'x2idn',
684
+ 'x2iedn',
685
+ 'x2iezn',
686
+ 'x4',
687
+ 'x8g',
688
+ 'z1d',
689
+ 'z3'
690
+ ])).optional(),
691
+ 'topology.kubernetes.io/region': z.array(z.enum([
692
+ 'africa-south1',
693
+ 'ap-northeast-1',
694
+ 'ap-northeast-2',
695
+ 'ap-northeast-3',
696
+ 'ap-south-1',
697
+ 'ap-southeast-1',
698
+ 'ap-southeast-2',
699
+ 'ash',
700
+ 'asia-east1',
701
+ 'asia-east2',
702
+ 'asia-northeast1',
703
+ 'asia-northeast2',
704
+ 'asia-northeast3',
705
+ 'asia-south1',
706
+ 'asia-south2',
707
+ 'asia-southeast1',
708
+ 'asia-southeast2',
709
+ 'australia-southeast1',
710
+ 'australia-southeast2',
711
+ 'ca-central-1',
712
+ 'eu-central-1',
713
+ 'eu-central-2',
714
+ 'eu-north-1',
715
+ 'eu-west-1',
716
+ 'eu-west-2',
717
+ 'eu-west-3',
718
+ 'europe-central2',
719
+ 'europe-north1',
720
+ 'europe-southwest1',
721
+ 'europe-west1',
722
+ 'europe-west10',
723
+ 'europe-west12',
724
+ 'europe-west2',
725
+ 'europe-west3',
726
+ 'europe-west4',
727
+ 'europe-west6',
728
+ 'europe-west8',
729
+ 'europe-west9',
730
+ 'fsn1',
731
+ 'hel1',
732
+ 'hil',
733
+ 'me-central1',
734
+ 'me-central2',
735
+ 'me-west1',
736
+ 'nbg1',
737
+ 'northamerica-northeast1',
738
+ 'northamerica-northeast2',
739
+ 'sa-east-1',
740
+ 'sin',
741
+ 'southamerica-east1',
742
+ 'southamerica-west1',
743
+ 'us-central1',
744
+ 'us-east-1',
745
+ 'us-east-2',
746
+ 'us-east1',
747
+ 'us-east4',
748
+ 'us-east5',
749
+ 'us-south1',
750
+ 'us-west-1',
751
+ 'us-west-2',
752
+ 'us-west1',
753
+ 'us-west2',
754
+ 'us-west3',
755
+ 'us-west4'
756
+ ])).optional()
757
+ }).optional(),
758
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional(),
306
759
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
307
760
  });
308
761
  export const zFleetUpdateInput = z.object({
309
- limits: z.optional(z.object({
310
- cpu: z.number().gte(0)
311
- })),
312
- gcp: z.optional(z.object({
313
- enabled: z.optional(z.boolean()).default(true),
762
+ limits: z.object({
763
+ cpu: z.number().gte(8).optional()
764
+ }).optional(),
765
+ gcp: z.object({
766
+ enabled: z.boolean().optional().default(true),
314
767
  project: z.string()
315
- })),
316
- hetzner: z.optional(z.object({
317
- enabled: z.optional(z.boolean()).default(true),
318
- apiKey: z.string()
319
- })),
320
- aws: z.optional(z.object({
321
- enabled: z.optional(z.boolean()).default(true),
768
+ }).optional(),
769
+ hetzner: z.object({
770
+ enabled: z.boolean().optional().default(true),
771
+ apiKey: z.string().optional()
772
+ }).optional(),
773
+ aws: z.object({
774
+ enabled: z.boolean().optional().default(true),
322
775
  controllerRoleArn: z.string()
323
- }))
776
+ }).optional(),
777
+ constraints: z.object({
778
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).optional(),
779
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).optional(),
780
+ 'cfke.io/instance-family': z.array(z.enum([
781
+ 'a1',
782
+ 'a2',
783
+ 'a3',
784
+ 'a4',
785
+ 'c1',
786
+ 'c2',
787
+ 'c2d',
788
+ 'c3',
789
+ 'c3d',
790
+ 'c4',
791
+ 'c4a',
792
+ 'c4d',
793
+ 'c5',
794
+ 'c5a',
795
+ 'c5ad',
796
+ 'c5d',
797
+ 'c5n',
798
+ 'c6a',
799
+ 'c6g',
800
+ 'c6gd',
801
+ 'c6gn',
802
+ 'c6i',
803
+ 'c6id',
804
+ 'c6in',
805
+ 'c7a',
806
+ 'c7g',
807
+ 'c7gd',
808
+ 'c7gn',
809
+ 'c7i',
810
+ 'c7i-flex',
811
+ 'c8g',
812
+ 'c8gd',
813
+ 'cax',
814
+ 'ccx',
815
+ 'cpx',
816
+ 'cx',
817
+ 'd2',
818
+ 'd3',
819
+ 'd3en',
820
+ 'dl1',
821
+ 'dl2q',
822
+ 'e2',
823
+ 'f1',
824
+ 'f2',
825
+ 'g1',
826
+ 'g2',
827
+ 'g4ad',
828
+ 'g4dn',
829
+ 'g5',
830
+ 'g5g',
831
+ 'g6',
832
+ 'g6e',
833
+ 'gr6',
834
+ 'h1',
835
+ 'h3',
836
+ 'hpc6a',
837
+ 'hpc6id',
838
+ 'hpc7a',
839
+ 'hpc7g',
840
+ 'i2',
841
+ 'i3',
842
+ 'i3en',
843
+ 'i4g',
844
+ 'i4i',
845
+ 'i7i',
846
+ 'i7ie',
847
+ 'i8g',
848
+ 'im4gn',
849
+ 'inf1',
850
+ 'inf2',
851
+ 'is4gen',
852
+ 'm1',
853
+ 'm2',
854
+ 'm3',
855
+ 'm4',
856
+ 'm5',
857
+ 'm5a',
858
+ 'm5ad',
859
+ 'm5d',
860
+ 'm5dn',
861
+ 'm5n',
862
+ 'm5zn',
863
+ 'm6a',
864
+ 'm6g',
865
+ 'm6gd',
866
+ 'm6i',
867
+ 'm6id',
868
+ 'm6idn',
869
+ 'm6in',
870
+ 'm7a',
871
+ 'm7g',
872
+ 'm7gd',
873
+ 'm7i',
874
+ 'm7i-flex',
875
+ 'm8g',
876
+ 'm8gd',
877
+ 'n1',
878
+ 'n2',
879
+ 'n2d',
880
+ 'n4',
881
+ 'p3',
882
+ 'p3dn',
883
+ 'p4d',
884
+ 'p4de',
885
+ 'p5',
886
+ 'p5e',
887
+ 'p5en',
888
+ 'p6-b200',
889
+ 'r3',
890
+ 'r4',
891
+ 'r5',
892
+ 'r5a',
893
+ 'r5ad',
894
+ 'r5b',
895
+ 'r5d',
896
+ 'r5dn',
897
+ 'r5n',
898
+ 'r6a',
899
+ 'r6g',
900
+ 'r6gd',
901
+ 'r6i',
902
+ 'r6id',
903
+ 'r6idn',
904
+ 'r6in',
905
+ 'r7a',
906
+ 'r7g',
907
+ 'r7gd',
908
+ 'r7i',
909
+ 'r7iz',
910
+ 'r8g',
911
+ 'r8gd',
912
+ 't2',
913
+ 't2a',
914
+ 't2d',
915
+ 't3',
916
+ 't3a',
917
+ 't4g',
918
+ 'trn1',
919
+ 'trn1n',
920
+ 'u-3tb1',
921
+ 'u-6tb1',
922
+ 'u7i-12tb',
923
+ 'u7i-6tb',
924
+ 'u7i-8tb',
925
+ 'u7in-16tb',
926
+ 'u7in-24tb',
927
+ 'u7in-32tb',
928
+ 'vt1',
929
+ 'x1',
930
+ 'x1e',
931
+ 'x2gd',
932
+ 'x2idn',
933
+ 'x2iedn',
934
+ 'x2iezn',
935
+ 'x4',
936
+ 'x8g',
937
+ 'z1d',
938
+ 'z3'
939
+ ])).optional(),
940
+ 'topology.kubernetes.io/region': z.array(z.enum([
941
+ 'africa-south1',
942
+ 'ap-northeast-1',
943
+ 'ap-northeast-2',
944
+ 'ap-northeast-3',
945
+ 'ap-south-1',
946
+ 'ap-southeast-1',
947
+ 'ap-southeast-2',
948
+ 'ash',
949
+ 'asia-east1',
950
+ 'asia-east2',
951
+ 'asia-northeast1',
952
+ 'asia-northeast2',
953
+ 'asia-northeast3',
954
+ 'asia-south1',
955
+ 'asia-south2',
956
+ 'asia-southeast1',
957
+ 'asia-southeast2',
958
+ 'australia-southeast1',
959
+ 'australia-southeast2',
960
+ 'ca-central-1',
961
+ 'eu-central-1',
962
+ 'eu-central-2',
963
+ 'eu-north-1',
964
+ 'eu-west-1',
965
+ 'eu-west-2',
966
+ 'eu-west-3',
967
+ 'europe-central2',
968
+ 'europe-north1',
969
+ 'europe-southwest1',
970
+ 'europe-west1',
971
+ 'europe-west10',
972
+ 'europe-west12',
973
+ 'europe-west2',
974
+ 'europe-west3',
975
+ 'europe-west4',
976
+ 'europe-west6',
977
+ 'europe-west8',
978
+ 'europe-west9',
979
+ 'fsn1',
980
+ 'hel1',
981
+ 'hil',
982
+ 'me-central1',
983
+ 'me-central2',
984
+ 'me-west1',
985
+ 'nbg1',
986
+ 'northamerica-northeast1',
987
+ 'northamerica-northeast2',
988
+ 'sa-east-1',
989
+ 'sin',
990
+ 'southamerica-east1',
991
+ 'southamerica-west1',
992
+ 'us-central1',
993
+ 'us-east-1',
994
+ 'us-east-2',
995
+ 'us-east1',
996
+ 'us-east4',
997
+ 'us-east5',
998
+ 'us-south1',
999
+ 'us-west-1',
1000
+ 'us-west-2',
1001
+ 'us-west1',
1002
+ 'us-west2',
1003
+ 'us-west3',
1004
+ 'us-west4'
1005
+ ])).optional()
1006
+ }).optional(),
1007
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional()
324
1008
  });
325
1009
  export const zInvite = z.object({
326
- id: z.optional(z.string()),
327
- organization_id: z.optional(z.uuid()),
1010
+ id: z.string().optional(),
1011
+ organization_id: z.uuid().optional(),
328
1012
  date_created: z.iso.datetime(),
329
- email: z.optional(z.email()),
330
- code: z.optional(z.string())
1013
+ email: z.email().optional(),
1014
+ code: z.string().optional()
331
1015
  });
332
1016
  export const zInvoice = z.object({
333
- id: z.optional(z.uuid()),
334
- organizationId: z.optional(z.uuid()),
335
- status: z.optional(z.enum([
336
- 'DRAFT',
337
- 'COMMITTED',
338
- 'VOID'
339
- ])),
340
- amount: z.optional(z.number()),
341
- currency: z.optional(z.enum([
342
- 'AED',
343
- 'AFN',
344
- 'ALL',
345
- 'AMD',
346
- 'ANG',
347
- 'AOA',
348
- 'ARS',
349
- 'AUD',
350
- 'AWG',
351
- 'AZN',
352
- 'BAM',
353
- 'BBD',
354
- 'BDT',
355
- 'BGN',
356
- 'BHD',
357
- 'BIF',
358
- 'BMD',
359
- 'BND',
360
- 'BOB',
361
- 'BRL',
362
- 'BSD',
363
- 'BTN',
364
- 'BWP',
365
- 'BYR',
366
- 'BZD',
367
- 'CAD',
368
- 'CDF',
369
- 'CHF',
370
- 'CLP',
371
- 'CNY',
372
- 'COP',
373
- 'CRC',
374
- 'CUC',
375
- 'CUP',
376
- 'CVE',
377
- 'CZK',
378
- 'DJF',
379
- 'DKK',
380
- 'DOP',
381
- 'DZD',
382
- 'EGP',
383
- 'ERN',
384
- 'ETB',
385
- 'EUR',
386
- 'FJD',
387
- 'FKP',
388
- 'GBP',
389
- 'GEL',
390
- 'GGP',
391
- 'GHS',
392
- 'GIP',
393
- 'GMD',
394
- 'GNF',
395
- 'GTQ',
396
- 'GYD',
397
- 'HKD',
398
- 'HNL',
399
- 'HRK',
400
- 'HTG',
401
- 'HUF',
402
- 'IDR',
403
- 'ILS',
404
- 'IMP',
405
- 'INR',
406
- 'IQD',
407
- 'IRR',
408
- 'ISK',
409
- 'JEP',
410
- 'JMD',
411
- 'JOD',
412
- 'JPY',
413
- 'KES',
414
- 'KGS',
415
- 'KHR',
416
- 'KMF',
417
- 'KPW',
418
- 'KRW',
419
- 'KWD',
420
- 'KYD',
421
- 'KZT',
422
- 'LAK',
423
- 'LBP',
424
- 'LKR',
425
- 'LRD',
426
- 'LSL',
427
- 'LTL',
428
- 'LVL',
429
- 'LYD',
430
- 'MAD',
431
- 'MDL',
432
- 'MGA',
433
- 'MKD',
434
- 'MMK',
435
- 'MNT',
436
- 'MOP',
437
- 'MRO',
438
- 'MUR',
439
- 'MVR',
440
- 'MWK',
441
- 'MXN',
442
- 'MYR',
443
- 'MZN',
444
- 'NAD',
445
- 'NGN',
446
- 'NIO',
447
- 'NOK',
448
- 'NPR',
449
- 'NZD',
450
- 'OMR',
451
- 'PAB',
452
- 'PEN',
453
- 'PGK',
454
- 'PHP',
455
- 'PKR',
456
- 'PLN',
457
- 'PYG',
458
- 'QAR',
459
- 'RON',
460
- 'RSD',
461
- 'RUB',
462
- 'RWF',
463
- 'SAR',
464
- 'SBD',
465
- 'SCR',
466
- 'SDG',
467
- 'SEK',
468
- 'SGD',
469
- 'SHP',
470
- 'SLL',
471
- 'SOS',
472
- 'SPL',
473
- 'SRD',
474
- 'STD',
475
- 'SVC',
476
- 'SYP',
477
- 'SZL',
478
- 'THB',
479
- 'TJS',
480
- 'TMT',
481
- 'TND',
482
- 'TOP',
483
- 'TRY',
484
- 'TTD',
485
- 'TVD',
486
- 'TWD',
487
- 'TZS',
488
- 'UAH',
489
- 'UGX',
490
- 'USD',
491
- 'UYU',
492
- 'UZS',
493
- 'VEF',
494
- 'VND',
495
- 'VUV',
496
- 'WST',
497
- 'XAF',
498
- 'XCD',
499
- 'XDR',
500
- 'XOF',
501
- 'XPF',
502
- 'YER',
503
- 'ZAR',
504
- 'ZMW',
505
- 'ZWD',
506
- 'BTC'
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([
527
- 'EXTERNAL_CHARGE',
528
- 'FIXED',
529
- 'RECURRING',
530
- 'REPAIR_ADJ',
531
- 'CBA_ADJ',
532
- 'CREDIT_ADJ',
533
- 'ITEM_ADJ',
534
- 'USAGE',
535
- 'TAX',
536
- 'PARENT_SUMMARY'
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([
544
- 'AED',
545
- 'AFN',
546
- 'ALL',
547
- 'AMD',
548
- 'ANG',
549
- 'AOA',
550
- 'ARS',
551
- 'AUD',
552
- 'AWG',
553
- 'AZN',
554
- 'BAM',
555
- 'BBD',
556
- 'BDT',
557
- 'BGN',
558
- 'BHD',
559
- 'BIF',
560
- 'BMD',
561
- 'BND',
562
- 'BOB',
563
- 'BRL',
564
- 'BSD',
565
- 'BTN',
566
- 'BWP',
567
- 'BYR',
568
- 'BZD',
569
- 'CAD',
570
- 'CDF',
571
- 'CHF',
572
- 'CLP',
573
- 'CNY',
574
- 'COP',
575
- 'CRC',
576
- 'CUC',
577
- 'CUP',
578
- 'CVE',
579
- 'CZK',
580
- 'DJF',
581
- 'DKK',
582
- 'DOP',
583
- 'DZD',
584
- 'EGP',
585
- 'ERN',
586
- 'ETB',
587
- 'EUR',
588
- 'FJD',
589
- 'FKP',
590
- 'GBP',
591
- 'GEL',
592
- 'GGP',
593
- 'GHS',
594
- 'GIP',
595
- 'GMD',
596
- 'GNF',
597
- 'GTQ',
598
- 'GYD',
599
- 'HKD',
600
- 'HNL',
601
- 'HRK',
602
- 'HTG',
603
- 'HUF',
604
- 'IDR',
605
- 'ILS',
606
- 'IMP',
607
- 'INR',
608
- 'IQD',
609
- 'IRR',
610
- 'ISK',
611
- 'JEP',
612
- 'JMD',
613
- 'JOD',
614
- 'JPY',
615
- 'KES',
616
- 'KGS',
617
- 'KHR',
618
- 'KMF',
619
- 'KPW',
620
- 'KRW',
621
- 'KWD',
622
- 'KYD',
623
- 'KZT',
624
- 'LAK',
625
- 'LBP',
626
- 'LKR',
627
- 'LRD',
628
- 'LSL',
629
- 'LTL',
630
- 'LVL',
631
- 'LYD',
632
- 'MAD',
633
- 'MDL',
634
- 'MGA',
635
- 'MKD',
636
- 'MMK',
637
- 'MNT',
638
- 'MOP',
639
- 'MRO',
640
- 'MUR',
641
- 'MVR',
642
- 'MWK',
643
- 'MXN',
644
- 'MYR',
645
- 'MZN',
646
- 'NAD',
647
- 'NGN',
648
- 'NIO',
649
- 'NOK',
650
- 'NPR',
651
- 'NZD',
652
- 'OMR',
653
- 'PAB',
654
- 'PEN',
655
- 'PGK',
656
- 'PHP',
657
- 'PKR',
658
- 'PLN',
659
- 'PYG',
660
- 'QAR',
661
- 'RON',
662
- 'RSD',
663
- 'RUB',
664
- 'RWF',
665
- 'SAR',
666
- 'SBD',
667
- 'SCR',
668
- 'SDG',
669
- 'SEK',
670
- 'SGD',
671
- 'SHP',
672
- 'SLL',
673
- 'SOS',
674
- 'SPL',
675
- 'SRD',
676
- 'STD',
677
- 'SVC',
678
- 'SYP',
679
- 'SZL',
680
- 'THB',
681
- 'TJS',
682
- 'TMT',
683
- 'TND',
684
- 'TOP',
685
- 'TRY',
686
- 'TTD',
687
- 'TVD',
688
- 'TWD',
689
- 'TZS',
690
- 'UAH',
691
- 'UGX',
692
- 'USD',
693
- 'UYU',
694
- 'UZS',
695
- 'VEF',
696
- 'VND',
697
- 'VUV',
698
- 'WST',
699
- 'XAF',
700
- 'XCD',
701
- 'XDR',
702
- 'XOF',
703
- 'XPF',
704
- 'YER',
705
- 'ZAR',
706
- 'ZMW',
707
- 'ZWD',
708
- 'BTC'
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([
733
- 'EXTERNAL_CHARGE',
734
- 'FIXED',
735
- 'RECURRING',
736
- 'REPAIR_ADJ',
737
- 'CBA_ADJ',
738
- 'CREDIT_ADJ',
739
- 'ITEM_ADJ',
740
- 'USAGE',
741
- 'TAX',
742
- 'PARENT_SUMMARY'
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([
750
- 'AED',
751
- 'AFN',
752
- 'ALL',
753
- 'AMD',
754
- 'ANG',
755
- 'AOA',
756
- 'ARS',
757
- 'AUD',
758
- 'AWG',
759
- 'AZN',
760
- 'BAM',
761
- 'BBD',
762
- 'BDT',
763
- 'BGN',
764
- 'BHD',
765
- 'BIF',
766
- 'BMD',
767
- 'BND',
768
- 'BOB',
769
- 'BRL',
770
- 'BSD',
771
- 'BTN',
772
- 'BWP',
773
- 'BYR',
774
- 'BZD',
775
- 'CAD',
776
- 'CDF',
777
- 'CHF',
778
- 'CLP',
779
- 'CNY',
780
- 'COP',
781
- 'CRC',
782
- 'CUC',
783
- 'CUP',
784
- 'CVE',
785
- 'CZK',
786
- 'DJF',
787
- 'DKK',
788
- 'DOP',
789
- 'DZD',
790
- 'EGP',
791
- 'ERN',
792
- 'ETB',
793
- 'EUR',
794
- 'FJD',
795
- 'FKP',
796
- 'GBP',
797
- 'GEL',
798
- 'GGP',
799
- 'GHS',
800
- 'GIP',
801
- 'GMD',
802
- 'GNF',
803
- 'GTQ',
804
- 'GYD',
805
- 'HKD',
806
- 'HNL',
807
- 'HRK',
808
- 'HTG',
809
- 'HUF',
810
- 'IDR',
811
- 'ILS',
812
- 'IMP',
813
- 'INR',
814
- 'IQD',
815
- 'IRR',
816
- 'ISK',
817
- 'JEP',
818
- 'JMD',
819
- 'JOD',
820
- 'JPY',
821
- 'KES',
822
- 'KGS',
823
- 'KHR',
824
- 'KMF',
825
- 'KPW',
826
- 'KRW',
827
- 'KWD',
828
- 'KYD',
829
- 'KZT',
830
- 'LAK',
831
- 'LBP',
832
- 'LKR',
833
- 'LRD',
834
- 'LSL',
835
- 'LTL',
836
- 'LVL',
837
- 'LYD',
838
- 'MAD',
839
- 'MDL',
840
- 'MGA',
841
- 'MKD',
842
- 'MMK',
843
- 'MNT',
844
- 'MOP',
845
- 'MRO',
846
- 'MUR',
847
- 'MVR',
848
- 'MWK',
849
- 'MXN',
850
- 'MYR',
851
- 'MZN',
852
- 'NAD',
853
- 'NGN',
854
- 'NIO',
855
- 'NOK',
856
- 'NPR',
857
- 'NZD',
858
- 'OMR',
859
- 'PAB',
860
- 'PEN',
861
- 'PGK',
862
- 'PHP',
863
- 'PKR',
864
- 'PLN',
865
- 'PYG',
866
- 'QAR',
867
- 'RON',
868
- 'RSD',
869
- 'RUB',
870
- 'RWF',
871
- 'SAR',
872
- 'SBD',
873
- 'SCR',
874
- 'SDG',
875
- 'SEK',
876
- 'SGD',
877
- 'SHP',
878
- 'SLL',
879
- 'SOS',
880
- 'SPL',
881
- 'SRD',
882
- 'STD',
883
- 'SVC',
884
- 'SYP',
885
- 'SZL',
886
- 'THB',
887
- 'TJS',
888
- 'TMT',
889
- 'TND',
890
- 'TOP',
891
- 'TRY',
892
- 'TTD',
893
- 'TVD',
894
- 'TWD',
895
- 'TZS',
896
- 'UAH',
897
- 'UGX',
898
- 'USD',
899
- 'UYU',
900
- 'UZS',
901
- 'VEF',
902
- 'VND',
903
- 'VUV',
904
- 'WST',
905
- 'XAF',
906
- 'XCD',
907
- 'XDR',
908
- 'XOF',
909
- 'XPF',
910
- 'YER',
911
- 'ZAR',
912
- 'ZMW',
913
- 'ZWD',
914
- 'BTC'
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
- })))
1017
+ id: z.string().optional(),
1018
+ number: z.string().optional(),
1019
+ status: z.string().optional(),
1020
+ total: z.number().optional(),
1021
+ currency: z.string().optional(),
1022
+ created: z.iso.datetime(),
1023
+ period_start: z.iso.datetime(),
1024
+ period_end: z.iso.datetime(),
1025
+ invoice_pdf: z.string().optional()
1026
+ });
1027
+ export const zMarketplaceListingFiles = z.object({
1028
+ chartYaml: z.string().optional(),
1029
+ valuesYaml: z.string().optional(),
1030
+ valuesSchemaJson: z.string().optional()
927
1031
  });
928
1032
  export const zMarketplaceListing = z.object({
929
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
930
1033
  name: z.string(),
931
- developer: z.string(),
932
- description: z.string(),
933
- logoUrl: z.string(),
934
- longDescription: z.string(),
935
- categories: z.array(z.string()),
1034
+ versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(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-]+)*))?$/)),
936
1035
  version_channels: z.array(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-]+)*))?$/)),
937
- value_schemas: z.array(z.object({
938
- version: 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-]+)*))?$/),
939
- schema: z.string(),
940
- placeholder: z.string()
941
- }))
1036
+ latestVersion: z.string(),
1037
+ metadata: z.object({
1038
+ name: z.string(),
1039
+ version: z.string(),
1040
+ description: z.string().optional(),
1041
+ appVersion: z.string().optional(),
1042
+ apiVersion: z.string().optional(),
1043
+ keywords: z.array(z.string()).optional(),
1044
+ home: z.string().optional(),
1045
+ icon: z.string().optional(),
1046
+ sources: z.array(z.string()).optional(),
1047
+ maintainers: z.array(z.object({
1048
+ name: z.string(),
1049
+ email: z.string().optional()
1050
+ })).optional()
1051
+ }).optional()
942
1052
  });
943
1053
  export const zOrganizationCreateInput = z.object({
944
1054
  email: z.email(),
@@ -949,7 +1059,7 @@ export const zOrganizationCreateInput = z.object({
949
1059
  });
950
1060
  export const zOrganization = z.object({
951
1061
  id: z.uuid(),
952
- name: z.optional(z.string().min(2).max(120)),
1062
+ name: z.string().min(2).max(120).optional(),
953
1063
  date_created: z.iso.datetime(),
954
1064
  quota: z.object({
955
1065
  basic_clusters_max: z.int().gte(0),
@@ -962,7 +1072,8 @@ export const zOrganization = z.object({
962
1072
  versions: z.array(z.object({
963
1073
  id: z.string(),
964
1074
  label: z.string()
965
- })).min(1)
1075
+ })).min(1),
1076
+ cfcr_storage_gb: z.int().gte(-1)
966
1077
  }),
967
1078
  status: z.enum([
968
1079
  'active',
@@ -973,9 +1084,7 @@ export const zOrganization = z.object({
973
1084
  export const zPaymentMethod = z.object({
974
1085
  id: z.uuid(),
975
1086
  setup: z.boolean(),
976
- type: z.enum([
977
- 'card'
978
- ]),
1087
+ type: z.enum(['card']),
979
1088
  last4: z.string(),
980
1089
  exp_month: z.int().gte(1).lte(12),
981
1090
  exp_year: z.int().gte(2024),
@@ -991,73 +1100,202 @@ export const zPaymentMethod = z.object({
991
1100
  'unknown'
992
1101
  ])
993
1102
  });
1103
+ export const zPlatformQuota = z.object({
1104
+ basic_clusters_max: z.int().gte(0),
1105
+ basic_clusters_available: z.int(),
1106
+ pro_clusters_max: z.int().gte(0),
1107
+ pro_clusters_available: z.int(),
1108
+ fleets_max: z.int().gte(0),
1109
+ cluster_tiers: z.array(z.string()).min(0),
1110
+ regions: z.array(z.string()).min(1),
1111
+ versions: z.array(z.object({
1112
+ id: z.string(),
1113
+ label: z.string()
1114
+ })).min(1),
1115
+ cfcr_storage_gb: z.int().gte(-1)
1116
+ });
1117
+ export const zRegistryRepository = z.object({
1118
+ name: z.string(),
1119
+ region: z.string(),
1120
+ uri: z.string()
1121
+ });
1122
+ export const zRegistryRepositoryWithTags = z.object({
1123
+ name: z.string(),
1124
+ region: z.string(),
1125
+ uri: z.string(),
1126
+ tags: z.array(z.object({
1127
+ name: z.string(),
1128
+ size: z.number(),
1129
+ mediaType: z.string().optional(),
1130
+ platforms: z.array(z.string()).optional()
1131
+ })),
1132
+ totalSize: z.number()
1133
+ });
1134
+ export const zRegistryTag = z.object({
1135
+ name: z.string(),
1136
+ digest: z.string(),
1137
+ mediaType: z.string().optional(),
1138
+ config: z.object({
1139
+ size: z.number()
1140
+ }).optional(),
1141
+ layers: z.array(z.object({
1142
+ digest: z.string().optional(),
1143
+ size: z.number()
1144
+ })).optional(),
1145
+ manifests: z.array(z.object({
1146
+ digest: z.string(),
1147
+ platform: z.object({
1148
+ architecture: z.string(),
1149
+ os: z.string(),
1150
+ variant: z.string().optional()
1151
+ }).optional(),
1152
+ layers: z.array(z.object({
1153
+ digest: z.string().optional(),
1154
+ size: z.number()
1155
+ })).optional(),
1156
+ size: z.number().optional()
1157
+ })).optional(),
1158
+ size: z.number(),
1159
+ region: z.string(),
1160
+ repository: z.string(),
1161
+ uri: z.string()
1162
+ });
1163
+ export const zTicketAttachment = z.object({
1164
+ id: z.string(),
1165
+ filename: z.string(),
1166
+ content_type: z.string(),
1167
+ size: z.int()
1168
+ });
1169
+ export const zTicketCreateInput = z.object({
1170
+ category: z.enum([
1171
+ 'billing',
1172
+ 'technical',
1173
+ 'general'
1174
+ ]),
1175
+ body: z.string().min(1).max(50000).regex(/\S/),
1176
+ properties: z.record(z.string(), z.unknown()).optional()
1177
+ });
1178
+ export const zTicketListResponse = z.object({
1179
+ items: z.array(z.object({
1180
+ id: z.string(),
1181
+ status: z.enum([
1182
+ 'waiting_on_us',
1183
+ 'waiting_on_user',
1184
+ 'closed'
1185
+ ]),
1186
+ category: z.enum([
1187
+ 'billing',
1188
+ 'technical',
1189
+ 'general'
1190
+ ]),
1191
+ summary: z.string(),
1192
+ closed_at: z.iso.datetime().optional(),
1193
+ date_created: z.iso.datetime(),
1194
+ date_updated: z.iso.datetime(),
1195
+ messages: z.array(z.object({
1196
+ id: z.string(),
1197
+ type: z.enum(['customer_reply', 'agent_reply']),
1198
+ body: z.string(),
1199
+ author_first_name: z.string().optional(),
1200
+ author_last_name: z.string().optional(),
1201
+ attachments: z.array(z.object({
1202
+ id: z.string(),
1203
+ filename: z.string(),
1204
+ content_type: z.string(),
1205
+ size: z.int()
1206
+ })).optional(),
1207
+ date_created: z.iso.datetime()
1208
+ })).optional()
1209
+ }))
1210
+ });
1211
+ export const zTicketMessageInput = z.object({
1212
+ body: z.string().min(1).max(50000).regex(/\S/)
1213
+ });
1214
+ export const zTicketMessage = z.object({
1215
+ id: z.string(),
1216
+ type: z.enum(['customer_reply', 'agent_reply']),
1217
+ body: z.string(),
1218
+ author_first_name: z.string().optional(),
1219
+ author_last_name: z.string().optional(),
1220
+ attachments: z.array(z.object({
1221
+ id: z.string(),
1222
+ filename: z.string(),
1223
+ content_type: z.string(),
1224
+ size: z.int()
1225
+ })).optional(),
1226
+ date_created: z.iso.datetime()
1227
+ });
1228
+ export const zTicket = z.object({
1229
+ id: z.string(),
1230
+ status: z.enum([
1231
+ 'waiting_on_us',
1232
+ 'waiting_on_user',
1233
+ 'closed'
1234
+ ]),
1235
+ category: z.enum([
1236
+ 'billing',
1237
+ 'technical',
1238
+ 'general'
1239
+ ]),
1240
+ summary: z.string(),
1241
+ closed_at: z.iso.datetime().optional(),
1242
+ date_created: z.iso.datetime(),
1243
+ date_updated: z.iso.datetime(),
1244
+ messages: z.array(z.object({
1245
+ id: z.string(),
1246
+ type: z.enum(['customer_reply', 'agent_reply']),
1247
+ body: z.string(),
1248
+ author_first_name: z.string().optional(),
1249
+ author_last_name: z.string().optional(),
1250
+ attachments: z.array(z.object({
1251
+ id: z.string(),
1252
+ filename: z.string(),
1253
+ content_type: z.string(),
1254
+ size: z.int()
1255
+ })).optional(),
1256
+ date_created: z.iso.datetime()
1257
+ })).optional()
1258
+ });
994
1259
  export const zTokenCreateInput = z.object({
995
1260
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
996
- role: z.enum([
997
- 'Administrator',
998
- 'User'
999
- ])
1261
+ role: z.enum(['Administrator', 'User'])
1000
1262
  });
1001
1263
  export const zToken = z.object({
1002
1264
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1003
- role: z.enum([
1004
- 'Administrator',
1005
- 'User'
1006
- ]),
1007
- id: z.optional(z.string()),
1008
- secret: z.optional(z.string()),
1265
+ role: z.enum(['Administrator', 'User']),
1266
+ id: z.string().optional(),
1267
+ secret: z.string().optional(),
1009
1268
  date_created: z.iso.datetime()
1010
1269
  });
1011
1270
  export const zTokenUpdateInput = z.object({
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([
1014
- 'Administrator',
1015
- 'User'
1016
- ]))
1271
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
1272
+ role: z.enum(['Administrator', 'User']).optional()
1273
+ });
1274
+ export const zUsageFacets = z.object({
1275
+ cluster_id: z.array(z.string()).optional(),
1276
+ product: z.array(z.string()).optional()
1277
+ });
1278
+ export const zUsageResponse = z.object({
1279
+ data: z.array(z.object({
1280
+ hour: z.string(),
1281
+ cluster_id: z.string(),
1282
+ product: z.string(),
1283
+ value: z.number(),
1284
+ price: z.number(),
1285
+ total: z.number()
1286
+ })),
1287
+ facets: z.object({
1288
+ cluster_id: z.array(z.string()).optional(),
1289
+ product: z.array(z.string()).optional()
1290
+ })
1017
1291
  });
1018
1292
  export const zUsage = z.object({
1019
- hour: z.optional(z.string()),
1020
- cluster_id: z.uuid(),
1021
- cluster_tier: z.enum([
1022
- 'basic',
1023
- 'pro',
1024
- ''
1025
- ]),
1026
- product: z.enum([
1027
- 'cfke_controlplane',
1028
- 'cfke_connected_nodes',
1029
- 'infra_compute',
1030
- 'infra_storage',
1031
- 'infra_loadbalancing',
1032
- 'infra_traffic',
1033
- 'cfcr_storage'
1034
- ]),
1035
- node_name: z.string(),
1036
- sku: z.string(),
1037
- cpu: z.union([
1038
- z.number(),
1039
- z.enum([
1040
- ''
1041
- ])
1042
- ]),
1043
- price: z.union([
1044
- z.number(),
1045
- z.enum([
1046
- ''
1047
- ])
1048
- ]),
1049
- value: z.union([
1050
- z.number(),
1051
- z.enum([
1052
- ''
1053
- ])
1054
- ]),
1055
- total: z.union([
1056
- z.number(),
1057
- z.enum([
1058
- ''
1059
- ])
1060
- ])
1293
+ hour: z.string(),
1294
+ cluster_id: z.string(),
1295
+ product: z.string(),
1296
+ value: z.number(),
1297
+ price: z.number(),
1298
+ total: z.number()
1061
1299
  });
1062
1300
  export const zUserCreateInput = z.object({
1063
1301
  email: z.email(),
@@ -1065,516 +1303,394 @@ export const zUserCreateInput = z.object({
1065
1303
  last_name: z.string().min(1).max(50),
1066
1304
  code: z.string(),
1067
1305
  password: z.string().min(8),
1068
- status: z.optional(z.enum([
1069
- 'active',
1070
- 'inactive'
1071
- ])),
1072
- role: z.optional(z.enum([
1073
- 'Administrator',
1074
- 'User'
1075
- ]))
1306
+ status: z.enum(['active', 'inactive']).optional(),
1307
+ role: z.enum(['Administrator', 'User']).optional()
1076
1308
  });
1077
1309
  export const zUser = z.object({
1078
1310
  email: z.email(),
1079
1311
  first_name: z.string().min(1).max(50),
1080
1312
  last_name: z.string().min(1).max(50),
1081
- role: z.enum([
1082
- 'Administrator',
1083
- 'User'
1084
- ]),
1085
- status: z.enum([
1086
- 'active',
1087
- 'inactive'
1088
- ]),
1313
+ role: z.enum(['Administrator', 'User']),
1314
+ status: z.enum(['active', 'inactive']),
1089
1315
  id: z.uuid(),
1090
1316
  date_created: z.iso.datetime()
1091
1317
  });
1092
1318
  export const zUserUpdateInput = z.object({
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([
1097
- 'Administrator',
1098
- 'User'
1099
- ])),
1100
- status: z.optional(z.enum([
1101
- 'active',
1102
- 'inactive'
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())
1109
- });
1110
- /**
1111
- * An array of usage records.
1112
- */
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())
1319
+ email: z.email().optional(),
1320
+ first_name: z.string().min(1).max(50).optional(),
1321
+ last_name: z.string().min(1).max(50).optional(),
1322
+ role: z.enum(['Administrator', 'User']).optional(),
1323
+ status: z.enum(['active', 'inactive']).optional()
1324
+ });
1325
+ export const zGetUsageQuery = z.object({
1326
+ granularity: z.enum([
1327
+ 'hourly',
1328
+ 'daily',
1329
+ 'monthly'
1330
+ ]).optional().default('daily')
1118
1331
  });
1119
1332
  /**
1120
- * Current balance of the organization in USD as a floating-point number.
1333
+ * Usage data with facets for filtering
1121
1334
  */
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
- });
1335
+ export const zGetUsageResponse = zUsageResponse;
1128
1336
  /**
1129
1337
  * Redacted payment card information.
1130
1338
  */
1131
1339
  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
- });
1137
1340
  /**
1138
1341
  * 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.
1139
1342
  *
1140
1343
  */
1141
1344
  export const zGetPaymentMethodSecretResponse = z.object({
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
- })
1345
+ id: z.string().optional()
1151
1346
  });
1152
1347
  /**
1153
1348
  * An array of usage records.
1154
1349
  */
1155
1350
  export const zListInvoicesResponse = z.array(zInvoice);
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
- });
1163
- /**
1164
- * Returns a single Invoice HTML representation under `html` property.
1165
- */
1166
- export const zGetInvoiceResponse = z.object({
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())
1173
- });
1174
1351
  /**
1175
1352
  * Returns a single object containing organization contact and billing address details.
1176
1353
  */
1177
1354
  export const zGetContactResponse = zBillingContact;
1178
- export const zUpdateContactData = z.object({
1179
- body: zBillingContact,
1180
- path: z.optional(z.never()),
1181
- query: z.optional(z.never())
1182
- });
1355
+ export const zUpdateContactBody = zBillingContact;
1183
1356
  /**
1184
1357
  * Successfully updated. Returns updated organization details.
1185
1358
  */
1186
1359
  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
- });
1192
1360
  /**
1193
1361
  * An array of the applied promotional credits records.
1194
1362
  */
1195
1363
  export const zGetCreditsResponse = z.array(zBillingCredits);
1196
- export const zRedeemCreditsData = z.object({
1197
- body: z.object({
1198
- code: z.optional(z.string())
1199
- }),
1200
- path: z.optional(z.never()),
1201
- query: z.optional(z.never())
1364
+ export const zRedeemCreditsBody = z.object({
1365
+ code: z.string().optional()
1202
1366
  });
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())
1367
+ export const zListChartsPath = z.object({
1368
+ cluster_id: z.string()
1209
1369
  });
1210
1370
  /**
1211
1371
  * An array of charts
1212
1372
  */
1213
1373
  export const zListChartsResponse = z.array(zChart);
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())
1374
+ export const zCreateChartBody = zChartCreateInput;
1375
+ export const zCreateChartPath = z.object({
1376
+ cluster_id: z.string()
1220
1377
  });
1221
1378
  /**
1222
1379
  * Successfully created. Returns created Chart ID.
1223
1380
  */
1224
1381
  export const zCreateChartResponse = 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())
1382
+ export const zDeleteChartPath = z.object({
1383
+ cluster_id: z.string(),
1384
+ chart_name: z.string()
1232
1385
  });
1233
1386
  /**
1234
1387
  * Successfully deleted.
1235
1388
  */
1236
1389
  export const zDeleteChartResponse = 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())
1390
+ export const zGetChartPath = z.object({
1391
+ cluster_id: z.string(),
1392
+ chart_name: z.string()
1244
1393
  });
1245
1394
  /**
1246
1395
  * Returns a single object containing chart details.
1247
1396
  */
1248
1397
  export const zGetChartResponse = zChart;
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())
1398
+ export const zUpdateChartBody = zChartUpdateInput;
1399
+ export const zUpdateChartPath = z.object({
1400
+ cluster_id: z.string(),
1401
+ chart_name: z.string()
1256
1402
  });
1257
1403
  /**
1258
1404
  * Successfully updated.
1259
1405
  */
1260
1406
  export const zUpdateChartResponse = 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())
1407
+ export const zListFleetsPath = z.object({
1408
+ cluster_id: z.string()
1267
1409
  });
1268
1410
  /**
1269
1411
  * An array of fleets
1270
1412
  */
1271
1413
  export const zListFleetsResponse = z.array(zFleet);
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())
1414
+ export const zCreateFleetBody = zFleetCreateInput;
1415
+ export const zCreateFleetPath = z.object({
1416
+ cluster_id: z.string()
1278
1417
  });
1279
1418
  /**
1280
1419
  * Successfully created. Returns created Fleet ID.
1281
1420
  */
1282
1421
  export const zCreateFleetResponse = 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())
1422
+ export const zDeleteFleetPath = z.object({
1423
+ cluster_id: z.string(),
1424
+ fleet_name: z.string()
1290
1425
  });
1291
1426
  /**
1292
1427
  * Successfully deleted.
1293
1428
  */
1294
1429
  export const zDeleteFleetResponse = 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())
1430
+ export const zGetFleetPath = z.object({
1431
+ cluster_id: z.string(),
1432
+ fleet_name: z.string()
1302
1433
  });
1303
1434
  /**
1304
1435
  * Returns a single object containing fleet details.
1305
1436
  */
1306
1437
  export const zGetFleetResponse = zFleet;
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())
1438
+ export const zUpdateFleetBody = zFleetUpdateInput;
1439
+ export const zUpdateFleetPath = z.object({
1440
+ cluster_id: z.string(),
1441
+ fleet_name: z.string()
1314
1442
  });
1315
1443
  /**
1316
1444
  * Successfully updated.
1317
1445
  */
1318
1446
  export const zUpdateFleetResponse = 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())
1447
+ export const zQueryClusterPath = z.object({
1448
+ cluster_id: z.string()
1330
1449
  });
1331
1450
  /**
1332
1451
  * An array of clusters
1333
1452
  */
1334
1453
  export const zListClustersResponse = z.array(zCluster);
1335
- export const zCreateClusterData = z.object({
1336
- body: zClusterCreateInput,
1337
- path: z.optional(z.never()),
1338
- query: z.optional(z.never())
1339
- });
1454
+ export const zCreateClusterBody = zClusterCreateInput;
1340
1455
  /**
1341
1456
  * Successfully created. Returns created Cluster ID.
1342
1457
  */
1343
1458
  export const zCreateClusterResponse = 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())
1459
+ export const zDeleteClusterPath = z.object({
1460
+ cluster_id: z.string()
1350
1461
  });
1351
1462
  /**
1352
1463
  * Successfully deleted.
1353
1464
  */
1354
1465
  export const zDeleteClusterResponse = 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())
1466
+ export const zGetClusterPath = z.object({
1467
+ cluster_id: z.string()
1361
1468
  });
1362
1469
  /**
1363
1470
  * Returns a single object containing cluster details.
1364
1471
  */
1365
1472
  export const zGetClusterResponse = zCluster;
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())
1473
+ export const zUpdateClusterBody = zClusterUpdateInput;
1474
+ export const zUpdateClusterPath = z.object({
1475
+ cluster_id: z.string()
1372
1476
  });
1373
1477
  /**
1374
1478
  * Successfully updated. Returns updated cluster details.
1375
1479
  */
1376
1480
  export const zUpdateClusterResponse = zCluster;
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())
1481
+ export const zGetJoinInformationPath = z.object({
1482
+ cluster_id: z.string()
1383
1483
  });
1384
1484
  /**
1385
1485
  * An object of cluster join information
1386
1486
  */
1387
1487
  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
- });
1393
1488
  /**
1394
1489
  * An array of invites
1395
1490
  */
1396
1491
  export const zListInvitesResponse = z.array(zInvite);
1397
- export const zCreateInviteData = z.object({
1398
- body: z.object({
1399
- email: z.optional(z.string())
1400
- }),
1401
- path: z.optional(z.never()),
1402
- query: z.optional(z.never())
1492
+ export const zCreateInviteBody = z.object({
1493
+ email: z.string().optional()
1403
1494
  });
1404
1495
  /**
1405
1496
  * Successfully created. Returns created invite details.
1406
1497
  */
1407
1498
  export const zCreateInviteResponse = zInvite;
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())
1499
+ export const zGetInvitePath = z.object({
1500
+ code: z.string()
1414
1501
  });
1415
1502
  /**
1416
1503
  * Returns a single object containing invite details.
1417
1504
  */
1418
1505
  export const zGetInviteResponse = zInvite;
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())
1506
+ export const zDeleteInvitePath = z.object({
1507
+ email: z.string()
1430
1508
  });
1431
1509
  /**
1432
1510
  * An array of chart listings in the marketplace.
1433
1511
  */
1434
1512
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
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())
1513
+ export const zGetMarketplaceChartFilesPath = z.object({
1514
+ chart_name: z.string(),
1515
+ version_channel: z.string()
1516
+ });
1517
+ /**
1518
+ * Returns an object containing the chart files for the latest matching version.
1519
+ */
1520
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1521
+ /**
1522
+ * JSON-RPC 2.0 request payload
1523
+ */
1524
+ export const zPostMcpBody = z.object({
1525
+ jsonrpc: z.string().optional(),
1526
+ method: z.string().optional(),
1527
+ id: z.union([
1528
+ z.string(),
1529
+ z.number()
1530
+ ]).optional(),
1531
+ params: z.record(z.string(), z.unknown()).optional()
1441
1532
  });
1442
1533
  /**
1443
- * Returns an object containing the chart listing details.
1534
+ * JSON-RPC 2.0 success or error response
1444
1535
  */
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())
1536
+ export const zPostMcpResponse = z.object({
1537
+ jsonrpc: z.string().optional(),
1538
+ id: z.union([
1539
+ z.string(),
1540
+ z.number()
1541
+ ]).optional(),
1542
+ result: z.record(z.string(), z.unknown()).optional(),
1543
+ error: z.object({
1544
+ code: z.int().optional(),
1545
+ message: z.string().optional()
1546
+ }).optional()
1450
1547
  });
1451
1548
  /**
1452
1549
  * Returns a single object containing organization details.
1453
1550
  */
1454
1551
  export const zGetOrganizationResponse = zOrganization;
1455
- export const zCreateOrganizationData = z.object({
1456
- body: zOrganizationCreateInput,
1457
- path: z.optional(z.never()),
1458
- query: z.optional(z.never())
1552
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1553
+ /**
1554
+ * List of repositories
1555
+ */
1556
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1557
+ export const zListTagsPath = z.object({
1558
+ region: z.string(),
1559
+ repository: z.string()
1560
+ });
1561
+ /**
1562
+ * Repository with tags
1563
+ */
1564
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1565
+ export const zDeleteTagPath = z.object({
1566
+ region: z.string(),
1567
+ repository: z.string(),
1568
+ tag: z.string()
1459
1569
  });
1460
- export const zListTokensData = z.object({
1461
- body: z.optional(z.never()),
1462
- path: z.optional(z.never()),
1463
- query: z.optional(z.never())
1570
+ export const zGetTagPath = z.object({
1571
+ region: z.string(),
1572
+ repository: z.string(),
1573
+ tag: z.string()
1464
1574
  });
1575
+ /**
1576
+ * Tag details
1577
+ */
1578
+ export const zGetTagResponse = zRegistryTag;
1579
+ /**
1580
+ * Tickets for the organization.
1581
+ */
1582
+ export const zListTicketsResponse = zTicketListResponse;
1583
+ export const zCreateTicketBody = z.object({
1584
+ payload: z.string().optional(),
1585
+ attachments: z.array(z.string()).optional()
1586
+ });
1587
+ /**
1588
+ * Ticket created.
1589
+ */
1590
+ export const zCreateTicketResponse = zTicket;
1591
+ export const zCloseTicketPath = z.object({
1592
+ ticket_id: z.string()
1593
+ });
1594
+ /**
1595
+ * Ticket closed.
1596
+ */
1597
+ export const zCloseTicketResponse = zTicket;
1598
+ export const zGetTicketPath = z.object({
1599
+ ticket_id: z.string()
1600
+ });
1601
+ /**
1602
+ * Ticket with messages (internal notes excluded).
1603
+ */
1604
+ export const zGetTicketResponse = zTicket;
1605
+ export const zReplyTicketBody = z.object({
1606
+ payload: z.string().optional(),
1607
+ attachments: z.array(z.string()).optional()
1608
+ });
1609
+ export const zReplyTicketPath = z.object({
1610
+ ticket_id: z.string()
1611
+ });
1612
+ /**
1613
+ * Reply appended.
1614
+ */
1615
+ export const zReplyTicketResponse = zTicketMessage;
1616
+ export const zGetTicketAttachmentPath = z.object({
1617
+ ticket_id: z.string(),
1618
+ attachment_id: z.string()
1619
+ });
1620
+ /**
1621
+ * Attachment binary stream.
1622
+ */
1623
+ export const zGetTicketAttachmentResponse = z.string();
1465
1624
  /**
1466
1625
  * Returns a list of access token details with masked secrets.
1467
1626
  */
1468
1627
  export const zListTokensResponse = z.array(zToken);
1469
- export const zCreateTokenData = z.object({
1470
- body: zTokenCreateInput,
1471
- path: z.optional(z.never()),
1472
- query: z.optional(z.never())
1473
- });
1628
+ export const zCreateTokenBody = zTokenCreateInput;
1474
1629
  /**
1475
1630
  * Successfully created. Returns created token details with unmasked/raw secret.
1476
1631
  */
1477
1632
  export const zCreateTokenResponse = zToken;
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())
1633
+ export const zDeleteTokenPath = z.object({
1634
+ token_id: z.string()
1484
1635
  });
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())
1636
+ export const zGetTokenPath = z.object({
1637
+ token_id: z.string()
1491
1638
  });
1492
1639
  /**
1493
1640
  * Returns access token details with masked secret.
1494
1641
  */
1495
1642
  export const zGetTokenResponse = zToken;
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())
1643
+ export const zUpdateTokenBody = zTokenUpdateInput;
1644
+ export const zUpdateTokenPath = z.object({
1645
+ token_id: z.string()
1502
1646
  });
1503
1647
  /**
1504
1648
  * Successfully updated. Returns updated token details with masked secret.
1505
1649
  */
1506
1650
  export const zUpdateTokenResponse = zToken;
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())
1651
+ export const zRegenerateTokenPath = z.object({
1652
+ token_id: z.string()
1513
1653
  });
1514
1654
  /**
1515
1655
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1516
1656
  */
1517
1657
  export const zRegenerateTokenResponse = zToken;
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())
1658
+ export const zListUserOrganizationsPath = z.object({
1659
+ email: z.string()
1524
1660
  });
1525
1661
  /**
1526
1662
  * An array of organizations the user belongs to.
1527
1663
  */
1528
1664
  export const zListUserOrganizationsResponse = z.array(z.object({
1529
- realm: z.optional(z.string()),
1530
- displayName: z.optional(z.string())
1665
+ realm: z.string().optional(),
1666
+ displayName: z.string().optional()
1531
1667
  }));
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
- });
1537
1668
  /**
1538
1669
  * An array of users
1539
1670
  */
1540
1671
  export const zListUsersResponse = z.array(zUser);
1541
- export const zCreateUserData = z.object({
1542
- body: zUserCreateInput,
1543
- path: z.optional(z.never()),
1544
- query: z.optional(z.never())
1545
- });
1672
+ export const zCreateUserBody = zUserCreateInput;
1546
1673
  /**
1547
1674
  * Successfully created. Returns created user details.
1548
1675
  */
1549
1676
  export const zCreateUserResponse = zUser;
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())
1677
+ export const zDeleteUserPath = z.object({
1678
+ user_id: z.string()
1556
1679
  });
1557
1680
  /**
1558
1681
  * User profile information
1559
1682
  */
1560
1683
  export const zDeleteUserResponse = zUser;
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())
1684
+ export const zGetUserPath = z.object({
1685
+ user_id: z.string()
1567
1686
  });
1568
1687
  /**
1569
1688
  * User profile information
1570
1689
  */
1571
1690
  export const zGetUserResponse = zUser;
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())
1691
+ export const zUpdateUserBody = zUserUpdateInput;
1692
+ export const zUpdateUserPath = z.object({
1693
+ user_id: z.string()
1578
1694
  });
1579
1695
  /**
1580
1696
  * Successfully created. Returns created user details.