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