@cloudfleet/sdk 0.0.1-176cb2f → 0.0.1-188944c

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.
package/dist/zod.gen.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import * as z from 'zod';
3
3
  export const zBillingContact = z.object({
4
+ type: z.enum(['business', 'personal']),
4
5
  company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
5
6
  address1: z.string().optional(),
6
7
  address2: z.string().optional(),
@@ -166,22 +167,7 @@ export const zChart = z.object({
166
167
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
167
168
  namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
169
  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
- ]),
170
+ status: z.string(),
185
171
  version_current: z.string(),
186
172
  created_at: z.string(),
187
173
  updated_at: z.string(),
@@ -191,27 +177,57 @@ export const zChartUpdateInput = z.object({
191
177
  values: z.string(),
192
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-]+)*))?$/)
193
179
  });
180
+ /**
181
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
182
+ */
194
183
  export const zClusterCreateInput = z.object({
195
184
  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().default('staging-1a'),
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().default('1.x.x-cfke.x')
185
+ tier: z.enum([
186
+ 'basic',
187
+ 'pro',
188
+ 'enterprise'
189
+ ]).optional().default('basic'),
190
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
191
+ release_channel: z.enum([
192
+ 'rapid',
193
+ 'stable',
194
+ 'extended'
195
+ ]).optional().default('rapid'),
196
+ features: z.object({
197
+ gpu_sharing_strategy: z.enum([
198
+ 'none',
199
+ 'mps',
200
+ 'time_slicing'
201
+ ]).optional().default('none'),
202
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
203
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
204
+ }).optional().default({
205
+ gpu_sharing_strategy: 'none',
206
+ gpu_max_shared_clients_per_gpu: 4,
207
+ cilium_socket_lb_host_namespace_only: false
208
+ }),
209
+ region: z.string(),
210
+ networking: z.object({
211
+ pod_cidr: z.string().optional().default('10.244.0.0/16'),
212
+ service_cidr: z.string().optional().default('10.96.0.0/12'),
213
+ dual_stack: z.boolean().optional(),
214
+ pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
215
+ service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
216
+ }).optional().default({
217
+ pod_cidr: '10.244.0.0/16',
218
+ service_cidr: '10.96.0.0/12',
219
+ dual_stack: false,
220
+ pod_cidr_v6: '2001:db8:1:2::/48',
221
+ service_cidr_v6: '2001:db8:1:1::/112'
222
+ })
209
223
  });
210
224
  export const zClusterJoinInformation = z.object({
211
225
  certificate_authority: z.string(),
212
226
  endpoint: z.url(),
213
227
  cluster_dns: z.string(),
228
+ pod_cidr: z.string(),
214
229
  auth_key: z.string(),
230
+ login_server: z.string(),
215
231
  bootstrap_token: z.string(),
216
232
  versions: z.object({
217
233
  kubernetes: z.string(),
@@ -225,24 +241,55 @@ export const zClusterJoinInformation = z.object({
225
241
  gcp_workload_identity_provider: z.string()
226
242
  })
227
243
  });
244
+ /**
245
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
246
+ */
228
247
  export const zCluster = z.object({
229
248
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
- 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().default('staging-1a'),
249
+ tier: z.enum([
250
+ 'basic',
251
+ 'pro',
252
+ 'enterprise'
253
+ ]).default('basic'),
254
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).default('1.x.x-cfke.x'),
255
+ release_channel: z.enum([
256
+ 'rapid',
257
+ 'stable',
258
+ 'extended'
259
+ ]).default('rapid'),
260
+ features: z.object({
261
+ gpu_sharing_strategy: z.enum([
262
+ 'none',
263
+ 'mps',
264
+ 'time_slicing'
265
+ ]).default('none'),
266
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
267
+ cilium_socket_lb_host_namespace_only: z.boolean()
268
+ }).default({
269
+ gpu_sharing_strategy: 'none',
270
+ gpu_max_shared_clients_per_gpu: 4,
271
+ cilium_socket_lb_host_namespace_only: false
272
+ }),
273
+ region: z.string(),
274
+ networking: z.object({
275
+ pod_cidr: z.string().default('10.244.0.0/16'),
276
+ service_cidr: z.string().default('10.96.0.0/12'),
277
+ dual_stack: z.boolean(),
278
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
279
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
280
+ }).default({
281
+ pod_cidr: '10.244.0.0/16',
282
+ service_cidr: '10.96.0.0/12',
283
+ dual_stack: false,
284
+ pod_cidr_v6: '2001:db8:1:2::/48',
285
+ service_cidr_v6: '2001:db8:1:1::/112'
286
+ }),
237
287
  id: z.uuid(),
238
288
  status: z.enum([
239
- 'active',
240
- 'disabled',
241
- 'deleted',
242
289
  'creating',
243
290
  'deployed',
244
- 'failed',
245
- 'updating'
291
+ 'updating',
292
+ 'disabled'
246
293
  ]),
247
294
  endpoint: z.union([
248
295
  z.url(),
@@ -256,14 +303,41 @@ export const zCluster = z.object({
256
303
  version_current: z.string().optional(),
257
304
  created_at: z.string().optional(),
258
305
  updated_at: z.string().optional(),
259
- ready: z.boolean().optional(),
260
- 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()
306
+ ready: z.boolean()
261
307
  });
308
+ /**
309
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
310
+ */
262
311
  export const zClusterUpdateInput = z.object({
263
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
264
- tier: z.enum(['basic', 'pro']),
265
- 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()
312
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
313
+ tier: z.enum([
314
+ 'basic',
315
+ 'pro',
316
+ 'enterprise'
317
+ ]).optional().default('basic'),
318
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
319
+ release_channel: z.enum([
320
+ 'rapid',
321
+ 'stable',
322
+ 'extended'
323
+ ]).optional().default('rapid'),
324
+ features: z.object({
325
+ gpu_sharing_strategy: z.enum([
326
+ 'none',
327
+ 'mps',
328
+ 'time_slicing'
329
+ ]).optional().default('none'),
330
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
331
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
332
+ }).optional().default({
333
+ gpu_sharing_strategy: 'none',
334
+ gpu_max_shared_clients_per_gpu: 4,
335
+ cilium_socket_lb_host_namespace_only: false
336
+ })
266
337
  });
338
+ /**
339
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
340
+ */
267
341
  export const zFleetCreateInput = z.object({
268
342
  limits: z.object({
269
343
  cpu: z.int().gte(0).lte(100000).optional()
@@ -274,7 +348,7 @@ export const zFleetCreateInput = z.object({
274
348
  }).optional(),
275
349
  hetzner: z.object({
276
350
  enabled: z.boolean(),
277
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
351
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
278
352
  }).optional(),
279
353
  aws: z.object({
280
354
  enabled: z.boolean(),
@@ -442,7 +516,7 @@ export const zFleetCreateInput = z.object({
442
516
  'x8g',
443
517
  'z1d',
444
518
  'z3'
445
- ])).optional(),
519
+ ])).optional().default([]),
446
520
  'topology.kubernetes.io/region': z.array(z.enum([
447
521
  'africa-south1',
448
522
  'ap-northeast-1',
@@ -508,11 +582,28 @@ export const zFleetCreateInput = z.object({
508
582
  'us-west2',
509
583
  'us-west3',
510
584
  'us-west4'
511
- ])).optional()
512
- }).optional(),
585
+ ])).optional().default([])
586
+ }).optional().default({
587
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
588
+ 'kubernetes.io/arch': ['amd64'],
589
+ 'cfke.io/instance-family': [],
590
+ 'topology.kubernetes.io/region': []
591
+ }),
513
592
  scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
593
+ taints: z.array(z.object({
594
+ key: z.string(),
595
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
596
+ effect: z.enum([
597
+ 'NoSchedule',
598
+ 'PreferNoSchedule',
599
+ 'NoExecute'
600
+ ])
601
+ })).max(50).optional().default([]),
514
602
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
515
603
  });
604
+ /**
605
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
606
+ */
516
607
  export const zFleet = z.object({
517
608
  limits: z.object({
518
609
  cpu: z.int().gte(0).lte(100000).optional()
@@ -530,8 +621,8 @@ export const zFleet = z.object({
530
621
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
531
622
  }).optional(),
532
623
  constraints: z.object({
533
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
534
- 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
624
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
625
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
535
626
  'cfke.io/instance-family': z.array(z.enum([
536
627
  'a1',
537
628
  'a2',
@@ -691,7 +782,7 @@ export const zFleet = z.object({
691
782
  'x8g',
692
783
  'z1d',
693
784
  'z3'
694
- ])).optional(),
785
+ ])).optional().default([]),
695
786
  'topology.kubernetes.io/region': z.array(z.enum([
696
787
  'africa-south1',
697
788
  'ap-northeast-1',
@@ -757,11 +848,32 @@ export const zFleet = z.object({
757
848
  'us-west2',
758
849
  'us-west3',
759
850
  'us-west4'
760
- ])).optional()
761
- }).optional(),
851
+ ])).optional().default([])
852
+ }).default({
853
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
854
+ 'kubernetes.io/arch': ['amd64'],
855
+ 'cfke.io/instance-family': [],
856
+ 'topology.kubernetes.io/region': []
857
+ }),
762
858
  scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
763
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
859
+ taints: z.array(z.object({
860
+ key: z.string(),
861
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
862
+ effect: z.enum([
863
+ 'NoSchedule',
864
+ 'PreferNoSchedule',
865
+ 'NoExecute'
866
+ ])
867
+ })).max(50).default([]),
868
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
869
+ ready: z.boolean(),
870
+ status_message: z.string().optional(),
871
+ created_at: z.string(),
872
+ updated_at: z.string()
764
873
  });
874
+ /**
875
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
876
+ */
765
877
  export const zFleetUpdateInput = z.object({
766
878
  limits: z.object({
767
879
  cpu: z.int().gte(0).lte(100000).optional()
@@ -772,15 +884,15 @@ export const zFleetUpdateInput = z.object({
772
884
  }).optional(),
773
885
  hetzner: z.object({
774
886
  enabled: z.boolean(),
775
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
887
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
776
888
  }).optional(),
777
889
  aws: z.object({
778
890
  enabled: z.boolean(),
779
891
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
780
892
  }).optional(),
781
893
  constraints: z.object({
782
- 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
783
- 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
894
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
895
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
784
896
  'cfke.io/instance-family': z.array(z.enum([
785
897
  'a1',
786
898
  'a2',
@@ -940,7 +1052,7 @@ export const zFleetUpdateInput = z.object({
940
1052
  'x8g',
941
1053
  'z1d',
942
1054
  'z3'
943
- ])).optional(),
1055
+ ])).optional().default([]),
944
1056
  'topology.kubernetes.io/region': z.array(z.enum([
945
1057
  'africa-south1',
946
1058
  'ap-northeast-1',
@@ -1006,16 +1118,77 @@ export const zFleetUpdateInput = z.object({
1006
1118
  'us-west2',
1007
1119
  'us-west3',
1008
1120
  'us-west4'
1009
- ])).optional()
1010
- }).optional(),
1011
- scalingProfile: z.enum(['aggressive', 'conservative'])
1121
+ ])).optional().default([])
1122
+ }).optional().default({
1123
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1124
+ 'kubernetes.io/arch': ['amd64'],
1125
+ 'cfke.io/instance-family': [],
1126
+ 'topology.kubernetes.io/region': []
1127
+ }),
1128
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
1129
+ taints: z.array(z.object({
1130
+ key: z.string(),
1131
+ value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
1132
+ effect: z.enum([
1133
+ 'NoSchedule',
1134
+ 'PreferNoSchedule',
1135
+ 'NoExecute'
1136
+ ])
1137
+ })).max(50).optional().default([])
1138
+ });
1139
+ export const zInviteCreateInput = z.object({
1140
+ email: z.email(),
1141
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1012
1142
  });
1013
1143
  export const zInvite = z.object({
1014
1144
  id: z.string().optional(),
1015
1145
  organization_id: z.uuid().optional(),
1016
1146
  date_created: z.iso.datetime(),
1017
1147
  email: z.email().optional(),
1018
- code: z.string().optional()
1148
+ code: z.string().optional(),
1149
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1150
+ });
1151
+ export const zInvoicePaymentAttempt = z.object({
1152
+ invoice_id: z.string(),
1153
+ number: z.string(),
1154
+ amount: z.number(),
1155
+ currency: z.string(),
1156
+ status: z.enum([
1157
+ 'paid',
1158
+ 'processing',
1159
+ 'requires_action',
1160
+ 'failed'
1161
+ ]),
1162
+ client_secret: z.string(),
1163
+ failure_code: z.string(),
1164
+ failure_message: z.string()
1165
+ });
1166
+ export const zInvoicePaymentResult = z.object({
1167
+ code: z.enum([
1168
+ 'paid',
1169
+ 'processing',
1170
+ 'action_required',
1171
+ 'partially_paid',
1172
+ 'failed',
1173
+ 'nothing_due',
1174
+ 'bank_transfer_due'
1175
+ ]),
1176
+ message: z.string(),
1177
+ results: z.array(z.object({
1178
+ invoice_id: z.string(),
1179
+ number: z.string(),
1180
+ amount: z.number(),
1181
+ currency: z.string(),
1182
+ status: z.enum([
1183
+ 'paid',
1184
+ 'processing',
1185
+ 'requires_action',
1186
+ 'failed'
1187
+ ]),
1188
+ client_secret: z.string(),
1189
+ failure_code: z.string(),
1190
+ failure_message: z.string()
1191
+ }))
1019
1192
  });
1020
1193
  export const zInvoice = z.object({
1021
1194
  id: z.string().optional(),
@@ -1055,21 +1228,28 @@ export const zMarketplaceListing = z.object({
1055
1228
  }).optional()
1056
1229
  });
1057
1230
  export const zOrganizationCreateInput = z.object({
1231
+ type: z.enum(['business', 'personal']),
1058
1232
  email: z.email(),
1059
- first_name: z.string(),
1060
- last_name: z.string(),
1233
+ first_name: z.string().min(1),
1234
+ last_name: z.string().min(1),
1061
1235
  company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
1062
1236
  password: z.string().min(8)
1063
1237
  });
1238
+ export const zOrganizationCreateOutput = z.object({
1239
+ id: z.string()
1240
+ });
1064
1241
  export const zOrganization = z.object({
1065
1242
  id: z.uuid(),
1066
1243
  name: z.string().min(2).max(120).optional(),
1244
+ type: z.enum(['business', 'personal']),
1067
1245
  date_created: z.iso.datetime(),
1068
1246
  quota: z.object({
1069
1247
  basic_clusters_max: z.int().gte(0),
1070
1248
  basic_clusters_available: z.int(),
1071
1249
  pro_clusters_max: z.int().gte(0),
1072
1250
  pro_clusters_available: z.int(),
1251
+ enterprise_clusters_max: z.int().gte(0),
1252
+ enterprise_clusters_available: z.int(),
1073
1253
  fleets_max: z.int().gte(0),
1074
1254
  cluster_tiers: z.array(z.string()).min(0),
1075
1255
  regions: z.array(z.string()).min(1),
@@ -1083,32 +1263,36 @@ export const zOrganization = z.object({
1083
1263
  'active',
1084
1264
  'closed',
1085
1265
  'suspended'
1266
+ ]),
1267
+ verification: z.enum([
1268
+ 'none',
1269
+ 'submitted',
1270
+ 'verified'
1086
1271
  ])
1087
1272
  });
1088
1273
  export const zPaymentMethod = z.object({
1089
- id: z.uuid(),
1090
- setup: z.boolean(),
1091
- type: z.enum(['card']),
1274
+ id: z.string(),
1275
+ type: z.enum([
1276
+ 'card',
1277
+ 'sepa_debit',
1278
+ 'bank_transfer'
1279
+ ]),
1092
1280
  last4: z.string(),
1093
1281
  exp_month: z.int().gte(1).lte(12),
1094
- exp_year: z.int().gte(2024),
1095
- brand: z.enum([
1096
- 'amex',
1097
- 'diners',
1098
- 'discover',
1099
- 'eftpos_au',
1100
- 'jcb',
1101
- 'mastercard',
1102
- 'unionpay',
1103
- 'visa',
1104
- 'unknown'
1105
- ])
1282
+ exp_year: z.int(),
1283
+ brand: z.string(),
1284
+ iban: z.string(),
1285
+ bic: z.string(),
1286
+ account_holder_name: z.string(),
1287
+ is_default: z.boolean()
1106
1288
  });
1107
1289
  export const zPlatformQuota = z.object({
1108
1290
  basic_clusters_max: z.int().gte(0),
1109
1291
  basic_clusters_available: z.int(),
1110
1292
  pro_clusters_max: z.int().gte(0),
1111
1293
  pro_clusters_available: z.int(),
1294
+ enterprise_clusters_max: z.int().gte(0),
1295
+ enterprise_clusters_available: z.int(),
1112
1296
  fleets_max: z.int().gte(0),
1113
1297
  cluster_tiers: z.array(z.string()).min(0),
1114
1298
  regions: z.array(z.string()).min(1),
@@ -1164,6 +1348,25 @@ export const zRegistryTag = z.object({
1164
1348
  repository: z.string(),
1165
1349
  uri: z.string()
1166
1350
  });
1351
+ export const zRoadmapItemCreateInput = z.object({
1352
+ text: z.string().min(1).max(500)
1353
+ });
1354
+ export const zRoadmapItem = z.object({
1355
+ id: z.string(),
1356
+ text: z.string(),
1357
+ vote: z.union([
1358
+ z.literal(-1),
1359
+ z.literal(1),
1360
+ z.literal(2)
1361
+ ])
1362
+ });
1363
+ export const zRoadmapVoteInput = z.object({
1364
+ value: z.union([
1365
+ z.literal(-1),
1366
+ z.literal(1),
1367
+ z.literal(2)
1368
+ ])
1369
+ });
1167
1370
  export const zTicketAttachment = z.object({
1168
1371
  id: z.string(),
1169
1372
  filename: z.string(),
@@ -1177,40 +1380,8 @@ export const zTicketCreateInput = z.object({
1177
1380
  'general'
1178
1381
  ]),
1179
1382
  body: z.string().min(1).max(50000).regex(/\S/),
1180
- properties: z.record(z.string(), z.unknown()).optional()
1181
- });
1182
- export const zTicketListResponse = z.object({
1183
- items: z.array(z.object({
1184
- id: z.string(),
1185
- status: z.enum([
1186
- 'waiting_on_us',
1187
- 'waiting_on_user',
1188
- 'closed'
1189
- ]),
1190
- category: z.enum([
1191
- 'billing',
1192
- 'technical',
1193
- 'general'
1194
- ]),
1195
- summary: z.string(),
1196
- closed_at: z.iso.datetime().optional(),
1197
- date_created: z.iso.datetime(),
1198
- date_updated: z.iso.datetime(),
1199
- messages: z.array(z.object({
1200
- id: z.string(),
1201
- type: z.enum(['customer_reply', 'agent_reply']),
1202
- body: z.string(),
1203
- author_first_name: z.string().optional(),
1204
- author_last_name: z.string().optional(),
1205
- attachments: z.array(z.object({
1206
- id: z.string(),
1207
- filename: z.string(),
1208
- content_type: z.string(),
1209
- size: z.int()
1210
- })).optional(),
1211
- date_created: z.iso.datetime()
1212
- })).optional()
1213
- }))
1383
+ properties: z.record(z.string(), z.unknown()).optional(),
1384
+ grant_support_access: z.boolean().optional()
1214
1385
  });
1215
1386
  export const zTicketMessageInput = z.object({
1216
1387
  body: z.string().min(1).max(50000).regex(/\S/)
@@ -1242,6 +1413,8 @@ export const zTicket = z.object({
1242
1413
  'general'
1243
1414
  ]),
1244
1415
  summary: z.string(),
1416
+ support_access_granted: z.boolean(),
1417
+ support_access_granted_at: z.iso.datetime(),
1245
1418
  closed_at: z.iso.datetime().optional(),
1246
1419
  date_created: z.iso.datetime(),
1247
1420
  date_updated: z.iso.datetime(),
@@ -1277,26 +1450,58 @@ export const zTokenUpdateInput = z.object({
1277
1450
  });
1278
1451
  export const zUsageFacets = z.object({
1279
1452
  cluster_id: z.array(z.string()).optional(),
1280
- product: z.array(z.string()).optional()
1453
+ product: z.array(z.enum([
1454
+ 'cfke_controlplane_basic',
1455
+ 'cfke_controlplane_pro',
1456
+ 'cfke_controlplane_enterprise',
1457
+ 'cfke_connected_nodes_basic',
1458
+ 'cfke_connected_nodes_pro',
1459
+ 'cfke_connected_nodes_enterprise',
1460
+ 'cfcr_storage'
1461
+ ])).optional()
1281
1462
  });
1282
1463
  export const zUsageResponse = z.object({
1283
1464
  data: z.array(z.object({
1284
1465
  hour: z.string(),
1285
1466
  cluster_id: z.string(),
1286
- product: z.string(),
1467
+ product: z.enum([
1468
+ 'cfke_controlplane_basic',
1469
+ 'cfke_controlplane_pro',
1470
+ 'cfke_controlplane_enterprise',
1471
+ 'cfke_connected_nodes_basic',
1472
+ 'cfke_connected_nodes_pro',
1473
+ 'cfke_connected_nodes_enterprise',
1474
+ 'cfcr_storage'
1475
+ ]),
1287
1476
  value: z.number(),
1288
1477
  price: z.number(),
1289
1478
  total: z.number()
1290
1479
  })),
1291
1480
  facets: z.object({
1292
1481
  cluster_id: z.array(z.string()).optional(),
1293
- product: z.array(z.string()).optional()
1482
+ product: z.array(z.enum([
1483
+ 'cfke_controlplane_basic',
1484
+ 'cfke_controlplane_pro',
1485
+ 'cfke_controlplane_enterprise',
1486
+ 'cfke_connected_nodes_basic',
1487
+ 'cfke_connected_nodes_pro',
1488
+ 'cfke_connected_nodes_enterprise',
1489
+ 'cfcr_storage'
1490
+ ])).optional()
1294
1491
  })
1295
1492
  });
1296
1493
  export const zUsage = z.object({
1297
1494
  hour: z.string(),
1298
1495
  cluster_id: z.string(),
1299
- product: z.string(),
1496
+ product: z.enum([
1497
+ 'cfke_controlplane_basic',
1498
+ 'cfke_controlplane_pro',
1499
+ 'cfke_controlplane_enterprise',
1500
+ 'cfke_connected_nodes_basic',
1501
+ 'cfke_connected_nodes_pro',
1502
+ 'cfke_connected_nodes_enterprise',
1503
+ 'cfcr_storage'
1504
+ ]),
1300
1505
  value: z.number(),
1301
1506
  price: z.number(),
1302
1507
  total: z.number()
@@ -1306,9 +1511,7 @@ export const zUserCreateInput = z.object({
1306
1511
  first_name: z.string().min(1).max(50),
1307
1512
  last_name: z.string().min(1).max(50),
1308
1513
  code: z.string(),
1309
- password: z.string().min(8),
1310
- status: z.enum(['active', 'inactive']).optional(),
1311
- role: z.enum(['Administrator', 'User']).optional()
1514
+ password: z.string().min(8)
1312
1515
  });
1313
1516
  export const zUser = z.object({
1314
1517
  email: z.email(),
@@ -1326,202 +1529,193 @@ export const zUserUpdateInput = z.object({
1326
1529
  role: z.enum(['Administrator', 'User']).optional(),
1327
1530
  status: z.enum(['active', 'inactive']).optional()
1328
1531
  });
1329
- export const zGetUsageQuery = z.object({
1330
- granularity: z.enum([
1331
- 'hourly',
1332
- 'daily',
1333
- 'monthly'
1334
- ]).optional().default('daily')
1532
+ export const zListUserOrganizationsPath = z.object({
1533
+ email: z.string()
1335
1534
  });
1336
1535
  /**
1337
- * Usage data with facets for filtering
1536
+ * An array of organizations the user belongs to.
1338
1537
  */
1339
- export const zGetUsageResponse = zUsageResponse;
1538
+ export const zListUserOrganizationsResponse = z.array(z.object({
1539
+ realm: z.string().optional(),
1540
+ displayName: z.string().optional()
1541
+ }));
1340
1542
  /**
1341
- * Redacted payment card information.
1543
+ * An array of users
1342
1544
  */
1343
- export const zGetPaymentMethodResponse = zPaymentMethod;
1545
+ export const zListUsersResponse = z.array(zUser);
1546
+ export const zCreateUserBody = zUserCreateInput;
1344
1547
  /**
1345
- * 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.
1346
- *
1548
+ * Successfully created. Returns created user details.
1347
1549
  */
1348
- export const zGetPaymentMethodSecretResponse = z.object({
1349
- id: z.string().optional()
1550
+ export const zCreateUserResponse = zUser;
1551
+ export const zDeleteUserPath = z.object({
1552
+ user_id: z.string()
1350
1553
  });
1351
1554
  /**
1352
- * An array of usage records.
1555
+ * User profile information
1353
1556
  */
1354
- export const zListInvoicesResponse = z.array(zInvoice);
1557
+ export const zDeleteUserResponse = zUser;
1558
+ export const zGetUserPath = z.object({
1559
+ user_id: z.string()
1560
+ });
1355
1561
  /**
1356
- * Returns a single object containing organization contact and billing address details.
1562
+ * User profile information
1357
1563
  */
1358
- export const zGetContactResponse = zBillingContact;
1359
- export const zUpdateContactBody = zBillingContact;
1564
+ export const zGetUserResponse = zUser;
1565
+ export const zUpdateUserBody = zUserUpdateInput;
1566
+ export const zUpdateUserPath = z.object({
1567
+ user_id: z.string()
1568
+ });
1360
1569
  /**
1361
- * Successfully updated. Returns updated organization details.
1570
+ * Successfully created. Returns created user details.
1362
1571
  */
1363
- export const zUpdateContactResponse = zBillingContact;
1572
+ export const zUpdateUserResponse = zUser;
1364
1573
  /**
1365
- * An array of the applied promotional credits records.
1574
+ * Returns a list of access token details with masked secrets.
1366
1575
  */
1367
- export const zGetCreditsResponse = z.array(zBillingCredits);
1368
- export const zRedeemCreditsBody = z.object({
1369
- code: z.string().optional()
1576
+ export const zListTokensResponse = z.array(zToken);
1577
+ export const zCreateTokenBody = zTokenCreateInput;
1578
+ /**
1579
+ * Successfully created. Returns created token details with unmasked/raw secret.
1580
+ */
1581
+ export const zCreateTokenResponse = zToken;
1582
+ export const zDeleteTokenPath = z.object({
1583
+ token_id: z.string()
1370
1584
  });
1371
- export const zListChartsPath = z.object({
1372
- cluster_id: z.string()
1585
+ export const zGetTokenPath = z.object({
1586
+ token_id: z.string()
1373
1587
  });
1374
1588
  /**
1375
- * An array of charts
1589
+ * Returns access token details with masked secret.
1376
1590
  */
1377
- export const zListChartsResponse = z.array(zChart);
1378
- export const zCreateChartBody = zChartCreateInput;
1379
- export const zCreateChartPath = z.object({
1380
- cluster_id: z.string()
1591
+ export const zGetTokenResponse = zToken;
1592
+ export const zUpdateTokenBody = zTokenUpdateInput;
1593
+ export const zUpdateTokenPath = z.object({
1594
+ token_id: z.string()
1381
1595
  });
1382
1596
  /**
1383
- * Successfully created. Returns created Chart ID.
1597
+ * Successfully updated. Returns updated token details with masked secret.
1384
1598
  */
1385
- export const zCreateChartResponse = z.string();
1386
- export const zDeleteChartPath = z.object({
1387
- cluster_id: z.string(),
1388
- chart_name: z.string()
1599
+ export const zUpdateTokenResponse = zToken;
1600
+ export const zRegenerateTokenPath = z.object({
1601
+ token_id: z.string()
1389
1602
  });
1390
1603
  /**
1391
- * Successfully deleted.
1604
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1392
1605
  */
1393
- export const zDeleteChartResponse = z.string();
1394
- export const zGetChartPath = z.object({
1395
- cluster_id: z.string(),
1396
- chart_name: z.string()
1397
- });
1606
+ export const zRegenerateTokenResponse = zToken;
1398
1607
  /**
1399
- * Returns a single object containing chart details.
1608
+ * An array of tickets for the organization, newest first.
1400
1609
  */
1401
- export const zGetChartResponse = zChart;
1402
- export const zUpdateChartBody = zChartUpdateInput;
1403
- export const zUpdateChartPath = z.object({
1404
- cluster_id: z.string(),
1405
- chart_name: z.string()
1610
+ export const zListTicketsResponse = z.array(zTicket);
1611
+ export const zCreateTicketBody = z.object({
1612
+ payload: z.string().optional(),
1613
+ attachments: z.array(z.string()).optional()
1406
1614
  });
1407
1615
  /**
1408
- * Successfully updated.
1616
+ * Ticket created.
1409
1617
  */
1410
- export const zUpdateChartResponse = z.string();
1411
- export const zListFleetsPath = z.object({
1412
- cluster_id: z.string()
1618
+ export const zCreateTicketResponse = zTicket;
1619
+ export const zCloseTicketPath = z.object({
1620
+ ticket_id: z.string()
1413
1621
  });
1414
1622
  /**
1415
- * An array of fleets
1623
+ * Ticket closed.
1416
1624
  */
1417
- export const zListFleetsResponse = z.array(zFleet);
1418
- export const zCreateFleetBody = zFleetCreateInput;
1419
- export const zCreateFleetPath = z.object({
1420
- cluster_id: z.string()
1625
+ export const zCloseTicketResponse = zTicket;
1626
+ export const zGetTicketPath = z.object({
1627
+ ticket_id: z.string()
1421
1628
  });
1422
1629
  /**
1423
- * Successfully created. Returns created Fleet ID.
1630
+ * Ticket with messages (internal notes excluded).
1424
1631
  */
1425
- export const zCreateFleetResponse = z.string();
1426
- export const zDeleteFleetPath = z.object({
1427
- cluster_id: z.string(),
1428
- fleet_name: z.string()
1632
+ export const zGetTicketResponse = zTicket;
1633
+ export const zGrantTicketSupportAccessPath = z.object({
1634
+ ticket_id: z.string()
1429
1635
  });
1430
1636
  /**
1431
- * Successfully deleted.
1637
+ * Support access granted.
1432
1638
  */
1433
- export const zDeleteFleetResponse = z.string();
1434
- export const zGetFleetPath = z.object({
1435
- cluster_id: z.string(),
1436
- fleet_name: z.string()
1639
+ export const zGrantTicketSupportAccessResponse = zTicket;
1640
+ export const zReplyTicketBody = z.object({
1641
+ payload: z.string().optional(),
1642
+ attachments: z.array(z.string()).optional()
1643
+ });
1644
+ export const zReplyTicketPath = z.object({
1645
+ ticket_id: z.string()
1437
1646
  });
1438
1647
  /**
1439
- * Returns a single object containing fleet details.
1648
+ * Reply appended.
1440
1649
  */
1441
- export const zGetFleetResponse = zFleet;
1442
- export const zUpdateFleetBody = zFleetUpdateInput;
1443
- export const zUpdateFleetPath = z.object({
1444
- cluster_id: z.string(),
1445
- fleet_name: z.string()
1650
+ export const zReplyTicketResponse = zTicketMessage;
1651
+ export const zGetTicketAttachmentPath = z.object({
1652
+ ticket_id: z.string(),
1653
+ attachment_id: z.string()
1446
1654
  });
1447
1655
  /**
1448
- * Successfully updated.
1656
+ * Attachment binary stream.
1449
1657
  */
1450
- export const zUpdateFleetResponse = z.string();
1451
- export const zQueryClusterPath = z.object({
1452
- cluster_id: z.string()
1453
- });
1658
+ export const zGetTicketAttachmentResponse = z.string();
1454
1659
  /**
1455
- * An array of clusters
1660
+ * An array of roadmap items, newest first.
1456
1661
  */
1457
- export const zListClustersResponse = z.array(zCluster);
1458
- export const zCreateClusterBody = zClusterCreateInput;
1662
+ export const zListRoadmapResponse = z.array(zRoadmapItem);
1663
+ export const zSuggestRoadmapBody = zRoadmapItemCreateInput;
1459
1664
  /**
1460
- * Successfully created. Returns created Cluster ID.
1665
+ * Suggestion submitted for review.
1461
1666
  */
1462
- export const zCreateClusterResponse = z.string();
1463
- export const zDeleteClusterPath = z.object({
1464
- cluster_id: z.string()
1667
+ export const zSuggestRoadmapResponse = zRoadmapItem;
1668
+ export const zUnvoteRoadmapPath = z.object({
1669
+ item_id: z.string()
1465
1670
  });
1466
1671
  /**
1467
- * Successfully deleted.
1672
+ * Vote removed. Returns the item without a vote.
1468
1673
  */
1469
- export const zDeleteClusterResponse = z.string();
1470
- export const zGetClusterPath = z.object({
1471
- cluster_id: z.string()
1674
+ export const zUnvoteRoadmapResponse = zRoadmapItem;
1675
+ export const zVoteRoadmapBody = zRoadmapVoteInput;
1676
+ export const zVoteRoadmapPath = z.object({
1677
+ item_id: z.string()
1472
1678
  });
1473
1679
  /**
1474
- * Returns a single object containing cluster details.
1680
+ * Vote saved. Returns the item with your vote.
1475
1681
  */
1476
- export const zGetClusterResponse = zCluster;
1477
- export const zUpdateClusterBody = zClusterUpdateInput;
1478
- export const zUpdateClusterPath = z.object({
1479
- cluster_id: z.string()
1480
- });
1682
+ export const zVoteRoadmapResponse = zRoadmapItem;
1481
1683
  /**
1482
- * Successfully updated. Returns updated cluster details.
1684
+ * List of repositories
1483
1685
  */
1484
- export const zUpdateClusterResponse = zCluster;
1485
- export const zGetJoinInformationPath = z.object({
1486
- cluster_id: z.string()
1686
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1687
+ export const zListTagsPath = z.object({
1688
+ region: z.string(),
1689
+ repository: z.string()
1487
1690
  });
1488
1691
  /**
1489
- * An object of cluster join information
1490
- */
1491
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1492
- /**
1493
- * An array of invites
1692
+ * Repository with tags
1494
1693
  */
1495
- export const zListInvitesResponse = z.array(zInvite);
1496
- export const zCreateInviteBody = z.object({
1497
- email: z.string().optional()
1694
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1695
+ export const zDeleteTagPath = z.object({
1696
+ region: z.string(),
1697
+ repository: z.string(),
1698
+ tag: z.string()
1498
1699
  });
1499
- /**
1500
- * Successfully created. Returns created invite details.
1501
- */
1502
- export const zCreateInviteResponse = zInvite;
1503
- export const zGetInvitePath = z.object({
1504
- code: z.string()
1700
+ export const zGetTagPath = z.object({
1701
+ region: z.string(),
1702
+ repository: z.string(),
1703
+ tag: z.string()
1505
1704
  });
1506
1705
  /**
1507
- * Returns a single object containing invite details.
1706
+ * Tag details
1508
1707
  */
1509
- export const zGetInviteResponse = zInvite;
1510
- export const zDeleteInvitePath = z.object({
1511
- email: z.string()
1512
- });
1708
+ export const zGetTagResponse = zRegistryTag;
1513
1709
  /**
1514
- * An array of chart listings in the marketplace.
1710
+ * Returns a single object containing organization details.
1515
1711
  */
1516
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1517
- export const zGetMarketplaceChartFilesPath = z.object({
1518
- chart_name: z.string(),
1519
- version_channel: z.string()
1520
- });
1712
+ export const zGetOrganizationResponse = zOrganization;
1713
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1521
1714
  /**
1522
- * Returns an object containing the chart files for the latest matching version.
1715
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1716
+ *
1523
1717
  */
1524
- export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1718
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1525
1719
  /**
1526
1720
  * JSON-RPC 2.0 request payload
1527
1721
  */
@@ -1550,154 +1744,218 @@ export const zPostMcpResponse = z.object({
1550
1744
  }).optional()
1551
1745
  });
1552
1746
  /**
1553
- * Returns a single object containing organization details.
1747
+ * An array of chart listings in the marketplace.
1554
1748
  */
1555
- export const zGetOrganizationResponse = zOrganization;
1556
- export const zCreateOrganizationBody = zOrganizationCreateInput;
1749
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1750
+ export const zGetMarketplaceChartFilesPath = z.object({
1751
+ chart_name: z.string(),
1752
+ version_channel: z.string()
1753
+ });
1557
1754
  /**
1558
- * List of repositories
1755
+ * Returns an object containing the chart files for the latest matching version.
1559
1756
  */
1560
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
1561
- export const zListTagsPath = z.object({
1562
- region: z.string(),
1563
- repository: z.string()
1757
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1758
+ /**
1759
+ * An array of invites
1760
+ */
1761
+ export const zListInvitesResponse = z.array(zInvite);
1762
+ export const zCreateInviteBody = zInviteCreateInput;
1763
+ /**
1764
+ * Successfully created. Returns created invite details.
1765
+ */
1766
+ export const zCreateInviteResponse = zInvite;
1767
+ export const zGetInvitePath = z.object({
1768
+ code: z.string()
1564
1769
  });
1565
1770
  /**
1566
- * Repository with tags
1771
+ * The invitation code is valid. Returns the invited email and organization.
1567
1772
  */
1568
- export const zListTagsResponse = zRegistryRepositoryWithTags;
1569
- export const zDeleteTagPath = z.object({
1570
- region: z.string(),
1571
- repository: z.string(),
1572
- tag: z.string()
1773
+ export const zGetInviteResponse = z.object({
1774
+ email: z.email().optional(),
1775
+ organization_id: z.string().optional()
1573
1776
  });
1574
- export const zGetTagPath = z.object({
1575
- region: z.string(),
1576
- repository: z.string(),
1577
- tag: z.string()
1777
+ export const zDeleteInvitePath = z.object({
1778
+ email: z.email()
1779
+ });
1780
+ export const zQueryClusterPath = z.object({
1781
+ cluster_id: z.string()
1782
+ });
1783
+ export const zListFleetsPath = z.object({
1784
+ cluster_id: z.string()
1578
1785
  });
1579
1786
  /**
1580
- * Tag details
1787
+ * An array of fleets
1581
1788
  */
1582
- export const zGetTagResponse = zRegistryTag;
1789
+ export const zListFleetsResponse = z.array(zFleet);
1790
+ export const zCreateFleetBody = zFleetCreateInput;
1791
+ export const zCreateFleetPath = z.object({
1792
+ cluster_id: z.string()
1793
+ });
1583
1794
  /**
1584
- * Tickets for the organization.
1795
+ * Successfully created. Returns created Fleet ID.
1585
1796
  */
1586
- export const zListTicketsResponse = zTicketListResponse;
1587
- export const zCreateTicketBody = z.object({
1588
- payload: z.string().optional(),
1589
- attachments: z.array(z.string()).optional()
1797
+ export const zCreateFleetResponse = z.string();
1798
+ export const zDeleteFleetPath = z.object({
1799
+ cluster_id: z.string(),
1800
+ fleet_name: z.string()
1590
1801
  });
1591
1802
  /**
1592
- * Ticket created.
1803
+ * Successfully deleted.
1593
1804
  */
1594
- export const zCreateTicketResponse = zTicket;
1595
- export const zCloseTicketPath = z.object({
1596
- ticket_id: z.string()
1805
+ export const zDeleteFleetResponse = z.string();
1806
+ export const zGetFleetPath = z.object({
1807
+ cluster_id: z.string(),
1808
+ fleet_name: z.string()
1597
1809
  });
1598
1810
  /**
1599
- * Ticket closed.
1811
+ * Returns a single object containing fleet details.
1600
1812
  */
1601
- export const zCloseTicketResponse = zTicket;
1602
- export const zGetTicketPath = z.object({
1603
- ticket_id: z.string()
1813
+ export const zGetFleetResponse = zFleet;
1814
+ export const zUpdateFleetBody = zFleetUpdateInput;
1815
+ export const zUpdateFleetPath = z.object({
1816
+ cluster_id: z.string(),
1817
+ fleet_name: z.string()
1604
1818
  });
1605
1819
  /**
1606
- * Ticket with messages (internal notes excluded).
1820
+ * Successfully updated.
1607
1821
  */
1608
- export const zGetTicketResponse = zTicket;
1609
- export const zReplyTicketBody = z.object({
1610
- payload: z.string().optional(),
1611
- attachments: z.array(z.string()).optional()
1612
- });
1613
- export const zReplyTicketPath = z.object({
1614
- ticket_id: z.string()
1822
+ export const zUpdateFleetResponse = z.string();
1823
+ export const zListChartsPath = z.object({
1824
+ cluster_id: z.string()
1615
1825
  });
1616
1826
  /**
1617
- * Reply appended.
1827
+ * An array of charts
1618
1828
  */
1619
- export const zReplyTicketResponse = zTicketMessage;
1620
- export const zGetTicketAttachmentPath = z.object({
1621
- ticket_id: z.string(),
1622
- attachment_id: z.string()
1829
+ export const zListChartsResponse = z.array(zChart);
1830
+ export const zCreateChartBody = zChartCreateInput;
1831
+ export const zCreateChartPath = z.object({
1832
+ cluster_id: z.string()
1623
1833
  });
1624
1834
  /**
1625
- * Attachment binary stream.
1835
+ * Successfully created. Returns created Chart ID.
1626
1836
  */
1627
- export const zGetTicketAttachmentResponse = z.string();
1837
+ export const zCreateChartResponse = z.string();
1838
+ export const zDeleteChartPath = z.object({
1839
+ cluster_id: z.string(),
1840
+ chart_name: z.string()
1841
+ });
1628
1842
  /**
1629
- * Returns a list of access token details with masked secrets.
1843
+ * Successfully deleted.
1630
1844
  */
1631
- export const zListTokensResponse = z.array(zToken);
1632
- export const zCreateTokenBody = zTokenCreateInput;
1845
+ export const zDeleteChartResponse = z.string();
1846
+ export const zGetChartPath = z.object({
1847
+ cluster_id: z.string(),
1848
+ chart_name: z.string()
1849
+ });
1633
1850
  /**
1634
- * Successfully created. Returns created token details with unmasked/raw secret.
1851
+ * Returns a single object containing chart details.
1635
1852
  */
1636
- export const zCreateTokenResponse = zToken;
1637
- export const zDeleteTokenPath = z.object({
1638
- token_id: z.string()
1853
+ export const zGetChartResponse = zChart;
1854
+ export const zUpdateChartBody = zChartUpdateInput;
1855
+ export const zUpdateChartPath = z.object({
1856
+ cluster_id: z.string(),
1857
+ chart_name: z.string()
1639
1858
  });
1640
- export const zGetTokenPath = z.object({
1641
- token_id: z.string()
1859
+ /**
1860
+ * Successfully updated.
1861
+ */
1862
+ export const zUpdateChartResponse = z.string();
1863
+ /**
1864
+ * An array of clusters
1865
+ */
1866
+ export const zListClustersResponse = z.array(zCluster);
1867
+ export const zCreateClusterBody = zClusterCreateInput;
1868
+ /**
1869
+ * Successfully created. Returns created Cluster ID.
1870
+ */
1871
+ export const zCreateClusterResponse = z.string();
1872
+ export const zDeleteClusterPath = z.object({
1873
+ cluster_id: z.string()
1642
1874
  });
1643
1875
  /**
1644
- * Returns access token details with masked secret.
1876
+ * Successfully deleted. The cluster has been torn down.
1645
1877
  */
1646
- export const zGetTokenResponse = zToken;
1647
- export const zUpdateTokenBody = zTokenUpdateInput;
1648
- export const zUpdateTokenPath = z.object({
1649
- token_id: z.string()
1878
+ export const zDeleteClusterResponse = z.string();
1879
+ export const zGetClusterPath = z.object({
1880
+ cluster_id: z.string()
1650
1881
  });
1651
1882
  /**
1652
- * Successfully updated. Returns updated token details with masked secret.
1883
+ * Returns a single object containing cluster details.
1653
1884
  */
1654
- export const zUpdateTokenResponse = zToken;
1655
- export const zRegenerateTokenPath = z.object({
1656
- token_id: z.string()
1885
+ export const zGetClusterResponse = zCluster;
1886
+ export const zUpdateClusterBody = zClusterUpdateInput;
1887
+ export const zUpdateClusterPath = z.object({
1888
+ cluster_id: z.string()
1657
1889
  });
1658
1890
  /**
1659
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1891
+ * Successfully updated. Returns updated cluster details.
1660
1892
  */
1661
- export const zRegenerateTokenResponse = zToken;
1662
- export const zListUserOrganizationsPath = z.object({
1663
- email: z.string()
1893
+ export const zUpdateClusterResponse = zCluster;
1894
+ export const zGetJoinInformationPath = z.object({
1895
+ cluster_id: z.string()
1664
1896
  });
1665
1897
  /**
1666
- * An array of organizations the user belongs to.
1898
+ * An object of cluster join information
1667
1899
  */
1668
- export const zListUserOrganizationsResponse = z.array(z.object({
1669
- realm: z.string().optional(),
1670
- displayName: z.string().optional()
1671
- }));
1900
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1901
+ export const zGetUsageQuery = z.object({
1902
+ granularity: z.enum([
1903
+ 'hourly',
1904
+ 'daily',
1905
+ 'monthly'
1906
+ ]).optional().default('daily')
1907
+ });
1672
1908
  /**
1673
- * An array of users
1909
+ * Usage data with facets for filtering
1674
1910
  */
1675
- export const zListUsersResponse = z.array(zUser);
1676
- export const zCreateUserBody = zUserCreateInput;
1911
+ export const zGetUsageResponse = zUsageResponse;
1677
1912
  /**
1678
- * Successfully created. Returns created user details.
1913
+ * 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.
1914
+ *
1679
1915
  */
1680
- export const zCreateUserResponse = zUser;
1681
- export const zDeleteUserPath = z.object({
1682
- user_id: z.string()
1916
+ export const zGetPaymentMethodSecretResponse = z.object({
1917
+ id: z.string().optional()
1683
1918
  });
1684
1919
  /**
1685
- * User profile information
1920
+ * An array of payment methods.
1686
1921
  */
1687
- export const zDeleteUserResponse = zUser;
1688
- export const zGetUserPath = z.object({
1689
- user_id: z.string()
1922
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1923
+ export const zSetDefaultPaymentMethodPath = z.object({
1924
+ paymentMethodId: z.string()
1690
1925
  });
1691
1926
  /**
1692
- * User profile information
1927
+ * Default payment method updated.
1693
1928
  */
1694
- export const zGetUserResponse = zUser;
1695
- export const zUpdateUserBody = zUserUpdateInput;
1696
- export const zUpdateUserPath = z.object({
1697
- user_id: z.string()
1929
+ export const zSetDefaultPaymentMethodResponse = z.void();
1930
+ export const zDeletePaymentMethodPath = z.object({
1931
+ paymentMethodId: z.string()
1698
1932
  });
1699
1933
  /**
1700
- * Successfully created. Returns created user details.
1934
+ * Payment method deleted.
1701
1935
  */
1702
- export const zUpdateUserResponse = zUser;
1936
+ export const zDeletePaymentMethodResponse = z.void();
1937
+ /**
1938
+ * An array of usage records.
1939
+ */
1940
+ export const zListInvoicesResponse = z.array(zInvoice);
1941
+ /**
1942
+ * The outcome of the attempt.
1943
+ */
1944
+ export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
1945
+ /**
1946
+ * Returns a single object containing organization contact and billing address details.
1947
+ */
1948
+ export const zGetContactResponse = zBillingContact;
1949
+ export const zUpdateContactBody = zBillingContact;
1950
+ /**
1951
+ * Successfully updated. Returns updated organization details.
1952
+ */
1953
+ export const zUpdateContactResponse = zBillingContact;
1954
+ /**
1955
+ * An array of the applied promotional credits records.
1956
+ */
1957
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1958
+ export const zRedeemCreditsBody = z.object({
1959
+ code: z.string().optional()
1960
+ });
1703
1961
  //# sourceMappingURL=zod.gen.js.map