@cloudfleet/sdk 0.0.1-263dfe6 → 0.0.1-279de9d

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