@cloudfleet/sdk 0.0.1-08e325d → 0.0.1-092d0b4

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