@cloudfleet/sdk 0.0.1-2791829 → 0.0.1-28564af

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 +960 -131
  46. package/dist/schemas.gen.d.ts.map +1 -1
  47. package/dist/schemas.gen.js +1618 -263
  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 +903 -57
  55. package/dist/types.gen.d.ts.map +1 -1
  56. package/dist/zod.gen.d.ts +887 -617
  57. package/dist/zod.gen.d.ts.map +1 -1
  58. package/dist/zod.gen.js +491 -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,118 @@ 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
+ certificate_ca: z.string().optional(),
252
+ version_current: z.string().optional(),
253
+ created_at: z.string().optional(),
254
+ updated_at: z.string().optional(),
255
+ ready: z.boolean().optional(),
256
+ 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
257
  });
263
258
  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-]+)*))?$/))
259
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
260
+ tier: z.enum(['basic', 'pro']),
261
+ 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
262
  });
271
263
  export const zFleetCreateInput = z.object({
272
- limits: z.optional(z.object({
264
+ limits: z.object({
273
265
  cpu: z.number().gte(0)
274
- })),
275
- gcp: z.optional(z.object({
276
- enabled: z.optional(z.boolean()).default(true),
266
+ }).optional(),
267
+ gcp: z.object({
268
+ enabled: z.boolean().optional().default(true),
277
269
  project: z.string()
278
- })),
279
- hetzner: z.optional(z.object({
280
- enabled: z.optional(z.boolean()).default(true),
270
+ }).optional(),
271
+ hetzner: z.object({
272
+ enabled: z.boolean().optional().default(true),
281
273
  apiKey: z.string()
282
- })),
283
- aws: z.optional(z.object({
284
- enabled: z.optional(z.boolean()).default(true),
274
+ }).optional(),
275
+ aws: z.object({
276
+ enabled: z.boolean().optional().default(true),
285
277
  controllerRoleArn: z.string()
286
- })),
278
+ }).optional(),
287
279
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
288
280
  });
289
281
  export const zFleet = z.object({
290
- limits: z.optional(z.object({
282
+ limits: z.object({
291
283
  cpu: z.number().gte(0)
292
- })),
293
- gcp: z.optional(z.object({
294
- enabled: z.optional(z.boolean()).default(true),
284
+ }).optional(),
285
+ gcp: z.object({
286
+ enabled: z.boolean().optional().default(true),
295
287
  project: z.string()
296
- })),
297
- hetzner: z.optional(z.object({
298
- enabled: z.optional(z.boolean()).default(true),
288
+ }).optional(),
289
+ hetzner: z.object({
290
+ enabled: z.boolean().optional().default(true),
299
291
  apiKey: z.string()
300
- })),
301
- aws: z.optional(z.object({
302
- enabled: z.optional(z.boolean()).default(true),
292
+ }).optional(),
293
+ aws: z.object({
294
+ enabled: z.boolean().optional().default(true),
303
295
  controllerRoleArn: z.string()
304
- })),
296
+ }).optional(),
305
297
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
306
298
  });
307
299
  export const zFleetUpdateInput = z.object({
308
- limits: z.optional(z.object({
300
+ limits: z.object({
309
301
  cpu: z.number().gte(0)
310
- })),
311
- gcp: z.optional(z.object({
312
- enabled: z.optional(z.boolean()).default(true),
302
+ }).optional(),
303
+ gcp: z.object({
304
+ enabled: z.boolean().optional().default(true),
313
305
  project: z.string()
314
- })),
315
- hetzner: z.optional(z.object({
316
- enabled: z.optional(z.boolean()).default(true),
306
+ }).optional(),
307
+ hetzner: z.object({
308
+ enabled: z.boolean().optional().default(true),
317
309
  apiKey: z.string()
318
- })),
319
- aws: z.optional(z.object({
320
- enabled: z.optional(z.boolean()).default(true),
310
+ }).optional(),
311
+ aws: z.object({
312
+ enabled: z.boolean().optional().default(true),
321
313
  controllerRoleArn: z.string()
322
- }))
314
+ }).optional()
323
315
  });
324
316
  export const zInvite = z.object({
325
- id: z.optional(z.string()),
326
- organization_id: z.optional(z.uuid()),
317
+ id: z.string().optional(),
318
+ organization_id: z.uuid().optional(),
327
319
  date_created: z.iso.datetime(),
328
- email: z.optional(z.email()),
329
- code: z.optional(z.string())
320
+ email: z.email().optional(),
321
+ code: z.string().optional()
330
322
  });
331
323
  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()),
324
+ id: z.string().optional(),
325
+ number: z.string().optional(),
326
+ status: z.string().optional(),
327
+ total: z.number().optional(),
328
+ currency: z.string().optional(),
337
329
  created: z.iso.datetime(),
338
330
  period_start: z.iso.datetime(),
339
331
  period_end: z.iso.datetime(),
340
- invoice_pdf: z.optional(z.string())
332
+ invoice_pdf: z.string().optional()
333
+ });
334
+ export const zMarketplaceListingFiles = z.object({
335
+ chartYaml: z.string().optional(),
336
+ valuesYaml: z.string().optional(),
337
+ valuesSchemaJson: z.string().optional()
341
338
  });
342
339
  export const zMarketplaceListing = z.object({
343
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
344
340
  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()),
341
+ 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
342
  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
- }))
343
+ latestVersion: z.string(),
344
+ metadata: z.object({
345
+ name: z.string(),
346
+ version: z.string(),
347
+ description: z.string().optional(),
348
+ appVersion: z.string().optional(),
349
+ apiVersion: z.string().optional(),
350
+ keywords: z.array(z.string()).optional(),
351
+ home: z.string().optional(),
352
+ icon: z.string().optional(),
353
+ sources: z.array(z.string()).optional(),
354
+ maintainers: z.array(z.object({
355
+ name: z.string(),
356
+ email: z.string().optional()
357
+ })).optional()
358
+ }).optional()
356
359
  });
357
360
  export const zOrganizationCreateInput = z.object({
358
361
  email: z.email(),
@@ -363,7 +366,7 @@ export const zOrganizationCreateInput = z.object({
363
366
  });
364
367
  export const zOrganization = z.object({
365
368
  id: z.uuid(),
366
- name: z.optional(z.string().min(2).max(120)),
369
+ name: z.string().min(2).max(120).optional(),
367
370
  date_created: z.iso.datetime(),
368
371
  quota: z.object({
369
372
  basic_clusters_max: z.int().gte(0),
@@ -376,7 +379,8 @@ export const zOrganization = z.object({
376
379
  versions: z.array(z.object({
377
380
  id: z.string(),
378
381
  label: z.string()
379
- })).min(1)
382
+ })).min(1),
383
+ cfcr_storage_gb: z.int().gte(-1)
380
384
  }),
381
385
  status: z.enum([
382
386
  'active',
@@ -387,9 +391,7 @@ export const zOrganization = z.object({
387
391
  export const zPaymentMethod = z.object({
388
392
  id: z.uuid(),
389
393
  setup: z.boolean(),
390
- type: z.enum([
391
- 'card'
392
- ]),
394
+ type: z.enum(['card']),
393
395
  last4: z.string(),
394
396
  exp_month: z.int().gte(1).lte(12),
395
397
  exp_year: z.int().gte(2024),
@@ -405,73 +407,202 @@ export const zPaymentMethod = z.object({
405
407
  'unknown'
406
408
  ])
407
409
  });
410
+ export const zPlatformQuota = z.object({
411
+ basic_clusters_max: z.int().gte(0),
412
+ basic_clusters_available: z.int(),
413
+ pro_clusters_max: z.int().gte(0),
414
+ pro_clusters_available: z.int(),
415
+ fleets_max: z.int().gte(0),
416
+ cluster_tiers: z.array(z.string()).min(0),
417
+ regions: z.array(z.string()).min(1),
418
+ versions: z.array(z.object({
419
+ id: z.string(),
420
+ label: z.string()
421
+ })).min(1),
422
+ cfcr_storage_gb: z.int().gte(-1)
423
+ });
424
+ export const zRegistryRepository = z.object({
425
+ name: z.string(),
426
+ region: z.string(),
427
+ uri: z.string()
428
+ });
429
+ export const zRegistryRepositoryWithTags = z.object({
430
+ name: z.string(),
431
+ region: z.string(),
432
+ uri: z.string(),
433
+ tags: z.array(z.object({
434
+ name: z.string(),
435
+ size: z.number(),
436
+ mediaType: z.string().optional(),
437
+ platforms: z.array(z.string()).optional()
438
+ })),
439
+ totalSize: z.number()
440
+ });
441
+ export const zRegistryTag = z.object({
442
+ name: z.string(),
443
+ digest: z.string(),
444
+ mediaType: z.string().optional(),
445
+ config: z.object({
446
+ size: z.number()
447
+ }).optional(),
448
+ layers: z.array(z.object({
449
+ digest: z.string().optional(),
450
+ size: z.number()
451
+ })).optional(),
452
+ manifests: z.array(z.object({
453
+ digest: z.string(),
454
+ platform: z.object({
455
+ architecture: z.string(),
456
+ os: z.string(),
457
+ variant: z.string().optional()
458
+ }).optional(),
459
+ layers: z.array(z.object({
460
+ digest: z.string().optional(),
461
+ size: z.number()
462
+ })).optional(),
463
+ size: z.number().optional()
464
+ })).optional(),
465
+ size: z.number(),
466
+ region: z.string(),
467
+ repository: z.string(),
468
+ uri: z.string()
469
+ });
470
+ export const zTicketAttachment = z.object({
471
+ id: z.string(),
472
+ filename: z.string(),
473
+ content_type: z.string(),
474
+ size: z.int()
475
+ });
476
+ export const zTicketCreateInput = z.object({
477
+ category: z.enum([
478
+ 'billing',
479
+ 'technical',
480
+ 'general'
481
+ ]),
482
+ body: z.string().min(1).max(50000).regex(/\S/),
483
+ properties: z.record(z.string(), z.unknown()).optional()
484
+ });
485
+ export const zTicketListResponse = z.object({
486
+ items: z.array(z.object({
487
+ id: z.string(),
488
+ status: z.enum([
489
+ 'waiting_on_us',
490
+ 'waiting_on_user',
491
+ 'closed'
492
+ ]),
493
+ category: z.enum([
494
+ 'billing',
495
+ 'technical',
496
+ 'general'
497
+ ]),
498
+ summary: z.string(),
499
+ closed_at: z.iso.datetime().optional(),
500
+ date_created: z.iso.datetime(),
501
+ date_updated: z.iso.datetime(),
502
+ messages: z.array(z.object({
503
+ id: z.string(),
504
+ type: z.enum(['customer_reply', 'agent_reply']),
505
+ body: z.string(),
506
+ author_first_name: z.string().optional(),
507
+ author_last_name: z.string().optional(),
508
+ attachments: z.array(z.object({
509
+ id: z.string(),
510
+ filename: z.string(),
511
+ content_type: z.string(),
512
+ size: z.int()
513
+ })).optional(),
514
+ date_created: z.iso.datetime()
515
+ })).optional()
516
+ }))
517
+ });
518
+ export const zTicketMessageInput = z.object({
519
+ body: z.string().min(1).max(50000).regex(/\S/)
520
+ });
521
+ export const zTicketMessage = z.object({
522
+ id: z.string(),
523
+ type: z.enum(['customer_reply', 'agent_reply']),
524
+ body: z.string(),
525
+ author_first_name: z.string().optional(),
526
+ author_last_name: z.string().optional(),
527
+ attachments: z.array(z.object({
528
+ id: z.string(),
529
+ filename: z.string(),
530
+ content_type: z.string(),
531
+ size: z.int()
532
+ })).optional(),
533
+ date_created: z.iso.datetime()
534
+ });
535
+ export const zTicket = z.object({
536
+ id: z.string(),
537
+ status: z.enum([
538
+ 'waiting_on_us',
539
+ 'waiting_on_user',
540
+ 'closed'
541
+ ]),
542
+ category: z.enum([
543
+ 'billing',
544
+ 'technical',
545
+ 'general'
546
+ ]),
547
+ summary: z.string(),
548
+ closed_at: z.iso.datetime().optional(),
549
+ date_created: z.iso.datetime(),
550
+ date_updated: z.iso.datetime(),
551
+ messages: z.array(z.object({
552
+ id: z.string(),
553
+ type: z.enum(['customer_reply', 'agent_reply']),
554
+ body: z.string(),
555
+ author_first_name: z.string().optional(),
556
+ author_last_name: z.string().optional(),
557
+ attachments: z.array(z.object({
558
+ id: z.string(),
559
+ filename: z.string(),
560
+ content_type: z.string(),
561
+ size: z.int()
562
+ })).optional(),
563
+ date_created: z.iso.datetime()
564
+ })).optional()
565
+ });
408
566
  export const zTokenCreateInput = z.object({
409
567
  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
- ])
568
+ role: z.enum(['Administrator', 'User'])
414
569
  });
415
570
  export const zToken = z.object({
416
571
  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()),
572
+ role: z.enum(['Administrator', 'User']),
573
+ id: z.string().optional(),
574
+ secret: z.string().optional(),
423
575
  date_created: z.iso.datetime()
424
576
  });
425
577
  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
- ]))
578
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
579
+ role: z.enum(['Administrator', 'User']).optional()
580
+ });
581
+ export const zUsageFacets = z.object({
582
+ cluster_id: z.array(z.string()).optional(),
583
+ product: z.array(z.string()).optional()
584
+ });
585
+ export const zUsageResponse = z.object({
586
+ data: z.array(z.object({
587
+ hour: z.string(),
588
+ cluster_id: z.string(),
589
+ product: z.string(),
590
+ value: z.number(),
591
+ price: z.number(),
592
+ total: z.number()
593
+ })),
594
+ facets: z.object({
595
+ cluster_id: z.array(z.string()).optional(),
596
+ product: z.array(z.string()).optional()
597
+ })
431
598
  });
432
599
  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
- ])
600
+ hour: z.string(),
601
+ cluster_id: z.string(),
602
+ product: z.string(),
603
+ value: z.number(),
604
+ price: z.number(),
605
+ total: z.number()
475
606
  });
476
607
  export const zUserCreateInput = z.object({
477
608
  email: z.email(),
@@ -479,491 +610,394 @@ export const zUserCreateInput = z.object({
479
610
  last_name: z.string().min(1).max(50),
480
611
  code: z.string(),
481
612
  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
- ]))
613
+ status: z.enum(['active', 'inactive']).optional(),
614
+ role: z.enum(['Administrator', 'User']).optional()
490
615
  });
491
616
  export const zUser = z.object({
492
617
  email: z.email(),
493
618
  first_name: z.string().min(1).max(50),
494
619
  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
- ]),
620
+ role: z.enum(['Administrator', 'User']),
621
+ status: z.enum(['active', 'inactive']),
503
622
  id: z.uuid(),
504
623
  date_created: z.iso.datetime()
505
624
  });
506
625
  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
- ]))
626
+ email: z.email().optional(),
627
+ first_name: z.string().min(1).max(50).optional(),
628
+ last_name: z.string().min(1).max(50).optional(),
629
+ role: z.enum(['Administrator', 'User']).optional(),
630
+ status: z.enum(['active', 'inactive']).optional()
518
631
  });
519
- export const zGetUsageData = z.object({
520
- body: z.optional(z.never()),
521
- path: z.optional(z.never()),
522
- query: z.optional(z.never())
632
+ export const zGetUsageQuery = z.object({
633
+ granularity: z.enum([
634
+ 'hourly',
635
+ 'daily',
636
+ 'monthly'
637
+ ]).optional().default('daily')
523
638
  });
524
639
  /**
525
- * An array of usage records.
640
+ * Usage data with facets for filtering
526
641
  */
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
- });
642
+ export const zGetUsageResponse = zUsageResponse;
533
643
  /**
534
644
  * Redacted payment card information.
535
645
  */
536
646
  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
647
  /**
543
648
  * 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
649
  *
545
650
  */
546
651
  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())
652
+ id: z.string().optional()
553
653
  });
554
654
  /**
555
655
  * An array of usage records.
556
656
  */
557
657
  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
658
  /**
564
659
  * Returns a single object containing organization contact and billing address details.
565
660
  */
566
661
  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
- });
662
+ export const zUpdateContactBody = zBillingContact;
572
663
  /**
573
664
  * Successfully updated. Returns updated organization details.
574
665
  */
575
666
  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
667
  /**
582
668
  * An array of the applied promotional credits records.
583
669
  */
584
670
  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())
671
+ export const zRedeemCreditsBody = z.object({
672
+ code: z.string().optional()
591
673
  });
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())
674
+ export const zListChartsPath = z.object({
675
+ cluster_id: z.string()
598
676
  });
599
677
  /**
600
678
  * An array of charts
601
679
  */
602
680
  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())
681
+ export const zCreateChartBody = zChartCreateInput;
682
+ export const zCreateChartPath = z.object({
683
+ cluster_id: z.string()
609
684
  });
610
685
  /**
611
686
  * Successfully created. Returns created Chart ID.
612
687
  */
613
688
  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())
689
+ export const zDeleteChartPath = z.object({
690
+ cluster_id: z.string(),
691
+ chart_name: z.string()
621
692
  });
622
693
  /**
623
694
  * Successfully deleted.
624
695
  */
625
696
  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())
697
+ export const zGetChartPath = z.object({
698
+ cluster_id: z.string(),
699
+ chart_name: z.string()
633
700
  });
634
701
  /**
635
702
  * Returns a single object containing chart details.
636
703
  */
637
704
  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())
705
+ export const zUpdateChartBody = zChartUpdateInput;
706
+ export const zUpdateChartPath = z.object({
707
+ cluster_id: z.string(),
708
+ chart_name: z.string()
645
709
  });
646
710
  /**
647
711
  * Successfully updated.
648
712
  */
649
713
  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())
714
+ export const zListFleetsPath = z.object({
715
+ cluster_id: z.string()
656
716
  });
657
717
  /**
658
718
  * An array of fleets
659
719
  */
660
720
  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())
721
+ export const zCreateFleetBody = zFleetCreateInput;
722
+ export const zCreateFleetPath = z.object({
723
+ cluster_id: z.string()
667
724
  });
668
725
  /**
669
726
  * Successfully created. Returns created Fleet ID.
670
727
  */
671
728
  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())
729
+ export const zDeleteFleetPath = z.object({
730
+ cluster_id: z.string(),
731
+ fleet_name: z.string()
679
732
  });
680
733
  /**
681
734
  * Successfully deleted.
682
735
  */
683
736
  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())
737
+ export const zGetFleetPath = z.object({
738
+ cluster_id: z.string(),
739
+ fleet_name: z.string()
691
740
  });
692
741
  /**
693
742
  * Returns a single object containing fleet details.
694
743
  */
695
744
  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())
745
+ export const zUpdateFleetBody = zFleetUpdateInput;
746
+ export const zUpdateFleetPath = z.object({
747
+ cluster_id: z.string(),
748
+ fleet_name: z.string()
703
749
  });
704
750
  /**
705
751
  * Successfully updated.
706
752
  */
707
753
  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())
754
+ export const zQueryClusterPath = z.object({
755
+ cluster_id: z.string()
719
756
  });
720
757
  /**
721
758
  * An array of clusters
722
759
  */
723
760
  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
- });
761
+ export const zCreateClusterBody = zClusterCreateInput;
729
762
  /**
730
763
  * Successfully created. Returns created Cluster ID.
731
764
  */
732
765
  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())
766
+ export const zDeleteClusterPath = z.object({
767
+ cluster_id: z.string()
739
768
  });
740
769
  /**
741
770
  * Successfully deleted.
742
771
  */
743
772
  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())
773
+ export const zGetClusterPath = z.object({
774
+ cluster_id: z.string()
750
775
  });
751
776
  /**
752
777
  * Returns a single object containing cluster details.
753
778
  */
754
779
  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())
780
+ export const zUpdateClusterBody = zClusterUpdateInput;
781
+ export const zUpdateClusterPath = z.object({
782
+ cluster_id: z.string()
761
783
  });
762
784
  /**
763
785
  * Successfully updated. Returns updated cluster details.
764
786
  */
765
787
  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())
788
+ export const zGetJoinInformationPath = z.object({
789
+ cluster_id: z.string()
772
790
  });
773
791
  /**
774
792
  * An object of cluster join information
775
793
  */
776
794
  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
795
  /**
783
796
  * An array of invites
784
797
  */
785
798
  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())
799
+ export const zCreateInviteBody = z.object({
800
+ email: z.string().optional()
792
801
  });
793
802
  /**
794
803
  * Successfully created. Returns created invite details.
795
804
  */
796
805
  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())
806
+ export const zGetInvitePath = z.object({
807
+ code: z.string()
803
808
  });
804
809
  /**
805
810
  * Returns a single object containing invite details.
806
811
  */
807
812
  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())
813
+ export const zDeleteInvitePath = z.object({
814
+ email: z.string()
819
815
  });
820
816
  /**
821
817
  * An array of chart listings in the marketplace.
822
818
  */
823
819
  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())
820
+ export const zGetMarketplaceChartFilesPath = z.object({
821
+ chart_name: z.string(),
822
+ version_channel: z.string()
830
823
  });
831
824
  /**
832
- * Returns an object containing the chart listing details.
825
+ * Returns an object containing the chart files for the latest matching version.
833
826
  */
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())
827
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
828
+ /**
829
+ * JSON-RPC 2.0 request payload
830
+ */
831
+ export const zPostMcpBody = z.object({
832
+ jsonrpc: z.string().optional(),
833
+ method: z.string().optional(),
834
+ id: z.union([
835
+ z.string(),
836
+ z.number()
837
+ ]).optional(),
838
+ params: z.record(z.string(), z.unknown()).optional()
839
+ });
840
+ /**
841
+ * JSON-RPC 2.0 success or error response
842
+ */
843
+ export const zPostMcpResponse = z.object({
844
+ jsonrpc: z.string().optional(),
845
+ id: z.union([
846
+ z.string(),
847
+ z.number()
848
+ ]).optional(),
849
+ result: z.record(z.string(), z.unknown()).optional(),
850
+ error: z.object({
851
+ code: z.int().optional(),
852
+ message: z.string().optional()
853
+ }).optional()
839
854
  });
840
855
  /**
841
856
  * Returns a single object containing organization details.
842
857
  */
843
858
  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())
859
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
860
+ /**
861
+ * List of repositories
862
+ */
863
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
864
+ export const zListTagsPath = z.object({
865
+ region: z.string(),
866
+ repository: z.string()
848
867
  });
849
- export const zListTokensData = z.object({
850
- body: z.optional(z.never()),
851
- path: z.optional(z.never()),
852
- query: z.optional(z.never())
868
+ /**
869
+ * Repository with tags
870
+ */
871
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
872
+ export const zDeleteTagPath = z.object({
873
+ region: z.string(),
874
+ repository: z.string(),
875
+ tag: z.string()
876
+ });
877
+ export const zGetTagPath = z.object({
878
+ region: z.string(),
879
+ repository: z.string(),
880
+ tag: z.string()
881
+ });
882
+ /**
883
+ * Tag details
884
+ */
885
+ export const zGetTagResponse = zRegistryTag;
886
+ /**
887
+ * Tickets for the organization.
888
+ */
889
+ export const zListTicketsResponse = zTicketListResponse;
890
+ export const zCreateTicketBody = z.object({
891
+ payload: z.string().optional(),
892
+ attachments: z.array(z.string()).optional()
893
+ });
894
+ /**
895
+ * Ticket created.
896
+ */
897
+ export const zCreateTicketResponse = zTicket;
898
+ export const zCloseTicketPath = z.object({
899
+ ticket_id: z.string()
900
+ });
901
+ /**
902
+ * Ticket closed.
903
+ */
904
+ export const zCloseTicketResponse = zTicket;
905
+ export const zGetTicketPath = z.object({
906
+ ticket_id: z.string()
907
+ });
908
+ /**
909
+ * Ticket with messages (internal notes excluded).
910
+ */
911
+ export const zGetTicketResponse = zTicket;
912
+ export const zReplyTicketBody = z.object({
913
+ payload: z.string().optional(),
914
+ attachments: z.array(z.string()).optional()
915
+ });
916
+ export const zReplyTicketPath = z.object({
917
+ ticket_id: z.string()
853
918
  });
919
+ /**
920
+ * Reply appended.
921
+ */
922
+ export const zReplyTicketResponse = zTicketMessage;
923
+ export const zGetTicketAttachmentPath = z.object({
924
+ ticket_id: z.string(),
925
+ attachment_id: z.string()
926
+ });
927
+ /**
928
+ * Attachment binary stream.
929
+ */
930
+ export const zGetTicketAttachmentResponse = z.string();
854
931
  /**
855
932
  * Returns a list of access token details with masked secrets.
856
933
  */
857
934
  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
- });
935
+ export const zCreateTokenBody = zTokenCreateInput;
863
936
  /**
864
937
  * Successfully created. Returns created token details with unmasked/raw secret.
865
938
  */
866
939
  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())
940
+ export const zDeleteTokenPath = z.object({
941
+ token_id: z.string()
873
942
  });
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())
943
+ export const zGetTokenPath = z.object({
944
+ token_id: z.string()
880
945
  });
881
946
  /**
882
947
  * Returns access token details with masked secret.
883
948
  */
884
949
  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())
950
+ export const zUpdateTokenBody = zTokenUpdateInput;
951
+ export const zUpdateTokenPath = z.object({
952
+ token_id: z.string()
891
953
  });
892
954
  /**
893
955
  * Successfully updated. Returns updated token details with masked secret.
894
956
  */
895
957
  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())
958
+ export const zRegenerateTokenPath = z.object({
959
+ token_id: z.string()
902
960
  });
903
961
  /**
904
962
  * Successfully updated. Returns updated token details with unmasked / raw secret.
905
963
  */
906
964
  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())
965
+ export const zListUserOrganizationsPath = z.object({
966
+ email: z.string()
913
967
  });
914
968
  /**
915
969
  * An array of organizations the user belongs to.
916
970
  */
917
971
  export const zListUserOrganizationsResponse = z.array(z.object({
918
- realm: z.optional(z.string()),
919
- displayName: z.optional(z.string())
972
+ realm: z.string().optional(),
973
+ displayName: z.string().optional()
920
974
  }));
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
975
  /**
927
976
  * An array of users
928
977
  */
929
978
  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
- });
979
+ export const zCreateUserBody = zUserCreateInput;
935
980
  /**
936
981
  * Successfully created. Returns created user details.
937
982
  */
938
983
  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())
984
+ export const zDeleteUserPath = z.object({
985
+ user_id: z.string()
945
986
  });
946
987
  /**
947
988
  * User profile information
948
989
  */
949
990
  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())
991
+ export const zGetUserPath = z.object({
992
+ user_id: z.string()
956
993
  });
957
994
  /**
958
995
  * User profile information
959
996
  */
960
997
  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())
998
+ export const zUpdateUserBody = zUserUpdateInput;
999
+ export const zUpdateUserPath = z.object({
1000
+ user_id: z.string()
967
1001
  });
968
1002
  /**
969
1003
  * Successfully created. Returns created user details.