@cloudfleet/sdk 0.0.1-523e444 → 0.0.1-55a31fe

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1125 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1129 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts.map +1 -1
  6. package/dist/client/client.gen.js +113 -98
  7. package/dist/client/client.gen.js.map +1 -1
  8. package/dist/client/index.d.ts +1 -1
  9. package/dist/client/index.d.ts.map +1 -1
  10. package/dist/client/index.js.map +1 -1
  11. package/dist/client/types.gen.d.ts +9 -13
  12. package/dist/client/types.gen.d.ts.map +1 -1
  13. package/dist/client/utils.gen.d.ts +6 -2
  14. package/dist/client/utils.gen.d.ts.map +1 -1
  15. package/dist/client/utils.gen.js +10 -12
  16. package/dist/client/utils.gen.js.map +1 -1
  17. package/dist/client.gen.d.ts.map +1 -1
  18. package/dist/client.gen.js +1 -3
  19. package/dist/client.gen.js.map +1 -1
  20. package/dist/core/auth.gen.d.ts.map +1 -1
  21. package/dist/core/auth.gen.js.map +1 -1
  22. package/dist/core/bodySerializer.gen.d.ts +16 -8
  23. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  24. package/dist/core/bodySerializer.gen.js +1 -1
  25. package/dist/core/bodySerializer.gen.js.map +1 -1
  26. package/dist/core/params.gen.d.ts +10 -0
  27. package/dist/core/params.gen.d.ts.map +1 -1
  28. package/dist/core/params.gen.js +18 -6
  29. package/dist/core/params.gen.js.map +1 -1
  30. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  31. package/dist/core/pathSerializer.gen.js +3 -11
  32. package/dist/core/pathSerializer.gen.js.map +1 -1
  33. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  34. package/dist/core/queryKeySerializer.gen.js +4 -11
  35. package/dist/core/queryKeySerializer.gen.js.map +1 -1
  36. package/dist/core/serverSentEvents.gen.d.ts +1 -1
  37. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  38. package/dist/core/serverSentEvents.gen.js +6 -9
  39. package/dist/core/serverSentEvents.gen.js.map +1 -1
  40. package/dist/core/types.gen.d.ts +1 -1
  41. package/dist/core/types.gen.d.ts.map +1 -1
  42. package/dist/core/utils.gen.d.ts.map +1 -1
  43. package/dist/core/utils.gen.js +1 -1
  44. package/dist/core/utils.gen.js.map +1 -1
  45. package/dist/schemas.gen.d.ts +972 -132
  46. package/dist/schemas.gen.d.ts.map +1 -1
  47. package/dist/schemas.gen.js +1633 -262
  48. package/dist/schemas.gen.js.map +1 -1
  49. package/dist/sdk.gen.d.ts +85 -7
  50. package/dist/sdk.gen.d.ts.map +1 -1
  51. package/dist/sdk.gen.js +158 -127
  52. package/dist/sdk.gen.js.map +1 -1
  53. package/dist/services/kubernetes/api.d.ts +8 -8
  54. package/dist/types.gen.d.ts +904 -57
  55. package/dist/types.gen.d.ts.map +1 -1
  56. package/dist/zod.gen.d.ts +899 -617
  57. package/dist/zod.gen.d.ts.map +1 -1
  58. package/dist/zod.gen.js +495 -457
  59. package/dist/zod.gen.js.map +1 -1
  60. package/package.json +28 -5
package/dist/zod.gen.js CHANGED
@@ -1,18 +1,18 @@
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
+ company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
5
+ address1: z.string().optional(),
6
+ address2: z.string().optional(),
7
+ postalCode: z.string().optional(),
8
+ city: z.string().optional(),
9
+ state: z.string().optional(),
10
+ country: z.string().optional(),
11
+ phone: z.string().optional(),
12
12
  email: z.email(),
13
13
  individual_name: z.string(),
14
- tax_id: z.optional(z.string()),
15
- tax_id_type: z.optional(z.enum([
14
+ tax_id: z.string().optional(),
15
+ tax_id_type: z.enum([
16
16
  'ad_nrt',
17
17
  'ae_trn',
18
18
  'al_tin',
@@ -141,20 +141,17 @@ export const zBillingContact = z.object({
141
141
  'zm_tin',
142
142
  'zw_tin',
143
143
  ''
144
- ]))
144
+ ]).optional()
145
145
  });
146
146
  export const zBillingCredits = z.object({
147
- id: z.optional(z.string()),
148
- type: z.enum([
149
- 'credit',
150
- 'discount'
151
- ]),
147
+ id: z.string().optional(),
148
+ type: z.enum(['credit', 'discount']),
152
149
  date_start: z.iso.datetime(),
153
- date_end: z.optional(z.iso.datetime()),
150
+ date_end: z.iso.datetime().optional(),
154
151
  code: z.string(),
155
- description: z.optional(z.string()),
152
+ description: z.string().optional(),
156
153
  value_total: z.number(),
157
- value_remaining: z.optional(z.number())
154
+ value_remaining: z.number().optional()
158
155
  });
159
156
  export const zChartCreateInput = z.object({
160
157
  values: z.string(),
@@ -196,21 +193,24 @@ export const zChartUpdateInput = z.object({
196
193
  });
197
194
  export const zClusterCreateInput = z.object({
198
195
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
199
- tier: z.enum([
200
- 'basic',
201
- 'pro'
202
- ]),
203
- region: z.optional(z.enum([
204
- 'staging',
196
+ tier: z.enum(['basic', 'pro']),
197
+ region: z.enum([
198
+ 'staging-1a',
205
199
  'northamerica-central-1',
206
200
  'europe-central-1a',
207
201
  'northamerica-central-1a'
208
- ])),
209
- version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)).default('1.x.x-cfke.x')
202
+ ]).optional().default('staging-1a'),
203
+ version_channel: z.enum([
204
+ '1.x.x-cfke.x',
205
+ '1.31.x-cfke.x',
206
+ '1.32.x-cfke.x',
207
+ '1.33.x-cfke.x'
208
+ ]).optional().default('1.x.x-cfke.x')
210
209
  });
211
210
  export const zClusterJoinInformation = z.object({
212
211
  certificate_authority: z.string(),
213
212
  endpoint: z.url(),
213
+ cluster_dns: z.string(),
214
214
  auth_key: z.string(),
215
215
  bootstrap_token: z.string(),
216
216
  versions: z.object({
@@ -227,17 +227,13 @@ export const zClusterJoinInformation = z.object({
227
227
  });
228
228
  export const zCluster = z.object({
229
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
- tier: z.enum([
231
- 'basic',
232
- 'pro'
233
- ]),
234
- region: z.optional(z.enum([
235
- 'staging',
230
+ tier: z.enum(['basic', 'pro']),
231
+ region: z.enum([
232
+ 'staging-1a',
236
233
  'northamerica-central-1',
237
234
  'europe-central-1a',
238
235
  'northamerica-central-1a'
239
- ])),
240
- version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)).default('1.x.x-cfke.x'),
236
+ ]).optional().default('staging-1a'),
241
237
  id: z.uuid(),
242
238
  status: z.enum([
243
239
  'active',
@@ -248,111 +244,122 @@ export const zCluster = z.object({
248
244
  'failed',
249
245
  'updating'
250
246
  ]),
251
- endpoint: z.optional(z.union([
247
+ endpoint: z.union([
252
248
  z.url(),
253
- z.enum([
254
- ''
255
- ])
256
- ])),
257
- certificate_ca: z.optional(z.string()),
258
- version_current: z.optional(z.string()),
259
- created_at: z.optional(z.string()),
260
- updated_at: z.optional(z.string()),
261
- ready: z.optional(z.boolean())
249
+ z.enum([''])
250
+ ]).optional(),
251
+ endpoint_public: z.union([
252
+ z.url(),
253
+ z.enum([''])
254
+ ]).optional(),
255
+ certificate_ca: z.string().optional(),
256
+ version_current: z.string().optional(),
257
+ created_at: z.string().optional(),
258
+ updated_at: z.string().optional(),
259
+ ready: z.boolean().optional(),
260
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
262
261
  });
263
262
  export const zClusterUpdateInput = z.object({
264
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
265
- tier: z.enum([
266
- 'basic',
267
- 'pro'
268
- ]),
269
- version_channel: z.optional(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/))
263
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
264
+ tier: z.enum(['basic', 'pro']),
265
+ 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()
270
266
  });
271
267
  export const zFleetCreateInput = z.object({
272
- limits: z.optional(z.object({
268
+ limits: z.object({
273
269
  cpu: z.number().gte(0)
274
- })),
275
- gcp: z.optional(z.object({
276
- enabled: z.optional(z.boolean()).default(true),
270
+ }).optional(),
271
+ gcp: z.object({
272
+ enabled: z.boolean().optional().default(true),
277
273
  project: z.string()
278
- })),
279
- hetzner: z.optional(z.object({
280
- enabled: z.optional(z.boolean()).default(true),
274
+ }).optional(),
275
+ hetzner: z.object({
276
+ enabled: z.boolean().optional().default(true),
281
277
  apiKey: z.string()
282
- })),
283
- aws: z.optional(z.object({
284
- enabled: z.optional(z.boolean()).default(true),
278
+ }).optional(),
279
+ aws: z.object({
280
+ enabled: z.boolean().optional().default(true),
285
281
  controllerRoleArn: z.string()
286
- })),
282
+ }).optional(),
287
283
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
288
284
  });
289
285
  export const zFleet = z.object({
290
- limits: z.optional(z.object({
286
+ limits: z.object({
291
287
  cpu: z.number().gte(0)
292
- })),
293
- gcp: z.optional(z.object({
294
- enabled: z.optional(z.boolean()).default(true),
288
+ }).optional(),
289
+ gcp: z.object({
290
+ enabled: z.boolean().optional().default(true),
295
291
  project: z.string()
296
- })),
297
- hetzner: z.optional(z.object({
298
- enabled: z.optional(z.boolean()).default(true),
292
+ }).optional(),
293
+ hetzner: z.object({
294
+ enabled: z.boolean().optional().default(true),
299
295
  apiKey: z.string()
300
- })),
301
- aws: z.optional(z.object({
302
- enabled: z.optional(z.boolean()).default(true),
296
+ }).optional(),
297
+ aws: z.object({
298
+ enabled: z.boolean().optional().default(true),
303
299
  controllerRoleArn: z.string()
304
- })),
300
+ }).optional(),
305
301
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
306
302
  });
307
303
  export const zFleetUpdateInput = z.object({
308
- limits: z.optional(z.object({
304
+ limits: z.object({
309
305
  cpu: z.number().gte(0)
310
- })),
311
- gcp: z.optional(z.object({
312
- enabled: z.optional(z.boolean()).default(true),
306
+ }).optional(),
307
+ gcp: z.object({
308
+ enabled: z.boolean().optional().default(true),
313
309
  project: z.string()
314
- })),
315
- hetzner: z.optional(z.object({
316
- enabled: z.optional(z.boolean()).default(true),
310
+ }).optional(),
311
+ hetzner: z.object({
312
+ enabled: z.boolean().optional().default(true),
317
313
  apiKey: z.string()
318
- })),
319
- aws: z.optional(z.object({
320
- enabled: z.optional(z.boolean()).default(true),
314
+ }).optional(),
315
+ aws: z.object({
316
+ enabled: z.boolean().optional().default(true),
321
317
  controllerRoleArn: z.string()
322
- }))
318
+ }).optional()
323
319
  });
324
320
  export const zInvite = z.object({
325
- id: z.optional(z.string()),
326
- organization_id: z.optional(z.uuid()),
321
+ id: z.string().optional(),
322
+ organization_id: z.uuid().optional(),
327
323
  date_created: z.iso.datetime(),
328
- email: z.optional(z.email()),
329
- code: z.optional(z.string())
324
+ email: z.email().optional(),
325
+ code: z.string().optional()
330
326
  });
331
327
  export const zInvoice = z.object({
332
- id: z.optional(z.uuid()),
333
- number: z.optional(z.string()),
334
- status: z.optional(z.string()),
335
- total: z.optional(z.number()),
336
- currency: z.optional(z.string()),
328
+ id: z.string().optional(),
329
+ number: z.string().optional(),
330
+ status: z.string().optional(),
331
+ total: z.number().optional(),
332
+ currency: z.string().optional(),
337
333
  created: z.iso.datetime(),
338
334
  period_start: z.iso.datetime(),
339
335
  period_end: z.iso.datetime(),
340
- invoice_pdf: z.optional(z.string())
336
+ invoice_pdf: z.string().optional()
337
+ });
338
+ export const zMarketplaceListingFiles = z.object({
339
+ chartYaml: z.string().optional(),
340
+ valuesYaml: z.string().optional(),
341
+ valuesSchemaJson: z.string().optional()
341
342
  });
342
343
  export const zMarketplaceListing = z.object({
343
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
344
344
  name: z.string(),
345
- developer: z.string(),
346
- description: z.string(),
347
- logoUrl: z.string(),
348
- longDescription: z.string(),
349
- categories: z.array(z.string()),
345
+ versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
350
346
  version_channels: z.array(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
351
- value_schemas: z.array(z.object({
352
- version: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/),
353
- schema: z.string(),
354
- placeholder: z.string()
355
- }))
347
+ latestVersion: z.string(),
348
+ metadata: z.object({
349
+ name: z.string(),
350
+ version: z.string(),
351
+ description: z.string().optional(),
352
+ appVersion: z.string().optional(),
353
+ apiVersion: z.string().optional(),
354
+ keywords: z.array(z.string()).optional(),
355
+ home: z.string().optional(),
356
+ icon: z.string().optional(),
357
+ sources: z.array(z.string()).optional(),
358
+ maintainers: z.array(z.object({
359
+ name: z.string(),
360
+ email: z.string().optional()
361
+ })).optional()
362
+ }).optional()
356
363
  });
357
364
  export const zOrganizationCreateInput = z.object({
358
365
  email: z.email(),
@@ -363,7 +370,7 @@ export const zOrganizationCreateInput = z.object({
363
370
  });
364
371
  export const zOrganization = z.object({
365
372
  id: z.uuid(),
366
- name: z.optional(z.string().min(2).max(120)),
373
+ name: z.string().min(2).max(120).optional(),
367
374
  date_created: z.iso.datetime(),
368
375
  quota: z.object({
369
376
  basic_clusters_max: z.int().gte(0),
@@ -376,7 +383,8 @@ export const zOrganization = z.object({
376
383
  versions: z.array(z.object({
377
384
  id: z.string(),
378
385
  label: z.string()
379
- })).min(1)
386
+ })).min(1),
387
+ cfcr_storage_gb: z.int().gte(-1)
380
388
  }),
381
389
  status: z.enum([
382
390
  'active',
@@ -387,9 +395,7 @@ export const zOrganization = z.object({
387
395
  export const zPaymentMethod = z.object({
388
396
  id: z.uuid(),
389
397
  setup: z.boolean(),
390
- type: z.enum([
391
- 'card'
392
- ]),
398
+ type: z.enum(['card']),
393
399
  last4: z.string(),
394
400
  exp_month: z.int().gte(1).lte(12),
395
401
  exp_year: z.int().gte(2024),
@@ -405,73 +411,202 @@ export const zPaymentMethod = z.object({
405
411
  'unknown'
406
412
  ])
407
413
  });
414
+ export const zPlatformQuota = z.object({
415
+ basic_clusters_max: z.int().gte(0),
416
+ basic_clusters_available: z.int(),
417
+ pro_clusters_max: z.int().gte(0),
418
+ pro_clusters_available: z.int(),
419
+ fleets_max: z.int().gte(0),
420
+ cluster_tiers: z.array(z.string()).min(0),
421
+ regions: z.array(z.string()).min(1),
422
+ versions: z.array(z.object({
423
+ id: z.string(),
424
+ label: z.string()
425
+ })).min(1),
426
+ cfcr_storage_gb: z.int().gte(-1)
427
+ });
428
+ export const zRegistryRepository = z.object({
429
+ name: z.string(),
430
+ region: z.string(),
431
+ uri: z.string()
432
+ });
433
+ export const zRegistryRepositoryWithTags = z.object({
434
+ name: z.string(),
435
+ region: z.string(),
436
+ uri: z.string(),
437
+ tags: z.array(z.object({
438
+ name: z.string(),
439
+ size: z.number(),
440
+ mediaType: z.string().optional(),
441
+ platforms: z.array(z.string()).optional()
442
+ })),
443
+ totalSize: z.number()
444
+ });
445
+ export const zRegistryTag = z.object({
446
+ name: z.string(),
447
+ digest: z.string(),
448
+ mediaType: z.string().optional(),
449
+ config: z.object({
450
+ size: z.number()
451
+ }).optional(),
452
+ layers: z.array(z.object({
453
+ digest: z.string().optional(),
454
+ size: z.number()
455
+ })).optional(),
456
+ manifests: z.array(z.object({
457
+ digest: z.string(),
458
+ platform: z.object({
459
+ architecture: z.string(),
460
+ os: z.string(),
461
+ variant: z.string().optional()
462
+ }).optional(),
463
+ layers: z.array(z.object({
464
+ digest: z.string().optional(),
465
+ size: z.number()
466
+ })).optional(),
467
+ size: z.number().optional()
468
+ })).optional(),
469
+ size: z.number(),
470
+ region: z.string(),
471
+ repository: z.string(),
472
+ uri: z.string()
473
+ });
474
+ export const zTicketAttachment = z.object({
475
+ id: z.string(),
476
+ filename: z.string(),
477
+ content_type: z.string(),
478
+ size: z.int()
479
+ });
480
+ export const zTicketCreateInput = z.object({
481
+ category: z.enum([
482
+ 'billing',
483
+ 'technical',
484
+ 'general'
485
+ ]),
486
+ body: z.string().min(1).max(50000).regex(/\S/),
487
+ properties: z.record(z.string(), z.unknown()).optional()
488
+ });
489
+ export const zTicketListResponse = z.object({
490
+ items: z.array(z.object({
491
+ id: z.string(),
492
+ status: z.enum([
493
+ 'waiting_on_us',
494
+ 'waiting_on_user',
495
+ 'closed'
496
+ ]),
497
+ category: z.enum([
498
+ 'billing',
499
+ 'technical',
500
+ 'general'
501
+ ]),
502
+ summary: z.string(),
503
+ closed_at: z.iso.datetime().optional(),
504
+ date_created: z.iso.datetime(),
505
+ date_updated: z.iso.datetime(),
506
+ messages: z.array(z.object({
507
+ id: z.string(),
508
+ type: z.enum(['customer_reply', 'agent_reply']),
509
+ body: z.string(),
510
+ author_first_name: z.string().optional(),
511
+ author_last_name: z.string().optional(),
512
+ attachments: z.array(z.object({
513
+ id: z.string(),
514
+ filename: z.string(),
515
+ content_type: z.string(),
516
+ size: z.int()
517
+ })).optional(),
518
+ date_created: z.iso.datetime()
519
+ })).optional()
520
+ }))
521
+ });
522
+ export const zTicketMessageInput = z.object({
523
+ body: z.string().min(1).max(50000).regex(/\S/)
524
+ });
525
+ export const zTicketMessage = z.object({
526
+ id: z.string(),
527
+ type: z.enum(['customer_reply', 'agent_reply']),
528
+ body: z.string(),
529
+ author_first_name: z.string().optional(),
530
+ author_last_name: z.string().optional(),
531
+ attachments: z.array(z.object({
532
+ id: z.string(),
533
+ filename: z.string(),
534
+ content_type: z.string(),
535
+ size: z.int()
536
+ })).optional(),
537
+ date_created: z.iso.datetime()
538
+ });
539
+ export const zTicket = z.object({
540
+ id: z.string(),
541
+ status: z.enum([
542
+ 'waiting_on_us',
543
+ 'waiting_on_user',
544
+ 'closed'
545
+ ]),
546
+ category: z.enum([
547
+ 'billing',
548
+ 'technical',
549
+ 'general'
550
+ ]),
551
+ summary: z.string(),
552
+ closed_at: z.iso.datetime().optional(),
553
+ date_created: z.iso.datetime(),
554
+ date_updated: z.iso.datetime(),
555
+ messages: z.array(z.object({
556
+ id: z.string(),
557
+ type: z.enum(['customer_reply', 'agent_reply']),
558
+ body: z.string(),
559
+ author_first_name: z.string().optional(),
560
+ author_last_name: z.string().optional(),
561
+ attachments: z.array(z.object({
562
+ id: z.string(),
563
+ filename: z.string(),
564
+ content_type: z.string(),
565
+ size: z.int()
566
+ })).optional(),
567
+ date_created: z.iso.datetime()
568
+ })).optional()
569
+ });
408
570
  export const zTokenCreateInput = z.object({
409
571
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
410
- role: z.enum([
411
- 'Administrator',
412
- 'User'
413
- ])
572
+ role: z.enum(['Administrator', 'User'])
414
573
  });
415
574
  export const zToken = z.object({
416
575
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
417
- role: z.enum([
418
- 'Administrator',
419
- 'User'
420
- ]),
421
- id: z.optional(z.string()),
422
- secret: z.optional(z.string()),
576
+ role: z.enum(['Administrator', 'User']),
577
+ id: z.string().optional(),
578
+ secret: z.string().optional(),
423
579
  date_created: z.iso.datetime()
424
580
  });
425
581
  export const zTokenUpdateInput = z.object({
426
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
427
- role: z.optional(z.enum([
428
- 'Administrator',
429
- 'User'
430
- ]))
582
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
583
+ role: z.enum(['Administrator', 'User']).optional()
584
+ });
585
+ export const zUsageFacets = z.object({
586
+ cluster_id: z.array(z.string()).optional(),
587
+ product: z.array(z.string()).optional()
588
+ });
589
+ export const zUsageResponse = z.object({
590
+ data: z.array(z.object({
591
+ hour: z.string(),
592
+ cluster_id: z.string(),
593
+ product: z.string(),
594
+ value: z.number(),
595
+ price: z.number(),
596
+ total: z.number()
597
+ })),
598
+ facets: z.object({
599
+ cluster_id: z.array(z.string()).optional(),
600
+ product: z.array(z.string()).optional()
601
+ })
431
602
  });
432
603
  export const zUsage = z.object({
433
- hour: z.optional(z.string()),
434
- cluster_id: z.uuid(),
435
- cluster_tier: z.enum([
436
- 'basic',
437
- 'pro',
438
- ''
439
- ]),
440
- product: z.enum([
441
- 'cfke_controlplane',
442
- 'cfke_connected_nodes',
443
- 'infra_compute',
444
- 'infra_storage',
445
- 'infra_loadbalancing',
446
- 'infra_traffic',
447
- 'cfcr_storage'
448
- ]),
449
- node_name: z.string(),
450
- sku: z.string(),
451
- cpu: z.union([
452
- z.number(),
453
- z.enum([
454
- ''
455
- ])
456
- ]),
457
- price: z.union([
458
- z.number(),
459
- z.enum([
460
- ''
461
- ])
462
- ]),
463
- value: z.union([
464
- z.number(),
465
- z.enum([
466
- ''
467
- ])
468
- ]),
469
- total: z.union([
470
- z.number(),
471
- z.enum([
472
- ''
473
- ])
474
- ])
604
+ hour: z.string(),
605
+ cluster_id: z.string(),
606
+ product: z.string(),
607
+ value: z.number(),
608
+ price: z.number(),
609
+ total: z.number()
475
610
  });
476
611
  export const zUserCreateInput = z.object({
477
612
  email: z.email(),
@@ -479,491 +614,394 @@ export const zUserCreateInput = z.object({
479
614
  last_name: z.string().min(1).max(50),
480
615
  code: z.string(),
481
616
  password: z.string().min(8),
482
- status: z.optional(z.enum([
483
- 'active',
484
- 'inactive'
485
- ])),
486
- role: z.optional(z.enum([
487
- 'Administrator',
488
- 'User'
489
- ]))
617
+ status: z.enum(['active', 'inactive']).optional(),
618
+ role: z.enum(['Administrator', 'User']).optional()
490
619
  });
491
620
  export const zUser = z.object({
492
621
  email: z.email(),
493
622
  first_name: z.string().min(1).max(50),
494
623
  last_name: z.string().min(1).max(50),
495
- role: z.enum([
496
- 'Administrator',
497
- 'User'
498
- ]),
499
- status: z.enum([
500
- 'active',
501
- 'inactive'
502
- ]),
624
+ role: z.enum(['Administrator', 'User']),
625
+ status: z.enum(['active', 'inactive']),
503
626
  id: z.uuid(),
504
627
  date_created: z.iso.datetime()
505
628
  });
506
629
  export const zUserUpdateInput = z.object({
507
- email: z.optional(z.email()),
508
- first_name: z.optional(z.string().min(1).max(50)),
509
- last_name: z.optional(z.string().min(1).max(50)),
510
- role: z.optional(z.enum([
511
- 'Administrator',
512
- 'User'
513
- ])),
514
- status: z.optional(z.enum([
515
- 'active',
516
- 'inactive'
517
- ]))
630
+ email: z.email().optional(),
631
+ first_name: z.string().min(1).max(50).optional(),
632
+ last_name: z.string().min(1).max(50).optional(),
633
+ role: z.enum(['Administrator', 'User']).optional(),
634
+ status: z.enum(['active', 'inactive']).optional()
518
635
  });
519
- export const zGetUsageData = z.object({
520
- body: z.optional(z.never()),
521
- path: z.optional(z.never()),
522
- query: z.optional(z.never())
636
+ export const zGetUsageQuery = z.object({
637
+ granularity: z.enum([
638
+ 'hourly',
639
+ 'daily',
640
+ 'monthly'
641
+ ]).optional().default('daily')
523
642
  });
524
643
  /**
525
- * An array of usage records.
644
+ * Usage data with facets for filtering
526
645
  */
527
- export const zGetUsageResponse = z.array(zUsage);
528
- export const zGetPaymentMethodData = z.object({
529
- body: z.optional(z.never()),
530
- path: z.optional(z.never()),
531
- query: z.optional(z.never())
532
- });
646
+ export const zGetUsageResponse = zUsageResponse;
533
647
  /**
534
648
  * Redacted payment card information.
535
649
  */
536
650
  export const zGetPaymentMethodResponse = zPaymentMethod;
537
- export const zGetPaymentMethodSecretData = z.object({
538
- body: z.optional(z.never()),
539
- path: z.optional(z.never()),
540
- query: z.optional(z.never())
541
- });
542
651
  /**
543
652
  * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
544
653
  *
545
654
  */
546
655
  export const zGetPaymentMethodSecretResponse = z.object({
547
- id: z.optional(z.string())
548
- });
549
- export const zListInvoicesData = z.object({
550
- body: z.optional(z.never()),
551
- path: z.optional(z.never()),
552
- query: z.optional(z.never())
656
+ id: z.string().optional()
553
657
  });
554
658
  /**
555
659
  * An array of usage records.
556
660
  */
557
661
  export const zListInvoicesResponse = z.array(zInvoice);
558
- export const zGetContactData = z.object({
559
- body: z.optional(z.never()),
560
- path: z.optional(z.never()),
561
- query: z.optional(z.never())
562
- });
563
662
  /**
564
663
  * Returns a single object containing organization contact and billing address details.
565
664
  */
566
665
  export const zGetContactResponse = zBillingContact;
567
- export const zUpdateContactData = z.object({
568
- body: zBillingContact,
569
- path: z.optional(z.never()),
570
- query: z.optional(z.never())
571
- });
666
+ export const zUpdateContactBody = zBillingContact;
572
667
  /**
573
668
  * Successfully updated. Returns updated organization details.
574
669
  */
575
670
  export const zUpdateContactResponse = zBillingContact;
576
- export const zGetCreditsData = z.object({
577
- body: z.optional(z.never()),
578
- path: z.optional(z.never()),
579
- query: z.optional(z.never())
580
- });
581
671
  /**
582
672
  * An array of the applied promotional credits records.
583
673
  */
584
674
  export const zGetCreditsResponse = z.array(zBillingCredits);
585
- export const zRedeemCreditsData = z.object({
586
- body: z.object({
587
- code: z.optional(z.string())
588
- }),
589
- path: z.optional(z.never()),
590
- query: z.optional(z.never())
675
+ export const zRedeemCreditsBody = z.object({
676
+ code: z.string().optional()
591
677
  });
592
- export const zListChartsData = z.object({
593
- body: z.optional(z.never()),
594
- path: z.object({
595
- cluster_id: z.string()
596
- }),
597
- query: z.optional(z.never())
678
+ export const zListChartsPath = z.object({
679
+ cluster_id: z.string()
598
680
  });
599
681
  /**
600
682
  * An array of charts
601
683
  */
602
684
  export const zListChartsResponse = z.array(zChart);
603
- export const zCreateChartData = z.object({
604
- body: zChartCreateInput,
605
- path: z.object({
606
- cluster_id: z.string()
607
- }),
608
- query: z.optional(z.never())
685
+ export const zCreateChartBody = zChartCreateInput;
686
+ export const zCreateChartPath = z.object({
687
+ cluster_id: z.string()
609
688
  });
610
689
  /**
611
690
  * Successfully created. Returns created Chart ID.
612
691
  */
613
692
  export const zCreateChartResponse = z.string();
614
- export const zDeleteChartData = z.object({
615
- body: z.optional(z.never()),
616
- path: z.object({
617
- cluster_id: z.string(),
618
- chart_name: z.string()
619
- }),
620
- query: z.optional(z.never())
693
+ export const zDeleteChartPath = z.object({
694
+ cluster_id: z.string(),
695
+ chart_name: z.string()
621
696
  });
622
697
  /**
623
698
  * Successfully deleted.
624
699
  */
625
700
  export const zDeleteChartResponse = z.string();
626
- export const zGetChartData = z.object({
627
- body: z.optional(z.never()),
628
- path: z.object({
629
- cluster_id: z.string(),
630
- chart_name: z.string()
631
- }),
632
- query: z.optional(z.never())
701
+ export const zGetChartPath = z.object({
702
+ cluster_id: z.string(),
703
+ chart_name: z.string()
633
704
  });
634
705
  /**
635
706
  * Returns a single object containing chart details.
636
707
  */
637
708
  export const zGetChartResponse = zChart;
638
- export const zUpdateChartData = z.object({
639
- body: zChartUpdateInput,
640
- path: z.object({
641
- cluster_id: z.string(),
642
- chart_name: z.string()
643
- }),
644
- query: z.optional(z.never())
709
+ export const zUpdateChartBody = zChartUpdateInput;
710
+ export const zUpdateChartPath = z.object({
711
+ cluster_id: z.string(),
712
+ chart_name: z.string()
645
713
  });
646
714
  /**
647
715
  * Successfully updated.
648
716
  */
649
717
  export const zUpdateChartResponse = z.string();
650
- export const zListFleetsData = z.object({
651
- body: z.optional(z.never()),
652
- path: z.object({
653
- cluster_id: z.string()
654
- }),
655
- query: z.optional(z.never())
718
+ export const zListFleetsPath = z.object({
719
+ cluster_id: z.string()
656
720
  });
657
721
  /**
658
722
  * An array of fleets
659
723
  */
660
724
  export const zListFleetsResponse = z.array(zFleet);
661
- export const zCreateFleetData = z.object({
662
- body: zFleetCreateInput,
663
- path: z.object({
664
- cluster_id: z.string()
665
- }),
666
- query: z.optional(z.never())
725
+ export const zCreateFleetBody = zFleetCreateInput;
726
+ export const zCreateFleetPath = z.object({
727
+ cluster_id: z.string()
667
728
  });
668
729
  /**
669
730
  * Successfully created. Returns created Fleet ID.
670
731
  */
671
732
  export const zCreateFleetResponse = z.string();
672
- export const zDeleteFleetData = z.object({
673
- body: z.optional(z.never()),
674
- path: z.object({
675
- cluster_id: z.string(),
676
- fleet_name: z.string()
677
- }),
678
- query: z.optional(z.never())
733
+ export const zDeleteFleetPath = z.object({
734
+ cluster_id: z.string(),
735
+ fleet_name: z.string()
679
736
  });
680
737
  /**
681
738
  * Successfully deleted.
682
739
  */
683
740
  export const zDeleteFleetResponse = z.string();
684
- export const zGetFleetData = z.object({
685
- body: z.optional(z.never()),
686
- path: z.object({
687
- cluster_id: z.string(),
688
- fleet_name: z.string()
689
- }),
690
- query: z.optional(z.never())
741
+ export const zGetFleetPath = z.object({
742
+ cluster_id: z.string(),
743
+ fleet_name: z.string()
691
744
  });
692
745
  /**
693
746
  * Returns a single object containing fleet details.
694
747
  */
695
748
  export const zGetFleetResponse = zFleet;
696
- export const zUpdateFleetData = z.object({
697
- body: zFleetUpdateInput,
698
- path: z.object({
699
- cluster_id: z.string(),
700
- fleet_name: z.string()
701
- }),
702
- query: z.optional(z.never())
749
+ export const zUpdateFleetBody = zFleetUpdateInput;
750
+ export const zUpdateFleetPath = z.object({
751
+ cluster_id: z.string(),
752
+ fleet_name: z.string()
703
753
  });
704
754
  /**
705
755
  * Successfully updated.
706
756
  */
707
757
  export const zUpdateFleetResponse = z.string();
708
- export const zQueryClusterData = z.object({
709
- body: z.optional(z.never()),
710
- path: z.object({
711
- cluster_id: z.string()
712
- }),
713
- query: z.optional(z.never())
714
- });
715
- export const zListClustersData = z.object({
716
- body: z.optional(z.never()),
717
- path: z.optional(z.never()),
718
- query: z.optional(z.never())
758
+ export const zQueryClusterPath = z.object({
759
+ cluster_id: z.string()
719
760
  });
720
761
  /**
721
762
  * An array of clusters
722
763
  */
723
764
  export const zListClustersResponse = z.array(zCluster);
724
- export const zCreateClusterData = z.object({
725
- body: zClusterCreateInput,
726
- path: z.optional(z.never()),
727
- query: z.optional(z.never())
728
- });
765
+ export const zCreateClusterBody = zClusterCreateInput;
729
766
  /**
730
767
  * Successfully created. Returns created Cluster ID.
731
768
  */
732
769
  export const zCreateClusterResponse = z.string();
733
- export const zDeleteClusterData = z.object({
734
- body: z.optional(z.never()),
735
- path: z.object({
736
- cluster_id: z.string()
737
- }),
738
- query: z.optional(z.never())
770
+ export const zDeleteClusterPath = z.object({
771
+ cluster_id: z.string()
739
772
  });
740
773
  /**
741
774
  * Successfully deleted.
742
775
  */
743
776
  export const zDeleteClusterResponse = z.string();
744
- export const zGetClusterData = z.object({
745
- body: z.optional(z.never()),
746
- path: z.object({
747
- cluster_id: z.string()
748
- }),
749
- query: z.optional(z.never())
777
+ export const zGetClusterPath = z.object({
778
+ cluster_id: z.string()
750
779
  });
751
780
  /**
752
781
  * Returns a single object containing cluster details.
753
782
  */
754
783
  export const zGetClusterResponse = zCluster;
755
- export const zUpdateClusterData = z.object({
756
- body: zClusterUpdateInput,
757
- path: z.object({
758
- cluster_id: z.string()
759
- }),
760
- query: z.optional(z.never())
784
+ export const zUpdateClusterBody = zClusterUpdateInput;
785
+ export const zUpdateClusterPath = z.object({
786
+ cluster_id: z.string()
761
787
  });
762
788
  /**
763
789
  * Successfully updated. Returns updated cluster details.
764
790
  */
765
791
  export const zUpdateClusterResponse = zCluster;
766
- export const zGetJoinInformationData = z.object({
767
- body: z.optional(z.never()),
768
- path: z.object({
769
- cluster_id: z.string()
770
- }),
771
- query: z.optional(z.never())
792
+ export const zGetJoinInformationPath = z.object({
793
+ cluster_id: z.string()
772
794
  });
773
795
  /**
774
796
  * An object of cluster join information
775
797
  */
776
798
  export const zGetJoinInformationResponse = zClusterJoinInformation;
777
- export const zListInvitesData = z.object({
778
- body: z.optional(z.never()),
779
- path: z.optional(z.never()),
780
- query: z.optional(z.never())
781
- });
782
799
  /**
783
800
  * An array of invites
784
801
  */
785
802
  export const zListInvitesResponse = z.array(zInvite);
786
- export const zCreateInviteData = z.object({
787
- body: z.object({
788
- email: z.optional(z.string())
789
- }),
790
- path: z.optional(z.never()),
791
- query: z.optional(z.never())
803
+ export const zCreateInviteBody = z.object({
804
+ email: z.string().optional()
792
805
  });
793
806
  /**
794
807
  * Successfully created. Returns created invite details.
795
808
  */
796
809
  export const zCreateInviteResponse = zInvite;
797
- export const zGetInviteData = z.object({
798
- body: z.optional(z.never()),
799
- path: z.object({
800
- code: z.string()
801
- }),
802
- query: z.optional(z.never())
810
+ export const zGetInvitePath = z.object({
811
+ code: z.string()
803
812
  });
804
813
  /**
805
814
  * Returns a single object containing invite details.
806
815
  */
807
816
  export const zGetInviteResponse = zInvite;
808
- export const zDeleteInviteData = z.object({
809
- body: z.optional(z.never()),
810
- path: z.object({
811
- email: z.string()
812
- }),
813
- query: z.optional(z.never())
814
- });
815
- export const zListMarketplaceChartsData = z.object({
816
- body: z.optional(z.never()),
817
- path: z.optional(z.never()),
818
- query: z.optional(z.never())
817
+ export const zDeleteInvitePath = z.object({
818
+ email: z.string()
819
819
  });
820
820
  /**
821
821
  * An array of chart listings in the marketplace.
822
822
  */
823
823
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
824
- export const zGetMarketplaceChartData = z.object({
825
- body: z.optional(z.never()),
826
- path: z.object({
827
- listing_id: z.string()
828
- }),
829
- query: z.optional(z.never())
824
+ export const zGetMarketplaceChartFilesPath = z.object({
825
+ chart_name: z.string(),
826
+ version_channel: z.string()
827
+ });
828
+ /**
829
+ * Returns an object containing the chart files for the latest matching version.
830
+ */
831
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
832
+ /**
833
+ * JSON-RPC 2.0 request payload
834
+ */
835
+ export const zPostMcpBody = z.object({
836
+ jsonrpc: z.string().optional(),
837
+ method: z.string().optional(),
838
+ id: z.union([
839
+ z.string(),
840
+ z.number()
841
+ ]).optional(),
842
+ params: z.record(z.string(), z.unknown()).optional()
830
843
  });
831
844
  /**
832
- * Returns an object containing the chart listing details.
845
+ * JSON-RPC 2.0 success or error response
833
846
  */
834
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
835
- export const zGetOrganizationData = z.object({
836
- body: z.optional(z.never()),
837
- path: z.optional(z.never()),
838
- query: z.optional(z.never())
847
+ export const zPostMcpResponse = z.object({
848
+ jsonrpc: z.string().optional(),
849
+ id: z.union([
850
+ z.string(),
851
+ z.number()
852
+ ]).optional(),
853
+ result: z.record(z.string(), z.unknown()).optional(),
854
+ error: z.object({
855
+ code: z.int().optional(),
856
+ message: z.string().optional()
857
+ }).optional()
839
858
  });
840
859
  /**
841
860
  * Returns a single object containing organization details.
842
861
  */
843
862
  export const zGetOrganizationResponse = zOrganization;
844
- export const zCreateOrganizationData = z.object({
845
- body: zOrganizationCreateInput,
846
- path: z.optional(z.never()),
847
- query: z.optional(z.never())
863
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
864
+ /**
865
+ * List of repositories
866
+ */
867
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
868
+ export const zListTagsPath = z.object({
869
+ region: z.string(),
870
+ repository: z.string()
848
871
  });
849
- export const zListTokensData = z.object({
850
- body: z.optional(z.never()),
851
- path: z.optional(z.never()),
852
- query: z.optional(z.never())
872
+ /**
873
+ * Repository with tags
874
+ */
875
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
876
+ export const zDeleteTagPath = z.object({
877
+ region: z.string(),
878
+ repository: z.string(),
879
+ tag: z.string()
880
+ });
881
+ export const zGetTagPath = z.object({
882
+ region: z.string(),
883
+ repository: z.string(),
884
+ tag: z.string()
885
+ });
886
+ /**
887
+ * Tag details
888
+ */
889
+ export const zGetTagResponse = zRegistryTag;
890
+ /**
891
+ * Tickets for the organization.
892
+ */
893
+ export const zListTicketsResponse = zTicketListResponse;
894
+ export const zCreateTicketBody = z.object({
895
+ payload: z.string().optional(),
896
+ attachments: z.array(z.string()).optional()
897
+ });
898
+ /**
899
+ * Ticket created.
900
+ */
901
+ export const zCreateTicketResponse = zTicket;
902
+ export const zCloseTicketPath = z.object({
903
+ ticket_id: z.string()
904
+ });
905
+ /**
906
+ * Ticket closed.
907
+ */
908
+ export const zCloseTicketResponse = zTicket;
909
+ export const zGetTicketPath = z.object({
910
+ ticket_id: z.string()
911
+ });
912
+ /**
913
+ * Ticket with messages (internal notes excluded).
914
+ */
915
+ export const zGetTicketResponse = zTicket;
916
+ export const zReplyTicketBody = z.object({
917
+ payload: z.string().optional(),
918
+ attachments: z.array(z.string()).optional()
919
+ });
920
+ export const zReplyTicketPath = z.object({
921
+ ticket_id: z.string()
853
922
  });
923
+ /**
924
+ * Reply appended.
925
+ */
926
+ export const zReplyTicketResponse = zTicketMessage;
927
+ export const zGetTicketAttachmentPath = z.object({
928
+ ticket_id: z.string(),
929
+ attachment_id: z.string()
930
+ });
931
+ /**
932
+ * Attachment binary stream.
933
+ */
934
+ export const zGetTicketAttachmentResponse = z.string();
854
935
  /**
855
936
  * Returns a list of access token details with masked secrets.
856
937
  */
857
938
  export const zListTokensResponse = z.array(zToken);
858
- export const zCreateTokenData = z.object({
859
- body: zTokenCreateInput,
860
- path: z.optional(z.never()),
861
- query: z.optional(z.never())
862
- });
939
+ export const zCreateTokenBody = zTokenCreateInput;
863
940
  /**
864
941
  * Successfully created. Returns created token details with unmasked/raw secret.
865
942
  */
866
943
  export const zCreateTokenResponse = zToken;
867
- export const zDeleteTokenData = z.object({
868
- body: z.optional(z.never()),
869
- path: z.object({
870
- token_id: z.string()
871
- }),
872
- query: z.optional(z.never())
944
+ export const zDeleteTokenPath = z.object({
945
+ token_id: z.string()
873
946
  });
874
- export const zGetTokenData = z.object({
875
- body: z.optional(z.never()),
876
- path: z.object({
877
- token_id: z.string()
878
- }),
879
- query: z.optional(z.never())
947
+ export const zGetTokenPath = z.object({
948
+ token_id: z.string()
880
949
  });
881
950
  /**
882
951
  * Returns access token details with masked secret.
883
952
  */
884
953
  export const zGetTokenResponse = zToken;
885
- export const zUpdateTokenData = z.object({
886
- body: zTokenUpdateInput,
887
- path: z.object({
888
- token_id: z.string()
889
- }),
890
- query: z.optional(z.never())
954
+ export const zUpdateTokenBody = zTokenUpdateInput;
955
+ export const zUpdateTokenPath = z.object({
956
+ token_id: z.string()
891
957
  });
892
958
  /**
893
959
  * Successfully updated. Returns updated token details with masked secret.
894
960
  */
895
961
  export const zUpdateTokenResponse = zToken;
896
- export const zRegenerateTokenData = z.object({
897
- body: z.optional(z.never()),
898
- path: z.object({
899
- token_id: z.string()
900
- }),
901
- query: z.optional(z.never())
962
+ export const zRegenerateTokenPath = z.object({
963
+ token_id: z.string()
902
964
  });
903
965
  /**
904
966
  * Successfully updated. Returns updated token details with unmasked / raw secret.
905
967
  */
906
968
  export const zRegenerateTokenResponse = zToken;
907
- export const zListUserOrganizationsData = z.object({
908
- body: z.optional(z.never()),
909
- path: z.object({
910
- email: z.string()
911
- }),
912
- query: z.optional(z.never())
969
+ export const zListUserOrganizationsPath = z.object({
970
+ email: z.string()
913
971
  });
914
972
  /**
915
973
  * An array of organizations the user belongs to.
916
974
  */
917
975
  export const zListUserOrganizationsResponse = z.array(z.object({
918
- realm: z.optional(z.string()),
919
- displayName: z.optional(z.string())
976
+ realm: z.string().optional(),
977
+ displayName: z.string().optional()
920
978
  }));
921
- export const zListUsersData = z.object({
922
- body: z.optional(z.never()),
923
- path: z.optional(z.never()),
924
- query: z.optional(z.never())
925
- });
926
979
  /**
927
980
  * An array of users
928
981
  */
929
982
  export const zListUsersResponse = z.array(zUser);
930
- export const zCreateUserData = z.object({
931
- body: zUserCreateInput,
932
- path: z.optional(z.never()),
933
- query: z.optional(z.never())
934
- });
983
+ export const zCreateUserBody = zUserCreateInput;
935
984
  /**
936
985
  * Successfully created. Returns created user details.
937
986
  */
938
987
  export const zCreateUserResponse = zUser;
939
- export const zDeleteUserData = z.object({
940
- body: z.optional(z.never()),
941
- path: z.object({
942
- user_id: z.string()
943
- }),
944
- query: z.optional(z.never())
988
+ export const zDeleteUserPath = z.object({
989
+ user_id: z.string()
945
990
  });
946
991
  /**
947
992
  * User profile information
948
993
  */
949
994
  export const zDeleteUserResponse = zUser;
950
- export const zGetUserData = z.object({
951
- body: z.optional(z.never()),
952
- path: z.object({
953
- user_id: z.string()
954
- }),
955
- query: z.optional(z.never())
995
+ export const zGetUserPath = z.object({
996
+ user_id: z.string()
956
997
  });
957
998
  /**
958
999
  * User profile information
959
1000
  */
960
1001
  export const zGetUserResponse = zUser;
961
- export const zUpdateUserData = z.object({
962
- body: zUserUpdateInput,
963
- path: z.object({
964
- user_id: z.string()
965
- }),
966
- query: z.optional(z.never())
1002
+ export const zUpdateUserBody = zUserUpdateInput;
1003
+ export const zUpdateUserPath = z.object({
1004
+ user_id: z.string()
967
1005
  });
968
1006
  /**
969
1007
  * Successfully created. Returns created user details.