@cloudfleet/sdk 0.0.1-3de42b3 → 0.0.1-3f9bef8

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 (72) 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 +9 -0
  10. package/dist/client/index.d.ts.map +1 -0
  11. package/dist/client/index.js +7 -0
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/client/types.gen.d.ts +121 -0
  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.gen.d.ts +38 -0
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/utils.gen.js +229 -0
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +4 -4
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +2 -4
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/auth.gen.d.ts +19 -0
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/auth.gen.js +15 -0
  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.gen.js +58 -0
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/params.gen.d.ts +44 -0
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/params.gen.js +101 -0
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/pathSerializer.gen.d.ts +34 -0
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/pathSerializer.gen.js +107 -0
  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.gen.d.ts +79 -0
  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 +1367 -650
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +2690 -768
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +200 -83
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +263 -192
  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 +1243 -446
  67. package/dist/types.gen.d.ts.map +1 -1
  68. package/dist/zod.gen.d.ts +3607 -2234
  69. package/dist/zod.gen.d.ts.map +1 -1
  70. package/dist/zod.gen.js +1373 -828
  71. package/dist/zod.gen.js.map +1 -1
  72. package/package.json +29 -7
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,25 +179,22 @@ 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
- region: z.enum([
202
- 'staging',
203
- 'northamerica-central-1'
204
- ]).optional(),
205
- tier: z.enum([
206
- 'basic',
207
- 'pro'
208
- ]),
182
+ tier: z.enum(['basic', 'pro']),
183
+ region: z.string(),
209
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')
210
185
  });
211
186
  export const zClusterJoinInformation = z.object({
212
187
  certificate_authority: z.string(),
213
- endpoint: z.string().url(),
188
+ endpoint: z.url(),
189
+ cluster_dns: z.string(),
190
+ pod_cidr: z.string(),
214
191
  auth_key: z.string(),
215
192
  bootstrap_token: z.string(),
216
193
  versions: z.object({
217
194
  kubernetes: z.string(),
218
195
  tailscale: z.string(),
219
- containerd: z.string()
196
+ containerd: z.string(),
197
+ nvidia_driver: z.string()
220
198
  }),
221
199
  third_party_api_access_config: z.object({
222
200
  metadata_url: z.string(),
@@ -226,18 +204,12 @@ export const zClusterJoinInformation = z.object({
226
204
  });
227
205
  export const zCluster = z.object({
228
206
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
229
- region: z.enum([
230
- 'staging',
231
- 'northamerica-central-1'
232
- ]).optional(),
233
- tier: z.enum([
234
- 'basic',
235
- 'pro'
236
- ]),
237
- version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
238
- id: z.string().uuid(),
207
+ tier: z.enum(['basic', 'pro']),
208
+ region: z.string(),
209
+ id: z.uuid(),
239
210
  status: z.enum([
240
211
  'active',
212
+ 'disabled',
241
213
  'deleted',
242
214
  'creating',
243
215
  'deployed',
@@ -245,916 +217,1489 @@ export const zCluster = z.object({
245
217
  'updating'
246
218
  ]),
247
219
  endpoint: z.union([
248
- z.string().url(),
249
- z.enum([
250
- ''
251
- ])
220
+ z.url(),
221
+ z.enum([''])
222
+ ]).optional(),
223
+ endpoint_public: z.union([
224
+ z.url(),
225
+ z.enum([''])
252
226
  ]).optional(),
253
227
  certificate_ca: z.string().optional(),
254
228
  version_current: z.string().optional(),
255
229
  created_at: z.string().optional(),
256
230
  updated_at: z.string().optional(),
257
- 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()
258
233
  });
259
234
  export const zClusterUpdateInput = z.object({
260
235
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
236
+ tier: z.enum(['basic', 'pro']),
261
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()
262
238
  });
263
239
  export const zFleetCreateInput = z.object({
264
240
  limits: z.object({
265
- cpu: z.number().gte(0)
241
+ cpu: z.int().gte(0).lte(100000).optional()
266
242
  }).optional(),
267
243
  gcp: z.object({
268
- enabled: z.boolean().optional().default(true),
269
- project: z.string()
244
+ enabled: z.boolean(),
245
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
246
+ }).optional(),
247
+ hetzner: z.object({
248
+ enabled: z.boolean(),
249
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
270
250
  }).optional(),
271
- hetzner: z.union([
272
- z.object({
273
- enabled: z.boolean().optional().default(true),
274
- apiKey: z.string().optional()
275
- }),
276
- z.object({
277
- apiKey: z.string().optional(),
278
- enabled: z.boolean().optional().default(true)
279
- })
280
- ]).optional(),
281
251
  aws: z.object({
282
- enabled: z.boolean().optional().default(true),
283
- controllerRoleArn: z.string()
252
+ enabled: z.boolean(),
253
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
284
254
  }).optional(),
285
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
286
- type: z.enum([
287
- 'managed',
288
- 'connected'
289
- ])
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'),
486
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
290
487
  });
291
488
  export const zFleet = z.object({
292
489
  limits: z.object({
293
- cpu: z.number().gte(0)
490
+ cpu: z.int().gte(0).lte(100000).optional()
294
491
  }).optional(),
295
492
  gcp: z.object({
296
- enabled: z.boolean().optional().default(true),
297
- project: z.string()
493
+ enabled: z.boolean(),
494
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
495
+ }).optional(),
496
+ hetzner: z.object({
497
+ enabled: z.boolean(),
498
+ apiKey: z.string().regex(/^\*{64}$/).optional()
298
499
  }).optional(),
299
- hetzner: z.union([
300
- z.object({
301
- enabled: z.boolean().optional().default(true),
302
- apiKey: z.string().optional()
303
- }),
304
- z.object({
305
- apiKey: z.string().optional(),
306
- enabled: z.boolean().optional().default(true)
307
- })
308
- ]).optional(),
309
500
  aws: z.object({
310
- enabled: z.boolean().optional().default(true),
311
- controllerRoleArn: z.string()
501
+ enabled: z.boolean(),
502
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
312
503
  }).optional(),
313
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
314
- type: z.enum([
315
- 'managed',
316
- 'connected'
317
- ])
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()
733
+ }).optional(),
734
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
735
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
318
736
  });
319
737
  export const zFleetUpdateInput = z.object({
320
738
  limits: z.object({
321
- cpu: z.number().gte(0)
739
+ cpu: z.int().gte(0).lte(100000).optional()
322
740
  }).optional(),
323
741
  gcp: z.object({
324
- enabled: z.boolean().optional().default(true),
325
- project: z.string()
742
+ enabled: z.boolean(),
743
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
744
+ }).optional(),
745
+ hetzner: z.object({
746
+ enabled: z.boolean(),
747
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
326
748
  }).optional(),
327
- hetzner: z.union([
328
- z.object({
329
- enabled: z.boolean().optional().default(true),
330
- apiKey: z.string().optional()
331
- }),
332
- z.object({
333
- apiKey: z.string().optional(),
334
- enabled: z.boolean().optional().default(true)
335
- })
336
- ]).optional(),
337
749
  aws: z.object({
338
- enabled: z.boolean().optional().default(true),
339
- controllerRoleArn: z.string()
340
- }).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')
341
988
  });
342
989
  export const zInvite = z.object({
343
990
  id: z.string().optional(),
344
- organization_id: z.string().uuid().optional(),
345
- date_created: z.string().datetime(),
346
- email: z.string().email().optional(),
347
- 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')
348
996
  });
349
997
  export const zInvoice = z.object({
350
- id: z.string().uuid().optional(),
351
- organizationId: z.string().uuid().optional(),
352
- status: z.enum([
353
- 'DRAFT',
354
- 'COMMITTED',
355
- 'VOID'
356
- ]).optional(),
357
- amount: z.number().optional(),
358
- currency: z.enum([
359
- 'AED',
360
- 'AFN',
361
- 'ALL',
362
- 'AMD',
363
- 'ANG',
364
- 'AOA',
365
- 'ARS',
366
- 'AUD',
367
- 'AWG',
368
- 'AZN',
369
- 'BAM',
370
- 'BBD',
371
- 'BDT',
372
- 'BGN',
373
- 'BHD',
374
- 'BIF',
375
- 'BMD',
376
- 'BND',
377
- 'BOB',
378
- 'BRL',
379
- 'BSD',
380
- 'BTN',
381
- 'BWP',
382
- 'BYR',
383
- 'BZD',
384
- 'CAD',
385
- 'CDF',
386
- 'CHF',
387
- 'CLP',
388
- 'CNY',
389
- 'COP',
390
- 'CRC',
391
- 'CUC',
392
- 'CUP',
393
- 'CVE',
394
- 'CZK',
395
- 'DJF',
396
- 'DKK',
397
- 'DOP',
398
- 'DZD',
399
- 'EGP',
400
- 'ERN',
401
- 'ETB',
402
- 'EUR',
403
- 'FJD',
404
- 'FKP',
405
- 'GBP',
406
- 'GEL',
407
- 'GGP',
408
- 'GHS',
409
- 'GIP',
410
- 'GMD',
411
- 'GNF',
412
- 'GTQ',
413
- 'GYD',
414
- 'HKD',
415
- 'HNL',
416
- 'HRK',
417
- 'HTG',
418
- 'HUF',
419
- 'IDR',
420
- 'ILS',
421
- 'IMP',
422
- 'INR',
423
- 'IQD',
424
- 'IRR',
425
- 'ISK',
426
- 'JEP',
427
- 'JMD',
428
- 'JOD',
429
- 'JPY',
430
- 'KES',
431
- 'KGS',
432
- 'KHR',
433
- 'KMF',
434
- 'KPW',
435
- 'KRW',
436
- 'KWD',
437
- 'KYD',
438
- 'KZT',
439
- 'LAK',
440
- 'LBP',
441
- 'LKR',
442
- 'LRD',
443
- 'LSL',
444
- 'LTL',
445
- 'LVL',
446
- 'LYD',
447
- 'MAD',
448
- 'MDL',
449
- 'MGA',
450
- 'MKD',
451
- 'MMK',
452
- 'MNT',
453
- 'MOP',
454
- 'MRO',
455
- 'MUR',
456
- 'MVR',
457
- 'MWK',
458
- 'MXN',
459
- 'MYR',
460
- 'MZN',
461
- 'NAD',
462
- 'NGN',
463
- 'NIO',
464
- 'NOK',
465
- 'NPR',
466
- 'NZD',
467
- 'OMR',
468
- 'PAB',
469
- 'PEN',
470
- 'PGK',
471
- 'PHP',
472
- 'PKR',
473
- 'PLN',
474
- 'PYG',
475
- 'QAR',
476
- 'RON',
477
- 'RSD',
478
- 'RUB',
479
- 'RWF',
480
- 'SAR',
481
- 'SBD',
482
- 'SCR',
483
- 'SDG',
484
- 'SEK',
485
- 'SGD',
486
- 'SHP',
487
- 'SLL',
488
- 'SOS',
489
- 'SPL',
490
- 'SRD',
491
- 'STD',
492
- 'SVC',
493
- 'SYP',
494
- 'SZL',
495
- 'THB',
496
- 'TJS',
497
- 'TMT',
498
- 'TND',
499
- 'TOP',
500
- 'TRY',
501
- 'TTD',
502
- 'TVD',
503
- 'TWD',
504
- 'TZS',
505
- 'UAH',
506
- 'UGX',
507
- 'USD',
508
- 'UYU',
509
- 'UZS',
510
- 'VEF',
511
- 'VND',
512
- 'VUV',
513
- 'WST',
514
- 'XAF',
515
- 'XCD',
516
- 'XDR',
517
- 'XOF',
518
- 'XPF',
519
- 'YER',
520
- 'ZAR',
521
- 'ZMW',
522
- 'ZWD',
523
- 'BTC'
524
- ]).optional(),
525
- creditAdj: z.number().optional(),
526
- refundAdj: z.number().optional(),
527
- invoiceDate: z.string().optional(),
528
- targetDate: z.string().optional(),
529
- invoiceNumber: z.string().optional(),
530
- balance: z.number().optional(),
531
- bundleKeys: z.string().optional(),
532
- credits: z.array(z.object({
533
- id: z.string().uuid().optional(),
534
- linkedInvoiceItemId: z.string().uuid().optional(),
535
- productName: z.string().optional(),
536
- planName: z.string().optional(),
537
- phaseName: z.string().optional(),
538
- usageName: z.string().optional(),
539
- prettyProductName: z.string().optional(),
540
- prettyPlanName: z.string().optional(),
541
- prettyPhaseName: z.string().optional(),
542
- prettyUsageName: z.string().optional(),
543
- itemType: z.enum([
544
- 'EXTERNAL_CHARGE',
545
- 'FIXED',
546
- 'RECURRING',
547
- 'REPAIR_ADJ',
548
- 'CBA_ADJ',
549
- 'CREDIT_ADJ',
550
- 'ITEM_ADJ',
551
- 'USAGE',
552
- 'TAX',
553
- 'PARENT_SUMMARY'
554
- ]).optional(),
555
- description: z.string().optional(),
556
- startDate: z.string().optional(),
557
- endDate: z.string().optional(),
558
- amount: z.number().optional(),
559
- rate: z.number().optional(),
560
- currency: z.enum([
561
- 'AED',
562
- 'AFN',
563
- 'ALL',
564
- 'AMD',
565
- 'ANG',
566
- 'AOA',
567
- 'ARS',
568
- 'AUD',
569
- 'AWG',
570
- 'AZN',
571
- 'BAM',
572
- 'BBD',
573
- 'BDT',
574
- 'BGN',
575
- 'BHD',
576
- 'BIF',
577
- 'BMD',
578
- 'BND',
579
- 'BOB',
580
- 'BRL',
581
- 'BSD',
582
- 'BTN',
583
- 'BWP',
584
- 'BYR',
585
- 'BZD',
586
- 'CAD',
587
- 'CDF',
588
- 'CHF',
589
- 'CLP',
590
- 'CNY',
591
- 'COP',
592
- 'CRC',
593
- 'CUC',
594
- 'CUP',
595
- 'CVE',
596
- 'CZK',
597
- 'DJF',
598
- 'DKK',
599
- 'DOP',
600
- 'DZD',
601
- 'EGP',
602
- 'ERN',
603
- 'ETB',
604
- 'EUR',
605
- 'FJD',
606
- 'FKP',
607
- 'GBP',
608
- 'GEL',
609
- 'GGP',
610
- 'GHS',
611
- 'GIP',
612
- 'GMD',
613
- 'GNF',
614
- 'GTQ',
615
- 'GYD',
616
- 'HKD',
617
- 'HNL',
618
- 'HRK',
619
- 'HTG',
620
- 'HUF',
621
- 'IDR',
622
- 'ILS',
623
- 'IMP',
624
- 'INR',
625
- 'IQD',
626
- 'IRR',
627
- 'ISK',
628
- 'JEP',
629
- 'JMD',
630
- 'JOD',
631
- 'JPY',
632
- 'KES',
633
- 'KGS',
634
- 'KHR',
635
- 'KMF',
636
- 'KPW',
637
- 'KRW',
638
- 'KWD',
639
- 'KYD',
640
- 'KZT',
641
- 'LAK',
642
- 'LBP',
643
- 'LKR',
644
- 'LRD',
645
- 'LSL',
646
- 'LTL',
647
- 'LVL',
648
- 'LYD',
649
- 'MAD',
650
- 'MDL',
651
- 'MGA',
652
- 'MKD',
653
- 'MMK',
654
- 'MNT',
655
- 'MOP',
656
- 'MRO',
657
- 'MUR',
658
- 'MVR',
659
- 'MWK',
660
- 'MXN',
661
- 'MYR',
662
- 'MZN',
663
- 'NAD',
664
- 'NGN',
665
- 'NIO',
666
- 'NOK',
667
- 'NPR',
668
- 'NZD',
669
- 'OMR',
670
- 'PAB',
671
- 'PEN',
672
- 'PGK',
673
- 'PHP',
674
- 'PKR',
675
- 'PLN',
676
- 'PYG',
677
- 'QAR',
678
- 'RON',
679
- 'RSD',
680
- 'RUB',
681
- 'RWF',
682
- 'SAR',
683
- 'SBD',
684
- 'SCR',
685
- 'SDG',
686
- 'SEK',
687
- 'SGD',
688
- 'SHP',
689
- 'SLL',
690
- 'SOS',
691
- 'SPL',
692
- 'SRD',
693
- 'STD',
694
- 'SVC',
695
- 'SYP',
696
- 'SZL',
697
- 'THB',
698
- 'TJS',
699
- 'TMT',
700
- 'TND',
701
- 'TOP',
702
- 'TRY',
703
- 'TTD',
704
- 'TVD',
705
- 'TWD',
706
- 'TZS',
707
- 'UAH',
708
- 'UGX',
709
- 'USD',
710
- 'UYU',
711
- 'UZS',
712
- 'VEF',
713
- 'VND',
714
- 'VUV',
715
- 'WST',
716
- 'XAF',
717
- 'XCD',
718
- 'XDR',
719
- 'XOF',
720
- 'XPF',
721
- 'YER',
722
- 'ZAR',
723
- 'ZMW',
724
- 'ZWD',
725
- 'BTC'
726
- ]).optional(),
727
- quantity: z.number().optional(),
728
- itemDetails: z.string().optional(),
729
- catalogEffectiveDate: z.string().optional(),
730
- childItems: z.array(z.unknown()).optional()
731
- })).optional(),
732
- items: z.array(z.object({
733
- id: z.string().uuid().optional(),
734
- linkedInvoiceItemId: z.string().uuid().optional(),
735
- productName: z.string().optional(),
736
- planName: z.string().optional(),
737
- phaseName: z.string().optional(),
738
- usageName: z.string().optional(),
739
- prettyProductName: z.string().optional(),
740
- prettyPlanName: z.string().optional(),
741
- prettyPhaseName: z.string().optional(),
742
- prettyUsageName: z.string().optional(),
743
- itemType: z.enum([
744
- 'EXTERNAL_CHARGE',
745
- 'FIXED',
746
- 'RECURRING',
747
- 'REPAIR_ADJ',
748
- 'CBA_ADJ',
749
- 'CREDIT_ADJ',
750
- 'ITEM_ADJ',
751
- 'USAGE',
752
- 'TAX',
753
- 'PARENT_SUMMARY'
754
- ]).optional(),
755
- description: z.string().optional(),
756
- startDate: z.string().optional(),
757
- endDate: z.string().optional(),
758
- amount: z.number().optional(),
759
- rate: z.number().optional(),
760
- currency: z.enum([
761
- 'AED',
762
- 'AFN',
763
- 'ALL',
764
- 'AMD',
765
- 'ANG',
766
- 'AOA',
767
- 'ARS',
768
- 'AUD',
769
- 'AWG',
770
- 'AZN',
771
- 'BAM',
772
- 'BBD',
773
- 'BDT',
774
- 'BGN',
775
- 'BHD',
776
- 'BIF',
777
- 'BMD',
778
- 'BND',
779
- 'BOB',
780
- 'BRL',
781
- 'BSD',
782
- 'BTN',
783
- 'BWP',
784
- 'BYR',
785
- 'BZD',
786
- 'CAD',
787
- 'CDF',
788
- 'CHF',
789
- 'CLP',
790
- 'CNY',
791
- 'COP',
792
- 'CRC',
793
- 'CUC',
794
- 'CUP',
795
- 'CVE',
796
- 'CZK',
797
- 'DJF',
798
- 'DKK',
799
- 'DOP',
800
- 'DZD',
801
- 'EGP',
802
- 'ERN',
803
- 'ETB',
804
- 'EUR',
805
- 'FJD',
806
- 'FKP',
807
- 'GBP',
808
- 'GEL',
809
- 'GGP',
810
- 'GHS',
811
- 'GIP',
812
- 'GMD',
813
- 'GNF',
814
- 'GTQ',
815
- 'GYD',
816
- 'HKD',
817
- 'HNL',
818
- 'HRK',
819
- 'HTG',
820
- 'HUF',
821
- 'IDR',
822
- 'ILS',
823
- 'IMP',
824
- 'INR',
825
- 'IQD',
826
- 'IRR',
827
- 'ISK',
828
- 'JEP',
829
- 'JMD',
830
- 'JOD',
831
- 'JPY',
832
- 'KES',
833
- 'KGS',
834
- 'KHR',
835
- 'KMF',
836
- 'KPW',
837
- 'KRW',
838
- 'KWD',
839
- 'KYD',
840
- 'KZT',
841
- 'LAK',
842
- 'LBP',
843
- 'LKR',
844
- 'LRD',
845
- 'LSL',
846
- 'LTL',
847
- 'LVL',
848
- 'LYD',
849
- 'MAD',
850
- 'MDL',
851
- 'MGA',
852
- 'MKD',
853
- 'MMK',
854
- 'MNT',
855
- 'MOP',
856
- 'MRO',
857
- 'MUR',
858
- 'MVR',
859
- 'MWK',
860
- 'MXN',
861
- 'MYR',
862
- 'MZN',
863
- 'NAD',
864
- 'NGN',
865
- 'NIO',
866
- 'NOK',
867
- 'NPR',
868
- 'NZD',
869
- 'OMR',
870
- 'PAB',
871
- 'PEN',
872
- 'PGK',
873
- 'PHP',
874
- 'PKR',
875
- 'PLN',
876
- 'PYG',
877
- 'QAR',
878
- 'RON',
879
- 'RSD',
880
- 'RUB',
881
- 'RWF',
882
- 'SAR',
883
- 'SBD',
884
- 'SCR',
885
- 'SDG',
886
- 'SEK',
887
- 'SGD',
888
- 'SHP',
889
- 'SLL',
890
- 'SOS',
891
- 'SPL',
892
- 'SRD',
893
- 'STD',
894
- 'SVC',
895
- 'SYP',
896
- 'SZL',
897
- 'THB',
898
- 'TJS',
899
- 'TMT',
900
- 'TND',
901
- 'TOP',
902
- 'TRY',
903
- 'TTD',
904
- 'TVD',
905
- 'TWD',
906
- 'TZS',
907
- 'UAH',
908
- 'UGX',
909
- 'USD',
910
- 'UYU',
911
- 'UZS',
912
- 'VEF',
913
- 'VND',
914
- 'VUV',
915
- 'WST',
916
- 'XAF',
917
- 'XCD',
918
- 'XDR',
919
- 'XOF',
920
- 'XPF',
921
- 'YER',
922
- 'ZAR',
923
- 'ZMW',
924
- 'ZWD',
925
- 'BTC'
926
- ]).optional(),
927
- quantity: z.number().optional(),
928
- itemDetails: z.string().optional(),
929
- catalogEffectiveDate: z.string().optional(),
930
- childItems: z.array(z.unknown()).optional()
931
- })).optional()
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()
932
1012
  });
933
1013
  export const zMarketplaceListing = z.object({
934
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
935
1014
  name: z.string(),
936
- developer: z.string(),
937
- description: z.string(),
938
- logoUrl: z.string(),
939
- longDescription: z.string(),
940
- 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-]+)*))?$/)),
941
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-]+)*))?$/)),
942
- value_schemas: z.array(z.object({
943
- 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-]+)*))?$/),
944
- schema: z.string(),
945
- placeholder: z.string()
946
- }))
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()
947
1033
  });
948
1034
  export const zOrganizationCreateInput = z.object({
949
- email: z.string().email(),
950
- first_name: z.string(),
951
- 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),
952
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,}$/),
953
1040
  password: z.string().min(8)
954
1041
  });
1042
+ export const zOrganizationCreateOutput = z.object({
1043
+ id: z.string()
1044
+ });
955
1045
  export const zOrganization = z.object({
956
- id: z.string().uuid(),
1046
+ id: z.uuid(),
957
1047
  name: z.string().min(2).max(120).optional(),
958
- date_created: z.string().datetime(),
1048
+ type: z.enum(['business', 'personal']),
1049
+ date_created: z.iso.datetime(),
959
1050
  quota: z.object({
960
- basic_clusters_max: z.number().int().gte(0),
961
- basic_clusters_available: z.number().int(),
962
- pro_clusters_max: z.number().int().gte(0),
963
- pro_clusters_available: z.number().int(),
964
- fleets_max: z.number().int().gte(0),
965
- managed_fleets_cpu_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),
966
1056
  cluster_tiers: z.array(z.string()).min(0),
967
1057
  regions: z.array(z.string()).min(1),
968
1058
  versions: z.array(z.object({
969
1059
  id: z.string(),
970
1060
  label: z.string()
971
- })).min(1)
1061
+ })).min(1),
1062
+ cfcr_storage_gb: z.int().gte(-1)
972
1063
  }),
973
1064
  status: z.enum([
974
1065
  'active',
975
1066
  'closed',
976
1067
  'suspended'
1068
+ ]),
1069
+ verification: z.enum([
1070
+ 'none',
1071
+ 'submitted',
1072
+ 'verified'
977
1073
  ])
978
1074
  });
979
1075
  export const zPaymentMethod = z.object({
980
- id: z.string().uuid(),
981
- setup: z.boolean(),
1076
+ id: z.string(),
982
1077
  type: z.enum([
983
- 'card'
1078
+ 'card',
1079
+ 'sepa_debit',
1080
+ 'bank_transfer'
984
1081
  ]),
985
1082
  last4: z.string(),
986
- exp_month: z.number().int().gte(1).lte(12),
987
- exp_year: z.number().int().gte(2024),
988
- brand: z.enum([
989
- 'amex',
990
- 'diners',
991
- 'discover',
992
- 'eftpos_au',
993
- 'jcb',
994
- 'mastercard',
995
- 'unionpay',
996
- 'visa',
997
- 'unknown'
998
- ])
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()
999
1246
  });
1000
1247
  export const zTokenCreateInput = z.object({
1001
1248
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1002
- role: z.enum([
1003
- 'Administrator',
1004
- 'User'
1005
- ])
1249
+ role: z.enum(['Administrator', 'User'])
1006
1250
  });
1007
1251
  export const zToken = z.object({
1008
1252
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1009
- role: z.enum([
1010
- 'Administrator',
1011
- 'User'
1012
- ]),
1253
+ role: z.enum(['Administrator', 'User']),
1013
1254
  id: z.string().optional(),
1014
1255
  secret: z.string().optional(),
1015
- date_created: z.string().datetime()
1256
+ date_created: z.iso.datetime()
1016
1257
  });
1017
1258
  export const zTokenUpdateInput = z.object({
1018
1259
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
1019
- role: z.enum([
1020
- 'Administrator',
1021
- 'User'
1022
- ]).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
+ })
1023
1279
  });
1024
1280
  export const zUsage = z.object({
1025
- hour: z.string().optional(),
1026
- cluster_id: z.string().uuid(),
1027
- cluster_tier: z.enum([
1028
- 'basic',
1029
- 'pro',
1030
- ''
1031
- ]),
1032
- product: z.enum([
1033
- 'cfke_controlplane',
1034
- 'cfke_connected_nodes',
1035
- 'infra_compute',
1036
- 'infra_storage',
1037
- 'infra_loadbalancing',
1038
- 'infra_traffic',
1039
- 'cfcr_storage'
1040
- ]),
1041
- node_name: z.string(),
1042
- sku: z.string(),
1043
- cpu: z.union([
1044
- z.number(),
1045
- z.enum([
1046
- ''
1047
- ])
1048
- ]),
1049
- price: z.union([
1050
- z.number(),
1051
- z.enum([
1052
- ''
1053
- ])
1054
- ]),
1055
- value: z.union([
1056
- z.number(),
1057
- z.enum([
1058
- ''
1059
- ])
1060
- ]),
1061
- total: z.union([
1062
- z.number(),
1063
- z.enum([
1064
- ''
1065
- ])
1066
- ])
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()
1067
1287
  });
1068
1288
  export const zUserCreateInput = z.object({
1069
- email: z.string().email(),
1289
+ email: z.email(),
1070
1290
  first_name: z.string().min(1).max(50),
1071
1291
  last_name: z.string().min(1).max(50),
1072
1292
  code: z.string(),
1073
- password: z.string().min(8),
1074
- status: z.enum([
1075
- 'active',
1076
- 'inactive'
1077
- ]).optional(),
1078
- role: z.enum([
1079
- 'Administrator',
1080
- 'User'
1081
- ]).optional()
1293
+ password: z.string().min(8)
1082
1294
  });
1083
1295
  export const zUser = z.object({
1084
- email: z.string().email(),
1296
+ email: z.email(),
1085
1297
  first_name: z.string().min(1).max(50),
1086
1298
  last_name: z.string().min(1).max(50),
1087
- role: z.enum([
1088
- 'Administrator',
1089
- 'User'
1090
- ]),
1091
- status: z.enum([
1092
- 'active',
1093
- 'inactive'
1094
- ]),
1095
- id: z.string().uuid(),
1096
- 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()
1097
1303
  });
1098
1304
  export const zUserUpdateInput = z.object({
1099
- email: z.string().email().optional(),
1305
+ email: z.email().optional(),
1100
1306
  first_name: z.string().min(1).max(50).optional(),
1101
1307
  last_name: z.string().min(1).max(50).optional(),
1102
- role: z.enum([
1103
- 'Administrator',
1104
- 'User'
1105
- ]).optional(),
1106
- status: z.enum([
1107
- 'active',
1108
- 'inactive'
1109
- ]).optional()
1308
+ role: z.enum(['Administrator', 'User']).optional(),
1309
+ status: z.enum(['active', 'inactive']).optional()
1110
1310
  });
1111
- export const zGetUsageResponse = z.array(zUsage);
1112
- export const zGetBalanceResponse = z.number();
1113
- export const zGetPaymentMethodResponse = zPaymentMethod;
1311
+ export const zGetUsageQuery = z.object({
1312
+ granularity: z.enum([
1313
+ 'hourly',
1314
+ 'daily',
1315
+ 'monthly'
1316
+ ]).optional().default('daily')
1317
+ });
1318
+ /**
1319
+ * Usage data with facets for filtering
1320
+ */
1321
+ export const zGetUsageResponse = zUsageResponse;
1322
+ /**
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.
1324
+ *
1325
+ */
1114
1326
  export const zGetPaymentMethodSecretResponse = z.object({
1115
1327
  id: z.string().optional()
1116
1328
  });
1117
- export const zListInvoicesResponse = z.array(zInvoice);
1118
- export const zGetInvoiceResponse = z.object({
1119
- html: z.string().optional()
1329
+ /**
1330
+ * An array of payment methods.
1331
+ */
1332
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1333
+ export const zSetDefaultPaymentMethodPath = z.object({
1334
+ paymentMethodId: z.string()
1120
1335
  });
1336
+ /**
1337
+ * Default payment method updated.
1338
+ */
1339
+ export const zSetDefaultPaymentMethodResponse = z.void();
1340
+ export const zDeletePaymentMethodPath = z.object({
1341
+ paymentMethodId: z.string()
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);
1351
+ /**
1352
+ * Returns a single object containing organization contact and billing address details.
1353
+ */
1121
1354
  export const zGetContactResponse = zBillingContact;
1355
+ export const zUpdateContactBody = zBillingContact;
1356
+ /**
1357
+ * Successfully updated. Returns updated organization details.
1358
+ */
1122
1359
  export const zUpdateContactResponse = zBillingContact;
1360
+ /**
1361
+ * An array of the applied promotional credits records.
1362
+ */
1123
1363
  export const zGetCreditsResponse = z.array(zBillingCredits);
1364
+ export const zRedeemCreditsBody = z.object({
1365
+ code: z.string().optional()
1366
+ });
1367
+ export const zListChartsPath = z.object({
1368
+ cluster_id: z.string()
1369
+ });
1370
+ /**
1371
+ * An array of charts
1372
+ */
1124
1373
  export const zListChartsResponse = z.array(zChart);
1374
+ export const zCreateChartBody = zChartCreateInput;
1375
+ export const zCreateChartPath = z.object({
1376
+ cluster_id: z.string()
1377
+ });
1378
+ /**
1379
+ * Successfully created. Returns created Chart ID.
1380
+ */
1125
1381
  export const zCreateChartResponse = z.string();
1382
+ export const zDeleteChartPath = z.object({
1383
+ cluster_id: z.string(),
1384
+ chart_name: z.string()
1385
+ });
1386
+ /**
1387
+ * Successfully deleted.
1388
+ */
1126
1389
  export const zDeleteChartResponse = z.string();
1390
+ export const zGetChartPath = z.object({
1391
+ cluster_id: z.string(),
1392
+ chart_name: z.string()
1393
+ });
1394
+ /**
1395
+ * Returns a single object containing chart details.
1396
+ */
1127
1397
  export const zGetChartResponse = zChart;
1398
+ export const zUpdateChartBody = zChartUpdateInput;
1399
+ export const zUpdateChartPath = z.object({
1400
+ cluster_id: z.string(),
1401
+ chart_name: z.string()
1402
+ });
1403
+ /**
1404
+ * Successfully updated.
1405
+ */
1128
1406
  export const zUpdateChartResponse = z.string();
1407
+ export const zListFleetsPath = z.object({
1408
+ cluster_id: z.string()
1409
+ });
1410
+ /**
1411
+ * An array of fleets
1412
+ */
1129
1413
  export const zListFleetsResponse = z.array(zFleet);
1414
+ export const zCreateFleetBody = zFleetCreateInput;
1415
+ export const zCreateFleetPath = z.object({
1416
+ cluster_id: z.string()
1417
+ });
1418
+ /**
1419
+ * Successfully created. Returns created Fleet ID.
1420
+ */
1130
1421
  export const zCreateFleetResponse = z.string();
1422
+ export const zDeleteFleetPath = z.object({
1423
+ cluster_id: z.string(),
1424
+ fleet_name: z.string()
1425
+ });
1426
+ /**
1427
+ * Successfully deleted.
1428
+ */
1131
1429
  export const zDeleteFleetResponse = z.string();
1430
+ export const zGetFleetPath = z.object({
1431
+ cluster_id: z.string(),
1432
+ fleet_name: z.string()
1433
+ });
1434
+ /**
1435
+ * Returns a single object containing fleet details.
1436
+ */
1132
1437
  export const zGetFleetResponse = zFleet;
1438
+ export const zUpdateFleetBody = zFleetUpdateInput;
1439
+ export const zUpdateFleetPath = z.object({
1440
+ cluster_id: z.string(),
1441
+ fleet_name: z.string()
1442
+ });
1443
+ /**
1444
+ * Successfully updated.
1445
+ */
1133
1446
  export const zUpdateFleetResponse = z.string();
1447
+ export const zQueryClusterPath = z.object({
1448
+ cluster_id: z.string()
1449
+ });
1450
+ /**
1451
+ * An array of clusters
1452
+ */
1134
1453
  export const zListClustersResponse = z.array(zCluster);
1454
+ export const zCreateClusterBody = zClusterCreateInput;
1455
+ /**
1456
+ * Successfully created. Returns created Cluster ID.
1457
+ */
1135
1458
  export const zCreateClusterResponse = z.string();
1459
+ export const zDeleteClusterPath = z.object({
1460
+ cluster_id: z.string()
1461
+ });
1462
+ /**
1463
+ * Successfully deleted. The cluster has been torn down.
1464
+ */
1136
1465
  export const zDeleteClusterResponse = z.string();
1466
+ export const zGetClusterPath = z.object({
1467
+ cluster_id: z.string()
1468
+ });
1469
+ /**
1470
+ * Returns a single object containing cluster details.
1471
+ */
1137
1472
  export const zGetClusterResponse = zCluster;
1473
+ export const zUpdateClusterBody = zClusterUpdateInput;
1474
+ export const zUpdateClusterPath = z.object({
1475
+ cluster_id: z.string()
1476
+ });
1477
+ /**
1478
+ * Successfully updated. Returns updated cluster details.
1479
+ */
1138
1480
  export const zUpdateClusterResponse = zCluster;
1139
- export const zGetJoinInformationResponse = zCluster;
1481
+ export const zGetJoinInformationPath = z.object({
1482
+ cluster_id: z.string()
1483
+ });
1484
+ /**
1485
+ * An object of cluster join information
1486
+ */
1487
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1488
+ /**
1489
+ * An array of invites
1490
+ */
1140
1491
  export const zListInvitesResponse = z.array(zInvite);
1492
+ export const zCreateInviteBody = zInviteCreateInput;
1493
+ /**
1494
+ * Successfully created. Returns created invite details.
1495
+ */
1141
1496
  export const zCreateInviteResponse = zInvite;
1142
- export const zGetInviteResponse = zInvite;
1497
+ export const zGetInvitePath = z.object({
1498
+ code: z.string()
1499
+ });
1500
+ /**
1501
+ * The invitation code is valid. Returns the invited email and organization.
1502
+ */
1503
+ export const zGetInviteResponse = z.object({
1504
+ email: z.email().optional(),
1505
+ organization_id: z.string().optional()
1506
+ });
1507
+ export const zDeleteInvitePath = z.object({
1508
+ email: z.email()
1509
+ });
1510
+ /**
1511
+ * An array of chart listings in the marketplace.
1512
+ */
1143
1513
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1144
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
1514
+ export const zGetMarketplaceChartFilesPath = z.object({
1515
+ chart_name: z.string(),
1516
+ version_channel: z.string()
1517
+ });
1518
+ /**
1519
+ * Returns an object containing the chart files for the latest matching version.
1520
+ */
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()
1548
+ });
1549
+ /**
1550
+ * Returns a single object containing organization details.
1551
+ */
1145
1552
  export const zGetOrganizationResponse = zOrganization;
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()
1592
+ });
1593
+ /**
1594
+ * Ticket created.
1595
+ */
1596
+ export const zCreateTicketResponse = zTicket;
1597
+ export const zCloseTicketPath = z.object({
1598
+ ticket_id: z.string()
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();
1630
+ /**
1631
+ * Returns a list of access token details with masked secrets.
1632
+ */
1146
1633
  export const zListTokensResponse = z.array(zToken);
1634
+ export const zCreateTokenBody = zTokenCreateInput;
1635
+ /**
1636
+ * Successfully created. Returns created token details with unmasked/raw secret.
1637
+ */
1147
1638
  export const zCreateTokenResponse = zToken;
1639
+ export const zDeleteTokenPath = z.object({
1640
+ token_id: z.string()
1641
+ });
1642
+ export const zGetTokenPath = z.object({
1643
+ token_id: z.string()
1644
+ });
1645
+ /**
1646
+ * Returns access token details with masked secret.
1647
+ */
1148
1648
  export const zGetTokenResponse = zToken;
1649
+ export const zUpdateTokenBody = zTokenUpdateInput;
1650
+ export const zUpdateTokenPath = z.object({
1651
+ token_id: z.string()
1652
+ });
1653
+ /**
1654
+ * Successfully updated. Returns updated token details with masked secret.
1655
+ */
1149
1656
  export const zUpdateTokenResponse = zToken;
1657
+ export const zRegenerateTokenPath = z.object({
1658
+ token_id: z.string()
1659
+ });
1660
+ /**
1661
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1662
+ */
1150
1663
  export const zRegenerateTokenResponse = zToken;
1664
+ export const zListUserOrganizationsPath = z.object({
1665
+ email: z.string()
1666
+ });
1667
+ /**
1668
+ * An array of organizations the user belongs to.
1669
+ */
1151
1670
  export const zListUserOrganizationsResponse = z.array(z.object({
1152
1671
  realm: z.string().optional(),
1153
1672
  displayName: z.string().optional()
1154
1673
  }));
1674
+ /**
1675
+ * An array of users
1676
+ */
1155
1677
  export const zListUsersResponse = z.array(zUser);
1678
+ export const zCreateUserBody = zUserCreateInput;
1679
+ /**
1680
+ * Successfully created. Returns created user details.
1681
+ */
1156
1682
  export const zCreateUserResponse = zUser;
1683
+ export const zDeleteUserPath = z.object({
1684
+ user_id: z.string()
1685
+ });
1686
+ /**
1687
+ * User profile information
1688
+ */
1157
1689
  export const zDeleteUserResponse = zUser;
1690
+ export const zGetUserPath = z.object({
1691
+ user_id: z.string()
1692
+ });
1693
+ /**
1694
+ * User profile information
1695
+ */
1158
1696
  export const zGetUserResponse = zUser;
1697
+ export const zUpdateUserBody = zUserUpdateInput;
1698
+ export const zUpdateUserPath = z.object({
1699
+ user_id: z.string()
1700
+ });
1701
+ /**
1702
+ * Successfully created. Returns created user details.
1703
+ */
1159
1704
  export const zUpdateUserResponse = zUser;
1160
1705
  //# sourceMappingURL=zod.gen.js.map