@cloudfleet/sdk 0.0.1-1580461 → 0.0.1-169242

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 +1523 -570
  46. package/dist/schemas.gen.d.ts.map +1 -1
  47. package/dist/schemas.gen.js +2939 -739
  48. package/dist/schemas.gen.js.map +1 -1
  49. package/dist/sdk.gen.d.ts +158 -36
  50. package/dist/sdk.gen.d.ts.map +1 -1
  51. package/dist/sdk.gen.js +227 -158
  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 +1381 -391
  55. package/dist/types.gen.d.ts.map +1 -1
  56. package/dist/zod.gen.d.ts +2947 -2021
  57. package/dist/zod.gen.d.ts.map +1 -1
  58. package/dist/zod.gen.js +1319 -1134
  59. package/dist/zod.gen.js.map +1 -1
  60. package/package.json +29 -6
package/dist/zod.gen.js CHANGED
@@ -1,19 +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
- first_name: z.string(),
14
- last_name: z.string(),
15
- tax_id: z.optional(z.string()),
16
- tax_id_type: z.optional(z.enum([
14
+ individual_name: z.string(),
15
+ tax_id: z.string().optional(),
16
+ tax_id_type: z.enum([
17
17
  'ad_nrt',
18
18
  'ae_trn',
19
19
  'al_tin',
@@ -142,21 +142,17 @@ export const zBillingContact = z.object({
142
142
  'zm_tin',
143
143
  'zw_tin',
144
144
  ''
145
- ]))
145
+ ]).optional()
146
146
  });
147
147
  export const zBillingCredits = z.object({
148
- id: z.optional(z.string()),
149
- date_created: z.iso.datetime(),
148
+ id: z.string().optional(),
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
- description: z.optional(z.string()),
152
- products: z.optional(z.array(z.string())),
153
- type: z.enum([
154
- 'credit',
155
- 'discount'
156
- ]),
157
- value: z.number(),
158
- billing_period: z.iso.datetime(),
159
- value_remaining: z.optional(z.number())
153
+ description: z.string().optional(),
154
+ value_total: z.number(),
155
+ value_remaining: z.number().optional()
160
156
  });
161
157
  export const zChartCreateInput = z.object({
162
158
  values: z.string(),
@@ -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,21 +179,41 @@ export const zChartUpdateInput = z.object({
198
179
  });
199
180
  export const zClusterCreateInput = z.object({
200
181
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
201
- tier: z.enum([
202
- 'basic',
203
- 'pro'
204
- ]),
205
- region: z.optional(z.enum([
206
- 'staging',
207
- 'northamerica-central-1',
208
- 'europe-central-1a',
209
- 'northamerica-central-1a'
210
- ])),
211
- 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()
212
211
  });
213
212
  export const zClusterJoinInformation = z.object({
214
213
  certificate_authority: z.string(),
215
214
  endpoint: z.url(),
215
+ cluster_dns: z.string(),
216
+ pod_cidr: z.string(),
216
217
  auth_key: z.string(),
217
218
  bootstrap_token: z.string(),
218
219
  versions: z.object({
@@ -229,727 +230,885 @@ export const zClusterJoinInformation = z.object({
229
230
  });
230
231
  export const zCluster = z.object({
231
232
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
232
- tier: z.enum([
233
- 'basic',
234
- 'pro'
235
- ]),
236
- region: z.optional(z.enum([
237
- 'staging',
238
- 'northamerica-central-1',
239
- 'europe-central-1a',
240
- 'northamerica-central-1a'
241
- ])),
242
- 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(),
243
257
  id: z.uuid(),
244
258
  status: z.enum([
245
- 'active',
246
- 'deleted',
247
259
  'creating',
248
260
  'deployed',
249
- 'failed',
250
- 'updating'
261
+ 'updating',
262
+ 'disabled'
251
263
  ]),
252
- endpoint: z.optional(z.union([
264
+ endpoint: z.union([
265
+ z.url(),
266
+ z.enum([''])
267
+ ]).optional(),
268
+ endpoint_public: z.union([
253
269
  z.url(),
254
- z.enum([
255
- ''
256
- ])
257
- ])),
258
- certificate_ca: z.optional(z.string()),
259
- version_current: z.optional(z.string()),
260
- created_at: z.optional(z.string()),
261
- updated_at: z.optional(z.string()),
262
- 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()
263
278
  });
264
279
  export const zClusterUpdateInput = z.object({
265
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
266
- tier: z.enum([
267
- 'basic',
268
- 'pro'
269
- ]),
270
- 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()
271
297
  });
272
298
  export const zFleetCreateInput = z.object({
273
- limits: z.optional(z.object({
274
- cpu: z.number().gte(0)
275
- })),
276
- gcp: z.optional(z.object({
277
- enabled: z.optional(z.boolean()).default(true),
278
- project: z.string()
279
- })),
280
- hetzner: z.optional(z.object({
281
- enabled: z.optional(z.boolean()).default(true),
282
- apiKey: z.string()
283
- })),
284
- aws: z.optional(z.object({
285
- enabled: z.optional(z.boolean()).default(true),
286
- controllerRoleArn: z.string()
287
- })),
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'),
288
545
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
289
546
  });
290
547
  export const zFleet = z.object({
291
- limits: z.optional(z.object({
292
- cpu: z.number().gte(0)
293
- })),
294
- gcp: z.optional(z.object({
295
- enabled: z.optional(z.boolean()).default(true),
296
- project: z.string()
297
- })),
298
- hetzner: z.optional(z.object({
299
- enabled: z.optional(z.boolean()).default(true),
300
- apiKey: z.string()
301
- })),
302
- aws: z.optional(z.object({
303
- enabled: z.optional(z.boolean()).default(true),
304
- controllerRoleArn: z.string()
305
- })),
306
- 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()
307
799
  });
308
800
  export const zFleetUpdateInput = z.object({
309
- limits: z.optional(z.object({
310
- cpu: z.number().gte(0)
311
- })),
312
- gcp: z.optional(z.object({
313
- enabled: z.optional(z.boolean()).default(true),
314
- project: z.string()
315
- })),
316
- hetzner: z.optional(z.object({
317
- enabled: z.optional(z.boolean()).default(true),
318
- apiKey: z.string()
319
- })),
320
- aws: z.optional(z.object({
321
- enabled: z.optional(z.boolean()).default(true),
322
- controllerRoleArn: z.string()
323
- }))
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')
324
1051
  });
325
1052
  export const zInvite = z.object({
326
- id: z.optional(z.string()),
327
- organization_id: z.optional(z.uuid()),
1053
+ id: z.string().optional(),
1054
+ organization_id: z.uuid().optional(),
328
1055
  date_created: z.iso.datetime(),
329
- email: z.optional(z.email()),
330
- code: z.optional(z.string())
1056
+ email: z.email().optional(),
1057
+ code: z.string().optional(),
1058
+ role: z.enum(['Administrator', 'User']).optional().default('User')
331
1059
  });
332
1060
  export const zInvoice = z.object({
333
- id: z.optional(z.uuid()),
334
- organizationId: z.optional(z.uuid()),
335
- status: z.optional(z.enum([
336
- 'DRAFT',
337
- 'COMMITTED',
338
- 'VOID'
339
- ])),
340
- amount: z.optional(z.number()),
341
- currency: z.optional(z.enum([
342
- 'AED',
343
- 'AFN',
344
- 'ALL',
345
- 'AMD',
346
- 'ANG',
347
- 'AOA',
348
- 'ARS',
349
- 'AUD',
350
- 'AWG',
351
- 'AZN',
352
- 'BAM',
353
- 'BBD',
354
- 'BDT',
355
- 'BGN',
356
- 'BHD',
357
- 'BIF',
358
- 'BMD',
359
- 'BND',
360
- 'BOB',
361
- 'BRL',
362
- 'BSD',
363
- 'BTN',
364
- 'BWP',
365
- 'BYR',
366
- 'BZD',
367
- 'CAD',
368
- 'CDF',
369
- 'CHF',
370
- 'CLP',
371
- 'CNY',
372
- 'COP',
373
- 'CRC',
374
- 'CUC',
375
- 'CUP',
376
- 'CVE',
377
- 'CZK',
378
- 'DJF',
379
- 'DKK',
380
- 'DOP',
381
- 'DZD',
382
- 'EGP',
383
- 'ERN',
384
- 'ETB',
385
- 'EUR',
386
- 'FJD',
387
- 'FKP',
388
- 'GBP',
389
- 'GEL',
390
- 'GGP',
391
- 'GHS',
392
- 'GIP',
393
- 'GMD',
394
- 'GNF',
395
- 'GTQ',
396
- 'GYD',
397
- 'HKD',
398
- 'HNL',
399
- 'HRK',
400
- 'HTG',
401
- 'HUF',
402
- 'IDR',
403
- 'ILS',
404
- 'IMP',
405
- 'INR',
406
- 'IQD',
407
- 'IRR',
408
- 'ISK',
409
- 'JEP',
410
- 'JMD',
411
- 'JOD',
412
- 'JPY',
413
- 'KES',
414
- 'KGS',
415
- 'KHR',
416
- 'KMF',
417
- 'KPW',
418
- 'KRW',
419
- 'KWD',
420
- 'KYD',
421
- 'KZT',
422
- 'LAK',
423
- 'LBP',
424
- 'LKR',
425
- 'LRD',
426
- 'LSL',
427
- 'LTL',
428
- 'LVL',
429
- 'LYD',
430
- 'MAD',
431
- 'MDL',
432
- 'MGA',
433
- 'MKD',
434
- 'MMK',
435
- 'MNT',
436
- 'MOP',
437
- 'MRO',
438
- 'MUR',
439
- 'MVR',
440
- 'MWK',
441
- 'MXN',
442
- 'MYR',
443
- 'MZN',
444
- 'NAD',
445
- 'NGN',
446
- 'NIO',
447
- 'NOK',
448
- 'NPR',
449
- 'NZD',
450
- 'OMR',
451
- 'PAB',
452
- 'PEN',
453
- 'PGK',
454
- 'PHP',
455
- 'PKR',
456
- 'PLN',
457
- 'PYG',
458
- 'QAR',
459
- 'RON',
460
- 'RSD',
461
- 'RUB',
462
- 'RWF',
463
- 'SAR',
464
- 'SBD',
465
- 'SCR',
466
- 'SDG',
467
- 'SEK',
468
- 'SGD',
469
- 'SHP',
470
- 'SLL',
471
- 'SOS',
472
- 'SPL',
473
- 'SRD',
474
- 'STD',
475
- 'SVC',
476
- 'SYP',
477
- 'SZL',
478
- 'THB',
479
- 'TJS',
480
- 'TMT',
481
- 'TND',
482
- 'TOP',
483
- 'TRY',
484
- 'TTD',
485
- 'TVD',
486
- 'TWD',
487
- 'TZS',
488
- 'UAH',
489
- 'UGX',
490
- 'USD',
491
- 'UYU',
492
- 'UZS',
493
- 'VEF',
494
- 'VND',
495
- 'VUV',
496
- 'WST',
497
- 'XAF',
498
- 'XCD',
499
- 'XDR',
500
- 'XOF',
501
- 'XPF',
502
- 'YER',
503
- 'ZAR',
504
- 'ZMW',
505
- 'ZWD',
506
- 'BTC'
507
- ])),
508
- creditAdj: z.optional(z.number()),
509
- refundAdj: z.optional(z.number()),
510
- invoiceDate: z.optional(z.string()),
511
- targetDate: z.optional(z.string()),
512
- invoiceNumber: z.optional(z.string()),
513
- balance: z.optional(z.number()),
514
- bundleKeys: z.optional(z.string()),
515
- credits: z.optional(z.array(z.object({
516
- id: z.optional(z.uuid()),
517
- linkedInvoiceItemId: z.optional(z.uuid()),
518
- productName: z.optional(z.string()),
519
- planName: z.optional(z.string()),
520
- phaseName: z.optional(z.string()),
521
- usageName: z.optional(z.string()),
522
- prettyProductName: z.optional(z.string()),
523
- prettyPlanName: z.optional(z.string()),
524
- prettyPhaseName: z.optional(z.string()),
525
- prettyUsageName: z.optional(z.string()),
526
- itemType: z.optional(z.enum([
527
- 'EXTERNAL_CHARGE',
528
- 'FIXED',
529
- 'RECURRING',
530
- 'REPAIR_ADJ',
531
- 'CBA_ADJ',
532
- 'CREDIT_ADJ',
533
- 'ITEM_ADJ',
534
- 'USAGE',
535
- 'TAX',
536
- 'PARENT_SUMMARY'
537
- ])),
538
- description: z.optional(z.string()),
539
- startDate: z.optional(z.string()),
540
- endDate: z.optional(z.string()),
541
- amount: z.optional(z.number()),
542
- rate: z.optional(z.number()),
543
- currency: z.optional(z.enum([
544
- 'AED',
545
- 'AFN',
546
- 'ALL',
547
- 'AMD',
548
- 'ANG',
549
- 'AOA',
550
- 'ARS',
551
- 'AUD',
552
- 'AWG',
553
- 'AZN',
554
- 'BAM',
555
- 'BBD',
556
- 'BDT',
557
- 'BGN',
558
- 'BHD',
559
- 'BIF',
560
- 'BMD',
561
- 'BND',
562
- 'BOB',
563
- 'BRL',
564
- 'BSD',
565
- 'BTN',
566
- 'BWP',
567
- 'BYR',
568
- 'BZD',
569
- 'CAD',
570
- 'CDF',
571
- 'CHF',
572
- 'CLP',
573
- 'CNY',
574
- 'COP',
575
- 'CRC',
576
- 'CUC',
577
- 'CUP',
578
- 'CVE',
579
- 'CZK',
580
- 'DJF',
581
- 'DKK',
582
- 'DOP',
583
- 'DZD',
584
- 'EGP',
585
- 'ERN',
586
- 'ETB',
587
- 'EUR',
588
- 'FJD',
589
- 'FKP',
590
- 'GBP',
591
- 'GEL',
592
- 'GGP',
593
- 'GHS',
594
- 'GIP',
595
- 'GMD',
596
- 'GNF',
597
- 'GTQ',
598
- 'GYD',
599
- 'HKD',
600
- 'HNL',
601
- 'HRK',
602
- 'HTG',
603
- 'HUF',
604
- 'IDR',
605
- 'ILS',
606
- 'IMP',
607
- 'INR',
608
- 'IQD',
609
- 'IRR',
610
- 'ISK',
611
- 'JEP',
612
- 'JMD',
613
- 'JOD',
614
- 'JPY',
615
- 'KES',
616
- 'KGS',
617
- 'KHR',
618
- 'KMF',
619
- 'KPW',
620
- 'KRW',
621
- 'KWD',
622
- 'KYD',
623
- 'KZT',
624
- 'LAK',
625
- 'LBP',
626
- 'LKR',
627
- 'LRD',
628
- 'LSL',
629
- 'LTL',
630
- 'LVL',
631
- 'LYD',
632
- 'MAD',
633
- 'MDL',
634
- 'MGA',
635
- 'MKD',
636
- 'MMK',
637
- 'MNT',
638
- 'MOP',
639
- 'MRO',
640
- 'MUR',
641
- 'MVR',
642
- 'MWK',
643
- 'MXN',
644
- 'MYR',
645
- 'MZN',
646
- 'NAD',
647
- 'NGN',
648
- 'NIO',
649
- 'NOK',
650
- 'NPR',
651
- 'NZD',
652
- 'OMR',
653
- 'PAB',
654
- 'PEN',
655
- 'PGK',
656
- 'PHP',
657
- 'PKR',
658
- 'PLN',
659
- 'PYG',
660
- 'QAR',
661
- 'RON',
662
- 'RSD',
663
- 'RUB',
664
- 'RWF',
665
- 'SAR',
666
- 'SBD',
667
- 'SCR',
668
- 'SDG',
669
- 'SEK',
670
- 'SGD',
671
- 'SHP',
672
- 'SLL',
673
- 'SOS',
674
- 'SPL',
675
- 'SRD',
676
- 'STD',
677
- 'SVC',
678
- 'SYP',
679
- 'SZL',
680
- 'THB',
681
- 'TJS',
682
- 'TMT',
683
- 'TND',
684
- 'TOP',
685
- 'TRY',
686
- 'TTD',
687
- 'TVD',
688
- 'TWD',
689
- 'TZS',
690
- 'UAH',
691
- 'UGX',
692
- 'USD',
693
- 'UYU',
694
- 'UZS',
695
- 'VEF',
696
- 'VND',
697
- 'VUV',
698
- 'WST',
699
- 'XAF',
700
- 'XCD',
701
- 'XDR',
702
- 'XOF',
703
- 'XPF',
704
- 'YER',
705
- 'ZAR',
706
- 'ZMW',
707
- 'ZWD',
708
- 'BTC'
709
- ])),
710
- quantity: z.optional(z.number()),
711
- itemDetails: z.optional(z.string()),
712
- catalogEffectiveDate: z.optional(z.string()),
713
- childItems: z.optional(z.array(z.union([
714
- z.array(z.unknown()),
715
- z.boolean(),
716
- z.number(),
717
- z.record(z.string(), z.unknown()),
718
- z.string()
719
- ])))
720
- }))),
721
- items: z.optional(z.array(z.object({
722
- id: z.optional(z.uuid()),
723
- linkedInvoiceItemId: z.optional(z.uuid()),
724
- productName: z.optional(z.string()),
725
- planName: z.optional(z.string()),
726
- phaseName: z.optional(z.string()),
727
- usageName: z.optional(z.string()),
728
- prettyProductName: z.optional(z.string()),
729
- prettyPlanName: z.optional(z.string()),
730
- prettyPhaseName: z.optional(z.string()),
731
- prettyUsageName: z.optional(z.string()),
732
- itemType: z.optional(z.enum([
733
- 'EXTERNAL_CHARGE',
734
- 'FIXED',
735
- 'RECURRING',
736
- 'REPAIR_ADJ',
737
- 'CBA_ADJ',
738
- 'CREDIT_ADJ',
739
- 'ITEM_ADJ',
740
- 'USAGE',
741
- 'TAX',
742
- 'PARENT_SUMMARY'
743
- ])),
744
- description: z.optional(z.string()),
745
- startDate: z.optional(z.string()),
746
- endDate: z.optional(z.string()),
747
- amount: z.optional(z.number()),
748
- rate: z.optional(z.number()),
749
- currency: z.optional(z.enum([
750
- 'AED',
751
- 'AFN',
752
- 'ALL',
753
- 'AMD',
754
- 'ANG',
755
- 'AOA',
756
- 'ARS',
757
- 'AUD',
758
- 'AWG',
759
- 'AZN',
760
- 'BAM',
761
- 'BBD',
762
- 'BDT',
763
- 'BGN',
764
- 'BHD',
765
- 'BIF',
766
- 'BMD',
767
- 'BND',
768
- 'BOB',
769
- 'BRL',
770
- 'BSD',
771
- 'BTN',
772
- 'BWP',
773
- 'BYR',
774
- 'BZD',
775
- 'CAD',
776
- 'CDF',
777
- 'CHF',
778
- 'CLP',
779
- 'CNY',
780
- 'COP',
781
- 'CRC',
782
- 'CUC',
783
- 'CUP',
784
- 'CVE',
785
- 'CZK',
786
- 'DJF',
787
- 'DKK',
788
- 'DOP',
789
- 'DZD',
790
- 'EGP',
791
- 'ERN',
792
- 'ETB',
793
- 'EUR',
794
- 'FJD',
795
- 'FKP',
796
- 'GBP',
797
- 'GEL',
798
- 'GGP',
799
- 'GHS',
800
- 'GIP',
801
- 'GMD',
802
- 'GNF',
803
- 'GTQ',
804
- 'GYD',
805
- 'HKD',
806
- 'HNL',
807
- 'HRK',
808
- 'HTG',
809
- 'HUF',
810
- 'IDR',
811
- 'ILS',
812
- 'IMP',
813
- 'INR',
814
- 'IQD',
815
- 'IRR',
816
- 'ISK',
817
- 'JEP',
818
- 'JMD',
819
- 'JOD',
820
- 'JPY',
821
- 'KES',
822
- 'KGS',
823
- 'KHR',
824
- 'KMF',
825
- 'KPW',
826
- 'KRW',
827
- 'KWD',
828
- 'KYD',
829
- 'KZT',
830
- 'LAK',
831
- 'LBP',
832
- 'LKR',
833
- 'LRD',
834
- 'LSL',
835
- 'LTL',
836
- 'LVL',
837
- 'LYD',
838
- 'MAD',
839
- 'MDL',
840
- 'MGA',
841
- 'MKD',
842
- 'MMK',
843
- 'MNT',
844
- 'MOP',
845
- 'MRO',
846
- 'MUR',
847
- 'MVR',
848
- 'MWK',
849
- 'MXN',
850
- 'MYR',
851
- 'MZN',
852
- 'NAD',
853
- 'NGN',
854
- 'NIO',
855
- 'NOK',
856
- 'NPR',
857
- 'NZD',
858
- 'OMR',
859
- 'PAB',
860
- 'PEN',
861
- 'PGK',
862
- 'PHP',
863
- 'PKR',
864
- 'PLN',
865
- 'PYG',
866
- 'QAR',
867
- 'RON',
868
- 'RSD',
869
- 'RUB',
870
- 'RWF',
871
- 'SAR',
872
- 'SBD',
873
- 'SCR',
874
- 'SDG',
875
- 'SEK',
876
- 'SGD',
877
- 'SHP',
878
- 'SLL',
879
- 'SOS',
880
- 'SPL',
881
- 'SRD',
882
- 'STD',
883
- 'SVC',
884
- 'SYP',
885
- 'SZL',
886
- 'THB',
887
- 'TJS',
888
- 'TMT',
889
- 'TND',
890
- 'TOP',
891
- 'TRY',
892
- 'TTD',
893
- 'TVD',
894
- 'TWD',
895
- 'TZS',
896
- 'UAH',
897
- 'UGX',
898
- 'USD',
899
- 'UYU',
900
- 'UZS',
901
- 'VEF',
902
- 'VND',
903
- 'VUV',
904
- 'WST',
905
- 'XAF',
906
- 'XCD',
907
- 'XDR',
908
- 'XOF',
909
- 'XPF',
910
- 'YER',
911
- 'ZAR',
912
- 'ZMW',
913
- 'ZWD',
914
- 'BTC'
915
- ])),
916
- quantity: z.optional(z.number()),
917
- itemDetails: z.optional(z.string()),
918
- catalogEffectiveDate: z.optional(z.string()),
919
- childItems: z.optional(z.array(z.union([
920
- z.array(z.unknown()),
921
- z.boolean(),
922
- z.number(),
923
- z.record(z.string(), z.unknown()),
924
- z.string()
925
- ])))
926
- })))
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(),
1066
+ created: z.iso.datetime(),
1067
+ period_start: z.iso.datetime(),
1068
+ period_end: z.iso.datetime(),
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()
927
1075
  });
928
1076
  export const zMarketplaceListing = z.object({
929
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
930
1077
  name: z.string(),
931
- developer: z.string(),
932
- description: z.string(),
933
- logoUrl: z.string(),
934
- longDescription: z.string(),
935
- 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-]+)*))?$/)),
936
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-]+)*))?$/)),
937
- value_schemas: z.array(z.object({
938
- 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-]+)*))?$/),
939
- schema: z.string(),
940
- placeholder: z.string()
941
- }))
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()
942
1096
  });
943
1097
  export const zOrganizationCreateInput = z.object({
1098
+ type: z.enum(['business', 'personal']),
944
1099
  email: z.email(),
945
- first_name: z.string(),
946
- last_name: z.string(),
1100
+ first_name: z.string().min(1),
1101
+ last_name: z.string().min(1),
947
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,}$/),
948
1103
  password: z.string().min(8)
949
1104
  });
1105
+ export const zOrganizationCreateOutput = z.object({
1106
+ id: z.string()
1107
+ });
950
1108
  export const zOrganization = z.object({
951
1109
  id: z.uuid(),
952
- name: z.optional(z.string().min(2).max(120)),
1110
+ name: z.string().min(2).max(120).optional(),
1111
+ type: z.enum(['business', 'personal']),
953
1112
  date_created: z.iso.datetime(),
954
1113
  quota: z.object({
955
1114
  basic_clusters_max: z.int().gte(0),
@@ -962,619 +1121,645 @@ export const zOrganization = z.object({
962
1121
  versions: z.array(z.object({
963
1122
  id: z.string(),
964
1123
  label: z.string()
965
- })).min(1)
1124
+ })).min(1),
1125
+ cfcr_storage_gb: z.int().gte(-1)
966
1126
  }),
967
1127
  status: z.enum([
968
1128
  'active',
969
1129
  'closed',
970
1130
  'suspended'
1131
+ ]),
1132
+ verification: z.enum([
1133
+ 'none',
1134
+ 'submitted',
1135
+ 'verified'
971
1136
  ])
972
1137
  });
973
1138
  export const zPaymentMethod = z.object({
974
- id: z.uuid(),
975
- setup: z.boolean(),
1139
+ id: z.string(),
976
1140
  type: z.enum([
977
- 'card'
1141
+ 'card',
1142
+ 'sepa_debit',
1143
+ 'bank_transfer'
978
1144
  ]),
979
1145
  last4: z.string(),
980
1146
  exp_month: z.int().gte(1).lte(12),
981
- exp_year: z.int().gte(2024),
982
- brand: z.enum([
983
- 'amex',
984
- 'diners',
985
- 'discover',
986
- 'eftpos_au',
987
- 'jcb',
988
- 'mastercard',
989
- 'unionpay',
990
- 'visa',
991
- 'unknown'
992
- ])
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()
993
1309
  });
994
1310
  export const zTokenCreateInput = z.object({
995
1311
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
996
- role: z.enum([
997
- 'Administrator',
998
- 'User'
999
- ])
1312
+ role: z.enum(['Administrator', 'User'])
1000
1313
  });
1001
1314
  export const zToken = z.object({
1002
1315
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1003
- role: z.enum([
1004
- 'Administrator',
1005
- 'User'
1006
- ]),
1007
- id: z.optional(z.string()),
1008
- secret: z.optional(z.string()),
1316
+ role: z.enum(['Administrator', 'User']),
1317
+ id: z.string().optional(),
1318
+ secret: z.string().optional(),
1009
1319
  date_created: z.iso.datetime()
1010
1320
  });
1011
1321
  export const zTokenUpdateInput = z.object({
1012
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
1013
- role: z.optional(z.enum([
1014
- 'Administrator',
1015
- 'User'
1016
- ]))
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
+ })
1017
1342
  });
1018
1343
  export const zUsage = z.object({
1019
- hour: z.optional(z.string()),
1020
- cluster_id: z.uuid(),
1021
- cluster_tier: z.enum([
1022
- 'basic',
1023
- 'pro',
1024
- ''
1025
- ]),
1026
- product: z.enum([
1027
- 'cfke_controlplane',
1028
- 'cfke_connected_nodes',
1029
- 'infra_compute',
1030
- 'infra_storage',
1031
- 'infra_loadbalancing',
1032
- 'infra_traffic',
1033
- 'cfcr_storage'
1034
- ]),
1035
- node_name: z.string(),
1036
- sku: z.string(),
1037
- cpu: z.union([
1038
- z.number(),
1039
- z.enum([
1040
- ''
1041
- ])
1042
- ]),
1043
- price: z.union([
1044
- z.number(),
1045
- z.enum([
1046
- ''
1047
- ])
1048
- ]),
1049
- value: z.union([
1050
- z.number(),
1051
- z.enum([
1052
- ''
1053
- ])
1054
- ]),
1055
- total: z.union([
1056
- z.number(),
1057
- z.enum([
1058
- ''
1059
- ])
1060
- ])
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()
1061
1350
  });
1062
1351
  export const zUserCreateInput = z.object({
1063
1352
  email: z.email(),
1064
1353
  first_name: z.string().min(1).max(50),
1065
1354
  last_name: z.string().min(1).max(50),
1066
1355
  code: z.string(),
1067
- password: z.string().min(8),
1068
- status: z.optional(z.enum([
1069
- 'active',
1070
- 'inactive'
1071
- ])),
1072
- role: z.optional(z.enum([
1073
- 'Administrator',
1074
- 'User'
1075
- ]))
1356
+ password: z.string().min(8)
1076
1357
  });
1077
1358
  export const zUser = z.object({
1078
1359
  email: z.email(),
1079
1360
  first_name: z.string().min(1).max(50),
1080
1361
  last_name: z.string().min(1).max(50),
1081
- role: z.enum([
1082
- 'Administrator',
1083
- 'User'
1084
- ]),
1085
- status: z.enum([
1086
- 'active',
1087
- 'inactive'
1088
- ]),
1362
+ role: z.enum(['Administrator', 'User']),
1363
+ status: z.enum(['active', 'inactive']),
1089
1364
  id: z.uuid(),
1090
1365
  date_created: z.iso.datetime()
1091
1366
  });
1092
1367
  export const zUserUpdateInput = z.object({
1093
- email: z.optional(z.email()),
1094
- first_name: z.optional(z.string().min(1).max(50)),
1095
- last_name: z.optional(z.string().min(1).max(50)),
1096
- role: z.optional(z.enum([
1097
- 'Administrator',
1098
- 'User'
1099
- ])),
1100
- status: z.optional(z.enum([
1101
- 'active',
1102
- 'inactive'
1103
- ]))
1104
- });
1105
- export const zGetUsageData = z.object({
1106
- body: z.optional(z.never()),
1107
- path: z.optional(z.never()),
1108
- 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')
1109
1380
  });
1110
1381
  /**
1111
- * An array of usage records.
1382
+ * Usage data with facets for filtering
1112
1383
  */
1113
- export const zGetUsageResponse = z.array(zUsage);
1114
- export const zGetBalanceData = z.object({
1115
- body: z.optional(z.never()),
1116
- path: z.optional(z.never()),
1117
- query: z.optional(z.never())
1118
- });
1384
+ export const zGetUsageResponse = zUsageResponse;
1119
1385
  /**
1120
- * Current balance of the organization in USD as a floating-point number.
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.
1387
+ *
1121
1388
  */
1122
- export const zGetBalanceResponse = z.number();
1123
- export const zGetPaymentMethodData = z.object({
1124
- body: z.optional(z.never()),
1125
- path: z.optional(z.never()),
1126
- query: z.optional(z.never())
1389
+ export const zGetPaymentMethodSecretResponse = z.object({
1390
+ id: z.string().optional()
1127
1391
  });
1128
1392
  /**
1129
- * Redacted payment card information.
1393
+ * An array of payment methods.
1130
1394
  */
1131
- export const zGetPaymentMethodResponse = zPaymentMethod;
1132
- export const zGetPaymentMethodSecretData = z.object({
1133
- body: z.optional(z.never()),
1134
- path: z.optional(z.never()),
1135
- query: z.optional(z.never())
1395
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1396
+ export const zSetDefaultPaymentMethodPath = z.object({
1397
+ paymentMethodId: z.string()
1136
1398
  });
1137
1399
  /**
1138
- * 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.
1139
- *
1400
+ * Default payment method updated.
1140
1401
  */
1141
- export const zGetPaymentMethodSecretResponse = z.object({
1142
- id: z.optional(z.string())
1143
- });
1144
- export const zListInvoicesData = z.object({
1145
- body: z.optional(z.never()),
1146
- path: z.optional(z.never()),
1147
- query: z.object({
1148
- start_date: z.string(),
1149
- end_date: z.string()
1150
- })
1402
+ export const zSetDefaultPaymentMethodResponse = z.void();
1403
+ export const zDeletePaymentMethodPath = z.object({
1404
+ paymentMethodId: z.string()
1151
1405
  });
1152
1406
  /**
1153
- * An array of usage records.
1407
+ * Payment method deleted.
1154
1408
  */
1155
- export const zListInvoicesResponse = z.array(zInvoice);
1156
- export const zGetInvoiceData = z.object({
1157
- body: z.optional(z.never()),
1158
- path: z.object({
1159
- id: z.string()
1160
- }),
1161
- query: z.optional(z.never())
1162
- });
1409
+ export const zDeletePaymentMethodResponse = z.void();
1163
1410
  /**
1164
- * Returns a single Invoice HTML representation under `html` property.
1411
+ * An array of usage records.
1165
1412
  */
1166
- export const zGetInvoiceResponse = z.object({
1167
- html: z.optional(z.string())
1168
- });
1169
- export const zGetContactData = z.object({
1170
- body: z.optional(z.never()),
1171
- path: z.optional(z.never()),
1172
- query: z.optional(z.never())
1173
- });
1413
+ export const zListInvoicesResponse = z.array(zInvoice);
1174
1414
  /**
1175
1415
  * Returns a single object containing organization contact and billing address details.
1176
1416
  */
1177
1417
  export const zGetContactResponse = zBillingContact;
1178
- export const zUpdateContactData = z.object({
1179
- body: zBillingContact,
1180
- path: z.optional(z.never()),
1181
- query: z.optional(z.never())
1182
- });
1418
+ export const zUpdateContactBody = zBillingContact;
1183
1419
  /**
1184
1420
  * Successfully updated. Returns updated organization details.
1185
1421
  */
1186
1422
  export const zUpdateContactResponse = zBillingContact;
1187
- export const zGetCreditsData = z.object({
1188
- body: z.optional(z.never()),
1189
- path: z.optional(z.never()),
1190
- query: z.optional(z.never())
1191
- });
1192
1423
  /**
1193
1424
  * An array of the applied promotional credits records.
1194
1425
  */
1195
1426
  export const zGetCreditsResponse = z.array(zBillingCredits);
1196
- export const zRedeemCreditsData = z.object({
1197
- body: z.object({
1198
- code: z.optional(z.string())
1199
- }),
1200
- path: z.optional(z.never()),
1201
- query: z.optional(z.never())
1427
+ export const zRedeemCreditsBody = z.object({
1428
+ code: z.string().optional()
1202
1429
  });
1203
- export const zListChartsData = z.object({
1204
- body: z.optional(z.never()),
1205
- path: z.object({
1206
- cluster_id: z.string()
1207
- }),
1208
- query: z.optional(z.never())
1430
+ export const zListChartsPath = z.object({
1431
+ cluster_id: z.string()
1209
1432
  });
1210
1433
  /**
1211
1434
  * An array of charts
1212
1435
  */
1213
1436
  export const zListChartsResponse = z.array(zChart);
1214
- export const zCreateChartData = z.object({
1215
- body: zChartCreateInput,
1216
- path: z.object({
1217
- cluster_id: z.string()
1218
- }),
1219
- query: z.optional(z.never())
1437
+ export const zCreateChartBody = zChartCreateInput;
1438
+ export const zCreateChartPath = z.object({
1439
+ cluster_id: z.string()
1220
1440
  });
1221
1441
  /**
1222
1442
  * Successfully created. Returns created Chart ID.
1223
1443
  */
1224
1444
  export const zCreateChartResponse = z.string();
1225
- export const zDeleteChartData = z.object({
1226
- body: z.optional(z.never()),
1227
- path: z.object({
1228
- cluster_id: z.string(),
1229
- chart_name: z.string()
1230
- }),
1231
- query: z.optional(z.never())
1445
+ export const zDeleteChartPath = z.object({
1446
+ cluster_id: z.string(),
1447
+ chart_name: z.string()
1232
1448
  });
1233
1449
  /**
1234
1450
  * Successfully deleted.
1235
1451
  */
1236
1452
  export const zDeleteChartResponse = z.string();
1237
- export const zGetChartData = z.object({
1238
- body: z.optional(z.never()),
1239
- path: z.object({
1240
- cluster_id: z.string(),
1241
- chart_name: z.string()
1242
- }),
1243
- query: z.optional(z.never())
1453
+ export const zGetChartPath = z.object({
1454
+ cluster_id: z.string(),
1455
+ chart_name: z.string()
1244
1456
  });
1245
1457
  /**
1246
1458
  * Returns a single object containing chart details.
1247
1459
  */
1248
1460
  export const zGetChartResponse = zChart;
1249
- export const zUpdateChartData = z.object({
1250
- body: zChartUpdateInput,
1251
- path: z.object({
1252
- cluster_id: z.string(),
1253
- chart_name: z.string()
1254
- }),
1255
- 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()
1256
1465
  });
1257
1466
  /**
1258
1467
  * Successfully updated.
1259
1468
  */
1260
1469
  export const zUpdateChartResponse = z.string();
1261
- export const zListFleetsData = z.object({
1262
- body: z.optional(z.never()),
1263
- path: z.object({
1264
- cluster_id: z.string()
1265
- }),
1266
- query: z.optional(z.never())
1470
+ export const zListFleetsPath = z.object({
1471
+ cluster_id: z.string()
1267
1472
  });
1268
1473
  /**
1269
1474
  * An array of fleets
1270
1475
  */
1271
1476
  export const zListFleetsResponse = z.array(zFleet);
1272
- export const zCreateFleetData = z.object({
1273
- body: zFleetCreateInput,
1274
- path: z.object({
1275
- cluster_id: z.string()
1276
- }),
1277
- query: z.optional(z.never())
1477
+ export const zCreateFleetBody = zFleetCreateInput;
1478
+ export const zCreateFleetPath = z.object({
1479
+ cluster_id: z.string()
1278
1480
  });
1279
1481
  /**
1280
1482
  * Successfully created. Returns created Fleet ID.
1281
1483
  */
1282
1484
  export const zCreateFleetResponse = z.string();
1283
- export const zDeleteFleetData = z.object({
1284
- body: z.optional(z.never()),
1285
- path: z.object({
1286
- cluster_id: z.string(),
1287
- fleet_name: z.string()
1288
- }),
1289
- query: z.optional(z.never())
1485
+ export const zDeleteFleetPath = z.object({
1486
+ cluster_id: z.string(),
1487
+ fleet_name: z.string()
1290
1488
  });
1291
1489
  /**
1292
1490
  * Successfully deleted.
1293
1491
  */
1294
1492
  export const zDeleteFleetResponse = z.string();
1295
- export const zGetFleetData = z.object({
1296
- body: z.optional(z.never()),
1297
- path: z.object({
1298
- cluster_id: z.string(),
1299
- fleet_name: z.string()
1300
- }),
1301
- query: z.optional(z.never())
1493
+ export const zGetFleetPath = z.object({
1494
+ cluster_id: z.string(),
1495
+ fleet_name: z.string()
1302
1496
  });
1303
1497
  /**
1304
1498
  * Returns a single object containing fleet details.
1305
1499
  */
1306
1500
  export const zGetFleetResponse = zFleet;
1307
- export const zUpdateFleetData = z.object({
1308
- body: zFleetUpdateInput,
1309
- path: z.object({
1310
- cluster_id: z.string(),
1311
- fleet_name: z.string()
1312
- }),
1313
- 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()
1314
1505
  });
1315
1506
  /**
1316
1507
  * Successfully updated.
1317
1508
  */
1318
1509
  export const zUpdateFleetResponse = z.string();
1319
- export const zQueryClusterData = z.object({
1320
- body: z.optional(z.never()),
1321
- path: z.object({
1322
- cluster_id: z.string()
1323
- }),
1324
- query: z.optional(z.never())
1325
- });
1326
- export const zListClustersData = z.object({
1327
- body: z.optional(z.never()),
1328
- path: z.optional(z.never()),
1329
- query: z.optional(z.never())
1510
+ export const zQueryClusterPath = z.object({
1511
+ cluster_id: z.string()
1330
1512
  });
1331
1513
  /**
1332
1514
  * An array of clusters
1333
1515
  */
1334
1516
  export const zListClustersResponse = z.array(zCluster);
1335
- export const zCreateClusterData = z.object({
1336
- body: zClusterCreateInput,
1337
- path: z.optional(z.never()),
1338
- query: z.optional(z.never())
1339
- });
1517
+ export const zCreateClusterBody = zClusterCreateInput;
1340
1518
  /**
1341
1519
  * Successfully created. Returns created Cluster ID.
1342
1520
  */
1343
1521
  export const zCreateClusterResponse = z.string();
1344
- export const zDeleteClusterData = z.object({
1345
- body: z.optional(z.never()),
1346
- path: z.object({
1347
- cluster_id: z.string()
1348
- }),
1349
- query: z.optional(z.never())
1522
+ export const zDeleteClusterPath = z.object({
1523
+ cluster_id: z.string()
1350
1524
  });
1351
1525
  /**
1352
- * Successfully deleted.
1526
+ * Successfully deleted. The cluster has been torn down.
1353
1527
  */
1354
1528
  export const zDeleteClusterResponse = z.string();
1355
- export const zGetClusterData = z.object({
1356
- body: z.optional(z.never()),
1357
- path: z.object({
1358
- cluster_id: z.string()
1359
- }),
1360
- query: z.optional(z.never())
1529
+ export const zGetClusterPath = z.object({
1530
+ cluster_id: z.string()
1361
1531
  });
1362
1532
  /**
1363
1533
  * Returns a single object containing cluster details.
1364
1534
  */
1365
1535
  export const zGetClusterResponse = zCluster;
1366
- export const zUpdateClusterData = z.object({
1367
- body: zClusterUpdateInput,
1368
- path: z.object({
1369
- cluster_id: z.string()
1370
- }),
1371
- query: z.optional(z.never())
1536
+ export const zUpdateClusterBody = zClusterUpdateInput;
1537
+ export const zUpdateClusterPath = z.object({
1538
+ cluster_id: z.string()
1372
1539
  });
1373
1540
  /**
1374
1541
  * Successfully updated. Returns updated cluster details.
1375
1542
  */
1376
1543
  export const zUpdateClusterResponse = zCluster;
1377
- export const zGetJoinInformationData = z.object({
1378
- body: z.optional(z.never()),
1379
- path: z.object({
1380
- cluster_id: z.string()
1381
- }),
1382
- query: z.optional(z.never())
1544
+ export const zGetJoinInformationPath = z.object({
1545
+ cluster_id: z.string()
1383
1546
  });
1384
1547
  /**
1385
1548
  * An object of cluster join information
1386
1549
  */
1387
1550
  export const zGetJoinInformationResponse = zClusterJoinInformation;
1388
- export const zListInvitesData = z.object({
1389
- body: z.optional(z.never()),
1390
- path: z.optional(z.never()),
1391
- query: z.optional(z.never())
1392
- });
1393
1551
  /**
1394
1552
  * An array of invites
1395
1553
  */
1396
1554
  export const zListInvitesResponse = z.array(zInvite);
1397
- export const zCreateInviteData = z.object({
1398
- body: z.object({
1399
- email: z.optional(z.string())
1400
- }),
1401
- path: z.optional(z.never()),
1402
- query: z.optional(z.never())
1403
- });
1555
+ export const zCreateInviteBody = zInviteCreateInput;
1404
1556
  /**
1405
1557
  * Successfully created. Returns created invite details.
1406
1558
  */
1407
1559
  export const zCreateInviteResponse = zInvite;
1408
- export const zGetInviteData = z.object({
1409
- body: z.optional(z.never()),
1410
- path: z.object({
1411
- code: z.string()
1412
- }),
1413
- query: z.optional(z.never())
1560
+ export const zGetInvitePath = z.object({
1561
+ code: z.string()
1414
1562
  });
1415
1563
  /**
1416
- * Returns a single object containing invite details.
1564
+ * The invitation code is valid. Returns the invited email and organization.
1417
1565
  */
1418
- export const zGetInviteResponse = zInvite;
1419
- export const zDeleteInviteData = z.object({
1420
- body: z.optional(z.never()),
1421
- path: z.object({
1422
- email: z.string()
1423
- }),
1424
- query: z.optional(z.never())
1566
+ export const zGetInviteResponse = z.object({
1567
+ email: z.email().optional(),
1568
+ organization_id: z.string().optional()
1425
1569
  });
1426
- export const zListMarketplaceChartsData = z.object({
1427
- body: z.optional(z.never()),
1428
- path: z.optional(z.never()),
1429
- query: z.optional(z.never())
1570
+ export const zDeleteInvitePath = z.object({
1571
+ email: z.email()
1430
1572
  });
1431
1573
  /**
1432
1574
  * An array of chart listings in the marketplace.
1433
1575
  */
1434
1576
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1435
- export const zGetMarketplaceChartData = z.object({
1436
- body: z.optional(z.never()),
1437
- path: z.object({
1438
- listing_id: z.string()
1439
- }),
1440
- query: z.optional(z.never())
1577
+ export const zGetMarketplaceChartFilesPath = z.object({
1578
+ chart_name: z.string(),
1579
+ version_channel: z.string()
1580
+ });
1581
+ /**
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
1587
+ */
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()
1441
1596
  });
1442
1597
  /**
1443
- * Returns an object containing the chart listing details.
1598
+ * JSON-RPC 2.0 success or error response
1444
1599
  */
1445
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
1446
- export const zGetOrganizationData = z.object({
1447
- body: z.optional(z.never()),
1448
- path: z.optional(z.never()),
1449
- query: z.optional(z.never())
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()
1450
1611
  });
1451
1612
  /**
1452
1613
  * Returns a single object containing organization details.
1453
1614
  */
1454
1615
  export const zGetOrganizationResponse = zOrganization;
1455
- export const zCreateOrganizationData = z.object({
1456
- body: zOrganizationCreateInput,
1457
- path: z.optional(z.never()),
1458
- 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()
1459
1677
  });
1460
- export const zListTokensData = z.object({
1461
- body: z.optional(z.never()),
1462
- path: z.optional(z.never()),
1463
- query: z.optional(z.never())
1678
+ export const zReplyTicketPath = z.object({
1679
+ ticket_id: z.string()
1464
1680
  });
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()
1688
+ });
1689
+ /**
1690
+ * Attachment binary stream.
1691
+ */
1692
+ export const zGetTicketAttachmentResponse = z.string();
1465
1693
  /**
1466
1694
  * Returns a list of access token details with masked secrets.
1467
1695
  */
1468
1696
  export const zListTokensResponse = z.array(zToken);
1469
- export const zCreateTokenData = z.object({
1470
- body: zTokenCreateInput,
1471
- path: z.optional(z.never()),
1472
- query: z.optional(z.never())
1473
- });
1697
+ export const zCreateTokenBody = zTokenCreateInput;
1474
1698
  /**
1475
1699
  * Successfully created. Returns created token details with unmasked/raw secret.
1476
1700
  */
1477
1701
  export const zCreateTokenResponse = zToken;
1478
- export const zDeleteTokenData = z.object({
1479
- body: z.optional(z.never()),
1480
- path: z.object({
1481
- token_id: z.string()
1482
- }),
1483
- query: z.optional(z.never())
1702
+ export const zDeleteTokenPath = z.object({
1703
+ token_id: z.string()
1484
1704
  });
1485
- export const zGetTokenData = z.object({
1486
- body: z.optional(z.never()),
1487
- path: z.object({
1488
- token_id: z.string()
1489
- }),
1490
- query: z.optional(z.never())
1705
+ export const zGetTokenPath = z.object({
1706
+ token_id: z.string()
1491
1707
  });
1492
1708
  /**
1493
1709
  * Returns access token details with masked secret.
1494
1710
  */
1495
1711
  export const zGetTokenResponse = zToken;
1496
- export const zUpdateTokenData = z.object({
1497
- body: zTokenUpdateInput,
1498
- path: z.object({
1499
- token_id: z.string()
1500
- }),
1501
- query: z.optional(z.never())
1712
+ export const zUpdateTokenBody = zTokenUpdateInput;
1713
+ export const zUpdateTokenPath = z.object({
1714
+ token_id: z.string()
1502
1715
  });
1503
1716
  /**
1504
1717
  * Successfully updated. Returns updated token details with masked secret.
1505
1718
  */
1506
1719
  export const zUpdateTokenResponse = zToken;
1507
- export const zRegenerateTokenData = z.object({
1508
- body: z.optional(z.never()),
1509
- path: z.object({
1510
- token_id: z.string()
1511
- }),
1512
- query: z.optional(z.never())
1720
+ export const zRegenerateTokenPath = z.object({
1721
+ token_id: z.string()
1513
1722
  });
1514
1723
  /**
1515
1724
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1516
1725
  */
1517
1726
  export const zRegenerateTokenResponse = zToken;
1518
- export const zListUserOrganizationsData = z.object({
1519
- body: z.optional(z.never()),
1520
- path: z.object({
1521
- email: z.string()
1522
- }),
1523
- query: z.optional(z.never())
1727
+ export const zListUserOrganizationsPath = z.object({
1728
+ email: z.string()
1524
1729
  });
1525
1730
  /**
1526
1731
  * An array of organizations the user belongs to.
1527
1732
  */
1528
1733
  export const zListUserOrganizationsResponse = z.array(z.object({
1529
- realm: z.optional(z.string()),
1530
- displayName: z.optional(z.string())
1734
+ realm: z.string().optional(),
1735
+ displayName: z.string().optional()
1531
1736
  }));
1532
- export const zListUsersData = z.object({
1533
- body: z.optional(z.never()),
1534
- path: z.optional(z.never()),
1535
- query: z.optional(z.never())
1536
- });
1537
1737
  /**
1538
1738
  * An array of users
1539
1739
  */
1540
1740
  export const zListUsersResponse = z.array(zUser);
1541
- export const zCreateUserData = z.object({
1542
- body: zUserCreateInput,
1543
- path: z.optional(z.never()),
1544
- query: z.optional(z.never())
1545
- });
1741
+ export const zCreateUserBody = zUserCreateInput;
1546
1742
  /**
1547
1743
  * Successfully created. Returns created user details.
1548
1744
  */
1549
1745
  export const zCreateUserResponse = zUser;
1550
- export const zDeleteUserData = z.object({
1551
- body: z.optional(z.never()),
1552
- path: z.object({
1553
- user_id: z.string()
1554
- }),
1555
- query: z.optional(z.never())
1746
+ export const zDeleteUserPath = z.object({
1747
+ user_id: z.string()
1556
1748
  });
1557
1749
  /**
1558
1750
  * User profile information
1559
1751
  */
1560
1752
  export const zDeleteUserResponse = zUser;
1561
- export const zGetUserData = z.object({
1562
- body: z.optional(z.never()),
1563
- path: z.object({
1564
- user_id: z.string()
1565
- }),
1566
- query: z.optional(z.never())
1753
+ export const zGetUserPath = z.object({
1754
+ user_id: z.string()
1567
1755
  });
1568
1756
  /**
1569
1757
  * User profile information
1570
1758
  */
1571
1759
  export const zGetUserResponse = zUser;
1572
- export const zUpdateUserData = z.object({
1573
- body: zUserUpdateInput,
1574
- path: z.object({
1575
- user_id: z.string()
1576
- }),
1577
- query: z.optional(z.never())
1760
+ export const zUpdateUserBody = zUserUpdateInput;
1761
+ export const zUpdateUserPath = z.object({
1762
+ user_id: z.string()
1578
1763
  });
1579
1764
  /**
1580
1765
  * Successfully created. Returns created user details.