@cloudfleet/sdk 0.0.1-2b670e2 → 0.0.1-2bacf54

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