@cloudfleet/sdk 0.0.1-13073f9 → 0.0.1-133c911

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 (61) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1026 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1194 -0
  5. package/dist/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client.gen.d.ts.map +1 -1
  7. package/dist/client/client.gen.js +114 -102
  8. package/dist/client/client.gen.js.map +1 -1
  9. package/dist/client/index.d.ts +1 -1
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/index.js.map +1 -1
  12. package/dist/client/types.gen.d.ts +9 -13
  13. package/dist/client/types.gen.d.ts.map +1 -1
  14. package/dist/client/utils.gen.d.ts +8 -4
  15. package/dist/client/utils.gen.d.ts.map +1 -1
  16. package/dist/client/utils.gen.js +13 -15
  17. package/dist/client/utils.gen.js.map +1 -1
  18. package/dist/client.gen.d.ts.map +1 -1
  19. package/dist/client.gen.js +1 -3
  20. package/dist/client.gen.js.map +1 -1
  21. package/dist/core/auth.gen.d.ts.map +1 -1
  22. package/dist/core/auth.gen.js.map +1 -1
  23. package/dist/core/bodySerializer.gen.d.ts +16 -8
  24. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  25. package/dist/core/bodySerializer.gen.js +1 -1
  26. package/dist/core/bodySerializer.gen.js.map +1 -1
  27. package/dist/core/params.gen.d.ts +10 -0
  28. package/dist/core/params.gen.d.ts.map +1 -1
  29. package/dist/core/params.gen.js +22 -10
  30. package/dist/core/params.gen.js.map +1 -1
  31. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  32. package/dist/core/pathSerializer.gen.js +3 -11
  33. package/dist/core/pathSerializer.gen.js.map +1 -1
  34. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  35. package/dist/core/queryKeySerializer.gen.js +4 -11
  36. package/dist/core/queryKeySerializer.gen.js.map +1 -1
  37. package/dist/core/serverSentEvents.gen.d.ts +1 -1
  38. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  39. package/dist/core/serverSentEvents.gen.js +6 -9
  40. package/dist/core/serverSentEvents.gen.js.map +1 -1
  41. package/dist/core/types.gen.d.ts +1 -1
  42. package/dist/core/types.gen.d.ts.map +1 -1
  43. package/dist/core/utils.gen.d.ts.map +1 -1
  44. package/dist/core/utils.gen.js +1 -1
  45. package/dist/core/utils.gen.js.map +1 -1
  46. package/dist/schemas.gen.d.ts +1294 -170
  47. package/dist/schemas.gen.d.ts.map +1 -1
  48. package/dist/schemas.gen.js +2733 -239
  49. package/dist/schemas.gen.js.map +1 -1
  50. package/dist/sdk.gen.d.ts +259 -190
  51. package/dist/sdk.gen.d.ts.map +1 -1
  52. package/dist/sdk.gen.js +374 -375
  53. package/dist/sdk.gen.js.map +1 -1
  54. package/dist/services/kubernetes/api.d.ts +8 -8
  55. package/dist/types.gen.d.ts +1616 -661
  56. package/dist/types.gen.d.ts.map +1 -1
  57. package/dist/zod.gen.d.ts +3563 -1422
  58. package/dist/zod.gen.d.ts.map +1 -1
  59. package/dist/zod.gen.js +1447 -620
  60. package/dist/zod.gen.js.map +1 -1
  61. package/package.json +28 -8
package/dist/zod.gen.js CHANGED
@@ -1,18 +1,19 @@
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
+ type: z.enum(['business', 'personal']),
5
+ 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(),
6
+ address1: z.string().optional(),
7
+ address2: z.string().optional(),
8
+ postalCode: z.string().optional(),
9
+ city: z.string().optional(),
10
+ state: z.string().optional(),
11
+ country: z.string().optional(),
12
+ phone: z.string().optional(),
12
13
  email: z.email(),
13
14
  individual_name: z.string(),
14
- tax_id: z.optional(z.string()),
15
- tax_id_type: z.optional(z.enum([
15
+ tax_id: z.string().optional(),
16
+ tax_id_type: z.enum([
16
17
  'ad_nrt',
17
18
  'ae_trn',
18
19
  'al_tin',
@@ -141,20 +142,17 @@ export const zBillingContact = z.object({
141
142
  'zm_tin',
142
143
  'zw_tin',
143
144
  ''
144
- ]))
145
+ ]).optional()
145
146
  });
146
147
  export const zBillingCredits = z.object({
147
- id: z.optional(z.string()),
148
- type: z.enum([
149
- 'credit',
150
- 'discount'
151
- ]),
148
+ id: z.string().optional(),
149
+ type: z.enum(['credit', 'discount']),
152
150
  date_start: z.iso.datetime(),
153
- date_end: z.optional(z.iso.datetime()),
151
+ date_end: z.iso.datetime().optional(),
154
152
  code: z.string(),
155
- description: z.optional(z.string()),
153
+ description: z.string().optional(),
156
154
  value_total: z.number(),
157
- value_remaining: z.optional(z.number())
155
+ value_remaining: z.number().optional()
158
156
  });
159
157
  export const zChartCreateInput = z.object({
160
158
  values: z.string(),
@@ -169,22 +167,7 @@ export const zChart = z.object({
169
167
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
170
168
  namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
171
169
  chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
172
- status: z.enum([
173
- 'InstallSucceeded',
174
- 'InstallFailed',
175
- 'UpgradeSucceeded',
176
- 'UpgradeFailed',
177
- 'TestSucceeded',
178
- 'TestFailed',
179
- 'RollbackSucceeded',
180
- 'RollbackFailed',
181
- 'UninstallSucceeded',
182
- 'UninstallFailed',
183
- 'ArtifactFailed',
184
- 'DependencyNotReady',
185
- 'Progressing',
186
- 'SourceNotReady'
187
- ]),
170
+ status: z.string(),
188
171
  version_current: z.string(),
189
172
  created_at: z.string(),
190
173
  updated_at: z.string(),
@@ -194,24 +177,57 @@ export const zChartUpdateInput = z.object({
194
177
  values: z.string(),
195
178
  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-]+)*))?$/)
196
179
  });
180
+ /**
181
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
182
+ */
197
183
  export const zClusterCreateInput = z.object({
198
184
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
199
185
  tier: z.enum([
200
186
  'basic',
201
- 'pro'
202
- ]),
203
- region: z.optional(z.enum([
204
- 'staging',
205
- 'northamerica-central-1',
206
- 'europe-central-1a',
207
- 'northamerica-central-1a'
208
- ])),
209
- 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')
187
+ 'pro',
188
+ 'enterprise'
189
+ ]).optional().default('basic'),
190
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
191
+ release_channel: z.enum([
192
+ 'rapid',
193
+ 'stable',
194
+ 'extended'
195
+ ]).optional().default('rapid'),
196
+ features: z.object({
197
+ gpu_sharing_strategy: z.enum([
198
+ 'none',
199
+ 'mps',
200
+ 'time_slicing'
201
+ ]).optional().default('none'),
202
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
203
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
204
+ }).optional().default({
205
+ gpu_sharing_strategy: 'none',
206
+ gpu_max_shared_clients_per_gpu: 4,
207
+ cilium_socket_lb_host_namespace_only: false
208
+ }),
209
+ region: z.string(),
210
+ networking: z.object({
211
+ pod_cidr: z.string().optional().default('10.244.0.0/16'),
212
+ service_cidr: z.string().optional().default('10.96.0.0/12'),
213
+ dual_stack: z.boolean().optional(),
214
+ pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
215
+ service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
216
+ }).optional().default({
217
+ pod_cidr: '10.244.0.0/16',
218
+ service_cidr: '10.96.0.0/12',
219
+ dual_stack: false,
220
+ pod_cidr_v6: '2001:db8:1:2::/48',
221
+ service_cidr_v6: '2001:db8:1:1::/112'
222
+ })
210
223
  });
211
224
  export const zClusterJoinInformation = z.object({
212
225
  certificate_authority: z.string(),
213
226
  endpoint: z.url(),
227
+ cluster_dns: z.string(),
228
+ pod_cidr: z.string(),
214
229
  auth_key: z.string(),
230
+ login_server: z.string(),
215
231
  bootstrap_token: z.string(),
216
232
  versions: z.object({
217
233
  kubernetes: z.string(),
@@ -225,198 +241,1066 @@ export const zClusterJoinInformation = z.object({
225
241
  gcp_workload_identity_provider: z.string()
226
242
  })
227
243
  });
244
+ /**
245
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
246
+ */
228
247
  export const zCluster = z.object({
229
248
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
249
  tier: z.enum([
231
250
  'basic',
232
- 'pro'
233
- ]),
234
- region: z.optional(z.enum([
235
- 'staging',
236
- 'northamerica-central-1',
237
- 'europe-central-1a',
238
- 'northamerica-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'),
251
+ 'pro',
252
+ 'enterprise'
253
+ ]).default('basic'),
254
+ 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-]+)*))?$/).default('1.x.x-cfke.x'),
255
+ release_channel: z.enum([
256
+ 'rapid',
257
+ 'stable',
258
+ 'extended'
259
+ ]).default('rapid'),
260
+ features: z.object({
261
+ gpu_sharing_strategy: z.enum([
262
+ 'none',
263
+ 'mps',
264
+ 'time_slicing'
265
+ ]).default('none'),
266
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
267
+ cilium_socket_lb_host_namespace_only: z.boolean()
268
+ }).default({
269
+ gpu_sharing_strategy: 'none',
270
+ gpu_max_shared_clients_per_gpu: 4,
271
+ cilium_socket_lb_host_namespace_only: false
272
+ }),
273
+ region: z.string(),
274
+ networking: z.object({
275
+ pod_cidr: z.string().default('10.244.0.0/16'),
276
+ service_cidr: z.string().default('10.96.0.0/12'),
277
+ dual_stack: z.boolean(),
278
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
279
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
280
+ }).default({
281
+ pod_cidr: '10.244.0.0/16',
282
+ service_cidr: '10.96.0.0/12',
283
+ dual_stack: false,
284
+ pod_cidr_v6: '2001:db8:1:2::/48',
285
+ service_cidr_v6: '2001:db8:1:1::/112'
286
+ }),
241
287
  id: z.uuid(),
242
288
  status: z.enum([
243
- 'active',
244
- 'disabled',
245
- 'deleted',
246
289
  'creating',
247
290
  'deployed',
248
- 'failed',
249
- 'updating'
291
+ 'updating',
292
+ 'disabled'
250
293
  ]),
251
- endpoint: z.optional(z.union([
294
+ endpoint: z.union([
252
295
  z.url(),
253
- z.enum([
254
- ''
255
- ])
256
- ])),
257
- certificate_ca: z.optional(z.string()),
258
- version_current: z.optional(z.string()),
259
- created_at: z.optional(z.string()),
260
- updated_at: z.optional(z.string()),
261
- ready: z.optional(z.boolean())
296
+ z.enum([''])
297
+ ]).optional(),
298
+ endpoint_public: z.union([
299
+ z.url(),
300
+ z.enum([''])
301
+ ]).optional(),
302
+ certificate_ca: z.string().optional(),
303
+ version_current: z.string().optional(),
304
+ created_at: z.string().optional(),
305
+ updated_at: z.string().optional(),
306
+ ready: z.boolean()
262
307
  });
308
+ /**
309
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
310
+ */
263
311
  export const zClusterUpdateInput = z.object({
264
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
312
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
265
313
  tier: z.enum([
266
314
  'basic',
267
- 'pro'
268
- ]),
269
- 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-]+)*))?$/))
315
+ 'pro',
316
+ 'enterprise'
317
+ ]).optional().default('basic'),
318
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
319
+ release_channel: z.enum([
320
+ 'rapid',
321
+ 'stable',
322
+ 'extended'
323
+ ]).optional().default('rapid'),
324
+ features: z.object({
325
+ gpu_sharing_strategy: z.enum([
326
+ 'none',
327
+ 'mps',
328
+ 'time_slicing'
329
+ ]).optional().default('none'),
330
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
331
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
332
+ }).optional().default({
333
+ gpu_sharing_strategy: 'none',
334
+ gpu_max_shared_clients_per_gpu: 4,
335
+ cilium_socket_lb_host_namespace_only: false
336
+ })
270
337
  });
338
+ /**
339
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
340
+ */
271
341
  export const zFleetCreateInput = z.object({
272
- limits: z.optional(z.object({
273
- cpu: z.number().gte(0)
274
- })),
275
- gcp: z.optional(z.object({
276
- enabled: z.optional(z.boolean()).default(true),
277
- project: z.string()
278
- })),
279
- hetzner: z.optional(z.object({
280
- enabled: z.optional(z.boolean()).default(true),
281
- apiKey: z.string()
282
- })),
283
- aws: z.optional(z.object({
284
- enabled: z.optional(z.boolean()).default(true),
285
- controllerRoleArn: z.string()
286
- })),
342
+ limits: z.object({
343
+ cpu: z.int().gte(0).lte(100000).optional()
344
+ }).optional(),
345
+ gcp: z.object({
346
+ enabled: z.boolean(),
347
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
348
+ }).optional(),
349
+ hetzner: z.object({
350
+ enabled: z.boolean(),
351
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
352
+ }).optional(),
353
+ aws: z.object({
354
+ enabled: z.boolean(),
355
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
356
+ }).optional(),
357
+ constraints: z.object({
358
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
359
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
360
+ 'cfke.io/instance-family': z.array(z.enum([
361
+ 'a1',
362
+ 'a2',
363
+ 'a3',
364
+ 'a4',
365
+ 'c1',
366
+ 'c2',
367
+ 'c2d',
368
+ 'c3',
369
+ 'c3d',
370
+ 'c4',
371
+ 'c4a',
372
+ 'c4d',
373
+ 'c5',
374
+ 'c5a',
375
+ 'c5ad',
376
+ 'c5d',
377
+ 'c5n',
378
+ 'c6a',
379
+ 'c6g',
380
+ 'c6gd',
381
+ 'c6gn',
382
+ 'c6i',
383
+ 'c6id',
384
+ 'c6in',
385
+ 'c7a',
386
+ 'c7g',
387
+ 'c7gd',
388
+ 'c7gn',
389
+ 'c7i',
390
+ 'c7i-flex',
391
+ 'c8g',
392
+ 'c8gd',
393
+ 'cax',
394
+ 'ccx',
395
+ 'cpx',
396
+ 'cx',
397
+ 'd2',
398
+ 'd3',
399
+ 'd3en',
400
+ 'dl1',
401
+ 'dl2q',
402
+ 'e2',
403
+ 'f1',
404
+ 'f2',
405
+ 'g1',
406
+ 'g2',
407
+ 'g4ad',
408
+ 'g4dn',
409
+ 'g5',
410
+ 'g5g',
411
+ 'g6',
412
+ 'g6e',
413
+ 'gr6',
414
+ 'h1',
415
+ 'h3',
416
+ 'hpc6a',
417
+ 'hpc6id',
418
+ 'hpc7a',
419
+ 'hpc7g',
420
+ 'i2',
421
+ 'i3',
422
+ 'i3en',
423
+ 'i4g',
424
+ 'i4i',
425
+ 'i7i',
426
+ 'i7ie',
427
+ 'i8g',
428
+ 'im4gn',
429
+ 'inf1',
430
+ 'inf2',
431
+ 'is4gen',
432
+ 'm1',
433
+ 'm2',
434
+ 'm3',
435
+ 'm4',
436
+ 'm5',
437
+ 'm5a',
438
+ 'm5ad',
439
+ 'm5d',
440
+ 'm5dn',
441
+ 'm5n',
442
+ 'm5zn',
443
+ 'm6a',
444
+ 'm6g',
445
+ 'm6gd',
446
+ 'm6i',
447
+ 'm6id',
448
+ 'm6idn',
449
+ 'm6in',
450
+ 'm7a',
451
+ 'm7g',
452
+ 'm7gd',
453
+ 'm7i',
454
+ 'm7i-flex',
455
+ 'm8g',
456
+ 'm8gd',
457
+ 'n1',
458
+ 'n2',
459
+ 'n2d',
460
+ 'n4',
461
+ 'p3',
462
+ 'p3dn',
463
+ 'p4d',
464
+ 'p4de',
465
+ 'p5',
466
+ 'p5e',
467
+ 'p5en',
468
+ 'p6-b200',
469
+ 'r3',
470
+ 'r4',
471
+ 'r5',
472
+ 'r5a',
473
+ 'r5ad',
474
+ 'r5b',
475
+ 'r5d',
476
+ 'r5dn',
477
+ 'r5n',
478
+ 'r6a',
479
+ 'r6g',
480
+ 'r6gd',
481
+ 'r6i',
482
+ 'r6id',
483
+ 'r6idn',
484
+ 'r6in',
485
+ 'r7a',
486
+ 'r7g',
487
+ 'r7gd',
488
+ 'r7i',
489
+ 'r7iz',
490
+ 'r8g',
491
+ 'r8gd',
492
+ 't2',
493
+ 't2a',
494
+ 't2d',
495
+ 't3',
496
+ 't3a',
497
+ 't4g',
498
+ 'trn1',
499
+ 'trn1n',
500
+ 'u-3tb1',
501
+ 'u-6tb1',
502
+ 'u7i-12tb',
503
+ 'u7i-6tb',
504
+ 'u7i-8tb',
505
+ 'u7in-16tb',
506
+ 'u7in-24tb',
507
+ 'u7in-32tb',
508
+ 'vt1',
509
+ 'x1',
510
+ 'x1e',
511
+ 'x2gd',
512
+ 'x2idn',
513
+ 'x2iedn',
514
+ 'x2iezn',
515
+ 'x4',
516
+ 'x8g',
517
+ 'z1d',
518
+ 'z3'
519
+ ])).optional().default([]),
520
+ 'topology.kubernetes.io/region': z.array(z.enum([
521
+ 'africa-south1',
522
+ 'ap-northeast-1',
523
+ 'ap-northeast-2',
524
+ 'ap-northeast-3',
525
+ 'ap-south-1',
526
+ 'ap-southeast-1',
527
+ 'ap-southeast-2',
528
+ 'ash',
529
+ 'asia-east1',
530
+ 'asia-east2',
531
+ 'asia-northeast1',
532
+ 'asia-northeast2',
533
+ 'asia-northeast3',
534
+ 'asia-south1',
535
+ 'asia-south2',
536
+ 'asia-southeast1',
537
+ 'asia-southeast2',
538
+ 'australia-southeast1',
539
+ 'australia-southeast2',
540
+ 'ca-central-1',
541
+ 'eu-central-1',
542
+ 'eu-central-2',
543
+ 'eu-north-1',
544
+ 'eu-west-1',
545
+ 'eu-west-2',
546
+ 'eu-west-3',
547
+ 'europe-central2',
548
+ 'europe-north1',
549
+ 'europe-southwest1',
550
+ 'europe-west1',
551
+ 'europe-west10',
552
+ 'europe-west12',
553
+ 'europe-west2',
554
+ 'europe-west3',
555
+ 'europe-west4',
556
+ 'europe-west6',
557
+ 'europe-west8',
558
+ 'europe-west9',
559
+ 'fsn1',
560
+ 'hel1',
561
+ 'hil',
562
+ 'me-central1',
563
+ 'me-central2',
564
+ 'me-west1',
565
+ 'nbg1',
566
+ 'northamerica-northeast1',
567
+ 'northamerica-northeast2',
568
+ 'sa-east-1',
569
+ 'sin',
570
+ 'southamerica-east1',
571
+ 'southamerica-west1',
572
+ 'us-central1',
573
+ 'us-east-1',
574
+ 'us-east-2',
575
+ 'us-east1',
576
+ 'us-east4',
577
+ 'us-east5',
578
+ 'us-south1',
579
+ 'us-west-1',
580
+ 'us-west-2',
581
+ 'us-west1',
582
+ 'us-west2',
583
+ 'us-west3',
584
+ 'us-west4'
585
+ ])).optional().default([])
586
+ }).optional().default({
587
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
588
+ 'kubernetes.io/arch': ['amd64'],
589
+ 'cfke.io/instance-family': [],
590
+ 'topology.kubernetes.io/region': []
591
+ }),
592
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
593
+ taints: z.array(z.object({
594
+ key: z.string(),
595
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
596
+ effect: z.enum([
597
+ 'NoSchedule',
598
+ 'PreferNoSchedule',
599
+ 'NoExecute'
600
+ ])
601
+ })).max(50).optional().default([]),
287
602
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
288
603
  });
604
+ /**
605
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
606
+ */
289
607
  export const zFleet = z.object({
290
- limits: z.optional(z.object({
291
- cpu: z.number().gte(0)
292
- })),
293
- gcp: z.optional(z.object({
294
- enabled: z.optional(z.boolean()).default(true),
295
- project: z.string()
296
- })),
297
- hetzner: z.optional(z.object({
298
- enabled: z.optional(z.boolean()).default(true),
299
- apiKey: z.string()
300
- })),
301
- aws: z.optional(z.object({
302
- enabled: z.optional(z.boolean()).default(true),
303
- controllerRoleArn: z.string()
304
- })),
305
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
608
+ limits: z.object({
609
+ cpu: z.int().gte(0).lte(100000).optional()
610
+ }).optional(),
611
+ gcp: z.object({
612
+ enabled: z.boolean(),
613
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
614
+ }).optional(),
615
+ hetzner: z.object({
616
+ enabled: z.boolean(),
617
+ apiKey: z.string().regex(/^\*{64}$/).optional()
618
+ }).optional(),
619
+ aws: z.object({
620
+ enabled: z.boolean(),
621
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
622
+ }).optional(),
623
+ constraints: z.object({
624
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
625
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
626
+ 'cfke.io/instance-family': z.array(z.enum([
627
+ 'a1',
628
+ 'a2',
629
+ 'a3',
630
+ 'a4',
631
+ 'c1',
632
+ 'c2',
633
+ 'c2d',
634
+ 'c3',
635
+ 'c3d',
636
+ 'c4',
637
+ 'c4a',
638
+ 'c4d',
639
+ 'c5',
640
+ 'c5a',
641
+ 'c5ad',
642
+ 'c5d',
643
+ 'c5n',
644
+ 'c6a',
645
+ 'c6g',
646
+ 'c6gd',
647
+ 'c6gn',
648
+ 'c6i',
649
+ 'c6id',
650
+ 'c6in',
651
+ 'c7a',
652
+ 'c7g',
653
+ 'c7gd',
654
+ 'c7gn',
655
+ 'c7i',
656
+ 'c7i-flex',
657
+ 'c8g',
658
+ 'c8gd',
659
+ 'cax',
660
+ 'ccx',
661
+ 'cpx',
662
+ 'cx',
663
+ 'd2',
664
+ 'd3',
665
+ 'd3en',
666
+ 'dl1',
667
+ 'dl2q',
668
+ 'e2',
669
+ 'f1',
670
+ 'f2',
671
+ 'g1',
672
+ 'g2',
673
+ 'g4ad',
674
+ 'g4dn',
675
+ 'g5',
676
+ 'g5g',
677
+ 'g6',
678
+ 'g6e',
679
+ 'gr6',
680
+ 'h1',
681
+ 'h3',
682
+ 'hpc6a',
683
+ 'hpc6id',
684
+ 'hpc7a',
685
+ 'hpc7g',
686
+ 'i2',
687
+ 'i3',
688
+ 'i3en',
689
+ 'i4g',
690
+ 'i4i',
691
+ 'i7i',
692
+ 'i7ie',
693
+ 'i8g',
694
+ 'im4gn',
695
+ 'inf1',
696
+ 'inf2',
697
+ 'is4gen',
698
+ 'm1',
699
+ 'm2',
700
+ 'm3',
701
+ 'm4',
702
+ 'm5',
703
+ 'm5a',
704
+ 'm5ad',
705
+ 'm5d',
706
+ 'm5dn',
707
+ 'm5n',
708
+ 'm5zn',
709
+ 'm6a',
710
+ 'm6g',
711
+ 'm6gd',
712
+ 'm6i',
713
+ 'm6id',
714
+ 'm6idn',
715
+ 'm6in',
716
+ 'm7a',
717
+ 'm7g',
718
+ 'm7gd',
719
+ 'm7i',
720
+ 'm7i-flex',
721
+ 'm8g',
722
+ 'm8gd',
723
+ 'n1',
724
+ 'n2',
725
+ 'n2d',
726
+ 'n4',
727
+ 'p3',
728
+ 'p3dn',
729
+ 'p4d',
730
+ 'p4de',
731
+ 'p5',
732
+ 'p5e',
733
+ 'p5en',
734
+ 'p6-b200',
735
+ 'r3',
736
+ 'r4',
737
+ 'r5',
738
+ 'r5a',
739
+ 'r5ad',
740
+ 'r5b',
741
+ 'r5d',
742
+ 'r5dn',
743
+ 'r5n',
744
+ 'r6a',
745
+ 'r6g',
746
+ 'r6gd',
747
+ 'r6i',
748
+ 'r6id',
749
+ 'r6idn',
750
+ 'r6in',
751
+ 'r7a',
752
+ 'r7g',
753
+ 'r7gd',
754
+ 'r7i',
755
+ 'r7iz',
756
+ 'r8g',
757
+ 'r8gd',
758
+ 't2',
759
+ 't2a',
760
+ 't2d',
761
+ 't3',
762
+ 't3a',
763
+ 't4g',
764
+ 'trn1',
765
+ 'trn1n',
766
+ 'u-3tb1',
767
+ 'u-6tb1',
768
+ 'u7i-12tb',
769
+ 'u7i-6tb',
770
+ 'u7i-8tb',
771
+ 'u7in-16tb',
772
+ 'u7in-24tb',
773
+ 'u7in-32tb',
774
+ 'vt1',
775
+ 'x1',
776
+ 'x1e',
777
+ 'x2gd',
778
+ 'x2idn',
779
+ 'x2iedn',
780
+ 'x2iezn',
781
+ 'x4',
782
+ 'x8g',
783
+ 'z1d',
784
+ 'z3'
785
+ ])).optional().default([]),
786
+ 'topology.kubernetes.io/region': z.array(z.enum([
787
+ 'africa-south1',
788
+ 'ap-northeast-1',
789
+ 'ap-northeast-2',
790
+ 'ap-northeast-3',
791
+ 'ap-south-1',
792
+ 'ap-southeast-1',
793
+ 'ap-southeast-2',
794
+ 'ash',
795
+ 'asia-east1',
796
+ 'asia-east2',
797
+ 'asia-northeast1',
798
+ 'asia-northeast2',
799
+ 'asia-northeast3',
800
+ 'asia-south1',
801
+ 'asia-south2',
802
+ 'asia-southeast1',
803
+ 'asia-southeast2',
804
+ 'australia-southeast1',
805
+ 'australia-southeast2',
806
+ 'ca-central-1',
807
+ 'eu-central-1',
808
+ 'eu-central-2',
809
+ 'eu-north-1',
810
+ 'eu-west-1',
811
+ 'eu-west-2',
812
+ 'eu-west-3',
813
+ 'europe-central2',
814
+ 'europe-north1',
815
+ 'europe-southwest1',
816
+ 'europe-west1',
817
+ 'europe-west10',
818
+ 'europe-west12',
819
+ 'europe-west2',
820
+ 'europe-west3',
821
+ 'europe-west4',
822
+ 'europe-west6',
823
+ 'europe-west8',
824
+ 'europe-west9',
825
+ 'fsn1',
826
+ 'hel1',
827
+ 'hil',
828
+ 'me-central1',
829
+ 'me-central2',
830
+ 'me-west1',
831
+ 'nbg1',
832
+ 'northamerica-northeast1',
833
+ 'northamerica-northeast2',
834
+ 'sa-east-1',
835
+ 'sin',
836
+ 'southamerica-east1',
837
+ 'southamerica-west1',
838
+ 'us-central1',
839
+ 'us-east-1',
840
+ 'us-east-2',
841
+ 'us-east1',
842
+ 'us-east4',
843
+ 'us-east5',
844
+ 'us-south1',
845
+ 'us-west-1',
846
+ 'us-west-2',
847
+ 'us-west1',
848
+ 'us-west2',
849
+ 'us-west3',
850
+ 'us-west4'
851
+ ])).optional().default([])
852
+ }).default({
853
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
854
+ 'kubernetes.io/arch': ['amd64'],
855
+ 'cfke.io/instance-family': [],
856
+ 'topology.kubernetes.io/region': []
857
+ }),
858
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
859
+ taints: z.array(z.object({
860
+ key: z.string(),
861
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
862
+ effect: z.enum([
863
+ 'NoSchedule',
864
+ 'PreferNoSchedule',
865
+ 'NoExecute'
866
+ ])
867
+ })).max(50).default([]),
868
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
869
+ ready: z.boolean(),
870
+ status_message: z.string().optional(),
871
+ created_at: z.string(),
872
+ updated_at: z.string()
306
873
  });
874
+ /**
875
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
876
+ */
307
877
  export const zFleetUpdateInput = z.object({
308
- limits: z.optional(z.object({
309
- cpu: z.number().gte(0)
310
- })),
311
- gcp: z.optional(z.object({
312
- enabled: z.optional(z.boolean()).default(true),
313
- project: z.string()
314
- })),
315
- hetzner: z.optional(z.object({
316
- enabled: z.optional(z.boolean()).default(true),
317
- apiKey: z.string()
318
- })),
319
- aws: z.optional(z.object({
320
- enabled: z.optional(z.boolean()).default(true),
321
- controllerRoleArn: z.string()
322
- }))
878
+ limits: z.object({
879
+ cpu: z.int().gte(0).lte(100000).optional()
880
+ }).optional(),
881
+ gcp: z.object({
882
+ enabled: z.boolean(),
883
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
884
+ }).optional(),
885
+ hetzner: z.object({
886
+ enabled: z.boolean(),
887
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
888
+ }).optional(),
889
+ aws: z.object({
890
+ enabled: z.boolean(),
891
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
892
+ }).optional(),
893
+ constraints: z.object({
894
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
895
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
896
+ 'cfke.io/instance-family': z.array(z.enum([
897
+ 'a1',
898
+ 'a2',
899
+ 'a3',
900
+ 'a4',
901
+ 'c1',
902
+ 'c2',
903
+ 'c2d',
904
+ 'c3',
905
+ 'c3d',
906
+ 'c4',
907
+ 'c4a',
908
+ 'c4d',
909
+ 'c5',
910
+ 'c5a',
911
+ 'c5ad',
912
+ 'c5d',
913
+ 'c5n',
914
+ 'c6a',
915
+ 'c6g',
916
+ 'c6gd',
917
+ 'c6gn',
918
+ 'c6i',
919
+ 'c6id',
920
+ 'c6in',
921
+ 'c7a',
922
+ 'c7g',
923
+ 'c7gd',
924
+ 'c7gn',
925
+ 'c7i',
926
+ 'c7i-flex',
927
+ 'c8g',
928
+ 'c8gd',
929
+ 'cax',
930
+ 'ccx',
931
+ 'cpx',
932
+ 'cx',
933
+ 'd2',
934
+ 'd3',
935
+ 'd3en',
936
+ 'dl1',
937
+ 'dl2q',
938
+ 'e2',
939
+ 'f1',
940
+ 'f2',
941
+ 'g1',
942
+ 'g2',
943
+ 'g4ad',
944
+ 'g4dn',
945
+ 'g5',
946
+ 'g5g',
947
+ 'g6',
948
+ 'g6e',
949
+ 'gr6',
950
+ 'h1',
951
+ 'h3',
952
+ 'hpc6a',
953
+ 'hpc6id',
954
+ 'hpc7a',
955
+ 'hpc7g',
956
+ 'i2',
957
+ 'i3',
958
+ 'i3en',
959
+ 'i4g',
960
+ 'i4i',
961
+ 'i7i',
962
+ 'i7ie',
963
+ 'i8g',
964
+ 'im4gn',
965
+ 'inf1',
966
+ 'inf2',
967
+ 'is4gen',
968
+ 'm1',
969
+ 'm2',
970
+ 'm3',
971
+ 'm4',
972
+ 'm5',
973
+ 'm5a',
974
+ 'm5ad',
975
+ 'm5d',
976
+ 'm5dn',
977
+ 'm5n',
978
+ 'm5zn',
979
+ 'm6a',
980
+ 'm6g',
981
+ 'm6gd',
982
+ 'm6i',
983
+ 'm6id',
984
+ 'm6idn',
985
+ 'm6in',
986
+ 'm7a',
987
+ 'm7g',
988
+ 'm7gd',
989
+ 'm7i',
990
+ 'm7i-flex',
991
+ 'm8g',
992
+ 'm8gd',
993
+ 'n1',
994
+ 'n2',
995
+ 'n2d',
996
+ 'n4',
997
+ 'p3',
998
+ 'p3dn',
999
+ 'p4d',
1000
+ 'p4de',
1001
+ 'p5',
1002
+ 'p5e',
1003
+ 'p5en',
1004
+ 'p6-b200',
1005
+ 'r3',
1006
+ 'r4',
1007
+ 'r5',
1008
+ 'r5a',
1009
+ 'r5ad',
1010
+ 'r5b',
1011
+ 'r5d',
1012
+ 'r5dn',
1013
+ 'r5n',
1014
+ 'r6a',
1015
+ 'r6g',
1016
+ 'r6gd',
1017
+ 'r6i',
1018
+ 'r6id',
1019
+ 'r6idn',
1020
+ 'r6in',
1021
+ 'r7a',
1022
+ 'r7g',
1023
+ 'r7gd',
1024
+ 'r7i',
1025
+ 'r7iz',
1026
+ 'r8g',
1027
+ 'r8gd',
1028
+ 't2',
1029
+ 't2a',
1030
+ 't2d',
1031
+ 't3',
1032
+ 't3a',
1033
+ 't4g',
1034
+ 'trn1',
1035
+ 'trn1n',
1036
+ 'u-3tb1',
1037
+ 'u-6tb1',
1038
+ 'u7i-12tb',
1039
+ 'u7i-6tb',
1040
+ 'u7i-8tb',
1041
+ 'u7in-16tb',
1042
+ 'u7in-24tb',
1043
+ 'u7in-32tb',
1044
+ 'vt1',
1045
+ 'x1',
1046
+ 'x1e',
1047
+ 'x2gd',
1048
+ 'x2idn',
1049
+ 'x2iedn',
1050
+ 'x2iezn',
1051
+ 'x4',
1052
+ 'x8g',
1053
+ 'z1d',
1054
+ 'z3'
1055
+ ])).optional().default([]),
1056
+ 'topology.kubernetes.io/region': z.array(z.enum([
1057
+ 'africa-south1',
1058
+ 'ap-northeast-1',
1059
+ 'ap-northeast-2',
1060
+ 'ap-northeast-3',
1061
+ 'ap-south-1',
1062
+ 'ap-southeast-1',
1063
+ 'ap-southeast-2',
1064
+ 'ash',
1065
+ 'asia-east1',
1066
+ 'asia-east2',
1067
+ 'asia-northeast1',
1068
+ 'asia-northeast2',
1069
+ 'asia-northeast3',
1070
+ 'asia-south1',
1071
+ 'asia-south2',
1072
+ 'asia-southeast1',
1073
+ 'asia-southeast2',
1074
+ 'australia-southeast1',
1075
+ 'australia-southeast2',
1076
+ 'ca-central-1',
1077
+ 'eu-central-1',
1078
+ 'eu-central-2',
1079
+ 'eu-north-1',
1080
+ 'eu-west-1',
1081
+ 'eu-west-2',
1082
+ 'eu-west-3',
1083
+ 'europe-central2',
1084
+ 'europe-north1',
1085
+ 'europe-southwest1',
1086
+ 'europe-west1',
1087
+ 'europe-west10',
1088
+ 'europe-west12',
1089
+ 'europe-west2',
1090
+ 'europe-west3',
1091
+ 'europe-west4',
1092
+ 'europe-west6',
1093
+ 'europe-west8',
1094
+ 'europe-west9',
1095
+ 'fsn1',
1096
+ 'hel1',
1097
+ 'hil',
1098
+ 'me-central1',
1099
+ 'me-central2',
1100
+ 'me-west1',
1101
+ 'nbg1',
1102
+ 'northamerica-northeast1',
1103
+ 'northamerica-northeast2',
1104
+ 'sa-east-1',
1105
+ 'sin',
1106
+ 'southamerica-east1',
1107
+ 'southamerica-west1',
1108
+ 'us-central1',
1109
+ 'us-east-1',
1110
+ 'us-east-2',
1111
+ 'us-east1',
1112
+ 'us-east4',
1113
+ 'us-east5',
1114
+ 'us-south1',
1115
+ 'us-west-1',
1116
+ 'us-west-2',
1117
+ 'us-west1',
1118
+ 'us-west2',
1119
+ 'us-west3',
1120
+ 'us-west4'
1121
+ ])).optional().default([])
1122
+ }).optional().default({
1123
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1124
+ 'kubernetes.io/arch': ['amd64'],
1125
+ 'cfke.io/instance-family': [],
1126
+ 'topology.kubernetes.io/region': []
1127
+ }),
1128
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
1129
+ taints: z.array(z.object({
1130
+ key: z.string(),
1131
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
1132
+ effect: z.enum([
1133
+ 'NoSchedule',
1134
+ 'PreferNoSchedule',
1135
+ 'NoExecute'
1136
+ ])
1137
+ })).max(50).optional().default([])
1138
+ });
1139
+ export const zInviteCreateInput = z.object({
1140
+ email: z.email(),
1141
+ role: z.enum(['Administrator', 'User']).optional().default('User')
323
1142
  });
324
1143
  export const zInvite = z.object({
325
- id: z.optional(z.string()),
326
- organization_id: z.optional(z.uuid()),
1144
+ id: z.string().optional(),
1145
+ organization_id: z.uuid().optional(),
327
1146
  date_created: z.iso.datetime(),
328
- email: z.optional(z.email()),
329
- code: z.optional(z.string())
1147
+ email: z.email().optional(),
1148
+ code: z.string().optional(),
1149
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1150
+ });
1151
+ export const zInvoicePaymentAttempt = z.object({
1152
+ invoice_id: z.string(),
1153
+ number: z.string(),
1154
+ amount: z.number(),
1155
+ currency: z.string(),
1156
+ status: z.enum([
1157
+ 'paid',
1158
+ 'processing',
1159
+ 'requires_action',
1160
+ 'failed'
1161
+ ]),
1162
+ client_secret: z.string(),
1163
+ failure_code: z.string(),
1164
+ failure_message: z.string()
1165
+ });
1166
+ export const zInvoicePaymentResult = z.object({
1167
+ code: z.enum([
1168
+ 'paid',
1169
+ 'processing',
1170
+ 'action_required',
1171
+ 'partially_paid',
1172
+ 'failed',
1173
+ 'nothing_due',
1174
+ 'bank_transfer_due'
1175
+ ]),
1176
+ message: z.string(),
1177
+ results: z.array(z.object({
1178
+ invoice_id: z.string(),
1179
+ number: z.string(),
1180
+ amount: z.number(),
1181
+ currency: z.string(),
1182
+ status: z.enum([
1183
+ 'paid',
1184
+ 'processing',
1185
+ 'requires_action',
1186
+ 'failed'
1187
+ ]),
1188
+ client_secret: z.string(),
1189
+ failure_code: z.string(),
1190
+ failure_message: z.string()
1191
+ }))
330
1192
  });
331
1193
  export const zInvoice = z.object({
332
- id: z.optional(z.uuid()),
333
- number: z.optional(z.string()),
334
- status: z.optional(z.string()),
335
- total: z.optional(z.number()),
336
- currency: z.optional(z.string()),
1194
+ id: z.string().optional(),
1195
+ number: z.string().optional(),
1196
+ status: z.string().optional(),
1197
+ total: z.number().optional(),
1198
+ currency: z.string().optional(),
337
1199
  created: z.iso.datetime(),
338
1200
  period_start: z.iso.datetime(),
339
1201
  period_end: z.iso.datetime(),
340
- invoice_pdf: z.optional(z.string())
1202
+ invoice_pdf: z.string().optional()
1203
+ });
1204
+ export const zMarketplaceListingFiles = z.object({
1205
+ chartYaml: z.string().optional(),
1206
+ valuesYaml: z.string().optional(),
1207
+ valuesSchemaJson: z.string().optional()
341
1208
  });
342
1209
  export const zMarketplaceListing = z.object({
343
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
344
1210
  name: z.string(),
345
- developer: z.string(),
346
- description: z.string(),
347
- logoUrl: z.string(),
348
- longDescription: z.string(),
349
- categories: z.array(z.string()),
1211
+ 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-]+)*))?$/)),
350
1212
  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-]+)*))?$/)),
351
- value_schemas: z.array(z.object({
352
- 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-]+)*))?$/),
353
- schema: z.string(),
354
- placeholder: z.string()
355
- }))
1213
+ latestVersion: z.string(),
1214
+ metadata: z.object({
1215
+ name: z.string(),
1216
+ version: z.string(),
1217
+ description: z.string().optional(),
1218
+ appVersion: z.string().optional(),
1219
+ apiVersion: z.string().optional(),
1220
+ keywords: z.array(z.string()).optional(),
1221
+ home: z.string().optional(),
1222
+ icon: z.string().optional(),
1223
+ sources: z.array(z.string()).optional(),
1224
+ maintainers: z.array(z.object({
1225
+ name: z.string(),
1226
+ email: z.string().optional()
1227
+ })).optional()
1228
+ }).optional()
356
1229
  });
357
1230
  export const zOrganizationCreateInput = z.object({
1231
+ type: z.enum(['business', 'personal']),
358
1232
  email: z.email(),
359
- first_name: z.string(),
360
- last_name: z.string(),
1233
+ first_name: z.string().min(1),
1234
+ last_name: z.string().min(1),
361
1235
  company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
362
1236
  password: z.string().min(8)
363
1237
  });
1238
+ export const zOrganizationCreateOutput = z.object({
1239
+ id: z.string()
1240
+ });
364
1241
  export const zOrganization = z.object({
365
1242
  id: z.uuid(),
366
- name: z.optional(z.string().min(2).max(120)),
1243
+ name: z.string().min(2).max(120).optional(),
1244
+ type: z.enum(['business', 'personal']),
367
1245
  date_created: z.iso.datetime(),
368
1246
  quota: z.object({
369
1247
  basic_clusters_max: z.int().gte(0),
370
1248
  basic_clusters_available: z.int(),
371
1249
  pro_clusters_max: z.int().gte(0),
372
1250
  pro_clusters_available: z.int(),
1251
+ enterprise_clusters_max: z.int().gte(0),
1252
+ enterprise_clusters_available: z.int(),
373
1253
  fleets_max: z.int().gte(0),
374
1254
  cluster_tiers: z.array(z.string()).min(0),
375
1255
  regions: z.array(z.string()).min(1),
376
1256
  versions: z.array(z.object({
377
1257
  id: z.string(),
378
1258
  label: z.string()
379
- })).min(1)
1259
+ })).min(1),
1260
+ cfcr_storage_gb: z.int().gte(-1)
380
1261
  }),
381
1262
  status: z.enum([
382
1263
  'active',
383
1264
  'closed',
384
1265
  'suspended'
1266
+ ]),
1267
+ verification: z.enum([
1268
+ 'none',
1269
+ 'submitted',
1270
+ 'verified'
385
1271
  ])
386
1272
  });
387
1273
  export const zPaymentMethod = z.object({
388
- id: z.uuid(),
389
- setup: z.boolean(),
1274
+ id: z.string(),
390
1275
  type: z.enum([
391
- 'card'
1276
+ 'card',
1277
+ 'sepa_debit',
1278
+ 'bank_transfer'
392
1279
  ]),
393
1280
  last4: z.string(),
394
1281
  exp_month: z.int().gte(1).lte(12),
395
- exp_year: z.int().gte(2024),
396
- brand: z.enum([
397
- 'amex',
398
- 'diners',
399
- 'discover',
400
- 'eftpos_au',
401
- 'jcb',
402
- 'mastercard',
403
- 'unionpay',
404
- 'visa',
405
- 'unknown'
406
- ])
1282
+ exp_year: z.int(),
1283
+ brand: z.string(),
1284
+ iban: z.string(),
1285
+ bic: z.string(),
1286
+ account_holder_name: z.string(),
1287
+ is_default: z.boolean()
407
1288
  });
408
1289
  export const zPlatformQuota = z.object({
409
1290
  basic_clusters_max: z.int().gte(0),
410
1291
  basic_clusters_available: z.int(),
411
1292
  pro_clusters_max: z.int().gte(0),
412
1293
  pro_clusters_available: z.int(),
1294
+ enterprise_clusters_max: z.int().gte(0),
1295
+ enterprise_clusters_available: z.int(),
413
1296
  fleets_max: z.int().gte(0),
414
1297
  cluster_tiers: z.array(z.string()).min(0),
415
1298
  regions: z.array(z.string()).min(1),
416
1299
  versions: z.array(z.object({
417
1300
  id: z.string(),
418
1301
  label: z.string()
419
- })).min(1)
1302
+ })).min(1),
1303
+ cfcr_storage_gb: z.int().gte(-1)
420
1304
  });
421
1305
  export const zRegistryRepository = z.object({
422
1306
  name: z.string(),
@@ -430,77 +1314,172 @@ export const zRegistryRepositoryWithTags = z.object({
430
1314
  tags: z.array(z.object({
431
1315
  name: z.string(),
432
1316
  size: z.number(),
433
- mediaType: z.optional(z.string())
1317
+ mediaType: z.string().optional(),
1318
+ platforms: z.array(z.string()).optional()
434
1319
  })),
435
1320
  totalSize: z.number()
436
1321
  });
437
1322
  export const zRegistryTag = z.object({
438
1323
  name: z.string(),
439
- mediaType: z.optional(z.string()),
440
- config: z.optional(z.object({
1324
+ digest: z.string(),
1325
+ mediaType: z.string().optional(),
1326
+ config: z.object({
441
1327
  size: z.number()
442
- })),
443
- layers: z.optional(z.array(z.object({
1328
+ }).optional(),
1329
+ layers: z.array(z.object({
1330
+ digest: z.string().optional(),
444
1331
  size: z.number()
445
- }))),
446
- manifests: z.optional(z.array(z.object({
1332
+ })).optional(),
1333
+ manifests: z.array(z.object({
447
1334
  digest: z.string(),
448
- platform: z.optional(z.object({
1335
+ platform: z.object({
449
1336
  architecture: z.string(),
450
- os: z.string()
451
- }))
452
- }))),
1337
+ os: z.string(),
1338
+ variant: z.string().optional()
1339
+ }).optional(),
1340
+ layers: z.array(z.object({
1341
+ digest: z.string().optional(),
1342
+ size: z.number()
1343
+ })).optional(),
1344
+ size: z.number().optional()
1345
+ })).optional(),
453
1346
  size: z.number(),
454
1347
  region: z.string(),
455
1348
  repository: z.string(),
456
1349
  uri: z.string()
457
1350
  });
1351
+ export const zTicketAttachment = z.object({
1352
+ id: z.string(),
1353
+ filename: z.string(),
1354
+ content_type: z.string(),
1355
+ size: z.int()
1356
+ });
1357
+ export const zTicketCreateInput = z.object({
1358
+ category: z.enum([
1359
+ 'billing',
1360
+ 'technical',
1361
+ 'general'
1362
+ ]),
1363
+ body: z.string().min(1).max(50000).regex(/\S/),
1364
+ properties: z.record(z.string(), z.unknown()).optional()
1365
+ });
1366
+ export const zTicketMessageInput = z.object({
1367
+ body: z.string().min(1).max(50000).regex(/\S/)
1368
+ });
1369
+ export const zTicketMessage = z.object({
1370
+ id: z.string(),
1371
+ type: z.enum(['customer_reply', 'agent_reply']),
1372
+ body: z.string(),
1373
+ author_first_name: z.string().optional(),
1374
+ author_last_name: z.string().optional(),
1375
+ attachments: z.array(z.object({
1376
+ id: z.string(),
1377
+ filename: z.string(),
1378
+ content_type: z.string(),
1379
+ size: z.int()
1380
+ })).optional(),
1381
+ date_created: z.iso.datetime()
1382
+ });
1383
+ export const zTicket = z.object({
1384
+ id: z.string(),
1385
+ status: z.enum([
1386
+ 'waiting_on_us',
1387
+ 'waiting_on_user',
1388
+ 'closed'
1389
+ ]),
1390
+ category: z.enum([
1391
+ 'billing',
1392
+ 'technical',
1393
+ 'general'
1394
+ ]),
1395
+ summary: z.string(),
1396
+ closed_at: z.iso.datetime().optional(),
1397
+ date_created: z.iso.datetime(),
1398
+ date_updated: z.iso.datetime(),
1399
+ messages: z.array(z.object({
1400
+ id: z.string(),
1401
+ type: z.enum(['customer_reply', 'agent_reply']),
1402
+ body: z.string(),
1403
+ author_first_name: z.string().optional(),
1404
+ author_last_name: z.string().optional(),
1405
+ attachments: z.array(z.object({
1406
+ id: z.string(),
1407
+ filename: z.string(),
1408
+ content_type: z.string(),
1409
+ size: z.int()
1410
+ })).optional(),
1411
+ date_created: z.iso.datetime()
1412
+ })).optional()
1413
+ });
458
1414
  export const zTokenCreateInput = z.object({
459
1415
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
460
- role: z.enum([
461
- 'Administrator',
462
- 'User'
463
- ])
1416
+ role: z.enum(['Administrator', 'User'])
464
1417
  });
465
1418
  export const zToken = z.object({
466
1419
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
467
- role: z.enum([
468
- 'Administrator',
469
- 'User'
470
- ]),
471
- id: z.optional(z.string()),
472
- secret: z.optional(z.string()),
1420
+ role: z.enum(['Administrator', 'User']),
1421
+ id: z.string().optional(),
1422
+ secret: z.string().optional(),
473
1423
  date_created: z.iso.datetime()
474
1424
  });
475
1425
  export const zTokenUpdateInput = z.object({
476
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
477
- role: z.optional(z.enum([
478
- 'Administrator',
479
- 'User'
480
- ]))
1426
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
1427
+ role: z.enum(['Administrator', 'User']).optional()
481
1428
  });
482
1429
  export const zUsageFacets = z.object({
483
- cluster_id: z.optional(z.array(z.string())),
484
- product: z.optional(z.array(z.string()))
1430
+ cluster_id: z.array(z.string()).optional(),
1431
+ product: z.array(z.enum([
1432
+ 'cfke_controlplane_basic',
1433
+ 'cfke_controlplane_pro',
1434
+ 'cfke_controlplane_enterprise',
1435
+ 'cfke_connected_nodes_basic',
1436
+ 'cfke_connected_nodes_pro',
1437
+ 'cfke_connected_nodes_enterprise',
1438
+ 'cfcr_storage'
1439
+ ])).optional()
485
1440
  });
486
1441
  export const zUsageResponse = z.object({
487
1442
  data: z.array(z.object({
488
1443
  hour: z.string(),
489
1444
  cluster_id: z.string(),
490
- product: z.string(),
1445
+ product: z.enum([
1446
+ 'cfke_controlplane_basic',
1447
+ 'cfke_controlplane_pro',
1448
+ 'cfke_controlplane_enterprise',
1449
+ 'cfke_connected_nodes_basic',
1450
+ 'cfke_connected_nodes_pro',
1451
+ 'cfke_connected_nodes_enterprise',
1452
+ 'cfcr_storage'
1453
+ ]),
491
1454
  value: z.number(),
492
1455
  price: z.number(),
493
1456
  total: z.number()
494
1457
  })),
495
1458
  facets: z.object({
496
- cluster_id: z.optional(z.array(z.string())),
497
- product: z.optional(z.array(z.string()))
1459
+ cluster_id: z.array(z.string()).optional(),
1460
+ product: z.array(z.enum([
1461
+ 'cfke_controlplane_basic',
1462
+ 'cfke_controlplane_pro',
1463
+ 'cfke_controlplane_enterprise',
1464
+ 'cfke_connected_nodes_basic',
1465
+ 'cfke_connected_nodes_pro',
1466
+ 'cfke_connected_nodes_enterprise',
1467
+ 'cfcr_storage'
1468
+ ])).optional()
498
1469
  })
499
1470
  });
500
1471
  export const zUsage = z.object({
501
1472
  hour: z.string(),
502
1473
  cluster_id: z.string(),
503
- product: z.string(),
1474
+ product: z.enum([
1475
+ 'cfke_controlplane_basic',
1476
+ 'cfke_controlplane_pro',
1477
+ 'cfke_controlplane_enterprise',
1478
+ 'cfke_connected_nodes_basic',
1479
+ 'cfke_connected_nodes_pro',
1480
+ 'cfke_connected_nodes_enterprise',
1481
+ 'cfcr_storage'
1482
+ ]),
504
1483
  value: z.number(),
505
1484
  price: z.number(),
506
1485
  total: z.number()
@@ -510,572 +1489,420 @@ export const zUserCreateInput = z.object({
510
1489
  first_name: z.string().min(1).max(50),
511
1490
  last_name: z.string().min(1).max(50),
512
1491
  code: z.string(),
513
- password: z.string().min(8),
514
- status: z.optional(z.enum([
515
- 'active',
516
- 'inactive'
517
- ])),
518
- role: z.optional(z.enum([
519
- 'Administrator',
520
- 'User'
521
- ]))
1492
+ password: z.string().min(8)
522
1493
  });
523
1494
  export const zUser = z.object({
524
1495
  email: z.email(),
525
1496
  first_name: z.string().min(1).max(50),
526
1497
  last_name: z.string().min(1).max(50),
527
- role: z.enum([
528
- 'Administrator',
529
- 'User'
530
- ]),
531
- status: z.enum([
532
- 'active',
533
- 'inactive'
534
- ]),
1498
+ role: z.enum(['Administrator', 'User']),
1499
+ status: z.enum(['active', 'inactive']),
535
1500
  id: z.uuid(),
536
1501
  date_created: z.iso.datetime()
537
1502
  });
538
1503
  export const zUserUpdateInput = z.object({
539
- email: z.optional(z.email()),
540
- first_name: z.optional(z.string().min(1).max(50)),
541
- last_name: z.optional(z.string().min(1).max(50)),
542
- role: z.optional(z.enum([
543
- 'Administrator',
544
- 'User'
545
- ])),
546
- status: z.optional(z.enum([
547
- 'active',
548
- 'inactive'
549
- ]))
550
- });
551
- export const zGetUsageData = z.object({
552
- body: z.optional(z.never()),
553
- path: z.optional(z.never()),
554
- query: z.optional(z.object({
555
- granularity: z.optional(z.enum([
556
- 'hourly',
557
- 'daily',
558
- 'monthly'
559
- ]))
560
- }))
1504
+ email: z.email().optional(),
1505
+ first_name: z.string().min(1).max(50).optional(),
1506
+ last_name: z.string().min(1).max(50).optional(),
1507
+ role: z.enum(['Administrator', 'User']).optional(),
1508
+ status: z.enum(['active', 'inactive']).optional()
1509
+ });
1510
+ export const zListUserOrganizationsPath = z.object({
1511
+ email: z.string()
561
1512
  });
562
1513
  /**
563
- * Usage data with facets for filtering
1514
+ * An array of organizations the user belongs to.
564
1515
  */
565
- export const zGetUsageResponse = zUsageResponse;
566
- export const zGetPaymentMethodData = z.object({
567
- body: z.optional(z.never()),
568
- path: z.optional(z.never()),
569
- query: z.optional(z.never())
570
- });
1516
+ export const zListUserOrganizationsResponse = z.array(z.object({
1517
+ realm: z.string().optional(),
1518
+ displayName: z.string().optional()
1519
+ }));
571
1520
  /**
572
- * Redacted payment card information.
1521
+ * An array of users
573
1522
  */
574
- export const zGetPaymentMethodResponse = zPaymentMethod;
575
- export const zGetPaymentMethodSecretData = z.object({
576
- body: z.optional(z.never()),
577
- path: z.optional(z.never()),
578
- query: z.optional(z.never())
579
- });
1523
+ export const zListUsersResponse = z.array(zUser);
1524
+ export const zCreateUserBody = zUserCreateInput;
580
1525
  /**
581
- * 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.
582
- *
1526
+ * Successfully created. Returns created user details.
583
1527
  */
584
- export const zGetPaymentMethodSecretResponse = z.object({
585
- id: z.optional(z.string())
586
- });
587
- export const zListInvoicesData = z.object({
588
- body: z.optional(z.never()),
589
- path: z.optional(z.never()),
590
- query: z.optional(z.never())
1528
+ export const zCreateUserResponse = zUser;
1529
+ export const zDeleteUserPath = z.object({
1530
+ user_id: z.string()
591
1531
  });
592
1532
  /**
593
- * An array of usage records.
1533
+ * User profile information
594
1534
  */
595
- export const zListInvoicesResponse = z.array(zInvoice);
596
- export const zGetContactData = z.object({
597
- body: z.optional(z.never()),
598
- path: z.optional(z.never()),
599
- query: z.optional(z.never())
1535
+ export const zDeleteUserResponse = zUser;
1536
+ export const zGetUserPath = z.object({
1537
+ user_id: z.string()
600
1538
  });
601
1539
  /**
602
- * Returns a single object containing organization contact and billing address details.
1540
+ * User profile information
603
1541
  */
604
- export const zGetContactResponse = zBillingContact;
605
- export const zUpdateContactData = z.object({
606
- body: zBillingContact,
607
- path: z.optional(z.never()),
608
- query: z.optional(z.never())
1542
+ export const zGetUserResponse = zUser;
1543
+ export const zUpdateUserBody = zUserUpdateInput;
1544
+ export const zUpdateUserPath = z.object({
1545
+ user_id: z.string()
609
1546
  });
610
1547
  /**
611
- * Successfully updated. Returns updated organization details.
1548
+ * Successfully created. Returns created user details.
612
1549
  */
613
- export const zUpdateContactResponse = zBillingContact;
614
- export const zGetCreditsData = z.object({
615
- body: z.optional(z.never()),
616
- path: z.optional(z.never()),
617
- query: z.optional(z.never())
618
- });
1550
+ export const zUpdateUserResponse = zUser;
619
1551
  /**
620
- * An array of the applied promotional credits records.
1552
+ * Returns a list of access token details with masked secrets.
621
1553
  */
622
- export const zGetCreditsResponse = z.array(zBillingCredits);
623
- export const zRedeemCreditsData = z.object({
624
- body: z.object({
625
- code: z.optional(z.string())
626
- }),
627
- path: z.optional(z.never()),
628
- query: z.optional(z.never())
1554
+ export const zListTokensResponse = z.array(zToken);
1555
+ export const zCreateTokenBody = zTokenCreateInput;
1556
+ /**
1557
+ * Successfully created. Returns created token details with unmasked/raw secret.
1558
+ */
1559
+ export const zCreateTokenResponse = zToken;
1560
+ export const zDeleteTokenPath = z.object({
1561
+ token_id: z.string()
629
1562
  });
630
- export const zListChartsData = z.object({
631
- body: z.optional(z.never()),
632
- path: z.object({
633
- cluster_id: z.string()
634
- }),
635
- query: z.optional(z.never())
1563
+ export const zGetTokenPath = z.object({
1564
+ token_id: z.string()
636
1565
  });
637
1566
  /**
638
- * An array of charts
1567
+ * Returns access token details with masked secret.
639
1568
  */
640
- export const zListChartsResponse = z.array(zChart);
641
- export const zCreateChartData = z.object({
642
- body: zChartCreateInput,
643
- path: z.object({
644
- cluster_id: z.string()
645
- }),
646
- query: z.optional(z.never())
1569
+ export const zGetTokenResponse = zToken;
1570
+ export const zUpdateTokenBody = zTokenUpdateInput;
1571
+ export const zUpdateTokenPath = z.object({
1572
+ token_id: z.string()
647
1573
  });
648
1574
  /**
649
- * Successfully created. Returns created Chart ID.
1575
+ * Successfully updated. Returns updated token details with masked secret.
650
1576
  */
651
- export const zCreateChartResponse = z.string();
652
- export const zDeleteChartData = z.object({
653
- body: z.optional(z.never()),
654
- path: z.object({
655
- cluster_id: z.string(),
656
- chart_name: z.string()
657
- }),
658
- query: z.optional(z.never())
1577
+ export const zUpdateTokenResponse = zToken;
1578
+ export const zRegenerateTokenPath = z.object({
1579
+ token_id: z.string()
659
1580
  });
660
1581
  /**
661
- * Successfully deleted.
1582
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
662
1583
  */
663
- export const zDeleteChartResponse = z.string();
664
- export const zGetChartData = z.object({
665
- body: z.optional(z.never()),
666
- path: z.object({
667
- cluster_id: z.string(),
668
- chart_name: z.string()
669
- }),
670
- query: z.optional(z.never())
671
- });
1584
+ export const zRegenerateTokenResponse = zToken;
672
1585
  /**
673
- * Returns a single object containing chart details.
1586
+ * An array of tickets for the organization, newest first.
674
1587
  */
675
- export const zGetChartResponse = zChart;
676
- export const zUpdateChartData = z.object({
677
- body: zChartUpdateInput,
678
- path: z.object({
679
- cluster_id: z.string(),
680
- chart_name: z.string()
681
- }),
682
- query: z.optional(z.never())
1588
+ export const zListTicketsResponse = z.array(zTicket);
1589
+ export const zCreateTicketBody = z.object({
1590
+ payload: z.string().optional(),
1591
+ attachments: z.array(z.string()).optional()
683
1592
  });
684
1593
  /**
685
- * Successfully updated.
1594
+ * Ticket created.
686
1595
  */
687
- export const zUpdateChartResponse = z.string();
688
- export const zListFleetsData = z.object({
689
- body: z.optional(z.never()),
690
- path: z.object({
691
- cluster_id: z.string()
692
- }),
693
- query: z.optional(z.never())
1596
+ export const zCreateTicketResponse = zTicket;
1597
+ export const zCloseTicketPath = z.object({
1598
+ ticket_id: z.string()
694
1599
  });
695
1600
  /**
696
- * An array of fleets
1601
+ * Ticket closed.
697
1602
  */
698
- export const zListFleetsResponse = z.array(zFleet);
699
- export const zCreateFleetData = z.object({
700
- body: zFleetCreateInput,
701
- path: z.object({
702
- cluster_id: z.string()
703
- }),
704
- query: z.optional(z.never())
1603
+ export const zCloseTicketResponse = zTicket;
1604
+ export const zGetTicketPath = z.object({
1605
+ ticket_id: z.string()
705
1606
  });
706
1607
  /**
707
- * Successfully created. Returns created Fleet ID.
1608
+ * Ticket with messages (internal notes excluded).
708
1609
  */
709
- export const zCreateFleetResponse = z.string();
710
- export const zDeleteFleetData = z.object({
711
- body: z.optional(z.never()),
712
- path: z.object({
713
- cluster_id: z.string(),
714
- fleet_name: z.string()
715
- }),
716
- query: z.optional(z.never())
1610
+ export const zGetTicketResponse = zTicket;
1611
+ export const zReplyTicketBody = z.object({
1612
+ payload: z.string().optional(),
1613
+ attachments: z.array(z.string()).optional()
1614
+ });
1615
+ export const zReplyTicketPath = z.object({
1616
+ ticket_id: z.string()
717
1617
  });
718
1618
  /**
719
- * Successfully deleted.
1619
+ * Reply appended.
720
1620
  */
721
- export const zDeleteFleetResponse = z.string();
722
- export const zGetFleetData = z.object({
723
- body: z.optional(z.never()),
724
- path: z.object({
725
- cluster_id: z.string(),
726
- fleet_name: z.string()
727
- }),
728
- query: z.optional(z.never())
1621
+ export const zReplyTicketResponse = zTicketMessage;
1622
+ export const zGetTicketAttachmentPath = z.object({
1623
+ ticket_id: z.string(),
1624
+ attachment_id: z.string()
729
1625
  });
730
1626
  /**
731
- * Returns a single object containing fleet details.
1627
+ * Attachment binary stream.
732
1628
  */
733
- export const zGetFleetResponse = zFleet;
734
- export const zUpdateFleetData = z.object({
735
- body: zFleetUpdateInput,
736
- path: z.object({
737
- cluster_id: z.string(),
738
- fleet_name: z.string()
739
- }),
740
- query: z.optional(z.never())
1629
+ export const zGetTicketAttachmentResponse = z.string();
1630
+ /**
1631
+ * List of repositories
1632
+ */
1633
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1634
+ export const zListTagsPath = z.object({
1635
+ region: z.string(),
1636
+ repository: z.string()
741
1637
  });
742
1638
  /**
743
- * Successfully updated.
1639
+ * Repository with tags
744
1640
  */
745
- export const zUpdateFleetResponse = z.string();
746
- export const zQueryClusterData = z.object({
747
- body: z.optional(z.never()),
748
- path: z.object({
749
- cluster_id: z.string()
750
- }),
751
- query: z.optional(z.never())
1641
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1642
+ export const zDeleteTagPath = z.object({
1643
+ region: z.string(),
1644
+ repository: z.string(),
1645
+ tag: z.string()
752
1646
  });
753
- export const zListClustersData = z.object({
754
- body: z.optional(z.never()),
755
- path: z.optional(z.never()),
756
- query: z.optional(z.never())
1647
+ export const zGetTagPath = z.object({
1648
+ region: z.string(),
1649
+ repository: z.string(),
1650
+ tag: z.string()
757
1651
  });
758
1652
  /**
759
- * An array of clusters
1653
+ * Tag details
760
1654
  */
761
- export const zListClustersResponse = z.array(zCluster);
762
- export const zCreateClusterData = z.object({
763
- body: zClusterCreateInput,
764
- path: z.optional(z.never()),
765
- query: z.optional(z.never())
766
- });
1655
+ export const zGetTagResponse = zRegistryTag;
767
1656
  /**
768
- * Successfully created. Returns created Cluster ID.
1657
+ * Returns a single object containing organization details.
769
1658
  */
770
- export const zCreateClusterResponse = z.string();
771
- export const zDeleteClusterData = z.object({
772
- body: z.optional(z.never()),
773
- path: z.object({
774
- cluster_id: z.string()
775
- }),
776
- query: z.optional(z.never())
777
- });
1659
+ export const zGetOrganizationResponse = zOrganization;
1660
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
778
1661
  /**
779
- * Successfully deleted.
1662
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1663
+ *
780
1664
  */
781
- export const zDeleteClusterResponse = z.string();
782
- export const zGetClusterData = z.object({
783
- body: z.optional(z.never()),
784
- path: z.object({
785
- cluster_id: z.string()
786
- }),
787
- query: z.optional(z.never())
788
- });
1665
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
789
1666
  /**
790
- * Returns a single object containing cluster details.
1667
+ * JSON-RPC 2.0 request payload
791
1668
  */
792
- export const zGetClusterResponse = zCluster;
793
- export const zUpdateClusterData = z.object({
794
- body: zClusterUpdateInput,
795
- path: z.object({
796
- cluster_id: z.string()
797
- }),
798
- query: z.optional(z.never())
1669
+ export const zPostMcpBody = z.object({
1670
+ jsonrpc: z.string().optional(),
1671
+ method: z.string().optional(),
1672
+ id: z.union([
1673
+ z.string(),
1674
+ z.number()
1675
+ ]).optional(),
1676
+ params: z.record(z.string(), z.unknown()).optional()
799
1677
  });
800
1678
  /**
801
- * Successfully updated. Returns updated cluster details.
1679
+ * JSON-RPC 2.0 success or error response
802
1680
  */
803
- export const zUpdateClusterResponse = zCluster;
804
- export const zGetJoinInformationData = z.object({
805
- body: z.optional(z.never()),
806
- path: z.object({
807
- cluster_id: z.string()
808
- }),
809
- query: z.optional(z.never())
1681
+ export const zPostMcpResponse = z.object({
1682
+ jsonrpc: z.string().optional(),
1683
+ id: z.union([
1684
+ z.string(),
1685
+ z.number()
1686
+ ]).optional(),
1687
+ result: z.record(z.string(), z.unknown()).optional(),
1688
+ error: z.object({
1689
+ code: z.int().optional(),
1690
+ message: z.string().optional()
1691
+ }).optional()
810
1692
  });
811
1693
  /**
812
- * An object of cluster join information
1694
+ * An array of chart listings in the marketplace.
813
1695
  */
814
- export const zGetJoinInformationResponse = zClusterJoinInformation;
815
- export const zListInvitesData = z.object({
816
- body: z.optional(z.never()),
817
- path: z.optional(z.never()),
818
- query: z.optional(z.never())
1696
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1697
+ export const zGetMarketplaceChartFilesPath = z.object({
1698
+ chart_name: z.string(),
1699
+ version_channel: z.string()
819
1700
  });
1701
+ /**
1702
+ * Returns an object containing the chart files for the latest matching version.
1703
+ */
1704
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
820
1705
  /**
821
1706
  * An array of invites
822
1707
  */
823
1708
  export const zListInvitesResponse = z.array(zInvite);
824
- export const zCreateInviteData = z.object({
825
- body: z.object({
826
- email: z.optional(z.string())
827
- }),
828
- path: z.optional(z.never()),
829
- query: z.optional(z.never())
830
- });
1709
+ export const zCreateInviteBody = zInviteCreateInput;
831
1710
  /**
832
1711
  * Successfully created. Returns created invite details.
833
1712
  */
834
1713
  export const zCreateInviteResponse = zInvite;
835
- export const zGetInviteData = z.object({
836
- body: z.optional(z.never()),
837
- path: z.object({
838
- code: z.string()
839
- }),
840
- query: z.optional(z.never())
1714
+ export const zGetInvitePath = z.object({
1715
+ code: z.string()
841
1716
  });
842
1717
  /**
843
- * Returns a single object containing invite details.
1718
+ * The invitation code is valid. Returns the invited email and organization.
844
1719
  */
845
- export const zGetInviteResponse = zInvite;
846
- export const zDeleteInviteData = z.object({
847
- body: z.optional(z.never()),
848
- path: z.object({
849
- email: z.string()
850
- }),
851
- query: z.optional(z.never())
1720
+ export const zGetInviteResponse = z.object({
1721
+ email: z.email().optional(),
1722
+ organization_id: z.string().optional()
852
1723
  });
853
- export const zListMarketplaceChartsData = z.object({
854
- body: z.optional(z.never()),
855
- path: z.optional(z.never()),
856
- query: z.optional(z.never())
1724
+ export const zDeleteInvitePath = z.object({
1725
+ email: z.email()
1726
+ });
1727
+ export const zQueryClusterPath = z.object({
1728
+ cluster_id: z.string()
1729
+ });
1730
+ export const zListFleetsPath = z.object({
1731
+ cluster_id: z.string()
857
1732
  });
858
1733
  /**
859
- * An array of chart listings in the marketplace.
1734
+ * An array of fleets
860
1735
  */
861
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
862
- export const zGetMarketplaceChartData = z.object({
863
- body: z.optional(z.never()),
864
- path: z.object({
865
- listing_id: z.string()
866
- }),
867
- query: z.optional(z.never())
1736
+ export const zListFleetsResponse = z.array(zFleet);
1737
+ export const zCreateFleetBody = zFleetCreateInput;
1738
+ export const zCreateFleetPath = z.object({
1739
+ cluster_id: z.string()
868
1740
  });
869
1741
  /**
870
- * Returns an object containing the chart listing details.
1742
+ * Successfully created. Returns created Fleet ID.
871
1743
  */
872
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
873
- export const zPostMcpData = z.object({
874
- body: z.object({
875
- jsonrpc: z.optional(z.string()),
876
- method: z.optional(z.string()),
877
- id: z.optional(z.union([
878
- z.string(),
879
- z.number()
880
- ])),
881
- params: z.optional(z.record(z.string(), z.unknown()))
882
- }),
883
- path: z.optional(z.never()),
884
- query: z.optional(z.never())
1744
+ export const zCreateFleetResponse = z.string();
1745
+ export const zDeleteFleetPath = z.object({
1746
+ cluster_id: z.string(),
1747
+ fleet_name: z.string()
885
1748
  });
886
1749
  /**
887
- * JSON-RPC 2.0 success or error response
1750
+ * Successfully deleted.
888
1751
  */
889
- export const zPostMcpResponse = z.object({
890
- jsonrpc: z.optional(z.string()),
891
- id: z.optional(z.union([
892
- z.string(),
893
- z.number()
894
- ])),
895
- result: z.optional(z.record(z.string(), z.unknown())),
896
- error: z.optional(z.object({
897
- code: z.optional(z.int()),
898
- message: z.optional(z.string())
899
- }))
900
- });
901
- export const zGetOrganizationData = z.object({
902
- body: z.optional(z.never()),
903
- path: z.optional(z.never()),
904
- query: z.optional(z.never())
1752
+ export const zDeleteFleetResponse = z.string();
1753
+ export const zGetFleetPath = z.object({
1754
+ cluster_id: z.string(),
1755
+ fleet_name: z.string()
905
1756
  });
906
1757
  /**
907
- * Returns a single object containing organization details.
1758
+ * Returns a single object containing fleet details.
908
1759
  */
909
- export const zGetOrganizationResponse = zOrganization;
910
- export const zCreateOrganizationData = z.object({
911
- body: zOrganizationCreateInput,
912
- path: z.optional(z.never()),
913
- query: z.optional(z.never())
914
- });
915
- export const zListRepositoriesData = z.object({
916
- body: z.optional(z.never()),
917
- path: z.optional(z.never()),
918
- query: z.optional(z.never())
1760
+ export const zGetFleetResponse = zFleet;
1761
+ export const zUpdateFleetBody = zFleetUpdateInput;
1762
+ export const zUpdateFleetPath = z.object({
1763
+ cluster_id: z.string(),
1764
+ fleet_name: z.string()
919
1765
  });
920
1766
  /**
921
- * List of repositories
1767
+ * Successfully updated.
922
1768
  */
923
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
924
- export const zListTagsData = z.object({
925
- body: z.optional(z.never()),
926
- path: z.object({
927
- region: z.string(),
928
- repository: z.string()
929
- }),
930
- query: z.optional(z.never())
1769
+ export const zUpdateFleetResponse = z.string();
1770
+ export const zListChartsPath = z.object({
1771
+ cluster_id: z.string()
931
1772
  });
932
1773
  /**
933
- * Repository with tags
1774
+ * An array of charts
934
1775
  */
935
- export const zListTagsResponse = zRegistryRepositoryWithTags;
936
- export const zDeleteTagData = z.object({
937
- body: z.optional(z.never()),
938
- path: z.object({
939
- region: z.string(),
940
- repository: z.string(),
941
- tag: z.string()
942
- }),
943
- query: z.optional(z.never())
944
- });
945
- export const zGetTagData = z.object({
946
- body: z.optional(z.never()),
947
- path: z.object({
948
- region: z.string(),
949
- repository: z.string(),
950
- tag: z.string()
951
- }),
952
- query: z.optional(z.never())
1776
+ export const zListChartsResponse = z.array(zChart);
1777
+ export const zCreateChartBody = zChartCreateInput;
1778
+ export const zCreateChartPath = z.object({
1779
+ cluster_id: z.string()
953
1780
  });
954
1781
  /**
955
- * Tag details
1782
+ * Successfully created. Returns created Chart ID.
956
1783
  */
957
- export const zGetTagResponse = zRegistryTag;
958
- export const zListTokensData = z.object({
959
- body: z.optional(z.never()),
960
- path: z.optional(z.never()),
961
- query: z.optional(z.never())
1784
+ export const zCreateChartResponse = z.string();
1785
+ export const zDeleteChartPath = z.object({
1786
+ cluster_id: z.string(),
1787
+ chart_name: z.string()
962
1788
  });
963
1789
  /**
964
- * Returns a list of access token details with masked secrets.
1790
+ * Successfully deleted.
965
1791
  */
966
- export const zListTokensResponse = z.array(zToken);
967
- export const zCreateTokenData = z.object({
968
- body: zTokenCreateInput,
969
- path: z.optional(z.never()),
970
- query: z.optional(z.never())
1792
+ export const zDeleteChartResponse = z.string();
1793
+ export const zGetChartPath = z.object({
1794
+ cluster_id: z.string(),
1795
+ chart_name: z.string()
971
1796
  });
972
1797
  /**
973
- * Successfully created. Returns created token details with unmasked/raw secret.
1798
+ * Returns a single object containing chart details.
974
1799
  */
975
- export const zCreateTokenResponse = zToken;
976
- export const zDeleteTokenData = z.object({
977
- body: z.optional(z.never()),
978
- path: z.object({
979
- token_id: z.string()
980
- }),
981
- query: z.optional(z.never())
982
- });
983
- export const zGetTokenData = z.object({
984
- body: z.optional(z.never()),
985
- path: z.object({
986
- token_id: z.string()
987
- }),
988
- query: z.optional(z.never())
1800
+ export const zGetChartResponse = zChart;
1801
+ export const zUpdateChartBody = zChartUpdateInput;
1802
+ export const zUpdateChartPath = z.object({
1803
+ cluster_id: z.string(),
1804
+ chart_name: z.string()
989
1805
  });
990
1806
  /**
991
- * Returns access token details with masked secret.
1807
+ * Successfully updated.
992
1808
  */
993
- export const zGetTokenResponse = zToken;
994
- export const zUpdateTokenData = z.object({
995
- body: zTokenUpdateInput,
996
- path: z.object({
997
- token_id: z.string()
998
- }),
999
- query: z.optional(z.never())
1809
+ export const zUpdateChartResponse = z.string();
1810
+ /**
1811
+ * An array of clusters
1812
+ */
1813
+ export const zListClustersResponse = z.array(zCluster);
1814
+ export const zCreateClusterBody = zClusterCreateInput;
1815
+ /**
1816
+ * Successfully created. Returns created Cluster ID.
1817
+ */
1818
+ export const zCreateClusterResponse = z.string();
1819
+ export const zDeleteClusterPath = z.object({
1820
+ cluster_id: z.string()
1000
1821
  });
1001
1822
  /**
1002
- * Successfully updated. Returns updated token details with masked secret.
1823
+ * Successfully deleted. The cluster has been torn down.
1003
1824
  */
1004
- export const zUpdateTokenResponse = zToken;
1005
- export const zRegenerateTokenData = z.object({
1006
- body: z.optional(z.never()),
1007
- path: z.object({
1008
- token_id: z.string()
1009
- }),
1010
- query: z.optional(z.never())
1825
+ export const zDeleteClusterResponse = z.string();
1826
+ export const zGetClusterPath = z.object({
1827
+ cluster_id: z.string()
1011
1828
  });
1012
1829
  /**
1013
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1830
+ * Returns a single object containing cluster details.
1014
1831
  */
1015
- export const zRegenerateTokenResponse = zToken;
1016
- export const zListUserOrganizationsData = z.object({
1017
- body: z.optional(z.never()),
1018
- path: z.object({
1019
- email: z.string()
1020
- }),
1021
- query: z.optional(z.never())
1832
+ export const zGetClusterResponse = zCluster;
1833
+ export const zUpdateClusterBody = zClusterUpdateInput;
1834
+ export const zUpdateClusterPath = z.object({
1835
+ cluster_id: z.string()
1022
1836
  });
1023
1837
  /**
1024
- * An array of organizations the user belongs to.
1838
+ * Successfully updated. Returns updated cluster details.
1025
1839
  */
1026
- export const zListUserOrganizationsResponse = z.array(z.object({
1027
- realm: z.optional(z.string()),
1028
- displayName: z.optional(z.string())
1029
- }));
1030
- export const zListUsersData = z.object({
1031
- body: z.optional(z.never()),
1032
- path: z.optional(z.never()),
1033
- query: z.optional(z.never())
1840
+ export const zUpdateClusterResponse = zCluster;
1841
+ export const zGetJoinInformationPath = z.object({
1842
+ cluster_id: z.string()
1034
1843
  });
1035
1844
  /**
1036
- * An array of users
1845
+ * An object of cluster join information
1037
1846
  */
1038
- export const zListUsersResponse = z.array(zUser);
1039
- export const zCreateUserData = z.object({
1040
- body: zUserCreateInput,
1041
- path: z.optional(z.never()),
1042
- query: z.optional(z.never())
1847
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1848
+ export const zGetUsageQuery = z.object({
1849
+ granularity: z.enum([
1850
+ 'hourly',
1851
+ 'daily',
1852
+ 'monthly'
1853
+ ]).optional().default('daily')
1043
1854
  });
1044
1855
  /**
1045
- * Successfully created. Returns created user details.
1856
+ * Usage data with facets for filtering
1046
1857
  */
1047
- export const zCreateUserResponse = zUser;
1048
- export const zDeleteUserData = z.object({
1049
- body: z.optional(z.never()),
1050
- path: z.object({
1051
- user_id: z.string()
1052
- }),
1053
- query: z.optional(z.never())
1858
+ export const zGetUsageResponse = zUsageResponse;
1859
+ /**
1860
+ * 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.
1861
+ *
1862
+ */
1863
+ export const zGetPaymentMethodSecretResponse = z.object({
1864
+ id: z.string().optional()
1054
1865
  });
1055
1866
  /**
1056
- * User profile information
1867
+ * An array of payment methods.
1057
1868
  */
1058
- export const zDeleteUserResponse = zUser;
1059
- export const zGetUserData = z.object({
1060
- body: z.optional(z.never()),
1061
- path: z.object({
1062
- user_id: z.string()
1063
- }),
1064
- query: z.optional(z.never())
1869
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1870
+ export const zSetDefaultPaymentMethodPath = z.object({
1871
+ paymentMethodId: z.string()
1065
1872
  });
1066
1873
  /**
1067
- * User profile information
1874
+ * Default payment method updated.
1068
1875
  */
1069
- export const zGetUserResponse = zUser;
1070
- export const zUpdateUserData = z.object({
1071
- body: zUserUpdateInput,
1072
- path: z.object({
1073
- user_id: z.string()
1074
- }),
1075
- query: z.optional(z.never())
1876
+ export const zSetDefaultPaymentMethodResponse = z.void();
1877
+ export const zDeletePaymentMethodPath = z.object({
1878
+ paymentMethodId: z.string()
1076
1879
  });
1077
1880
  /**
1078
- * Successfully created. Returns created user details.
1881
+ * Payment method deleted.
1079
1882
  */
1080
- export const zUpdateUserResponse = zUser;
1883
+ export const zDeletePaymentMethodResponse = z.void();
1884
+ /**
1885
+ * An array of usage records.
1886
+ */
1887
+ export const zListInvoicesResponse = z.array(zInvoice);
1888
+ /**
1889
+ * The outcome of the attempt.
1890
+ */
1891
+ export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
1892
+ /**
1893
+ * Returns a single object containing organization contact and billing address details.
1894
+ */
1895
+ export const zGetContactResponse = zBillingContact;
1896
+ export const zUpdateContactBody = zBillingContact;
1897
+ /**
1898
+ * Successfully updated. Returns updated organization details.
1899
+ */
1900
+ export const zUpdateContactResponse = zBillingContact;
1901
+ /**
1902
+ * An array of the applied promotional credits records.
1903
+ */
1904
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1905
+ export const zRedeemCreditsBody = z.object({
1906
+ code: z.string().optional()
1907
+ });
1081
1908
  //# sourceMappingURL=zod.gen.js.map