@cloudfleet/sdk 0.0.1-cb34d78 → 0.0.1-cc82d04

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