@cloudfleet/sdk 0.0.1-48f3efe → 0.0.1-4a07f21
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 +1156 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1148 -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 +1021 -484
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1626 -575
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +179 -69
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +240 -178
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +955 -327
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1910 -2102
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +618 -738
- 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,25 +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])?$/),
|
|
196
|
+
tier: z.enum(['basic', 'pro']),
|
|
201
197
|
region: z.enum([
|
|
202
|
-
'staging',
|
|
203
|
-
'northamerica-central-1'
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
198
|
+
'staging-1a',
|
|
199
|
+
'northamerica-central-1',
|
|
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')
|
|
210
209
|
});
|
|
211
210
|
export const zClusterJoinInformation = z.object({
|
|
212
211
|
certificate_authority: z.string(),
|
|
213
|
-
endpoint: z.
|
|
212
|
+
endpoint: z.url(),
|
|
213
|
+
cluster_dns: z.string(),
|
|
214
214
|
auth_key: z.string(),
|
|
215
215
|
bootstrap_token: z.string(),
|
|
216
216
|
versions: z.object({
|
|
217
217
|
kubernetes: z.string(),
|
|
218
218
|
tailscale: z.string(),
|
|
219
|
-
containerd: z.string()
|
|
219
|
+
containerd: z.string(),
|
|
220
|
+
nvidia_driver: z.string()
|
|
220
221
|
}),
|
|
221
222
|
third_party_api_access_config: z.object({
|
|
222
223
|
metadata_url: z.string(),
|
|
@@ -226,18 +227,17 @@ export const zClusterJoinInformation = z.object({
|
|
|
226
227
|
});
|
|
227
228
|
export const zCluster = z.object({
|
|
228
229
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
229
231
|
region: z.enum([
|
|
230
|
-
'staging',
|
|
231
|
-
'northamerica-central-1'
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
]),
|
|
237
|
-
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
|
|
238
|
-
id: z.string().uuid(),
|
|
232
|
+
'staging-1a',
|
|
233
|
+
'northamerica-central-1',
|
|
234
|
+
'europe-central-1a',
|
|
235
|
+
'northamerica-central-1a'
|
|
236
|
+
]).optional().default('staging-1a'),
|
|
237
|
+
id: z.uuid(),
|
|
239
238
|
status: z.enum([
|
|
240
239
|
'active',
|
|
240
|
+
'disabled',
|
|
241
241
|
'deleted',
|
|
242
242
|
'creating',
|
|
243
243
|
'deployed',
|
|
@@ -245,19 +245,19 @@ export const zCluster = z.object({
|
|
|
245
245
|
'updating'
|
|
246
246
|
]),
|
|
247
247
|
endpoint: z.union([
|
|
248
|
-
z.
|
|
249
|
-
z.enum([
|
|
250
|
-
''
|
|
251
|
-
])
|
|
248
|
+
z.url(),
|
|
249
|
+
z.enum([''])
|
|
252
250
|
]).optional(),
|
|
253
251
|
certificate_ca: z.string().optional(),
|
|
254
252
|
version_current: z.string().optional(),
|
|
255
253
|
created_at: z.string().optional(),
|
|
256
254
|
updated_at: z.string().optional(),
|
|
257
|
-
ready: z.boolean().optional()
|
|
255
|
+
ready: z.boolean().optional(),
|
|
256
|
+
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()
|
|
258
257
|
});
|
|
259
258
|
export const zClusterUpdateInput = z.object({
|
|
260
259
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
260
|
+
tier: z.enum(['basic', 'pro']),
|
|
261
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()
|
|
262
262
|
});
|
|
263
263
|
export const zFleetCreateInput = z.object({
|
|
@@ -315,633 +315,72 @@ export const zFleetUpdateInput = z.object({
|
|
|
315
315
|
});
|
|
316
316
|
export const zInvite = z.object({
|
|
317
317
|
id: z.string().optional(),
|
|
318
|
-
organization_id: z.
|
|
319
|
-
date_created: z.
|
|
320
|
-
email: z.
|
|
318
|
+
organization_id: z.uuid().optional(),
|
|
319
|
+
date_created: z.iso.datetime(),
|
|
320
|
+
email: z.email().optional(),
|
|
321
321
|
code: z.string().optional()
|
|
322
322
|
});
|
|
323
323
|
export const zInvoice = z.object({
|
|
324
|
-
id: z.string().
|
|
325
|
-
|
|
326
|
-
status: z.
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
'AOA',
|
|
339
|
-
'ARS',
|
|
340
|
-
'AUD',
|
|
341
|
-
'AWG',
|
|
342
|
-
'AZN',
|
|
343
|
-
'BAM',
|
|
344
|
-
'BBD',
|
|
345
|
-
'BDT',
|
|
346
|
-
'BGN',
|
|
347
|
-
'BHD',
|
|
348
|
-
'BIF',
|
|
349
|
-
'BMD',
|
|
350
|
-
'BND',
|
|
351
|
-
'BOB',
|
|
352
|
-
'BRL',
|
|
353
|
-
'BSD',
|
|
354
|
-
'BTN',
|
|
355
|
-
'BWP',
|
|
356
|
-
'BYR',
|
|
357
|
-
'BZD',
|
|
358
|
-
'CAD',
|
|
359
|
-
'CDF',
|
|
360
|
-
'CHF',
|
|
361
|
-
'CLP',
|
|
362
|
-
'CNY',
|
|
363
|
-
'COP',
|
|
364
|
-
'CRC',
|
|
365
|
-
'CUC',
|
|
366
|
-
'CUP',
|
|
367
|
-
'CVE',
|
|
368
|
-
'CZK',
|
|
369
|
-
'DJF',
|
|
370
|
-
'DKK',
|
|
371
|
-
'DOP',
|
|
372
|
-
'DZD',
|
|
373
|
-
'EGP',
|
|
374
|
-
'ERN',
|
|
375
|
-
'ETB',
|
|
376
|
-
'EUR',
|
|
377
|
-
'FJD',
|
|
378
|
-
'FKP',
|
|
379
|
-
'GBP',
|
|
380
|
-
'GEL',
|
|
381
|
-
'GGP',
|
|
382
|
-
'GHS',
|
|
383
|
-
'GIP',
|
|
384
|
-
'GMD',
|
|
385
|
-
'GNF',
|
|
386
|
-
'GTQ',
|
|
387
|
-
'GYD',
|
|
388
|
-
'HKD',
|
|
389
|
-
'HNL',
|
|
390
|
-
'HRK',
|
|
391
|
-
'HTG',
|
|
392
|
-
'HUF',
|
|
393
|
-
'IDR',
|
|
394
|
-
'ILS',
|
|
395
|
-
'IMP',
|
|
396
|
-
'INR',
|
|
397
|
-
'IQD',
|
|
398
|
-
'IRR',
|
|
399
|
-
'ISK',
|
|
400
|
-
'JEP',
|
|
401
|
-
'JMD',
|
|
402
|
-
'JOD',
|
|
403
|
-
'JPY',
|
|
404
|
-
'KES',
|
|
405
|
-
'KGS',
|
|
406
|
-
'KHR',
|
|
407
|
-
'KMF',
|
|
408
|
-
'KPW',
|
|
409
|
-
'KRW',
|
|
410
|
-
'KWD',
|
|
411
|
-
'KYD',
|
|
412
|
-
'KZT',
|
|
413
|
-
'LAK',
|
|
414
|
-
'LBP',
|
|
415
|
-
'LKR',
|
|
416
|
-
'LRD',
|
|
417
|
-
'LSL',
|
|
418
|
-
'LTL',
|
|
419
|
-
'LVL',
|
|
420
|
-
'LYD',
|
|
421
|
-
'MAD',
|
|
422
|
-
'MDL',
|
|
423
|
-
'MGA',
|
|
424
|
-
'MKD',
|
|
425
|
-
'MMK',
|
|
426
|
-
'MNT',
|
|
427
|
-
'MOP',
|
|
428
|
-
'MRO',
|
|
429
|
-
'MUR',
|
|
430
|
-
'MVR',
|
|
431
|
-
'MWK',
|
|
432
|
-
'MXN',
|
|
433
|
-
'MYR',
|
|
434
|
-
'MZN',
|
|
435
|
-
'NAD',
|
|
436
|
-
'NGN',
|
|
437
|
-
'NIO',
|
|
438
|
-
'NOK',
|
|
439
|
-
'NPR',
|
|
440
|
-
'NZD',
|
|
441
|
-
'OMR',
|
|
442
|
-
'PAB',
|
|
443
|
-
'PEN',
|
|
444
|
-
'PGK',
|
|
445
|
-
'PHP',
|
|
446
|
-
'PKR',
|
|
447
|
-
'PLN',
|
|
448
|
-
'PYG',
|
|
449
|
-
'QAR',
|
|
450
|
-
'RON',
|
|
451
|
-
'RSD',
|
|
452
|
-
'RUB',
|
|
453
|
-
'RWF',
|
|
454
|
-
'SAR',
|
|
455
|
-
'SBD',
|
|
456
|
-
'SCR',
|
|
457
|
-
'SDG',
|
|
458
|
-
'SEK',
|
|
459
|
-
'SGD',
|
|
460
|
-
'SHP',
|
|
461
|
-
'SLL',
|
|
462
|
-
'SOS',
|
|
463
|
-
'SPL',
|
|
464
|
-
'SRD',
|
|
465
|
-
'STD',
|
|
466
|
-
'SVC',
|
|
467
|
-
'SYP',
|
|
468
|
-
'SZL',
|
|
469
|
-
'THB',
|
|
470
|
-
'TJS',
|
|
471
|
-
'TMT',
|
|
472
|
-
'TND',
|
|
473
|
-
'TOP',
|
|
474
|
-
'TRY',
|
|
475
|
-
'TTD',
|
|
476
|
-
'TVD',
|
|
477
|
-
'TWD',
|
|
478
|
-
'TZS',
|
|
479
|
-
'UAH',
|
|
480
|
-
'UGX',
|
|
481
|
-
'USD',
|
|
482
|
-
'UYU',
|
|
483
|
-
'UZS',
|
|
484
|
-
'VEF',
|
|
485
|
-
'VND',
|
|
486
|
-
'VUV',
|
|
487
|
-
'WST',
|
|
488
|
-
'XAF',
|
|
489
|
-
'XCD',
|
|
490
|
-
'XDR',
|
|
491
|
-
'XOF',
|
|
492
|
-
'XPF',
|
|
493
|
-
'YER',
|
|
494
|
-
'ZAR',
|
|
495
|
-
'ZMW',
|
|
496
|
-
'ZWD',
|
|
497
|
-
'BTC'
|
|
498
|
-
]).optional(),
|
|
499
|
-
creditAdj: z.number().optional(),
|
|
500
|
-
refundAdj: z.number().optional(),
|
|
501
|
-
invoiceDate: z.string().optional(),
|
|
502
|
-
targetDate: z.string().optional(),
|
|
503
|
-
invoiceNumber: z.string().optional(),
|
|
504
|
-
balance: z.number().optional(),
|
|
505
|
-
bundleKeys: z.string().optional(),
|
|
506
|
-
credits: z.array(z.object({
|
|
507
|
-
id: z.string().uuid().optional(),
|
|
508
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
509
|
-
productName: z.string().optional(),
|
|
510
|
-
planName: z.string().optional(),
|
|
511
|
-
phaseName: z.string().optional(),
|
|
512
|
-
usageName: z.string().optional(),
|
|
513
|
-
prettyProductName: z.string().optional(),
|
|
514
|
-
prettyPlanName: z.string().optional(),
|
|
515
|
-
prettyPhaseName: z.string().optional(),
|
|
516
|
-
prettyUsageName: z.string().optional(),
|
|
517
|
-
itemType: z.enum([
|
|
518
|
-
'EXTERNAL_CHARGE',
|
|
519
|
-
'FIXED',
|
|
520
|
-
'RECURRING',
|
|
521
|
-
'REPAIR_ADJ',
|
|
522
|
-
'CBA_ADJ',
|
|
523
|
-
'CREDIT_ADJ',
|
|
524
|
-
'ITEM_ADJ',
|
|
525
|
-
'USAGE',
|
|
526
|
-
'TAX',
|
|
527
|
-
'PARENT_SUMMARY'
|
|
528
|
-
]).optional(),
|
|
529
|
-
description: z.string().optional(),
|
|
530
|
-
startDate: z.string().optional(),
|
|
531
|
-
endDate: z.string().optional(),
|
|
532
|
-
amount: z.number().optional(),
|
|
533
|
-
rate: z.number().optional(),
|
|
534
|
-
currency: z.enum([
|
|
535
|
-
'AED',
|
|
536
|
-
'AFN',
|
|
537
|
-
'ALL',
|
|
538
|
-
'AMD',
|
|
539
|
-
'ANG',
|
|
540
|
-
'AOA',
|
|
541
|
-
'ARS',
|
|
542
|
-
'AUD',
|
|
543
|
-
'AWG',
|
|
544
|
-
'AZN',
|
|
545
|
-
'BAM',
|
|
546
|
-
'BBD',
|
|
547
|
-
'BDT',
|
|
548
|
-
'BGN',
|
|
549
|
-
'BHD',
|
|
550
|
-
'BIF',
|
|
551
|
-
'BMD',
|
|
552
|
-
'BND',
|
|
553
|
-
'BOB',
|
|
554
|
-
'BRL',
|
|
555
|
-
'BSD',
|
|
556
|
-
'BTN',
|
|
557
|
-
'BWP',
|
|
558
|
-
'BYR',
|
|
559
|
-
'BZD',
|
|
560
|
-
'CAD',
|
|
561
|
-
'CDF',
|
|
562
|
-
'CHF',
|
|
563
|
-
'CLP',
|
|
564
|
-
'CNY',
|
|
565
|
-
'COP',
|
|
566
|
-
'CRC',
|
|
567
|
-
'CUC',
|
|
568
|
-
'CUP',
|
|
569
|
-
'CVE',
|
|
570
|
-
'CZK',
|
|
571
|
-
'DJF',
|
|
572
|
-
'DKK',
|
|
573
|
-
'DOP',
|
|
574
|
-
'DZD',
|
|
575
|
-
'EGP',
|
|
576
|
-
'ERN',
|
|
577
|
-
'ETB',
|
|
578
|
-
'EUR',
|
|
579
|
-
'FJD',
|
|
580
|
-
'FKP',
|
|
581
|
-
'GBP',
|
|
582
|
-
'GEL',
|
|
583
|
-
'GGP',
|
|
584
|
-
'GHS',
|
|
585
|
-
'GIP',
|
|
586
|
-
'GMD',
|
|
587
|
-
'GNF',
|
|
588
|
-
'GTQ',
|
|
589
|
-
'GYD',
|
|
590
|
-
'HKD',
|
|
591
|
-
'HNL',
|
|
592
|
-
'HRK',
|
|
593
|
-
'HTG',
|
|
594
|
-
'HUF',
|
|
595
|
-
'IDR',
|
|
596
|
-
'ILS',
|
|
597
|
-
'IMP',
|
|
598
|
-
'INR',
|
|
599
|
-
'IQD',
|
|
600
|
-
'IRR',
|
|
601
|
-
'ISK',
|
|
602
|
-
'JEP',
|
|
603
|
-
'JMD',
|
|
604
|
-
'JOD',
|
|
605
|
-
'JPY',
|
|
606
|
-
'KES',
|
|
607
|
-
'KGS',
|
|
608
|
-
'KHR',
|
|
609
|
-
'KMF',
|
|
610
|
-
'KPW',
|
|
611
|
-
'KRW',
|
|
612
|
-
'KWD',
|
|
613
|
-
'KYD',
|
|
614
|
-
'KZT',
|
|
615
|
-
'LAK',
|
|
616
|
-
'LBP',
|
|
617
|
-
'LKR',
|
|
618
|
-
'LRD',
|
|
619
|
-
'LSL',
|
|
620
|
-
'LTL',
|
|
621
|
-
'LVL',
|
|
622
|
-
'LYD',
|
|
623
|
-
'MAD',
|
|
624
|
-
'MDL',
|
|
625
|
-
'MGA',
|
|
626
|
-
'MKD',
|
|
627
|
-
'MMK',
|
|
628
|
-
'MNT',
|
|
629
|
-
'MOP',
|
|
630
|
-
'MRO',
|
|
631
|
-
'MUR',
|
|
632
|
-
'MVR',
|
|
633
|
-
'MWK',
|
|
634
|
-
'MXN',
|
|
635
|
-
'MYR',
|
|
636
|
-
'MZN',
|
|
637
|
-
'NAD',
|
|
638
|
-
'NGN',
|
|
639
|
-
'NIO',
|
|
640
|
-
'NOK',
|
|
641
|
-
'NPR',
|
|
642
|
-
'NZD',
|
|
643
|
-
'OMR',
|
|
644
|
-
'PAB',
|
|
645
|
-
'PEN',
|
|
646
|
-
'PGK',
|
|
647
|
-
'PHP',
|
|
648
|
-
'PKR',
|
|
649
|
-
'PLN',
|
|
650
|
-
'PYG',
|
|
651
|
-
'QAR',
|
|
652
|
-
'RON',
|
|
653
|
-
'RSD',
|
|
654
|
-
'RUB',
|
|
655
|
-
'RWF',
|
|
656
|
-
'SAR',
|
|
657
|
-
'SBD',
|
|
658
|
-
'SCR',
|
|
659
|
-
'SDG',
|
|
660
|
-
'SEK',
|
|
661
|
-
'SGD',
|
|
662
|
-
'SHP',
|
|
663
|
-
'SLL',
|
|
664
|
-
'SOS',
|
|
665
|
-
'SPL',
|
|
666
|
-
'SRD',
|
|
667
|
-
'STD',
|
|
668
|
-
'SVC',
|
|
669
|
-
'SYP',
|
|
670
|
-
'SZL',
|
|
671
|
-
'THB',
|
|
672
|
-
'TJS',
|
|
673
|
-
'TMT',
|
|
674
|
-
'TND',
|
|
675
|
-
'TOP',
|
|
676
|
-
'TRY',
|
|
677
|
-
'TTD',
|
|
678
|
-
'TVD',
|
|
679
|
-
'TWD',
|
|
680
|
-
'TZS',
|
|
681
|
-
'UAH',
|
|
682
|
-
'UGX',
|
|
683
|
-
'USD',
|
|
684
|
-
'UYU',
|
|
685
|
-
'UZS',
|
|
686
|
-
'VEF',
|
|
687
|
-
'VND',
|
|
688
|
-
'VUV',
|
|
689
|
-
'WST',
|
|
690
|
-
'XAF',
|
|
691
|
-
'XCD',
|
|
692
|
-
'XDR',
|
|
693
|
-
'XOF',
|
|
694
|
-
'XPF',
|
|
695
|
-
'YER',
|
|
696
|
-
'ZAR',
|
|
697
|
-
'ZMW',
|
|
698
|
-
'ZWD',
|
|
699
|
-
'BTC'
|
|
700
|
-
]).optional(),
|
|
701
|
-
quantity: z.number().optional(),
|
|
702
|
-
itemDetails: z.string().optional(),
|
|
703
|
-
catalogEffectiveDate: z.string().optional(),
|
|
704
|
-
childItems: z.array(z.unknown()).optional()
|
|
705
|
-
})).optional(),
|
|
706
|
-
items: z.array(z.object({
|
|
707
|
-
id: z.string().uuid().optional(),
|
|
708
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
709
|
-
productName: z.string().optional(),
|
|
710
|
-
planName: z.string().optional(),
|
|
711
|
-
phaseName: z.string().optional(),
|
|
712
|
-
usageName: z.string().optional(),
|
|
713
|
-
prettyProductName: z.string().optional(),
|
|
714
|
-
prettyPlanName: z.string().optional(),
|
|
715
|
-
prettyPhaseName: z.string().optional(),
|
|
716
|
-
prettyUsageName: z.string().optional(),
|
|
717
|
-
itemType: z.enum([
|
|
718
|
-
'EXTERNAL_CHARGE',
|
|
719
|
-
'FIXED',
|
|
720
|
-
'RECURRING',
|
|
721
|
-
'REPAIR_ADJ',
|
|
722
|
-
'CBA_ADJ',
|
|
723
|
-
'CREDIT_ADJ',
|
|
724
|
-
'ITEM_ADJ',
|
|
725
|
-
'USAGE',
|
|
726
|
-
'TAX',
|
|
727
|
-
'PARENT_SUMMARY'
|
|
728
|
-
]).optional(),
|
|
729
|
-
description: z.string().optional(),
|
|
730
|
-
startDate: z.string().optional(),
|
|
731
|
-
endDate: z.string().optional(),
|
|
732
|
-
amount: z.number().optional(),
|
|
733
|
-
rate: z.number().optional(),
|
|
734
|
-
currency: z.enum([
|
|
735
|
-
'AED',
|
|
736
|
-
'AFN',
|
|
737
|
-
'ALL',
|
|
738
|
-
'AMD',
|
|
739
|
-
'ANG',
|
|
740
|
-
'AOA',
|
|
741
|
-
'ARS',
|
|
742
|
-
'AUD',
|
|
743
|
-
'AWG',
|
|
744
|
-
'AZN',
|
|
745
|
-
'BAM',
|
|
746
|
-
'BBD',
|
|
747
|
-
'BDT',
|
|
748
|
-
'BGN',
|
|
749
|
-
'BHD',
|
|
750
|
-
'BIF',
|
|
751
|
-
'BMD',
|
|
752
|
-
'BND',
|
|
753
|
-
'BOB',
|
|
754
|
-
'BRL',
|
|
755
|
-
'BSD',
|
|
756
|
-
'BTN',
|
|
757
|
-
'BWP',
|
|
758
|
-
'BYR',
|
|
759
|
-
'BZD',
|
|
760
|
-
'CAD',
|
|
761
|
-
'CDF',
|
|
762
|
-
'CHF',
|
|
763
|
-
'CLP',
|
|
764
|
-
'CNY',
|
|
765
|
-
'COP',
|
|
766
|
-
'CRC',
|
|
767
|
-
'CUC',
|
|
768
|
-
'CUP',
|
|
769
|
-
'CVE',
|
|
770
|
-
'CZK',
|
|
771
|
-
'DJF',
|
|
772
|
-
'DKK',
|
|
773
|
-
'DOP',
|
|
774
|
-
'DZD',
|
|
775
|
-
'EGP',
|
|
776
|
-
'ERN',
|
|
777
|
-
'ETB',
|
|
778
|
-
'EUR',
|
|
779
|
-
'FJD',
|
|
780
|
-
'FKP',
|
|
781
|
-
'GBP',
|
|
782
|
-
'GEL',
|
|
783
|
-
'GGP',
|
|
784
|
-
'GHS',
|
|
785
|
-
'GIP',
|
|
786
|
-
'GMD',
|
|
787
|
-
'GNF',
|
|
788
|
-
'GTQ',
|
|
789
|
-
'GYD',
|
|
790
|
-
'HKD',
|
|
791
|
-
'HNL',
|
|
792
|
-
'HRK',
|
|
793
|
-
'HTG',
|
|
794
|
-
'HUF',
|
|
795
|
-
'IDR',
|
|
796
|
-
'ILS',
|
|
797
|
-
'IMP',
|
|
798
|
-
'INR',
|
|
799
|
-
'IQD',
|
|
800
|
-
'IRR',
|
|
801
|
-
'ISK',
|
|
802
|
-
'JEP',
|
|
803
|
-
'JMD',
|
|
804
|
-
'JOD',
|
|
805
|
-
'JPY',
|
|
806
|
-
'KES',
|
|
807
|
-
'KGS',
|
|
808
|
-
'KHR',
|
|
809
|
-
'KMF',
|
|
810
|
-
'KPW',
|
|
811
|
-
'KRW',
|
|
812
|
-
'KWD',
|
|
813
|
-
'KYD',
|
|
814
|
-
'KZT',
|
|
815
|
-
'LAK',
|
|
816
|
-
'LBP',
|
|
817
|
-
'LKR',
|
|
818
|
-
'LRD',
|
|
819
|
-
'LSL',
|
|
820
|
-
'LTL',
|
|
821
|
-
'LVL',
|
|
822
|
-
'LYD',
|
|
823
|
-
'MAD',
|
|
824
|
-
'MDL',
|
|
825
|
-
'MGA',
|
|
826
|
-
'MKD',
|
|
827
|
-
'MMK',
|
|
828
|
-
'MNT',
|
|
829
|
-
'MOP',
|
|
830
|
-
'MRO',
|
|
831
|
-
'MUR',
|
|
832
|
-
'MVR',
|
|
833
|
-
'MWK',
|
|
834
|
-
'MXN',
|
|
835
|
-
'MYR',
|
|
836
|
-
'MZN',
|
|
837
|
-
'NAD',
|
|
838
|
-
'NGN',
|
|
839
|
-
'NIO',
|
|
840
|
-
'NOK',
|
|
841
|
-
'NPR',
|
|
842
|
-
'NZD',
|
|
843
|
-
'OMR',
|
|
844
|
-
'PAB',
|
|
845
|
-
'PEN',
|
|
846
|
-
'PGK',
|
|
847
|
-
'PHP',
|
|
848
|
-
'PKR',
|
|
849
|
-
'PLN',
|
|
850
|
-
'PYG',
|
|
851
|
-
'QAR',
|
|
852
|
-
'RON',
|
|
853
|
-
'RSD',
|
|
854
|
-
'RUB',
|
|
855
|
-
'RWF',
|
|
856
|
-
'SAR',
|
|
857
|
-
'SBD',
|
|
858
|
-
'SCR',
|
|
859
|
-
'SDG',
|
|
860
|
-
'SEK',
|
|
861
|
-
'SGD',
|
|
862
|
-
'SHP',
|
|
863
|
-
'SLL',
|
|
864
|
-
'SOS',
|
|
865
|
-
'SPL',
|
|
866
|
-
'SRD',
|
|
867
|
-
'STD',
|
|
868
|
-
'SVC',
|
|
869
|
-
'SYP',
|
|
870
|
-
'SZL',
|
|
871
|
-
'THB',
|
|
872
|
-
'TJS',
|
|
873
|
-
'TMT',
|
|
874
|
-
'TND',
|
|
875
|
-
'TOP',
|
|
876
|
-
'TRY',
|
|
877
|
-
'TTD',
|
|
878
|
-
'TVD',
|
|
879
|
-
'TWD',
|
|
880
|
-
'TZS',
|
|
881
|
-
'UAH',
|
|
882
|
-
'UGX',
|
|
883
|
-
'USD',
|
|
884
|
-
'UYU',
|
|
885
|
-
'UZS',
|
|
886
|
-
'VEF',
|
|
887
|
-
'VND',
|
|
888
|
-
'VUV',
|
|
889
|
-
'WST',
|
|
890
|
-
'XAF',
|
|
891
|
-
'XCD',
|
|
892
|
-
'XDR',
|
|
893
|
-
'XOF',
|
|
894
|
-
'XPF',
|
|
895
|
-
'YER',
|
|
896
|
-
'ZAR',
|
|
897
|
-
'ZMW',
|
|
898
|
-
'ZWD',
|
|
899
|
-
'BTC'
|
|
900
|
-
]).optional(),
|
|
901
|
-
quantity: z.number().optional(),
|
|
902
|
-
itemDetails: z.string().optional(),
|
|
903
|
-
catalogEffectiveDate: z.string().optional(),
|
|
904
|
-
childItems: z.array(z.unknown()).optional()
|
|
905
|
-
})).optional()
|
|
324
|
+
id: z.string().optional(),
|
|
325
|
+
number: z.string().optional(),
|
|
326
|
+
status: z.string().optional(),
|
|
327
|
+
total: z.number().optional(),
|
|
328
|
+
currency: z.string().optional(),
|
|
329
|
+
created: z.iso.datetime(),
|
|
330
|
+
period_start: z.iso.datetime(),
|
|
331
|
+
period_end: z.iso.datetime(),
|
|
332
|
+
invoice_pdf: z.string().optional()
|
|
333
|
+
});
|
|
334
|
+
export const zMarketplaceListingFiles = z.object({
|
|
335
|
+
chartYaml: z.string().optional(),
|
|
336
|
+
valuesYaml: z.string().optional(),
|
|
337
|
+
valuesSchemaJson: z.string().optional()
|
|
906
338
|
});
|
|
907
339
|
export const zMarketplaceListing = z.object({
|
|
908
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
909
340
|
name: z.string(),
|
|
910
|
-
|
|
911
|
-
description: z.string(),
|
|
912
|
-
logoUrl: z.string(),
|
|
913
|
-
longDescription: z.string(),
|
|
914
|
-
categories: z.array(z.string()),
|
|
341
|
+
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-]+)*))?$/)),
|
|
915
342
|
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-]+)*))?$/)),
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
343
|
+
latestVersion: z.string(),
|
|
344
|
+
metadata: z.object({
|
|
345
|
+
name: z.string(),
|
|
346
|
+
version: z.string(),
|
|
347
|
+
description: z.string().optional(),
|
|
348
|
+
appVersion: z.string().optional(),
|
|
349
|
+
apiVersion: z.string().optional(),
|
|
350
|
+
keywords: z.array(z.string()).optional(),
|
|
351
|
+
home: z.string().optional(),
|
|
352
|
+
icon: z.string().optional(),
|
|
353
|
+
sources: z.array(z.string()).optional(),
|
|
354
|
+
maintainers: z.array(z.object({
|
|
355
|
+
name: z.string(),
|
|
356
|
+
email: z.string().optional()
|
|
357
|
+
})).optional()
|
|
358
|
+
}).optional()
|
|
921
359
|
});
|
|
922
360
|
export const zOrganizationCreateInput = z.object({
|
|
923
|
-
email: z.
|
|
361
|
+
email: z.email(),
|
|
924
362
|
first_name: z.string(),
|
|
925
363
|
last_name: z.string(),
|
|
926
364
|
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,}$/),
|
|
927
365
|
password: z.string().min(8)
|
|
928
366
|
});
|
|
929
367
|
export const zOrganization = z.object({
|
|
930
|
-
id: z.
|
|
368
|
+
id: z.uuid(),
|
|
931
369
|
name: z.string().min(2).max(120).optional(),
|
|
932
|
-
date_created: z.
|
|
370
|
+
date_created: z.iso.datetime(),
|
|
933
371
|
quota: z.object({
|
|
934
|
-
basic_clusters_max: z.
|
|
935
|
-
basic_clusters_available: z.
|
|
936
|
-
pro_clusters_max: z.
|
|
937
|
-
pro_clusters_available: z.
|
|
938
|
-
fleets_max: z.
|
|
372
|
+
basic_clusters_max: z.int().gte(0),
|
|
373
|
+
basic_clusters_available: z.int(),
|
|
374
|
+
pro_clusters_max: z.int().gte(0),
|
|
375
|
+
pro_clusters_available: z.int(),
|
|
376
|
+
fleets_max: z.int().gte(0),
|
|
939
377
|
cluster_tiers: z.array(z.string()).min(0),
|
|
940
378
|
regions: z.array(z.string()).min(1),
|
|
941
379
|
versions: z.array(z.object({
|
|
942
380
|
id: z.string(),
|
|
943
381
|
label: z.string()
|
|
944
|
-
})).min(1)
|
|
382
|
+
})).min(1),
|
|
383
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
945
384
|
}),
|
|
946
385
|
status: z.enum([
|
|
947
386
|
'active',
|
|
@@ -950,14 +389,12 @@ export const zOrganization = z.object({
|
|
|
950
389
|
])
|
|
951
390
|
});
|
|
952
391
|
export const zPaymentMethod = z.object({
|
|
953
|
-
id: z.
|
|
392
|
+
id: z.uuid(),
|
|
954
393
|
setup: z.boolean(),
|
|
955
|
-
type: z.enum([
|
|
956
|
-
'card'
|
|
957
|
-
]),
|
|
394
|
+
type: z.enum(['card']),
|
|
958
395
|
last4: z.string(),
|
|
959
|
-
exp_month: z.
|
|
960
|
-
exp_year: z.
|
|
396
|
+
exp_month: z.int().gte(1).lte(12),
|
|
397
|
+
exp_year: z.int().gte(2024),
|
|
961
398
|
brand: z.enum([
|
|
962
399
|
'amex',
|
|
963
400
|
'diners',
|
|
@@ -970,164 +407,607 @@ export const zPaymentMethod = z.object({
|
|
|
970
407
|
'unknown'
|
|
971
408
|
])
|
|
972
409
|
});
|
|
410
|
+
export const zPlatformQuota = z.object({
|
|
411
|
+
basic_clusters_max: z.int().gte(0),
|
|
412
|
+
basic_clusters_available: z.int(),
|
|
413
|
+
pro_clusters_max: z.int().gte(0),
|
|
414
|
+
pro_clusters_available: z.int(),
|
|
415
|
+
fleets_max: z.int().gte(0),
|
|
416
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
417
|
+
regions: z.array(z.string()).min(1),
|
|
418
|
+
versions: z.array(z.object({
|
|
419
|
+
id: z.string(),
|
|
420
|
+
label: z.string()
|
|
421
|
+
})).min(1),
|
|
422
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
423
|
+
});
|
|
424
|
+
export const zRegistryRepository = z.object({
|
|
425
|
+
name: z.string(),
|
|
426
|
+
region: z.string(),
|
|
427
|
+
uri: z.string()
|
|
428
|
+
});
|
|
429
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
430
|
+
name: z.string(),
|
|
431
|
+
region: z.string(),
|
|
432
|
+
uri: z.string(),
|
|
433
|
+
tags: z.array(z.object({
|
|
434
|
+
name: z.string(),
|
|
435
|
+
size: z.number(),
|
|
436
|
+
mediaType: z.string().optional(),
|
|
437
|
+
platforms: z.array(z.string()).optional()
|
|
438
|
+
})),
|
|
439
|
+
totalSize: z.number()
|
|
440
|
+
});
|
|
441
|
+
export const zRegistryTag = z.object({
|
|
442
|
+
name: z.string(),
|
|
443
|
+
digest: z.string(),
|
|
444
|
+
mediaType: z.string().optional(),
|
|
445
|
+
config: z.object({
|
|
446
|
+
size: z.number()
|
|
447
|
+
}).optional(),
|
|
448
|
+
layers: z.array(z.object({
|
|
449
|
+
digest: z.string().optional(),
|
|
450
|
+
size: z.number()
|
|
451
|
+
})).optional(),
|
|
452
|
+
manifests: z.array(z.object({
|
|
453
|
+
digest: z.string(),
|
|
454
|
+
platform: z.object({
|
|
455
|
+
architecture: z.string(),
|
|
456
|
+
os: z.string(),
|
|
457
|
+
variant: z.string().optional()
|
|
458
|
+
}).optional(),
|
|
459
|
+
layers: z.array(z.object({
|
|
460
|
+
digest: z.string().optional(),
|
|
461
|
+
size: z.number()
|
|
462
|
+
})).optional(),
|
|
463
|
+
size: z.number().optional()
|
|
464
|
+
})).optional(),
|
|
465
|
+
size: z.number(),
|
|
466
|
+
region: z.string(),
|
|
467
|
+
repository: z.string(),
|
|
468
|
+
uri: z.string()
|
|
469
|
+
});
|
|
470
|
+
export const zTicketAttachment = z.object({
|
|
471
|
+
id: z.string(),
|
|
472
|
+
filename: z.string(),
|
|
473
|
+
content_type: z.string(),
|
|
474
|
+
size: z.int()
|
|
475
|
+
});
|
|
476
|
+
export const zTicketCreateInput = z.object({
|
|
477
|
+
category: z.enum([
|
|
478
|
+
'billing',
|
|
479
|
+
'technical',
|
|
480
|
+
'general'
|
|
481
|
+
]),
|
|
482
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
483
|
+
properties: z.record(z.string(), z.unknown()).optional()
|
|
484
|
+
});
|
|
485
|
+
export const zTicketListResponse = z.object({
|
|
486
|
+
items: z.array(z.object({
|
|
487
|
+
id: z.string(),
|
|
488
|
+
status: z.enum([
|
|
489
|
+
'waiting_on_us',
|
|
490
|
+
'waiting_on_user',
|
|
491
|
+
'closed'
|
|
492
|
+
]),
|
|
493
|
+
category: z.enum([
|
|
494
|
+
'billing',
|
|
495
|
+
'technical',
|
|
496
|
+
'general'
|
|
497
|
+
]),
|
|
498
|
+
summary: z.string(),
|
|
499
|
+
closed_at: z.iso.datetime().optional(),
|
|
500
|
+
date_created: z.iso.datetime(),
|
|
501
|
+
date_updated: z.iso.datetime(),
|
|
502
|
+
messages: z.array(z.object({
|
|
503
|
+
id: z.string(),
|
|
504
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
505
|
+
body: z.string(),
|
|
506
|
+
author_first_name: z.string().optional(),
|
|
507
|
+
author_last_name: z.string().optional(),
|
|
508
|
+
attachments: z.array(z.object({
|
|
509
|
+
id: z.string(),
|
|
510
|
+
filename: z.string(),
|
|
511
|
+
content_type: z.string(),
|
|
512
|
+
size: z.int()
|
|
513
|
+
})).optional(),
|
|
514
|
+
date_created: z.iso.datetime()
|
|
515
|
+
})).optional()
|
|
516
|
+
}))
|
|
517
|
+
});
|
|
518
|
+
export const zTicketMessageInput = z.object({
|
|
519
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
520
|
+
});
|
|
521
|
+
export const zTicketMessage = z.object({
|
|
522
|
+
id: z.string(),
|
|
523
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
524
|
+
body: z.string(),
|
|
525
|
+
author_first_name: z.string().optional(),
|
|
526
|
+
author_last_name: z.string().optional(),
|
|
527
|
+
attachments: z.array(z.object({
|
|
528
|
+
id: z.string(),
|
|
529
|
+
filename: z.string(),
|
|
530
|
+
content_type: z.string(),
|
|
531
|
+
size: z.int()
|
|
532
|
+
})).optional(),
|
|
533
|
+
date_created: z.iso.datetime()
|
|
534
|
+
});
|
|
535
|
+
export const zTicket = z.object({
|
|
536
|
+
id: z.string(),
|
|
537
|
+
status: z.enum([
|
|
538
|
+
'waiting_on_us',
|
|
539
|
+
'waiting_on_user',
|
|
540
|
+
'closed'
|
|
541
|
+
]),
|
|
542
|
+
category: z.enum([
|
|
543
|
+
'billing',
|
|
544
|
+
'technical',
|
|
545
|
+
'general'
|
|
546
|
+
]),
|
|
547
|
+
summary: z.string(),
|
|
548
|
+
closed_at: z.iso.datetime().optional(),
|
|
549
|
+
date_created: z.iso.datetime(),
|
|
550
|
+
date_updated: z.iso.datetime(),
|
|
551
|
+
messages: z.array(z.object({
|
|
552
|
+
id: z.string(),
|
|
553
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
554
|
+
body: z.string(),
|
|
555
|
+
author_first_name: z.string().optional(),
|
|
556
|
+
author_last_name: z.string().optional(),
|
|
557
|
+
attachments: z.array(z.object({
|
|
558
|
+
id: z.string(),
|
|
559
|
+
filename: z.string(),
|
|
560
|
+
content_type: z.string(),
|
|
561
|
+
size: z.int()
|
|
562
|
+
})).optional(),
|
|
563
|
+
date_created: z.iso.datetime()
|
|
564
|
+
})).optional()
|
|
565
|
+
});
|
|
973
566
|
export const zTokenCreateInput = z.object({
|
|
974
567
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
975
|
-
role: z.enum([
|
|
976
|
-
'Administrator',
|
|
977
|
-
'User'
|
|
978
|
-
])
|
|
568
|
+
role: z.enum(['Administrator', 'User'])
|
|
979
569
|
});
|
|
980
570
|
export const zToken = z.object({
|
|
981
571
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
982
|
-
role: z.enum([
|
|
983
|
-
'Administrator',
|
|
984
|
-
'User'
|
|
985
|
-
]),
|
|
572
|
+
role: z.enum(['Administrator', 'User']),
|
|
986
573
|
id: z.string().optional(),
|
|
987
574
|
secret: z.string().optional(),
|
|
988
|
-
date_created: z.
|
|
575
|
+
date_created: z.iso.datetime()
|
|
989
576
|
});
|
|
990
577
|
export const zTokenUpdateInput = z.object({
|
|
991
578
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
992
|
-
role: z.enum([
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
579
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
580
|
+
});
|
|
581
|
+
export const zUsageFacets = z.object({
|
|
582
|
+
cluster_id: z.array(z.string()).optional(),
|
|
583
|
+
product: z.array(z.string()).optional()
|
|
584
|
+
});
|
|
585
|
+
export const zUsageResponse = z.object({
|
|
586
|
+
data: z.array(z.object({
|
|
587
|
+
hour: z.string(),
|
|
588
|
+
cluster_id: z.string(),
|
|
589
|
+
product: z.string(),
|
|
590
|
+
value: z.number(),
|
|
591
|
+
price: z.number(),
|
|
592
|
+
total: z.number()
|
|
593
|
+
})),
|
|
594
|
+
facets: z.object({
|
|
595
|
+
cluster_id: z.array(z.string()).optional(),
|
|
596
|
+
product: z.array(z.string()).optional()
|
|
597
|
+
})
|
|
996
598
|
});
|
|
997
599
|
export const zUsage = z.object({
|
|
998
|
-
hour: z.string()
|
|
999
|
-
cluster_id: z.string()
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
]),
|
|
1005
|
-
product: z.enum([
|
|
1006
|
-
'cfke_controlplane',
|
|
1007
|
-
'cfke_connected_nodes',
|
|
1008
|
-
'infra_compute',
|
|
1009
|
-
'infra_storage',
|
|
1010
|
-
'infra_loadbalancing',
|
|
1011
|
-
'infra_traffic',
|
|
1012
|
-
'cfcr_storage'
|
|
1013
|
-
]),
|
|
1014
|
-
node_name: z.string(),
|
|
1015
|
-
sku: z.string(),
|
|
1016
|
-
cpu: z.union([
|
|
1017
|
-
z.number(),
|
|
1018
|
-
z.enum([
|
|
1019
|
-
''
|
|
1020
|
-
])
|
|
1021
|
-
]),
|
|
1022
|
-
price: z.union([
|
|
1023
|
-
z.number(),
|
|
1024
|
-
z.enum([
|
|
1025
|
-
''
|
|
1026
|
-
])
|
|
1027
|
-
]),
|
|
1028
|
-
value: z.union([
|
|
1029
|
-
z.number(),
|
|
1030
|
-
z.enum([
|
|
1031
|
-
''
|
|
1032
|
-
])
|
|
1033
|
-
]),
|
|
1034
|
-
total: z.union([
|
|
1035
|
-
z.number(),
|
|
1036
|
-
z.enum([
|
|
1037
|
-
''
|
|
1038
|
-
])
|
|
1039
|
-
])
|
|
600
|
+
hour: z.string(),
|
|
601
|
+
cluster_id: z.string(),
|
|
602
|
+
product: z.string(),
|
|
603
|
+
value: z.number(),
|
|
604
|
+
price: z.number(),
|
|
605
|
+
total: z.number()
|
|
1040
606
|
});
|
|
1041
607
|
export const zUserCreateInput = z.object({
|
|
1042
|
-
email: z.
|
|
608
|
+
email: z.email(),
|
|
1043
609
|
first_name: z.string().min(1).max(50),
|
|
1044
610
|
last_name: z.string().min(1).max(50),
|
|
1045
611
|
code: z.string(),
|
|
1046
612
|
password: z.string().min(8),
|
|
1047
|
-
status: z.enum([
|
|
1048
|
-
|
|
1049
|
-
'inactive'
|
|
1050
|
-
]).optional(),
|
|
1051
|
-
role: z.enum([
|
|
1052
|
-
'Administrator',
|
|
1053
|
-
'User'
|
|
1054
|
-
]).optional()
|
|
613
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
614
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1055
615
|
});
|
|
1056
616
|
export const zUser = z.object({
|
|
1057
|
-
email: z.
|
|
617
|
+
email: z.email(),
|
|
1058
618
|
first_name: z.string().min(1).max(50),
|
|
1059
619
|
last_name: z.string().min(1).max(50),
|
|
1060
|
-
role: z.enum([
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
status: z.enum([
|
|
1065
|
-
'active',
|
|
1066
|
-
'inactive'
|
|
1067
|
-
]),
|
|
1068
|
-
id: z.string().uuid(),
|
|
1069
|
-
date_created: z.string().datetime()
|
|
620
|
+
role: z.enum(['Administrator', 'User']),
|
|
621
|
+
status: z.enum(['active', 'inactive']),
|
|
622
|
+
id: z.uuid(),
|
|
623
|
+
date_created: z.iso.datetime()
|
|
1070
624
|
});
|
|
1071
625
|
export const zUserUpdateInput = z.object({
|
|
1072
|
-
email: z.
|
|
626
|
+
email: z.email().optional(),
|
|
1073
627
|
first_name: z.string().min(1).max(50).optional(),
|
|
1074
628
|
last_name: z.string().min(1).max(50).optional(),
|
|
1075
|
-
role: z.enum([
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
'
|
|
1081
|
-
'
|
|
1082
|
-
|
|
629
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
630
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
631
|
+
});
|
|
632
|
+
export const zGetUsageQuery = z.object({
|
|
633
|
+
granularity: z.enum([
|
|
634
|
+
'hourly',
|
|
635
|
+
'daily',
|
|
636
|
+
'monthly'
|
|
637
|
+
]).optional().default('daily')
|
|
1083
638
|
});
|
|
1084
|
-
|
|
1085
|
-
|
|
639
|
+
/**
|
|
640
|
+
* Usage data with facets for filtering
|
|
641
|
+
*/
|
|
642
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
643
|
+
/**
|
|
644
|
+
* Redacted payment card information.
|
|
645
|
+
*/
|
|
1086
646
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
647
|
+
/**
|
|
648
|
+
* 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.
|
|
649
|
+
*
|
|
650
|
+
*/
|
|
1087
651
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1088
652
|
id: z.string().optional()
|
|
1089
653
|
});
|
|
654
|
+
/**
|
|
655
|
+
* An array of usage records.
|
|
656
|
+
*/
|
|
1090
657
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
658
|
+
/**
|
|
659
|
+
* Returns a single object containing organization contact and billing address details.
|
|
660
|
+
*/
|
|
1094
661
|
export const zGetContactResponse = zBillingContact;
|
|
662
|
+
export const zUpdateContactBody = zBillingContact;
|
|
663
|
+
/**
|
|
664
|
+
* Successfully updated. Returns updated organization details.
|
|
665
|
+
*/
|
|
1095
666
|
export const zUpdateContactResponse = zBillingContact;
|
|
667
|
+
/**
|
|
668
|
+
* An array of the applied promotional credits records.
|
|
669
|
+
*/
|
|
1096
670
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
671
|
+
export const zRedeemCreditsBody = z.object({
|
|
672
|
+
code: z.string().optional()
|
|
673
|
+
});
|
|
674
|
+
export const zListChartsPath = z.object({
|
|
675
|
+
cluster_id: z.string()
|
|
676
|
+
});
|
|
677
|
+
/**
|
|
678
|
+
* An array of charts
|
|
679
|
+
*/
|
|
1097
680
|
export const zListChartsResponse = z.array(zChart);
|
|
681
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
682
|
+
export const zCreateChartPath = z.object({
|
|
683
|
+
cluster_id: z.string()
|
|
684
|
+
});
|
|
685
|
+
/**
|
|
686
|
+
* Successfully created. Returns created Chart ID.
|
|
687
|
+
*/
|
|
1098
688
|
export const zCreateChartResponse = z.string();
|
|
689
|
+
export const zDeleteChartPath = z.object({
|
|
690
|
+
cluster_id: z.string(),
|
|
691
|
+
chart_name: z.string()
|
|
692
|
+
});
|
|
693
|
+
/**
|
|
694
|
+
* Successfully deleted.
|
|
695
|
+
*/
|
|
1099
696
|
export const zDeleteChartResponse = z.string();
|
|
697
|
+
export const zGetChartPath = z.object({
|
|
698
|
+
cluster_id: z.string(),
|
|
699
|
+
chart_name: z.string()
|
|
700
|
+
});
|
|
701
|
+
/**
|
|
702
|
+
* Returns a single object containing chart details.
|
|
703
|
+
*/
|
|
1100
704
|
export const zGetChartResponse = zChart;
|
|
705
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
706
|
+
export const zUpdateChartPath = z.object({
|
|
707
|
+
cluster_id: z.string(),
|
|
708
|
+
chart_name: z.string()
|
|
709
|
+
});
|
|
710
|
+
/**
|
|
711
|
+
* Successfully updated.
|
|
712
|
+
*/
|
|
1101
713
|
export const zUpdateChartResponse = z.string();
|
|
714
|
+
export const zListFleetsPath = z.object({
|
|
715
|
+
cluster_id: z.string()
|
|
716
|
+
});
|
|
717
|
+
/**
|
|
718
|
+
* An array of fleets
|
|
719
|
+
*/
|
|
1102
720
|
export const zListFleetsResponse = z.array(zFleet);
|
|
721
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
722
|
+
export const zCreateFleetPath = z.object({
|
|
723
|
+
cluster_id: z.string()
|
|
724
|
+
});
|
|
725
|
+
/**
|
|
726
|
+
* Successfully created. Returns created Fleet ID.
|
|
727
|
+
*/
|
|
1103
728
|
export const zCreateFleetResponse = z.string();
|
|
729
|
+
export const zDeleteFleetPath = z.object({
|
|
730
|
+
cluster_id: z.string(),
|
|
731
|
+
fleet_name: z.string()
|
|
732
|
+
});
|
|
733
|
+
/**
|
|
734
|
+
* Successfully deleted.
|
|
735
|
+
*/
|
|
1104
736
|
export const zDeleteFleetResponse = z.string();
|
|
737
|
+
export const zGetFleetPath = z.object({
|
|
738
|
+
cluster_id: z.string(),
|
|
739
|
+
fleet_name: z.string()
|
|
740
|
+
});
|
|
741
|
+
/**
|
|
742
|
+
* Returns a single object containing fleet details.
|
|
743
|
+
*/
|
|
1105
744
|
export const zGetFleetResponse = zFleet;
|
|
745
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
746
|
+
export const zUpdateFleetPath = z.object({
|
|
747
|
+
cluster_id: z.string(),
|
|
748
|
+
fleet_name: z.string()
|
|
749
|
+
});
|
|
750
|
+
/**
|
|
751
|
+
* Successfully updated.
|
|
752
|
+
*/
|
|
1106
753
|
export const zUpdateFleetResponse = z.string();
|
|
754
|
+
export const zQueryClusterPath = z.object({
|
|
755
|
+
cluster_id: z.string()
|
|
756
|
+
});
|
|
757
|
+
/**
|
|
758
|
+
* An array of clusters
|
|
759
|
+
*/
|
|
1107
760
|
export const zListClustersResponse = z.array(zCluster);
|
|
761
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
762
|
+
/**
|
|
763
|
+
* Successfully created. Returns created Cluster ID.
|
|
764
|
+
*/
|
|
1108
765
|
export const zCreateClusterResponse = z.string();
|
|
766
|
+
export const zDeleteClusterPath = z.object({
|
|
767
|
+
cluster_id: z.string()
|
|
768
|
+
});
|
|
769
|
+
/**
|
|
770
|
+
* Successfully deleted.
|
|
771
|
+
*/
|
|
1109
772
|
export const zDeleteClusterResponse = z.string();
|
|
773
|
+
export const zGetClusterPath = z.object({
|
|
774
|
+
cluster_id: z.string()
|
|
775
|
+
});
|
|
776
|
+
/**
|
|
777
|
+
* Returns a single object containing cluster details.
|
|
778
|
+
*/
|
|
1110
779
|
export const zGetClusterResponse = zCluster;
|
|
780
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
781
|
+
export const zUpdateClusterPath = z.object({
|
|
782
|
+
cluster_id: z.string()
|
|
783
|
+
});
|
|
784
|
+
/**
|
|
785
|
+
* Successfully updated. Returns updated cluster details.
|
|
786
|
+
*/
|
|
1111
787
|
export const zUpdateClusterResponse = zCluster;
|
|
1112
|
-
export const
|
|
788
|
+
export const zGetClusterCaPath = z.object({
|
|
789
|
+
cluster_id: z.string()
|
|
790
|
+
});
|
|
791
|
+
/**
|
|
792
|
+
* PEM-encoded certificate authority of the cluster.
|
|
793
|
+
*/
|
|
794
|
+
export const zGetClusterCaResponse = z.string();
|
|
795
|
+
export const zGetJoinInformationPath = z.object({
|
|
796
|
+
cluster_id: z.string()
|
|
797
|
+
});
|
|
798
|
+
/**
|
|
799
|
+
* An object of cluster join information
|
|
800
|
+
*/
|
|
801
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
802
|
+
/**
|
|
803
|
+
* An array of invites
|
|
804
|
+
*/
|
|
1113
805
|
export const zListInvitesResponse = z.array(zInvite);
|
|
806
|
+
export const zCreateInviteBody = z.object({
|
|
807
|
+
email: z.string().optional()
|
|
808
|
+
});
|
|
809
|
+
/**
|
|
810
|
+
* Successfully created. Returns created invite details.
|
|
811
|
+
*/
|
|
1114
812
|
export const zCreateInviteResponse = zInvite;
|
|
813
|
+
export const zGetInvitePath = z.object({
|
|
814
|
+
code: z.string()
|
|
815
|
+
});
|
|
816
|
+
/**
|
|
817
|
+
* Returns a single object containing invite details.
|
|
818
|
+
*/
|
|
1115
819
|
export const zGetInviteResponse = zInvite;
|
|
820
|
+
export const zDeleteInvitePath = z.object({
|
|
821
|
+
email: z.string()
|
|
822
|
+
});
|
|
823
|
+
/**
|
|
824
|
+
* An array of chart listings in the marketplace.
|
|
825
|
+
*/
|
|
1116
826
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1117
|
-
export const
|
|
827
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
828
|
+
chart_name: z.string(),
|
|
829
|
+
version_channel: z.string()
|
|
830
|
+
});
|
|
831
|
+
/**
|
|
832
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
833
|
+
*/
|
|
834
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
835
|
+
/**
|
|
836
|
+
* JSON-RPC 2.0 request payload
|
|
837
|
+
*/
|
|
838
|
+
export const zPostMcpBody = z.object({
|
|
839
|
+
jsonrpc: z.string().optional(),
|
|
840
|
+
method: z.string().optional(),
|
|
841
|
+
id: z.union([
|
|
842
|
+
z.string(),
|
|
843
|
+
z.number()
|
|
844
|
+
]).optional(),
|
|
845
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
846
|
+
});
|
|
847
|
+
/**
|
|
848
|
+
* JSON-RPC 2.0 success or error response
|
|
849
|
+
*/
|
|
850
|
+
export const zPostMcpResponse = z.object({
|
|
851
|
+
jsonrpc: z.string().optional(),
|
|
852
|
+
id: z.union([
|
|
853
|
+
z.string(),
|
|
854
|
+
z.number()
|
|
855
|
+
]).optional(),
|
|
856
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
857
|
+
error: z.object({
|
|
858
|
+
code: z.int().optional(),
|
|
859
|
+
message: z.string().optional()
|
|
860
|
+
}).optional()
|
|
861
|
+
});
|
|
862
|
+
/**
|
|
863
|
+
* Returns a single object containing organization details.
|
|
864
|
+
*/
|
|
1118
865
|
export const zGetOrganizationResponse = zOrganization;
|
|
866
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
867
|
+
/**
|
|
868
|
+
* List of repositories
|
|
869
|
+
*/
|
|
870
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
871
|
+
export const zListTagsPath = z.object({
|
|
872
|
+
region: z.string(),
|
|
873
|
+
repository: z.string()
|
|
874
|
+
});
|
|
875
|
+
/**
|
|
876
|
+
* Repository with tags
|
|
877
|
+
*/
|
|
878
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
879
|
+
export const zDeleteTagPath = z.object({
|
|
880
|
+
region: z.string(),
|
|
881
|
+
repository: z.string(),
|
|
882
|
+
tag: z.string()
|
|
883
|
+
});
|
|
884
|
+
export const zGetTagPath = z.object({
|
|
885
|
+
region: z.string(),
|
|
886
|
+
repository: z.string(),
|
|
887
|
+
tag: z.string()
|
|
888
|
+
});
|
|
889
|
+
/**
|
|
890
|
+
* Tag details
|
|
891
|
+
*/
|
|
892
|
+
export const zGetTagResponse = zRegistryTag;
|
|
893
|
+
/**
|
|
894
|
+
* Tickets for the organization.
|
|
895
|
+
*/
|
|
896
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
897
|
+
export const zCreateTicketBody = z.object({
|
|
898
|
+
payload: z.string().optional(),
|
|
899
|
+
attachments: z.array(z.string()).optional()
|
|
900
|
+
});
|
|
901
|
+
/**
|
|
902
|
+
* Ticket created.
|
|
903
|
+
*/
|
|
904
|
+
export const zCreateTicketResponse = zTicket;
|
|
905
|
+
export const zCloseTicketPath = z.object({
|
|
906
|
+
ticket_id: z.string()
|
|
907
|
+
});
|
|
908
|
+
/**
|
|
909
|
+
* Ticket closed.
|
|
910
|
+
*/
|
|
911
|
+
export const zCloseTicketResponse = zTicket;
|
|
912
|
+
export const zGetTicketPath = z.object({
|
|
913
|
+
ticket_id: z.string()
|
|
914
|
+
});
|
|
915
|
+
/**
|
|
916
|
+
* Ticket with messages (internal notes excluded).
|
|
917
|
+
*/
|
|
918
|
+
export const zGetTicketResponse = zTicket;
|
|
919
|
+
export const zReplyTicketBody = z.object({
|
|
920
|
+
payload: z.string().optional(),
|
|
921
|
+
attachments: z.array(z.string()).optional()
|
|
922
|
+
});
|
|
923
|
+
export const zReplyTicketPath = z.object({
|
|
924
|
+
ticket_id: z.string()
|
|
925
|
+
});
|
|
926
|
+
/**
|
|
927
|
+
* Reply appended.
|
|
928
|
+
*/
|
|
929
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
930
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
931
|
+
ticket_id: z.string(),
|
|
932
|
+
attachment_id: z.string()
|
|
933
|
+
});
|
|
934
|
+
/**
|
|
935
|
+
* Attachment binary stream.
|
|
936
|
+
*/
|
|
937
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
938
|
+
/**
|
|
939
|
+
* Returns a list of access token details with masked secrets.
|
|
940
|
+
*/
|
|
1119
941
|
export const zListTokensResponse = z.array(zToken);
|
|
942
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
943
|
+
/**
|
|
944
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
945
|
+
*/
|
|
1120
946
|
export const zCreateTokenResponse = zToken;
|
|
947
|
+
export const zDeleteTokenPath = z.object({
|
|
948
|
+
token_id: z.string()
|
|
949
|
+
});
|
|
950
|
+
export const zGetTokenPath = z.object({
|
|
951
|
+
token_id: z.string()
|
|
952
|
+
});
|
|
953
|
+
/**
|
|
954
|
+
* Returns access token details with masked secret.
|
|
955
|
+
*/
|
|
1121
956
|
export const zGetTokenResponse = zToken;
|
|
957
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
958
|
+
export const zUpdateTokenPath = z.object({
|
|
959
|
+
token_id: z.string()
|
|
960
|
+
});
|
|
961
|
+
/**
|
|
962
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
963
|
+
*/
|
|
1122
964
|
export const zUpdateTokenResponse = zToken;
|
|
965
|
+
export const zRegenerateTokenPath = z.object({
|
|
966
|
+
token_id: z.string()
|
|
967
|
+
});
|
|
968
|
+
/**
|
|
969
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
970
|
+
*/
|
|
1123
971
|
export const zRegenerateTokenResponse = zToken;
|
|
972
|
+
export const zListUserOrganizationsPath = z.object({
|
|
973
|
+
email: z.string()
|
|
974
|
+
});
|
|
975
|
+
/**
|
|
976
|
+
* An array of organizations the user belongs to.
|
|
977
|
+
*/
|
|
1124
978
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1125
979
|
realm: z.string().optional(),
|
|
1126
980
|
displayName: z.string().optional()
|
|
1127
981
|
}));
|
|
982
|
+
/**
|
|
983
|
+
* An array of users
|
|
984
|
+
*/
|
|
1128
985
|
export const zListUsersResponse = z.array(zUser);
|
|
986
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
987
|
+
/**
|
|
988
|
+
* Successfully created. Returns created user details.
|
|
989
|
+
*/
|
|
1129
990
|
export const zCreateUserResponse = zUser;
|
|
991
|
+
export const zDeleteUserPath = z.object({
|
|
992
|
+
user_id: z.string()
|
|
993
|
+
});
|
|
994
|
+
/**
|
|
995
|
+
* User profile information
|
|
996
|
+
*/
|
|
1130
997
|
export const zDeleteUserResponse = zUser;
|
|
998
|
+
export const zGetUserPath = z.object({
|
|
999
|
+
user_id: z.string()
|
|
1000
|
+
});
|
|
1001
|
+
/**
|
|
1002
|
+
* User profile information
|
|
1003
|
+
*/
|
|
1131
1004
|
export const zGetUserResponse = zUser;
|
|
1005
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1006
|
+
export const zUpdateUserPath = z.object({
|
|
1007
|
+
user_id: z.string()
|
|
1008
|
+
});
|
|
1009
|
+
/**
|
|
1010
|
+
* Successfully created. Returns created user details.
|
|
1011
|
+
*/
|
|
1132
1012
|
export const zUpdateUserResponse = zUser;
|
|
1133
1013
|
//# sourceMappingURL=zod.gen.js.map
|