@cloudfleet/sdk 0.0.1-0ac9bf0 → 0.0.1-0b7b21b
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.
- package/README.md +26 -2
- package/dist/@tanstack/react-query.gen.d.ts +1077 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1286 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +114 -102
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.gen.d.ts +9 -13
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +8 -4
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +13 -15
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -3
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -1
- package/dist/core/auth.gen.js.map +1 -1
- package/dist/core/bodySerializer.gen.d.ts +16 -8
- package/dist/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/core/bodySerializer.gen.js +1 -1
- package/dist/core/bodySerializer.gen.js.map +1 -1
- package/dist/core/params.gen.d.ts +10 -0
- package/dist/core/params.gen.d.ts.map +1 -1
- package/dist/core/params.gen.js +22 -10
- package/dist/core/params.gen.js.map +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/core/pathSerializer.gen.js +3 -11
- package/dist/core/pathSerializer.gen.js.map +1 -1
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
- package/dist/core/queryKeySerializer.gen.js +4 -11
- package/dist/core/queryKeySerializer.gen.js.map +1 -1
- package/dist/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/core/serverSentEvents.gen.js +6 -9
- package/dist/core/serverSentEvents.gen.js.map +1 -1
- package/dist/core/types.gen.d.ts +1 -1
- package/dist/core/types.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.js +1 -1
- package/dist/core/utils.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +1770 -273
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +3181 -308
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +305 -164
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +447 -323
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +8 -8
- package/dist/types.gen.d.ts +2054 -579
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3692 -1312
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1559 -570
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -8
package/dist/zod.gen.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
type: z.enum(['business', 'personal']),
|
|
5
|
+
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(),
|
|
6
|
+
address1: z.string().optional(),
|
|
7
|
+
address2: z.string().optional(),
|
|
8
|
+
postalCode: z.string().optional(),
|
|
9
|
+
city: z.string().optional(),
|
|
10
|
+
state: z.string().optional(),
|
|
11
|
+
country: z.string().optional(),
|
|
12
|
+
phone: z.string().optional(),
|
|
12
13
|
email: z.email(),
|
|
13
14
|
individual_name: z.string(),
|
|
14
|
-
tax_id: z.
|
|
15
|
-
tax_id_type: z.
|
|
15
|
+
tax_id: z.string().optional(),
|
|
16
|
+
tax_id_type: z.enum([
|
|
16
17
|
'ad_nrt',
|
|
17
18
|
'ae_trn',
|
|
18
19
|
'al_tin',
|
|
@@ -141,20 +142,17 @@ export const zBillingContact = z.object({
|
|
|
141
142
|
'zm_tin',
|
|
142
143
|
'zw_tin',
|
|
143
144
|
''
|
|
144
|
-
]))
|
|
145
|
+
]).optional()
|
|
145
146
|
});
|
|
146
147
|
export const zBillingCredits = z.object({
|
|
147
|
-
id: z.
|
|
148
|
-
type: z.enum([
|
|
149
|
-
'credit',
|
|
150
|
-
'discount'
|
|
151
|
-
]),
|
|
148
|
+
id: z.string().optional(),
|
|
149
|
+
type: z.enum(['credit', 'discount']),
|
|
152
150
|
date_start: z.iso.datetime(),
|
|
153
|
-
date_end: z.
|
|
151
|
+
date_end: z.iso.datetime().optional(),
|
|
154
152
|
code: z.string(),
|
|
155
|
-
description: z.
|
|
153
|
+
description: z.string().optional(),
|
|
156
154
|
value_total: z.number(),
|
|
157
|
-
value_remaining: z.
|
|
155
|
+
value_remaining: z.number().optional()
|
|
158
156
|
});
|
|
159
157
|
export const zChartCreateInput = z.object({
|
|
160
158
|
values: z.string(),
|
|
@@ -169,22 +167,7 @@ export const zChart = z.object({
|
|
|
169
167
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
170
168
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
171
169
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
172
|
-
status: z.
|
|
173
|
-
'InstallSucceeded',
|
|
174
|
-
'InstallFailed',
|
|
175
|
-
'UpgradeSucceeded',
|
|
176
|
-
'UpgradeFailed',
|
|
177
|
-
'TestSucceeded',
|
|
178
|
-
'TestFailed',
|
|
179
|
-
'RollbackSucceeded',
|
|
180
|
-
'RollbackFailed',
|
|
181
|
-
'UninstallSucceeded',
|
|
182
|
-
'UninstallFailed',
|
|
183
|
-
'ArtifactFailed',
|
|
184
|
-
'DependencyNotReady',
|
|
185
|
-
'Progressing',
|
|
186
|
-
'SourceNotReady'
|
|
187
|
-
]),
|
|
170
|
+
status: z.string(),
|
|
188
171
|
version_current: z.string(),
|
|
189
172
|
created_at: z.string(),
|
|
190
173
|
updated_at: z.string(),
|
|
@@ -194,24 +177,57 @@ export const zChartUpdateInput = z.object({
|
|
|
194
177
|
values: z.string(),
|
|
195
178
|
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-]+)*))?$/)
|
|
196
179
|
});
|
|
180
|
+
/**
|
|
181
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
182
|
+
*/
|
|
197
183
|
export const zClusterCreateInput = z.object({
|
|
198
184
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
199
185
|
tier: z.enum([
|
|
200
186
|
'basic',
|
|
201
|
-
'pro'
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
|
|
209
|
-
|
|
187
|
+
'pro',
|
|
188
|
+
'enterprise'
|
|
189
|
+
]).optional().default('basic'),
|
|
190
|
+
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'),
|
|
191
|
+
release_channel: z.enum([
|
|
192
|
+
'rapid',
|
|
193
|
+
'stable',
|
|
194
|
+
'extended'
|
|
195
|
+
]).optional().default('rapid'),
|
|
196
|
+
features: z.object({
|
|
197
|
+
gpu_sharing_strategy: z.enum([
|
|
198
|
+
'none',
|
|
199
|
+
'mps',
|
|
200
|
+
'time_slicing'
|
|
201
|
+
]).optional().default('none'),
|
|
202
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
203
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
204
|
+
}).optional().default({
|
|
205
|
+
gpu_sharing_strategy: 'none',
|
|
206
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
207
|
+
cilium_socket_lb_host_namespace_only: false
|
|
208
|
+
}),
|
|
209
|
+
region: z.string(),
|
|
210
|
+
networking: z.object({
|
|
211
|
+
pod_cidr: z.string().optional().default('10.244.0.0/16'),
|
|
212
|
+
service_cidr: z.string().optional().default('10.96.0.0/12'),
|
|
213
|
+
dual_stack: z.boolean().optional(),
|
|
214
|
+
pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
|
|
215
|
+
service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
|
|
216
|
+
}).optional().default({
|
|
217
|
+
pod_cidr: '10.244.0.0/16',
|
|
218
|
+
service_cidr: '10.96.0.0/12',
|
|
219
|
+
dual_stack: false,
|
|
220
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
221
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
222
|
+
})
|
|
210
223
|
});
|
|
211
224
|
export const zClusterJoinInformation = z.object({
|
|
212
225
|
certificate_authority: z.string(),
|
|
213
226
|
endpoint: z.url(),
|
|
227
|
+
cluster_dns: z.string(),
|
|
228
|
+
pod_cidr: z.string(),
|
|
214
229
|
auth_key: z.string(),
|
|
230
|
+
login_server: z.string(),
|
|
215
231
|
bootstrap_token: z.string(),
|
|
216
232
|
versions: z.object({
|
|
217
233
|
kubernetes: z.string(),
|
|
@@ -225,748 +241,1721 @@ export const zClusterJoinInformation = z.object({
|
|
|
225
241
|
gcp_workload_identity_provider: z.string()
|
|
226
242
|
})
|
|
227
243
|
});
|
|
244
|
+
/**
|
|
245
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
246
|
+
*/
|
|
228
247
|
export const zCluster = z.object({
|
|
229
248
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
249
|
tier: z.enum([
|
|
231
250
|
'basic',
|
|
232
|
-
'pro'
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
|
|
240
|
-
|
|
251
|
+
'pro',
|
|
252
|
+
'enterprise'
|
|
253
|
+
]).default('basic'),
|
|
254
|
+
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-]+)*))?$/).default('1.x.x-cfke.x'),
|
|
255
|
+
release_channel: z.enum([
|
|
256
|
+
'rapid',
|
|
257
|
+
'stable',
|
|
258
|
+
'extended'
|
|
259
|
+
]).default('rapid'),
|
|
260
|
+
features: z.object({
|
|
261
|
+
gpu_sharing_strategy: z.enum([
|
|
262
|
+
'none',
|
|
263
|
+
'mps',
|
|
264
|
+
'time_slicing'
|
|
265
|
+
]).default('none'),
|
|
266
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
267
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
268
|
+
}).default({
|
|
269
|
+
gpu_sharing_strategy: 'none',
|
|
270
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
271
|
+
cilium_socket_lb_host_namespace_only: false
|
|
272
|
+
}),
|
|
273
|
+
region: z.string(),
|
|
274
|
+
networking: z.object({
|
|
275
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
276
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
277
|
+
dual_stack: z.boolean(),
|
|
278
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
279
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
280
|
+
}).default({
|
|
281
|
+
pod_cidr: '10.244.0.0/16',
|
|
282
|
+
service_cidr: '10.96.0.0/12',
|
|
283
|
+
dual_stack: false,
|
|
284
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
285
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
286
|
+
}),
|
|
241
287
|
id: z.uuid(),
|
|
242
288
|
status: z.enum([
|
|
243
|
-
'active',
|
|
244
|
-
'disabled',
|
|
245
|
-
'deleted',
|
|
246
289
|
'creating',
|
|
247
290
|
'deployed',
|
|
248
|
-
'
|
|
249
|
-
'
|
|
291
|
+
'updating',
|
|
292
|
+
'disabled'
|
|
250
293
|
]),
|
|
251
|
-
endpoint: z.
|
|
294
|
+
endpoint: z.union([
|
|
252
295
|
z.url(),
|
|
253
|
-
z.enum([
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
296
|
+
z.enum([''])
|
|
297
|
+
]).optional(),
|
|
298
|
+
endpoint_public: z.union([
|
|
299
|
+
z.url(),
|
|
300
|
+
z.enum([''])
|
|
301
|
+
]).optional(),
|
|
302
|
+
certificate_ca: z.string().optional(),
|
|
303
|
+
version_current: z.string().optional(),
|
|
304
|
+
created_at: z.string().optional(),
|
|
305
|
+
updated_at: z.string().optional(),
|
|
306
|
+
ready: z.boolean()
|
|
262
307
|
});
|
|
308
|
+
/**
|
|
309
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
310
|
+
*/
|
|
263
311
|
export const zClusterUpdateInput = z.object({
|
|
264
|
-
name: z.
|
|
312
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
265
313
|
tier: z.enum([
|
|
266
314
|
'basic',
|
|
267
|
-
'pro'
|
|
268
|
-
|
|
269
|
-
|
|
315
|
+
'pro',
|
|
316
|
+
'enterprise'
|
|
317
|
+
]).optional().default('basic'),
|
|
318
|
+
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'),
|
|
319
|
+
release_channel: z.enum([
|
|
320
|
+
'rapid',
|
|
321
|
+
'stable',
|
|
322
|
+
'extended'
|
|
323
|
+
]).optional().default('rapid'),
|
|
324
|
+
features: z.object({
|
|
325
|
+
gpu_sharing_strategy: z.enum([
|
|
326
|
+
'none',
|
|
327
|
+
'mps',
|
|
328
|
+
'time_slicing'
|
|
329
|
+
]).optional().default('none'),
|
|
330
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
331
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
332
|
+
}).optional().default({
|
|
333
|
+
gpu_sharing_strategy: 'none',
|
|
334
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
335
|
+
cilium_socket_lb_host_namespace_only: false
|
|
336
|
+
})
|
|
270
337
|
});
|
|
338
|
+
/**
|
|
339
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
340
|
+
*/
|
|
271
341
|
export const zFleetCreateInput = z.object({
|
|
272
|
-
limits: z.
|
|
273
|
-
cpu: z.
|
|
274
|
-
})),
|
|
275
|
-
gcp: z.
|
|
276
|
-
enabled: z.
|
|
277
|
-
project: z.string()
|
|
278
|
-
})),
|
|
279
|
-
hetzner: z.
|
|
280
|
-
enabled: z.
|
|
281
|
-
apiKey: z.string()
|
|
282
|
-
})),
|
|
283
|
-
aws: z.
|
|
284
|
-
enabled: z.
|
|
285
|
-
controllerRoleArn: z.string()
|
|
286
|
-
})),
|
|
342
|
+
limits: z.object({
|
|
343
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
344
|
+
}).optional(),
|
|
345
|
+
gcp: z.object({
|
|
346
|
+
enabled: z.boolean(),
|
|
347
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
348
|
+
}).optional(),
|
|
349
|
+
hetzner: z.object({
|
|
350
|
+
enabled: z.boolean(),
|
|
351
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
352
|
+
}).optional(),
|
|
353
|
+
aws: z.object({
|
|
354
|
+
enabled: z.boolean(),
|
|
355
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
356
|
+
}).optional(),
|
|
357
|
+
constraints: z.object({
|
|
358
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
359
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
360
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
361
|
+
'a1',
|
|
362
|
+
'a2',
|
|
363
|
+
'a3',
|
|
364
|
+
'a4',
|
|
365
|
+
'c1',
|
|
366
|
+
'c2',
|
|
367
|
+
'c2d',
|
|
368
|
+
'c3',
|
|
369
|
+
'c3d',
|
|
370
|
+
'c4',
|
|
371
|
+
'c4a',
|
|
372
|
+
'c4d',
|
|
373
|
+
'c5',
|
|
374
|
+
'c5a',
|
|
375
|
+
'c5ad',
|
|
376
|
+
'c5d',
|
|
377
|
+
'c5n',
|
|
378
|
+
'c6a',
|
|
379
|
+
'c6g',
|
|
380
|
+
'c6gd',
|
|
381
|
+
'c6gn',
|
|
382
|
+
'c6i',
|
|
383
|
+
'c6id',
|
|
384
|
+
'c6in',
|
|
385
|
+
'c7a',
|
|
386
|
+
'c7g',
|
|
387
|
+
'c7gd',
|
|
388
|
+
'c7gn',
|
|
389
|
+
'c7i',
|
|
390
|
+
'c7i-flex',
|
|
391
|
+
'c8g',
|
|
392
|
+
'c8gd',
|
|
393
|
+
'cax',
|
|
394
|
+
'ccx',
|
|
395
|
+
'cpx',
|
|
396
|
+
'cx',
|
|
397
|
+
'd2',
|
|
398
|
+
'd3',
|
|
399
|
+
'd3en',
|
|
400
|
+
'dl1',
|
|
401
|
+
'dl2q',
|
|
402
|
+
'e2',
|
|
403
|
+
'f1',
|
|
404
|
+
'f2',
|
|
405
|
+
'g1',
|
|
406
|
+
'g2',
|
|
407
|
+
'g4ad',
|
|
408
|
+
'g4dn',
|
|
409
|
+
'g5',
|
|
410
|
+
'g5g',
|
|
411
|
+
'g6',
|
|
412
|
+
'g6e',
|
|
413
|
+
'gr6',
|
|
414
|
+
'h1',
|
|
415
|
+
'h3',
|
|
416
|
+
'hpc6a',
|
|
417
|
+
'hpc6id',
|
|
418
|
+
'hpc7a',
|
|
419
|
+
'hpc7g',
|
|
420
|
+
'i2',
|
|
421
|
+
'i3',
|
|
422
|
+
'i3en',
|
|
423
|
+
'i4g',
|
|
424
|
+
'i4i',
|
|
425
|
+
'i7i',
|
|
426
|
+
'i7ie',
|
|
427
|
+
'i8g',
|
|
428
|
+
'im4gn',
|
|
429
|
+
'inf1',
|
|
430
|
+
'inf2',
|
|
431
|
+
'is4gen',
|
|
432
|
+
'm1',
|
|
433
|
+
'm2',
|
|
434
|
+
'm3',
|
|
435
|
+
'm4',
|
|
436
|
+
'm5',
|
|
437
|
+
'm5a',
|
|
438
|
+
'm5ad',
|
|
439
|
+
'm5d',
|
|
440
|
+
'm5dn',
|
|
441
|
+
'm5n',
|
|
442
|
+
'm5zn',
|
|
443
|
+
'm6a',
|
|
444
|
+
'm6g',
|
|
445
|
+
'm6gd',
|
|
446
|
+
'm6i',
|
|
447
|
+
'm6id',
|
|
448
|
+
'm6idn',
|
|
449
|
+
'm6in',
|
|
450
|
+
'm7a',
|
|
451
|
+
'm7g',
|
|
452
|
+
'm7gd',
|
|
453
|
+
'm7i',
|
|
454
|
+
'm7i-flex',
|
|
455
|
+
'm8g',
|
|
456
|
+
'm8gd',
|
|
457
|
+
'n1',
|
|
458
|
+
'n2',
|
|
459
|
+
'n2d',
|
|
460
|
+
'n4',
|
|
461
|
+
'p3',
|
|
462
|
+
'p3dn',
|
|
463
|
+
'p4d',
|
|
464
|
+
'p4de',
|
|
465
|
+
'p5',
|
|
466
|
+
'p5e',
|
|
467
|
+
'p5en',
|
|
468
|
+
'p6-b200',
|
|
469
|
+
'r3',
|
|
470
|
+
'r4',
|
|
471
|
+
'r5',
|
|
472
|
+
'r5a',
|
|
473
|
+
'r5ad',
|
|
474
|
+
'r5b',
|
|
475
|
+
'r5d',
|
|
476
|
+
'r5dn',
|
|
477
|
+
'r5n',
|
|
478
|
+
'r6a',
|
|
479
|
+
'r6g',
|
|
480
|
+
'r6gd',
|
|
481
|
+
'r6i',
|
|
482
|
+
'r6id',
|
|
483
|
+
'r6idn',
|
|
484
|
+
'r6in',
|
|
485
|
+
'r7a',
|
|
486
|
+
'r7g',
|
|
487
|
+
'r7gd',
|
|
488
|
+
'r7i',
|
|
489
|
+
'r7iz',
|
|
490
|
+
'r8g',
|
|
491
|
+
'r8gd',
|
|
492
|
+
't2',
|
|
493
|
+
't2a',
|
|
494
|
+
't2d',
|
|
495
|
+
't3',
|
|
496
|
+
't3a',
|
|
497
|
+
't4g',
|
|
498
|
+
'trn1',
|
|
499
|
+
'trn1n',
|
|
500
|
+
'u-3tb1',
|
|
501
|
+
'u-6tb1',
|
|
502
|
+
'u7i-12tb',
|
|
503
|
+
'u7i-6tb',
|
|
504
|
+
'u7i-8tb',
|
|
505
|
+
'u7in-16tb',
|
|
506
|
+
'u7in-24tb',
|
|
507
|
+
'u7in-32tb',
|
|
508
|
+
'vt1',
|
|
509
|
+
'x1',
|
|
510
|
+
'x1e',
|
|
511
|
+
'x2gd',
|
|
512
|
+
'x2idn',
|
|
513
|
+
'x2iedn',
|
|
514
|
+
'x2iezn',
|
|
515
|
+
'x4',
|
|
516
|
+
'x8g',
|
|
517
|
+
'z1d',
|
|
518
|
+
'z3'
|
|
519
|
+
])).optional().default([]),
|
|
520
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
521
|
+
'africa-south1',
|
|
522
|
+
'ap-northeast-1',
|
|
523
|
+
'ap-northeast-2',
|
|
524
|
+
'ap-northeast-3',
|
|
525
|
+
'ap-south-1',
|
|
526
|
+
'ap-southeast-1',
|
|
527
|
+
'ap-southeast-2',
|
|
528
|
+
'ash',
|
|
529
|
+
'asia-east1',
|
|
530
|
+
'asia-east2',
|
|
531
|
+
'asia-northeast1',
|
|
532
|
+
'asia-northeast2',
|
|
533
|
+
'asia-northeast3',
|
|
534
|
+
'asia-south1',
|
|
535
|
+
'asia-south2',
|
|
536
|
+
'asia-southeast1',
|
|
537
|
+
'asia-southeast2',
|
|
538
|
+
'australia-southeast1',
|
|
539
|
+
'australia-southeast2',
|
|
540
|
+
'ca-central-1',
|
|
541
|
+
'eu-central-1',
|
|
542
|
+
'eu-central-2',
|
|
543
|
+
'eu-north-1',
|
|
544
|
+
'eu-west-1',
|
|
545
|
+
'eu-west-2',
|
|
546
|
+
'eu-west-3',
|
|
547
|
+
'europe-central2',
|
|
548
|
+
'europe-north1',
|
|
549
|
+
'europe-southwest1',
|
|
550
|
+
'europe-west1',
|
|
551
|
+
'europe-west10',
|
|
552
|
+
'europe-west12',
|
|
553
|
+
'europe-west2',
|
|
554
|
+
'europe-west3',
|
|
555
|
+
'europe-west4',
|
|
556
|
+
'europe-west6',
|
|
557
|
+
'europe-west8',
|
|
558
|
+
'europe-west9',
|
|
559
|
+
'fsn1',
|
|
560
|
+
'hel1',
|
|
561
|
+
'hil',
|
|
562
|
+
'me-central1',
|
|
563
|
+
'me-central2',
|
|
564
|
+
'me-west1',
|
|
565
|
+
'nbg1',
|
|
566
|
+
'northamerica-northeast1',
|
|
567
|
+
'northamerica-northeast2',
|
|
568
|
+
'sa-east-1',
|
|
569
|
+
'sin',
|
|
570
|
+
'southamerica-east1',
|
|
571
|
+
'southamerica-west1',
|
|
572
|
+
'us-central1',
|
|
573
|
+
'us-east-1',
|
|
574
|
+
'us-east-2',
|
|
575
|
+
'us-east1',
|
|
576
|
+
'us-east4',
|
|
577
|
+
'us-east5',
|
|
578
|
+
'us-south1',
|
|
579
|
+
'us-west-1',
|
|
580
|
+
'us-west-2',
|
|
581
|
+
'us-west1',
|
|
582
|
+
'us-west2',
|
|
583
|
+
'us-west3',
|
|
584
|
+
'us-west4'
|
|
585
|
+
])).optional().default([])
|
|
586
|
+
}).optional().default({
|
|
587
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
588
|
+
'kubernetes.io/arch': ['amd64'],
|
|
589
|
+
'cfke.io/instance-family': [],
|
|
590
|
+
'topology.kubernetes.io/region': []
|
|
591
|
+
}),
|
|
592
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
593
|
+
taints: z.array(z.object({
|
|
594
|
+
key: z.string(),
|
|
595
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
596
|
+
effect: z.enum([
|
|
597
|
+
'NoSchedule',
|
|
598
|
+
'PreferNoSchedule',
|
|
599
|
+
'NoExecute'
|
|
600
|
+
])
|
|
601
|
+
})).max(50).optional().default([]),
|
|
287
602
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
288
603
|
});
|
|
604
|
+
/**
|
|
605
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
606
|
+
*/
|
|
289
607
|
export const zFleet = z.object({
|
|
290
|
-
limits: z.
|
|
291
|
-
cpu: z.
|
|
292
|
-
})),
|
|
293
|
-
gcp: z.
|
|
294
|
-
enabled: z.
|
|
295
|
-
project: z.string()
|
|
296
|
-
})),
|
|
297
|
-
hetzner: z.
|
|
298
|
-
enabled: z.
|
|
299
|
-
apiKey: z.string()
|
|
300
|
-
})),
|
|
301
|
-
aws: z.
|
|
302
|
-
enabled: z.
|
|
303
|
-
controllerRoleArn: z.string()
|
|
304
|
-
})),
|
|
305
|
-
|
|
608
|
+
limits: z.object({
|
|
609
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
610
|
+
}).optional(),
|
|
611
|
+
gcp: z.object({
|
|
612
|
+
enabled: z.boolean(),
|
|
613
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
614
|
+
}).optional(),
|
|
615
|
+
hetzner: z.object({
|
|
616
|
+
enabled: z.boolean(),
|
|
617
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
618
|
+
}).optional(),
|
|
619
|
+
aws: z.object({
|
|
620
|
+
enabled: z.boolean(),
|
|
621
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
622
|
+
}).optional(),
|
|
623
|
+
constraints: z.object({
|
|
624
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
625
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
626
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
627
|
+
'a1',
|
|
628
|
+
'a2',
|
|
629
|
+
'a3',
|
|
630
|
+
'a4',
|
|
631
|
+
'c1',
|
|
632
|
+
'c2',
|
|
633
|
+
'c2d',
|
|
634
|
+
'c3',
|
|
635
|
+
'c3d',
|
|
636
|
+
'c4',
|
|
637
|
+
'c4a',
|
|
638
|
+
'c4d',
|
|
639
|
+
'c5',
|
|
640
|
+
'c5a',
|
|
641
|
+
'c5ad',
|
|
642
|
+
'c5d',
|
|
643
|
+
'c5n',
|
|
644
|
+
'c6a',
|
|
645
|
+
'c6g',
|
|
646
|
+
'c6gd',
|
|
647
|
+
'c6gn',
|
|
648
|
+
'c6i',
|
|
649
|
+
'c6id',
|
|
650
|
+
'c6in',
|
|
651
|
+
'c7a',
|
|
652
|
+
'c7g',
|
|
653
|
+
'c7gd',
|
|
654
|
+
'c7gn',
|
|
655
|
+
'c7i',
|
|
656
|
+
'c7i-flex',
|
|
657
|
+
'c8g',
|
|
658
|
+
'c8gd',
|
|
659
|
+
'cax',
|
|
660
|
+
'ccx',
|
|
661
|
+
'cpx',
|
|
662
|
+
'cx',
|
|
663
|
+
'd2',
|
|
664
|
+
'd3',
|
|
665
|
+
'd3en',
|
|
666
|
+
'dl1',
|
|
667
|
+
'dl2q',
|
|
668
|
+
'e2',
|
|
669
|
+
'f1',
|
|
670
|
+
'f2',
|
|
671
|
+
'g1',
|
|
672
|
+
'g2',
|
|
673
|
+
'g4ad',
|
|
674
|
+
'g4dn',
|
|
675
|
+
'g5',
|
|
676
|
+
'g5g',
|
|
677
|
+
'g6',
|
|
678
|
+
'g6e',
|
|
679
|
+
'gr6',
|
|
680
|
+
'h1',
|
|
681
|
+
'h3',
|
|
682
|
+
'hpc6a',
|
|
683
|
+
'hpc6id',
|
|
684
|
+
'hpc7a',
|
|
685
|
+
'hpc7g',
|
|
686
|
+
'i2',
|
|
687
|
+
'i3',
|
|
688
|
+
'i3en',
|
|
689
|
+
'i4g',
|
|
690
|
+
'i4i',
|
|
691
|
+
'i7i',
|
|
692
|
+
'i7ie',
|
|
693
|
+
'i8g',
|
|
694
|
+
'im4gn',
|
|
695
|
+
'inf1',
|
|
696
|
+
'inf2',
|
|
697
|
+
'is4gen',
|
|
698
|
+
'm1',
|
|
699
|
+
'm2',
|
|
700
|
+
'm3',
|
|
701
|
+
'm4',
|
|
702
|
+
'm5',
|
|
703
|
+
'm5a',
|
|
704
|
+
'm5ad',
|
|
705
|
+
'm5d',
|
|
706
|
+
'm5dn',
|
|
707
|
+
'm5n',
|
|
708
|
+
'm5zn',
|
|
709
|
+
'm6a',
|
|
710
|
+
'm6g',
|
|
711
|
+
'm6gd',
|
|
712
|
+
'm6i',
|
|
713
|
+
'm6id',
|
|
714
|
+
'm6idn',
|
|
715
|
+
'm6in',
|
|
716
|
+
'm7a',
|
|
717
|
+
'm7g',
|
|
718
|
+
'm7gd',
|
|
719
|
+
'm7i',
|
|
720
|
+
'm7i-flex',
|
|
721
|
+
'm8g',
|
|
722
|
+
'm8gd',
|
|
723
|
+
'n1',
|
|
724
|
+
'n2',
|
|
725
|
+
'n2d',
|
|
726
|
+
'n4',
|
|
727
|
+
'p3',
|
|
728
|
+
'p3dn',
|
|
729
|
+
'p4d',
|
|
730
|
+
'p4de',
|
|
731
|
+
'p5',
|
|
732
|
+
'p5e',
|
|
733
|
+
'p5en',
|
|
734
|
+
'p6-b200',
|
|
735
|
+
'r3',
|
|
736
|
+
'r4',
|
|
737
|
+
'r5',
|
|
738
|
+
'r5a',
|
|
739
|
+
'r5ad',
|
|
740
|
+
'r5b',
|
|
741
|
+
'r5d',
|
|
742
|
+
'r5dn',
|
|
743
|
+
'r5n',
|
|
744
|
+
'r6a',
|
|
745
|
+
'r6g',
|
|
746
|
+
'r6gd',
|
|
747
|
+
'r6i',
|
|
748
|
+
'r6id',
|
|
749
|
+
'r6idn',
|
|
750
|
+
'r6in',
|
|
751
|
+
'r7a',
|
|
752
|
+
'r7g',
|
|
753
|
+
'r7gd',
|
|
754
|
+
'r7i',
|
|
755
|
+
'r7iz',
|
|
756
|
+
'r8g',
|
|
757
|
+
'r8gd',
|
|
758
|
+
't2',
|
|
759
|
+
't2a',
|
|
760
|
+
't2d',
|
|
761
|
+
't3',
|
|
762
|
+
't3a',
|
|
763
|
+
't4g',
|
|
764
|
+
'trn1',
|
|
765
|
+
'trn1n',
|
|
766
|
+
'u-3tb1',
|
|
767
|
+
'u-6tb1',
|
|
768
|
+
'u7i-12tb',
|
|
769
|
+
'u7i-6tb',
|
|
770
|
+
'u7i-8tb',
|
|
771
|
+
'u7in-16tb',
|
|
772
|
+
'u7in-24tb',
|
|
773
|
+
'u7in-32tb',
|
|
774
|
+
'vt1',
|
|
775
|
+
'x1',
|
|
776
|
+
'x1e',
|
|
777
|
+
'x2gd',
|
|
778
|
+
'x2idn',
|
|
779
|
+
'x2iedn',
|
|
780
|
+
'x2iezn',
|
|
781
|
+
'x4',
|
|
782
|
+
'x8g',
|
|
783
|
+
'z1d',
|
|
784
|
+
'z3'
|
|
785
|
+
])).optional().default([]),
|
|
786
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
787
|
+
'africa-south1',
|
|
788
|
+
'ap-northeast-1',
|
|
789
|
+
'ap-northeast-2',
|
|
790
|
+
'ap-northeast-3',
|
|
791
|
+
'ap-south-1',
|
|
792
|
+
'ap-southeast-1',
|
|
793
|
+
'ap-southeast-2',
|
|
794
|
+
'ash',
|
|
795
|
+
'asia-east1',
|
|
796
|
+
'asia-east2',
|
|
797
|
+
'asia-northeast1',
|
|
798
|
+
'asia-northeast2',
|
|
799
|
+
'asia-northeast3',
|
|
800
|
+
'asia-south1',
|
|
801
|
+
'asia-south2',
|
|
802
|
+
'asia-southeast1',
|
|
803
|
+
'asia-southeast2',
|
|
804
|
+
'australia-southeast1',
|
|
805
|
+
'australia-southeast2',
|
|
806
|
+
'ca-central-1',
|
|
807
|
+
'eu-central-1',
|
|
808
|
+
'eu-central-2',
|
|
809
|
+
'eu-north-1',
|
|
810
|
+
'eu-west-1',
|
|
811
|
+
'eu-west-2',
|
|
812
|
+
'eu-west-3',
|
|
813
|
+
'europe-central2',
|
|
814
|
+
'europe-north1',
|
|
815
|
+
'europe-southwest1',
|
|
816
|
+
'europe-west1',
|
|
817
|
+
'europe-west10',
|
|
818
|
+
'europe-west12',
|
|
819
|
+
'europe-west2',
|
|
820
|
+
'europe-west3',
|
|
821
|
+
'europe-west4',
|
|
822
|
+
'europe-west6',
|
|
823
|
+
'europe-west8',
|
|
824
|
+
'europe-west9',
|
|
825
|
+
'fsn1',
|
|
826
|
+
'hel1',
|
|
827
|
+
'hil',
|
|
828
|
+
'me-central1',
|
|
829
|
+
'me-central2',
|
|
830
|
+
'me-west1',
|
|
831
|
+
'nbg1',
|
|
832
|
+
'northamerica-northeast1',
|
|
833
|
+
'northamerica-northeast2',
|
|
834
|
+
'sa-east-1',
|
|
835
|
+
'sin',
|
|
836
|
+
'southamerica-east1',
|
|
837
|
+
'southamerica-west1',
|
|
838
|
+
'us-central1',
|
|
839
|
+
'us-east-1',
|
|
840
|
+
'us-east-2',
|
|
841
|
+
'us-east1',
|
|
842
|
+
'us-east4',
|
|
843
|
+
'us-east5',
|
|
844
|
+
'us-south1',
|
|
845
|
+
'us-west-1',
|
|
846
|
+
'us-west-2',
|
|
847
|
+
'us-west1',
|
|
848
|
+
'us-west2',
|
|
849
|
+
'us-west3',
|
|
850
|
+
'us-west4'
|
|
851
|
+
])).optional().default([])
|
|
852
|
+
}).default({
|
|
853
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
854
|
+
'kubernetes.io/arch': ['amd64'],
|
|
855
|
+
'cfke.io/instance-family': [],
|
|
856
|
+
'topology.kubernetes.io/region': []
|
|
857
|
+
}),
|
|
858
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
859
|
+
taints: z.array(z.object({
|
|
860
|
+
key: z.string(),
|
|
861
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
862
|
+
effect: z.enum([
|
|
863
|
+
'NoSchedule',
|
|
864
|
+
'PreferNoSchedule',
|
|
865
|
+
'NoExecute'
|
|
866
|
+
])
|
|
867
|
+
})).max(50).default([]),
|
|
868
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
869
|
+
ready: z.boolean(),
|
|
870
|
+
status_message: z.string().optional(),
|
|
871
|
+
created_at: z.string(),
|
|
872
|
+
updated_at: z.string()
|
|
306
873
|
});
|
|
874
|
+
/**
|
|
875
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
876
|
+
*/
|
|
307
877
|
export const zFleetUpdateInput = z.object({
|
|
308
|
-
limits: z.
|
|
309
|
-
cpu: z.
|
|
310
|
-
})),
|
|
311
|
-
gcp: z.
|
|
312
|
-
enabled: z.
|
|
313
|
-
project: z.string()
|
|
314
|
-
})),
|
|
315
|
-
hetzner: z.
|
|
316
|
-
enabled: z.
|
|
317
|
-
apiKey: z.string()
|
|
318
|
-
})),
|
|
319
|
-
aws: z.
|
|
320
|
-
enabled: z.
|
|
321
|
-
controllerRoleArn: z.string()
|
|
322
|
-
}))
|
|
878
|
+
limits: z.object({
|
|
879
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
880
|
+
}).optional(),
|
|
881
|
+
gcp: z.object({
|
|
882
|
+
enabled: z.boolean(),
|
|
883
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
884
|
+
}).optional(),
|
|
885
|
+
hetzner: z.object({
|
|
886
|
+
enabled: z.boolean(),
|
|
887
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
888
|
+
}).optional(),
|
|
889
|
+
aws: z.object({
|
|
890
|
+
enabled: z.boolean(),
|
|
891
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
892
|
+
}).optional(),
|
|
893
|
+
constraints: z.object({
|
|
894
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
895
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
896
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
897
|
+
'a1',
|
|
898
|
+
'a2',
|
|
899
|
+
'a3',
|
|
900
|
+
'a4',
|
|
901
|
+
'c1',
|
|
902
|
+
'c2',
|
|
903
|
+
'c2d',
|
|
904
|
+
'c3',
|
|
905
|
+
'c3d',
|
|
906
|
+
'c4',
|
|
907
|
+
'c4a',
|
|
908
|
+
'c4d',
|
|
909
|
+
'c5',
|
|
910
|
+
'c5a',
|
|
911
|
+
'c5ad',
|
|
912
|
+
'c5d',
|
|
913
|
+
'c5n',
|
|
914
|
+
'c6a',
|
|
915
|
+
'c6g',
|
|
916
|
+
'c6gd',
|
|
917
|
+
'c6gn',
|
|
918
|
+
'c6i',
|
|
919
|
+
'c6id',
|
|
920
|
+
'c6in',
|
|
921
|
+
'c7a',
|
|
922
|
+
'c7g',
|
|
923
|
+
'c7gd',
|
|
924
|
+
'c7gn',
|
|
925
|
+
'c7i',
|
|
926
|
+
'c7i-flex',
|
|
927
|
+
'c8g',
|
|
928
|
+
'c8gd',
|
|
929
|
+
'cax',
|
|
930
|
+
'ccx',
|
|
931
|
+
'cpx',
|
|
932
|
+
'cx',
|
|
933
|
+
'd2',
|
|
934
|
+
'd3',
|
|
935
|
+
'd3en',
|
|
936
|
+
'dl1',
|
|
937
|
+
'dl2q',
|
|
938
|
+
'e2',
|
|
939
|
+
'f1',
|
|
940
|
+
'f2',
|
|
941
|
+
'g1',
|
|
942
|
+
'g2',
|
|
943
|
+
'g4ad',
|
|
944
|
+
'g4dn',
|
|
945
|
+
'g5',
|
|
946
|
+
'g5g',
|
|
947
|
+
'g6',
|
|
948
|
+
'g6e',
|
|
949
|
+
'gr6',
|
|
950
|
+
'h1',
|
|
951
|
+
'h3',
|
|
952
|
+
'hpc6a',
|
|
953
|
+
'hpc6id',
|
|
954
|
+
'hpc7a',
|
|
955
|
+
'hpc7g',
|
|
956
|
+
'i2',
|
|
957
|
+
'i3',
|
|
958
|
+
'i3en',
|
|
959
|
+
'i4g',
|
|
960
|
+
'i4i',
|
|
961
|
+
'i7i',
|
|
962
|
+
'i7ie',
|
|
963
|
+
'i8g',
|
|
964
|
+
'im4gn',
|
|
965
|
+
'inf1',
|
|
966
|
+
'inf2',
|
|
967
|
+
'is4gen',
|
|
968
|
+
'm1',
|
|
969
|
+
'm2',
|
|
970
|
+
'm3',
|
|
971
|
+
'm4',
|
|
972
|
+
'm5',
|
|
973
|
+
'm5a',
|
|
974
|
+
'm5ad',
|
|
975
|
+
'm5d',
|
|
976
|
+
'm5dn',
|
|
977
|
+
'm5n',
|
|
978
|
+
'm5zn',
|
|
979
|
+
'm6a',
|
|
980
|
+
'm6g',
|
|
981
|
+
'm6gd',
|
|
982
|
+
'm6i',
|
|
983
|
+
'm6id',
|
|
984
|
+
'm6idn',
|
|
985
|
+
'm6in',
|
|
986
|
+
'm7a',
|
|
987
|
+
'm7g',
|
|
988
|
+
'm7gd',
|
|
989
|
+
'm7i',
|
|
990
|
+
'm7i-flex',
|
|
991
|
+
'm8g',
|
|
992
|
+
'm8gd',
|
|
993
|
+
'n1',
|
|
994
|
+
'n2',
|
|
995
|
+
'n2d',
|
|
996
|
+
'n4',
|
|
997
|
+
'p3',
|
|
998
|
+
'p3dn',
|
|
999
|
+
'p4d',
|
|
1000
|
+
'p4de',
|
|
1001
|
+
'p5',
|
|
1002
|
+
'p5e',
|
|
1003
|
+
'p5en',
|
|
1004
|
+
'p6-b200',
|
|
1005
|
+
'r3',
|
|
1006
|
+
'r4',
|
|
1007
|
+
'r5',
|
|
1008
|
+
'r5a',
|
|
1009
|
+
'r5ad',
|
|
1010
|
+
'r5b',
|
|
1011
|
+
'r5d',
|
|
1012
|
+
'r5dn',
|
|
1013
|
+
'r5n',
|
|
1014
|
+
'r6a',
|
|
1015
|
+
'r6g',
|
|
1016
|
+
'r6gd',
|
|
1017
|
+
'r6i',
|
|
1018
|
+
'r6id',
|
|
1019
|
+
'r6idn',
|
|
1020
|
+
'r6in',
|
|
1021
|
+
'r7a',
|
|
1022
|
+
'r7g',
|
|
1023
|
+
'r7gd',
|
|
1024
|
+
'r7i',
|
|
1025
|
+
'r7iz',
|
|
1026
|
+
'r8g',
|
|
1027
|
+
'r8gd',
|
|
1028
|
+
't2',
|
|
1029
|
+
't2a',
|
|
1030
|
+
't2d',
|
|
1031
|
+
't3',
|
|
1032
|
+
't3a',
|
|
1033
|
+
't4g',
|
|
1034
|
+
'trn1',
|
|
1035
|
+
'trn1n',
|
|
1036
|
+
'u-3tb1',
|
|
1037
|
+
'u-6tb1',
|
|
1038
|
+
'u7i-12tb',
|
|
1039
|
+
'u7i-6tb',
|
|
1040
|
+
'u7i-8tb',
|
|
1041
|
+
'u7in-16tb',
|
|
1042
|
+
'u7in-24tb',
|
|
1043
|
+
'u7in-32tb',
|
|
1044
|
+
'vt1',
|
|
1045
|
+
'x1',
|
|
1046
|
+
'x1e',
|
|
1047
|
+
'x2gd',
|
|
1048
|
+
'x2idn',
|
|
1049
|
+
'x2iedn',
|
|
1050
|
+
'x2iezn',
|
|
1051
|
+
'x4',
|
|
1052
|
+
'x8g',
|
|
1053
|
+
'z1d',
|
|
1054
|
+
'z3'
|
|
1055
|
+
])).optional().default([]),
|
|
1056
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
1057
|
+
'africa-south1',
|
|
1058
|
+
'ap-northeast-1',
|
|
1059
|
+
'ap-northeast-2',
|
|
1060
|
+
'ap-northeast-3',
|
|
1061
|
+
'ap-south-1',
|
|
1062
|
+
'ap-southeast-1',
|
|
1063
|
+
'ap-southeast-2',
|
|
1064
|
+
'ash',
|
|
1065
|
+
'asia-east1',
|
|
1066
|
+
'asia-east2',
|
|
1067
|
+
'asia-northeast1',
|
|
1068
|
+
'asia-northeast2',
|
|
1069
|
+
'asia-northeast3',
|
|
1070
|
+
'asia-south1',
|
|
1071
|
+
'asia-south2',
|
|
1072
|
+
'asia-southeast1',
|
|
1073
|
+
'asia-southeast2',
|
|
1074
|
+
'australia-southeast1',
|
|
1075
|
+
'australia-southeast2',
|
|
1076
|
+
'ca-central-1',
|
|
1077
|
+
'eu-central-1',
|
|
1078
|
+
'eu-central-2',
|
|
1079
|
+
'eu-north-1',
|
|
1080
|
+
'eu-west-1',
|
|
1081
|
+
'eu-west-2',
|
|
1082
|
+
'eu-west-3',
|
|
1083
|
+
'europe-central2',
|
|
1084
|
+
'europe-north1',
|
|
1085
|
+
'europe-southwest1',
|
|
1086
|
+
'europe-west1',
|
|
1087
|
+
'europe-west10',
|
|
1088
|
+
'europe-west12',
|
|
1089
|
+
'europe-west2',
|
|
1090
|
+
'europe-west3',
|
|
1091
|
+
'europe-west4',
|
|
1092
|
+
'europe-west6',
|
|
1093
|
+
'europe-west8',
|
|
1094
|
+
'europe-west9',
|
|
1095
|
+
'fsn1',
|
|
1096
|
+
'hel1',
|
|
1097
|
+
'hil',
|
|
1098
|
+
'me-central1',
|
|
1099
|
+
'me-central2',
|
|
1100
|
+
'me-west1',
|
|
1101
|
+
'nbg1',
|
|
1102
|
+
'northamerica-northeast1',
|
|
1103
|
+
'northamerica-northeast2',
|
|
1104
|
+
'sa-east-1',
|
|
1105
|
+
'sin',
|
|
1106
|
+
'southamerica-east1',
|
|
1107
|
+
'southamerica-west1',
|
|
1108
|
+
'us-central1',
|
|
1109
|
+
'us-east-1',
|
|
1110
|
+
'us-east-2',
|
|
1111
|
+
'us-east1',
|
|
1112
|
+
'us-east4',
|
|
1113
|
+
'us-east5',
|
|
1114
|
+
'us-south1',
|
|
1115
|
+
'us-west-1',
|
|
1116
|
+
'us-west-2',
|
|
1117
|
+
'us-west1',
|
|
1118
|
+
'us-west2',
|
|
1119
|
+
'us-west3',
|
|
1120
|
+
'us-west4'
|
|
1121
|
+
])).optional().default([])
|
|
1122
|
+
}).optional().default({
|
|
1123
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1124
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1125
|
+
'cfke.io/instance-family': [],
|
|
1126
|
+
'topology.kubernetes.io/region': []
|
|
1127
|
+
}),
|
|
1128
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
1129
|
+
taints: z.array(z.object({
|
|
1130
|
+
key: z.string(),
|
|
1131
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
1132
|
+
effect: z.enum([
|
|
1133
|
+
'NoSchedule',
|
|
1134
|
+
'PreferNoSchedule',
|
|
1135
|
+
'NoExecute'
|
|
1136
|
+
])
|
|
1137
|
+
})).max(50).optional().default([])
|
|
1138
|
+
});
|
|
1139
|
+
export const zInviteCreateInput = z.object({
|
|
1140
|
+
email: z.email(),
|
|
1141
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
323
1142
|
});
|
|
324
1143
|
export const zInvite = z.object({
|
|
325
|
-
id: z.
|
|
326
|
-
organization_id: z.
|
|
1144
|
+
id: z.string().optional(),
|
|
1145
|
+
organization_id: z.uuid().optional(),
|
|
327
1146
|
date_created: z.iso.datetime(),
|
|
328
|
-
email: z.
|
|
329
|
-
code: z.
|
|
1147
|
+
email: z.email().optional(),
|
|
1148
|
+
code: z.string().optional(),
|
|
1149
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1150
|
+
});
|
|
1151
|
+
export const zInvoicePaymentAttempt = z.object({
|
|
1152
|
+
invoice_id: z.string(),
|
|
1153
|
+
number: z.string(),
|
|
1154
|
+
amount: z.number(),
|
|
1155
|
+
currency: z.string(),
|
|
1156
|
+
status: z.enum([
|
|
1157
|
+
'paid',
|
|
1158
|
+
'processing',
|
|
1159
|
+
'requires_action',
|
|
1160
|
+
'failed'
|
|
1161
|
+
]),
|
|
1162
|
+
client_secret: z.string(),
|
|
1163
|
+
failure_code: z.string(),
|
|
1164
|
+
failure_message: z.string()
|
|
1165
|
+
});
|
|
1166
|
+
export const zInvoicePaymentResult = z.object({
|
|
1167
|
+
code: z.enum([
|
|
1168
|
+
'paid',
|
|
1169
|
+
'processing',
|
|
1170
|
+
'action_required',
|
|
1171
|
+
'partially_paid',
|
|
1172
|
+
'failed',
|
|
1173
|
+
'nothing_due',
|
|
1174
|
+
'bank_transfer_due'
|
|
1175
|
+
]),
|
|
1176
|
+
message: z.string(),
|
|
1177
|
+
results: z.array(z.object({
|
|
1178
|
+
invoice_id: z.string(),
|
|
1179
|
+
number: z.string(),
|
|
1180
|
+
amount: z.number(),
|
|
1181
|
+
currency: z.string(),
|
|
1182
|
+
status: z.enum([
|
|
1183
|
+
'paid',
|
|
1184
|
+
'processing',
|
|
1185
|
+
'requires_action',
|
|
1186
|
+
'failed'
|
|
1187
|
+
]),
|
|
1188
|
+
client_secret: z.string(),
|
|
1189
|
+
failure_code: z.string(),
|
|
1190
|
+
failure_message: z.string()
|
|
1191
|
+
}))
|
|
330
1192
|
});
|
|
331
1193
|
export const zInvoice = z.object({
|
|
332
|
-
id: z.
|
|
333
|
-
number: z.
|
|
334
|
-
status: z.
|
|
335
|
-
total: z.
|
|
336
|
-
currency: z.
|
|
1194
|
+
id: z.string().optional(),
|
|
1195
|
+
number: z.string().optional(),
|
|
1196
|
+
status: z.string().optional(),
|
|
1197
|
+
total: z.number().optional(),
|
|
1198
|
+
currency: z.string().optional(),
|
|
337
1199
|
created: z.iso.datetime(),
|
|
338
1200
|
period_start: z.iso.datetime(),
|
|
339
1201
|
period_end: z.iso.datetime(),
|
|
340
|
-
invoice_pdf: z.
|
|
1202
|
+
invoice_pdf: z.string().optional()
|
|
1203
|
+
});
|
|
1204
|
+
export const zMarketplaceListingFiles = z.object({
|
|
1205
|
+
chartYaml: z.string().optional(),
|
|
1206
|
+
valuesYaml: z.string().optional(),
|
|
1207
|
+
valuesSchemaJson: z.string().optional()
|
|
341
1208
|
});
|
|
342
1209
|
export const zMarketplaceListing = z.object({
|
|
343
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
344
1210
|
name: z.string(),
|
|
345
|
-
|
|
346
|
-
description: z.string(),
|
|
347
|
-
logoUrl: z.string(),
|
|
348
|
-
longDescription: z.string(),
|
|
349
|
-
categories: z.array(z.string()),
|
|
1211
|
+
versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
|
|
350
1212
|
version_channels: z.array(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
1213
|
+
latestVersion: z.string(),
|
|
1214
|
+
metadata: z.object({
|
|
1215
|
+
name: z.string(),
|
|
1216
|
+
version: z.string(),
|
|
1217
|
+
description: z.string().optional(),
|
|
1218
|
+
appVersion: z.string().optional(),
|
|
1219
|
+
apiVersion: z.string().optional(),
|
|
1220
|
+
keywords: z.array(z.string()).optional(),
|
|
1221
|
+
home: z.string().optional(),
|
|
1222
|
+
icon: z.string().optional(),
|
|
1223
|
+
sources: z.array(z.string()).optional(),
|
|
1224
|
+
maintainers: z.array(z.object({
|
|
1225
|
+
name: z.string(),
|
|
1226
|
+
email: z.string().optional()
|
|
1227
|
+
})).optional()
|
|
1228
|
+
}).optional()
|
|
356
1229
|
});
|
|
357
1230
|
export const zOrganizationCreateInput = z.object({
|
|
1231
|
+
type: z.enum(['business', 'personal']),
|
|
358
1232
|
email: z.email(),
|
|
359
|
-
first_name: z.string(),
|
|
360
|
-
last_name: z.string(),
|
|
1233
|
+
first_name: z.string().min(1),
|
|
1234
|
+
last_name: z.string().min(1),
|
|
361
1235
|
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,}$/),
|
|
362
1236
|
password: z.string().min(8)
|
|
363
1237
|
});
|
|
1238
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1239
|
+
id: z.string()
|
|
1240
|
+
});
|
|
364
1241
|
export const zOrganization = z.object({
|
|
365
1242
|
id: z.uuid(),
|
|
366
|
-
name: z.
|
|
1243
|
+
name: z.string().min(2).max(120).optional(),
|
|
1244
|
+
type: z.enum(['business', 'personal']),
|
|
367
1245
|
date_created: z.iso.datetime(),
|
|
368
1246
|
quota: z.object({
|
|
369
1247
|
basic_clusters_max: z.int().gte(0),
|
|
370
1248
|
basic_clusters_available: z.int(),
|
|
371
1249
|
pro_clusters_max: z.int().gte(0),
|
|
372
1250
|
pro_clusters_available: z.int(),
|
|
1251
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1252
|
+
enterprise_clusters_available: z.int(),
|
|
373
1253
|
fleets_max: z.int().gte(0),
|
|
374
1254
|
cluster_tiers: z.array(z.string()).min(0),
|
|
375
1255
|
regions: z.array(z.string()).min(1),
|
|
376
1256
|
versions: z.array(z.object({
|
|
377
1257
|
id: z.string(),
|
|
378
1258
|
label: z.string()
|
|
379
|
-
})).min(1)
|
|
1259
|
+
})).min(1),
|
|
1260
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
380
1261
|
}),
|
|
381
1262
|
status: z.enum([
|
|
382
1263
|
'active',
|
|
383
1264
|
'closed',
|
|
384
1265
|
'suspended'
|
|
1266
|
+
]),
|
|
1267
|
+
verification: z.enum([
|
|
1268
|
+
'none',
|
|
1269
|
+
'submitted',
|
|
1270
|
+
'verified'
|
|
385
1271
|
])
|
|
386
1272
|
});
|
|
387
1273
|
export const zPaymentMethod = z.object({
|
|
388
|
-
id: z.
|
|
389
|
-
setup: z.boolean(),
|
|
1274
|
+
id: z.string(),
|
|
390
1275
|
type: z.enum([
|
|
391
|
-
'card'
|
|
1276
|
+
'card',
|
|
1277
|
+
'sepa_debit',
|
|
1278
|
+
'bank_transfer'
|
|
392
1279
|
]),
|
|
393
1280
|
last4: z.string(),
|
|
394
1281
|
exp_month: z.int().gte(1).lte(12),
|
|
395
|
-
exp_year: z.int()
|
|
396
|
-
brand: z.
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
1282
|
+
exp_year: z.int(),
|
|
1283
|
+
brand: z.string(),
|
|
1284
|
+
iban: z.string(),
|
|
1285
|
+
bic: z.string(),
|
|
1286
|
+
account_holder_name: z.string(),
|
|
1287
|
+
is_default: z.boolean()
|
|
1288
|
+
});
|
|
1289
|
+
export const zPlatformQuota = z.object({
|
|
1290
|
+
basic_clusters_max: z.int().gte(0),
|
|
1291
|
+
basic_clusters_available: z.int(),
|
|
1292
|
+
pro_clusters_max: z.int().gte(0),
|
|
1293
|
+
pro_clusters_available: z.int(),
|
|
1294
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1295
|
+
enterprise_clusters_available: z.int(),
|
|
1296
|
+
fleets_max: z.int().gte(0),
|
|
1297
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
1298
|
+
regions: z.array(z.string()).min(1),
|
|
1299
|
+
versions: z.array(z.object({
|
|
1300
|
+
id: z.string(),
|
|
1301
|
+
label: z.string()
|
|
1302
|
+
})).min(1),
|
|
1303
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
1304
|
+
});
|
|
1305
|
+
export const zRegistryRepository = z.object({
|
|
1306
|
+
name: z.string(),
|
|
1307
|
+
region: z.string(),
|
|
1308
|
+
uri: z.string()
|
|
1309
|
+
});
|
|
1310
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
1311
|
+
name: z.string(),
|
|
1312
|
+
region: z.string(),
|
|
1313
|
+
uri: z.string(),
|
|
1314
|
+
tags: z.array(z.object({
|
|
1315
|
+
name: z.string(),
|
|
1316
|
+
size: z.number(),
|
|
1317
|
+
mediaType: z.string().optional(),
|
|
1318
|
+
platforms: z.array(z.string()).optional()
|
|
1319
|
+
})),
|
|
1320
|
+
totalSize: z.number()
|
|
1321
|
+
});
|
|
1322
|
+
export const zRegistryTag = z.object({
|
|
1323
|
+
name: z.string(),
|
|
1324
|
+
digest: z.string(),
|
|
1325
|
+
mediaType: z.string().optional(),
|
|
1326
|
+
config: z.object({
|
|
1327
|
+
size: z.number()
|
|
1328
|
+
}).optional(),
|
|
1329
|
+
layers: z.array(z.object({
|
|
1330
|
+
digest: z.string().optional(),
|
|
1331
|
+
size: z.number()
|
|
1332
|
+
})).optional(),
|
|
1333
|
+
manifests: z.array(z.object({
|
|
1334
|
+
digest: z.string(),
|
|
1335
|
+
platform: z.object({
|
|
1336
|
+
architecture: z.string(),
|
|
1337
|
+
os: z.string(),
|
|
1338
|
+
variant: z.string().optional()
|
|
1339
|
+
}).optional(),
|
|
1340
|
+
layers: z.array(z.object({
|
|
1341
|
+
digest: z.string().optional(),
|
|
1342
|
+
size: z.number()
|
|
1343
|
+
})).optional(),
|
|
1344
|
+
size: z.number().optional()
|
|
1345
|
+
})).optional(),
|
|
1346
|
+
size: z.number(),
|
|
1347
|
+
region: z.string(),
|
|
1348
|
+
repository: z.string(),
|
|
1349
|
+
uri: z.string()
|
|
1350
|
+
});
|
|
1351
|
+
export const zRoadmapItemCreateInput = z.object({
|
|
1352
|
+
text: z.string().min(1).max(500)
|
|
1353
|
+
});
|
|
1354
|
+
export const zRoadmapItem = z.object({
|
|
1355
|
+
id: z.string(),
|
|
1356
|
+
text: z.string(),
|
|
1357
|
+
vote: z.union([
|
|
1358
|
+
z.literal(-1),
|
|
1359
|
+
z.literal(1),
|
|
1360
|
+
z.literal(2)
|
|
1361
|
+
])
|
|
1362
|
+
});
|
|
1363
|
+
export const zRoadmapVoteInput = z.object({
|
|
1364
|
+
value: z.union([
|
|
1365
|
+
z.literal(-1),
|
|
1366
|
+
z.literal(1),
|
|
1367
|
+
z.literal(2)
|
|
406
1368
|
])
|
|
407
1369
|
});
|
|
1370
|
+
export const zTicketAttachment = z.object({
|
|
1371
|
+
id: z.string(),
|
|
1372
|
+
filename: z.string(),
|
|
1373
|
+
content_type: z.string(),
|
|
1374
|
+
size: z.int()
|
|
1375
|
+
});
|
|
1376
|
+
export const zTicketCreateInput = z.object({
|
|
1377
|
+
category: z.enum([
|
|
1378
|
+
'billing',
|
|
1379
|
+
'technical',
|
|
1380
|
+
'general'
|
|
1381
|
+
]),
|
|
1382
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1383
|
+
properties: z.record(z.string(), z.unknown()).optional(),
|
|
1384
|
+
grant_support_access: z.boolean().optional()
|
|
1385
|
+
});
|
|
1386
|
+
export const zTicketMessageInput = z.object({
|
|
1387
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1388
|
+
});
|
|
1389
|
+
export const zTicketMessage = z.object({
|
|
1390
|
+
id: z.string(),
|
|
1391
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1392
|
+
body: z.string(),
|
|
1393
|
+
author_first_name: z.string().optional(),
|
|
1394
|
+
author_last_name: z.string().optional(),
|
|
1395
|
+
attachments: z.array(z.object({
|
|
1396
|
+
id: z.string(),
|
|
1397
|
+
filename: z.string(),
|
|
1398
|
+
content_type: z.string(),
|
|
1399
|
+
size: z.int()
|
|
1400
|
+
})).optional(),
|
|
1401
|
+
date_created: z.iso.datetime()
|
|
1402
|
+
});
|
|
1403
|
+
export const zTicket = z.object({
|
|
1404
|
+
id: z.string(),
|
|
1405
|
+
status: z.enum([
|
|
1406
|
+
'waiting_on_us',
|
|
1407
|
+
'waiting_on_user',
|
|
1408
|
+
'closed'
|
|
1409
|
+
]),
|
|
1410
|
+
category: z.enum([
|
|
1411
|
+
'billing',
|
|
1412
|
+
'technical',
|
|
1413
|
+
'general'
|
|
1414
|
+
]),
|
|
1415
|
+
summary: z.string(),
|
|
1416
|
+
support_access_granted: z.boolean(),
|
|
1417
|
+
support_access_granted_at: z.iso.datetime(),
|
|
1418
|
+
closed_at: z.iso.datetime().optional(),
|
|
1419
|
+
date_created: z.iso.datetime(),
|
|
1420
|
+
date_updated: z.iso.datetime(),
|
|
1421
|
+
messages: z.array(z.object({
|
|
1422
|
+
id: z.string(),
|
|
1423
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1424
|
+
body: z.string(),
|
|
1425
|
+
author_first_name: z.string().optional(),
|
|
1426
|
+
author_last_name: z.string().optional(),
|
|
1427
|
+
attachments: z.array(z.object({
|
|
1428
|
+
id: z.string(),
|
|
1429
|
+
filename: z.string(),
|
|
1430
|
+
content_type: z.string(),
|
|
1431
|
+
size: z.int()
|
|
1432
|
+
})).optional(),
|
|
1433
|
+
date_created: z.iso.datetime()
|
|
1434
|
+
})).optional()
|
|
1435
|
+
});
|
|
408
1436
|
export const zTokenCreateInput = z.object({
|
|
409
1437
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
410
|
-
role: z.enum([
|
|
411
|
-
'Administrator',
|
|
412
|
-
'User'
|
|
413
|
-
])
|
|
1438
|
+
role: z.enum(['Administrator', 'User'])
|
|
414
1439
|
});
|
|
415
1440
|
export const zToken = z.object({
|
|
416
1441
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
417
|
-
role: z.enum([
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
]),
|
|
421
|
-
id: z.optional(z.string()),
|
|
422
|
-
secret: z.optional(z.string()),
|
|
1442
|
+
role: z.enum(['Administrator', 'User']),
|
|
1443
|
+
id: z.string().optional(),
|
|
1444
|
+
secret: z.string().optional(),
|
|
423
1445
|
date_created: z.iso.datetime()
|
|
424
1446
|
});
|
|
425
1447
|
export const zTokenUpdateInput = z.object({
|
|
426
|
-
name: z.
|
|
427
|
-
role: z.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
1448
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
1449
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1450
|
+
});
|
|
1451
|
+
export const zUsageFacets = z.object({
|
|
1452
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1453
|
+
product: z.array(z.enum([
|
|
1454
|
+
'cfke_controlplane_basic',
|
|
1455
|
+
'cfke_controlplane_pro',
|
|
1456
|
+
'cfke_controlplane_enterprise',
|
|
1457
|
+
'cfke_connected_nodes_basic',
|
|
1458
|
+
'cfke_connected_nodes_pro',
|
|
1459
|
+
'cfke_connected_nodes_enterprise',
|
|
1460
|
+
'cfcr_storage'
|
|
1461
|
+
])).optional()
|
|
1462
|
+
});
|
|
1463
|
+
export const zUsageResponse = z.object({
|
|
1464
|
+
data: z.array(z.object({
|
|
1465
|
+
hour: z.string(),
|
|
1466
|
+
cluster_id: z.string(),
|
|
1467
|
+
product: z.enum([
|
|
1468
|
+
'cfke_controlplane_basic',
|
|
1469
|
+
'cfke_controlplane_pro',
|
|
1470
|
+
'cfke_controlplane_enterprise',
|
|
1471
|
+
'cfke_connected_nodes_basic',
|
|
1472
|
+
'cfke_connected_nodes_pro',
|
|
1473
|
+
'cfke_connected_nodes_enterprise',
|
|
1474
|
+
'cfcr_storage'
|
|
1475
|
+
]),
|
|
1476
|
+
value: z.number(),
|
|
1477
|
+
price: z.number(),
|
|
1478
|
+
total: z.number()
|
|
1479
|
+
})),
|
|
1480
|
+
facets: z.object({
|
|
1481
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1482
|
+
product: z.array(z.enum([
|
|
1483
|
+
'cfke_controlplane_basic',
|
|
1484
|
+
'cfke_controlplane_pro',
|
|
1485
|
+
'cfke_controlplane_enterprise',
|
|
1486
|
+
'cfke_connected_nodes_basic',
|
|
1487
|
+
'cfke_connected_nodes_pro',
|
|
1488
|
+
'cfke_connected_nodes_enterprise',
|
|
1489
|
+
'cfcr_storage'
|
|
1490
|
+
])).optional()
|
|
1491
|
+
})
|
|
431
1492
|
});
|
|
432
1493
|
export const zUsage = z.object({
|
|
433
|
-
hour: z.
|
|
434
|
-
cluster_id: z.
|
|
435
|
-
cluster_tier: z.enum([
|
|
436
|
-
'basic',
|
|
437
|
-
'pro',
|
|
438
|
-
''
|
|
439
|
-
]),
|
|
1494
|
+
hour: z.string(),
|
|
1495
|
+
cluster_id: z.string(),
|
|
440
1496
|
product: z.enum([
|
|
441
|
-
'
|
|
442
|
-
'
|
|
443
|
-
'
|
|
444
|
-
'
|
|
445
|
-
'
|
|
446
|
-
'
|
|
1497
|
+
'cfke_controlplane_basic',
|
|
1498
|
+
'cfke_controlplane_pro',
|
|
1499
|
+
'cfke_controlplane_enterprise',
|
|
1500
|
+
'cfke_connected_nodes_basic',
|
|
1501
|
+
'cfke_connected_nodes_pro',
|
|
1502
|
+
'cfke_connected_nodes_enterprise',
|
|
447
1503
|
'cfcr_storage'
|
|
448
1504
|
]),
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
z.number(),
|
|
453
|
-
z.enum([
|
|
454
|
-
''
|
|
455
|
-
])
|
|
456
|
-
]),
|
|
457
|
-
price: z.union([
|
|
458
|
-
z.number(),
|
|
459
|
-
z.enum([
|
|
460
|
-
''
|
|
461
|
-
])
|
|
462
|
-
]),
|
|
463
|
-
value: z.union([
|
|
464
|
-
z.number(),
|
|
465
|
-
z.enum([
|
|
466
|
-
''
|
|
467
|
-
])
|
|
468
|
-
]),
|
|
469
|
-
total: z.union([
|
|
470
|
-
z.number(),
|
|
471
|
-
z.enum([
|
|
472
|
-
''
|
|
473
|
-
])
|
|
474
|
-
])
|
|
1505
|
+
value: z.number(),
|
|
1506
|
+
price: z.number(),
|
|
1507
|
+
total: z.number()
|
|
475
1508
|
});
|
|
476
1509
|
export const zUserCreateInput = z.object({
|
|
477
1510
|
email: z.email(),
|
|
478
1511
|
first_name: z.string().min(1).max(50),
|
|
479
1512
|
last_name: z.string().min(1).max(50),
|
|
480
1513
|
code: z.string(),
|
|
481
|
-
password: z.string().min(8)
|
|
482
|
-
status: z.optional(z.enum([
|
|
483
|
-
'active',
|
|
484
|
-
'inactive'
|
|
485
|
-
])),
|
|
486
|
-
role: z.optional(z.enum([
|
|
487
|
-
'Administrator',
|
|
488
|
-
'User'
|
|
489
|
-
]))
|
|
1514
|
+
password: z.string().min(8)
|
|
490
1515
|
});
|
|
491
1516
|
export const zUser = z.object({
|
|
492
1517
|
email: z.email(),
|
|
493
1518
|
first_name: z.string().min(1).max(50),
|
|
494
1519
|
last_name: z.string().min(1).max(50),
|
|
495
|
-
role: z.enum([
|
|
496
|
-
|
|
497
|
-
'User'
|
|
498
|
-
]),
|
|
499
|
-
status: z.enum([
|
|
500
|
-
'active',
|
|
501
|
-
'inactive'
|
|
502
|
-
]),
|
|
1520
|
+
role: z.enum(['Administrator', 'User']),
|
|
1521
|
+
status: z.enum(['active', 'inactive']),
|
|
503
1522
|
id: z.uuid(),
|
|
504
1523
|
date_created: z.iso.datetime()
|
|
505
1524
|
});
|
|
506
1525
|
export const zUserUpdateInput = z.object({
|
|
507
|
-
email: z.
|
|
508
|
-
first_name: z.
|
|
509
|
-
last_name: z.
|
|
510
|
-
role: z.
|
|
511
|
-
|
|
512
|
-
'User'
|
|
513
|
-
])),
|
|
514
|
-
status: z.optional(z.enum([
|
|
515
|
-
'active',
|
|
516
|
-
'inactive'
|
|
517
|
-
]))
|
|
1526
|
+
email: z.email().optional(),
|
|
1527
|
+
first_name: z.string().min(1).max(50).optional(),
|
|
1528
|
+
last_name: z.string().min(1).max(50).optional(),
|
|
1529
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
1530
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
518
1531
|
});
|
|
519
|
-
export const
|
|
520
|
-
|
|
521
|
-
path: z.optional(z.never()),
|
|
522
|
-
query: z.optional(z.never())
|
|
1532
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1533
|
+
email: z.string()
|
|
523
1534
|
});
|
|
524
1535
|
/**
|
|
525
|
-
* An array of
|
|
1536
|
+
* An array of organizations the user belongs to.
|
|
526
1537
|
*/
|
|
527
|
-
export const
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
query: z.optional(z.never())
|
|
532
|
-
});
|
|
1538
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1539
|
+
realm: z.string().optional(),
|
|
1540
|
+
displayName: z.string().optional()
|
|
1541
|
+
}));
|
|
533
1542
|
/**
|
|
534
|
-
*
|
|
1543
|
+
* An array of users
|
|
535
1544
|
*/
|
|
536
|
-
export const
|
|
537
|
-
export const
|
|
538
|
-
body: z.optional(z.never()),
|
|
539
|
-
path: z.optional(z.never()),
|
|
540
|
-
query: z.optional(z.never())
|
|
541
|
-
});
|
|
1545
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1546
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
542
1547
|
/**
|
|
543
|
-
*
|
|
544
|
-
*
|
|
1548
|
+
* Successfully created. Returns created user details.
|
|
545
1549
|
*/
|
|
546
|
-
export const
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
export const zListInvoicesData = z.object({
|
|
550
|
-
body: z.optional(z.never()),
|
|
551
|
-
path: z.optional(z.never()),
|
|
552
|
-
query: z.optional(z.never())
|
|
1550
|
+
export const zCreateUserResponse = zUser;
|
|
1551
|
+
export const zDeleteUserPath = z.object({
|
|
1552
|
+
user_id: z.string()
|
|
553
1553
|
});
|
|
554
1554
|
/**
|
|
555
|
-
*
|
|
1555
|
+
* User profile information
|
|
556
1556
|
*/
|
|
557
|
-
export const
|
|
558
|
-
export const
|
|
559
|
-
|
|
560
|
-
path: z.optional(z.never()),
|
|
561
|
-
query: z.optional(z.never())
|
|
1557
|
+
export const zDeleteUserResponse = zUser;
|
|
1558
|
+
export const zGetUserPath = z.object({
|
|
1559
|
+
user_id: z.string()
|
|
562
1560
|
});
|
|
563
1561
|
/**
|
|
564
|
-
*
|
|
1562
|
+
* User profile information
|
|
565
1563
|
*/
|
|
566
|
-
export const
|
|
567
|
-
export const
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
query: z.optional(z.never())
|
|
1564
|
+
export const zGetUserResponse = zUser;
|
|
1565
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1566
|
+
export const zUpdateUserPath = z.object({
|
|
1567
|
+
user_id: z.string()
|
|
571
1568
|
});
|
|
572
1569
|
/**
|
|
573
|
-
* Successfully
|
|
1570
|
+
* Successfully created. Returns created user details.
|
|
574
1571
|
*/
|
|
575
|
-
export const
|
|
576
|
-
export const zGetCreditsData = z.object({
|
|
577
|
-
body: z.optional(z.never()),
|
|
578
|
-
path: z.optional(z.never()),
|
|
579
|
-
query: z.optional(z.never())
|
|
580
|
-
});
|
|
1572
|
+
export const zUpdateUserResponse = zUser;
|
|
581
1573
|
/**
|
|
582
|
-
*
|
|
1574
|
+
* Returns a list of access token details with masked secrets.
|
|
583
1575
|
*/
|
|
584
|
-
export const
|
|
585
|
-
export const
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
1576
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1577
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1578
|
+
/**
|
|
1579
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1580
|
+
*/
|
|
1581
|
+
export const zCreateTokenResponse = zToken;
|
|
1582
|
+
export const zDeleteTokenPath = z.object({
|
|
1583
|
+
token_id: z.string()
|
|
591
1584
|
});
|
|
592
|
-
export const
|
|
593
|
-
|
|
594
|
-
path: z.object({
|
|
595
|
-
cluster_id: z.string()
|
|
596
|
-
}),
|
|
597
|
-
query: z.optional(z.never())
|
|
1585
|
+
export const zGetTokenPath = z.object({
|
|
1586
|
+
token_id: z.string()
|
|
598
1587
|
});
|
|
599
1588
|
/**
|
|
600
|
-
*
|
|
1589
|
+
* Returns access token details with masked secret.
|
|
601
1590
|
*/
|
|
602
|
-
export const
|
|
603
|
-
export const
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
cluster_id: z.string()
|
|
607
|
-
}),
|
|
608
|
-
query: z.optional(z.never())
|
|
1591
|
+
export const zGetTokenResponse = zToken;
|
|
1592
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1593
|
+
export const zUpdateTokenPath = z.object({
|
|
1594
|
+
token_id: z.string()
|
|
609
1595
|
});
|
|
610
1596
|
/**
|
|
611
|
-
* Successfully
|
|
1597
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
612
1598
|
*/
|
|
613
|
-
export const
|
|
614
|
-
export const
|
|
615
|
-
|
|
616
|
-
path: z.object({
|
|
617
|
-
cluster_id: z.string(),
|
|
618
|
-
chart_name: z.string()
|
|
619
|
-
}),
|
|
620
|
-
query: z.optional(z.never())
|
|
1599
|
+
export const zUpdateTokenResponse = zToken;
|
|
1600
|
+
export const zRegenerateTokenPath = z.object({
|
|
1601
|
+
token_id: z.string()
|
|
621
1602
|
});
|
|
622
1603
|
/**
|
|
623
|
-
* Successfully
|
|
1604
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
624
1605
|
*/
|
|
625
|
-
export const
|
|
626
|
-
export const zGetChartData = z.object({
|
|
627
|
-
body: z.optional(z.never()),
|
|
628
|
-
path: z.object({
|
|
629
|
-
cluster_id: z.string(),
|
|
630
|
-
chart_name: z.string()
|
|
631
|
-
}),
|
|
632
|
-
query: z.optional(z.never())
|
|
633
|
-
});
|
|
1606
|
+
export const zRegenerateTokenResponse = zToken;
|
|
634
1607
|
/**
|
|
635
|
-
*
|
|
1608
|
+
* An array of tickets for the organization, newest first.
|
|
636
1609
|
*/
|
|
637
|
-
export const
|
|
638
|
-
export const
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
cluster_id: z.string(),
|
|
642
|
-
chart_name: z.string()
|
|
643
|
-
}),
|
|
644
|
-
query: z.optional(z.never())
|
|
1610
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1611
|
+
export const zCreateTicketBody = z.object({
|
|
1612
|
+
payload: z.string().optional(),
|
|
1613
|
+
attachments: z.array(z.string()).optional()
|
|
645
1614
|
});
|
|
646
1615
|
/**
|
|
647
|
-
*
|
|
1616
|
+
* Ticket created.
|
|
648
1617
|
*/
|
|
649
|
-
export const
|
|
650
|
-
export const
|
|
651
|
-
|
|
652
|
-
path: z.object({
|
|
653
|
-
cluster_id: z.string()
|
|
654
|
-
}),
|
|
655
|
-
query: z.optional(z.never())
|
|
1618
|
+
export const zCreateTicketResponse = zTicket;
|
|
1619
|
+
export const zCloseTicketPath = z.object({
|
|
1620
|
+
ticket_id: z.string()
|
|
656
1621
|
});
|
|
657
1622
|
/**
|
|
658
|
-
*
|
|
1623
|
+
* Ticket closed.
|
|
659
1624
|
*/
|
|
660
|
-
export const
|
|
661
|
-
export const
|
|
662
|
-
|
|
663
|
-
path: z.object({
|
|
664
|
-
cluster_id: z.string()
|
|
665
|
-
}),
|
|
666
|
-
query: z.optional(z.never())
|
|
1625
|
+
export const zCloseTicketResponse = zTicket;
|
|
1626
|
+
export const zGetTicketPath = z.object({
|
|
1627
|
+
ticket_id: z.string()
|
|
667
1628
|
});
|
|
668
1629
|
/**
|
|
669
|
-
*
|
|
1630
|
+
* Ticket with messages (internal notes excluded).
|
|
670
1631
|
*/
|
|
671
|
-
export const
|
|
672
|
-
export const
|
|
673
|
-
|
|
674
|
-
path: z.object({
|
|
675
|
-
cluster_id: z.string(),
|
|
676
|
-
fleet_name: z.string()
|
|
677
|
-
}),
|
|
678
|
-
query: z.optional(z.never())
|
|
1632
|
+
export const zGetTicketResponse = zTicket;
|
|
1633
|
+
export const zGrantTicketSupportAccessPath = z.object({
|
|
1634
|
+
ticket_id: z.string()
|
|
679
1635
|
});
|
|
680
1636
|
/**
|
|
681
|
-
*
|
|
1637
|
+
* Support access granted.
|
|
682
1638
|
*/
|
|
683
|
-
export const
|
|
684
|
-
export const
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
query: z.optional(z.never())
|
|
1639
|
+
export const zGrantTicketSupportAccessResponse = zTicket;
|
|
1640
|
+
export const zReplyTicketBody = z.object({
|
|
1641
|
+
payload: z.string().optional(),
|
|
1642
|
+
attachments: z.array(z.string()).optional()
|
|
1643
|
+
});
|
|
1644
|
+
export const zReplyTicketPath = z.object({
|
|
1645
|
+
ticket_id: z.string()
|
|
691
1646
|
});
|
|
692
1647
|
/**
|
|
693
|
-
*
|
|
1648
|
+
* Reply appended.
|
|
694
1649
|
*/
|
|
695
|
-
export const
|
|
696
|
-
export const
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
cluster_id: z.string(),
|
|
700
|
-
fleet_name: z.string()
|
|
701
|
-
}),
|
|
702
|
-
query: z.optional(z.never())
|
|
1650
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1651
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1652
|
+
ticket_id: z.string(),
|
|
1653
|
+
attachment_id: z.string()
|
|
703
1654
|
});
|
|
704
1655
|
/**
|
|
705
|
-
*
|
|
1656
|
+
* Attachment binary stream.
|
|
706
1657
|
*/
|
|
707
|
-
export const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
1658
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1659
|
+
/**
|
|
1660
|
+
* An array of roadmap items, newest first.
|
|
1661
|
+
*/
|
|
1662
|
+
export const zListRoadmapResponse = z.array(zRoadmapItem);
|
|
1663
|
+
export const zSuggestRoadmapBody = zRoadmapItemCreateInput;
|
|
1664
|
+
/**
|
|
1665
|
+
* Suggestion submitted for review.
|
|
1666
|
+
*/
|
|
1667
|
+
export const zSuggestRoadmapResponse = zRoadmapItem;
|
|
1668
|
+
export const zUnvoteRoadmapPath = z.object({
|
|
1669
|
+
item_id: z.string()
|
|
719
1670
|
});
|
|
720
1671
|
/**
|
|
721
|
-
*
|
|
1672
|
+
* Vote removed. Returns the item without a vote.
|
|
722
1673
|
*/
|
|
723
|
-
export const
|
|
724
|
-
export const
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
query: z.optional(z.never())
|
|
1674
|
+
export const zUnvoteRoadmapResponse = zRoadmapItem;
|
|
1675
|
+
export const zVoteRoadmapBody = zRoadmapVoteInput;
|
|
1676
|
+
export const zVoteRoadmapPath = z.object({
|
|
1677
|
+
item_id: z.string()
|
|
728
1678
|
});
|
|
729
1679
|
/**
|
|
730
|
-
*
|
|
1680
|
+
* Vote saved. Returns the item with your vote.
|
|
731
1681
|
*/
|
|
732
|
-
export const
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
1682
|
+
export const zVoteRoadmapResponse = zRoadmapItem;
|
|
1683
|
+
/**
|
|
1684
|
+
* List of repositories
|
|
1685
|
+
*/
|
|
1686
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1687
|
+
export const zListTagsPath = z.object({
|
|
1688
|
+
region: z.string(),
|
|
1689
|
+
repository: z.string()
|
|
739
1690
|
});
|
|
740
1691
|
/**
|
|
741
|
-
*
|
|
1692
|
+
* Repository with tags
|
|
742
1693
|
*/
|
|
743
|
-
export const
|
|
744
|
-
export const
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
1694
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1695
|
+
export const zDeleteTagPath = z.object({
|
|
1696
|
+
region: z.string(),
|
|
1697
|
+
repository: z.string(),
|
|
1698
|
+
tag: z.string()
|
|
1699
|
+
});
|
|
1700
|
+
export const zGetTagPath = z.object({
|
|
1701
|
+
region: z.string(),
|
|
1702
|
+
repository: z.string(),
|
|
1703
|
+
tag: z.string()
|
|
750
1704
|
});
|
|
751
1705
|
/**
|
|
752
|
-
*
|
|
1706
|
+
* Tag details
|
|
753
1707
|
*/
|
|
754
|
-
export const
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
1708
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1709
|
+
/**
|
|
1710
|
+
* Returns a single object containing organization details.
|
|
1711
|
+
*/
|
|
1712
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1713
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1714
|
+
/**
|
|
1715
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1716
|
+
*
|
|
1717
|
+
*/
|
|
1718
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1719
|
+
/**
|
|
1720
|
+
* JSON-RPC 2.0 request payload
|
|
1721
|
+
*/
|
|
1722
|
+
export const zPostMcpBody = z.object({
|
|
1723
|
+
jsonrpc: z.string().optional(),
|
|
1724
|
+
method: z.string().optional(),
|
|
1725
|
+
id: z.union([
|
|
1726
|
+
z.string(),
|
|
1727
|
+
z.number()
|
|
1728
|
+
]).optional(),
|
|
1729
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
761
1730
|
});
|
|
762
1731
|
/**
|
|
763
|
-
*
|
|
1732
|
+
* JSON-RPC 2.0 success or error response
|
|
764
1733
|
*/
|
|
765
|
-
export const
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
1734
|
+
export const zPostMcpResponse = z.object({
|
|
1735
|
+
jsonrpc: z.string().optional(),
|
|
1736
|
+
id: z.union([
|
|
1737
|
+
z.string(),
|
|
1738
|
+
z.number()
|
|
1739
|
+
]).optional(),
|
|
1740
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1741
|
+
error: z.object({
|
|
1742
|
+
code: z.int().optional(),
|
|
1743
|
+
message: z.string().optional()
|
|
1744
|
+
}).optional()
|
|
772
1745
|
});
|
|
773
1746
|
/**
|
|
774
|
-
* An
|
|
1747
|
+
* An array of chart listings in the marketplace.
|
|
775
1748
|
*/
|
|
776
|
-
export const
|
|
777
|
-
export const
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
query: z.optional(z.never())
|
|
1749
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1750
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1751
|
+
chart_name: z.string(),
|
|
1752
|
+
version_channel: z.string()
|
|
781
1753
|
});
|
|
1754
|
+
/**
|
|
1755
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1756
|
+
*/
|
|
1757
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
782
1758
|
/**
|
|
783
1759
|
* An array of invites
|
|
784
1760
|
*/
|
|
785
1761
|
export const zListInvitesResponse = z.array(zInvite);
|
|
786
|
-
export const
|
|
787
|
-
body: z.object({
|
|
788
|
-
email: z.optional(z.string())
|
|
789
|
-
}),
|
|
790
|
-
path: z.optional(z.never()),
|
|
791
|
-
query: z.optional(z.never())
|
|
792
|
-
});
|
|
1762
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
793
1763
|
/**
|
|
794
1764
|
* Successfully created. Returns created invite details.
|
|
795
1765
|
*/
|
|
796
1766
|
export const zCreateInviteResponse = zInvite;
|
|
797
|
-
export const
|
|
798
|
-
|
|
799
|
-
path: z.object({
|
|
800
|
-
code: z.string()
|
|
801
|
-
}),
|
|
802
|
-
query: z.optional(z.never())
|
|
1767
|
+
export const zGetInvitePath = z.object({
|
|
1768
|
+
code: z.string()
|
|
803
1769
|
});
|
|
804
1770
|
/**
|
|
805
|
-
* Returns
|
|
1771
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
806
1772
|
*/
|
|
807
|
-
export const zGetInviteResponse =
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
query: z.optional(z.never())
|
|
1773
|
+
export const zGetInviteResponse = z.object({
|
|
1774
|
+
email: z.email().optional(),
|
|
1775
|
+
organization_id: z.string().optional()
|
|
1776
|
+
});
|
|
1777
|
+
export const zDeleteInvitePath = z.object({
|
|
1778
|
+
email: z.email()
|
|
814
1779
|
});
|
|
815
|
-
export const
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
1780
|
+
export const zQueryClusterPath = z.object({
|
|
1781
|
+
cluster_id: z.string()
|
|
1782
|
+
});
|
|
1783
|
+
export const zListFleetsPath = z.object({
|
|
1784
|
+
cluster_id: z.string()
|
|
819
1785
|
});
|
|
820
1786
|
/**
|
|
821
|
-
* An array of
|
|
1787
|
+
* An array of fleets
|
|
822
1788
|
*/
|
|
823
|
-
export const
|
|
824
|
-
export const
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
listing_id: z.string()
|
|
828
|
-
}),
|
|
829
|
-
query: z.optional(z.never())
|
|
1789
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1790
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1791
|
+
export const zCreateFleetPath = z.object({
|
|
1792
|
+
cluster_id: z.string()
|
|
830
1793
|
});
|
|
831
1794
|
/**
|
|
832
|
-
*
|
|
1795
|
+
* Successfully created. Returns created Fleet ID.
|
|
833
1796
|
*/
|
|
834
|
-
export const
|
|
835
|
-
export const
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
query: z.optional(z.never())
|
|
1797
|
+
export const zCreateFleetResponse = z.string();
|
|
1798
|
+
export const zDeleteFleetPath = z.object({
|
|
1799
|
+
cluster_id: z.string(),
|
|
1800
|
+
fleet_name: z.string()
|
|
839
1801
|
});
|
|
840
1802
|
/**
|
|
841
|
-
*
|
|
1803
|
+
* Successfully deleted.
|
|
842
1804
|
*/
|
|
843
|
-
export const
|
|
844
|
-
export const
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
query: z.optional(z.never())
|
|
1805
|
+
export const zDeleteFleetResponse = z.string();
|
|
1806
|
+
export const zGetFleetPath = z.object({
|
|
1807
|
+
cluster_id: z.string(),
|
|
1808
|
+
fleet_name: z.string()
|
|
848
1809
|
});
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
1810
|
+
/**
|
|
1811
|
+
* Returns a single object containing fleet details.
|
|
1812
|
+
*/
|
|
1813
|
+
export const zGetFleetResponse = zFleet;
|
|
1814
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1815
|
+
export const zUpdateFleetPath = z.object({
|
|
1816
|
+
cluster_id: z.string(),
|
|
1817
|
+
fleet_name: z.string()
|
|
853
1818
|
});
|
|
854
1819
|
/**
|
|
855
|
-
*
|
|
1820
|
+
* Successfully updated.
|
|
856
1821
|
*/
|
|
857
|
-
export const
|
|
858
|
-
export const
|
|
859
|
-
|
|
860
|
-
path: z.optional(z.never()),
|
|
861
|
-
query: z.optional(z.never())
|
|
1822
|
+
export const zUpdateFleetResponse = z.string();
|
|
1823
|
+
export const zListChartsPath = z.object({
|
|
1824
|
+
cluster_id: z.string()
|
|
862
1825
|
});
|
|
863
1826
|
/**
|
|
864
|
-
*
|
|
1827
|
+
* An array of charts
|
|
865
1828
|
*/
|
|
866
|
-
export const
|
|
867
|
-
export const
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
token_id: z.string()
|
|
871
|
-
}),
|
|
872
|
-
query: z.optional(z.never())
|
|
1829
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1830
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1831
|
+
export const zCreateChartPath = z.object({
|
|
1832
|
+
cluster_id: z.string()
|
|
873
1833
|
});
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
1834
|
+
/**
|
|
1835
|
+
* Successfully created. Returns created Chart ID.
|
|
1836
|
+
*/
|
|
1837
|
+
export const zCreateChartResponse = z.string();
|
|
1838
|
+
export const zDeleteChartPath = z.object({
|
|
1839
|
+
cluster_id: z.string(),
|
|
1840
|
+
chart_name: z.string()
|
|
880
1841
|
});
|
|
881
1842
|
/**
|
|
882
|
-
*
|
|
1843
|
+
* Successfully deleted.
|
|
883
1844
|
*/
|
|
884
|
-
export const
|
|
885
|
-
export const
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
token_id: z.string()
|
|
889
|
-
}),
|
|
890
|
-
query: z.optional(z.never())
|
|
1845
|
+
export const zDeleteChartResponse = z.string();
|
|
1846
|
+
export const zGetChartPath = z.object({
|
|
1847
|
+
cluster_id: z.string(),
|
|
1848
|
+
chart_name: z.string()
|
|
891
1849
|
});
|
|
892
1850
|
/**
|
|
893
|
-
*
|
|
1851
|
+
* Returns a single object containing chart details.
|
|
894
1852
|
*/
|
|
895
|
-
export const
|
|
896
|
-
export const
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
}),
|
|
901
|
-
query: z.optional(z.never())
|
|
1853
|
+
export const zGetChartResponse = zChart;
|
|
1854
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1855
|
+
export const zUpdateChartPath = z.object({
|
|
1856
|
+
cluster_id: z.string(),
|
|
1857
|
+
chart_name: z.string()
|
|
902
1858
|
});
|
|
903
1859
|
/**
|
|
904
|
-
* Successfully updated.
|
|
1860
|
+
* Successfully updated.
|
|
905
1861
|
*/
|
|
906
|
-
export const
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
1862
|
+
export const zUpdateChartResponse = z.string();
|
|
1863
|
+
/**
|
|
1864
|
+
* An array of clusters
|
|
1865
|
+
*/
|
|
1866
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1867
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1868
|
+
/**
|
|
1869
|
+
* Successfully created. Returns created Cluster ID.
|
|
1870
|
+
*/
|
|
1871
|
+
export const zCreateClusterResponse = z.string();
|
|
1872
|
+
export const zDeleteClusterPath = z.object({
|
|
1873
|
+
cluster_id: z.string()
|
|
913
1874
|
});
|
|
914
1875
|
/**
|
|
915
|
-
*
|
|
1876
|
+
* Successfully deleted. The cluster has been torn down.
|
|
916
1877
|
*/
|
|
917
|
-
export const
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
}));
|
|
921
|
-
export const zListUsersData = z.object({
|
|
922
|
-
body: z.optional(z.never()),
|
|
923
|
-
path: z.optional(z.never()),
|
|
924
|
-
query: z.optional(z.never())
|
|
1878
|
+
export const zDeleteClusterResponse = z.string();
|
|
1879
|
+
export const zGetClusterPath = z.object({
|
|
1880
|
+
cluster_id: z.string()
|
|
925
1881
|
});
|
|
926
1882
|
/**
|
|
927
|
-
*
|
|
1883
|
+
* Returns a single object containing cluster details.
|
|
928
1884
|
*/
|
|
929
|
-
export const
|
|
930
|
-
export const
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
query: z.optional(z.never())
|
|
1885
|
+
export const zGetClusterResponse = zCluster;
|
|
1886
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1887
|
+
export const zUpdateClusterPath = z.object({
|
|
1888
|
+
cluster_id: z.string()
|
|
934
1889
|
});
|
|
935
1890
|
/**
|
|
936
|
-
* Successfully
|
|
1891
|
+
* Successfully updated. Returns updated cluster details.
|
|
937
1892
|
*/
|
|
938
|
-
export const
|
|
939
|
-
export const
|
|
940
|
-
|
|
941
|
-
path: z.object({
|
|
942
|
-
user_id: z.string()
|
|
943
|
-
}),
|
|
944
|
-
query: z.optional(z.never())
|
|
1893
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1894
|
+
export const zGetJoinInformationPath = z.object({
|
|
1895
|
+
cluster_id: z.string()
|
|
945
1896
|
});
|
|
946
1897
|
/**
|
|
947
|
-
*
|
|
1898
|
+
* An object of cluster join information
|
|
948
1899
|
*/
|
|
949
|
-
export const
|
|
950
|
-
export const
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1900
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1901
|
+
export const zGetUsageQuery = z.object({
|
|
1902
|
+
granularity: z.enum([
|
|
1903
|
+
'hourly',
|
|
1904
|
+
'daily',
|
|
1905
|
+
'monthly'
|
|
1906
|
+
]).optional().default('daily')
|
|
956
1907
|
});
|
|
957
1908
|
/**
|
|
958
|
-
*
|
|
1909
|
+
* Usage data with facets for filtering
|
|
959
1910
|
*/
|
|
960
|
-
export const
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1911
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1912
|
+
/**
|
|
1913
|
+
* 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.
|
|
1914
|
+
*
|
|
1915
|
+
*/
|
|
1916
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1917
|
+
id: z.string().optional()
|
|
967
1918
|
});
|
|
968
1919
|
/**
|
|
969
|
-
*
|
|
1920
|
+
* An array of payment methods.
|
|
970
1921
|
*/
|
|
971
|
-
export const
|
|
1922
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1923
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1924
|
+
paymentMethodId: z.string()
|
|
1925
|
+
});
|
|
1926
|
+
/**
|
|
1927
|
+
* Default payment method updated.
|
|
1928
|
+
*/
|
|
1929
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1930
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1931
|
+
paymentMethodId: z.string()
|
|
1932
|
+
});
|
|
1933
|
+
/**
|
|
1934
|
+
* Payment method deleted.
|
|
1935
|
+
*/
|
|
1936
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1937
|
+
/**
|
|
1938
|
+
* An array of usage records.
|
|
1939
|
+
*/
|
|
1940
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1941
|
+
/**
|
|
1942
|
+
* The outcome of the attempt.
|
|
1943
|
+
*/
|
|
1944
|
+
export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
|
|
1945
|
+
/**
|
|
1946
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1947
|
+
*/
|
|
1948
|
+
export const zGetContactResponse = zBillingContact;
|
|
1949
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1950
|
+
/**
|
|
1951
|
+
* Successfully updated. Returns updated organization details.
|
|
1952
|
+
*/
|
|
1953
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1954
|
+
/**
|
|
1955
|
+
* An array of the applied promotional credits records.
|
|
1956
|
+
*/
|
|
1957
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1958
|
+
export const zRedeemCreditsBody = z.object({
|
|
1959
|
+
code: z.string().optional()
|
|
1960
|
+
});
|
|
972
1961
|
//# sourceMappingURL=zod.gen.js.map
|