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