@cloudfleet/sdk 0.0.1-72f9b66 → 0.0.1-737b8cd

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