@cloudfleet/sdk 0.0.1-90aedea → 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 (93) 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 +3 -0
  6. package/dist/client/client.gen.d.ts.map +1 -0
  7. package/dist/client/client.gen.js +220 -0
  8. package/dist/client/client.gen.js.map +1 -0
  9. package/dist/client/index.d.ts +8 -7
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/index.js +6 -4
  12. package/dist/client/index.js.map +1 -1
  13. package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
  14. package/dist/client/types.gen.d.ts.map +1 -0
  15. package/dist/client/types.gen.js +3 -0
  16. package/dist/client/types.gen.js.map +1 -0
  17. package/dist/client/{utils.d.ts → utils.gen.d.ts} +15 -23
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/{utils.js → utils.gen.js} +63 -119
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +3 -3
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +1 -3
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/{auth.js → auth.gen.js} +2 -1
  28. package/dist/core/auth.gen.js.map +1 -0
  29. package/dist/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/{params.d.ts → params.gen.d.ts} +11 -1
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/{params.js → params.gen.js} +20 -7
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
  40. package/dist/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/core/serverSentEvents.gen.js +133 -0
  48. package/dist/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/core/{types.d.ts → types.gen.d.ts} +16 -16
  50. package/dist/core/types.gen.d.ts.map +1 -0
  51. package/dist/core/types.gen.js +3 -0
  52. package/dist/core/types.gen.js.map +1 -0
  53. package/dist/core/utils.gen.d.ts +20 -0
  54. package/dist/core/utils.gen.d.ts.map +1 -0
  55. package/dist/core/utils.gen.js +88 -0
  56. package/dist/core/utils.gen.js.map +1 -0
  57. package/dist/schemas.gen.d.ts +1212 -558
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +2507 -652
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +130 -20
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +217 -164
  64. package/dist/sdk.gen.js.map +1 -1
  65. package/dist/services/kubernetes/api.d.ts +20 -20
  66. package/dist/types.gen.d.ts +1007 -336
  67. package/dist/types.gen.d.ts.map +1 -1
  68. package/dist/zod.gen.d.ts +2723 -1940
  69. package/dist/zod.gen.d.ts.map +1 -1
  70. package/dist/zod.gen.js +1202 -1084
  71. package/dist/zod.gen.js.map +1 -1
  72. package/package.json +29 -6
  73. package/dist/client/client.d.ts +0 -3
  74. package/dist/client/client.d.ts.map +0 -1
  75. package/dist/client/client.js +0 -146
  76. package/dist/client/client.js.map +0 -1
  77. package/dist/client/types.d.ts.map +0 -1
  78. package/dist/client/types.js +0 -2
  79. package/dist/client/types.js.map +0 -1
  80. package/dist/client/utils.d.ts.map +0 -1
  81. package/dist/client/utils.js.map +0 -1
  82. package/dist/core/auth.d.ts.map +0 -1
  83. package/dist/core/auth.js.map +0 -1
  84. package/dist/core/bodySerializer.d.ts +0 -18
  85. package/dist/core/bodySerializer.d.ts.map +0 -1
  86. package/dist/core/bodySerializer.js.map +0 -1
  87. package/dist/core/params.d.ts.map +0 -1
  88. package/dist/core/params.js.map +0 -1
  89. package/dist/core/pathSerializer.d.ts.map +0 -1
  90. package/dist/core/pathSerializer.js.map +0 -1
  91. package/dist/core/types.d.ts.map +0 -1
  92. package/dist/core/types.js +0 -2
  93. package/dist/core/types.js.map +0 -1
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,20 +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
- 'europe-central-1a'
209
- ])),
210
- version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)).default('1.x.x-cfke.x')
200
+ 'europe-central-1a',
201
+ 'northamerica-central-1a'
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')
211
209
  });
212
210
  export const zClusterJoinInformation = z.object({
213
211
  certificate_authority: z.string(),
214
212
  endpoint: z.url(),
213
+ cluster_dns: z.string(),
215
214
  auth_key: z.string(),
216
215
  bootstrap_token: z.string(),
217
216
  versions: z.object({
@@ -228,715 +227,828 @@ export const zClusterJoinInformation = z.object({
228
227
  });
229
228
  export const zCluster = z.object({
230
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
231
- tier: z.enum([
232
- 'basic',
233
- 'pro'
234
- ]),
235
- region: z.optional(z.enum([
236
- 'staging',
230
+ tier: z.enum(['basic', 'pro']),
231
+ region: z.enum([
232
+ 'staging-1a',
237
233
  'northamerica-central-1',
238
- 'europe-central-1a'
239
- ])),
240
- version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)).default('1.x.x-cfke.x'),
234
+ 'europe-central-1a',
235
+ 'northamerica-central-1a'
236
+ ]).optional().default('staging-1a'),
241
237
  id: z.uuid(),
242
238
  status: z.enum([
243
239
  'active',
240
+ 'disabled',
244
241
  'deleted',
245
242
  'creating',
246
243
  'deployed',
247
244
  'failed',
248
245
  'updating'
249
246
  ]),
250
- endpoint: z.optional(z.union([
247
+ endpoint: z.union([
251
248
  z.url(),
252
- z.enum([
253
- ''
254
- ])
255
- ])),
256
- certificate_ca: z.optional(z.string()),
257
- version_current: z.optional(z.string()),
258
- created_at: z.optional(z.string()),
259
- updated_at: z.optional(z.string()),
260
- ready: z.optional(z.boolean())
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()
261
257
  });
262
258
  export const zClusterUpdateInput = z.object({
263
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
264
- tier: z.enum([
265
- 'basic',
266
- 'pro'
267
- ]),
268
- version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/))
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()
269
262
  });
270
263
  export const zFleetCreateInput = z.object({
271
- limits: z.optional(z.object({
272
- cpu: z.number().gte(0)
273
- })),
274
- gcp: z.optional(z.object({
275
- 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),
276
269
  project: z.string()
277
- })),
278
- hetzner: z.optional(z.object({
279
- enabled: z.optional(z.boolean()).default(true),
280
- apiKey: z.string()
281
- })),
282
- aws: z.optional(z.object({
283
- 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),
284
277
  controllerRoleArn: z.string()
285
- })),
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(),
286
510
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
287
511
  });
288
512
  export const zFleet = z.object({
289
- limits: z.optional(z.object({
290
- cpu: z.number().gte(0)
291
- })),
292
- gcp: z.optional(z.object({
293
- 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),
294
518
  project: z.string()
295
- })),
296
- hetzner: z.optional(z.object({
297
- enabled: z.optional(z.boolean()).default(true),
298
- apiKey: z.string()
299
- })),
300
- aws: z.optional(z.object({
301
- 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),
302
526
  controllerRoleArn: z.string()
303
- })),
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(),
304
759
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
305
760
  });
306
761
  export const zFleetUpdateInput = z.object({
307
- limits: z.optional(z.object({
308
- cpu: z.number().gte(0)
309
- })),
310
- gcp: z.optional(z.object({
311
- 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),
312
767
  project: z.string()
313
- })),
314
- hetzner: z.optional(z.object({
315
- enabled: z.optional(z.boolean()).default(true),
316
- apiKey: z.string()
317
- })),
318
- aws: z.optional(z.object({
319
- 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),
320
775
  controllerRoleArn: z.string()
321
- }))
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()
322
1008
  });
323
1009
  export const zInvite = z.object({
324
- id: z.optional(z.string()),
325
- organization_id: z.optional(z.uuid()),
1010
+ id: z.string().optional(),
1011
+ organization_id: z.uuid().optional(),
326
1012
  date_created: z.iso.datetime(),
327
- email: z.optional(z.email()),
328
- code: z.optional(z.string())
1013
+ email: z.email().optional(),
1014
+ code: z.string().optional()
329
1015
  });
330
1016
  export const zInvoice = z.object({
331
- id: z.optional(z.uuid()),
332
- organizationId: z.optional(z.uuid()),
333
- status: z.optional(z.enum([
334
- 'DRAFT',
335
- 'COMMITTED',
336
- 'VOID'
337
- ])),
338
- amount: z.optional(z.number()),
339
- currency: z.optional(z.enum([
340
- 'AED',
341
- 'AFN',
342
- 'ALL',
343
- 'AMD',
344
- 'ANG',
345
- 'AOA',
346
- 'ARS',
347
- 'AUD',
348
- 'AWG',
349
- 'AZN',
350
- 'BAM',
351
- 'BBD',
352
- 'BDT',
353
- 'BGN',
354
- 'BHD',
355
- 'BIF',
356
- 'BMD',
357
- 'BND',
358
- 'BOB',
359
- 'BRL',
360
- 'BSD',
361
- 'BTN',
362
- 'BWP',
363
- 'BYR',
364
- 'BZD',
365
- 'CAD',
366
- 'CDF',
367
- 'CHF',
368
- 'CLP',
369
- 'CNY',
370
- 'COP',
371
- 'CRC',
372
- 'CUC',
373
- 'CUP',
374
- 'CVE',
375
- 'CZK',
376
- 'DJF',
377
- 'DKK',
378
- 'DOP',
379
- 'DZD',
380
- 'EGP',
381
- 'ERN',
382
- 'ETB',
383
- 'EUR',
384
- 'FJD',
385
- 'FKP',
386
- 'GBP',
387
- 'GEL',
388
- 'GGP',
389
- 'GHS',
390
- 'GIP',
391
- 'GMD',
392
- 'GNF',
393
- 'GTQ',
394
- 'GYD',
395
- 'HKD',
396
- 'HNL',
397
- 'HRK',
398
- 'HTG',
399
- 'HUF',
400
- 'IDR',
401
- 'ILS',
402
- 'IMP',
403
- 'INR',
404
- 'IQD',
405
- 'IRR',
406
- 'ISK',
407
- 'JEP',
408
- 'JMD',
409
- 'JOD',
410
- 'JPY',
411
- 'KES',
412
- 'KGS',
413
- 'KHR',
414
- 'KMF',
415
- 'KPW',
416
- 'KRW',
417
- 'KWD',
418
- 'KYD',
419
- 'KZT',
420
- 'LAK',
421
- 'LBP',
422
- 'LKR',
423
- 'LRD',
424
- 'LSL',
425
- 'LTL',
426
- 'LVL',
427
- 'LYD',
428
- 'MAD',
429
- 'MDL',
430
- 'MGA',
431
- 'MKD',
432
- 'MMK',
433
- 'MNT',
434
- 'MOP',
435
- 'MRO',
436
- 'MUR',
437
- 'MVR',
438
- 'MWK',
439
- 'MXN',
440
- 'MYR',
441
- 'MZN',
442
- 'NAD',
443
- 'NGN',
444
- 'NIO',
445
- 'NOK',
446
- 'NPR',
447
- 'NZD',
448
- 'OMR',
449
- 'PAB',
450
- 'PEN',
451
- 'PGK',
452
- 'PHP',
453
- 'PKR',
454
- 'PLN',
455
- 'PYG',
456
- 'QAR',
457
- 'RON',
458
- 'RSD',
459
- 'RUB',
460
- 'RWF',
461
- 'SAR',
462
- 'SBD',
463
- 'SCR',
464
- 'SDG',
465
- 'SEK',
466
- 'SGD',
467
- 'SHP',
468
- 'SLL',
469
- 'SOS',
470
- 'SPL',
471
- 'SRD',
472
- 'STD',
473
- 'SVC',
474
- 'SYP',
475
- 'SZL',
476
- 'THB',
477
- 'TJS',
478
- 'TMT',
479
- 'TND',
480
- 'TOP',
481
- 'TRY',
482
- 'TTD',
483
- 'TVD',
484
- 'TWD',
485
- 'TZS',
486
- 'UAH',
487
- 'UGX',
488
- 'USD',
489
- 'UYU',
490
- 'UZS',
491
- 'VEF',
492
- 'VND',
493
- 'VUV',
494
- 'WST',
495
- 'XAF',
496
- 'XCD',
497
- 'XDR',
498
- 'XOF',
499
- 'XPF',
500
- 'YER',
501
- 'ZAR',
502
- 'ZMW',
503
- 'ZWD',
504
- 'BTC'
505
- ])),
506
- creditAdj: z.optional(z.number()),
507
- refundAdj: z.optional(z.number()),
508
- invoiceDate: z.optional(z.string()),
509
- targetDate: z.optional(z.string()),
510
- invoiceNumber: z.optional(z.string()),
511
- balance: z.optional(z.number()),
512
- bundleKeys: z.optional(z.string()),
513
- credits: z.optional(z.array(z.object({
514
- id: z.optional(z.uuid()),
515
- linkedInvoiceItemId: z.optional(z.uuid()),
516
- productName: z.optional(z.string()),
517
- planName: z.optional(z.string()),
518
- phaseName: z.optional(z.string()),
519
- usageName: z.optional(z.string()),
520
- prettyProductName: z.optional(z.string()),
521
- prettyPlanName: z.optional(z.string()),
522
- prettyPhaseName: z.optional(z.string()),
523
- prettyUsageName: z.optional(z.string()),
524
- itemType: z.optional(z.enum([
525
- 'EXTERNAL_CHARGE',
526
- 'FIXED',
527
- 'RECURRING',
528
- 'REPAIR_ADJ',
529
- 'CBA_ADJ',
530
- 'CREDIT_ADJ',
531
- 'ITEM_ADJ',
532
- 'USAGE',
533
- 'TAX',
534
- 'PARENT_SUMMARY'
535
- ])),
536
- description: z.optional(z.string()),
537
- startDate: z.optional(z.string()),
538
- endDate: z.optional(z.string()),
539
- amount: z.optional(z.number()),
540
- rate: z.optional(z.number()),
541
- currency: z.optional(z.enum([
542
- 'AED',
543
- 'AFN',
544
- 'ALL',
545
- 'AMD',
546
- 'ANG',
547
- 'AOA',
548
- 'ARS',
549
- 'AUD',
550
- 'AWG',
551
- 'AZN',
552
- 'BAM',
553
- 'BBD',
554
- 'BDT',
555
- 'BGN',
556
- 'BHD',
557
- 'BIF',
558
- 'BMD',
559
- 'BND',
560
- 'BOB',
561
- 'BRL',
562
- 'BSD',
563
- 'BTN',
564
- 'BWP',
565
- 'BYR',
566
- 'BZD',
567
- 'CAD',
568
- 'CDF',
569
- 'CHF',
570
- 'CLP',
571
- 'CNY',
572
- 'COP',
573
- 'CRC',
574
- 'CUC',
575
- 'CUP',
576
- 'CVE',
577
- 'CZK',
578
- 'DJF',
579
- 'DKK',
580
- 'DOP',
581
- 'DZD',
582
- 'EGP',
583
- 'ERN',
584
- 'ETB',
585
- 'EUR',
586
- 'FJD',
587
- 'FKP',
588
- 'GBP',
589
- 'GEL',
590
- 'GGP',
591
- 'GHS',
592
- 'GIP',
593
- 'GMD',
594
- 'GNF',
595
- 'GTQ',
596
- 'GYD',
597
- 'HKD',
598
- 'HNL',
599
- 'HRK',
600
- 'HTG',
601
- 'HUF',
602
- 'IDR',
603
- 'ILS',
604
- 'IMP',
605
- 'INR',
606
- 'IQD',
607
- 'IRR',
608
- 'ISK',
609
- 'JEP',
610
- 'JMD',
611
- 'JOD',
612
- 'JPY',
613
- 'KES',
614
- 'KGS',
615
- 'KHR',
616
- 'KMF',
617
- 'KPW',
618
- 'KRW',
619
- 'KWD',
620
- 'KYD',
621
- 'KZT',
622
- 'LAK',
623
- 'LBP',
624
- 'LKR',
625
- 'LRD',
626
- 'LSL',
627
- 'LTL',
628
- 'LVL',
629
- 'LYD',
630
- 'MAD',
631
- 'MDL',
632
- 'MGA',
633
- 'MKD',
634
- 'MMK',
635
- 'MNT',
636
- 'MOP',
637
- 'MRO',
638
- 'MUR',
639
- 'MVR',
640
- 'MWK',
641
- 'MXN',
642
- 'MYR',
643
- 'MZN',
644
- 'NAD',
645
- 'NGN',
646
- 'NIO',
647
- 'NOK',
648
- 'NPR',
649
- 'NZD',
650
- 'OMR',
651
- 'PAB',
652
- 'PEN',
653
- 'PGK',
654
- 'PHP',
655
- 'PKR',
656
- 'PLN',
657
- 'PYG',
658
- 'QAR',
659
- 'RON',
660
- 'RSD',
661
- 'RUB',
662
- 'RWF',
663
- 'SAR',
664
- 'SBD',
665
- 'SCR',
666
- 'SDG',
667
- 'SEK',
668
- 'SGD',
669
- 'SHP',
670
- 'SLL',
671
- 'SOS',
672
- 'SPL',
673
- 'SRD',
674
- 'STD',
675
- 'SVC',
676
- 'SYP',
677
- 'SZL',
678
- 'THB',
679
- 'TJS',
680
- 'TMT',
681
- 'TND',
682
- 'TOP',
683
- 'TRY',
684
- 'TTD',
685
- 'TVD',
686
- 'TWD',
687
- 'TZS',
688
- 'UAH',
689
- 'UGX',
690
- 'USD',
691
- 'UYU',
692
- 'UZS',
693
- 'VEF',
694
- 'VND',
695
- 'VUV',
696
- 'WST',
697
- 'XAF',
698
- 'XCD',
699
- 'XDR',
700
- 'XOF',
701
- 'XPF',
702
- 'YER',
703
- 'ZAR',
704
- 'ZMW',
705
- 'ZWD',
706
- 'BTC'
707
- ])),
708
- quantity: z.optional(z.number()),
709
- itemDetails: z.optional(z.string()),
710
- catalogEffectiveDate: z.optional(z.string()),
711
- childItems: z.optional(z.array(z.union([
712
- z.array(z.unknown()),
713
- z.boolean(),
714
- z.number(),
715
- z.object({}),
716
- z.string()
717
- ])))
718
- }))),
719
- items: z.optional(z.array(z.object({
720
- id: z.optional(z.uuid()),
721
- linkedInvoiceItemId: z.optional(z.uuid()),
722
- productName: z.optional(z.string()),
723
- planName: z.optional(z.string()),
724
- phaseName: z.optional(z.string()),
725
- usageName: z.optional(z.string()),
726
- prettyProductName: z.optional(z.string()),
727
- prettyPlanName: z.optional(z.string()),
728
- prettyPhaseName: z.optional(z.string()),
729
- prettyUsageName: z.optional(z.string()),
730
- itemType: z.optional(z.enum([
731
- 'EXTERNAL_CHARGE',
732
- 'FIXED',
733
- 'RECURRING',
734
- 'REPAIR_ADJ',
735
- 'CBA_ADJ',
736
- 'CREDIT_ADJ',
737
- 'ITEM_ADJ',
738
- 'USAGE',
739
- 'TAX',
740
- 'PARENT_SUMMARY'
741
- ])),
742
- description: z.optional(z.string()),
743
- startDate: z.optional(z.string()),
744
- endDate: z.optional(z.string()),
745
- amount: z.optional(z.number()),
746
- rate: z.optional(z.number()),
747
- currency: z.optional(z.enum([
748
- 'AED',
749
- 'AFN',
750
- 'ALL',
751
- 'AMD',
752
- 'ANG',
753
- 'AOA',
754
- 'ARS',
755
- 'AUD',
756
- 'AWG',
757
- 'AZN',
758
- 'BAM',
759
- 'BBD',
760
- 'BDT',
761
- 'BGN',
762
- 'BHD',
763
- 'BIF',
764
- 'BMD',
765
- 'BND',
766
- 'BOB',
767
- 'BRL',
768
- 'BSD',
769
- 'BTN',
770
- 'BWP',
771
- 'BYR',
772
- 'BZD',
773
- 'CAD',
774
- 'CDF',
775
- 'CHF',
776
- 'CLP',
777
- 'CNY',
778
- 'COP',
779
- 'CRC',
780
- 'CUC',
781
- 'CUP',
782
- 'CVE',
783
- 'CZK',
784
- 'DJF',
785
- 'DKK',
786
- 'DOP',
787
- 'DZD',
788
- 'EGP',
789
- 'ERN',
790
- 'ETB',
791
- 'EUR',
792
- 'FJD',
793
- 'FKP',
794
- 'GBP',
795
- 'GEL',
796
- 'GGP',
797
- 'GHS',
798
- 'GIP',
799
- 'GMD',
800
- 'GNF',
801
- 'GTQ',
802
- 'GYD',
803
- 'HKD',
804
- 'HNL',
805
- 'HRK',
806
- 'HTG',
807
- 'HUF',
808
- 'IDR',
809
- 'ILS',
810
- 'IMP',
811
- 'INR',
812
- 'IQD',
813
- 'IRR',
814
- 'ISK',
815
- 'JEP',
816
- 'JMD',
817
- 'JOD',
818
- 'JPY',
819
- 'KES',
820
- 'KGS',
821
- 'KHR',
822
- 'KMF',
823
- 'KPW',
824
- 'KRW',
825
- 'KWD',
826
- 'KYD',
827
- 'KZT',
828
- 'LAK',
829
- 'LBP',
830
- 'LKR',
831
- 'LRD',
832
- 'LSL',
833
- 'LTL',
834
- 'LVL',
835
- 'LYD',
836
- 'MAD',
837
- 'MDL',
838
- 'MGA',
839
- 'MKD',
840
- 'MMK',
841
- 'MNT',
842
- 'MOP',
843
- 'MRO',
844
- 'MUR',
845
- 'MVR',
846
- 'MWK',
847
- 'MXN',
848
- 'MYR',
849
- 'MZN',
850
- 'NAD',
851
- 'NGN',
852
- 'NIO',
853
- 'NOK',
854
- 'NPR',
855
- 'NZD',
856
- 'OMR',
857
- 'PAB',
858
- 'PEN',
859
- 'PGK',
860
- 'PHP',
861
- 'PKR',
862
- 'PLN',
863
- 'PYG',
864
- 'QAR',
865
- 'RON',
866
- 'RSD',
867
- 'RUB',
868
- 'RWF',
869
- 'SAR',
870
- 'SBD',
871
- 'SCR',
872
- 'SDG',
873
- 'SEK',
874
- 'SGD',
875
- 'SHP',
876
- 'SLL',
877
- 'SOS',
878
- 'SPL',
879
- 'SRD',
880
- 'STD',
881
- 'SVC',
882
- 'SYP',
883
- 'SZL',
884
- 'THB',
885
- 'TJS',
886
- 'TMT',
887
- 'TND',
888
- 'TOP',
889
- 'TRY',
890
- 'TTD',
891
- 'TVD',
892
- 'TWD',
893
- 'TZS',
894
- 'UAH',
895
- 'UGX',
896
- 'USD',
897
- 'UYU',
898
- 'UZS',
899
- 'VEF',
900
- 'VND',
901
- 'VUV',
902
- 'WST',
903
- 'XAF',
904
- 'XCD',
905
- 'XDR',
906
- 'XOF',
907
- 'XPF',
908
- 'YER',
909
- 'ZAR',
910
- 'ZMW',
911
- 'ZWD',
912
- 'BTC'
913
- ])),
914
- quantity: z.optional(z.number()),
915
- itemDetails: z.optional(z.string()),
916
- catalogEffectiveDate: z.optional(z.string()),
917
- childItems: z.optional(z.array(z.union([
918
- z.array(z.unknown()),
919
- z.boolean(),
920
- z.number(),
921
- z.object({}),
922
- z.string()
923
- ])))
924
- })))
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()
925
1031
  });
926
1032
  export const zMarketplaceListing = z.object({
927
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
928
1033
  name: z.string(),
929
- developer: z.string(),
930
- description: z.string(),
931
- logoUrl: z.string(),
932
- longDescription: z.string(),
933
- 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-]+)*))?$/)),
934
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-]+)*))?$/)),
935
- value_schemas: z.array(z.object({
936
- 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-]+)*))?$/),
937
- schema: z.string(),
938
- placeholder: z.string()
939
- }))
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()
940
1052
  });
941
1053
  export const zOrganizationCreateInput = z.object({
942
1054
  email: z.email(),
@@ -947,7 +1059,7 @@ export const zOrganizationCreateInput = z.object({
947
1059
  });
948
1060
  export const zOrganization = z.object({
949
1061
  id: z.uuid(),
950
- name: z.optional(z.string().min(2).max(120)),
1062
+ name: z.string().min(2).max(120).optional(),
951
1063
  date_created: z.iso.datetime(),
952
1064
  quota: z.object({
953
1065
  basic_clusters_max: z.int().gte(0),
@@ -960,7 +1072,8 @@ export const zOrganization = z.object({
960
1072
  versions: z.array(z.object({
961
1073
  id: z.string(),
962
1074
  label: z.string()
963
- })).min(1)
1075
+ })).min(1),
1076
+ cfcr_storage_gb: z.int().gte(-1)
964
1077
  }),
965
1078
  status: z.enum([
966
1079
  'active',
@@ -971,9 +1084,7 @@ export const zOrganization = z.object({
971
1084
  export const zPaymentMethod = z.object({
972
1085
  id: z.uuid(),
973
1086
  setup: z.boolean(),
974
- type: z.enum([
975
- 'card'
976
- ]),
1087
+ type: z.enum(['card']),
977
1088
  last4: z.string(),
978
1089
  exp_month: z.int().gte(1).lte(12),
979
1090
  exp_year: z.int().gte(2024),
@@ -989,73 +1100,202 @@ export const zPaymentMethod = z.object({
989
1100
  'unknown'
990
1101
  ])
991
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
+ });
992
1259
  export const zTokenCreateInput = z.object({
993
1260
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
994
- role: z.enum([
995
- 'Administrator',
996
- 'User'
997
- ])
1261
+ role: z.enum(['Administrator', 'User'])
998
1262
  });
999
1263
  export const zToken = z.object({
1000
1264
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1001
- role: z.enum([
1002
- 'Administrator',
1003
- 'User'
1004
- ]),
1005
- id: z.optional(z.string()),
1006
- secret: z.optional(z.string()),
1265
+ role: z.enum(['Administrator', 'User']),
1266
+ id: z.string().optional(),
1267
+ secret: z.string().optional(),
1007
1268
  date_created: z.iso.datetime()
1008
1269
  });
1009
1270
  export const zTokenUpdateInput = z.object({
1010
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
1011
- role: z.optional(z.enum([
1012
- 'Administrator',
1013
- 'User'
1014
- ]))
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
+ })
1015
1291
  });
1016
1292
  export const zUsage = z.object({
1017
- hour: z.optional(z.string()),
1018
- cluster_id: z.uuid(),
1019
- cluster_tier: z.enum([
1020
- 'basic',
1021
- 'pro',
1022
- ''
1023
- ]),
1024
- product: z.enum([
1025
- 'cfke_controlplane',
1026
- 'cfke_connected_nodes',
1027
- 'infra_compute',
1028
- 'infra_storage',
1029
- 'infra_loadbalancing',
1030
- 'infra_traffic',
1031
- 'cfcr_storage'
1032
- ]),
1033
- node_name: z.string(),
1034
- sku: z.string(),
1035
- cpu: z.union([
1036
- z.number(),
1037
- z.enum([
1038
- ''
1039
- ])
1040
- ]),
1041
- price: z.union([
1042
- z.number(),
1043
- z.enum([
1044
- ''
1045
- ])
1046
- ]),
1047
- value: z.union([
1048
- z.number(),
1049
- z.enum([
1050
- ''
1051
- ])
1052
- ]),
1053
- total: z.union([
1054
- z.number(),
1055
- z.enum([
1056
- ''
1057
- ])
1058
- ])
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()
1059
1299
  });
1060
1300
  export const zUserCreateInput = z.object({
1061
1301
  email: z.email(),
@@ -1063,516 +1303,394 @@ export const zUserCreateInput = z.object({
1063
1303
  last_name: z.string().min(1).max(50),
1064
1304
  code: z.string(),
1065
1305
  password: z.string().min(8),
1066
- status: z.optional(z.enum([
1067
- 'active',
1068
- 'inactive'
1069
- ])),
1070
- role: z.optional(z.enum([
1071
- 'Administrator',
1072
- 'User'
1073
- ]))
1306
+ status: z.enum(['active', 'inactive']).optional(),
1307
+ role: z.enum(['Administrator', 'User']).optional()
1074
1308
  });
1075
1309
  export const zUser = z.object({
1076
1310
  email: z.email(),
1077
1311
  first_name: z.string().min(1).max(50),
1078
1312
  last_name: z.string().min(1).max(50),
1079
- role: z.enum([
1080
- 'Administrator',
1081
- 'User'
1082
- ]),
1083
- status: z.enum([
1084
- 'active',
1085
- 'inactive'
1086
- ]),
1313
+ role: z.enum(['Administrator', 'User']),
1314
+ status: z.enum(['active', 'inactive']),
1087
1315
  id: z.uuid(),
1088
1316
  date_created: z.iso.datetime()
1089
1317
  });
1090
1318
  export const zUserUpdateInput = z.object({
1091
- email: z.optional(z.email()),
1092
- first_name: z.optional(z.string().min(1).max(50)),
1093
- last_name: z.optional(z.string().min(1).max(50)),
1094
- role: z.optional(z.enum([
1095
- 'Administrator',
1096
- 'User'
1097
- ])),
1098
- status: z.optional(z.enum([
1099
- 'active',
1100
- 'inactive'
1101
- ]))
1102
- });
1103
- export const zGetUsageData = z.object({
1104
- body: z.optional(z.never()),
1105
- path: z.optional(z.never()),
1106
- query: z.optional(z.never())
1107
- });
1108
- /**
1109
- * An array of usage records.
1110
- */
1111
- export const zGetUsageResponse = z.array(zUsage);
1112
- export const zGetBalanceData = z.object({
1113
- body: z.optional(z.never()),
1114
- path: z.optional(z.never()),
1115
- query: z.optional(z.never())
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')
1116
1331
  });
1117
1332
  /**
1118
- * Current balance of the organization in USD as a floating-point number.
1333
+ * Usage data with facets for filtering
1119
1334
  */
1120
- export const zGetBalanceResponse = z.number();
1121
- export const zGetPaymentMethodData = z.object({
1122
- body: z.optional(z.never()),
1123
- path: z.optional(z.never()),
1124
- query: z.optional(z.never())
1125
- });
1335
+ export const zGetUsageResponse = zUsageResponse;
1126
1336
  /**
1127
1337
  * Redacted payment card information.
1128
1338
  */
1129
1339
  export const zGetPaymentMethodResponse = zPaymentMethod;
1130
- export const zGetPaymentMethodSecretData = z.object({
1131
- body: z.optional(z.never()),
1132
- path: z.optional(z.never()),
1133
- query: z.optional(z.never())
1134
- });
1135
1340
  /**
1136
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.
1137
1342
  *
1138
1343
  */
1139
1344
  export const zGetPaymentMethodSecretResponse = z.object({
1140
- id: z.optional(z.string())
1141
- });
1142
- export const zListInvoicesData = z.object({
1143
- body: z.optional(z.never()),
1144
- path: z.optional(z.never()),
1145
- query: z.object({
1146
- start_date: z.string(),
1147
- end_date: z.string()
1148
- })
1345
+ id: z.string().optional()
1149
1346
  });
1150
1347
  /**
1151
1348
  * An array of usage records.
1152
1349
  */
1153
1350
  export const zListInvoicesResponse = z.array(zInvoice);
1154
- export const zGetInvoiceData = z.object({
1155
- body: z.optional(z.never()),
1156
- path: z.object({
1157
- id: z.string()
1158
- }),
1159
- query: z.optional(z.never())
1160
- });
1161
- /**
1162
- * Returns a single Invoice HTML representation under `html` property.
1163
- */
1164
- export const zGetInvoiceResponse = z.object({
1165
- html: z.optional(z.string())
1166
- });
1167
- export const zGetContactData = z.object({
1168
- body: z.optional(z.never()),
1169
- path: z.optional(z.never()),
1170
- query: z.optional(z.never())
1171
- });
1172
1351
  /**
1173
1352
  * Returns a single object containing organization contact and billing address details.
1174
1353
  */
1175
1354
  export const zGetContactResponse = zBillingContact;
1176
- export const zUpdateContactData = z.object({
1177
- body: zBillingContact,
1178
- path: z.optional(z.never()),
1179
- query: z.optional(z.never())
1180
- });
1355
+ export const zUpdateContactBody = zBillingContact;
1181
1356
  /**
1182
1357
  * Successfully updated. Returns updated organization details.
1183
1358
  */
1184
1359
  export const zUpdateContactResponse = zBillingContact;
1185
- export const zGetCreditsData = z.object({
1186
- body: z.optional(z.never()),
1187
- path: z.optional(z.never()),
1188
- query: z.optional(z.never())
1189
- });
1190
1360
  /**
1191
1361
  * An array of the applied promotional credits records.
1192
1362
  */
1193
1363
  export const zGetCreditsResponse = z.array(zBillingCredits);
1194
- export const zRedeemCreditsData = z.object({
1195
- body: z.object({
1196
- code: z.optional(z.string())
1197
- }),
1198
- path: z.optional(z.never()),
1199
- query: z.optional(z.never())
1364
+ export const zRedeemCreditsBody = z.object({
1365
+ code: z.string().optional()
1200
1366
  });
1201
- export const zListChartsData = z.object({
1202
- body: z.optional(z.never()),
1203
- path: z.object({
1204
- cluster_id: z.string()
1205
- }),
1206
- query: z.optional(z.never())
1367
+ export const zListChartsPath = z.object({
1368
+ cluster_id: z.string()
1207
1369
  });
1208
1370
  /**
1209
1371
  * An array of charts
1210
1372
  */
1211
1373
  export const zListChartsResponse = z.array(zChart);
1212
- export const zCreateChartData = z.object({
1213
- body: zChartCreateInput,
1214
- path: z.object({
1215
- cluster_id: z.string()
1216
- }),
1217
- query: z.optional(z.never())
1374
+ export const zCreateChartBody = zChartCreateInput;
1375
+ export const zCreateChartPath = z.object({
1376
+ cluster_id: z.string()
1218
1377
  });
1219
1378
  /**
1220
1379
  * Successfully created. Returns created Chart ID.
1221
1380
  */
1222
1381
  export const zCreateChartResponse = z.string();
1223
- export const zDeleteChartData = z.object({
1224
- body: z.optional(z.never()),
1225
- path: z.object({
1226
- cluster_id: z.string(),
1227
- chart_name: z.string()
1228
- }),
1229
- query: z.optional(z.never())
1382
+ export const zDeleteChartPath = z.object({
1383
+ cluster_id: z.string(),
1384
+ chart_name: z.string()
1230
1385
  });
1231
1386
  /**
1232
1387
  * Successfully deleted.
1233
1388
  */
1234
1389
  export const zDeleteChartResponse = z.string();
1235
- export const zGetChartData = z.object({
1236
- body: z.optional(z.never()),
1237
- path: z.object({
1238
- cluster_id: z.string(),
1239
- chart_name: z.string()
1240
- }),
1241
- query: z.optional(z.never())
1390
+ export const zGetChartPath = z.object({
1391
+ cluster_id: z.string(),
1392
+ chart_name: z.string()
1242
1393
  });
1243
1394
  /**
1244
1395
  * Returns a single object containing chart details.
1245
1396
  */
1246
1397
  export const zGetChartResponse = zChart;
1247
- export const zUpdateChartData = z.object({
1248
- body: zChartUpdateInput,
1249
- path: z.object({
1250
- cluster_id: z.string(),
1251
- chart_name: z.string()
1252
- }),
1253
- query: z.optional(z.never())
1398
+ export const zUpdateChartBody = zChartUpdateInput;
1399
+ export const zUpdateChartPath = z.object({
1400
+ cluster_id: z.string(),
1401
+ chart_name: z.string()
1254
1402
  });
1255
1403
  /**
1256
1404
  * Successfully updated.
1257
1405
  */
1258
1406
  export const zUpdateChartResponse = z.string();
1259
- export const zListFleetsData = z.object({
1260
- body: z.optional(z.never()),
1261
- path: z.object({
1262
- cluster_id: z.string()
1263
- }),
1264
- query: z.optional(z.never())
1407
+ export const zListFleetsPath = z.object({
1408
+ cluster_id: z.string()
1265
1409
  });
1266
1410
  /**
1267
1411
  * An array of fleets
1268
1412
  */
1269
1413
  export const zListFleetsResponse = z.array(zFleet);
1270
- export const zCreateFleetData = z.object({
1271
- body: zFleetCreateInput,
1272
- path: z.object({
1273
- cluster_id: z.string()
1274
- }),
1275
- query: z.optional(z.never())
1414
+ export const zCreateFleetBody = zFleetCreateInput;
1415
+ export const zCreateFleetPath = z.object({
1416
+ cluster_id: z.string()
1276
1417
  });
1277
1418
  /**
1278
1419
  * Successfully created. Returns created Fleet ID.
1279
1420
  */
1280
1421
  export const zCreateFleetResponse = z.string();
1281
- export const zDeleteFleetData = z.object({
1282
- body: z.optional(z.never()),
1283
- path: z.object({
1284
- cluster_id: z.string(),
1285
- fleet_name: z.string()
1286
- }),
1287
- query: z.optional(z.never())
1422
+ export const zDeleteFleetPath = z.object({
1423
+ cluster_id: z.string(),
1424
+ fleet_name: z.string()
1288
1425
  });
1289
1426
  /**
1290
1427
  * Successfully deleted.
1291
1428
  */
1292
1429
  export const zDeleteFleetResponse = z.string();
1293
- export const zGetFleetData = z.object({
1294
- body: z.optional(z.never()),
1295
- path: z.object({
1296
- cluster_id: z.string(),
1297
- fleet_name: z.string()
1298
- }),
1299
- query: z.optional(z.never())
1430
+ export const zGetFleetPath = z.object({
1431
+ cluster_id: z.string(),
1432
+ fleet_name: z.string()
1300
1433
  });
1301
1434
  /**
1302
1435
  * Returns a single object containing fleet details.
1303
1436
  */
1304
1437
  export const zGetFleetResponse = zFleet;
1305
- export const zUpdateFleetData = z.object({
1306
- body: zFleetUpdateInput,
1307
- path: z.object({
1308
- cluster_id: z.string(),
1309
- fleet_name: z.string()
1310
- }),
1311
- query: z.optional(z.never())
1438
+ export const zUpdateFleetBody = zFleetUpdateInput;
1439
+ export const zUpdateFleetPath = z.object({
1440
+ cluster_id: z.string(),
1441
+ fleet_name: z.string()
1312
1442
  });
1313
1443
  /**
1314
1444
  * Successfully updated.
1315
1445
  */
1316
1446
  export const zUpdateFleetResponse = z.string();
1317
- export const zQueryClusterData = z.object({
1318
- body: z.optional(z.never()),
1319
- path: z.object({
1320
- cluster_id: z.string()
1321
- }),
1322
- query: z.optional(z.never())
1323
- });
1324
- export const zListClustersData = z.object({
1325
- body: z.optional(z.never()),
1326
- path: z.optional(z.never()),
1327
- query: z.optional(z.never())
1447
+ export const zQueryClusterPath = z.object({
1448
+ cluster_id: z.string()
1328
1449
  });
1329
1450
  /**
1330
1451
  * An array of clusters
1331
1452
  */
1332
1453
  export const zListClustersResponse = z.array(zCluster);
1333
- export const zCreateClusterData = z.object({
1334
- body: zClusterCreateInput,
1335
- path: z.optional(z.never()),
1336
- query: z.optional(z.never())
1337
- });
1454
+ export const zCreateClusterBody = zClusterCreateInput;
1338
1455
  /**
1339
1456
  * Successfully created. Returns created Cluster ID.
1340
1457
  */
1341
1458
  export const zCreateClusterResponse = z.string();
1342
- export const zDeleteClusterData = z.object({
1343
- body: z.optional(z.never()),
1344
- path: z.object({
1345
- cluster_id: z.string()
1346
- }),
1347
- query: z.optional(z.never())
1459
+ export const zDeleteClusterPath = z.object({
1460
+ cluster_id: z.string()
1348
1461
  });
1349
1462
  /**
1350
1463
  * Successfully deleted.
1351
1464
  */
1352
1465
  export const zDeleteClusterResponse = z.string();
1353
- export const zGetClusterData = z.object({
1354
- body: z.optional(z.never()),
1355
- path: z.object({
1356
- cluster_id: z.string()
1357
- }),
1358
- query: z.optional(z.never())
1466
+ export const zGetClusterPath = z.object({
1467
+ cluster_id: z.string()
1359
1468
  });
1360
1469
  /**
1361
1470
  * Returns a single object containing cluster details.
1362
1471
  */
1363
1472
  export const zGetClusterResponse = zCluster;
1364
- export const zUpdateClusterData = z.object({
1365
- body: zClusterUpdateInput,
1366
- path: z.object({
1367
- cluster_id: z.string()
1368
- }),
1369
- query: z.optional(z.never())
1473
+ export const zUpdateClusterBody = zClusterUpdateInput;
1474
+ export const zUpdateClusterPath = z.object({
1475
+ cluster_id: z.string()
1370
1476
  });
1371
1477
  /**
1372
1478
  * Successfully updated. Returns updated cluster details.
1373
1479
  */
1374
1480
  export const zUpdateClusterResponse = zCluster;
1375
- export const zGetJoinInformationData = z.object({
1376
- body: z.optional(z.never()),
1377
- path: z.object({
1378
- cluster_id: z.string()
1379
- }),
1380
- query: z.optional(z.never())
1481
+ export const zGetJoinInformationPath = z.object({
1482
+ cluster_id: z.string()
1381
1483
  });
1382
1484
  /**
1383
1485
  * An object of cluster join information
1384
1486
  */
1385
1487
  export const zGetJoinInformationResponse = zClusterJoinInformation;
1386
- export const zListInvitesData = z.object({
1387
- body: z.optional(z.never()),
1388
- path: z.optional(z.never()),
1389
- query: z.optional(z.never())
1390
- });
1391
1488
  /**
1392
1489
  * An array of invites
1393
1490
  */
1394
1491
  export const zListInvitesResponse = z.array(zInvite);
1395
- export const zCreateInviteData = z.object({
1396
- body: z.object({
1397
- email: z.optional(z.string())
1398
- }),
1399
- path: z.optional(z.never()),
1400
- query: z.optional(z.never())
1492
+ export const zCreateInviteBody = z.object({
1493
+ email: z.string().optional()
1401
1494
  });
1402
1495
  /**
1403
1496
  * Successfully created. Returns created invite details.
1404
1497
  */
1405
1498
  export const zCreateInviteResponse = zInvite;
1406
- export const zGetInviteData = z.object({
1407
- body: z.optional(z.never()),
1408
- path: z.object({
1409
- code: z.string()
1410
- }),
1411
- query: z.optional(z.never())
1499
+ export const zGetInvitePath = z.object({
1500
+ code: z.string()
1412
1501
  });
1413
1502
  /**
1414
1503
  * Returns a single object containing invite details.
1415
1504
  */
1416
1505
  export const zGetInviteResponse = zInvite;
1417
- export const zDeleteInviteData = z.object({
1418
- body: z.optional(z.never()),
1419
- path: z.object({
1420
- email: z.string()
1421
- }),
1422
- query: z.optional(z.never())
1423
- });
1424
- export const zListMarketplaceChartsData = z.object({
1425
- body: z.optional(z.never()),
1426
- path: z.optional(z.never()),
1427
- query: z.optional(z.never())
1506
+ export const zDeleteInvitePath = z.object({
1507
+ email: z.string()
1428
1508
  });
1429
1509
  /**
1430
1510
  * An array of chart listings in the marketplace.
1431
1511
  */
1432
1512
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1433
- export const zGetMarketplaceChartData = z.object({
1434
- body: z.optional(z.never()),
1435
- path: z.object({
1436
- listing_id: z.string()
1437
- }),
1438
- query: z.optional(z.never())
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()
1439
1532
  });
1440
1533
  /**
1441
- * Returns an object containing the chart listing details.
1534
+ * JSON-RPC 2.0 success or error response
1442
1535
  */
1443
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
1444
- export const zGetOrganizationData = z.object({
1445
- body: z.optional(z.never()),
1446
- path: z.optional(z.never()),
1447
- query: z.optional(z.never())
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()
1448
1547
  });
1449
1548
  /**
1450
1549
  * Returns a single object containing organization details.
1451
1550
  */
1452
1551
  export const zGetOrganizationResponse = zOrganization;
1453
- export const zCreateOrganizationData = z.object({
1454
- body: zOrganizationCreateInput,
1455
- path: z.optional(z.never()),
1456
- 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()
1457
1569
  });
1458
- export const zListTokensData = z.object({
1459
- body: z.optional(z.never()),
1460
- path: z.optional(z.never()),
1461
- query: z.optional(z.never())
1570
+ export const zGetTagPath = z.object({
1571
+ region: z.string(),
1572
+ repository: z.string(),
1573
+ tag: z.string()
1462
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();
1463
1624
  /**
1464
1625
  * Returns a list of access token details with masked secrets.
1465
1626
  */
1466
1627
  export const zListTokensResponse = z.array(zToken);
1467
- export const zCreateTokenData = z.object({
1468
- body: zTokenCreateInput,
1469
- path: z.optional(z.never()),
1470
- query: z.optional(z.never())
1471
- });
1628
+ export const zCreateTokenBody = zTokenCreateInput;
1472
1629
  /**
1473
1630
  * Successfully created. Returns created token details with unmasked/raw secret.
1474
1631
  */
1475
1632
  export const zCreateTokenResponse = zToken;
1476
- export const zDeleteTokenData = z.object({
1477
- body: z.optional(z.never()),
1478
- path: z.object({
1479
- token_id: z.string()
1480
- }),
1481
- query: z.optional(z.never())
1633
+ export const zDeleteTokenPath = z.object({
1634
+ token_id: z.string()
1482
1635
  });
1483
- export const zGetTokenData = z.object({
1484
- body: z.optional(z.never()),
1485
- path: z.object({
1486
- token_id: z.string()
1487
- }),
1488
- query: z.optional(z.never())
1636
+ export const zGetTokenPath = z.object({
1637
+ token_id: z.string()
1489
1638
  });
1490
1639
  /**
1491
1640
  * Returns access token details with masked secret.
1492
1641
  */
1493
1642
  export const zGetTokenResponse = zToken;
1494
- export const zUpdateTokenData = z.object({
1495
- body: zTokenUpdateInput,
1496
- path: z.object({
1497
- token_id: z.string()
1498
- }),
1499
- query: z.optional(z.never())
1643
+ export const zUpdateTokenBody = zTokenUpdateInput;
1644
+ export const zUpdateTokenPath = z.object({
1645
+ token_id: z.string()
1500
1646
  });
1501
1647
  /**
1502
1648
  * Successfully updated. Returns updated token details with masked secret.
1503
1649
  */
1504
1650
  export const zUpdateTokenResponse = zToken;
1505
- export const zRegenerateTokenData = z.object({
1506
- body: z.optional(z.never()),
1507
- path: z.object({
1508
- token_id: z.string()
1509
- }),
1510
- query: z.optional(z.never())
1651
+ export const zRegenerateTokenPath = z.object({
1652
+ token_id: z.string()
1511
1653
  });
1512
1654
  /**
1513
1655
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1514
1656
  */
1515
1657
  export const zRegenerateTokenResponse = zToken;
1516
- export const zListUserOrganizationsData = z.object({
1517
- body: z.optional(z.never()),
1518
- path: z.object({
1519
- email: z.string()
1520
- }),
1521
- query: z.optional(z.never())
1658
+ export const zListUserOrganizationsPath = z.object({
1659
+ email: z.string()
1522
1660
  });
1523
1661
  /**
1524
1662
  * An array of organizations the user belongs to.
1525
1663
  */
1526
1664
  export const zListUserOrganizationsResponse = z.array(z.object({
1527
- realm: z.optional(z.string()),
1528
- displayName: z.optional(z.string())
1665
+ realm: z.string().optional(),
1666
+ displayName: z.string().optional()
1529
1667
  }));
1530
- export const zListUsersData = z.object({
1531
- body: z.optional(z.never()),
1532
- path: z.optional(z.never()),
1533
- query: z.optional(z.never())
1534
- });
1535
1668
  /**
1536
1669
  * An array of users
1537
1670
  */
1538
1671
  export const zListUsersResponse = z.array(zUser);
1539
- export const zCreateUserData = z.object({
1540
- body: zUserCreateInput,
1541
- path: z.optional(z.never()),
1542
- query: z.optional(z.never())
1543
- });
1672
+ export const zCreateUserBody = zUserCreateInput;
1544
1673
  /**
1545
1674
  * Successfully created. Returns created user details.
1546
1675
  */
1547
1676
  export const zCreateUserResponse = zUser;
1548
- export const zDeleteUserData = z.object({
1549
- body: z.optional(z.never()),
1550
- path: z.object({
1551
- user_id: z.string()
1552
- }),
1553
- query: z.optional(z.never())
1677
+ export const zDeleteUserPath = z.object({
1678
+ user_id: z.string()
1554
1679
  });
1555
1680
  /**
1556
1681
  * User profile information
1557
1682
  */
1558
1683
  export const zDeleteUserResponse = zUser;
1559
- export const zGetUserData = z.object({
1560
- body: z.optional(z.never()),
1561
- path: z.object({
1562
- user_id: z.string()
1563
- }),
1564
- query: z.optional(z.never())
1684
+ export const zGetUserPath = z.object({
1685
+ user_id: z.string()
1565
1686
  });
1566
1687
  /**
1567
1688
  * User profile information
1568
1689
  */
1569
1690
  export const zGetUserResponse = zUser;
1570
- export const zUpdateUserData = z.object({
1571
- body: zUserUpdateInput,
1572
- path: z.object({
1573
- user_id: z.string()
1574
- }),
1575
- query: z.optional(z.never())
1691
+ export const zUpdateUserBody = zUserUpdateInput;
1692
+ export const zUpdateUserPath = z.object({
1693
+ user_id: z.string()
1576
1694
  });
1577
1695
  /**
1578
1696
  * Successfully created. Returns created user details.