@cloudfleet/sdk 0.0.1-c034297 → 0.0.1-c229303

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,20 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import * as z from 'zod';
3
+ export const zBasicPriceConsentInput = z.object({
4
+ decision: z.enum(['accepted', 'rejected'])
5
+ });
6
+ export const zBasicPriceConsent = z.object({
7
+ status: z.enum([
8
+ 'not_applicable',
9
+ 'pending',
10
+ 'accepted',
11
+ 'rejected'
12
+ ]),
13
+ decided_at: z.iso.datetime().optional(),
14
+ decided_by: z.string().optional()
15
+ });
3
16
  export const zBillingContact = z.object({
17
+ type: z.enum(['business', 'personal']),
4
18
  company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
5
19
  address1: z.string().optional(),
6
20
  address2: z.string().optional(),
@@ -166,22 +180,7 @@ export const zChart = z.object({
166
180
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
167
181
  namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
182
  chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
169
- status: z.enum([
170
- 'InstallSucceeded',
171
- 'InstallFailed',
172
- 'UpgradeSucceeded',
173
- 'UpgradeFailed',
174
- 'TestSucceeded',
175
- 'TestFailed',
176
- 'RollbackSucceeded',
177
- 'RollbackFailed',
178
- 'UninstallSucceeded',
179
- 'UninstallFailed',
180
- 'ArtifactFailed',
181
- 'DependencyNotReady',
182
- 'Progressing',
183
- 'SourceNotReady'
184
- ]),
183
+ status: z.string(),
185
184
  version_current: z.string(),
186
185
  created_at: z.string(),
187
186
  updated_at: z.string(),
@@ -191,27 +190,57 @@ export const zChartUpdateInput = z.object({
191
190
  values: z.string(),
192
191
  version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)
193
192
  });
193
+ /**
194
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
195
+ */
194
196
  export const zClusterCreateInput = z.object({
195
197
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
196
- tier: z.enum(['basic', 'pro']),
197
- region: z.enum([
198
- 'staging-1a',
199
- 'northamerica-central-1',
200
- 'europe-central-1a',
201
- 'northamerica-central-1a'
202
- ]).optional().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')
198
+ tier: z.enum([
199
+ 'basic',
200
+ 'pro',
201
+ 'enterprise'
202
+ ]).optional().default('basic'),
203
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
204
+ release_channel: z.enum([
205
+ 'rapid',
206
+ 'stable',
207
+ 'extended'
208
+ ]).optional().default('rapid'),
209
+ features: z.object({
210
+ gpu_sharing_strategy: z.enum([
211
+ 'none',
212
+ 'mps',
213
+ 'time_slicing'
214
+ ]).optional().default('none'),
215
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
216
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
217
+ }).optional().default({
218
+ gpu_sharing_strategy: 'none',
219
+ gpu_max_shared_clients_per_gpu: 4,
220
+ cilium_socket_lb_host_namespace_only: false
221
+ }),
222
+ region: z.string(),
223
+ networking: z.object({
224
+ pod_cidr: z.string().optional().default('10.244.0.0/16'),
225
+ service_cidr: z.string().optional().default('10.96.0.0/12'),
226
+ dual_stack: z.boolean().optional(),
227
+ pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
228
+ service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
229
+ }).optional().default({
230
+ pod_cidr: '10.244.0.0/16',
231
+ service_cidr: '10.96.0.0/12',
232
+ dual_stack: false,
233
+ pod_cidr_v6: '2001:db8:1:2::/48',
234
+ service_cidr_v6: '2001:db8:1:1::/112'
235
+ })
209
236
  });
210
237
  export const zClusterJoinInformation = z.object({
211
238
  certificate_authority: z.string(),
212
239
  endpoint: z.url(),
213
240
  cluster_dns: z.string(),
241
+ pod_cidr: z.string(),
214
242
  auth_key: z.string(),
243
+ login_server: z.string(),
215
244
  bootstrap_token: z.string(),
216
245
  versions: z.object({
217
246
  kubernetes: z.string(),
@@ -225,24 +254,55 @@ export const zClusterJoinInformation = z.object({
225
254
  gcp_workload_identity_provider: z.string()
226
255
  })
227
256
  });
257
+ /**
258
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
259
+ */
228
260
  export const zCluster = z.object({
229
261
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
- tier: z.enum(['basic', 'pro']),
231
- region: z.enum([
232
- 'staging-1a',
233
- 'northamerica-central-1',
234
- 'europe-central-1a',
235
- 'northamerica-central-1a'
236
- ]).optional().default('staging-1a'),
262
+ tier: z.enum([
263
+ 'basic',
264
+ 'pro',
265
+ 'enterprise'
266
+ ]).default('basic'),
267
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).default('1.x.x-cfke.x'),
268
+ release_channel: z.enum([
269
+ 'rapid',
270
+ 'stable',
271
+ 'extended'
272
+ ]).default('rapid'),
273
+ features: z.object({
274
+ gpu_sharing_strategy: z.enum([
275
+ 'none',
276
+ 'mps',
277
+ 'time_slicing'
278
+ ]).default('none'),
279
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
280
+ cilium_socket_lb_host_namespace_only: z.boolean()
281
+ }).default({
282
+ gpu_sharing_strategy: 'none',
283
+ gpu_max_shared_clients_per_gpu: 4,
284
+ cilium_socket_lb_host_namespace_only: false
285
+ }),
286
+ region: z.string(),
287
+ networking: z.object({
288
+ pod_cidr: z.string().default('10.244.0.0/16'),
289
+ service_cidr: z.string().default('10.96.0.0/12'),
290
+ dual_stack: z.boolean(),
291
+ pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
292
+ service_cidr_v6: z.string().default('2001:db8:1:1::/112')
293
+ }).default({
294
+ pod_cidr: '10.244.0.0/16',
295
+ service_cidr: '10.96.0.0/12',
296
+ dual_stack: false,
297
+ pod_cidr_v6: '2001:db8:1:2::/48',
298
+ service_cidr_v6: '2001:db8:1:1::/112'
299
+ }),
237
300
  id: z.uuid(),
238
301
  status: z.enum([
239
- 'active',
240
- 'disabled',
241
- 'deleted',
242
302
  'creating',
243
303
  'deployed',
244
- 'failed',
245
- 'updating'
304
+ 'updating',
305
+ 'disabled'
246
306
  ]),
247
307
  endpoint: z.union([
248
308
  z.url(),
@@ -256,14 +316,41 @@ export const zCluster = z.object({
256
316
  version_current: z.string().optional(),
257
317
  created_at: z.string().optional(),
258
318
  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()
319
+ ready: z.boolean()
261
320
  });
321
+ /**
322
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
323
+ */
262
324
  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()
325
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
326
+ tier: z.enum([
327
+ 'basic',
328
+ 'pro',
329
+ 'enterprise'
330
+ ]).optional().default('basic'),
331
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
332
+ release_channel: z.enum([
333
+ 'rapid',
334
+ 'stable',
335
+ 'extended'
336
+ ]).optional().default('rapid'),
337
+ features: z.object({
338
+ gpu_sharing_strategy: z.enum([
339
+ 'none',
340
+ 'mps',
341
+ 'time_slicing'
342
+ ]).optional().default('none'),
343
+ gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
344
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
345
+ }).optional().default({
346
+ gpu_sharing_strategy: 'none',
347
+ gpu_max_shared_clients_per_gpu: 4,
348
+ cilium_socket_lb_host_namespace_only: false
349
+ })
266
350
  });
351
+ /**
352
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
353
+ */
267
354
  export const zFleetCreateInput = z.object({
268
355
  limits: z.object({
269
356
  cpu: z.int().gte(0).lte(100000).optional()
@@ -274,7 +361,7 @@ export const zFleetCreateInput = z.object({
274
361
  }).optional(),
275
362
  hetzner: z.object({
276
363
  enabled: z.boolean(),
277
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
364
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
278
365
  }).optional(),
279
366
  aws: z.object({
280
367
  enabled: z.boolean(),
@@ -442,7 +529,7 @@ export const zFleetCreateInput = z.object({
442
529
  'x8g',
443
530
  'z1d',
444
531
  'z3'
445
- ])).optional(),
532
+ ])).optional().default([]),
446
533
  'topology.kubernetes.io/region': z.array(z.enum([
447
534
  'africa-south1',
448
535
  'ap-northeast-1',
@@ -508,11 +595,19 @@ export const zFleetCreateInput = z.object({
508
595
  'us-west2',
509
596
  'us-west3',
510
597
  'us-west4'
511
- ])).optional()
512
- }).optional(),
598
+ ])).optional().default([])
599
+ }).optional().default({
600
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
601
+ 'kubernetes.io/arch': ['amd64'],
602
+ 'cfke.io/instance-family': [],
603
+ 'topology.kubernetes.io/region': []
604
+ }),
513
605
  scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
514
606
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
515
607
  });
608
+ /**
609
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
610
+ */
516
611
  export const zFleet = z.object({
517
612
  limits: z.object({
518
613
  cpu: z.int().gte(0).lte(100000).optional()
@@ -530,8 +625,8 @@ export const zFleet = z.object({
530
625
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
531
626
  }).optional(),
532
627
  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']),
628
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
629
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
535
630
  'cfke.io/instance-family': z.array(z.enum([
536
631
  'a1',
537
632
  'a2',
@@ -691,7 +786,7 @@ export const zFleet = z.object({
691
786
  'x8g',
692
787
  'z1d',
693
788
  'z3'
694
- ])).optional(),
789
+ ])).optional().default([]),
695
790
  'topology.kubernetes.io/region': z.array(z.enum([
696
791
  'africa-south1',
697
792
  'ap-northeast-1',
@@ -757,11 +852,23 @@ export const zFleet = z.object({
757
852
  'us-west2',
758
853
  'us-west3',
759
854
  'us-west4'
760
- ])).optional()
761
- }).optional(),
855
+ ])).optional().default([])
856
+ }).default({
857
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
858
+ 'kubernetes.io/arch': ['amd64'],
859
+ 'cfke.io/instance-family': [],
860
+ 'topology.kubernetes.io/region': []
861
+ }),
762
862
  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])?$/)
863
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
864
+ ready: z.boolean(),
865
+ status_message: z.string().optional(),
866
+ created_at: z.string(),
867
+ updated_at: z.string()
764
868
  });
869
+ /**
870
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
871
+ */
765
872
  export const zFleetUpdateInput = z.object({
766
873
  limits: z.object({
767
874
  cpu: z.int().gte(0).lte(100000).optional()
@@ -772,15 +879,15 @@ export const zFleetUpdateInput = z.object({
772
879
  }).optional(),
773
880
  hetzner: z.object({
774
881
  enabled: z.boolean(),
775
- apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
882
+ apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
776
883
  }).optional(),
777
884
  aws: z.object({
778
885
  enabled: z.boolean(),
779
886
  controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
780
887
  }).optional(),
781
888
  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(),
889
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
890
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
784
891
  'cfke.io/instance-family': z.array(z.enum([
785
892
  'a1',
786
893
  'a2',
@@ -940,7 +1047,7 @@ export const zFleetUpdateInput = z.object({
940
1047
  'x8g',
941
1048
  'z1d',
942
1049
  'z3'
943
- ])).optional(),
1050
+ ])).optional().default([]),
944
1051
  'topology.kubernetes.io/region': z.array(z.enum([
945
1052
  'africa-south1',
946
1053
  'ap-northeast-1',
@@ -1006,16 +1113,26 @@ export const zFleetUpdateInput = z.object({
1006
1113
  'us-west2',
1007
1114
  'us-west3',
1008
1115
  'us-west4'
1009
- ])).optional()
1010
- }).optional(),
1011
- scalingProfile: z.enum(['aggressive', 'conservative'])
1116
+ ])).optional().default([])
1117
+ }).optional().default({
1118
+ 'karpenter.sh/capacity-type': ['on-demand', 'spot'],
1119
+ 'kubernetes.io/arch': ['amd64'],
1120
+ 'cfke.io/instance-family': [],
1121
+ 'topology.kubernetes.io/region': []
1122
+ }),
1123
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
1124
+ });
1125
+ export const zInviteCreateInput = z.object({
1126
+ email: z.email(),
1127
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1012
1128
  });
1013
1129
  export const zInvite = z.object({
1014
1130
  id: z.string().optional(),
1015
1131
  organization_id: z.uuid().optional(),
1016
1132
  date_created: z.iso.datetime(),
1017
1133
  email: z.email().optional(),
1018
- code: z.string().optional()
1134
+ code: z.string().optional(),
1135
+ role: z.enum(['Administrator', 'User']).optional().default('User')
1019
1136
  });
1020
1137
  export const zInvoice = z.object({
1021
1138
  id: z.string().optional(),
@@ -1055,21 +1172,28 @@ export const zMarketplaceListing = z.object({
1055
1172
  }).optional()
1056
1173
  });
1057
1174
  export const zOrganizationCreateInput = z.object({
1175
+ type: z.enum(['business', 'personal']),
1058
1176
  email: z.email(),
1059
- first_name: z.string(),
1060
- last_name: z.string(),
1177
+ first_name: z.string().min(1),
1178
+ last_name: z.string().min(1),
1061
1179
  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
1180
  password: z.string().min(8)
1063
1181
  });
1182
+ export const zOrganizationCreateOutput = z.object({
1183
+ id: z.string()
1184
+ });
1064
1185
  export const zOrganization = z.object({
1065
1186
  id: z.uuid(),
1066
1187
  name: z.string().min(2).max(120).optional(),
1188
+ type: z.enum(['business', 'personal']),
1067
1189
  date_created: z.iso.datetime(),
1068
1190
  quota: z.object({
1069
1191
  basic_clusters_max: z.int().gte(0),
1070
1192
  basic_clusters_available: z.int(),
1071
1193
  pro_clusters_max: z.int().gte(0),
1072
1194
  pro_clusters_available: z.int(),
1195
+ enterprise_clusters_max: z.int().gte(0),
1196
+ enterprise_clusters_available: z.int(),
1073
1197
  fleets_max: z.int().gte(0),
1074
1198
  cluster_tiers: z.array(z.string()).min(0),
1075
1199
  regions: z.array(z.string()).min(1),
@@ -1083,32 +1207,36 @@ export const zOrganization = z.object({
1083
1207
  'active',
1084
1208
  'closed',
1085
1209
  'suspended'
1210
+ ]),
1211
+ verification: z.enum([
1212
+ 'none',
1213
+ 'submitted',
1214
+ 'verified'
1086
1215
  ])
1087
1216
  });
1088
1217
  export const zPaymentMethod = z.object({
1089
- id: z.uuid(),
1090
- setup: z.boolean(),
1091
- type: z.enum(['card']),
1218
+ id: z.string(),
1219
+ type: z.enum([
1220
+ 'card',
1221
+ 'sepa_debit',
1222
+ 'bank_transfer'
1223
+ ]),
1092
1224
  last4: z.string(),
1093
1225
  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
- ])
1226
+ exp_year: z.int(),
1227
+ brand: z.string(),
1228
+ iban: z.string(),
1229
+ bic: z.string(),
1230
+ account_holder_name: z.string(),
1231
+ is_default: z.boolean()
1106
1232
  });
1107
1233
  export const zPlatformQuota = z.object({
1108
1234
  basic_clusters_max: z.int().gte(0),
1109
1235
  basic_clusters_available: z.int(),
1110
1236
  pro_clusters_max: z.int().gte(0),
1111
1237
  pro_clusters_available: z.int(),
1238
+ enterprise_clusters_max: z.int().gte(0),
1239
+ enterprise_clusters_available: z.int(),
1112
1240
  fleets_max: z.int().gte(0),
1113
1241
  cluster_tiers: z.array(z.string()).min(0),
1114
1242
  regions: z.array(z.string()).min(1),
@@ -1179,39 +1307,6 @@ export const zTicketCreateInput = z.object({
1179
1307
  body: z.string().min(1).max(50000).regex(/\S/),
1180
1308
  properties: z.record(z.string(), z.unknown()).optional()
1181
1309
  });
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
- }))
1214
- });
1215
1310
  export const zTicketMessageInput = z.object({
1216
1311
  body: z.string().min(1).max(50000).regex(/\S/)
1217
1312
  });
@@ -1277,26 +1372,58 @@ export const zTokenUpdateInput = z.object({
1277
1372
  });
1278
1373
  export const zUsageFacets = z.object({
1279
1374
  cluster_id: z.array(z.string()).optional(),
1280
- product: z.array(z.string()).optional()
1375
+ product: z.array(z.enum([
1376
+ 'cfke_controlplane_basic',
1377
+ 'cfke_controlplane_pro',
1378
+ 'cfke_controlplane_enterprise',
1379
+ 'cfke_connected_nodes_basic',
1380
+ 'cfke_connected_nodes_pro',
1381
+ 'cfke_connected_nodes_enterprise',
1382
+ 'cfcr_storage'
1383
+ ])).optional()
1281
1384
  });
1282
1385
  export const zUsageResponse = z.object({
1283
1386
  data: z.array(z.object({
1284
1387
  hour: z.string(),
1285
1388
  cluster_id: z.string(),
1286
- product: z.string(),
1389
+ product: z.enum([
1390
+ 'cfke_controlplane_basic',
1391
+ 'cfke_controlplane_pro',
1392
+ 'cfke_controlplane_enterprise',
1393
+ 'cfke_connected_nodes_basic',
1394
+ 'cfke_connected_nodes_pro',
1395
+ 'cfke_connected_nodes_enterprise',
1396
+ 'cfcr_storage'
1397
+ ]),
1287
1398
  value: z.number(),
1288
1399
  price: z.number(),
1289
1400
  total: z.number()
1290
1401
  })),
1291
1402
  facets: z.object({
1292
1403
  cluster_id: z.array(z.string()).optional(),
1293
- product: z.array(z.string()).optional()
1404
+ product: z.array(z.enum([
1405
+ 'cfke_controlplane_basic',
1406
+ 'cfke_controlplane_pro',
1407
+ 'cfke_controlplane_enterprise',
1408
+ 'cfke_connected_nodes_basic',
1409
+ 'cfke_connected_nodes_pro',
1410
+ 'cfke_connected_nodes_enterprise',
1411
+ 'cfcr_storage'
1412
+ ])).optional()
1294
1413
  })
1295
1414
  });
1296
1415
  export const zUsage = z.object({
1297
1416
  hour: z.string(),
1298
1417
  cluster_id: z.string(),
1299
- product: z.string(),
1418
+ product: z.enum([
1419
+ 'cfke_controlplane_basic',
1420
+ 'cfke_controlplane_pro',
1421
+ 'cfke_controlplane_enterprise',
1422
+ 'cfke_connected_nodes_basic',
1423
+ 'cfke_connected_nodes_pro',
1424
+ 'cfke_connected_nodes_enterprise',
1425
+ 'cfcr_storage'
1426
+ ]),
1300
1427
  value: z.number(),
1301
1428
  price: z.number(),
1302
1429
  total: z.number()
@@ -1306,9 +1433,7 @@ export const zUserCreateInput = z.object({
1306
1433
  first_name: z.string().min(1).max(50),
1307
1434
  last_name: z.string().min(1).max(50),
1308
1435
  code: z.string(),
1309
- password: z.string().min(8),
1310
- status: z.enum(['active', 'inactive']).optional(),
1311
- role: z.enum(['Administrator', 'User']).optional()
1436
+ password: z.string().min(8)
1312
1437
  });
1313
1438
  export const zUser = z.object({
1314
1439
  email: z.email(),
@@ -1326,202 +1451,171 @@ export const zUserUpdateInput = z.object({
1326
1451
  role: z.enum(['Administrator', 'User']).optional(),
1327
1452
  status: z.enum(['active', 'inactive']).optional()
1328
1453
  });
1329
- export const zGetUsageQuery = z.object({
1330
- granularity: z.enum([
1331
- 'hourly',
1332
- 'daily',
1333
- 'monthly'
1334
- ]).optional().default('daily')
1454
+ export const zListUserOrganizationsPath = z.object({
1455
+ email: z.string()
1335
1456
  });
1336
1457
  /**
1337
- * Usage data with facets for filtering
1458
+ * An array of organizations the user belongs to.
1338
1459
  */
1339
- export const zGetUsageResponse = zUsageResponse;
1460
+ export const zListUserOrganizationsResponse = z.array(z.object({
1461
+ realm: z.string().optional(),
1462
+ displayName: z.string().optional()
1463
+ }));
1340
1464
  /**
1341
- * Redacted payment card information.
1465
+ * An array of users
1342
1466
  */
1343
- export const zGetPaymentMethodResponse = zPaymentMethod;
1467
+ export const zListUsersResponse = z.array(zUser);
1468
+ export const zCreateUserBody = zUserCreateInput;
1344
1469
  /**
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
- *
1470
+ * Successfully created. Returns created user details.
1347
1471
  */
1348
- export const zGetPaymentMethodSecretResponse = z.object({
1349
- id: z.string().optional()
1472
+ export const zCreateUserResponse = zUser;
1473
+ export const zDeleteUserPath = z.object({
1474
+ user_id: z.string()
1350
1475
  });
1351
1476
  /**
1352
- * An array of usage records.
1477
+ * User profile information
1353
1478
  */
1354
- export const zListInvoicesResponse = z.array(zInvoice);
1479
+ export const zDeleteUserResponse = zUser;
1480
+ export const zGetUserPath = z.object({
1481
+ user_id: z.string()
1482
+ });
1355
1483
  /**
1356
- * Returns a single object containing organization contact and billing address details.
1484
+ * User profile information
1357
1485
  */
1358
- export const zGetContactResponse = zBillingContact;
1359
- export const zUpdateContactBody = zBillingContact;
1486
+ export const zGetUserResponse = zUser;
1487
+ export const zUpdateUserBody = zUserUpdateInput;
1488
+ export const zUpdateUserPath = z.object({
1489
+ user_id: z.string()
1490
+ });
1360
1491
  /**
1361
- * Successfully updated. Returns updated organization details.
1492
+ * Successfully created. Returns created user details.
1362
1493
  */
1363
- export const zUpdateContactResponse = zBillingContact;
1494
+ export const zUpdateUserResponse = zUser;
1364
1495
  /**
1365
- * An array of the applied promotional credits records.
1496
+ * Returns a list of access token details with masked secrets.
1366
1497
  */
1367
- export const zGetCreditsResponse = z.array(zBillingCredits);
1368
- export const zRedeemCreditsBody = z.object({
1369
- code: z.string().optional()
1370
- });
1371
- export const zListChartsPath = z.object({
1372
- cluster_id: z.string()
1373
- });
1498
+ export const zListTokensResponse = z.array(zToken);
1499
+ export const zCreateTokenBody = zTokenCreateInput;
1374
1500
  /**
1375
- * An array of charts
1501
+ * Successfully created. Returns created token details with unmasked/raw secret.
1376
1502
  */
1377
- export const zListChartsResponse = z.array(zChart);
1378
- export const zCreateChartBody = zChartCreateInput;
1379
- export const zCreateChartPath = z.object({
1380
- cluster_id: z.string()
1503
+ export const zCreateTokenResponse = zToken;
1504
+ export const zDeleteTokenPath = z.object({
1505
+ token_id: z.string()
1381
1506
  });
1382
- /**
1383
- * Successfully created. Returns created Chart ID.
1384
- */
1385
- export const zCreateChartResponse = z.string();
1386
- export const zDeleteChartPath = z.object({
1387
- cluster_id: z.string(),
1388
- chart_name: z.string()
1507
+ export const zGetTokenPath = z.object({
1508
+ token_id: z.string()
1389
1509
  });
1390
1510
  /**
1391
- * Successfully deleted.
1511
+ * Returns access token details with masked secret.
1392
1512
  */
1393
- export const zDeleteChartResponse = z.string();
1394
- export const zGetChartPath = z.object({
1395
- cluster_id: z.string(),
1396
- chart_name: z.string()
1513
+ export const zGetTokenResponse = zToken;
1514
+ export const zUpdateTokenBody = zTokenUpdateInput;
1515
+ export const zUpdateTokenPath = z.object({
1516
+ token_id: z.string()
1397
1517
  });
1398
1518
  /**
1399
- * Returns a single object containing chart details.
1519
+ * Successfully updated. Returns updated token details with masked secret.
1400
1520
  */
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()
1521
+ export const zUpdateTokenResponse = zToken;
1522
+ export const zRegenerateTokenPath = z.object({
1523
+ token_id: z.string()
1406
1524
  });
1407
1525
  /**
1408
- * Successfully updated.
1526
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1409
1527
  */
1410
- export const zUpdateChartResponse = z.string();
1411
- export const zListFleetsPath = z.object({
1412
- cluster_id: z.string()
1413
- });
1528
+ export const zRegenerateTokenResponse = zToken;
1414
1529
  /**
1415
- * An array of fleets
1530
+ * An array of tickets for the organization, newest first.
1416
1531
  */
1417
- export const zListFleetsResponse = z.array(zFleet);
1418
- export const zCreateFleetBody = zFleetCreateInput;
1419
- export const zCreateFleetPath = z.object({
1420
- cluster_id: z.string()
1532
+ export const zListTicketsResponse = z.array(zTicket);
1533
+ export const zCreateTicketBody = z.object({
1534
+ payload: z.string().optional(),
1535
+ attachments: z.array(z.string()).optional()
1421
1536
  });
1422
1537
  /**
1423
- * Successfully created. Returns created Fleet ID.
1538
+ * Ticket created.
1424
1539
  */
1425
- export const zCreateFleetResponse = z.string();
1426
- export const zDeleteFleetPath = z.object({
1427
- cluster_id: z.string(),
1428
- fleet_name: z.string()
1540
+ export const zCreateTicketResponse = zTicket;
1541
+ export const zCloseTicketPath = z.object({
1542
+ ticket_id: z.string()
1429
1543
  });
1430
1544
  /**
1431
- * Successfully deleted.
1545
+ * Ticket closed.
1432
1546
  */
1433
- export const zDeleteFleetResponse = z.string();
1434
- export const zGetFleetPath = z.object({
1435
- cluster_id: z.string(),
1436
- fleet_name: z.string()
1547
+ export const zCloseTicketResponse = zTicket;
1548
+ export const zGetTicketPath = z.object({
1549
+ ticket_id: z.string()
1437
1550
  });
1438
1551
  /**
1439
- * Returns a single object containing fleet details.
1552
+ * Ticket with messages (internal notes excluded).
1440
1553
  */
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()
1554
+ export const zGetTicketResponse = zTicket;
1555
+ export const zReplyTicketBody = z.object({
1556
+ payload: z.string().optional(),
1557
+ attachments: z.array(z.string()).optional()
1558
+ });
1559
+ export const zReplyTicketPath = z.object({
1560
+ ticket_id: z.string()
1446
1561
  });
1447
1562
  /**
1448
- * Successfully updated.
1563
+ * Reply appended.
1449
1564
  */
1450
- export const zUpdateFleetResponse = z.string();
1451
- export const zQueryClusterPath = z.object({
1452
- cluster_id: z.string()
1565
+ export const zReplyTicketResponse = zTicketMessage;
1566
+ export const zGetTicketAttachmentPath = z.object({
1567
+ ticket_id: z.string(),
1568
+ attachment_id: z.string()
1453
1569
  });
1454
1570
  /**
1455
- * An array of clusters
1571
+ * Attachment binary stream.
1456
1572
  */
1457
- export const zListClustersResponse = z.array(zCluster);
1458
- export const zCreateClusterBody = zClusterCreateInput;
1573
+ export const zGetTicketAttachmentResponse = z.string();
1459
1574
  /**
1460
- * Successfully created. Returns created Cluster ID.
1575
+ * List of repositories
1461
1576
  */
1462
- export const zCreateClusterResponse = z.string();
1463
- export const zDeleteClusterPath = z.object({
1464
- cluster_id: z.string()
1577
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1578
+ export const zListTagsPath = z.object({
1579
+ region: z.string(),
1580
+ repository: z.string()
1465
1581
  });
1466
1582
  /**
1467
- * Successfully deleted.
1583
+ * Repository with tags
1468
1584
  */
1469
- export const zDeleteClusterResponse = z.string();
1470
- export const zGetClusterPath = z.object({
1471
- cluster_id: z.string()
1585
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1586
+ export const zDeleteTagPath = z.object({
1587
+ region: z.string(),
1588
+ repository: z.string(),
1589
+ tag: z.string()
1590
+ });
1591
+ export const zGetTagPath = z.object({
1592
+ region: z.string(),
1593
+ repository: z.string(),
1594
+ tag: z.string()
1472
1595
  });
1473
1596
  /**
1474
- * Returns a single object containing cluster details.
1597
+ * Tag details
1475
1598
  */
1476
- export const zGetClusterResponse = zCluster;
1477
- export const zUpdateClusterBody = zClusterUpdateInput;
1478
- export const zUpdateClusterPath = z.object({
1479
- cluster_id: z.string()
1480
- });
1599
+ export const zGetTagResponse = zRegistryTag;
1481
1600
  /**
1482
- * Successfully updated. Returns updated cluster details.
1601
+ * Returns a single object containing organization details.
1483
1602
  */
1484
- export const zUpdateClusterResponse = zCluster;
1485
- export const zGetJoinInformationPath = z.object({
1486
- cluster_id: z.string()
1487
- });
1488
- /**
1489
- * An object of cluster join information
1490
- */
1491
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1492
- /**
1493
- * An array of invites
1494
- */
1495
- export const zListInvitesResponse = z.array(zInvite);
1496
- export const zCreateInviteBody = z.object({
1497
- email: z.string().optional()
1498
- });
1499
- /**
1500
- * Successfully created. Returns created invite details.
1501
- */
1502
- export const zCreateInviteResponse = zInvite;
1503
- export const zGetInvitePath = z.object({
1504
- code: z.string()
1505
- });
1603
+ export const zGetOrganizationResponse = zOrganization;
1604
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1506
1605
  /**
1507
- * Returns a single object containing invite details.
1606
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1607
+ *
1508
1608
  */
1509
- export const zGetInviteResponse = zInvite;
1510
- export const zDeleteInvitePath = z.object({
1511
- email: z.string()
1512
- });
1609
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1513
1610
  /**
1514
- * An array of chart listings in the marketplace.
1611
+ * Returns the current consent status.
1515
1612
  */
1516
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1517
- export const zGetMarketplaceChartFilesPath = z.object({
1518
- chart_name: z.string(),
1519
- version_channel: z.string()
1520
- });
1613
+ export const zGetBasicPriceConsentResponse = zBasicPriceConsent;
1614
+ export const zSetBasicPriceConsentBody = zBasicPriceConsentInput;
1521
1615
  /**
1522
- * Returns an object containing the chart files for the latest matching version.
1616
+ * Decision recorded. Returns the updated consent status.
1523
1617
  */
1524
- export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1618
+ export const zSetBasicPriceConsentResponse = zBasicPriceConsent;
1525
1619
  /**
1526
1620
  * JSON-RPC 2.0 request payload
1527
1621
  */
@@ -1550,154 +1644,214 @@ export const zPostMcpResponse = z.object({
1550
1644
  }).optional()
1551
1645
  });
1552
1646
  /**
1553
- * Returns a single object containing organization details.
1647
+ * An array of chart listings in the marketplace.
1554
1648
  */
1555
- export const zGetOrganizationResponse = zOrganization;
1556
- export const zCreateOrganizationBody = zOrganizationCreateInput;
1649
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1650
+ export const zGetMarketplaceChartFilesPath = z.object({
1651
+ chart_name: z.string(),
1652
+ version_channel: z.string()
1653
+ });
1557
1654
  /**
1558
- * List of repositories
1655
+ * Returns an object containing the chart files for the latest matching version.
1559
1656
  */
1560
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
1561
- export const zListTagsPath = z.object({
1562
- region: z.string(),
1563
- repository: z.string()
1657
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1658
+ /**
1659
+ * An array of invites
1660
+ */
1661
+ export const zListInvitesResponse = z.array(zInvite);
1662
+ export const zCreateInviteBody = zInviteCreateInput;
1663
+ /**
1664
+ * Successfully created. Returns created invite details.
1665
+ */
1666
+ export const zCreateInviteResponse = zInvite;
1667
+ export const zGetInvitePath = z.object({
1668
+ code: z.string()
1564
1669
  });
1565
1670
  /**
1566
- * Repository with tags
1671
+ * The invitation code is valid. Returns the invited email and organization.
1567
1672
  */
1568
- export const zListTagsResponse = zRegistryRepositoryWithTags;
1569
- export const zDeleteTagPath = z.object({
1570
- region: z.string(),
1571
- repository: z.string(),
1572
- tag: z.string()
1673
+ export const zGetInviteResponse = z.object({
1674
+ email: z.email().optional(),
1675
+ organization_id: z.string().optional()
1573
1676
  });
1574
- export const zGetTagPath = z.object({
1575
- region: z.string(),
1576
- repository: z.string(),
1577
- tag: z.string()
1677
+ export const zDeleteInvitePath = z.object({
1678
+ email: z.email()
1679
+ });
1680
+ export const zQueryClusterPath = z.object({
1681
+ cluster_id: z.string()
1682
+ });
1683
+ export const zListFleetsPath = z.object({
1684
+ cluster_id: z.string()
1578
1685
  });
1579
1686
  /**
1580
- * Tag details
1687
+ * An array of fleets
1581
1688
  */
1582
- export const zGetTagResponse = zRegistryTag;
1689
+ export const zListFleetsResponse = z.array(zFleet);
1690
+ export const zCreateFleetBody = zFleetCreateInput;
1691
+ export const zCreateFleetPath = z.object({
1692
+ cluster_id: z.string()
1693
+ });
1583
1694
  /**
1584
- * Tickets for the organization.
1695
+ * Successfully created. Returns created Fleet ID.
1585
1696
  */
1586
- export const zListTicketsResponse = zTicketListResponse;
1587
- export const zCreateTicketBody = z.object({
1588
- payload: z.string().optional(),
1589
- attachments: z.array(z.string()).optional()
1697
+ export const zCreateFleetResponse = z.string();
1698
+ export const zDeleteFleetPath = z.object({
1699
+ cluster_id: z.string(),
1700
+ fleet_name: z.string()
1590
1701
  });
1591
1702
  /**
1592
- * Ticket created.
1703
+ * Successfully deleted.
1593
1704
  */
1594
- export const zCreateTicketResponse = zTicket;
1595
- export const zCloseTicketPath = z.object({
1596
- ticket_id: z.string()
1705
+ export const zDeleteFleetResponse = z.string();
1706
+ export const zGetFleetPath = z.object({
1707
+ cluster_id: z.string(),
1708
+ fleet_name: z.string()
1597
1709
  });
1598
1710
  /**
1599
- * Ticket closed.
1711
+ * Returns a single object containing fleet details.
1600
1712
  */
1601
- export const zCloseTicketResponse = zTicket;
1602
- export const zGetTicketPath = z.object({
1603
- ticket_id: z.string()
1713
+ export const zGetFleetResponse = zFleet;
1714
+ export const zUpdateFleetBody = zFleetUpdateInput;
1715
+ export const zUpdateFleetPath = z.object({
1716
+ cluster_id: z.string(),
1717
+ fleet_name: z.string()
1604
1718
  });
1605
1719
  /**
1606
- * Ticket with messages (internal notes excluded).
1720
+ * Successfully updated.
1607
1721
  */
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()
1722
+ export const zUpdateFleetResponse = z.string();
1723
+ export const zListChartsPath = z.object({
1724
+ cluster_id: z.string()
1615
1725
  });
1616
1726
  /**
1617
- * Reply appended.
1727
+ * An array of charts
1618
1728
  */
1619
- export const zReplyTicketResponse = zTicketMessage;
1620
- export const zGetTicketAttachmentPath = z.object({
1621
- ticket_id: z.string(),
1622
- attachment_id: z.string()
1729
+ export const zListChartsResponse = z.array(zChart);
1730
+ export const zCreateChartBody = zChartCreateInput;
1731
+ export const zCreateChartPath = z.object({
1732
+ cluster_id: z.string()
1623
1733
  });
1624
1734
  /**
1625
- * Attachment binary stream.
1735
+ * Successfully created. Returns created Chart ID.
1626
1736
  */
1627
- export const zGetTicketAttachmentResponse = z.string();
1737
+ export const zCreateChartResponse = z.string();
1738
+ export const zDeleteChartPath = z.object({
1739
+ cluster_id: z.string(),
1740
+ chart_name: z.string()
1741
+ });
1628
1742
  /**
1629
- * Returns a list of access token details with masked secrets.
1743
+ * Successfully deleted.
1630
1744
  */
1631
- export const zListTokensResponse = z.array(zToken);
1632
- export const zCreateTokenBody = zTokenCreateInput;
1745
+ export const zDeleteChartResponse = z.string();
1746
+ export const zGetChartPath = z.object({
1747
+ cluster_id: z.string(),
1748
+ chart_name: z.string()
1749
+ });
1633
1750
  /**
1634
- * Successfully created. Returns created token details with unmasked/raw secret.
1751
+ * Returns a single object containing chart details.
1635
1752
  */
1636
- export const zCreateTokenResponse = zToken;
1637
- export const zDeleteTokenPath = z.object({
1638
- token_id: z.string()
1753
+ export const zGetChartResponse = zChart;
1754
+ export const zUpdateChartBody = zChartUpdateInput;
1755
+ export const zUpdateChartPath = z.object({
1756
+ cluster_id: z.string(),
1757
+ chart_name: z.string()
1639
1758
  });
1640
- export const zGetTokenPath = z.object({
1641
- token_id: z.string()
1759
+ /**
1760
+ * Successfully updated.
1761
+ */
1762
+ export const zUpdateChartResponse = z.string();
1763
+ /**
1764
+ * An array of clusters
1765
+ */
1766
+ export const zListClustersResponse = z.array(zCluster);
1767
+ export const zCreateClusterBody = zClusterCreateInput;
1768
+ /**
1769
+ * Successfully created. Returns created Cluster ID.
1770
+ */
1771
+ export const zCreateClusterResponse = z.string();
1772
+ export const zDeleteClusterPath = z.object({
1773
+ cluster_id: z.string()
1642
1774
  });
1643
1775
  /**
1644
- * Returns access token details with masked secret.
1776
+ * Successfully deleted. The cluster has been torn down.
1645
1777
  */
1646
- export const zGetTokenResponse = zToken;
1647
- export const zUpdateTokenBody = zTokenUpdateInput;
1648
- export const zUpdateTokenPath = z.object({
1649
- token_id: z.string()
1778
+ export const zDeleteClusterResponse = z.string();
1779
+ export const zGetClusterPath = z.object({
1780
+ cluster_id: z.string()
1650
1781
  });
1651
1782
  /**
1652
- * Successfully updated. Returns updated token details with masked secret.
1783
+ * Returns a single object containing cluster details.
1653
1784
  */
1654
- export const zUpdateTokenResponse = zToken;
1655
- export const zRegenerateTokenPath = z.object({
1656
- token_id: z.string()
1785
+ export const zGetClusterResponse = zCluster;
1786
+ export const zUpdateClusterBody = zClusterUpdateInput;
1787
+ export const zUpdateClusterPath = z.object({
1788
+ cluster_id: z.string()
1657
1789
  });
1658
1790
  /**
1659
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1791
+ * Successfully updated. Returns updated cluster details.
1660
1792
  */
1661
- export const zRegenerateTokenResponse = zToken;
1662
- export const zListUserOrganizationsPath = z.object({
1663
- email: z.string()
1793
+ export const zUpdateClusterResponse = zCluster;
1794
+ export const zGetJoinInformationPath = z.object({
1795
+ cluster_id: z.string()
1664
1796
  });
1665
1797
  /**
1666
- * An array of organizations the user belongs to.
1798
+ * An object of cluster join information
1667
1799
  */
1668
- export const zListUserOrganizationsResponse = z.array(z.object({
1669
- realm: z.string().optional(),
1670
- displayName: z.string().optional()
1671
- }));
1800
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1801
+ export const zGetUsageQuery = z.object({
1802
+ granularity: z.enum([
1803
+ 'hourly',
1804
+ 'daily',
1805
+ 'monthly'
1806
+ ]).optional().default('daily')
1807
+ });
1672
1808
  /**
1673
- * An array of users
1809
+ * Usage data with facets for filtering
1674
1810
  */
1675
- export const zListUsersResponse = z.array(zUser);
1676
- export const zCreateUserBody = zUserCreateInput;
1811
+ export const zGetUsageResponse = zUsageResponse;
1677
1812
  /**
1678
- * Successfully created. Returns created user details.
1813
+ * 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.
1814
+ *
1679
1815
  */
1680
- export const zCreateUserResponse = zUser;
1681
- export const zDeleteUserPath = z.object({
1682
- user_id: z.string()
1816
+ export const zGetPaymentMethodSecretResponse = z.object({
1817
+ id: z.string().optional()
1683
1818
  });
1684
1819
  /**
1685
- * User profile information
1820
+ * An array of payment methods.
1686
1821
  */
1687
- export const zDeleteUserResponse = zUser;
1688
- export const zGetUserPath = z.object({
1689
- user_id: z.string()
1822
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1823
+ export const zSetDefaultPaymentMethodPath = z.object({
1824
+ paymentMethodId: z.string()
1690
1825
  });
1691
1826
  /**
1692
- * User profile information
1827
+ * Default payment method updated.
1693
1828
  */
1694
- export const zGetUserResponse = zUser;
1695
- export const zUpdateUserBody = zUserUpdateInput;
1696
- export const zUpdateUserPath = z.object({
1697
- user_id: z.string()
1829
+ export const zSetDefaultPaymentMethodResponse = z.void();
1830
+ export const zDeletePaymentMethodPath = z.object({
1831
+ paymentMethodId: z.string()
1698
1832
  });
1699
1833
  /**
1700
- * Successfully created. Returns created user details.
1834
+ * Payment method deleted.
1701
1835
  */
1702
- export const zUpdateUserResponse = zUser;
1836
+ export const zDeletePaymentMethodResponse = z.void();
1837
+ /**
1838
+ * An array of usage records.
1839
+ */
1840
+ export const zListInvoicesResponse = z.array(zInvoice);
1841
+ /**
1842
+ * Returns a single object containing organization contact and billing address details.
1843
+ */
1844
+ export const zGetContactResponse = zBillingContact;
1845
+ export const zUpdateContactBody = zBillingContact;
1846
+ /**
1847
+ * Successfully updated. Returns updated organization details.
1848
+ */
1849
+ export const zUpdateContactResponse = zBillingContact;
1850
+ /**
1851
+ * An array of the applied promotional credits records.
1852
+ */
1853
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1854
+ export const zRedeemCreditsBody = z.object({
1855
+ code: z.string().optional()
1856
+ });
1703
1857
  //# sourceMappingURL=zod.gen.js.map