@cloudfleet/sdk 0.0.1-3de42b3 → 0.0.1-4147743
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/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +236 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +118 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/utils.gen.d.ts +34 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +229 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +4 -4
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +2 -4
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +44 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +101 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +107 -0
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +134 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +79 -0
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +669 -585
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1182 -678
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +141 -76
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +171 -185
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +12 -12
- package/dist/types.gen.d.ts +589 -354
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1612 -2208
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +481 -776
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -7
package/dist/zod.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
4
|
company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
|
|
5
5
|
address1: z.string().optional(),
|
|
@@ -9,9 +9,8 @@ export const zBillingContact = z.object({
|
|
|
9
9
|
state: z.string().optional(),
|
|
10
10
|
country: z.string().optional(),
|
|
11
11
|
phone: z.string().optional(),
|
|
12
|
-
email: z.
|
|
13
|
-
|
|
14
|
-
last_name: z.string(),
|
|
12
|
+
email: z.email(),
|
|
13
|
+
individual_name: z.string(),
|
|
15
14
|
tax_id: z.string().optional(),
|
|
16
15
|
tax_id_type: z.enum([
|
|
17
16
|
'ad_nrt',
|
|
@@ -146,16 +145,12 @@ export const zBillingContact = z.object({
|
|
|
146
145
|
});
|
|
147
146
|
export const zBillingCredits = z.object({
|
|
148
147
|
id: z.string().optional(),
|
|
149
|
-
|
|
148
|
+
type: z.enum(['credit', 'discount']),
|
|
149
|
+
date_start: z.iso.datetime(),
|
|
150
|
+
date_end: z.iso.datetime().optional(),
|
|
150
151
|
code: z.string(),
|
|
151
152
|
description: z.string().optional(),
|
|
152
|
-
|
|
153
|
-
type: z.enum([
|
|
154
|
-
'credit',
|
|
155
|
-
'discount'
|
|
156
|
-
]),
|
|
157
|
-
value: z.number(),
|
|
158
|
-
billing_period: z.string().datetime(),
|
|
153
|
+
value_total: z.number(),
|
|
159
154
|
value_remaining: z.number().optional()
|
|
160
155
|
});
|
|
161
156
|
export const zChartCreateInput = z.object({
|
|
@@ -198,25 +193,31 @@ export const zChartUpdateInput = z.object({
|
|
|
198
193
|
});
|
|
199
194
|
export const zClusterCreateInput = z.object({
|
|
200
195
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
196
|
+
tier: z.enum(['basic', 'pro']),
|
|
201
197
|
region: z.enum([
|
|
202
|
-
'staging',
|
|
203
|
-
'northamerica-central-1'
|
|
198
|
+
'staging-1a',
|
|
199
|
+
'northamerica-central-1',
|
|
200
|
+
'europe-central-1a',
|
|
201
|
+
'northamerica-central-1a'
|
|
204
202
|
]).optional(),
|
|
205
|
-
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
|
|
209
|
-
|
|
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()
|
|
210
209
|
});
|
|
211
210
|
export const zClusterJoinInformation = z.object({
|
|
212
211
|
certificate_authority: z.string(),
|
|
213
|
-
endpoint: z.
|
|
212
|
+
endpoint: z.url(),
|
|
213
|
+
cluster_dns: z.string(),
|
|
214
214
|
auth_key: z.string(),
|
|
215
215
|
bootstrap_token: z.string(),
|
|
216
216
|
versions: z.object({
|
|
217
217
|
kubernetes: z.string(),
|
|
218
218
|
tailscale: z.string(),
|
|
219
|
-
containerd: z.string()
|
|
219
|
+
containerd: z.string(),
|
|
220
|
+
nvidia_driver: z.string()
|
|
220
221
|
}),
|
|
221
222
|
third_party_api_access_config: z.object({
|
|
222
223
|
metadata_url: z.string(),
|
|
@@ -226,18 +227,17 @@ export const zClusterJoinInformation = z.object({
|
|
|
226
227
|
});
|
|
227
228
|
export const zCluster = z.object({
|
|
228
229
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
229
231
|
region: z.enum([
|
|
230
|
-
'staging',
|
|
231
|
-
'northamerica-central-1'
|
|
232
|
+
'staging-1a',
|
|
233
|
+
'northamerica-central-1',
|
|
234
|
+
'europe-central-1a',
|
|
235
|
+
'northamerica-central-1a'
|
|
232
236
|
]).optional(),
|
|
233
|
-
|
|
234
|
-
'basic',
|
|
235
|
-
'pro'
|
|
236
|
-
]),
|
|
237
|
-
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
|
|
238
|
-
id: z.string().uuid(),
|
|
237
|
+
id: z.uuid(),
|
|
239
238
|
status: z.enum([
|
|
240
239
|
'active',
|
|
240
|
+
'disabled',
|
|
241
241
|
'deleted',
|
|
242
242
|
'creating',
|
|
243
243
|
'deployed',
|
|
@@ -245,19 +245,19 @@ export const zCluster = z.object({
|
|
|
245
245
|
'updating'
|
|
246
246
|
]),
|
|
247
247
|
endpoint: z.union([
|
|
248
|
-
z.
|
|
249
|
-
z.enum([
|
|
250
|
-
''
|
|
251
|
-
])
|
|
248
|
+
z.url(),
|
|
249
|
+
z.enum([''])
|
|
252
250
|
]).optional(),
|
|
253
251
|
certificate_ca: z.string().optional(),
|
|
254
252
|
version_current: z.string().optional(),
|
|
255
253
|
created_at: z.string().optional(),
|
|
256
254
|
updated_at: z.string().optional(),
|
|
257
|
-
ready: z.boolean().optional()
|
|
255
|
+
ready: z.boolean().optional(),
|
|
256
|
+
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
258
257
|
});
|
|
259
258
|
export const zClusterUpdateInput = z.object({
|
|
260
259
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
260
|
+
tier: z.enum(['basic', 'pro']),
|
|
261
261
|
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
262
262
|
});
|
|
263
263
|
export const zFleetCreateInput = z.object({
|
|
@@ -268,25 +268,15 @@ export const zFleetCreateInput = z.object({
|
|
|
268
268
|
enabled: z.boolean().optional().default(true),
|
|
269
269
|
project: z.string()
|
|
270
270
|
}).optional(),
|
|
271
|
-
hetzner: z.
|
|
272
|
-
z.
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}),
|
|
276
|
-
z.object({
|
|
277
|
-
apiKey: z.string().optional(),
|
|
278
|
-
enabled: z.boolean().optional().default(true)
|
|
279
|
-
})
|
|
280
|
-
]).optional(),
|
|
271
|
+
hetzner: z.object({
|
|
272
|
+
enabled: z.boolean().optional().default(true),
|
|
273
|
+
apiKey: z.string()
|
|
274
|
+
}).optional(),
|
|
281
275
|
aws: z.object({
|
|
282
276
|
enabled: z.boolean().optional().default(true),
|
|
283
277
|
controllerRoleArn: z.string()
|
|
284
278
|
}).optional(),
|
|
285
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
286
|
-
type: z.enum([
|
|
287
|
-
'managed',
|
|
288
|
-
'connected'
|
|
289
|
-
])
|
|
279
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
290
280
|
});
|
|
291
281
|
export const zFleet = z.object({
|
|
292
282
|
limits: z.object({
|
|
@@ -296,25 +286,15 @@ export const zFleet = z.object({
|
|
|
296
286
|
enabled: z.boolean().optional().default(true),
|
|
297
287
|
project: z.string()
|
|
298
288
|
}).optional(),
|
|
299
|
-
hetzner: z.
|
|
300
|
-
z.
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}),
|
|
304
|
-
z.object({
|
|
305
|
-
apiKey: z.string().optional(),
|
|
306
|
-
enabled: z.boolean().optional().default(true)
|
|
307
|
-
})
|
|
308
|
-
]).optional(),
|
|
289
|
+
hetzner: z.object({
|
|
290
|
+
enabled: z.boolean().optional().default(true),
|
|
291
|
+
apiKey: z.string()
|
|
292
|
+
}).optional(),
|
|
309
293
|
aws: z.object({
|
|
310
294
|
enabled: z.boolean().optional().default(true),
|
|
311
295
|
controllerRoleArn: z.string()
|
|
312
296
|
}).optional(),
|
|
313
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
314
|
-
type: z.enum([
|
|
315
|
-
'managed',
|
|
316
|
-
'connected'
|
|
317
|
-
])
|
|
297
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
318
298
|
});
|
|
319
299
|
export const zFleetUpdateInput = z.object({
|
|
320
300
|
limits: z.object({
|
|
@@ -324,16 +304,10 @@ export const zFleetUpdateInput = z.object({
|
|
|
324
304
|
enabled: z.boolean().optional().default(true),
|
|
325
305
|
project: z.string()
|
|
326
306
|
}).optional(),
|
|
327
|
-
hetzner: z.
|
|
328
|
-
z.
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}),
|
|
332
|
-
z.object({
|
|
333
|
-
apiKey: z.string().optional(),
|
|
334
|
-
enabled: z.boolean().optional().default(true)
|
|
335
|
-
})
|
|
336
|
-
]).optional(),
|
|
307
|
+
hetzner: z.object({
|
|
308
|
+
enabled: z.boolean().optional().default(true),
|
|
309
|
+
apiKey: z.string()
|
|
310
|
+
}).optional(),
|
|
337
311
|
aws: z.object({
|
|
338
312
|
enabled: z.boolean().optional().default(true),
|
|
339
313
|
controllerRoleArn: z.string()
|
|
@@ -341,634 +315,72 @@ export const zFleetUpdateInput = z.object({
|
|
|
341
315
|
});
|
|
342
316
|
export const zInvite = z.object({
|
|
343
317
|
id: z.string().optional(),
|
|
344
|
-
organization_id: z.
|
|
345
|
-
date_created: z.
|
|
346
|
-
email: z.
|
|
318
|
+
organization_id: z.uuid().optional(),
|
|
319
|
+
date_created: z.iso.datetime(),
|
|
320
|
+
email: z.email().optional(),
|
|
347
321
|
code: z.string().optional()
|
|
348
322
|
});
|
|
349
323
|
export const zInvoice = z.object({
|
|
350
|
-
id: z.string().
|
|
351
|
-
|
|
352
|
-
status: z.
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
'AOA',
|
|
365
|
-
'ARS',
|
|
366
|
-
'AUD',
|
|
367
|
-
'AWG',
|
|
368
|
-
'AZN',
|
|
369
|
-
'BAM',
|
|
370
|
-
'BBD',
|
|
371
|
-
'BDT',
|
|
372
|
-
'BGN',
|
|
373
|
-
'BHD',
|
|
374
|
-
'BIF',
|
|
375
|
-
'BMD',
|
|
376
|
-
'BND',
|
|
377
|
-
'BOB',
|
|
378
|
-
'BRL',
|
|
379
|
-
'BSD',
|
|
380
|
-
'BTN',
|
|
381
|
-
'BWP',
|
|
382
|
-
'BYR',
|
|
383
|
-
'BZD',
|
|
384
|
-
'CAD',
|
|
385
|
-
'CDF',
|
|
386
|
-
'CHF',
|
|
387
|
-
'CLP',
|
|
388
|
-
'CNY',
|
|
389
|
-
'COP',
|
|
390
|
-
'CRC',
|
|
391
|
-
'CUC',
|
|
392
|
-
'CUP',
|
|
393
|
-
'CVE',
|
|
394
|
-
'CZK',
|
|
395
|
-
'DJF',
|
|
396
|
-
'DKK',
|
|
397
|
-
'DOP',
|
|
398
|
-
'DZD',
|
|
399
|
-
'EGP',
|
|
400
|
-
'ERN',
|
|
401
|
-
'ETB',
|
|
402
|
-
'EUR',
|
|
403
|
-
'FJD',
|
|
404
|
-
'FKP',
|
|
405
|
-
'GBP',
|
|
406
|
-
'GEL',
|
|
407
|
-
'GGP',
|
|
408
|
-
'GHS',
|
|
409
|
-
'GIP',
|
|
410
|
-
'GMD',
|
|
411
|
-
'GNF',
|
|
412
|
-
'GTQ',
|
|
413
|
-
'GYD',
|
|
414
|
-
'HKD',
|
|
415
|
-
'HNL',
|
|
416
|
-
'HRK',
|
|
417
|
-
'HTG',
|
|
418
|
-
'HUF',
|
|
419
|
-
'IDR',
|
|
420
|
-
'ILS',
|
|
421
|
-
'IMP',
|
|
422
|
-
'INR',
|
|
423
|
-
'IQD',
|
|
424
|
-
'IRR',
|
|
425
|
-
'ISK',
|
|
426
|
-
'JEP',
|
|
427
|
-
'JMD',
|
|
428
|
-
'JOD',
|
|
429
|
-
'JPY',
|
|
430
|
-
'KES',
|
|
431
|
-
'KGS',
|
|
432
|
-
'KHR',
|
|
433
|
-
'KMF',
|
|
434
|
-
'KPW',
|
|
435
|
-
'KRW',
|
|
436
|
-
'KWD',
|
|
437
|
-
'KYD',
|
|
438
|
-
'KZT',
|
|
439
|
-
'LAK',
|
|
440
|
-
'LBP',
|
|
441
|
-
'LKR',
|
|
442
|
-
'LRD',
|
|
443
|
-
'LSL',
|
|
444
|
-
'LTL',
|
|
445
|
-
'LVL',
|
|
446
|
-
'LYD',
|
|
447
|
-
'MAD',
|
|
448
|
-
'MDL',
|
|
449
|
-
'MGA',
|
|
450
|
-
'MKD',
|
|
451
|
-
'MMK',
|
|
452
|
-
'MNT',
|
|
453
|
-
'MOP',
|
|
454
|
-
'MRO',
|
|
455
|
-
'MUR',
|
|
456
|
-
'MVR',
|
|
457
|
-
'MWK',
|
|
458
|
-
'MXN',
|
|
459
|
-
'MYR',
|
|
460
|
-
'MZN',
|
|
461
|
-
'NAD',
|
|
462
|
-
'NGN',
|
|
463
|
-
'NIO',
|
|
464
|
-
'NOK',
|
|
465
|
-
'NPR',
|
|
466
|
-
'NZD',
|
|
467
|
-
'OMR',
|
|
468
|
-
'PAB',
|
|
469
|
-
'PEN',
|
|
470
|
-
'PGK',
|
|
471
|
-
'PHP',
|
|
472
|
-
'PKR',
|
|
473
|
-
'PLN',
|
|
474
|
-
'PYG',
|
|
475
|
-
'QAR',
|
|
476
|
-
'RON',
|
|
477
|
-
'RSD',
|
|
478
|
-
'RUB',
|
|
479
|
-
'RWF',
|
|
480
|
-
'SAR',
|
|
481
|
-
'SBD',
|
|
482
|
-
'SCR',
|
|
483
|
-
'SDG',
|
|
484
|
-
'SEK',
|
|
485
|
-
'SGD',
|
|
486
|
-
'SHP',
|
|
487
|
-
'SLL',
|
|
488
|
-
'SOS',
|
|
489
|
-
'SPL',
|
|
490
|
-
'SRD',
|
|
491
|
-
'STD',
|
|
492
|
-
'SVC',
|
|
493
|
-
'SYP',
|
|
494
|
-
'SZL',
|
|
495
|
-
'THB',
|
|
496
|
-
'TJS',
|
|
497
|
-
'TMT',
|
|
498
|
-
'TND',
|
|
499
|
-
'TOP',
|
|
500
|
-
'TRY',
|
|
501
|
-
'TTD',
|
|
502
|
-
'TVD',
|
|
503
|
-
'TWD',
|
|
504
|
-
'TZS',
|
|
505
|
-
'UAH',
|
|
506
|
-
'UGX',
|
|
507
|
-
'USD',
|
|
508
|
-
'UYU',
|
|
509
|
-
'UZS',
|
|
510
|
-
'VEF',
|
|
511
|
-
'VND',
|
|
512
|
-
'VUV',
|
|
513
|
-
'WST',
|
|
514
|
-
'XAF',
|
|
515
|
-
'XCD',
|
|
516
|
-
'XDR',
|
|
517
|
-
'XOF',
|
|
518
|
-
'XPF',
|
|
519
|
-
'YER',
|
|
520
|
-
'ZAR',
|
|
521
|
-
'ZMW',
|
|
522
|
-
'ZWD',
|
|
523
|
-
'BTC'
|
|
524
|
-
]).optional(),
|
|
525
|
-
creditAdj: z.number().optional(),
|
|
526
|
-
refundAdj: z.number().optional(),
|
|
527
|
-
invoiceDate: z.string().optional(),
|
|
528
|
-
targetDate: z.string().optional(),
|
|
529
|
-
invoiceNumber: z.string().optional(),
|
|
530
|
-
balance: z.number().optional(),
|
|
531
|
-
bundleKeys: z.string().optional(),
|
|
532
|
-
credits: z.array(z.object({
|
|
533
|
-
id: z.string().uuid().optional(),
|
|
534
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
535
|
-
productName: z.string().optional(),
|
|
536
|
-
planName: z.string().optional(),
|
|
537
|
-
phaseName: z.string().optional(),
|
|
538
|
-
usageName: z.string().optional(),
|
|
539
|
-
prettyProductName: z.string().optional(),
|
|
540
|
-
prettyPlanName: z.string().optional(),
|
|
541
|
-
prettyPhaseName: z.string().optional(),
|
|
542
|
-
prettyUsageName: z.string().optional(),
|
|
543
|
-
itemType: z.enum([
|
|
544
|
-
'EXTERNAL_CHARGE',
|
|
545
|
-
'FIXED',
|
|
546
|
-
'RECURRING',
|
|
547
|
-
'REPAIR_ADJ',
|
|
548
|
-
'CBA_ADJ',
|
|
549
|
-
'CREDIT_ADJ',
|
|
550
|
-
'ITEM_ADJ',
|
|
551
|
-
'USAGE',
|
|
552
|
-
'TAX',
|
|
553
|
-
'PARENT_SUMMARY'
|
|
554
|
-
]).optional(),
|
|
555
|
-
description: z.string().optional(),
|
|
556
|
-
startDate: z.string().optional(),
|
|
557
|
-
endDate: z.string().optional(),
|
|
558
|
-
amount: z.number().optional(),
|
|
559
|
-
rate: z.number().optional(),
|
|
560
|
-
currency: z.enum([
|
|
561
|
-
'AED',
|
|
562
|
-
'AFN',
|
|
563
|
-
'ALL',
|
|
564
|
-
'AMD',
|
|
565
|
-
'ANG',
|
|
566
|
-
'AOA',
|
|
567
|
-
'ARS',
|
|
568
|
-
'AUD',
|
|
569
|
-
'AWG',
|
|
570
|
-
'AZN',
|
|
571
|
-
'BAM',
|
|
572
|
-
'BBD',
|
|
573
|
-
'BDT',
|
|
574
|
-
'BGN',
|
|
575
|
-
'BHD',
|
|
576
|
-
'BIF',
|
|
577
|
-
'BMD',
|
|
578
|
-
'BND',
|
|
579
|
-
'BOB',
|
|
580
|
-
'BRL',
|
|
581
|
-
'BSD',
|
|
582
|
-
'BTN',
|
|
583
|
-
'BWP',
|
|
584
|
-
'BYR',
|
|
585
|
-
'BZD',
|
|
586
|
-
'CAD',
|
|
587
|
-
'CDF',
|
|
588
|
-
'CHF',
|
|
589
|
-
'CLP',
|
|
590
|
-
'CNY',
|
|
591
|
-
'COP',
|
|
592
|
-
'CRC',
|
|
593
|
-
'CUC',
|
|
594
|
-
'CUP',
|
|
595
|
-
'CVE',
|
|
596
|
-
'CZK',
|
|
597
|
-
'DJF',
|
|
598
|
-
'DKK',
|
|
599
|
-
'DOP',
|
|
600
|
-
'DZD',
|
|
601
|
-
'EGP',
|
|
602
|
-
'ERN',
|
|
603
|
-
'ETB',
|
|
604
|
-
'EUR',
|
|
605
|
-
'FJD',
|
|
606
|
-
'FKP',
|
|
607
|
-
'GBP',
|
|
608
|
-
'GEL',
|
|
609
|
-
'GGP',
|
|
610
|
-
'GHS',
|
|
611
|
-
'GIP',
|
|
612
|
-
'GMD',
|
|
613
|
-
'GNF',
|
|
614
|
-
'GTQ',
|
|
615
|
-
'GYD',
|
|
616
|
-
'HKD',
|
|
617
|
-
'HNL',
|
|
618
|
-
'HRK',
|
|
619
|
-
'HTG',
|
|
620
|
-
'HUF',
|
|
621
|
-
'IDR',
|
|
622
|
-
'ILS',
|
|
623
|
-
'IMP',
|
|
624
|
-
'INR',
|
|
625
|
-
'IQD',
|
|
626
|
-
'IRR',
|
|
627
|
-
'ISK',
|
|
628
|
-
'JEP',
|
|
629
|
-
'JMD',
|
|
630
|
-
'JOD',
|
|
631
|
-
'JPY',
|
|
632
|
-
'KES',
|
|
633
|
-
'KGS',
|
|
634
|
-
'KHR',
|
|
635
|
-
'KMF',
|
|
636
|
-
'KPW',
|
|
637
|
-
'KRW',
|
|
638
|
-
'KWD',
|
|
639
|
-
'KYD',
|
|
640
|
-
'KZT',
|
|
641
|
-
'LAK',
|
|
642
|
-
'LBP',
|
|
643
|
-
'LKR',
|
|
644
|
-
'LRD',
|
|
645
|
-
'LSL',
|
|
646
|
-
'LTL',
|
|
647
|
-
'LVL',
|
|
648
|
-
'LYD',
|
|
649
|
-
'MAD',
|
|
650
|
-
'MDL',
|
|
651
|
-
'MGA',
|
|
652
|
-
'MKD',
|
|
653
|
-
'MMK',
|
|
654
|
-
'MNT',
|
|
655
|
-
'MOP',
|
|
656
|
-
'MRO',
|
|
657
|
-
'MUR',
|
|
658
|
-
'MVR',
|
|
659
|
-
'MWK',
|
|
660
|
-
'MXN',
|
|
661
|
-
'MYR',
|
|
662
|
-
'MZN',
|
|
663
|
-
'NAD',
|
|
664
|
-
'NGN',
|
|
665
|
-
'NIO',
|
|
666
|
-
'NOK',
|
|
667
|
-
'NPR',
|
|
668
|
-
'NZD',
|
|
669
|
-
'OMR',
|
|
670
|
-
'PAB',
|
|
671
|
-
'PEN',
|
|
672
|
-
'PGK',
|
|
673
|
-
'PHP',
|
|
674
|
-
'PKR',
|
|
675
|
-
'PLN',
|
|
676
|
-
'PYG',
|
|
677
|
-
'QAR',
|
|
678
|
-
'RON',
|
|
679
|
-
'RSD',
|
|
680
|
-
'RUB',
|
|
681
|
-
'RWF',
|
|
682
|
-
'SAR',
|
|
683
|
-
'SBD',
|
|
684
|
-
'SCR',
|
|
685
|
-
'SDG',
|
|
686
|
-
'SEK',
|
|
687
|
-
'SGD',
|
|
688
|
-
'SHP',
|
|
689
|
-
'SLL',
|
|
690
|
-
'SOS',
|
|
691
|
-
'SPL',
|
|
692
|
-
'SRD',
|
|
693
|
-
'STD',
|
|
694
|
-
'SVC',
|
|
695
|
-
'SYP',
|
|
696
|
-
'SZL',
|
|
697
|
-
'THB',
|
|
698
|
-
'TJS',
|
|
699
|
-
'TMT',
|
|
700
|
-
'TND',
|
|
701
|
-
'TOP',
|
|
702
|
-
'TRY',
|
|
703
|
-
'TTD',
|
|
704
|
-
'TVD',
|
|
705
|
-
'TWD',
|
|
706
|
-
'TZS',
|
|
707
|
-
'UAH',
|
|
708
|
-
'UGX',
|
|
709
|
-
'USD',
|
|
710
|
-
'UYU',
|
|
711
|
-
'UZS',
|
|
712
|
-
'VEF',
|
|
713
|
-
'VND',
|
|
714
|
-
'VUV',
|
|
715
|
-
'WST',
|
|
716
|
-
'XAF',
|
|
717
|
-
'XCD',
|
|
718
|
-
'XDR',
|
|
719
|
-
'XOF',
|
|
720
|
-
'XPF',
|
|
721
|
-
'YER',
|
|
722
|
-
'ZAR',
|
|
723
|
-
'ZMW',
|
|
724
|
-
'ZWD',
|
|
725
|
-
'BTC'
|
|
726
|
-
]).optional(),
|
|
727
|
-
quantity: z.number().optional(),
|
|
728
|
-
itemDetails: z.string().optional(),
|
|
729
|
-
catalogEffectiveDate: z.string().optional(),
|
|
730
|
-
childItems: z.array(z.unknown()).optional()
|
|
731
|
-
})).optional(),
|
|
732
|
-
items: z.array(z.object({
|
|
733
|
-
id: z.string().uuid().optional(),
|
|
734
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
735
|
-
productName: z.string().optional(),
|
|
736
|
-
planName: z.string().optional(),
|
|
737
|
-
phaseName: z.string().optional(),
|
|
738
|
-
usageName: z.string().optional(),
|
|
739
|
-
prettyProductName: z.string().optional(),
|
|
740
|
-
prettyPlanName: z.string().optional(),
|
|
741
|
-
prettyPhaseName: z.string().optional(),
|
|
742
|
-
prettyUsageName: z.string().optional(),
|
|
743
|
-
itemType: z.enum([
|
|
744
|
-
'EXTERNAL_CHARGE',
|
|
745
|
-
'FIXED',
|
|
746
|
-
'RECURRING',
|
|
747
|
-
'REPAIR_ADJ',
|
|
748
|
-
'CBA_ADJ',
|
|
749
|
-
'CREDIT_ADJ',
|
|
750
|
-
'ITEM_ADJ',
|
|
751
|
-
'USAGE',
|
|
752
|
-
'TAX',
|
|
753
|
-
'PARENT_SUMMARY'
|
|
754
|
-
]).optional(),
|
|
755
|
-
description: z.string().optional(),
|
|
756
|
-
startDate: z.string().optional(),
|
|
757
|
-
endDate: z.string().optional(),
|
|
758
|
-
amount: z.number().optional(),
|
|
759
|
-
rate: z.number().optional(),
|
|
760
|
-
currency: z.enum([
|
|
761
|
-
'AED',
|
|
762
|
-
'AFN',
|
|
763
|
-
'ALL',
|
|
764
|
-
'AMD',
|
|
765
|
-
'ANG',
|
|
766
|
-
'AOA',
|
|
767
|
-
'ARS',
|
|
768
|
-
'AUD',
|
|
769
|
-
'AWG',
|
|
770
|
-
'AZN',
|
|
771
|
-
'BAM',
|
|
772
|
-
'BBD',
|
|
773
|
-
'BDT',
|
|
774
|
-
'BGN',
|
|
775
|
-
'BHD',
|
|
776
|
-
'BIF',
|
|
777
|
-
'BMD',
|
|
778
|
-
'BND',
|
|
779
|
-
'BOB',
|
|
780
|
-
'BRL',
|
|
781
|
-
'BSD',
|
|
782
|
-
'BTN',
|
|
783
|
-
'BWP',
|
|
784
|
-
'BYR',
|
|
785
|
-
'BZD',
|
|
786
|
-
'CAD',
|
|
787
|
-
'CDF',
|
|
788
|
-
'CHF',
|
|
789
|
-
'CLP',
|
|
790
|
-
'CNY',
|
|
791
|
-
'COP',
|
|
792
|
-
'CRC',
|
|
793
|
-
'CUC',
|
|
794
|
-
'CUP',
|
|
795
|
-
'CVE',
|
|
796
|
-
'CZK',
|
|
797
|
-
'DJF',
|
|
798
|
-
'DKK',
|
|
799
|
-
'DOP',
|
|
800
|
-
'DZD',
|
|
801
|
-
'EGP',
|
|
802
|
-
'ERN',
|
|
803
|
-
'ETB',
|
|
804
|
-
'EUR',
|
|
805
|
-
'FJD',
|
|
806
|
-
'FKP',
|
|
807
|
-
'GBP',
|
|
808
|
-
'GEL',
|
|
809
|
-
'GGP',
|
|
810
|
-
'GHS',
|
|
811
|
-
'GIP',
|
|
812
|
-
'GMD',
|
|
813
|
-
'GNF',
|
|
814
|
-
'GTQ',
|
|
815
|
-
'GYD',
|
|
816
|
-
'HKD',
|
|
817
|
-
'HNL',
|
|
818
|
-
'HRK',
|
|
819
|
-
'HTG',
|
|
820
|
-
'HUF',
|
|
821
|
-
'IDR',
|
|
822
|
-
'ILS',
|
|
823
|
-
'IMP',
|
|
824
|
-
'INR',
|
|
825
|
-
'IQD',
|
|
826
|
-
'IRR',
|
|
827
|
-
'ISK',
|
|
828
|
-
'JEP',
|
|
829
|
-
'JMD',
|
|
830
|
-
'JOD',
|
|
831
|
-
'JPY',
|
|
832
|
-
'KES',
|
|
833
|
-
'KGS',
|
|
834
|
-
'KHR',
|
|
835
|
-
'KMF',
|
|
836
|
-
'KPW',
|
|
837
|
-
'KRW',
|
|
838
|
-
'KWD',
|
|
839
|
-
'KYD',
|
|
840
|
-
'KZT',
|
|
841
|
-
'LAK',
|
|
842
|
-
'LBP',
|
|
843
|
-
'LKR',
|
|
844
|
-
'LRD',
|
|
845
|
-
'LSL',
|
|
846
|
-
'LTL',
|
|
847
|
-
'LVL',
|
|
848
|
-
'LYD',
|
|
849
|
-
'MAD',
|
|
850
|
-
'MDL',
|
|
851
|
-
'MGA',
|
|
852
|
-
'MKD',
|
|
853
|
-
'MMK',
|
|
854
|
-
'MNT',
|
|
855
|
-
'MOP',
|
|
856
|
-
'MRO',
|
|
857
|
-
'MUR',
|
|
858
|
-
'MVR',
|
|
859
|
-
'MWK',
|
|
860
|
-
'MXN',
|
|
861
|
-
'MYR',
|
|
862
|
-
'MZN',
|
|
863
|
-
'NAD',
|
|
864
|
-
'NGN',
|
|
865
|
-
'NIO',
|
|
866
|
-
'NOK',
|
|
867
|
-
'NPR',
|
|
868
|
-
'NZD',
|
|
869
|
-
'OMR',
|
|
870
|
-
'PAB',
|
|
871
|
-
'PEN',
|
|
872
|
-
'PGK',
|
|
873
|
-
'PHP',
|
|
874
|
-
'PKR',
|
|
875
|
-
'PLN',
|
|
876
|
-
'PYG',
|
|
877
|
-
'QAR',
|
|
878
|
-
'RON',
|
|
879
|
-
'RSD',
|
|
880
|
-
'RUB',
|
|
881
|
-
'RWF',
|
|
882
|
-
'SAR',
|
|
883
|
-
'SBD',
|
|
884
|
-
'SCR',
|
|
885
|
-
'SDG',
|
|
886
|
-
'SEK',
|
|
887
|
-
'SGD',
|
|
888
|
-
'SHP',
|
|
889
|
-
'SLL',
|
|
890
|
-
'SOS',
|
|
891
|
-
'SPL',
|
|
892
|
-
'SRD',
|
|
893
|
-
'STD',
|
|
894
|
-
'SVC',
|
|
895
|
-
'SYP',
|
|
896
|
-
'SZL',
|
|
897
|
-
'THB',
|
|
898
|
-
'TJS',
|
|
899
|
-
'TMT',
|
|
900
|
-
'TND',
|
|
901
|
-
'TOP',
|
|
902
|
-
'TRY',
|
|
903
|
-
'TTD',
|
|
904
|
-
'TVD',
|
|
905
|
-
'TWD',
|
|
906
|
-
'TZS',
|
|
907
|
-
'UAH',
|
|
908
|
-
'UGX',
|
|
909
|
-
'USD',
|
|
910
|
-
'UYU',
|
|
911
|
-
'UZS',
|
|
912
|
-
'VEF',
|
|
913
|
-
'VND',
|
|
914
|
-
'VUV',
|
|
915
|
-
'WST',
|
|
916
|
-
'XAF',
|
|
917
|
-
'XCD',
|
|
918
|
-
'XDR',
|
|
919
|
-
'XOF',
|
|
920
|
-
'XPF',
|
|
921
|
-
'YER',
|
|
922
|
-
'ZAR',
|
|
923
|
-
'ZMW',
|
|
924
|
-
'ZWD',
|
|
925
|
-
'BTC'
|
|
926
|
-
]).optional(),
|
|
927
|
-
quantity: z.number().optional(),
|
|
928
|
-
itemDetails: z.string().optional(),
|
|
929
|
-
catalogEffectiveDate: z.string().optional(),
|
|
930
|
-
childItems: z.array(z.unknown()).optional()
|
|
931
|
-
})).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()
|
|
932
338
|
});
|
|
933
339
|
export const zMarketplaceListing = z.object({
|
|
934
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
935
340
|
name: z.string(),
|
|
936
|
-
|
|
937
|
-
description: z.string(),
|
|
938
|
-
logoUrl: z.string(),
|
|
939
|
-
longDescription: z.string(),
|
|
940
|
-
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-]+)*))?$/)),
|
|
941
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-]+)*))?$/)),
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
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()
|
|
947
359
|
});
|
|
948
360
|
export const zOrganizationCreateInput = z.object({
|
|
949
|
-
email: z.
|
|
361
|
+
email: z.email(),
|
|
950
362
|
first_name: z.string(),
|
|
951
363
|
last_name: z.string(),
|
|
952
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,}$/),
|
|
953
365
|
password: z.string().min(8)
|
|
954
366
|
});
|
|
955
367
|
export const zOrganization = z.object({
|
|
956
|
-
id: z.
|
|
368
|
+
id: z.uuid(),
|
|
957
369
|
name: z.string().min(2).max(120).optional(),
|
|
958
|
-
date_created: z.
|
|
370
|
+
date_created: z.iso.datetime(),
|
|
959
371
|
quota: z.object({
|
|
960
|
-
basic_clusters_max: z.
|
|
961
|
-
basic_clusters_available: z.
|
|
962
|
-
pro_clusters_max: z.
|
|
963
|
-
pro_clusters_available: z.
|
|
964
|
-
fleets_max: z.
|
|
965
|
-
managed_fleets_cpu_max: z.number().int().gte(0),
|
|
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),
|
|
966
377
|
cluster_tiers: z.array(z.string()).min(0),
|
|
967
378
|
regions: z.array(z.string()).min(1),
|
|
968
379
|
versions: z.array(z.object({
|
|
969
380
|
id: z.string(),
|
|
970
381
|
label: z.string()
|
|
971
|
-
})).min(1)
|
|
382
|
+
})).min(1),
|
|
383
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
972
384
|
}),
|
|
973
385
|
status: z.enum([
|
|
974
386
|
'active',
|
|
@@ -977,14 +389,12 @@ export const zOrganization = z.object({
|
|
|
977
389
|
])
|
|
978
390
|
});
|
|
979
391
|
export const zPaymentMethod = z.object({
|
|
980
|
-
id: z.
|
|
392
|
+
id: z.uuid(),
|
|
981
393
|
setup: z.boolean(),
|
|
982
|
-
type: z.enum([
|
|
983
|
-
'card'
|
|
984
|
-
]),
|
|
394
|
+
type: z.enum(['card']),
|
|
985
395
|
last4: z.string(),
|
|
986
|
-
exp_month: z.
|
|
987
|
-
exp_year: z.
|
|
396
|
+
exp_month: z.int().gte(1).lte(12),
|
|
397
|
+
exp_year: z.int().gte(2024),
|
|
988
398
|
brand: z.enum([
|
|
989
399
|
'amex',
|
|
990
400
|
'diners',
|
|
@@ -997,164 +407,459 @@ export const zPaymentMethod = z.object({
|
|
|
997
407
|
'unknown'
|
|
998
408
|
])
|
|
999
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
|
+
});
|
|
1000
470
|
export const zTokenCreateInput = z.object({
|
|
1001
471
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
1002
|
-
role: z.enum([
|
|
1003
|
-
'Administrator',
|
|
1004
|
-
'User'
|
|
1005
|
-
])
|
|
472
|
+
role: z.enum(['Administrator', 'User'])
|
|
1006
473
|
});
|
|
1007
474
|
export const zToken = z.object({
|
|
1008
475
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
1009
|
-
role: z.enum([
|
|
1010
|
-
'Administrator',
|
|
1011
|
-
'User'
|
|
1012
|
-
]),
|
|
476
|
+
role: z.enum(['Administrator', 'User']),
|
|
1013
477
|
id: z.string().optional(),
|
|
1014
478
|
secret: z.string().optional(),
|
|
1015
|
-
date_created: z.
|
|
479
|
+
date_created: z.iso.datetime()
|
|
1016
480
|
});
|
|
1017
481
|
export const zTokenUpdateInput = z.object({
|
|
1018
482
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
1019
|
-
role: z.enum([
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
483
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
484
|
+
});
|
|
485
|
+
export const zUsageFacets = z.object({
|
|
486
|
+
cluster_id: z.array(z.string()).optional(),
|
|
487
|
+
product: z.array(z.string()).optional()
|
|
488
|
+
});
|
|
489
|
+
export const zUsageResponse = z.object({
|
|
490
|
+
data: z.array(z.object({
|
|
491
|
+
hour: z.string(),
|
|
492
|
+
cluster_id: z.string(),
|
|
493
|
+
product: z.string(),
|
|
494
|
+
value: z.number(),
|
|
495
|
+
price: z.number(),
|
|
496
|
+
total: z.number()
|
|
497
|
+
})),
|
|
498
|
+
facets: z.object({
|
|
499
|
+
cluster_id: z.array(z.string()).optional(),
|
|
500
|
+
product: z.array(z.string()).optional()
|
|
501
|
+
})
|
|
1023
502
|
});
|
|
1024
503
|
export const zUsage = z.object({
|
|
1025
|
-
hour: z.string()
|
|
1026
|
-
cluster_id: z.string()
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
]),
|
|
1032
|
-
product: z.enum([
|
|
1033
|
-
'cfke_controlplane',
|
|
1034
|
-
'cfke_connected_nodes',
|
|
1035
|
-
'infra_compute',
|
|
1036
|
-
'infra_storage',
|
|
1037
|
-
'infra_loadbalancing',
|
|
1038
|
-
'infra_traffic',
|
|
1039
|
-
'cfcr_storage'
|
|
1040
|
-
]),
|
|
1041
|
-
node_name: z.string(),
|
|
1042
|
-
sku: z.string(),
|
|
1043
|
-
cpu: z.union([
|
|
1044
|
-
z.number(),
|
|
1045
|
-
z.enum([
|
|
1046
|
-
''
|
|
1047
|
-
])
|
|
1048
|
-
]),
|
|
1049
|
-
price: z.union([
|
|
1050
|
-
z.number(),
|
|
1051
|
-
z.enum([
|
|
1052
|
-
''
|
|
1053
|
-
])
|
|
1054
|
-
]),
|
|
1055
|
-
value: z.union([
|
|
1056
|
-
z.number(),
|
|
1057
|
-
z.enum([
|
|
1058
|
-
''
|
|
1059
|
-
])
|
|
1060
|
-
]),
|
|
1061
|
-
total: z.union([
|
|
1062
|
-
z.number(),
|
|
1063
|
-
z.enum([
|
|
1064
|
-
''
|
|
1065
|
-
])
|
|
1066
|
-
])
|
|
504
|
+
hour: z.string(),
|
|
505
|
+
cluster_id: z.string(),
|
|
506
|
+
product: z.string(),
|
|
507
|
+
value: z.number(),
|
|
508
|
+
price: z.number(),
|
|
509
|
+
total: z.number()
|
|
1067
510
|
});
|
|
1068
511
|
export const zUserCreateInput = z.object({
|
|
1069
|
-
email: z.
|
|
512
|
+
email: z.email(),
|
|
1070
513
|
first_name: z.string().min(1).max(50),
|
|
1071
514
|
last_name: z.string().min(1).max(50),
|
|
1072
515
|
code: z.string(),
|
|
1073
516
|
password: z.string().min(8),
|
|
1074
|
-
status: z.enum([
|
|
1075
|
-
|
|
1076
|
-
'inactive'
|
|
1077
|
-
]).optional(),
|
|
1078
|
-
role: z.enum([
|
|
1079
|
-
'Administrator',
|
|
1080
|
-
'User'
|
|
1081
|
-
]).optional()
|
|
517
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
518
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1082
519
|
});
|
|
1083
520
|
export const zUser = z.object({
|
|
1084
|
-
email: z.
|
|
521
|
+
email: z.email(),
|
|
1085
522
|
first_name: z.string().min(1).max(50),
|
|
1086
523
|
last_name: z.string().min(1).max(50),
|
|
1087
|
-
role: z.enum([
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
status: z.enum([
|
|
1092
|
-
'active',
|
|
1093
|
-
'inactive'
|
|
1094
|
-
]),
|
|
1095
|
-
id: z.string().uuid(),
|
|
1096
|
-
date_created: z.string().datetime()
|
|
524
|
+
role: z.enum(['Administrator', 'User']),
|
|
525
|
+
status: z.enum(['active', 'inactive']),
|
|
526
|
+
id: z.uuid(),
|
|
527
|
+
date_created: z.iso.datetime()
|
|
1097
528
|
});
|
|
1098
529
|
export const zUserUpdateInput = z.object({
|
|
1099
|
-
email: z.
|
|
530
|
+
email: z.email().optional(),
|
|
1100
531
|
first_name: z.string().min(1).max(50).optional(),
|
|
1101
532
|
last_name: z.string().min(1).max(50).optional(),
|
|
1102
|
-
role: z.enum([
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
'
|
|
1108
|
-
'
|
|
533
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
534
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
535
|
+
});
|
|
536
|
+
export const zGetUsageQuery = z.object({
|
|
537
|
+
granularity: z.enum([
|
|
538
|
+
'hourly',
|
|
539
|
+
'daily',
|
|
540
|
+
'monthly'
|
|
1109
541
|
]).optional()
|
|
1110
542
|
});
|
|
1111
|
-
|
|
1112
|
-
|
|
543
|
+
/**
|
|
544
|
+
* Usage data with facets for filtering
|
|
545
|
+
*/
|
|
546
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
547
|
+
/**
|
|
548
|
+
* Redacted payment card information.
|
|
549
|
+
*/
|
|
1113
550
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
551
|
+
/**
|
|
552
|
+
* 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.
|
|
553
|
+
*
|
|
554
|
+
*/
|
|
1114
555
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1115
556
|
id: z.string().optional()
|
|
1116
557
|
});
|
|
558
|
+
/**
|
|
559
|
+
* An array of usage records.
|
|
560
|
+
*/
|
|
1117
561
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
562
|
+
/**
|
|
563
|
+
* Returns a single object containing organization contact and billing address details.
|
|
564
|
+
*/
|
|
1121
565
|
export const zGetContactResponse = zBillingContact;
|
|
566
|
+
export const zUpdateContactBody = zBillingContact;
|
|
567
|
+
/**
|
|
568
|
+
* Successfully updated. Returns updated organization details.
|
|
569
|
+
*/
|
|
1122
570
|
export const zUpdateContactResponse = zBillingContact;
|
|
571
|
+
/**
|
|
572
|
+
* An array of the applied promotional credits records.
|
|
573
|
+
*/
|
|
1123
574
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
575
|
+
export const zRedeemCreditsBody = z.object({
|
|
576
|
+
code: z.string().optional()
|
|
577
|
+
});
|
|
578
|
+
export const zListChartsPath = z.object({
|
|
579
|
+
cluster_id: z.string()
|
|
580
|
+
});
|
|
581
|
+
/**
|
|
582
|
+
* An array of charts
|
|
583
|
+
*/
|
|
1124
584
|
export const zListChartsResponse = z.array(zChart);
|
|
585
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
586
|
+
export const zCreateChartPath = z.object({
|
|
587
|
+
cluster_id: z.string()
|
|
588
|
+
});
|
|
589
|
+
/**
|
|
590
|
+
* Successfully created. Returns created Chart ID.
|
|
591
|
+
*/
|
|
1125
592
|
export const zCreateChartResponse = z.string();
|
|
593
|
+
export const zDeleteChartPath = z.object({
|
|
594
|
+
cluster_id: z.string(),
|
|
595
|
+
chart_name: z.string()
|
|
596
|
+
});
|
|
597
|
+
/**
|
|
598
|
+
* Successfully deleted.
|
|
599
|
+
*/
|
|
1126
600
|
export const zDeleteChartResponse = z.string();
|
|
601
|
+
export const zGetChartPath = z.object({
|
|
602
|
+
cluster_id: z.string(),
|
|
603
|
+
chart_name: z.string()
|
|
604
|
+
});
|
|
605
|
+
/**
|
|
606
|
+
* Returns a single object containing chart details.
|
|
607
|
+
*/
|
|
1127
608
|
export const zGetChartResponse = zChart;
|
|
609
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
610
|
+
export const zUpdateChartPath = z.object({
|
|
611
|
+
cluster_id: z.string(),
|
|
612
|
+
chart_name: z.string()
|
|
613
|
+
});
|
|
614
|
+
/**
|
|
615
|
+
* Successfully updated.
|
|
616
|
+
*/
|
|
1128
617
|
export const zUpdateChartResponse = z.string();
|
|
618
|
+
export const zListFleetsPath = z.object({
|
|
619
|
+
cluster_id: z.string()
|
|
620
|
+
});
|
|
621
|
+
/**
|
|
622
|
+
* An array of fleets
|
|
623
|
+
*/
|
|
1129
624
|
export const zListFleetsResponse = z.array(zFleet);
|
|
625
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
626
|
+
export const zCreateFleetPath = z.object({
|
|
627
|
+
cluster_id: z.string()
|
|
628
|
+
});
|
|
629
|
+
/**
|
|
630
|
+
* Successfully created. Returns created Fleet ID.
|
|
631
|
+
*/
|
|
1130
632
|
export const zCreateFleetResponse = z.string();
|
|
633
|
+
export const zDeleteFleetPath = z.object({
|
|
634
|
+
cluster_id: z.string(),
|
|
635
|
+
fleet_name: z.string()
|
|
636
|
+
});
|
|
637
|
+
/**
|
|
638
|
+
* Successfully deleted.
|
|
639
|
+
*/
|
|
1131
640
|
export const zDeleteFleetResponse = z.string();
|
|
641
|
+
export const zGetFleetPath = z.object({
|
|
642
|
+
cluster_id: z.string(),
|
|
643
|
+
fleet_name: z.string()
|
|
644
|
+
});
|
|
645
|
+
/**
|
|
646
|
+
* Returns a single object containing fleet details.
|
|
647
|
+
*/
|
|
1132
648
|
export const zGetFleetResponse = zFleet;
|
|
649
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
650
|
+
export const zUpdateFleetPath = z.object({
|
|
651
|
+
cluster_id: z.string(),
|
|
652
|
+
fleet_name: z.string()
|
|
653
|
+
});
|
|
654
|
+
/**
|
|
655
|
+
* Successfully updated.
|
|
656
|
+
*/
|
|
1133
657
|
export const zUpdateFleetResponse = z.string();
|
|
658
|
+
export const zQueryClusterPath = z.object({
|
|
659
|
+
cluster_id: z.string()
|
|
660
|
+
});
|
|
661
|
+
/**
|
|
662
|
+
* An array of clusters
|
|
663
|
+
*/
|
|
1134
664
|
export const zListClustersResponse = z.array(zCluster);
|
|
665
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
666
|
+
/**
|
|
667
|
+
* Successfully created. Returns created Cluster ID.
|
|
668
|
+
*/
|
|
1135
669
|
export const zCreateClusterResponse = z.string();
|
|
670
|
+
export const zDeleteClusterPath = z.object({
|
|
671
|
+
cluster_id: z.string()
|
|
672
|
+
});
|
|
673
|
+
/**
|
|
674
|
+
* Successfully deleted.
|
|
675
|
+
*/
|
|
1136
676
|
export const zDeleteClusterResponse = z.string();
|
|
677
|
+
export const zGetClusterPath = z.object({
|
|
678
|
+
cluster_id: z.string()
|
|
679
|
+
});
|
|
680
|
+
/**
|
|
681
|
+
* Returns a single object containing cluster details.
|
|
682
|
+
*/
|
|
1137
683
|
export const zGetClusterResponse = zCluster;
|
|
684
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
685
|
+
export const zUpdateClusterPath = z.object({
|
|
686
|
+
cluster_id: z.string()
|
|
687
|
+
});
|
|
688
|
+
/**
|
|
689
|
+
* Successfully updated. Returns updated cluster details.
|
|
690
|
+
*/
|
|
1138
691
|
export const zUpdateClusterResponse = zCluster;
|
|
1139
|
-
export const
|
|
692
|
+
export const zGetJoinInformationPath = z.object({
|
|
693
|
+
cluster_id: z.string()
|
|
694
|
+
});
|
|
695
|
+
/**
|
|
696
|
+
* An object of cluster join information
|
|
697
|
+
*/
|
|
698
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
699
|
+
/**
|
|
700
|
+
* An array of invites
|
|
701
|
+
*/
|
|
1140
702
|
export const zListInvitesResponse = z.array(zInvite);
|
|
703
|
+
export const zCreateInviteBody = z.object({
|
|
704
|
+
email: z.string().optional()
|
|
705
|
+
});
|
|
706
|
+
/**
|
|
707
|
+
* Successfully created. Returns created invite details.
|
|
708
|
+
*/
|
|
1141
709
|
export const zCreateInviteResponse = zInvite;
|
|
710
|
+
export const zGetInvitePath = z.object({
|
|
711
|
+
code: z.string()
|
|
712
|
+
});
|
|
713
|
+
/**
|
|
714
|
+
* Returns a single object containing invite details.
|
|
715
|
+
*/
|
|
1142
716
|
export const zGetInviteResponse = zInvite;
|
|
717
|
+
export const zDeleteInvitePath = z.object({
|
|
718
|
+
email: z.string()
|
|
719
|
+
});
|
|
720
|
+
/**
|
|
721
|
+
* An array of chart listings in the marketplace.
|
|
722
|
+
*/
|
|
1143
723
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1144
|
-
export const
|
|
724
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
725
|
+
chart_name: z.string(),
|
|
726
|
+
version_channel: z.string()
|
|
727
|
+
});
|
|
728
|
+
/**
|
|
729
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
730
|
+
*/
|
|
731
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
732
|
+
/**
|
|
733
|
+
* JSON-RPC 2.0 request payload
|
|
734
|
+
*/
|
|
735
|
+
export const zPostMcpBody = z.object({
|
|
736
|
+
jsonrpc: z.string().optional(),
|
|
737
|
+
method: z.string().optional(),
|
|
738
|
+
id: z.union([
|
|
739
|
+
z.string(),
|
|
740
|
+
z.number()
|
|
741
|
+
]).optional(),
|
|
742
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
743
|
+
});
|
|
744
|
+
/**
|
|
745
|
+
* JSON-RPC 2.0 success or error response
|
|
746
|
+
*/
|
|
747
|
+
export const zPostMcpResponse = z.object({
|
|
748
|
+
jsonrpc: z.string().optional(),
|
|
749
|
+
id: z.union([
|
|
750
|
+
z.string(),
|
|
751
|
+
z.number()
|
|
752
|
+
]).optional(),
|
|
753
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
754
|
+
error: z.object({
|
|
755
|
+
code: z.int().optional(),
|
|
756
|
+
message: z.string().optional()
|
|
757
|
+
}).optional()
|
|
758
|
+
});
|
|
759
|
+
/**
|
|
760
|
+
* Returns a single object containing organization details.
|
|
761
|
+
*/
|
|
1145
762
|
export const zGetOrganizationResponse = zOrganization;
|
|
763
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
764
|
+
/**
|
|
765
|
+
* List of repositories
|
|
766
|
+
*/
|
|
767
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
768
|
+
export const zListTagsPath = z.object({
|
|
769
|
+
region: z.string(),
|
|
770
|
+
repository: z.string()
|
|
771
|
+
});
|
|
772
|
+
/**
|
|
773
|
+
* Repository with tags
|
|
774
|
+
*/
|
|
775
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
776
|
+
export const zDeleteTagPath = z.object({
|
|
777
|
+
region: z.string(),
|
|
778
|
+
repository: z.string(),
|
|
779
|
+
tag: z.string()
|
|
780
|
+
});
|
|
781
|
+
export const zGetTagPath = z.object({
|
|
782
|
+
region: z.string(),
|
|
783
|
+
repository: z.string(),
|
|
784
|
+
tag: z.string()
|
|
785
|
+
});
|
|
786
|
+
/**
|
|
787
|
+
* Tag details
|
|
788
|
+
*/
|
|
789
|
+
export const zGetTagResponse = zRegistryTag;
|
|
790
|
+
/**
|
|
791
|
+
* Returns a list of access token details with masked secrets.
|
|
792
|
+
*/
|
|
1146
793
|
export const zListTokensResponse = z.array(zToken);
|
|
794
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
795
|
+
/**
|
|
796
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
797
|
+
*/
|
|
1147
798
|
export const zCreateTokenResponse = zToken;
|
|
799
|
+
export const zDeleteTokenPath = z.object({
|
|
800
|
+
token_id: z.string()
|
|
801
|
+
});
|
|
802
|
+
export const zGetTokenPath = z.object({
|
|
803
|
+
token_id: z.string()
|
|
804
|
+
});
|
|
805
|
+
/**
|
|
806
|
+
* Returns access token details with masked secret.
|
|
807
|
+
*/
|
|
1148
808
|
export const zGetTokenResponse = zToken;
|
|
809
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
810
|
+
export const zUpdateTokenPath = z.object({
|
|
811
|
+
token_id: z.string()
|
|
812
|
+
});
|
|
813
|
+
/**
|
|
814
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
815
|
+
*/
|
|
1149
816
|
export const zUpdateTokenResponse = zToken;
|
|
817
|
+
export const zRegenerateTokenPath = z.object({
|
|
818
|
+
token_id: z.string()
|
|
819
|
+
});
|
|
820
|
+
/**
|
|
821
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
822
|
+
*/
|
|
1150
823
|
export const zRegenerateTokenResponse = zToken;
|
|
824
|
+
export const zListUserOrganizationsPath = z.object({
|
|
825
|
+
email: z.string()
|
|
826
|
+
});
|
|
827
|
+
/**
|
|
828
|
+
* An array of organizations the user belongs to.
|
|
829
|
+
*/
|
|
1151
830
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1152
831
|
realm: z.string().optional(),
|
|
1153
832
|
displayName: z.string().optional()
|
|
1154
833
|
}));
|
|
834
|
+
/**
|
|
835
|
+
* An array of users
|
|
836
|
+
*/
|
|
1155
837
|
export const zListUsersResponse = z.array(zUser);
|
|
838
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
839
|
+
/**
|
|
840
|
+
* Successfully created. Returns created user details.
|
|
841
|
+
*/
|
|
1156
842
|
export const zCreateUserResponse = zUser;
|
|
843
|
+
export const zDeleteUserPath = z.object({
|
|
844
|
+
user_id: z.string()
|
|
845
|
+
});
|
|
846
|
+
/**
|
|
847
|
+
* User profile information
|
|
848
|
+
*/
|
|
1157
849
|
export const zDeleteUserResponse = zUser;
|
|
850
|
+
export const zGetUserPath = z.object({
|
|
851
|
+
user_id: z.string()
|
|
852
|
+
});
|
|
853
|
+
/**
|
|
854
|
+
* User profile information
|
|
855
|
+
*/
|
|
1158
856
|
export const zGetUserResponse = zUser;
|
|
857
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
858
|
+
export const zUpdateUserPath = z.object({
|
|
859
|
+
user_id: z.string()
|
|
860
|
+
});
|
|
861
|
+
/**
|
|
862
|
+
* Successfully created. Returns created user details.
|
|
863
|
+
*/
|
|
1159
864
|
export const zUpdateUserResponse = zUser;
|
|
1160
865
|
//# sourceMappingURL=zod.gen.js.map
|