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