@cloudfleet/sdk 0.0.1-2bdeb58 → 0.0.1-2f36f6a

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 +235 -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 +118 -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 +229 -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 +2 -4
  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 +26 -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 +44 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +101 -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 +107 -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 +93 -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 +134 -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 +703 -594
  54. package/dist/schemas.gen.d.ts.map +1 -1
  55. package/dist/schemas.gen.js +1217 -684
  56. package/dist/schemas.gen.js.map +1 -1
  57. package/dist/sdk.gen.d.ts +141 -76
  58. package/dist/sdk.gen.d.ts.map +1 -1
  59. package/dist/sdk.gen.js +171 -185
  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 +613 -362
  63. package/dist/types.gen.d.ts.map +1 -1
  64. package/dist/zod.gen.d.ts +1821 -2209
  65. package/dist/zod.gen.d.ts.map +1 -1
  66. package/dist/zod.gen.js +719 -773
  67. package/dist/zod.gen.js.map +1 -1
  68. package/package.json +10 -7
package/dist/zod.gen.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod';
2
+ import * as z from 'zod';
3
3
  export const zBillingContact = z.object({
4
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
5
  address1: z.string().optional(),
@@ -9,9 +9,8 @@ export const zBillingContact = z.object({
9
9
  state: z.string().optional(),
10
10
  country: z.string().optional(),
11
11
  phone: z.string().optional(),
12
- email: z.string().email(),
13
- first_name: z.string(),
14
- last_name: z.string(),
12
+ email: z.email(),
13
+ individual_name: z.string(),
15
14
  tax_id: z.string().optional(),
16
15
  tax_id_type: z.enum([
17
16
  'ad_nrt',
@@ -20,11 +19,14 @@ export const zBillingContact = z.object({
20
19
  'am_tin',
21
20
  'ao_tin',
22
21
  'ar_cuit',
22
+ 'at_vat',
23
23
  'au_abn',
24
24
  'au_arn',
25
25
  'ba_tin',
26
26
  'bb_tin',
27
+ 'be_vat',
27
28
  'bg_uic',
29
+ 'bg_vat',
28
30
  'bh_vat',
29
31
  'bo_tin',
30
32
  'br_cnpj',
@@ -44,23 +46,35 @@ export const zBillingContact = z.object({
44
46
  'cn_tin',
45
47
  'co_nit',
46
48
  'cr_tin',
49
+ 'cy_vat',
50
+ 'cz_vat',
47
51
  'de_stn',
52
+ 'de_vat',
53
+ 'dk_vat',
48
54
  'do_rcn',
49
55
  'ec_ruc',
56
+ 'ee_vat',
50
57
  'eg_tin',
51
58
  'es_cif',
59
+ 'es_vat',
52
60
  'eu_oss_vat',
53
- 'eu_vat',
61
+ 'fi_vat',
62
+ 'fr_vat',
54
63
  'gb_vat',
55
64
  'ge_vat',
56
65
  'gn_nif',
66
+ 'gr_vat',
57
67
  'hk_br',
58
68
  'hr_oib',
69
+ 'hr_vat',
59
70
  'hu_tin',
71
+ 'hu_vat',
60
72
  'id_npwp',
73
+ 'ie_vat',
61
74
  'il_vat',
62
75
  'in_gst',
63
76
  'is_vat',
77
+ 'it_vat',
64
78
  'jp_cn',
65
79
  'jp_rn',
66
80
  'jp_trn',
@@ -70,16 +84,21 @@ export const zBillingContact = z.object({
70
84
  'kz_bin',
71
85
  'li_uid',
72
86
  'li_vat',
87
+ 'lt_vat',
88
+ 'lu_vat',
89
+ 'lv_vat',
73
90
  'ma_vat',
74
91
  'md_vat',
75
92
  'me_pib',
76
93
  'mk_vat',
77
94
  'mr_nif',
95
+ 'mt_vat',
78
96
  'mx_rfc',
79
97
  'my_frp',
80
98
  'my_itn',
81
99
  'my_sst',
82
100
  'ng_tin',
101
+ 'nl_vat',
83
102
  'no_vat',
84
103
  'no_voec',
85
104
  'np_pan',
@@ -87,14 +106,20 @@ export const zBillingContact = z.object({
87
106
  'om_vat',
88
107
  'pe_ruc',
89
108
  'ph_tin',
109
+ 'pl_vat',
110
+ 'pt_vat',
90
111
  'ro_tin',
112
+ 'ro_vat',
91
113
  'rs_pib',
92
114
  'ru_inn',
93
115
  'ru_kpp',
94
116
  'sa_vat',
117
+ 'se_vat',
95
118
  'sg_gst',
96
119
  'sg_uen',
97
120
  'si_tin',
121
+ 'si_vat',
122
+ 'sk_vat',
98
123
  'sn_ninea',
99
124
  'sr_fin',
100
125
  'sv_nit',
@@ -111,23 +136,21 @@ export const zBillingContact = z.object({
111
136
  'uz_vat',
112
137
  've_rif',
113
138
  'vn_tin',
139
+ 'xi_vat',
114
140
  'za_vat',
115
141
  'zm_tin',
116
- 'zw_tin'
142
+ 'zw_tin',
143
+ ''
117
144
  ]).optional()
118
145
  });
119
146
  export const zBillingCredits = z.object({
120
147
  id: z.string().optional(),
121
- date_created: z.string().datetime(),
148
+ type: z.enum(['credit', 'discount']),
149
+ date_start: z.iso.datetime(),
150
+ date_end: z.iso.datetime().optional(),
122
151
  code: z.string(),
123
152
  description: z.string().optional(),
124
- products: z.array(z.string()).optional(),
125
- type: z.enum([
126
- 'credit',
127
- 'discount'
128
- ]),
129
- value: z.number(),
130
- billing_period: z.string().datetime(),
153
+ value_total: z.number(),
131
154
  value_remaining: z.number().optional()
132
155
  });
133
156
  export const zChartCreateInput = z.object({
@@ -156,7 +179,8 @@ export const zChart = z.object({
156
179
  'UninstallFailed',
157
180
  'ArtifactFailed',
158
181
  'DependencyNotReady',
159
- 'Progressing'
182
+ 'Progressing',
183
+ 'SourceNotReady'
160
184
  ]),
161
185
  version_current: z.string(),
162
186
  created_at: z.string(),
@@ -169,25 +193,31 @@ export const zChartUpdateInput = z.object({
169
193
  });
170
194
  export const zClusterCreateInput = z.object({
171
195
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
196
+ tier: z.enum(['basic', 'pro']),
172
197
  region: z.enum([
173
- 'staging',
174
- 'northamerica-central-1'
198
+ 'staging-1a',
199
+ 'northamerica-central-1',
200
+ 'europe-central-1a',
201
+ 'northamerica-central-1a'
175
202
  ]).optional(),
176
- tier: z.enum([
177
- 'basic',
178
- 'pro'
179
- ]),
180
- 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
+ version_channel: z.enum([
204
+ '1.x.x-cfke.x',
205
+ '1.31.x-cfke.x',
206
+ '1.32.x-cfke.x',
207
+ '1.33.x-cfke.x'
208
+ ]).optional()
181
209
  });
182
210
  export const zClusterJoinInformation = z.object({
183
211
  certificate_authority: z.string(),
184
- endpoint: z.string().url(),
212
+ endpoint: z.url(),
213
+ cluster_dns: z.string(),
185
214
  auth_key: z.string(),
186
215
  bootstrap_token: z.string(),
187
216
  versions: z.object({
188
217
  kubernetes: z.string(),
189
218
  tailscale: z.string(),
190
- containerd: z.string()
219
+ containerd: z.string(),
220
+ nvidia_driver: z.string()
191
221
  }),
192
222
  third_party_api_access_config: z.object({
193
223
  metadata_url: z.string(),
@@ -197,18 +227,17 @@ export const zClusterJoinInformation = z.object({
197
227
  });
198
228
  export const zCluster = z.object({
199
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
+ tier: z.enum(['basic', 'pro']),
200
231
  region: z.enum([
201
- 'staging',
202
- 'northamerica-central-1'
232
+ 'staging-1a',
233
+ 'northamerica-central-1',
234
+ 'europe-central-1a',
235
+ 'northamerica-central-1a'
203
236
  ]).optional(),
204
- tier: z.enum([
205
- 'basic',
206
- 'pro'
207
- ]),
208
- 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'),
209
- id: z.string().uuid(),
237
+ id: z.uuid(),
210
238
  status: z.enum([
211
239
  'active',
240
+ 'disabled',
212
241
  'deleted',
213
242
  'creating',
214
243
  'deployed',
@@ -216,19 +245,19 @@ export const zCluster = z.object({
216
245
  'updating'
217
246
  ]),
218
247
  endpoint: z.union([
219
- z.string().url(),
220
- z.enum([
221
- ''
222
- ])
248
+ z.url(),
249
+ z.enum([''])
223
250
  ]).optional(),
224
251
  certificate_ca: z.string().optional(),
225
252
  version_current: z.string().optional(),
226
253
  created_at: z.string().optional(),
227
254
  updated_at: z.string().optional(),
228
- ready: z.boolean().optional()
255
+ ready: z.boolean().optional(),
256
+ version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
229
257
  });
230
258
  export const zClusterUpdateInput = z.object({
231
259
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
260
+ tier: z.enum(['basic', 'pro']),
232
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()
233
262
  });
234
263
  export const zFleetCreateInput = z.object({
@@ -239,25 +268,15 @@ export const zFleetCreateInput = z.object({
239
268
  enabled: z.boolean().optional().default(true),
240
269
  project: z.string()
241
270
  }).optional(),
242
- hetzner: z.union([
243
- z.object({
244
- enabled: z.boolean().optional().default(true),
245
- apiKey: z.string().optional()
246
- }),
247
- z.object({
248
- apiKey: z.string().optional(),
249
- enabled: z.boolean().optional().default(true)
250
- })
251
- ]).optional(),
271
+ hetzner: z.object({
272
+ enabled: z.boolean().optional().default(true),
273
+ apiKey: z.string()
274
+ }).optional(),
252
275
  aws: z.object({
253
276
  enabled: z.boolean().optional().default(true),
254
277
  controllerRoleArn: z.string()
255
278
  }).optional(),
256
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
257
- type: z.enum([
258
- 'managed',
259
- 'connected'
260
- ])
279
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
261
280
  });
262
281
  export const zFleet = z.object({
263
282
  limits: z.object({
@@ -267,25 +286,15 @@ export const zFleet = z.object({
267
286
  enabled: z.boolean().optional().default(true),
268
287
  project: z.string()
269
288
  }).optional(),
270
- hetzner: z.union([
271
- z.object({
272
- enabled: z.boolean().optional().default(true),
273
- apiKey: z.string().optional()
274
- }),
275
- z.object({
276
- apiKey: z.string().optional(),
277
- enabled: z.boolean().optional().default(true)
278
- })
279
- ]).optional(),
289
+ hetzner: z.object({
290
+ enabled: z.boolean().optional().default(true),
291
+ apiKey: z.string()
292
+ }).optional(),
280
293
  aws: z.object({
281
294
  enabled: z.boolean().optional().default(true),
282
295
  controllerRoleArn: z.string()
283
296
  }).optional(),
284
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
285
- type: z.enum([
286
- 'managed',
287
- 'connected'
288
- ])
297
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
289
298
  });
290
299
  export const zFleetUpdateInput = z.object({
291
300
  limits: z.object({
@@ -295,16 +304,10 @@ export const zFleetUpdateInput = z.object({
295
304
  enabled: z.boolean().optional().default(true),
296
305
  project: z.string()
297
306
  }).optional(),
298
- hetzner: z.union([
299
- z.object({
300
- enabled: z.boolean().optional().default(true),
301
- apiKey: z.string().optional()
302
- }),
303
- z.object({
304
- apiKey: z.string().optional(),
305
- enabled: z.boolean().optional().default(true)
306
- })
307
- ]).optional(),
307
+ hetzner: z.object({
308
+ enabled: z.boolean().optional().default(true),
309
+ apiKey: z.string()
310
+ }).optional(),
308
311
  aws: z.object({
309
312
  enabled: z.boolean().optional().default(true),
310
313
  controllerRoleArn: z.string()
@@ -312,634 +315,74 @@ export const zFleetUpdateInput = z.object({
312
315
  });
313
316
  export const zInvite = z.object({
314
317
  id: z.string().optional(),
315
- organization_id: z.string().uuid().optional(),
316
- date_created: z.string().datetime(),
317
- email: z.string().email().optional(),
318
+ organization_id: z.uuid().optional(),
319
+ date_created: z.iso.datetime(),
320
+ email: z.email().optional(),
318
321
  code: z.string().optional()
319
322
  });
320
323
  export const zInvoice = z.object({
321
- id: z.string().uuid().optional(),
322
- organizationId: z.string().uuid().optional(),
323
- status: z.enum([
324
- 'DRAFT',
325
- 'COMMITTED',
326
- 'VOID'
327
- ]).optional(),
328
- amount: z.number().optional(),
329
- currency: z.enum([
330
- 'AED',
331
- 'AFN',
332
- 'ALL',
333
- 'AMD',
334
- 'ANG',
335
- 'AOA',
336
- 'ARS',
337
- 'AUD',
338
- 'AWG',
339
- 'AZN',
340
- 'BAM',
341
- 'BBD',
342
- 'BDT',
343
- 'BGN',
344
- 'BHD',
345
- 'BIF',
346
- 'BMD',
347
- 'BND',
348
- 'BOB',
349
- 'BRL',
350
- 'BSD',
351
- 'BTN',
352
- 'BWP',
353
- 'BYR',
354
- 'BZD',
355
- 'CAD',
356
- 'CDF',
357
- 'CHF',
358
- 'CLP',
359
- 'CNY',
360
- 'COP',
361
- 'CRC',
362
- 'CUC',
363
- 'CUP',
364
- 'CVE',
365
- 'CZK',
366
- 'DJF',
367
- 'DKK',
368
- 'DOP',
369
- 'DZD',
370
- 'EGP',
371
- 'ERN',
372
- 'ETB',
373
- 'EUR',
374
- 'FJD',
375
- 'FKP',
376
- 'GBP',
377
- 'GEL',
378
- 'GGP',
379
- 'GHS',
380
- 'GIP',
381
- 'GMD',
382
- 'GNF',
383
- 'GTQ',
384
- 'GYD',
385
- 'HKD',
386
- 'HNL',
387
- 'HRK',
388
- 'HTG',
389
- 'HUF',
390
- 'IDR',
391
- 'ILS',
392
- 'IMP',
393
- 'INR',
394
- 'IQD',
395
- 'IRR',
396
- 'ISK',
397
- 'JEP',
398
- 'JMD',
399
- 'JOD',
400
- 'JPY',
401
- 'KES',
402
- 'KGS',
403
- 'KHR',
404
- 'KMF',
405
- 'KPW',
406
- 'KRW',
407
- 'KWD',
408
- 'KYD',
409
- 'KZT',
410
- 'LAK',
411
- 'LBP',
412
- 'LKR',
413
- 'LRD',
414
- 'LSL',
415
- 'LTL',
416
- 'LVL',
417
- 'LYD',
418
- 'MAD',
419
- 'MDL',
420
- 'MGA',
421
- 'MKD',
422
- 'MMK',
423
- 'MNT',
424
- 'MOP',
425
- 'MRO',
426
- 'MUR',
427
- 'MVR',
428
- 'MWK',
429
- 'MXN',
430
- 'MYR',
431
- 'MZN',
432
- 'NAD',
433
- 'NGN',
434
- 'NIO',
435
- 'NOK',
436
- 'NPR',
437
- 'NZD',
438
- 'OMR',
439
- 'PAB',
440
- 'PEN',
441
- 'PGK',
442
- 'PHP',
443
- 'PKR',
444
- 'PLN',
445
- 'PYG',
446
- 'QAR',
447
- 'RON',
448
- 'RSD',
449
- 'RUB',
450
- 'RWF',
451
- 'SAR',
452
- 'SBD',
453
- 'SCR',
454
- 'SDG',
455
- 'SEK',
456
- 'SGD',
457
- 'SHP',
458
- 'SLL',
459
- 'SOS',
460
- 'SPL',
461
- 'SRD',
462
- 'STD',
463
- 'SVC',
464
- 'SYP',
465
- 'SZL',
466
- 'THB',
467
- 'TJS',
468
- 'TMT',
469
- 'TND',
470
- 'TOP',
471
- 'TRY',
472
- 'TTD',
473
- 'TVD',
474
- 'TWD',
475
- 'TZS',
476
- 'UAH',
477
- 'UGX',
478
- 'USD',
479
- 'UYU',
480
- 'UZS',
481
- 'VEF',
482
- 'VND',
483
- 'VUV',
484
- 'WST',
485
- 'XAF',
486
- 'XCD',
487
- 'XDR',
488
- 'XOF',
489
- 'XPF',
490
- 'YER',
491
- 'ZAR',
492
- 'ZMW',
493
- 'ZWD',
494
- 'BTC'
495
- ]).optional(),
496
- creditAdj: z.number().optional(),
497
- refundAdj: z.number().optional(),
498
- invoiceDate: z.string().optional(),
499
- targetDate: z.string().optional(),
500
- invoiceNumber: z.string().optional(),
501
- balance: z.number().optional(),
502
- bundleKeys: z.string().optional(),
503
- credits: z.array(z.object({
504
- id: z.string().uuid().optional(),
505
- linkedInvoiceItemId: z.string().uuid().optional(),
506
- productName: z.string().optional(),
507
- planName: z.string().optional(),
508
- phaseName: z.string().optional(),
509
- usageName: z.string().optional(),
510
- prettyProductName: z.string().optional(),
511
- prettyPlanName: z.string().optional(),
512
- prettyPhaseName: z.string().optional(),
513
- prettyUsageName: z.string().optional(),
514
- itemType: z.enum([
515
- 'EXTERNAL_CHARGE',
516
- 'FIXED',
517
- 'RECURRING',
518
- 'REPAIR_ADJ',
519
- 'CBA_ADJ',
520
- 'CREDIT_ADJ',
521
- 'ITEM_ADJ',
522
- 'USAGE',
523
- 'TAX',
524
- 'PARENT_SUMMARY'
525
- ]).optional(),
526
- description: z.string().optional(),
527
- startDate: z.string().optional(),
528
- endDate: z.string().optional(),
529
- amount: z.number().optional(),
530
- rate: z.number().optional(),
531
- currency: z.enum([
532
- 'AED',
533
- 'AFN',
534
- 'ALL',
535
- 'AMD',
536
- 'ANG',
537
- 'AOA',
538
- 'ARS',
539
- 'AUD',
540
- 'AWG',
541
- 'AZN',
542
- 'BAM',
543
- 'BBD',
544
- 'BDT',
545
- 'BGN',
546
- 'BHD',
547
- 'BIF',
548
- 'BMD',
549
- 'BND',
550
- 'BOB',
551
- 'BRL',
552
- 'BSD',
553
- 'BTN',
554
- 'BWP',
555
- 'BYR',
556
- 'BZD',
557
- 'CAD',
558
- 'CDF',
559
- 'CHF',
560
- 'CLP',
561
- 'CNY',
562
- 'COP',
563
- 'CRC',
564
- 'CUC',
565
- 'CUP',
566
- 'CVE',
567
- 'CZK',
568
- 'DJF',
569
- 'DKK',
570
- 'DOP',
571
- 'DZD',
572
- 'EGP',
573
- 'ERN',
574
- 'ETB',
575
- 'EUR',
576
- 'FJD',
577
- 'FKP',
578
- 'GBP',
579
- 'GEL',
580
- 'GGP',
581
- 'GHS',
582
- 'GIP',
583
- 'GMD',
584
- 'GNF',
585
- 'GTQ',
586
- 'GYD',
587
- 'HKD',
588
- 'HNL',
589
- 'HRK',
590
- 'HTG',
591
- 'HUF',
592
- 'IDR',
593
- 'ILS',
594
- 'IMP',
595
- 'INR',
596
- 'IQD',
597
- 'IRR',
598
- 'ISK',
599
- 'JEP',
600
- 'JMD',
601
- 'JOD',
602
- 'JPY',
603
- 'KES',
604
- 'KGS',
605
- 'KHR',
606
- 'KMF',
607
- 'KPW',
608
- 'KRW',
609
- 'KWD',
610
- 'KYD',
611
- 'KZT',
612
- 'LAK',
613
- 'LBP',
614
- 'LKR',
615
- 'LRD',
616
- 'LSL',
617
- 'LTL',
618
- 'LVL',
619
- 'LYD',
620
- 'MAD',
621
- 'MDL',
622
- 'MGA',
623
- 'MKD',
624
- 'MMK',
625
- 'MNT',
626
- 'MOP',
627
- 'MRO',
628
- 'MUR',
629
- 'MVR',
630
- 'MWK',
631
- 'MXN',
632
- 'MYR',
633
- 'MZN',
634
- 'NAD',
635
- 'NGN',
636
- 'NIO',
637
- 'NOK',
638
- 'NPR',
639
- 'NZD',
640
- 'OMR',
641
- 'PAB',
642
- 'PEN',
643
- 'PGK',
644
- 'PHP',
645
- 'PKR',
646
- 'PLN',
647
- 'PYG',
648
- 'QAR',
649
- 'RON',
650
- 'RSD',
651
- 'RUB',
652
- 'RWF',
653
- 'SAR',
654
- 'SBD',
655
- 'SCR',
656
- 'SDG',
657
- 'SEK',
658
- 'SGD',
659
- 'SHP',
660
- 'SLL',
661
- 'SOS',
662
- 'SPL',
663
- 'SRD',
664
- 'STD',
665
- 'SVC',
666
- 'SYP',
667
- 'SZL',
668
- 'THB',
669
- 'TJS',
670
- 'TMT',
671
- 'TND',
672
- 'TOP',
673
- 'TRY',
674
- 'TTD',
675
- 'TVD',
676
- 'TWD',
677
- 'TZS',
678
- 'UAH',
679
- 'UGX',
680
- 'USD',
681
- 'UYU',
682
- 'UZS',
683
- 'VEF',
684
- 'VND',
685
- 'VUV',
686
- 'WST',
687
- 'XAF',
688
- 'XCD',
689
- 'XDR',
690
- 'XOF',
691
- 'XPF',
692
- 'YER',
693
- 'ZAR',
694
- 'ZMW',
695
- 'ZWD',
696
- 'BTC'
697
- ]).optional(),
698
- quantity: z.number().optional(),
699
- itemDetails: z.string().optional(),
700
- catalogEffectiveDate: z.string().optional(),
701
- childItems: z.array(z.unknown()).optional()
702
- })).optional(),
703
- items: z.array(z.object({
704
- id: z.string().uuid().optional(),
705
- linkedInvoiceItemId: z.string().uuid().optional(),
706
- productName: z.string().optional(),
707
- planName: z.string().optional(),
708
- phaseName: z.string().optional(),
709
- usageName: z.string().optional(),
710
- prettyProductName: z.string().optional(),
711
- prettyPlanName: z.string().optional(),
712
- prettyPhaseName: z.string().optional(),
713
- prettyUsageName: z.string().optional(),
714
- itemType: z.enum([
715
- 'EXTERNAL_CHARGE',
716
- 'FIXED',
717
- 'RECURRING',
718
- 'REPAIR_ADJ',
719
- 'CBA_ADJ',
720
- 'CREDIT_ADJ',
721
- 'ITEM_ADJ',
722
- 'USAGE',
723
- 'TAX',
724
- 'PARENT_SUMMARY'
725
- ]).optional(),
726
- description: z.string().optional(),
727
- startDate: z.string().optional(),
728
- endDate: z.string().optional(),
729
- amount: z.number().optional(),
730
- rate: z.number().optional(),
731
- currency: z.enum([
732
- 'AED',
733
- 'AFN',
734
- 'ALL',
735
- 'AMD',
736
- 'ANG',
737
- 'AOA',
738
- 'ARS',
739
- 'AUD',
740
- 'AWG',
741
- 'AZN',
742
- 'BAM',
743
- 'BBD',
744
- 'BDT',
745
- 'BGN',
746
- 'BHD',
747
- 'BIF',
748
- 'BMD',
749
- 'BND',
750
- 'BOB',
751
- 'BRL',
752
- 'BSD',
753
- 'BTN',
754
- 'BWP',
755
- 'BYR',
756
- 'BZD',
757
- 'CAD',
758
- 'CDF',
759
- 'CHF',
760
- 'CLP',
761
- 'CNY',
762
- 'COP',
763
- 'CRC',
764
- 'CUC',
765
- 'CUP',
766
- 'CVE',
767
- 'CZK',
768
- 'DJF',
769
- 'DKK',
770
- 'DOP',
771
- 'DZD',
772
- 'EGP',
773
- 'ERN',
774
- 'ETB',
775
- 'EUR',
776
- 'FJD',
777
- 'FKP',
778
- 'GBP',
779
- 'GEL',
780
- 'GGP',
781
- 'GHS',
782
- 'GIP',
783
- 'GMD',
784
- 'GNF',
785
- 'GTQ',
786
- 'GYD',
787
- 'HKD',
788
- 'HNL',
789
- 'HRK',
790
- 'HTG',
791
- 'HUF',
792
- 'IDR',
793
- 'ILS',
794
- 'IMP',
795
- 'INR',
796
- 'IQD',
797
- 'IRR',
798
- 'ISK',
799
- 'JEP',
800
- 'JMD',
801
- 'JOD',
802
- 'JPY',
803
- 'KES',
804
- 'KGS',
805
- 'KHR',
806
- 'KMF',
807
- 'KPW',
808
- 'KRW',
809
- 'KWD',
810
- 'KYD',
811
- 'KZT',
812
- 'LAK',
813
- 'LBP',
814
- 'LKR',
815
- 'LRD',
816
- 'LSL',
817
- 'LTL',
818
- 'LVL',
819
- 'LYD',
820
- 'MAD',
821
- 'MDL',
822
- 'MGA',
823
- 'MKD',
824
- 'MMK',
825
- 'MNT',
826
- 'MOP',
827
- 'MRO',
828
- 'MUR',
829
- 'MVR',
830
- 'MWK',
831
- 'MXN',
832
- 'MYR',
833
- 'MZN',
834
- 'NAD',
835
- 'NGN',
836
- 'NIO',
837
- 'NOK',
838
- 'NPR',
839
- 'NZD',
840
- 'OMR',
841
- 'PAB',
842
- 'PEN',
843
- 'PGK',
844
- 'PHP',
845
- 'PKR',
846
- 'PLN',
847
- 'PYG',
848
- 'QAR',
849
- 'RON',
850
- 'RSD',
851
- 'RUB',
852
- 'RWF',
853
- 'SAR',
854
- 'SBD',
855
- 'SCR',
856
- 'SDG',
857
- 'SEK',
858
- 'SGD',
859
- 'SHP',
860
- 'SLL',
861
- 'SOS',
862
- 'SPL',
863
- 'SRD',
864
- 'STD',
865
- 'SVC',
866
- 'SYP',
867
- 'SZL',
868
- 'THB',
869
- 'TJS',
870
- 'TMT',
871
- 'TND',
872
- 'TOP',
873
- 'TRY',
874
- 'TTD',
875
- 'TVD',
876
- 'TWD',
877
- 'TZS',
878
- 'UAH',
879
- 'UGX',
880
- 'USD',
881
- 'UYU',
882
- 'UZS',
883
- 'VEF',
884
- 'VND',
885
- 'VUV',
886
- 'WST',
887
- 'XAF',
888
- 'XCD',
889
- 'XDR',
890
- 'XOF',
891
- 'XPF',
892
- 'YER',
893
- 'ZAR',
894
- 'ZMW',
895
- 'ZWD',
896
- 'BTC'
897
- ]).optional(),
898
- quantity: z.number().optional(),
899
- itemDetails: z.string().optional(),
900
- catalogEffectiveDate: z.string().optional(),
901
- childItems: z.array(z.unknown()).optional()
902
- })).optional()
324
+ id: z.string().optional(),
325
+ number: z.string().optional(),
326
+ status: z.string().optional(),
327
+ total: z.number().optional(),
328
+ currency: z.string().optional(),
329
+ created: z.iso.datetime(),
330
+ period_start: z.iso.datetime(),
331
+ period_end: z.iso.datetime(),
332
+ invoice_pdf: z.string().optional()
333
+ });
334
+ export const zMarketplaceListingFiles = z.object({
335
+ chartYaml: z.string().optional(),
336
+ valuesYaml: z.string().optional(),
337
+ valuesSchemaJson: z.string().optional()
903
338
  });
904
339
  export const zMarketplaceListing = z.object({
905
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
906
340
  name: z.string(),
907
- developer: z.string(),
908
- description: z.string(),
909
- logoUrl: z.string(),
910
- longDescription: z.string(),
911
- categories: z.array(z.string()),
341
+ versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
912
342
  version_channels: z.array(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
913
- value_schemas: z.array(z.object({
914
- 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-]+)*))?$/),
915
- schema: z.string(),
916
- placeholder: z.string()
917
- }))
343
+ latestVersion: z.string(),
344
+ metadata: z.object({
345
+ name: z.string(),
346
+ version: z.string(),
347
+ description: z.string().optional(),
348
+ appVersion: z.string().optional(),
349
+ apiVersion: z.string().optional(),
350
+ keywords: z.array(z.string()).optional(),
351
+ home: z.string().optional(),
352
+ icon: z.string().optional(),
353
+ sources: z.array(z.string()).optional(),
354
+ maintainers: z.array(z.object({
355
+ name: z.string(),
356
+ email: z.string().optional()
357
+ })).optional()
358
+ }).optional()
918
359
  });
919
360
  export const zOrganizationCreateInput = z.object({
920
- email: z.string().email(),
361
+ email: z.email(),
921
362
  first_name: z.string(),
922
363
  last_name: z.string(),
923
364
  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,}$/),
924
365
  password: z.string().min(8)
925
366
  });
926
367
  export const zOrganization = z.object({
927
- id: z.string().uuid(),
368
+ id: z.uuid(),
928
369
  name: z.string().min(2).max(120).optional(),
929
- date_created: z.string().datetime(),
370
+ date_created: z.iso.datetime(),
930
371
  quota: z.object({
931
- basic_clusters_max: z.number().int().gte(0),
932
- basic_clusters_available: z.number().int(),
933
- pro_clusters_max: z.number().int().gte(0),
934
- pro_clusters_available: z.number().int(),
935
- fleets_max: z.number().int().gte(0),
936
- managed_fleets_cpu_max: z.number().int().gte(0),
372
+ basic_clusters_max: z.int().gte(0),
373
+ basic_clusters_available: z.int(),
374
+ pro_clusters_max: z.int().gte(0),
375
+ pro_clusters_available: z.int(),
376
+ fleets_max: z.int().gte(0),
937
377
  cluster_tiers: z.array(z.string()).min(0),
938
378
  regions: z.array(z.string()).min(1),
939
379
  versions: z.array(z.object({
940
380
  id: z.string(),
941
381
  label: z.string()
942
- })).min(1)
382
+ })).min(1),
383
+ copilot_user_hourly_tokens: z.int().gte(0),
384
+ copilot_organization_hourly_tokens: z.int().gte(0),
385
+ cfcr_storage_gb: z.int().gte(-1)
943
386
  }),
944
387
  status: z.enum([
945
388
  'active',
@@ -948,14 +391,12 @@ export const zOrganization = z.object({
948
391
  ])
949
392
  });
950
393
  export const zPaymentMethod = z.object({
951
- id: z.string().uuid(),
394
+ id: z.uuid(),
952
395
  setup: z.boolean(),
953
- type: z.enum([
954
- 'card'
955
- ]),
396
+ type: z.enum(['card']),
956
397
  last4: z.string(),
957
- exp_month: z.number().int().gte(1).lte(12),
958
- exp_year: z.number().int().gte(2024),
398
+ exp_month: z.int().gte(1).lte(12),
399
+ exp_year: z.int().gte(2024),
959
400
  brand: z.enum([
960
401
  'amex',
961
402
  'diners',
@@ -968,158 +409,663 @@ export const zPaymentMethod = z.object({
968
409
  'unknown'
969
410
  ])
970
411
  });
412
+ export const zPlatformQuota = z.object({
413
+ basic_clusters_max: z.int().gte(0),
414
+ basic_clusters_available: z.int(),
415
+ pro_clusters_max: z.int().gte(0),
416
+ pro_clusters_available: z.int(),
417
+ fleets_max: z.int().gte(0),
418
+ cluster_tiers: z.array(z.string()).min(0),
419
+ regions: z.array(z.string()).min(1),
420
+ versions: z.array(z.object({
421
+ id: z.string(),
422
+ label: z.string()
423
+ })).min(1),
424
+ copilot_user_hourly_tokens: z.int().gte(0),
425
+ copilot_organization_hourly_tokens: z.int().gte(0),
426
+ cfcr_storage_gb: z.int().gte(-1)
427
+ });
428
+ export const zRegistryRepository = z.object({
429
+ name: z.string(),
430
+ region: z.string(),
431
+ uri: z.string()
432
+ });
433
+ export const zRegistryRepositoryWithTags = z.object({
434
+ name: z.string(),
435
+ region: z.string(),
436
+ uri: z.string(),
437
+ tags: z.array(z.object({
438
+ name: z.string(),
439
+ size: z.number(),
440
+ mediaType: z.string().optional(),
441
+ platforms: z.array(z.string()).optional()
442
+ })),
443
+ totalSize: z.number()
444
+ });
445
+ export const zRegistryTag = z.object({
446
+ name: z.string(),
447
+ digest: z.string(),
448
+ mediaType: z.string().optional(),
449
+ config: z.object({
450
+ size: z.number()
451
+ }).optional(),
452
+ layers: z.array(z.object({
453
+ digest: z.string().optional(),
454
+ size: z.number()
455
+ })).optional(),
456
+ manifests: z.array(z.object({
457
+ digest: z.string(),
458
+ platform: z.object({
459
+ architecture: z.string(),
460
+ os: z.string(),
461
+ variant: z.string().optional()
462
+ }).optional(),
463
+ layers: z.array(z.object({
464
+ digest: z.string().optional(),
465
+ size: z.number()
466
+ })).optional(),
467
+ size: z.number().optional()
468
+ })).optional(),
469
+ size: z.number(),
470
+ region: z.string(),
471
+ repository: z.string(),
472
+ uri: z.string()
473
+ });
971
474
  export const zTokenCreateInput = z.object({
972
475
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
973
- role: z.enum([
974
- 'Administrator',
975
- 'User'
976
- ])
476
+ role: z.enum(['Administrator', 'User'])
977
477
  });
978
478
  export const zToken = z.object({
979
479
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
980
- role: z.enum([
981
- 'Administrator',
982
- 'User'
983
- ]),
480
+ role: z.enum(['Administrator', 'User']),
984
481
  id: z.string().optional(),
985
482
  secret: z.string().optional(),
986
- date_created: z.string().datetime()
483
+ date_created: z.iso.datetime()
987
484
  });
988
485
  export const zTokenUpdateInput = z.object({
989
486
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
990
- role: z.enum([
991
- 'Administrator',
992
- 'User'
993
- ]).optional()
487
+ role: z.enum(['Administrator', 'User']).optional()
488
+ });
489
+ export const zUsageFacets = z.object({
490
+ cluster_id: z.array(z.string()).optional(),
491
+ product: z.array(z.string()).optional()
492
+ });
493
+ export const zUsageResponse = z.object({
494
+ data: z.array(z.object({
495
+ hour: z.string(),
496
+ cluster_id: z.string(),
497
+ product: z.string(),
498
+ value: z.number(),
499
+ price: z.number(),
500
+ total: z.number()
501
+ })),
502
+ facets: z.object({
503
+ cluster_id: z.array(z.string()).optional(),
504
+ product: z.array(z.string()).optional()
505
+ })
994
506
  });
995
507
  export const zUsage = z.object({
996
- hour: z.string().optional(),
997
- cluster_id: z.string().uuid(),
998
- cluster_tier: z.enum([
999
- ''
1000
- ]),
1001
- product: z.enum([
1002
- 'cfke_infra_compute',
1003
- 'cfke_nodes',
1004
- 'cfke_controlplane'
1005
- ]),
1006
- node_name: z.string(),
1007
- sku: z.string(),
1008
- cpu: z.union([
1009
- z.number(),
1010
- z.enum([
1011
- ''
1012
- ])
1013
- ]),
1014
- price: z.union([
1015
- z.number(),
1016
- z.enum([
1017
- ''
1018
- ])
1019
- ]),
1020
- value: z.union([
1021
- z.number(),
1022
- z.enum([
1023
- ''
1024
- ])
1025
- ]),
1026
- total: z.union([
1027
- z.number(),
1028
- z.enum([
1029
- ''
1030
- ])
1031
- ])
508
+ hour: z.string(),
509
+ cluster_id: z.string(),
510
+ product: z.string(),
511
+ value: z.number(),
512
+ price: z.number(),
513
+ total: z.number()
1032
514
  });
1033
515
  export const zUserCreateInput = z.object({
1034
- email: z.string().email(),
516
+ email: z.email(),
1035
517
  first_name: z.string().min(1).max(50),
1036
518
  last_name: z.string().min(1).max(50),
1037
519
  code: z.string(),
1038
520
  password: z.string().min(8),
1039
- status: z.enum([
1040
- 'active',
1041
- 'inactive'
1042
- ]).optional(),
1043
- role: z.enum([
1044
- 'Administrator',
1045
- 'User'
1046
- ]).optional()
521
+ status: z.enum(['active', 'inactive']).optional(),
522
+ role: z.enum(['Administrator', 'User']).optional()
1047
523
  });
1048
524
  export const zUser = z.object({
1049
- email: z.string().email(),
525
+ email: z.email(),
1050
526
  first_name: z.string().min(1).max(50),
1051
527
  last_name: z.string().min(1).max(50),
1052
- role: z.enum([
1053
- 'Administrator',
1054
- 'User'
1055
- ]),
1056
- status: z.enum([
1057
- 'active',
1058
- 'inactive'
1059
- ]),
1060
- id: z.string().uuid(),
1061
- date_created: z.string().datetime()
528
+ role: z.enum(['Administrator', 'User']),
529
+ status: z.enum(['active', 'inactive']),
530
+ id: z.uuid(),
531
+ date_created: z.iso.datetime()
1062
532
  });
1063
533
  export const zUserUpdateInput = z.object({
1064
- email: z.string().email().optional(),
534
+ email: z.email().optional(),
1065
535
  first_name: z.string().min(1).max(50).optional(),
1066
536
  last_name: z.string().min(1).max(50).optional(),
1067
- role: z.enum([
1068
- 'Administrator',
1069
- 'User'
1070
- ]).optional(),
1071
- status: z.enum([
1072
- 'active',
1073
- 'inactive'
1074
- ]).optional()
537
+ role: z.enum(['Administrator', 'User']).optional(),
538
+ status: z.enum(['active', 'inactive']).optional()
539
+ });
540
+ export const zGetUsageData = z.object({
541
+ body: z.never().optional(),
542
+ path: z.never().optional(),
543
+ query: z.object({
544
+ granularity: z.enum([
545
+ 'hourly',
546
+ 'daily',
547
+ 'monthly'
548
+ ]).optional()
549
+ }).optional()
1075
550
  });
1076
- export const zGetUsageResponse = z.array(zUsage);
1077
- export const zGetBalanceResponse = z.number();
551
+ /**
552
+ * Usage data with facets for filtering
553
+ */
554
+ export const zGetUsageResponse = zUsageResponse;
555
+ export const zGetPaymentMethodData = z.object({
556
+ body: z.never().optional(),
557
+ path: z.never().optional(),
558
+ query: z.never().optional()
559
+ });
560
+ /**
561
+ * Redacted payment card information.
562
+ */
1078
563
  export const zGetPaymentMethodResponse = zPaymentMethod;
564
+ export const zGetPaymentMethodSecretData = z.object({
565
+ body: z.never().optional(),
566
+ path: z.never().optional(),
567
+ query: z.never().optional()
568
+ });
569
+ /**
570
+ * 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.
571
+ *
572
+ */
1079
573
  export const zGetPaymentMethodSecretResponse = z.object({
1080
574
  id: z.string().optional()
1081
575
  });
576
+ export const zListInvoicesData = z.object({
577
+ body: z.never().optional(),
578
+ path: z.never().optional(),
579
+ query: z.never().optional()
580
+ });
581
+ /**
582
+ * An array of usage records.
583
+ */
1082
584
  export const zListInvoicesResponse = z.array(zInvoice);
1083
- export const zGetInvoiceResponse = z.object({
1084
- html: z.string().optional()
585
+ export const zGetContactData = z.object({
586
+ body: z.never().optional(),
587
+ path: z.never().optional(),
588
+ query: z.never().optional()
1085
589
  });
590
+ /**
591
+ * Returns a single object containing organization contact and billing address details.
592
+ */
1086
593
  export const zGetContactResponse = zBillingContact;
594
+ export const zUpdateContactData = z.object({
595
+ body: zBillingContact,
596
+ path: z.never().optional(),
597
+ query: z.never().optional()
598
+ });
599
+ /**
600
+ * Successfully updated. Returns updated organization details.
601
+ */
1087
602
  export const zUpdateContactResponse = zBillingContact;
603
+ export const zGetCreditsData = z.object({
604
+ body: z.never().optional(),
605
+ path: z.never().optional(),
606
+ query: z.never().optional()
607
+ });
608
+ /**
609
+ * An array of the applied promotional credits records.
610
+ */
1088
611
  export const zGetCreditsResponse = z.array(zBillingCredits);
612
+ export const zRedeemCreditsData = z.object({
613
+ body: z.object({
614
+ code: z.string().optional()
615
+ }),
616
+ path: z.never().optional(),
617
+ query: z.never().optional()
618
+ });
619
+ export const zListChartsData = z.object({
620
+ body: z.never().optional(),
621
+ path: z.object({
622
+ cluster_id: z.string()
623
+ }),
624
+ query: z.never().optional()
625
+ });
626
+ /**
627
+ * An array of charts
628
+ */
1089
629
  export const zListChartsResponse = z.array(zChart);
630
+ export const zCreateChartData = z.object({
631
+ body: zChartCreateInput,
632
+ path: z.object({
633
+ cluster_id: z.string()
634
+ }),
635
+ query: z.never().optional()
636
+ });
637
+ /**
638
+ * Successfully created. Returns created Chart ID.
639
+ */
1090
640
  export const zCreateChartResponse = z.string();
641
+ export const zDeleteChartData = z.object({
642
+ body: z.never().optional(),
643
+ path: z.object({
644
+ cluster_id: z.string(),
645
+ chart_name: z.string()
646
+ }),
647
+ query: z.never().optional()
648
+ });
649
+ /**
650
+ * Successfully deleted.
651
+ */
1091
652
  export const zDeleteChartResponse = z.string();
653
+ export const zGetChartData = z.object({
654
+ body: z.never().optional(),
655
+ path: z.object({
656
+ cluster_id: z.string(),
657
+ chart_name: z.string()
658
+ }),
659
+ query: z.never().optional()
660
+ });
661
+ /**
662
+ * Returns a single object containing chart details.
663
+ */
1092
664
  export const zGetChartResponse = zChart;
665
+ export const zUpdateChartData = z.object({
666
+ body: zChartUpdateInput,
667
+ path: z.object({
668
+ cluster_id: z.string(),
669
+ chart_name: z.string()
670
+ }),
671
+ query: z.never().optional()
672
+ });
673
+ /**
674
+ * Successfully updated.
675
+ */
1093
676
  export const zUpdateChartResponse = z.string();
677
+ export const zListFleetsData = z.object({
678
+ body: z.never().optional(),
679
+ path: z.object({
680
+ cluster_id: z.string()
681
+ }),
682
+ query: z.never().optional()
683
+ });
684
+ /**
685
+ * An array of fleets
686
+ */
1094
687
  export const zListFleetsResponse = z.array(zFleet);
688
+ export const zCreateFleetData = z.object({
689
+ body: zFleetCreateInput,
690
+ path: z.object({
691
+ cluster_id: z.string()
692
+ }),
693
+ query: z.never().optional()
694
+ });
695
+ /**
696
+ * Successfully created. Returns created Fleet ID.
697
+ */
1095
698
  export const zCreateFleetResponse = z.string();
699
+ export const zDeleteFleetData = z.object({
700
+ body: z.never().optional(),
701
+ path: z.object({
702
+ cluster_id: z.string(),
703
+ fleet_name: z.string()
704
+ }),
705
+ query: z.never().optional()
706
+ });
707
+ /**
708
+ * Successfully deleted.
709
+ */
1096
710
  export const zDeleteFleetResponse = z.string();
711
+ export const zGetFleetData = z.object({
712
+ body: z.never().optional(),
713
+ path: z.object({
714
+ cluster_id: z.string(),
715
+ fleet_name: z.string()
716
+ }),
717
+ query: z.never().optional()
718
+ });
719
+ /**
720
+ * Returns a single object containing fleet details.
721
+ */
1097
722
  export const zGetFleetResponse = zFleet;
723
+ export const zUpdateFleetData = z.object({
724
+ body: zFleetUpdateInput,
725
+ path: z.object({
726
+ cluster_id: z.string(),
727
+ fleet_name: z.string()
728
+ }),
729
+ query: z.never().optional()
730
+ });
731
+ /**
732
+ * Successfully updated.
733
+ */
1098
734
  export const zUpdateFleetResponse = z.string();
735
+ export const zQueryClusterData = z.object({
736
+ body: z.never().optional(),
737
+ path: z.object({
738
+ cluster_id: z.string()
739
+ }),
740
+ query: z.never().optional()
741
+ });
742
+ export const zListClustersData = z.object({
743
+ body: z.never().optional(),
744
+ path: z.never().optional(),
745
+ query: z.never().optional()
746
+ });
747
+ /**
748
+ * An array of clusters
749
+ */
1099
750
  export const zListClustersResponse = z.array(zCluster);
751
+ export const zCreateClusterData = z.object({
752
+ body: zClusterCreateInput,
753
+ path: z.never().optional(),
754
+ query: z.never().optional()
755
+ });
756
+ /**
757
+ * Successfully created. Returns created Cluster ID.
758
+ */
1100
759
  export const zCreateClusterResponse = z.string();
760
+ export const zDeleteClusterData = z.object({
761
+ body: z.never().optional(),
762
+ path: z.object({
763
+ cluster_id: z.string()
764
+ }),
765
+ query: z.never().optional()
766
+ });
767
+ /**
768
+ * Successfully deleted.
769
+ */
1101
770
  export const zDeleteClusterResponse = z.string();
771
+ export const zGetClusterData = z.object({
772
+ body: z.never().optional(),
773
+ path: z.object({
774
+ cluster_id: z.string()
775
+ }),
776
+ query: z.never().optional()
777
+ });
778
+ /**
779
+ * Returns a single object containing cluster details.
780
+ */
1102
781
  export const zGetClusterResponse = zCluster;
782
+ export const zUpdateClusterData = z.object({
783
+ body: zClusterUpdateInput,
784
+ path: z.object({
785
+ cluster_id: z.string()
786
+ }),
787
+ query: z.never().optional()
788
+ });
789
+ /**
790
+ * Successfully updated. Returns updated cluster details.
791
+ */
1103
792
  export const zUpdateClusterResponse = zCluster;
1104
- export const zGetJoinInformationResponse = zCluster;
793
+ export const zGetJoinInformationData = z.object({
794
+ body: z.never().optional(),
795
+ path: z.object({
796
+ cluster_id: z.string()
797
+ }),
798
+ query: z.never().optional()
799
+ });
800
+ /**
801
+ * An object of cluster join information
802
+ */
803
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
804
+ export const zListInvitesData = z.object({
805
+ body: z.never().optional(),
806
+ path: z.never().optional(),
807
+ query: z.never().optional()
808
+ });
809
+ /**
810
+ * An array of invites
811
+ */
1105
812
  export const zListInvitesResponse = z.array(zInvite);
813
+ export const zCreateInviteData = z.object({
814
+ body: z.object({
815
+ email: z.string().optional()
816
+ }),
817
+ path: z.never().optional(),
818
+ query: z.never().optional()
819
+ });
820
+ /**
821
+ * Successfully created. Returns created invite details.
822
+ */
1106
823
  export const zCreateInviteResponse = zInvite;
824
+ export const zGetInviteData = z.object({
825
+ body: z.never().optional(),
826
+ path: z.object({
827
+ code: z.string()
828
+ }),
829
+ query: z.never().optional()
830
+ });
831
+ /**
832
+ * Returns a single object containing invite details.
833
+ */
1107
834
  export const zGetInviteResponse = zInvite;
835
+ export const zDeleteInviteData = z.object({
836
+ body: z.never().optional(),
837
+ path: z.object({
838
+ email: z.string()
839
+ }),
840
+ query: z.never().optional()
841
+ });
842
+ export const zListMarketplaceChartsData = z.object({
843
+ body: z.never().optional(),
844
+ path: z.never().optional(),
845
+ query: z.never().optional()
846
+ });
847
+ /**
848
+ * An array of chart listings in the marketplace.
849
+ */
1108
850
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1109
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
851
+ export const zGetMarketplaceChartFilesData = z.object({
852
+ body: z.never().optional(),
853
+ path: z.object({
854
+ chart_name: z.string(),
855
+ version_channel: z.string()
856
+ }),
857
+ query: z.never().optional()
858
+ });
859
+ /**
860
+ * Returns an object containing the chart files for the latest matching version.
861
+ */
862
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
863
+ export const zPostMcpData = z.object({
864
+ body: z.object({
865
+ jsonrpc: z.string().optional(),
866
+ method: z.string().optional(),
867
+ id: z.union([
868
+ z.string(),
869
+ z.number()
870
+ ]).optional(),
871
+ params: z.record(z.string(), z.unknown()).optional()
872
+ }),
873
+ path: z.never().optional(),
874
+ query: z.never().optional()
875
+ });
876
+ /**
877
+ * JSON-RPC 2.0 success or error response
878
+ */
879
+ export const zPostMcpResponse = z.object({
880
+ jsonrpc: z.string().optional(),
881
+ id: z.union([
882
+ z.string(),
883
+ z.number()
884
+ ]).optional(),
885
+ result: z.record(z.string(), z.unknown()).optional(),
886
+ error: z.object({
887
+ code: z.int().optional(),
888
+ message: z.string().optional()
889
+ }).optional()
890
+ });
891
+ export const zGetOrganizationData = z.object({
892
+ body: z.never().optional(),
893
+ path: z.never().optional(),
894
+ query: z.never().optional()
895
+ });
896
+ /**
897
+ * Returns a single object containing organization details.
898
+ */
1110
899
  export const zGetOrganizationResponse = zOrganization;
900
+ export const zCreateOrganizationData = z.object({
901
+ body: zOrganizationCreateInput,
902
+ path: z.never().optional(),
903
+ query: z.never().optional()
904
+ });
905
+ export const zListRepositoriesData = z.object({
906
+ body: z.never().optional(),
907
+ path: z.never().optional(),
908
+ query: z.never().optional()
909
+ });
910
+ /**
911
+ * List of repositories
912
+ */
913
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
914
+ export const zListTagsData = z.object({
915
+ body: z.never().optional(),
916
+ path: z.object({
917
+ region: z.string(),
918
+ repository: z.string()
919
+ }),
920
+ query: z.never().optional()
921
+ });
922
+ /**
923
+ * Repository with tags
924
+ */
925
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
926
+ export const zDeleteTagData = z.object({
927
+ body: z.never().optional(),
928
+ path: z.object({
929
+ region: z.string(),
930
+ repository: z.string(),
931
+ tag: z.string()
932
+ }),
933
+ query: z.never().optional()
934
+ });
935
+ export const zGetTagData = z.object({
936
+ body: z.never().optional(),
937
+ path: z.object({
938
+ region: z.string(),
939
+ repository: z.string(),
940
+ tag: z.string()
941
+ }),
942
+ query: z.never().optional()
943
+ });
944
+ /**
945
+ * Tag details
946
+ */
947
+ export const zGetTagResponse = zRegistryTag;
948
+ export const zListTokensData = z.object({
949
+ body: z.never().optional(),
950
+ path: z.never().optional(),
951
+ query: z.never().optional()
952
+ });
953
+ /**
954
+ * Returns a list of access token details with masked secrets.
955
+ */
1111
956
  export const zListTokensResponse = z.array(zToken);
957
+ export const zCreateTokenData = z.object({
958
+ body: zTokenCreateInput,
959
+ path: z.never().optional(),
960
+ query: z.never().optional()
961
+ });
962
+ /**
963
+ * Successfully created. Returns created token details with unmasked/raw secret.
964
+ */
1112
965
  export const zCreateTokenResponse = zToken;
966
+ export const zDeleteTokenData = z.object({
967
+ body: z.never().optional(),
968
+ path: z.object({
969
+ token_id: z.string()
970
+ }),
971
+ query: z.never().optional()
972
+ });
973
+ export const zGetTokenData = z.object({
974
+ body: z.never().optional(),
975
+ path: z.object({
976
+ token_id: z.string()
977
+ }),
978
+ query: z.never().optional()
979
+ });
980
+ /**
981
+ * Returns access token details with masked secret.
982
+ */
1113
983
  export const zGetTokenResponse = zToken;
984
+ export const zUpdateTokenData = z.object({
985
+ body: zTokenUpdateInput,
986
+ path: z.object({
987
+ token_id: z.string()
988
+ }),
989
+ query: z.never().optional()
990
+ });
991
+ /**
992
+ * Successfully updated. Returns updated token details with masked secret.
993
+ */
1114
994
  export const zUpdateTokenResponse = zToken;
995
+ export const zRegenerateTokenData = z.object({
996
+ body: z.never().optional(),
997
+ path: z.object({
998
+ token_id: z.string()
999
+ }),
1000
+ query: z.never().optional()
1001
+ });
1002
+ /**
1003
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1004
+ */
1115
1005
  export const zRegenerateTokenResponse = zToken;
1006
+ export const zListUserOrganizationsData = z.object({
1007
+ body: z.never().optional(),
1008
+ path: z.object({
1009
+ email: z.string()
1010
+ }),
1011
+ query: z.never().optional()
1012
+ });
1013
+ /**
1014
+ * An array of organizations the user belongs to.
1015
+ */
1116
1016
  export const zListUserOrganizationsResponse = z.array(z.object({
1117
1017
  realm: z.string().optional(),
1118
1018
  displayName: z.string().optional()
1119
1019
  }));
1020
+ export const zListUsersData = z.object({
1021
+ body: z.never().optional(),
1022
+ path: z.never().optional(),
1023
+ query: z.never().optional()
1024
+ });
1025
+ /**
1026
+ * An array of users
1027
+ */
1120
1028
  export const zListUsersResponse = z.array(zUser);
1029
+ export const zCreateUserData = z.object({
1030
+ body: zUserCreateInput,
1031
+ path: z.never().optional(),
1032
+ query: z.never().optional()
1033
+ });
1034
+ /**
1035
+ * Successfully created. Returns created user details.
1036
+ */
1121
1037
  export const zCreateUserResponse = zUser;
1038
+ export const zDeleteUserData = z.object({
1039
+ body: z.never().optional(),
1040
+ path: z.object({
1041
+ user_id: z.string()
1042
+ }),
1043
+ query: z.never().optional()
1044
+ });
1045
+ /**
1046
+ * User profile information
1047
+ */
1122
1048
  export const zDeleteUserResponse = zUser;
1049
+ export const zGetUserData = z.object({
1050
+ body: z.never().optional(),
1051
+ path: z.object({
1052
+ user_id: z.string()
1053
+ }),
1054
+ query: z.never().optional()
1055
+ });
1056
+ /**
1057
+ * User profile information
1058
+ */
1123
1059
  export const zGetUserResponse = zUser;
1060
+ export const zUpdateUserData = z.object({
1061
+ body: zUserUpdateInput,
1062
+ path: z.object({
1063
+ user_id: z.string()
1064
+ }),
1065
+ query: z.never().optional()
1066
+ });
1067
+ /**
1068
+ * Successfully created. Returns created user details.
1069
+ */
1124
1070
  export const zUpdateUserResponse = zUser;
1125
1071
  //# sourceMappingURL=zod.gen.js.map