@cloudfleet/sdk 0.0.1-6dc1aad → 0.0.1-713251e

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 (68) hide show
  1. package/dist/client/client.gen.d.ts +3 -0
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/client.gen.js +205 -0
  4. package/dist/client/client.gen.js.map +1 -0
  5. package/dist/client/index.d.ts +9 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +7 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.gen.d.ts +125 -0
  10. package/dist/client/types.gen.d.ts.map +1 -0
  11. package/dist/client/types.gen.js +3 -0
  12. package/dist/client/types.gen.js.map +1 -0
  13. package/dist/client/utils.gen.d.ts +34 -0
  14. package/dist/client/utils.gen.d.ts.map +1 -0
  15. package/dist/client/utils.gen.js +231 -0
  16. package/dist/client/utils.gen.js.map +1 -0
  17. package/dist/client.gen.d.ts +4 -4
  18. package/dist/client.gen.d.ts.map +1 -1
  19. package/dist/client.gen.js +1 -1
  20. package/dist/client.gen.js.map +1 -1
  21. package/dist/core/auth.gen.d.ts +19 -0
  22. package/dist/core/auth.gen.d.ts.map +1 -0
  23. package/dist/core/auth.gen.js +15 -0
  24. package/dist/core/auth.gen.js.map +1 -0
  25. package/dist/core/bodySerializer.gen.d.ts +18 -0
  26. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/core/bodySerializer.gen.js +58 -0
  28. package/dist/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/core/params.gen.d.ts +34 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +89 -0
  32. package/dist/core/params.gen.js.map +1 -0
  33. package/dist/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/core/pathSerializer.gen.js +115 -0
  36. package/dist/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  38. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  39. package/dist/core/queryKeySerializer.gen.js +100 -0
  40. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/core/serverSentEvents.gen.js +136 -0
  44. package/dist/core/serverSentEvents.gen.js.map +1 -0
  45. package/dist/core/types.gen.d.ts +79 -0
  46. package/dist/core/types.gen.d.ts.map +1 -0
  47. package/dist/core/types.gen.js +3 -0
  48. package/dist/core/types.gen.js.map +1 -0
  49. package/dist/core/utils.gen.d.ts +20 -0
  50. package/dist/core/utils.gen.d.ts.map +1 -0
  51. package/dist/core/utils.gen.js +88 -0
  52. package/dist/core/utils.gen.js.map +1 -0
  53. package/dist/schemas.gen.d.ts +549 -468
  54. package/dist/schemas.gen.d.ts.map +1 -1
  55. package/dist/schemas.gen.js +564 -502
  56. package/dist/schemas.gen.js.map +1 -1
  57. package/dist/sdk.gen.d.ts +132 -62
  58. package/dist/sdk.gen.d.ts.map +1 -1
  59. package/dist/sdk.gen.js +162 -73
  60. package/dist/sdk.gen.js.map +1 -1
  61. package/dist/services/kubernetes/api.d.ts +12 -12
  62. package/dist/types.gen.d.ts +534 -324
  63. package/dist/types.gen.d.ts.map +1 -1
  64. package/dist/zod.gen.d.ts +1642 -2581
  65. package/dist/zod.gen.d.ts.map +1 -1
  66. package/dist/zod.gen.js +592 -920
  67. package/dist/zod.gen.js.map +1 -1
  68. package/package.json +5 -6
package/dist/zod.gen.js CHANGED
@@ -1,19 +1,18 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { z } from 'zod';
3
3
  export const zBillingContact = z.object({
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
- email: z.string().email(),
13
- first_name: z.string(),
14
- last_name: z.string(),
15
- tax_id: z.string().optional(),
16
- tax_id_type: z.enum([
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()),
12
+ email: z.email(),
13
+ individual_name: z.string(),
14
+ tax_id: z.optional(z.string()),
15
+ tax_id_type: z.optional(z.enum([
17
16
  'ad_nrt',
18
17
  'ae_trn',
19
18
  'al_tin',
@@ -142,21 +141,20 @@ export const zBillingContact = z.object({
142
141
  'zm_tin',
143
142
  'zw_tin',
144
143
  ''
145
- ]).optional()
144
+ ]))
146
145
  });
147
146
  export const zBillingCredits = z.object({
148
- id: z.string().optional(),
149
- date_created: z.string().datetime(),
150
- code: z.string(),
151
- description: z.string().optional(),
152
- products: z.array(z.string()).optional(),
147
+ id: z.optional(z.string()),
153
148
  type: z.enum([
154
149
  'credit',
155
150
  'discount'
156
151
  ]),
157
- value: z.number(),
158
- billing_period: z.string().datetime(),
159
- value_remaining: z.number().optional()
152
+ date_start: z.iso.datetime(),
153
+ date_end: z.optional(z.iso.datetime()),
154
+ code: z.string(),
155
+ description: z.optional(z.string()),
156
+ value_total: z.number(),
157
+ value_remaining: z.optional(z.number())
160
158
  });
161
159
  export const zChartCreateInput = z.object({
162
160
  values: z.string(),
@@ -202,22 +200,24 @@ export const zClusterCreateInput = z.object({
202
200
  'basic',
203
201
  'pro'
204
202
  ]),
205
- region: z.enum([
203
+ region: z.optional(z.enum([
206
204
  'staging',
207
205
  'northamerica-central-1',
208
- 'europe-central-1a'
209
- ]).optional(),
210
- version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x')
206
+ 'europe-central-1a',
207
+ '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')
211
210
  });
212
211
  export const zClusterJoinInformation = z.object({
213
212
  certificate_authority: z.string(),
214
- endpoint: z.string().url(),
213
+ endpoint: z.url(),
215
214
  auth_key: z.string(),
216
215
  bootstrap_token: z.string(),
217
216
  versions: z.object({
218
217
  kubernetes: z.string(),
219
218
  tailscale: z.string(),
220
- containerd: z.string()
219
+ containerd: z.string(),
220
+ nvidia_driver: z.string()
221
221
  }),
222
222
  third_party_api_access_config: z.object({
223
223
  metadata_url: z.string(),
@@ -231,723 +231,164 @@ export const zCluster = z.object({
231
231
  'basic',
232
232
  'pro'
233
233
  ]),
234
- region: z.enum([
234
+ region: z.optional(z.enum([
235
235
  'staging',
236
236
  'northamerica-central-1',
237
- 'europe-central-1a'
238
- ]).optional(),
239
- version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
240
- id: z.string().uuid(),
237
+ 'europe-central-1a',
238
+ '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'),
241
+ id: z.uuid(),
241
242
  status: z.enum([
242
243
  'active',
244
+ 'disabled',
243
245
  'deleted',
244
246
  'creating',
245
247
  'deployed',
246
248
  'failed',
247
249
  'updating'
248
250
  ]),
249
- endpoint: z.union([
250
- z.string().url(),
251
+ endpoint: z.optional(z.union([
252
+ z.url(),
251
253
  z.enum([
252
254
  ''
253
255
  ])
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()
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())
260
262
  });
261
263
  export const zClusterUpdateInput = z.object({
262
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
264
+ name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
263
265
  tier: z.enum([
264
266
  'basic',
265
267
  'pro'
266
268
  ]),
267
- version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
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-]+)*))?$/))
268
270
  });
269
271
  export const zFleetCreateInput = z.object({
270
- limits: z.object({
272
+ limits: z.optional(z.object({
271
273
  cpu: z.number().gte(0)
272
- }).optional(),
273
- gcp: z.object({
274
- enabled: z.boolean().optional().default(true),
274
+ })),
275
+ gcp: z.optional(z.object({
276
+ enabled: z.optional(z.boolean()).default(true),
275
277
  project: z.string()
276
- }).optional(),
277
- hetzner: z.object({
278
- enabled: z.boolean().optional().default(true),
278
+ })),
279
+ hetzner: z.optional(z.object({
280
+ enabled: z.optional(z.boolean()).default(true),
279
281
  apiKey: z.string()
280
- }).optional(),
281
- aws: z.object({
282
- enabled: z.boolean().optional().default(true),
282
+ })),
283
+ aws: z.optional(z.object({
284
+ enabled: z.optional(z.boolean()).default(true),
283
285
  controllerRoleArn: z.string()
284
- }).optional(),
286
+ })),
285
287
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
286
288
  });
287
289
  export const zFleet = z.object({
288
- limits: z.object({
290
+ limits: z.optional(z.object({
289
291
  cpu: z.number().gte(0)
290
- }).optional(),
291
- gcp: z.object({
292
- enabled: z.boolean().optional().default(true),
292
+ })),
293
+ gcp: z.optional(z.object({
294
+ enabled: z.optional(z.boolean()).default(true),
293
295
  project: z.string()
294
- }).optional(),
295
- hetzner: z.object({
296
- enabled: z.boolean().optional().default(true),
296
+ })),
297
+ hetzner: z.optional(z.object({
298
+ enabled: z.optional(z.boolean()).default(true),
297
299
  apiKey: z.string()
298
- }).optional(),
299
- aws: z.object({
300
- enabled: z.boolean().optional().default(true),
300
+ })),
301
+ aws: z.optional(z.object({
302
+ enabled: z.optional(z.boolean()).default(true),
301
303
  controllerRoleArn: z.string()
302
- }).optional(),
304
+ })),
303
305
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
304
306
  });
305
307
  export const zFleetUpdateInput = z.object({
306
- limits: z.object({
308
+ limits: z.optional(z.object({
307
309
  cpu: z.number().gte(0)
308
- }).optional(),
309
- gcp: z.object({
310
- enabled: z.boolean().optional().default(true),
310
+ })),
311
+ gcp: z.optional(z.object({
312
+ enabled: z.optional(z.boolean()).default(true),
311
313
  project: z.string()
312
- }).optional(),
313
- hetzner: z.object({
314
- enabled: z.boolean().optional().default(true),
314
+ })),
315
+ hetzner: z.optional(z.object({
316
+ enabled: z.optional(z.boolean()).default(true),
315
317
  apiKey: z.string()
316
- }).optional(),
317
- aws: z.object({
318
- enabled: z.boolean().optional().default(true),
318
+ })),
319
+ aws: z.optional(z.object({
320
+ enabled: z.optional(z.boolean()).default(true),
319
321
  controllerRoleArn: z.string()
320
- }).optional()
322
+ }))
321
323
  });
322
324
  export const zInvite = z.object({
323
- id: z.string().optional(),
324
- organization_id: z.string().uuid().optional(),
325
- date_created: z.string().datetime(),
326
- email: z.string().email().optional(),
327
- code: z.string().optional()
325
+ id: z.optional(z.string()),
326
+ organization_id: z.optional(z.uuid()),
327
+ date_created: z.iso.datetime(),
328
+ email: z.optional(z.email()),
329
+ code: z.optional(z.string())
328
330
  });
329
331
  export const zInvoice = z.object({
330
- id: z.string().uuid().optional(),
331
- organizationId: z.string().uuid().optional(),
332
- status: z.enum([
333
- 'DRAFT',
334
- 'COMMITTED',
335
- 'VOID'
336
- ]).optional(),
337
- amount: z.number().optional(),
338
- currency: z.enum([
339
- 'AED',
340
- 'AFN',
341
- 'ALL',
342
- 'AMD',
343
- 'ANG',
344
- 'AOA',
345
- 'ARS',
346
- 'AUD',
347
- 'AWG',
348
- 'AZN',
349
- 'BAM',
350
- 'BBD',
351
- 'BDT',
352
- 'BGN',
353
- 'BHD',
354
- 'BIF',
355
- 'BMD',
356
- 'BND',
357
- 'BOB',
358
- 'BRL',
359
- 'BSD',
360
- 'BTN',
361
- 'BWP',
362
- 'BYR',
363
- 'BZD',
364
- 'CAD',
365
- 'CDF',
366
- 'CHF',
367
- 'CLP',
368
- 'CNY',
369
- 'COP',
370
- 'CRC',
371
- 'CUC',
372
- 'CUP',
373
- 'CVE',
374
- 'CZK',
375
- 'DJF',
376
- 'DKK',
377
- 'DOP',
378
- 'DZD',
379
- 'EGP',
380
- 'ERN',
381
- 'ETB',
382
- 'EUR',
383
- 'FJD',
384
- 'FKP',
385
- 'GBP',
386
- 'GEL',
387
- 'GGP',
388
- 'GHS',
389
- 'GIP',
390
- 'GMD',
391
- 'GNF',
392
- 'GTQ',
393
- 'GYD',
394
- 'HKD',
395
- 'HNL',
396
- 'HRK',
397
- 'HTG',
398
- 'HUF',
399
- 'IDR',
400
- 'ILS',
401
- 'IMP',
402
- 'INR',
403
- 'IQD',
404
- 'IRR',
405
- 'ISK',
406
- 'JEP',
407
- 'JMD',
408
- 'JOD',
409
- 'JPY',
410
- 'KES',
411
- 'KGS',
412
- 'KHR',
413
- 'KMF',
414
- 'KPW',
415
- 'KRW',
416
- 'KWD',
417
- 'KYD',
418
- 'KZT',
419
- 'LAK',
420
- 'LBP',
421
- 'LKR',
422
- 'LRD',
423
- 'LSL',
424
- 'LTL',
425
- 'LVL',
426
- 'LYD',
427
- 'MAD',
428
- 'MDL',
429
- 'MGA',
430
- 'MKD',
431
- 'MMK',
432
- 'MNT',
433
- 'MOP',
434
- 'MRO',
435
- 'MUR',
436
- 'MVR',
437
- 'MWK',
438
- 'MXN',
439
- 'MYR',
440
- 'MZN',
441
- 'NAD',
442
- 'NGN',
443
- 'NIO',
444
- 'NOK',
445
- 'NPR',
446
- 'NZD',
447
- 'OMR',
448
- 'PAB',
449
- 'PEN',
450
- 'PGK',
451
- 'PHP',
452
- 'PKR',
453
- 'PLN',
454
- 'PYG',
455
- 'QAR',
456
- 'RON',
457
- 'RSD',
458
- 'RUB',
459
- 'RWF',
460
- 'SAR',
461
- 'SBD',
462
- 'SCR',
463
- 'SDG',
464
- 'SEK',
465
- 'SGD',
466
- 'SHP',
467
- 'SLL',
468
- 'SOS',
469
- 'SPL',
470
- 'SRD',
471
- 'STD',
472
- 'SVC',
473
- 'SYP',
474
- 'SZL',
475
- 'THB',
476
- 'TJS',
477
- 'TMT',
478
- 'TND',
479
- 'TOP',
480
- 'TRY',
481
- 'TTD',
482
- 'TVD',
483
- 'TWD',
484
- 'TZS',
485
- 'UAH',
486
- 'UGX',
487
- 'USD',
488
- 'UYU',
489
- 'UZS',
490
- 'VEF',
491
- 'VND',
492
- 'VUV',
493
- 'WST',
494
- 'XAF',
495
- 'XCD',
496
- 'XDR',
497
- 'XOF',
498
- 'XPF',
499
- 'YER',
500
- 'ZAR',
501
- 'ZMW',
502
- 'ZWD',
503
- 'BTC'
504
- ]).optional(),
505
- creditAdj: z.number().optional(),
506
- refundAdj: z.number().optional(),
507
- invoiceDate: z.string().optional(),
508
- targetDate: z.string().optional(),
509
- invoiceNumber: z.string().optional(),
510
- balance: z.number().optional(),
511
- bundleKeys: z.string().optional(),
512
- credits: z.array(z.object({
513
- id: z.string().uuid().optional(),
514
- linkedInvoiceItemId: z.string().uuid().optional(),
515
- productName: z.string().optional(),
516
- planName: z.string().optional(),
517
- phaseName: z.string().optional(),
518
- usageName: z.string().optional(),
519
- prettyProductName: z.string().optional(),
520
- prettyPlanName: z.string().optional(),
521
- prettyPhaseName: z.string().optional(),
522
- prettyUsageName: z.string().optional(),
523
- itemType: z.enum([
524
- 'EXTERNAL_CHARGE',
525
- 'FIXED',
526
- 'RECURRING',
527
- 'REPAIR_ADJ',
528
- 'CBA_ADJ',
529
- 'CREDIT_ADJ',
530
- 'ITEM_ADJ',
531
- 'USAGE',
532
- 'TAX',
533
- 'PARENT_SUMMARY'
534
- ]).optional(),
535
- description: z.string().optional(),
536
- startDate: z.string().optional(),
537
- endDate: z.string().optional(),
538
- amount: z.number().optional(),
539
- rate: z.number().optional(),
540
- currency: z.enum([
541
- 'AED',
542
- 'AFN',
543
- 'ALL',
544
- 'AMD',
545
- 'ANG',
546
- 'AOA',
547
- 'ARS',
548
- 'AUD',
549
- 'AWG',
550
- 'AZN',
551
- 'BAM',
552
- 'BBD',
553
- 'BDT',
554
- 'BGN',
555
- 'BHD',
556
- 'BIF',
557
- 'BMD',
558
- 'BND',
559
- 'BOB',
560
- 'BRL',
561
- 'BSD',
562
- 'BTN',
563
- 'BWP',
564
- 'BYR',
565
- 'BZD',
566
- 'CAD',
567
- 'CDF',
568
- 'CHF',
569
- 'CLP',
570
- 'CNY',
571
- 'COP',
572
- 'CRC',
573
- 'CUC',
574
- 'CUP',
575
- 'CVE',
576
- 'CZK',
577
- 'DJF',
578
- 'DKK',
579
- 'DOP',
580
- 'DZD',
581
- 'EGP',
582
- 'ERN',
583
- 'ETB',
584
- 'EUR',
585
- 'FJD',
586
- 'FKP',
587
- 'GBP',
588
- 'GEL',
589
- 'GGP',
590
- 'GHS',
591
- 'GIP',
592
- 'GMD',
593
- 'GNF',
594
- 'GTQ',
595
- 'GYD',
596
- 'HKD',
597
- 'HNL',
598
- 'HRK',
599
- 'HTG',
600
- 'HUF',
601
- 'IDR',
602
- 'ILS',
603
- 'IMP',
604
- 'INR',
605
- 'IQD',
606
- 'IRR',
607
- 'ISK',
608
- 'JEP',
609
- 'JMD',
610
- 'JOD',
611
- 'JPY',
612
- 'KES',
613
- 'KGS',
614
- 'KHR',
615
- 'KMF',
616
- 'KPW',
617
- 'KRW',
618
- 'KWD',
619
- 'KYD',
620
- 'KZT',
621
- 'LAK',
622
- 'LBP',
623
- 'LKR',
624
- 'LRD',
625
- 'LSL',
626
- 'LTL',
627
- 'LVL',
628
- 'LYD',
629
- 'MAD',
630
- 'MDL',
631
- 'MGA',
632
- 'MKD',
633
- 'MMK',
634
- 'MNT',
635
- 'MOP',
636
- 'MRO',
637
- 'MUR',
638
- 'MVR',
639
- 'MWK',
640
- 'MXN',
641
- 'MYR',
642
- 'MZN',
643
- 'NAD',
644
- 'NGN',
645
- 'NIO',
646
- 'NOK',
647
- 'NPR',
648
- 'NZD',
649
- 'OMR',
650
- 'PAB',
651
- 'PEN',
652
- 'PGK',
653
- 'PHP',
654
- 'PKR',
655
- 'PLN',
656
- 'PYG',
657
- 'QAR',
658
- 'RON',
659
- 'RSD',
660
- 'RUB',
661
- 'RWF',
662
- 'SAR',
663
- 'SBD',
664
- 'SCR',
665
- 'SDG',
666
- 'SEK',
667
- 'SGD',
668
- 'SHP',
669
- 'SLL',
670
- 'SOS',
671
- 'SPL',
672
- 'SRD',
673
- 'STD',
674
- 'SVC',
675
- 'SYP',
676
- 'SZL',
677
- 'THB',
678
- 'TJS',
679
- 'TMT',
680
- 'TND',
681
- 'TOP',
682
- 'TRY',
683
- 'TTD',
684
- 'TVD',
685
- 'TWD',
686
- 'TZS',
687
- 'UAH',
688
- 'UGX',
689
- 'USD',
690
- 'UYU',
691
- 'UZS',
692
- 'VEF',
693
- 'VND',
694
- 'VUV',
695
- 'WST',
696
- 'XAF',
697
- 'XCD',
698
- 'XDR',
699
- 'XOF',
700
- 'XPF',
701
- 'YER',
702
- 'ZAR',
703
- 'ZMW',
704
- 'ZWD',
705
- 'BTC'
706
- ]).optional(),
707
- quantity: z.number().optional(),
708
- itemDetails: z.string().optional(),
709
- catalogEffectiveDate: z.string().optional(),
710
- childItems: z.array(z.unknown()).optional()
711
- })).optional(),
712
- items: z.array(z.object({
713
- id: z.string().uuid().optional(),
714
- linkedInvoiceItemId: z.string().uuid().optional(),
715
- productName: z.string().optional(),
716
- planName: z.string().optional(),
717
- phaseName: z.string().optional(),
718
- usageName: z.string().optional(),
719
- prettyProductName: z.string().optional(),
720
- prettyPlanName: z.string().optional(),
721
- prettyPhaseName: z.string().optional(),
722
- prettyUsageName: z.string().optional(),
723
- itemType: z.enum([
724
- 'EXTERNAL_CHARGE',
725
- 'FIXED',
726
- 'RECURRING',
727
- 'REPAIR_ADJ',
728
- 'CBA_ADJ',
729
- 'CREDIT_ADJ',
730
- 'ITEM_ADJ',
731
- 'USAGE',
732
- 'TAX',
733
- 'PARENT_SUMMARY'
734
- ]).optional(),
735
- description: z.string().optional(),
736
- startDate: z.string().optional(),
737
- endDate: z.string().optional(),
738
- amount: z.number().optional(),
739
- rate: z.number().optional(),
740
- currency: z.enum([
741
- 'AED',
742
- 'AFN',
743
- 'ALL',
744
- 'AMD',
745
- 'ANG',
746
- 'AOA',
747
- 'ARS',
748
- 'AUD',
749
- 'AWG',
750
- 'AZN',
751
- 'BAM',
752
- 'BBD',
753
- 'BDT',
754
- 'BGN',
755
- 'BHD',
756
- 'BIF',
757
- 'BMD',
758
- 'BND',
759
- 'BOB',
760
- 'BRL',
761
- 'BSD',
762
- 'BTN',
763
- 'BWP',
764
- 'BYR',
765
- 'BZD',
766
- 'CAD',
767
- 'CDF',
768
- 'CHF',
769
- 'CLP',
770
- 'CNY',
771
- 'COP',
772
- 'CRC',
773
- 'CUC',
774
- 'CUP',
775
- 'CVE',
776
- 'CZK',
777
- 'DJF',
778
- 'DKK',
779
- 'DOP',
780
- 'DZD',
781
- 'EGP',
782
- 'ERN',
783
- 'ETB',
784
- 'EUR',
785
- 'FJD',
786
- 'FKP',
787
- 'GBP',
788
- 'GEL',
789
- 'GGP',
790
- 'GHS',
791
- 'GIP',
792
- 'GMD',
793
- 'GNF',
794
- 'GTQ',
795
- 'GYD',
796
- 'HKD',
797
- 'HNL',
798
- 'HRK',
799
- 'HTG',
800
- 'HUF',
801
- 'IDR',
802
- 'ILS',
803
- 'IMP',
804
- 'INR',
805
- 'IQD',
806
- 'IRR',
807
- 'ISK',
808
- 'JEP',
809
- 'JMD',
810
- 'JOD',
811
- 'JPY',
812
- 'KES',
813
- 'KGS',
814
- 'KHR',
815
- 'KMF',
816
- 'KPW',
817
- 'KRW',
818
- 'KWD',
819
- 'KYD',
820
- 'KZT',
821
- 'LAK',
822
- 'LBP',
823
- 'LKR',
824
- 'LRD',
825
- 'LSL',
826
- 'LTL',
827
- 'LVL',
828
- 'LYD',
829
- 'MAD',
830
- 'MDL',
831
- 'MGA',
832
- 'MKD',
833
- 'MMK',
834
- 'MNT',
835
- 'MOP',
836
- 'MRO',
837
- 'MUR',
838
- 'MVR',
839
- 'MWK',
840
- 'MXN',
841
- 'MYR',
842
- 'MZN',
843
- 'NAD',
844
- 'NGN',
845
- 'NIO',
846
- 'NOK',
847
- 'NPR',
848
- 'NZD',
849
- 'OMR',
850
- 'PAB',
851
- 'PEN',
852
- 'PGK',
853
- 'PHP',
854
- 'PKR',
855
- 'PLN',
856
- 'PYG',
857
- 'QAR',
858
- 'RON',
859
- 'RSD',
860
- 'RUB',
861
- 'RWF',
862
- 'SAR',
863
- 'SBD',
864
- 'SCR',
865
- 'SDG',
866
- 'SEK',
867
- 'SGD',
868
- 'SHP',
869
- 'SLL',
870
- 'SOS',
871
- 'SPL',
872
- 'SRD',
873
- 'STD',
874
- 'SVC',
875
- 'SYP',
876
- 'SZL',
877
- 'THB',
878
- 'TJS',
879
- 'TMT',
880
- 'TND',
881
- 'TOP',
882
- 'TRY',
883
- 'TTD',
884
- 'TVD',
885
- 'TWD',
886
- 'TZS',
887
- 'UAH',
888
- 'UGX',
889
- 'USD',
890
- 'UYU',
891
- 'UZS',
892
- 'VEF',
893
- 'VND',
894
- 'VUV',
895
- 'WST',
896
- 'XAF',
897
- 'XCD',
898
- 'XDR',
899
- 'XOF',
900
- 'XPF',
901
- 'YER',
902
- 'ZAR',
903
- 'ZMW',
904
- 'ZWD',
905
- 'BTC'
906
- ]).optional(),
907
- quantity: z.number().optional(),
908
- itemDetails: z.string().optional(),
909
- catalogEffectiveDate: z.string().optional(),
910
- childItems: z.array(z.unknown()).optional()
911
- })).optional()
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()),
337
+ created: z.iso.datetime(),
338
+ period_start: z.iso.datetime(),
339
+ period_end: z.iso.datetime(),
340
+ invoice_pdf: z.optional(z.string())
341
+ });
342
+ export const zMarketplaceListingFiles = z.object({
343
+ chartYaml: z.optional(z.string()),
344
+ valuesYaml: z.optional(z.string()),
345
+ valuesSchemaJson: z.optional(z.string())
912
346
  });
913
347
  export const zMarketplaceListing = z.object({
914
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
915
348
  name: z.string(),
916
- developer: z.string(),
917
- description: z.string(),
918
- logoUrl: z.string(),
919
- longDescription: z.string(),
920
- categories: z.array(z.string()),
349
+ 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-]+)*))?$/)),
921
350
  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-]+)*))?$/)),
922
- value_schemas: z.array(z.object({
923
- 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-]+)*))?$/),
924
- schema: z.string(),
925
- placeholder: z.string()
351
+ latestVersion: z.string(),
352
+ metadata: z.optional(z.object({
353
+ name: z.string(),
354
+ version: z.string(),
355
+ description: z.optional(z.string()),
356
+ appVersion: z.optional(z.string()),
357
+ apiVersion: z.optional(z.string()),
358
+ keywords: z.optional(z.array(z.string())),
359
+ home: z.optional(z.string()),
360
+ sources: z.optional(z.array(z.string())),
361
+ maintainers: z.optional(z.array(z.object({
362
+ name: z.string(),
363
+ email: z.optional(z.string())
364
+ })))
926
365
  }))
927
366
  });
928
367
  export const zOrganizationCreateInput = z.object({
929
- email: z.string().email(),
368
+ email: z.email(),
930
369
  first_name: z.string(),
931
370
  last_name: z.string(),
932
371
  company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
933
372
  password: z.string().min(8)
934
373
  });
935
374
  export const zOrganization = z.object({
936
- id: z.string().uuid(),
937
- name: z.string().min(2).max(120).optional(),
938
- date_created: z.string().datetime(),
375
+ id: z.uuid(),
376
+ name: z.optional(z.string().min(2).max(120)),
377
+ date_created: z.iso.datetime(),
939
378
  quota: z.object({
940
- basic_clusters_max: z.number().int().gte(0),
941
- basic_clusters_available: z.number().int(),
942
- pro_clusters_max: z.number().int().gte(0),
943
- pro_clusters_available: z.number().int(),
944
- fleets_max: z.number().int().gte(0),
379
+ basic_clusters_max: z.int().gte(0),
380
+ basic_clusters_available: z.int(),
381
+ pro_clusters_max: z.int().gte(0),
382
+ pro_clusters_available: z.int(),
383
+ fleets_max: z.int().gte(0),
945
384
  cluster_tiers: z.array(z.string()).min(0),
946
385
  regions: z.array(z.string()).min(1),
947
386
  versions: z.array(z.object({
948
387
  id: z.string(),
949
388
  label: z.string()
950
- })).min(1)
389
+ })).min(1),
390
+ copilot_user_hourly_tokens: z.int().gte(0),
391
+ copilot_organization_hourly_tokens: z.int().gte(0)
951
392
  }),
952
393
  status: z.enum([
953
394
  'active',
@@ -956,14 +397,14 @@ export const zOrganization = z.object({
956
397
  ])
957
398
  });
958
399
  export const zPaymentMethod = z.object({
959
- id: z.string().uuid(),
400
+ id: z.uuid(),
960
401
  setup: z.boolean(),
961
402
  type: z.enum([
962
403
  'card'
963
404
  ]),
964
405
  last4: z.string(),
965
- exp_month: z.number().int().gte(1).lte(12),
966
- exp_year: z.number().int().gte(2024),
406
+ exp_month: z.int().gte(1).lte(12),
407
+ exp_year: z.int().gte(2024),
967
408
  brand: z.enum([
968
409
  'amex',
969
410
  'diners',
@@ -976,6 +417,58 @@ export const zPaymentMethod = z.object({
976
417
  'unknown'
977
418
  ])
978
419
  });
420
+ export const zPlatformQuota = z.object({
421
+ basic_clusters_max: z.int().gte(0),
422
+ basic_clusters_available: z.int(),
423
+ pro_clusters_max: z.int().gte(0),
424
+ pro_clusters_available: z.int(),
425
+ fleets_max: z.int().gte(0),
426
+ cluster_tiers: z.array(z.string()).min(0),
427
+ regions: z.array(z.string()).min(1),
428
+ versions: z.array(z.object({
429
+ id: z.string(),
430
+ label: z.string()
431
+ })).min(1),
432
+ copilot_user_hourly_tokens: z.int().gte(0),
433
+ copilot_organization_hourly_tokens: z.int().gte(0)
434
+ });
435
+ export const zRegistryRepository = z.object({
436
+ name: z.string(),
437
+ region: z.string(),
438
+ uri: z.string()
439
+ });
440
+ export const zRegistryRepositoryWithTags = z.object({
441
+ name: z.string(),
442
+ region: z.string(),
443
+ uri: z.string(),
444
+ tags: z.array(z.object({
445
+ name: z.string(),
446
+ size: z.number(),
447
+ mediaType: z.optional(z.string())
448
+ })),
449
+ totalSize: z.number()
450
+ });
451
+ export const zRegistryTag = z.object({
452
+ name: z.string(),
453
+ mediaType: z.optional(z.string()),
454
+ config: z.optional(z.object({
455
+ size: z.number()
456
+ })),
457
+ layers: z.optional(z.array(z.object({
458
+ size: z.number()
459
+ }))),
460
+ manifests: z.optional(z.array(z.object({
461
+ digest: z.string(),
462
+ platform: z.optional(z.object({
463
+ architecture: z.string(),
464
+ os: z.string()
465
+ }))
466
+ }))),
467
+ size: z.number(),
468
+ region: z.string(),
469
+ repository: z.string(),
470
+ uri: z.string()
471
+ });
979
472
  export const zTokenCreateInput = z.object({
980
473
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
981
474
  role: z.enum([
@@ -989,78 +482,60 @@ export const zToken = z.object({
989
482
  'Administrator',
990
483
  'User'
991
484
  ]),
992
- id: z.string().optional(),
993
- secret: z.string().optional(),
994
- date_created: z.string().datetime()
485
+ id: z.optional(z.string()),
486
+ secret: z.optional(z.string()),
487
+ date_created: z.iso.datetime()
995
488
  });
996
489
  export const zTokenUpdateInput = z.object({
997
- name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
998
- role: z.enum([
490
+ name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
491
+ role: z.optional(z.enum([
999
492
  'Administrator',
1000
493
  'User'
1001
- ]).optional()
494
+ ]))
495
+ });
496
+ export const zUsageFacets = z.object({
497
+ cluster_id: z.optional(z.array(z.string())),
498
+ product: z.optional(z.array(z.string()))
499
+ });
500
+ export const zUsageResponse = z.object({
501
+ data: z.array(z.object({
502
+ hour: z.string(),
503
+ cluster_id: z.string(),
504
+ product: z.string(),
505
+ value: z.number(),
506
+ price: z.number(),
507
+ total: z.number()
508
+ })),
509
+ facets: z.object({
510
+ cluster_id: z.optional(z.array(z.string())),
511
+ product: z.optional(z.array(z.string()))
512
+ })
1002
513
  });
1003
514
  export const zUsage = z.object({
1004
- hour: z.string().optional(),
1005
- cluster_id: z.string().uuid(),
1006
- cluster_tier: z.enum([
1007
- 'basic',
1008
- 'pro',
1009
- ''
1010
- ]),
1011
- product: z.enum([
1012
- 'cfke_controlplane',
1013
- 'cfke_connected_nodes',
1014
- 'infra_compute',
1015
- 'infra_storage',
1016
- 'infra_loadbalancing',
1017
- 'infra_traffic',
1018
- 'cfcr_storage'
1019
- ]),
1020
- node_name: z.string(),
1021
- sku: z.string(),
1022
- cpu: z.union([
1023
- z.number(),
1024
- z.enum([
1025
- ''
1026
- ])
1027
- ]),
1028
- price: z.union([
1029
- z.number(),
1030
- z.enum([
1031
- ''
1032
- ])
1033
- ]),
1034
- value: z.union([
1035
- z.number(),
1036
- z.enum([
1037
- ''
1038
- ])
1039
- ]),
1040
- total: z.union([
1041
- z.number(),
1042
- z.enum([
1043
- ''
1044
- ])
1045
- ])
515
+ hour: z.string(),
516
+ cluster_id: z.string(),
517
+ product: z.string(),
518
+ value: z.number(),
519
+ price: z.number(),
520
+ total: z.number()
1046
521
  });
1047
522
  export const zUserCreateInput = z.object({
1048
- email: z.string().email(),
523
+ email: z.email(),
1049
524
  first_name: z.string().min(1).max(50),
1050
525
  last_name: z.string().min(1).max(50),
1051
526
  code: z.string(),
1052
527
  password: z.string().min(8),
1053
- status: z.enum([
528
+ status: z.optional(z.enum([
1054
529
  'active',
1055
530
  'inactive'
1056
- ]).optional(),
1057
- role: z.enum([
531
+ ])),
532
+ role: z.optional(z.enum([
1058
533
  'Administrator',
1059
534
  'User'
1060
- ]).optional()
535
+ ]))
1061
536
  });
1062
537
  export const zUser = z.object({
1063
- email: z.string().email(),
538
+ email: z.email(),
1064
539
  first_name: z.string().min(1).max(50),
1065
540
  last_name: z.string().min(1).max(50),
1066
541
  role: z.enum([
@@ -1071,352 +546,549 @@ export const zUser = z.object({
1071
546
  'active',
1072
547
  'inactive'
1073
548
  ]),
1074
- id: z.string().uuid(),
1075
- date_created: z.string().datetime()
549
+ id: z.uuid(),
550
+ date_created: z.iso.datetime()
1076
551
  });
1077
552
  export const zUserUpdateInput = z.object({
1078
- email: z.string().email().optional(),
1079
- first_name: z.string().min(1).max(50).optional(),
1080
- last_name: z.string().min(1).max(50).optional(),
1081
- role: z.enum([
553
+ email: z.optional(z.email()),
554
+ first_name: z.optional(z.string().min(1).max(50)),
555
+ last_name: z.optional(z.string().min(1).max(50)),
556
+ role: z.optional(z.enum([
1082
557
  'Administrator',
1083
558
  'User'
1084
- ]).optional(),
1085
- status: z.enum([
559
+ ])),
560
+ status: z.optional(z.enum([
1086
561
  'active',
1087
562
  'inactive'
1088
- ]).optional()
563
+ ]))
564
+ });
565
+ export const zGetUsageData = z.object({
566
+ body: z.optional(z.never()),
567
+ path: z.optional(z.never()),
568
+ query: z.optional(z.object({
569
+ granularity: z.optional(z.enum([
570
+ 'hourly',
571
+ 'daily',
572
+ 'monthly'
573
+ ]))
574
+ }))
1089
575
  });
1090
576
  /**
1091
- * An array of usage records.
1092
- */
1093
- export const zGetUsageResponse = z.array(zUsage);
1094
- /**
1095
- * Current balance of the organization in USD as a floating-point number.
577
+ * Usage data with facets for filtering
1096
578
  */
1097
- export const zGetBalanceResponse = z.number();
579
+ export const zGetUsageResponse = zUsageResponse;
580
+ export const zGetPaymentMethodData = z.object({
581
+ body: z.optional(z.never()),
582
+ path: z.optional(z.never()),
583
+ query: z.optional(z.never())
584
+ });
1098
585
  /**
1099
586
  * Redacted payment card information.
1100
587
  */
1101
588
  export const zGetPaymentMethodResponse = zPaymentMethod;
589
+ export const zGetPaymentMethodSecretData = z.object({
590
+ body: z.optional(z.never()),
591
+ path: z.optional(z.never()),
592
+ query: z.optional(z.never())
593
+ });
1102
594
  /**
1103
595
  * 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.
1104
596
  *
1105
597
  */
1106
598
  export const zGetPaymentMethodSecretResponse = z.object({
1107
- id: z.string().optional()
599
+ id: z.optional(z.string())
600
+ });
601
+ export const zListInvoicesData = z.object({
602
+ body: z.optional(z.never()),
603
+ path: z.optional(z.never()),
604
+ query: z.optional(z.never())
1108
605
  });
1109
- /**
1110
- * Start date for the usage. Date of oldest data point to retrieve.
1111
- */
1112
- export const zListInvoicesParameterStartDate = z.string();
1113
- /**
1114
- * End date for the usage. Date of newest data point to retrieve.
1115
- */
1116
- export const zListInvoicesParameterEndDate = z.string();
1117
606
  /**
1118
607
  * An array of usage records.
1119
608
  */
1120
609
  export const zListInvoicesResponse = z.array(zInvoice);
1121
- /**
1122
- * Unique invoice identifier. UUID v4 string in canonical form
1123
- */
1124
- export const zGetInvoiceParameterId = z.string();
1125
- /**
1126
- * Returns a single Invoice HTML representation under `html` property.
1127
- */
1128
- export const zGetInvoiceResponse = z.object({
1129
- html: z.string().optional()
610
+ export const zGetContactData = z.object({
611
+ body: z.optional(z.never()),
612
+ path: z.optional(z.never()),
613
+ query: z.optional(z.never())
1130
614
  });
1131
615
  /**
1132
616
  * Returns a single object containing organization contact and billing address details.
1133
617
  */
1134
618
  export const zGetContactResponse = zBillingContact;
1135
- export const zUpdateContactData = zBillingContact;
619
+ export const zUpdateContactData = z.object({
620
+ body: zBillingContact,
621
+ path: z.optional(z.never()),
622
+ query: z.optional(z.never())
623
+ });
1136
624
  /**
1137
625
  * Successfully updated. Returns updated organization details.
1138
626
  */
1139
627
  export const zUpdateContactResponse = zBillingContact;
628
+ export const zGetCreditsData = z.object({
629
+ body: z.optional(z.never()),
630
+ path: z.optional(z.never()),
631
+ query: z.optional(z.never())
632
+ });
1140
633
  /**
1141
634
  * An array of the applied promotional credits records.
1142
635
  */
1143
636
  export const zGetCreditsResponse = z.array(zBillingCredits);
1144
637
  export const zRedeemCreditsData = z.object({
1145
- code: z.string().optional()
638
+ body: z.object({
639
+ code: z.optional(z.string())
640
+ }),
641
+ path: z.optional(z.never()),
642
+ query: z.optional(z.never())
643
+ });
644
+ export const zListChartsData = z.object({
645
+ body: z.optional(z.never()),
646
+ path: z.object({
647
+ cluster_id: z.string()
648
+ }),
649
+ query: z.optional(z.never())
1146
650
  });
1147
- /**
1148
- * Unique identifier of the cluster. UUID v4 string in canonical form
1149
- */
1150
- export const zListChartsParameterClusterId = z.string();
1151
651
  /**
1152
652
  * An array of charts
1153
653
  */
1154
654
  export const zListChartsResponse = z.array(zChart);
1155
- export const zCreateChartData = zChartCreateInput;
1156
- /**
1157
- * Unique identifier of the cluster. UUID v4 string in canonical form
1158
- */
1159
- export const zCreateChartParameterClusterId = z.string();
655
+ export const zCreateChartData = z.object({
656
+ body: zChartCreateInput,
657
+ path: z.object({
658
+ cluster_id: z.string()
659
+ }),
660
+ query: z.optional(z.never())
661
+ });
1160
662
  /**
1161
663
  * Successfully created. Returns created Chart ID.
1162
664
  */
1163
665
  export const zCreateChartResponse = z.string();
1164
- /**
1165
- * Unique identifier of the cluster. UUID v4 string in canonical form
1166
- */
1167
- export const zDeleteChartParameterClusterId = z.string();
1168
- /**
1169
- * Chart deployment name as the unique identifier of the chart.
1170
- */
1171
- export const zDeleteChartParameterChartName = z.string();
666
+ export const zDeleteChartData = z.object({
667
+ body: z.optional(z.never()),
668
+ path: z.object({
669
+ cluster_id: z.string(),
670
+ chart_name: z.string()
671
+ }),
672
+ query: z.optional(z.never())
673
+ });
1172
674
  /**
1173
675
  * Successfully deleted.
1174
676
  */
1175
677
  export const zDeleteChartResponse = z.string();
1176
- /**
1177
- * Unique identifier of the cluster. UUID v4 string in canonical form
1178
- */
1179
- export const zGetChartParameterClusterId = z.string();
1180
- /**
1181
- * Chart deployment name as the unique identifier of the chart.
1182
- */
1183
- export const zGetChartParameterChartName = z.string();
678
+ export const zGetChartData = z.object({
679
+ body: z.optional(z.never()),
680
+ path: z.object({
681
+ cluster_id: z.string(),
682
+ chart_name: z.string()
683
+ }),
684
+ query: z.optional(z.never())
685
+ });
1184
686
  /**
1185
687
  * Returns a single object containing chart details.
1186
688
  */
1187
689
  export const zGetChartResponse = zChart;
1188
- export const zUpdateChartData = zChartUpdateInput;
1189
- /**
1190
- * Unique identifier of the cluster. UUID v4 string in canonical form
1191
- */
1192
- export const zUpdateChartParameterClusterId = z.string();
1193
- /**
1194
- * Chart deployment name as the unique identifier of the chart.
1195
- */
1196
- export const zUpdateChartParameterChartName = z.string();
690
+ export const zUpdateChartData = z.object({
691
+ body: zChartUpdateInput,
692
+ path: z.object({
693
+ cluster_id: z.string(),
694
+ chart_name: z.string()
695
+ }),
696
+ query: z.optional(z.never())
697
+ });
1197
698
  /**
1198
699
  * Successfully updated.
1199
700
  */
1200
701
  export const zUpdateChartResponse = z.string();
1201
- /**
1202
- * Unique identifier of the cluster. UUID v4 string in canonical form
1203
- */
1204
- export const zListFleetsParameterClusterId = z.string();
702
+ export const zListFleetsData = z.object({
703
+ body: z.optional(z.never()),
704
+ path: z.object({
705
+ cluster_id: z.string()
706
+ }),
707
+ query: z.optional(z.never())
708
+ });
1205
709
  /**
1206
710
  * An array of fleets
1207
711
  */
1208
712
  export const zListFleetsResponse = z.array(zFleet);
1209
- export const zCreateFleetData = zFleetCreateInput;
1210
- /**
1211
- * Unique identifier of the cluster. UUID v4 string in canonical form
1212
- */
1213
- export const zCreateFleetParameterClusterId = z.string();
713
+ export const zCreateFleetData = z.object({
714
+ body: zFleetCreateInput,
715
+ path: z.object({
716
+ cluster_id: z.string()
717
+ }),
718
+ query: z.optional(z.never())
719
+ });
1214
720
  /**
1215
721
  * Successfully created. Returns created Fleet ID.
1216
722
  */
1217
723
  export const zCreateFleetResponse = z.string();
1218
- /**
1219
- * Unique identifier of the cluster. UUID v4 string in canonical form
1220
- */
1221
- export const zDeleteFleetParameterClusterId = z.string();
1222
- /**
1223
- * Unique identifier of the fleet. UUID v4 string in canonical form
1224
- */
1225
- export const zDeleteFleetParameterFleetName = z.string();
724
+ export const zDeleteFleetData = z.object({
725
+ body: z.optional(z.never()),
726
+ path: z.object({
727
+ cluster_id: z.string(),
728
+ fleet_name: z.string()
729
+ }),
730
+ query: z.optional(z.never())
731
+ });
1226
732
  /**
1227
733
  * Successfully deleted.
1228
734
  */
1229
735
  export const zDeleteFleetResponse = z.string();
1230
- /**
1231
- * Unique identifier of the cluster. UUID v4 string in canonical form
1232
- */
1233
- export const zGetFleetParameterClusterId = z.string();
1234
- /**
1235
- * Unique identifier of the fleet. UUID v4 string in canonical form
1236
- */
1237
- export const zGetFleetParameterFleetName = z.string();
736
+ export const zGetFleetData = z.object({
737
+ body: z.optional(z.never()),
738
+ path: z.object({
739
+ cluster_id: z.string(),
740
+ fleet_name: z.string()
741
+ }),
742
+ query: z.optional(z.never())
743
+ });
1238
744
  /**
1239
745
  * Returns a single object containing fleet details.
1240
746
  */
1241
747
  export const zGetFleetResponse = zFleet;
1242
- export const zUpdateFleetData = zFleetUpdateInput;
1243
- /**
1244
- * Unique identifier of the cluster. UUID v4 string in canonical form
1245
- */
1246
- export const zUpdateFleetParameterClusterId = z.string();
1247
- /**
1248
- * Unique identifier of the fleet. UUID v4 string in canonical form
1249
- */
1250
- export const zUpdateFleetParameterFleetName = z.string();
748
+ export const zUpdateFleetData = z.object({
749
+ body: zFleetUpdateInput,
750
+ path: z.object({
751
+ cluster_id: z.string(),
752
+ fleet_name: z.string()
753
+ }),
754
+ query: z.optional(z.never())
755
+ });
1251
756
  /**
1252
757
  * Successfully updated.
1253
758
  */
1254
759
  export const zUpdateFleetResponse = z.string();
1255
- /**
1256
- * Unique identifier of the cluster. UUID v4 string in canonical form
1257
- */
1258
- export const zQueryClusterParameterClusterId = z.string();
760
+ export const zQueryClusterData = z.object({
761
+ body: z.optional(z.never()),
762
+ path: z.object({
763
+ cluster_id: z.string()
764
+ }),
765
+ query: z.optional(z.never())
766
+ });
767
+ export const zListClustersData = z.object({
768
+ body: z.optional(z.never()),
769
+ path: z.optional(z.never()),
770
+ query: z.optional(z.never())
771
+ });
1259
772
  /**
1260
773
  * An array of clusters
1261
774
  */
1262
775
  export const zListClustersResponse = z.array(zCluster);
1263
- export const zCreateClusterData = zClusterCreateInput;
776
+ export const zCreateClusterData = z.object({
777
+ body: zClusterCreateInput,
778
+ path: z.optional(z.never()),
779
+ query: z.optional(z.never())
780
+ });
1264
781
  /**
1265
782
  * Successfully created. Returns created Cluster ID.
1266
783
  */
1267
784
  export const zCreateClusterResponse = z.string();
1268
- /**
1269
- * Unique identifier of the cluster. UUID v4 string in canonical form
1270
- */
1271
- export const zDeleteClusterParameterClusterId = z.string();
785
+ export const zDeleteClusterData = z.object({
786
+ body: z.optional(z.never()),
787
+ path: z.object({
788
+ cluster_id: z.string()
789
+ }),
790
+ query: z.optional(z.never())
791
+ });
1272
792
  /**
1273
793
  * Successfully deleted.
1274
794
  */
1275
795
  export const zDeleteClusterResponse = z.string();
1276
- /**
1277
- * Unique identifier of the cluster. UUID v4 string in canonical form
1278
- */
1279
- export const zGetClusterParameterClusterId = z.string();
796
+ export const zGetClusterData = z.object({
797
+ body: z.optional(z.never()),
798
+ path: z.object({
799
+ cluster_id: z.string()
800
+ }),
801
+ query: z.optional(z.never())
802
+ });
1280
803
  /**
1281
804
  * Returns a single object containing cluster details.
1282
805
  */
1283
806
  export const zGetClusterResponse = zCluster;
1284
- export const zUpdateClusterData = zClusterUpdateInput;
1285
- /**
1286
- * Unique identifier of the cluster. UUID v4 string in canonical form
1287
- */
1288
- export const zUpdateClusterParameterClusterId = z.string();
807
+ export const zUpdateClusterData = z.object({
808
+ body: zClusterUpdateInput,
809
+ path: z.object({
810
+ cluster_id: z.string()
811
+ }),
812
+ query: z.optional(z.never())
813
+ });
1289
814
  /**
1290
815
  * Successfully updated. Returns updated cluster details.
1291
816
  */
1292
817
  export const zUpdateClusterResponse = zCluster;
1293
- /**
1294
- * Unique identifier of the cluster. UUID v4 string in canonical form
1295
- */
1296
- export const zGetJoinInformationParameterClusterId = z.string();
818
+ export const zGetJoinInformationData = z.object({
819
+ body: z.optional(z.never()),
820
+ path: z.object({
821
+ cluster_id: z.string()
822
+ }),
823
+ query: z.optional(z.never())
824
+ });
1297
825
  /**
1298
826
  * An object of cluster join information
1299
827
  */
1300
- export const zGetJoinInformationResponse = zCluster;
828
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
829
+ export const zListInvitesData = z.object({
830
+ body: z.optional(z.never()),
831
+ path: z.optional(z.never()),
832
+ query: z.optional(z.never())
833
+ });
1301
834
  /**
1302
835
  * An array of invites
1303
836
  */
1304
837
  export const zListInvitesResponse = z.array(zInvite);
1305
838
  export const zCreateInviteData = z.object({
1306
- email: z.string().optional()
839
+ body: z.object({
840
+ email: z.optional(z.string())
841
+ }),
842
+ path: z.optional(z.never()),
843
+ query: z.optional(z.never())
1307
844
  });
1308
845
  /**
1309
846
  * Successfully created. Returns created invite details.
1310
847
  */
1311
848
  export const zCreateInviteResponse = zInvite;
1312
- /**
1313
- * Invitation code
1314
- */
1315
- export const zGetInviteParameterCode = z.string();
849
+ export const zGetInviteData = z.object({
850
+ body: z.optional(z.never()),
851
+ path: z.object({
852
+ code: z.string()
853
+ }),
854
+ query: z.optional(z.never())
855
+ });
1316
856
  /**
1317
857
  * Returns a single object containing invite details.
1318
858
  */
1319
859
  export const zGetInviteResponse = zInvite;
1320
- /**
1321
- * User email address
1322
- */
1323
- export const zDeleteInviteParameterEmail = z.string();
860
+ export const zDeleteInviteData = z.object({
861
+ body: z.optional(z.never()),
862
+ path: z.object({
863
+ email: z.string()
864
+ }),
865
+ query: z.optional(z.never())
866
+ });
867
+ export const zListMarketplaceChartsData = z.object({
868
+ body: z.optional(z.never()),
869
+ path: z.optional(z.never()),
870
+ query: z.optional(z.never())
871
+ });
1324
872
  /**
1325
873
  * An array of chart listings in the marketplace.
1326
874
  */
1327
875
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
876
+ export const zGetMarketplaceChartFilesData = z.object({
877
+ body: z.optional(z.never()),
878
+ path: z.object({
879
+ chart_name: z.string(),
880
+ version: z.string()
881
+ }),
882
+ query: z.optional(z.never())
883
+ });
1328
884
  /**
1329
- * Unique identifier of the chart listing in the marketplace.
1330
- */
1331
- export const zGetMarketplaceChartParameterListingId = z.string();
885
+ * Returns an object containing the chart files.
886
+ */
887
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
888
+ export const zPostMcpData = z.object({
889
+ body: z.object({
890
+ jsonrpc: z.optional(z.string()),
891
+ method: z.optional(z.string()),
892
+ id: z.optional(z.union([
893
+ z.string(),
894
+ z.number()
895
+ ])),
896
+ params: z.optional(z.record(z.string(), z.unknown()))
897
+ }),
898
+ path: z.optional(z.never()),
899
+ query: z.optional(z.never())
900
+ });
1332
901
  /**
1333
- * Returns an object containing the chart listing details.
1334
- */
1335
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
902
+ * JSON-RPC 2.0 success or error response
903
+ */
904
+ export const zPostMcpResponse = z.object({
905
+ jsonrpc: z.optional(z.string()),
906
+ id: z.optional(z.union([
907
+ z.string(),
908
+ z.number()
909
+ ])),
910
+ result: z.optional(z.record(z.string(), z.unknown())),
911
+ error: z.optional(z.object({
912
+ code: z.optional(z.int()),
913
+ message: z.optional(z.string())
914
+ }))
915
+ });
916
+ export const zGetOrganizationData = z.object({
917
+ body: z.optional(z.never()),
918
+ path: z.optional(z.never()),
919
+ query: z.optional(z.never())
920
+ });
1336
921
  /**
1337
922
  * Returns a single object containing organization details.
1338
923
  */
1339
924
  export const zGetOrganizationResponse = zOrganization;
1340
- export const zCreateOrganizationData = zOrganizationCreateInput;
925
+ export const zCreateOrganizationData = z.object({
926
+ body: zOrganizationCreateInput,
927
+ path: z.optional(z.never()),
928
+ query: z.optional(z.never())
929
+ });
930
+ export const zListRepositoriesData = z.object({
931
+ body: z.optional(z.never()),
932
+ path: z.optional(z.never()),
933
+ query: z.optional(z.never())
934
+ });
1341
935
  /**
1342
- * Returns a list of access token details with masked secrets.
936
+ * List of repositories
1343
937
  */
1344
- export const zListTokensResponse = z.array(zToken);
1345
- export const zCreateTokenData = zTokenCreateInput;
938
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
939
+ export const zListTagsData = z.object({
940
+ body: z.optional(z.never()),
941
+ path: z.object({
942
+ region: z.string(),
943
+ repository: z.string()
944
+ }),
945
+ query: z.optional(z.never())
946
+ });
1346
947
  /**
1347
- * Successfully created. Returns created token details with unmasked/raw secret.
948
+ * Repository with tags
1348
949
  */
1349
- export const zCreateTokenResponse = zToken;
950
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
951
+ export const zDeleteTagData = z.object({
952
+ body: z.optional(z.never()),
953
+ path: z.object({
954
+ region: z.string(),
955
+ repository: z.string(),
956
+ tag: z.string()
957
+ }),
958
+ query: z.optional(z.never())
959
+ });
960
+ export const zGetTagData = z.object({
961
+ body: z.optional(z.never()),
962
+ path: z.object({
963
+ region: z.string(),
964
+ repository: z.string(),
965
+ tag: z.string()
966
+ }),
967
+ query: z.optional(z.never())
968
+ });
1350
969
  /**
1351
- * Generated unique identifier of the access token.
970
+ * Tag details
1352
971
  */
1353
- export const zDeleteTokenParameterTokenId = z.string();
972
+ export const zGetTagResponse = zRegistryTag;
973
+ export const zListTokensData = z.object({
974
+ body: z.optional(z.never()),
975
+ path: z.optional(z.never()),
976
+ query: z.optional(z.never())
977
+ });
1354
978
  /**
1355
- * Generated unique identifier of the access token.
979
+ * Returns a list of access token details with masked secrets.
1356
980
  */
1357
- export const zGetTokenParameterTokenId = z.string();
981
+ export const zListTokensResponse = z.array(zToken);
982
+ export const zCreateTokenData = z.object({
983
+ body: zTokenCreateInput,
984
+ path: z.optional(z.never()),
985
+ query: z.optional(z.never())
986
+ });
1358
987
  /**
1359
- * Returns access token details with masked secret.
988
+ * Successfully created. Returns created token details with unmasked/raw secret.
1360
989
  */
1361
- export const zGetTokenResponse = zToken;
1362
- export const zUpdateTokenData = zTokenUpdateInput;
990
+ export const zCreateTokenResponse = zToken;
991
+ export const zDeleteTokenData = z.object({
992
+ body: z.optional(z.never()),
993
+ path: z.object({
994
+ token_id: z.string()
995
+ }),
996
+ query: z.optional(z.never())
997
+ });
998
+ export const zGetTokenData = z.object({
999
+ body: z.optional(z.never()),
1000
+ path: z.object({
1001
+ token_id: z.string()
1002
+ }),
1003
+ query: z.optional(z.never())
1004
+ });
1363
1005
  /**
1364
- * Generated unique identifier of the access token.
1006
+ * Returns access token details with masked secret.
1365
1007
  */
1366
- export const zUpdateTokenParameterTokenId = z.string();
1008
+ export const zGetTokenResponse = zToken;
1009
+ export const zUpdateTokenData = z.object({
1010
+ body: zTokenUpdateInput,
1011
+ path: z.object({
1012
+ token_id: z.string()
1013
+ }),
1014
+ query: z.optional(z.never())
1015
+ });
1367
1016
  /**
1368
1017
  * Successfully updated. Returns updated token details with masked secret.
1369
1018
  */
1370
1019
  export const zUpdateTokenResponse = zToken;
1371
- /**
1372
- * Generated unique identifier of the access token.
1373
- */
1374
- export const zRegenerateTokenParameterTokenId = z.string();
1020
+ export const zRegenerateTokenData = z.object({
1021
+ body: z.optional(z.never()),
1022
+ path: z.object({
1023
+ token_id: z.string()
1024
+ }),
1025
+ query: z.optional(z.never())
1026
+ });
1375
1027
  /**
1376
1028
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1377
1029
  */
1378
1030
  export const zRegenerateTokenResponse = zToken;
1379
- /**
1380
- * User email address.
1381
- */
1382
- export const zListUserOrganizationsParameterEmail = z.string();
1031
+ export const zListUserOrganizationsData = z.object({
1032
+ body: z.optional(z.never()),
1033
+ path: z.object({
1034
+ email: z.string()
1035
+ }),
1036
+ query: z.optional(z.never())
1037
+ });
1383
1038
  /**
1384
1039
  * An array of organizations the user belongs to.
1385
1040
  */
1386
1041
  export const zListUserOrganizationsResponse = z.array(z.object({
1387
- realm: z.string().optional(),
1388
- displayName: z.string().optional()
1042
+ realm: z.optional(z.string()),
1043
+ displayName: z.optional(z.string())
1389
1044
  }));
1045
+ export const zListUsersData = z.object({
1046
+ body: z.optional(z.never()),
1047
+ path: z.optional(z.never()),
1048
+ query: z.optional(z.never())
1049
+ });
1390
1050
  /**
1391
1051
  * An array of users
1392
1052
  */
1393
1053
  export const zListUsersResponse = z.array(zUser);
1394
- export const zCreateUserData = zUserCreateInput;
1054
+ export const zCreateUserData = z.object({
1055
+ body: zUserCreateInput,
1056
+ path: z.optional(z.never()),
1057
+ query: z.optional(z.never())
1058
+ });
1395
1059
  /**
1396
1060
  * Successfully created. Returns created user details.
1397
1061
  */
1398
1062
  export const zCreateUserResponse = zUser;
1399
- /**
1400
- * Unique user identifier. UUID v4 string in canonical form
1401
- */
1402
- export const zDeleteUserParameterUserId = z.string();
1063
+ export const zDeleteUserData = z.object({
1064
+ body: z.optional(z.never()),
1065
+ path: z.object({
1066
+ user_id: z.string()
1067
+ }),
1068
+ query: z.optional(z.never())
1069
+ });
1403
1070
  /**
1404
1071
  * User profile information
1405
1072
  */
1406
1073
  export const zDeleteUserResponse = zUser;
1407
- /**
1408
- * Unique user identifier. UUID v4 string in canonical form
1409
- */
1410
- export const zGetUserParameterUserId = z.string();
1074
+ export const zGetUserData = z.object({
1075
+ body: z.optional(z.never()),
1076
+ path: z.object({
1077
+ user_id: z.string()
1078
+ }),
1079
+ query: z.optional(z.never())
1080
+ });
1411
1081
  /**
1412
1082
  * User profile information
1413
1083
  */
1414
1084
  export const zGetUserResponse = zUser;
1415
- export const zUpdateUserData = zUserUpdateInput;
1416
- /**
1417
- * Unique user identifier. UUID v4 string in canonical form
1418
- */
1419
- export const zUpdateUserParameterUserId = z.string();
1085
+ export const zUpdateUserData = z.object({
1086
+ body: zUserUpdateInput,
1087
+ path: z.object({
1088
+ user_id: z.string()
1089
+ }),
1090
+ query: z.optional(z.never())
1091
+ });
1420
1092
  /**
1421
1093
  * Successfully created. Returns created user details.
1422
1094
  */