@cloudfleet/sdk 0.0.1-a104fac → 0.0.1-a3b700e
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 +426 -325
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +457 -332
- package/dist/@tanstack/react-query.gen.js.map +1 -1
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +1 -4
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +1 -1
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +3 -3
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/core/params.gen.js +4 -4
- package/dist/core/params.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +993 -107
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1905 -174
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +240 -197
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +348 -274
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1493 -756
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3336 -1202
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1239 -292
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -11
package/dist/zod.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
|
+
type: z.enum(['business', 'personal']),
|
|
4
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(),
|
|
5
6
|
address1: z.string().optional(),
|
|
6
7
|
address2: z.string().optional(),
|
|
@@ -166,22 +167,7 @@ export const zChart = z.object({
|
|
|
166
167
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
167
168
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
168
169
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
169
|
-
status: z.
|
|
170
|
-
'InstallSucceeded',
|
|
171
|
-
'InstallFailed',
|
|
172
|
-
'UpgradeSucceeded',
|
|
173
|
-
'UpgradeFailed',
|
|
174
|
-
'TestSucceeded',
|
|
175
|
-
'TestFailed',
|
|
176
|
-
'RollbackSucceeded',
|
|
177
|
-
'RollbackFailed',
|
|
178
|
-
'UninstallSucceeded',
|
|
179
|
-
'UninstallFailed',
|
|
180
|
-
'ArtifactFailed',
|
|
181
|
-
'DependencyNotReady',
|
|
182
|
-
'Progressing',
|
|
183
|
-
'SourceNotReady'
|
|
184
|
-
]),
|
|
170
|
+
status: z.string(),
|
|
185
171
|
version_current: z.string(),
|
|
186
172
|
created_at: z.string(),
|
|
187
173
|
updated_at: z.string(),
|
|
@@ -191,26 +177,51 @@ export const zChartUpdateInput = z.object({
|
|
|
191
177
|
values: z.string(),
|
|
192
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-]+)*))?$/)
|
|
193
179
|
});
|
|
180
|
+
/**
|
|
181
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
182
|
+
*/
|
|
194
183
|
export const zClusterCreateInput = z.object({
|
|
195
184
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
196
|
-
tier: z.enum(['basic', 'pro']),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
]).optional().default('
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
185
|
+
tier: z.enum(['basic', 'pro']).optional().default('basic'),
|
|
186
|
+
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'),
|
|
187
|
+
release_channel: z.enum([
|
|
188
|
+
'rapid',
|
|
189
|
+
'stable',
|
|
190
|
+
'extended'
|
|
191
|
+
]).optional().default('rapid'),
|
|
192
|
+
features: z.object({
|
|
193
|
+
gpu_sharing_strategy: z.enum([
|
|
194
|
+
'none',
|
|
195
|
+
'mps',
|
|
196
|
+
'time_slicing'
|
|
197
|
+
]).optional().default('none'),
|
|
198
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
199
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
200
|
+
}).optional().default({
|
|
201
|
+
gpu_sharing_strategy: 'none',
|
|
202
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
203
|
+
cilium_socket_lb_host_namespace_only: false
|
|
204
|
+
}),
|
|
205
|
+
region: z.string(),
|
|
206
|
+
networking: z.object({
|
|
207
|
+
pod_cidr: z.string().optional().default('10.244.0.0/16'),
|
|
208
|
+
service_cidr: z.string().optional().default('10.96.0.0/12'),
|
|
209
|
+
dual_stack: z.boolean().optional(),
|
|
210
|
+
pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
|
|
211
|
+
service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
|
|
212
|
+
}).optional().default({
|
|
213
|
+
pod_cidr: '10.244.0.0/16',
|
|
214
|
+
service_cidr: '10.96.0.0/12',
|
|
215
|
+
dual_stack: false,
|
|
216
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
217
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
218
|
+
})
|
|
209
219
|
});
|
|
210
220
|
export const zClusterJoinInformation = z.object({
|
|
211
221
|
certificate_authority: z.string(),
|
|
212
222
|
endpoint: z.url(),
|
|
213
223
|
cluster_dns: z.string(),
|
|
224
|
+
pod_cidr: z.string(),
|
|
214
225
|
auth_key: z.string(),
|
|
215
226
|
bootstrap_token: z.string(),
|
|
216
227
|
versions: z.object({
|
|
@@ -225,100 +236,877 @@ export const zClusterJoinInformation = z.object({
|
|
|
225
236
|
gcp_workload_identity_provider: z.string()
|
|
226
237
|
})
|
|
227
238
|
});
|
|
239
|
+
/**
|
|
240
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
241
|
+
*/
|
|
228
242
|
export const zCluster = z.object({
|
|
229
243
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
-
tier: z.enum(['basic', 'pro']),
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
]).
|
|
244
|
+
tier: z.enum(['basic', 'pro']).default('basic'),
|
|
245
|
+
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'),
|
|
246
|
+
release_channel: z.enum([
|
|
247
|
+
'rapid',
|
|
248
|
+
'stable',
|
|
249
|
+
'extended'
|
|
250
|
+
]).default('rapid'),
|
|
251
|
+
features: z.object({
|
|
252
|
+
gpu_sharing_strategy: z.enum([
|
|
253
|
+
'none',
|
|
254
|
+
'mps',
|
|
255
|
+
'time_slicing'
|
|
256
|
+
]).default('none'),
|
|
257
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
258
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
259
|
+
}).default({
|
|
260
|
+
gpu_sharing_strategy: 'none',
|
|
261
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
262
|
+
cilium_socket_lb_host_namespace_only: false
|
|
263
|
+
}),
|
|
264
|
+
region: z.string(),
|
|
265
|
+
networking: z.object({
|
|
266
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
267
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
268
|
+
dual_stack: z.boolean(),
|
|
269
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
270
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
271
|
+
}).default({
|
|
272
|
+
pod_cidr: '10.244.0.0/16',
|
|
273
|
+
service_cidr: '10.96.0.0/12',
|
|
274
|
+
dual_stack: false,
|
|
275
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
276
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
277
|
+
}),
|
|
237
278
|
id: z.uuid(),
|
|
238
279
|
status: z.enum([
|
|
239
|
-
'active',
|
|
240
|
-
'disabled',
|
|
241
|
-
'deleted',
|
|
242
280
|
'creating',
|
|
243
281
|
'deployed',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
282
|
+
'updating',
|
|
283
|
+
'disabled'
|
|
246
284
|
]),
|
|
247
285
|
endpoint: z.union([
|
|
248
286
|
z.url(),
|
|
249
287
|
z.enum([''])
|
|
250
288
|
]).optional(),
|
|
289
|
+
endpoint_public: z.union([
|
|
290
|
+
z.url(),
|
|
291
|
+
z.enum([''])
|
|
292
|
+
]).optional(),
|
|
251
293
|
certificate_ca: z.string().optional(),
|
|
252
294
|
version_current: z.string().optional(),
|
|
253
295
|
created_at: z.string().optional(),
|
|
254
296
|
updated_at: z.string().optional(),
|
|
255
|
-
ready: z.boolean()
|
|
256
|
-
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
297
|
+
ready: z.boolean()
|
|
257
298
|
});
|
|
299
|
+
/**
|
|
300
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
301
|
+
*/
|
|
258
302
|
export const zClusterUpdateInput = z.object({
|
|
259
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
260
|
-
tier: z.enum(['basic', 'pro']),
|
|
261
|
-
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
303
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
304
|
+
tier: z.enum(['basic', 'pro']).optional().default('basic'),
|
|
305
|
+
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'),
|
|
306
|
+
release_channel: z.enum([
|
|
307
|
+
'rapid',
|
|
308
|
+
'stable',
|
|
309
|
+
'extended'
|
|
310
|
+
]).optional().default('rapid'),
|
|
311
|
+
features: z.object({
|
|
312
|
+
gpu_sharing_strategy: z.enum([
|
|
313
|
+
'none',
|
|
314
|
+
'mps',
|
|
315
|
+
'time_slicing'
|
|
316
|
+
]).optional().default('none'),
|
|
317
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
318
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
319
|
+
}).optional().default({
|
|
320
|
+
gpu_sharing_strategy: 'none',
|
|
321
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
322
|
+
cilium_socket_lb_host_namespace_only: false
|
|
323
|
+
})
|
|
262
324
|
});
|
|
325
|
+
/**
|
|
326
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
327
|
+
*/
|
|
263
328
|
export const zFleetCreateInput = z.object({
|
|
264
329
|
limits: z.object({
|
|
265
|
-
cpu: z.
|
|
330
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
266
331
|
}).optional(),
|
|
267
332
|
gcp: z.object({
|
|
268
|
-
enabled: z.boolean()
|
|
269
|
-
project: z.string()
|
|
333
|
+
enabled: z.boolean(),
|
|
334
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
270
335
|
}).optional(),
|
|
271
336
|
hetzner: z.object({
|
|
272
|
-
enabled: z.boolean()
|
|
273
|
-
apiKey: z.string()
|
|
337
|
+
enabled: z.boolean(),
|
|
338
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
274
339
|
}).optional(),
|
|
275
340
|
aws: z.object({
|
|
276
|
-
enabled: z.boolean()
|
|
277
|
-
controllerRoleArn: z.string()
|
|
341
|
+
enabled: z.boolean(),
|
|
342
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
278
343
|
}).optional(),
|
|
344
|
+
constraints: z.object({
|
|
345
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
346
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
347
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
348
|
+
'a1',
|
|
349
|
+
'a2',
|
|
350
|
+
'a3',
|
|
351
|
+
'a4',
|
|
352
|
+
'c1',
|
|
353
|
+
'c2',
|
|
354
|
+
'c2d',
|
|
355
|
+
'c3',
|
|
356
|
+
'c3d',
|
|
357
|
+
'c4',
|
|
358
|
+
'c4a',
|
|
359
|
+
'c4d',
|
|
360
|
+
'c5',
|
|
361
|
+
'c5a',
|
|
362
|
+
'c5ad',
|
|
363
|
+
'c5d',
|
|
364
|
+
'c5n',
|
|
365
|
+
'c6a',
|
|
366
|
+
'c6g',
|
|
367
|
+
'c6gd',
|
|
368
|
+
'c6gn',
|
|
369
|
+
'c6i',
|
|
370
|
+
'c6id',
|
|
371
|
+
'c6in',
|
|
372
|
+
'c7a',
|
|
373
|
+
'c7g',
|
|
374
|
+
'c7gd',
|
|
375
|
+
'c7gn',
|
|
376
|
+
'c7i',
|
|
377
|
+
'c7i-flex',
|
|
378
|
+
'c8g',
|
|
379
|
+
'c8gd',
|
|
380
|
+
'cax',
|
|
381
|
+
'ccx',
|
|
382
|
+
'cpx',
|
|
383
|
+
'cx',
|
|
384
|
+
'd2',
|
|
385
|
+
'd3',
|
|
386
|
+
'd3en',
|
|
387
|
+
'dl1',
|
|
388
|
+
'dl2q',
|
|
389
|
+
'e2',
|
|
390
|
+
'f1',
|
|
391
|
+
'f2',
|
|
392
|
+
'g1',
|
|
393
|
+
'g2',
|
|
394
|
+
'g4ad',
|
|
395
|
+
'g4dn',
|
|
396
|
+
'g5',
|
|
397
|
+
'g5g',
|
|
398
|
+
'g6',
|
|
399
|
+
'g6e',
|
|
400
|
+
'gr6',
|
|
401
|
+
'h1',
|
|
402
|
+
'h3',
|
|
403
|
+
'hpc6a',
|
|
404
|
+
'hpc6id',
|
|
405
|
+
'hpc7a',
|
|
406
|
+
'hpc7g',
|
|
407
|
+
'i2',
|
|
408
|
+
'i3',
|
|
409
|
+
'i3en',
|
|
410
|
+
'i4g',
|
|
411
|
+
'i4i',
|
|
412
|
+
'i7i',
|
|
413
|
+
'i7ie',
|
|
414
|
+
'i8g',
|
|
415
|
+
'im4gn',
|
|
416
|
+
'inf1',
|
|
417
|
+
'inf2',
|
|
418
|
+
'is4gen',
|
|
419
|
+
'm1',
|
|
420
|
+
'm2',
|
|
421
|
+
'm3',
|
|
422
|
+
'm4',
|
|
423
|
+
'm5',
|
|
424
|
+
'm5a',
|
|
425
|
+
'm5ad',
|
|
426
|
+
'm5d',
|
|
427
|
+
'm5dn',
|
|
428
|
+
'm5n',
|
|
429
|
+
'm5zn',
|
|
430
|
+
'm6a',
|
|
431
|
+
'm6g',
|
|
432
|
+
'm6gd',
|
|
433
|
+
'm6i',
|
|
434
|
+
'm6id',
|
|
435
|
+
'm6idn',
|
|
436
|
+
'm6in',
|
|
437
|
+
'm7a',
|
|
438
|
+
'm7g',
|
|
439
|
+
'm7gd',
|
|
440
|
+
'm7i',
|
|
441
|
+
'm7i-flex',
|
|
442
|
+
'm8g',
|
|
443
|
+
'm8gd',
|
|
444
|
+
'n1',
|
|
445
|
+
'n2',
|
|
446
|
+
'n2d',
|
|
447
|
+
'n4',
|
|
448
|
+
'p3',
|
|
449
|
+
'p3dn',
|
|
450
|
+
'p4d',
|
|
451
|
+
'p4de',
|
|
452
|
+
'p5',
|
|
453
|
+
'p5e',
|
|
454
|
+
'p5en',
|
|
455
|
+
'p6-b200',
|
|
456
|
+
'r3',
|
|
457
|
+
'r4',
|
|
458
|
+
'r5',
|
|
459
|
+
'r5a',
|
|
460
|
+
'r5ad',
|
|
461
|
+
'r5b',
|
|
462
|
+
'r5d',
|
|
463
|
+
'r5dn',
|
|
464
|
+
'r5n',
|
|
465
|
+
'r6a',
|
|
466
|
+
'r6g',
|
|
467
|
+
'r6gd',
|
|
468
|
+
'r6i',
|
|
469
|
+
'r6id',
|
|
470
|
+
'r6idn',
|
|
471
|
+
'r6in',
|
|
472
|
+
'r7a',
|
|
473
|
+
'r7g',
|
|
474
|
+
'r7gd',
|
|
475
|
+
'r7i',
|
|
476
|
+
'r7iz',
|
|
477
|
+
'r8g',
|
|
478
|
+
'r8gd',
|
|
479
|
+
't2',
|
|
480
|
+
't2a',
|
|
481
|
+
't2d',
|
|
482
|
+
't3',
|
|
483
|
+
't3a',
|
|
484
|
+
't4g',
|
|
485
|
+
'trn1',
|
|
486
|
+
'trn1n',
|
|
487
|
+
'u-3tb1',
|
|
488
|
+
'u-6tb1',
|
|
489
|
+
'u7i-12tb',
|
|
490
|
+
'u7i-6tb',
|
|
491
|
+
'u7i-8tb',
|
|
492
|
+
'u7in-16tb',
|
|
493
|
+
'u7in-24tb',
|
|
494
|
+
'u7in-32tb',
|
|
495
|
+
'vt1',
|
|
496
|
+
'x1',
|
|
497
|
+
'x1e',
|
|
498
|
+
'x2gd',
|
|
499
|
+
'x2idn',
|
|
500
|
+
'x2iedn',
|
|
501
|
+
'x2iezn',
|
|
502
|
+
'x4',
|
|
503
|
+
'x8g',
|
|
504
|
+
'z1d',
|
|
505
|
+
'z3'
|
|
506
|
+
])).optional().default([]),
|
|
507
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
508
|
+
'africa-south1',
|
|
509
|
+
'ap-northeast-1',
|
|
510
|
+
'ap-northeast-2',
|
|
511
|
+
'ap-northeast-3',
|
|
512
|
+
'ap-south-1',
|
|
513
|
+
'ap-southeast-1',
|
|
514
|
+
'ap-southeast-2',
|
|
515
|
+
'ash',
|
|
516
|
+
'asia-east1',
|
|
517
|
+
'asia-east2',
|
|
518
|
+
'asia-northeast1',
|
|
519
|
+
'asia-northeast2',
|
|
520
|
+
'asia-northeast3',
|
|
521
|
+
'asia-south1',
|
|
522
|
+
'asia-south2',
|
|
523
|
+
'asia-southeast1',
|
|
524
|
+
'asia-southeast2',
|
|
525
|
+
'australia-southeast1',
|
|
526
|
+
'australia-southeast2',
|
|
527
|
+
'ca-central-1',
|
|
528
|
+
'eu-central-1',
|
|
529
|
+
'eu-central-2',
|
|
530
|
+
'eu-north-1',
|
|
531
|
+
'eu-west-1',
|
|
532
|
+
'eu-west-2',
|
|
533
|
+
'eu-west-3',
|
|
534
|
+
'europe-central2',
|
|
535
|
+
'europe-north1',
|
|
536
|
+
'europe-southwest1',
|
|
537
|
+
'europe-west1',
|
|
538
|
+
'europe-west10',
|
|
539
|
+
'europe-west12',
|
|
540
|
+
'europe-west2',
|
|
541
|
+
'europe-west3',
|
|
542
|
+
'europe-west4',
|
|
543
|
+
'europe-west6',
|
|
544
|
+
'europe-west8',
|
|
545
|
+
'europe-west9',
|
|
546
|
+
'fsn1',
|
|
547
|
+
'hel1',
|
|
548
|
+
'hil',
|
|
549
|
+
'me-central1',
|
|
550
|
+
'me-central2',
|
|
551
|
+
'me-west1',
|
|
552
|
+
'nbg1',
|
|
553
|
+
'northamerica-northeast1',
|
|
554
|
+
'northamerica-northeast2',
|
|
555
|
+
'sa-east-1',
|
|
556
|
+
'sin',
|
|
557
|
+
'southamerica-east1',
|
|
558
|
+
'southamerica-west1',
|
|
559
|
+
'us-central1',
|
|
560
|
+
'us-east-1',
|
|
561
|
+
'us-east-2',
|
|
562
|
+
'us-east1',
|
|
563
|
+
'us-east4',
|
|
564
|
+
'us-east5',
|
|
565
|
+
'us-south1',
|
|
566
|
+
'us-west-1',
|
|
567
|
+
'us-west-2',
|
|
568
|
+
'us-west1',
|
|
569
|
+
'us-west2',
|
|
570
|
+
'us-west3',
|
|
571
|
+
'us-west4'
|
|
572
|
+
])).optional().default([])
|
|
573
|
+
}).optional().default({
|
|
574
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
575
|
+
'kubernetes.io/arch': ['amd64'],
|
|
576
|
+
'cfke.io/instance-family': [],
|
|
577
|
+
'topology.kubernetes.io/region': []
|
|
578
|
+
}),
|
|
579
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
279
580
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
280
581
|
});
|
|
582
|
+
/**
|
|
583
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
584
|
+
*/
|
|
281
585
|
export const zFleet = z.object({
|
|
282
586
|
limits: z.object({
|
|
283
|
-
cpu: z.
|
|
587
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
284
588
|
}).optional(),
|
|
285
589
|
gcp: z.object({
|
|
286
|
-
enabled: z.boolean()
|
|
287
|
-
project: z.string()
|
|
590
|
+
enabled: z.boolean(),
|
|
591
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
288
592
|
}).optional(),
|
|
289
593
|
hetzner: z.object({
|
|
290
|
-
enabled: z.boolean()
|
|
291
|
-
apiKey: z.string()
|
|
594
|
+
enabled: z.boolean(),
|
|
595
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
292
596
|
}).optional(),
|
|
293
597
|
aws: z.object({
|
|
294
|
-
enabled: z.boolean()
|
|
295
|
-
controllerRoleArn: z.string()
|
|
598
|
+
enabled: z.boolean(),
|
|
599
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
296
600
|
}).optional(),
|
|
297
|
-
|
|
601
|
+
constraints: z.object({
|
|
602
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
603
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
604
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
605
|
+
'a1',
|
|
606
|
+
'a2',
|
|
607
|
+
'a3',
|
|
608
|
+
'a4',
|
|
609
|
+
'c1',
|
|
610
|
+
'c2',
|
|
611
|
+
'c2d',
|
|
612
|
+
'c3',
|
|
613
|
+
'c3d',
|
|
614
|
+
'c4',
|
|
615
|
+
'c4a',
|
|
616
|
+
'c4d',
|
|
617
|
+
'c5',
|
|
618
|
+
'c5a',
|
|
619
|
+
'c5ad',
|
|
620
|
+
'c5d',
|
|
621
|
+
'c5n',
|
|
622
|
+
'c6a',
|
|
623
|
+
'c6g',
|
|
624
|
+
'c6gd',
|
|
625
|
+
'c6gn',
|
|
626
|
+
'c6i',
|
|
627
|
+
'c6id',
|
|
628
|
+
'c6in',
|
|
629
|
+
'c7a',
|
|
630
|
+
'c7g',
|
|
631
|
+
'c7gd',
|
|
632
|
+
'c7gn',
|
|
633
|
+
'c7i',
|
|
634
|
+
'c7i-flex',
|
|
635
|
+
'c8g',
|
|
636
|
+
'c8gd',
|
|
637
|
+
'cax',
|
|
638
|
+
'ccx',
|
|
639
|
+
'cpx',
|
|
640
|
+
'cx',
|
|
641
|
+
'd2',
|
|
642
|
+
'd3',
|
|
643
|
+
'd3en',
|
|
644
|
+
'dl1',
|
|
645
|
+
'dl2q',
|
|
646
|
+
'e2',
|
|
647
|
+
'f1',
|
|
648
|
+
'f2',
|
|
649
|
+
'g1',
|
|
650
|
+
'g2',
|
|
651
|
+
'g4ad',
|
|
652
|
+
'g4dn',
|
|
653
|
+
'g5',
|
|
654
|
+
'g5g',
|
|
655
|
+
'g6',
|
|
656
|
+
'g6e',
|
|
657
|
+
'gr6',
|
|
658
|
+
'h1',
|
|
659
|
+
'h3',
|
|
660
|
+
'hpc6a',
|
|
661
|
+
'hpc6id',
|
|
662
|
+
'hpc7a',
|
|
663
|
+
'hpc7g',
|
|
664
|
+
'i2',
|
|
665
|
+
'i3',
|
|
666
|
+
'i3en',
|
|
667
|
+
'i4g',
|
|
668
|
+
'i4i',
|
|
669
|
+
'i7i',
|
|
670
|
+
'i7ie',
|
|
671
|
+
'i8g',
|
|
672
|
+
'im4gn',
|
|
673
|
+
'inf1',
|
|
674
|
+
'inf2',
|
|
675
|
+
'is4gen',
|
|
676
|
+
'm1',
|
|
677
|
+
'm2',
|
|
678
|
+
'm3',
|
|
679
|
+
'm4',
|
|
680
|
+
'm5',
|
|
681
|
+
'm5a',
|
|
682
|
+
'm5ad',
|
|
683
|
+
'm5d',
|
|
684
|
+
'm5dn',
|
|
685
|
+
'm5n',
|
|
686
|
+
'm5zn',
|
|
687
|
+
'm6a',
|
|
688
|
+
'm6g',
|
|
689
|
+
'm6gd',
|
|
690
|
+
'm6i',
|
|
691
|
+
'm6id',
|
|
692
|
+
'm6idn',
|
|
693
|
+
'm6in',
|
|
694
|
+
'm7a',
|
|
695
|
+
'm7g',
|
|
696
|
+
'm7gd',
|
|
697
|
+
'm7i',
|
|
698
|
+
'm7i-flex',
|
|
699
|
+
'm8g',
|
|
700
|
+
'm8gd',
|
|
701
|
+
'n1',
|
|
702
|
+
'n2',
|
|
703
|
+
'n2d',
|
|
704
|
+
'n4',
|
|
705
|
+
'p3',
|
|
706
|
+
'p3dn',
|
|
707
|
+
'p4d',
|
|
708
|
+
'p4de',
|
|
709
|
+
'p5',
|
|
710
|
+
'p5e',
|
|
711
|
+
'p5en',
|
|
712
|
+
'p6-b200',
|
|
713
|
+
'r3',
|
|
714
|
+
'r4',
|
|
715
|
+
'r5',
|
|
716
|
+
'r5a',
|
|
717
|
+
'r5ad',
|
|
718
|
+
'r5b',
|
|
719
|
+
'r5d',
|
|
720
|
+
'r5dn',
|
|
721
|
+
'r5n',
|
|
722
|
+
'r6a',
|
|
723
|
+
'r6g',
|
|
724
|
+
'r6gd',
|
|
725
|
+
'r6i',
|
|
726
|
+
'r6id',
|
|
727
|
+
'r6idn',
|
|
728
|
+
'r6in',
|
|
729
|
+
'r7a',
|
|
730
|
+
'r7g',
|
|
731
|
+
'r7gd',
|
|
732
|
+
'r7i',
|
|
733
|
+
'r7iz',
|
|
734
|
+
'r8g',
|
|
735
|
+
'r8gd',
|
|
736
|
+
't2',
|
|
737
|
+
't2a',
|
|
738
|
+
't2d',
|
|
739
|
+
't3',
|
|
740
|
+
't3a',
|
|
741
|
+
't4g',
|
|
742
|
+
'trn1',
|
|
743
|
+
'trn1n',
|
|
744
|
+
'u-3tb1',
|
|
745
|
+
'u-6tb1',
|
|
746
|
+
'u7i-12tb',
|
|
747
|
+
'u7i-6tb',
|
|
748
|
+
'u7i-8tb',
|
|
749
|
+
'u7in-16tb',
|
|
750
|
+
'u7in-24tb',
|
|
751
|
+
'u7in-32tb',
|
|
752
|
+
'vt1',
|
|
753
|
+
'x1',
|
|
754
|
+
'x1e',
|
|
755
|
+
'x2gd',
|
|
756
|
+
'x2idn',
|
|
757
|
+
'x2iedn',
|
|
758
|
+
'x2iezn',
|
|
759
|
+
'x4',
|
|
760
|
+
'x8g',
|
|
761
|
+
'z1d',
|
|
762
|
+
'z3'
|
|
763
|
+
])).optional().default([]),
|
|
764
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
765
|
+
'africa-south1',
|
|
766
|
+
'ap-northeast-1',
|
|
767
|
+
'ap-northeast-2',
|
|
768
|
+
'ap-northeast-3',
|
|
769
|
+
'ap-south-1',
|
|
770
|
+
'ap-southeast-1',
|
|
771
|
+
'ap-southeast-2',
|
|
772
|
+
'ash',
|
|
773
|
+
'asia-east1',
|
|
774
|
+
'asia-east2',
|
|
775
|
+
'asia-northeast1',
|
|
776
|
+
'asia-northeast2',
|
|
777
|
+
'asia-northeast3',
|
|
778
|
+
'asia-south1',
|
|
779
|
+
'asia-south2',
|
|
780
|
+
'asia-southeast1',
|
|
781
|
+
'asia-southeast2',
|
|
782
|
+
'australia-southeast1',
|
|
783
|
+
'australia-southeast2',
|
|
784
|
+
'ca-central-1',
|
|
785
|
+
'eu-central-1',
|
|
786
|
+
'eu-central-2',
|
|
787
|
+
'eu-north-1',
|
|
788
|
+
'eu-west-1',
|
|
789
|
+
'eu-west-2',
|
|
790
|
+
'eu-west-3',
|
|
791
|
+
'europe-central2',
|
|
792
|
+
'europe-north1',
|
|
793
|
+
'europe-southwest1',
|
|
794
|
+
'europe-west1',
|
|
795
|
+
'europe-west10',
|
|
796
|
+
'europe-west12',
|
|
797
|
+
'europe-west2',
|
|
798
|
+
'europe-west3',
|
|
799
|
+
'europe-west4',
|
|
800
|
+
'europe-west6',
|
|
801
|
+
'europe-west8',
|
|
802
|
+
'europe-west9',
|
|
803
|
+
'fsn1',
|
|
804
|
+
'hel1',
|
|
805
|
+
'hil',
|
|
806
|
+
'me-central1',
|
|
807
|
+
'me-central2',
|
|
808
|
+
'me-west1',
|
|
809
|
+
'nbg1',
|
|
810
|
+
'northamerica-northeast1',
|
|
811
|
+
'northamerica-northeast2',
|
|
812
|
+
'sa-east-1',
|
|
813
|
+
'sin',
|
|
814
|
+
'southamerica-east1',
|
|
815
|
+
'southamerica-west1',
|
|
816
|
+
'us-central1',
|
|
817
|
+
'us-east-1',
|
|
818
|
+
'us-east-2',
|
|
819
|
+
'us-east1',
|
|
820
|
+
'us-east4',
|
|
821
|
+
'us-east5',
|
|
822
|
+
'us-south1',
|
|
823
|
+
'us-west-1',
|
|
824
|
+
'us-west-2',
|
|
825
|
+
'us-west1',
|
|
826
|
+
'us-west2',
|
|
827
|
+
'us-west3',
|
|
828
|
+
'us-west4'
|
|
829
|
+
])).optional().default([])
|
|
830
|
+
}).default({
|
|
831
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
832
|
+
'kubernetes.io/arch': ['amd64'],
|
|
833
|
+
'cfke.io/instance-family': [],
|
|
834
|
+
'topology.kubernetes.io/region': []
|
|
835
|
+
}),
|
|
836
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
837
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
838
|
+
ready: z.boolean(),
|
|
839
|
+
status_message: z.string().optional(),
|
|
840
|
+
created_at: z.string(),
|
|
841
|
+
updated_at: z.string()
|
|
298
842
|
});
|
|
843
|
+
/**
|
|
844
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
845
|
+
*/
|
|
299
846
|
export const zFleetUpdateInput = z.object({
|
|
300
847
|
limits: z.object({
|
|
301
|
-
cpu: z.
|
|
848
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
302
849
|
}).optional(),
|
|
303
850
|
gcp: z.object({
|
|
304
|
-
enabled: z.boolean()
|
|
305
|
-
project: z.string()
|
|
851
|
+
enabled: z.boolean(),
|
|
852
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
306
853
|
}).optional(),
|
|
307
854
|
hetzner: z.object({
|
|
308
|
-
enabled: z.boolean()
|
|
309
|
-
apiKey: z.string()
|
|
855
|
+
enabled: z.boolean(),
|
|
856
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
310
857
|
}).optional(),
|
|
311
858
|
aws: z.object({
|
|
312
|
-
enabled: z.boolean()
|
|
313
|
-
controllerRoleArn: z.string()
|
|
314
|
-
}).optional()
|
|
859
|
+
enabled: z.boolean(),
|
|
860
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
861
|
+
}).optional(),
|
|
862
|
+
constraints: z.object({
|
|
863
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
864
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
865
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
866
|
+
'a1',
|
|
867
|
+
'a2',
|
|
868
|
+
'a3',
|
|
869
|
+
'a4',
|
|
870
|
+
'c1',
|
|
871
|
+
'c2',
|
|
872
|
+
'c2d',
|
|
873
|
+
'c3',
|
|
874
|
+
'c3d',
|
|
875
|
+
'c4',
|
|
876
|
+
'c4a',
|
|
877
|
+
'c4d',
|
|
878
|
+
'c5',
|
|
879
|
+
'c5a',
|
|
880
|
+
'c5ad',
|
|
881
|
+
'c5d',
|
|
882
|
+
'c5n',
|
|
883
|
+
'c6a',
|
|
884
|
+
'c6g',
|
|
885
|
+
'c6gd',
|
|
886
|
+
'c6gn',
|
|
887
|
+
'c6i',
|
|
888
|
+
'c6id',
|
|
889
|
+
'c6in',
|
|
890
|
+
'c7a',
|
|
891
|
+
'c7g',
|
|
892
|
+
'c7gd',
|
|
893
|
+
'c7gn',
|
|
894
|
+
'c7i',
|
|
895
|
+
'c7i-flex',
|
|
896
|
+
'c8g',
|
|
897
|
+
'c8gd',
|
|
898
|
+
'cax',
|
|
899
|
+
'ccx',
|
|
900
|
+
'cpx',
|
|
901
|
+
'cx',
|
|
902
|
+
'd2',
|
|
903
|
+
'd3',
|
|
904
|
+
'd3en',
|
|
905
|
+
'dl1',
|
|
906
|
+
'dl2q',
|
|
907
|
+
'e2',
|
|
908
|
+
'f1',
|
|
909
|
+
'f2',
|
|
910
|
+
'g1',
|
|
911
|
+
'g2',
|
|
912
|
+
'g4ad',
|
|
913
|
+
'g4dn',
|
|
914
|
+
'g5',
|
|
915
|
+
'g5g',
|
|
916
|
+
'g6',
|
|
917
|
+
'g6e',
|
|
918
|
+
'gr6',
|
|
919
|
+
'h1',
|
|
920
|
+
'h3',
|
|
921
|
+
'hpc6a',
|
|
922
|
+
'hpc6id',
|
|
923
|
+
'hpc7a',
|
|
924
|
+
'hpc7g',
|
|
925
|
+
'i2',
|
|
926
|
+
'i3',
|
|
927
|
+
'i3en',
|
|
928
|
+
'i4g',
|
|
929
|
+
'i4i',
|
|
930
|
+
'i7i',
|
|
931
|
+
'i7ie',
|
|
932
|
+
'i8g',
|
|
933
|
+
'im4gn',
|
|
934
|
+
'inf1',
|
|
935
|
+
'inf2',
|
|
936
|
+
'is4gen',
|
|
937
|
+
'm1',
|
|
938
|
+
'm2',
|
|
939
|
+
'm3',
|
|
940
|
+
'm4',
|
|
941
|
+
'm5',
|
|
942
|
+
'm5a',
|
|
943
|
+
'm5ad',
|
|
944
|
+
'm5d',
|
|
945
|
+
'm5dn',
|
|
946
|
+
'm5n',
|
|
947
|
+
'm5zn',
|
|
948
|
+
'm6a',
|
|
949
|
+
'm6g',
|
|
950
|
+
'm6gd',
|
|
951
|
+
'm6i',
|
|
952
|
+
'm6id',
|
|
953
|
+
'm6idn',
|
|
954
|
+
'm6in',
|
|
955
|
+
'm7a',
|
|
956
|
+
'm7g',
|
|
957
|
+
'm7gd',
|
|
958
|
+
'm7i',
|
|
959
|
+
'm7i-flex',
|
|
960
|
+
'm8g',
|
|
961
|
+
'm8gd',
|
|
962
|
+
'n1',
|
|
963
|
+
'n2',
|
|
964
|
+
'n2d',
|
|
965
|
+
'n4',
|
|
966
|
+
'p3',
|
|
967
|
+
'p3dn',
|
|
968
|
+
'p4d',
|
|
969
|
+
'p4de',
|
|
970
|
+
'p5',
|
|
971
|
+
'p5e',
|
|
972
|
+
'p5en',
|
|
973
|
+
'p6-b200',
|
|
974
|
+
'r3',
|
|
975
|
+
'r4',
|
|
976
|
+
'r5',
|
|
977
|
+
'r5a',
|
|
978
|
+
'r5ad',
|
|
979
|
+
'r5b',
|
|
980
|
+
'r5d',
|
|
981
|
+
'r5dn',
|
|
982
|
+
'r5n',
|
|
983
|
+
'r6a',
|
|
984
|
+
'r6g',
|
|
985
|
+
'r6gd',
|
|
986
|
+
'r6i',
|
|
987
|
+
'r6id',
|
|
988
|
+
'r6idn',
|
|
989
|
+
'r6in',
|
|
990
|
+
'r7a',
|
|
991
|
+
'r7g',
|
|
992
|
+
'r7gd',
|
|
993
|
+
'r7i',
|
|
994
|
+
'r7iz',
|
|
995
|
+
'r8g',
|
|
996
|
+
'r8gd',
|
|
997
|
+
't2',
|
|
998
|
+
't2a',
|
|
999
|
+
't2d',
|
|
1000
|
+
't3',
|
|
1001
|
+
't3a',
|
|
1002
|
+
't4g',
|
|
1003
|
+
'trn1',
|
|
1004
|
+
'trn1n',
|
|
1005
|
+
'u-3tb1',
|
|
1006
|
+
'u-6tb1',
|
|
1007
|
+
'u7i-12tb',
|
|
1008
|
+
'u7i-6tb',
|
|
1009
|
+
'u7i-8tb',
|
|
1010
|
+
'u7in-16tb',
|
|
1011
|
+
'u7in-24tb',
|
|
1012
|
+
'u7in-32tb',
|
|
1013
|
+
'vt1',
|
|
1014
|
+
'x1',
|
|
1015
|
+
'x1e',
|
|
1016
|
+
'x2gd',
|
|
1017
|
+
'x2idn',
|
|
1018
|
+
'x2iedn',
|
|
1019
|
+
'x2iezn',
|
|
1020
|
+
'x4',
|
|
1021
|
+
'x8g',
|
|
1022
|
+
'z1d',
|
|
1023
|
+
'z3'
|
|
1024
|
+
])).optional().default([]),
|
|
1025
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
1026
|
+
'africa-south1',
|
|
1027
|
+
'ap-northeast-1',
|
|
1028
|
+
'ap-northeast-2',
|
|
1029
|
+
'ap-northeast-3',
|
|
1030
|
+
'ap-south-1',
|
|
1031
|
+
'ap-southeast-1',
|
|
1032
|
+
'ap-southeast-2',
|
|
1033
|
+
'ash',
|
|
1034
|
+
'asia-east1',
|
|
1035
|
+
'asia-east2',
|
|
1036
|
+
'asia-northeast1',
|
|
1037
|
+
'asia-northeast2',
|
|
1038
|
+
'asia-northeast3',
|
|
1039
|
+
'asia-south1',
|
|
1040
|
+
'asia-south2',
|
|
1041
|
+
'asia-southeast1',
|
|
1042
|
+
'asia-southeast2',
|
|
1043
|
+
'australia-southeast1',
|
|
1044
|
+
'australia-southeast2',
|
|
1045
|
+
'ca-central-1',
|
|
1046
|
+
'eu-central-1',
|
|
1047
|
+
'eu-central-2',
|
|
1048
|
+
'eu-north-1',
|
|
1049
|
+
'eu-west-1',
|
|
1050
|
+
'eu-west-2',
|
|
1051
|
+
'eu-west-3',
|
|
1052
|
+
'europe-central2',
|
|
1053
|
+
'europe-north1',
|
|
1054
|
+
'europe-southwest1',
|
|
1055
|
+
'europe-west1',
|
|
1056
|
+
'europe-west10',
|
|
1057
|
+
'europe-west12',
|
|
1058
|
+
'europe-west2',
|
|
1059
|
+
'europe-west3',
|
|
1060
|
+
'europe-west4',
|
|
1061
|
+
'europe-west6',
|
|
1062
|
+
'europe-west8',
|
|
1063
|
+
'europe-west9',
|
|
1064
|
+
'fsn1',
|
|
1065
|
+
'hel1',
|
|
1066
|
+
'hil',
|
|
1067
|
+
'me-central1',
|
|
1068
|
+
'me-central2',
|
|
1069
|
+
'me-west1',
|
|
1070
|
+
'nbg1',
|
|
1071
|
+
'northamerica-northeast1',
|
|
1072
|
+
'northamerica-northeast2',
|
|
1073
|
+
'sa-east-1',
|
|
1074
|
+
'sin',
|
|
1075
|
+
'southamerica-east1',
|
|
1076
|
+
'southamerica-west1',
|
|
1077
|
+
'us-central1',
|
|
1078
|
+
'us-east-1',
|
|
1079
|
+
'us-east-2',
|
|
1080
|
+
'us-east1',
|
|
1081
|
+
'us-east4',
|
|
1082
|
+
'us-east5',
|
|
1083
|
+
'us-south1',
|
|
1084
|
+
'us-west-1',
|
|
1085
|
+
'us-west-2',
|
|
1086
|
+
'us-west1',
|
|
1087
|
+
'us-west2',
|
|
1088
|
+
'us-west3',
|
|
1089
|
+
'us-west4'
|
|
1090
|
+
])).optional().default([])
|
|
1091
|
+
}).optional().default({
|
|
1092
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1093
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1094
|
+
'cfke.io/instance-family': [],
|
|
1095
|
+
'topology.kubernetes.io/region': []
|
|
1096
|
+
}),
|
|
1097
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
|
|
1098
|
+
});
|
|
1099
|
+
export const zInviteCreateInput = z.object({
|
|
1100
|
+
email: z.email(),
|
|
1101
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
315
1102
|
});
|
|
316
1103
|
export const zInvite = z.object({
|
|
317
1104
|
id: z.string().optional(),
|
|
318
1105
|
organization_id: z.uuid().optional(),
|
|
319
1106
|
date_created: z.iso.datetime(),
|
|
320
1107
|
email: z.email().optional(),
|
|
321
|
-
code: z.string().optional()
|
|
1108
|
+
code: z.string().optional(),
|
|
1109
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
322
1110
|
});
|
|
323
1111
|
export const zInvoice = z.object({
|
|
324
1112
|
id: z.string().optional(),
|
|
@@ -358,15 +1146,20 @@ export const zMarketplaceListing = z.object({
|
|
|
358
1146
|
}).optional()
|
|
359
1147
|
});
|
|
360
1148
|
export const zOrganizationCreateInput = z.object({
|
|
1149
|
+
type: z.enum(['business', 'personal']),
|
|
361
1150
|
email: z.email(),
|
|
362
|
-
first_name: z.string(),
|
|
363
|
-
last_name: z.string(),
|
|
1151
|
+
first_name: z.string().min(1),
|
|
1152
|
+
last_name: z.string().min(1),
|
|
364
1153
|
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,}$/),
|
|
365
1154
|
password: z.string().min(8)
|
|
366
1155
|
});
|
|
1156
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1157
|
+
id: z.string()
|
|
1158
|
+
});
|
|
367
1159
|
export const zOrganization = z.object({
|
|
368
1160
|
id: z.uuid(),
|
|
369
1161
|
name: z.string().min(2).max(120).optional(),
|
|
1162
|
+
type: z.enum(['business', 'personal']),
|
|
370
1163
|
date_created: z.iso.datetime(),
|
|
371
1164
|
quota: z.object({
|
|
372
1165
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -386,26 +1179,28 @@ export const zOrganization = z.object({
|
|
|
386
1179
|
'active',
|
|
387
1180
|
'closed',
|
|
388
1181
|
'suspended'
|
|
1182
|
+
]),
|
|
1183
|
+
verification: z.enum([
|
|
1184
|
+
'none',
|
|
1185
|
+
'submitted',
|
|
1186
|
+
'verified'
|
|
389
1187
|
])
|
|
390
1188
|
});
|
|
391
1189
|
export const zPaymentMethod = z.object({
|
|
392
|
-
id: z.
|
|
393
|
-
|
|
394
|
-
|
|
1190
|
+
id: z.string(),
|
|
1191
|
+
type: z.enum([
|
|
1192
|
+
'card',
|
|
1193
|
+
'sepa_debit',
|
|
1194
|
+
'bank_transfer'
|
|
1195
|
+
]),
|
|
395
1196
|
last4: z.string(),
|
|
396
1197
|
exp_month: z.int().gte(1).lte(12),
|
|
397
|
-
exp_year: z.int()
|
|
398
|
-
brand: z.
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
'jcb',
|
|
404
|
-
'mastercard',
|
|
405
|
-
'unionpay',
|
|
406
|
-
'visa',
|
|
407
|
-
'unknown'
|
|
408
|
-
])
|
|
1198
|
+
exp_year: z.int(),
|
|
1199
|
+
brand: z.string(),
|
|
1200
|
+
iban: z.string(),
|
|
1201
|
+
bic: z.string(),
|
|
1202
|
+
account_holder_name: z.string(),
|
|
1203
|
+
is_default: z.boolean()
|
|
409
1204
|
});
|
|
410
1205
|
export const zPlatformQuota = z.object({
|
|
411
1206
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -467,6 +1262,102 @@ export const zRegistryTag = z.object({
|
|
|
467
1262
|
repository: z.string(),
|
|
468
1263
|
uri: z.string()
|
|
469
1264
|
});
|
|
1265
|
+
export const zTicketAttachment = z.object({
|
|
1266
|
+
id: z.string(),
|
|
1267
|
+
filename: z.string(),
|
|
1268
|
+
content_type: z.string(),
|
|
1269
|
+
size: z.int()
|
|
1270
|
+
});
|
|
1271
|
+
export const zTicketCreateInput = z.object({
|
|
1272
|
+
category: z.enum([
|
|
1273
|
+
'billing',
|
|
1274
|
+
'technical',
|
|
1275
|
+
'general'
|
|
1276
|
+
]),
|
|
1277
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1278
|
+
properties: z.record(z.string(), z.unknown()).optional()
|
|
1279
|
+
});
|
|
1280
|
+
export const zTicketListResponse = z.object({
|
|
1281
|
+
items: z.array(z.object({
|
|
1282
|
+
id: z.string(),
|
|
1283
|
+
status: z.enum([
|
|
1284
|
+
'waiting_on_us',
|
|
1285
|
+
'waiting_on_user',
|
|
1286
|
+
'closed'
|
|
1287
|
+
]),
|
|
1288
|
+
category: z.enum([
|
|
1289
|
+
'billing',
|
|
1290
|
+
'technical',
|
|
1291
|
+
'general'
|
|
1292
|
+
]),
|
|
1293
|
+
summary: z.string(),
|
|
1294
|
+
closed_at: z.iso.datetime().optional(),
|
|
1295
|
+
date_created: z.iso.datetime(),
|
|
1296
|
+
date_updated: z.iso.datetime(),
|
|
1297
|
+
messages: z.array(z.object({
|
|
1298
|
+
id: z.string(),
|
|
1299
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1300
|
+
body: z.string(),
|
|
1301
|
+
author_first_name: z.string().optional(),
|
|
1302
|
+
author_last_name: z.string().optional(),
|
|
1303
|
+
attachments: z.array(z.object({
|
|
1304
|
+
id: z.string(),
|
|
1305
|
+
filename: z.string(),
|
|
1306
|
+
content_type: z.string(),
|
|
1307
|
+
size: z.int()
|
|
1308
|
+
})).optional(),
|
|
1309
|
+
date_created: z.iso.datetime()
|
|
1310
|
+
})).optional()
|
|
1311
|
+
}))
|
|
1312
|
+
});
|
|
1313
|
+
export const zTicketMessageInput = z.object({
|
|
1314
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1315
|
+
});
|
|
1316
|
+
export const zTicketMessage = z.object({
|
|
1317
|
+
id: z.string(),
|
|
1318
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1319
|
+
body: z.string(),
|
|
1320
|
+
author_first_name: z.string().optional(),
|
|
1321
|
+
author_last_name: z.string().optional(),
|
|
1322
|
+
attachments: z.array(z.object({
|
|
1323
|
+
id: z.string(),
|
|
1324
|
+
filename: z.string(),
|
|
1325
|
+
content_type: z.string(),
|
|
1326
|
+
size: z.int()
|
|
1327
|
+
})).optional(),
|
|
1328
|
+
date_created: z.iso.datetime()
|
|
1329
|
+
});
|
|
1330
|
+
export const zTicket = z.object({
|
|
1331
|
+
id: z.string(),
|
|
1332
|
+
status: z.enum([
|
|
1333
|
+
'waiting_on_us',
|
|
1334
|
+
'waiting_on_user',
|
|
1335
|
+
'closed'
|
|
1336
|
+
]),
|
|
1337
|
+
category: z.enum([
|
|
1338
|
+
'billing',
|
|
1339
|
+
'technical',
|
|
1340
|
+
'general'
|
|
1341
|
+
]),
|
|
1342
|
+
summary: z.string(),
|
|
1343
|
+
closed_at: z.iso.datetime().optional(),
|
|
1344
|
+
date_created: z.iso.datetime(),
|
|
1345
|
+
date_updated: z.iso.datetime(),
|
|
1346
|
+
messages: z.array(z.object({
|
|
1347
|
+
id: z.string(),
|
|
1348
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1349
|
+
body: z.string(),
|
|
1350
|
+
author_first_name: z.string().optional(),
|
|
1351
|
+
author_last_name: z.string().optional(),
|
|
1352
|
+
attachments: z.array(z.object({
|
|
1353
|
+
id: z.string(),
|
|
1354
|
+
filename: z.string(),
|
|
1355
|
+
content_type: z.string(),
|
|
1356
|
+
size: z.int()
|
|
1357
|
+
})).optional(),
|
|
1358
|
+
date_created: z.iso.datetime()
|
|
1359
|
+
})).optional()
|
|
1360
|
+
});
|
|
470
1361
|
export const zTokenCreateInput = z.object({
|
|
471
1362
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
472
1363
|
role: z.enum(['Administrator', 'User'])
|
|
@@ -513,9 +1404,7 @@ export const zUserCreateInput = z.object({
|
|
|
513
1404
|
first_name: z.string().min(1).max(50),
|
|
514
1405
|
last_name: z.string().min(1).max(50),
|
|
515
1406
|
code: z.string(),
|
|
516
|
-
password: z.string().min(8)
|
|
517
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
518
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1407
|
+
password: z.string().min(8)
|
|
519
1408
|
});
|
|
520
1409
|
export const zUser = z.object({
|
|
521
1410
|
email: z.email(),
|
|
@@ -533,88 +1422,226 @@ export const zUserUpdateInput = z.object({
|
|
|
533
1422
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
534
1423
|
status: z.enum(['active', 'inactive']).optional()
|
|
535
1424
|
});
|
|
536
|
-
export const
|
|
537
|
-
|
|
538
|
-
'hourly',
|
|
539
|
-
'daily',
|
|
540
|
-
'monthly'
|
|
541
|
-
]).optional().default('daily')
|
|
1425
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1426
|
+
email: z.string()
|
|
542
1427
|
});
|
|
543
1428
|
/**
|
|
544
|
-
*
|
|
1429
|
+
* An array of organizations the user belongs to.
|
|
545
1430
|
*/
|
|
546
|
-
export const
|
|
1431
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1432
|
+
realm: z.string().optional(),
|
|
1433
|
+
displayName: z.string().optional()
|
|
1434
|
+
}));
|
|
547
1435
|
/**
|
|
548
|
-
*
|
|
1436
|
+
* An array of users
|
|
549
1437
|
*/
|
|
550
|
-
export const
|
|
1438
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1439
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
551
1440
|
/**
|
|
552
|
-
*
|
|
553
|
-
*
|
|
1441
|
+
* Successfully created. Returns created user details.
|
|
554
1442
|
*/
|
|
555
|
-
export const
|
|
556
|
-
|
|
1443
|
+
export const zCreateUserResponse = zUser;
|
|
1444
|
+
export const zDeleteUserPath = z.object({
|
|
1445
|
+
user_id: z.string()
|
|
557
1446
|
});
|
|
558
1447
|
/**
|
|
559
|
-
*
|
|
1448
|
+
* User profile information
|
|
560
1449
|
*/
|
|
561
|
-
export const
|
|
1450
|
+
export const zDeleteUserResponse = zUser;
|
|
1451
|
+
export const zGetUserPath = z.object({
|
|
1452
|
+
user_id: z.string()
|
|
1453
|
+
});
|
|
562
1454
|
/**
|
|
563
|
-
*
|
|
1455
|
+
* User profile information
|
|
564
1456
|
*/
|
|
565
|
-
export const
|
|
566
|
-
export const
|
|
1457
|
+
export const zGetUserResponse = zUser;
|
|
1458
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1459
|
+
export const zUpdateUserPath = z.object({
|
|
1460
|
+
user_id: z.string()
|
|
1461
|
+
});
|
|
567
1462
|
/**
|
|
568
|
-
* Successfully
|
|
1463
|
+
* Successfully created. Returns created user details.
|
|
569
1464
|
*/
|
|
570
|
-
export const
|
|
1465
|
+
export const zUpdateUserResponse = zUser;
|
|
571
1466
|
/**
|
|
572
|
-
*
|
|
1467
|
+
* Returns a list of access token details with masked secrets.
|
|
573
1468
|
*/
|
|
574
|
-
export const
|
|
575
|
-
export const
|
|
576
|
-
|
|
1469
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1470
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1471
|
+
/**
|
|
1472
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1473
|
+
*/
|
|
1474
|
+
export const zCreateTokenResponse = zToken;
|
|
1475
|
+
export const zDeleteTokenPath = z.object({
|
|
1476
|
+
token_id: z.string()
|
|
577
1477
|
});
|
|
578
|
-
export const
|
|
579
|
-
|
|
1478
|
+
export const zGetTokenPath = z.object({
|
|
1479
|
+
token_id: z.string()
|
|
580
1480
|
});
|
|
581
1481
|
/**
|
|
582
|
-
*
|
|
1482
|
+
* Returns access token details with masked secret.
|
|
583
1483
|
*/
|
|
584
|
-
export const
|
|
585
|
-
export const
|
|
586
|
-
export const
|
|
587
|
-
|
|
1484
|
+
export const zGetTokenResponse = zToken;
|
|
1485
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1486
|
+
export const zUpdateTokenPath = z.object({
|
|
1487
|
+
token_id: z.string()
|
|
588
1488
|
});
|
|
589
1489
|
/**
|
|
590
|
-
* Successfully
|
|
1490
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
591
1491
|
*/
|
|
592
|
-
export const
|
|
593
|
-
export const
|
|
594
|
-
|
|
595
|
-
chart_name: z.string()
|
|
1492
|
+
export const zUpdateTokenResponse = zToken;
|
|
1493
|
+
export const zRegenerateTokenPath = z.object({
|
|
1494
|
+
token_id: z.string()
|
|
596
1495
|
});
|
|
597
1496
|
/**
|
|
598
|
-
* Successfully
|
|
1497
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
599
1498
|
*/
|
|
600
|
-
export const
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
1499
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1500
|
+
/**
|
|
1501
|
+
* Tickets for the organization.
|
|
1502
|
+
*/
|
|
1503
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
1504
|
+
export const zCreateTicketBody = z.object({
|
|
1505
|
+
payload: z.string().optional(),
|
|
1506
|
+
attachments: z.array(z.string()).optional()
|
|
604
1507
|
});
|
|
605
1508
|
/**
|
|
606
|
-
*
|
|
1509
|
+
* Ticket created.
|
|
607
1510
|
*/
|
|
608
|
-
export const
|
|
609
|
-
export const
|
|
610
|
-
|
|
611
|
-
cluster_id: z.string(),
|
|
612
|
-
chart_name: z.string()
|
|
1511
|
+
export const zCreateTicketResponse = zTicket;
|
|
1512
|
+
export const zCloseTicketPath = z.object({
|
|
1513
|
+
ticket_id: z.string()
|
|
613
1514
|
});
|
|
614
1515
|
/**
|
|
615
|
-
*
|
|
1516
|
+
* Ticket closed.
|
|
616
1517
|
*/
|
|
617
|
-
export const
|
|
1518
|
+
export const zCloseTicketResponse = zTicket;
|
|
1519
|
+
export const zGetTicketPath = z.object({
|
|
1520
|
+
ticket_id: z.string()
|
|
1521
|
+
});
|
|
1522
|
+
/**
|
|
1523
|
+
* Ticket with messages (internal notes excluded).
|
|
1524
|
+
*/
|
|
1525
|
+
export const zGetTicketResponse = zTicket;
|
|
1526
|
+
export const zReplyTicketBody = z.object({
|
|
1527
|
+
payload: z.string().optional(),
|
|
1528
|
+
attachments: z.array(z.string()).optional()
|
|
1529
|
+
});
|
|
1530
|
+
export const zReplyTicketPath = z.object({
|
|
1531
|
+
ticket_id: z.string()
|
|
1532
|
+
});
|
|
1533
|
+
/**
|
|
1534
|
+
* Reply appended.
|
|
1535
|
+
*/
|
|
1536
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1537
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1538
|
+
ticket_id: z.string(),
|
|
1539
|
+
attachment_id: z.string()
|
|
1540
|
+
});
|
|
1541
|
+
/**
|
|
1542
|
+
* Attachment binary stream.
|
|
1543
|
+
*/
|
|
1544
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1545
|
+
/**
|
|
1546
|
+
* List of repositories
|
|
1547
|
+
*/
|
|
1548
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1549
|
+
export const zListTagsPath = z.object({
|
|
1550
|
+
region: z.string(),
|
|
1551
|
+
repository: z.string()
|
|
1552
|
+
});
|
|
1553
|
+
/**
|
|
1554
|
+
* Repository with tags
|
|
1555
|
+
*/
|
|
1556
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1557
|
+
export const zDeleteTagPath = z.object({
|
|
1558
|
+
region: z.string(),
|
|
1559
|
+
repository: z.string(),
|
|
1560
|
+
tag: z.string()
|
|
1561
|
+
});
|
|
1562
|
+
export const zGetTagPath = z.object({
|
|
1563
|
+
region: z.string(),
|
|
1564
|
+
repository: z.string(),
|
|
1565
|
+
tag: z.string()
|
|
1566
|
+
});
|
|
1567
|
+
/**
|
|
1568
|
+
* Tag details
|
|
1569
|
+
*/
|
|
1570
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1571
|
+
/**
|
|
1572
|
+
* Returns a single object containing organization details.
|
|
1573
|
+
*/
|
|
1574
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1575
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1576
|
+
/**
|
|
1577
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1578
|
+
*
|
|
1579
|
+
*/
|
|
1580
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1581
|
+
/**
|
|
1582
|
+
* JSON-RPC 2.0 request payload
|
|
1583
|
+
*/
|
|
1584
|
+
export const zPostMcpBody = z.object({
|
|
1585
|
+
jsonrpc: z.string().optional(),
|
|
1586
|
+
method: z.string().optional(),
|
|
1587
|
+
id: z.union([
|
|
1588
|
+
z.string(),
|
|
1589
|
+
z.number()
|
|
1590
|
+
]).optional(),
|
|
1591
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
1592
|
+
});
|
|
1593
|
+
/**
|
|
1594
|
+
* JSON-RPC 2.0 success or error response
|
|
1595
|
+
*/
|
|
1596
|
+
export const zPostMcpResponse = z.object({
|
|
1597
|
+
jsonrpc: z.string().optional(),
|
|
1598
|
+
id: z.union([
|
|
1599
|
+
z.string(),
|
|
1600
|
+
z.number()
|
|
1601
|
+
]).optional(),
|
|
1602
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1603
|
+
error: z.object({
|
|
1604
|
+
code: z.int().optional(),
|
|
1605
|
+
message: z.string().optional()
|
|
1606
|
+
}).optional()
|
|
1607
|
+
});
|
|
1608
|
+
/**
|
|
1609
|
+
* An array of chart listings in the marketplace.
|
|
1610
|
+
*/
|
|
1611
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1612
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1613
|
+
chart_name: z.string(),
|
|
1614
|
+
version_channel: z.string()
|
|
1615
|
+
});
|
|
1616
|
+
/**
|
|
1617
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1618
|
+
*/
|
|
1619
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1620
|
+
/**
|
|
1621
|
+
* An array of invites
|
|
1622
|
+
*/
|
|
1623
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1624
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1625
|
+
/**
|
|
1626
|
+
* Successfully created. Returns created invite details.
|
|
1627
|
+
*/
|
|
1628
|
+
export const zCreateInviteResponse = zInvite;
|
|
1629
|
+
export const zGetInvitePath = z.object({
|
|
1630
|
+
code: z.string()
|
|
1631
|
+
});
|
|
1632
|
+
/**
|
|
1633
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1634
|
+
*/
|
|
1635
|
+
export const zGetInviteResponse = z.object({
|
|
1636
|
+
email: z.email().optional(),
|
|
1637
|
+
organization_id: z.string().optional()
|
|
1638
|
+
});
|
|
1639
|
+
export const zDeleteInvitePath = z.object({
|
|
1640
|
+
email: z.email()
|
|
1641
|
+
});
|
|
1642
|
+
export const zQueryClusterPath = z.object({
|
|
1643
|
+
cluster_id: z.string()
|
|
1644
|
+
});
|
|
618
1645
|
export const zListFleetsPath = z.object({
|
|
619
1646
|
cluster_id: z.string()
|
|
620
1647
|
});
|
|
@@ -655,9 +1682,46 @@ export const zUpdateFleetPath = z.object({
|
|
|
655
1682
|
* Successfully updated.
|
|
656
1683
|
*/
|
|
657
1684
|
export const zUpdateFleetResponse = z.string();
|
|
658
|
-
export const
|
|
1685
|
+
export const zListChartsPath = z.object({
|
|
659
1686
|
cluster_id: z.string()
|
|
660
1687
|
});
|
|
1688
|
+
/**
|
|
1689
|
+
* An array of charts
|
|
1690
|
+
*/
|
|
1691
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1692
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1693
|
+
export const zCreateChartPath = z.object({
|
|
1694
|
+
cluster_id: z.string()
|
|
1695
|
+
});
|
|
1696
|
+
/**
|
|
1697
|
+
* Successfully created. Returns created Chart ID.
|
|
1698
|
+
*/
|
|
1699
|
+
export const zCreateChartResponse = z.string();
|
|
1700
|
+
export const zDeleteChartPath = z.object({
|
|
1701
|
+
cluster_id: z.string(),
|
|
1702
|
+
chart_name: z.string()
|
|
1703
|
+
});
|
|
1704
|
+
/**
|
|
1705
|
+
* Successfully deleted.
|
|
1706
|
+
*/
|
|
1707
|
+
export const zDeleteChartResponse = z.string();
|
|
1708
|
+
export const zGetChartPath = z.object({
|
|
1709
|
+
cluster_id: z.string(),
|
|
1710
|
+
chart_name: z.string()
|
|
1711
|
+
});
|
|
1712
|
+
/**
|
|
1713
|
+
* Returns a single object containing chart details.
|
|
1714
|
+
*/
|
|
1715
|
+
export const zGetChartResponse = zChart;
|
|
1716
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1717
|
+
export const zUpdateChartPath = z.object({
|
|
1718
|
+
cluster_id: z.string(),
|
|
1719
|
+
chart_name: z.string()
|
|
1720
|
+
});
|
|
1721
|
+
/**
|
|
1722
|
+
* Successfully updated.
|
|
1723
|
+
*/
|
|
1724
|
+
export const zUpdateChartResponse = z.string();
|
|
661
1725
|
/**
|
|
662
1726
|
* An array of clusters
|
|
663
1727
|
*/
|
|
@@ -671,7 +1735,7 @@ export const zDeleteClusterPath = z.object({
|
|
|
671
1735
|
cluster_id: z.string()
|
|
672
1736
|
});
|
|
673
1737
|
/**
|
|
674
|
-
* Successfully deleted.
|
|
1738
|
+
* Successfully deleted. The cluster has been torn down.
|
|
675
1739
|
*/
|
|
676
1740
|
export const zDeleteClusterResponse = z.string();
|
|
677
1741
|
export const zGetClusterPath = z.object({
|
|
@@ -689,13 +1753,6 @@ export const zUpdateClusterPath = z.object({
|
|
|
689
1753
|
* Successfully updated. Returns updated cluster details.
|
|
690
1754
|
*/
|
|
691
1755
|
export const zUpdateClusterResponse = zCluster;
|
|
692
|
-
export const zGetClusterCaPath = z.object({
|
|
693
|
-
cluster_id: z.string()
|
|
694
|
-
});
|
|
695
|
-
/**
|
|
696
|
-
* PEM-encoded certificate authority of the cluster.
|
|
697
|
-
*/
|
|
698
|
-
export const zGetClusterCaResponse = z.string();
|
|
699
1756
|
export const zGetJoinInformationPath = z.object({
|
|
700
1757
|
cluster_id: z.string()
|
|
701
1758
|
});
|
|
@@ -703,170 +1760,60 @@ export const zGetJoinInformationPath = z.object({
|
|
|
703
1760
|
* An object of cluster join information
|
|
704
1761
|
*/
|
|
705
1762
|
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
});
|
|
713
|
-
/**
|
|
714
|
-
* Successfully created. Returns created invite details.
|
|
715
|
-
*/
|
|
716
|
-
export const zCreateInviteResponse = zInvite;
|
|
717
|
-
export const zGetInvitePath = z.object({
|
|
718
|
-
code: z.string()
|
|
719
|
-
});
|
|
720
|
-
/**
|
|
721
|
-
* Returns a single object containing invite details.
|
|
722
|
-
*/
|
|
723
|
-
export const zGetInviteResponse = zInvite;
|
|
724
|
-
export const zDeleteInvitePath = z.object({
|
|
725
|
-
email: z.string()
|
|
726
|
-
});
|
|
727
|
-
/**
|
|
728
|
-
* An array of chart listings in the marketplace.
|
|
729
|
-
*/
|
|
730
|
-
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
731
|
-
export const zGetMarketplaceChartFilesPath = z.object({
|
|
732
|
-
chart_name: z.string(),
|
|
733
|
-
version_channel: z.string()
|
|
734
|
-
});
|
|
735
|
-
/**
|
|
736
|
-
* Returns an object containing the chart files for the latest matching version.
|
|
737
|
-
*/
|
|
738
|
-
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
739
|
-
/**
|
|
740
|
-
* JSON-RPC 2.0 request payload
|
|
741
|
-
*/
|
|
742
|
-
export const zPostMcpBody = z.object({
|
|
743
|
-
jsonrpc: z.string().optional(),
|
|
744
|
-
method: z.string().optional(),
|
|
745
|
-
id: z.union([
|
|
746
|
-
z.string(),
|
|
747
|
-
z.number()
|
|
748
|
-
]).optional(),
|
|
749
|
-
params: z.record(z.string(), z.unknown()).optional()
|
|
750
|
-
});
|
|
751
|
-
/**
|
|
752
|
-
* JSON-RPC 2.0 success or error response
|
|
753
|
-
*/
|
|
754
|
-
export const zPostMcpResponse = z.object({
|
|
755
|
-
jsonrpc: z.string().optional(),
|
|
756
|
-
id: z.union([
|
|
757
|
-
z.string(),
|
|
758
|
-
z.number()
|
|
759
|
-
]).optional(),
|
|
760
|
-
result: z.record(z.string(), z.unknown()).optional(),
|
|
761
|
-
error: z.object({
|
|
762
|
-
code: z.int().optional(),
|
|
763
|
-
message: z.string().optional()
|
|
764
|
-
}).optional()
|
|
765
|
-
});
|
|
766
|
-
/**
|
|
767
|
-
* Returns a single object containing organization details.
|
|
768
|
-
*/
|
|
769
|
-
export const zGetOrganizationResponse = zOrganization;
|
|
770
|
-
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
771
|
-
/**
|
|
772
|
-
* List of repositories
|
|
773
|
-
*/
|
|
774
|
-
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
775
|
-
export const zListTagsPath = z.object({
|
|
776
|
-
region: z.string(),
|
|
777
|
-
repository: z.string()
|
|
778
|
-
});
|
|
779
|
-
/**
|
|
780
|
-
* Repository with tags
|
|
781
|
-
*/
|
|
782
|
-
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
783
|
-
export const zDeleteTagPath = z.object({
|
|
784
|
-
region: z.string(),
|
|
785
|
-
repository: z.string(),
|
|
786
|
-
tag: z.string()
|
|
787
|
-
});
|
|
788
|
-
export const zGetTagPath = z.object({
|
|
789
|
-
region: z.string(),
|
|
790
|
-
repository: z.string(),
|
|
791
|
-
tag: z.string()
|
|
1763
|
+
export const zGetUsageQuery = z.object({
|
|
1764
|
+
granularity: z.enum([
|
|
1765
|
+
'hourly',
|
|
1766
|
+
'daily',
|
|
1767
|
+
'monthly'
|
|
1768
|
+
]).optional().default('daily')
|
|
792
1769
|
});
|
|
793
1770
|
/**
|
|
794
|
-
*
|
|
795
|
-
*/
|
|
796
|
-
export const zGetTagResponse = zRegistryTag;
|
|
797
|
-
/**
|
|
798
|
-
* Returns a list of access token details with masked secrets.
|
|
799
|
-
*/
|
|
800
|
-
export const zListTokensResponse = z.array(zToken);
|
|
801
|
-
export const zCreateTokenBody = zTokenCreateInput;
|
|
802
|
-
/**
|
|
803
|
-
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1771
|
+
* Usage data with facets for filtering
|
|
804
1772
|
*/
|
|
805
|
-
export const
|
|
806
|
-
export const zDeleteTokenPath = z.object({
|
|
807
|
-
token_id: z.string()
|
|
808
|
-
});
|
|
809
|
-
export const zGetTokenPath = z.object({
|
|
810
|
-
token_id: z.string()
|
|
811
|
-
});
|
|
1773
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
812
1774
|
/**
|
|
813
|
-
*
|
|
1775
|
+
* 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.
|
|
1776
|
+
*
|
|
814
1777
|
*/
|
|
815
|
-
export const
|
|
816
|
-
|
|
817
|
-
export const zUpdateTokenPath = z.object({
|
|
818
|
-
token_id: z.string()
|
|
1778
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1779
|
+
id: z.string().optional()
|
|
819
1780
|
});
|
|
820
1781
|
/**
|
|
821
|
-
*
|
|
1782
|
+
* An array of payment methods.
|
|
822
1783
|
*/
|
|
823
|
-
export const
|
|
824
|
-
export const
|
|
825
|
-
|
|
1784
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1785
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1786
|
+
paymentMethodId: z.string()
|
|
826
1787
|
});
|
|
827
1788
|
/**
|
|
828
|
-
*
|
|
1789
|
+
* Default payment method updated.
|
|
829
1790
|
*/
|
|
830
|
-
export const
|
|
831
|
-
export const
|
|
832
|
-
|
|
1791
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1792
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1793
|
+
paymentMethodId: z.string()
|
|
833
1794
|
});
|
|
834
1795
|
/**
|
|
835
|
-
*
|
|
1796
|
+
* Payment method deleted.
|
|
836
1797
|
*/
|
|
837
|
-
export const
|
|
838
|
-
realm: z.string().optional(),
|
|
839
|
-
displayName: z.string().optional()
|
|
840
|
-
}));
|
|
1798
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
841
1799
|
/**
|
|
842
|
-
* An array of
|
|
1800
|
+
* An array of usage records.
|
|
843
1801
|
*/
|
|
844
|
-
export const
|
|
845
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1802
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
846
1803
|
/**
|
|
847
|
-
*
|
|
1804
|
+
* Returns a single object containing organization contact and billing address details.
|
|
848
1805
|
*/
|
|
849
|
-
export const
|
|
850
|
-
export const
|
|
851
|
-
user_id: z.string()
|
|
852
|
-
});
|
|
1806
|
+
export const zGetContactResponse = zBillingContact;
|
|
1807
|
+
export const zUpdateContactBody = zBillingContact;
|
|
853
1808
|
/**
|
|
854
|
-
*
|
|
1809
|
+
* Successfully updated. Returns updated organization details.
|
|
855
1810
|
*/
|
|
856
|
-
export const
|
|
857
|
-
export const zGetUserPath = z.object({
|
|
858
|
-
user_id: z.string()
|
|
859
|
-
});
|
|
1811
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
860
1812
|
/**
|
|
861
|
-
*
|
|
1813
|
+
* An array of the applied promotional credits records.
|
|
862
1814
|
*/
|
|
863
|
-
export const
|
|
864
|
-
export const
|
|
865
|
-
|
|
866
|
-
user_id: z.string()
|
|
1815
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1816
|
+
export const zRedeemCreditsBody = z.object({
|
|
1817
|
+
code: z.string().optional()
|
|
867
1818
|
});
|
|
868
|
-
/**
|
|
869
|
-
* Successfully created. Returns created user details.
|
|
870
|
-
*/
|
|
871
|
-
export const zUpdateUserResponse = zUser;
|
|
872
1819
|
//# sourceMappingURL=zod.gen.js.map
|