@cloudfleet/sdk 0.0.1-bd521c7 → 0.0.1-c4175a2

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