@cloudfleet/sdk 0.0.1-96d5fec → 0.0.1-9a4447d

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 +1139 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1167 -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 +13 -0
  22. package/dist/client.gen.d.ts.map +1 -0
  23. package/dist/client.gen.js +4 -0
  24. package/dist/client.gen.js.map +1 -0
  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 +3 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +3 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/schemas.gen.d.ts +1676 -1084
  62. package/dist/schemas.gen.d.ts.map +1 -1
  63. package/dist/schemas.gen.js +2973 -1138
  64. package/dist/schemas.gen.js.map +1 -1
  65. package/dist/sdk.gen.d.ts +274 -144
  66. package/dist/sdk.gen.d.ts.map +1 -1
  67. package/dist/sdk.gen.js +362 -225
  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 +1517 -961
  82. package/dist/types.gen.d.ts.map +1 -1
  83. package/dist/zod.gen.d.ts +3775 -2857
  84. package/dist/zod.gen.d.ts.map +1 -1
  85. package/dist/zod.gen.js +1582 -893
  86. package/dist/zod.gen.js.map +1 -1
  87. package/package.json +31 -5
package/dist/zod.gen.js CHANGED
@@ -1,42 +1,244 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod';
2
+ import * as z from 'zod';
3
+ export const zBillingContact = z.object({
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(),
13
+ email: z.email(),
14
+ individual_name: z.string(),
15
+ tax_id: z.string().optional(),
16
+ tax_id_type: z.enum([
17
+ 'ad_nrt',
18
+ 'ae_trn',
19
+ 'al_tin',
20
+ 'am_tin',
21
+ 'ao_tin',
22
+ 'ar_cuit',
23
+ 'at_vat',
24
+ 'au_abn',
25
+ 'au_arn',
26
+ 'ba_tin',
27
+ 'bb_tin',
28
+ 'be_vat',
29
+ 'bg_uic',
30
+ 'bg_vat',
31
+ 'bh_vat',
32
+ 'bo_tin',
33
+ 'br_cnpj',
34
+ 'br_cpf',
35
+ 'bs_tin',
36
+ 'by_tin',
37
+ 'ca_bn',
38
+ 'ca_gst_hst',
39
+ 'ca_pst_bc',
40
+ 'ca_pst_mb',
41
+ 'ca_pst_sk',
42
+ 'ca_qst',
43
+ 'cd_nif',
44
+ 'ch_uid',
45
+ 'ch_vat',
46
+ 'cl_tin',
47
+ 'cn_tin',
48
+ 'co_nit',
49
+ 'cr_tin',
50
+ 'cy_vat',
51
+ 'cz_vat',
52
+ 'de_stn',
53
+ 'de_vat',
54
+ 'dk_vat',
55
+ 'do_rcn',
56
+ 'ec_ruc',
57
+ 'ee_vat',
58
+ 'eg_tin',
59
+ 'es_cif',
60
+ 'es_vat',
61
+ 'eu_oss_vat',
62
+ 'fi_vat',
63
+ 'fr_vat',
64
+ 'gb_vat',
65
+ 'ge_vat',
66
+ 'gn_nif',
67
+ 'gr_vat',
68
+ 'hk_br',
69
+ 'hr_oib',
70
+ 'hr_vat',
71
+ 'hu_tin',
72
+ 'hu_vat',
73
+ 'id_npwp',
74
+ 'ie_vat',
75
+ 'il_vat',
76
+ 'in_gst',
77
+ 'is_vat',
78
+ 'it_vat',
79
+ 'jp_cn',
80
+ 'jp_rn',
81
+ 'jp_trn',
82
+ 'ke_pin',
83
+ 'kh_tin',
84
+ 'kr_brn',
85
+ 'kz_bin',
86
+ 'li_uid',
87
+ 'li_vat',
88
+ 'lt_vat',
89
+ 'lu_vat',
90
+ 'lv_vat',
91
+ 'ma_vat',
92
+ 'md_vat',
93
+ 'me_pib',
94
+ 'mk_vat',
95
+ 'mr_nif',
96
+ 'mt_vat',
97
+ 'mx_rfc',
98
+ 'my_frp',
99
+ 'my_itn',
100
+ 'my_sst',
101
+ 'ng_tin',
102
+ 'nl_vat',
103
+ 'no_vat',
104
+ 'no_voec',
105
+ 'np_pan',
106
+ 'nz_gst',
107
+ 'om_vat',
108
+ 'pe_ruc',
109
+ 'ph_tin',
110
+ 'pl_vat',
111
+ 'pt_vat',
112
+ 'ro_tin',
113
+ 'ro_vat',
114
+ 'rs_pib',
115
+ 'ru_inn',
116
+ 'ru_kpp',
117
+ 'sa_vat',
118
+ 'se_vat',
119
+ 'sg_gst',
120
+ 'sg_uen',
121
+ 'si_tin',
122
+ 'si_vat',
123
+ 'sk_vat',
124
+ 'sn_ninea',
125
+ 'sr_fin',
126
+ 'sv_nit',
127
+ 'th_vat',
128
+ 'tj_tin',
129
+ 'tr_tin',
130
+ 'tw_vat',
131
+ 'tz_vat',
132
+ 'ua_vat',
133
+ 'ug_tin',
134
+ 'us_ein',
135
+ 'uy_ruc',
136
+ 'uz_tin',
137
+ 'uz_vat',
138
+ 've_rif',
139
+ 'vn_tin',
140
+ 'xi_vat',
141
+ 'za_vat',
142
+ 'zm_tin',
143
+ 'zw_tin',
144
+ ''
145
+ ]).optional()
146
+ });
147
+ export const zBillingCredits = z.object({
148
+ id: z.string().optional(),
149
+ type: z.enum(['credit', 'discount']),
150
+ date_start: z.iso.datetime(),
151
+ date_end: z.iso.datetime().optional(),
152
+ code: z.string(),
153
+ description: z.string().optional(),
154
+ value_total: z.number(),
155
+ value_remaining: z.number().optional()
156
+ });
157
+ export const zChartCreateInput = z.object({
158
+ values: z.string(),
159
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/),
160
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
161
+ namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
162
+ chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
163
+ });
164
+ export const zChart = z.object({
165
+ values: z.string(),
166
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/),
167
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
+ namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
169
+ chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
170
+ status: z.enum([
171
+ 'InstallSucceeded',
172
+ 'InstallFailed',
173
+ 'UpgradeSucceeded',
174
+ 'UpgradeFailed',
175
+ 'TestSucceeded',
176
+ 'TestFailed',
177
+ 'RollbackSucceeded',
178
+ 'RollbackFailed',
179
+ 'UninstallSucceeded',
180
+ 'UninstallFailed',
181
+ 'ArtifactFailed',
182
+ 'DependencyNotReady',
183
+ 'Progressing',
184
+ 'SourceNotReady'
185
+ ]),
186
+ version_current: z.string(),
187
+ created_at: z.string(),
188
+ updated_at: z.string(),
189
+ ready: z.boolean()
190
+ });
191
+ export const zChartUpdateInput = z.object({
192
+ values: z.string(),
193
+ 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-]+)*))?$/)
194
+ });
3
195
  export const zClusterCreateInput = z.object({
4
196
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
197
+ tier: z.enum(['basic', 'pro']),
5
198
  region: z.enum([
6
- 'staging',
7
- 'northamerica-central-1'
8
- ]).optional(),
9
- tier: z.enum([
10
- 'basic',
11
- 'pro'
12
- ]),
13
- 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')
199
+ 'staging-1a',
200
+ 'northamerica-central-1',
201
+ 'europe-central-1a',
202
+ 'northamerica-central-1a'
203
+ ]).optional().default('staging-1a'),
204
+ version_channel: z.enum([
205
+ '1.x.x-cfke.x',
206
+ '1.31.x-cfke.x',
207
+ '1.32.x-cfke.x',
208
+ '1.33.x-cfke.x'
209
+ ]).optional().default('1.x.x-cfke.x')
14
210
  });
15
211
  export const zClusterJoinInformation = z.object({
16
212
  certificate_authority: z.string(),
17
- endpoint: z.string().url(),
213
+ endpoint: z.url(),
214
+ cluster_dns: z.string(),
18
215
  auth_key: z.string(),
19
216
  bootstrap_token: z.string(),
20
217
  versions: z.object({
21
218
  kubernetes: z.string(),
22
219
  tailscale: z.string(),
23
- containerd: z.string()
220
+ containerd: z.string(),
221
+ nvidia_driver: z.string()
222
+ }),
223
+ third_party_api_access_config: z.object({
224
+ metadata_url: z.string(),
225
+ aws_role_arn: z.string(),
226
+ gcp_workload_identity_provider: z.string()
24
227
  })
25
228
  });
26
229
  export const zCluster = z.object({
27
230
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
231
+ tier: z.enum(['basic', 'pro']),
28
232
  region: z.enum([
29
- 'staging',
30
- 'northamerica-central-1'
31
- ]).optional(),
32
- tier: z.enum([
33
- 'basic',
34
- 'pro'
35
- ]),
36
- 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'),
37
- id: z.string().uuid(),
233
+ 'staging-1a',
234
+ 'northamerica-central-1',
235
+ 'europe-central-1a',
236
+ 'northamerica-central-1a'
237
+ ]).optional().default('staging-1a'),
238
+ id: z.uuid(),
38
239
  status: z.enum([
39
240
  'active',
241
+ 'disabled',
40
242
  'deleted',
41
243
  'creating',
42
244
  'deployed',
@@ -44,998 +246,1485 @@ export const zCluster = z.object({
44
246
  'updating'
45
247
  ]),
46
248
  endpoint: z.union([
47
- z.string().url(),
48
- z.enum([
49
- ''
50
- ])
249
+ z.url(),
250
+ z.enum([''])
251
+ ]).optional(),
252
+ endpoint_public: z.union([
253
+ z.url(),
254
+ z.enum([''])
51
255
  ]).optional(),
52
256
  certificate_ca: z.string().optional(),
53
257
  version_current: z.string().optional(),
54
258
  created_at: z.string().optional(),
55
259
  updated_at: z.string().optional(),
56
- ready: z.boolean().optional()
260
+ ready: z.boolean().optional(),
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()
57
262
  });
58
263
  export const zClusterUpdateInput = z.object({
59
264
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
60
- 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()
265
+ tier: z.enum(['basic', 'pro']),
266
+ 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()
61
267
  });
62
268
  export const zFleetCreateInput = z.object({
63
269
  limits: z.object({
64
- cpu: z.number().gte(0)
270
+ cpu: z.int().gte(0).lte(100000).optional()
65
271
  }).optional(),
66
272
  gcp: z.object({
67
- enabled: z.boolean().optional().default(true),
68
- project: z.string()
273
+ enabled: z.boolean(),
274
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
275
+ }).optional(),
276
+ hetzner: z.object({
277
+ enabled: z.boolean(),
278
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
69
279
  }).optional(),
70
- hetzner: z.union([
71
- z.object({
72
- enabled: z.boolean().optional().default(true),
73
- apiKey: z.string().optional()
74
- }),
75
- z.object({
76
- apiKey: z.string().optional(),
77
- enabled: z.boolean().optional().default(true)
78
- })
79
- ]).optional(),
80
280
  aws: z.object({
81
- enabled: z.boolean().optional().default(true),
82
- controllerRoleArn: z.string()
281
+ enabled: z.boolean(),
282
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
83
283
  }).optional(),
84
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
85
- type: z.enum([
86
- 'managed',
87
- 'connected'
88
- ])
284
+ constraints: z.object({
285
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
286
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
287
+ 'cfke.io/instance-family': z.array(z.enum([
288
+ 'a1',
289
+ 'a2',
290
+ 'a3',
291
+ 'a4',
292
+ 'c1',
293
+ 'c2',
294
+ 'c2d',
295
+ 'c3',
296
+ 'c3d',
297
+ 'c4',
298
+ 'c4a',
299
+ 'c4d',
300
+ 'c5',
301
+ 'c5a',
302
+ 'c5ad',
303
+ 'c5d',
304
+ 'c5n',
305
+ 'c6a',
306
+ 'c6g',
307
+ 'c6gd',
308
+ 'c6gn',
309
+ 'c6i',
310
+ 'c6id',
311
+ 'c6in',
312
+ 'c7a',
313
+ 'c7g',
314
+ 'c7gd',
315
+ 'c7gn',
316
+ 'c7i',
317
+ 'c7i-flex',
318
+ 'c8g',
319
+ 'c8gd',
320
+ 'cax',
321
+ 'ccx',
322
+ 'cpx',
323
+ 'cx',
324
+ 'd2',
325
+ 'd3',
326
+ 'd3en',
327
+ 'dl1',
328
+ 'dl2q',
329
+ 'e2',
330
+ 'f1',
331
+ 'f2',
332
+ 'g1',
333
+ 'g2',
334
+ 'g4ad',
335
+ 'g4dn',
336
+ 'g5',
337
+ 'g5g',
338
+ 'g6',
339
+ 'g6e',
340
+ 'gr6',
341
+ 'h1',
342
+ 'h3',
343
+ 'hpc6a',
344
+ 'hpc6id',
345
+ 'hpc7a',
346
+ 'hpc7g',
347
+ 'i2',
348
+ 'i3',
349
+ 'i3en',
350
+ 'i4g',
351
+ 'i4i',
352
+ 'i7i',
353
+ 'i7ie',
354
+ 'i8g',
355
+ 'im4gn',
356
+ 'inf1',
357
+ 'inf2',
358
+ 'is4gen',
359
+ 'm1',
360
+ 'm2',
361
+ 'm3',
362
+ 'm4',
363
+ 'm5',
364
+ 'm5a',
365
+ 'm5ad',
366
+ 'm5d',
367
+ 'm5dn',
368
+ 'm5n',
369
+ 'm5zn',
370
+ 'm6a',
371
+ 'm6g',
372
+ 'm6gd',
373
+ 'm6i',
374
+ 'm6id',
375
+ 'm6idn',
376
+ 'm6in',
377
+ 'm7a',
378
+ 'm7g',
379
+ 'm7gd',
380
+ 'm7i',
381
+ 'm7i-flex',
382
+ 'm8g',
383
+ 'm8gd',
384
+ 'n1',
385
+ 'n2',
386
+ 'n2d',
387
+ 'n4',
388
+ 'p3',
389
+ 'p3dn',
390
+ 'p4d',
391
+ 'p4de',
392
+ 'p5',
393
+ 'p5e',
394
+ 'p5en',
395
+ 'p6-b200',
396
+ 'r3',
397
+ 'r4',
398
+ 'r5',
399
+ 'r5a',
400
+ 'r5ad',
401
+ 'r5b',
402
+ 'r5d',
403
+ 'r5dn',
404
+ 'r5n',
405
+ 'r6a',
406
+ 'r6g',
407
+ 'r6gd',
408
+ 'r6i',
409
+ 'r6id',
410
+ 'r6idn',
411
+ 'r6in',
412
+ 'r7a',
413
+ 'r7g',
414
+ 'r7gd',
415
+ 'r7i',
416
+ 'r7iz',
417
+ 'r8g',
418
+ 'r8gd',
419
+ 't2',
420
+ 't2a',
421
+ 't2d',
422
+ 't3',
423
+ 't3a',
424
+ 't4g',
425
+ 'trn1',
426
+ 'trn1n',
427
+ 'u-3tb1',
428
+ 'u-6tb1',
429
+ 'u7i-12tb',
430
+ 'u7i-6tb',
431
+ 'u7i-8tb',
432
+ 'u7in-16tb',
433
+ 'u7in-24tb',
434
+ 'u7in-32tb',
435
+ 'vt1',
436
+ 'x1',
437
+ 'x1e',
438
+ 'x2gd',
439
+ 'x2idn',
440
+ 'x2iedn',
441
+ 'x2iezn',
442
+ 'x4',
443
+ 'x8g',
444
+ 'z1d',
445
+ 'z3'
446
+ ])).optional(),
447
+ 'topology.kubernetes.io/region': z.array(z.enum([
448
+ 'africa-south1',
449
+ 'ap-northeast-1',
450
+ 'ap-northeast-2',
451
+ 'ap-northeast-3',
452
+ 'ap-south-1',
453
+ 'ap-southeast-1',
454
+ 'ap-southeast-2',
455
+ 'ash',
456
+ 'asia-east1',
457
+ 'asia-east2',
458
+ 'asia-northeast1',
459
+ 'asia-northeast2',
460
+ 'asia-northeast3',
461
+ 'asia-south1',
462
+ 'asia-south2',
463
+ 'asia-southeast1',
464
+ 'asia-southeast2',
465
+ 'australia-southeast1',
466
+ 'australia-southeast2',
467
+ 'ca-central-1',
468
+ 'eu-central-1',
469
+ 'eu-central-2',
470
+ 'eu-north-1',
471
+ 'eu-west-1',
472
+ 'eu-west-2',
473
+ 'eu-west-3',
474
+ 'europe-central2',
475
+ 'europe-north1',
476
+ 'europe-southwest1',
477
+ 'europe-west1',
478
+ 'europe-west10',
479
+ 'europe-west12',
480
+ 'europe-west2',
481
+ 'europe-west3',
482
+ 'europe-west4',
483
+ 'europe-west6',
484
+ 'europe-west8',
485
+ 'europe-west9',
486
+ 'fsn1',
487
+ 'hel1',
488
+ 'hil',
489
+ 'me-central1',
490
+ 'me-central2',
491
+ 'me-west1',
492
+ 'nbg1',
493
+ 'northamerica-northeast1',
494
+ 'northamerica-northeast2',
495
+ 'sa-east-1',
496
+ 'sin',
497
+ 'southamerica-east1',
498
+ 'southamerica-west1',
499
+ 'us-central1',
500
+ 'us-east-1',
501
+ 'us-east-2',
502
+ 'us-east1',
503
+ 'us-east4',
504
+ 'us-east5',
505
+ 'us-south1',
506
+ 'us-west-1',
507
+ 'us-west-2',
508
+ 'us-west1',
509
+ 'us-west2',
510
+ 'us-west3',
511
+ 'us-west4'
512
+ ])).optional()
513
+ }).optional(),
514
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
515
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
89
516
  });
90
517
  export const zFleet = z.object({
91
518
  limits: z.object({
92
- cpu: z.number().gte(0)
519
+ cpu: z.int().gte(0).lte(100000).optional()
93
520
  }).optional(),
94
521
  gcp: z.object({
95
- enabled: z.boolean().optional().default(true),
96
- project: z.string()
522
+ enabled: z.boolean(),
523
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
524
+ }).optional(),
525
+ hetzner: z.object({
526
+ enabled: z.boolean(),
527
+ apiKey: z.string().regex(/^\*{64}$/).optional()
97
528
  }).optional(),
98
- hetzner: z.union([
99
- z.object({
100
- enabled: z.boolean().optional().default(true),
101
- apiKey: z.string().optional()
102
- }),
103
- z.object({
104
- apiKey: z.string().optional(),
105
- enabled: z.boolean().optional().default(true)
106
- })
107
- ]).optional(),
108
529
  aws: z.object({
109
- enabled: z.boolean().optional().default(true),
110
- controllerRoleArn: z.string()
530
+ enabled: z.boolean(),
531
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
111
532
  }).optional(),
112
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
113
- type: z.enum([
114
- 'managed',
115
- 'connected'
116
- ])
533
+ constraints: z.object({
534
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
535
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
536
+ 'cfke.io/instance-family': z.array(z.enum([
537
+ 'a1',
538
+ 'a2',
539
+ 'a3',
540
+ 'a4',
541
+ 'c1',
542
+ 'c2',
543
+ 'c2d',
544
+ 'c3',
545
+ 'c3d',
546
+ 'c4',
547
+ 'c4a',
548
+ 'c4d',
549
+ 'c5',
550
+ 'c5a',
551
+ 'c5ad',
552
+ 'c5d',
553
+ 'c5n',
554
+ 'c6a',
555
+ 'c6g',
556
+ 'c6gd',
557
+ 'c6gn',
558
+ 'c6i',
559
+ 'c6id',
560
+ 'c6in',
561
+ 'c7a',
562
+ 'c7g',
563
+ 'c7gd',
564
+ 'c7gn',
565
+ 'c7i',
566
+ 'c7i-flex',
567
+ 'c8g',
568
+ 'c8gd',
569
+ 'cax',
570
+ 'ccx',
571
+ 'cpx',
572
+ 'cx',
573
+ 'd2',
574
+ 'd3',
575
+ 'd3en',
576
+ 'dl1',
577
+ 'dl2q',
578
+ 'e2',
579
+ 'f1',
580
+ 'f2',
581
+ 'g1',
582
+ 'g2',
583
+ 'g4ad',
584
+ 'g4dn',
585
+ 'g5',
586
+ 'g5g',
587
+ 'g6',
588
+ 'g6e',
589
+ 'gr6',
590
+ 'h1',
591
+ 'h3',
592
+ 'hpc6a',
593
+ 'hpc6id',
594
+ 'hpc7a',
595
+ 'hpc7g',
596
+ 'i2',
597
+ 'i3',
598
+ 'i3en',
599
+ 'i4g',
600
+ 'i4i',
601
+ 'i7i',
602
+ 'i7ie',
603
+ 'i8g',
604
+ 'im4gn',
605
+ 'inf1',
606
+ 'inf2',
607
+ 'is4gen',
608
+ 'm1',
609
+ 'm2',
610
+ 'm3',
611
+ 'm4',
612
+ 'm5',
613
+ 'm5a',
614
+ 'm5ad',
615
+ 'm5d',
616
+ 'm5dn',
617
+ 'm5n',
618
+ 'm5zn',
619
+ 'm6a',
620
+ 'm6g',
621
+ 'm6gd',
622
+ 'm6i',
623
+ 'm6id',
624
+ 'm6idn',
625
+ 'm6in',
626
+ 'm7a',
627
+ 'm7g',
628
+ 'm7gd',
629
+ 'm7i',
630
+ 'm7i-flex',
631
+ 'm8g',
632
+ 'm8gd',
633
+ 'n1',
634
+ 'n2',
635
+ 'n2d',
636
+ 'n4',
637
+ 'p3',
638
+ 'p3dn',
639
+ 'p4d',
640
+ 'p4de',
641
+ 'p5',
642
+ 'p5e',
643
+ 'p5en',
644
+ 'p6-b200',
645
+ 'r3',
646
+ 'r4',
647
+ 'r5',
648
+ 'r5a',
649
+ 'r5ad',
650
+ 'r5b',
651
+ 'r5d',
652
+ 'r5dn',
653
+ 'r5n',
654
+ 'r6a',
655
+ 'r6g',
656
+ 'r6gd',
657
+ 'r6i',
658
+ 'r6id',
659
+ 'r6idn',
660
+ 'r6in',
661
+ 'r7a',
662
+ 'r7g',
663
+ 'r7gd',
664
+ 'r7i',
665
+ 'r7iz',
666
+ 'r8g',
667
+ 'r8gd',
668
+ 't2',
669
+ 't2a',
670
+ 't2d',
671
+ 't3',
672
+ 't3a',
673
+ 't4g',
674
+ 'trn1',
675
+ 'trn1n',
676
+ 'u-3tb1',
677
+ 'u-6tb1',
678
+ 'u7i-12tb',
679
+ 'u7i-6tb',
680
+ 'u7i-8tb',
681
+ 'u7in-16tb',
682
+ 'u7in-24tb',
683
+ 'u7in-32tb',
684
+ 'vt1',
685
+ 'x1',
686
+ 'x1e',
687
+ 'x2gd',
688
+ 'x2idn',
689
+ 'x2iedn',
690
+ 'x2iezn',
691
+ 'x4',
692
+ 'x8g',
693
+ 'z1d',
694
+ 'z3'
695
+ ])).optional(),
696
+ 'topology.kubernetes.io/region': z.array(z.enum([
697
+ 'africa-south1',
698
+ 'ap-northeast-1',
699
+ 'ap-northeast-2',
700
+ 'ap-northeast-3',
701
+ 'ap-south-1',
702
+ 'ap-southeast-1',
703
+ 'ap-southeast-2',
704
+ 'ash',
705
+ 'asia-east1',
706
+ 'asia-east2',
707
+ 'asia-northeast1',
708
+ 'asia-northeast2',
709
+ 'asia-northeast3',
710
+ 'asia-south1',
711
+ 'asia-south2',
712
+ 'asia-southeast1',
713
+ 'asia-southeast2',
714
+ 'australia-southeast1',
715
+ 'australia-southeast2',
716
+ 'ca-central-1',
717
+ 'eu-central-1',
718
+ 'eu-central-2',
719
+ 'eu-north-1',
720
+ 'eu-west-1',
721
+ 'eu-west-2',
722
+ 'eu-west-3',
723
+ 'europe-central2',
724
+ 'europe-north1',
725
+ 'europe-southwest1',
726
+ 'europe-west1',
727
+ 'europe-west10',
728
+ 'europe-west12',
729
+ 'europe-west2',
730
+ 'europe-west3',
731
+ 'europe-west4',
732
+ 'europe-west6',
733
+ 'europe-west8',
734
+ 'europe-west9',
735
+ 'fsn1',
736
+ 'hel1',
737
+ 'hil',
738
+ 'me-central1',
739
+ 'me-central2',
740
+ 'me-west1',
741
+ 'nbg1',
742
+ 'northamerica-northeast1',
743
+ 'northamerica-northeast2',
744
+ 'sa-east-1',
745
+ 'sin',
746
+ 'southamerica-east1',
747
+ 'southamerica-west1',
748
+ 'us-central1',
749
+ 'us-east-1',
750
+ 'us-east-2',
751
+ 'us-east1',
752
+ 'us-east4',
753
+ 'us-east5',
754
+ 'us-south1',
755
+ 'us-west-1',
756
+ 'us-west-2',
757
+ 'us-west1',
758
+ 'us-west2',
759
+ 'us-west3',
760
+ 'us-west4'
761
+ ])).optional()
762
+ }).optional(),
763
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
764
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
117
765
  });
118
766
  export const zFleetUpdateInput = z.object({
119
767
  limits: z.object({
120
- cpu: z.number().gte(0)
768
+ cpu: z.int().gte(0).lte(100000).optional()
121
769
  }).optional(),
122
770
  gcp: z.object({
123
- enabled: z.boolean().optional().default(true),
124
- project: z.string()
771
+ enabled: z.boolean(),
772
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
773
+ }).optional(),
774
+ hetzner: z.object({
775
+ enabled: z.boolean(),
776
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
125
777
  }).optional(),
126
- hetzner: z.union([
127
- z.object({
128
- enabled: z.boolean().optional().default(true),
129
- apiKey: z.string().optional()
130
- }),
131
- z.object({
132
- apiKey: z.string().optional(),
133
- enabled: z.boolean().optional().default(true)
134
- })
135
- ]).optional(),
136
778
  aws: z.object({
137
- enabled: z.boolean().optional().default(true),
138
- controllerRoleArn: z.string()
139
- }).optional()
140
- });
141
- export const zInfrastructureFilter = z.object({
142
- version: z.unknown().optional(),
143
- provider: z.array(z.string()).optional(),
144
- region: z.array(z.string()).optional(),
145
- sub_region: z.array(z.string()).optional(),
146
- csp_region: z.array(z.string()).optional(),
147
- instance_type: z.array(z.string()).optional(),
148
- accelerator_name: z.array(z.string()).optional(),
149
- accelerator_manufacturer: z.array(z.string()).optional(),
150
- accelerator_count_min: z.number().int().gte(0).optional(),
151
- accelerator_count_max: z.number().int().gte(0).optional(),
152
- accelerator_memory_min: z.number().optional(),
153
- accelerator_memory_max: z.number().optional(),
154
- memory_min: z.number().int().gte(0).optional(),
155
- memory_max: z.number().int().gte(0).optional(),
156
- vcpu_min: z.number().int().gte(1).optional(),
157
- vcpu_max: z.number().int().gte(1).optional(),
158
- storage_total_min: z.number().gte(10).optional(),
159
- storage_total_max: z.number().gte(10).optional(),
160
- storage_local_min: z.number().optional(),
161
- storage_local_max: z.number().optional(),
162
- price_min: z.number().optional(),
163
- price_max: z.number().optional()
164
- });
165
- export const zInfrastructureInstance = z.object({
166
- sku: z.string(),
167
- provider: z.string(),
168
- region: z.string(),
169
- sub_region: z.string(),
170
- csp_region: z.string(),
171
- csp_zone: z.string(),
172
- instance_type: z.string(),
173
- architecture: z.string(),
174
- os: z.string(),
175
- vcpu: z.number().gte(1),
176
- memory: z.number().gte(1),
177
- local_storage: z.number(),
178
- accelerator_name: z.string().optional(),
179
- accelerator_manufacturer: z.string().optional(),
180
- accelerator_count: z.number().int().optional(),
181
- accelerator_memory: z.number().optional(),
182
- pods_capacity: z.number().optional(),
183
- capacity_type: z.string().optional(),
184
- price: z.number(),
185
- available: z.boolean().optional()
779
+ enabled: z.boolean(),
780
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
781
+ }).optional(),
782
+ constraints: z.object({
783
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
784
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
785
+ 'cfke.io/instance-family': z.array(z.enum([
786
+ 'a1',
787
+ 'a2',
788
+ 'a3',
789
+ 'a4',
790
+ 'c1',
791
+ 'c2',
792
+ 'c2d',
793
+ 'c3',
794
+ 'c3d',
795
+ 'c4',
796
+ 'c4a',
797
+ 'c4d',
798
+ 'c5',
799
+ 'c5a',
800
+ 'c5ad',
801
+ 'c5d',
802
+ 'c5n',
803
+ 'c6a',
804
+ 'c6g',
805
+ 'c6gd',
806
+ 'c6gn',
807
+ 'c6i',
808
+ 'c6id',
809
+ 'c6in',
810
+ 'c7a',
811
+ 'c7g',
812
+ 'c7gd',
813
+ 'c7gn',
814
+ 'c7i',
815
+ 'c7i-flex',
816
+ 'c8g',
817
+ 'c8gd',
818
+ 'cax',
819
+ 'ccx',
820
+ 'cpx',
821
+ 'cx',
822
+ 'd2',
823
+ 'd3',
824
+ 'd3en',
825
+ 'dl1',
826
+ 'dl2q',
827
+ 'e2',
828
+ 'f1',
829
+ 'f2',
830
+ 'g1',
831
+ 'g2',
832
+ 'g4ad',
833
+ 'g4dn',
834
+ 'g5',
835
+ 'g5g',
836
+ 'g6',
837
+ 'g6e',
838
+ 'gr6',
839
+ 'h1',
840
+ 'h3',
841
+ 'hpc6a',
842
+ 'hpc6id',
843
+ 'hpc7a',
844
+ 'hpc7g',
845
+ 'i2',
846
+ 'i3',
847
+ 'i3en',
848
+ 'i4g',
849
+ 'i4i',
850
+ 'i7i',
851
+ 'i7ie',
852
+ 'i8g',
853
+ 'im4gn',
854
+ 'inf1',
855
+ 'inf2',
856
+ 'is4gen',
857
+ 'm1',
858
+ 'm2',
859
+ 'm3',
860
+ 'm4',
861
+ 'm5',
862
+ 'm5a',
863
+ 'm5ad',
864
+ 'm5d',
865
+ 'm5dn',
866
+ 'm5n',
867
+ 'm5zn',
868
+ 'm6a',
869
+ 'm6g',
870
+ 'm6gd',
871
+ 'm6i',
872
+ 'm6id',
873
+ 'm6idn',
874
+ 'm6in',
875
+ 'm7a',
876
+ 'm7g',
877
+ 'm7gd',
878
+ 'm7i',
879
+ 'm7i-flex',
880
+ 'm8g',
881
+ 'm8gd',
882
+ 'n1',
883
+ 'n2',
884
+ 'n2d',
885
+ 'n4',
886
+ 'p3',
887
+ 'p3dn',
888
+ 'p4d',
889
+ 'p4de',
890
+ 'p5',
891
+ 'p5e',
892
+ 'p5en',
893
+ 'p6-b200',
894
+ 'r3',
895
+ 'r4',
896
+ 'r5',
897
+ 'r5a',
898
+ 'r5ad',
899
+ 'r5b',
900
+ 'r5d',
901
+ 'r5dn',
902
+ 'r5n',
903
+ 'r6a',
904
+ 'r6g',
905
+ 'r6gd',
906
+ 'r6i',
907
+ 'r6id',
908
+ 'r6idn',
909
+ 'r6in',
910
+ 'r7a',
911
+ 'r7g',
912
+ 'r7gd',
913
+ 'r7i',
914
+ 'r7iz',
915
+ 'r8g',
916
+ 'r8gd',
917
+ 't2',
918
+ 't2a',
919
+ 't2d',
920
+ 't3',
921
+ 't3a',
922
+ 't4g',
923
+ 'trn1',
924
+ 'trn1n',
925
+ 'u-3tb1',
926
+ 'u-6tb1',
927
+ 'u7i-12tb',
928
+ 'u7i-6tb',
929
+ 'u7i-8tb',
930
+ 'u7in-16tb',
931
+ 'u7in-24tb',
932
+ 'u7in-32tb',
933
+ 'vt1',
934
+ 'x1',
935
+ 'x1e',
936
+ 'x2gd',
937
+ 'x2idn',
938
+ 'x2iedn',
939
+ 'x2iezn',
940
+ 'x4',
941
+ 'x8g',
942
+ 'z1d',
943
+ 'z3'
944
+ ])).optional(),
945
+ 'topology.kubernetes.io/region': z.array(z.enum([
946
+ 'africa-south1',
947
+ 'ap-northeast-1',
948
+ 'ap-northeast-2',
949
+ 'ap-northeast-3',
950
+ 'ap-south-1',
951
+ 'ap-southeast-1',
952
+ 'ap-southeast-2',
953
+ 'ash',
954
+ 'asia-east1',
955
+ 'asia-east2',
956
+ 'asia-northeast1',
957
+ 'asia-northeast2',
958
+ 'asia-northeast3',
959
+ 'asia-south1',
960
+ 'asia-south2',
961
+ 'asia-southeast1',
962
+ 'asia-southeast2',
963
+ 'australia-southeast1',
964
+ 'australia-southeast2',
965
+ 'ca-central-1',
966
+ 'eu-central-1',
967
+ 'eu-central-2',
968
+ 'eu-north-1',
969
+ 'eu-west-1',
970
+ 'eu-west-2',
971
+ 'eu-west-3',
972
+ 'europe-central2',
973
+ 'europe-north1',
974
+ 'europe-southwest1',
975
+ 'europe-west1',
976
+ 'europe-west10',
977
+ 'europe-west12',
978
+ 'europe-west2',
979
+ 'europe-west3',
980
+ 'europe-west4',
981
+ 'europe-west6',
982
+ 'europe-west8',
983
+ 'europe-west9',
984
+ 'fsn1',
985
+ 'hel1',
986
+ 'hil',
987
+ 'me-central1',
988
+ 'me-central2',
989
+ 'me-west1',
990
+ 'nbg1',
991
+ 'northamerica-northeast1',
992
+ 'northamerica-northeast2',
993
+ 'sa-east-1',
994
+ 'sin',
995
+ 'southamerica-east1',
996
+ 'southamerica-west1',
997
+ 'us-central1',
998
+ 'us-east-1',
999
+ 'us-east-2',
1000
+ 'us-east1',
1001
+ 'us-east4',
1002
+ 'us-east5',
1003
+ 'us-south1',
1004
+ 'us-west-1',
1005
+ 'us-west-2',
1006
+ 'us-west1',
1007
+ 'us-west2',
1008
+ 'us-west3',
1009
+ 'us-west4'
1010
+ ])).optional()
1011
+ }).optional(),
1012
+ scalingProfile: z.enum(['aggressive', 'conservative'])
186
1013
  });
187
1014
  export const zInvite = z.object({
188
1015
  id: z.string().optional(),
189
- organization_id: z.string().uuid().optional(),
190
- date_created: z.string().datetime(),
191
- email: z.string().email().optional(),
1016
+ organization_id: z.uuid().optional(),
1017
+ date_created: z.iso.datetime(),
1018
+ email: z.email().optional(),
192
1019
  code: z.string().optional()
193
1020
  });
194
1021
  export const zInvoice = z.object({
195
- id: z.string().uuid().optional(),
196
- organizationId: z.string().uuid().optional(),
197
- status: z.enum([
198
- 'DRAFT',
199
- 'COMMITTED',
200
- 'VOID'
201
- ]).optional(),
202
- amount: z.number().optional(),
203
- currency: z.enum([
204
- 'AED',
205
- 'AFN',
206
- 'ALL',
207
- 'AMD',
208
- 'ANG',
209
- 'AOA',
210
- 'ARS',
211
- 'AUD',
212
- 'AWG',
213
- 'AZN',
214
- 'BAM',
215
- 'BBD',
216
- 'BDT',
217
- 'BGN',
218
- 'BHD',
219
- 'BIF',
220
- 'BMD',
221
- 'BND',
222
- 'BOB',
223
- 'BRL',
224
- 'BSD',
225
- 'BTN',
226
- 'BWP',
227
- 'BYR',
228
- 'BZD',
229
- 'CAD',
230
- 'CDF',
231
- 'CHF',
232
- 'CLP',
233
- 'CNY',
234
- 'COP',
235
- 'CRC',
236
- 'CUC',
237
- 'CUP',
238
- 'CVE',
239
- 'CZK',
240
- 'DJF',
241
- 'DKK',
242
- 'DOP',
243
- 'DZD',
244
- 'EGP',
245
- 'ERN',
246
- 'ETB',
247
- 'EUR',
248
- 'FJD',
249
- 'FKP',
250
- 'GBP',
251
- 'GEL',
252
- 'GGP',
253
- 'GHS',
254
- 'GIP',
255
- 'GMD',
256
- 'GNF',
257
- 'GTQ',
258
- 'GYD',
259
- 'HKD',
260
- 'HNL',
261
- 'HRK',
262
- 'HTG',
263
- 'HUF',
264
- 'IDR',
265
- 'ILS',
266
- 'IMP',
267
- 'INR',
268
- 'IQD',
269
- 'IRR',
270
- 'ISK',
271
- 'JEP',
272
- 'JMD',
273
- 'JOD',
274
- 'JPY',
275
- 'KES',
276
- 'KGS',
277
- 'KHR',
278
- 'KMF',
279
- 'KPW',
280
- 'KRW',
281
- 'KWD',
282
- 'KYD',
283
- 'KZT',
284
- 'LAK',
285
- 'LBP',
286
- 'LKR',
287
- 'LRD',
288
- 'LSL',
289
- 'LTL',
290
- 'LVL',
291
- 'LYD',
292
- 'MAD',
293
- 'MDL',
294
- 'MGA',
295
- 'MKD',
296
- 'MMK',
297
- 'MNT',
298
- 'MOP',
299
- 'MRO',
300
- 'MUR',
301
- 'MVR',
302
- 'MWK',
303
- 'MXN',
304
- 'MYR',
305
- 'MZN',
306
- 'NAD',
307
- 'NGN',
308
- 'NIO',
309
- 'NOK',
310
- 'NPR',
311
- 'NZD',
312
- 'OMR',
313
- 'PAB',
314
- 'PEN',
315
- 'PGK',
316
- 'PHP',
317
- 'PKR',
318
- 'PLN',
319
- 'PYG',
320
- 'QAR',
321
- 'RON',
322
- 'RSD',
323
- 'RUB',
324
- 'RWF',
325
- 'SAR',
326
- 'SBD',
327
- 'SCR',
328
- 'SDG',
329
- 'SEK',
330
- 'SGD',
331
- 'SHP',
332
- 'SLL',
333
- 'SOS',
334
- 'SPL',
335
- 'SRD',
336
- 'STD',
337
- 'SVC',
338
- 'SYP',
339
- 'SZL',
340
- 'THB',
341
- 'TJS',
342
- 'TMT',
343
- 'TND',
344
- 'TOP',
345
- 'TRY',
346
- 'TTD',
347
- 'TVD',
348
- 'TWD',
349
- 'TZS',
350
- 'UAH',
351
- 'UGX',
352
- 'USD',
353
- 'UYU',
354
- 'UZS',
355
- 'VEF',
356
- 'VND',
357
- 'VUV',
358
- 'WST',
359
- 'XAF',
360
- 'XCD',
361
- 'XDR',
362
- 'XOF',
363
- 'XPF',
364
- 'YER',
365
- 'ZAR',
366
- 'ZMW',
367
- 'ZWD',
368
- 'BTC'
369
- ]).optional(),
370
- creditAdj: z.number().optional(),
371
- refundAdj: z.number().optional(),
372
- invoiceDate: z.string().optional(),
373
- targetDate: z.string().optional(),
374
- invoiceNumber: z.string().optional(),
375
- balance: z.number().optional(),
376
- bundleKeys: z.string().optional(),
377
- credits: z.array(z.object({
378
- id: z.string().uuid().optional(),
379
- linkedInvoiceItemId: z.string().uuid().optional(),
380
- productName: z.string().optional(),
381
- planName: z.string().optional(),
382
- phaseName: z.string().optional(),
383
- usageName: z.string().optional(),
384
- prettyProductName: z.string().optional(),
385
- prettyPlanName: z.string().optional(),
386
- prettyPhaseName: z.string().optional(),
387
- prettyUsageName: z.string().optional(),
388
- itemType: z.enum([
389
- 'EXTERNAL_CHARGE',
390
- 'FIXED',
391
- 'RECURRING',
392
- 'REPAIR_ADJ',
393
- 'CBA_ADJ',
394
- 'CREDIT_ADJ',
395
- 'ITEM_ADJ',
396
- 'USAGE',
397
- 'TAX',
398
- 'PARENT_SUMMARY'
399
- ]).optional(),
400
- description: z.string().optional(),
401
- startDate: z.string().optional(),
402
- endDate: z.string().optional(),
403
- amount: z.number().optional(),
404
- rate: z.number().optional(),
405
- currency: z.enum([
406
- 'AED',
407
- 'AFN',
408
- 'ALL',
409
- 'AMD',
410
- 'ANG',
411
- 'AOA',
412
- 'ARS',
413
- 'AUD',
414
- 'AWG',
415
- 'AZN',
416
- 'BAM',
417
- 'BBD',
418
- 'BDT',
419
- 'BGN',
420
- 'BHD',
421
- 'BIF',
422
- 'BMD',
423
- 'BND',
424
- 'BOB',
425
- 'BRL',
426
- 'BSD',
427
- 'BTN',
428
- 'BWP',
429
- 'BYR',
430
- 'BZD',
431
- 'CAD',
432
- 'CDF',
433
- 'CHF',
434
- 'CLP',
435
- 'CNY',
436
- 'COP',
437
- 'CRC',
438
- 'CUC',
439
- 'CUP',
440
- 'CVE',
441
- 'CZK',
442
- 'DJF',
443
- 'DKK',
444
- 'DOP',
445
- 'DZD',
446
- 'EGP',
447
- 'ERN',
448
- 'ETB',
449
- 'EUR',
450
- 'FJD',
451
- 'FKP',
452
- 'GBP',
453
- 'GEL',
454
- 'GGP',
455
- 'GHS',
456
- 'GIP',
457
- 'GMD',
458
- 'GNF',
459
- 'GTQ',
460
- 'GYD',
461
- 'HKD',
462
- 'HNL',
463
- 'HRK',
464
- 'HTG',
465
- 'HUF',
466
- 'IDR',
467
- 'ILS',
468
- 'IMP',
469
- 'INR',
470
- 'IQD',
471
- 'IRR',
472
- 'ISK',
473
- 'JEP',
474
- 'JMD',
475
- 'JOD',
476
- 'JPY',
477
- 'KES',
478
- 'KGS',
479
- 'KHR',
480
- 'KMF',
481
- 'KPW',
482
- 'KRW',
483
- 'KWD',
484
- 'KYD',
485
- 'KZT',
486
- 'LAK',
487
- 'LBP',
488
- 'LKR',
489
- 'LRD',
490
- 'LSL',
491
- 'LTL',
492
- 'LVL',
493
- 'LYD',
494
- 'MAD',
495
- 'MDL',
496
- 'MGA',
497
- 'MKD',
498
- 'MMK',
499
- 'MNT',
500
- 'MOP',
501
- 'MRO',
502
- 'MUR',
503
- 'MVR',
504
- 'MWK',
505
- 'MXN',
506
- 'MYR',
507
- 'MZN',
508
- 'NAD',
509
- 'NGN',
510
- 'NIO',
511
- 'NOK',
512
- 'NPR',
513
- 'NZD',
514
- 'OMR',
515
- 'PAB',
516
- 'PEN',
517
- 'PGK',
518
- 'PHP',
519
- 'PKR',
520
- 'PLN',
521
- 'PYG',
522
- 'QAR',
523
- 'RON',
524
- 'RSD',
525
- 'RUB',
526
- 'RWF',
527
- 'SAR',
528
- 'SBD',
529
- 'SCR',
530
- 'SDG',
531
- 'SEK',
532
- 'SGD',
533
- 'SHP',
534
- 'SLL',
535
- 'SOS',
536
- 'SPL',
537
- 'SRD',
538
- 'STD',
539
- 'SVC',
540
- 'SYP',
541
- 'SZL',
542
- 'THB',
543
- 'TJS',
544
- 'TMT',
545
- 'TND',
546
- 'TOP',
547
- 'TRY',
548
- 'TTD',
549
- 'TVD',
550
- 'TWD',
551
- 'TZS',
552
- 'UAH',
553
- 'UGX',
554
- 'USD',
555
- 'UYU',
556
- 'UZS',
557
- 'VEF',
558
- 'VND',
559
- 'VUV',
560
- 'WST',
561
- 'XAF',
562
- 'XCD',
563
- 'XDR',
564
- 'XOF',
565
- 'XPF',
566
- 'YER',
567
- 'ZAR',
568
- 'ZMW',
569
- 'ZWD',
570
- 'BTC'
571
- ]).optional(),
572
- quantity: z.number().optional(),
573
- itemDetails: z.string().optional(),
574
- catalogEffectiveDate: z.string().optional(),
575
- childItems: z.array(z.unknown()).optional()
576
- })).optional(),
577
- items: z.array(z.object({
578
- id: z.string().uuid().optional(),
579
- linkedInvoiceItemId: z.string().uuid().optional(),
580
- productName: z.string().optional(),
581
- planName: z.string().optional(),
582
- phaseName: z.string().optional(),
583
- usageName: z.string().optional(),
584
- prettyProductName: z.string().optional(),
585
- prettyPlanName: z.string().optional(),
586
- prettyPhaseName: z.string().optional(),
587
- prettyUsageName: z.string().optional(),
588
- itemType: z.enum([
589
- 'EXTERNAL_CHARGE',
590
- 'FIXED',
591
- 'RECURRING',
592
- 'REPAIR_ADJ',
593
- 'CBA_ADJ',
594
- 'CREDIT_ADJ',
595
- 'ITEM_ADJ',
596
- 'USAGE',
597
- 'TAX',
598
- 'PARENT_SUMMARY'
599
- ]).optional(),
600
- description: z.string().optional(),
601
- startDate: z.string().optional(),
602
- endDate: z.string().optional(),
603
- amount: z.number().optional(),
604
- rate: z.number().optional(),
605
- currency: z.enum([
606
- 'AED',
607
- 'AFN',
608
- 'ALL',
609
- 'AMD',
610
- 'ANG',
611
- 'AOA',
612
- 'ARS',
613
- 'AUD',
614
- 'AWG',
615
- 'AZN',
616
- 'BAM',
617
- 'BBD',
618
- 'BDT',
619
- 'BGN',
620
- 'BHD',
621
- 'BIF',
622
- 'BMD',
623
- 'BND',
624
- 'BOB',
625
- 'BRL',
626
- 'BSD',
627
- 'BTN',
628
- 'BWP',
629
- 'BYR',
630
- 'BZD',
631
- 'CAD',
632
- 'CDF',
633
- 'CHF',
634
- 'CLP',
635
- 'CNY',
636
- 'COP',
637
- 'CRC',
638
- 'CUC',
639
- 'CUP',
640
- 'CVE',
641
- 'CZK',
642
- 'DJF',
643
- 'DKK',
644
- 'DOP',
645
- 'DZD',
646
- 'EGP',
647
- 'ERN',
648
- 'ETB',
649
- 'EUR',
650
- 'FJD',
651
- 'FKP',
652
- 'GBP',
653
- 'GEL',
654
- 'GGP',
655
- 'GHS',
656
- 'GIP',
657
- 'GMD',
658
- 'GNF',
659
- 'GTQ',
660
- 'GYD',
661
- 'HKD',
662
- 'HNL',
663
- 'HRK',
664
- 'HTG',
665
- 'HUF',
666
- 'IDR',
667
- 'ILS',
668
- 'IMP',
669
- 'INR',
670
- 'IQD',
671
- 'IRR',
672
- 'ISK',
673
- 'JEP',
674
- 'JMD',
675
- 'JOD',
676
- 'JPY',
677
- 'KES',
678
- 'KGS',
679
- 'KHR',
680
- 'KMF',
681
- 'KPW',
682
- 'KRW',
683
- 'KWD',
684
- 'KYD',
685
- 'KZT',
686
- 'LAK',
687
- 'LBP',
688
- 'LKR',
689
- 'LRD',
690
- 'LSL',
691
- 'LTL',
692
- 'LVL',
693
- 'LYD',
694
- 'MAD',
695
- 'MDL',
696
- 'MGA',
697
- 'MKD',
698
- 'MMK',
699
- 'MNT',
700
- 'MOP',
701
- 'MRO',
702
- 'MUR',
703
- 'MVR',
704
- 'MWK',
705
- 'MXN',
706
- 'MYR',
707
- 'MZN',
708
- 'NAD',
709
- 'NGN',
710
- 'NIO',
711
- 'NOK',
712
- 'NPR',
713
- 'NZD',
714
- 'OMR',
715
- 'PAB',
716
- 'PEN',
717
- 'PGK',
718
- 'PHP',
719
- 'PKR',
720
- 'PLN',
721
- 'PYG',
722
- 'QAR',
723
- 'RON',
724
- 'RSD',
725
- 'RUB',
726
- 'RWF',
727
- 'SAR',
728
- 'SBD',
729
- 'SCR',
730
- 'SDG',
731
- 'SEK',
732
- 'SGD',
733
- 'SHP',
734
- 'SLL',
735
- 'SOS',
736
- 'SPL',
737
- 'SRD',
738
- 'STD',
739
- 'SVC',
740
- 'SYP',
741
- 'SZL',
742
- 'THB',
743
- 'TJS',
744
- 'TMT',
745
- 'TND',
746
- 'TOP',
747
- 'TRY',
748
- 'TTD',
749
- 'TVD',
750
- 'TWD',
751
- 'TZS',
752
- 'UAH',
753
- 'UGX',
754
- 'USD',
755
- 'UYU',
756
- 'UZS',
757
- 'VEF',
758
- 'VND',
759
- 'VUV',
760
- 'WST',
761
- 'XAF',
762
- 'XCD',
763
- 'XDR',
764
- 'XOF',
765
- 'XPF',
766
- 'YER',
767
- 'ZAR',
768
- 'ZMW',
769
- 'ZWD',
770
- 'BTC'
771
- ]).optional(),
772
- quantity: z.number().optional(),
773
- itemDetails: z.string().optional(),
774
- catalogEffectiveDate: z.string().optional(),
775
- childItems: z.array(z.unknown()).optional()
776
- })).optional()
1022
+ id: z.string().optional(),
1023
+ number: z.string().optional(),
1024
+ status: z.string().optional(),
1025
+ total: z.number().optional(),
1026
+ currency: z.string().optional(),
1027
+ created: z.iso.datetime(),
1028
+ period_start: z.iso.datetime(),
1029
+ period_end: z.iso.datetime(),
1030
+ invoice_pdf: z.string().optional()
777
1031
  });
778
- export const zOrganizationContactInfo = z.object({
779
- address1: z.string().optional(),
780
- address2: z.string().optional(),
781
- postalCode: z.string().optional(),
782
- city: z.string().optional(),
783
- state: z.string().optional(),
784
- country: z.string().optional(),
785
- phone: z.string().optional(),
786
- email: z.string().email(),
787
- first_name: z.string(),
788
- last_name: z.string()
1032
+ export const zMarketplaceListingFiles = z.object({
1033
+ chartYaml: z.string().optional(),
1034
+ valuesYaml: z.string().optional(),
1035
+ valuesSchemaJson: z.string().optional()
1036
+ });
1037
+ export const zMarketplaceListing = z.object({
1038
+ name: z.string(),
1039
+ 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-]+)*))?$/)),
1040
+ 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-]+)*))?$/)),
1041
+ latestVersion: z.string(),
1042
+ metadata: z.object({
1043
+ name: z.string(),
1044
+ version: z.string(),
1045
+ description: z.string().optional(),
1046
+ appVersion: z.string().optional(),
1047
+ apiVersion: z.string().optional(),
1048
+ keywords: z.array(z.string()).optional(),
1049
+ home: z.string().optional(),
1050
+ icon: z.string().optional(),
1051
+ sources: z.array(z.string()).optional(),
1052
+ maintainers: z.array(z.object({
1053
+ name: z.string(),
1054
+ email: z.string().optional()
1055
+ })).optional()
1056
+ }).optional()
789
1057
  });
790
1058
  export const zOrganizationCreateInput = z.object({
791
- 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,}$/),
792
- contactInfo: z.object({
793
- address1: z.string().optional(),
794
- address2: z.string().optional(),
795
- postalCode: z.string().optional(),
796
- city: z.string().optional(),
797
- state: z.string().optional(),
798
- country: z.string().optional(),
799
- phone: z.string().optional(),
800
- email: z.string().email(),
801
- first_name: z.string(),
802
- last_name: z.string()
803
- }),
1059
+ type: z.enum(['business', 'personal']),
1060
+ email: z.email(),
1061
+ first_name: z.string().min(1),
1062
+ last_name: z.string().min(1),
1063
+ 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,}$/),
804
1064
  password: z.string().min(8)
805
1065
  });
1066
+ export const zOrganizationCreateOutput = z.object({
1067
+ id: z.string()
1068
+ });
806
1069
  export const zOrganization = z.object({
807
- 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,}$/),
808
- contactInfo: z.object({
809
- address1: z.string().optional(),
810
- address2: z.string().optional(),
811
- postalCode: z.string().optional(),
812
- city: z.string().optional(),
813
- state: z.string().optional(),
814
- country: z.string().optional(),
815
- phone: z.string().optional(),
816
- email: z.string().email(),
817
- first_name: z.string(),
818
- last_name: z.string()
819
- }),
820
- id: z.string().uuid(),
821
- date_created: z.string().datetime(),
1070
+ id: z.uuid(),
1071
+ name: z.string().min(2).max(120).optional(),
1072
+ type: z.enum(['business', 'personal']),
1073
+ date_created: z.iso.datetime(),
822
1074
  quota: z.object({
823
- basic_clusters_max: z.number().int().gte(0),
824
- basic_clusters_available: z.number().int(),
825
- pro_clusters_max: z.number().int().gte(0),
826
- pro_clusters_available: z.number().int(),
827
- fleets_max: z.number().int().gte(0),
828
- managed_fleets_cpu_max: z.number().int().gte(0),
1075
+ basic_clusters_max: z.int().gte(0),
1076
+ basic_clusters_available: z.int(),
1077
+ pro_clusters_max: z.int().gte(0),
1078
+ pro_clusters_available: z.int(),
1079
+ fleets_max: z.int().gte(0),
829
1080
  cluster_tiers: z.array(z.string()).min(0),
830
1081
  regions: z.array(z.string()).min(1),
831
1082
  versions: z.array(z.object({
832
1083
  id: z.string(),
833
1084
  label: z.string()
834
- })).min(1)
1085
+ })).min(1),
1086
+ cfcr_storage_gb: z.int().gte(-1)
835
1087
  }),
836
- pending_actions: z.array(z.enum([
837
- 'signup-billing-address',
838
- 'signup-payment-method',
839
- 'signup-invite-team',
840
- 'signup-create-cluster'
841
- ])),
842
1088
  status: z.enum([
843
1089
  'active',
844
1090
  'closed',
845
1091
  'suspended'
1092
+ ]),
1093
+ verification: z.enum([
1094
+ 'none',
1095
+ 'submitted',
1096
+ 'verified'
846
1097
  ])
847
1098
  });
848
- export const zOrganizationUpdateInput = z.object({
849
- 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,}$/).optional(),
850
- contactInfo: z.object({
851
- address1: z.string().optional(),
852
- address2: z.string().optional(),
853
- postalCode: z.string().optional(),
854
- city: z.string().optional(),
855
- state: z.string().optional(),
856
- country: z.string().optional(),
857
- phone: z.string().optional(),
858
- email: z.string().email(),
859
- first_name: z.string(),
860
- last_name: z.string()
861
- })
862
- });
863
1099
  export const zPaymentMethod = z.object({
864
- id: z.string().uuid(),
865
- setup: z.boolean(),
1100
+ id: z.string(),
866
1101
  type: z.enum([
867
- 'card'
1102
+ 'card',
1103
+ 'sepa_debit',
1104
+ 'bank_transfer'
868
1105
  ]),
869
1106
  last4: z.string(),
870
- exp_month: z.number().int().gte(1).lte(12),
871
- exp_year: z.number().int().gte(2024),
872
- brand: z.enum([
873
- 'amex',
874
- 'diners',
875
- 'discover',
876
- 'eftpos_au',
877
- 'jcb',
878
- 'mastercard',
879
- 'unionpay',
880
- 'visa',
881
- 'unknown'
882
- ])
1107
+ exp_month: z.int().gte(1).lte(12),
1108
+ exp_year: z.int(),
1109
+ brand: z.string(),
1110
+ iban: z.string(),
1111
+ bic: z.string(),
1112
+ account_holder_name: z.string(),
1113
+ is_default: z.boolean()
1114
+ });
1115
+ export const zPlatformQuota = z.object({
1116
+ basic_clusters_max: z.int().gte(0),
1117
+ basic_clusters_available: z.int(),
1118
+ pro_clusters_max: z.int().gte(0),
1119
+ pro_clusters_available: z.int(),
1120
+ fleets_max: z.int().gte(0),
1121
+ cluster_tiers: z.array(z.string()).min(0),
1122
+ regions: z.array(z.string()).min(1),
1123
+ versions: z.array(z.object({
1124
+ id: z.string(),
1125
+ label: z.string()
1126
+ })).min(1),
1127
+ cfcr_storage_gb: z.int().gte(-1)
1128
+ });
1129
+ export const zRegistryRepository = z.object({
1130
+ name: z.string(),
1131
+ region: z.string(),
1132
+ uri: z.string()
1133
+ });
1134
+ export const zRegistryRepositoryWithTags = z.object({
1135
+ name: z.string(),
1136
+ region: z.string(),
1137
+ uri: z.string(),
1138
+ tags: z.array(z.object({
1139
+ name: z.string(),
1140
+ size: z.number(),
1141
+ mediaType: z.string().optional(),
1142
+ platforms: z.array(z.string()).optional()
1143
+ })),
1144
+ totalSize: z.number()
1145
+ });
1146
+ export const zRegistryTag = z.object({
1147
+ name: z.string(),
1148
+ digest: z.string(),
1149
+ mediaType: z.string().optional(),
1150
+ config: z.object({
1151
+ size: z.number()
1152
+ }).optional(),
1153
+ layers: z.array(z.object({
1154
+ digest: z.string().optional(),
1155
+ size: z.number()
1156
+ })).optional(),
1157
+ manifests: z.array(z.object({
1158
+ digest: z.string(),
1159
+ platform: z.object({
1160
+ architecture: z.string(),
1161
+ os: z.string(),
1162
+ variant: z.string().optional()
1163
+ }).optional(),
1164
+ layers: z.array(z.object({
1165
+ digest: z.string().optional(),
1166
+ size: z.number()
1167
+ })).optional(),
1168
+ size: z.number().optional()
1169
+ })).optional(),
1170
+ size: z.number(),
1171
+ region: z.string(),
1172
+ repository: z.string(),
1173
+ uri: z.string()
1174
+ });
1175
+ export const zTicketAttachment = z.object({
1176
+ id: z.string(),
1177
+ filename: z.string(),
1178
+ content_type: z.string(),
1179
+ size: z.int()
1180
+ });
1181
+ export const zTicketCreateInput = z.object({
1182
+ category: z.enum([
1183
+ 'billing',
1184
+ 'technical',
1185
+ 'general'
1186
+ ]),
1187
+ body: z.string().min(1).max(50000).regex(/\S/),
1188
+ properties: z.record(z.string(), z.unknown()).optional()
1189
+ });
1190
+ export const zTicketListResponse = z.object({
1191
+ items: z.array(z.object({
1192
+ id: z.string(),
1193
+ status: z.enum([
1194
+ 'waiting_on_us',
1195
+ 'waiting_on_user',
1196
+ 'closed'
1197
+ ]),
1198
+ category: z.enum([
1199
+ 'billing',
1200
+ 'technical',
1201
+ 'general'
1202
+ ]),
1203
+ summary: z.string(),
1204
+ closed_at: z.iso.datetime().optional(),
1205
+ date_created: z.iso.datetime(),
1206
+ date_updated: z.iso.datetime(),
1207
+ messages: z.array(z.object({
1208
+ id: z.string(),
1209
+ type: z.enum(['customer_reply', 'agent_reply']),
1210
+ body: z.string(),
1211
+ author_first_name: z.string().optional(),
1212
+ author_last_name: z.string().optional(),
1213
+ attachments: z.array(z.object({
1214
+ id: z.string(),
1215
+ filename: z.string(),
1216
+ content_type: z.string(),
1217
+ size: z.int()
1218
+ })).optional(),
1219
+ date_created: z.iso.datetime()
1220
+ })).optional()
1221
+ }))
1222
+ });
1223
+ export const zTicketMessageInput = z.object({
1224
+ body: z.string().min(1).max(50000).regex(/\S/)
1225
+ });
1226
+ export const zTicketMessage = z.object({
1227
+ id: z.string(),
1228
+ type: z.enum(['customer_reply', 'agent_reply']),
1229
+ body: z.string(),
1230
+ author_first_name: z.string().optional(),
1231
+ author_last_name: z.string().optional(),
1232
+ attachments: z.array(z.object({
1233
+ id: z.string(),
1234
+ filename: z.string(),
1235
+ content_type: z.string(),
1236
+ size: z.int()
1237
+ })).optional(),
1238
+ date_created: z.iso.datetime()
1239
+ });
1240
+ export const zTicket = z.object({
1241
+ id: z.string(),
1242
+ status: z.enum([
1243
+ 'waiting_on_us',
1244
+ 'waiting_on_user',
1245
+ 'closed'
1246
+ ]),
1247
+ category: z.enum([
1248
+ 'billing',
1249
+ 'technical',
1250
+ 'general'
1251
+ ]),
1252
+ summary: z.string(),
1253
+ closed_at: z.iso.datetime().optional(),
1254
+ date_created: z.iso.datetime(),
1255
+ date_updated: z.iso.datetime(),
1256
+ messages: z.array(z.object({
1257
+ id: z.string(),
1258
+ type: z.enum(['customer_reply', 'agent_reply']),
1259
+ body: z.string(),
1260
+ author_first_name: z.string().optional(),
1261
+ author_last_name: z.string().optional(),
1262
+ attachments: z.array(z.object({
1263
+ id: z.string(),
1264
+ filename: z.string(),
1265
+ content_type: z.string(),
1266
+ size: z.int()
1267
+ })).optional(),
1268
+ date_created: z.iso.datetime()
1269
+ })).optional()
883
1270
  });
884
1271
  export const zTokenCreateInput = z.object({
885
1272
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
886
- role: z.enum([
887
- 'Administrator',
888
- 'User'
889
- ])
1273
+ role: z.enum(['Administrator', 'User'])
890
1274
  });
891
1275
  export const zToken = z.object({
892
1276
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
893
- role: z.enum([
894
- 'Administrator',
895
- 'User'
896
- ]),
1277
+ role: z.enum(['Administrator', 'User']),
897
1278
  id: z.string().optional(),
898
1279
  secret: z.string().optional(),
899
- date_created: z.string().datetime()
1280
+ date_created: z.iso.datetime()
900
1281
  });
901
1282
  export const zTokenUpdateInput = z.object({
902
1283
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
903
- role: z.enum([
904
- 'Administrator',
905
- 'User'
906
- ]).optional()
1284
+ role: z.enum(['Administrator', 'User']).optional()
1285
+ });
1286
+ export const zUsageFacets = z.object({
1287
+ cluster_id: z.array(z.string()).optional(),
1288
+ product: z.array(z.string()).optional()
1289
+ });
1290
+ export const zUsageResponse = z.object({
1291
+ data: z.array(z.object({
1292
+ hour: z.string(),
1293
+ cluster_id: z.string(),
1294
+ product: z.string(),
1295
+ value: z.number(),
1296
+ price: z.number(),
1297
+ total: z.number()
1298
+ })),
1299
+ facets: z.object({
1300
+ cluster_id: z.array(z.string()).optional(),
1301
+ product: z.array(z.string()).optional()
1302
+ })
907
1303
  });
908
1304
  export const zUsage = z.object({
909
- id: z.string().uuid(),
910
- task_id: z.string().uuid(),
911
- unit: z.string(),
912
- amount: z.number()
1305
+ hour: z.string(),
1306
+ cluster_id: z.string(),
1307
+ product: z.string(),
1308
+ value: z.number(),
1309
+ price: z.number(),
1310
+ total: z.number()
913
1311
  });
914
1312
  export const zUserCreateInput = z.object({
915
- email: z.string().email(),
1313
+ email: z.email(),
916
1314
  first_name: z.string().min(1).max(50),
917
1315
  last_name: z.string().min(1).max(50),
918
1316
  code: z.string(),
919
1317
  password: z.string().min(8),
920
- status: z.enum([
921
- 'active',
922
- 'inactive'
923
- ]).optional(),
924
- role: z.enum([
925
- 'Administrator',
926
- 'User'
927
- ]).optional()
1318
+ status: z.enum(['active', 'inactive']).optional(),
1319
+ role: z.enum(['Administrator', 'User']).optional()
928
1320
  });
929
1321
  export const zUser = z.object({
930
- email: z.string().email(),
1322
+ email: z.email(),
931
1323
  first_name: z.string().min(1).max(50),
932
1324
  last_name: z.string().min(1).max(50),
933
- role: z.enum([
934
- 'Administrator',
935
- 'User'
936
- ]),
937
- status: z.enum([
938
- 'active',
939
- 'inactive'
940
- ]),
941
- id: z.string().uuid(),
942
- date_created: z.string().datetime(),
943
- cluster_permissions: z.array(z.object({
944
- cluster_id: z.string().uuid(),
945
- permissions: z.enum([
946
- 'readwrite',
947
- 'readonly'
948
- ])
949
- })).optional()
1325
+ role: z.enum(['Administrator', 'User']),
1326
+ status: z.enum(['active', 'inactive']),
1327
+ id: z.uuid(),
1328
+ date_created: z.iso.datetime()
950
1329
  });
951
1330
  export const zUserUpdateInput = z.object({
952
- email: z.string().email().optional(),
1331
+ email: z.email().optional(),
953
1332
  first_name: z.string().min(1).max(50).optional(),
954
1333
  last_name: z.string().min(1).max(50).optional(),
955
- role: z.enum([
956
- 'Administrator',
957
- 'User'
958
- ]).optional(),
959
- status: z.enum([
960
- 'active',
961
- 'inactive'
962
- ]).optional()
1334
+ role: z.enum(['Administrator', 'User']).optional(),
1335
+ status: z.enum(['active', 'inactive']).optional()
963
1336
  });
964
- export const zGetUsageResponse = z.array(zUsage);
965
- export const zGetBalanceResponse = z.number();
966
- export const zGetPaymentMethodResponse = zPaymentMethod;
1337
+ export const zGetUsageQuery = z.object({
1338
+ granularity: z.enum([
1339
+ 'hourly',
1340
+ 'daily',
1341
+ 'monthly'
1342
+ ]).optional().default('daily')
1343
+ });
1344
+ /**
1345
+ * Usage data with facets for filtering
1346
+ */
1347
+ export const zGetUsageResponse = zUsageResponse;
1348
+ /**
1349
+ * 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.
1350
+ *
1351
+ */
967
1352
  export const zGetPaymentMethodSecretResponse = z.object({
968
1353
  id: z.string().optional()
969
1354
  });
1355
+ /**
1356
+ * An array of payment methods.
1357
+ */
1358
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1359
+ export const zSetDefaultPaymentMethodPath = z.object({
1360
+ paymentMethodId: z.string()
1361
+ });
1362
+ /**
1363
+ * Default payment method updated.
1364
+ */
1365
+ export const zSetDefaultPaymentMethodResponse = z.void();
1366
+ export const zDeletePaymentMethodPath = z.object({
1367
+ paymentMethodId: z.string()
1368
+ });
1369
+ /**
1370
+ * Payment method deleted.
1371
+ */
1372
+ export const zDeletePaymentMethodResponse = z.void();
1373
+ /**
1374
+ * An array of usage records.
1375
+ */
970
1376
  export const zListInvoicesResponse = z.array(zInvoice);
971
- export const zGetInvoiceResponse = z.object({
972
- html: z.string().optional()
1377
+ /**
1378
+ * Returns a single object containing organization contact and billing address details.
1379
+ */
1380
+ export const zGetContactResponse = zBillingContact;
1381
+ export const zUpdateContactBody = zBillingContact;
1382
+ /**
1383
+ * Successfully updated. Returns updated organization details.
1384
+ */
1385
+ export const zUpdateContactResponse = zBillingContact;
1386
+ /**
1387
+ * An array of the applied promotional credits records.
1388
+ */
1389
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1390
+ export const zRedeemCreditsBody = z.object({
1391
+ code: z.string().optional()
1392
+ });
1393
+ export const zListChartsPath = z.object({
1394
+ cluster_id: z.string()
1395
+ });
1396
+ /**
1397
+ * An array of charts
1398
+ */
1399
+ export const zListChartsResponse = z.array(zChart);
1400
+ export const zCreateChartBody = zChartCreateInput;
1401
+ export const zCreateChartPath = z.object({
1402
+ cluster_id: z.string()
1403
+ });
1404
+ /**
1405
+ * Successfully created. Returns created Chart ID.
1406
+ */
1407
+ export const zCreateChartResponse = z.string();
1408
+ export const zDeleteChartPath = z.object({
1409
+ cluster_id: z.string(),
1410
+ chart_name: z.string()
1411
+ });
1412
+ /**
1413
+ * Successfully deleted.
1414
+ */
1415
+ export const zDeleteChartResponse = z.string();
1416
+ export const zGetChartPath = z.object({
1417
+ cluster_id: z.string(),
1418
+ chart_name: z.string()
1419
+ });
1420
+ /**
1421
+ * Returns a single object containing chart details.
1422
+ */
1423
+ export const zGetChartResponse = zChart;
1424
+ export const zUpdateChartBody = zChartUpdateInput;
1425
+ export const zUpdateChartPath = z.object({
1426
+ cluster_id: z.string(),
1427
+ chart_name: z.string()
1428
+ });
1429
+ /**
1430
+ * Successfully updated.
1431
+ */
1432
+ export const zUpdateChartResponse = z.string();
1433
+ export const zListFleetsPath = z.object({
1434
+ cluster_id: z.string()
973
1435
  });
1436
+ /**
1437
+ * An array of fleets
1438
+ */
974
1439
  export const zListFleetsResponse = z.array(zFleet);
1440
+ export const zCreateFleetBody = zFleetCreateInput;
1441
+ export const zCreateFleetPath = z.object({
1442
+ cluster_id: z.string()
1443
+ });
1444
+ /**
1445
+ * Successfully created. Returns created Fleet ID.
1446
+ */
975
1447
  export const zCreateFleetResponse = z.string();
1448
+ export const zDeleteFleetPath = z.object({
1449
+ cluster_id: z.string(),
1450
+ fleet_name: z.string()
1451
+ });
1452
+ /**
1453
+ * Successfully deleted.
1454
+ */
976
1455
  export const zDeleteFleetResponse = z.string();
1456
+ export const zGetFleetPath = z.object({
1457
+ cluster_id: z.string(),
1458
+ fleet_name: z.string()
1459
+ });
1460
+ /**
1461
+ * Returns a single object containing fleet details.
1462
+ */
977
1463
  export const zGetFleetResponse = zFleet;
1464
+ export const zUpdateFleetBody = zFleetUpdateInput;
1465
+ export const zUpdateFleetPath = z.object({
1466
+ cluster_id: z.string(),
1467
+ fleet_name: z.string()
1468
+ });
1469
+ /**
1470
+ * Successfully updated.
1471
+ */
978
1472
  export const zUpdateFleetResponse = z.string();
1473
+ export const zQueryClusterPath = z.object({
1474
+ cluster_id: z.string()
1475
+ });
1476
+ /**
1477
+ * An array of clusters
1478
+ */
979
1479
  export const zListClustersResponse = z.array(zCluster);
1480
+ export const zCreateClusterBody = zClusterCreateInput;
1481
+ /**
1482
+ * Successfully created. Returns created Cluster ID.
1483
+ */
980
1484
  export const zCreateClusterResponse = z.string();
1485
+ export const zDeleteClusterPath = z.object({
1486
+ cluster_id: z.string()
1487
+ });
1488
+ /**
1489
+ * Successfully deleted.
1490
+ */
981
1491
  export const zDeleteClusterResponse = z.string();
1492
+ export const zGetClusterPath = z.object({
1493
+ cluster_id: z.string()
1494
+ });
1495
+ /**
1496
+ * Returns a single object containing cluster details.
1497
+ */
982
1498
  export const zGetClusterResponse = zCluster;
1499
+ export const zUpdateClusterBody = zClusterUpdateInput;
1500
+ export const zUpdateClusterPath = z.object({
1501
+ cluster_id: z.string()
1502
+ });
1503
+ /**
1504
+ * Successfully updated. Returns updated cluster details.
1505
+ */
983
1506
  export const zUpdateClusterResponse = zCluster;
984
- export const zGetJoinInformationResponse = zCluster;
985
- export const zGetInfrastructureResponse = z.array(zInfrastructureInstance);
986
- export const zGetFacetsResponse = z.array(z.object({
987
- provider: z.array(z.string()).optional(),
988
- region: z.array(z.string()).optional(),
989
- sub_region: z.array(z.string()).optional(),
990
- csp_region: z.array(z.string()).optional(),
991
- vcpu_min: z.number().int().gte(1).optional(),
992
- vcpu_max: z.number().int().gte(1).optional(),
993
- memory_min: z.number().int().gte(0).optional(),
994
- memory_max: z.number().int().gte(0).optional(),
995
- storage_local_min: z.number().optional(),
996
- storage_local_max: z.number().optional(),
997
- accelerator_name: z.array(z.string()).optional(),
998
- accelerator_manufacturer: z.array(z.string()).optional(),
999
- accelerator_count_min: z.number().int().gte(0).optional(),
1000
- accelerator_count_max: z.number().int().gte(0).optional(),
1001
- accelerator_memory_min: z.number().optional(),
1002
- accelerator_memory_max: z.number().optional(),
1003
- price_min: z.number().optional(),
1004
- price_max: z.number().optional(),
1005
- regions_struct: z.array(z.object({
1006
- region: z.string().optional(),
1007
- sub_region: z.array(z.string()).optional()
1008
- })).optional(),
1009
- accelerators_struct: z.array(z.object({
1010
- accelerator_manufacturer: z.string().optional(),
1011
- accelerator_name: z.array(z.string()).optional()
1012
- })).optional(),
1013
- count_total: z.number().int().gte(0).optional(),
1014
- count_accelerators: z.number().int().gte(0).optional(),
1015
- count_instance_types: z.number().int().gte(0).optional(),
1016
- count_accelerators_instance_types: z.number().int().gte(0).optional()
1017
- }));
1018
- export const zGetRegionsResponse = z.object({});
1507
+ export const zGetJoinInformationPath = z.object({
1508
+ cluster_id: z.string()
1509
+ });
1510
+ /**
1511
+ * An object of cluster join information
1512
+ */
1513
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1514
+ /**
1515
+ * An array of invites
1516
+ */
1019
1517
  export const zListInvitesResponse = z.array(zInvite);
1518
+ export const zCreateInviteBody = z.object({
1519
+ email: z.string().optional()
1520
+ });
1521
+ /**
1522
+ * Successfully created. Returns created invite details.
1523
+ */
1020
1524
  export const zCreateInviteResponse = zInvite;
1525
+ export const zGetInvitePath = z.object({
1526
+ code: z.string()
1527
+ });
1528
+ /**
1529
+ * Returns a single object containing invite details.
1530
+ */
1021
1531
  export const zGetInviteResponse = zInvite;
1532
+ export const zDeleteInvitePath = z.object({
1533
+ email: z.string()
1534
+ });
1535
+ /**
1536
+ * An array of chart listings in the marketplace.
1537
+ */
1538
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1539
+ export const zGetMarketplaceChartFilesPath = z.object({
1540
+ chart_name: z.string(),
1541
+ version_channel: z.string()
1542
+ });
1543
+ /**
1544
+ * Returns an object containing the chart files for the latest matching version.
1545
+ */
1546
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1547
+ /**
1548
+ * JSON-RPC 2.0 request payload
1549
+ */
1550
+ export const zPostMcpBody = z.object({
1551
+ jsonrpc: z.string().optional(),
1552
+ method: z.string().optional(),
1553
+ id: z.union([
1554
+ z.string(),
1555
+ z.number()
1556
+ ]).optional(),
1557
+ params: z.record(z.string(), z.unknown()).optional()
1558
+ });
1559
+ /**
1560
+ * JSON-RPC 2.0 success or error response
1561
+ */
1562
+ export const zPostMcpResponse = z.object({
1563
+ jsonrpc: z.string().optional(),
1564
+ id: z.union([
1565
+ z.string(),
1566
+ z.number()
1567
+ ]).optional(),
1568
+ result: z.record(z.string(), z.unknown()).optional(),
1569
+ error: z.object({
1570
+ code: z.int().optional(),
1571
+ message: z.string().optional()
1572
+ }).optional()
1573
+ });
1574
+ /**
1575
+ * Returns a single object containing organization details.
1576
+ */
1022
1577
  export const zGetOrganizationResponse = zOrganization;
1023
- export const zCreateOrganizationResponse = zOrganization;
1024
- export const zUpdateOrganizationResponse = zOrganization;
1578
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1579
+ /**
1580
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1581
+ *
1582
+ */
1583
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1584
+ /**
1585
+ * List of repositories
1586
+ */
1587
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1588
+ export const zListTagsPath = z.object({
1589
+ region: z.string(),
1590
+ repository: z.string()
1591
+ });
1592
+ /**
1593
+ * Repository with tags
1594
+ */
1595
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1596
+ export const zDeleteTagPath = z.object({
1597
+ region: z.string(),
1598
+ repository: z.string(),
1599
+ tag: z.string()
1600
+ });
1601
+ export const zGetTagPath = z.object({
1602
+ region: z.string(),
1603
+ repository: z.string(),
1604
+ tag: z.string()
1605
+ });
1606
+ /**
1607
+ * Tag details
1608
+ */
1609
+ export const zGetTagResponse = zRegistryTag;
1610
+ /**
1611
+ * Tickets for the organization.
1612
+ */
1613
+ export const zListTicketsResponse = zTicketListResponse;
1614
+ export const zCreateTicketBody = z.object({
1615
+ payload: z.string().optional(),
1616
+ attachments: z.array(z.string()).optional()
1617
+ });
1618
+ /**
1619
+ * Ticket created.
1620
+ */
1621
+ export const zCreateTicketResponse = zTicket;
1622
+ export const zCloseTicketPath = z.object({
1623
+ ticket_id: z.string()
1624
+ });
1625
+ /**
1626
+ * Ticket closed.
1627
+ */
1628
+ export const zCloseTicketResponse = zTicket;
1629
+ export const zGetTicketPath = z.object({
1630
+ ticket_id: z.string()
1631
+ });
1632
+ /**
1633
+ * Ticket with messages (internal notes excluded).
1634
+ */
1635
+ export const zGetTicketResponse = zTicket;
1636
+ export const zReplyTicketBody = z.object({
1637
+ payload: z.string().optional(),
1638
+ attachments: z.array(z.string()).optional()
1639
+ });
1640
+ export const zReplyTicketPath = z.object({
1641
+ ticket_id: z.string()
1642
+ });
1643
+ /**
1644
+ * Reply appended.
1645
+ */
1646
+ export const zReplyTicketResponse = zTicketMessage;
1647
+ export const zGetTicketAttachmentPath = z.object({
1648
+ ticket_id: z.string(),
1649
+ attachment_id: z.string()
1650
+ });
1651
+ /**
1652
+ * Attachment binary stream.
1653
+ */
1654
+ export const zGetTicketAttachmentResponse = z.string();
1655
+ /**
1656
+ * Returns a list of access token details with masked secrets.
1657
+ */
1025
1658
  export const zListTokensResponse = z.array(zToken);
1659
+ export const zCreateTokenBody = zTokenCreateInput;
1660
+ /**
1661
+ * Successfully created. Returns created token details with unmasked/raw secret.
1662
+ */
1026
1663
  export const zCreateTokenResponse = zToken;
1664
+ export const zDeleteTokenPath = z.object({
1665
+ token_id: z.string()
1666
+ });
1667
+ export const zGetTokenPath = z.object({
1668
+ token_id: z.string()
1669
+ });
1670
+ /**
1671
+ * Returns access token details with masked secret.
1672
+ */
1027
1673
  export const zGetTokenResponse = zToken;
1674
+ export const zUpdateTokenBody = zTokenUpdateInput;
1675
+ export const zUpdateTokenPath = z.object({
1676
+ token_id: z.string()
1677
+ });
1678
+ /**
1679
+ * Successfully updated. Returns updated token details with masked secret.
1680
+ */
1028
1681
  export const zUpdateTokenResponse = zToken;
1682
+ export const zRegenerateTokenPath = z.object({
1683
+ token_id: z.string()
1684
+ });
1685
+ /**
1686
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1687
+ */
1029
1688
  export const zRegenerateTokenResponse = zToken;
1689
+ export const zListUserOrganizationsPath = z.object({
1690
+ email: z.string()
1691
+ });
1692
+ /**
1693
+ * An array of organizations the user belongs to.
1694
+ */
1030
1695
  export const zListUserOrganizationsResponse = z.array(z.object({
1031
1696
  realm: z.string().optional(),
1032
1697
  displayName: z.string().optional()
1033
1698
  }));
1699
+ /**
1700
+ * An array of users
1701
+ */
1034
1702
  export const zListUsersResponse = z.array(zUser);
1703
+ export const zCreateUserBody = zUserCreateInput;
1704
+ /**
1705
+ * Successfully created. Returns created user details.
1706
+ */
1035
1707
  export const zCreateUserResponse = zUser;
1708
+ export const zDeleteUserPath = z.object({
1709
+ user_id: z.string()
1710
+ });
1711
+ /**
1712
+ * User profile information
1713
+ */
1036
1714
  export const zDeleteUserResponse = zUser;
1715
+ export const zGetUserPath = z.object({
1716
+ user_id: z.string()
1717
+ });
1718
+ /**
1719
+ * User profile information
1720
+ */
1037
1721
  export const zGetUserResponse = zUser;
1722
+ export const zUpdateUserBody = zUserUpdateInput;
1723
+ export const zUpdateUserPath = z.object({
1724
+ user_id: z.string()
1725
+ });
1726
+ /**
1727
+ * Successfully created. Returns created user details.
1728
+ */
1038
1729
  export const zUpdateUserResponse = zUser;
1039
- export const zDeleteClusterPermissionsResponse = zUser;
1040
- export const zSetClusterPermissionsResponse = zUser;
1041
1730
  //# sourceMappingURL=zod.gen.js.map