@cloudfleet/sdk 0.0.1-5cfe846 → 0.0.1-5f4550f
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 +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +217 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +121 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/utils.gen.d.ts +38 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +229 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +4 -4
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +2 -4
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +44 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +101 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +107 -0
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +79 -0
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1605 -568
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +3029 -711
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +300 -168
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +415 -336
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1825 -805
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3796 -2753
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1413 -1002
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -9
package/dist/zod.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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
|
+
type: z.enum(['business', 'personal']),
|
|
4
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(),
|
|
5
6
|
address1: z.string().optional(),
|
|
6
7
|
address2: z.string().optional(),
|
|
@@ -9,9 +10,8 @@ export const zBillingContact = z.object({
|
|
|
9
10
|
state: z.string().optional(),
|
|
10
11
|
country: z.string().optional(),
|
|
11
12
|
phone: z.string().optional(),
|
|
12
|
-
email: z.
|
|
13
|
-
|
|
14
|
-
last_name: z.string(),
|
|
13
|
+
email: z.email(),
|
|
14
|
+
individual_name: z.string(),
|
|
15
15
|
tax_id: z.string().optional(),
|
|
16
16
|
tax_id_type: z.enum([
|
|
17
17
|
'ad_nrt',
|
|
@@ -146,16 +146,12 @@ export const zBillingContact = z.object({
|
|
|
146
146
|
});
|
|
147
147
|
export const zBillingCredits = z.object({
|
|
148
148
|
id: z.string().optional(),
|
|
149
|
-
|
|
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
153
|
description: z.string().optional(),
|
|
152
|
-
|
|
153
|
-
type: z.enum([
|
|
154
|
-
'credit',
|
|
155
|
-
'discount'
|
|
156
|
-
]),
|
|
157
|
-
value: z.number(),
|
|
158
|
-
billing_period: z.string().datetime(),
|
|
154
|
+
value_total: z.number(),
|
|
159
155
|
value_remaining: z.number().optional()
|
|
160
156
|
});
|
|
161
157
|
export const zChartCreateInput = z.object({
|
|
@@ -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,28 +177,62 @@ 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
|
-
|
|
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
|
+
})
|
|
211
223
|
});
|
|
212
224
|
export const zClusterJoinInformation = z.object({
|
|
213
225
|
certificate_authority: z.string(),
|
|
214
|
-
endpoint: z.
|
|
226
|
+
endpoint: z.url(),
|
|
227
|
+
cluster_dns: z.string(),
|
|
228
|
+
pod_cidr: z.string(),
|
|
215
229
|
auth_key: z.string(),
|
|
216
230
|
bootstrap_token: z.string(),
|
|
217
231
|
versions: z.object({
|
|
218
232
|
kubernetes: z.string(),
|
|
219
233
|
tailscale: z.string(),
|
|
220
|
-
containerd: z.string()
|
|
234
|
+
containerd: z.string(),
|
|
235
|
+
nvidia_driver: z.string()
|
|
221
236
|
}),
|
|
222
237
|
third_party_api_access_config: z.object({
|
|
223
238
|
metadata_url: z.string(),
|
|
@@ -225,1200 +240,1596 @@ export const zClusterJoinInformation = z.object({
|
|
|
225
240
|
gcp_workload_identity_provider: z.string()
|
|
226
241
|
})
|
|
227
242
|
});
|
|
243
|
+
/**
|
|
244
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
245
|
+
*/
|
|
228
246
|
export const zCluster = z.object({
|
|
229
247
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
248
|
tier: z.enum([
|
|
231
249
|
'basic',
|
|
232
|
-
'pro'
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
'
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
+
}),
|
|
286
|
+
id: z.uuid(),
|
|
241
287
|
status: z.enum([
|
|
242
|
-
'active',
|
|
243
|
-
'deleted',
|
|
244
288
|
'creating',
|
|
245
289
|
'deployed',
|
|
246
|
-
'
|
|
247
|
-
'
|
|
290
|
+
'updating',
|
|
291
|
+
'disabled'
|
|
248
292
|
]),
|
|
249
293
|
endpoint: z.union([
|
|
250
|
-
z.
|
|
251
|
-
z.enum([
|
|
252
|
-
|
|
253
|
-
|
|
294
|
+
z.url(),
|
|
295
|
+
z.enum([''])
|
|
296
|
+
]).optional(),
|
|
297
|
+
endpoint_public: z.union([
|
|
298
|
+
z.url(),
|
|
299
|
+
z.enum([''])
|
|
254
300
|
]).optional(),
|
|
255
301
|
certificate_ca: z.string().optional(),
|
|
256
302
|
version_current: z.string().optional(),
|
|
257
303
|
created_at: z.string().optional(),
|
|
258
304
|
updated_at: z.string().optional(),
|
|
259
|
-
ready: z.boolean()
|
|
305
|
+
ready: z.boolean()
|
|
260
306
|
});
|
|
307
|
+
/**
|
|
308
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
309
|
+
*/
|
|
261
310
|
export const zClusterUpdateInput = z.object({
|
|
262
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
311
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
263
312
|
tier: z.enum([
|
|
264
313
|
'basic',
|
|
265
|
-
'pro'
|
|
266
|
-
|
|
267
|
-
|
|
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
|
+
})
|
|
268
336
|
});
|
|
337
|
+
/**
|
|
338
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
339
|
+
*/
|
|
269
340
|
export const zFleetCreateInput = z.object({
|
|
270
341
|
limits: z.object({
|
|
271
|
-
cpu: z.
|
|
342
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
272
343
|
}).optional(),
|
|
273
344
|
gcp: z.object({
|
|
274
|
-
enabled: z.boolean()
|
|
275
|
-
project: z.string()
|
|
345
|
+
enabled: z.boolean(),
|
|
346
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
276
347
|
}).optional(),
|
|
277
348
|
hetzner: z.object({
|
|
278
|
-
enabled: z.boolean()
|
|
279
|
-
apiKey: z.string()
|
|
349
|
+
enabled: z.boolean(),
|
|
350
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
280
351
|
}).optional(),
|
|
281
352
|
aws: z.object({
|
|
282
|
-
enabled: z.boolean()
|
|
283
|
-
controllerRoleArn: z.string()
|
|
353
|
+
enabled: z.boolean(),
|
|
354
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
284
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'),
|
|
285
592
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
286
593
|
});
|
|
594
|
+
/**
|
|
595
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
596
|
+
*/
|
|
287
597
|
export const zFleet = z.object({
|
|
288
598
|
limits: z.object({
|
|
289
|
-
cpu: z.
|
|
599
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
290
600
|
}).optional(),
|
|
291
601
|
gcp: z.object({
|
|
292
|
-
enabled: z.boolean()
|
|
293
|
-
project: z.string()
|
|
602
|
+
enabled: z.boolean(),
|
|
603
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
294
604
|
}).optional(),
|
|
295
605
|
hetzner: z.object({
|
|
296
|
-
enabled: z.boolean()
|
|
297
|
-
apiKey: z.string()
|
|
606
|
+
enabled: z.boolean(),
|
|
607
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
298
608
|
}).optional(),
|
|
299
609
|
aws: z.object({
|
|
300
|
-
enabled: z.boolean()
|
|
301
|
-
controllerRoleArn: z.string()
|
|
610
|
+
enabled: z.boolean(),
|
|
611
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
302
612
|
}).optional(),
|
|
303
|
-
|
|
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()
|
|
304
854
|
});
|
|
855
|
+
/**
|
|
856
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
857
|
+
*/
|
|
305
858
|
export const zFleetUpdateInput = z.object({
|
|
306
859
|
limits: z.object({
|
|
307
|
-
cpu: z.
|
|
860
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
308
861
|
}).optional(),
|
|
309
862
|
gcp: z.object({
|
|
310
|
-
enabled: z.boolean()
|
|
311
|
-
project: z.string()
|
|
863
|
+
enabled: z.boolean(),
|
|
864
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
312
865
|
}).optional(),
|
|
313
866
|
hetzner: z.object({
|
|
314
|
-
enabled: z.boolean()
|
|
315
|
-
apiKey: z.string()
|
|
867
|
+
enabled: z.boolean(),
|
|
868
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
316
869
|
}).optional(),
|
|
317
870
|
aws: z.object({
|
|
318
|
-
enabled: z.boolean()
|
|
319
|
-
controllerRoleArn: z.string()
|
|
320
|
-
}).optional()
|
|
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')
|
|
321
1114
|
});
|
|
322
1115
|
export const zInvite = z.object({
|
|
323
1116
|
id: z.string().optional(),
|
|
324
|
-
organization_id: z.
|
|
325
|
-
date_created: z.
|
|
326
|
-
email: z.
|
|
327
|
-
code: z.string().optional()
|
|
1117
|
+
organization_id: z.uuid().optional(),
|
|
1118
|
+
date_created: z.iso.datetime(),
|
|
1119
|
+
email: z.email().optional(),
|
|
1120
|
+
code: z.string().optional(),
|
|
1121
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
328
1122
|
});
|
|
329
1123
|
export const zInvoice = z.object({
|
|
330
|
-
id: z.string().
|
|
331
|
-
|
|
332
|
-
status: z.
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
'AOA',
|
|
345
|
-
'ARS',
|
|
346
|
-
'AUD',
|
|
347
|
-
'AWG',
|
|
348
|
-
'AZN',
|
|
349
|
-
'BAM',
|
|
350
|
-
'BBD',
|
|
351
|
-
'BDT',
|
|
352
|
-
'BGN',
|
|
353
|
-
'BHD',
|
|
354
|
-
'BIF',
|
|
355
|
-
'BMD',
|
|
356
|
-
'BND',
|
|
357
|
-
'BOB',
|
|
358
|
-
'BRL',
|
|
359
|
-
'BSD',
|
|
360
|
-
'BTN',
|
|
361
|
-
'BWP',
|
|
362
|
-
'BYR',
|
|
363
|
-
'BZD',
|
|
364
|
-
'CAD',
|
|
365
|
-
'CDF',
|
|
366
|
-
'CHF',
|
|
367
|
-
'CLP',
|
|
368
|
-
'CNY',
|
|
369
|
-
'COP',
|
|
370
|
-
'CRC',
|
|
371
|
-
'CUC',
|
|
372
|
-
'CUP',
|
|
373
|
-
'CVE',
|
|
374
|
-
'CZK',
|
|
375
|
-
'DJF',
|
|
376
|
-
'DKK',
|
|
377
|
-
'DOP',
|
|
378
|
-
'DZD',
|
|
379
|
-
'EGP',
|
|
380
|
-
'ERN',
|
|
381
|
-
'ETB',
|
|
382
|
-
'EUR',
|
|
383
|
-
'FJD',
|
|
384
|
-
'FKP',
|
|
385
|
-
'GBP',
|
|
386
|
-
'GEL',
|
|
387
|
-
'GGP',
|
|
388
|
-
'GHS',
|
|
389
|
-
'GIP',
|
|
390
|
-
'GMD',
|
|
391
|
-
'GNF',
|
|
392
|
-
'GTQ',
|
|
393
|
-
'GYD',
|
|
394
|
-
'HKD',
|
|
395
|
-
'HNL',
|
|
396
|
-
'HRK',
|
|
397
|
-
'HTG',
|
|
398
|
-
'HUF',
|
|
399
|
-
'IDR',
|
|
400
|
-
'ILS',
|
|
401
|
-
'IMP',
|
|
402
|
-
'INR',
|
|
403
|
-
'IQD',
|
|
404
|
-
'IRR',
|
|
405
|
-
'ISK',
|
|
406
|
-
'JEP',
|
|
407
|
-
'JMD',
|
|
408
|
-
'JOD',
|
|
409
|
-
'JPY',
|
|
410
|
-
'KES',
|
|
411
|
-
'KGS',
|
|
412
|
-
'KHR',
|
|
413
|
-
'KMF',
|
|
414
|
-
'KPW',
|
|
415
|
-
'KRW',
|
|
416
|
-
'KWD',
|
|
417
|
-
'KYD',
|
|
418
|
-
'KZT',
|
|
419
|
-
'LAK',
|
|
420
|
-
'LBP',
|
|
421
|
-
'LKR',
|
|
422
|
-
'LRD',
|
|
423
|
-
'LSL',
|
|
424
|
-
'LTL',
|
|
425
|
-
'LVL',
|
|
426
|
-
'LYD',
|
|
427
|
-
'MAD',
|
|
428
|
-
'MDL',
|
|
429
|
-
'MGA',
|
|
430
|
-
'MKD',
|
|
431
|
-
'MMK',
|
|
432
|
-
'MNT',
|
|
433
|
-
'MOP',
|
|
434
|
-
'MRO',
|
|
435
|
-
'MUR',
|
|
436
|
-
'MVR',
|
|
437
|
-
'MWK',
|
|
438
|
-
'MXN',
|
|
439
|
-
'MYR',
|
|
440
|
-
'MZN',
|
|
441
|
-
'NAD',
|
|
442
|
-
'NGN',
|
|
443
|
-
'NIO',
|
|
444
|
-
'NOK',
|
|
445
|
-
'NPR',
|
|
446
|
-
'NZD',
|
|
447
|
-
'OMR',
|
|
448
|
-
'PAB',
|
|
449
|
-
'PEN',
|
|
450
|
-
'PGK',
|
|
451
|
-
'PHP',
|
|
452
|
-
'PKR',
|
|
453
|
-
'PLN',
|
|
454
|
-
'PYG',
|
|
455
|
-
'QAR',
|
|
456
|
-
'RON',
|
|
457
|
-
'RSD',
|
|
458
|
-
'RUB',
|
|
459
|
-
'RWF',
|
|
460
|
-
'SAR',
|
|
461
|
-
'SBD',
|
|
462
|
-
'SCR',
|
|
463
|
-
'SDG',
|
|
464
|
-
'SEK',
|
|
465
|
-
'SGD',
|
|
466
|
-
'SHP',
|
|
467
|
-
'SLL',
|
|
468
|
-
'SOS',
|
|
469
|
-
'SPL',
|
|
470
|
-
'SRD',
|
|
471
|
-
'STD',
|
|
472
|
-
'SVC',
|
|
473
|
-
'SYP',
|
|
474
|
-
'SZL',
|
|
475
|
-
'THB',
|
|
476
|
-
'TJS',
|
|
477
|
-
'TMT',
|
|
478
|
-
'TND',
|
|
479
|
-
'TOP',
|
|
480
|
-
'TRY',
|
|
481
|
-
'TTD',
|
|
482
|
-
'TVD',
|
|
483
|
-
'TWD',
|
|
484
|
-
'TZS',
|
|
485
|
-
'UAH',
|
|
486
|
-
'UGX',
|
|
487
|
-
'USD',
|
|
488
|
-
'UYU',
|
|
489
|
-
'UZS',
|
|
490
|
-
'VEF',
|
|
491
|
-
'VND',
|
|
492
|
-
'VUV',
|
|
493
|
-
'WST',
|
|
494
|
-
'XAF',
|
|
495
|
-
'XCD',
|
|
496
|
-
'XDR',
|
|
497
|
-
'XOF',
|
|
498
|
-
'XPF',
|
|
499
|
-
'YER',
|
|
500
|
-
'ZAR',
|
|
501
|
-
'ZMW',
|
|
502
|
-
'ZWD',
|
|
503
|
-
'BTC'
|
|
504
|
-
]).optional(),
|
|
505
|
-
creditAdj: z.number().optional(),
|
|
506
|
-
refundAdj: z.number().optional(),
|
|
507
|
-
invoiceDate: z.string().optional(),
|
|
508
|
-
targetDate: z.string().optional(),
|
|
509
|
-
invoiceNumber: z.string().optional(),
|
|
510
|
-
balance: z.number().optional(),
|
|
511
|
-
bundleKeys: z.string().optional(),
|
|
512
|
-
credits: z.array(z.object({
|
|
513
|
-
id: z.string().uuid().optional(),
|
|
514
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
515
|
-
productName: z.string().optional(),
|
|
516
|
-
planName: z.string().optional(),
|
|
517
|
-
phaseName: z.string().optional(),
|
|
518
|
-
usageName: z.string().optional(),
|
|
519
|
-
prettyProductName: z.string().optional(),
|
|
520
|
-
prettyPlanName: z.string().optional(),
|
|
521
|
-
prettyPhaseName: z.string().optional(),
|
|
522
|
-
prettyUsageName: z.string().optional(),
|
|
523
|
-
itemType: z.enum([
|
|
524
|
-
'EXTERNAL_CHARGE',
|
|
525
|
-
'FIXED',
|
|
526
|
-
'RECURRING',
|
|
527
|
-
'REPAIR_ADJ',
|
|
528
|
-
'CBA_ADJ',
|
|
529
|
-
'CREDIT_ADJ',
|
|
530
|
-
'ITEM_ADJ',
|
|
531
|
-
'USAGE',
|
|
532
|
-
'TAX',
|
|
533
|
-
'PARENT_SUMMARY'
|
|
534
|
-
]).optional(),
|
|
535
|
-
description: z.string().optional(),
|
|
536
|
-
startDate: z.string().optional(),
|
|
537
|
-
endDate: z.string().optional(),
|
|
538
|
-
amount: z.number().optional(),
|
|
539
|
-
rate: z.number().optional(),
|
|
540
|
-
currency: z.enum([
|
|
541
|
-
'AED',
|
|
542
|
-
'AFN',
|
|
543
|
-
'ALL',
|
|
544
|
-
'AMD',
|
|
545
|
-
'ANG',
|
|
546
|
-
'AOA',
|
|
547
|
-
'ARS',
|
|
548
|
-
'AUD',
|
|
549
|
-
'AWG',
|
|
550
|
-
'AZN',
|
|
551
|
-
'BAM',
|
|
552
|
-
'BBD',
|
|
553
|
-
'BDT',
|
|
554
|
-
'BGN',
|
|
555
|
-
'BHD',
|
|
556
|
-
'BIF',
|
|
557
|
-
'BMD',
|
|
558
|
-
'BND',
|
|
559
|
-
'BOB',
|
|
560
|
-
'BRL',
|
|
561
|
-
'BSD',
|
|
562
|
-
'BTN',
|
|
563
|
-
'BWP',
|
|
564
|
-
'BYR',
|
|
565
|
-
'BZD',
|
|
566
|
-
'CAD',
|
|
567
|
-
'CDF',
|
|
568
|
-
'CHF',
|
|
569
|
-
'CLP',
|
|
570
|
-
'CNY',
|
|
571
|
-
'COP',
|
|
572
|
-
'CRC',
|
|
573
|
-
'CUC',
|
|
574
|
-
'CUP',
|
|
575
|
-
'CVE',
|
|
576
|
-
'CZK',
|
|
577
|
-
'DJF',
|
|
578
|
-
'DKK',
|
|
579
|
-
'DOP',
|
|
580
|
-
'DZD',
|
|
581
|
-
'EGP',
|
|
582
|
-
'ERN',
|
|
583
|
-
'ETB',
|
|
584
|
-
'EUR',
|
|
585
|
-
'FJD',
|
|
586
|
-
'FKP',
|
|
587
|
-
'GBP',
|
|
588
|
-
'GEL',
|
|
589
|
-
'GGP',
|
|
590
|
-
'GHS',
|
|
591
|
-
'GIP',
|
|
592
|
-
'GMD',
|
|
593
|
-
'GNF',
|
|
594
|
-
'GTQ',
|
|
595
|
-
'GYD',
|
|
596
|
-
'HKD',
|
|
597
|
-
'HNL',
|
|
598
|
-
'HRK',
|
|
599
|
-
'HTG',
|
|
600
|
-
'HUF',
|
|
601
|
-
'IDR',
|
|
602
|
-
'ILS',
|
|
603
|
-
'IMP',
|
|
604
|
-
'INR',
|
|
605
|
-
'IQD',
|
|
606
|
-
'IRR',
|
|
607
|
-
'ISK',
|
|
608
|
-
'JEP',
|
|
609
|
-
'JMD',
|
|
610
|
-
'JOD',
|
|
611
|
-
'JPY',
|
|
612
|
-
'KES',
|
|
613
|
-
'KGS',
|
|
614
|
-
'KHR',
|
|
615
|
-
'KMF',
|
|
616
|
-
'KPW',
|
|
617
|
-
'KRW',
|
|
618
|
-
'KWD',
|
|
619
|
-
'KYD',
|
|
620
|
-
'KZT',
|
|
621
|
-
'LAK',
|
|
622
|
-
'LBP',
|
|
623
|
-
'LKR',
|
|
624
|
-
'LRD',
|
|
625
|
-
'LSL',
|
|
626
|
-
'LTL',
|
|
627
|
-
'LVL',
|
|
628
|
-
'LYD',
|
|
629
|
-
'MAD',
|
|
630
|
-
'MDL',
|
|
631
|
-
'MGA',
|
|
632
|
-
'MKD',
|
|
633
|
-
'MMK',
|
|
634
|
-
'MNT',
|
|
635
|
-
'MOP',
|
|
636
|
-
'MRO',
|
|
637
|
-
'MUR',
|
|
638
|
-
'MVR',
|
|
639
|
-
'MWK',
|
|
640
|
-
'MXN',
|
|
641
|
-
'MYR',
|
|
642
|
-
'MZN',
|
|
643
|
-
'NAD',
|
|
644
|
-
'NGN',
|
|
645
|
-
'NIO',
|
|
646
|
-
'NOK',
|
|
647
|
-
'NPR',
|
|
648
|
-
'NZD',
|
|
649
|
-
'OMR',
|
|
650
|
-
'PAB',
|
|
651
|
-
'PEN',
|
|
652
|
-
'PGK',
|
|
653
|
-
'PHP',
|
|
654
|
-
'PKR',
|
|
655
|
-
'PLN',
|
|
656
|
-
'PYG',
|
|
657
|
-
'QAR',
|
|
658
|
-
'RON',
|
|
659
|
-
'RSD',
|
|
660
|
-
'RUB',
|
|
661
|
-
'RWF',
|
|
662
|
-
'SAR',
|
|
663
|
-
'SBD',
|
|
664
|
-
'SCR',
|
|
665
|
-
'SDG',
|
|
666
|
-
'SEK',
|
|
667
|
-
'SGD',
|
|
668
|
-
'SHP',
|
|
669
|
-
'SLL',
|
|
670
|
-
'SOS',
|
|
671
|
-
'SPL',
|
|
672
|
-
'SRD',
|
|
673
|
-
'STD',
|
|
674
|
-
'SVC',
|
|
675
|
-
'SYP',
|
|
676
|
-
'SZL',
|
|
677
|
-
'THB',
|
|
678
|
-
'TJS',
|
|
679
|
-
'TMT',
|
|
680
|
-
'TND',
|
|
681
|
-
'TOP',
|
|
682
|
-
'TRY',
|
|
683
|
-
'TTD',
|
|
684
|
-
'TVD',
|
|
685
|
-
'TWD',
|
|
686
|
-
'TZS',
|
|
687
|
-
'UAH',
|
|
688
|
-
'UGX',
|
|
689
|
-
'USD',
|
|
690
|
-
'UYU',
|
|
691
|
-
'UZS',
|
|
692
|
-
'VEF',
|
|
693
|
-
'VND',
|
|
694
|
-
'VUV',
|
|
695
|
-
'WST',
|
|
696
|
-
'XAF',
|
|
697
|
-
'XCD',
|
|
698
|
-
'XDR',
|
|
699
|
-
'XOF',
|
|
700
|
-
'XPF',
|
|
701
|
-
'YER',
|
|
702
|
-
'ZAR',
|
|
703
|
-
'ZMW',
|
|
704
|
-
'ZWD',
|
|
705
|
-
'BTC'
|
|
706
|
-
]).optional(),
|
|
707
|
-
quantity: z.number().optional(),
|
|
708
|
-
itemDetails: z.string().optional(),
|
|
709
|
-
catalogEffectiveDate: z.string().optional(),
|
|
710
|
-
childItems: z.array(z.unknown()).optional()
|
|
711
|
-
})).optional(),
|
|
712
|
-
items: z.array(z.object({
|
|
713
|
-
id: z.string().uuid().optional(),
|
|
714
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
715
|
-
productName: z.string().optional(),
|
|
716
|
-
planName: z.string().optional(),
|
|
717
|
-
phaseName: z.string().optional(),
|
|
718
|
-
usageName: z.string().optional(),
|
|
719
|
-
prettyProductName: z.string().optional(),
|
|
720
|
-
prettyPlanName: z.string().optional(),
|
|
721
|
-
prettyPhaseName: z.string().optional(),
|
|
722
|
-
prettyUsageName: z.string().optional(),
|
|
723
|
-
itemType: z.enum([
|
|
724
|
-
'EXTERNAL_CHARGE',
|
|
725
|
-
'FIXED',
|
|
726
|
-
'RECURRING',
|
|
727
|
-
'REPAIR_ADJ',
|
|
728
|
-
'CBA_ADJ',
|
|
729
|
-
'CREDIT_ADJ',
|
|
730
|
-
'ITEM_ADJ',
|
|
731
|
-
'USAGE',
|
|
732
|
-
'TAX',
|
|
733
|
-
'PARENT_SUMMARY'
|
|
734
|
-
]).optional(),
|
|
735
|
-
description: z.string().optional(),
|
|
736
|
-
startDate: z.string().optional(),
|
|
737
|
-
endDate: z.string().optional(),
|
|
738
|
-
amount: z.number().optional(),
|
|
739
|
-
rate: z.number().optional(),
|
|
740
|
-
currency: z.enum([
|
|
741
|
-
'AED',
|
|
742
|
-
'AFN',
|
|
743
|
-
'ALL',
|
|
744
|
-
'AMD',
|
|
745
|
-
'ANG',
|
|
746
|
-
'AOA',
|
|
747
|
-
'ARS',
|
|
748
|
-
'AUD',
|
|
749
|
-
'AWG',
|
|
750
|
-
'AZN',
|
|
751
|
-
'BAM',
|
|
752
|
-
'BBD',
|
|
753
|
-
'BDT',
|
|
754
|
-
'BGN',
|
|
755
|
-
'BHD',
|
|
756
|
-
'BIF',
|
|
757
|
-
'BMD',
|
|
758
|
-
'BND',
|
|
759
|
-
'BOB',
|
|
760
|
-
'BRL',
|
|
761
|
-
'BSD',
|
|
762
|
-
'BTN',
|
|
763
|
-
'BWP',
|
|
764
|
-
'BYR',
|
|
765
|
-
'BZD',
|
|
766
|
-
'CAD',
|
|
767
|
-
'CDF',
|
|
768
|
-
'CHF',
|
|
769
|
-
'CLP',
|
|
770
|
-
'CNY',
|
|
771
|
-
'COP',
|
|
772
|
-
'CRC',
|
|
773
|
-
'CUC',
|
|
774
|
-
'CUP',
|
|
775
|
-
'CVE',
|
|
776
|
-
'CZK',
|
|
777
|
-
'DJF',
|
|
778
|
-
'DKK',
|
|
779
|
-
'DOP',
|
|
780
|
-
'DZD',
|
|
781
|
-
'EGP',
|
|
782
|
-
'ERN',
|
|
783
|
-
'ETB',
|
|
784
|
-
'EUR',
|
|
785
|
-
'FJD',
|
|
786
|
-
'FKP',
|
|
787
|
-
'GBP',
|
|
788
|
-
'GEL',
|
|
789
|
-
'GGP',
|
|
790
|
-
'GHS',
|
|
791
|
-
'GIP',
|
|
792
|
-
'GMD',
|
|
793
|
-
'GNF',
|
|
794
|
-
'GTQ',
|
|
795
|
-
'GYD',
|
|
796
|
-
'HKD',
|
|
797
|
-
'HNL',
|
|
798
|
-
'HRK',
|
|
799
|
-
'HTG',
|
|
800
|
-
'HUF',
|
|
801
|
-
'IDR',
|
|
802
|
-
'ILS',
|
|
803
|
-
'IMP',
|
|
804
|
-
'INR',
|
|
805
|
-
'IQD',
|
|
806
|
-
'IRR',
|
|
807
|
-
'ISK',
|
|
808
|
-
'JEP',
|
|
809
|
-
'JMD',
|
|
810
|
-
'JOD',
|
|
811
|
-
'JPY',
|
|
812
|
-
'KES',
|
|
813
|
-
'KGS',
|
|
814
|
-
'KHR',
|
|
815
|
-
'KMF',
|
|
816
|
-
'KPW',
|
|
817
|
-
'KRW',
|
|
818
|
-
'KWD',
|
|
819
|
-
'KYD',
|
|
820
|
-
'KZT',
|
|
821
|
-
'LAK',
|
|
822
|
-
'LBP',
|
|
823
|
-
'LKR',
|
|
824
|
-
'LRD',
|
|
825
|
-
'LSL',
|
|
826
|
-
'LTL',
|
|
827
|
-
'LVL',
|
|
828
|
-
'LYD',
|
|
829
|
-
'MAD',
|
|
830
|
-
'MDL',
|
|
831
|
-
'MGA',
|
|
832
|
-
'MKD',
|
|
833
|
-
'MMK',
|
|
834
|
-
'MNT',
|
|
835
|
-
'MOP',
|
|
836
|
-
'MRO',
|
|
837
|
-
'MUR',
|
|
838
|
-
'MVR',
|
|
839
|
-
'MWK',
|
|
840
|
-
'MXN',
|
|
841
|
-
'MYR',
|
|
842
|
-
'MZN',
|
|
843
|
-
'NAD',
|
|
844
|
-
'NGN',
|
|
845
|
-
'NIO',
|
|
846
|
-
'NOK',
|
|
847
|
-
'NPR',
|
|
848
|
-
'NZD',
|
|
849
|
-
'OMR',
|
|
850
|
-
'PAB',
|
|
851
|
-
'PEN',
|
|
852
|
-
'PGK',
|
|
853
|
-
'PHP',
|
|
854
|
-
'PKR',
|
|
855
|
-
'PLN',
|
|
856
|
-
'PYG',
|
|
857
|
-
'QAR',
|
|
858
|
-
'RON',
|
|
859
|
-
'RSD',
|
|
860
|
-
'RUB',
|
|
861
|
-
'RWF',
|
|
862
|
-
'SAR',
|
|
863
|
-
'SBD',
|
|
864
|
-
'SCR',
|
|
865
|
-
'SDG',
|
|
866
|
-
'SEK',
|
|
867
|
-
'SGD',
|
|
868
|
-
'SHP',
|
|
869
|
-
'SLL',
|
|
870
|
-
'SOS',
|
|
871
|
-
'SPL',
|
|
872
|
-
'SRD',
|
|
873
|
-
'STD',
|
|
874
|
-
'SVC',
|
|
875
|
-
'SYP',
|
|
876
|
-
'SZL',
|
|
877
|
-
'THB',
|
|
878
|
-
'TJS',
|
|
879
|
-
'TMT',
|
|
880
|
-
'TND',
|
|
881
|
-
'TOP',
|
|
882
|
-
'TRY',
|
|
883
|
-
'TTD',
|
|
884
|
-
'TVD',
|
|
885
|
-
'TWD',
|
|
886
|
-
'TZS',
|
|
887
|
-
'UAH',
|
|
888
|
-
'UGX',
|
|
889
|
-
'USD',
|
|
890
|
-
'UYU',
|
|
891
|
-
'UZS',
|
|
892
|
-
'VEF',
|
|
893
|
-
'VND',
|
|
894
|
-
'VUV',
|
|
895
|
-
'WST',
|
|
896
|
-
'XAF',
|
|
897
|
-
'XCD',
|
|
898
|
-
'XDR',
|
|
899
|
-
'XOF',
|
|
900
|
-
'XPF',
|
|
901
|
-
'YER',
|
|
902
|
-
'ZAR',
|
|
903
|
-
'ZMW',
|
|
904
|
-
'ZWD',
|
|
905
|
-
'BTC'
|
|
906
|
-
]).optional(),
|
|
907
|
-
quantity: z.number().optional(),
|
|
908
|
-
itemDetails: z.string().optional(),
|
|
909
|
-
catalogEffectiveDate: z.string().optional(),
|
|
910
|
-
childItems: z.array(z.unknown()).optional()
|
|
911
|
-
})).optional()
|
|
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()
|
|
912
1138
|
});
|
|
913
1139
|
export const zMarketplaceListing = z.object({
|
|
914
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
915
1140
|
name: z.string(),
|
|
916
|
-
|
|
917
|
-
description: z.string(),
|
|
918
|
-
logoUrl: z.string(),
|
|
919
|
-
longDescription: z.string(),
|
|
920
|
-
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-]+)*))?$/)),
|
|
921
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-]+)*))?$/)),
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
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()
|
|
927
1159
|
});
|
|
928
1160
|
export const zOrganizationCreateInput = z.object({
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
1161
|
+
type: z.enum(['business', 'personal']),
|
|
1162
|
+
email: z.email(),
|
|
1163
|
+
first_name: z.string().min(1),
|
|
1164
|
+
last_name: z.string().min(1),
|
|
932
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,}$/),
|
|
933
1166
|
password: z.string().min(8)
|
|
934
1167
|
});
|
|
1168
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1169
|
+
id: z.string()
|
|
1170
|
+
});
|
|
935
1171
|
export const zOrganization = z.object({
|
|
936
|
-
id: z.
|
|
1172
|
+
id: z.uuid(),
|
|
937
1173
|
name: z.string().min(2).max(120).optional(),
|
|
938
|
-
|
|
1174
|
+
type: z.enum(['business', 'personal']),
|
|
1175
|
+
date_created: z.iso.datetime(),
|
|
939
1176
|
quota: z.object({
|
|
940
|
-
basic_clusters_max: z.
|
|
941
|
-
basic_clusters_available: z.
|
|
942
|
-
pro_clusters_max: z.
|
|
943
|
-
pro_clusters_available: z.
|
|
944
|
-
|
|
1177
|
+
basic_clusters_max: z.int().gte(0),
|
|
1178
|
+
basic_clusters_available: z.int(),
|
|
1179
|
+
pro_clusters_max: z.int().gte(0),
|
|
1180
|
+
pro_clusters_available: z.int(),
|
|
1181
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1182
|
+
enterprise_clusters_available: z.int(),
|
|
1183
|
+
fleets_max: z.int().gte(0),
|
|
945
1184
|
cluster_tiers: z.array(z.string()).min(0),
|
|
946
1185
|
regions: z.array(z.string()).min(1),
|
|
947
1186
|
versions: z.array(z.object({
|
|
948
1187
|
id: z.string(),
|
|
949
1188
|
label: z.string()
|
|
950
|
-
})).min(1)
|
|
1189
|
+
})).min(1),
|
|
1190
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
951
1191
|
}),
|
|
952
1192
|
status: z.enum([
|
|
953
1193
|
'active',
|
|
954
1194
|
'closed',
|
|
955
1195
|
'suspended'
|
|
1196
|
+
]),
|
|
1197
|
+
verification: z.enum([
|
|
1198
|
+
'none',
|
|
1199
|
+
'submitted',
|
|
1200
|
+
'verified'
|
|
956
1201
|
])
|
|
957
1202
|
});
|
|
958
1203
|
export const zPaymentMethod = z.object({
|
|
959
|
-
id: z.string()
|
|
960
|
-
setup: z.boolean(),
|
|
1204
|
+
id: z.string(),
|
|
961
1205
|
type: z.enum([
|
|
962
|
-
'card'
|
|
1206
|
+
'card',
|
|
1207
|
+
'sepa_debit',
|
|
1208
|
+
'bank_transfer'
|
|
963
1209
|
]),
|
|
964
1210
|
last4: z.string(),
|
|
965
|
-
exp_month: z.
|
|
966
|
-
exp_year: z.
|
|
967
|
-
brand: z.
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1211
|
+
exp_month: z.int().gte(1).lte(12),
|
|
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()
|
|
978
1376
|
});
|
|
979
1377
|
export const zTokenCreateInput = z.object({
|
|
980
1378
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
981
|
-
role: z.enum([
|
|
982
|
-
'Administrator',
|
|
983
|
-
'User'
|
|
984
|
-
])
|
|
1379
|
+
role: z.enum(['Administrator', 'User'])
|
|
985
1380
|
});
|
|
986
1381
|
export const zToken = z.object({
|
|
987
1382
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
988
|
-
role: z.enum([
|
|
989
|
-
'Administrator',
|
|
990
|
-
'User'
|
|
991
|
-
]),
|
|
1383
|
+
role: z.enum(['Administrator', 'User']),
|
|
992
1384
|
id: z.string().optional(),
|
|
993
1385
|
secret: z.string().optional(),
|
|
994
|
-
date_created: z.
|
|
1386
|
+
date_created: z.iso.datetime()
|
|
995
1387
|
});
|
|
996
1388
|
export const zTokenUpdateInput = z.object({
|
|
997
1389
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
998
|
-
role: z.enum([
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
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
|
+
})
|
|
1002
1409
|
});
|
|
1003
1410
|
export const zUsage = z.object({
|
|
1004
|
-
hour: z.string()
|
|
1005
|
-
cluster_id: z.string()
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
]),
|
|
1011
|
-
product: z.enum([
|
|
1012
|
-
'cfke_controlplane',
|
|
1013
|
-
'cfke_connected_nodes',
|
|
1014
|
-
'infra_compute',
|
|
1015
|
-
'infra_storage',
|
|
1016
|
-
'infra_loadbalancing',
|
|
1017
|
-
'infra_traffic',
|
|
1018
|
-
'cfcr_storage'
|
|
1019
|
-
]),
|
|
1020
|
-
node_name: z.string(),
|
|
1021
|
-
sku: z.string(),
|
|
1022
|
-
cpu: z.union([
|
|
1023
|
-
z.number(),
|
|
1024
|
-
z.enum([
|
|
1025
|
-
''
|
|
1026
|
-
])
|
|
1027
|
-
]),
|
|
1028
|
-
price: z.union([
|
|
1029
|
-
z.number(),
|
|
1030
|
-
z.enum([
|
|
1031
|
-
''
|
|
1032
|
-
])
|
|
1033
|
-
]),
|
|
1034
|
-
value: z.union([
|
|
1035
|
-
z.number(),
|
|
1036
|
-
z.enum([
|
|
1037
|
-
''
|
|
1038
|
-
])
|
|
1039
|
-
]),
|
|
1040
|
-
total: z.union([
|
|
1041
|
-
z.number(),
|
|
1042
|
-
z.enum([
|
|
1043
|
-
''
|
|
1044
|
-
])
|
|
1045
|
-
])
|
|
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()
|
|
1046
1417
|
});
|
|
1047
1418
|
export const zUserCreateInput = z.object({
|
|
1048
|
-
email: z.
|
|
1419
|
+
email: z.email(),
|
|
1049
1420
|
first_name: z.string().min(1).max(50),
|
|
1050
1421
|
last_name: z.string().min(1).max(50),
|
|
1051
1422
|
code: z.string(),
|
|
1052
|
-
password: z.string().min(8)
|
|
1053
|
-
status: z.enum([
|
|
1054
|
-
'active',
|
|
1055
|
-
'inactive'
|
|
1056
|
-
]).optional(),
|
|
1057
|
-
role: z.enum([
|
|
1058
|
-
'Administrator',
|
|
1059
|
-
'User'
|
|
1060
|
-
]).optional()
|
|
1423
|
+
password: z.string().min(8)
|
|
1061
1424
|
});
|
|
1062
1425
|
export const zUser = z.object({
|
|
1063
|
-
email: z.
|
|
1426
|
+
email: z.email(),
|
|
1064
1427
|
first_name: z.string().min(1).max(50),
|
|
1065
1428
|
last_name: z.string().min(1).max(50),
|
|
1066
|
-
role: z.enum([
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
status: z.enum([
|
|
1071
|
-
'active',
|
|
1072
|
-
'inactive'
|
|
1073
|
-
]),
|
|
1074
|
-
id: z.string().uuid(),
|
|
1075
|
-
date_created: z.string().datetime()
|
|
1429
|
+
role: z.enum(['Administrator', 'User']),
|
|
1430
|
+
status: z.enum(['active', 'inactive']),
|
|
1431
|
+
id: z.uuid(),
|
|
1432
|
+
date_created: z.iso.datetime()
|
|
1076
1433
|
});
|
|
1077
1434
|
export const zUserUpdateInput = z.object({
|
|
1078
|
-
email: z.
|
|
1435
|
+
email: z.email().optional(),
|
|
1079
1436
|
first_name: z.string().min(1).max(50).optional(),
|
|
1080
1437
|
last_name: z.string().min(1).max(50).optional(),
|
|
1081
|
-
role: z.enum([
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
'active',
|
|
1087
|
-
'inactive'
|
|
1088
|
-
]).optional()
|
|
1438
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
1439
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
1440
|
+
});
|
|
1441
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1442
|
+
email: z.string()
|
|
1089
1443
|
});
|
|
1090
1444
|
/**
|
|
1091
|
-
* An array of
|
|
1445
|
+
* An array of organizations the user belongs to.
|
|
1092
1446
|
*/
|
|
1093
|
-
export const
|
|
1447
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1448
|
+
realm: z.string().optional(),
|
|
1449
|
+
displayName: z.string().optional()
|
|
1450
|
+
}));
|
|
1094
1451
|
/**
|
|
1095
|
-
*
|
|
1452
|
+
* An array of users
|
|
1096
1453
|
*/
|
|
1097
|
-
export const
|
|
1454
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1455
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1098
1456
|
/**
|
|
1099
|
-
*
|
|
1457
|
+
* Successfully created. Returns created user details.
|
|
1100
1458
|
*/
|
|
1101
|
-
export const
|
|
1459
|
+
export const zCreateUserResponse = zUser;
|
|
1460
|
+
export const zDeleteUserPath = z.object({
|
|
1461
|
+
user_id: z.string()
|
|
1462
|
+
});
|
|
1102
1463
|
/**
|
|
1103
|
-
*
|
|
1104
|
-
*
|
|
1464
|
+
* User profile information
|
|
1105
1465
|
*/
|
|
1106
|
-
export const
|
|
1107
|
-
|
|
1466
|
+
export const zDeleteUserResponse = zUser;
|
|
1467
|
+
export const zGetUserPath = z.object({
|
|
1468
|
+
user_id: z.string()
|
|
1108
1469
|
});
|
|
1109
1470
|
/**
|
|
1110
|
-
*
|
|
1471
|
+
* User profile information
|
|
1111
1472
|
*/
|
|
1112
|
-
export const
|
|
1473
|
+
export const zGetUserResponse = zUser;
|
|
1474
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1475
|
+
export const zUpdateUserPath = z.object({
|
|
1476
|
+
user_id: z.string()
|
|
1477
|
+
});
|
|
1113
1478
|
/**
|
|
1114
|
-
*
|
|
1479
|
+
* Successfully created. Returns created user details.
|
|
1115
1480
|
*/
|
|
1116
|
-
export const
|
|
1481
|
+
export const zUpdateUserResponse = zUser;
|
|
1117
1482
|
/**
|
|
1118
|
-
*
|
|
1483
|
+
* Returns a list of access token details with masked secrets.
|
|
1119
1484
|
*/
|
|
1120
|
-
export const
|
|
1485
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1486
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1121
1487
|
/**
|
|
1122
|
-
*
|
|
1488
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1123
1489
|
*/
|
|
1124
|
-
export const
|
|
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()
|
|
1496
|
+
});
|
|
1125
1497
|
/**
|
|
1126
|
-
* Returns
|
|
1498
|
+
* Returns access token details with masked secret.
|
|
1127
1499
|
*/
|
|
1128
|
-
export const
|
|
1129
|
-
|
|
1500
|
+
export const zGetTokenResponse = zToken;
|
|
1501
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1502
|
+
export const zUpdateTokenPath = z.object({
|
|
1503
|
+
token_id: z.string()
|
|
1130
1504
|
});
|
|
1131
1505
|
/**
|
|
1132
|
-
*
|
|
1506
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1133
1507
|
*/
|
|
1134
|
-
export const
|
|
1135
|
-
export const
|
|
1508
|
+
export const zUpdateTokenResponse = zToken;
|
|
1509
|
+
export const zRegenerateTokenPath = z.object({
|
|
1510
|
+
token_id: z.string()
|
|
1511
|
+
});
|
|
1136
1512
|
/**
|
|
1137
|
-
* Successfully updated. Returns updated
|
|
1513
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1138
1514
|
*/
|
|
1139
|
-
export const
|
|
1515
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1140
1516
|
/**
|
|
1141
|
-
*
|
|
1517
|
+
* Tickets for the organization.
|
|
1142
1518
|
*/
|
|
1143
|
-
export const
|
|
1144
|
-
export const
|
|
1145
|
-
|
|
1519
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
1520
|
+
export const zCreateTicketBody = z.object({
|
|
1521
|
+
payload: z.string().optional(),
|
|
1522
|
+
attachments: z.array(z.string()).optional()
|
|
1146
1523
|
});
|
|
1147
1524
|
/**
|
|
1148
|
-
*
|
|
1525
|
+
* Ticket created.
|
|
1149
1526
|
*/
|
|
1150
|
-
export const
|
|
1527
|
+
export const zCreateTicketResponse = zTicket;
|
|
1528
|
+
export const zCloseTicketPath = z.object({
|
|
1529
|
+
ticket_id: z.string()
|
|
1530
|
+
});
|
|
1151
1531
|
/**
|
|
1152
|
-
*
|
|
1532
|
+
* Ticket closed.
|
|
1153
1533
|
*/
|
|
1154
|
-
export const
|
|
1155
|
-
export const
|
|
1534
|
+
export const zCloseTicketResponse = zTicket;
|
|
1535
|
+
export const zGetTicketPath = z.object({
|
|
1536
|
+
ticket_id: z.string()
|
|
1537
|
+
});
|
|
1156
1538
|
/**
|
|
1157
|
-
*
|
|
1539
|
+
* Ticket with messages (internal notes excluded).
|
|
1158
1540
|
*/
|
|
1159
|
-
export const
|
|
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()
|
|
1548
|
+
});
|
|
1160
1549
|
/**
|
|
1161
|
-
*
|
|
1550
|
+
* Reply appended.
|
|
1162
1551
|
*/
|
|
1163
|
-
export const
|
|
1552
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1553
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1554
|
+
ticket_id: z.string(),
|
|
1555
|
+
attachment_id: z.string()
|
|
1556
|
+
});
|
|
1164
1557
|
/**
|
|
1165
|
-
*
|
|
1558
|
+
* Attachment binary stream.
|
|
1166
1559
|
*/
|
|
1167
|
-
export const
|
|
1560
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1168
1561
|
/**
|
|
1169
|
-
*
|
|
1562
|
+
* List of repositories
|
|
1170
1563
|
*/
|
|
1171
|
-
export const
|
|
1564
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1565
|
+
export const zListTagsPath = z.object({
|
|
1566
|
+
region: z.string(),
|
|
1567
|
+
repository: z.string()
|
|
1568
|
+
});
|
|
1172
1569
|
/**
|
|
1173
|
-
*
|
|
1570
|
+
* Repository with tags
|
|
1174
1571
|
*/
|
|
1175
|
-
export const
|
|
1572
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1573
|
+
export const zDeleteTagPath = z.object({
|
|
1574
|
+
region: z.string(),
|
|
1575
|
+
repository: z.string(),
|
|
1576
|
+
tag: z.string()
|
|
1577
|
+
});
|
|
1578
|
+
export const zGetTagPath = z.object({
|
|
1579
|
+
region: z.string(),
|
|
1580
|
+
repository: z.string(),
|
|
1581
|
+
tag: z.string()
|
|
1582
|
+
});
|
|
1176
1583
|
/**
|
|
1177
|
-
*
|
|
1584
|
+
* Tag details
|
|
1178
1585
|
*/
|
|
1179
|
-
export const
|
|
1586
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1180
1587
|
/**
|
|
1181
|
-
*
|
|
1588
|
+
* Returns a single object containing organization details.
|
|
1182
1589
|
*/
|
|
1183
|
-
export const
|
|
1590
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1591
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1184
1592
|
/**
|
|
1185
|
-
* Returns
|
|
1593
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1594
|
+
*
|
|
1186
1595
|
*/
|
|
1187
|
-
export const
|
|
1188
|
-
export const zUpdateChartData = zChartUpdateInput;
|
|
1596
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1189
1597
|
/**
|
|
1190
|
-
*
|
|
1598
|
+
* JSON-RPC 2.0 request payload
|
|
1191
1599
|
*/
|
|
1192
|
-
export const
|
|
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()
|
|
1608
|
+
});
|
|
1193
1609
|
/**
|
|
1194
|
-
*
|
|
1610
|
+
* JSON-RPC 2.0 success or error response
|
|
1195
1611
|
*/
|
|
1196
|
-
export const
|
|
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()
|
|
1623
|
+
});
|
|
1197
1624
|
/**
|
|
1198
|
-
*
|
|
1625
|
+
* An array of chart listings in the marketplace.
|
|
1199
1626
|
*/
|
|
1200
|
-
export const
|
|
1627
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1628
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1629
|
+
chart_name: z.string(),
|
|
1630
|
+
version_channel: z.string()
|
|
1631
|
+
});
|
|
1201
1632
|
/**
|
|
1202
|
-
*
|
|
1633
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1203
1634
|
*/
|
|
1204
|
-
export const
|
|
1635
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1205
1636
|
/**
|
|
1206
|
-
* An array of
|
|
1637
|
+
* An array of invites
|
|
1207
1638
|
*/
|
|
1208
|
-
export const
|
|
1209
|
-
export const
|
|
1639
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1640
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1210
1641
|
/**
|
|
1211
|
-
*
|
|
1642
|
+
* Successfully created. Returns created invite details.
|
|
1212
1643
|
*/
|
|
1213
|
-
export const
|
|
1644
|
+
export const zCreateInviteResponse = zInvite;
|
|
1645
|
+
export const zGetInvitePath = z.object({
|
|
1646
|
+
code: z.string()
|
|
1647
|
+
});
|
|
1214
1648
|
/**
|
|
1215
|
-
*
|
|
1649
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1216
1650
|
*/
|
|
1217
|
-
export const
|
|
1651
|
+
export const zGetInviteResponse = z.object({
|
|
1652
|
+
email: z.email().optional(),
|
|
1653
|
+
organization_id: z.string().optional()
|
|
1654
|
+
});
|
|
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()
|
|
1663
|
+
});
|
|
1218
1664
|
/**
|
|
1219
|
-
*
|
|
1665
|
+
* An array of fleets
|
|
1220
1666
|
*/
|
|
1221
|
-
export const
|
|
1667
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1668
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1669
|
+
export const zCreateFleetPath = z.object({
|
|
1670
|
+
cluster_id: z.string()
|
|
1671
|
+
});
|
|
1222
1672
|
/**
|
|
1223
|
-
*
|
|
1673
|
+
* Successfully created. Returns created Fleet ID.
|
|
1224
1674
|
*/
|
|
1225
|
-
export const
|
|
1675
|
+
export const zCreateFleetResponse = z.string();
|
|
1676
|
+
export const zDeleteFleetPath = z.object({
|
|
1677
|
+
cluster_id: z.string(),
|
|
1678
|
+
fleet_name: z.string()
|
|
1679
|
+
});
|
|
1226
1680
|
/**
|
|
1227
1681
|
* Successfully deleted.
|
|
1228
1682
|
*/
|
|
1229
1683
|
export const zDeleteFleetResponse = z.string();
|
|
1684
|
+
export const zGetFleetPath = z.object({
|
|
1685
|
+
cluster_id: z.string(),
|
|
1686
|
+
fleet_name: z.string()
|
|
1687
|
+
});
|
|
1230
1688
|
/**
|
|
1231
|
-
*
|
|
1689
|
+
* Returns a single object containing fleet details.
|
|
1232
1690
|
*/
|
|
1233
|
-
export const
|
|
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()
|
|
1696
|
+
});
|
|
1234
1697
|
/**
|
|
1235
|
-
*
|
|
1698
|
+
* Successfully updated.
|
|
1236
1699
|
*/
|
|
1237
|
-
export const
|
|
1700
|
+
export const zUpdateFleetResponse = z.string();
|
|
1701
|
+
export const zListChartsPath = z.object({
|
|
1702
|
+
cluster_id: z.string()
|
|
1703
|
+
});
|
|
1238
1704
|
/**
|
|
1239
|
-
*
|
|
1705
|
+
* An array of charts
|
|
1240
1706
|
*/
|
|
1241
|
-
export const
|
|
1242
|
-
export const
|
|
1707
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1708
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1709
|
+
export const zCreateChartPath = z.object({
|
|
1710
|
+
cluster_id: z.string()
|
|
1711
|
+
});
|
|
1243
1712
|
/**
|
|
1244
|
-
*
|
|
1713
|
+
* Successfully created. Returns created Chart ID.
|
|
1245
1714
|
*/
|
|
1246
|
-
export const
|
|
1715
|
+
export const zCreateChartResponse = z.string();
|
|
1716
|
+
export const zDeleteChartPath = z.object({
|
|
1717
|
+
cluster_id: z.string(),
|
|
1718
|
+
chart_name: z.string()
|
|
1719
|
+
});
|
|
1247
1720
|
/**
|
|
1248
|
-
*
|
|
1721
|
+
* Successfully deleted.
|
|
1249
1722
|
*/
|
|
1250
|
-
export const
|
|
1723
|
+
export const zDeleteChartResponse = z.string();
|
|
1724
|
+
export const zGetChartPath = z.object({
|
|
1725
|
+
cluster_id: z.string(),
|
|
1726
|
+
chart_name: z.string()
|
|
1727
|
+
});
|
|
1251
1728
|
/**
|
|
1252
|
-
*
|
|
1729
|
+
* Returns a single object containing chart details.
|
|
1253
1730
|
*/
|
|
1254
|
-
export const
|
|
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()
|
|
1736
|
+
});
|
|
1255
1737
|
/**
|
|
1256
|
-
*
|
|
1738
|
+
* Successfully updated.
|
|
1257
1739
|
*/
|
|
1258
|
-
export const
|
|
1740
|
+
export const zUpdateChartResponse = z.string();
|
|
1259
1741
|
/**
|
|
1260
1742
|
* An array of clusters
|
|
1261
1743
|
*/
|
|
1262
1744
|
export const zListClustersResponse = z.array(zCluster);
|
|
1263
|
-
export const
|
|
1745
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1264
1746
|
/**
|
|
1265
1747
|
* Successfully created. Returns created Cluster ID.
|
|
1266
1748
|
*/
|
|
1267
1749
|
export const zCreateClusterResponse = z.string();
|
|
1750
|
+
export const zDeleteClusterPath = z.object({
|
|
1751
|
+
cluster_id: z.string()
|
|
1752
|
+
});
|
|
1268
1753
|
/**
|
|
1269
|
-
*
|
|
1270
|
-
*/
|
|
1271
|
-
export const zDeleteClusterParameterClusterId = z.string();
|
|
1272
|
-
/**
|
|
1273
|
-
* Successfully deleted.
|
|
1754
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1274
1755
|
*/
|
|
1275
1756
|
export const zDeleteClusterResponse = z.string();
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
export const zGetClusterParameterClusterId = z.string();
|
|
1757
|
+
export const zGetClusterPath = z.object({
|
|
1758
|
+
cluster_id: z.string()
|
|
1759
|
+
});
|
|
1280
1760
|
/**
|
|
1281
1761
|
* Returns a single object containing cluster details.
|
|
1282
1762
|
*/
|
|
1283
1763
|
export const zGetClusterResponse = zCluster;
|
|
1284
|
-
export const
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
export const zUpdateClusterParameterClusterId = z.string();
|
|
1764
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1765
|
+
export const zUpdateClusterPath = z.object({
|
|
1766
|
+
cluster_id: z.string()
|
|
1767
|
+
});
|
|
1289
1768
|
/**
|
|
1290
1769
|
* Successfully updated. Returns updated cluster details.
|
|
1291
1770
|
*/
|
|
1292
1771
|
export const zUpdateClusterResponse = zCluster;
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
export const zGetJoinInformationParameterClusterId = z.string();
|
|
1772
|
+
export const zGetJoinInformationPath = z.object({
|
|
1773
|
+
cluster_id: z.string()
|
|
1774
|
+
});
|
|
1297
1775
|
/**
|
|
1298
1776
|
* An object of cluster join information
|
|
1299
1777
|
*/
|
|
1300
|
-
export const zGetJoinInformationResponse =
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
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')
|
|
1307
1785
|
});
|
|
1308
1786
|
/**
|
|
1309
|
-
*
|
|
1310
|
-
*/
|
|
1311
|
-
export const zCreateInviteResponse = zInvite;
|
|
1312
|
-
/**
|
|
1313
|
-
* Invitation code
|
|
1314
|
-
*/
|
|
1315
|
-
export const zGetInviteParameterCode = z.string();
|
|
1316
|
-
/**
|
|
1317
|
-
* Returns a single object containing invite details.
|
|
1318
|
-
*/
|
|
1319
|
-
export const zGetInviteResponse = zInvite;
|
|
1320
|
-
/**
|
|
1321
|
-
* User email address
|
|
1322
|
-
*/
|
|
1323
|
-
export const zDeleteInviteParameterEmail = z.string();
|
|
1324
|
-
/**
|
|
1325
|
-
* An array of chart listings in the marketplace.
|
|
1326
|
-
*/
|
|
1327
|
-
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1328
|
-
/**
|
|
1329
|
-
* Unique identifier of the chart listing in the marketplace.
|
|
1330
|
-
*/
|
|
1331
|
-
export const zGetMarketplaceChartParameterListingId = z.string();
|
|
1332
|
-
/**
|
|
1333
|
-
* Returns an object containing the chart listing details.
|
|
1334
|
-
*/
|
|
1335
|
-
export const zGetMarketplaceChartResponse = zMarketplaceListing;
|
|
1336
|
-
/**
|
|
1337
|
-
* Returns a single object containing organization details.
|
|
1338
|
-
*/
|
|
1339
|
-
export const zGetOrganizationResponse = zOrganization;
|
|
1340
|
-
export const zCreateOrganizationData = zOrganizationCreateInput;
|
|
1341
|
-
/**
|
|
1342
|
-
* Returns a list of access token details with masked secrets.
|
|
1343
|
-
*/
|
|
1344
|
-
export const zListTokensResponse = z.array(zToken);
|
|
1345
|
-
export const zCreateTokenData = zTokenCreateInput;
|
|
1346
|
-
/**
|
|
1347
|
-
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1348
|
-
*/
|
|
1349
|
-
export const zCreateTokenResponse = zToken;
|
|
1350
|
-
/**
|
|
1351
|
-
* Generated unique identifier of the access token.
|
|
1352
|
-
*/
|
|
1353
|
-
export const zDeleteTokenParameterTokenId = z.string();
|
|
1354
|
-
/**
|
|
1355
|
-
* Generated unique identifier of the access token.
|
|
1356
|
-
*/
|
|
1357
|
-
export const zGetTokenParameterTokenId = z.string();
|
|
1358
|
-
/**
|
|
1359
|
-
* Returns access token details with masked secret.
|
|
1360
|
-
*/
|
|
1361
|
-
export const zGetTokenResponse = zToken;
|
|
1362
|
-
export const zUpdateTokenData = zTokenUpdateInput;
|
|
1363
|
-
/**
|
|
1364
|
-
* Generated unique identifier of the access token.
|
|
1365
|
-
*/
|
|
1366
|
-
export const zUpdateTokenParameterTokenId = z.string();
|
|
1367
|
-
/**
|
|
1368
|
-
* Successfully updated. Returns updated token details with masked secret.
|
|
1369
|
-
*/
|
|
1370
|
-
export const zUpdateTokenResponse = zToken;
|
|
1371
|
-
/**
|
|
1372
|
-
* Generated unique identifier of the access token.
|
|
1373
|
-
*/
|
|
1374
|
-
export const zRegenerateTokenParameterTokenId = z.string();
|
|
1375
|
-
/**
|
|
1376
|
-
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1787
|
+
* Usage data with facets for filtering
|
|
1377
1788
|
*/
|
|
1378
|
-
export const
|
|
1789
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1379
1790
|
/**
|
|
1380
|
-
*
|
|
1381
|
-
|
|
1382
|
-
export const zListUserOrganizationsParameterEmail = z.string();
|
|
1383
|
-
/**
|
|
1384
|
-
* An array of organizations the user belongs to.
|
|
1385
|
-
*/
|
|
1386
|
-
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1387
|
-
realm: z.string().optional(),
|
|
1388
|
-
displayName: z.string().optional()
|
|
1389
|
-
}));
|
|
1390
|
-
/**
|
|
1391
|
-
* An array of users
|
|
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
|
+
*
|
|
1392
1793
|
*/
|
|
1393
|
-
export const
|
|
1394
|
-
|
|
1794
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1795
|
+
id: z.string().optional()
|
|
1796
|
+
});
|
|
1395
1797
|
/**
|
|
1396
|
-
*
|
|
1798
|
+
* An array of payment methods.
|
|
1397
1799
|
*/
|
|
1398
|
-
export const
|
|
1800
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1801
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1802
|
+
paymentMethodId: z.string()
|
|
1803
|
+
});
|
|
1399
1804
|
/**
|
|
1400
|
-
*
|
|
1805
|
+
* Default payment method updated.
|
|
1401
1806
|
*/
|
|
1402
|
-
export const
|
|
1807
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1808
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1809
|
+
paymentMethodId: z.string()
|
|
1810
|
+
});
|
|
1403
1811
|
/**
|
|
1404
|
-
*
|
|
1812
|
+
* Payment method deleted.
|
|
1405
1813
|
*/
|
|
1406
|
-
export const
|
|
1814
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1407
1815
|
/**
|
|
1408
|
-
*
|
|
1816
|
+
* An array of usage records.
|
|
1409
1817
|
*/
|
|
1410
|
-
export const
|
|
1818
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1411
1819
|
/**
|
|
1412
|
-
*
|
|
1820
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1413
1821
|
*/
|
|
1414
|
-
export const
|
|
1415
|
-
export const
|
|
1822
|
+
export const zGetContactResponse = zBillingContact;
|
|
1823
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1416
1824
|
/**
|
|
1417
|
-
*
|
|
1825
|
+
* Successfully updated. Returns updated organization details.
|
|
1418
1826
|
*/
|
|
1419
|
-
export const
|
|
1827
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1420
1828
|
/**
|
|
1421
|
-
*
|
|
1829
|
+
* An array of the applied promotional credits records.
|
|
1422
1830
|
*/
|
|
1423
|
-
export const
|
|
1831
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1832
|
+
export const zRedeemCreditsBody = z.object({
|
|
1833
|
+
code: z.string().optional()
|
|
1834
|
+
});
|
|
1424
1835
|
//# sourceMappingURL=zod.gen.js.map
|