@cloudfleet/sdk 0.0.1-a92e617 → 0.0.1-a9ac9eb

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.
Files changed (93) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1125 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1129 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts +3 -0
  6. package/dist/client/client.gen.d.ts.map +1 -0
  7. package/dist/client/client.gen.js +220 -0
  8. package/dist/client/client.gen.js.map +1 -0
  9. package/dist/client/index.d.ts +8 -7
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/index.js +6 -4
  12. package/dist/client/index.js.map +1 -1
  13. package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
  14. package/dist/client/types.gen.d.ts.map +1 -0
  15. package/dist/client/types.gen.js +3 -0
  16. package/dist/client/types.gen.js.map +1 -0
  17. package/dist/client/{utils.d.ts → utils.gen.d.ts} +15 -23
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/{utils.js → utils.gen.js} +63 -119
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +3 -3
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +1 -3
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/{auth.js → auth.gen.js} +2 -1
  28. package/dist/core/auth.gen.js.map +1 -0
  29. package/dist/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/{params.d.ts → params.gen.d.ts} +21 -1
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/{params.js → params.gen.js} +20 -7
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
  40. package/dist/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/core/serverSentEvents.gen.js +133 -0
  48. package/dist/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/core/{types.d.ts → types.gen.d.ts} +21 -16
  50. package/dist/core/types.gen.d.ts.map +1 -0
  51. package/dist/core/types.gen.js +3 -0
  52. package/dist/core/types.gen.js.map +1 -0
  53. package/dist/core/utils.gen.d.ts +20 -0
  54. package/dist/core/utils.gen.d.ts.map +1 -0
  55. package/dist/core/utils.gen.js +88 -0
  56. package/dist/core/utils.gen.js.map +1 -0
  57. package/dist/schemas.gen.d.ts +1330 -596
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +2666 -688
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +130 -20
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +217 -164
  64. package/dist/sdk.gen.js.map +1 -1
  65. package/dist/services/kubernetes/api.d.ts +20 -20
  66. package/dist/types.gen.d.ts +1061 -361
  67. package/dist/types.gen.d.ts.map +1 -1
  68. package/dist/zod.gen.d.ts +3562 -3592
  69. package/dist/zod.gen.d.ts.map +1 -1
  70. package/dist/zod.gen.js +1195 -1056
  71. package/dist/zod.gen.js.map +1 -1
  72. package/package.json +29 -6
  73. package/dist/client/client.d.ts +0 -3
  74. package/dist/client/client.d.ts.map +0 -1
  75. package/dist/client/client.js +0 -144
  76. package/dist/client/client.js.map +0 -1
  77. package/dist/client/types.d.ts.map +0 -1
  78. package/dist/client/types.js +0 -2
  79. package/dist/client/types.js.map +0 -1
  80. package/dist/client/utils.d.ts.map +0 -1
  81. package/dist/client/utils.js.map +0 -1
  82. package/dist/core/auth.d.ts.map +0 -1
  83. package/dist/core/auth.js.map +0 -1
  84. package/dist/core/bodySerializer.d.ts +0 -18
  85. package/dist/core/bodySerializer.d.ts.map +0 -1
  86. package/dist/core/bodySerializer.js.map +0 -1
  87. package/dist/core/params.d.ts.map +0 -1
  88. package/dist/core/params.js.map +0 -1
  89. package/dist/core/pathSerializer.d.ts.map +0 -1
  90. package/dist/core/pathSerializer.js.map +0 -1
  91. package/dist/core/types.d.ts.map +0 -1
  92. package/dist/core/types.js +0 -2
  93. package/dist/core/types.js.map +0 -1
package/dist/zod.gen.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod';
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(),
@@ -9,9 +10,8 @@ export const zBillingContact = z.object({
9
10
  state: z.string().optional(),
10
11
  country: z.string().optional(),
11
12
  phone: z.string().optional(),
12
- email: z.string().email(),
13
- first_name: z.string(),
14
- last_name: z.string(),
13
+ email: z.email(),
14
+ individual_name: z.string(),
15
15
  tax_id: z.string().optional(),
16
16
  tax_id_type: z.enum([
17
17
  'ad_nrt',
@@ -146,16 +146,12 @@ export const zBillingContact = z.object({
146
146
  });
147
147
  export const zBillingCredits = z.object({
148
148
  id: z.string().optional(),
149
- date_created: z.string().datetime(),
149
+ type: z.enum(['credit', 'discount']),
150
+ date_start: z.iso.datetime(),
151
+ date_end: z.iso.datetime().optional(),
150
152
  code: z.string(),
151
153
  description: z.string().optional(),
152
- products: z.array(z.string()).optional(),
153
- type: z.enum([
154
- 'credit',
155
- 'discount'
156
- ]),
157
- value: z.number(),
158
- billing_period: z.string().datetime(),
154
+ value_total: z.number(),
159
155
  value_remaining: z.number().optional()
160
156
  });
161
157
  export const zChartCreateInput = z.object({
@@ -198,26 +194,31 @@ export const zChartUpdateInput = z.object({
198
194
  });
199
195
  export const zClusterCreateInput = z.object({
200
196
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
201
- tier: z.enum([
202
- 'basic',
203
- 'pro'
204
- ]),
197
+ tier: z.enum(['basic', 'pro']),
205
198
  region: z.enum([
206
- 'staging',
199
+ 'staging-1a',
207
200
  'northamerica-central-1',
208
- 'europe-central-1a'
209
- ]).optional(),
210
- 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')
201
+ 'europe-central-1a',
202
+ 'northamerica-central-1a'
203
+ ]).optional().default('staging-1a'),
204
+ version_channel: z.enum([
205
+ '1.x.x-cfke.x',
206
+ '1.31.x-cfke.x',
207
+ '1.32.x-cfke.x',
208
+ '1.33.x-cfke.x'
209
+ ]).optional().default('1.x.x-cfke.x')
211
210
  });
212
211
  export const zClusterJoinInformation = z.object({
213
212
  certificate_authority: z.string(),
214
- endpoint: z.string().url(),
213
+ endpoint: z.url(),
214
+ cluster_dns: z.string(),
215
215
  auth_key: z.string(),
216
216
  bootstrap_token: z.string(),
217
217
  versions: z.object({
218
218
  kubernetes: z.string(),
219
219
  tailscale: z.string(),
220
- containerd: z.string()
220
+ containerd: z.string(),
221
+ nvidia_driver: z.string()
221
222
  }),
222
223
  third_party_api_access_config: z.object({
223
224
  metadata_url: z.string(),
@@ -227,19 +228,17 @@ export const zClusterJoinInformation = z.object({
227
228
  });
228
229
  export const zCluster = z.object({
229
230
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
- tier: z.enum([
231
- 'basic',
232
- 'pro'
233
- ]),
231
+ tier: z.enum(['basic', 'pro']),
234
232
  region: z.enum([
235
- 'staging',
233
+ 'staging-1a',
236
234
  'northamerica-central-1',
237
- 'europe-central-1a'
238
- ]).optional(),
239
- 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'),
240
- id: z.string().uuid(),
235
+ 'europe-central-1a',
236
+ 'northamerica-central-1a'
237
+ ]).optional().default('staging-1a'),
238
+ id: z.uuid(),
241
239
  status: z.enum([
242
240
  'active',
241
+ 'disabled',
243
242
  'deleted',
244
243
  'creating',
245
244
  'deployed',
@@ -247,735 +246,863 @@ export const zCluster = z.object({
247
246
  'updating'
248
247
  ]),
249
248
  endpoint: z.union([
250
- z.string().url(),
251
- z.enum([
252
- ''
253
- ])
249
+ z.url(),
250
+ z.enum([''])
251
+ ]).optional(),
252
+ endpoint_public: z.union([
253
+ z.url(),
254
+ z.enum([''])
254
255
  ]).optional(),
255
256
  certificate_ca: z.string().optional(),
256
257
  version_current: z.string().optional(),
257
258
  created_at: z.string().optional(),
258
259
  updated_at: z.string().optional(),
259
- ready: z.boolean().optional()
260
+ ready: z.boolean().optional(),
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()
260
262
  });
261
263
  export const zClusterUpdateInput = z.object({
262
264
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
263
- tier: z.enum([
264
- 'basic',
265
- 'pro'
266
- ]),
265
+ tier: z.enum(['basic', 'pro']),
267
266
  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()
268
267
  });
269
268
  export const zFleetCreateInput = z.object({
270
269
  limits: z.object({
271
- cpu: z.number().gte(0)
270
+ cpu: z.int().gte(0).lte(100000).optional()
272
271
  }).optional(),
273
272
  gcp: z.object({
274
- enabled: z.boolean().optional().default(true),
275
- project: z.string()
273
+ enabled: z.boolean(),
274
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
276
275
  }).optional(),
277
276
  hetzner: z.object({
278
- enabled: z.boolean().optional().default(true),
279
- apiKey: z.string()
277
+ enabled: z.boolean(),
278
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
280
279
  }).optional(),
281
280
  aws: z.object({
282
- enabled: z.boolean().optional().default(true),
283
- controllerRoleArn: z.string()
281
+ enabled: z.boolean(),
282
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
283
+ }).optional(),
284
+ constraints: z.object({
285
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
286
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
287
+ 'cfke.io/instance-family': z.array(z.enum([
288
+ 'a1',
289
+ 'a2',
290
+ 'a3',
291
+ 'a4',
292
+ 'c1',
293
+ 'c2',
294
+ 'c2d',
295
+ 'c3',
296
+ 'c3d',
297
+ 'c4',
298
+ 'c4a',
299
+ 'c4d',
300
+ 'c5',
301
+ 'c5a',
302
+ 'c5ad',
303
+ 'c5d',
304
+ 'c5n',
305
+ 'c6a',
306
+ 'c6g',
307
+ 'c6gd',
308
+ 'c6gn',
309
+ 'c6i',
310
+ 'c6id',
311
+ 'c6in',
312
+ 'c7a',
313
+ 'c7g',
314
+ 'c7gd',
315
+ 'c7gn',
316
+ 'c7i',
317
+ 'c7i-flex',
318
+ 'c8g',
319
+ 'c8gd',
320
+ 'cax',
321
+ 'ccx',
322
+ 'cpx',
323
+ 'cx',
324
+ 'd2',
325
+ 'd3',
326
+ 'd3en',
327
+ 'dl1',
328
+ 'dl2q',
329
+ 'e2',
330
+ 'f1',
331
+ 'f2',
332
+ 'g1',
333
+ 'g2',
334
+ 'g4ad',
335
+ 'g4dn',
336
+ 'g5',
337
+ 'g5g',
338
+ 'g6',
339
+ 'g6e',
340
+ 'gr6',
341
+ 'h1',
342
+ 'h3',
343
+ 'hpc6a',
344
+ 'hpc6id',
345
+ 'hpc7a',
346
+ 'hpc7g',
347
+ 'i2',
348
+ 'i3',
349
+ 'i3en',
350
+ 'i4g',
351
+ 'i4i',
352
+ 'i7i',
353
+ 'i7ie',
354
+ 'i8g',
355
+ 'im4gn',
356
+ 'inf1',
357
+ 'inf2',
358
+ 'is4gen',
359
+ 'm1',
360
+ 'm2',
361
+ 'm3',
362
+ 'm4',
363
+ 'm5',
364
+ 'm5a',
365
+ 'm5ad',
366
+ 'm5d',
367
+ 'm5dn',
368
+ 'm5n',
369
+ 'm5zn',
370
+ 'm6a',
371
+ 'm6g',
372
+ 'm6gd',
373
+ 'm6i',
374
+ 'm6id',
375
+ 'm6idn',
376
+ 'm6in',
377
+ 'm7a',
378
+ 'm7g',
379
+ 'm7gd',
380
+ 'm7i',
381
+ 'm7i-flex',
382
+ 'm8g',
383
+ 'm8gd',
384
+ 'n1',
385
+ 'n2',
386
+ 'n2d',
387
+ 'n4',
388
+ 'p3',
389
+ 'p3dn',
390
+ 'p4d',
391
+ 'p4de',
392
+ 'p5',
393
+ 'p5e',
394
+ 'p5en',
395
+ 'p6-b200',
396
+ 'r3',
397
+ 'r4',
398
+ 'r5',
399
+ 'r5a',
400
+ 'r5ad',
401
+ 'r5b',
402
+ 'r5d',
403
+ 'r5dn',
404
+ 'r5n',
405
+ 'r6a',
406
+ 'r6g',
407
+ 'r6gd',
408
+ 'r6i',
409
+ 'r6id',
410
+ 'r6idn',
411
+ 'r6in',
412
+ 'r7a',
413
+ 'r7g',
414
+ 'r7gd',
415
+ 'r7i',
416
+ 'r7iz',
417
+ 'r8g',
418
+ 'r8gd',
419
+ 't2',
420
+ 't2a',
421
+ 't2d',
422
+ 't3',
423
+ 't3a',
424
+ 't4g',
425
+ 'trn1',
426
+ 'trn1n',
427
+ 'u-3tb1',
428
+ 'u-6tb1',
429
+ 'u7i-12tb',
430
+ 'u7i-6tb',
431
+ 'u7i-8tb',
432
+ 'u7in-16tb',
433
+ 'u7in-24tb',
434
+ 'u7in-32tb',
435
+ 'vt1',
436
+ 'x1',
437
+ 'x1e',
438
+ 'x2gd',
439
+ 'x2idn',
440
+ 'x2iedn',
441
+ 'x2iezn',
442
+ 'x4',
443
+ 'x8g',
444
+ 'z1d',
445
+ 'z3'
446
+ ])).optional(),
447
+ 'topology.kubernetes.io/region': z.array(z.enum([
448
+ 'africa-south1',
449
+ 'ap-northeast-1',
450
+ 'ap-northeast-2',
451
+ 'ap-northeast-3',
452
+ 'ap-south-1',
453
+ 'ap-southeast-1',
454
+ 'ap-southeast-2',
455
+ 'ash',
456
+ 'asia-east1',
457
+ 'asia-east2',
458
+ 'asia-northeast1',
459
+ 'asia-northeast2',
460
+ 'asia-northeast3',
461
+ 'asia-south1',
462
+ 'asia-south2',
463
+ 'asia-southeast1',
464
+ 'asia-southeast2',
465
+ 'australia-southeast1',
466
+ 'australia-southeast2',
467
+ 'ca-central-1',
468
+ 'eu-central-1',
469
+ 'eu-central-2',
470
+ 'eu-north-1',
471
+ 'eu-west-1',
472
+ 'eu-west-2',
473
+ 'eu-west-3',
474
+ 'europe-central2',
475
+ 'europe-north1',
476
+ 'europe-southwest1',
477
+ 'europe-west1',
478
+ 'europe-west10',
479
+ 'europe-west12',
480
+ 'europe-west2',
481
+ 'europe-west3',
482
+ 'europe-west4',
483
+ 'europe-west6',
484
+ 'europe-west8',
485
+ 'europe-west9',
486
+ 'fsn1',
487
+ 'hel1',
488
+ 'hil',
489
+ 'me-central1',
490
+ 'me-central2',
491
+ 'me-west1',
492
+ 'nbg1',
493
+ 'northamerica-northeast1',
494
+ 'northamerica-northeast2',
495
+ 'sa-east-1',
496
+ 'sin',
497
+ 'southamerica-east1',
498
+ 'southamerica-west1',
499
+ 'us-central1',
500
+ 'us-east-1',
501
+ 'us-east-2',
502
+ 'us-east1',
503
+ 'us-east4',
504
+ 'us-east5',
505
+ 'us-south1',
506
+ 'us-west-1',
507
+ 'us-west-2',
508
+ 'us-west1',
509
+ 'us-west2',
510
+ 'us-west3',
511
+ 'us-west4'
512
+ ])).optional()
284
513
  }).optional(),
514
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
285
515
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
286
516
  });
287
517
  export const zFleet = z.object({
288
518
  limits: z.object({
289
- cpu: z.number().gte(0)
519
+ cpu: z.int().gte(0).lte(100000).optional()
290
520
  }).optional(),
291
521
  gcp: z.object({
292
- enabled: z.boolean().optional().default(true),
293
- project: z.string()
522
+ enabled: z.boolean(),
523
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
294
524
  }).optional(),
295
525
  hetzner: z.object({
296
- enabled: z.boolean().optional().default(true),
297
- apiKey: z.string()
526
+ enabled: z.boolean(),
527
+ apiKey: z.string().regex(/^\*{64}$/).optional()
298
528
  }).optional(),
299
529
  aws: z.object({
300
- enabled: z.boolean().optional().default(true),
301
- controllerRoleArn: z.string()
530
+ enabled: z.boolean(),
531
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
302
532
  }).optional(),
533
+ constraints: z.object({
534
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
535
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
536
+ 'cfke.io/instance-family': z.array(z.enum([
537
+ 'a1',
538
+ 'a2',
539
+ 'a3',
540
+ 'a4',
541
+ 'c1',
542
+ 'c2',
543
+ 'c2d',
544
+ 'c3',
545
+ 'c3d',
546
+ 'c4',
547
+ 'c4a',
548
+ 'c4d',
549
+ 'c5',
550
+ 'c5a',
551
+ 'c5ad',
552
+ 'c5d',
553
+ 'c5n',
554
+ 'c6a',
555
+ 'c6g',
556
+ 'c6gd',
557
+ 'c6gn',
558
+ 'c6i',
559
+ 'c6id',
560
+ 'c6in',
561
+ 'c7a',
562
+ 'c7g',
563
+ 'c7gd',
564
+ 'c7gn',
565
+ 'c7i',
566
+ 'c7i-flex',
567
+ 'c8g',
568
+ 'c8gd',
569
+ 'cax',
570
+ 'ccx',
571
+ 'cpx',
572
+ 'cx',
573
+ 'd2',
574
+ 'd3',
575
+ 'd3en',
576
+ 'dl1',
577
+ 'dl2q',
578
+ 'e2',
579
+ 'f1',
580
+ 'f2',
581
+ 'g1',
582
+ 'g2',
583
+ 'g4ad',
584
+ 'g4dn',
585
+ 'g5',
586
+ 'g5g',
587
+ 'g6',
588
+ 'g6e',
589
+ 'gr6',
590
+ 'h1',
591
+ 'h3',
592
+ 'hpc6a',
593
+ 'hpc6id',
594
+ 'hpc7a',
595
+ 'hpc7g',
596
+ 'i2',
597
+ 'i3',
598
+ 'i3en',
599
+ 'i4g',
600
+ 'i4i',
601
+ 'i7i',
602
+ 'i7ie',
603
+ 'i8g',
604
+ 'im4gn',
605
+ 'inf1',
606
+ 'inf2',
607
+ 'is4gen',
608
+ 'm1',
609
+ 'm2',
610
+ 'm3',
611
+ 'm4',
612
+ 'm5',
613
+ 'm5a',
614
+ 'm5ad',
615
+ 'm5d',
616
+ 'm5dn',
617
+ 'm5n',
618
+ 'm5zn',
619
+ 'm6a',
620
+ 'm6g',
621
+ 'm6gd',
622
+ 'm6i',
623
+ 'm6id',
624
+ 'm6idn',
625
+ 'm6in',
626
+ 'm7a',
627
+ 'm7g',
628
+ 'm7gd',
629
+ 'm7i',
630
+ 'm7i-flex',
631
+ 'm8g',
632
+ 'm8gd',
633
+ 'n1',
634
+ 'n2',
635
+ 'n2d',
636
+ 'n4',
637
+ 'p3',
638
+ 'p3dn',
639
+ 'p4d',
640
+ 'p4de',
641
+ 'p5',
642
+ 'p5e',
643
+ 'p5en',
644
+ 'p6-b200',
645
+ 'r3',
646
+ 'r4',
647
+ 'r5',
648
+ 'r5a',
649
+ 'r5ad',
650
+ 'r5b',
651
+ 'r5d',
652
+ 'r5dn',
653
+ 'r5n',
654
+ 'r6a',
655
+ 'r6g',
656
+ 'r6gd',
657
+ 'r6i',
658
+ 'r6id',
659
+ 'r6idn',
660
+ 'r6in',
661
+ 'r7a',
662
+ 'r7g',
663
+ 'r7gd',
664
+ 'r7i',
665
+ 'r7iz',
666
+ 'r8g',
667
+ 'r8gd',
668
+ 't2',
669
+ 't2a',
670
+ 't2d',
671
+ 't3',
672
+ 't3a',
673
+ 't4g',
674
+ 'trn1',
675
+ 'trn1n',
676
+ 'u-3tb1',
677
+ 'u-6tb1',
678
+ 'u7i-12tb',
679
+ 'u7i-6tb',
680
+ 'u7i-8tb',
681
+ 'u7in-16tb',
682
+ 'u7in-24tb',
683
+ 'u7in-32tb',
684
+ 'vt1',
685
+ 'x1',
686
+ 'x1e',
687
+ 'x2gd',
688
+ 'x2idn',
689
+ 'x2iedn',
690
+ 'x2iezn',
691
+ 'x4',
692
+ 'x8g',
693
+ 'z1d',
694
+ 'z3'
695
+ ])).optional(),
696
+ 'topology.kubernetes.io/region': z.array(z.enum([
697
+ 'africa-south1',
698
+ 'ap-northeast-1',
699
+ 'ap-northeast-2',
700
+ 'ap-northeast-3',
701
+ 'ap-south-1',
702
+ 'ap-southeast-1',
703
+ 'ap-southeast-2',
704
+ 'ash',
705
+ 'asia-east1',
706
+ 'asia-east2',
707
+ 'asia-northeast1',
708
+ 'asia-northeast2',
709
+ 'asia-northeast3',
710
+ 'asia-south1',
711
+ 'asia-south2',
712
+ 'asia-southeast1',
713
+ 'asia-southeast2',
714
+ 'australia-southeast1',
715
+ 'australia-southeast2',
716
+ 'ca-central-1',
717
+ 'eu-central-1',
718
+ 'eu-central-2',
719
+ 'eu-north-1',
720
+ 'eu-west-1',
721
+ 'eu-west-2',
722
+ 'eu-west-3',
723
+ 'europe-central2',
724
+ 'europe-north1',
725
+ 'europe-southwest1',
726
+ 'europe-west1',
727
+ 'europe-west10',
728
+ 'europe-west12',
729
+ 'europe-west2',
730
+ 'europe-west3',
731
+ 'europe-west4',
732
+ 'europe-west6',
733
+ 'europe-west8',
734
+ 'europe-west9',
735
+ 'fsn1',
736
+ 'hel1',
737
+ 'hil',
738
+ 'me-central1',
739
+ 'me-central2',
740
+ 'me-west1',
741
+ 'nbg1',
742
+ 'northamerica-northeast1',
743
+ 'northamerica-northeast2',
744
+ 'sa-east-1',
745
+ 'sin',
746
+ 'southamerica-east1',
747
+ 'southamerica-west1',
748
+ 'us-central1',
749
+ 'us-east-1',
750
+ 'us-east-2',
751
+ 'us-east1',
752
+ 'us-east4',
753
+ 'us-east5',
754
+ 'us-south1',
755
+ 'us-west-1',
756
+ 'us-west-2',
757
+ 'us-west1',
758
+ 'us-west2',
759
+ 'us-west3',
760
+ 'us-west4'
761
+ ])).optional()
762
+ }).optional(),
763
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
303
764
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
304
765
  });
305
766
  export const zFleetUpdateInput = z.object({
306
767
  limits: z.object({
307
- cpu: z.number().gte(0)
768
+ cpu: z.int().gte(0).lte(100000).optional()
308
769
  }).optional(),
309
770
  gcp: z.object({
310
- enabled: z.boolean().optional().default(true),
311
- project: z.string()
771
+ enabled: z.boolean(),
772
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
312
773
  }).optional(),
313
774
  hetzner: z.object({
314
- enabled: z.boolean().optional().default(true),
315
- apiKey: z.string()
775
+ enabled: z.boolean(),
776
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
316
777
  }).optional(),
317
778
  aws: z.object({
318
- enabled: z.boolean().optional().default(true),
319
- controllerRoleArn: z.string()
320
- }).optional()
779
+ enabled: z.boolean(),
780
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
781
+ }).optional(),
782
+ constraints: z.object({
783
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
784
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
785
+ 'cfke.io/instance-family': z.array(z.enum([
786
+ 'a1',
787
+ 'a2',
788
+ 'a3',
789
+ 'a4',
790
+ 'c1',
791
+ 'c2',
792
+ 'c2d',
793
+ 'c3',
794
+ 'c3d',
795
+ 'c4',
796
+ 'c4a',
797
+ 'c4d',
798
+ 'c5',
799
+ 'c5a',
800
+ 'c5ad',
801
+ 'c5d',
802
+ 'c5n',
803
+ 'c6a',
804
+ 'c6g',
805
+ 'c6gd',
806
+ 'c6gn',
807
+ 'c6i',
808
+ 'c6id',
809
+ 'c6in',
810
+ 'c7a',
811
+ 'c7g',
812
+ 'c7gd',
813
+ 'c7gn',
814
+ 'c7i',
815
+ 'c7i-flex',
816
+ 'c8g',
817
+ 'c8gd',
818
+ 'cax',
819
+ 'ccx',
820
+ 'cpx',
821
+ 'cx',
822
+ 'd2',
823
+ 'd3',
824
+ 'd3en',
825
+ 'dl1',
826
+ 'dl2q',
827
+ 'e2',
828
+ 'f1',
829
+ 'f2',
830
+ 'g1',
831
+ 'g2',
832
+ 'g4ad',
833
+ 'g4dn',
834
+ 'g5',
835
+ 'g5g',
836
+ 'g6',
837
+ 'g6e',
838
+ 'gr6',
839
+ 'h1',
840
+ 'h3',
841
+ 'hpc6a',
842
+ 'hpc6id',
843
+ 'hpc7a',
844
+ 'hpc7g',
845
+ 'i2',
846
+ 'i3',
847
+ 'i3en',
848
+ 'i4g',
849
+ 'i4i',
850
+ 'i7i',
851
+ 'i7ie',
852
+ 'i8g',
853
+ 'im4gn',
854
+ 'inf1',
855
+ 'inf2',
856
+ 'is4gen',
857
+ 'm1',
858
+ 'm2',
859
+ 'm3',
860
+ 'm4',
861
+ 'm5',
862
+ 'm5a',
863
+ 'm5ad',
864
+ 'm5d',
865
+ 'm5dn',
866
+ 'm5n',
867
+ 'm5zn',
868
+ 'm6a',
869
+ 'm6g',
870
+ 'm6gd',
871
+ 'm6i',
872
+ 'm6id',
873
+ 'm6idn',
874
+ 'm6in',
875
+ 'm7a',
876
+ 'm7g',
877
+ 'm7gd',
878
+ 'm7i',
879
+ 'm7i-flex',
880
+ 'm8g',
881
+ 'm8gd',
882
+ 'n1',
883
+ 'n2',
884
+ 'n2d',
885
+ 'n4',
886
+ 'p3',
887
+ 'p3dn',
888
+ 'p4d',
889
+ 'p4de',
890
+ 'p5',
891
+ 'p5e',
892
+ 'p5en',
893
+ 'p6-b200',
894
+ 'r3',
895
+ 'r4',
896
+ 'r5',
897
+ 'r5a',
898
+ 'r5ad',
899
+ 'r5b',
900
+ 'r5d',
901
+ 'r5dn',
902
+ 'r5n',
903
+ 'r6a',
904
+ 'r6g',
905
+ 'r6gd',
906
+ 'r6i',
907
+ 'r6id',
908
+ 'r6idn',
909
+ 'r6in',
910
+ 'r7a',
911
+ 'r7g',
912
+ 'r7gd',
913
+ 'r7i',
914
+ 'r7iz',
915
+ 'r8g',
916
+ 'r8gd',
917
+ 't2',
918
+ 't2a',
919
+ 't2d',
920
+ 't3',
921
+ 't3a',
922
+ 't4g',
923
+ 'trn1',
924
+ 'trn1n',
925
+ 'u-3tb1',
926
+ 'u-6tb1',
927
+ 'u7i-12tb',
928
+ 'u7i-6tb',
929
+ 'u7i-8tb',
930
+ 'u7in-16tb',
931
+ 'u7in-24tb',
932
+ 'u7in-32tb',
933
+ 'vt1',
934
+ 'x1',
935
+ 'x1e',
936
+ 'x2gd',
937
+ 'x2idn',
938
+ 'x2iedn',
939
+ 'x2iezn',
940
+ 'x4',
941
+ 'x8g',
942
+ 'z1d',
943
+ 'z3'
944
+ ])).optional(),
945
+ 'topology.kubernetes.io/region': z.array(z.enum([
946
+ 'africa-south1',
947
+ 'ap-northeast-1',
948
+ 'ap-northeast-2',
949
+ 'ap-northeast-3',
950
+ 'ap-south-1',
951
+ 'ap-southeast-1',
952
+ 'ap-southeast-2',
953
+ 'ash',
954
+ 'asia-east1',
955
+ 'asia-east2',
956
+ 'asia-northeast1',
957
+ 'asia-northeast2',
958
+ 'asia-northeast3',
959
+ 'asia-south1',
960
+ 'asia-south2',
961
+ 'asia-southeast1',
962
+ 'asia-southeast2',
963
+ 'australia-southeast1',
964
+ 'australia-southeast2',
965
+ 'ca-central-1',
966
+ 'eu-central-1',
967
+ 'eu-central-2',
968
+ 'eu-north-1',
969
+ 'eu-west-1',
970
+ 'eu-west-2',
971
+ 'eu-west-3',
972
+ 'europe-central2',
973
+ 'europe-north1',
974
+ 'europe-southwest1',
975
+ 'europe-west1',
976
+ 'europe-west10',
977
+ 'europe-west12',
978
+ 'europe-west2',
979
+ 'europe-west3',
980
+ 'europe-west4',
981
+ 'europe-west6',
982
+ 'europe-west8',
983
+ 'europe-west9',
984
+ 'fsn1',
985
+ 'hel1',
986
+ 'hil',
987
+ 'me-central1',
988
+ 'me-central2',
989
+ 'me-west1',
990
+ 'nbg1',
991
+ 'northamerica-northeast1',
992
+ 'northamerica-northeast2',
993
+ 'sa-east-1',
994
+ 'sin',
995
+ 'southamerica-east1',
996
+ 'southamerica-west1',
997
+ 'us-central1',
998
+ 'us-east-1',
999
+ 'us-east-2',
1000
+ 'us-east1',
1001
+ 'us-east4',
1002
+ 'us-east5',
1003
+ 'us-south1',
1004
+ 'us-west-1',
1005
+ 'us-west-2',
1006
+ 'us-west1',
1007
+ 'us-west2',
1008
+ 'us-west3',
1009
+ 'us-west4'
1010
+ ])).optional()
1011
+ }).optional(),
1012
+ scalingProfile: z.enum(['aggressive', 'conservative'])
321
1013
  });
322
1014
  export const zInvite = z.object({
323
1015
  id: z.string().optional(),
324
- organization_id: z.string().uuid().optional(),
325
- date_created: z.string().datetime(),
326
- email: z.string().email().optional(),
1016
+ organization_id: z.uuid().optional(),
1017
+ date_created: z.iso.datetime(),
1018
+ email: z.email().optional(),
327
1019
  code: z.string().optional()
328
1020
  });
329
1021
  export const zInvoice = z.object({
330
- id: z.string().uuid().optional(),
331
- organizationId: z.string().uuid().optional(),
332
- status: z.enum([
333
- 'DRAFT',
334
- 'COMMITTED',
335
- 'VOID'
336
- ]).optional(),
337
- amount: z.number().optional(),
338
- currency: z.enum([
339
- 'AED',
340
- 'AFN',
341
- 'ALL',
342
- 'AMD',
343
- 'ANG',
344
- 'AOA',
345
- 'ARS',
346
- 'AUD',
347
- 'AWG',
348
- 'AZN',
349
- 'BAM',
350
- 'BBD',
351
- 'BDT',
352
- 'BGN',
353
- 'BHD',
354
- 'BIF',
355
- 'BMD',
356
- 'BND',
357
- 'BOB',
358
- 'BRL',
359
- 'BSD',
360
- 'BTN',
361
- 'BWP',
362
- 'BYR',
363
- 'BZD',
364
- 'CAD',
365
- 'CDF',
366
- 'CHF',
367
- 'CLP',
368
- 'CNY',
369
- 'COP',
370
- 'CRC',
371
- 'CUC',
372
- 'CUP',
373
- 'CVE',
374
- 'CZK',
375
- 'DJF',
376
- 'DKK',
377
- 'DOP',
378
- 'DZD',
379
- 'EGP',
380
- 'ERN',
381
- 'ETB',
382
- 'EUR',
383
- 'FJD',
384
- 'FKP',
385
- 'GBP',
386
- 'GEL',
387
- 'GGP',
388
- 'GHS',
389
- 'GIP',
390
- 'GMD',
391
- 'GNF',
392
- 'GTQ',
393
- 'GYD',
394
- 'HKD',
395
- 'HNL',
396
- 'HRK',
397
- 'HTG',
398
- 'HUF',
399
- 'IDR',
400
- 'ILS',
401
- 'IMP',
402
- 'INR',
403
- 'IQD',
404
- 'IRR',
405
- 'ISK',
406
- 'JEP',
407
- 'JMD',
408
- 'JOD',
409
- 'JPY',
410
- 'KES',
411
- 'KGS',
412
- 'KHR',
413
- 'KMF',
414
- 'KPW',
415
- 'KRW',
416
- 'KWD',
417
- 'KYD',
418
- 'KZT',
419
- 'LAK',
420
- 'LBP',
421
- 'LKR',
422
- 'LRD',
423
- 'LSL',
424
- 'LTL',
425
- 'LVL',
426
- 'LYD',
427
- 'MAD',
428
- 'MDL',
429
- 'MGA',
430
- 'MKD',
431
- 'MMK',
432
- 'MNT',
433
- 'MOP',
434
- 'MRO',
435
- 'MUR',
436
- 'MVR',
437
- 'MWK',
438
- 'MXN',
439
- 'MYR',
440
- 'MZN',
441
- 'NAD',
442
- 'NGN',
443
- 'NIO',
444
- 'NOK',
445
- 'NPR',
446
- 'NZD',
447
- 'OMR',
448
- 'PAB',
449
- 'PEN',
450
- 'PGK',
451
- 'PHP',
452
- 'PKR',
453
- 'PLN',
454
- 'PYG',
455
- 'QAR',
456
- 'RON',
457
- 'RSD',
458
- 'RUB',
459
- 'RWF',
460
- 'SAR',
461
- 'SBD',
462
- 'SCR',
463
- 'SDG',
464
- 'SEK',
465
- 'SGD',
466
- 'SHP',
467
- 'SLL',
468
- 'SOS',
469
- 'SPL',
470
- 'SRD',
471
- 'STD',
472
- 'SVC',
473
- 'SYP',
474
- 'SZL',
475
- 'THB',
476
- 'TJS',
477
- 'TMT',
478
- 'TND',
479
- 'TOP',
480
- 'TRY',
481
- 'TTD',
482
- 'TVD',
483
- 'TWD',
484
- 'TZS',
485
- 'UAH',
486
- 'UGX',
487
- 'USD',
488
- 'UYU',
489
- 'UZS',
490
- 'VEF',
491
- 'VND',
492
- 'VUV',
493
- 'WST',
494
- 'XAF',
495
- 'XCD',
496
- 'XDR',
497
- 'XOF',
498
- 'XPF',
499
- 'YER',
500
- 'ZAR',
501
- 'ZMW',
502
- 'ZWD',
503
- 'BTC'
504
- ]).optional(),
505
- creditAdj: z.number().optional(),
506
- refundAdj: z.number().optional(),
507
- invoiceDate: z.string().optional(),
508
- targetDate: z.string().optional(),
509
- invoiceNumber: z.string().optional(),
510
- balance: z.number().optional(),
511
- bundleKeys: z.string().optional(),
512
- credits: z.array(z.object({
513
- id: z.string().uuid().optional(),
514
- linkedInvoiceItemId: z.string().uuid().optional(),
515
- productName: z.string().optional(),
516
- planName: z.string().optional(),
517
- phaseName: z.string().optional(),
518
- usageName: z.string().optional(),
519
- prettyProductName: z.string().optional(),
520
- prettyPlanName: z.string().optional(),
521
- prettyPhaseName: z.string().optional(),
522
- prettyUsageName: z.string().optional(),
523
- itemType: z.enum([
524
- 'EXTERNAL_CHARGE',
525
- 'FIXED',
526
- 'RECURRING',
527
- 'REPAIR_ADJ',
528
- 'CBA_ADJ',
529
- 'CREDIT_ADJ',
530
- 'ITEM_ADJ',
531
- 'USAGE',
532
- 'TAX',
533
- 'PARENT_SUMMARY'
534
- ]).optional(),
535
- description: z.string().optional(),
536
- startDate: z.string().optional(),
537
- endDate: z.string().optional(),
538
- amount: z.number().optional(),
539
- rate: z.number().optional(),
540
- currency: z.enum([
541
- 'AED',
542
- 'AFN',
543
- 'ALL',
544
- 'AMD',
545
- 'ANG',
546
- 'AOA',
547
- 'ARS',
548
- 'AUD',
549
- 'AWG',
550
- 'AZN',
551
- 'BAM',
552
- 'BBD',
553
- 'BDT',
554
- 'BGN',
555
- 'BHD',
556
- 'BIF',
557
- 'BMD',
558
- 'BND',
559
- 'BOB',
560
- 'BRL',
561
- 'BSD',
562
- 'BTN',
563
- 'BWP',
564
- 'BYR',
565
- 'BZD',
566
- 'CAD',
567
- 'CDF',
568
- 'CHF',
569
- 'CLP',
570
- 'CNY',
571
- 'COP',
572
- 'CRC',
573
- 'CUC',
574
- 'CUP',
575
- 'CVE',
576
- 'CZK',
577
- 'DJF',
578
- 'DKK',
579
- 'DOP',
580
- 'DZD',
581
- 'EGP',
582
- 'ERN',
583
- 'ETB',
584
- 'EUR',
585
- 'FJD',
586
- 'FKP',
587
- 'GBP',
588
- 'GEL',
589
- 'GGP',
590
- 'GHS',
591
- 'GIP',
592
- 'GMD',
593
- 'GNF',
594
- 'GTQ',
595
- 'GYD',
596
- 'HKD',
597
- 'HNL',
598
- 'HRK',
599
- 'HTG',
600
- 'HUF',
601
- 'IDR',
602
- 'ILS',
603
- 'IMP',
604
- 'INR',
605
- 'IQD',
606
- 'IRR',
607
- 'ISK',
608
- 'JEP',
609
- 'JMD',
610
- 'JOD',
611
- 'JPY',
612
- 'KES',
613
- 'KGS',
614
- 'KHR',
615
- 'KMF',
616
- 'KPW',
617
- 'KRW',
618
- 'KWD',
619
- 'KYD',
620
- 'KZT',
621
- 'LAK',
622
- 'LBP',
623
- 'LKR',
624
- 'LRD',
625
- 'LSL',
626
- 'LTL',
627
- 'LVL',
628
- 'LYD',
629
- 'MAD',
630
- 'MDL',
631
- 'MGA',
632
- 'MKD',
633
- 'MMK',
634
- 'MNT',
635
- 'MOP',
636
- 'MRO',
637
- 'MUR',
638
- 'MVR',
639
- 'MWK',
640
- 'MXN',
641
- 'MYR',
642
- 'MZN',
643
- 'NAD',
644
- 'NGN',
645
- 'NIO',
646
- 'NOK',
647
- 'NPR',
648
- 'NZD',
649
- 'OMR',
650
- 'PAB',
651
- 'PEN',
652
- 'PGK',
653
- 'PHP',
654
- 'PKR',
655
- 'PLN',
656
- 'PYG',
657
- 'QAR',
658
- 'RON',
659
- 'RSD',
660
- 'RUB',
661
- 'RWF',
662
- 'SAR',
663
- 'SBD',
664
- 'SCR',
665
- 'SDG',
666
- 'SEK',
667
- 'SGD',
668
- 'SHP',
669
- 'SLL',
670
- 'SOS',
671
- 'SPL',
672
- 'SRD',
673
- 'STD',
674
- 'SVC',
675
- 'SYP',
676
- 'SZL',
677
- 'THB',
678
- 'TJS',
679
- 'TMT',
680
- 'TND',
681
- 'TOP',
682
- 'TRY',
683
- 'TTD',
684
- 'TVD',
685
- 'TWD',
686
- 'TZS',
687
- 'UAH',
688
- 'UGX',
689
- 'USD',
690
- 'UYU',
691
- 'UZS',
692
- 'VEF',
693
- 'VND',
694
- 'VUV',
695
- 'WST',
696
- 'XAF',
697
- 'XCD',
698
- 'XDR',
699
- 'XOF',
700
- 'XPF',
701
- 'YER',
702
- 'ZAR',
703
- 'ZMW',
704
- 'ZWD',
705
- 'BTC'
706
- ]).optional(),
707
- quantity: z.number().optional(),
708
- itemDetails: z.string().optional(),
709
- catalogEffectiveDate: z.string().optional(),
710
- childItems: z.array(z.union([
711
- z.array(z.unknown()),
712
- z.boolean(),
713
- z.number(),
714
- z.object({}),
715
- z.string()
716
- ])).optional()
717
- })).optional(),
718
- items: z.array(z.object({
719
- id: z.string().uuid().optional(),
720
- linkedInvoiceItemId: z.string().uuid().optional(),
721
- productName: z.string().optional(),
722
- planName: z.string().optional(),
723
- phaseName: z.string().optional(),
724
- usageName: z.string().optional(),
725
- prettyProductName: z.string().optional(),
726
- prettyPlanName: z.string().optional(),
727
- prettyPhaseName: z.string().optional(),
728
- prettyUsageName: z.string().optional(),
729
- itemType: z.enum([
730
- 'EXTERNAL_CHARGE',
731
- 'FIXED',
732
- 'RECURRING',
733
- 'REPAIR_ADJ',
734
- 'CBA_ADJ',
735
- 'CREDIT_ADJ',
736
- 'ITEM_ADJ',
737
- 'USAGE',
738
- 'TAX',
739
- 'PARENT_SUMMARY'
740
- ]).optional(),
741
- description: z.string().optional(),
742
- startDate: z.string().optional(),
743
- endDate: z.string().optional(),
744
- amount: z.number().optional(),
745
- rate: z.number().optional(),
746
- currency: z.enum([
747
- 'AED',
748
- 'AFN',
749
- 'ALL',
750
- 'AMD',
751
- 'ANG',
752
- 'AOA',
753
- 'ARS',
754
- 'AUD',
755
- 'AWG',
756
- 'AZN',
757
- 'BAM',
758
- 'BBD',
759
- 'BDT',
760
- 'BGN',
761
- 'BHD',
762
- 'BIF',
763
- 'BMD',
764
- 'BND',
765
- 'BOB',
766
- 'BRL',
767
- 'BSD',
768
- 'BTN',
769
- 'BWP',
770
- 'BYR',
771
- 'BZD',
772
- 'CAD',
773
- 'CDF',
774
- 'CHF',
775
- 'CLP',
776
- 'CNY',
777
- 'COP',
778
- 'CRC',
779
- 'CUC',
780
- 'CUP',
781
- 'CVE',
782
- 'CZK',
783
- 'DJF',
784
- 'DKK',
785
- 'DOP',
786
- 'DZD',
787
- 'EGP',
788
- 'ERN',
789
- 'ETB',
790
- 'EUR',
791
- 'FJD',
792
- 'FKP',
793
- 'GBP',
794
- 'GEL',
795
- 'GGP',
796
- 'GHS',
797
- 'GIP',
798
- 'GMD',
799
- 'GNF',
800
- 'GTQ',
801
- 'GYD',
802
- 'HKD',
803
- 'HNL',
804
- 'HRK',
805
- 'HTG',
806
- 'HUF',
807
- 'IDR',
808
- 'ILS',
809
- 'IMP',
810
- 'INR',
811
- 'IQD',
812
- 'IRR',
813
- 'ISK',
814
- 'JEP',
815
- 'JMD',
816
- 'JOD',
817
- 'JPY',
818
- 'KES',
819
- 'KGS',
820
- 'KHR',
821
- 'KMF',
822
- 'KPW',
823
- 'KRW',
824
- 'KWD',
825
- 'KYD',
826
- 'KZT',
827
- 'LAK',
828
- 'LBP',
829
- 'LKR',
830
- 'LRD',
831
- 'LSL',
832
- 'LTL',
833
- 'LVL',
834
- 'LYD',
835
- 'MAD',
836
- 'MDL',
837
- 'MGA',
838
- 'MKD',
839
- 'MMK',
840
- 'MNT',
841
- 'MOP',
842
- 'MRO',
843
- 'MUR',
844
- 'MVR',
845
- 'MWK',
846
- 'MXN',
847
- 'MYR',
848
- 'MZN',
849
- 'NAD',
850
- 'NGN',
851
- 'NIO',
852
- 'NOK',
853
- 'NPR',
854
- 'NZD',
855
- 'OMR',
856
- 'PAB',
857
- 'PEN',
858
- 'PGK',
859
- 'PHP',
860
- 'PKR',
861
- 'PLN',
862
- 'PYG',
863
- 'QAR',
864
- 'RON',
865
- 'RSD',
866
- 'RUB',
867
- 'RWF',
868
- 'SAR',
869
- 'SBD',
870
- 'SCR',
871
- 'SDG',
872
- 'SEK',
873
- 'SGD',
874
- 'SHP',
875
- 'SLL',
876
- 'SOS',
877
- 'SPL',
878
- 'SRD',
879
- 'STD',
880
- 'SVC',
881
- 'SYP',
882
- 'SZL',
883
- 'THB',
884
- 'TJS',
885
- 'TMT',
886
- 'TND',
887
- 'TOP',
888
- 'TRY',
889
- 'TTD',
890
- 'TVD',
891
- 'TWD',
892
- 'TZS',
893
- 'UAH',
894
- 'UGX',
895
- 'USD',
896
- 'UYU',
897
- 'UZS',
898
- 'VEF',
899
- 'VND',
900
- 'VUV',
901
- 'WST',
902
- 'XAF',
903
- 'XCD',
904
- 'XDR',
905
- 'XOF',
906
- 'XPF',
907
- 'YER',
908
- 'ZAR',
909
- 'ZMW',
910
- 'ZWD',
911
- 'BTC'
912
- ]).optional(),
913
- quantity: z.number().optional(),
914
- itemDetails: z.string().optional(),
915
- catalogEffectiveDate: z.string().optional(),
916
- childItems: z.array(z.union([
917
- z.array(z.unknown()),
918
- z.boolean(),
919
- z.number(),
920
- z.object({}),
921
- z.string()
922
- ])).optional()
923
- })).optional()
1022
+ id: z.string().optional(),
1023
+ number: z.string().optional(),
1024
+ status: z.string().optional(),
1025
+ total: z.number().optional(),
1026
+ currency: z.string().optional(),
1027
+ created: z.iso.datetime(),
1028
+ period_start: z.iso.datetime(),
1029
+ period_end: z.iso.datetime(),
1030
+ invoice_pdf: z.string().optional()
1031
+ });
1032
+ export const zMarketplaceListingFiles = z.object({
1033
+ chartYaml: z.string().optional(),
1034
+ valuesYaml: z.string().optional(),
1035
+ valuesSchemaJson: z.string().optional()
924
1036
  });
925
1037
  export const zMarketplaceListing = z.object({
926
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
927
1038
  name: z.string(),
928
- developer: z.string(),
929
- description: z.string(),
930
- logoUrl: z.string(),
931
- longDescription: z.string(),
932
- categories: z.array(z.string()),
1039
+ 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-]+)*))?$/)),
933
1040
  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-]+)*))?$/)),
934
- value_schemas: z.array(z.object({
935
- version: 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-]+)*))?$/),
936
- schema: z.string(),
937
- placeholder: z.string()
938
- }))
1041
+ latestVersion: z.string(),
1042
+ metadata: z.object({
1043
+ name: z.string(),
1044
+ version: z.string(),
1045
+ description: z.string().optional(),
1046
+ appVersion: z.string().optional(),
1047
+ apiVersion: z.string().optional(),
1048
+ keywords: z.array(z.string()).optional(),
1049
+ home: z.string().optional(),
1050
+ icon: z.string().optional(),
1051
+ sources: z.array(z.string()).optional(),
1052
+ maintainers: z.array(z.object({
1053
+ name: z.string(),
1054
+ email: z.string().optional()
1055
+ })).optional()
1056
+ }).optional()
939
1057
  });
940
1058
  export const zOrganizationCreateInput = z.object({
941
- email: z.string().email(),
942
- first_name: z.string(),
943
- last_name: z.string(),
1059
+ type: z.enum(['business', 'personal']),
1060
+ email: z.email(),
1061
+ first_name: z.string().min(1),
1062
+ last_name: z.string().min(1),
944
1063
  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,}$/),
945
1064
  password: z.string().min(8)
946
1065
  });
1066
+ export const zOrganizationCreateOutput = z.object({
1067
+ id: z.string()
1068
+ });
947
1069
  export const zOrganization = z.object({
948
- id: z.string().uuid(),
1070
+ id: z.uuid(),
949
1071
  name: z.string().min(2).max(120).optional(),
950
- date_created: z.string().datetime(),
1072
+ type: z.enum(['business', 'personal']),
1073
+ date_created: z.iso.datetime(),
951
1074
  quota: z.object({
952
- basic_clusters_max: z.number().int().gte(0),
953
- basic_clusters_available: z.number().int(),
954
- pro_clusters_max: z.number().int().gte(0),
955
- pro_clusters_available: z.number().int(),
956
- fleets_max: z.number().int().gte(0),
1075
+ basic_clusters_max: z.int().gte(0),
1076
+ basic_clusters_available: z.int(),
1077
+ pro_clusters_max: z.int().gte(0),
1078
+ pro_clusters_available: z.int(),
1079
+ fleets_max: z.int().gte(0),
957
1080
  cluster_tiers: z.array(z.string()).min(0),
958
1081
  regions: z.array(z.string()).min(1),
959
1082
  versions: z.array(z.object({
960
1083
  id: z.string(),
961
1084
  label: z.string()
962
- })).min(1)
1085
+ })).min(1),
1086
+ cfcr_storage_gb: z.int().gte(-1)
963
1087
  }),
964
1088
  status: z.enum([
965
1089
  'active',
966
1090
  'closed',
967
1091
  'suspended'
1092
+ ]),
1093
+ verification: z.enum([
1094
+ 'none',
1095
+ 'submitted',
1096
+ 'verified'
968
1097
  ])
969
1098
  });
970
1099
  export const zPaymentMethod = z.object({
971
- id: z.string().uuid(),
1100
+ id: z.uuid(),
972
1101
  setup: z.boolean(),
973
- type: z.enum([
974
- 'card'
975
- ]),
1102
+ type: z.enum(['card']),
976
1103
  last4: z.string(),
977
- exp_month: z.number().int().gte(1).lte(12),
978
- exp_year: z.number().int().gte(2024),
1104
+ exp_month: z.int().gte(1).lte(12),
1105
+ exp_year: z.int().gte(2024),
979
1106
  brand: z.enum([
980
1107
  'amex',
981
1108
  'diners',
@@ -988,149 +1115,243 @@ export const zPaymentMethod = z.object({
988
1115
  'unknown'
989
1116
  ])
990
1117
  });
1118
+ export const zPlatformQuota = z.object({
1119
+ basic_clusters_max: z.int().gte(0),
1120
+ basic_clusters_available: z.int(),
1121
+ pro_clusters_max: z.int().gte(0),
1122
+ pro_clusters_available: z.int(),
1123
+ fleets_max: z.int().gte(0),
1124
+ cluster_tiers: z.array(z.string()).min(0),
1125
+ regions: z.array(z.string()).min(1),
1126
+ versions: z.array(z.object({
1127
+ id: z.string(),
1128
+ label: z.string()
1129
+ })).min(1),
1130
+ cfcr_storage_gb: z.int().gte(-1)
1131
+ });
1132
+ export const zRegistryRepository = z.object({
1133
+ name: z.string(),
1134
+ region: z.string(),
1135
+ uri: z.string()
1136
+ });
1137
+ export const zRegistryRepositoryWithTags = z.object({
1138
+ name: z.string(),
1139
+ region: z.string(),
1140
+ uri: z.string(),
1141
+ tags: z.array(z.object({
1142
+ name: z.string(),
1143
+ size: z.number(),
1144
+ mediaType: z.string().optional(),
1145
+ platforms: z.array(z.string()).optional()
1146
+ })),
1147
+ totalSize: z.number()
1148
+ });
1149
+ export const zRegistryTag = z.object({
1150
+ name: z.string(),
1151
+ digest: z.string(),
1152
+ mediaType: z.string().optional(),
1153
+ config: z.object({
1154
+ size: z.number()
1155
+ }).optional(),
1156
+ layers: z.array(z.object({
1157
+ digest: z.string().optional(),
1158
+ size: z.number()
1159
+ })).optional(),
1160
+ manifests: z.array(z.object({
1161
+ digest: z.string(),
1162
+ platform: z.object({
1163
+ architecture: z.string(),
1164
+ os: z.string(),
1165
+ variant: z.string().optional()
1166
+ }).optional(),
1167
+ layers: z.array(z.object({
1168
+ digest: z.string().optional(),
1169
+ size: z.number()
1170
+ })).optional(),
1171
+ size: z.number().optional()
1172
+ })).optional(),
1173
+ size: z.number(),
1174
+ region: z.string(),
1175
+ repository: z.string(),
1176
+ uri: z.string()
1177
+ });
1178
+ export const zTicketAttachment = z.object({
1179
+ id: z.string(),
1180
+ filename: z.string(),
1181
+ content_type: z.string(),
1182
+ size: z.int()
1183
+ });
1184
+ export const zTicketCreateInput = z.object({
1185
+ category: z.enum([
1186
+ 'billing',
1187
+ 'technical',
1188
+ 'general'
1189
+ ]),
1190
+ body: z.string().min(1).max(50000).regex(/\S/),
1191
+ properties: z.record(z.string(), z.unknown()).optional()
1192
+ });
1193
+ export const zTicketListResponse = z.object({
1194
+ items: z.array(z.object({
1195
+ id: z.string(),
1196
+ status: z.enum([
1197
+ 'waiting_on_us',
1198
+ 'waiting_on_user',
1199
+ 'closed'
1200
+ ]),
1201
+ category: z.enum([
1202
+ 'billing',
1203
+ 'technical',
1204
+ 'general'
1205
+ ]),
1206
+ summary: z.string(),
1207
+ closed_at: z.iso.datetime().optional(),
1208
+ date_created: z.iso.datetime(),
1209
+ date_updated: z.iso.datetime(),
1210
+ messages: z.array(z.object({
1211
+ id: z.string(),
1212
+ type: z.enum(['customer_reply', 'agent_reply']),
1213
+ body: z.string(),
1214
+ author_first_name: z.string().optional(),
1215
+ author_last_name: z.string().optional(),
1216
+ attachments: z.array(z.object({
1217
+ id: z.string(),
1218
+ filename: z.string(),
1219
+ content_type: z.string(),
1220
+ size: z.int()
1221
+ })).optional(),
1222
+ date_created: z.iso.datetime()
1223
+ })).optional()
1224
+ }))
1225
+ });
1226
+ export const zTicketMessageInput = z.object({
1227
+ body: z.string().min(1).max(50000).regex(/\S/)
1228
+ });
1229
+ export const zTicketMessage = z.object({
1230
+ id: z.string(),
1231
+ type: z.enum(['customer_reply', 'agent_reply']),
1232
+ body: z.string(),
1233
+ author_first_name: z.string().optional(),
1234
+ author_last_name: z.string().optional(),
1235
+ attachments: z.array(z.object({
1236
+ id: z.string(),
1237
+ filename: z.string(),
1238
+ content_type: z.string(),
1239
+ size: z.int()
1240
+ })).optional(),
1241
+ date_created: z.iso.datetime()
1242
+ });
1243
+ export const zTicket = z.object({
1244
+ id: z.string(),
1245
+ status: z.enum([
1246
+ 'waiting_on_us',
1247
+ 'waiting_on_user',
1248
+ 'closed'
1249
+ ]),
1250
+ category: z.enum([
1251
+ 'billing',
1252
+ 'technical',
1253
+ 'general'
1254
+ ]),
1255
+ summary: z.string(),
1256
+ closed_at: z.iso.datetime().optional(),
1257
+ date_created: z.iso.datetime(),
1258
+ date_updated: z.iso.datetime(),
1259
+ messages: z.array(z.object({
1260
+ id: z.string(),
1261
+ type: z.enum(['customer_reply', 'agent_reply']),
1262
+ body: z.string(),
1263
+ author_first_name: z.string().optional(),
1264
+ author_last_name: z.string().optional(),
1265
+ attachments: z.array(z.object({
1266
+ id: z.string(),
1267
+ filename: z.string(),
1268
+ content_type: z.string(),
1269
+ size: z.int()
1270
+ })).optional(),
1271
+ date_created: z.iso.datetime()
1272
+ })).optional()
1273
+ });
991
1274
  export const zTokenCreateInput = z.object({
992
1275
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
993
- role: z.enum([
994
- 'Administrator',
995
- 'User'
996
- ])
1276
+ role: z.enum(['Administrator', 'User'])
997
1277
  });
998
1278
  export const zToken = z.object({
999
1279
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1000
- role: z.enum([
1001
- 'Administrator',
1002
- 'User'
1003
- ]),
1280
+ role: z.enum(['Administrator', 'User']),
1004
1281
  id: z.string().optional(),
1005
1282
  secret: z.string().optional(),
1006
- date_created: z.string().datetime()
1283
+ date_created: z.iso.datetime()
1007
1284
  });
1008
1285
  export const zTokenUpdateInput = z.object({
1009
1286
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
1010
- role: z.enum([
1011
- 'Administrator',
1012
- 'User'
1013
- ]).optional()
1287
+ role: z.enum(['Administrator', 'User']).optional()
1288
+ });
1289
+ export const zUsageFacets = z.object({
1290
+ cluster_id: z.array(z.string()).optional(),
1291
+ product: z.array(z.string()).optional()
1292
+ });
1293
+ export const zUsageResponse = z.object({
1294
+ data: z.array(z.object({
1295
+ hour: z.string(),
1296
+ cluster_id: z.string(),
1297
+ product: z.string(),
1298
+ value: z.number(),
1299
+ price: z.number(),
1300
+ total: z.number()
1301
+ })),
1302
+ facets: z.object({
1303
+ cluster_id: z.array(z.string()).optional(),
1304
+ product: z.array(z.string()).optional()
1305
+ })
1014
1306
  });
1015
1307
  export const zUsage = z.object({
1016
- hour: z.string().optional(),
1017
- cluster_id: z.string().uuid(),
1018
- cluster_tier: z.enum([
1019
- 'basic',
1020
- 'pro',
1021
- ''
1022
- ]),
1023
- product: z.enum([
1024
- 'cfke_controlplane',
1025
- 'cfke_connected_nodes',
1026
- 'infra_compute',
1027
- 'infra_storage',
1028
- 'infra_loadbalancing',
1029
- 'infra_traffic',
1030
- 'cfcr_storage'
1031
- ]),
1032
- node_name: z.string(),
1033
- sku: z.string(),
1034
- cpu: z.union([
1035
- z.number(),
1036
- z.enum([
1037
- ''
1038
- ])
1039
- ]),
1040
- price: z.union([
1041
- z.number(),
1042
- z.enum([
1043
- ''
1044
- ])
1045
- ]),
1046
- value: z.union([
1047
- z.number(),
1048
- z.enum([
1049
- ''
1050
- ])
1051
- ]),
1052
- total: z.union([
1053
- z.number(),
1054
- z.enum([
1055
- ''
1056
- ])
1057
- ])
1308
+ hour: z.string(),
1309
+ cluster_id: z.string(),
1310
+ product: z.string(),
1311
+ value: z.number(),
1312
+ price: z.number(),
1313
+ total: z.number()
1058
1314
  });
1059
1315
  export const zUserCreateInput = z.object({
1060
- email: z.string().email(),
1316
+ email: z.email(),
1061
1317
  first_name: z.string().min(1).max(50),
1062
1318
  last_name: z.string().min(1).max(50),
1063
1319
  code: z.string(),
1064
1320
  password: z.string().min(8),
1065
- status: z.enum([
1066
- 'active',
1067
- 'inactive'
1068
- ]).optional(),
1069
- role: z.enum([
1070
- 'Administrator',
1071
- 'User'
1072
- ]).optional()
1321
+ status: z.enum(['active', 'inactive']).optional(),
1322
+ role: z.enum(['Administrator', 'User']).optional()
1073
1323
  });
1074
1324
  export const zUser = z.object({
1075
- email: z.string().email(),
1325
+ email: z.email(),
1076
1326
  first_name: z.string().min(1).max(50),
1077
1327
  last_name: z.string().min(1).max(50),
1078
- role: z.enum([
1079
- 'Administrator',
1080
- 'User'
1081
- ]),
1082
- status: z.enum([
1083
- 'active',
1084
- 'inactive'
1085
- ]),
1086
- id: z.string().uuid(),
1087
- date_created: z.string().datetime()
1328
+ role: z.enum(['Administrator', 'User']),
1329
+ status: z.enum(['active', 'inactive']),
1330
+ id: z.uuid(),
1331
+ date_created: z.iso.datetime()
1088
1332
  });
1089
1333
  export const zUserUpdateInput = z.object({
1090
- email: z.string().email().optional(),
1334
+ email: z.email().optional(),
1091
1335
  first_name: z.string().min(1).max(50).optional(),
1092
1336
  last_name: z.string().min(1).max(50).optional(),
1093
- role: z.enum([
1094
- 'Administrator',
1095
- 'User'
1096
- ]).optional(),
1097
- status: z.enum([
1098
- 'active',
1099
- 'inactive'
1100
- ]).optional()
1337
+ role: z.enum(['Administrator', 'User']).optional(),
1338
+ status: z.enum(['active', 'inactive']).optional()
1101
1339
  });
1102
- export const zGetUsageData = z.object({
1103
- body: z.never().optional(),
1104
- path: z.never().optional(),
1105
- query: z.never().optional()
1340
+ export const zGetUsageQuery = z.object({
1341
+ granularity: z.enum([
1342
+ 'hourly',
1343
+ 'daily',
1344
+ 'monthly'
1345
+ ]).optional().default('daily')
1106
1346
  });
1107
1347
  /**
1108
- * An array of usage records.
1348
+ * Usage data with facets for filtering
1109
1349
  */
1110
- export const zGetUsageResponse = z.array(zUsage);
1111
- export const zGetBalanceData = z.object({
1112
- body: z.never().optional(),
1113
- path: z.never().optional(),
1114
- query: z.never().optional()
1115
- });
1116
- /**
1117
- * Current balance of the organization in USD as a floating-point number.
1118
- */
1119
- export const zGetBalanceResponse = z.number();
1120
- export const zGetPaymentMethodData = z.object({
1121
- body: z.never().optional(),
1122
- path: z.never().optional(),
1123
- query: z.never().optional()
1124
- });
1350
+ export const zGetUsageResponse = zUsageResponse;
1125
1351
  /**
1126
1352
  * Redacted payment card information.
1127
1353
  */
1128
1354
  export const zGetPaymentMethodResponse = zPaymentMethod;
1129
- export const zGetPaymentMethodSecretData = z.object({
1130
- body: z.never().optional(),
1131
- path: z.never().optional(),
1132
- query: z.never().optional()
1133
- });
1134
1355
  /**
1135
1356
  * 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.
1136
1357
  *
@@ -1138,386 +1359,324 @@ export const zGetPaymentMethodSecretData = z.object({
1138
1359
  export const zGetPaymentMethodSecretResponse = z.object({
1139
1360
  id: z.string().optional()
1140
1361
  });
1141
- export const zListInvoicesData = z.object({
1142
- body: z.never().optional(),
1143
- path: z.never().optional(),
1144
- query: z.object({
1145
- start_date: z.string(),
1146
- end_date: z.string()
1147
- })
1148
- });
1149
1362
  /**
1150
1363
  * An array of usage records.
1151
1364
  */
1152
1365
  export const zListInvoicesResponse = z.array(zInvoice);
1153
- export const zGetInvoiceData = z.object({
1154
- body: z.never().optional(),
1155
- path: z.object({
1156
- id: z.string()
1157
- }),
1158
- query: z.never().optional()
1159
- });
1160
- /**
1161
- * Returns a single Invoice HTML representation under `html` property.
1162
- */
1163
- export const zGetInvoiceResponse = z.object({
1164
- html: z.string().optional()
1165
- });
1166
- export const zGetContactData = z.object({
1167
- body: z.never().optional(),
1168
- path: z.never().optional(),
1169
- query: z.never().optional()
1170
- });
1171
1366
  /**
1172
1367
  * Returns a single object containing organization contact and billing address details.
1173
1368
  */
1174
1369
  export const zGetContactResponse = zBillingContact;
1175
- export const zUpdateContactData = z.object({
1176
- body: zBillingContact,
1177
- path: z.never().optional(),
1178
- query: z.never().optional()
1179
- });
1370
+ export const zUpdateContactBody = zBillingContact;
1180
1371
  /**
1181
1372
  * Successfully updated. Returns updated organization details.
1182
1373
  */
1183
1374
  export const zUpdateContactResponse = zBillingContact;
1184
- export const zGetCreditsData = z.object({
1185
- body: z.never().optional(),
1186
- path: z.never().optional(),
1187
- query: z.never().optional()
1188
- });
1189
1375
  /**
1190
1376
  * An array of the applied promotional credits records.
1191
1377
  */
1192
1378
  export const zGetCreditsResponse = z.array(zBillingCredits);
1193
- export const zRedeemCreditsData = z.object({
1194
- body: z.object({
1195
- code: z.string().optional()
1196
- }),
1197
- path: z.never().optional(),
1198
- query: z.never().optional()
1379
+ export const zRedeemCreditsBody = z.object({
1380
+ code: z.string().optional()
1199
1381
  });
1200
- export const zListChartsData = z.object({
1201
- body: z.never().optional(),
1202
- path: z.object({
1203
- cluster_id: z.string()
1204
- }),
1205
- query: z.never().optional()
1382
+ export const zListChartsPath = z.object({
1383
+ cluster_id: z.string()
1206
1384
  });
1207
1385
  /**
1208
1386
  * An array of charts
1209
1387
  */
1210
1388
  export const zListChartsResponse = z.array(zChart);
1211
- export const zCreateChartData = z.object({
1212
- body: zChartCreateInput,
1213
- path: z.object({
1214
- cluster_id: z.string()
1215
- }),
1216
- query: z.never().optional()
1389
+ export const zCreateChartBody = zChartCreateInput;
1390
+ export const zCreateChartPath = z.object({
1391
+ cluster_id: z.string()
1217
1392
  });
1218
1393
  /**
1219
1394
  * Successfully created. Returns created Chart ID.
1220
1395
  */
1221
1396
  export const zCreateChartResponse = z.string();
1222
- export const zDeleteChartData = z.object({
1223
- body: z.never().optional(),
1224
- path: z.object({
1225
- cluster_id: z.string(),
1226
- chart_name: z.string()
1227
- }),
1228
- query: z.never().optional()
1397
+ export const zDeleteChartPath = z.object({
1398
+ cluster_id: z.string(),
1399
+ chart_name: z.string()
1229
1400
  });
1230
1401
  /**
1231
1402
  * Successfully deleted.
1232
1403
  */
1233
1404
  export const zDeleteChartResponse = z.string();
1234
- export const zGetChartData = z.object({
1235
- body: z.never().optional(),
1236
- path: z.object({
1237
- cluster_id: z.string(),
1238
- chart_name: z.string()
1239
- }),
1240
- query: z.never().optional()
1405
+ export const zGetChartPath = z.object({
1406
+ cluster_id: z.string(),
1407
+ chart_name: z.string()
1241
1408
  });
1242
1409
  /**
1243
1410
  * Returns a single object containing chart details.
1244
1411
  */
1245
1412
  export const zGetChartResponse = zChart;
1246
- export const zUpdateChartData = z.object({
1247
- body: zChartUpdateInput,
1248
- path: z.object({
1249
- cluster_id: z.string(),
1250
- chart_name: z.string()
1251
- }),
1252
- query: z.never().optional()
1413
+ export const zUpdateChartBody = zChartUpdateInput;
1414
+ export const zUpdateChartPath = z.object({
1415
+ cluster_id: z.string(),
1416
+ chart_name: z.string()
1253
1417
  });
1254
1418
  /**
1255
1419
  * Successfully updated.
1256
1420
  */
1257
1421
  export const zUpdateChartResponse = z.string();
1258
- export const zListFleetsData = z.object({
1259
- body: z.never().optional(),
1260
- path: z.object({
1261
- cluster_id: z.string()
1262
- }),
1263
- query: z.never().optional()
1422
+ export const zListFleetsPath = z.object({
1423
+ cluster_id: z.string()
1264
1424
  });
1265
1425
  /**
1266
1426
  * An array of fleets
1267
1427
  */
1268
1428
  export const zListFleetsResponse = z.array(zFleet);
1269
- export const zCreateFleetData = z.object({
1270
- body: zFleetCreateInput,
1271
- path: z.object({
1272
- cluster_id: z.string()
1273
- }),
1274
- query: z.never().optional()
1429
+ export const zCreateFleetBody = zFleetCreateInput;
1430
+ export const zCreateFleetPath = z.object({
1431
+ cluster_id: z.string()
1275
1432
  });
1276
1433
  /**
1277
1434
  * Successfully created. Returns created Fleet ID.
1278
1435
  */
1279
1436
  export const zCreateFleetResponse = z.string();
1280
- export const zDeleteFleetData = z.object({
1281
- body: z.never().optional(),
1282
- path: z.object({
1283
- cluster_id: z.string(),
1284
- fleet_name: z.string()
1285
- }),
1286
- query: z.never().optional()
1437
+ export const zDeleteFleetPath = z.object({
1438
+ cluster_id: z.string(),
1439
+ fleet_name: z.string()
1287
1440
  });
1288
1441
  /**
1289
1442
  * Successfully deleted.
1290
1443
  */
1291
1444
  export const zDeleteFleetResponse = z.string();
1292
- export const zGetFleetData = z.object({
1293
- body: z.never().optional(),
1294
- path: z.object({
1295
- cluster_id: z.string(),
1296
- fleet_name: z.string()
1297
- }),
1298
- query: z.never().optional()
1445
+ export const zGetFleetPath = z.object({
1446
+ cluster_id: z.string(),
1447
+ fleet_name: z.string()
1299
1448
  });
1300
1449
  /**
1301
1450
  * Returns a single object containing fleet details.
1302
1451
  */
1303
1452
  export const zGetFleetResponse = zFleet;
1304
- export const zUpdateFleetData = z.object({
1305
- body: zFleetUpdateInput,
1306
- path: z.object({
1307
- cluster_id: z.string(),
1308
- fleet_name: z.string()
1309
- }),
1310
- query: z.never().optional()
1453
+ export const zUpdateFleetBody = zFleetUpdateInput;
1454
+ export const zUpdateFleetPath = z.object({
1455
+ cluster_id: z.string(),
1456
+ fleet_name: z.string()
1311
1457
  });
1312
1458
  /**
1313
1459
  * Successfully updated.
1314
1460
  */
1315
1461
  export const zUpdateFleetResponse = z.string();
1316
- export const zQueryClusterData = z.object({
1317
- body: z.never().optional(),
1318
- path: z.object({
1319
- cluster_id: z.string()
1320
- }),
1321
- query: z.never().optional()
1322
- });
1323
- export const zListClustersData = z.object({
1324
- body: z.never().optional(),
1325
- path: z.never().optional(),
1326
- query: z.never().optional()
1462
+ export const zQueryClusterPath = z.object({
1463
+ cluster_id: z.string()
1327
1464
  });
1328
1465
  /**
1329
1466
  * An array of clusters
1330
1467
  */
1331
1468
  export const zListClustersResponse = z.array(zCluster);
1332
- export const zCreateClusterData = z.object({
1333
- body: zClusterCreateInput,
1334
- path: z.never().optional(),
1335
- query: z.never().optional()
1336
- });
1469
+ export const zCreateClusterBody = zClusterCreateInput;
1337
1470
  /**
1338
1471
  * Successfully created. Returns created Cluster ID.
1339
1472
  */
1340
1473
  export const zCreateClusterResponse = z.string();
1341
- export const zDeleteClusterData = z.object({
1342
- body: z.never().optional(),
1343
- path: z.object({
1344
- cluster_id: z.string()
1345
- }),
1346
- query: z.never().optional()
1474
+ export const zDeleteClusterPath = z.object({
1475
+ cluster_id: z.string()
1347
1476
  });
1348
1477
  /**
1349
1478
  * Successfully deleted.
1350
1479
  */
1351
1480
  export const zDeleteClusterResponse = z.string();
1352
- export const zGetClusterData = z.object({
1353
- body: z.never().optional(),
1354
- path: z.object({
1355
- cluster_id: z.string()
1356
- }),
1357
- query: z.never().optional()
1481
+ export const zGetClusterPath = z.object({
1482
+ cluster_id: z.string()
1358
1483
  });
1359
1484
  /**
1360
1485
  * Returns a single object containing cluster details.
1361
1486
  */
1362
1487
  export const zGetClusterResponse = zCluster;
1363
- export const zUpdateClusterData = z.object({
1364
- body: zClusterUpdateInput,
1365
- path: z.object({
1366
- cluster_id: z.string()
1367
- }),
1368
- query: z.never().optional()
1488
+ export const zUpdateClusterBody = zClusterUpdateInput;
1489
+ export const zUpdateClusterPath = z.object({
1490
+ cluster_id: z.string()
1369
1491
  });
1370
1492
  /**
1371
1493
  * Successfully updated. Returns updated cluster details.
1372
1494
  */
1373
1495
  export const zUpdateClusterResponse = zCluster;
1374
- export const zGetJoinInformationData = z.object({
1375
- body: z.never().optional(),
1376
- path: z.object({
1377
- cluster_id: z.string()
1378
- }),
1379
- query: z.never().optional()
1496
+ export const zGetJoinInformationPath = z.object({
1497
+ cluster_id: z.string()
1380
1498
  });
1381
1499
  /**
1382
1500
  * An object of cluster join information
1383
1501
  */
1384
- export const zGetJoinInformationResponse = zCluster;
1385
- export const zListInvitesData = z.object({
1386
- body: z.never().optional(),
1387
- path: z.never().optional(),
1388
- query: z.never().optional()
1389
- });
1502
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1390
1503
  /**
1391
1504
  * An array of invites
1392
1505
  */
1393
1506
  export const zListInvitesResponse = z.array(zInvite);
1394
- export const zCreateInviteData = z.object({
1395
- body: z.object({
1396
- email: z.string().optional()
1397
- }),
1398
- path: z.never().optional(),
1399
- query: z.never().optional()
1507
+ export const zCreateInviteBody = z.object({
1508
+ email: z.string().optional()
1400
1509
  });
1401
1510
  /**
1402
1511
  * Successfully created. Returns created invite details.
1403
1512
  */
1404
1513
  export const zCreateInviteResponse = zInvite;
1405
- export const zGetInviteData = z.object({
1406
- body: z.never().optional(),
1407
- path: z.object({
1408
- code: z.string()
1409
- }),
1410
- query: z.never().optional()
1514
+ export const zGetInvitePath = z.object({
1515
+ code: z.string()
1411
1516
  });
1412
1517
  /**
1413
1518
  * Returns a single object containing invite details.
1414
1519
  */
1415
1520
  export const zGetInviteResponse = zInvite;
1416
- export const zDeleteInviteData = z.object({
1417
- body: z.never().optional(),
1418
- path: z.object({
1419
- email: z.string()
1420
- }),
1421
- query: z.never().optional()
1422
- });
1423
- export const zListMarketplaceChartsData = z.object({
1424
- body: z.never().optional(),
1425
- path: z.never().optional(),
1426
- query: z.never().optional()
1521
+ export const zDeleteInvitePath = z.object({
1522
+ email: z.string()
1427
1523
  });
1428
1524
  /**
1429
1525
  * An array of chart listings in the marketplace.
1430
1526
  */
1431
1527
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1432
- export const zGetMarketplaceChartData = z.object({
1433
- body: z.never().optional(),
1434
- path: z.object({
1435
- listing_id: z.string()
1436
- }),
1437
- query: z.never().optional()
1528
+ export const zGetMarketplaceChartFilesPath = z.object({
1529
+ chart_name: z.string(),
1530
+ version_channel: z.string()
1531
+ });
1532
+ /**
1533
+ * Returns an object containing the chart files for the latest matching version.
1534
+ */
1535
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1536
+ /**
1537
+ * JSON-RPC 2.0 request payload
1538
+ */
1539
+ export const zPostMcpBody = z.object({
1540
+ jsonrpc: z.string().optional(),
1541
+ method: z.string().optional(),
1542
+ id: z.union([
1543
+ z.string(),
1544
+ z.number()
1545
+ ]).optional(),
1546
+ params: z.record(z.string(), z.unknown()).optional()
1438
1547
  });
1439
1548
  /**
1440
- * Returns an object containing the chart listing details.
1549
+ * JSON-RPC 2.0 success or error response
1441
1550
  */
1442
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
1443
- export const zGetOrganizationData = z.object({
1444
- body: z.never().optional(),
1445
- path: z.never().optional(),
1446
- query: z.never().optional()
1551
+ export const zPostMcpResponse = z.object({
1552
+ jsonrpc: z.string().optional(),
1553
+ id: z.union([
1554
+ z.string(),
1555
+ z.number()
1556
+ ]).optional(),
1557
+ result: z.record(z.string(), z.unknown()).optional(),
1558
+ error: z.object({
1559
+ code: z.int().optional(),
1560
+ message: z.string().optional()
1561
+ }).optional()
1447
1562
  });
1448
1563
  /**
1449
1564
  * Returns a single object containing organization details.
1450
1565
  */
1451
1566
  export const zGetOrganizationResponse = zOrganization;
1452
- export const zCreateOrganizationData = z.object({
1453
- body: zOrganizationCreateInput,
1454
- path: z.never().optional(),
1455
- query: z.never().optional()
1567
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1568
+ /**
1569
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1570
+ *
1571
+ */
1572
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1573
+ /**
1574
+ * List of repositories
1575
+ */
1576
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1577
+ export const zListTagsPath = z.object({
1578
+ region: z.string(),
1579
+ repository: z.string()
1580
+ });
1581
+ /**
1582
+ * Repository with tags
1583
+ */
1584
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1585
+ export const zDeleteTagPath = z.object({
1586
+ region: z.string(),
1587
+ repository: z.string(),
1588
+ tag: z.string()
1589
+ });
1590
+ export const zGetTagPath = z.object({
1591
+ region: z.string(),
1592
+ repository: z.string(),
1593
+ tag: z.string()
1594
+ });
1595
+ /**
1596
+ * Tag details
1597
+ */
1598
+ export const zGetTagResponse = zRegistryTag;
1599
+ /**
1600
+ * Tickets for the organization.
1601
+ */
1602
+ export const zListTicketsResponse = zTicketListResponse;
1603
+ export const zCreateTicketBody = z.object({
1604
+ payload: z.string().optional(),
1605
+ attachments: z.array(z.string()).optional()
1606
+ });
1607
+ /**
1608
+ * Ticket created.
1609
+ */
1610
+ export const zCreateTicketResponse = zTicket;
1611
+ export const zCloseTicketPath = z.object({
1612
+ ticket_id: z.string()
1456
1613
  });
1457
- export const zListTokensData = z.object({
1458
- body: z.never().optional(),
1459
- path: z.never().optional(),
1460
- query: z.never().optional()
1614
+ /**
1615
+ * Ticket closed.
1616
+ */
1617
+ export const zCloseTicketResponse = zTicket;
1618
+ export const zGetTicketPath = z.object({
1619
+ ticket_id: z.string()
1620
+ });
1621
+ /**
1622
+ * Ticket with messages (internal notes excluded).
1623
+ */
1624
+ export const zGetTicketResponse = zTicket;
1625
+ export const zReplyTicketBody = z.object({
1626
+ payload: z.string().optional(),
1627
+ attachments: z.array(z.string()).optional()
1628
+ });
1629
+ export const zReplyTicketPath = z.object({
1630
+ ticket_id: z.string()
1461
1631
  });
1632
+ /**
1633
+ * Reply appended.
1634
+ */
1635
+ export const zReplyTicketResponse = zTicketMessage;
1636
+ export const zGetTicketAttachmentPath = z.object({
1637
+ ticket_id: z.string(),
1638
+ attachment_id: z.string()
1639
+ });
1640
+ /**
1641
+ * Attachment binary stream.
1642
+ */
1643
+ export const zGetTicketAttachmentResponse = z.string();
1462
1644
  /**
1463
1645
  * Returns a list of access token details with masked secrets.
1464
1646
  */
1465
1647
  export const zListTokensResponse = z.array(zToken);
1466
- export const zCreateTokenData = z.object({
1467
- body: zTokenCreateInput,
1468
- path: z.never().optional(),
1469
- query: z.never().optional()
1470
- });
1648
+ export const zCreateTokenBody = zTokenCreateInput;
1471
1649
  /**
1472
1650
  * Successfully created. Returns created token details with unmasked/raw secret.
1473
1651
  */
1474
1652
  export const zCreateTokenResponse = zToken;
1475
- export const zDeleteTokenData = z.object({
1476
- body: z.never().optional(),
1477
- path: z.object({
1478
- token_id: z.string()
1479
- }),
1480
- query: z.never().optional()
1653
+ export const zDeleteTokenPath = z.object({
1654
+ token_id: z.string()
1481
1655
  });
1482
- export const zGetTokenData = z.object({
1483
- body: z.never().optional(),
1484
- path: z.object({
1485
- token_id: z.string()
1486
- }),
1487
- query: z.never().optional()
1656
+ export const zGetTokenPath = z.object({
1657
+ token_id: z.string()
1488
1658
  });
1489
1659
  /**
1490
1660
  * Returns access token details with masked secret.
1491
1661
  */
1492
1662
  export const zGetTokenResponse = zToken;
1493
- export const zUpdateTokenData = z.object({
1494
- body: zTokenUpdateInput,
1495
- path: z.object({
1496
- token_id: z.string()
1497
- }),
1498
- query: z.never().optional()
1663
+ export const zUpdateTokenBody = zTokenUpdateInput;
1664
+ export const zUpdateTokenPath = z.object({
1665
+ token_id: z.string()
1499
1666
  });
1500
1667
  /**
1501
1668
  * Successfully updated. Returns updated token details with masked secret.
1502
1669
  */
1503
1670
  export const zUpdateTokenResponse = zToken;
1504
- export const zRegenerateTokenData = z.object({
1505
- body: z.never().optional(),
1506
- path: z.object({
1507
- token_id: z.string()
1508
- }),
1509
- query: z.never().optional()
1671
+ export const zRegenerateTokenPath = z.object({
1672
+ token_id: z.string()
1510
1673
  });
1511
1674
  /**
1512
1675
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1513
1676
  */
1514
1677
  export const zRegenerateTokenResponse = zToken;
1515
- export const zListUserOrganizationsData = z.object({
1516
- body: z.never().optional(),
1517
- path: z.object({
1518
- email: z.string()
1519
- }),
1520
- query: z.never().optional()
1678
+ export const zListUserOrganizationsPath = z.object({
1679
+ email: z.string()
1521
1680
  });
1522
1681
  /**
1523
1682
  * An array of organizations the user belongs to.
@@ -1526,52 +1685,32 @@ export const zListUserOrganizationsResponse = z.array(z.object({
1526
1685
  realm: z.string().optional(),
1527
1686
  displayName: z.string().optional()
1528
1687
  }));
1529
- export const zListUsersData = z.object({
1530
- body: z.never().optional(),
1531
- path: z.never().optional(),
1532
- query: z.never().optional()
1533
- });
1534
1688
  /**
1535
1689
  * An array of users
1536
1690
  */
1537
1691
  export const zListUsersResponse = z.array(zUser);
1538
- export const zCreateUserData = z.object({
1539
- body: zUserCreateInput,
1540
- path: z.never().optional(),
1541
- query: z.never().optional()
1542
- });
1692
+ export const zCreateUserBody = zUserCreateInput;
1543
1693
  /**
1544
1694
  * Successfully created. Returns created user details.
1545
1695
  */
1546
1696
  export const zCreateUserResponse = zUser;
1547
- export const zDeleteUserData = z.object({
1548
- body: z.never().optional(),
1549
- path: z.object({
1550
- user_id: z.string()
1551
- }),
1552
- query: z.never().optional()
1697
+ export const zDeleteUserPath = z.object({
1698
+ user_id: z.string()
1553
1699
  });
1554
1700
  /**
1555
1701
  * User profile information
1556
1702
  */
1557
1703
  export const zDeleteUserResponse = zUser;
1558
- export const zGetUserData = z.object({
1559
- body: z.never().optional(),
1560
- path: z.object({
1561
- user_id: z.string()
1562
- }),
1563
- query: z.never().optional()
1704
+ export const zGetUserPath = z.object({
1705
+ user_id: z.string()
1564
1706
  });
1565
1707
  /**
1566
1708
  * User profile information
1567
1709
  */
1568
1710
  export const zGetUserResponse = zUser;
1569
- export const zUpdateUserData = z.object({
1570
- body: zUserUpdateInput,
1571
- path: z.object({
1572
- user_id: z.string()
1573
- }),
1574
- query: z.never().optional()
1711
+ export const zUpdateUserBody = zUserUpdateInput;
1712
+ export const zUpdateUserPath = z.object({
1713
+ user_id: z.string()
1575
1714
  });
1576
1715
  /**
1577
1716
  * Successfully created. Returns created user details.