@cloudfleet/sdk 0.0.1-d940b00 → 0.0.1-da466c0

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 (46) hide show
  1. package/README.md +56 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +420 -626
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
  4. package/dist/@tanstack/react-query.gen.js +410 -419
  5. package/dist/@tanstack/react-query.gen.js.map +1 -1
  6. package/dist/client/client.gen.d.ts.map +1 -1
  7. package/dist/client/client.gen.js +1 -4
  8. package/dist/client/client.gen.js.map +1 -1
  9. package/dist/client/types.gen.d.ts +1 -1
  10. package/dist/client/types.gen.d.ts.map +1 -1
  11. package/dist/client/utils.gen.d.ts +2 -2
  12. package/dist/client/utils.gen.d.ts.map +1 -1
  13. package/dist/client/utils.gen.js +3 -3
  14. package/dist/client/utils.gen.js.map +1 -1
  15. package/dist/core/params.gen.js +4 -4
  16. package/dist/core/params.gen.js.map +1 -1
  17. package/dist/errors.d.ts +42 -0
  18. package/dist/errors.d.ts.map +1 -0
  19. package/dist/errors.js +83 -0
  20. package/dist/errors.js.map +1 -0
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +4 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/schemas.gen.d.ts +521 -492
  26. package/dist/schemas.gen.d.ts.map +1 -1
  27. package/dist/schemas.gen.js +719 -583
  28. package/dist/schemas.gen.js.map +1 -1
  29. package/dist/sdk.gen.d.ts +221 -228
  30. package/dist/sdk.gen.d.ts.map +1 -1
  31. package/dist/sdk.gen.js +339 -339
  32. package/dist/sdk.gen.js.map +1 -1
  33. package/dist/services/kubernetes/api.d.ts +18 -55
  34. package/dist/services/kubernetes/api.d.ts.map +1 -1
  35. package/dist/services/kubernetes/api.js +36 -75
  36. package/dist/services/kubernetes/api.js.map +1 -1
  37. package/dist/services/kubernetes/index.d.ts.map +1 -1
  38. package/dist/services/kubernetes/index.js +36 -37
  39. package/dist/services/kubernetes/index.js.map +1 -1
  40. package/dist/types.gen.d.ts +1002 -1056
  41. package/dist/types.gen.d.ts.map +1 -1
  42. package/dist/zod.gen.d.ts +1775 -1563
  43. package/dist/zod.gen.d.ts.map +1 -1
  44. package/dist/zod.gen.js +506 -378
  45. package/dist/zod.gen.js.map +1 -1
  46. package/package.json +10 -15
package/dist/zod.gen.js CHANGED
@@ -23,12 +23,17 @@ export const zBillingContact = z.object({
23
23
  'at_vat',
24
24
  'au_abn',
25
25
  'au_arn',
26
+ 'aw_tin',
27
+ 'az_tin',
26
28
  'ba_tin',
27
29
  'bb_tin',
30
+ 'bd_bin',
28
31
  'be_vat',
32
+ 'bf_ifu',
29
33
  'bg_uic',
30
34
  'bg_vat',
31
35
  'bh_vat',
36
+ 'bj_ifu',
32
37
  'bo_tin',
33
38
  'br_cnpj',
34
39
  'br_cpf',
@@ -44,9 +49,11 @@ export const zBillingContact = z.object({
44
49
  'ch_uid',
45
50
  'ch_vat',
46
51
  'cl_tin',
52
+ 'cm_niu',
47
53
  'cn_tin',
48
54
  'co_nit',
49
55
  'cr_tin',
56
+ 'cv_nif',
50
57
  'cy_vat',
51
58
  'cz_vat',
52
59
  'de_stn',
@@ -58,6 +65,7 @@ export const zBillingContact = z.object({
58
65
  'eg_tin',
59
66
  'es_cif',
60
67
  'es_vat',
68
+ 'et_tin',
61
69
  'eu_oss_vat',
62
70
  'fi_vat',
63
71
  'fr_vat',
@@ -80,11 +88,14 @@ export const zBillingContact = z.object({
80
88
  'jp_rn',
81
89
  'jp_trn',
82
90
  'ke_pin',
91
+ 'kg_tin',
83
92
  'kh_tin',
84
93
  'kr_brn',
85
94
  'kz_bin',
95
+ 'la_tin',
86
96
  'li_uid',
87
97
  'li_vat',
98
+ 'lk_vat',
88
99
  'lt_vat',
89
100
  'lu_vat',
90
101
  'lv_vat',
@@ -154,33 +165,16 @@ export const zBillingCredits = z.object({
154
165
  value_total: z.number(),
155
166
  value_remaining: z.number().optional()
156
167
  });
157
- export const zChartCreateInput = z.object({
158
- values: z.string(),
159
- 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-]+)*))?$/),
160
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
161
- namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
162
- chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
163
- });
164
- export const zChart = z.object({
165
- values: z.string(),
166
- 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-]+)*))?$/),
167
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
- namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
169
- chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
170
- status: z.string(),
171
- version_current: z.string(),
172
- created_at: z.string(),
173
- updated_at: z.string(),
174
- ready: z.boolean()
175
- });
176
- export const zChartUpdateInput = z.object({
177
- values: z.string(),
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-]+)*))?$/)
179
- });
168
+ /**
169
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
170
+ */
180
171
  export const zClusterCreateInput = z.object({
181
172
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
182
- tier: z.enum(['basic', 'pro']),
183
- region: z.string(),
173
+ tier: z.enum([
174
+ 'basic',
175
+ 'pro',
176
+ 'enterprise'
177
+ ]).optional().default('basic'),
184
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-]+)*))?$/).optional().default('1.x.x-cfke.x'),
185
179
  release_channel: z.enum([
186
180
  'rapid',
@@ -192,22 +186,28 @@ export const zClusterCreateInput = z.object({
192
186
  'none',
193
187
  'mps',
194
188
  'time_slicing'
195
- ]),
196
- gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
189
+ ]).optional().default('none'),
190
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
197
191
  cilium_socket_lb_host_namespace_only: z.boolean().optional()
198
192
  }).optional().default({
199
193
  gpu_sharing_strategy: 'none',
200
- gpu_max_shared_clients_per_gpu: 10,
194
+ gpu_max_shared_clients_per_gpu: 4,
201
195
  cilium_socket_lb_host_namespace_only: false
202
196
  }),
197
+ region: z.string(),
203
198
  networking: z.object({
204
- pod_cidr: z.string().optional(),
205
- service_cidr: z.string().optional(),
206
- cluster_dns: z.string().optional(),
199
+ pod_cidr: z.string().optional().default('10.244.0.0/16'),
200
+ service_cidr: z.string().optional().default('10.96.0.0/12'),
207
201
  dual_stack: z.boolean().optional(),
208
- pod_cidr_v6: z.string().optional(),
209
- service_cidr_v6: z.string().optional()
210
- }).optional()
202
+ pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
203
+ service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
204
+ }).optional().default({
205
+ pod_cidr: '10.244.0.0/16',
206
+ service_cidr: '10.96.0.0/12',
207
+ dual_stack: false,
208
+ pod_cidr_v6: '2001:db8:1:2::/48',
209
+ service_cidr_v6: '2001:db8:1:1::/112'
210
+ })
211
211
  });
212
212
  export const zClusterJoinInformation = z.object({
213
213
  certificate_authority: z.string(),
@@ -215,6 +215,7 @@ export const zClusterJoinInformation = z.object({
215
215
  cluster_dns: z.string(),
216
216
  pod_cidr: z.string(),
217
217
  auth_key: z.string(),
218
+ login_server: z.string(),
218
219
  bootstrap_token: z.string(),
219
220
  versions: z.object({
220
221
  kubernetes: z.string(),
@@ -228,32 +229,49 @@ export const zClusterJoinInformation = z.object({
228
229
  gcp_workload_identity_provider: z.string()
229
230
  })
230
231
  });
232
+ /**
233
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
234
+ */
231
235
  export const zCluster = z.object({
232
236
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
233
- tier: z.enum(['basic', 'pro']),
234
- region: z.string(),
235
- networking: z.object({
236
- pod_cidr: z.string().optional(),
237
- service_cidr: z.string().optional(),
238
- cluster_dns: z.string().optional(),
239
- dual_stack: z.boolean().optional(),
240
- pod_cidr_v6: z.string().optional(),
241
- service_cidr_v6: z.string().optional()
242
- }).optional(),
237
+ tier: z.enum([
238
+ 'basic',
239
+ 'pro',
240
+ 'enterprise'
241
+ ]).default('basic'),
242
+ 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'),
243
243
  release_channel: z.enum([
244
244
  'rapid',
245
245
  'stable',
246
246
  'extended'
247
- ]).optional(),
247
+ ]).default('rapid'),
248
248
  features: z.object({
249
249
  gpu_sharing_strategy: z.enum([
250
250
  'none',
251
251
  'mps',
252
252
  'time_slicing'
253
- ]),
254
- gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
255
- cilium_socket_lb_host_namespace_only: z.boolean().optional()
256
- }).optional(),
253
+ ]).default('none'),
254
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
255
+ cilium_socket_lb_host_namespace_only: z.boolean()
256
+ }).default({
257
+ gpu_sharing_strategy: 'none',
258
+ gpu_max_shared_clients_per_gpu: 4,
259
+ cilium_socket_lb_host_namespace_only: false
260
+ }),
261
+ region: z.string(),
262
+ networking: z.object({
263
+ pod_cidr: z.string().default('10.244.0.0/16'),
264
+ service_cidr: z.string().default('10.96.0.0/12'),
265
+ dual_stack: z.boolean(),
266
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
267
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
268
+ }).default({
269
+ pod_cidr: '10.244.0.0/16',
270
+ service_cidr: '10.96.0.0/12',
271
+ dual_stack: false,
272
+ pod_cidr_v6: '2001:db8:1:2::/48',
273
+ service_cidr_v6: '2001:db8:1:1::/112'
274
+ }),
257
275
  id: z.uuid(),
258
276
  status: z.enum([
259
277
  'creating',
@@ -273,28 +291,61 @@ export const zCluster = z.object({
273
291
  version_current: z.string().optional(),
274
292
  created_at: z.string().optional(),
275
293
  updated_at: z.string().optional(),
276
- ready: z.boolean().optional(),
277
- 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()
294
+ ready: z.boolean()
278
295
  });
296
+ /**
297
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
298
+ */
279
299
  export const zClusterUpdateInput = z.object({
280
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
281
- tier: z.enum(['basic', 'pro']),
282
- 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(),
300
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
301
+ tier: z.enum([
302
+ 'basic',
303
+ 'pro',
304
+ 'enterprise'
305
+ ]).optional().default('basic'),
306
+ 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'),
283
307
  release_channel: z.enum([
284
308
  'rapid',
285
309
  'stable',
286
310
  'extended'
287
- ]).optional(),
311
+ ]).optional().default('rapid'),
288
312
  features: z.object({
289
313
  gpu_sharing_strategy: z.enum([
290
314
  'none',
291
315
  'mps',
292
316
  'time_slicing'
293
- ]),
294
- gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
317
+ ]).optional().default('none'),
318
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
295
319
  cilium_socket_lb_host_namespace_only: z.boolean().optional()
296
- }).optional()
320
+ }).optional().default({
321
+ gpu_sharing_strategy: 'none',
322
+ gpu_max_shared_clients_per_gpu: 4,
323
+ cilium_socket_lb_host_namespace_only: false
324
+ })
325
+ });
326
+ export const zFeedbackCreateInput = z.object({
327
+ sentiment: z.enum([
328
+ 'positive',
329
+ 'neutral',
330
+ 'negative'
331
+ ]),
332
+ message: z.string().min(1).max(2000),
333
+ context: z.string().max(2000).optional(),
334
+ source: z.enum([
335
+ 'cli',
336
+ 'mcp',
337
+ 'plugin',
338
+ 'console',
339
+ 'api'
340
+ ]).optional().default('api'),
341
+ client: z.string().max(100).optional()
342
+ });
343
+ export const zFeedback = z.object({
344
+ id: z.string()
297
345
  });
346
+ /**
347
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
348
+ */
298
349
  export const zFleetCreateInput = z.object({
299
350
  limits: z.object({
300
351
  cpu: z.int().gte(0).lte(100000).optional()
@@ -305,7 +356,7 @@ export const zFleetCreateInput = z.object({
305
356
  }).optional(),
306
357
  hetzner: z.object({
307
358
  enabled: z.boolean(),
308
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
359
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
309
360
  }).optional(),
310
361
  aws: z.object({
311
362
  enabled: z.boolean(),
@@ -473,7 +524,7 @@ export const zFleetCreateInput = z.object({
473
524
  'x8g',
474
525
  'z1d',
475
526
  'z3'
476
- ])).optional(),
527
+ ])).optional().default([]),
477
528
  'topology.kubernetes.io/region': z.array(z.enum([
478
529
  'africa-south1',
479
530
  'ap-northeast-1',
@@ -539,11 +590,28 @@ export const zFleetCreateInput = z.object({
539
590
  'us-west2',
540
591
  'us-west3',
541
592
  'us-west4'
542
- ])).optional()
543
- }).optional(),
593
+ ])).optional().default([])
594
+ }).optional().default({
595
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
596
+ 'kubernetes.io/arch': ['amd64'],
597
+ 'cfke.io/instance-family': [],
598
+ 'topology.kubernetes.io/region': []
599
+ }),
544
600
  scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
601
+ taints: z.array(z.object({
602
+ key: z.string(),
603
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
604
+ effect: z.enum([
605
+ 'NoSchedule',
606
+ 'PreferNoSchedule',
607
+ 'NoExecute'
608
+ ])
609
+ })).max(50).optional().default([]),
545
610
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
546
611
  });
612
+ /**
613
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
614
+ */
547
615
  export const zFleet = z.object({
548
616
  limits: z.object({
549
617
  cpu: z.int().gte(0).lte(100000).optional()
@@ -561,8 +629,8 @@ export const zFleet = z.object({
561
629
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
562
630
  }).optional(),
563
631
  constraints: z.object({
564
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
565
- 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
632
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
633
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
566
634
  'cfke.io/instance-family': z.array(z.enum([
567
635
  'a1',
568
636
  'a2',
@@ -722,7 +790,7 @@ export const zFleet = z.object({
722
790
  'x8g',
723
791
  'z1d',
724
792
  'z3'
725
- ])).optional(),
793
+ ])).optional().default([]),
726
794
  'topology.kubernetes.io/region': z.array(z.enum([
727
795
  'africa-south1',
728
796
  'ap-northeast-1',
@@ -788,15 +856,32 @@ export const zFleet = z.object({
788
856
  'us-west2',
789
857
  'us-west3',
790
858
  'us-west4'
791
- ])).optional()
792
- }).optional(),
859
+ ])).optional().default([])
860
+ }).default({
861
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
862
+ 'kubernetes.io/arch': ['amd64'],
863
+ 'cfke.io/instance-family': [],
864
+ 'topology.kubernetes.io/region': []
865
+ }),
793
866
  scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
867
+ taints: z.array(z.object({
868
+ key: z.string(),
869
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
870
+ effect: z.enum([
871
+ 'NoSchedule',
872
+ 'PreferNoSchedule',
873
+ 'NoExecute'
874
+ ])
875
+ })).max(50).default([]),
794
876
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
795
877
  ready: z.boolean(),
796
878
  status_message: z.string().optional(),
797
879
  created_at: z.string(),
798
880
  updated_at: z.string()
799
881
  });
882
+ /**
883
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
884
+ */
800
885
  export const zFleetUpdateInput = z.object({
801
886
  limits: z.object({
802
887
  cpu: z.int().gte(0).lte(100000).optional()
@@ -807,15 +892,15 @@ export const zFleetUpdateInput = z.object({
807
892
  }).optional(),
808
893
  hetzner: z.object({
809
894
  enabled: z.boolean(),
810
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
895
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
811
896
  }).optional(),
812
897
  aws: z.object({
813
898
  enabled: z.boolean(),
814
899
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
815
900
  }).optional(),
816
901
  constraints: z.object({
817
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
818
- 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
902
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
903
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
819
904
  'cfke.io/instance-family': z.array(z.enum([
820
905
  'a1',
821
906
  'a2',
@@ -975,7 +1060,7 @@ export const zFleetUpdateInput = z.object({
975
1060
  'x8g',
976
1061
  'z1d',
977
1062
  'z3'
978
- ])).optional(),
1063
+ ])).optional().default([]),
979
1064
  'topology.kubernetes.io/region': z.array(z.enum([
980
1065
  'africa-south1',
981
1066
  'ap-northeast-1',
@@ -1041,9 +1126,23 @@ export const zFleetUpdateInput = z.object({
1041
1126
  'us-west2',
1042
1127
  'us-west3',
1043
1128
  'us-west4'
1044
- ])).optional()
1045
- }).optional(),
1046
- scalingProfile: z.enum(['aggressive', 'conservative'])
1129
+ ])).optional().default([])
1130
+ }).optional().default({
1131
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1132
+ 'kubernetes.io/arch': ['amd64'],
1133
+ 'cfke.io/instance-family': [],
1134
+ 'topology.kubernetes.io/region': []
1135
+ }),
1136
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
1137
+ taints: z.array(z.object({
1138
+ key: z.string(),
1139
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
1140
+ effect: z.enum([
1141
+ 'NoSchedule',
1142
+ 'PreferNoSchedule',
1143
+ 'NoExecute'
1144
+ ])
1145
+ })).max(50).optional().default([])
1047
1146
  });
1048
1147
  export const zInviteCreateInput = z.object({
1049
1148
  email: z.email(),
@@ -1057,6 +1156,48 @@ export const zInvite = z.object({
1057
1156
  code: z.string().optional(),
1058
1157
  role: z.enum(['Administrator', 'User']).optional().default('User')
1059
1158
  });
1159
+ export const zInvoicePaymentAttempt = z.object({
1160
+ invoice_id: z.string(),
1161
+ number: z.string(),
1162
+ amount: z.number(),
1163
+ currency: z.string(),
1164
+ status: z.enum([
1165
+ 'paid',
1166
+ 'processing',
1167
+ 'requires_action',
1168
+ 'failed'
1169
+ ]),
1170
+ client_secret: z.string(),
1171
+ failure_code: z.string(),
1172
+ failure_message: z.string()
1173
+ });
1174
+ export const zInvoicePaymentResult = z.object({
1175
+ code: z.enum([
1176
+ 'paid',
1177
+ 'processing',
1178
+ 'action_required',
1179
+ 'partially_paid',
1180
+ 'failed',
1181
+ 'nothing_due',
1182
+ 'bank_transfer_due'
1183
+ ]),
1184
+ message: z.string(),
1185
+ results: z.array(z.object({
1186
+ invoice_id: z.string(),
1187
+ number: z.string(),
1188
+ amount: z.number(),
1189
+ currency: z.string(),
1190
+ status: z.enum([
1191
+ 'paid',
1192
+ 'processing',
1193
+ 'requires_action',
1194
+ 'failed'
1195
+ ]),
1196
+ client_secret: z.string(),
1197
+ failure_code: z.string(),
1198
+ failure_message: z.string()
1199
+ }))
1200
+ });
1060
1201
  export const zInvoice = z.object({
1061
1202
  id: z.string().optional(),
1062
1203
  number: z.string().optional(),
@@ -1068,32 +1209,6 @@ export const zInvoice = z.object({
1068
1209
  period_end: z.iso.datetime(),
1069
1210
  invoice_pdf: z.string().optional()
1070
1211
  });
1071
- export const zMarketplaceListingFiles = z.object({
1072
- chartYaml: z.string().optional(),
1073
- valuesYaml: z.string().optional(),
1074
- valuesSchemaJson: z.string().optional()
1075
- });
1076
- export const zMarketplaceListing = z.object({
1077
- name: z.string(),
1078
- 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-]+)*))?$/)),
1079
- 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-]+)*))?$/)),
1080
- latestVersion: z.string(),
1081
- metadata: z.object({
1082
- name: z.string(),
1083
- version: z.string(),
1084
- description: z.string().optional(),
1085
- appVersion: z.string().optional(),
1086
- apiVersion: z.string().optional(),
1087
- keywords: z.array(z.string()).optional(),
1088
- home: z.string().optional(),
1089
- icon: z.string().optional(),
1090
- sources: z.array(z.string()).optional(),
1091
- maintainers: z.array(z.object({
1092
- name: z.string(),
1093
- email: z.string().optional()
1094
- })).optional()
1095
- }).optional()
1096
- });
1097
1212
  export const zOrganizationCreateInput = z.object({
1098
1213
  type: z.enum(['business', 'personal']),
1099
1214
  email: z.email(),
@@ -1115,6 +1230,8 @@ export const zOrganization = z.object({
1115
1230
  basic_clusters_available: z.int(),
1116
1231
  pro_clusters_max: z.int().gte(0),
1117
1232
  pro_clusters_available: z.int(),
1233
+ enterprise_clusters_max: z.int().gte(0),
1234
+ enterprise_clusters_available: z.int(),
1118
1235
  fleets_max: z.int().gte(0),
1119
1236
  cluster_tiers: z.array(z.string()).min(0),
1120
1237
  regions: z.array(z.string()).min(1),
@@ -1156,6 +1273,8 @@ export const zPlatformQuota = z.object({
1156
1273
  basic_clusters_available: z.int(),
1157
1274
  pro_clusters_max: z.int().gte(0),
1158
1275
  pro_clusters_available: z.int(),
1276
+ enterprise_clusters_max: z.int().gte(0),
1277
+ enterprise_clusters_available: z.int(),
1159
1278
  fleets_max: z.int().gte(0),
1160
1279
  cluster_tiers: z.array(z.string()).min(0),
1161
1280
  regions: z.array(z.string()).min(1),
@@ -1211,6 +1330,25 @@ export const zRegistryTag = z.object({
1211
1330
  repository: z.string(),
1212
1331
  uri: z.string()
1213
1332
  });
1333
+ export const zRoadmapItemCreateInput = z.object({
1334
+ text: z.string().min(1).max(500)
1335
+ });
1336
+ export const zRoadmapItem = z.object({
1337
+ id: z.string(),
1338
+ text: z.string(),
1339
+ vote: z.union([
1340
+ z.literal(-1),
1341
+ z.literal(1),
1342
+ z.literal(2)
1343
+ ])
1344
+ });
1345
+ export const zRoadmapVoteInput = z.object({
1346
+ value: z.union([
1347
+ z.literal(-1),
1348
+ z.literal(1),
1349
+ z.literal(2)
1350
+ ])
1351
+ });
1214
1352
  export const zTicketAttachment = z.object({
1215
1353
  id: z.string(),
1216
1354
  filename: z.string(),
@@ -1224,40 +1362,8 @@ export const zTicketCreateInput = z.object({
1224
1362
  'general'
1225
1363
  ]),
1226
1364
  body: z.string().min(1).max(50000).regex(/\S/),
1227
- properties: z.record(z.string(), z.unknown()).optional()
1228
- });
1229
- export const zTicketListResponse = z.object({
1230
- items: z.array(z.object({
1231
- id: z.string(),
1232
- status: z.enum([
1233
- 'waiting_on_us',
1234
- 'waiting_on_user',
1235
- 'closed'
1236
- ]),
1237
- category: z.enum([
1238
- 'billing',
1239
- 'technical',
1240
- 'general'
1241
- ]),
1242
- summary: z.string(),
1243
- closed_at: z.iso.datetime().optional(),
1244
- date_created: z.iso.datetime(),
1245
- date_updated: z.iso.datetime(),
1246
- messages: z.array(z.object({
1247
- id: z.string(),
1248
- type: z.enum(['customer_reply', 'agent_reply']),
1249
- body: z.string(),
1250
- author_first_name: z.string().optional(),
1251
- author_last_name: z.string().optional(),
1252
- attachments: z.array(z.object({
1253
- id: z.string(),
1254
- filename: z.string(),
1255
- content_type: z.string(),
1256
- size: z.int()
1257
- })).optional(),
1258
- date_created: z.iso.datetime()
1259
- })).optional()
1260
- }))
1365
+ properties: z.record(z.string(), z.unknown()).optional(),
1366
+ grant_support_access: z.boolean().optional()
1261
1367
  });
1262
1368
  export const zTicketMessageInput = z.object({
1263
1369
  body: z.string().min(1).max(50000).regex(/\S/)
@@ -1289,6 +1395,8 @@ export const zTicket = z.object({
1289
1395
  'general'
1290
1396
  ]),
1291
1397
  summary: z.string(),
1398
+ support_access_granted: z.boolean(),
1399
+ support_access_granted_at: z.iso.datetime(),
1292
1400
  closed_at: z.iso.datetime().optional(),
1293
1401
  date_created: z.iso.datetime(),
1294
1402
  date_updated: z.iso.datetime(),
@@ -1324,26 +1432,58 @@ export const zTokenUpdateInput = z.object({
1324
1432
  });
1325
1433
  export const zUsageFacets = z.object({
1326
1434
  cluster_id: z.array(z.string()).optional(),
1327
- product: z.array(z.string()).optional()
1435
+ product: z.array(z.enum([
1436
+ 'cfke_controlplane_basic',
1437
+ 'cfke_controlplane_pro',
1438
+ 'cfke_controlplane_enterprise',
1439
+ 'cfke_connected_nodes_basic',
1440
+ 'cfke_connected_nodes_pro',
1441
+ 'cfke_connected_nodes_enterprise',
1442
+ 'cfcr_storage'
1443
+ ])).optional()
1328
1444
  });
1329
1445
  export const zUsageResponse = z.object({
1330
1446
  data: z.array(z.object({
1331
1447
  hour: z.string(),
1332
1448
  cluster_id: z.string(),
1333
- product: z.string(),
1449
+ product: z.enum([
1450
+ 'cfke_controlplane_basic',
1451
+ 'cfke_controlplane_pro',
1452
+ 'cfke_controlplane_enterprise',
1453
+ 'cfke_connected_nodes_basic',
1454
+ 'cfke_connected_nodes_pro',
1455
+ 'cfke_connected_nodes_enterprise',
1456
+ 'cfcr_storage'
1457
+ ]),
1334
1458
  value: z.number(),
1335
1459
  price: z.number(),
1336
1460
  total: z.number()
1337
1461
  })),
1338
1462
  facets: z.object({
1339
1463
  cluster_id: z.array(z.string()).optional(),
1340
- product: z.array(z.string()).optional()
1464
+ product: z.array(z.enum([
1465
+ 'cfke_controlplane_basic',
1466
+ 'cfke_controlplane_pro',
1467
+ 'cfke_controlplane_enterprise',
1468
+ 'cfke_connected_nodes_basic',
1469
+ 'cfke_connected_nodes_pro',
1470
+ 'cfke_connected_nodes_enterprise',
1471
+ 'cfcr_storage'
1472
+ ])).optional()
1341
1473
  })
1342
1474
  });
1343
1475
  export const zUsage = z.object({
1344
1476
  hour: z.string(),
1345
1477
  cluster_id: z.string(),
1346
- product: z.string(),
1478
+ product: z.enum([
1479
+ 'cfke_controlplane_basic',
1480
+ 'cfke_controlplane_pro',
1481
+ 'cfke_controlplane_enterprise',
1482
+ 'cfke_connected_nodes_basic',
1483
+ 'cfke_connected_nodes_pro',
1484
+ 'cfke_connected_nodes_enterprise',
1485
+ 'cfcr_storage'
1486
+ ]),
1347
1487
  value: z.number(),
1348
1488
  price: z.number(),
1349
1489
  total: z.number()
@@ -1371,217 +1511,193 @@ export const zUserUpdateInput = z.object({
1371
1511
  role: z.enum(['Administrator', 'User']).optional(),
1372
1512
  status: z.enum(['active', 'inactive']).optional()
1373
1513
  });
1374
- export const zGetUsageQuery = z.object({
1375
- granularity: z.enum([
1376
- 'hourly',
1377
- 'daily',
1378
- 'monthly'
1379
- ]).optional().default('daily')
1514
+ export const zListUserOrganizationsPath = z.object({
1515
+ email: z.string()
1380
1516
  });
1381
1517
  /**
1382
- * Usage data with facets for filtering
1518
+ * An array of organizations the user belongs to.
1383
1519
  */
1384
- export const zGetUsageResponse = zUsageResponse;
1520
+ export const zListUserOrganizationsResponse = z.array(z.object({
1521
+ realm: z.string().optional(),
1522
+ displayName: z.string().optional()
1523
+ }));
1385
1524
  /**
1386
- * 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.
1387
- *
1525
+ * An array of users
1388
1526
  */
1389
- export const zGetPaymentMethodSecretResponse = z.object({
1390
- id: z.string().optional()
1391
- });
1527
+ export const zListUsersResponse = z.array(zUser);
1528
+ export const zCreateUserBody = zUserCreateInput;
1392
1529
  /**
1393
- * An array of payment methods.
1530
+ * Successfully created. Returns created user details.
1394
1531
  */
1395
- export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1396
- export const zSetDefaultPaymentMethodPath = z.object({
1397
- paymentMethodId: z.string()
1532
+ export const zCreateUserResponse = zUser;
1533
+ export const zDeleteUserPath = z.object({
1534
+ user_id: z.string()
1398
1535
  });
1399
1536
  /**
1400
- * Default payment method updated.
1537
+ * User profile information
1401
1538
  */
1402
- export const zSetDefaultPaymentMethodResponse = z.void();
1403
- export const zDeletePaymentMethodPath = z.object({
1404
- paymentMethodId: z.string()
1539
+ export const zDeleteUserResponse = zUser;
1540
+ export const zGetUserPath = z.object({
1541
+ user_id: z.string()
1405
1542
  });
1406
1543
  /**
1407
- * Payment method deleted.
1408
- */
1409
- export const zDeletePaymentMethodResponse = z.void();
1410
- /**
1411
- * An array of usage records.
1544
+ * User profile information
1412
1545
  */
1413
- export const zListInvoicesResponse = z.array(zInvoice);
1546
+ export const zGetUserResponse = zUser;
1547
+ export const zUpdateUserBody = zUserUpdateInput;
1548
+ export const zUpdateUserPath = z.object({
1549
+ user_id: z.string()
1550
+ });
1414
1551
  /**
1415
- * Returns a single object containing organization contact and billing address details.
1552
+ * Successfully created. Returns created user details.
1416
1553
  */
1417
- export const zGetContactResponse = zBillingContact;
1418
- export const zUpdateContactBody = zBillingContact;
1554
+ export const zUpdateUserResponse = zUser;
1419
1555
  /**
1420
- * Successfully updated. Returns updated organization details.
1556
+ * Returns a list of access token details with masked secrets.
1421
1557
  */
1422
- export const zUpdateContactResponse = zBillingContact;
1558
+ export const zListTokensResponse = z.array(zToken);
1559
+ export const zCreateTokenBody = zTokenCreateInput;
1423
1560
  /**
1424
- * An array of the applied promotional credits records.
1561
+ * Successfully created. Returns created token details with unmasked/raw secret.
1425
1562
  */
1426
- export const zGetCreditsResponse = z.array(zBillingCredits);
1427
- export const zRedeemCreditsBody = z.object({
1428
- code: z.string().optional()
1563
+ export const zCreateTokenResponse = zToken;
1564
+ export const zDeleteTokenPath = z.object({
1565
+ token_id: z.string()
1429
1566
  });
1430
- export const zListChartsPath = z.object({
1431
- cluster_id: z.string()
1567
+ export const zGetTokenPath = z.object({
1568
+ token_id: z.string()
1432
1569
  });
1433
1570
  /**
1434
- * An array of charts
1571
+ * Returns access token details with masked secret.
1435
1572
  */
1436
- export const zListChartsResponse = z.array(zChart);
1437
- export const zCreateChartBody = zChartCreateInput;
1438
- export const zCreateChartPath = z.object({
1439
- cluster_id: z.string()
1573
+ export const zGetTokenResponse = zToken;
1574
+ export const zUpdateTokenBody = zTokenUpdateInput;
1575
+ export const zUpdateTokenPath = z.object({
1576
+ token_id: z.string()
1440
1577
  });
1441
1578
  /**
1442
- * Successfully created. Returns created Chart ID.
1579
+ * Successfully updated. Returns updated token details with masked secret.
1443
1580
  */
1444
- export const zCreateChartResponse = z.string();
1445
- export const zDeleteChartPath = z.object({
1446
- cluster_id: z.string(),
1447
- chart_name: z.string()
1581
+ export const zUpdateTokenResponse = zToken;
1582
+ export const zRegenerateTokenPath = z.object({
1583
+ token_id: z.string()
1448
1584
  });
1449
1585
  /**
1450
- * Successfully deleted.
1586
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1451
1587
  */
1452
- export const zDeleteChartResponse = z.string();
1453
- export const zGetChartPath = z.object({
1454
- cluster_id: z.string(),
1455
- chart_name: z.string()
1456
- });
1588
+ export const zRegenerateTokenResponse = zToken;
1457
1589
  /**
1458
- * Returns a single object containing chart details.
1590
+ * An array of tickets for the organization, newest first.
1459
1591
  */
1460
- export const zGetChartResponse = zChart;
1461
- export const zUpdateChartBody = zChartUpdateInput;
1462
- export const zUpdateChartPath = z.object({
1463
- cluster_id: z.string(),
1464
- chart_name: z.string()
1592
+ export const zListTicketsResponse = z.array(zTicket);
1593
+ export const zCreateTicketBody = z.object({
1594
+ payload: z.string().optional(),
1595
+ attachments: z.array(z.string()).optional()
1465
1596
  });
1466
1597
  /**
1467
- * Successfully updated.
1598
+ * Ticket created.
1468
1599
  */
1469
- export const zUpdateChartResponse = z.string();
1470
- export const zListFleetsPath = z.object({
1471
- cluster_id: z.string()
1600
+ export const zCreateTicketResponse = zTicket;
1601
+ export const zCloseTicketPath = z.object({
1602
+ ticket_id: z.string()
1472
1603
  });
1473
1604
  /**
1474
- * An array of fleets
1605
+ * Ticket closed.
1475
1606
  */
1476
- export const zListFleetsResponse = z.array(zFleet);
1477
- export const zCreateFleetBody = zFleetCreateInput;
1478
- export const zCreateFleetPath = z.object({
1479
- cluster_id: z.string()
1607
+ export const zCloseTicketResponse = zTicket;
1608
+ export const zGetTicketPath = z.object({
1609
+ ticket_id: z.string()
1480
1610
  });
1481
1611
  /**
1482
- * Successfully created. Returns created Fleet ID.
1612
+ * Ticket with messages (internal notes excluded).
1483
1613
  */
1484
- export const zCreateFleetResponse = z.string();
1485
- export const zDeleteFleetPath = z.object({
1486
- cluster_id: z.string(),
1487
- fleet_name: z.string()
1614
+ export const zGetTicketResponse = zTicket;
1615
+ export const zGrantTicketSupportAccessPath = z.object({
1616
+ ticket_id: z.string()
1488
1617
  });
1489
1618
  /**
1490
- * Successfully deleted.
1619
+ * Support access granted.
1491
1620
  */
1492
- export const zDeleteFleetResponse = z.string();
1493
- export const zGetFleetPath = z.object({
1494
- cluster_id: z.string(),
1495
- fleet_name: z.string()
1621
+ export const zGrantTicketSupportAccessResponse = zTicket;
1622
+ export const zReplyTicketBody = z.object({
1623
+ payload: z.string().optional(),
1624
+ attachments: z.array(z.string()).optional()
1625
+ });
1626
+ export const zReplyTicketPath = z.object({
1627
+ ticket_id: z.string()
1496
1628
  });
1497
1629
  /**
1498
- * Returns a single object containing fleet details.
1630
+ * Reply appended.
1499
1631
  */
1500
- export const zGetFleetResponse = zFleet;
1501
- export const zUpdateFleetBody = zFleetUpdateInput;
1502
- export const zUpdateFleetPath = z.object({
1503
- cluster_id: z.string(),
1504
- fleet_name: z.string()
1632
+ export const zReplyTicketResponse = zTicketMessage;
1633
+ export const zGetTicketAttachmentPath = z.object({
1634
+ ticket_id: z.string(),
1635
+ attachment_id: z.string()
1505
1636
  });
1506
1637
  /**
1507
- * Successfully updated.
1638
+ * Attachment binary stream.
1508
1639
  */
1509
- export const zUpdateFleetResponse = z.string();
1510
- export const zQueryClusterPath = z.object({
1511
- cluster_id: z.string()
1512
- });
1640
+ export const zGetTicketAttachmentResponse = z.string();
1513
1641
  /**
1514
- * An array of clusters
1642
+ * An array of roadmap items, newest first.
1515
1643
  */
1516
- export const zListClustersResponse = z.array(zCluster);
1517
- export const zCreateClusterBody = zClusterCreateInput;
1644
+ export const zListRoadmapResponse = z.array(zRoadmapItem);
1645
+ export const zSuggestRoadmapBody = zRoadmapItemCreateInput;
1518
1646
  /**
1519
- * Successfully created. Returns created Cluster ID.
1647
+ * Suggestion submitted for review.
1520
1648
  */
1521
- export const zCreateClusterResponse = z.string();
1522
- export const zDeleteClusterPath = z.object({
1523
- cluster_id: z.string()
1649
+ export const zSuggestRoadmapResponse = zRoadmapItem;
1650
+ export const zUnvoteRoadmapPath = z.object({
1651
+ item_id: z.string()
1524
1652
  });
1525
1653
  /**
1526
- * Successfully deleted. The cluster has been torn down.
1654
+ * Vote removed. Returns the item without a vote.
1527
1655
  */
1528
- export const zDeleteClusterResponse = z.string();
1529
- export const zGetClusterPath = z.object({
1530
- cluster_id: z.string()
1656
+ export const zUnvoteRoadmapResponse = zRoadmapItem;
1657
+ export const zVoteRoadmapBody = zRoadmapVoteInput;
1658
+ export const zVoteRoadmapPath = z.object({
1659
+ item_id: z.string()
1531
1660
  });
1532
1661
  /**
1533
- * Returns a single object containing cluster details.
1662
+ * Vote saved. Returns the item with your vote.
1534
1663
  */
1535
- export const zGetClusterResponse = zCluster;
1536
- export const zUpdateClusterBody = zClusterUpdateInput;
1537
- export const zUpdateClusterPath = z.object({
1538
- cluster_id: z.string()
1539
- });
1664
+ export const zVoteRoadmapResponse = zRoadmapItem;
1540
1665
  /**
1541
- * Successfully updated. Returns updated cluster details.
1666
+ * List of repositories
1542
1667
  */
1543
- export const zUpdateClusterResponse = zCluster;
1544
- export const zGetJoinInformationPath = z.object({
1545
- cluster_id: z.string()
1668
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1669
+ export const zListTagsPath = z.object({
1670
+ region: z.string(),
1671
+ repository: z.string()
1546
1672
  });
1547
1673
  /**
1548
- * An object of cluster join information
1549
- */
1550
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1551
- /**
1552
- * An array of invites
1553
- */
1554
- export const zListInvitesResponse = z.array(zInvite);
1555
- export const zCreateInviteBody = zInviteCreateInput;
1556
- /**
1557
- * Successfully created. Returns created invite details.
1674
+ * Repository with tags
1558
1675
  */
1559
- export const zCreateInviteResponse = zInvite;
1560
- export const zGetInvitePath = z.object({
1561
- code: z.string()
1676
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1677
+ export const zDeleteTagPath = z.object({
1678
+ region: z.string(),
1679
+ repository: z.string(),
1680
+ tag: z.string()
1681
+ });
1682
+ export const zGetTagPath = z.object({
1683
+ region: z.string(),
1684
+ repository: z.string(),
1685
+ tag: z.string()
1562
1686
  });
1563
1687
  /**
1564
- * The invitation code is valid. Returns the invited email and organization.
1688
+ * Tag details
1565
1689
  */
1566
- export const zGetInviteResponse = z.object({
1567
- email: z.email().optional(),
1568
- organization_id: z.string().optional()
1569
- });
1570
- export const zDeleteInvitePath = z.object({
1571
- email: z.email()
1572
- });
1690
+ export const zGetTagResponse = zRegistryTag;
1573
1691
  /**
1574
- * An array of chart listings in the marketplace.
1692
+ * Returns a single object containing organization details.
1575
1693
  */
1576
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1577
- export const zGetMarketplaceChartFilesPath = z.object({
1578
- chart_name: z.string(),
1579
- version_channel: z.string()
1580
- });
1694
+ export const zGetOrganizationResponse = zOrganization;
1695
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1581
1696
  /**
1582
- * Returns an object containing the chart files for the latest matching version.
1697
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1698
+ *
1583
1699
  */
1584
- export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1700
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1585
1701
  /**
1586
1702
  * JSON-RPC 2.0 request payload
1587
1703
  */
@@ -1610,159 +1726,171 @@ export const zPostMcpResponse = z.object({
1610
1726
  }).optional()
1611
1727
  });
1612
1728
  /**
1613
- * Returns a single object containing organization details.
1729
+ * An array of invites
1614
1730
  */
1615
- export const zGetOrganizationResponse = zOrganization;
1616
- export const zCreateOrganizationBody = zOrganizationCreateInput;
1731
+ export const zListInvitesResponse = z.array(zInvite);
1732
+ export const zCreateInviteBody = zInviteCreateInput;
1617
1733
  /**
1618
- * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1619
- *
1734
+ * Successfully created. Returns created invite details.
1620
1735
  */
1621
- export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1736
+ export const zCreateInviteResponse = zInvite;
1737
+ export const zGetInvitePath = z.object({
1738
+ code: z.string()
1739
+ });
1622
1740
  /**
1623
- * List of repositories
1741
+ * The invitation code is valid. Returns the invited email and organization.
1624
1742
  */
1625
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
1626
- export const zListTagsPath = z.object({
1627
- region: z.string(),
1628
- repository: z.string()
1743
+ export const zGetInviteResponse = z.object({
1744
+ email: z.email().optional(),
1745
+ organization_id: z.string().optional()
1746
+ });
1747
+ export const zDeleteInvitePath = z.object({
1748
+ email: z.email()
1629
1749
  });
1750
+ export const zSendFeedbackBody = zFeedbackCreateInput;
1630
1751
  /**
1631
- * Repository with tags
1752
+ * Feedback received.
1632
1753
  */
1633
- export const zListTagsResponse = zRegistryRepositoryWithTags;
1634
- export const zDeleteTagPath = z.object({
1635
- region: z.string(),
1636
- repository: z.string(),
1637
- tag: z.string()
1754
+ export const zSendFeedbackResponse = zFeedback;
1755
+ export const zQueryClusterPath = z.object({
1756
+ cluster_id: z.string()
1638
1757
  });
1639
- export const zGetTagPath = z.object({
1640
- region: z.string(),
1641
- repository: z.string(),
1642
- tag: z.string()
1758
+ export const zListFleetsPath = z.object({
1759
+ cluster_id: z.string()
1643
1760
  });
1644
1761
  /**
1645
- * Tag details
1762
+ * An array of fleets
1646
1763
  */
1647
- export const zGetTagResponse = zRegistryTag;
1764
+ export const zListFleetsResponse = z.array(zFleet);
1765
+ export const zCreateFleetBody = zFleetCreateInput;
1766
+ export const zCreateFleetPath = z.object({
1767
+ cluster_id: z.string()
1768
+ });
1648
1769
  /**
1649
- * Tickets for the organization.
1770
+ * Successfully created. Returns created Fleet ID.
1650
1771
  */
1651
- export const zListTicketsResponse = zTicketListResponse;
1652
- export const zCreateTicketBody = z.object({
1653
- payload: z.string().optional(),
1654
- attachments: z.array(z.string()).optional()
1772
+ export const zCreateFleetResponse = z.string();
1773
+ export const zDeleteFleetPath = z.object({
1774
+ cluster_id: z.string(),
1775
+ fleet_name: z.string()
1655
1776
  });
1656
1777
  /**
1657
- * Ticket created.
1778
+ * Successfully deleted.
1658
1779
  */
1659
- export const zCreateTicketResponse = zTicket;
1660
- export const zCloseTicketPath = z.object({
1661
- ticket_id: z.string()
1780
+ export const zDeleteFleetResponse = z.string();
1781
+ export const zGetFleetPath = z.object({
1782
+ cluster_id: z.string(),
1783
+ fleet_name: z.string()
1662
1784
  });
1663
1785
  /**
1664
- * Ticket closed.
1786
+ * Returns a single object containing fleet details.
1665
1787
  */
1666
- export const zCloseTicketResponse = zTicket;
1667
- export const zGetTicketPath = z.object({
1668
- ticket_id: z.string()
1788
+ export const zGetFleetResponse = zFleet;
1789
+ export const zUpdateFleetBody = zFleetUpdateInput;
1790
+ export const zUpdateFleetPath = z.object({
1791
+ cluster_id: z.string(),
1792
+ fleet_name: z.string()
1669
1793
  });
1670
1794
  /**
1671
- * Ticket with messages (internal notes excluded).
1795
+ * Successfully updated.
1672
1796
  */
1673
- export const zGetTicketResponse = zTicket;
1674
- export const zReplyTicketBody = z.object({
1675
- payload: z.string().optional(),
1676
- attachments: z.array(z.string()).optional()
1677
- });
1678
- export const zReplyTicketPath = z.object({
1679
- ticket_id: z.string()
1680
- });
1797
+ export const zUpdateFleetResponse = z.string();
1681
1798
  /**
1682
- * Reply appended.
1799
+ * An array of clusters
1683
1800
  */
1684
- export const zReplyTicketResponse = zTicketMessage;
1685
- export const zGetTicketAttachmentPath = z.object({
1686
- ticket_id: z.string(),
1687
- attachment_id: z.string()
1801
+ export const zListClustersResponse = z.array(zCluster);
1802
+ export const zCreateClusterBody = zClusterCreateInput;
1803
+ /**
1804
+ * Successfully created. Returns created Cluster ID.
1805
+ */
1806
+ export const zCreateClusterResponse = z.string();
1807
+ export const zDeleteClusterPath = z.object({
1808
+ cluster_id: z.string()
1688
1809
  });
1689
1810
  /**
1690
- * Attachment binary stream.
1811
+ * Successfully deleted. The cluster has been torn down.
1691
1812
  */
1692
- export const zGetTicketAttachmentResponse = z.string();
1813
+ export const zDeleteClusterResponse = z.string();
1814
+ export const zGetClusterPath = z.object({
1815
+ cluster_id: z.string()
1816
+ });
1693
1817
  /**
1694
- * Returns a list of access token details with masked secrets.
1818
+ * Returns a single object containing cluster details.
1695
1819
  */
1696
- export const zListTokensResponse = z.array(zToken);
1697
- export const zCreateTokenBody = zTokenCreateInput;
1820
+ export const zGetClusterResponse = zCluster;
1821
+ export const zUpdateClusterBody = zClusterUpdateInput;
1822
+ export const zUpdateClusterPath = z.object({
1823
+ cluster_id: z.string()
1824
+ });
1698
1825
  /**
1699
- * Successfully created. Returns created token details with unmasked/raw secret.
1826
+ * Successfully updated. Returns updated cluster details.
1700
1827
  */
1701
- export const zCreateTokenResponse = zToken;
1702
- export const zDeleteTokenPath = z.object({
1703
- token_id: z.string()
1828
+ export const zUpdateClusterResponse = zCluster;
1829
+ export const zGetJoinInformationPath = z.object({
1830
+ cluster_id: z.string()
1704
1831
  });
1705
- export const zGetTokenPath = z.object({
1706
- token_id: z.string()
1832
+ /**
1833
+ * An object of cluster join information
1834
+ */
1835
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1836
+ export const zGetUsageQuery = z.object({
1837
+ granularity: z.enum([
1838
+ 'hourly',
1839
+ 'daily',
1840
+ 'monthly'
1841
+ ]).optional().default('daily')
1707
1842
  });
1708
1843
  /**
1709
- * Returns access token details with masked secret.
1844
+ * Usage data with facets for filtering
1710
1845
  */
1711
- export const zGetTokenResponse = zToken;
1712
- export const zUpdateTokenBody = zTokenUpdateInput;
1713
- export const zUpdateTokenPath = z.object({
1714
- token_id: z.string()
1846
+ export const zGetUsageResponse = zUsageResponse;
1847
+ /**
1848
+ * 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.
1849
+ *
1850
+ */
1851
+ export const zGetPaymentMethodSecretResponse = z.object({
1852
+ id: z.string().optional()
1715
1853
  });
1716
1854
  /**
1717
- * Successfully updated. Returns updated token details with masked secret.
1855
+ * An array of payment methods.
1718
1856
  */
1719
- export const zUpdateTokenResponse = zToken;
1720
- export const zRegenerateTokenPath = z.object({
1721
- token_id: z.string()
1857
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1858
+ export const zSetDefaultPaymentMethodPath = z.object({
1859
+ paymentMethodId: z.string()
1722
1860
  });
1723
1861
  /**
1724
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1862
+ * Default payment method updated.
1725
1863
  */
1726
- export const zRegenerateTokenResponse = zToken;
1727
- export const zListUserOrganizationsPath = z.object({
1728
- email: z.string()
1864
+ export const zSetDefaultPaymentMethodResponse = z.void();
1865
+ export const zDeletePaymentMethodPath = z.object({
1866
+ paymentMethodId: z.string()
1729
1867
  });
1730
1868
  /**
1731
- * An array of organizations the user belongs to.
1869
+ * Payment method deleted.
1732
1870
  */
1733
- export const zListUserOrganizationsResponse = z.array(z.object({
1734
- realm: z.string().optional(),
1735
- displayName: z.string().optional()
1736
- }));
1871
+ export const zDeletePaymentMethodResponse = z.void();
1737
1872
  /**
1738
- * An array of users
1873
+ * An array of usage records.
1739
1874
  */
1740
- export const zListUsersResponse = z.array(zUser);
1741
- export const zCreateUserBody = zUserCreateInput;
1875
+ export const zListInvoicesResponse = z.array(zInvoice);
1742
1876
  /**
1743
- * Successfully created. Returns created user details.
1877
+ * The outcome of the attempt.
1744
1878
  */
1745
- export const zCreateUserResponse = zUser;
1746
- export const zDeleteUserPath = z.object({
1747
- user_id: z.string()
1748
- });
1879
+ export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
1749
1880
  /**
1750
- * User profile information
1881
+ * Returns a single object containing organization contact and billing address details.
1751
1882
  */
1752
- export const zDeleteUserResponse = zUser;
1753
- export const zGetUserPath = z.object({
1754
- user_id: z.string()
1755
- });
1883
+ export const zGetContactResponse = zBillingContact;
1884
+ export const zUpdateContactBody = zBillingContact;
1756
1885
  /**
1757
- * User profile information
1886
+ * Successfully updated. Returns updated organization details.
1758
1887
  */
1759
- export const zGetUserResponse = zUser;
1760
- export const zUpdateUserBody = zUserUpdateInput;
1761
- export const zUpdateUserPath = z.object({
1762
- user_id: z.string()
1763
- });
1888
+ export const zUpdateContactResponse = zBillingContact;
1764
1889
  /**
1765
- * Successfully created. Returns created user details.
1890
+ * An array of the applied promotional credits records.
1766
1891
  */
1767
- export const zUpdateUserResponse = zUser;
1892
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1893
+ export const zRedeemCreditsBody = z.object({
1894
+ code: z.string().optional()
1895
+ });
1768
1896
  //# sourceMappingURL=zod.gen.js.map