@cloudfleet/sdk 0.0.1-1fc3e29 → 0.0.1-200be61
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 +1125 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1129 -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 +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +121 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/utils.gen.d.ts +38 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +229 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +4 -4
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +2 -4
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +44 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +101 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +107 -0
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +79 -0
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1027 -486
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1635 -575
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +172 -62
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +217 -164
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +929 -328
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1740 -2540
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +488 -902
- package/dist/zod.gen.js.map +1 -1
- package/package.json +29 -7
package/dist/zod.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
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
5
|
address1: z.string().optional(),
|
|
@@ -9,9 +9,8 @@ export const zBillingContact = z.object({
|
|
|
9
9
|
state: z.string().optional(),
|
|
10
10
|
country: z.string().optional(),
|
|
11
11
|
phone: z.string().optional(),
|
|
12
|
-
email: z.
|
|
13
|
-
|
|
14
|
-
last_name: z.string(),
|
|
12
|
+
email: z.email(),
|
|
13
|
+
individual_name: z.string(),
|
|
15
14
|
tax_id: z.string().optional(),
|
|
16
15
|
tax_id_type: z.enum([
|
|
17
16
|
'ad_nrt',
|
|
@@ -146,16 +145,12 @@ export const zBillingContact = z.object({
|
|
|
146
145
|
});
|
|
147
146
|
export const zBillingCredits = z.object({
|
|
148
147
|
id: z.string().optional(),
|
|
149
|
-
|
|
148
|
+
type: z.enum(['credit', 'discount']),
|
|
149
|
+
date_start: z.iso.datetime(),
|
|
150
|
+
date_end: z.iso.datetime().optional(),
|
|
150
151
|
code: z.string(),
|
|
151
152
|
description: z.string().optional(),
|
|
152
|
-
|
|
153
|
-
type: z.enum([
|
|
154
|
-
'credit',
|
|
155
|
-
'discount'
|
|
156
|
-
]),
|
|
157
|
-
value: z.number(),
|
|
158
|
-
billing_period: z.string().datetime(),
|
|
153
|
+
value_total: z.number(),
|
|
159
154
|
value_remaining: z.number().optional()
|
|
160
155
|
});
|
|
161
156
|
export const zChartCreateInput = z.object({
|
|
@@ -198,26 +193,31 @@ export const zChartUpdateInput = z.object({
|
|
|
198
193
|
});
|
|
199
194
|
export const zClusterCreateInput = z.object({
|
|
200
195
|
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
|
-
]),
|
|
196
|
+
tier: z.enum(['basic', 'pro']),
|
|
205
197
|
region: z.enum([
|
|
206
|
-
'staging',
|
|
198
|
+
'staging-1a',
|
|
207
199
|
'northamerica-central-1',
|
|
208
|
-
'europe-central-1a'
|
|
209
|
-
|
|
210
|
-
|
|
200
|
+
'europe-central-1a',
|
|
201
|
+
'northamerica-central-1a'
|
|
202
|
+
]).optional().default('staging-1a'),
|
|
203
|
+
version_channel: z.enum([
|
|
204
|
+
'1.x.x-cfke.x',
|
|
205
|
+
'1.31.x-cfke.x',
|
|
206
|
+
'1.32.x-cfke.x',
|
|
207
|
+
'1.33.x-cfke.x'
|
|
208
|
+
]).optional().default('1.x.x-cfke.x')
|
|
211
209
|
});
|
|
212
210
|
export const zClusterJoinInformation = z.object({
|
|
213
211
|
certificate_authority: z.string(),
|
|
214
|
-
endpoint: z.
|
|
212
|
+
endpoint: z.url(),
|
|
213
|
+
cluster_dns: z.string(),
|
|
215
214
|
auth_key: z.string(),
|
|
216
215
|
bootstrap_token: z.string(),
|
|
217
216
|
versions: z.object({
|
|
218
217
|
kubernetes: z.string(),
|
|
219
218
|
tailscale: z.string(),
|
|
220
|
-
containerd: z.string()
|
|
219
|
+
containerd: z.string(),
|
|
220
|
+
nvidia_driver: z.string()
|
|
221
221
|
}),
|
|
222
222
|
third_party_api_access_config: z.object({
|
|
223
223
|
metadata_url: z.string(),
|
|
@@ -227,19 +227,17 @@ export const zClusterJoinInformation = z.object({
|
|
|
227
227
|
});
|
|
228
228
|
export const zCluster = z.object({
|
|
229
229
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
-
tier: z.enum([
|
|
231
|
-
'basic',
|
|
232
|
-
'pro'
|
|
233
|
-
]),
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
234
231
|
region: z.enum([
|
|
235
|
-
'staging',
|
|
232
|
+
'staging-1a',
|
|
236
233
|
'northamerica-central-1',
|
|
237
|
-
'europe-central-1a'
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
id: z.
|
|
234
|
+
'europe-central-1a',
|
|
235
|
+
'northamerica-central-1a'
|
|
236
|
+
]).optional().default('staging-1a'),
|
|
237
|
+
id: z.uuid(),
|
|
241
238
|
status: z.enum([
|
|
242
239
|
'active',
|
|
240
|
+
'disabled',
|
|
243
241
|
'deleted',
|
|
244
242
|
'creating',
|
|
245
243
|
'deployed',
|
|
@@ -247,23 +245,23 @@ export const zCluster = z.object({
|
|
|
247
245
|
'updating'
|
|
248
246
|
]),
|
|
249
247
|
endpoint: z.union([
|
|
250
|
-
z.
|
|
251
|
-
z.enum([
|
|
252
|
-
|
|
253
|
-
|
|
248
|
+
z.url(),
|
|
249
|
+
z.enum([''])
|
|
250
|
+
]).optional(),
|
|
251
|
+
endpoint_public: z.union([
|
|
252
|
+
z.url(),
|
|
253
|
+
z.enum([''])
|
|
254
254
|
]).optional(),
|
|
255
255
|
certificate_ca: z.string().optional(),
|
|
256
256
|
version_current: z.string().optional(),
|
|
257
257
|
created_at: z.string().optional(),
|
|
258
258
|
updated_at: z.string().optional(),
|
|
259
|
-
ready: z.boolean().optional()
|
|
259
|
+
ready: z.boolean().optional(),
|
|
260
|
+
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()
|
|
260
261
|
});
|
|
261
262
|
export const zClusterUpdateInput = z.object({
|
|
262
263
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
263
|
-
tier: z.enum([
|
|
264
|
-
'basic',
|
|
265
|
-
'pro'
|
|
266
|
-
]),
|
|
264
|
+
tier: z.enum(['basic', 'pro']),
|
|
267
265
|
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()
|
|
268
266
|
});
|
|
269
267
|
export const zFleetCreateInput = z.object({
|
|
@@ -321,633 +319,72 @@ export const zFleetUpdateInput = z.object({
|
|
|
321
319
|
});
|
|
322
320
|
export const zInvite = z.object({
|
|
323
321
|
id: z.string().optional(),
|
|
324
|
-
organization_id: z.
|
|
325
|
-
date_created: z.
|
|
326
|
-
email: z.
|
|
322
|
+
organization_id: z.uuid().optional(),
|
|
323
|
+
date_created: z.iso.datetime(),
|
|
324
|
+
email: z.email().optional(),
|
|
327
325
|
code: z.string().optional()
|
|
328
326
|
});
|
|
329
327
|
export const zInvoice = z.object({
|
|
330
|
-
id: z.string().
|
|
331
|
-
|
|
332
|
-
status: z.
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
'AOA',
|
|
345
|
-
'ARS',
|
|
346
|
-
'AUD',
|
|
347
|
-
'AWG',
|
|
348
|
-
'AZN',
|
|
349
|
-
'BAM',
|
|
350
|
-
'BBD',
|
|
351
|
-
'BDT',
|
|
352
|
-
'BGN',
|
|
353
|
-
'BHD',
|
|
354
|
-
'BIF',
|
|
355
|
-
'BMD',
|
|
356
|
-
'BND',
|
|
357
|
-
'BOB',
|
|
358
|
-
'BRL',
|
|
359
|
-
'BSD',
|
|
360
|
-
'BTN',
|
|
361
|
-
'BWP',
|
|
362
|
-
'BYR',
|
|
363
|
-
'BZD',
|
|
364
|
-
'CAD',
|
|
365
|
-
'CDF',
|
|
366
|
-
'CHF',
|
|
367
|
-
'CLP',
|
|
368
|
-
'CNY',
|
|
369
|
-
'COP',
|
|
370
|
-
'CRC',
|
|
371
|
-
'CUC',
|
|
372
|
-
'CUP',
|
|
373
|
-
'CVE',
|
|
374
|
-
'CZK',
|
|
375
|
-
'DJF',
|
|
376
|
-
'DKK',
|
|
377
|
-
'DOP',
|
|
378
|
-
'DZD',
|
|
379
|
-
'EGP',
|
|
380
|
-
'ERN',
|
|
381
|
-
'ETB',
|
|
382
|
-
'EUR',
|
|
383
|
-
'FJD',
|
|
384
|
-
'FKP',
|
|
385
|
-
'GBP',
|
|
386
|
-
'GEL',
|
|
387
|
-
'GGP',
|
|
388
|
-
'GHS',
|
|
389
|
-
'GIP',
|
|
390
|
-
'GMD',
|
|
391
|
-
'GNF',
|
|
392
|
-
'GTQ',
|
|
393
|
-
'GYD',
|
|
394
|
-
'HKD',
|
|
395
|
-
'HNL',
|
|
396
|
-
'HRK',
|
|
397
|
-
'HTG',
|
|
398
|
-
'HUF',
|
|
399
|
-
'IDR',
|
|
400
|
-
'ILS',
|
|
401
|
-
'IMP',
|
|
402
|
-
'INR',
|
|
403
|
-
'IQD',
|
|
404
|
-
'IRR',
|
|
405
|
-
'ISK',
|
|
406
|
-
'JEP',
|
|
407
|
-
'JMD',
|
|
408
|
-
'JOD',
|
|
409
|
-
'JPY',
|
|
410
|
-
'KES',
|
|
411
|
-
'KGS',
|
|
412
|
-
'KHR',
|
|
413
|
-
'KMF',
|
|
414
|
-
'KPW',
|
|
415
|
-
'KRW',
|
|
416
|
-
'KWD',
|
|
417
|
-
'KYD',
|
|
418
|
-
'KZT',
|
|
419
|
-
'LAK',
|
|
420
|
-
'LBP',
|
|
421
|
-
'LKR',
|
|
422
|
-
'LRD',
|
|
423
|
-
'LSL',
|
|
424
|
-
'LTL',
|
|
425
|
-
'LVL',
|
|
426
|
-
'LYD',
|
|
427
|
-
'MAD',
|
|
428
|
-
'MDL',
|
|
429
|
-
'MGA',
|
|
430
|
-
'MKD',
|
|
431
|
-
'MMK',
|
|
432
|
-
'MNT',
|
|
433
|
-
'MOP',
|
|
434
|
-
'MRO',
|
|
435
|
-
'MUR',
|
|
436
|
-
'MVR',
|
|
437
|
-
'MWK',
|
|
438
|
-
'MXN',
|
|
439
|
-
'MYR',
|
|
440
|
-
'MZN',
|
|
441
|
-
'NAD',
|
|
442
|
-
'NGN',
|
|
443
|
-
'NIO',
|
|
444
|
-
'NOK',
|
|
445
|
-
'NPR',
|
|
446
|
-
'NZD',
|
|
447
|
-
'OMR',
|
|
448
|
-
'PAB',
|
|
449
|
-
'PEN',
|
|
450
|
-
'PGK',
|
|
451
|
-
'PHP',
|
|
452
|
-
'PKR',
|
|
453
|
-
'PLN',
|
|
454
|
-
'PYG',
|
|
455
|
-
'QAR',
|
|
456
|
-
'RON',
|
|
457
|
-
'RSD',
|
|
458
|
-
'RUB',
|
|
459
|
-
'RWF',
|
|
460
|
-
'SAR',
|
|
461
|
-
'SBD',
|
|
462
|
-
'SCR',
|
|
463
|
-
'SDG',
|
|
464
|
-
'SEK',
|
|
465
|
-
'SGD',
|
|
466
|
-
'SHP',
|
|
467
|
-
'SLL',
|
|
468
|
-
'SOS',
|
|
469
|
-
'SPL',
|
|
470
|
-
'SRD',
|
|
471
|
-
'STD',
|
|
472
|
-
'SVC',
|
|
473
|
-
'SYP',
|
|
474
|
-
'SZL',
|
|
475
|
-
'THB',
|
|
476
|
-
'TJS',
|
|
477
|
-
'TMT',
|
|
478
|
-
'TND',
|
|
479
|
-
'TOP',
|
|
480
|
-
'TRY',
|
|
481
|
-
'TTD',
|
|
482
|
-
'TVD',
|
|
483
|
-
'TWD',
|
|
484
|
-
'TZS',
|
|
485
|
-
'UAH',
|
|
486
|
-
'UGX',
|
|
487
|
-
'USD',
|
|
488
|
-
'UYU',
|
|
489
|
-
'UZS',
|
|
490
|
-
'VEF',
|
|
491
|
-
'VND',
|
|
492
|
-
'VUV',
|
|
493
|
-
'WST',
|
|
494
|
-
'XAF',
|
|
495
|
-
'XCD',
|
|
496
|
-
'XDR',
|
|
497
|
-
'XOF',
|
|
498
|
-
'XPF',
|
|
499
|
-
'YER',
|
|
500
|
-
'ZAR',
|
|
501
|
-
'ZMW',
|
|
502
|
-
'ZWD',
|
|
503
|
-
'BTC'
|
|
504
|
-
]).optional(),
|
|
505
|
-
creditAdj: z.number().optional(),
|
|
506
|
-
refundAdj: z.number().optional(),
|
|
507
|
-
invoiceDate: z.string().optional(),
|
|
508
|
-
targetDate: z.string().optional(),
|
|
509
|
-
invoiceNumber: z.string().optional(),
|
|
510
|
-
balance: z.number().optional(),
|
|
511
|
-
bundleKeys: z.string().optional(),
|
|
512
|
-
credits: z.array(z.object({
|
|
513
|
-
id: z.string().uuid().optional(),
|
|
514
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
515
|
-
productName: z.string().optional(),
|
|
516
|
-
planName: z.string().optional(),
|
|
517
|
-
phaseName: z.string().optional(),
|
|
518
|
-
usageName: z.string().optional(),
|
|
519
|
-
prettyProductName: z.string().optional(),
|
|
520
|
-
prettyPlanName: z.string().optional(),
|
|
521
|
-
prettyPhaseName: z.string().optional(),
|
|
522
|
-
prettyUsageName: z.string().optional(),
|
|
523
|
-
itemType: z.enum([
|
|
524
|
-
'EXTERNAL_CHARGE',
|
|
525
|
-
'FIXED',
|
|
526
|
-
'RECURRING',
|
|
527
|
-
'REPAIR_ADJ',
|
|
528
|
-
'CBA_ADJ',
|
|
529
|
-
'CREDIT_ADJ',
|
|
530
|
-
'ITEM_ADJ',
|
|
531
|
-
'USAGE',
|
|
532
|
-
'TAX',
|
|
533
|
-
'PARENT_SUMMARY'
|
|
534
|
-
]).optional(),
|
|
535
|
-
description: z.string().optional(),
|
|
536
|
-
startDate: z.string().optional(),
|
|
537
|
-
endDate: z.string().optional(),
|
|
538
|
-
amount: z.number().optional(),
|
|
539
|
-
rate: z.number().optional(),
|
|
540
|
-
currency: z.enum([
|
|
541
|
-
'AED',
|
|
542
|
-
'AFN',
|
|
543
|
-
'ALL',
|
|
544
|
-
'AMD',
|
|
545
|
-
'ANG',
|
|
546
|
-
'AOA',
|
|
547
|
-
'ARS',
|
|
548
|
-
'AUD',
|
|
549
|
-
'AWG',
|
|
550
|
-
'AZN',
|
|
551
|
-
'BAM',
|
|
552
|
-
'BBD',
|
|
553
|
-
'BDT',
|
|
554
|
-
'BGN',
|
|
555
|
-
'BHD',
|
|
556
|
-
'BIF',
|
|
557
|
-
'BMD',
|
|
558
|
-
'BND',
|
|
559
|
-
'BOB',
|
|
560
|
-
'BRL',
|
|
561
|
-
'BSD',
|
|
562
|
-
'BTN',
|
|
563
|
-
'BWP',
|
|
564
|
-
'BYR',
|
|
565
|
-
'BZD',
|
|
566
|
-
'CAD',
|
|
567
|
-
'CDF',
|
|
568
|
-
'CHF',
|
|
569
|
-
'CLP',
|
|
570
|
-
'CNY',
|
|
571
|
-
'COP',
|
|
572
|
-
'CRC',
|
|
573
|
-
'CUC',
|
|
574
|
-
'CUP',
|
|
575
|
-
'CVE',
|
|
576
|
-
'CZK',
|
|
577
|
-
'DJF',
|
|
578
|
-
'DKK',
|
|
579
|
-
'DOP',
|
|
580
|
-
'DZD',
|
|
581
|
-
'EGP',
|
|
582
|
-
'ERN',
|
|
583
|
-
'ETB',
|
|
584
|
-
'EUR',
|
|
585
|
-
'FJD',
|
|
586
|
-
'FKP',
|
|
587
|
-
'GBP',
|
|
588
|
-
'GEL',
|
|
589
|
-
'GGP',
|
|
590
|
-
'GHS',
|
|
591
|
-
'GIP',
|
|
592
|
-
'GMD',
|
|
593
|
-
'GNF',
|
|
594
|
-
'GTQ',
|
|
595
|
-
'GYD',
|
|
596
|
-
'HKD',
|
|
597
|
-
'HNL',
|
|
598
|
-
'HRK',
|
|
599
|
-
'HTG',
|
|
600
|
-
'HUF',
|
|
601
|
-
'IDR',
|
|
602
|
-
'ILS',
|
|
603
|
-
'IMP',
|
|
604
|
-
'INR',
|
|
605
|
-
'IQD',
|
|
606
|
-
'IRR',
|
|
607
|
-
'ISK',
|
|
608
|
-
'JEP',
|
|
609
|
-
'JMD',
|
|
610
|
-
'JOD',
|
|
611
|
-
'JPY',
|
|
612
|
-
'KES',
|
|
613
|
-
'KGS',
|
|
614
|
-
'KHR',
|
|
615
|
-
'KMF',
|
|
616
|
-
'KPW',
|
|
617
|
-
'KRW',
|
|
618
|
-
'KWD',
|
|
619
|
-
'KYD',
|
|
620
|
-
'KZT',
|
|
621
|
-
'LAK',
|
|
622
|
-
'LBP',
|
|
623
|
-
'LKR',
|
|
624
|
-
'LRD',
|
|
625
|
-
'LSL',
|
|
626
|
-
'LTL',
|
|
627
|
-
'LVL',
|
|
628
|
-
'LYD',
|
|
629
|
-
'MAD',
|
|
630
|
-
'MDL',
|
|
631
|
-
'MGA',
|
|
632
|
-
'MKD',
|
|
633
|
-
'MMK',
|
|
634
|
-
'MNT',
|
|
635
|
-
'MOP',
|
|
636
|
-
'MRO',
|
|
637
|
-
'MUR',
|
|
638
|
-
'MVR',
|
|
639
|
-
'MWK',
|
|
640
|
-
'MXN',
|
|
641
|
-
'MYR',
|
|
642
|
-
'MZN',
|
|
643
|
-
'NAD',
|
|
644
|
-
'NGN',
|
|
645
|
-
'NIO',
|
|
646
|
-
'NOK',
|
|
647
|
-
'NPR',
|
|
648
|
-
'NZD',
|
|
649
|
-
'OMR',
|
|
650
|
-
'PAB',
|
|
651
|
-
'PEN',
|
|
652
|
-
'PGK',
|
|
653
|
-
'PHP',
|
|
654
|
-
'PKR',
|
|
655
|
-
'PLN',
|
|
656
|
-
'PYG',
|
|
657
|
-
'QAR',
|
|
658
|
-
'RON',
|
|
659
|
-
'RSD',
|
|
660
|
-
'RUB',
|
|
661
|
-
'RWF',
|
|
662
|
-
'SAR',
|
|
663
|
-
'SBD',
|
|
664
|
-
'SCR',
|
|
665
|
-
'SDG',
|
|
666
|
-
'SEK',
|
|
667
|
-
'SGD',
|
|
668
|
-
'SHP',
|
|
669
|
-
'SLL',
|
|
670
|
-
'SOS',
|
|
671
|
-
'SPL',
|
|
672
|
-
'SRD',
|
|
673
|
-
'STD',
|
|
674
|
-
'SVC',
|
|
675
|
-
'SYP',
|
|
676
|
-
'SZL',
|
|
677
|
-
'THB',
|
|
678
|
-
'TJS',
|
|
679
|
-
'TMT',
|
|
680
|
-
'TND',
|
|
681
|
-
'TOP',
|
|
682
|
-
'TRY',
|
|
683
|
-
'TTD',
|
|
684
|
-
'TVD',
|
|
685
|
-
'TWD',
|
|
686
|
-
'TZS',
|
|
687
|
-
'UAH',
|
|
688
|
-
'UGX',
|
|
689
|
-
'USD',
|
|
690
|
-
'UYU',
|
|
691
|
-
'UZS',
|
|
692
|
-
'VEF',
|
|
693
|
-
'VND',
|
|
694
|
-
'VUV',
|
|
695
|
-
'WST',
|
|
696
|
-
'XAF',
|
|
697
|
-
'XCD',
|
|
698
|
-
'XDR',
|
|
699
|
-
'XOF',
|
|
700
|
-
'XPF',
|
|
701
|
-
'YER',
|
|
702
|
-
'ZAR',
|
|
703
|
-
'ZMW',
|
|
704
|
-
'ZWD',
|
|
705
|
-
'BTC'
|
|
706
|
-
]).optional(),
|
|
707
|
-
quantity: z.number().optional(),
|
|
708
|
-
itemDetails: z.string().optional(),
|
|
709
|
-
catalogEffectiveDate: z.string().optional(),
|
|
710
|
-
childItems: z.array(z.unknown()).optional()
|
|
711
|
-
})).optional(),
|
|
712
|
-
items: z.array(z.object({
|
|
713
|
-
id: z.string().uuid().optional(),
|
|
714
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
715
|
-
productName: z.string().optional(),
|
|
716
|
-
planName: z.string().optional(),
|
|
717
|
-
phaseName: z.string().optional(),
|
|
718
|
-
usageName: z.string().optional(),
|
|
719
|
-
prettyProductName: z.string().optional(),
|
|
720
|
-
prettyPlanName: z.string().optional(),
|
|
721
|
-
prettyPhaseName: z.string().optional(),
|
|
722
|
-
prettyUsageName: z.string().optional(),
|
|
723
|
-
itemType: z.enum([
|
|
724
|
-
'EXTERNAL_CHARGE',
|
|
725
|
-
'FIXED',
|
|
726
|
-
'RECURRING',
|
|
727
|
-
'REPAIR_ADJ',
|
|
728
|
-
'CBA_ADJ',
|
|
729
|
-
'CREDIT_ADJ',
|
|
730
|
-
'ITEM_ADJ',
|
|
731
|
-
'USAGE',
|
|
732
|
-
'TAX',
|
|
733
|
-
'PARENT_SUMMARY'
|
|
734
|
-
]).optional(),
|
|
735
|
-
description: z.string().optional(),
|
|
736
|
-
startDate: z.string().optional(),
|
|
737
|
-
endDate: z.string().optional(),
|
|
738
|
-
amount: z.number().optional(),
|
|
739
|
-
rate: z.number().optional(),
|
|
740
|
-
currency: z.enum([
|
|
741
|
-
'AED',
|
|
742
|
-
'AFN',
|
|
743
|
-
'ALL',
|
|
744
|
-
'AMD',
|
|
745
|
-
'ANG',
|
|
746
|
-
'AOA',
|
|
747
|
-
'ARS',
|
|
748
|
-
'AUD',
|
|
749
|
-
'AWG',
|
|
750
|
-
'AZN',
|
|
751
|
-
'BAM',
|
|
752
|
-
'BBD',
|
|
753
|
-
'BDT',
|
|
754
|
-
'BGN',
|
|
755
|
-
'BHD',
|
|
756
|
-
'BIF',
|
|
757
|
-
'BMD',
|
|
758
|
-
'BND',
|
|
759
|
-
'BOB',
|
|
760
|
-
'BRL',
|
|
761
|
-
'BSD',
|
|
762
|
-
'BTN',
|
|
763
|
-
'BWP',
|
|
764
|
-
'BYR',
|
|
765
|
-
'BZD',
|
|
766
|
-
'CAD',
|
|
767
|
-
'CDF',
|
|
768
|
-
'CHF',
|
|
769
|
-
'CLP',
|
|
770
|
-
'CNY',
|
|
771
|
-
'COP',
|
|
772
|
-
'CRC',
|
|
773
|
-
'CUC',
|
|
774
|
-
'CUP',
|
|
775
|
-
'CVE',
|
|
776
|
-
'CZK',
|
|
777
|
-
'DJF',
|
|
778
|
-
'DKK',
|
|
779
|
-
'DOP',
|
|
780
|
-
'DZD',
|
|
781
|
-
'EGP',
|
|
782
|
-
'ERN',
|
|
783
|
-
'ETB',
|
|
784
|
-
'EUR',
|
|
785
|
-
'FJD',
|
|
786
|
-
'FKP',
|
|
787
|
-
'GBP',
|
|
788
|
-
'GEL',
|
|
789
|
-
'GGP',
|
|
790
|
-
'GHS',
|
|
791
|
-
'GIP',
|
|
792
|
-
'GMD',
|
|
793
|
-
'GNF',
|
|
794
|
-
'GTQ',
|
|
795
|
-
'GYD',
|
|
796
|
-
'HKD',
|
|
797
|
-
'HNL',
|
|
798
|
-
'HRK',
|
|
799
|
-
'HTG',
|
|
800
|
-
'HUF',
|
|
801
|
-
'IDR',
|
|
802
|
-
'ILS',
|
|
803
|
-
'IMP',
|
|
804
|
-
'INR',
|
|
805
|
-
'IQD',
|
|
806
|
-
'IRR',
|
|
807
|
-
'ISK',
|
|
808
|
-
'JEP',
|
|
809
|
-
'JMD',
|
|
810
|
-
'JOD',
|
|
811
|
-
'JPY',
|
|
812
|
-
'KES',
|
|
813
|
-
'KGS',
|
|
814
|
-
'KHR',
|
|
815
|
-
'KMF',
|
|
816
|
-
'KPW',
|
|
817
|
-
'KRW',
|
|
818
|
-
'KWD',
|
|
819
|
-
'KYD',
|
|
820
|
-
'KZT',
|
|
821
|
-
'LAK',
|
|
822
|
-
'LBP',
|
|
823
|
-
'LKR',
|
|
824
|
-
'LRD',
|
|
825
|
-
'LSL',
|
|
826
|
-
'LTL',
|
|
827
|
-
'LVL',
|
|
828
|
-
'LYD',
|
|
829
|
-
'MAD',
|
|
830
|
-
'MDL',
|
|
831
|
-
'MGA',
|
|
832
|
-
'MKD',
|
|
833
|
-
'MMK',
|
|
834
|
-
'MNT',
|
|
835
|
-
'MOP',
|
|
836
|
-
'MRO',
|
|
837
|
-
'MUR',
|
|
838
|
-
'MVR',
|
|
839
|
-
'MWK',
|
|
840
|
-
'MXN',
|
|
841
|
-
'MYR',
|
|
842
|
-
'MZN',
|
|
843
|
-
'NAD',
|
|
844
|
-
'NGN',
|
|
845
|
-
'NIO',
|
|
846
|
-
'NOK',
|
|
847
|
-
'NPR',
|
|
848
|
-
'NZD',
|
|
849
|
-
'OMR',
|
|
850
|
-
'PAB',
|
|
851
|
-
'PEN',
|
|
852
|
-
'PGK',
|
|
853
|
-
'PHP',
|
|
854
|
-
'PKR',
|
|
855
|
-
'PLN',
|
|
856
|
-
'PYG',
|
|
857
|
-
'QAR',
|
|
858
|
-
'RON',
|
|
859
|
-
'RSD',
|
|
860
|
-
'RUB',
|
|
861
|
-
'RWF',
|
|
862
|
-
'SAR',
|
|
863
|
-
'SBD',
|
|
864
|
-
'SCR',
|
|
865
|
-
'SDG',
|
|
866
|
-
'SEK',
|
|
867
|
-
'SGD',
|
|
868
|
-
'SHP',
|
|
869
|
-
'SLL',
|
|
870
|
-
'SOS',
|
|
871
|
-
'SPL',
|
|
872
|
-
'SRD',
|
|
873
|
-
'STD',
|
|
874
|
-
'SVC',
|
|
875
|
-
'SYP',
|
|
876
|
-
'SZL',
|
|
877
|
-
'THB',
|
|
878
|
-
'TJS',
|
|
879
|
-
'TMT',
|
|
880
|
-
'TND',
|
|
881
|
-
'TOP',
|
|
882
|
-
'TRY',
|
|
883
|
-
'TTD',
|
|
884
|
-
'TVD',
|
|
885
|
-
'TWD',
|
|
886
|
-
'TZS',
|
|
887
|
-
'UAH',
|
|
888
|
-
'UGX',
|
|
889
|
-
'USD',
|
|
890
|
-
'UYU',
|
|
891
|
-
'UZS',
|
|
892
|
-
'VEF',
|
|
893
|
-
'VND',
|
|
894
|
-
'VUV',
|
|
895
|
-
'WST',
|
|
896
|
-
'XAF',
|
|
897
|
-
'XCD',
|
|
898
|
-
'XDR',
|
|
899
|
-
'XOF',
|
|
900
|
-
'XPF',
|
|
901
|
-
'YER',
|
|
902
|
-
'ZAR',
|
|
903
|
-
'ZMW',
|
|
904
|
-
'ZWD',
|
|
905
|
-
'BTC'
|
|
906
|
-
]).optional(),
|
|
907
|
-
quantity: z.number().optional(),
|
|
908
|
-
itemDetails: z.string().optional(),
|
|
909
|
-
catalogEffectiveDate: z.string().optional(),
|
|
910
|
-
childItems: z.array(z.unknown()).optional()
|
|
911
|
-
})).optional()
|
|
328
|
+
id: z.string().optional(),
|
|
329
|
+
number: z.string().optional(),
|
|
330
|
+
status: z.string().optional(),
|
|
331
|
+
total: z.number().optional(),
|
|
332
|
+
currency: z.string().optional(),
|
|
333
|
+
created: z.iso.datetime(),
|
|
334
|
+
period_start: z.iso.datetime(),
|
|
335
|
+
period_end: z.iso.datetime(),
|
|
336
|
+
invoice_pdf: z.string().optional()
|
|
337
|
+
});
|
|
338
|
+
export const zMarketplaceListingFiles = z.object({
|
|
339
|
+
chartYaml: z.string().optional(),
|
|
340
|
+
valuesYaml: z.string().optional(),
|
|
341
|
+
valuesSchemaJson: z.string().optional()
|
|
912
342
|
});
|
|
913
343
|
export const zMarketplaceListing = z.object({
|
|
914
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
915
344
|
name: z.string(),
|
|
916
|
-
|
|
917
|
-
description: z.string(),
|
|
918
|
-
logoUrl: z.string(),
|
|
919
|
-
longDescription: z.string(),
|
|
920
|
-
categories: z.array(z.string()),
|
|
345
|
+
versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
|
|
921
346
|
version_channels: z.array(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
347
|
+
latestVersion: z.string(),
|
|
348
|
+
metadata: z.object({
|
|
349
|
+
name: z.string(),
|
|
350
|
+
version: z.string(),
|
|
351
|
+
description: z.string().optional(),
|
|
352
|
+
appVersion: z.string().optional(),
|
|
353
|
+
apiVersion: z.string().optional(),
|
|
354
|
+
keywords: z.array(z.string()).optional(),
|
|
355
|
+
home: z.string().optional(),
|
|
356
|
+
icon: z.string().optional(),
|
|
357
|
+
sources: z.array(z.string()).optional(),
|
|
358
|
+
maintainers: z.array(z.object({
|
|
359
|
+
name: z.string(),
|
|
360
|
+
email: z.string().optional()
|
|
361
|
+
})).optional()
|
|
362
|
+
}).optional()
|
|
927
363
|
});
|
|
928
364
|
export const zOrganizationCreateInput = z.object({
|
|
929
|
-
email: z.
|
|
365
|
+
email: z.email(),
|
|
930
366
|
first_name: z.string(),
|
|
931
367
|
last_name: z.string(),
|
|
932
368
|
company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
|
|
933
369
|
password: z.string().min(8)
|
|
934
370
|
});
|
|
935
371
|
export const zOrganization = z.object({
|
|
936
|
-
id: z.
|
|
372
|
+
id: z.uuid(),
|
|
937
373
|
name: z.string().min(2).max(120).optional(),
|
|
938
|
-
date_created: z.
|
|
374
|
+
date_created: z.iso.datetime(),
|
|
939
375
|
quota: z.object({
|
|
940
|
-
basic_clusters_max: z.
|
|
941
|
-
basic_clusters_available: z.
|
|
942
|
-
pro_clusters_max: z.
|
|
943
|
-
pro_clusters_available: z.
|
|
944
|
-
fleets_max: z.
|
|
376
|
+
basic_clusters_max: z.int().gte(0),
|
|
377
|
+
basic_clusters_available: z.int(),
|
|
378
|
+
pro_clusters_max: z.int().gte(0),
|
|
379
|
+
pro_clusters_available: z.int(),
|
|
380
|
+
fleets_max: z.int().gte(0),
|
|
945
381
|
cluster_tiers: z.array(z.string()).min(0),
|
|
946
382
|
regions: z.array(z.string()).min(1),
|
|
947
383
|
versions: z.array(z.object({
|
|
948
384
|
id: z.string(),
|
|
949
385
|
label: z.string()
|
|
950
|
-
})).min(1)
|
|
386
|
+
})).min(1),
|
|
387
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
951
388
|
}),
|
|
952
389
|
status: z.enum([
|
|
953
390
|
'active',
|
|
@@ -956,14 +393,12 @@ export const zOrganization = z.object({
|
|
|
956
393
|
])
|
|
957
394
|
});
|
|
958
395
|
export const zPaymentMethod = z.object({
|
|
959
|
-
id: z.
|
|
396
|
+
id: z.uuid(),
|
|
960
397
|
setup: z.boolean(),
|
|
961
|
-
type: z.enum([
|
|
962
|
-
'card'
|
|
963
|
-
]),
|
|
398
|
+
type: z.enum(['card']),
|
|
964
399
|
last4: z.string(),
|
|
965
|
-
exp_month: z.
|
|
966
|
-
exp_year: z.
|
|
400
|
+
exp_month: z.int().gte(1).lte(12),
|
|
401
|
+
exp_year: z.int().gte(2024),
|
|
967
402
|
brand: z.enum([
|
|
968
403
|
'amex',
|
|
969
404
|
'diners',
|
|
@@ -976,125 +411,239 @@ export const zPaymentMethod = z.object({
|
|
|
976
411
|
'unknown'
|
|
977
412
|
])
|
|
978
413
|
});
|
|
414
|
+
export const zPlatformQuota = z.object({
|
|
415
|
+
basic_clusters_max: z.int().gte(0),
|
|
416
|
+
basic_clusters_available: z.int(),
|
|
417
|
+
pro_clusters_max: z.int().gte(0),
|
|
418
|
+
pro_clusters_available: z.int(),
|
|
419
|
+
fleets_max: z.int().gte(0),
|
|
420
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
421
|
+
regions: z.array(z.string()).min(1),
|
|
422
|
+
versions: z.array(z.object({
|
|
423
|
+
id: z.string(),
|
|
424
|
+
label: z.string()
|
|
425
|
+
})).min(1),
|
|
426
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
427
|
+
});
|
|
428
|
+
export const zRegistryRepository = z.object({
|
|
429
|
+
name: z.string(),
|
|
430
|
+
region: z.string(),
|
|
431
|
+
uri: z.string()
|
|
432
|
+
});
|
|
433
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
434
|
+
name: z.string(),
|
|
435
|
+
region: z.string(),
|
|
436
|
+
uri: z.string(),
|
|
437
|
+
tags: z.array(z.object({
|
|
438
|
+
name: z.string(),
|
|
439
|
+
size: z.number(),
|
|
440
|
+
mediaType: z.string().optional(),
|
|
441
|
+
platforms: z.array(z.string()).optional()
|
|
442
|
+
})),
|
|
443
|
+
totalSize: z.number()
|
|
444
|
+
});
|
|
445
|
+
export const zRegistryTag = z.object({
|
|
446
|
+
name: z.string(),
|
|
447
|
+
digest: z.string(),
|
|
448
|
+
mediaType: z.string().optional(),
|
|
449
|
+
config: z.object({
|
|
450
|
+
size: z.number()
|
|
451
|
+
}).optional(),
|
|
452
|
+
layers: z.array(z.object({
|
|
453
|
+
digest: z.string().optional(),
|
|
454
|
+
size: z.number()
|
|
455
|
+
})).optional(),
|
|
456
|
+
manifests: z.array(z.object({
|
|
457
|
+
digest: z.string(),
|
|
458
|
+
platform: z.object({
|
|
459
|
+
architecture: z.string(),
|
|
460
|
+
os: z.string(),
|
|
461
|
+
variant: z.string().optional()
|
|
462
|
+
}).optional(),
|
|
463
|
+
layers: z.array(z.object({
|
|
464
|
+
digest: z.string().optional(),
|
|
465
|
+
size: z.number()
|
|
466
|
+
})).optional(),
|
|
467
|
+
size: z.number().optional()
|
|
468
|
+
})).optional(),
|
|
469
|
+
size: z.number(),
|
|
470
|
+
region: z.string(),
|
|
471
|
+
repository: z.string(),
|
|
472
|
+
uri: z.string()
|
|
473
|
+
});
|
|
474
|
+
export const zTicketAttachment = z.object({
|
|
475
|
+
id: z.string(),
|
|
476
|
+
filename: z.string(),
|
|
477
|
+
content_type: z.string(),
|
|
478
|
+
size: z.int()
|
|
479
|
+
});
|
|
480
|
+
export const zTicketCreateInput = z.object({
|
|
481
|
+
category: z.enum([
|
|
482
|
+
'billing',
|
|
483
|
+
'technical',
|
|
484
|
+
'general'
|
|
485
|
+
]),
|
|
486
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
487
|
+
properties: z.record(z.string(), z.unknown()).optional()
|
|
488
|
+
});
|
|
489
|
+
export const zTicketListResponse = z.object({
|
|
490
|
+
items: z.array(z.object({
|
|
491
|
+
id: z.string(),
|
|
492
|
+
status: z.enum([
|
|
493
|
+
'waiting_on_us',
|
|
494
|
+
'waiting_on_user',
|
|
495
|
+
'closed'
|
|
496
|
+
]),
|
|
497
|
+
category: z.enum([
|
|
498
|
+
'billing',
|
|
499
|
+
'technical',
|
|
500
|
+
'general'
|
|
501
|
+
]),
|
|
502
|
+
summary: z.string(),
|
|
503
|
+
closed_at: z.iso.datetime().optional(),
|
|
504
|
+
date_created: z.iso.datetime(),
|
|
505
|
+
date_updated: z.iso.datetime(),
|
|
506
|
+
messages: z.array(z.object({
|
|
507
|
+
id: z.string(),
|
|
508
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
509
|
+
body: z.string(),
|
|
510
|
+
author_first_name: z.string().optional(),
|
|
511
|
+
author_last_name: z.string().optional(),
|
|
512
|
+
attachments: z.array(z.object({
|
|
513
|
+
id: z.string(),
|
|
514
|
+
filename: z.string(),
|
|
515
|
+
content_type: z.string(),
|
|
516
|
+
size: z.int()
|
|
517
|
+
})).optional(),
|
|
518
|
+
date_created: z.iso.datetime()
|
|
519
|
+
})).optional()
|
|
520
|
+
}))
|
|
521
|
+
});
|
|
522
|
+
export const zTicketMessageInput = z.object({
|
|
523
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
524
|
+
});
|
|
525
|
+
export const zTicketMessage = z.object({
|
|
526
|
+
id: z.string(),
|
|
527
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
528
|
+
body: z.string(),
|
|
529
|
+
author_first_name: z.string().optional(),
|
|
530
|
+
author_last_name: z.string().optional(),
|
|
531
|
+
attachments: z.array(z.object({
|
|
532
|
+
id: z.string(),
|
|
533
|
+
filename: z.string(),
|
|
534
|
+
content_type: z.string(),
|
|
535
|
+
size: z.int()
|
|
536
|
+
})).optional(),
|
|
537
|
+
date_created: z.iso.datetime()
|
|
538
|
+
});
|
|
539
|
+
export const zTicket = z.object({
|
|
540
|
+
id: z.string(),
|
|
541
|
+
status: z.enum([
|
|
542
|
+
'waiting_on_us',
|
|
543
|
+
'waiting_on_user',
|
|
544
|
+
'closed'
|
|
545
|
+
]),
|
|
546
|
+
category: z.enum([
|
|
547
|
+
'billing',
|
|
548
|
+
'technical',
|
|
549
|
+
'general'
|
|
550
|
+
]),
|
|
551
|
+
summary: z.string(),
|
|
552
|
+
closed_at: z.iso.datetime().optional(),
|
|
553
|
+
date_created: z.iso.datetime(),
|
|
554
|
+
date_updated: z.iso.datetime(),
|
|
555
|
+
messages: z.array(z.object({
|
|
556
|
+
id: z.string(),
|
|
557
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
558
|
+
body: z.string(),
|
|
559
|
+
author_first_name: z.string().optional(),
|
|
560
|
+
author_last_name: z.string().optional(),
|
|
561
|
+
attachments: z.array(z.object({
|
|
562
|
+
id: z.string(),
|
|
563
|
+
filename: z.string(),
|
|
564
|
+
content_type: z.string(),
|
|
565
|
+
size: z.int()
|
|
566
|
+
})).optional(),
|
|
567
|
+
date_created: z.iso.datetime()
|
|
568
|
+
})).optional()
|
|
569
|
+
});
|
|
979
570
|
export const zTokenCreateInput = z.object({
|
|
980
571
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
981
|
-
role: z.enum([
|
|
982
|
-
'Administrator',
|
|
983
|
-
'User'
|
|
984
|
-
])
|
|
572
|
+
role: z.enum(['Administrator', 'User'])
|
|
985
573
|
});
|
|
986
574
|
export const zToken = z.object({
|
|
987
575
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
988
|
-
role: z.enum([
|
|
989
|
-
'Administrator',
|
|
990
|
-
'User'
|
|
991
|
-
]),
|
|
576
|
+
role: z.enum(['Administrator', 'User']),
|
|
992
577
|
id: z.string().optional(),
|
|
993
578
|
secret: z.string().optional(),
|
|
994
|
-
date_created: z.
|
|
579
|
+
date_created: z.iso.datetime()
|
|
995
580
|
});
|
|
996
581
|
export const zTokenUpdateInput = z.object({
|
|
997
582
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
998
|
-
role: z.enum([
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
583
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
584
|
+
});
|
|
585
|
+
export const zUsageFacets = z.object({
|
|
586
|
+
cluster_id: z.array(z.string()).optional(),
|
|
587
|
+
product: z.array(z.string()).optional()
|
|
588
|
+
});
|
|
589
|
+
export const zUsageResponse = z.object({
|
|
590
|
+
data: z.array(z.object({
|
|
591
|
+
hour: z.string(),
|
|
592
|
+
cluster_id: z.string(),
|
|
593
|
+
product: z.string(),
|
|
594
|
+
value: z.number(),
|
|
595
|
+
price: z.number(),
|
|
596
|
+
total: z.number()
|
|
597
|
+
})),
|
|
598
|
+
facets: z.object({
|
|
599
|
+
cluster_id: z.array(z.string()).optional(),
|
|
600
|
+
product: z.array(z.string()).optional()
|
|
601
|
+
})
|
|
1002
602
|
});
|
|
1003
603
|
export const zUsage = z.object({
|
|
1004
|
-
hour: z.string()
|
|
1005
|
-
cluster_id: z.string()
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
]),
|
|
1011
|
-
product: z.enum([
|
|
1012
|
-
'cfke_controlplane',
|
|
1013
|
-
'cfke_connected_nodes',
|
|
1014
|
-
'infra_compute',
|
|
1015
|
-
'infra_storage',
|
|
1016
|
-
'infra_loadbalancing',
|
|
1017
|
-
'infra_traffic',
|
|
1018
|
-
'cfcr_storage'
|
|
1019
|
-
]),
|
|
1020
|
-
node_name: z.string(),
|
|
1021
|
-
sku: z.string(),
|
|
1022
|
-
cpu: z.union([
|
|
1023
|
-
z.number(),
|
|
1024
|
-
z.enum([
|
|
1025
|
-
''
|
|
1026
|
-
])
|
|
1027
|
-
]),
|
|
1028
|
-
price: z.union([
|
|
1029
|
-
z.number(),
|
|
1030
|
-
z.enum([
|
|
1031
|
-
''
|
|
1032
|
-
])
|
|
1033
|
-
]),
|
|
1034
|
-
value: z.union([
|
|
1035
|
-
z.number(),
|
|
1036
|
-
z.enum([
|
|
1037
|
-
''
|
|
1038
|
-
])
|
|
1039
|
-
]),
|
|
1040
|
-
total: z.union([
|
|
1041
|
-
z.number(),
|
|
1042
|
-
z.enum([
|
|
1043
|
-
''
|
|
1044
|
-
])
|
|
1045
|
-
])
|
|
604
|
+
hour: z.string(),
|
|
605
|
+
cluster_id: z.string(),
|
|
606
|
+
product: z.string(),
|
|
607
|
+
value: z.number(),
|
|
608
|
+
price: z.number(),
|
|
609
|
+
total: z.number()
|
|
1046
610
|
});
|
|
1047
611
|
export const zUserCreateInput = z.object({
|
|
1048
|
-
email: z.
|
|
612
|
+
email: z.email(),
|
|
1049
613
|
first_name: z.string().min(1).max(50),
|
|
1050
614
|
last_name: z.string().min(1).max(50),
|
|
1051
615
|
code: z.string(),
|
|
1052
616
|
password: z.string().min(8),
|
|
1053
|
-
status: z.enum([
|
|
1054
|
-
|
|
1055
|
-
'inactive'
|
|
1056
|
-
]).optional(),
|
|
1057
|
-
role: z.enum([
|
|
1058
|
-
'Administrator',
|
|
1059
|
-
'User'
|
|
1060
|
-
]).optional()
|
|
617
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
618
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1061
619
|
});
|
|
1062
620
|
export const zUser = z.object({
|
|
1063
|
-
email: z.
|
|
621
|
+
email: z.email(),
|
|
1064
622
|
first_name: z.string().min(1).max(50),
|
|
1065
623
|
last_name: z.string().min(1).max(50),
|
|
1066
|
-
role: z.enum([
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
status: z.enum([
|
|
1071
|
-
'active',
|
|
1072
|
-
'inactive'
|
|
1073
|
-
]),
|
|
1074
|
-
id: z.string().uuid(),
|
|
1075
|
-
date_created: z.string().datetime()
|
|
624
|
+
role: z.enum(['Administrator', 'User']),
|
|
625
|
+
status: z.enum(['active', 'inactive']),
|
|
626
|
+
id: z.uuid(),
|
|
627
|
+
date_created: z.iso.datetime()
|
|
1076
628
|
});
|
|
1077
629
|
export const zUserUpdateInput = z.object({
|
|
1078
|
-
email: z.
|
|
630
|
+
email: z.email().optional(),
|
|
1079
631
|
first_name: z.string().min(1).max(50).optional(),
|
|
1080
632
|
last_name: z.string().min(1).max(50).optional(),
|
|
1081
|
-
role: z.enum([
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
'
|
|
1087
|
-
'
|
|
1088
|
-
|
|
633
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
634
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
635
|
+
});
|
|
636
|
+
export const zGetUsageQuery = z.object({
|
|
637
|
+
granularity: z.enum([
|
|
638
|
+
'hourly',
|
|
639
|
+
'daily',
|
|
640
|
+
'monthly'
|
|
641
|
+
]).optional().default('daily')
|
|
1089
642
|
});
|
|
1090
643
|
/**
|
|
1091
|
-
*
|
|
1092
|
-
*/
|
|
1093
|
-
export const zGetUsageResponse = z.array(zUsage);
|
|
1094
|
-
/**
|
|
1095
|
-
* Current balance of the organization in USD as a floating-point number.
|
|
644
|
+
* Usage data with facets for filtering
|
|
1096
645
|
*/
|
|
1097
|
-
export const
|
|
646
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1098
647
|
/**
|
|
1099
648
|
* Redacted payment card information.
|
|
1100
649
|
*/
|
|
@@ -1106,33 +655,15 @@ export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
|
1106
655
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1107
656
|
id: z.string().optional()
|
|
1108
657
|
});
|
|
1109
|
-
/**
|
|
1110
|
-
* Start date for the usage. Date of oldest data point to retrieve.
|
|
1111
|
-
*/
|
|
1112
|
-
export const zListInvoicesParameterStartDate = z.string();
|
|
1113
|
-
/**
|
|
1114
|
-
* End date for the usage. Date of newest data point to retrieve.
|
|
1115
|
-
*/
|
|
1116
|
-
export const zListInvoicesParameterEndDate = z.string();
|
|
1117
658
|
/**
|
|
1118
659
|
* An array of usage records.
|
|
1119
660
|
*/
|
|
1120
661
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1121
|
-
/**
|
|
1122
|
-
* Unique invoice identifier. UUID v4 string in canonical form
|
|
1123
|
-
*/
|
|
1124
|
-
export const zGetInvoiceParameterId = z.string();
|
|
1125
|
-
/**
|
|
1126
|
-
* Returns a single Invoice HTML representation under `html` property.
|
|
1127
|
-
*/
|
|
1128
|
-
export const zGetInvoiceResponse = z.object({
|
|
1129
|
-
html: z.string().optional()
|
|
1130
|
-
});
|
|
1131
662
|
/**
|
|
1132
663
|
* Returns a single object containing organization contact and billing address details.
|
|
1133
664
|
*/
|
|
1134
665
|
export const zGetContactResponse = zBillingContact;
|
|
1135
|
-
export const
|
|
666
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1136
667
|
/**
|
|
1137
668
|
* Successfully updated. Returns updated organization details.
|
|
1138
669
|
*/
|
|
@@ -1141,245 +672,303 @@ export const zUpdateContactResponse = zBillingContact;
|
|
|
1141
672
|
* An array of the applied promotional credits records.
|
|
1142
673
|
*/
|
|
1143
674
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1144
|
-
export const
|
|
675
|
+
export const zRedeemCreditsBody = z.object({
|
|
1145
676
|
code: z.string().optional()
|
|
1146
677
|
});
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
export const zListChartsParameterClusterId = z.string();
|
|
678
|
+
export const zListChartsPath = z.object({
|
|
679
|
+
cluster_id: z.string()
|
|
680
|
+
});
|
|
1151
681
|
/**
|
|
1152
682
|
* An array of charts
|
|
1153
683
|
*/
|
|
1154
684
|
export const zListChartsResponse = z.array(zChart);
|
|
1155
|
-
export const
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
export const zCreateChartParameterClusterId = z.string();
|
|
685
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
686
|
+
export const zCreateChartPath = z.object({
|
|
687
|
+
cluster_id: z.string()
|
|
688
|
+
});
|
|
1160
689
|
/**
|
|
1161
690
|
* Successfully created. Returns created Chart ID.
|
|
1162
691
|
*/
|
|
1163
692
|
export const zCreateChartResponse = z.string();
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
/**
|
|
1169
|
-
* Chart deployment name as the unique identifier of the chart.
|
|
1170
|
-
*/
|
|
1171
|
-
export const zDeleteChartParameterChartName = z.string();
|
|
693
|
+
export const zDeleteChartPath = z.object({
|
|
694
|
+
cluster_id: z.string(),
|
|
695
|
+
chart_name: z.string()
|
|
696
|
+
});
|
|
1172
697
|
/**
|
|
1173
698
|
* Successfully deleted.
|
|
1174
699
|
*/
|
|
1175
700
|
export const zDeleteChartResponse = z.string();
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
/**
|
|
1181
|
-
* Chart deployment name as the unique identifier of the chart.
|
|
1182
|
-
*/
|
|
1183
|
-
export const zGetChartParameterChartName = z.string();
|
|
701
|
+
export const zGetChartPath = z.object({
|
|
702
|
+
cluster_id: z.string(),
|
|
703
|
+
chart_name: z.string()
|
|
704
|
+
});
|
|
1184
705
|
/**
|
|
1185
706
|
* Returns a single object containing chart details.
|
|
1186
707
|
*/
|
|
1187
708
|
export const zGetChartResponse = zChart;
|
|
1188
|
-
export const
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* Chart deployment name as the unique identifier of the chart.
|
|
1195
|
-
*/
|
|
1196
|
-
export const zUpdateChartParameterChartName = z.string();
|
|
709
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
710
|
+
export const zUpdateChartPath = z.object({
|
|
711
|
+
cluster_id: z.string(),
|
|
712
|
+
chart_name: z.string()
|
|
713
|
+
});
|
|
1197
714
|
/**
|
|
1198
715
|
* Successfully updated.
|
|
1199
716
|
*/
|
|
1200
717
|
export const zUpdateChartResponse = z.string();
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
export const zListFleetsParameterClusterId = z.string();
|
|
718
|
+
export const zListFleetsPath = z.object({
|
|
719
|
+
cluster_id: z.string()
|
|
720
|
+
});
|
|
1205
721
|
/**
|
|
1206
722
|
* An array of fleets
|
|
1207
723
|
*/
|
|
1208
724
|
export const zListFleetsResponse = z.array(zFleet);
|
|
1209
|
-
export const
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
export const zCreateFleetParameterClusterId = z.string();
|
|
725
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
726
|
+
export const zCreateFleetPath = z.object({
|
|
727
|
+
cluster_id: z.string()
|
|
728
|
+
});
|
|
1214
729
|
/**
|
|
1215
730
|
* Successfully created. Returns created Fleet ID.
|
|
1216
731
|
*/
|
|
1217
732
|
export const zCreateFleetResponse = z.string();
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
/**
|
|
1223
|
-
* Unique identifier of the fleet. UUID v4 string in canonical form
|
|
1224
|
-
*/
|
|
1225
|
-
export const zDeleteFleetParameterFleetName = z.string();
|
|
733
|
+
export const zDeleteFleetPath = z.object({
|
|
734
|
+
cluster_id: z.string(),
|
|
735
|
+
fleet_name: z.string()
|
|
736
|
+
});
|
|
1226
737
|
/**
|
|
1227
738
|
* Successfully deleted.
|
|
1228
739
|
*/
|
|
1229
740
|
export const zDeleteFleetResponse = z.string();
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
/**
|
|
1235
|
-
* Unique identifier of the fleet. UUID v4 string in canonical form
|
|
1236
|
-
*/
|
|
1237
|
-
export const zGetFleetParameterFleetName = z.string();
|
|
741
|
+
export const zGetFleetPath = z.object({
|
|
742
|
+
cluster_id: z.string(),
|
|
743
|
+
fleet_name: z.string()
|
|
744
|
+
});
|
|
1238
745
|
/**
|
|
1239
746
|
* Returns a single object containing fleet details.
|
|
1240
747
|
*/
|
|
1241
748
|
export const zGetFleetResponse = zFleet;
|
|
1242
|
-
export const
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Unique identifier of the fleet. UUID v4 string in canonical form
|
|
1249
|
-
*/
|
|
1250
|
-
export const zUpdateFleetParameterFleetName = z.string();
|
|
749
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
750
|
+
export const zUpdateFleetPath = z.object({
|
|
751
|
+
cluster_id: z.string(),
|
|
752
|
+
fleet_name: z.string()
|
|
753
|
+
});
|
|
1251
754
|
/**
|
|
1252
755
|
* Successfully updated.
|
|
1253
756
|
*/
|
|
1254
757
|
export const zUpdateFleetResponse = z.string();
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
export const zQueryClusterParameterClusterId = z.string();
|
|
758
|
+
export const zQueryClusterPath = z.object({
|
|
759
|
+
cluster_id: z.string()
|
|
760
|
+
});
|
|
1259
761
|
/**
|
|
1260
762
|
* An array of clusters
|
|
1261
763
|
*/
|
|
1262
764
|
export const zListClustersResponse = z.array(zCluster);
|
|
1263
|
-
export const
|
|
765
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1264
766
|
/**
|
|
1265
767
|
* Successfully created. Returns created Cluster ID.
|
|
1266
768
|
*/
|
|
1267
769
|
export const zCreateClusterResponse = z.string();
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
export const zDeleteClusterParameterClusterId = z.string();
|
|
770
|
+
export const zDeleteClusterPath = z.object({
|
|
771
|
+
cluster_id: z.string()
|
|
772
|
+
});
|
|
1272
773
|
/**
|
|
1273
774
|
* Successfully deleted.
|
|
1274
775
|
*/
|
|
1275
776
|
export const zDeleteClusterResponse = z.string();
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
export const zGetClusterParameterClusterId = z.string();
|
|
777
|
+
export const zGetClusterPath = z.object({
|
|
778
|
+
cluster_id: z.string()
|
|
779
|
+
});
|
|
1280
780
|
/**
|
|
1281
781
|
* Returns a single object containing cluster details.
|
|
1282
782
|
*/
|
|
1283
783
|
export const zGetClusterResponse = zCluster;
|
|
1284
|
-
export const
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
export const zUpdateClusterParameterClusterId = z.string();
|
|
784
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
785
|
+
export const zUpdateClusterPath = z.object({
|
|
786
|
+
cluster_id: z.string()
|
|
787
|
+
});
|
|
1289
788
|
/**
|
|
1290
789
|
* Successfully updated. Returns updated cluster details.
|
|
1291
790
|
*/
|
|
1292
791
|
export const zUpdateClusterResponse = zCluster;
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
export const zGetJoinInformationParameterClusterId = z.string();
|
|
792
|
+
export const zGetJoinInformationPath = z.object({
|
|
793
|
+
cluster_id: z.string()
|
|
794
|
+
});
|
|
1297
795
|
/**
|
|
1298
796
|
* An object of cluster join information
|
|
1299
797
|
*/
|
|
1300
|
-
export const zGetJoinInformationResponse =
|
|
798
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1301
799
|
/**
|
|
1302
800
|
* An array of invites
|
|
1303
801
|
*/
|
|
1304
802
|
export const zListInvitesResponse = z.array(zInvite);
|
|
1305
|
-
export const
|
|
803
|
+
export const zCreateInviteBody = z.object({
|
|
1306
804
|
email: z.string().optional()
|
|
1307
805
|
});
|
|
1308
806
|
/**
|
|
1309
807
|
* Successfully created. Returns created invite details.
|
|
1310
808
|
*/
|
|
1311
809
|
export const zCreateInviteResponse = zInvite;
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
export const zGetInviteParameterCode = z.string();
|
|
810
|
+
export const zGetInvitePath = z.object({
|
|
811
|
+
code: z.string()
|
|
812
|
+
});
|
|
1316
813
|
/**
|
|
1317
814
|
* Returns a single object containing invite details.
|
|
1318
815
|
*/
|
|
1319
816
|
export const zGetInviteResponse = zInvite;
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
export const zDeleteInviteParameterEmail = z.string();
|
|
817
|
+
export const zDeleteInvitePath = z.object({
|
|
818
|
+
email: z.string()
|
|
819
|
+
});
|
|
1324
820
|
/**
|
|
1325
821
|
* An array of chart listings in the marketplace.
|
|
1326
822
|
*/
|
|
1327
823
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
824
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
825
|
+
chart_name: z.string(),
|
|
826
|
+
version_channel: z.string()
|
|
827
|
+
});
|
|
828
|
+
/**
|
|
829
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
830
|
+
*/
|
|
831
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1328
832
|
/**
|
|
1329
|
-
*
|
|
833
|
+
* JSON-RPC 2.0 request payload
|
|
1330
834
|
*/
|
|
1331
|
-
export const
|
|
835
|
+
export const zPostMcpBody = z.object({
|
|
836
|
+
jsonrpc: z.string().optional(),
|
|
837
|
+
method: z.string().optional(),
|
|
838
|
+
id: z.union([
|
|
839
|
+
z.string(),
|
|
840
|
+
z.number()
|
|
841
|
+
]).optional(),
|
|
842
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
843
|
+
});
|
|
1332
844
|
/**
|
|
1333
|
-
*
|
|
845
|
+
* JSON-RPC 2.0 success or error response
|
|
1334
846
|
*/
|
|
1335
|
-
export const
|
|
847
|
+
export const zPostMcpResponse = z.object({
|
|
848
|
+
jsonrpc: z.string().optional(),
|
|
849
|
+
id: z.union([
|
|
850
|
+
z.string(),
|
|
851
|
+
z.number()
|
|
852
|
+
]).optional(),
|
|
853
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
854
|
+
error: z.object({
|
|
855
|
+
code: z.int().optional(),
|
|
856
|
+
message: z.string().optional()
|
|
857
|
+
}).optional()
|
|
858
|
+
});
|
|
1336
859
|
/**
|
|
1337
860
|
* Returns a single object containing organization details.
|
|
1338
861
|
*/
|
|
1339
862
|
export const zGetOrganizationResponse = zOrganization;
|
|
1340
|
-
export const
|
|
863
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1341
864
|
/**
|
|
1342
|
-
*
|
|
865
|
+
* List of repositories
|
|
1343
866
|
*/
|
|
1344
|
-
export const
|
|
1345
|
-
export const
|
|
867
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
868
|
+
export const zListTagsPath = z.object({
|
|
869
|
+
region: z.string(),
|
|
870
|
+
repository: z.string()
|
|
871
|
+
});
|
|
1346
872
|
/**
|
|
1347
|
-
*
|
|
873
|
+
* Repository with tags
|
|
1348
874
|
*/
|
|
1349
|
-
export const
|
|
875
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
876
|
+
export const zDeleteTagPath = z.object({
|
|
877
|
+
region: z.string(),
|
|
878
|
+
repository: z.string(),
|
|
879
|
+
tag: z.string()
|
|
880
|
+
});
|
|
881
|
+
export const zGetTagPath = z.object({
|
|
882
|
+
region: z.string(),
|
|
883
|
+
repository: z.string(),
|
|
884
|
+
tag: z.string()
|
|
885
|
+
});
|
|
1350
886
|
/**
|
|
1351
|
-
*
|
|
887
|
+
* Tag details
|
|
1352
888
|
*/
|
|
1353
|
-
export const
|
|
889
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1354
890
|
/**
|
|
1355
|
-
*
|
|
891
|
+
* Tickets for the organization.
|
|
1356
892
|
*/
|
|
1357
|
-
export const
|
|
893
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
894
|
+
export const zCreateTicketBody = z.object({
|
|
895
|
+
payload: z.string().optional(),
|
|
896
|
+
attachments: z.array(z.string()).optional()
|
|
897
|
+
});
|
|
1358
898
|
/**
|
|
1359
|
-
*
|
|
899
|
+
* Ticket created.
|
|
1360
900
|
*/
|
|
1361
|
-
export const
|
|
1362
|
-
export const
|
|
901
|
+
export const zCreateTicketResponse = zTicket;
|
|
902
|
+
export const zCloseTicketPath = z.object({
|
|
903
|
+
ticket_id: z.string()
|
|
904
|
+
});
|
|
1363
905
|
/**
|
|
1364
|
-
*
|
|
906
|
+
* Ticket closed.
|
|
1365
907
|
*/
|
|
1366
|
-
export const
|
|
908
|
+
export const zCloseTicketResponse = zTicket;
|
|
909
|
+
export const zGetTicketPath = z.object({
|
|
910
|
+
ticket_id: z.string()
|
|
911
|
+
});
|
|
1367
912
|
/**
|
|
1368
|
-
*
|
|
913
|
+
* Ticket with messages (internal notes excluded).
|
|
1369
914
|
*/
|
|
1370
|
-
export const
|
|
915
|
+
export const zGetTicketResponse = zTicket;
|
|
916
|
+
export const zReplyTicketBody = z.object({
|
|
917
|
+
payload: z.string().optional(),
|
|
918
|
+
attachments: z.array(z.string()).optional()
|
|
919
|
+
});
|
|
920
|
+
export const zReplyTicketPath = z.object({
|
|
921
|
+
ticket_id: z.string()
|
|
922
|
+
});
|
|
1371
923
|
/**
|
|
1372
|
-
*
|
|
924
|
+
* Reply appended.
|
|
1373
925
|
*/
|
|
1374
|
-
export const
|
|
926
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
927
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
928
|
+
ticket_id: z.string(),
|
|
929
|
+
attachment_id: z.string()
|
|
930
|
+
});
|
|
1375
931
|
/**
|
|
1376
|
-
*
|
|
932
|
+
* Attachment binary stream.
|
|
1377
933
|
*/
|
|
1378
|
-
export const
|
|
934
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1379
935
|
/**
|
|
1380
|
-
*
|
|
936
|
+
* Returns a list of access token details with masked secrets.
|
|
1381
937
|
*/
|
|
1382
|
-
export const
|
|
938
|
+
export const zListTokensResponse = z.array(zToken);
|
|
939
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
940
|
+
/**
|
|
941
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
942
|
+
*/
|
|
943
|
+
export const zCreateTokenResponse = zToken;
|
|
944
|
+
export const zDeleteTokenPath = z.object({
|
|
945
|
+
token_id: z.string()
|
|
946
|
+
});
|
|
947
|
+
export const zGetTokenPath = z.object({
|
|
948
|
+
token_id: z.string()
|
|
949
|
+
});
|
|
950
|
+
/**
|
|
951
|
+
* Returns access token details with masked secret.
|
|
952
|
+
*/
|
|
953
|
+
export const zGetTokenResponse = zToken;
|
|
954
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
955
|
+
export const zUpdateTokenPath = z.object({
|
|
956
|
+
token_id: z.string()
|
|
957
|
+
});
|
|
958
|
+
/**
|
|
959
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
960
|
+
*/
|
|
961
|
+
export const zUpdateTokenResponse = zToken;
|
|
962
|
+
export const zRegenerateTokenPath = z.object({
|
|
963
|
+
token_id: z.string()
|
|
964
|
+
});
|
|
965
|
+
/**
|
|
966
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
967
|
+
*/
|
|
968
|
+
export const zRegenerateTokenResponse = zToken;
|
|
969
|
+
export const zListUserOrganizationsPath = z.object({
|
|
970
|
+
email: z.string()
|
|
971
|
+
});
|
|
1383
972
|
/**
|
|
1384
973
|
* An array of organizations the user belongs to.
|
|
1385
974
|
*/
|
|
@@ -1391,32 +980,29 @@ export const zListUserOrganizationsResponse = z.array(z.object({
|
|
|
1391
980
|
* An array of users
|
|
1392
981
|
*/
|
|
1393
982
|
export const zListUsersResponse = z.array(zUser);
|
|
1394
|
-
export const
|
|
983
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1395
984
|
/**
|
|
1396
985
|
* Successfully created. Returns created user details.
|
|
1397
986
|
*/
|
|
1398
987
|
export const zCreateUserResponse = zUser;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
export const zDeleteUserParameterUserId = z.string();
|
|
988
|
+
export const zDeleteUserPath = z.object({
|
|
989
|
+
user_id: z.string()
|
|
990
|
+
});
|
|
1403
991
|
/**
|
|
1404
992
|
* User profile information
|
|
1405
993
|
*/
|
|
1406
994
|
export const zDeleteUserResponse = zUser;
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
export const zGetUserParameterUserId = z.string();
|
|
995
|
+
export const zGetUserPath = z.object({
|
|
996
|
+
user_id: z.string()
|
|
997
|
+
});
|
|
1411
998
|
/**
|
|
1412
999
|
* User profile information
|
|
1413
1000
|
*/
|
|
1414
1001
|
export const zGetUserResponse = zUser;
|
|
1415
|
-
export const
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
export const zUpdateUserParameterUserId = z.string();
|
|
1002
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1003
|
+
export const zUpdateUserPath = z.object({
|
|
1004
|
+
user_id: z.string()
|
|
1005
|
+
});
|
|
1420
1006
|
/**
|
|
1421
1007
|
* Successfully created. Returns created user details.
|
|
1422
1008
|
*/
|