@cloudfleet/sdk 0.0.1-e9ffb68 → 0.0.1-eb7ee45
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/README.md +26 -2
- package/dist/@tanstack/react-query.gen.d.ts +1149 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1165 -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 +104 -123
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +6 -3
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +7 -3
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +3 -3
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/core/params.gen.js +4 -4
- package/dist/core/params.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 +3 -4
- package/dist/core/serverSentEvents.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +916 -97
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1821 -184
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +240 -197
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +348 -274
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +8 -8
- package/dist/types.gen.d.ts +1523 -804
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3257 -1141
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1179 -285
- package/dist/zod.gen.js.map +1 -1
- package/package.json +27 -11
package/dist/zod.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
|
+
type: z.enum(['business', 'personal']),
|
|
4
5
|
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
6
|
address1: z.string().optional(),
|
|
6
7
|
address2: z.string().optional(),
|
|
@@ -166,22 +167,7 @@ export const zChart = z.object({
|
|
|
166
167
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
167
168
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
168
169
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
169
|
-
status: z.
|
|
170
|
-
'InstallSucceeded',
|
|
171
|
-
'InstallFailed',
|
|
172
|
-
'UpgradeSucceeded',
|
|
173
|
-
'UpgradeFailed',
|
|
174
|
-
'TestSucceeded',
|
|
175
|
-
'TestFailed',
|
|
176
|
-
'RollbackSucceeded',
|
|
177
|
-
'RollbackFailed',
|
|
178
|
-
'UninstallSucceeded',
|
|
179
|
-
'UninstallFailed',
|
|
180
|
-
'ArtifactFailed',
|
|
181
|
-
'DependencyNotReady',
|
|
182
|
-
'Progressing',
|
|
183
|
-
'SourceNotReady'
|
|
184
|
-
]),
|
|
170
|
+
status: z.string(),
|
|
185
171
|
version_current: z.string(),
|
|
186
172
|
created_at: z.string(),
|
|
187
173
|
updated_at: z.string(),
|
|
@@ -194,23 +180,39 @@ export const zChartUpdateInput = z.object({
|
|
|
194
180
|
export const zClusterCreateInput = z.object({
|
|
195
181
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
196
182
|
tier: z.enum(['basic', 'pro']),
|
|
197
|
-
region: z.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
183
|
+
region: z.string(),
|
|
184
|
+
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'),
|
|
185
|
+
release_channel: z.enum([
|
|
186
|
+
'rapid',
|
|
187
|
+
'stable',
|
|
188
|
+
'extended'
|
|
189
|
+
]).optional().default('rapid'),
|
|
190
|
+
features: z.object({
|
|
191
|
+
gpu_sharing_strategy: z.enum([
|
|
192
|
+
'none',
|
|
193
|
+
'mps',
|
|
194
|
+
'time_slicing'
|
|
195
|
+
]),
|
|
196
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
197
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
198
|
+
}).optional().default({
|
|
199
|
+
gpu_sharing_strategy: 'none',
|
|
200
|
+
gpu_max_shared_clients_per_gpu: 10,
|
|
201
|
+
cilium_socket_lb_host_namespace_only: false
|
|
202
|
+
}),
|
|
203
|
+
networking: z.object({
|
|
204
|
+
pod_cidr: z.string().optional(),
|
|
205
|
+
service_cidr: z.string().optional(),
|
|
206
|
+
dual_stack: z.boolean().optional(),
|
|
207
|
+
pod_cidr_v6: z.string().optional(),
|
|
208
|
+
service_cidr_v6: z.string().optional()
|
|
209
|
+
}).optional()
|
|
209
210
|
});
|
|
210
211
|
export const zClusterJoinInformation = z.object({
|
|
211
212
|
certificate_authority: z.string(),
|
|
212
213
|
endpoint: z.url(),
|
|
213
214
|
cluster_dns: z.string(),
|
|
215
|
+
pod_cidr: z.string(),
|
|
214
216
|
auth_key: z.string(),
|
|
215
217
|
bootstrap_token: z.string(),
|
|
216
218
|
versions: z.object({
|
|
@@ -228,26 +230,43 @@ export const zClusterJoinInformation = z.object({
|
|
|
228
230
|
export const zCluster = z.object({
|
|
229
231
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
232
|
tier: z.enum(['basic', 'pro']),
|
|
231
|
-
region: z.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
region: z.string(),
|
|
234
|
+
networking: z.object({
|
|
235
|
+
pod_cidr: z.string().optional(),
|
|
236
|
+
service_cidr: z.string().optional(),
|
|
237
|
+
dual_stack: z.boolean().optional(),
|
|
238
|
+
pod_cidr_v6: z.string().optional(),
|
|
239
|
+
service_cidr_v6: z.string().optional()
|
|
240
|
+
}).optional(),
|
|
241
|
+
release_channel: z.enum([
|
|
242
|
+
'rapid',
|
|
243
|
+
'stable',
|
|
244
|
+
'extended'
|
|
236
245
|
]).optional(),
|
|
246
|
+
features: z.object({
|
|
247
|
+
gpu_sharing_strategy: z.enum([
|
|
248
|
+
'none',
|
|
249
|
+
'mps',
|
|
250
|
+
'time_slicing'
|
|
251
|
+
]),
|
|
252
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
253
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
254
|
+
}).optional(),
|
|
237
255
|
id: z.uuid(),
|
|
238
256
|
status: z.enum([
|
|
239
|
-
'active',
|
|
240
|
-
'disabled',
|
|
241
|
-
'deleted',
|
|
242
257
|
'creating',
|
|
243
258
|
'deployed',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
259
|
+
'updating',
|
|
260
|
+
'disabled'
|
|
246
261
|
]),
|
|
247
262
|
endpoint: z.union([
|
|
248
263
|
z.url(),
|
|
249
264
|
z.enum([''])
|
|
250
265
|
]).optional(),
|
|
266
|
+
endpoint_public: z.union([
|
|
267
|
+
z.url(),
|
|
268
|
+
z.enum([''])
|
|
269
|
+
]).optional(),
|
|
251
270
|
certificate_ca: z.string().optional(),
|
|
252
271
|
version_current: z.string().optional(),
|
|
253
272
|
created_at: z.string().optional(),
|
|
@@ -258,67 +277,783 @@ export const zCluster = z.object({
|
|
|
258
277
|
export const zClusterUpdateInput = z.object({
|
|
259
278
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
260
279
|
tier: z.enum(['basic', 'pro']),
|
|
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()
|
|
280
|
+
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(),
|
|
281
|
+
release_channel: z.enum([
|
|
282
|
+
'rapid',
|
|
283
|
+
'stable',
|
|
284
|
+
'extended'
|
|
285
|
+
]).optional(),
|
|
286
|
+
features: z.object({
|
|
287
|
+
gpu_sharing_strategy: z.enum([
|
|
288
|
+
'none',
|
|
289
|
+
'mps',
|
|
290
|
+
'time_slicing'
|
|
291
|
+
]),
|
|
292
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
293
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
294
|
+
}).optional()
|
|
262
295
|
});
|
|
263
296
|
export const zFleetCreateInput = z.object({
|
|
264
297
|
limits: z.object({
|
|
265
|
-
cpu: z.
|
|
298
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
266
299
|
}).optional(),
|
|
267
300
|
gcp: z.object({
|
|
268
|
-
enabled: z.boolean()
|
|
269
|
-
project: z.string()
|
|
301
|
+
enabled: z.boolean(),
|
|
302
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
270
303
|
}).optional(),
|
|
271
304
|
hetzner: z.object({
|
|
272
|
-
enabled: z.boolean()
|
|
273
|
-
apiKey: z.string()
|
|
305
|
+
enabled: z.boolean(),
|
|
306
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
274
307
|
}).optional(),
|
|
275
308
|
aws: z.object({
|
|
276
|
-
enabled: z.boolean()
|
|
277
|
-
controllerRoleArn: z.string()
|
|
309
|
+
enabled: z.boolean(),
|
|
310
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
278
311
|
}).optional(),
|
|
312
|
+
constraints: z.object({
|
|
313
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
314
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
315
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
316
|
+
'a1',
|
|
317
|
+
'a2',
|
|
318
|
+
'a3',
|
|
319
|
+
'a4',
|
|
320
|
+
'c1',
|
|
321
|
+
'c2',
|
|
322
|
+
'c2d',
|
|
323
|
+
'c3',
|
|
324
|
+
'c3d',
|
|
325
|
+
'c4',
|
|
326
|
+
'c4a',
|
|
327
|
+
'c4d',
|
|
328
|
+
'c5',
|
|
329
|
+
'c5a',
|
|
330
|
+
'c5ad',
|
|
331
|
+
'c5d',
|
|
332
|
+
'c5n',
|
|
333
|
+
'c6a',
|
|
334
|
+
'c6g',
|
|
335
|
+
'c6gd',
|
|
336
|
+
'c6gn',
|
|
337
|
+
'c6i',
|
|
338
|
+
'c6id',
|
|
339
|
+
'c6in',
|
|
340
|
+
'c7a',
|
|
341
|
+
'c7g',
|
|
342
|
+
'c7gd',
|
|
343
|
+
'c7gn',
|
|
344
|
+
'c7i',
|
|
345
|
+
'c7i-flex',
|
|
346
|
+
'c8g',
|
|
347
|
+
'c8gd',
|
|
348
|
+
'cax',
|
|
349
|
+
'ccx',
|
|
350
|
+
'cpx',
|
|
351
|
+
'cx',
|
|
352
|
+
'd2',
|
|
353
|
+
'd3',
|
|
354
|
+
'd3en',
|
|
355
|
+
'dl1',
|
|
356
|
+
'dl2q',
|
|
357
|
+
'e2',
|
|
358
|
+
'f1',
|
|
359
|
+
'f2',
|
|
360
|
+
'g1',
|
|
361
|
+
'g2',
|
|
362
|
+
'g4ad',
|
|
363
|
+
'g4dn',
|
|
364
|
+
'g5',
|
|
365
|
+
'g5g',
|
|
366
|
+
'g6',
|
|
367
|
+
'g6e',
|
|
368
|
+
'gr6',
|
|
369
|
+
'h1',
|
|
370
|
+
'h3',
|
|
371
|
+
'hpc6a',
|
|
372
|
+
'hpc6id',
|
|
373
|
+
'hpc7a',
|
|
374
|
+
'hpc7g',
|
|
375
|
+
'i2',
|
|
376
|
+
'i3',
|
|
377
|
+
'i3en',
|
|
378
|
+
'i4g',
|
|
379
|
+
'i4i',
|
|
380
|
+
'i7i',
|
|
381
|
+
'i7ie',
|
|
382
|
+
'i8g',
|
|
383
|
+
'im4gn',
|
|
384
|
+
'inf1',
|
|
385
|
+
'inf2',
|
|
386
|
+
'is4gen',
|
|
387
|
+
'm1',
|
|
388
|
+
'm2',
|
|
389
|
+
'm3',
|
|
390
|
+
'm4',
|
|
391
|
+
'm5',
|
|
392
|
+
'm5a',
|
|
393
|
+
'm5ad',
|
|
394
|
+
'm5d',
|
|
395
|
+
'm5dn',
|
|
396
|
+
'm5n',
|
|
397
|
+
'm5zn',
|
|
398
|
+
'm6a',
|
|
399
|
+
'm6g',
|
|
400
|
+
'm6gd',
|
|
401
|
+
'm6i',
|
|
402
|
+
'm6id',
|
|
403
|
+
'm6idn',
|
|
404
|
+
'm6in',
|
|
405
|
+
'm7a',
|
|
406
|
+
'm7g',
|
|
407
|
+
'm7gd',
|
|
408
|
+
'm7i',
|
|
409
|
+
'm7i-flex',
|
|
410
|
+
'm8g',
|
|
411
|
+
'm8gd',
|
|
412
|
+
'n1',
|
|
413
|
+
'n2',
|
|
414
|
+
'n2d',
|
|
415
|
+
'n4',
|
|
416
|
+
'p3',
|
|
417
|
+
'p3dn',
|
|
418
|
+
'p4d',
|
|
419
|
+
'p4de',
|
|
420
|
+
'p5',
|
|
421
|
+
'p5e',
|
|
422
|
+
'p5en',
|
|
423
|
+
'p6-b200',
|
|
424
|
+
'r3',
|
|
425
|
+
'r4',
|
|
426
|
+
'r5',
|
|
427
|
+
'r5a',
|
|
428
|
+
'r5ad',
|
|
429
|
+
'r5b',
|
|
430
|
+
'r5d',
|
|
431
|
+
'r5dn',
|
|
432
|
+
'r5n',
|
|
433
|
+
'r6a',
|
|
434
|
+
'r6g',
|
|
435
|
+
'r6gd',
|
|
436
|
+
'r6i',
|
|
437
|
+
'r6id',
|
|
438
|
+
'r6idn',
|
|
439
|
+
'r6in',
|
|
440
|
+
'r7a',
|
|
441
|
+
'r7g',
|
|
442
|
+
'r7gd',
|
|
443
|
+
'r7i',
|
|
444
|
+
'r7iz',
|
|
445
|
+
'r8g',
|
|
446
|
+
'r8gd',
|
|
447
|
+
't2',
|
|
448
|
+
't2a',
|
|
449
|
+
't2d',
|
|
450
|
+
't3',
|
|
451
|
+
't3a',
|
|
452
|
+
't4g',
|
|
453
|
+
'trn1',
|
|
454
|
+
'trn1n',
|
|
455
|
+
'u-3tb1',
|
|
456
|
+
'u-6tb1',
|
|
457
|
+
'u7i-12tb',
|
|
458
|
+
'u7i-6tb',
|
|
459
|
+
'u7i-8tb',
|
|
460
|
+
'u7in-16tb',
|
|
461
|
+
'u7in-24tb',
|
|
462
|
+
'u7in-32tb',
|
|
463
|
+
'vt1',
|
|
464
|
+
'x1',
|
|
465
|
+
'x1e',
|
|
466
|
+
'x2gd',
|
|
467
|
+
'x2idn',
|
|
468
|
+
'x2iedn',
|
|
469
|
+
'x2iezn',
|
|
470
|
+
'x4',
|
|
471
|
+
'x8g',
|
|
472
|
+
'z1d',
|
|
473
|
+
'z3'
|
|
474
|
+
])).optional(),
|
|
475
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
476
|
+
'africa-south1',
|
|
477
|
+
'ap-northeast-1',
|
|
478
|
+
'ap-northeast-2',
|
|
479
|
+
'ap-northeast-3',
|
|
480
|
+
'ap-south-1',
|
|
481
|
+
'ap-southeast-1',
|
|
482
|
+
'ap-southeast-2',
|
|
483
|
+
'ash',
|
|
484
|
+
'asia-east1',
|
|
485
|
+
'asia-east2',
|
|
486
|
+
'asia-northeast1',
|
|
487
|
+
'asia-northeast2',
|
|
488
|
+
'asia-northeast3',
|
|
489
|
+
'asia-south1',
|
|
490
|
+
'asia-south2',
|
|
491
|
+
'asia-southeast1',
|
|
492
|
+
'asia-southeast2',
|
|
493
|
+
'australia-southeast1',
|
|
494
|
+
'australia-southeast2',
|
|
495
|
+
'ca-central-1',
|
|
496
|
+
'eu-central-1',
|
|
497
|
+
'eu-central-2',
|
|
498
|
+
'eu-north-1',
|
|
499
|
+
'eu-west-1',
|
|
500
|
+
'eu-west-2',
|
|
501
|
+
'eu-west-3',
|
|
502
|
+
'europe-central2',
|
|
503
|
+
'europe-north1',
|
|
504
|
+
'europe-southwest1',
|
|
505
|
+
'europe-west1',
|
|
506
|
+
'europe-west10',
|
|
507
|
+
'europe-west12',
|
|
508
|
+
'europe-west2',
|
|
509
|
+
'europe-west3',
|
|
510
|
+
'europe-west4',
|
|
511
|
+
'europe-west6',
|
|
512
|
+
'europe-west8',
|
|
513
|
+
'europe-west9',
|
|
514
|
+
'fsn1',
|
|
515
|
+
'hel1',
|
|
516
|
+
'hil',
|
|
517
|
+
'me-central1',
|
|
518
|
+
'me-central2',
|
|
519
|
+
'me-west1',
|
|
520
|
+
'nbg1',
|
|
521
|
+
'northamerica-northeast1',
|
|
522
|
+
'northamerica-northeast2',
|
|
523
|
+
'sa-east-1',
|
|
524
|
+
'sin',
|
|
525
|
+
'southamerica-east1',
|
|
526
|
+
'southamerica-west1',
|
|
527
|
+
'us-central1',
|
|
528
|
+
'us-east-1',
|
|
529
|
+
'us-east-2',
|
|
530
|
+
'us-east1',
|
|
531
|
+
'us-east4',
|
|
532
|
+
'us-east5',
|
|
533
|
+
'us-south1',
|
|
534
|
+
'us-west-1',
|
|
535
|
+
'us-west-2',
|
|
536
|
+
'us-west1',
|
|
537
|
+
'us-west2',
|
|
538
|
+
'us-west3',
|
|
539
|
+
'us-west4'
|
|
540
|
+
])).optional()
|
|
541
|
+
}).optional(),
|
|
542
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
279
543
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
280
544
|
});
|
|
281
545
|
export const zFleet = z.object({
|
|
282
546
|
limits: z.object({
|
|
283
|
-
cpu: z.
|
|
547
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
284
548
|
}).optional(),
|
|
285
549
|
gcp: z.object({
|
|
286
|
-
enabled: z.boolean()
|
|
287
|
-
project: z.string()
|
|
550
|
+
enabled: z.boolean(),
|
|
551
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
288
552
|
}).optional(),
|
|
289
553
|
hetzner: z.object({
|
|
290
|
-
enabled: z.boolean()
|
|
291
|
-
apiKey: z.string()
|
|
554
|
+
enabled: z.boolean(),
|
|
555
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
292
556
|
}).optional(),
|
|
293
557
|
aws: z.object({
|
|
294
|
-
enabled: z.boolean()
|
|
295
|
-
controllerRoleArn: z.string()
|
|
558
|
+
enabled: z.boolean(),
|
|
559
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
296
560
|
}).optional(),
|
|
297
|
-
|
|
561
|
+
constraints: z.object({
|
|
562
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
563
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
564
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
565
|
+
'a1',
|
|
566
|
+
'a2',
|
|
567
|
+
'a3',
|
|
568
|
+
'a4',
|
|
569
|
+
'c1',
|
|
570
|
+
'c2',
|
|
571
|
+
'c2d',
|
|
572
|
+
'c3',
|
|
573
|
+
'c3d',
|
|
574
|
+
'c4',
|
|
575
|
+
'c4a',
|
|
576
|
+
'c4d',
|
|
577
|
+
'c5',
|
|
578
|
+
'c5a',
|
|
579
|
+
'c5ad',
|
|
580
|
+
'c5d',
|
|
581
|
+
'c5n',
|
|
582
|
+
'c6a',
|
|
583
|
+
'c6g',
|
|
584
|
+
'c6gd',
|
|
585
|
+
'c6gn',
|
|
586
|
+
'c6i',
|
|
587
|
+
'c6id',
|
|
588
|
+
'c6in',
|
|
589
|
+
'c7a',
|
|
590
|
+
'c7g',
|
|
591
|
+
'c7gd',
|
|
592
|
+
'c7gn',
|
|
593
|
+
'c7i',
|
|
594
|
+
'c7i-flex',
|
|
595
|
+
'c8g',
|
|
596
|
+
'c8gd',
|
|
597
|
+
'cax',
|
|
598
|
+
'ccx',
|
|
599
|
+
'cpx',
|
|
600
|
+
'cx',
|
|
601
|
+
'd2',
|
|
602
|
+
'd3',
|
|
603
|
+
'd3en',
|
|
604
|
+
'dl1',
|
|
605
|
+
'dl2q',
|
|
606
|
+
'e2',
|
|
607
|
+
'f1',
|
|
608
|
+
'f2',
|
|
609
|
+
'g1',
|
|
610
|
+
'g2',
|
|
611
|
+
'g4ad',
|
|
612
|
+
'g4dn',
|
|
613
|
+
'g5',
|
|
614
|
+
'g5g',
|
|
615
|
+
'g6',
|
|
616
|
+
'g6e',
|
|
617
|
+
'gr6',
|
|
618
|
+
'h1',
|
|
619
|
+
'h3',
|
|
620
|
+
'hpc6a',
|
|
621
|
+
'hpc6id',
|
|
622
|
+
'hpc7a',
|
|
623
|
+
'hpc7g',
|
|
624
|
+
'i2',
|
|
625
|
+
'i3',
|
|
626
|
+
'i3en',
|
|
627
|
+
'i4g',
|
|
628
|
+
'i4i',
|
|
629
|
+
'i7i',
|
|
630
|
+
'i7ie',
|
|
631
|
+
'i8g',
|
|
632
|
+
'im4gn',
|
|
633
|
+
'inf1',
|
|
634
|
+
'inf2',
|
|
635
|
+
'is4gen',
|
|
636
|
+
'm1',
|
|
637
|
+
'm2',
|
|
638
|
+
'm3',
|
|
639
|
+
'm4',
|
|
640
|
+
'm5',
|
|
641
|
+
'm5a',
|
|
642
|
+
'm5ad',
|
|
643
|
+
'm5d',
|
|
644
|
+
'm5dn',
|
|
645
|
+
'm5n',
|
|
646
|
+
'm5zn',
|
|
647
|
+
'm6a',
|
|
648
|
+
'm6g',
|
|
649
|
+
'm6gd',
|
|
650
|
+
'm6i',
|
|
651
|
+
'm6id',
|
|
652
|
+
'm6idn',
|
|
653
|
+
'm6in',
|
|
654
|
+
'm7a',
|
|
655
|
+
'm7g',
|
|
656
|
+
'm7gd',
|
|
657
|
+
'm7i',
|
|
658
|
+
'm7i-flex',
|
|
659
|
+
'm8g',
|
|
660
|
+
'm8gd',
|
|
661
|
+
'n1',
|
|
662
|
+
'n2',
|
|
663
|
+
'n2d',
|
|
664
|
+
'n4',
|
|
665
|
+
'p3',
|
|
666
|
+
'p3dn',
|
|
667
|
+
'p4d',
|
|
668
|
+
'p4de',
|
|
669
|
+
'p5',
|
|
670
|
+
'p5e',
|
|
671
|
+
'p5en',
|
|
672
|
+
'p6-b200',
|
|
673
|
+
'r3',
|
|
674
|
+
'r4',
|
|
675
|
+
'r5',
|
|
676
|
+
'r5a',
|
|
677
|
+
'r5ad',
|
|
678
|
+
'r5b',
|
|
679
|
+
'r5d',
|
|
680
|
+
'r5dn',
|
|
681
|
+
'r5n',
|
|
682
|
+
'r6a',
|
|
683
|
+
'r6g',
|
|
684
|
+
'r6gd',
|
|
685
|
+
'r6i',
|
|
686
|
+
'r6id',
|
|
687
|
+
'r6idn',
|
|
688
|
+
'r6in',
|
|
689
|
+
'r7a',
|
|
690
|
+
'r7g',
|
|
691
|
+
'r7gd',
|
|
692
|
+
'r7i',
|
|
693
|
+
'r7iz',
|
|
694
|
+
'r8g',
|
|
695
|
+
'r8gd',
|
|
696
|
+
't2',
|
|
697
|
+
't2a',
|
|
698
|
+
't2d',
|
|
699
|
+
't3',
|
|
700
|
+
't3a',
|
|
701
|
+
't4g',
|
|
702
|
+
'trn1',
|
|
703
|
+
'trn1n',
|
|
704
|
+
'u-3tb1',
|
|
705
|
+
'u-6tb1',
|
|
706
|
+
'u7i-12tb',
|
|
707
|
+
'u7i-6tb',
|
|
708
|
+
'u7i-8tb',
|
|
709
|
+
'u7in-16tb',
|
|
710
|
+
'u7in-24tb',
|
|
711
|
+
'u7in-32tb',
|
|
712
|
+
'vt1',
|
|
713
|
+
'x1',
|
|
714
|
+
'x1e',
|
|
715
|
+
'x2gd',
|
|
716
|
+
'x2idn',
|
|
717
|
+
'x2iedn',
|
|
718
|
+
'x2iezn',
|
|
719
|
+
'x4',
|
|
720
|
+
'x8g',
|
|
721
|
+
'z1d',
|
|
722
|
+
'z3'
|
|
723
|
+
])).optional(),
|
|
724
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
725
|
+
'africa-south1',
|
|
726
|
+
'ap-northeast-1',
|
|
727
|
+
'ap-northeast-2',
|
|
728
|
+
'ap-northeast-3',
|
|
729
|
+
'ap-south-1',
|
|
730
|
+
'ap-southeast-1',
|
|
731
|
+
'ap-southeast-2',
|
|
732
|
+
'ash',
|
|
733
|
+
'asia-east1',
|
|
734
|
+
'asia-east2',
|
|
735
|
+
'asia-northeast1',
|
|
736
|
+
'asia-northeast2',
|
|
737
|
+
'asia-northeast3',
|
|
738
|
+
'asia-south1',
|
|
739
|
+
'asia-south2',
|
|
740
|
+
'asia-southeast1',
|
|
741
|
+
'asia-southeast2',
|
|
742
|
+
'australia-southeast1',
|
|
743
|
+
'australia-southeast2',
|
|
744
|
+
'ca-central-1',
|
|
745
|
+
'eu-central-1',
|
|
746
|
+
'eu-central-2',
|
|
747
|
+
'eu-north-1',
|
|
748
|
+
'eu-west-1',
|
|
749
|
+
'eu-west-2',
|
|
750
|
+
'eu-west-3',
|
|
751
|
+
'europe-central2',
|
|
752
|
+
'europe-north1',
|
|
753
|
+
'europe-southwest1',
|
|
754
|
+
'europe-west1',
|
|
755
|
+
'europe-west10',
|
|
756
|
+
'europe-west12',
|
|
757
|
+
'europe-west2',
|
|
758
|
+
'europe-west3',
|
|
759
|
+
'europe-west4',
|
|
760
|
+
'europe-west6',
|
|
761
|
+
'europe-west8',
|
|
762
|
+
'europe-west9',
|
|
763
|
+
'fsn1',
|
|
764
|
+
'hel1',
|
|
765
|
+
'hil',
|
|
766
|
+
'me-central1',
|
|
767
|
+
'me-central2',
|
|
768
|
+
'me-west1',
|
|
769
|
+
'nbg1',
|
|
770
|
+
'northamerica-northeast1',
|
|
771
|
+
'northamerica-northeast2',
|
|
772
|
+
'sa-east-1',
|
|
773
|
+
'sin',
|
|
774
|
+
'southamerica-east1',
|
|
775
|
+
'southamerica-west1',
|
|
776
|
+
'us-central1',
|
|
777
|
+
'us-east-1',
|
|
778
|
+
'us-east-2',
|
|
779
|
+
'us-east1',
|
|
780
|
+
'us-east4',
|
|
781
|
+
'us-east5',
|
|
782
|
+
'us-south1',
|
|
783
|
+
'us-west-1',
|
|
784
|
+
'us-west-2',
|
|
785
|
+
'us-west1',
|
|
786
|
+
'us-west2',
|
|
787
|
+
'us-west3',
|
|
788
|
+
'us-west4'
|
|
789
|
+
])).optional()
|
|
790
|
+
}).optional(),
|
|
791
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
792
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
793
|
+
ready: z.boolean(),
|
|
794
|
+
status_message: z.string().optional(),
|
|
795
|
+
created_at: z.string(),
|
|
796
|
+
updated_at: z.string()
|
|
298
797
|
});
|
|
299
798
|
export const zFleetUpdateInput = z.object({
|
|
300
799
|
limits: z.object({
|
|
301
|
-
cpu: z.
|
|
800
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
302
801
|
}).optional(),
|
|
303
802
|
gcp: z.object({
|
|
304
|
-
enabled: z.boolean()
|
|
305
|
-
project: z.string()
|
|
803
|
+
enabled: z.boolean(),
|
|
804
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
306
805
|
}).optional(),
|
|
307
806
|
hetzner: z.object({
|
|
308
|
-
enabled: z.boolean()
|
|
309
|
-
apiKey: z.string()
|
|
807
|
+
enabled: z.boolean(),
|
|
808
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
310
809
|
}).optional(),
|
|
311
810
|
aws: z.object({
|
|
312
|
-
enabled: z.boolean()
|
|
313
|
-
controllerRoleArn: z.string()
|
|
314
|
-
}).optional()
|
|
811
|
+
enabled: z.boolean(),
|
|
812
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
813
|
+
}).optional(),
|
|
814
|
+
constraints: z.object({
|
|
815
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
816
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
817
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
818
|
+
'a1',
|
|
819
|
+
'a2',
|
|
820
|
+
'a3',
|
|
821
|
+
'a4',
|
|
822
|
+
'c1',
|
|
823
|
+
'c2',
|
|
824
|
+
'c2d',
|
|
825
|
+
'c3',
|
|
826
|
+
'c3d',
|
|
827
|
+
'c4',
|
|
828
|
+
'c4a',
|
|
829
|
+
'c4d',
|
|
830
|
+
'c5',
|
|
831
|
+
'c5a',
|
|
832
|
+
'c5ad',
|
|
833
|
+
'c5d',
|
|
834
|
+
'c5n',
|
|
835
|
+
'c6a',
|
|
836
|
+
'c6g',
|
|
837
|
+
'c6gd',
|
|
838
|
+
'c6gn',
|
|
839
|
+
'c6i',
|
|
840
|
+
'c6id',
|
|
841
|
+
'c6in',
|
|
842
|
+
'c7a',
|
|
843
|
+
'c7g',
|
|
844
|
+
'c7gd',
|
|
845
|
+
'c7gn',
|
|
846
|
+
'c7i',
|
|
847
|
+
'c7i-flex',
|
|
848
|
+
'c8g',
|
|
849
|
+
'c8gd',
|
|
850
|
+
'cax',
|
|
851
|
+
'ccx',
|
|
852
|
+
'cpx',
|
|
853
|
+
'cx',
|
|
854
|
+
'd2',
|
|
855
|
+
'd3',
|
|
856
|
+
'd3en',
|
|
857
|
+
'dl1',
|
|
858
|
+
'dl2q',
|
|
859
|
+
'e2',
|
|
860
|
+
'f1',
|
|
861
|
+
'f2',
|
|
862
|
+
'g1',
|
|
863
|
+
'g2',
|
|
864
|
+
'g4ad',
|
|
865
|
+
'g4dn',
|
|
866
|
+
'g5',
|
|
867
|
+
'g5g',
|
|
868
|
+
'g6',
|
|
869
|
+
'g6e',
|
|
870
|
+
'gr6',
|
|
871
|
+
'h1',
|
|
872
|
+
'h3',
|
|
873
|
+
'hpc6a',
|
|
874
|
+
'hpc6id',
|
|
875
|
+
'hpc7a',
|
|
876
|
+
'hpc7g',
|
|
877
|
+
'i2',
|
|
878
|
+
'i3',
|
|
879
|
+
'i3en',
|
|
880
|
+
'i4g',
|
|
881
|
+
'i4i',
|
|
882
|
+
'i7i',
|
|
883
|
+
'i7ie',
|
|
884
|
+
'i8g',
|
|
885
|
+
'im4gn',
|
|
886
|
+
'inf1',
|
|
887
|
+
'inf2',
|
|
888
|
+
'is4gen',
|
|
889
|
+
'm1',
|
|
890
|
+
'm2',
|
|
891
|
+
'm3',
|
|
892
|
+
'm4',
|
|
893
|
+
'm5',
|
|
894
|
+
'm5a',
|
|
895
|
+
'm5ad',
|
|
896
|
+
'm5d',
|
|
897
|
+
'm5dn',
|
|
898
|
+
'm5n',
|
|
899
|
+
'm5zn',
|
|
900
|
+
'm6a',
|
|
901
|
+
'm6g',
|
|
902
|
+
'm6gd',
|
|
903
|
+
'm6i',
|
|
904
|
+
'm6id',
|
|
905
|
+
'm6idn',
|
|
906
|
+
'm6in',
|
|
907
|
+
'm7a',
|
|
908
|
+
'm7g',
|
|
909
|
+
'm7gd',
|
|
910
|
+
'm7i',
|
|
911
|
+
'm7i-flex',
|
|
912
|
+
'm8g',
|
|
913
|
+
'm8gd',
|
|
914
|
+
'n1',
|
|
915
|
+
'n2',
|
|
916
|
+
'n2d',
|
|
917
|
+
'n4',
|
|
918
|
+
'p3',
|
|
919
|
+
'p3dn',
|
|
920
|
+
'p4d',
|
|
921
|
+
'p4de',
|
|
922
|
+
'p5',
|
|
923
|
+
'p5e',
|
|
924
|
+
'p5en',
|
|
925
|
+
'p6-b200',
|
|
926
|
+
'r3',
|
|
927
|
+
'r4',
|
|
928
|
+
'r5',
|
|
929
|
+
'r5a',
|
|
930
|
+
'r5ad',
|
|
931
|
+
'r5b',
|
|
932
|
+
'r5d',
|
|
933
|
+
'r5dn',
|
|
934
|
+
'r5n',
|
|
935
|
+
'r6a',
|
|
936
|
+
'r6g',
|
|
937
|
+
'r6gd',
|
|
938
|
+
'r6i',
|
|
939
|
+
'r6id',
|
|
940
|
+
'r6idn',
|
|
941
|
+
'r6in',
|
|
942
|
+
'r7a',
|
|
943
|
+
'r7g',
|
|
944
|
+
'r7gd',
|
|
945
|
+
'r7i',
|
|
946
|
+
'r7iz',
|
|
947
|
+
'r8g',
|
|
948
|
+
'r8gd',
|
|
949
|
+
't2',
|
|
950
|
+
't2a',
|
|
951
|
+
't2d',
|
|
952
|
+
't3',
|
|
953
|
+
't3a',
|
|
954
|
+
't4g',
|
|
955
|
+
'trn1',
|
|
956
|
+
'trn1n',
|
|
957
|
+
'u-3tb1',
|
|
958
|
+
'u-6tb1',
|
|
959
|
+
'u7i-12tb',
|
|
960
|
+
'u7i-6tb',
|
|
961
|
+
'u7i-8tb',
|
|
962
|
+
'u7in-16tb',
|
|
963
|
+
'u7in-24tb',
|
|
964
|
+
'u7in-32tb',
|
|
965
|
+
'vt1',
|
|
966
|
+
'x1',
|
|
967
|
+
'x1e',
|
|
968
|
+
'x2gd',
|
|
969
|
+
'x2idn',
|
|
970
|
+
'x2iedn',
|
|
971
|
+
'x2iezn',
|
|
972
|
+
'x4',
|
|
973
|
+
'x8g',
|
|
974
|
+
'z1d',
|
|
975
|
+
'z3'
|
|
976
|
+
])).optional(),
|
|
977
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
978
|
+
'africa-south1',
|
|
979
|
+
'ap-northeast-1',
|
|
980
|
+
'ap-northeast-2',
|
|
981
|
+
'ap-northeast-3',
|
|
982
|
+
'ap-south-1',
|
|
983
|
+
'ap-southeast-1',
|
|
984
|
+
'ap-southeast-2',
|
|
985
|
+
'ash',
|
|
986
|
+
'asia-east1',
|
|
987
|
+
'asia-east2',
|
|
988
|
+
'asia-northeast1',
|
|
989
|
+
'asia-northeast2',
|
|
990
|
+
'asia-northeast3',
|
|
991
|
+
'asia-south1',
|
|
992
|
+
'asia-south2',
|
|
993
|
+
'asia-southeast1',
|
|
994
|
+
'asia-southeast2',
|
|
995
|
+
'australia-southeast1',
|
|
996
|
+
'australia-southeast2',
|
|
997
|
+
'ca-central-1',
|
|
998
|
+
'eu-central-1',
|
|
999
|
+
'eu-central-2',
|
|
1000
|
+
'eu-north-1',
|
|
1001
|
+
'eu-west-1',
|
|
1002
|
+
'eu-west-2',
|
|
1003
|
+
'eu-west-3',
|
|
1004
|
+
'europe-central2',
|
|
1005
|
+
'europe-north1',
|
|
1006
|
+
'europe-southwest1',
|
|
1007
|
+
'europe-west1',
|
|
1008
|
+
'europe-west10',
|
|
1009
|
+
'europe-west12',
|
|
1010
|
+
'europe-west2',
|
|
1011
|
+
'europe-west3',
|
|
1012
|
+
'europe-west4',
|
|
1013
|
+
'europe-west6',
|
|
1014
|
+
'europe-west8',
|
|
1015
|
+
'europe-west9',
|
|
1016
|
+
'fsn1',
|
|
1017
|
+
'hel1',
|
|
1018
|
+
'hil',
|
|
1019
|
+
'me-central1',
|
|
1020
|
+
'me-central2',
|
|
1021
|
+
'me-west1',
|
|
1022
|
+
'nbg1',
|
|
1023
|
+
'northamerica-northeast1',
|
|
1024
|
+
'northamerica-northeast2',
|
|
1025
|
+
'sa-east-1',
|
|
1026
|
+
'sin',
|
|
1027
|
+
'southamerica-east1',
|
|
1028
|
+
'southamerica-west1',
|
|
1029
|
+
'us-central1',
|
|
1030
|
+
'us-east-1',
|
|
1031
|
+
'us-east-2',
|
|
1032
|
+
'us-east1',
|
|
1033
|
+
'us-east4',
|
|
1034
|
+
'us-east5',
|
|
1035
|
+
'us-south1',
|
|
1036
|
+
'us-west-1',
|
|
1037
|
+
'us-west-2',
|
|
1038
|
+
'us-west1',
|
|
1039
|
+
'us-west2',
|
|
1040
|
+
'us-west3',
|
|
1041
|
+
'us-west4'
|
|
1042
|
+
])).optional()
|
|
1043
|
+
}).optional(),
|
|
1044
|
+
scalingProfile: z.enum(['aggressive', 'conservative'])
|
|
1045
|
+
});
|
|
1046
|
+
export const zInviteCreateInput = z.object({
|
|
1047
|
+
email: z.email(),
|
|
1048
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
315
1049
|
});
|
|
316
1050
|
export const zInvite = z.object({
|
|
317
1051
|
id: z.string().optional(),
|
|
318
1052
|
organization_id: z.uuid().optional(),
|
|
319
1053
|
date_created: z.iso.datetime(),
|
|
320
1054
|
email: z.email().optional(),
|
|
321
|
-
code: z.string().optional()
|
|
1055
|
+
code: z.string().optional(),
|
|
1056
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
322
1057
|
});
|
|
323
1058
|
export const zInvoice = z.object({
|
|
324
1059
|
id: z.string().optional(),
|
|
@@ -358,15 +1093,20 @@ export const zMarketplaceListing = z.object({
|
|
|
358
1093
|
}).optional()
|
|
359
1094
|
});
|
|
360
1095
|
export const zOrganizationCreateInput = z.object({
|
|
1096
|
+
type: z.enum(['business', 'personal']),
|
|
361
1097
|
email: z.email(),
|
|
362
|
-
first_name: z.string(),
|
|
363
|
-
last_name: z.string(),
|
|
1098
|
+
first_name: z.string().min(1),
|
|
1099
|
+
last_name: z.string().min(1),
|
|
364
1100
|
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,}$/),
|
|
365
1101
|
password: z.string().min(8)
|
|
366
1102
|
});
|
|
1103
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1104
|
+
id: z.string()
|
|
1105
|
+
});
|
|
367
1106
|
export const zOrganization = z.object({
|
|
368
1107
|
id: z.uuid(),
|
|
369
1108
|
name: z.string().min(2).max(120).optional(),
|
|
1109
|
+
type: z.enum(['business', 'personal']),
|
|
370
1110
|
date_created: z.iso.datetime(),
|
|
371
1111
|
quota: z.object({
|
|
372
1112
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -386,26 +1126,28 @@ export const zOrganization = z.object({
|
|
|
386
1126
|
'active',
|
|
387
1127
|
'closed',
|
|
388
1128
|
'suspended'
|
|
1129
|
+
]),
|
|
1130
|
+
verification: z.enum([
|
|
1131
|
+
'none',
|
|
1132
|
+
'submitted',
|
|
1133
|
+
'verified'
|
|
389
1134
|
])
|
|
390
1135
|
});
|
|
391
1136
|
export const zPaymentMethod = z.object({
|
|
392
|
-
id: z.
|
|
393
|
-
|
|
394
|
-
|
|
1137
|
+
id: z.string(),
|
|
1138
|
+
type: z.enum([
|
|
1139
|
+
'card',
|
|
1140
|
+
'sepa_debit',
|
|
1141
|
+
'bank_transfer'
|
|
1142
|
+
]),
|
|
395
1143
|
last4: z.string(),
|
|
396
1144
|
exp_month: z.int().gte(1).lte(12),
|
|
397
|
-
exp_year: z.int()
|
|
398
|
-
brand: z.
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
'jcb',
|
|
404
|
-
'mastercard',
|
|
405
|
-
'unionpay',
|
|
406
|
-
'visa',
|
|
407
|
-
'unknown'
|
|
408
|
-
])
|
|
1145
|
+
exp_year: z.int(),
|
|
1146
|
+
brand: z.string(),
|
|
1147
|
+
iban: z.string(),
|
|
1148
|
+
bic: z.string(),
|
|
1149
|
+
account_holder_name: z.string(),
|
|
1150
|
+
is_default: z.boolean()
|
|
409
1151
|
});
|
|
410
1152
|
export const zPlatformQuota = z.object({
|
|
411
1153
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -467,6 +1209,102 @@ export const zRegistryTag = z.object({
|
|
|
467
1209
|
repository: z.string(),
|
|
468
1210
|
uri: z.string()
|
|
469
1211
|
});
|
|
1212
|
+
export const zTicketAttachment = z.object({
|
|
1213
|
+
id: z.string(),
|
|
1214
|
+
filename: z.string(),
|
|
1215
|
+
content_type: z.string(),
|
|
1216
|
+
size: z.int()
|
|
1217
|
+
});
|
|
1218
|
+
export const zTicketCreateInput = z.object({
|
|
1219
|
+
category: z.enum([
|
|
1220
|
+
'billing',
|
|
1221
|
+
'technical',
|
|
1222
|
+
'general'
|
|
1223
|
+
]),
|
|
1224
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1225
|
+
properties: z.record(z.string(), z.unknown()).optional()
|
|
1226
|
+
});
|
|
1227
|
+
export const zTicketListResponse = z.object({
|
|
1228
|
+
items: z.array(z.object({
|
|
1229
|
+
id: z.string(),
|
|
1230
|
+
status: z.enum([
|
|
1231
|
+
'waiting_on_us',
|
|
1232
|
+
'waiting_on_user',
|
|
1233
|
+
'closed'
|
|
1234
|
+
]),
|
|
1235
|
+
category: z.enum([
|
|
1236
|
+
'billing',
|
|
1237
|
+
'technical',
|
|
1238
|
+
'general'
|
|
1239
|
+
]),
|
|
1240
|
+
summary: z.string(),
|
|
1241
|
+
closed_at: z.iso.datetime().optional(),
|
|
1242
|
+
date_created: z.iso.datetime(),
|
|
1243
|
+
date_updated: z.iso.datetime(),
|
|
1244
|
+
messages: z.array(z.object({
|
|
1245
|
+
id: z.string(),
|
|
1246
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1247
|
+
body: z.string(),
|
|
1248
|
+
author_first_name: z.string().optional(),
|
|
1249
|
+
author_last_name: z.string().optional(),
|
|
1250
|
+
attachments: z.array(z.object({
|
|
1251
|
+
id: z.string(),
|
|
1252
|
+
filename: z.string(),
|
|
1253
|
+
content_type: z.string(),
|
|
1254
|
+
size: z.int()
|
|
1255
|
+
})).optional(),
|
|
1256
|
+
date_created: z.iso.datetime()
|
|
1257
|
+
})).optional()
|
|
1258
|
+
}))
|
|
1259
|
+
});
|
|
1260
|
+
export const zTicketMessageInput = z.object({
|
|
1261
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1262
|
+
});
|
|
1263
|
+
export const zTicketMessage = z.object({
|
|
1264
|
+
id: z.string(),
|
|
1265
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1266
|
+
body: z.string(),
|
|
1267
|
+
author_first_name: z.string().optional(),
|
|
1268
|
+
author_last_name: z.string().optional(),
|
|
1269
|
+
attachments: z.array(z.object({
|
|
1270
|
+
id: z.string(),
|
|
1271
|
+
filename: z.string(),
|
|
1272
|
+
content_type: z.string(),
|
|
1273
|
+
size: z.int()
|
|
1274
|
+
})).optional(),
|
|
1275
|
+
date_created: z.iso.datetime()
|
|
1276
|
+
});
|
|
1277
|
+
export const zTicket = z.object({
|
|
1278
|
+
id: z.string(),
|
|
1279
|
+
status: z.enum([
|
|
1280
|
+
'waiting_on_us',
|
|
1281
|
+
'waiting_on_user',
|
|
1282
|
+
'closed'
|
|
1283
|
+
]),
|
|
1284
|
+
category: z.enum([
|
|
1285
|
+
'billing',
|
|
1286
|
+
'technical',
|
|
1287
|
+
'general'
|
|
1288
|
+
]),
|
|
1289
|
+
summary: z.string(),
|
|
1290
|
+
closed_at: z.iso.datetime().optional(),
|
|
1291
|
+
date_created: z.iso.datetime(),
|
|
1292
|
+
date_updated: z.iso.datetime(),
|
|
1293
|
+
messages: z.array(z.object({
|
|
1294
|
+
id: z.string(),
|
|
1295
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1296
|
+
body: z.string(),
|
|
1297
|
+
author_first_name: z.string().optional(),
|
|
1298
|
+
author_last_name: z.string().optional(),
|
|
1299
|
+
attachments: z.array(z.object({
|
|
1300
|
+
id: z.string(),
|
|
1301
|
+
filename: z.string(),
|
|
1302
|
+
content_type: z.string(),
|
|
1303
|
+
size: z.int()
|
|
1304
|
+
})).optional(),
|
|
1305
|
+
date_created: z.iso.datetime()
|
|
1306
|
+
})).optional()
|
|
1307
|
+
});
|
|
470
1308
|
export const zTokenCreateInput = z.object({
|
|
471
1309
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
472
1310
|
role: z.enum(['Administrator', 'User'])
|
|
@@ -513,9 +1351,7 @@ export const zUserCreateInput = z.object({
|
|
|
513
1351
|
first_name: z.string().min(1).max(50),
|
|
514
1352
|
last_name: z.string().min(1).max(50),
|
|
515
1353
|
code: z.string(),
|
|
516
|
-
password: z.string().min(8)
|
|
517
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
518
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1354
|
+
password: z.string().min(8)
|
|
519
1355
|
});
|
|
520
1356
|
export const zUser = z.object({
|
|
521
1357
|
email: z.email(),
|
|
@@ -533,88 +1369,226 @@ export const zUserUpdateInput = z.object({
|
|
|
533
1369
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
534
1370
|
status: z.enum(['active', 'inactive']).optional()
|
|
535
1371
|
});
|
|
536
|
-
export const
|
|
537
|
-
|
|
538
|
-
'hourly',
|
|
539
|
-
'daily',
|
|
540
|
-
'monthly'
|
|
541
|
-
]).optional()
|
|
1372
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1373
|
+
email: z.string()
|
|
542
1374
|
});
|
|
543
1375
|
/**
|
|
544
|
-
*
|
|
1376
|
+
* An array of organizations the user belongs to.
|
|
545
1377
|
*/
|
|
546
|
-
export const
|
|
1378
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1379
|
+
realm: z.string().optional(),
|
|
1380
|
+
displayName: z.string().optional()
|
|
1381
|
+
}));
|
|
547
1382
|
/**
|
|
548
|
-
*
|
|
1383
|
+
* An array of users
|
|
549
1384
|
*/
|
|
550
|
-
export const
|
|
1385
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1386
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
551
1387
|
/**
|
|
552
|
-
*
|
|
553
|
-
*
|
|
1388
|
+
* Successfully created. Returns created user details.
|
|
554
1389
|
*/
|
|
555
|
-
export const
|
|
556
|
-
|
|
1390
|
+
export const zCreateUserResponse = zUser;
|
|
1391
|
+
export const zDeleteUserPath = z.object({
|
|
1392
|
+
user_id: z.string()
|
|
557
1393
|
});
|
|
558
1394
|
/**
|
|
559
|
-
*
|
|
1395
|
+
* User profile information
|
|
560
1396
|
*/
|
|
561
|
-
export const
|
|
1397
|
+
export const zDeleteUserResponse = zUser;
|
|
1398
|
+
export const zGetUserPath = z.object({
|
|
1399
|
+
user_id: z.string()
|
|
1400
|
+
});
|
|
562
1401
|
/**
|
|
563
|
-
*
|
|
1402
|
+
* User profile information
|
|
564
1403
|
*/
|
|
565
|
-
export const
|
|
566
|
-
export const
|
|
1404
|
+
export const zGetUserResponse = zUser;
|
|
1405
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1406
|
+
export const zUpdateUserPath = z.object({
|
|
1407
|
+
user_id: z.string()
|
|
1408
|
+
});
|
|
567
1409
|
/**
|
|
568
|
-
* Successfully
|
|
1410
|
+
* Successfully created. Returns created user details.
|
|
569
1411
|
*/
|
|
570
|
-
export const
|
|
1412
|
+
export const zUpdateUserResponse = zUser;
|
|
571
1413
|
/**
|
|
572
|
-
*
|
|
1414
|
+
* Returns a list of access token details with masked secrets.
|
|
573
1415
|
*/
|
|
574
|
-
export const
|
|
575
|
-
export const
|
|
576
|
-
|
|
1416
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1417
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1418
|
+
/**
|
|
1419
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1420
|
+
*/
|
|
1421
|
+
export const zCreateTokenResponse = zToken;
|
|
1422
|
+
export const zDeleteTokenPath = z.object({
|
|
1423
|
+
token_id: z.string()
|
|
577
1424
|
});
|
|
578
|
-
export const
|
|
579
|
-
|
|
1425
|
+
export const zGetTokenPath = z.object({
|
|
1426
|
+
token_id: z.string()
|
|
580
1427
|
});
|
|
581
1428
|
/**
|
|
582
|
-
*
|
|
1429
|
+
* Returns access token details with masked secret.
|
|
583
1430
|
*/
|
|
584
|
-
export const
|
|
585
|
-
export const
|
|
586
|
-
export const
|
|
587
|
-
|
|
1431
|
+
export const zGetTokenResponse = zToken;
|
|
1432
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1433
|
+
export const zUpdateTokenPath = z.object({
|
|
1434
|
+
token_id: z.string()
|
|
588
1435
|
});
|
|
589
1436
|
/**
|
|
590
|
-
* Successfully
|
|
1437
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
591
1438
|
*/
|
|
592
|
-
export const
|
|
593
|
-
export const
|
|
594
|
-
|
|
595
|
-
chart_name: z.string()
|
|
1439
|
+
export const zUpdateTokenResponse = zToken;
|
|
1440
|
+
export const zRegenerateTokenPath = z.object({
|
|
1441
|
+
token_id: z.string()
|
|
596
1442
|
});
|
|
597
1443
|
/**
|
|
598
|
-
* Successfully
|
|
1444
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
599
1445
|
*/
|
|
600
|
-
export const
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
1446
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1447
|
+
/**
|
|
1448
|
+
* Tickets for the organization.
|
|
1449
|
+
*/
|
|
1450
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
1451
|
+
export const zCreateTicketBody = z.object({
|
|
1452
|
+
payload: z.string().optional(),
|
|
1453
|
+
attachments: z.array(z.string()).optional()
|
|
604
1454
|
});
|
|
605
1455
|
/**
|
|
606
|
-
*
|
|
1456
|
+
* Ticket created.
|
|
607
1457
|
*/
|
|
608
|
-
export const
|
|
609
|
-
export const
|
|
610
|
-
|
|
611
|
-
cluster_id: z.string(),
|
|
612
|
-
chart_name: z.string()
|
|
1458
|
+
export const zCreateTicketResponse = zTicket;
|
|
1459
|
+
export const zCloseTicketPath = z.object({
|
|
1460
|
+
ticket_id: z.string()
|
|
613
1461
|
});
|
|
614
1462
|
/**
|
|
615
|
-
*
|
|
1463
|
+
* Ticket closed.
|
|
616
1464
|
*/
|
|
617
|
-
export const
|
|
1465
|
+
export const zCloseTicketResponse = zTicket;
|
|
1466
|
+
export const zGetTicketPath = z.object({
|
|
1467
|
+
ticket_id: z.string()
|
|
1468
|
+
});
|
|
1469
|
+
/**
|
|
1470
|
+
* Ticket with messages (internal notes excluded).
|
|
1471
|
+
*/
|
|
1472
|
+
export const zGetTicketResponse = zTicket;
|
|
1473
|
+
export const zReplyTicketBody = z.object({
|
|
1474
|
+
payload: z.string().optional(),
|
|
1475
|
+
attachments: z.array(z.string()).optional()
|
|
1476
|
+
});
|
|
1477
|
+
export const zReplyTicketPath = z.object({
|
|
1478
|
+
ticket_id: z.string()
|
|
1479
|
+
});
|
|
1480
|
+
/**
|
|
1481
|
+
* Reply appended.
|
|
1482
|
+
*/
|
|
1483
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1484
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1485
|
+
ticket_id: z.string(),
|
|
1486
|
+
attachment_id: z.string()
|
|
1487
|
+
});
|
|
1488
|
+
/**
|
|
1489
|
+
* Attachment binary stream.
|
|
1490
|
+
*/
|
|
1491
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1492
|
+
/**
|
|
1493
|
+
* List of repositories
|
|
1494
|
+
*/
|
|
1495
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1496
|
+
export const zListTagsPath = z.object({
|
|
1497
|
+
region: z.string(),
|
|
1498
|
+
repository: z.string()
|
|
1499
|
+
});
|
|
1500
|
+
/**
|
|
1501
|
+
* Repository with tags
|
|
1502
|
+
*/
|
|
1503
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1504
|
+
export const zDeleteTagPath = z.object({
|
|
1505
|
+
region: z.string(),
|
|
1506
|
+
repository: z.string(),
|
|
1507
|
+
tag: z.string()
|
|
1508
|
+
});
|
|
1509
|
+
export const zGetTagPath = z.object({
|
|
1510
|
+
region: z.string(),
|
|
1511
|
+
repository: z.string(),
|
|
1512
|
+
tag: z.string()
|
|
1513
|
+
});
|
|
1514
|
+
/**
|
|
1515
|
+
* Tag details
|
|
1516
|
+
*/
|
|
1517
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1518
|
+
/**
|
|
1519
|
+
* Returns a single object containing organization details.
|
|
1520
|
+
*/
|
|
1521
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1522
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1523
|
+
/**
|
|
1524
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1525
|
+
*
|
|
1526
|
+
*/
|
|
1527
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1528
|
+
/**
|
|
1529
|
+
* JSON-RPC 2.0 request payload
|
|
1530
|
+
*/
|
|
1531
|
+
export const zPostMcpBody = z.object({
|
|
1532
|
+
jsonrpc: z.string().optional(),
|
|
1533
|
+
method: z.string().optional(),
|
|
1534
|
+
id: z.union([
|
|
1535
|
+
z.string(),
|
|
1536
|
+
z.number()
|
|
1537
|
+
]).optional(),
|
|
1538
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
1539
|
+
});
|
|
1540
|
+
/**
|
|
1541
|
+
* JSON-RPC 2.0 success or error response
|
|
1542
|
+
*/
|
|
1543
|
+
export const zPostMcpResponse = z.object({
|
|
1544
|
+
jsonrpc: z.string().optional(),
|
|
1545
|
+
id: z.union([
|
|
1546
|
+
z.string(),
|
|
1547
|
+
z.number()
|
|
1548
|
+
]).optional(),
|
|
1549
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1550
|
+
error: z.object({
|
|
1551
|
+
code: z.int().optional(),
|
|
1552
|
+
message: z.string().optional()
|
|
1553
|
+
}).optional()
|
|
1554
|
+
});
|
|
1555
|
+
/**
|
|
1556
|
+
* An array of chart listings in the marketplace.
|
|
1557
|
+
*/
|
|
1558
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1559
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1560
|
+
chart_name: z.string(),
|
|
1561
|
+
version_channel: z.string()
|
|
1562
|
+
});
|
|
1563
|
+
/**
|
|
1564
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1565
|
+
*/
|
|
1566
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1567
|
+
/**
|
|
1568
|
+
* An array of invites
|
|
1569
|
+
*/
|
|
1570
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1571
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1572
|
+
/**
|
|
1573
|
+
* Successfully created. Returns created invite details.
|
|
1574
|
+
*/
|
|
1575
|
+
export const zCreateInviteResponse = zInvite;
|
|
1576
|
+
export const zGetInvitePath = z.object({
|
|
1577
|
+
code: z.string()
|
|
1578
|
+
});
|
|
1579
|
+
/**
|
|
1580
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1581
|
+
*/
|
|
1582
|
+
export const zGetInviteResponse = z.object({
|
|
1583
|
+
email: z.email().optional(),
|
|
1584
|
+
organization_id: z.string().optional()
|
|
1585
|
+
});
|
|
1586
|
+
export const zDeleteInvitePath = z.object({
|
|
1587
|
+
email: z.email()
|
|
1588
|
+
});
|
|
1589
|
+
export const zQueryClusterPath = z.object({
|
|
1590
|
+
cluster_id: z.string()
|
|
1591
|
+
});
|
|
618
1592
|
export const zListFleetsPath = z.object({
|
|
619
1593
|
cluster_id: z.string()
|
|
620
1594
|
});
|
|
@@ -655,9 +1629,46 @@ export const zUpdateFleetPath = z.object({
|
|
|
655
1629
|
* Successfully updated.
|
|
656
1630
|
*/
|
|
657
1631
|
export const zUpdateFleetResponse = z.string();
|
|
658
|
-
export const
|
|
1632
|
+
export const zListChartsPath = z.object({
|
|
1633
|
+
cluster_id: z.string()
|
|
1634
|
+
});
|
|
1635
|
+
/**
|
|
1636
|
+
* An array of charts
|
|
1637
|
+
*/
|
|
1638
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1639
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1640
|
+
export const zCreateChartPath = z.object({
|
|
659
1641
|
cluster_id: z.string()
|
|
660
1642
|
});
|
|
1643
|
+
/**
|
|
1644
|
+
* Successfully created. Returns created Chart ID.
|
|
1645
|
+
*/
|
|
1646
|
+
export const zCreateChartResponse = z.string();
|
|
1647
|
+
export const zDeleteChartPath = z.object({
|
|
1648
|
+
cluster_id: z.string(),
|
|
1649
|
+
chart_name: z.string()
|
|
1650
|
+
});
|
|
1651
|
+
/**
|
|
1652
|
+
* Successfully deleted.
|
|
1653
|
+
*/
|
|
1654
|
+
export const zDeleteChartResponse = z.string();
|
|
1655
|
+
export const zGetChartPath = z.object({
|
|
1656
|
+
cluster_id: z.string(),
|
|
1657
|
+
chart_name: z.string()
|
|
1658
|
+
});
|
|
1659
|
+
/**
|
|
1660
|
+
* Returns a single object containing chart details.
|
|
1661
|
+
*/
|
|
1662
|
+
export const zGetChartResponse = zChart;
|
|
1663
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1664
|
+
export const zUpdateChartPath = z.object({
|
|
1665
|
+
cluster_id: z.string(),
|
|
1666
|
+
chart_name: z.string()
|
|
1667
|
+
});
|
|
1668
|
+
/**
|
|
1669
|
+
* Successfully updated.
|
|
1670
|
+
*/
|
|
1671
|
+
export const zUpdateChartResponse = z.string();
|
|
661
1672
|
/**
|
|
662
1673
|
* An array of clusters
|
|
663
1674
|
*/
|
|
@@ -671,7 +1682,7 @@ export const zDeleteClusterPath = z.object({
|
|
|
671
1682
|
cluster_id: z.string()
|
|
672
1683
|
});
|
|
673
1684
|
/**
|
|
674
|
-
* Successfully deleted.
|
|
1685
|
+
* Successfully deleted. The cluster has been torn down.
|
|
675
1686
|
*/
|
|
676
1687
|
export const zDeleteClusterResponse = z.string();
|
|
677
1688
|
export const zGetClusterPath = z.object({
|
|
@@ -689,13 +1700,6 @@ export const zUpdateClusterPath = z.object({
|
|
|
689
1700
|
* Successfully updated. Returns updated cluster details.
|
|
690
1701
|
*/
|
|
691
1702
|
export const zUpdateClusterResponse = zCluster;
|
|
692
|
-
export const zGetClusterCaPath = z.object({
|
|
693
|
-
cluster_id: z.string()
|
|
694
|
-
});
|
|
695
|
-
/**
|
|
696
|
-
* PEM-encoded certificate authority of the cluster.
|
|
697
|
-
*/
|
|
698
|
-
export const zGetClusterCaResponse = z.string();
|
|
699
1703
|
export const zGetJoinInformationPath = z.object({
|
|
700
1704
|
cluster_id: z.string()
|
|
701
1705
|
});
|
|
@@ -703,170 +1707,60 @@ export const zGetJoinInformationPath = z.object({
|
|
|
703
1707
|
* An object of cluster join information
|
|
704
1708
|
*/
|
|
705
1709
|
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
});
|
|
713
|
-
/**
|
|
714
|
-
* Successfully created. Returns created invite details.
|
|
715
|
-
*/
|
|
716
|
-
export const zCreateInviteResponse = zInvite;
|
|
717
|
-
export const zGetInvitePath = z.object({
|
|
718
|
-
code: z.string()
|
|
719
|
-
});
|
|
720
|
-
/**
|
|
721
|
-
* Returns a single object containing invite details.
|
|
722
|
-
*/
|
|
723
|
-
export const zGetInviteResponse = zInvite;
|
|
724
|
-
export const zDeleteInvitePath = z.object({
|
|
725
|
-
email: z.string()
|
|
726
|
-
});
|
|
727
|
-
/**
|
|
728
|
-
* An array of chart listings in the marketplace.
|
|
729
|
-
*/
|
|
730
|
-
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
731
|
-
export const zGetMarketplaceChartFilesPath = z.object({
|
|
732
|
-
chart_name: z.string(),
|
|
733
|
-
version_channel: z.string()
|
|
734
|
-
});
|
|
735
|
-
/**
|
|
736
|
-
* Returns an object containing the chart files for the latest matching version.
|
|
737
|
-
*/
|
|
738
|
-
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
739
|
-
/**
|
|
740
|
-
* JSON-RPC 2.0 request payload
|
|
741
|
-
*/
|
|
742
|
-
export const zPostMcpBody = z.object({
|
|
743
|
-
jsonrpc: z.string().optional(),
|
|
744
|
-
method: z.string().optional(),
|
|
745
|
-
id: z.union([
|
|
746
|
-
z.string(),
|
|
747
|
-
z.number()
|
|
748
|
-
]).optional(),
|
|
749
|
-
params: z.record(z.string(), z.unknown()).optional()
|
|
750
|
-
});
|
|
751
|
-
/**
|
|
752
|
-
* JSON-RPC 2.0 success or error response
|
|
753
|
-
*/
|
|
754
|
-
export const zPostMcpResponse = z.object({
|
|
755
|
-
jsonrpc: z.string().optional(),
|
|
756
|
-
id: z.union([
|
|
757
|
-
z.string(),
|
|
758
|
-
z.number()
|
|
759
|
-
]).optional(),
|
|
760
|
-
result: z.record(z.string(), z.unknown()).optional(),
|
|
761
|
-
error: z.object({
|
|
762
|
-
code: z.int().optional(),
|
|
763
|
-
message: z.string().optional()
|
|
764
|
-
}).optional()
|
|
765
|
-
});
|
|
766
|
-
/**
|
|
767
|
-
* Returns a single object containing organization details.
|
|
768
|
-
*/
|
|
769
|
-
export const zGetOrganizationResponse = zOrganization;
|
|
770
|
-
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
771
|
-
/**
|
|
772
|
-
* List of repositories
|
|
773
|
-
*/
|
|
774
|
-
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
775
|
-
export const zListTagsPath = z.object({
|
|
776
|
-
region: z.string(),
|
|
777
|
-
repository: z.string()
|
|
778
|
-
});
|
|
779
|
-
/**
|
|
780
|
-
* Repository with tags
|
|
781
|
-
*/
|
|
782
|
-
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
783
|
-
export const zDeleteTagPath = z.object({
|
|
784
|
-
region: z.string(),
|
|
785
|
-
repository: z.string(),
|
|
786
|
-
tag: z.string()
|
|
787
|
-
});
|
|
788
|
-
export const zGetTagPath = z.object({
|
|
789
|
-
region: z.string(),
|
|
790
|
-
repository: z.string(),
|
|
791
|
-
tag: z.string()
|
|
1710
|
+
export const zGetUsageQuery = z.object({
|
|
1711
|
+
granularity: z.enum([
|
|
1712
|
+
'hourly',
|
|
1713
|
+
'daily',
|
|
1714
|
+
'monthly'
|
|
1715
|
+
]).optional().default('daily')
|
|
792
1716
|
});
|
|
793
1717
|
/**
|
|
794
|
-
*
|
|
795
|
-
*/
|
|
796
|
-
export const zGetTagResponse = zRegistryTag;
|
|
797
|
-
/**
|
|
798
|
-
* Returns a list of access token details with masked secrets.
|
|
799
|
-
*/
|
|
800
|
-
export const zListTokensResponse = z.array(zToken);
|
|
801
|
-
export const zCreateTokenBody = zTokenCreateInput;
|
|
802
|
-
/**
|
|
803
|
-
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1718
|
+
* Usage data with facets for filtering
|
|
804
1719
|
*/
|
|
805
|
-
export const
|
|
806
|
-
export const zDeleteTokenPath = z.object({
|
|
807
|
-
token_id: z.string()
|
|
808
|
-
});
|
|
809
|
-
export const zGetTokenPath = z.object({
|
|
810
|
-
token_id: z.string()
|
|
811
|
-
});
|
|
1720
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
812
1721
|
/**
|
|
813
|
-
*
|
|
1722
|
+
* 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.
|
|
1723
|
+
*
|
|
814
1724
|
*/
|
|
815
|
-
export const
|
|
816
|
-
|
|
817
|
-
export const zUpdateTokenPath = z.object({
|
|
818
|
-
token_id: z.string()
|
|
1725
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1726
|
+
id: z.string().optional()
|
|
819
1727
|
});
|
|
820
1728
|
/**
|
|
821
|
-
*
|
|
1729
|
+
* An array of payment methods.
|
|
822
1730
|
*/
|
|
823
|
-
export const
|
|
824
|
-
export const
|
|
825
|
-
|
|
1731
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1732
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1733
|
+
paymentMethodId: z.string()
|
|
826
1734
|
});
|
|
827
1735
|
/**
|
|
828
|
-
*
|
|
1736
|
+
* Default payment method updated.
|
|
829
1737
|
*/
|
|
830
|
-
export const
|
|
831
|
-
export const
|
|
832
|
-
|
|
1738
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1739
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1740
|
+
paymentMethodId: z.string()
|
|
833
1741
|
});
|
|
834
1742
|
/**
|
|
835
|
-
*
|
|
1743
|
+
* Payment method deleted.
|
|
836
1744
|
*/
|
|
837
|
-
export const
|
|
838
|
-
realm: z.string().optional(),
|
|
839
|
-
displayName: z.string().optional()
|
|
840
|
-
}));
|
|
1745
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
841
1746
|
/**
|
|
842
|
-
* An array of
|
|
1747
|
+
* An array of usage records.
|
|
843
1748
|
*/
|
|
844
|
-
export const
|
|
845
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1749
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
846
1750
|
/**
|
|
847
|
-
*
|
|
1751
|
+
* Returns a single object containing organization contact and billing address details.
|
|
848
1752
|
*/
|
|
849
|
-
export const
|
|
850
|
-
export const
|
|
851
|
-
user_id: z.string()
|
|
852
|
-
});
|
|
1753
|
+
export const zGetContactResponse = zBillingContact;
|
|
1754
|
+
export const zUpdateContactBody = zBillingContact;
|
|
853
1755
|
/**
|
|
854
|
-
*
|
|
1756
|
+
* Successfully updated. Returns updated organization details.
|
|
855
1757
|
*/
|
|
856
|
-
export const
|
|
857
|
-
export const zGetUserPath = z.object({
|
|
858
|
-
user_id: z.string()
|
|
859
|
-
});
|
|
1758
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
860
1759
|
/**
|
|
861
|
-
*
|
|
1760
|
+
* An array of the applied promotional credits records.
|
|
862
1761
|
*/
|
|
863
|
-
export const
|
|
864
|
-
export const
|
|
865
|
-
|
|
866
|
-
user_id: z.string()
|
|
1762
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1763
|
+
export const zRedeemCreditsBody = z.object({
|
|
1764
|
+
code: z.string().optional()
|
|
867
1765
|
});
|
|
868
|
-
/**
|
|
869
|
-
* Successfully created. Returns created user details.
|
|
870
|
-
*/
|
|
871
|
-
export const zUpdateUserResponse = zUser;
|
|
872
1766
|
//# sourceMappingURL=zod.gen.js.map
|