@cloudfleet/sdk 0.0.1-f1d40ff → 0.0.1-f231d8a

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