@cloudfleet/sdk 0.0.1-cfddf24 → 0.0.1-d3aa845
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 +420 -386
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +428 -382
- 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 +437 -225
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +587 -317
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +237 -215
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +338 -312
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1049 -790
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1650 -1477
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +481 -350
- 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,55 @@ 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([
|
|
197
|
-
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
185
|
+
tier: z.enum([
|
|
186
|
+
'basic',
|
|
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
|
+
})
|
|
209
223
|
});
|
|
210
224
|
export const zClusterJoinInformation = z.object({
|
|
211
225
|
certificate_authority: z.string(),
|
|
212
226
|
endpoint: z.url(),
|
|
213
227
|
cluster_dns: z.string(),
|
|
228
|
+
pod_cidr: z.string(),
|
|
214
229
|
auth_key: z.string(),
|
|
215
230
|
bootstrap_token: z.string(),
|
|
216
231
|
versions: z.object({
|
|
@@ -225,24 +240,55 @@ export const zClusterJoinInformation = z.object({
|
|
|
225
240
|
gcp_workload_identity_provider: z.string()
|
|
226
241
|
})
|
|
227
242
|
});
|
|
243
|
+
/**
|
|
244
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
245
|
+
*/
|
|
228
246
|
export const zCluster = z.object({
|
|
229
247
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
-
tier: z.enum([
|
|
231
|
-
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
248
|
+
tier: z.enum([
|
|
249
|
+
'basic',
|
|
250
|
+
'pro',
|
|
251
|
+
'enterprise'
|
|
252
|
+
]).default('basic'),
|
|
253
|
+
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'),
|
|
254
|
+
release_channel: z.enum([
|
|
255
|
+
'rapid',
|
|
256
|
+
'stable',
|
|
257
|
+
'extended'
|
|
258
|
+
]).default('rapid'),
|
|
259
|
+
features: z.object({
|
|
260
|
+
gpu_sharing_strategy: z.enum([
|
|
261
|
+
'none',
|
|
262
|
+
'mps',
|
|
263
|
+
'time_slicing'
|
|
264
|
+
]).default('none'),
|
|
265
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
266
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
267
|
+
}).default({
|
|
268
|
+
gpu_sharing_strategy: 'none',
|
|
269
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
270
|
+
cilium_socket_lb_host_namespace_only: false
|
|
271
|
+
}),
|
|
272
|
+
region: z.string(),
|
|
273
|
+
networking: z.object({
|
|
274
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
275
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
276
|
+
dual_stack: z.boolean(),
|
|
277
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
278
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
279
|
+
}).default({
|
|
280
|
+
pod_cidr: '10.244.0.0/16',
|
|
281
|
+
service_cidr: '10.96.0.0/12',
|
|
282
|
+
dual_stack: false,
|
|
283
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
284
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
285
|
+
}),
|
|
237
286
|
id: z.uuid(),
|
|
238
287
|
status: z.enum([
|
|
239
|
-
'active',
|
|
240
|
-
'disabled',
|
|
241
|
-
'deleted',
|
|
242
288
|
'creating',
|
|
243
289
|
'deployed',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
290
|
+
'updating',
|
|
291
|
+
'disabled'
|
|
246
292
|
]),
|
|
247
293
|
endpoint: z.union([
|
|
248
294
|
z.url(),
|
|
@@ -256,14 +302,41 @@ export const zCluster = z.object({
|
|
|
256
302
|
version_current: z.string().optional(),
|
|
257
303
|
created_at: z.string().optional(),
|
|
258
304
|
updated_at: z.string().optional(),
|
|
259
|
-
ready: z.boolean()
|
|
260
|
-
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()
|
|
305
|
+
ready: z.boolean()
|
|
261
306
|
});
|
|
307
|
+
/**
|
|
308
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
309
|
+
*/
|
|
262
310
|
export const zClusterUpdateInput = z.object({
|
|
263
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
264
|
-
tier: z.enum([
|
|
265
|
-
|
|
311
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
312
|
+
tier: z.enum([
|
|
313
|
+
'basic',
|
|
314
|
+
'pro',
|
|
315
|
+
'enterprise'
|
|
316
|
+
]).optional().default('basic'),
|
|
317
|
+
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'),
|
|
318
|
+
release_channel: z.enum([
|
|
319
|
+
'rapid',
|
|
320
|
+
'stable',
|
|
321
|
+
'extended'
|
|
322
|
+
]).optional().default('rapid'),
|
|
323
|
+
features: z.object({
|
|
324
|
+
gpu_sharing_strategy: z.enum([
|
|
325
|
+
'none',
|
|
326
|
+
'mps',
|
|
327
|
+
'time_slicing'
|
|
328
|
+
]).optional().default('none'),
|
|
329
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
330
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
331
|
+
}).optional().default({
|
|
332
|
+
gpu_sharing_strategy: 'none',
|
|
333
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
334
|
+
cilium_socket_lb_host_namespace_only: false
|
|
335
|
+
})
|
|
266
336
|
});
|
|
337
|
+
/**
|
|
338
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
339
|
+
*/
|
|
267
340
|
export const zFleetCreateInput = z.object({
|
|
268
341
|
limits: z.object({
|
|
269
342
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -274,7 +347,7 @@ export const zFleetCreateInput = z.object({
|
|
|
274
347
|
}).optional(),
|
|
275
348
|
hetzner: z.object({
|
|
276
349
|
enabled: z.boolean(),
|
|
277
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
350
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
278
351
|
}).optional(),
|
|
279
352
|
aws: z.object({
|
|
280
353
|
enabled: z.boolean(),
|
|
@@ -442,7 +515,7 @@ export const zFleetCreateInput = z.object({
|
|
|
442
515
|
'x8g',
|
|
443
516
|
'z1d',
|
|
444
517
|
'z3'
|
|
445
|
-
])).optional(),
|
|
518
|
+
])).optional().default([]),
|
|
446
519
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
447
520
|
'africa-south1',
|
|
448
521
|
'ap-northeast-1',
|
|
@@ -508,11 +581,19 @@ export const zFleetCreateInput = z.object({
|
|
|
508
581
|
'us-west2',
|
|
509
582
|
'us-west3',
|
|
510
583
|
'us-west4'
|
|
511
|
-
])).optional()
|
|
512
|
-
}).optional()
|
|
584
|
+
])).optional().default([])
|
|
585
|
+
}).optional().default({
|
|
586
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
587
|
+
'kubernetes.io/arch': ['amd64'],
|
|
588
|
+
'cfke.io/instance-family': [],
|
|
589
|
+
'topology.kubernetes.io/region': []
|
|
590
|
+
}),
|
|
513
591
|
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
514
592
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
515
593
|
});
|
|
594
|
+
/**
|
|
595
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
596
|
+
*/
|
|
516
597
|
export const zFleet = z.object({
|
|
517
598
|
limits: z.object({
|
|
518
599
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -530,8 +611,8 @@ export const zFleet = z.object({
|
|
|
530
611
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
531
612
|
}).optional(),
|
|
532
613
|
constraints: z.object({
|
|
533
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).
|
|
534
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).
|
|
614
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
615
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
535
616
|
'cfke.io/instance-family': z.array(z.enum([
|
|
536
617
|
'a1',
|
|
537
618
|
'a2',
|
|
@@ -691,7 +772,7 @@ export const zFleet = z.object({
|
|
|
691
772
|
'x8g',
|
|
692
773
|
'z1d',
|
|
693
774
|
'z3'
|
|
694
|
-
])).optional(),
|
|
775
|
+
])).optional().default([]),
|
|
695
776
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
696
777
|
'africa-south1',
|
|
697
778
|
'ap-northeast-1',
|
|
@@ -757,11 +838,23 @@ export const zFleet = z.object({
|
|
|
757
838
|
'us-west2',
|
|
758
839
|
'us-west3',
|
|
759
840
|
'us-west4'
|
|
760
|
-
])).optional()
|
|
761
|
-
}).
|
|
841
|
+
])).optional().default([])
|
|
842
|
+
}).default({
|
|
843
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
844
|
+
'kubernetes.io/arch': ['amd64'],
|
|
845
|
+
'cfke.io/instance-family': [],
|
|
846
|
+
'topology.kubernetes.io/region': []
|
|
847
|
+
}),
|
|
762
848
|
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
763
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
849
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
850
|
+
ready: z.boolean(),
|
|
851
|
+
status_message: z.string().optional(),
|
|
852
|
+
created_at: z.string(),
|
|
853
|
+
updated_at: z.string()
|
|
764
854
|
});
|
|
855
|
+
/**
|
|
856
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
857
|
+
*/
|
|
765
858
|
export const zFleetUpdateInput = z.object({
|
|
766
859
|
limits: z.object({
|
|
767
860
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -772,15 +865,15 @@ export const zFleetUpdateInput = z.object({
|
|
|
772
865
|
}).optional(),
|
|
773
866
|
hetzner: z.object({
|
|
774
867
|
enabled: z.boolean(),
|
|
775
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
868
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
776
869
|
}).optional(),
|
|
777
870
|
aws: z.object({
|
|
778
871
|
enabled: z.boolean(),
|
|
779
872
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
780
873
|
}).optional(),
|
|
781
874
|
constraints: z.object({
|
|
782
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
783
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
875
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
876
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
784
877
|
'cfke.io/instance-family': z.array(z.enum([
|
|
785
878
|
'a1',
|
|
786
879
|
'a2',
|
|
@@ -940,7 +1033,7 @@ export const zFleetUpdateInput = z.object({
|
|
|
940
1033
|
'x8g',
|
|
941
1034
|
'z1d',
|
|
942
1035
|
'z3'
|
|
943
|
-
])).optional(),
|
|
1036
|
+
])).optional().default([]),
|
|
944
1037
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
945
1038
|
'africa-south1',
|
|
946
1039
|
'ap-northeast-1',
|
|
@@ -1006,16 +1099,26 @@ export const zFleetUpdateInput = z.object({
|
|
|
1006
1099
|
'us-west2',
|
|
1007
1100
|
'us-west3',
|
|
1008
1101
|
'us-west4'
|
|
1009
|
-
])).optional()
|
|
1010
|
-
}).optional()
|
|
1011
|
-
|
|
1102
|
+
])).optional().default([])
|
|
1103
|
+
}).optional().default({
|
|
1104
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1105
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1106
|
+
'cfke.io/instance-family': [],
|
|
1107
|
+
'topology.kubernetes.io/region': []
|
|
1108
|
+
}),
|
|
1109
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
|
|
1110
|
+
});
|
|
1111
|
+
export const zInviteCreateInput = z.object({
|
|
1112
|
+
email: z.email(),
|
|
1113
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1012
1114
|
});
|
|
1013
1115
|
export const zInvite = z.object({
|
|
1014
1116
|
id: z.string().optional(),
|
|
1015
1117
|
organization_id: z.uuid().optional(),
|
|
1016
1118
|
date_created: z.iso.datetime(),
|
|
1017
1119
|
email: z.email().optional(),
|
|
1018
|
-
code: z.string().optional()
|
|
1120
|
+
code: z.string().optional(),
|
|
1121
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1019
1122
|
});
|
|
1020
1123
|
export const zInvoice = z.object({
|
|
1021
1124
|
id: z.string().optional(),
|
|
@@ -1055,21 +1158,28 @@ export const zMarketplaceListing = z.object({
|
|
|
1055
1158
|
}).optional()
|
|
1056
1159
|
});
|
|
1057
1160
|
export const zOrganizationCreateInput = z.object({
|
|
1161
|
+
type: z.enum(['business', 'personal']),
|
|
1058
1162
|
email: z.email(),
|
|
1059
|
-
first_name: z.string(),
|
|
1060
|
-
last_name: z.string(),
|
|
1163
|
+
first_name: z.string().min(1),
|
|
1164
|
+
last_name: z.string().min(1),
|
|
1061
1165
|
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,}$/),
|
|
1062
1166
|
password: z.string().min(8)
|
|
1063
1167
|
});
|
|
1168
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1169
|
+
id: z.string()
|
|
1170
|
+
});
|
|
1064
1171
|
export const zOrganization = z.object({
|
|
1065
1172
|
id: z.uuid(),
|
|
1066
1173
|
name: z.string().min(2).max(120).optional(),
|
|
1174
|
+
type: z.enum(['business', 'personal']),
|
|
1067
1175
|
date_created: z.iso.datetime(),
|
|
1068
1176
|
quota: z.object({
|
|
1069
1177
|
basic_clusters_max: z.int().gte(0),
|
|
1070
1178
|
basic_clusters_available: z.int(),
|
|
1071
1179
|
pro_clusters_max: z.int().gte(0),
|
|
1072
1180
|
pro_clusters_available: z.int(),
|
|
1181
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1182
|
+
enterprise_clusters_available: z.int(),
|
|
1073
1183
|
fleets_max: z.int().gte(0),
|
|
1074
1184
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1075
1185
|
regions: z.array(z.string()).min(1),
|
|
@@ -1083,32 +1193,36 @@ export const zOrganization = z.object({
|
|
|
1083
1193
|
'active',
|
|
1084
1194
|
'closed',
|
|
1085
1195
|
'suspended'
|
|
1196
|
+
]),
|
|
1197
|
+
verification: z.enum([
|
|
1198
|
+
'none',
|
|
1199
|
+
'submitted',
|
|
1200
|
+
'verified'
|
|
1086
1201
|
])
|
|
1087
1202
|
});
|
|
1088
1203
|
export const zPaymentMethod = z.object({
|
|
1089
|
-
id: z.
|
|
1090
|
-
|
|
1091
|
-
|
|
1204
|
+
id: z.string(),
|
|
1205
|
+
type: z.enum([
|
|
1206
|
+
'card',
|
|
1207
|
+
'sepa_debit',
|
|
1208
|
+
'bank_transfer'
|
|
1209
|
+
]),
|
|
1092
1210
|
last4: z.string(),
|
|
1093
1211
|
exp_month: z.int().gte(1).lte(12),
|
|
1094
|
-
exp_year: z.int()
|
|
1095
|
-
brand: z.
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
'jcb',
|
|
1101
|
-
'mastercard',
|
|
1102
|
-
'unionpay',
|
|
1103
|
-
'visa',
|
|
1104
|
-
'unknown'
|
|
1105
|
-
])
|
|
1212
|
+
exp_year: z.int(),
|
|
1213
|
+
brand: z.string(),
|
|
1214
|
+
iban: z.string(),
|
|
1215
|
+
bic: z.string(),
|
|
1216
|
+
account_holder_name: z.string(),
|
|
1217
|
+
is_default: z.boolean()
|
|
1106
1218
|
});
|
|
1107
1219
|
export const zPlatformQuota = z.object({
|
|
1108
1220
|
basic_clusters_max: z.int().gte(0),
|
|
1109
1221
|
basic_clusters_available: z.int(),
|
|
1110
1222
|
pro_clusters_max: z.int().gte(0),
|
|
1111
1223
|
pro_clusters_available: z.int(),
|
|
1224
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1225
|
+
enterprise_clusters_available: z.int(),
|
|
1112
1226
|
fleets_max: z.int().gte(0),
|
|
1113
1227
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1114
1228
|
regions: z.array(z.string()).min(1),
|
|
@@ -1179,39 +1293,6 @@ export const zTicketCreateInput = z.object({
|
|
|
1179
1293
|
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1180
1294
|
properties: z.record(z.string(), z.unknown()).optional()
|
|
1181
1295
|
});
|
|
1182
|
-
export const zTicketListResponse = z.object({
|
|
1183
|
-
items: z.array(z.object({
|
|
1184
|
-
id: z.string(),
|
|
1185
|
-
status: z.enum([
|
|
1186
|
-
'waiting_on_us',
|
|
1187
|
-
'waiting_on_user',
|
|
1188
|
-
'closed'
|
|
1189
|
-
]),
|
|
1190
|
-
category: z.enum([
|
|
1191
|
-
'billing',
|
|
1192
|
-
'technical',
|
|
1193
|
-
'general'
|
|
1194
|
-
]),
|
|
1195
|
-
summary: z.string(),
|
|
1196
|
-
closed_at: z.iso.datetime().optional(),
|
|
1197
|
-
date_created: z.iso.datetime(),
|
|
1198
|
-
date_updated: z.iso.datetime(),
|
|
1199
|
-
messages: z.array(z.object({
|
|
1200
|
-
id: z.string(),
|
|
1201
|
-
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1202
|
-
body: z.string(),
|
|
1203
|
-
author_first_name: z.string().optional(),
|
|
1204
|
-
author_last_name: z.string().optional(),
|
|
1205
|
-
attachments: z.array(z.object({
|
|
1206
|
-
id: z.string(),
|
|
1207
|
-
filename: z.string(),
|
|
1208
|
-
content_type: z.string(),
|
|
1209
|
-
size: z.int()
|
|
1210
|
-
})).optional(),
|
|
1211
|
-
date_created: z.iso.datetime()
|
|
1212
|
-
})).optional()
|
|
1213
|
-
}))
|
|
1214
|
-
});
|
|
1215
1296
|
export const zTicketMessageInput = z.object({
|
|
1216
1297
|
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1217
1298
|
});
|
|
@@ -1277,26 +1358,58 @@ export const zTokenUpdateInput = z.object({
|
|
|
1277
1358
|
});
|
|
1278
1359
|
export const zUsageFacets = z.object({
|
|
1279
1360
|
cluster_id: z.array(z.string()).optional(),
|
|
1280
|
-
product: z.array(z.
|
|
1361
|
+
product: z.array(z.enum([
|
|
1362
|
+
'cfke_controlplane_basic',
|
|
1363
|
+
'cfke_controlplane_pro',
|
|
1364
|
+
'cfke_controlplane_enterprise',
|
|
1365
|
+
'cfke_connected_nodes_basic',
|
|
1366
|
+
'cfke_connected_nodes_pro',
|
|
1367
|
+
'cfke_connected_nodes_enterprise',
|
|
1368
|
+
'cfcr_storage'
|
|
1369
|
+
])).optional()
|
|
1281
1370
|
});
|
|
1282
1371
|
export const zUsageResponse = z.object({
|
|
1283
1372
|
data: z.array(z.object({
|
|
1284
1373
|
hour: z.string(),
|
|
1285
1374
|
cluster_id: z.string(),
|
|
1286
|
-
product: z.
|
|
1375
|
+
product: z.enum([
|
|
1376
|
+
'cfke_controlplane_basic',
|
|
1377
|
+
'cfke_controlplane_pro',
|
|
1378
|
+
'cfke_controlplane_enterprise',
|
|
1379
|
+
'cfke_connected_nodes_basic',
|
|
1380
|
+
'cfke_connected_nodes_pro',
|
|
1381
|
+
'cfke_connected_nodes_enterprise',
|
|
1382
|
+
'cfcr_storage'
|
|
1383
|
+
]),
|
|
1287
1384
|
value: z.number(),
|
|
1288
1385
|
price: z.number(),
|
|
1289
1386
|
total: z.number()
|
|
1290
1387
|
})),
|
|
1291
1388
|
facets: z.object({
|
|
1292
1389
|
cluster_id: z.array(z.string()).optional(),
|
|
1293
|
-
product: z.array(z.
|
|
1390
|
+
product: z.array(z.enum([
|
|
1391
|
+
'cfke_controlplane_basic',
|
|
1392
|
+
'cfke_controlplane_pro',
|
|
1393
|
+
'cfke_controlplane_enterprise',
|
|
1394
|
+
'cfke_connected_nodes_basic',
|
|
1395
|
+
'cfke_connected_nodes_pro',
|
|
1396
|
+
'cfke_connected_nodes_enterprise',
|
|
1397
|
+
'cfcr_storage'
|
|
1398
|
+
])).optional()
|
|
1294
1399
|
})
|
|
1295
1400
|
});
|
|
1296
1401
|
export const zUsage = z.object({
|
|
1297
1402
|
hour: z.string(),
|
|
1298
1403
|
cluster_id: z.string(),
|
|
1299
|
-
product: z.
|
|
1404
|
+
product: 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
|
+
]),
|
|
1300
1413
|
value: z.number(),
|
|
1301
1414
|
price: z.number(),
|
|
1302
1415
|
total: z.number()
|
|
@@ -1306,9 +1419,7 @@ export const zUserCreateInput = z.object({
|
|
|
1306
1419
|
first_name: z.string().min(1).max(50),
|
|
1307
1420
|
last_name: z.string().min(1).max(50),
|
|
1308
1421
|
code: z.string(),
|
|
1309
|
-
password: z.string().min(8)
|
|
1310
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
1311
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1422
|
+
password: z.string().min(8)
|
|
1312
1423
|
});
|
|
1313
1424
|
export const zUser = z.object({
|
|
1314
1425
|
email: z.email(),
|
|
@@ -1326,202 +1437,162 @@ export const zUserUpdateInput = z.object({
|
|
|
1326
1437
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1327
1438
|
status: z.enum(['active', 'inactive']).optional()
|
|
1328
1439
|
});
|
|
1329
|
-
export const
|
|
1330
|
-
|
|
1331
|
-
'hourly',
|
|
1332
|
-
'daily',
|
|
1333
|
-
'monthly'
|
|
1334
|
-
]).optional().default('daily')
|
|
1440
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1441
|
+
email: z.string()
|
|
1335
1442
|
});
|
|
1336
1443
|
/**
|
|
1337
|
-
*
|
|
1444
|
+
* An array of organizations the user belongs to.
|
|
1338
1445
|
*/
|
|
1339
|
-
export const
|
|
1446
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1447
|
+
realm: z.string().optional(),
|
|
1448
|
+
displayName: z.string().optional()
|
|
1449
|
+
}));
|
|
1340
1450
|
/**
|
|
1341
|
-
*
|
|
1451
|
+
* An array of users
|
|
1342
1452
|
*/
|
|
1343
|
-
export const
|
|
1453
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1454
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1344
1455
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
*
|
|
1456
|
+
* Successfully created. Returns created user details.
|
|
1347
1457
|
*/
|
|
1348
|
-
export const
|
|
1349
|
-
|
|
1458
|
+
export const zCreateUserResponse = zUser;
|
|
1459
|
+
export const zDeleteUserPath = z.object({
|
|
1460
|
+
user_id: z.string()
|
|
1350
1461
|
});
|
|
1351
1462
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
*/
|
|
1354
|
-
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1355
|
-
/**
|
|
1356
|
-
* Returns a single object containing organization contact and billing address details.
|
|
1357
|
-
*/
|
|
1358
|
-
export const zGetContactResponse = zBillingContact;
|
|
1359
|
-
export const zUpdateContactBody = zBillingContact;
|
|
1360
|
-
/**
|
|
1361
|
-
* Successfully updated. Returns updated organization details.
|
|
1362
|
-
*/
|
|
1363
|
-
export const zUpdateContactResponse = zBillingContact;
|
|
1364
|
-
/**
|
|
1365
|
-
* An array of the applied promotional credits records.
|
|
1463
|
+
* User profile information
|
|
1366
1464
|
*/
|
|
1367
|
-
export const
|
|
1368
|
-
export const
|
|
1369
|
-
|
|
1370
|
-
});
|
|
1371
|
-
export const zListChartsPath = z.object({
|
|
1372
|
-
cluster_id: z.string()
|
|
1465
|
+
export const zDeleteUserResponse = zUser;
|
|
1466
|
+
export const zGetUserPath = z.object({
|
|
1467
|
+
user_id: z.string()
|
|
1373
1468
|
});
|
|
1374
1469
|
/**
|
|
1375
|
-
*
|
|
1470
|
+
* User profile information
|
|
1376
1471
|
*/
|
|
1377
|
-
export const
|
|
1378
|
-
export const
|
|
1379
|
-
export const
|
|
1380
|
-
|
|
1472
|
+
export const zGetUserResponse = zUser;
|
|
1473
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1474
|
+
export const zUpdateUserPath = z.object({
|
|
1475
|
+
user_id: z.string()
|
|
1381
1476
|
});
|
|
1382
1477
|
/**
|
|
1383
|
-
* Successfully created. Returns created
|
|
1478
|
+
* Successfully created. Returns created user details.
|
|
1384
1479
|
*/
|
|
1385
|
-
export const
|
|
1386
|
-
export const zDeleteChartPath = z.object({
|
|
1387
|
-
cluster_id: z.string(),
|
|
1388
|
-
chart_name: z.string()
|
|
1389
|
-
});
|
|
1480
|
+
export const zUpdateUserResponse = zUser;
|
|
1390
1481
|
/**
|
|
1391
|
-
*
|
|
1482
|
+
* Returns a list of access token details with masked secrets.
|
|
1392
1483
|
*/
|
|
1393
|
-
export const
|
|
1394
|
-
export const
|
|
1395
|
-
cluster_id: z.string(),
|
|
1396
|
-
chart_name: z.string()
|
|
1397
|
-
});
|
|
1484
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1485
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1398
1486
|
/**
|
|
1399
|
-
* Returns
|
|
1487
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1400
1488
|
*/
|
|
1401
|
-
export const
|
|
1402
|
-
export const
|
|
1403
|
-
|
|
1404
|
-
cluster_id: z.string(),
|
|
1405
|
-
chart_name: z.string()
|
|
1489
|
+
export const zCreateTokenResponse = zToken;
|
|
1490
|
+
export const zDeleteTokenPath = z.object({
|
|
1491
|
+
token_id: z.string()
|
|
1406
1492
|
});
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
*/
|
|
1410
|
-
export const zUpdateChartResponse = z.string();
|
|
1411
|
-
export const zListFleetsPath = z.object({
|
|
1412
|
-
cluster_id: z.string()
|
|
1493
|
+
export const zGetTokenPath = z.object({
|
|
1494
|
+
token_id: z.string()
|
|
1413
1495
|
});
|
|
1414
1496
|
/**
|
|
1415
|
-
*
|
|
1497
|
+
* Returns access token details with masked secret.
|
|
1416
1498
|
*/
|
|
1417
|
-
export const
|
|
1418
|
-
export const
|
|
1419
|
-
export const
|
|
1420
|
-
|
|
1499
|
+
export const zGetTokenResponse = zToken;
|
|
1500
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1501
|
+
export const zUpdateTokenPath = z.object({
|
|
1502
|
+
token_id: z.string()
|
|
1421
1503
|
});
|
|
1422
1504
|
/**
|
|
1423
|
-
* Successfully
|
|
1505
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1424
1506
|
*/
|
|
1425
|
-
export const
|
|
1426
|
-
export const
|
|
1427
|
-
|
|
1428
|
-
fleet_name: z.string()
|
|
1507
|
+
export const zUpdateTokenResponse = zToken;
|
|
1508
|
+
export const zRegenerateTokenPath = z.object({
|
|
1509
|
+
token_id: z.string()
|
|
1429
1510
|
});
|
|
1430
1511
|
/**
|
|
1431
|
-
* Successfully
|
|
1512
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1432
1513
|
*/
|
|
1433
|
-
export const
|
|
1434
|
-
export const zGetFleetPath = z.object({
|
|
1435
|
-
cluster_id: z.string(),
|
|
1436
|
-
fleet_name: z.string()
|
|
1437
|
-
});
|
|
1514
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1438
1515
|
/**
|
|
1439
|
-
*
|
|
1516
|
+
* An array of tickets for the organization, newest first.
|
|
1440
1517
|
*/
|
|
1441
|
-
export const
|
|
1442
|
-
export const
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
fleet_name: z.string()
|
|
1518
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1519
|
+
export const zCreateTicketBody = z.object({
|
|
1520
|
+
payload: z.string().optional(),
|
|
1521
|
+
attachments: z.array(z.string()).optional()
|
|
1446
1522
|
});
|
|
1447
1523
|
/**
|
|
1448
|
-
*
|
|
1524
|
+
* Ticket created.
|
|
1449
1525
|
*/
|
|
1450
|
-
export const
|
|
1451
|
-
export const
|
|
1452
|
-
|
|
1526
|
+
export const zCreateTicketResponse = zTicket;
|
|
1527
|
+
export const zCloseTicketPath = z.object({
|
|
1528
|
+
ticket_id: z.string()
|
|
1453
1529
|
});
|
|
1454
1530
|
/**
|
|
1455
|
-
*
|
|
1456
|
-
*/
|
|
1457
|
-
export const zListClustersResponse = z.array(zCluster);
|
|
1458
|
-
export const zCreateClusterBody = zClusterCreateInput;
|
|
1459
|
-
/**
|
|
1460
|
-
* Successfully created. Returns created Cluster ID.
|
|
1531
|
+
* Ticket closed.
|
|
1461
1532
|
*/
|
|
1462
|
-
export const
|
|
1463
|
-
export const
|
|
1464
|
-
|
|
1533
|
+
export const zCloseTicketResponse = zTicket;
|
|
1534
|
+
export const zGetTicketPath = z.object({
|
|
1535
|
+
ticket_id: z.string()
|
|
1465
1536
|
});
|
|
1466
1537
|
/**
|
|
1467
|
-
*
|
|
1538
|
+
* Ticket with messages (internal notes excluded).
|
|
1468
1539
|
*/
|
|
1469
|
-
export const
|
|
1470
|
-
export const
|
|
1471
|
-
|
|
1540
|
+
export const zGetTicketResponse = zTicket;
|
|
1541
|
+
export const zReplyTicketBody = z.object({
|
|
1542
|
+
payload: z.string().optional(),
|
|
1543
|
+
attachments: z.array(z.string()).optional()
|
|
1472
1544
|
});
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
*/
|
|
1476
|
-
export const zGetClusterResponse = zCluster;
|
|
1477
|
-
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1478
|
-
export const zUpdateClusterPath = z.object({
|
|
1479
|
-
cluster_id: z.string()
|
|
1545
|
+
export const zReplyTicketPath = z.object({
|
|
1546
|
+
ticket_id: z.string()
|
|
1480
1547
|
});
|
|
1481
1548
|
/**
|
|
1482
|
-
*
|
|
1549
|
+
* Reply appended.
|
|
1483
1550
|
*/
|
|
1484
|
-
export const
|
|
1485
|
-
export const
|
|
1486
|
-
|
|
1551
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1552
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1553
|
+
ticket_id: z.string(),
|
|
1554
|
+
attachment_id: z.string()
|
|
1487
1555
|
});
|
|
1488
1556
|
/**
|
|
1489
|
-
*
|
|
1557
|
+
* Attachment binary stream.
|
|
1490
1558
|
*/
|
|
1491
|
-
export const
|
|
1559
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1492
1560
|
/**
|
|
1493
|
-
*
|
|
1561
|
+
* List of repositories
|
|
1494
1562
|
*/
|
|
1495
|
-
export const
|
|
1496
|
-
export const
|
|
1497
|
-
|
|
1563
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1564
|
+
export const zListTagsPath = z.object({
|
|
1565
|
+
region: z.string(),
|
|
1566
|
+
repository: z.string()
|
|
1498
1567
|
});
|
|
1499
1568
|
/**
|
|
1500
|
-
*
|
|
1569
|
+
* Repository with tags
|
|
1501
1570
|
*/
|
|
1502
|
-
export const
|
|
1503
|
-
export const
|
|
1504
|
-
|
|
1571
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1572
|
+
export const zDeleteTagPath = z.object({
|
|
1573
|
+
region: z.string(),
|
|
1574
|
+
repository: z.string(),
|
|
1575
|
+
tag: z.string()
|
|
1576
|
+
});
|
|
1577
|
+
export const zGetTagPath = z.object({
|
|
1578
|
+
region: z.string(),
|
|
1579
|
+
repository: z.string(),
|
|
1580
|
+
tag: z.string()
|
|
1505
1581
|
});
|
|
1506
1582
|
/**
|
|
1507
|
-
*
|
|
1583
|
+
* Tag details
|
|
1508
1584
|
*/
|
|
1509
|
-
export const
|
|
1510
|
-
export const zDeleteInvitePath = z.object({
|
|
1511
|
-
email: z.string()
|
|
1512
|
-
});
|
|
1585
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1513
1586
|
/**
|
|
1514
|
-
*
|
|
1587
|
+
* Returns a single object containing organization details.
|
|
1515
1588
|
*/
|
|
1516
|
-
export const
|
|
1517
|
-
export const
|
|
1518
|
-
chart_name: z.string(),
|
|
1519
|
-
version_channel: z.string()
|
|
1520
|
-
});
|
|
1589
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1590
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1521
1591
|
/**
|
|
1522
|
-
*
|
|
1592
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1593
|
+
*
|
|
1523
1594
|
*/
|
|
1524
|
-
export const
|
|
1595
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1525
1596
|
/**
|
|
1526
1597
|
* JSON-RPC 2.0 request payload
|
|
1527
1598
|
*/
|
|
@@ -1550,154 +1621,214 @@ export const zPostMcpResponse = z.object({
|
|
|
1550
1621
|
}).optional()
|
|
1551
1622
|
});
|
|
1552
1623
|
/**
|
|
1553
|
-
*
|
|
1624
|
+
* An array of chart listings in the marketplace.
|
|
1554
1625
|
*/
|
|
1555
|
-
export const
|
|
1556
|
-
export const
|
|
1626
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1627
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1628
|
+
chart_name: z.string(),
|
|
1629
|
+
version_channel: z.string()
|
|
1630
|
+
});
|
|
1557
1631
|
/**
|
|
1558
|
-
*
|
|
1632
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1559
1633
|
*/
|
|
1560
|
-
export const
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1634
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1635
|
+
/**
|
|
1636
|
+
* An array of invites
|
|
1637
|
+
*/
|
|
1638
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1639
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1640
|
+
/**
|
|
1641
|
+
* Successfully created. Returns created invite details.
|
|
1642
|
+
*/
|
|
1643
|
+
export const zCreateInviteResponse = zInvite;
|
|
1644
|
+
export const zGetInvitePath = z.object({
|
|
1645
|
+
code: z.string()
|
|
1564
1646
|
});
|
|
1565
1647
|
/**
|
|
1566
|
-
*
|
|
1648
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1567
1649
|
*/
|
|
1568
|
-
export const
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
repository: z.string(),
|
|
1572
|
-
tag: z.string()
|
|
1650
|
+
export const zGetInviteResponse = z.object({
|
|
1651
|
+
email: z.email().optional(),
|
|
1652
|
+
organization_id: z.string().optional()
|
|
1573
1653
|
});
|
|
1574
|
-
export const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1654
|
+
export const zDeleteInvitePath = z.object({
|
|
1655
|
+
email: z.email()
|
|
1656
|
+
});
|
|
1657
|
+
export const zQueryClusterPath = z.object({
|
|
1658
|
+
cluster_id: z.string()
|
|
1659
|
+
});
|
|
1660
|
+
export const zListFleetsPath = z.object({
|
|
1661
|
+
cluster_id: z.string()
|
|
1578
1662
|
});
|
|
1579
1663
|
/**
|
|
1580
|
-
*
|
|
1664
|
+
* An array of fleets
|
|
1581
1665
|
*/
|
|
1582
|
-
export const
|
|
1666
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1667
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1668
|
+
export const zCreateFleetPath = z.object({
|
|
1669
|
+
cluster_id: z.string()
|
|
1670
|
+
});
|
|
1583
1671
|
/**
|
|
1584
|
-
*
|
|
1672
|
+
* Successfully created. Returns created Fleet ID.
|
|
1585
1673
|
*/
|
|
1586
|
-
export const
|
|
1587
|
-
export const
|
|
1588
|
-
|
|
1589
|
-
|
|
1674
|
+
export const zCreateFleetResponse = z.string();
|
|
1675
|
+
export const zDeleteFleetPath = z.object({
|
|
1676
|
+
cluster_id: z.string(),
|
|
1677
|
+
fleet_name: z.string()
|
|
1590
1678
|
});
|
|
1591
1679
|
/**
|
|
1592
|
-
*
|
|
1680
|
+
* Successfully deleted.
|
|
1593
1681
|
*/
|
|
1594
|
-
export const
|
|
1595
|
-
export const
|
|
1596
|
-
|
|
1682
|
+
export const zDeleteFleetResponse = z.string();
|
|
1683
|
+
export const zGetFleetPath = z.object({
|
|
1684
|
+
cluster_id: z.string(),
|
|
1685
|
+
fleet_name: z.string()
|
|
1597
1686
|
});
|
|
1598
1687
|
/**
|
|
1599
|
-
*
|
|
1688
|
+
* Returns a single object containing fleet details.
|
|
1600
1689
|
*/
|
|
1601
|
-
export const
|
|
1602
|
-
export const
|
|
1603
|
-
|
|
1690
|
+
export const zGetFleetResponse = zFleet;
|
|
1691
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1692
|
+
export const zUpdateFleetPath = z.object({
|
|
1693
|
+
cluster_id: z.string(),
|
|
1694
|
+
fleet_name: z.string()
|
|
1604
1695
|
});
|
|
1605
1696
|
/**
|
|
1606
|
-
*
|
|
1697
|
+
* Successfully updated.
|
|
1607
1698
|
*/
|
|
1608
|
-
export const
|
|
1609
|
-
export const
|
|
1610
|
-
|
|
1611
|
-
attachments: z.array(z.string()).optional()
|
|
1612
|
-
});
|
|
1613
|
-
export const zReplyTicketPath = z.object({
|
|
1614
|
-
ticket_id: z.string()
|
|
1699
|
+
export const zUpdateFleetResponse = z.string();
|
|
1700
|
+
export const zListChartsPath = z.object({
|
|
1701
|
+
cluster_id: z.string()
|
|
1615
1702
|
});
|
|
1616
1703
|
/**
|
|
1617
|
-
*
|
|
1704
|
+
* An array of charts
|
|
1618
1705
|
*/
|
|
1619
|
-
export const
|
|
1620
|
-
export const
|
|
1621
|
-
|
|
1622
|
-
|
|
1706
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1707
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1708
|
+
export const zCreateChartPath = z.object({
|
|
1709
|
+
cluster_id: z.string()
|
|
1623
1710
|
});
|
|
1624
1711
|
/**
|
|
1625
|
-
*
|
|
1712
|
+
* Successfully created. Returns created Chart ID.
|
|
1626
1713
|
*/
|
|
1627
|
-
export const
|
|
1714
|
+
export const zCreateChartResponse = z.string();
|
|
1715
|
+
export const zDeleteChartPath = z.object({
|
|
1716
|
+
cluster_id: z.string(),
|
|
1717
|
+
chart_name: z.string()
|
|
1718
|
+
});
|
|
1628
1719
|
/**
|
|
1629
|
-
*
|
|
1720
|
+
* Successfully deleted.
|
|
1630
1721
|
*/
|
|
1631
|
-
export const
|
|
1632
|
-
export const
|
|
1722
|
+
export const zDeleteChartResponse = z.string();
|
|
1723
|
+
export const zGetChartPath = z.object({
|
|
1724
|
+
cluster_id: z.string(),
|
|
1725
|
+
chart_name: z.string()
|
|
1726
|
+
});
|
|
1633
1727
|
/**
|
|
1634
|
-
*
|
|
1728
|
+
* Returns a single object containing chart details.
|
|
1635
1729
|
*/
|
|
1636
|
-
export const
|
|
1637
|
-
export const
|
|
1638
|
-
|
|
1730
|
+
export const zGetChartResponse = zChart;
|
|
1731
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1732
|
+
export const zUpdateChartPath = z.object({
|
|
1733
|
+
cluster_id: z.string(),
|
|
1734
|
+
chart_name: z.string()
|
|
1639
1735
|
});
|
|
1640
|
-
|
|
1641
|
-
|
|
1736
|
+
/**
|
|
1737
|
+
* Successfully updated.
|
|
1738
|
+
*/
|
|
1739
|
+
export const zUpdateChartResponse = z.string();
|
|
1740
|
+
/**
|
|
1741
|
+
* An array of clusters
|
|
1742
|
+
*/
|
|
1743
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1744
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1745
|
+
/**
|
|
1746
|
+
* Successfully created. Returns created Cluster ID.
|
|
1747
|
+
*/
|
|
1748
|
+
export const zCreateClusterResponse = z.string();
|
|
1749
|
+
export const zDeleteClusterPath = z.object({
|
|
1750
|
+
cluster_id: z.string()
|
|
1642
1751
|
});
|
|
1643
1752
|
/**
|
|
1644
|
-
*
|
|
1753
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1645
1754
|
*/
|
|
1646
|
-
export const
|
|
1647
|
-
export const
|
|
1648
|
-
|
|
1649
|
-
token_id: z.string()
|
|
1755
|
+
export const zDeleteClusterResponse = z.string();
|
|
1756
|
+
export const zGetClusterPath = z.object({
|
|
1757
|
+
cluster_id: z.string()
|
|
1650
1758
|
});
|
|
1651
1759
|
/**
|
|
1652
|
-
*
|
|
1760
|
+
* Returns a single object containing cluster details.
|
|
1653
1761
|
*/
|
|
1654
|
-
export const
|
|
1655
|
-
export const
|
|
1656
|
-
|
|
1762
|
+
export const zGetClusterResponse = zCluster;
|
|
1763
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1764
|
+
export const zUpdateClusterPath = z.object({
|
|
1765
|
+
cluster_id: z.string()
|
|
1657
1766
|
});
|
|
1658
1767
|
/**
|
|
1659
|
-
* Successfully updated. Returns updated
|
|
1768
|
+
* Successfully updated. Returns updated cluster details.
|
|
1660
1769
|
*/
|
|
1661
|
-
export const
|
|
1662
|
-
export const
|
|
1663
|
-
|
|
1770
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1771
|
+
export const zGetJoinInformationPath = z.object({
|
|
1772
|
+
cluster_id: z.string()
|
|
1664
1773
|
});
|
|
1665
1774
|
/**
|
|
1666
|
-
* An
|
|
1775
|
+
* An object of cluster join information
|
|
1667
1776
|
*/
|
|
1668
|
-
export const
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1777
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1778
|
+
export const zGetUsageQuery = z.object({
|
|
1779
|
+
granularity: z.enum([
|
|
1780
|
+
'hourly',
|
|
1781
|
+
'daily',
|
|
1782
|
+
'monthly'
|
|
1783
|
+
]).optional().default('daily')
|
|
1784
|
+
});
|
|
1672
1785
|
/**
|
|
1673
|
-
*
|
|
1786
|
+
* Usage data with facets for filtering
|
|
1674
1787
|
*/
|
|
1675
|
-
export const
|
|
1676
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1788
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1677
1789
|
/**
|
|
1678
|
-
*
|
|
1790
|
+
* 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.
|
|
1791
|
+
*
|
|
1679
1792
|
*/
|
|
1680
|
-
export const
|
|
1681
|
-
|
|
1682
|
-
user_id: z.string()
|
|
1793
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1794
|
+
id: z.string().optional()
|
|
1683
1795
|
});
|
|
1684
1796
|
/**
|
|
1685
|
-
*
|
|
1797
|
+
* An array of payment methods.
|
|
1686
1798
|
*/
|
|
1687
|
-
export const
|
|
1688
|
-
export const
|
|
1689
|
-
|
|
1799
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1800
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1801
|
+
paymentMethodId: z.string()
|
|
1690
1802
|
});
|
|
1691
1803
|
/**
|
|
1692
|
-
*
|
|
1804
|
+
* Default payment method updated.
|
|
1693
1805
|
*/
|
|
1694
|
-
export const
|
|
1695
|
-
export const
|
|
1696
|
-
|
|
1697
|
-
user_id: z.string()
|
|
1806
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1807
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1808
|
+
paymentMethodId: z.string()
|
|
1698
1809
|
});
|
|
1699
1810
|
/**
|
|
1700
|
-
*
|
|
1811
|
+
* Payment method deleted.
|
|
1701
1812
|
*/
|
|
1702
|
-
export const
|
|
1813
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1814
|
+
/**
|
|
1815
|
+
* An array of usage records.
|
|
1816
|
+
*/
|
|
1817
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1818
|
+
/**
|
|
1819
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1820
|
+
*/
|
|
1821
|
+
export const zGetContactResponse = zBillingContact;
|
|
1822
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1823
|
+
/**
|
|
1824
|
+
* Successfully updated. Returns updated organization details.
|
|
1825
|
+
*/
|
|
1826
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1827
|
+
/**
|
|
1828
|
+
* An array of the applied promotional credits records.
|
|
1829
|
+
*/
|
|
1830
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1831
|
+
export const zRedeemCreditsBody = z.object({
|
|
1832
|
+
code: z.string().optional()
|
|
1833
|
+
});
|
|
1703
1834
|
//# sourceMappingURL=zod.gen.js.map
|