@cloudfleet/sdk 0.0.1-8ec217c → 0.0.1-8fe30fc

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