@cloudfleet/sdk 0.0.1-bd28e81 → 0.0.1-bd45f1a

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