@cloudfleet/sdk 0.0.1-23a36bd → 0.0.1-253c998

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 (87) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1048 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1040 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts +3 -0
  6. package/dist/client/client.gen.d.ts.map +1 -0
  7. package/dist/client/client.gen.js +220 -0
  8. package/dist/client/client.gen.js.map +1 -0
  9. package/dist/client/index.d.ts +9 -0
  10. package/dist/client/index.d.ts.map +1 -0
  11. package/dist/client/index.js +7 -0
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/client/types.gen.d.ts +121 -0
  14. package/dist/client/types.gen.d.ts.map +1 -0
  15. package/dist/client/types.gen.js +3 -0
  16. package/dist/client/types.gen.js.map +1 -0
  17. package/dist/client/utils.gen.d.ts +38 -0
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/utils.gen.js +229 -0
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +4 -4
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +2 -4
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/auth.gen.d.ts +19 -0
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/auth.gen.js +15 -0
  28. package/dist/core/auth.gen.js.map +1 -0
  29. package/dist/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/core/bodySerializer.gen.js +58 -0
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/params.gen.d.ts +44 -0
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/params.gen.js +101 -0
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/pathSerializer.gen.d.ts +34 -0
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/pathSerializer.gen.js +107 -0
  40. package/dist/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/core/serverSentEvents.gen.js +133 -0
  48. package/dist/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/core/types.gen.d.ts +79 -0
  50. package/dist/core/types.gen.d.ts.map +1 -0
  51. package/dist/core/types.gen.js +3 -0
  52. package/dist/core/types.gen.js.map +1 -0
  53. package/dist/core/utils.gen.d.ts +20 -0
  54. package/dist/core/utils.gen.d.ts.map +1 -0
  55. package/dist/core/utils.gen.js +88 -0
  56. package/dist/core/utils.gen.js.map +1 -0
  57. package/dist/index.d.ts +2 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +2 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/schemas.gen.d.ts +841 -477
  62. package/dist/schemas.gen.d.ts.map +1 -1
  63. package/dist/schemas.gen.js +1349 -564
  64. package/dist/schemas.gen.js.map +1 -1
  65. package/dist/sdk.gen.d.ts +207 -65
  66. package/dist/sdk.gen.d.ts.map +1 -1
  67. package/dist/sdk.gen.js +274 -152
  68. package/dist/sdk.gen.js.map +1 -1
  69. package/dist/services/kubernetes/api.d.ts +196 -0
  70. package/dist/services/kubernetes/api.d.ts.map +1 -0
  71. package/dist/services/kubernetes/api.js +140 -0
  72. package/dist/services/kubernetes/api.js.map +1 -0
  73. package/dist/services/kubernetes/index.d.ts +44 -0
  74. package/dist/services/kubernetes/index.d.ts.map +1 -0
  75. package/dist/services/kubernetes/index.js +68 -0
  76. package/dist/services/kubernetes/index.js.map +1 -0
  77. package/dist/services/kubernetes/types.d.ts +1335 -0
  78. package/dist/services/kubernetes/types.d.ts.map +1 -0
  79. package/dist/services/kubernetes/types.js +2 -0
  80. package/dist/services/kubernetes/types.js.map +1 -0
  81. package/dist/types.gen.d.ts +917 -306
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +1679 -1901
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +676 -752
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +31 -5
package/dist/zod.gen.js CHANGED
@@ -1,5 +1,5 @@
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
4
  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
5
  address1: z.string().optional(),
@@ -9,31 +9,215 @@ export const zBillingContact = z.object({
9
9
  state: z.string().optional(),
10
10
  country: z.string().optional(),
11
11
  phone: z.string().optional(),
12
- email: z.string().email(),
13
- first_name: z.string(),
14
- last_name: z.string()
12
+ email: z.email(),
13
+ individual_name: z.string(),
14
+ tax_id: z.string().optional(),
15
+ tax_id_type: z.enum([
16
+ 'ad_nrt',
17
+ 'ae_trn',
18
+ 'al_tin',
19
+ 'am_tin',
20
+ 'ao_tin',
21
+ 'ar_cuit',
22
+ 'at_vat',
23
+ 'au_abn',
24
+ 'au_arn',
25
+ 'ba_tin',
26
+ 'bb_tin',
27
+ 'be_vat',
28
+ 'bg_uic',
29
+ 'bg_vat',
30
+ 'bh_vat',
31
+ 'bo_tin',
32
+ 'br_cnpj',
33
+ 'br_cpf',
34
+ 'bs_tin',
35
+ 'by_tin',
36
+ 'ca_bn',
37
+ 'ca_gst_hst',
38
+ 'ca_pst_bc',
39
+ 'ca_pst_mb',
40
+ 'ca_pst_sk',
41
+ 'ca_qst',
42
+ 'cd_nif',
43
+ 'ch_uid',
44
+ 'ch_vat',
45
+ 'cl_tin',
46
+ 'cn_tin',
47
+ 'co_nit',
48
+ 'cr_tin',
49
+ 'cy_vat',
50
+ 'cz_vat',
51
+ 'de_stn',
52
+ 'de_vat',
53
+ 'dk_vat',
54
+ 'do_rcn',
55
+ 'ec_ruc',
56
+ 'ee_vat',
57
+ 'eg_tin',
58
+ 'es_cif',
59
+ 'es_vat',
60
+ 'eu_oss_vat',
61
+ 'fi_vat',
62
+ 'fr_vat',
63
+ 'gb_vat',
64
+ 'ge_vat',
65
+ 'gn_nif',
66
+ 'gr_vat',
67
+ 'hk_br',
68
+ 'hr_oib',
69
+ 'hr_vat',
70
+ 'hu_tin',
71
+ 'hu_vat',
72
+ 'id_npwp',
73
+ 'ie_vat',
74
+ 'il_vat',
75
+ 'in_gst',
76
+ 'is_vat',
77
+ 'it_vat',
78
+ 'jp_cn',
79
+ 'jp_rn',
80
+ 'jp_trn',
81
+ 'ke_pin',
82
+ 'kh_tin',
83
+ 'kr_brn',
84
+ 'kz_bin',
85
+ 'li_uid',
86
+ 'li_vat',
87
+ 'lt_vat',
88
+ 'lu_vat',
89
+ 'lv_vat',
90
+ 'ma_vat',
91
+ 'md_vat',
92
+ 'me_pib',
93
+ 'mk_vat',
94
+ 'mr_nif',
95
+ 'mt_vat',
96
+ 'mx_rfc',
97
+ 'my_frp',
98
+ 'my_itn',
99
+ 'my_sst',
100
+ 'ng_tin',
101
+ 'nl_vat',
102
+ 'no_vat',
103
+ 'no_voec',
104
+ 'np_pan',
105
+ 'nz_gst',
106
+ 'om_vat',
107
+ 'pe_ruc',
108
+ 'ph_tin',
109
+ 'pl_vat',
110
+ 'pt_vat',
111
+ 'ro_tin',
112
+ 'ro_vat',
113
+ 'rs_pib',
114
+ 'ru_inn',
115
+ 'ru_kpp',
116
+ 'sa_vat',
117
+ 'se_vat',
118
+ 'sg_gst',
119
+ 'sg_uen',
120
+ 'si_tin',
121
+ 'si_vat',
122
+ 'sk_vat',
123
+ 'sn_ninea',
124
+ 'sr_fin',
125
+ 'sv_nit',
126
+ 'th_vat',
127
+ 'tj_tin',
128
+ 'tr_tin',
129
+ 'tw_vat',
130
+ 'tz_vat',
131
+ 'ua_vat',
132
+ 'ug_tin',
133
+ 'us_ein',
134
+ 'uy_ruc',
135
+ 'uz_tin',
136
+ 'uz_vat',
137
+ 've_rif',
138
+ 'vn_tin',
139
+ 'xi_vat',
140
+ 'za_vat',
141
+ 'zm_tin',
142
+ 'zw_tin',
143
+ ''
144
+ ]).optional()
145
+ });
146
+ export const zBillingCredits = z.object({
147
+ id: z.string().optional(),
148
+ type: z.enum(['credit', 'discount']),
149
+ date_start: z.iso.datetime(),
150
+ date_end: z.iso.datetime().optional(),
151
+ code: z.string(),
152
+ description: z.string().optional(),
153
+ value_total: z.number(),
154
+ value_remaining: z.number().optional()
155
+ });
156
+ export const zChartCreateInput = z.object({
157
+ values: z.string(),
158
+ 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-]+)*))?$/),
159
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
160
+ namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
161
+ chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
162
+ });
163
+ export const zChart = z.object({
164
+ values: z.string(),
165
+ 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-]+)*))?$/),
166
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
167
+ namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
+ 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
+ ]),
185
+ version_current: z.string(),
186
+ created_at: z.string(),
187
+ updated_at: z.string(),
188
+ ready: z.boolean()
189
+ });
190
+ export const zChartUpdateInput = z.object({
191
+ values: z.string(),
192
+ 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-]+)*))?$/)
15
193
  });
16
194
  export const zClusterCreateInput = z.object({
17
195
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
196
+ tier: z.enum(['basic', 'pro']),
18
197
  region: z.enum([
19
- 'staging',
20
- 'northamerica-central-1'
21
- ]).optional(),
22
- tier: z.enum([
23
- 'basic',
24
- 'pro'
25
- ]),
26
- 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')
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')
27
209
  });
28
210
  export const zClusterJoinInformation = z.object({
29
211
  certificate_authority: z.string(),
30
- endpoint: z.string().url(),
212
+ endpoint: z.url(),
213
+ cluster_dns: z.string(),
31
214
  auth_key: z.string(),
32
215
  bootstrap_token: z.string(),
33
216
  versions: z.object({
34
217
  kubernetes: z.string(),
35
218
  tailscale: z.string(),
36
- containerd: z.string()
219
+ containerd: z.string(),
220
+ nvidia_driver: z.string()
37
221
  }),
38
222
  third_party_api_access_config: z.object({
39
223
  metadata_url: z.string(),
@@ -43,18 +227,17 @@ export const zClusterJoinInformation = z.object({
43
227
  });
44
228
  export const zCluster = z.object({
45
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
+ tier: z.enum(['basic', 'pro']),
46
231
  region: z.enum([
47
- 'staging',
48
- 'northamerica-central-1'
49
- ]).optional(),
50
- tier: z.enum([
51
- 'basic',
52
- 'pro'
53
- ]),
54
- 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'),
55
- id: z.string().uuid(),
232
+ 'staging-1a',
233
+ 'northamerica-central-1',
234
+ 'europe-central-1a',
235
+ 'northamerica-central-1a'
236
+ ]).optional().default('staging-1a'),
237
+ id: z.uuid(),
56
238
  status: z.enum([
57
239
  'active',
240
+ 'disabled',
58
241
  'deleted',
59
242
  'creating',
60
243
  'deployed',
@@ -62,19 +245,19 @@ export const zCluster = z.object({
62
245
  'updating'
63
246
  ]),
64
247
  endpoint: z.union([
65
- z.string().url(),
66
- z.enum([
67
- ''
68
- ])
248
+ z.url(),
249
+ z.enum([''])
69
250
  ]).optional(),
70
251
  certificate_ca: z.string().optional(),
71
252
  version_current: z.string().optional(),
72
253
  created_at: z.string().optional(),
73
254
  updated_at: z.string().optional(),
74
- ready: z.boolean().optional()
255
+ ready: z.boolean().optional(),
256
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
75
257
  });
76
258
  export const zClusterUpdateInput = z.object({
77
259
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
260
+ tier: z.enum(['basic', 'pro']),
78
261
  version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
79
262
  });
80
263
  export const zFleetCreateInput = z.object({
@@ -85,25 +268,15 @@ export const zFleetCreateInput = z.object({
85
268
  enabled: z.boolean().optional().default(true),
86
269
  project: z.string()
87
270
  }).optional(),
88
- hetzner: z.union([
89
- z.object({
90
- enabled: z.boolean().optional().default(true),
91
- apiKey: z.string().optional()
92
- }),
93
- z.object({
94
- apiKey: z.string().optional(),
95
- enabled: z.boolean().optional().default(true)
96
- })
97
- ]).optional(),
271
+ hetzner: z.object({
272
+ enabled: z.boolean().optional().default(true),
273
+ apiKey: z.string()
274
+ }).optional(),
98
275
  aws: z.object({
99
276
  enabled: z.boolean().optional().default(true),
100
277
  controllerRoleArn: z.string()
101
278
  }).optional(),
102
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
103
- type: z.enum([
104
- 'managed',
105
- 'connected'
106
- ])
279
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
107
280
  });
108
281
  export const zFleet = z.object({
109
282
  limits: z.object({
@@ -113,25 +286,15 @@ export const zFleet = z.object({
113
286
  enabled: z.boolean().optional().default(true),
114
287
  project: z.string()
115
288
  }).optional(),
116
- hetzner: z.union([
117
- z.object({
118
- enabled: z.boolean().optional().default(true),
119
- apiKey: z.string().optional()
120
- }),
121
- z.object({
122
- apiKey: z.string().optional(),
123
- enabled: z.boolean().optional().default(true)
124
- })
125
- ]).optional(),
289
+ hetzner: z.object({
290
+ enabled: z.boolean().optional().default(true),
291
+ apiKey: z.string()
292
+ }).optional(),
126
293
  aws: z.object({
127
294
  enabled: z.boolean().optional().default(true),
128
295
  controllerRoleArn: z.string()
129
296
  }).optional(),
130
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
131
- type: z.enum([
132
- 'managed',
133
- 'connected'
134
- ])
297
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
135
298
  });
136
299
  export const zFleetUpdateInput = z.object({
137
300
  limits: z.object({
@@ -141,16 +304,10 @@ export const zFleetUpdateInput = z.object({
141
304
  enabled: z.boolean().optional().default(true),
142
305
  project: z.string()
143
306
  }).optional(),
144
- hetzner: z.union([
145
- z.object({
146
- enabled: z.boolean().optional().default(true),
147
- apiKey: z.string().optional()
148
- }),
149
- z.object({
150
- apiKey: z.string().optional(),
151
- enabled: z.boolean().optional().default(true)
152
- })
153
- ]).optional(),
307
+ hetzner: z.object({
308
+ enabled: z.boolean().optional().default(true),
309
+ apiKey: z.string()
310
+ }).optional(),
154
311
  aws: z.object({
155
312
  enabled: z.boolean().optional().default(true),
156
313
  controllerRoleArn: z.string()
@@ -158,619 +315,72 @@ export const zFleetUpdateInput = z.object({
158
315
  });
159
316
  export const zInvite = z.object({
160
317
  id: z.string().optional(),
161
- organization_id: z.string().uuid().optional(),
162
- date_created: z.string().datetime(),
163
- email: z.string().email().optional(),
318
+ organization_id: z.uuid().optional(),
319
+ date_created: z.iso.datetime(),
320
+ email: z.email().optional(),
164
321
  code: z.string().optional()
165
322
  });
166
323
  export const zInvoice = z.object({
167
- id: z.string().uuid().optional(),
168
- organizationId: z.string().uuid().optional(),
169
- status: z.enum([
170
- 'DRAFT',
171
- 'COMMITTED',
172
- 'VOID'
173
- ]).optional(),
174
- amount: z.number().optional(),
175
- currency: z.enum([
176
- 'AED',
177
- 'AFN',
178
- 'ALL',
179
- 'AMD',
180
- 'ANG',
181
- 'AOA',
182
- 'ARS',
183
- 'AUD',
184
- 'AWG',
185
- 'AZN',
186
- 'BAM',
187
- 'BBD',
188
- 'BDT',
189
- 'BGN',
190
- 'BHD',
191
- 'BIF',
192
- 'BMD',
193
- 'BND',
194
- 'BOB',
195
- 'BRL',
196
- 'BSD',
197
- 'BTN',
198
- 'BWP',
199
- 'BYR',
200
- 'BZD',
201
- 'CAD',
202
- 'CDF',
203
- 'CHF',
204
- 'CLP',
205
- 'CNY',
206
- 'COP',
207
- 'CRC',
208
- 'CUC',
209
- 'CUP',
210
- 'CVE',
211
- 'CZK',
212
- 'DJF',
213
- 'DKK',
214
- 'DOP',
215
- 'DZD',
216
- 'EGP',
217
- 'ERN',
218
- 'ETB',
219
- 'EUR',
220
- 'FJD',
221
- 'FKP',
222
- 'GBP',
223
- 'GEL',
224
- 'GGP',
225
- 'GHS',
226
- 'GIP',
227
- 'GMD',
228
- 'GNF',
229
- 'GTQ',
230
- 'GYD',
231
- 'HKD',
232
- 'HNL',
233
- 'HRK',
234
- 'HTG',
235
- 'HUF',
236
- 'IDR',
237
- 'ILS',
238
- 'IMP',
239
- 'INR',
240
- 'IQD',
241
- 'IRR',
242
- 'ISK',
243
- 'JEP',
244
- 'JMD',
245
- 'JOD',
246
- 'JPY',
247
- 'KES',
248
- 'KGS',
249
- 'KHR',
250
- 'KMF',
251
- 'KPW',
252
- 'KRW',
253
- 'KWD',
254
- 'KYD',
255
- 'KZT',
256
- 'LAK',
257
- 'LBP',
258
- 'LKR',
259
- 'LRD',
260
- 'LSL',
261
- 'LTL',
262
- 'LVL',
263
- 'LYD',
264
- 'MAD',
265
- 'MDL',
266
- 'MGA',
267
- 'MKD',
268
- 'MMK',
269
- 'MNT',
270
- 'MOP',
271
- 'MRO',
272
- 'MUR',
273
- 'MVR',
274
- 'MWK',
275
- 'MXN',
276
- 'MYR',
277
- 'MZN',
278
- 'NAD',
279
- 'NGN',
280
- 'NIO',
281
- 'NOK',
282
- 'NPR',
283
- 'NZD',
284
- 'OMR',
285
- 'PAB',
286
- 'PEN',
287
- 'PGK',
288
- 'PHP',
289
- 'PKR',
290
- 'PLN',
291
- 'PYG',
292
- 'QAR',
293
- 'RON',
294
- 'RSD',
295
- 'RUB',
296
- 'RWF',
297
- 'SAR',
298
- 'SBD',
299
- 'SCR',
300
- 'SDG',
301
- 'SEK',
302
- 'SGD',
303
- 'SHP',
304
- 'SLL',
305
- 'SOS',
306
- 'SPL',
307
- 'SRD',
308
- 'STD',
309
- 'SVC',
310
- 'SYP',
311
- 'SZL',
312
- 'THB',
313
- 'TJS',
314
- 'TMT',
315
- 'TND',
316
- 'TOP',
317
- 'TRY',
318
- 'TTD',
319
- 'TVD',
320
- 'TWD',
321
- 'TZS',
322
- 'UAH',
323
- 'UGX',
324
- 'USD',
325
- 'UYU',
326
- 'UZS',
327
- 'VEF',
328
- 'VND',
329
- 'VUV',
330
- 'WST',
331
- 'XAF',
332
- 'XCD',
333
- 'XDR',
334
- 'XOF',
335
- 'XPF',
336
- 'YER',
337
- 'ZAR',
338
- 'ZMW',
339
- 'ZWD',
340
- 'BTC'
341
- ]).optional(),
342
- creditAdj: z.number().optional(),
343
- refundAdj: z.number().optional(),
344
- invoiceDate: z.string().optional(),
345
- targetDate: z.string().optional(),
346
- invoiceNumber: z.string().optional(),
347
- balance: z.number().optional(),
348
- bundleKeys: z.string().optional(),
349
- credits: z.array(z.object({
350
- id: z.string().uuid().optional(),
351
- linkedInvoiceItemId: z.string().uuid().optional(),
352
- productName: z.string().optional(),
353
- planName: z.string().optional(),
354
- phaseName: z.string().optional(),
355
- usageName: z.string().optional(),
356
- prettyProductName: z.string().optional(),
357
- prettyPlanName: z.string().optional(),
358
- prettyPhaseName: z.string().optional(),
359
- prettyUsageName: z.string().optional(),
360
- itemType: z.enum([
361
- 'EXTERNAL_CHARGE',
362
- 'FIXED',
363
- 'RECURRING',
364
- 'REPAIR_ADJ',
365
- 'CBA_ADJ',
366
- 'CREDIT_ADJ',
367
- 'ITEM_ADJ',
368
- 'USAGE',
369
- 'TAX',
370
- 'PARENT_SUMMARY'
371
- ]).optional(),
372
- description: z.string().optional(),
373
- startDate: z.string().optional(),
374
- endDate: z.string().optional(),
375
- amount: z.number().optional(),
376
- rate: z.number().optional(),
377
- currency: z.enum([
378
- 'AED',
379
- 'AFN',
380
- 'ALL',
381
- 'AMD',
382
- 'ANG',
383
- 'AOA',
384
- 'ARS',
385
- 'AUD',
386
- 'AWG',
387
- 'AZN',
388
- 'BAM',
389
- 'BBD',
390
- 'BDT',
391
- 'BGN',
392
- 'BHD',
393
- 'BIF',
394
- 'BMD',
395
- 'BND',
396
- 'BOB',
397
- 'BRL',
398
- 'BSD',
399
- 'BTN',
400
- 'BWP',
401
- 'BYR',
402
- 'BZD',
403
- 'CAD',
404
- 'CDF',
405
- 'CHF',
406
- 'CLP',
407
- 'CNY',
408
- 'COP',
409
- 'CRC',
410
- 'CUC',
411
- 'CUP',
412
- 'CVE',
413
- 'CZK',
414
- 'DJF',
415
- 'DKK',
416
- 'DOP',
417
- 'DZD',
418
- 'EGP',
419
- 'ERN',
420
- 'ETB',
421
- 'EUR',
422
- 'FJD',
423
- 'FKP',
424
- 'GBP',
425
- 'GEL',
426
- 'GGP',
427
- 'GHS',
428
- 'GIP',
429
- 'GMD',
430
- 'GNF',
431
- 'GTQ',
432
- 'GYD',
433
- 'HKD',
434
- 'HNL',
435
- 'HRK',
436
- 'HTG',
437
- 'HUF',
438
- 'IDR',
439
- 'ILS',
440
- 'IMP',
441
- 'INR',
442
- 'IQD',
443
- 'IRR',
444
- 'ISK',
445
- 'JEP',
446
- 'JMD',
447
- 'JOD',
448
- 'JPY',
449
- 'KES',
450
- 'KGS',
451
- 'KHR',
452
- 'KMF',
453
- 'KPW',
454
- 'KRW',
455
- 'KWD',
456
- 'KYD',
457
- 'KZT',
458
- 'LAK',
459
- 'LBP',
460
- 'LKR',
461
- 'LRD',
462
- 'LSL',
463
- 'LTL',
464
- 'LVL',
465
- 'LYD',
466
- 'MAD',
467
- 'MDL',
468
- 'MGA',
469
- 'MKD',
470
- 'MMK',
471
- 'MNT',
472
- 'MOP',
473
- 'MRO',
474
- 'MUR',
475
- 'MVR',
476
- 'MWK',
477
- 'MXN',
478
- 'MYR',
479
- 'MZN',
480
- 'NAD',
481
- 'NGN',
482
- 'NIO',
483
- 'NOK',
484
- 'NPR',
485
- 'NZD',
486
- 'OMR',
487
- 'PAB',
488
- 'PEN',
489
- 'PGK',
490
- 'PHP',
491
- 'PKR',
492
- 'PLN',
493
- 'PYG',
494
- 'QAR',
495
- 'RON',
496
- 'RSD',
497
- 'RUB',
498
- 'RWF',
499
- 'SAR',
500
- 'SBD',
501
- 'SCR',
502
- 'SDG',
503
- 'SEK',
504
- 'SGD',
505
- 'SHP',
506
- 'SLL',
507
- 'SOS',
508
- 'SPL',
509
- 'SRD',
510
- 'STD',
511
- 'SVC',
512
- 'SYP',
513
- 'SZL',
514
- 'THB',
515
- 'TJS',
516
- 'TMT',
517
- 'TND',
518
- 'TOP',
519
- 'TRY',
520
- 'TTD',
521
- 'TVD',
522
- 'TWD',
523
- 'TZS',
524
- 'UAH',
525
- 'UGX',
526
- 'USD',
527
- 'UYU',
528
- 'UZS',
529
- 'VEF',
530
- 'VND',
531
- 'VUV',
532
- 'WST',
533
- 'XAF',
534
- 'XCD',
535
- 'XDR',
536
- 'XOF',
537
- 'XPF',
538
- 'YER',
539
- 'ZAR',
540
- 'ZMW',
541
- 'ZWD',
542
- 'BTC'
543
- ]).optional(),
544
- quantity: z.number().optional(),
545
- itemDetails: z.string().optional(),
546
- catalogEffectiveDate: z.string().optional(),
547
- childItems: z.array(z.unknown()).optional()
548
- })).optional(),
549
- items: z.array(z.object({
550
- id: z.string().uuid().optional(),
551
- linkedInvoiceItemId: z.string().uuid().optional(),
552
- productName: z.string().optional(),
553
- planName: z.string().optional(),
554
- phaseName: z.string().optional(),
555
- usageName: z.string().optional(),
556
- prettyProductName: z.string().optional(),
557
- prettyPlanName: z.string().optional(),
558
- prettyPhaseName: z.string().optional(),
559
- prettyUsageName: z.string().optional(),
560
- itemType: z.enum([
561
- 'EXTERNAL_CHARGE',
562
- 'FIXED',
563
- 'RECURRING',
564
- 'REPAIR_ADJ',
565
- 'CBA_ADJ',
566
- 'CREDIT_ADJ',
567
- 'ITEM_ADJ',
568
- 'USAGE',
569
- 'TAX',
570
- 'PARENT_SUMMARY'
571
- ]).optional(),
324
+ id: z.string().optional(),
325
+ number: z.string().optional(),
326
+ status: z.string().optional(),
327
+ total: z.number().optional(),
328
+ currency: z.string().optional(),
329
+ created: z.iso.datetime(),
330
+ period_start: z.iso.datetime(),
331
+ period_end: z.iso.datetime(),
332
+ invoice_pdf: z.string().optional()
333
+ });
334
+ export const zMarketplaceListingFiles = z.object({
335
+ chartYaml: z.string().optional(),
336
+ valuesYaml: z.string().optional(),
337
+ valuesSchemaJson: z.string().optional()
338
+ });
339
+ export const zMarketplaceListing = z.object({
340
+ name: z.string(),
341
+ 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-]+)*))?$/)),
342
+ 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-]+)*))?$/)),
343
+ latestVersion: z.string(),
344
+ metadata: z.object({
345
+ name: z.string(),
346
+ version: z.string(),
572
347
  description: z.string().optional(),
573
- startDate: z.string().optional(),
574
- endDate: z.string().optional(),
575
- amount: z.number().optional(),
576
- rate: z.number().optional(),
577
- currency: z.enum([
578
- 'AED',
579
- 'AFN',
580
- 'ALL',
581
- 'AMD',
582
- 'ANG',
583
- 'AOA',
584
- 'ARS',
585
- 'AUD',
586
- 'AWG',
587
- 'AZN',
588
- 'BAM',
589
- 'BBD',
590
- 'BDT',
591
- 'BGN',
592
- 'BHD',
593
- 'BIF',
594
- 'BMD',
595
- 'BND',
596
- 'BOB',
597
- 'BRL',
598
- 'BSD',
599
- 'BTN',
600
- 'BWP',
601
- 'BYR',
602
- 'BZD',
603
- 'CAD',
604
- 'CDF',
605
- 'CHF',
606
- 'CLP',
607
- 'CNY',
608
- 'COP',
609
- 'CRC',
610
- 'CUC',
611
- 'CUP',
612
- 'CVE',
613
- 'CZK',
614
- 'DJF',
615
- 'DKK',
616
- 'DOP',
617
- 'DZD',
618
- 'EGP',
619
- 'ERN',
620
- 'ETB',
621
- 'EUR',
622
- 'FJD',
623
- 'FKP',
624
- 'GBP',
625
- 'GEL',
626
- 'GGP',
627
- 'GHS',
628
- 'GIP',
629
- 'GMD',
630
- 'GNF',
631
- 'GTQ',
632
- 'GYD',
633
- 'HKD',
634
- 'HNL',
635
- 'HRK',
636
- 'HTG',
637
- 'HUF',
638
- 'IDR',
639
- 'ILS',
640
- 'IMP',
641
- 'INR',
642
- 'IQD',
643
- 'IRR',
644
- 'ISK',
645
- 'JEP',
646
- 'JMD',
647
- 'JOD',
648
- 'JPY',
649
- 'KES',
650
- 'KGS',
651
- 'KHR',
652
- 'KMF',
653
- 'KPW',
654
- 'KRW',
655
- 'KWD',
656
- 'KYD',
657
- 'KZT',
658
- 'LAK',
659
- 'LBP',
660
- 'LKR',
661
- 'LRD',
662
- 'LSL',
663
- 'LTL',
664
- 'LVL',
665
- 'LYD',
666
- 'MAD',
667
- 'MDL',
668
- 'MGA',
669
- 'MKD',
670
- 'MMK',
671
- 'MNT',
672
- 'MOP',
673
- 'MRO',
674
- 'MUR',
675
- 'MVR',
676
- 'MWK',
677
- 'MXN',
678
- 'MYR',
679
- 'MZN',
680
- 'NAD',
681
- 'NGN',
682
- 'NIO',
683
- 'NOK',
684
- 'NPR',
685
- 'NZD',
686
- 'OMR',
687
- 'PAB',
688
- 'PEN',
689
- 'PGK',
690
- 'PHP',
691
- 'PKR',
692
- 'PLN',
693
- 'PYG',
694
- 'QAR',
695
- 'RON',
696
- 'RSD',
697
- 'RUB',
698
- 'RWF',
699
- 'SAR',
700
- 'SBD',
701
- 'SCR',
702
- 'SDG',
703
- 'SEK',
704
- 'SGD',
705
- 'SHP',
706
- 'SLL',
707
- 'SOS',
708
- 'SPL',
709
- 'SRD',
710
- 'STD',
711
- 'SVC',
712
- 'SYP',
713
- 'SZL',
714
- 'THB',
715
- 'TJS',
716
- 'TMT',
717
- 'TND',
718
- 'TOP',
719
- 'TRY',
720
- 'TTD',
721
- 'TVD',
722
- 'TWD',
723
- 'TZS',
724
- 'UAH',
725
- 'UGX',
726
- 'USD',
727
- 'UYU',
728
- 'UZS',
729
- 'VEF',
730
- 'VND',
731
- 'VUV',
732
- 'WST',
733
- 'XAF',
734
- 'XCD',
735
- 'XDR',
736
- 'XOF',
737
- 'XPF',
738
- 'YER',
739
- 'ZAR',
740
- 'ZMW',
741
- 'ZWD',
742
- 'BTC'
743
- ]).optional(),
744
- quantity: z.number().optional(),
745
- itemDetails: z.string().optional(),
746
- catalogEffectiveDate: z.string().optional(),
747
- childItems: z.array(z.unknown()).optional()
748
- })).optional()
348
+ appVersion: z.string().optional(),
349
+ apiVersion: z.string().optional(),
350
+ keywords: z.array(z.string()).optional(),
351
+ home: z.string().optional(),
352
+ icon: z.string().optional(),
353
+ sources: z.array(z.string()).optional(),
354
+ maintainers: z.array(z.object({
355
+ name: z.string(),
356
+ email: z.string().optional()
357
+ })).optional()
358
+ }).optional()
749
359
  });
750
360
  export const zOrganizationCreateInput = z.object({
751
- email: z.string().email(),
361
+ email: z.email(),
752
362
  first_name: z.string(),
753
363
  last_name: z.string(),
754
364
  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,}$/),
755
365
  password: z.string().min(8)
756
366
  });
757
367
  export const zOrganization = z.object({
758
- id: z.string().uuid(),
368
+ id: z.uuid(),
759
369
  name: z.string().min(2).max(120).optional(),
760
- date_created: z.string().datetime(),
370
+ date_created: z.iso.datetime(),
761
371
  quota: z.object({
762
- basic_clusters_max: z.number().int().gte(0),
763
- basic_clusters_available: z.number().int(),
764
- pro_clusters_max: z.number().int().gte(0),
765
- pro_clusters_available: z.number().int(),
766
- fleets_max: z.number().int().gte(0),
767
- managed_fleets_cpu_max: z.number().int().gte(0),
372
+ basic_clusters_max: z.int().gte(0),
373
+ basic_clusters_available: z.int(),
374
+ pro_clusters_max: z.int().gte(0),
375
+ pro_clusters_available: z.int(),
376
+ fleets_max: z.int().gte(0),
768
377
  cluster_tiers: z.array(z.string()).min(0),
769
378
  regions: z.array(z.string()).min(1),
770
379
  versions: z.array(z.object({
771
380
  id: z.string(),
772
381
  label: z.string()
773
- })).min(1)
382
+ })).min(1),
383
+ cfcr_storage_gb: z.int().gte(-1)
774
384
  }),
775
385
  status: z.enum([
776
386
  'active',
@@ -779,14 +389,12 @@ export const zOrganization = z.object({
779
389
  ])
780
390
  });
781
391
  export const zPaymentMethod = z.object({
782
- id: z.string().uuid(),
392
+ id: z.uuid(),
783
393
  setup: z.boolean(),
784
- type: z.enum([
785
- 'card'
786
- ]),
394
+ type: z.enum(['card']),
787
395
  last4: z.string(),
788
- exp_month: z.number().int().gte(1).lte(12),
789
- exp_year: z.number().int().gte(2024),
396
+ exp_month: z.int().gte(1).lte(12),
397
+ exp_year: z.int().gte(2024),
790
398
  brand: z.enum([
791
399
  'amex',
792
400
  'diners',
@@ -799,150 +407,466 @@ export const zPaymentMethod = z.object({
799
407
  'unknown'
800
408
  ])
801
409
  });
410
+ export const zPlatformQuota = z.object({
411
+ basic_clusters_max: z.int().gte(0),
412
+ basic_clusters_available: z.int(),
413
+ pro_clusters_max: z.int().gte(0),
414
+ pro_clusters_available: z.int(),
415
+ fleets_max: z.int().gte(0),
416
+ cluster_tiers: z.array(z.string()).min(0),
417
+ regions: z.array(z.string()).min(1),
418
+ versions: z.array(z.object({
419
+ id: z.string(),
420
+ label: z.string()
421
+ })).min(1),
422
+ cfcr_storage_gb: z.int().gte(-1)
423
+ });
424
+ export const zRegistryRepository = z.object({
425
+ name: z.string(),
426
+ region: z.string(),
427
+ uri: z.string()
428
+ });
429
+ export const zRegistryRepositoryWithTags = z.object({
430
+ name: z.string(),
431
+ region: z.string(),
432
+ uri: z.string(),
433
+ tags: z.array(z.object({
434
+ name: z.string(),
435
+ size: z.number(),
436
+ mediaType: z.string().optional(),
437
+ platforms: z.array(z.string()).optional()
438
+ })),
439
+ totalSize: z.number()
440
+ });
441
+ export const zRegistryTag = z.object({
442
+ name: z.string(),
443
+ digest: z.string(),
444
+ mediaType: z.string().optional(),
445
+ config: z.object({
446
+ size: z.number()
447
+ }).optional(),
448
+ layers: z.array(z.object({
449
+ digest: z.string().optional(),
450
+ size: z.number()
451
+ })).optional(),
452
+ manifests: z.array(z.object({
453
+ digest: z.string(),
454
+ platform: z.object({
455
+ architecture: z.string(),
456
+ os: z.string(),
457
+ variant: z.string().optional()
458
+ }).optional(),
459
+ layers: z.array(z.object({
460
+ digest: z.string().optional(),
461
+ size: z.number()
462
+ })).optional(),
463
+ size: z.number().optional()
464
+ })).optional(),
465
+ size: z.number(),
466
+ region: z.string(),
467
+ repository: z.string(),
468
+ uri: z.string()
469
+ });
802
470
  export const zTokenCreateInput = z.object({
803
471
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
804
- role: z.enum([
805
- 'Administrator',
806
- 'User'
807
- ])
472
+ role: z.enum(['Administrator', 'User'])
808
473
  });
809
474
  export const zToken = z.object({
810
475
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
811
- role: z.enum([
812
- 'Administrator',
813
- 'User'
814
- ]),
476
+ role: z.enum(['Administrator', 'User']),
815
477
  id: z.string().optional(),
816
478
  secret: z.string().optional(),
817
- date_created: z.string().datetime()
479
+ date_created: z.iso.datetime()
818
480
  });
819
481
  export const zTokenUpdateInput = z.object({
820
482
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
821
- role: z.enum([
822
- 'Administrator',
823
- 'User'
824
- ]).optional()
483
+ role: z.enum(['Administrator', 'User']).optional()
484
+ });
485
+ export const zUsageFacets = z.object({
486
+ cluster_id: z.array(z.string()).optional(),
487
+ product: z.array(z.string()).optional()
488
+ });
489
+ export const zUsageResponse = z.object({
490
+ data: z.array(z.object({
491
+ hour: z.string(),
492
+ cluster_id: z.string(),
493
+ product: z.string(),
494
+ value: z.number(),
495
+ price: z.number(),
496
+ total: z.number()
497
+ })),
498
+ facets: z.object({
499
+ cluster_id: z.array(z.string()).optional(),
500
+ product: z.array(z.string()).optional()
501
+ })
825
502
  });
826
503
  export const zUsage = z.object({
827
- hour: z.string().optional(),
828
- cluster_id: z.string().uuid(),
829
- cluster_tier: z.enum([
830
- ''
831
- ]),
832
- product: z.enum([
833
- 'cfke_infra_compute',
834
- 'cfke_nodes',
835
- 'cfke_controlplane'
836
- ]),
837
- node_name: z.string(),
838
- sku: z.string(),
839
- cpu: z.union([
840
- z.number(),
841
- z.enum([
842
- ''
843
- ])
844
- ]),
845
- price: z.union([
846
- z.number(),
847
- z.enum([
848
- ''
849
- ])
850
- ]),
851
- value: z.union([
852
- z.number(),
853
- z.enum([
854
- ''
855
- ])
856
- ]),
857
- total: z.union([
858
- z.number(),
859
- z.enum([
860
- ''
861
- ])
862
- ])
504
+ hour: z.string(),
505
+ cluster_id: z.string(),
506
+ product: z.string(),
507
+ value: z.number(),
508
+ price: z.number(),
509
+ total: z.number()
863
510
  });
864
511
  export const zUserCreateInput = z.object({
865
- email: z.string().email(),
512
+ email: z.email(),
866
513
  first_name: z.string().min(1).max(50),
867
514
  last_name: z.string().min(1).max(50),
868
515
  code: z.string(),
869
516
  password: z.string().min(8),
870
- status: z.enum([
871
- 'active',
872
- 'inactive'
873
- ]).optional(),
874
- role: z.enum([
875
- 'Administrator',
876
- 'User'
877
- ]).optional()
517
+ status: z.enum(['active', 'inactive']).optional(),
518
+ role: z.enum(['Administrator', 'User']).optional()
878
519
  });
879
520
  export const zUser = z.object({
880
- email: z.string().email(),
521
+ email: z.email(),
881
522
  first_name: z.string().min(1).max(50),
882
523
  last_name: z.string().min(1).max(50),
883
- role: z.enum([
884
- 'Administrator',
885
- 'User'
886
- ]),
887
- status: z.enum([
888
- 'active',
889
- 'inactive'
890
- ]),
891
- id: z.string().uuid(),
892
- date_created: z.string().datetime()
524
+ role: z.enum(['Administrator', 'User']),
525
+ status: z.enum(['active', 'inactive']),
526
+ id: z.uuid(),
527
+ date_created: z.iso.datetime()
893
528
  });
894
529
  export const zUserUpdateInput = z.object({
895
- email: z.string().email().optional(),
530
+ email: z.email().optional(),
896
531
  first_name: z.string().min(1).max(50).optional(),
897
532
  last_name: z.string().min(1).max(50).optional(),
898
- role: z.enum([
899
- 'Administrator',
900
- 'User'
901
- ]).optional(),
902
- status: z.enum([
903
- 'active',
904
- 'inactive'
905
- ]).optional()
533
+ role: z.enum(['Administrator', 'User']).optional(),
534
+ status: z.enum(['active', 'inactive']).optional()
535
+ });
536
+ export const zGetUsageQuery = z.object({
537
+ granularity: z.enum([
538
+ 'hourly',
539
+ 'daily',
540
+ 'monthly'
541
+ ]).optional().default('daily')
906
542
  });
907
- export const zGetUsageResponse = z.array(zUsage);
908
- export const zGetBalanceResponse = z.number();
543
+ /**
544
+ * Usage data with facets for filtering
545
+ */
546
+ export const zGetUsageResponse = zUsageResponse;
547
+ /**
548
+ * Redacted payment card information.
549
+ */
909
550
  export const zGetPaymentMethodResponse = zPaymentMethod;
551
+ /**
552
+ * 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.
553
+ *
554
+ */
910
555
  export const zGetPaymentMethodSecretResponse = z.object({
911
556
  id: z.string().optional()
912
557
  });
558
+ /**
559
+ * An array of usage records.
560
+ */
913
561
  export const zListInvoicesResponse = z.array(zInvoice);
914
- export const zGetInvoiceResponse = z.object({
915
- html: z.string().optional()
916
- });
562
+ /**
563
+ * Returns a single object containing organization contact and billing address details.
564
+ */
917
565
  export const zGetContactResponse = zBillingContact;
566
+ export const zUpdateContactBody = zBillingContact;
567
+ /**
568
+ * Successfully updated. Returns updated organization details.
569
+ */
918
570
  export const zUpdateContactResponse = zBillingContact;
571
+ /**
572
+ * An array of the applied promotional credits records.
573
+ */
574
+ export const zGetCreditsResponse = z.array(zBillingCredits);
575
+ export const zRedeemCreditsBody = z.object({
576
+ code: z.string().optional()
577
+ });
578
+ export const zListChartsPath = z.object({
579
+ cluster_id: z.string()
580
+ });
581
+ /**
582
+ * An array of charts
583
+ */
584
+ export const zListChartsResponse = z.array(zChart);
585
+ export const zCreateChartBody = zChartCreateInput;
586
+ export const zCreateChartPath = z.object({
587
+ cluster_id: z.string()
588
+ });
589
+ /**
590
+ * Successfully created. Returns created Chart ID.
591
+ */
592
+ export const zCreateChartResponse = z.string();
593
+ export const zDeleteChartPath = z.object({
594
+ cluster_id: z.string(),
595
+ chart_name: z.string()
596
+ });
597
+ /**
598
+ * Successfully deleted.
599
+ */
600
+ export const zDeleteChartResponse = z.string();
601
+ export const zGetChartPath = z.object({
602
+ cluster_id: z.string(),
603
+ chart_name: z.string()
604
+ });
605
+ /**
606
+ * Returns a single object containing chart details.
607
+ */
608
+ export const zGetChartResponse = zChart;
609
+ export const zUpdateChartBody = zChartUpdateInput;
610
+ export const zUpdateChartPath = z.object({
611
+ cluster_id: z.string(),
612
+ chart_name: z.string()
613
+ });
614
+ /**
615
+ * Successfully updated.
616
+ */
617
+ export const zUpdateChartResponse = z.string();
618
+ export const zListFleetsPath = z.object({
619
+ cluster_id: z.string()
620
+ });
621
+ /**
622
+ * An array of fleets
623
+ */
919
624
  export const zListFleetsResponse = z.array(zFleet);
625
+ export const zCreateFleetBody = zFleetCreateInput;
626
+ export const zCreateFleetPath = z.object({
627
+ cluster_id: z.string()
628
+ });
629
+ /**
630
+ * Successfully created. Returns created Fleet ID.
631
+ */
920
632
  export const zCreateFleetResponse = z.string();
633
+ export const zDeleteFleetPath = z.object({
634
+ cluster_id: z.string(),
635
+ fleet_name: z.string()
636
+ });
637
+ /**
638
+ * Successfully deleted.
639
+ */
921
640
  export const zDeleteFleetResponse = z.string();
641
+ export const zGetFleetPath = z.object({
642
+ cluster_id: z.string(),
643
+ fleet_name: z.string()
644
+ });
645
+ /**
646
+ * Returns a single object containing fleet details.
647
+ */
922
648
  export const zGetFleetResponse = zFleet;
649
+ export const zUpdateFleetBody = zFleetUpdateInput;
650
+ export const zUpdateFleetPath = z.object({
651
+ cluster_id: z.string(),
652
+ fleet_name: z.string()
653
+ });
654
+ /**
655
+ * Successfully updated.
656
+ */
923
657
  export const zUpdateFleetResponse = z.string();
658
+ export const zQueryClusterPath = z.object({
659
+ cluster_id: z.string()
660
+ });
661
+ /**
662
+ * An array of clusters
663
+ */
924
664
  export const zListClustersResponse = z.array(zCluster);
665
+ export const zCreateClusterBody = zClusterCreateInput;
666
+ /**
667
+ * Successfully created. Returns created Cluster ID.
668
+ */
925
669
  export const zCreateClusterResponse = z.string();
670
+ export const zDeleteClusterPath = z.object({
671
+ cluster_id: z.string()
672
+ });
673
+ /**
674
+ * Successfully deleted.
675
+ */
926
676
  export const zDeleteClusterResponse = z.string();
677
+ export const zGetClusterPath = z.object({
678
+ cluster_id: z.string()
679
+ });
680
+ /**
681
+ * Returns a single object containing cluster details.
682
+ */
927
683
  export const zGetClusterResponse = zCluster;
684
+ export const zUpdateClusterBody = zClusterUpdateInput;
685
+ export const zUpdateClusterPath = z.object({
686
+ cluster_id: z.string()
687
+ });
688
+ /**
689
+ * Successfully updated. Returns updated cluster details.
690
+ */
928
691
  export const zUpdateClusterResponse = zCluster;
929
- export const zGetJoinInformationResponse = zCluster;
692
+ export const zGetClusterCaPath = z.object({
693
+ cluster_id: z.string()
694
+ });
695
+ /**
696
+ * PEM-encoded certificate authority of the cluster.
697
+ */
698
+ export const zGetClusterCaResponse = z.string();
699
+ export const zGetJoinInformationPath = z.object({
700
+ cluster_id: z.string()
701
+ });
702
+ /**
703
+ * An object of cluster join information
704
+ */
705
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
706
+ /**
707
+ * An array of invites
708
+ */
930
709
  export const zListInvitesResponse = z.array(zInvite);
710
+ export const zCreateInviteBody = z.object({
711
+ email: z.string().optional()
712
+ });
713
+ /**
714
+ * Successfully created. Returns created invite details.
715
+ */
931
716
  export const zCreateInviteResponse = zInvite;
717
+ export const zGetInvitePath = z.object({
718
+ code: z.string()
719
+ });
720
+ /**
721
+ * Returns a single object containing invite details.
722
+ */
932
723
  export const zGetInviteResponse = zInvite;
724
+ export const zDeleteInvitePath = z.object({
725
+ email: z.string()
726
+ });
727
+ /**
728
+ * An array of chart listings in the marketplace.
729
+ */
730
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
731
+ export const zGetMarketplaceChartFilesPath = z.object({
732
+ chart_name: z.string(),
733
+ version_channel: z.string()
734
+ });
735
+ /**
736
+ * Returns an object containing the chart files for the latest matching version.
737
+ */
738
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
739
+ /**
740
+ * JSON-RPC 2.0 request payload
741
+ */
742
+ export const zPostMcpBody = z.object({
743
+ jsonrpc: z.string().optional(),
744
+ method: z.string().optional(),
745
+ id: z.union([
746
+ z.string(),
747
+ z.number()
748
+ ]).optional(),
749
+ params: z.record(z.string(), z.unknown()).optional()
750
+ });
751
+ /**
752
+ * JSON-RPC 2.0 success or error response
753
+ */
754
+ export const zPostMcpResponse = z.object({
755
+ jsonrpc: z.string().optional(),
756
+ id: z.union([
757
+ z.string(),
758
+ z.number()
759
+ ]).optional(),
760
+ result: z.record(z.string(), z.unknown()).optional(),
761
+ error: z.object({
762
+ code: z.int().optional(),
763
+ message: z.string().optional()
764
+ }).optional()
765
+ });
766
+ /**
767
+ * Returns a single object containing organization details.
768
+ */
933
769
  export const zGetOrganizationResponse = zOrganization;
770
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
771
+ /**
772
+ * List of repositories
773
+ */
774
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
775
+ export const zListTagsPath = z.object({
776
+ region: z.string(),
777
+ repository: z.string()
778
+ });
779
+ /**
780
+ * Repository with tags
781
+ */
782
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
783
+ export const zDeleteTagPath = z.object({
784
+ region: z.string(),
785
+ repository: z.string(),
786
+ tag: z.string()
787
+ });
788
+ export const zGetTagPath = z.object({
789
+ region: z.string(),
790
+ repository: z.string(),
791
+ tag: z.string()
792
+ });
793
+ /**
794
+ * Tag details
795
+ */
796
+ export const zGetTagResponse = zRegistryTag;
797
+ /**
798
+ * Returns a list of access token details with masked secrets.
799
+ */
934
800
  export const zListTokensResponse = z.array(zToken);
801
+ export const zCreateTokenBody = zTokenCreateInput;
802
+ /**
803
+ * Successfully created. Returns created token details with unmasked/raw secret.
804
+ */
935
805
  export const zCreateTokenResponse = zToken;
806
+ export const zDeleteTokenPath = z.object({
807
+ token_id: z.string()
808
+ });
809
+ export const zGetTokenPath = z.object({
810
+ token_id: z.string()
811
+ });
812
+ /**
813
+ * Returns access token details with masked secret.
814
+ */
936
815
  export const zGetTokenResponse = zToken;
816
+ export const zUpdateTokenBody = zTokenUpdateInput;
817
+ export const zUpdateTokenPath = z.object({
818
+ token_id: z.string()
819
+ });
820
+ /**
821
+ * Successfully updated. Returns updated token details with masked secret.
822
+ */
937
823
  export const zUpdateTokenResponse = zToken;
824
+ export const zRegenerateTokenPath = z.object({
825
+ token_id: z.string()
826
+ });
827
+ /**
828
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
829
+ */
938
830
  export const zRegenerateTokenResponse = zToken;
831
+ export const zListUserOrganizationsPath = z.object({
832
+ email: z.string()
833
+ });
834
+ /**
835
+ * An array of organizations the user belongs to.
836
+ */
939
837
  export const zListUserOrganizationsResponse = z.array(z.object({
940
838
  realm: z.string().optional(),
941
839
  displayName: z.string().optional()
942
840
  }));
841
+ /**
842
+ * An array of users
843
+ */
943
844
  export const zListUsersResponse = z.array(zUser);
845
+ export const zCreateUserBody = zUserCreateInput;
846
+ /**
847
+ * Successfully created. Returns created user details.
848
+ */
944
849
  export const zCreateUserResponse = zUser;
850
+ export const zDeleteUserPath = z.object({
851
+ user_id: z.string()
852
+ });
853
+ /**
854
+ * User profile information
855
+ */
945
856
  export const zDeleteUserResponse = zUser;
857
+ export const zGetUserPath = z.object({
858
+ user_id: z.string()
859
+ });
860
+ /**
861
+ * User profile information
862
+ */
946
863
  export const zGetUserResponse = zUser;
864
+ export const zUpdateUserBody = zUserUpdateInput;
865
+ export const zUpdateUserPath = z.object({
866
+ user_id: z.string()
867
+ });
868
+ /**
869
+ * Successfully created. Returns created user details.
870
+ */
947
871
  export const zUpdateUserResponse = zUser;
948
872
  //# sourceMappingURL=zod.gen.js.map