@cloudfleet/sdk 0.0.1-90edb44 → 0.0.1-958f27d

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