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