@cloudfleet/sdk 0.0.1-e343dde → 0.0.1-e445d54
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 +8 -7
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +6 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/{utils.d.ts → utils.gen.d.ts} +15 -23
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/{utils.js → utils.gen.js} +63 -119
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +3 -3
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -3
- package/dist/client.gen.js.map +1 -1
- package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/{auth.js → auth.gen.js} +2 -1
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/{params.d.ts → params.gen.d.ts} +11 -1
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/{params.js → params.gen.js} +20 -7
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/{types.d.ts → types.gen.d.ts} +16 -16
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1005 -480
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1623 -584
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +137 -20
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +226 -164
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +945 -325
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1769 -3568
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +462 -1030
- package/dist/zod.gen.js.map +1 -1
- package/package.json +29 -6
- package/dist/client/client.d.ts +0 -3
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/client.js +0 -146
- package/dist/client/client.js.map +0 -1
- package/dist/client/types.d.ts.map +0 -1
- package/dist/client/types.js +0 -2
- package/dist/client/types.js.map +0 -1
- package/dist/client/utils.d.ts.map +0 -1
- package/dist/client/utils.js.map +0 -1
- package/dist/core/auth.d.ts.map +0 -1
- package/dist/core/auth.js.map +0 -1
- package/dist/core/bodySerializer.d.ts +0 -18
- package/dist/core/bodySerializer.d.ts.map +0 -1
- package/dist/core/bodySerializer.js.map +0 -1
- package/dist/core/params.d.ts.map +0 -1
- package/dist/core/params.js.map +0 -1
- package/dist/core/pathSerializer.d.ts.map +0 -1
- package/dist/core/pathSerializer.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -2
- package/dist/core/types.js.map +0 -1
package/dist/zod.gen.js
CHANGED
|
@@ -1,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,20 +193,24 @@ 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({
|
|
@@ -228,19 +227,17 @@ export const zClusterJoinInformation = z.object({
|
|
|
228
227
|
});
|
|
229
228
|
export const zCluster = z.object({
|
|
230
229
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
231
|
-
tier: z.enum([
|
|
232
|
-
'basic',
|
|
233
|
-
'pro'
|
|
234
|
-
]),
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
235
231
|
region: z.enum([
|
|
236
|
-
'staging',
|
|
232
|
+
'staging-1a',
|
|
237
233
|
'northamerica-central-1',
|
|
238
|
-
'europe-central-1a'
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
id: z.
|
|
234
|
+
'europe-central-1a',
|
|
235
|
+
'northamerica-central-1a'
|
|
236
|
+
]).optional().default('staging-1a'),
|
|
237
|
+
id: z.uuid(),
|
|
242
238
|
status: z.enum([
|
|
243
239
|
'active',
|
|
240
|
+
'disabled',
|
|
244
241
|
'deleted',
|
|
245
242
|
'creating',
|
|
246
243
|
'deployed',
|
|
@@ -248,23 +245,19 @@ export const zCluster = z.object({
|
|
|
248
245
|
'updating'
|
|
249
246
|
]),
|
|
250
247
|
endpoint: z.union([
|
|
251
|
-
z.
|
|
252
|
-
z.enum([
|
|
253
|
-
''
|
|
254
|
-
])
|
|
248
|
+
z.url(),
|
|
249
|
+
z.enum([''])
|
|
255
250
|
]).optional(),
|
|
256
251
|
certificate_ca: z.string().optional(),
|
|
257
252
|
version_current: z.string().optional(),
|
|
258
253
|
created_at: z.string().optional(),
|
|
259
254
|
updated_at: z.string().optional(),
|
|
260
|
-
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()
|
|
261
257
|
});
|
|
262
258
|
export const zClusterUpdateInput = z.object({
|
|
263
259
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
264
|
-
tier: z.enum([
|
|
265
|
-
'basic',
|
|
266
|
-
'pro'
|
|
267
|
-
]),
|
|
260
|
+
tier: z.enum(['basic', 'pro']),
|
|
268
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()
|
|
269
262
|
});
|
|
270
263
|
export const zFleetCreateInput = z.object({
|
|
@@ -322,645 +315,72 @@ export const zFleetUpdateInput = z.object({
|
|
|
322
315
|
});
|
|
323
316
|
export const zInvite = z.object({
|
|
324
317
|
id: z.string().optional(),
|
|
325
|
-
organization_id: z.
|
|
326
|
-
date_created: z.
|
|
327
|
-
email: z.
|
|
318
|
+
organization_id: z.uuid().optional(),
|
|
319
|
+
date_created: z.iso.datetime(),
|
|
320
|
+
email: z.email().optional(),
|
|
328
321
|
code: z.string().optional()
|
|
329
322
|
});
|
|
330
323
|
export const zInvoice = z.object({
|
|
331
|
-
id: z.string().
|
|
332
|
-
|
|
333
|
-
status: z.
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
'AOA',
|
|
346
|
-
'ARS',
|
|
347
|
-
'AUD',
|
|
348
|
-
'AWG',
|
|
349
|
-
'AZN',
|
|
350
|
-
'BAM',
|
|
351
|
-
'BBD',
|
|
352
|
-
'BDT',
|
|
353
|
-
'BGN',
|
|
354
|
-
'BHD',
|
|
355
|
-
'BIF',
|
|
356
|
-
'BMD',
|
|
357
|
-
'BND',
|
|
358
|
-
'BOB',
|
|
359
|
-
'BRL',
|
|
360
|
-
'BSD',
|
|
361
|
-
'BTN',
|
|
362
|
-
'BWP',
|
|
363
|
-
'BYR',
|
|
364
|
-
'BZD',
|
|
365
|
-
'CAD',
|
|
366
|
-
'CDF',
|
|
367
|
-
'CHF',
|
|
368
|
-
'CLP',
|
|
369
|
-
'CNY',
|
|
370
|
-
'COP',
|
|
371
|
-
'CRC',
|
|
372
|
-
'CUC',
|
|
373
|
-
'CUP',
|
|
374
|
-
'CVE',
|
|
375
|
-
'CZK',
|
|
376
|
-
'DJF',
|
|
377
|
-
'DKK',
|
|
378
|
-
'DOP',
|
|
379
|
-
'DZD',
|
|
380
|
-
'EGP',
|
|
381
|
-
'ERN',
|
|
382
|
-
'ETB',
|
|
383
|
-
'EUR',
|
|
384
|
-
'FJD',
|
|
385
|
-
'FKP',
|
|
386
|
-
'GBP',
|
|
387
|
-
'GEL',
|
|
388
|
-
'GGP',
|
|
389
|
-
'GHS',
|
|
390
|
-
'GIP',
|
|
391
|
-
'GMD',
|
|
392
|
-
'GNF',
|
|
393
|
-
'GTQ',
|
|
394
|
-
'GYD',
|
|
395
|
-
'HKD',
|
|
396
|
-
'HNL',
|
|
397
|
-
'HRK',
|
|
398
|
-
'HTG',
|
|
399
|
-
'HUF',
|
|
400
|
-
'IDR',
|
|
401
|
-
'ILS',
|
|
402
|
-
'IMP',
|
|
403
|
-
'INR',
|
|
404
|
-
'IQD',
|
|
405
|
-
'IRR',
|
|
406
|
-
'ISK',
|
|
407
|
-
'JEP',
|
|
408
|
-
'JMD',
|
|
409
|
-
'JOD',
|
|
410
|
-
'JPY',
|
|
411
|
-
'KES',
|
|
412
|
-
'KGS',
|
|
413
|
-
'KHR',
|
|
414
|
-
'KMF',
|
|
415
|
-
'KPW',
|
|
416
|
-
'KRW',
|
|
417
|
-
'KWD',
|
|
418
|
-
'KYD',
|
|
419
|
-
'KZT',
|
|
420
|
-
'LAK',
|
|
421
|
-
'LBP',
|
|
422
|
-
'LKR',
|
|
423
|
-
'LRD',
|
|
424
|
-
'LSL',
|
|
425
|
-
'LTL',
|
|
426
|
-
'LVL',
|
|
427
|
-
'LYD',
|
|
428
|
-
'MAD',
|
|
429
|
-
'MDL',
|
|
430
|
-
'MGA',
|
|
431
|
-
'MKD',
|
|
432
|
-
'MMK',
|
|
433
|
-
'MNT',
|
|
434
|
-
'MOP',
|
|
435
|
-
'MRO',
|
|
436
|
-
'MUR',
|
|
437
|
-
'MVR',
|
|
438
|
-
'MWK',
|
|
439
|
-
'MXN',
|
|
440
|
-
'MYR',
|
|
441
|
-
'MZN',
|
|
442
|
-
'NAD',
|
|
443
|
-
'NGN',
|
|
444
|
-
'NIO',
|
|
445
|
-
'NOK',
|
|
446
|
-
'NPR',
|
|
447
|
-
'NZD',
|
|
448
|
-
'OMR',
|
|
449
|
-
'PAB',
|
|
450
|
-
'PEN',
|
|
451
|
-
'PGK',
|
|
452
|
-
'PHP',
|
|
453
|
-
'PKR',
|
|
454
|
-
'PLN',
|
|
455
|
-
'PYG',
|
|
456
|
-
'QAR',
|
|
457
|
-
'RON',
|
|
458
|
-
'RSD',
|
|
459
|
-
'RUB',
|
|
460
|
-
'RWF',
|
|
461
|
-
'SAR',
|
|
462
|
-
'SBD',
|
|
463
|
-
'SCR',
|
|
464
|
-
'SDG',
|
|
465
|
-
'SEK',
|
|
466
|
-
'SGD',
|
|
467
|
-
'SHP',
|
|
468
|
-
'SLL',
|
|
469
|
-
'SOS',
|
|
470
|
-
'SPL',
|
|
471
|
-
'SRD',
|
|
472
|
-
'STD',
|
|
473
|
-
'SVC',
|
|
474
|
-
'SYP',
|
|
475
|
-
'SZL',
|
|
476
|
-
'THB',
|
|
477
|
-
'TJS',
|
|
478
|
-
'TMT',
|
|
479
|
-
'TND',
|
|
480
|
-
'TOP',
|
|
481
|
-
'TRY',
|
|
482
|
-
'TTD',
|
|
483
|
-
'TVD',
|
|
484
|
-
'TWD',
|
|
485
|
-
'TZS',
|
|
486
|
-
'UAH',
|
|
487
|
-
'UGX',
|
|
488
|
-
'USD',
|
|
489
|
-
'UYU',
|
|
490
|
-
'UZS',
|
|
491
|
-
'VEF',
|
|
492
|
-
'VND',
|
|
493
|
-
'VUV',
|
|
494
|
-
'WST',
|
|
495
|
-
'XAF',
|
|
496
|
-
'XCD',
|
|
497
|
-
'XDR',
|
|
498
|
-
'XOF',
|
|
499
|
-
'XPF',
|
|
500
|
-
'YER',
|
|
501
|
-
'ZAR',
|
|
502
|
-
'ZMW',
|
|
503
|
-
'ZWD',
|
|
504
|
-
'BTC'
|
|
505
|
-
]).optional(),
|
|
506
|
-
creditAdj: z.number().optional(),
|
|
507
|
-
refundAdj: z.number().optional(),
|
|
508
|
-
invoiceDate: z.string().optional(),
|
|
509
|
-
targetDate: z.string().optional(),
|
|
510
|
-
invoiceNumber: z.string().optional(),
|
|
511
|
-
balance: z.number().optional(),
|
|
512
|
-
bundleKeys: z.string().optional(),
|
|
513
|
-
credits: z.array(z.object({
|
|
514
|
-
id: z.string().uuid().optional(),
|
|
515
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
516
|
-
productName: z.string().optional(),
|
|
517
|
-
planName: z.string().optional(),
|
|
518
|
-
phaseName: z.string().optional(),
|
|
519
|
-
usageName: z.string().optional(),
|
|
520
|
-
prettyProductName: z.string().optional(),
|
|
521
|
-
prettyPlanName: z.string().optional(),
|
|
522
|
-
prettyPhaseName: z.string().optional(),
|
|
523
|
-
prettyUsageName: z.string().optional(),
|
|
524
|
-
itemType: z.enum([
|
|
525
|
-
'EXTERNAL_CHARGE',
|
|
526
|
-
'FIXED',
|
|
527
|
-
'RECURRING',
|
|
528
|
-
'REPAIR_ADJ',
|
|
529
|
-
'CBA_ADJ',
|
|
530
|
-
'CREDIT_ADJ',
|
|
531
|
-
'ITEM_ADJ',
|
|
532
|
-
'USAGE',
|
|
533
|
-
'TAX',
|
|
534
|
-
'PARENT_SUMMARY'
|
|
535
|
-
]).optional(),
|
|
536
|
-
description: z.string().optional(),
|
|
537
|
-
startDate: z.string().optional(),
|
|
538
|
-
endDate: z.string().optional(),
|
|
539
|
-
amount: z.number().optional(),
|
|
540
|
-
rate: z.number().optional(),
|
|
541
|
-
currency: z.enum([
|
|
542
|
-
'AED',
|
|
543
|
-
'AFN',
|
|
544
|
-
'ALL',
|
|
545
|
-
'AMD',
|
|
546
|
-
'ANG',
|
|
547
|
-
'AOA',
|
|
548
|
-
'ARS',
|
|
549
|
-
'AUD',
|
|
550
|
-
'AWG',
|
|
551
|
-
'AZN',
|
|
552
|
-
'BAM',
|
|
553
|
-
'BBD',
|
|
554
|
-
'BDT',
|
|
555
|
-
'BGN',
|
|
556
|
-
'BHD',
|
|
557
|
-
'BIF',
|
|
558
|
-
'BMD',
|
|
559
|
-
'BND',
|
|
560
|
-
'BOB',
|
|
561
|
-
'BRL',
|
|
562
|
-
'BSD',
|
|
563
|
-
'BTN',
|
|
564
|
-
'BWP',
|
|
565
|
-
'BYR',
|
|
566
|
-
'BZD',
|
|
567
|
-
'CAD',
|
|
568
|
-
'CDF',
|
|
569
|
-
'CHF',
|
|
570
|
-
'CLP',
|
|
571
|
-
'CNY',
|
|
572
|
-
'COP',
|
|
573
|
-
'CRC',
|
|
574
|
-
'CUC',
|
|
575
|
-
'CUP',
|
|
576
|
-
'CVE',
|
|
577
|
-
'CZK',
|
|
578
|
-
'DJF',
|
|
579
|
-
'DKK',
|
|
580
|
-
'DOP',
|
|
581
|
-
'DZD',
|
|
582
|
-
'EGP',
|
|
583
|
-
'ERN',
|
|
584
|
-
'ETB',
|
|
585
|
-
'EUR',
|
|
586
|
-
'FJD',
|
|
587
|
-
'FKP',
|
|
588
|
-
'GBP',
|
|
589
|
-
'GEL',
|
|
590
|
-
'GGP',
|
|
591
|
-
'GHS',
|
|
592
|
-
'GIP',
|
|
593
|
-
'GMD',
|
|
594
|
-
'GNF',
|
|
595
|
-
'GTQ',
|
|
596
|
-
'GYD',
|
|
597
|
-
'HKD',
|
|
598
|
-
'HNL',
|
|
599
|
-
'HRK',
|
|
600
|
-
'HTG',
|
|
601
|
-
'HUF',
|
|
602
|
-
'IDR',
|
|
603
|
-
'ILS',
|
|
604
|
-
'IMP',
|
|
605
|
-
'INR',
|
|
606
|
-
'IQD',
|
|
607
|
-
'IRR',
|
|
608
|
-
'ISK',
|
|
609
|
-
'JEP',
|
|
610
|
-
'JMD',
|
|
611
|
-
'JOD',
|
|
612
|
-
'JPY',
|
|
613
|
-
'KES',
|
|
614
|
-
'KGS',
|
|
615
|
-
'KHR',
|
|
616
|
-
'KMF',
|
|
617
|
-
'KPW',
|
|
618
|
-
'KRW',
|
|
619
|
-
'KWD',
|
|
620
|
-
'KYD',
|
|
621
|
-
'KZT',
|
|
622
|
-
'LAK',
|
|
623
|
-
'LBP',
|
|
624
|
-
'LKR',
|
|
625
|
-
'LRD',
|
|
626
|
-
'LSL',
|
|
627
|
-
'LTL',
|
|
628
|
-
'LVL',
|
|
629
|
-
'LYD',
|
|
630
|
-
'MAD',
|
|
631
|
-
'MDL',
|
|
632
|
-
'MGA',
|
|
633
|
-
'MKD',
|
|
634
|
-
'MMK',
|
|
635
|
-
'MNT',
|
|
636
|
-
'MOP',
|
|
637
|
-
'MRO',
|
|
638
|
-
'MUR',
|
|
639
|
-
'MVR',
|
|
640
|
-
'MWK',
|
|
641
|
-
'MXN',
|
|
642
|
-
'MYR',
|
|
643
|
-
'MZN',
|
|
644
|
-
'NAD',
|
|
645
|
-
'NGN',
|
|
646
|
-
'NIO',
|
|
647
|
-
'NOK',
|
|
648
|
-
'NPR',
|
|
649
|
-
'NZD',
|
|
650
|
-
'OMR',
|
|
651
|
-
'PAB',
|
|
652
|
-
'PEN',
|
|
653
|
-
'PGK',
|
|
654
|
-
'PHP',
|
|
655
|
-
'PKR',
|
|
656
|
-
'PLN',
|
|
657
|
-
'PYG',
|
|
658
|
-
'QAR',
|
|
659
|
-
'RON',
|
|
660
|
-
'RSD',
|
|
661
|
-
'RUB',
|
|
662
|
-
'RWF',
|
|
663
|
-
'SAR',
|
|
664
|
-
'SBD',
|
|
665
|
-
'SCR',
|
|
666
|
-
'SDG',
|
|
667
|
-
'SEK',
|
|
668
|
-
'SGD',
|
|
669
|
-
'SHP',
|
|
670
|
-
'SLL',
|
|
671
|
-
'SOS',
|
|
672
|
-
'SPL',
|
|
673
|
-
'SRD',
|
|
674
|
-
'STD',
|
|
675
|
-
'SVC',
|
|
676
|
-
'SYP',
|
|
677
|
-
'SZL',
|
|
678
|
-
'THB',
|
|
679
|
-
'TJS',
|
|
680
|
-
'TMT',
|
|
681
|
-
'TND',
|
|
682
|
-
'TOP',
|
|
683
|
-
'TRY',
|
|
684
|
-
'TTD',
|
|
685
|
-
'TVD',
|
|
686
|
-
'TWD',
|
|
687
|
-
'TZS',
|
|
688
|
-
'UAH',
|
|
689
|
-
'UGX',
|
|
690
|
-
'USD',
|
|
691
|
-
'UYU',
|
|
692
|
-
'UZS',
|
|
693
|
-
'VEF',
|
|
694
|
-
'VND',
|
|
695
|
-
'VUV',
|
|
696
|
-
'WST',
|
|
697
|
-
'XAF',
|
|
698
|
-
'XCD',
|
|
699
|
-
'XDR',
|
|
700
|
-
'XOF',
|
|
701
|
-
'XPF',
|
|
702
|
-
'YER',
|
|
703
|
-
'ZAR',
|
|
704
|
-
'ZMW',
|
|
705
|
-
'ZWD',
|
|
706
|
-
'BTC'
|
|
707
|
-
]).optional(),
|
|
708
|
-
quantity: z.number().optional(),
|
|
709
|
-
itemDetails: z.string().optional(),
|
|
710
|
-
catalogEffectiveDate: z.string().optional(),
|
|
711
|
-
childItems: z.array(z.union([
|
|
712
|
-
z.array(z.unknown()),
|
|
713
|
-
z.boolean(),
|
|
714
|
-
z.number(),
|
|
715
|
-
z.object({}),
|
|
716
|
-
z.string()
|
|
717
|
-
])).optional()
|
|
718
|
-
})).optional(),
|
|
719
|
-
items: z.array(z.object({
|
|
720
|
-
id: z.string().uuid().optional(),
|
|
721
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
722
|
-
productName: z.string().optional(),
|
|
723
|
-
planName: z.string().optional(),
|
|
724
|
-
phaseName: z.string().optional(),
|
|
725
|
-
usageName: z.string().optional(),
|
|
726
|
-
prettyProductName: z.string().optional(),
|
|
727
|
-
prettyPlanName: z.string().optional(),
|
|
728
|
-
prettyPhaseName: z.string().optional(),
|
|
729
|
-
prettyUsageName: z.string().optional(),
|
|
730
|
-
itemType: z.enum([
|
|
731
|
-
'EXTERNAL_CHARGE',
|
|
732
|
-
'FIXED',
|
|
733
|
-
'RECURRING',
|
|
734
|
-
'REPAIR_ADJ',
|
|
735
|
-
'CBA_ADJ',
|
|
736
|
-
'CREDIT_ADJ',
|
|
737
|
-
'ITEM_ADJ',
|
|
738
|
-
'USAGE',
|
|
739
|
-
'TAX',
|
|
740
|
-
'PARENT_SUMMARY'
|
|
741
|
-
]).optional(),
|
|
742
|
-
description: z.string().optional(),
|
|
743
|
-
startDate: z.string().optional(),
|
|
744
|
-
endDate: z.string().optional(),
|
|
745
|
-
amount: z.number().optional(),
|
|
746
|
-
rate: z.number().optional(),
|
|
747
|
-
currency: z.enum([
|
|
748
|
-
'AED',
|
|
749
|
-
'AFN',
|
|
750
|
-
'ALL',
|
|
751
|
-
'AMD',
|
|
752
|
-
'ANG',
|
|
753
|
-
'AOA',
|
|
754
|
-
'ARS',
|
|
755
|
-
'AUD',
|
|
756
|
-
'AWG',
|
|
757
|
-
'AZN',
|
|
758
|
-
'BAM',
|
|
759
|
-
'BBD',
|
|
760
|
-
'BDT',
|
|
761
|
-
'BGN',
|
|
762
|
-
'BHD',
|
|
763
|
-
'BIF',
|
|
764
|
-
'BMD',
|
|
765
|
-
'BND',
|
|
766
|
-
'BOB',
|
|
767
|
-
'BRL',
|
|
768
|
-
'BSD',
|
|
769
|
-
'BTN',
|
|
770
|
-
'BWP',
|
|
771
|
-
'BYR',
|
|
772
|
-
'BZD',
|
|
773
|
-
'CAD',
|
|
774
|
-
'CDF',
|
|
775
|
-
'CHF',
|
|
776
|
-
'CLP',
|
|
777
|
-
'CNY',
|
|
778
|
-
'COP',
|
|
779
|
-
'CRC',
|
|
780
|
-
'CUC',
|
|
781
|
-
'CUP',
|
|
782
|
-
'CVE',
|
|
783
|
-
'CZK',
|
|
784
|
-
'DJF',
|
|
785
|
-
'DKK',
|
|
786
|
-
'DOP',
|
|
787
|
-
'DZD',
|
|
788
|
-
'EGP',
|
|
789
|
-
'ERN',
|
|
790
|
-
'ETB',
|
|
791
|
-
'EUR',
|
|
792
|
-
'FJD',
|
|
793
|
-
'FKP',
|
|
794
|
-
'GBP',
|
|
795
|
-
'GEL',
|
|
796
|
-
'GGP',
|
|
797
|
-
'GHS',
|
|
798
|
-
'GIP',
|
|
799
|
-
'GMD',
|
|
800
|
-
'GNF',
|
|
801
|
-
'GTQ',
|
|
802
|
-
'GYD',
|
|
803
|
-
'HKD',
|
|
804
|
-
'HNL',
|
|
805
|
-
'HRK',
|
|
806
|
-
'HTG',
|
|
807
|
-
'HUF',
|
|
808
|
-
'IDR',
|
|
809
|
-
'ILS',
|
|
810
|
-
'IMP',
|
|
811
|
-
'INR',
|
|
812
|
-
'IQD',
|
|
813
|
-
'IRR',
|
|
814
|
-
'ISK',
|
|
815
|
-
'JEP',
|
|
816
|
-
'JMD',
|
|
817
|
-
'JOD',
|
|
818
|
-
'JPY',
|
|
819
|
-
'KES',
|
|
820
|
-
'KGS',
|
|
821
|
-
'KHR',
|
|
822
|
-
'KMF',
|
|
823
|
-
'KPW',
|
|
824
|
-
'KRW',
|
|
825
|
-
'KWD',
|
|
826
|
-
'KYD',
|
|
827
|
-
'KZT',
|
|
828
|
-
'LAK',
|
|
829
|
-
'LBP',
|
|
830
|
-
'LKR',
|
|
831
|
-
'LRD',
|
|
832
|
-
'LSL',
|
|
833
|
-
'LTL',
|
|
834
|
-
'LVL',
|
|
835
|
-
'LYD',
|
|
836
|
-
'MAD',
|
|
837
|
-
'MDL',
|
|
838
|
-
'MGA',
|
|
839
|
-
'MKD',
|
|
840
|
-
'MMK',
|
|
841
|
-
'MNT',
|
|
842
|
-
'MOP',
|
|
843
|
-
'MRO',
|
|
844
|
-
'MUR',
|
|
845
|
-
'MVR',
|
|
846
|
-
'MWK',
|
|
847
|
-
'MXN',
|
|
848
|
-
'MYR',
|
|
849
|
-
'MZN',
|
|
850
|
-
'NAD',
|
|
851
|
-
'NGN',
|
|
852
|
-
'NIO',
|
|
853
|
-
'NOK',
|
|
854
|
-
'NPR',
|
|
855
|
-
'NZD',
|
|
856
|
-
'OMR',
|
|
857
|
-
'PAB',
|
|
858
|
-
'PEN',
|
|
859
|
-
'PGK',
|
|
860
|
-
'PHP',
|
|
861
|
-
'PKR',
|
|
862
|
-
'PLN',
|
|
863
|
-
'PYG',
|
|
864
|
-
'QAR',
|
|
865
|
-
'RON',
|
|
866
|
-
'RSD',
|
|
867
|
-
'RUB',
|
|
868
|
-
'RWF',
|
|
869
|
-
'SAR',
|
|
870
|
-
'SBD',
|
|
871
|
-
'SCR',
|
|
872
|
-
'SDG',
|
|
873
|
-
'SEK',
|
|
874
|
-
'SGD',
|
|
875
|
-
'SHP',
|
|
876
|
-
'SLL',
|
|
877
|
-
'SOS',
|
|
878
|
-
'SPL',
|
|
879
|
-
'SRD',
|
|
880
|
-
'STD',
|
|
881
|
-
'SVC',
|
|
882
|
-
'SYP',
|
|
883
|
-
'SZL',
|
|
884
|
-
'THB',
|
|
885
|
-
'TJS',
|
|
886
|
-
'TMT',
|
|
887
|
-
'TND',
|
|
888
|
-
'TOP',
|
|
889
|
-
'TRY',
|
|
890
|
-
'TTD',
|
|
891
|
-
'TVD',
|
|
892
|
-
'TWD',
|
|
893
|
-
'TZS',
|
|
894
|
-
'UAH',
|
|
895
|
-
'UGX',
|
|
896
|
-
'USD',
|
|
897
|
-
'UYU',
|
|
898
|
-
'UZS',
|
|
899
|
-
'VEF',
|
|
900
|
-
'VND',
|
|
901
|
-
'VUV',
|
|
902
|
-
'WST',
|
|
903
|
-
'XAF',
|
|
904
|
-
'XCD',
|
|
905
|
-
'XDR',
|
|
906
|
-
'XOF',
|
|
907
|
-
'XPF',
|
|
908
|
-
'YER',
|
|
909
|
-
'ZAR',
|
|
910
|
-
'ZMW',
|
|
911
|
-
'ZWD',
|
|
912
|
-
'BTC'
|
|
913
|
-
]).optional(),
|
|
914
|
-
quantity: z.number().optional(),
|
|
915
|
-
itemDetails: z.string().optional(),
|
|
916
|
-
catalogEffectiveDate: z.string().optional(),
|
|
917
|
-
childItems: z.array(z.union([
|
|
918
|
-
z.array(z.unknown()),
|
|
919
|
-
z.boolean(),
|
|
920
|
-
z.number(),
|
|
921
|
-
z.object({}),
|
|
922
|
-
z.string()
|
|
923
|
-
])).optional()
|
|
924
|
-
})).optional()
|
|
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()
|
|
925
338
|
});
|
|
926
339
|
export const zMarketplaceListing = z.object({
|
|
927
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
928
340
|
name: z.string(),
|
|
929
|
-
|
|
930
|
-
description: z.string(),
|
|
931
|
-
logoUrl: z.string(),
|
|
932
|
-
longDescription: z.string(),
|
|
933
|
-
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-]+)*))?$/)),
|
|
934
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-]+)*))?$/)),
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
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()
|
|
940
359
|
});
|
|
941
360
|
export const zOrganizationCreateInput = z.object({
|
|
942
|
-
email: z.
|
|
361
|
+
email: z.email(),
|
|
943
362
|
first_name: z.string(),
|
|
944
363
|
last_name: z.string(),
|
|
945
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,}$/),
|
|
946
365
|
password: z.string().min(8)
|
|
947
366
|
});
|
|
948
367
|
export const zOrganization = z.object({
|
|
949
|
-
id: z.
|
|
368
|
+
id: z.uuid(),
|
|
950
369
|
name: z.string().min(2).max(120).optional(),
|
|
951
|
-
date_created: z.
|
|
370
|
+
date_created: z.iso.datetime(),
|
|
952
371
|
quota: z.object({
|
|
953
|
-
basic_clusters_max: z.
|
|
954
|
-
basic_clusters_available: z.
|
|
955
|
-
pro_clusters_max: z.
|
|
956
|
-
pro_clusters_available: z.
|
|
957
|
-
fleets_max: z.
|
|
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),
|
|
958
377
|
cluster_tiers: z.array(z.string()).min(0),
|
|
959
378
|
regions: z.array(z.string()).min(1),
|
|
960
379
|
versions: z.array(z.object({
|
|
961
380
|
id: z.string(),
|
|
962
381
|
label: z.string()
|
|
963
|
-
})).min(1)
|
|
382
|
+
})).min(1),
|
|
383
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
964
384
|
}),
|
|
965
385
|
status: z.enum([
|
|
966
386
|
'active',
|
|
@@ -969,14 +389,12 @@ export const zOrganization = z.object({
|
|
|
969
389
|
])
|
|
970
390
|
});
|
|
971
391
|
export const zPaymentMethod = z.object({
|
|
972
|
-
id: z.
|
|
392
|
+
id: z.uuid(),
|
|
973
393
|
setup: z.boolean(),
|
|
974
|
-
type: z.enum([
|
|
975
|
-
'card'
|
|
976
|
-
]),
|
|
394
|
+
type: z.enum(['card']),
|
|
977
395
|
last4: z.string(),
|
|
978
|
-
exp_month: z.
|
|
979
|
-
exp_year: z.
|
|
396
|
+
exp_month: z.int().gte(1).lte(12),
|
|
397
|
+
exp_year: z.int().gte(2024),
|
|
980
398
|
brand: z.enum([
|
|
981
399
|
'amex',
|
|
982
400
|
'diners',
|
|
@@ -989,149 +407,243 @@ export const zPaymentMethod = z.object({
|
|
|
989
407
|
'unknown'
|
|
990
408
|
])
|
|
991
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
|
+
});
|
|
992
566
|
export const zTokenCreateInput = z.object({
|
|
993
567
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
994
|
-
role: z.enum([
|
|
995
|
-
'Administrator',
|
|
996
|
-
'User'
|
|
997
|
-
])
|
|
568
|
+
role: z.enum(['Administrator', 'User'])
|
|
998
569
|
});
|
|
999
570
|
export const zToken = z.object({
|
|
1000
571
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
1001
|
-
role: z.enum([
|
|
1002
|
-
'Administrator',
|
|
1003
|
-
'User'
|
|
1004
|
-
]),
|
|
572
|
+
role: z.enum(['Administrator', 'User']),
|
|
1005
573
|
id: z.string().optional(),
|
|
1006
574
|
secret: z.string().optional(),
|
|
1007
|
-
date_created: z.
|
|
575
|
+
date_created: z.iso.datetime()
|
|
1008
576
|
});
|
|
1009
577
|
export const zTokenUpdateInput = z.object({
|
|
1010
578
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
1011
|
-
role: z.enum([
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
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
|
+
})
|
|
1015
598
|
});
|
|
1016
599
|
export const zUsage = z.object({
|
|
1017
|
-
hour: z.string()
|
|
1018
|
-
cluster_id: z.string()
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
]),
|
|
1024
|
-
product: z.enum([
|
|
1025
|
-
'cfke_controlplane',
|
|
1026
|
-
'cfke_connected_nodes',
|
|
1027
|
-
'infra_compute',
|
|
1028
|
-
'infra_storage',
|
|
1029
|
-
'infra_loadbalancing',
|
|
1030
|
-
'infra_traffic',
|
|
1031
|
-
'cfcr_storage'
|
|
1032
|
-
]),
|
|
1033
|
-
node_name: z.string(),
|
|
1034
|
-
sku: z.string(),
|
|
1035
|
-
cpu: z.union([
|
|
1036
|
-
z.number(),
|
|
1037
|
-
z.enum([
|
|
1038
|
-
''
|
|
1039
|
-
])
|
|
1040
|
-
]),
|
|
1041
|
-
price: z.union([
|
|
1042
|
-
z.number(),
|
|
1043
|
-
z.enum([
|
|
1044
|
-
''
|
|
1045
|
-
])
|
|
1046
|
-
]),
|
|
1047
|
-
value: z.union([
|
|
1048
|
-
z.number(),
|
|
1049
|
-
z.enum([
|
|
1050
|
-
''
|
|
1051
|
-
])
|
|
1052
|
-
]),
|
|
1053
|
-
total: z.union([
|
|
1054
|
-
z.number(),
|
|
1055
|
-
z.enum([
|
|
1056
|
-
''
|
|
1057
|
-
])
|
|
1058
|
-
])
|
|
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()
|
|
1059
606
|
});
|
|
1060
607
|
export const zUserCreateInput = z.object({
|
|
1061
|
-
email: z.
|
|
608
|
+
email: z.email(),
|
|
1062
609
|
first_name: z.string().min(1).max(50),
|
|
1063
610
|
last_name: z.string().min(1).max(50),
|
|
1064
611
|
code: z.string(),
|
|
1065
612
|
password: z.string().min(8),
|
|
1066
|
-
status: z.enum([
|
|
1067
|
-
|
|
1068
|
-
'inactive'
|
|
1069
|
-
]).optional(),
|
|
1070
|
-
role: z.enum([
|
|
1071
|
-
'Administrator',
|
|
1072
|
-
'User'
|
|
1073
|
-
]).optional()
|
|
613
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
614
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1074
615
|
});
|
|
1075
616
|
export const zUser = z.object({
|
|
1076
|
-
email: z.
|
|
617
|
+
email: z.email(),
|
|
1077
618
|
first_name: z.string().min(1).max(50),
|
|
1078
619
|
last_name: z.string().min(1).max(50),
|
|
1079
|
-
role: z.enum([
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
status: z.enum([
|
|
1084
|
-
'active',
|
|
1085
|
-
'inactive'
|
|
1086
|
-
]),
|
|
1087
|
-
id: z.string().uuid(),
|
|
1088
|
-
date_created: z.string().datetime()
|
|
620
|
+
role: z.enum(['Administrator', 'User']),
|
|
621
|
+
status: z.enum(['active', 'inactive']),
|
|
622
|
+
id: z.uuid(),
|
|
623
|
+
date_created: z.iso.datetime()
|
|
1089
624
|
});
|
|
1090
625
|
export const zUserUpdateInput = z.object({
|
|
1091
|
-
email: z.
|
|
626
|
+
email: z.email().optional(),
|
|
1092
627
|
first_name: z.string().min(1).max(50).optional(),
|
|
1093
628
|
last_name: z.string().min(1).max(50).optional(),
|
|
1094
|
-
role: z.enum([
|
|
1095
|
-
|
|
1096
|
-
'User'
|
|
1097
|
-
]).optional(),
|
|
1098
|
-
status: z.enum([
|
|
1099
|
-
'active',
|
|
1100
|
-
'inactive'
|
|
1101
|
-
]).optional()
|
|
629
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
630
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
1102
631
|
});
|
|
1103
|
-
export const
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
* An array of usage records.
|
|
1110
|
-
*/
|
|
1111
|
-
export const zGetUsageResponse = z.array(zUsage);
|
|
1112
|
-
export const zGetBalanceData = z.object({
|
|
1113
|
-
body: z.never().optional(),
|
|
1114
|
-
path: z.never().optional(),
|
|
1115
|
-
query: z.never().optional()
|
|
632
|
+
export const zGetUsageQuery = z.object({
|
|
633
|
+
granularity: z.enum([
|
|
634
|
+
'hourly',
|
|
635
|
+
'daily',
|
|
636
|
+
'monthly'
|
|
637
|
+
]).optional().default('daily')
|
|
1116
638
|
});
|
|
1117
639
|
/**
|
|
1118
|
-
*
|
|
640
|
+
* Usage data with facets for filtering
|
|
1119
641
|
*/
|
|
1120
|
-
export const
|
|
1121
|
-
export const zGetPaymentMethodData = z.object({
|
|
1122
|
-
body: z.never().optional(),
|
|
1123
|
-
path: z.never().optional(),
|
|
1124
|
-
query: z.never().optional()
|
|
1125
|
-
});
|
|
642
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1126
643
|
/**
|
|
1127
644
|
* Redacted payment card information.
|
|
1128
645
|
*/
|
|
1129
646
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
1130
|
-
export const zGetPaymentMethodSecretData = z.object({
|
|
1131
|
-
body: z.never().optional(),
|
|
1132
|
-
path: z.never().optional(),
|
|
1133
|
-
query: z.never().optional()
|
|
1134
|
-
});
|
|
1135
647
|
/**
|
|
1136
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.
|
|
1137
649
|
*
|
|
@@ -1139,386 +651,326 @@ export const zGetPaymentMethodSecretData = z.object({
|
|
|
1139
651
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1140
652
|
id: z.string().optional()
|
|
1141
653
|
});
|
|
1142
|
-
export const zListInvoicesData = z.object({
|
|
1143
|
-
body: z.never().optional(),
|
|
1144
|
-
path: z.never().optional(),
|
|
1145
|
-
query: z.object({
|
|
1146
|
-
start_date: z.string(),
|
|
1147
|
-
end_date: z.string()
|
|
1148
|
-
})
|
|
1149
|
-
});
|
|
1150
654
|
/**
|
|
1151
655
|
* An array of usage records.
|
|
1152
656
|
*/
|
|
1153
657
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1154
|
-
export const zGetInvoiceData = z.object({
|
|
1155
|
-
body: z.never().optional(),
|
|
1156
|
-
path: z.object({
|
|
1157
|
-
id: z.string()
|
|
1158
|
-
}),
|
|
1159
|
-
query: z.never().optional()
|
|
1160
|
-
});
|
|
1161
|
-
/**
|
|
1162
|
-
* Returns a single Invoice HTML representation under `html` property.
|
|
1163
|
-
*/
|
|
1164
|
-
export const zGetInvoiceResponse = z.object({
|
|
1165
|
-
html: z.string().optional()
|
|
1166
|
-
});
|
|
1167
|
-
export const zGetContactData = z.object({
|
|
1168
|
-
body: z.never().optional(),
|
|
1169
|
-
path: z.never().optional(),
|
|
1170
|
-
query: z.never().optional()
|
|
1171
|
-
});
|
|
1172
658
|
/**
|
|
1173
659
|
* Returns a single object containing organization contact and billing address details.
|
|
1174
660
|
*/
|
|
1175
661
|
export const zGetContactResponse = zBillingContact;
|
|
1176
|
-
export const
|
|
1177
|
-
body: zBillingContact,
|
|
1178
|
-
path: z.never().optional(),
|
|
1179
|
-
query: z.never().optional()
|
|
1180
|
-
});
|
|
662
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1181
663
|
/**
|
|
1182
664
|
* Successfully updated. Returns updated organization details.
|
|
1183
665
|
*/
|
|
1184
666
|
export const zUpdateContactResponse = zBillingContact;
|
|
1185
|
-
export const zGetCreditsData = z.object({
|
|
1186
|
-
body: z.never().optional(),
|
|
1187
|
-
path: z.never().optional(),
|
|
1188
|
-
query: z.never().optional()
|
|
1189
|
-
});
|
|
1190
667
|
/**
|
|
1191
668
|
* An array of the applied promotional credits records.
|
|
1192
669
|
*/
|
|
1193
670
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1194
|
-
export const
|
|
1195
|
-
|
|
1196
|
-
code: z.string().optional()
|
|
1197
|
-
}),
|
|
1198
|
-
path: z.never().optional(),
|
|
1199
|
-
query: z.never().optional()
|
|
671
|
+
export const zRedeemCreditsBody = z.object({
|
|
672
|
+
code: z.string().optional()
|
|
1200
673
|
});
|
|
1201
|
-
export const
|
|
1202
|
-
|
|
1203
|
-
path: z.object({
|
|
1204
|
-
cluster_id: z.string()
|
|
1205
|
-
}),
|
|
1206
|
-
query: z.never().optional()
|
|
674
|
+
export const zListChartsPath = z.object({
|
|
675
|
+
cluster_id: z.string()
|
|
1207
676
|
});
|
|
1208
677
|
/**
|
|
1209
678
|
* An array of charts
|
|
1210
679
|
*/
|
|
1211
680
|
export const zListChartsResponse = z.array(zChart);
|
|
1212
|
-
export const
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
cluster_id: z.string()
|
|
1216
|
-
}),
|
|
1217
|
-
query: z.never().optional()
|
|
681
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
682
|
+
export const zCreateChartPath = z.object({
|
|
683
|
+
cluster_id: z.string()
|
|
1218
684
|
});
|
|
1219
685
|
/**
|
|
1220
686
|
* Successfully created. Returns created Chart ID.
|
|
1221
687
|
*/
|
|
1222
688
|
export const zCreateChartResponse = z.string();
|
|
1223
|
-
export const
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
cluster_id: z.string(),
|
|
1227
|
-
chart_name: z.string()
|
|
1228
|
-
}),
|
|
1229
|
-
query: z.never().optional()
|
|
689
|
+
export const zDeleteChartPath = z.object({
|
|
690
|
+
cluster_id: z.string(),
|
|
691
|
+
chart_name: z.string()
|
|
1230
692
|
});
|
|
1231
693
|
/**
|
|
1232
694
|
* Successfully deleted.
|
|
1233
695
|
*/
|
|
1234
696
|
export const zDeleteChartResponse = z.string();
|
|
1235
|
-
export const
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
cluster_id: z.string(),
|
|
1239
|
-
chart_name: z.string()
|
|
1240
|
-
}),
|
|
1241
|
-
query: z.never().optional()
|
|
697
|
+
export const zGetChartPath = z.object({
|
|
698
|
+
cluster_id: z.string(),
|
|
699
|
+
chart_name: z.string()
|
|
1242
700
|
});
|
|
1243
701
|
/**
|
|
1244
702
|
* Returns a single object containing chart details.
|
|
1245
703
|
*/
|
|
1246
704
|
export const zGetChartResponse = zChart;
|
|
1247
|
-
export const
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
chart_name: z.string()
|
|
1252
|
-
}),
|
|
1253
|
-
query: z.never().optional()
|
|
705
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
706
|
+
export const zUpdateChartPath = z.object({
|
|
707
|
+
cluster_id: z.string(),
|
|
708
|
+
chart_name: z.string()
|
|
1254
709
|
});
|
|
1255
710
|
/**
|
|
1256
711
|
* Successfully updated.
|
|
1257
712
|
*/
|
|
1258
713
|
export const zUpdateChartResponse = z.string();
|
|
1259
|
-
export const
|
|
1260
|
-
|
|
1261
|
-
path: z.object({
|
|
1262
|
-
cluster_id: z.string()
|
|
1263
|
-
}),
|
|
1264
|
-
query: z.never().optional()
|
|
714
|
+
export const zListFleetsPath = z.object({
|
|
715
|
+
cluster_id: z.string()
|
|
1265
716
|
});
|
|
1266
717
|
/**
|
|
1267
718
|
* An array of fleets
|
|
1268
719
|
*/
|
|
1269
720
|
export const zListFleetsResponse = z.array(zFleet);
|
|
1270
|
-
export const
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
cluster_id: z.string()
|
|
1274
|
-
}),
|
|
1275
|
-
query: z.never().optional()
|
|
721
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
722
|
+
export const zCreateFleetPath = z.object({
|
|
723
|
+
cluster_id: z.string()
|
|
1276
724
|
});
|
|
1277
725
|
/**
|
|
1278
726
|
* Successfully created. Returns created Fleet ID.
|
|
1279
727
|
*/
|
|
1280
728
|
export const zCreateFleetResponse = z.string();
|
|
1281
|
-
export const
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
cluster_id: z.string(),
|
|
1285
|
-
fleet_name: z.string()
|
|
1286
|
-
}),
|
|
1287
|
-
query: z.never().optional()
|
|
729
|
+
export const zDeleteFleetPath = z.object({
|
|
730
|
+
cluster_id: z.string(),
|
|
731
|
+
fleet_name: z.string()
|
|
1288
732
|
});
|
|
1289
733
|
/**
|
|
1290
734
|
* Successfully deleted.
|
|
1291
735
|
*/
|
|
1292
736
|
export const zDeleteFleetResponse = z.string();
|
|
1293
|
-
export const
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
cluster_id: z.string(),
|
|
1297
|
-
fleet_name: z.string()
|
|
1298
|
-
}),
|
|
1299
|
-
query: z.never().optional()
|
|
737
|
+
export const zGetFleetPath = z.object({
|
|
738
|
+
cluster_id: z.string(),
|
|
739
|
+
fleet_name: z.string()
|
|
1300
740
|
});
|
|
1301
741
|
/**
|
|
1302
742
|
* Returns a single object containing fleet details.
|
|
1303
743
|
*/
|
|
1304
744
|
export const zGetFleetResponse = zFleet;
|
|
1305
|
-
export const
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
fleet_name: z.string()
|
|
1310
|
-
}),
|
|
1311
|
-
query: z.never().optional()
|
|
745
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
746
|
+
export const zUpdateFleetPath = z.object({
|
|
747
|
+
cluster_id: z.string(),
|
|
748
|
+
fleet_name: z.string()
|
|
1312
749
|
});
|
|
1313
750
|
/**
|
|
1314
751
|
* Successfully updated.
|
|
1315
752
|
*/
|
|
1316
753
|
export const zUpdateFleetResponse = z.string();
|
|
1317
|
-
export const
|
|
1318
|
-
|
|
1319
|
-
path: z.object({
|
|
1320
|
-
cluster_id: z.string()
|
|
1321
|
-
}),
|
|
1322
|
-
query: z.never().optional()
|
|
1323
|
-
});
|
|
1324
|
-
export const zListClustersData = z.object({
|
|
1325
|
-
body: z.never().optional(),
|
|
1326
|
-
path: z.never().optional(),
|
|
1327
|
-
query: z.never().optional()
|
|
754
|
+
export const zQueryClusterPath = z.object({
|
|
755
|
+
cluster_id: z.string()
|
|
1328
756
|
});
|
|
1329
757
|
/**
|
|
1330
758
|
* An array of clusters
|
|
1331
759
|
*/
|
|
1332
760
|
export const zListClustersResponse = z.array(zCluster);
|
|
1333
|
-
export const
|
|
1334
|
-
body: zClusterCreateInput,
|
|
1335
|
-
path: z.never().optional(),
|
|
1336
|
-
query: z.never().optional()
|
|
1337
|
-
});
|
|
761
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1338
762
|
/**
|
|
1339
763
|
* Successfully created. Returns created Cluster ID.
|
|
1340
764
|
*/
|
|
1341
765
|
export const zCreateClusterResponse = z.string();
|
|
1342
|
-
export const
|
|
1343
|
-
|
|
1344
|
-
path: z.object({
|
|
1345
|
-
cluster_id: z.string()
|
|
1346
|
-
}),
|
|
1347
|
-
query: z.never().optional()
|
|
766
|
+
export const zDeleteClusterPath = z.object({
|
|
767
|
+
cluster_id: z.string()
|
|
1348
768
|
});
|
|
1349
769
|
/**
|
|
1350
770
|
* Successfully deleted.
|
|
1351
771
|
*/
|
|
1352
772
|
export const zDeleteClusterResponse = z.string();
|
|
1353
|
-
export const
|
|
1354
|
-
|
|
1355
|
-
path: z.object({
|
|
1356
|
-
cluster_id: z.string()
|
|
1357
|
-
}),
|
|
1358
|
-
query: z.never().optional()
|
|
773
|
+
export const zGetClusterPath = z.object({
|
|
774
|
+
cluster_id: z.string()
|
|
1359
775
|
});
|
|
1360
776
|
/**
|
|
1361
777
|
* Returns a single object containing cluster details.
|
|
1362
778
|
*/
|
|
1363
779
|
export const zGetClusterResponse = zCluster;
|
|
1364
|
-
export const
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
cluster_id: z.string()
|
|
1368
|
-
}),
|
|
1369
|
-
query: z.never().optional()
|
|
780
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
781
|
+
export const zUpdateClusterPath = z.object({
|
|
782
|
+
cluster_id: z.string()
|
|
1370
783
|
});
|
|
1371
784
|
/**
|
|
1372
785
|
* Successfully updated. Returns updated cluster details.
|
|
1373
786
|
*/
|
|
1374
787
|
export const zUpdateClusterResponse = zCluster;
|
|
1375
|
-
export const
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
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()
|
|
1381
797
|
});
|
|
1382
798
|
/**
|
|
1383
799
|
* An object of cluster join information
|
|
1384
800
|
*/
|
|
1385
801
|
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1386
|
-
export const zListInvitesData = z.object({
|
|
1387
|
-
body: z.never().optional(),
|
|
1388
|
-
path: z.never().optional(),
|
|
1389
|
-
query: z.never().optional()
|
|
1390
|
-
});
|
|
1391
802
|
/**
|
|
1392
803
|
* An array of invites
|
|
1393
804
|
*/
|
|
1394
805
|
export const zListInvitesResponse = z.array(zInvite);
|
|
1395
|
-
export const
|
|
1396
|
-
|
|
1397
|
-
email: z.string().optional()
|
|
1398
|
-
}),
|
|
1399
|
-
path: z.never().optional(),
|
|
1400
|
-
query: z.never().optional()
|
|
806
|
+
export const zCreateInviteBody = z.object({
|
|
807
|
+
email: z.string().optional()
|
|
1401
808
|
});
|
|
1402
809
|
/**
|
|
1403
810
|
* Successfully created. Returns created invite details.
|
|
1404
811
|
*/
|
|
1405
812
|
export const zCreateInviteResponse = zInvite;
|
|
1406
|
-
export const
|
|
1407
|
-
|
|
1408
|
-
path: z.object({
|
|
1409
|
-
code: z.string()
|
|
1410
|
-
}),
|
|
1411
|
-
query: z.never().optional()
|
|
813
|
+
export const zGetInvitePath = z.object({
|
|
814
|
+
code: z.string()
|
|
1412
815
|
});
|
|
1413
816
|
/**
|
|
1414
817
|
* Returns a single object containing invite details.
|
|
1415
818
|
*/
|
|
1416
819
|
export const zGetInviteResponse = zInvite;
|
|
1417
|
-
export const
|
|
1418
|
-
|
|
1419
|
-
path: z.object({
|
|
1420
|
-
email: z.string()
|
|
1421
|
-
}),
|
|
1422
|
-
query: z.never().optional()
|
|
1423
|
-
});
|
|
1424
|
-
export const zListMarketplaceChartsData = z.object({
|
|
1425
|
-
body: z.never().optional(),
|
|
1426
|
-
path: z.never().optional(),
|
|
1427
|
-
query: z.never().optional()
|
|
820
|
+
export const zDeleteInvitePath = z.object({
|
|
821
|
+
email: z.string()
|
|
1428
822
|
});
|
|
1429
823
|
/**
|
|
1430
824
|
* An array of chart listings in the marketplace.
|
|
1431
825
|
*/
|
|
1432
826
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1433
|
-
export const
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
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()
|
|
1439
846
|
});
|
|
1440
847
|
/**
|
|
1441
|
-
*
|
|
848
|
+
* JSON-RPC 2.0 success or error response
|
|
1442
849
|
*/
|
|
1443
|
-
export const
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
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()
|
|
1448
861
|
});
|
|
1449
862
|
/**
|
|
1450
863
|
* Returns a single object containing organization details.
|
|
1451
864
|
*/
|
|
1452
865
|
export const zGetOrganizationResponse = zOrganization;
|
|
1453
|
-
export const
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
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()
|
|
1457
888
|
});
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
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()
|
|
1462
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();
|
|
1463
938
|
/**
|
|
1464
939
|
* Returns a list of access token details with masked secrets.
|
|
1465
940
|
*/
|
|
1466
941
|
export const zListTokensResponse = z.array(zToken);
|
|
1467
|
-
export const
|
|
1468
|
-
body: zTokenCreateInput,
|
|
1469
|
-
path: z.never().optional(),
|
|
1470
|
-
query: z.never().optional()
|
|
1471
|
-
});
|
|
942
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1472
943
|
/**
|
|
1473
944
|
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1474
945
|
*/
|
|
1475
946
|
export const zCreateTokenResponse = zToken;
|
|
1476
|
-
export const
|
|
1477
|
-
|
|
1478
|
-
path: z.object({
|
|
1479
|
-
token_id: z.string()
|
|
1480
|
-
}),
|
|
1481
|
-
query: z.never().optional()
|
|
947
|
+
export const zDeleteTokenPath = z.object({
|
|
948
|
+
token_id: z.string()
|
|
1482
949
|
});
|
|
1483
|
-
export const
|
|
1484
|
-
|
|
1485
|
-
path: z.object({
|
|
1486
|
-
token_id: z.string()
|
|
1487
|
-
}),
|
|
1488
|
-
query: z.never().optional()
|
|
950
|
+
export const zGetTokenPath = z.object({
|
|
951
|
+
token_id: z.string()
|
|
1489
952
|
});
|
|
1490
953
|
/**
|
|
1491
954
|
* Returns access token details with masked secret.
|
|
1492
955
|
*/
|
|
1493
956
|
export const zGetTokenResponse = zToken;
|
|
1494
|
-
export const
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
token_id: z.string()
|
|
1498
|
-
}),
|
|
1499
|
-
query: z.never().optional()
|
|
957
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
958
|
+
export const zUpdateTokenPath = z.object({
|
|
959
|
+
token_id: z.string()
|
|
1500
960
|
});
|
|
1501
961
|
/**
|
|
1502
962
|
* Successfully updated. Returns updated token details with masked secret.
|
|
1503
963
|
*/
|
|
1504
964
|
export const zUpdateTokenResponse = zToken;
|
|
1505
|
-
export const
|
|
1506
|
-
|
|
1507
|
-
path: z.object({
|
|
1508
|
-
token_id: z.string()
|
|
1509
|
-
}),
|
|
1510
|
-
query: z.never().optional()
|
|
965
|
+
export const zRegenerateTokenPath = z.object({
|
|
966
|
+
token_id: z.string()
|
|
1511
967
|
});
|
|
1512
968
|
/**
|
|
1513
969
|
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1514
970
|
*/
|
|
1515
971
|
export const zRegenerateTokenResponse = zToken;
|
|
1516
|
-
export const
|
|
1517
|
-
|
|
1518
|
-
path: z.object({
|
|
1519
|
-
email: z.string()
|
|
1520
|
-
}),
|
|
1521
|
-
query: z.never().optional()
|
|
972
|
+
export const zListUserOrganizationsPath = z.object({
|
|
973
|
+
email: z.string()
|
|
1522
974
|
});
|
|
1523
975
|
/**
|
|
1524
976
|
* An array of organizations the user belongs to.
|
|
@@ -1527,52 +979,32 @@ export const zListUserOrganizationsResponse = z.array(z.object({
|
|
|
1527
979
|
realm: z.string().optional(),
|
|
1528
980
|
displayName: z.string().optional()
|
|
1529
981
|
}));
|
|
1530
|
-
export const zListUsersData = z.object({
|
|
1531
|
-
body: z.never().optional(),
|
|
1532
|
-
path: z.never().optional(),
|
|
1533
|
-
query: z.never().optional()
|
|
1534
|
-
});
|
|
1535
982
|
/**
|
|
1536
983
|
* An array of users
|
|
1537
984
|
*/
|
|
1538
985
|
export const zListUsersResponse = z.array(zUser);
|
|
1539
|
-
export const
|
|
1540
|
-
body: zUserCreateInput,
|
|
1541
|
-
path: z.never().optional(),
|
|
1542
|
-
query: z.never().optional()
|
|
1543
|
-
});
|
|
986
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1544
987
|
/**
|
|
1545
988
|
* Successfully created. Returns created user details.
|
|
1546
989
|
*/
|
|
1547
990
|
export const zCreateUserResponse = zUser;
|
|
1548
|
-
export const
|
|
1549
|
-
|
|
1550
|
-
path: z.object({
|
|
1551
|
-
user_id: z.string()
|
|
1552
|
-
}),
|
|
1553
|
-
query: z.never().optional()
|
|
991
|
+
export const zDeleteUserPath = z.object({
|
|
992
|
+
user_id: z.string()
|
|
1554
993
|
});
|
|
1555
994
|
/**
|
|
1556
995
|
* User profile information
|
|
1557
996
|
*/
|
|
1558
997
|
export const zDeleteUserResponse = zUser;
|
|
1559
|
-
export const
|
|
1560
|
-
|
|
1561
|
-
path: z.object({
|
|
1562
|
-
user_id: z.string()
|
|
1563
|
-
}),
|
|
1564
|
-
query: z.never().optional()
|
|
998
|
+
export const zGetUserPath = z.object({
|
|
999
|
+
user_id: z.string()
|
|
1565
1000
|
});
|
|
1566
1001
|
/**
|
|
1567
1002
|
* User profile information
|
|
1568
1003
|
*/
|
|
1569
1004
|
export const zGetUserResponse = zUser;
|
|
1570
|
-
export const
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
user_id: z.string()
|
|
1574
|
-
}),
|
|
1575
|
-
query: z.never().optional()
|
|
1005
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1006
|
+
export const zUpdateUserPath = z.object({
|
|
1007
|
+
user_id: z.string()
|
|
1576
1008
|
});
|
|
1577
1009
|
/**
|
|
1578
1010
|
* Successfully created. Returns created user details.
|