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