@cloudfleet/sdk 0.0.1-7f36848 → 0.0.1-80ccdf7

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