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