@cloudfleet/sdk 0.0.1-0ac9bf0 → 0.0.1-0bc765b

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