@cloudfleet/sdk 0.0.1-c034297 → 0.0.1-c21ba6a
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 +489 -588
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +447 -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 +566 -225
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +757 -317
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +243 -214
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +347 -312
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1164 -789
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1719 -1472
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +530 -352
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -13
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,27 +177,57 @@ 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(),
|
|
230
|
+
login_server: z.string(),
|
|
215
231
|
bootstrap_token: z.string(),
|
|
216
232
|
versions: z.object({
|
|
217
233
|
kubernetes: z.string(),
|
|
@@ -225,24 +241,55 @@ export const zClusterJoinInformation = z.object({
|
|
|
225
241
|
gcp_workload_identity_provider: z.string()
|
|
226
242
|
})
|
|
227
243
|
});
|
|
244
|
+
/**
|
|
245
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
246
|
+
*/
|
|
228
247
|
export const zCluster = z.object({
|
|
229
248
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
-
tier: z.enum([
|
|
231
|
-
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
249
|
+
tier: z.enum([
|
|
250
|
+
'basic',
|
|
251
|
+
'pro',
|
|
252
|
+
'enterprise'
|
|
253
|
+
]).default('basic'),
|
|
254
|
+
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).default('1.x.x-cfke.x'),
|
|
255
|
+
release_channel: z.enum([
|
|
256
|
+
'rapid',
|
|
257
|
+
'stable',
|
|
258
|
+
'extended'
|
|
259
|
+
]).default('rapid'),
|
|
260
|
+
features: z.object({
|
|
261
|
+
gpu_sharing_strategy: z.enum([
|
|
262
|
+
'none',
|
|
263
|
+
'mps',
|
|
264
|
+
'time_slicing'
|
|
265
|
+
]).default('none'),
|
|
266
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
267
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
268
|
+
}).default({
|
|
269
|
+
gpu_sharing_strategy: 'none',
|
|
270
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
271
|
+
cilium_socket_lb_host_namespace_only: false
|
|
272
|
+
}),
|
|
273
|
+
region: z.string(),
|
|
274
|
+
networking: z.object({
|
|
275
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
276
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
277
|
+
dual_stack: z.boolean(),
|
|
278
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
279
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
280
|
+
}).default({
|
|
281
|
+
pod_cidr: '10.244.0.0/16',
|
|
282
|
+
service_cidr: '10.96.0.0/12',
|
|
283
|
+
dual_stack: false,
|
|
284
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
285
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
286
|
+
}),
|
|
237
287
|
id: z.uuid(),
|
|
238
288
|
status: z.enum([
|
|
239
|
-
'active',
|
|
240
|
-
'disabled',
|
|
241
|
-
'deleted',
|
|
242
289
|
'creating',
|
|
243
290
|
'deployed',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
291
|
+
'updating',
|
|
292
|
+
'disabled'
|
|
246
293
|
]),
|
|
247
294
|
endpoint: z.union([
|
|
248
295
|
z.url(),
|
|
@@ -256,14 +303,41 @@ export const zCluster = z.object({
|
|
|
256
303
|
version_current: z.string().optional(),
|
|
257
304
|
created_at: z.string().optional(),
|
|
258
305
|
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()
|
|
306
|
+
ready: z.boolean()
|
|
261
307
|
});
|
|
308
|
+
/**
|
|
309
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
310
|
+
*/
|
|
262
311
|
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
|
-
|
|
312
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
313
|
+
tier: z.enum([
|
|
314
|
+
'basic',
|
|
315
|
+
'pro',
|
|
316
|
+
'enterprise'
|
|
317
|
+
]).optional().default('basic'),
|
|
318
|
+
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional().default('1.x.x-cfke.x'),
|
|
319
|
+
release_channel: z.enum([
|
|
320
|
+
'rapid',
|
|
321
|
+
'stable',
|
|
322
|
+
'extended'
|
|
323
|
+
]).optional().default('rapid'),
|
|
324
|
+
features: z.object({
|
|
325
|
+
gpu_sharing_strategy: z.enum([
|
|
326
|
+
'none',
|
|
327
|
+
'mps',
|
|
328
|
+
'time_slicing'
|
|
329
|
+
]).optional().default('none'),
|
|
330
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
331
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
332
|
+
}).optional().default({
|
|
333
|
+
gpu_sharing_strategy: 'none',
|
|
334
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
335
|
+
cilium_socket_lb_host_namespace_only: false
|
|
336
|
+
})
|
|
266
337
|
});
|
|
338
|
+
/**
|
|
339
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
340
|
+
*/
|
|
267
341
|
export const zFleetCreateInput = z.object({
|
|
268
342
|
limits: z.object({
|
|
269
343
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -274,7 +348,7 @@ export const zFleetCreateInput = z.object({
|
|
|
274
348
|
}).optional(),
|
|
275
349
|
hetzner: z.object({
|
|
276
350
|
enabled: z.boolean(),
|
|
277
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
351
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
278
352
|
}).optional(),
|
|
279
353
|
aws: z.object({
|
|
280
354
|
enabled: z.boolean(),
|
|
@@ -442,7 +516,7 @@ export const zFleetCreateInput = z.object({
|
|
|
442
516
|
'x8g',
|
|
443
517
|
'z1d',
|
|
444
518
|
'z3'
|
|
445
|
-
])).optional(),
|
|
519
|
+
])).optional().default([]),
|
|
446
520
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
447
521
|
'africa-south1',
|
|
448
522
|
'ap-northeast-1',
|
|
@@ -508,11 +582,19 @@ export const zFleetCreateInput = z.object({
|
|
|
508
582
|
'us-west2',
|
|
509
583
|
'us-west3',
|
|
510
584
|
'us-west4'
|
|
511
|
-
])).optional()
|
|
512
|
-
}).optional()
|
|
585
|
+
])).optional().default([])
|
|
586
|
+
}).optional().default({
|
|
587
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
588
|
+
'kubernetes.io/arch': ['amd64'],
|
|
589
|
+
'cfke.io/instance-family': [],
|
|
590
|
+
'topology.kubernetes.io/region': []
|
|
591
|
+
}),
|
|
513
592
|
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
514
593
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
515
594
|
});
|
|
595
|
+
/**
|
|
596
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
597
|
+
*/
|
|
516
598
|
export const zFleet = z.object({
|
|
517
599
|
limits: z.object({
|
|
518
600
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -530,8 +612,8 @@ export const zFleet = z.object({
|
|
|
530
612
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
531
613
|
}).optional(),
|
|
532
614
|
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).
|
|
615
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
616
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
535
617
|
'cfke.io/instance-family': z.array(z.enum([
|
|
536
618
|
'a1',
|
|
537
619
|
'a2',
|
|
@@ -691,7 +773,7 @@ export const zFleet = z.object({
|
|
|
691
773
|
'x8g',
|
|
692
774
|
'z1d',
|
|
693
775
|
'z3'
|
|
694
|
-
])).optional(),
|
|
776
|
+
])).optional().default([]),
|
|
695
777
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
696
778
|
'africa-south1',
|
|
697
779
|
'ap-northeast-1',
|
|
@@ -757,11 +839,23 @@ export const zFleet = z.object({
|
|
|
757
839
|
'us-west2',
|
|
758
840
|
'us-west3',
|
|
759
841
|
'us-west4'
|
|
760
|
-
])).optional()
|
|
761
|
-
}).
|
|
842
|
+
])).optional().default([])
|
|
843
|
+
}).default({
|
|
844
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
845
|
+
'kubernetes.io/arch': ['amd64'],
|
|
846
|
+
'cfke.io/instance-family': [],
|
|
847
|
+
'topology.kubernetes.io/region': []
|
|
848
|
+
}),
|
|
762
849
|
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])?$/)
|
|
850
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
851
|
+
ready: z.boolean(),
|
|
852
|
+
status_message: z.string().optional(),
|
|
853
|
+
created_at: z.string(),
|
|
854
|
+
updated_at: z.string()
|
|
764
855
|
});
|
|
856
|
+
/**
|
|
857
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
858
|
+
*/
|
|
765
859
|
export const zFleetUpdateInput = z.object({
|
|
766
860
|
limits: z.object({
|
|
767
861
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -772,15 +866,15 @@ export const zFleetUpdateInput = z.object({
|
|
|
772
866
|
}).optional(),
|
|
773
867
|
hetzner: z.object({
|
|
774
868
|
enabled: z.boolean(),
|
|
775
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
869
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
776
870
|
}).optional(),
|
|
777
871
|
aws: z.object({
|
|
778
872
|
enabled: z.boolean(),
|
|
779
873
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
780
874
|
}).optional(),
|
|
781
875
|
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(),
|
|
876
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
877
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
784
878
|
'cfke.io/instance-family': z.array(z.enum([
|
|
785
879
|
'a1',
|
|
786
880
|
'a2',
|
|
@@ -940,7 +1034,7 @@ export const zFleetUpdateInput = z.object({
|
|
|
940
1034
|
'x8g',
|
|
941
1035
|
'z1d',
|
|
942
1036
|
'z3'
|
|
943
|
-
])).optional(),
|
|
1037
|
+
])).optional().default([]),
|
|
944
1038
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
945
1039
|
'africa-south1',
|
|
946
1040
|
'ap-northeast-1',
|
|
@@ -1006,16 +1100,68 @@ export const zFleetUpdateInput = z.object({
|
|
|
1006
1100
|
'us-west2',
|
|
1007
1101
|
'us-west3',
|
|
1008
1102
|
'us-west4'
|
|
1009
|
-
])).optional()
|
|
1010
|
-
}).optional()
|
|
1011
|
-
|
|
1103
|
+
])).optional().default([])
|
|
1104
|
+
}).optional().default({
|
|
1105
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1106
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1107
|
+
'cfke.io/instance-family': [],
|
|
1108
|
+
'topology.kubernetes.io/region': []
|
|
1109
|
+
}),
|
|
1110
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
|
|
1111
|
+
});
|
|
1112
|
+
export const zInviteCreateInput = z.object({
|
|
1113
|
+
email: z.email(),
|
|
1114
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1012
1115
|
});
|
|
1013
1116
|
export const zInvite = z.object({
|
|
1014
1117
|
id: z.string().optional(),
|
|
1015
1118
|
organization_id: z.uuid().optional(),
|
|
1016
1119
|
date_created: z.iso.datetime(),
|
|
1017
1120
|
email: z.email().optional(),
|
|
1018
|
-
code: z.string().optional()
|
|
1121
|
+
code: z.string().optional(),
|
|
1122
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1123
|
+
});
|
|
1124
|
+
export const zInvoicePaymentAttempt = z.object({
|
|
1125
|
+
invoice_id: z.string(),
|
|
1126
|
+
number: z.string(),
|
|
1127
|
+
amount: z.number(),
|
|
1128
|
+
currency: z.string(),
|
|
1129
|
+
status: z.enum([
|
|
1130
|
+
'paid',
|
|
1131
|
+
'processing',
|
|
1132
|
+
'requires_action',
|
|
1133
|
+
'failed'
|
|
1134
|
+
]),
|
|
1135
|
+
client_secret: z.string(),
|
|
1136
|
+
failure_code: z.string(),
|
|
1137
|
+
failure_message: z.string()
|
|
1138
|
+
});
|
|
1139
|
+
export const zInvoicePaymentResult = z.object({
|
|
1140
|
+
code: z.enum([
|
|
1141
|
+
'paid',
|
|
1142
|
+
'processing',
|
|
1143
|
+
'action_required',
|
|
1144
|
+
'partially_paid',
|
|
1145
|
+
'failed',
|
|
1146
|
+
'nothing_due',
|
|
1147
|
+
'bank_transfer_due'
|
|
1148
|
+
]),
|
|
1149
|
+
message: z.string(),
|
|
1150
|
+
results: z.array(z.object({
|
|
1151
|
+
invoice_id: z.string(),
|
|
1152
|
+
number: z.string(),
|
|
1153
|
+
amount: z.number(),
|
|
1154
|
+
currency: z.string(),
|
|
1155
|
+
status: z.enum([
|
|
1156
|
+
'paid',
|
|
1157
|
+
'processing',
|
|
1158
|
+
'requires_action',
|
|
1159
|
+
'failed'
|
|
1160
|
+
]),
|
|
1161
|
+
client_secret: z.string(),
|
|
1162
|
+
failure_code: z.string(),
|
|
1163
|
+
failure_message: z.string()
|
|
1164
|
+
}))
|
|
1019
1165
|
});
|
|
1020
1166
|
export const zInvoice = z.object({
|
|
1021
1167
|
id: z.string().optional(),
|
|
@@ -1055,21 +1201,28 @@ export const zMarketplaceListing = z.object({
|
|
|
1055
1201
|
}).optional()
|
|
1056
1202
|
});
|
|
1057
1203
|
export const zOrganizationCreateInput = z.object({
|
|
1204
|
+
type: z.enum(['business', 'personal']),
|
|
1058
1205
|
email: z.email(),
|
|
1059
|
-
first_name: z.string(),
|
|
1060
|
-
last_name: z.string(),
|
|
1206
|
+
first_name: z.string().min(1),
|
|
1207
|
+
last_name: z.string().min(1),
|
|
1061
1208
|
company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
|
|
1062
1209
|
password: z.string().min(8)
|
|
1063
1210
|
});
|
|
1211
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1212
|
+
id: z.string()
|
|
1213
|
+
});
|
|
1064
1214
|
export const zOrganization = z.object({
|
|
1065
1215
|
id: z.uuid(),
|
|
1066
1216
|
name: z.string().min(2).max(120).optional(),
|
|
1217
|
+
type: z.enum(['business', 'personal']),
|
|
1067
1218
|
date_created: z.iso.datetime(),
|
|
1068
1219
|
quota: z.object({
|
|
1069
1220
|
basic_clusters_max: z.int().gte(0),
|
|
1070
1221
|
basic_clusters_available: z.int(),
|
|
1071
1222
|
pro_clusters_max: z.int().gte(0),
|
|
1072
1223
|
pro_clusters_available: z.int(),
|
|
1224
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1225
|
+
enterprise_clusters_available: z.int(),
|
|
1073
1226
|
fleets_max: z.int().gte(0),
|
|
1074
1227
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1075
1228
|
regions: z.array(z.string()).min(1),
|
|
@@ -1083,32 +1236,36 @@ export const zOrganization = z.object({
|
|
|
1083
1236
|
'active',
|
|
1084
1237
|
'closed',
|
|
1085
1238
|
'suspended'
|
|
1239
|
+
]),
|
|
1240
|
+
verification: z.enum([
|
|
1241
|
+
'none',
|
|
1242
|
+
'submitted',
|
|
1243
|
+
'verified'
|
|
1086
1244
|
])
|
|
1087
1245
|
});
|
|
1088
1246
|
export const zPaymentMethod = z.object({
|
|
1089
|
-
id: z.
|
|
1090
|
-
|
|
1091
|
-
|
|
1247
|
+
id: z.string(),
|
|
1248
|
+
type: z.enum([
|
|
1249
|
+
'card',
|
|
1250
|
+
'sepa_debit',
|
|
1251
|
+
'bank_transfer'
|
|
1252
|
+
]),
|
|
1092
1253
|
last4: z.string(),
|
|
1093
1254
|
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
|
-
])
|
|
1255
|
+
exp_year: z.int(),
|
|
1256
|
+
brand: z.string(),
|
|
1257
|
+
iban: z.string(),
|
|
1258
|
+
bic: z.string(),
|
|
1259
|
+
account_holder_name: z.string(),
|
|
1260
|
+
is_default: z.boolean()
|
|
1106
1261
|
});
|
|
1107
1262
|
export const zPlatformQuota = z.object({
|
|
1108
1263
|
basic_clusters_max: z.int().gte(0),
|
|
1109
1264
|
basic_clusters_available: z.int(),
|
|
1110
1265
|
pro_clusters_max: z.int().gte(0),
|
|
1111
1266
|
pro_clusters_available: z.int(),
|
|
1267
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1268
|
+
enterprise_clusters_available: z.int(),
|
|
1112
1269
|
fleets_max: z.int().gte(0),
|
|
1113
1270
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1114
1271
|
regions: z.array(z.string()).min(1),
|
|
@@ -1179,39 +1336,6 @@ export const zTicketCreateInput = z.object({
|
|
|
1179
1336
|
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1180
1337
|
properties: z.record(z.string(), z.unknown()).optional()
|
|
1181
1338
|
});
|
|
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
1339
|
export const zTicketMessageInput = z.object({
|
|
1216
1340
|
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1217
1341
|
});
|
|
@@ -1277,26 +1401,58 @@ export const zTokenUpdateInput = z.object({
|
|
|
1277
1401
|
});
|
|
1278
1402
|
export const zUsageFacets = z.object({
|
|
1279
1403
|
cluster_id: z.array(z.string()).optional(),
|
|
1280
|
-
product: z.array(z.
|
|
1404
|
+
product: z.array(z.enum([
|
|
1405
|
+
'cfke_controlplane_basic',
|
|
1406
|
+
'cfke_controlplane_pro',
|
|
1407
|
+
'cfke_controlplane_enterprise',
|
|
1408
|
+
'cfke_connected_nodes_basic',
|
|
1409
|
+
'cfke_connected_nodes_pro',
|
|
1410
|
+
'cfke_connected_nodes_enterprise',
|
|
1411
|
+
'cfcr_storage'
|
|
1412
|
+
])).optional()
|
|
1281
1413
|
});
|
|
1282
1414
|
export const zUsageResponse = z.object({
|
|
1283
1415
|
data: z.array(z.object({
|
|
1284
1416
|
hour: z.string(),
|
|
1285
1417
|
cluster_id: z.string(),
|
|
1286
|
-
product: z.
|
|
1418
|
+
product: z.enum([
|
|
1419
|
+
'cfke_controlplane_basic',
|
|
1420
|
+
'cfke_controlplane_pro',
|
|
1421
|
+
'cfke_controlplane_enterprise',
|
|
1422
|
+
'cfke_connected_nodes_basic',
|
|
1423
|
+
'cfke_connected_nodes_pro',
|
|
1424
|
+
'cfke_connected_nodes_enterprise',
|
|
1425
|
+
'cfcr_storage'
|
|
1426
|
+
]),
|
|
1287
1427
|
value: z.number(),
|
|
1288
1428
|
price: z.number(),
|
|
1289
1429
|
total: z.number()
|
|
1290
1430
|
})),
|
|
1291
1431
|
facets: z.object({
|
|
1292
1432
|
cluster_id: z.array(z.string()).optional(),
|
|
1293
|
-
product: z.array(z.
|
|
1433
|
+
product: z.array(z.enum([
|
|
1434
|
+
'cfke_controlplane_basic',
|
|
1435
|
+
'cfke_controlplane_pro',
|
|
1436
|
+
'cfke_controlplane_enterprise',
|
|
1437
|
+
'cfke_connected_nodes_basic',
|
|
1438
|
+
'cfke_connected_nodes_pro',
|
|
1439
|
+
'cfke_connected_nodes_enterprise',
|
|
1440
|
+
'cfcr_storage'
|
|
1441
|
+
])).optional()
|
|
1294
1442
|
})
|
|
1295
1443
|
});
|
|
1296
1444
|
export const zUsage = z.object({
|
|
1297
1445
|
hour: z.string(),
|
|
1298
1446
|
cluster_id: z.string(),
|
|
1299
|
-
product: z.
|
|
1447
|
+
product: z.enum([
|
|
1448
|
+
'cfke_controlplane_basic',
|
|
1449
|
+
'cfke_controlplane_pro',
|
|
1450
|
+
'cfke_controlplane_enterprise',
|
|
1451
|
+
'cfke_connected_nodes_basic',
|
|
1452
|
+
'cfke_connected_nodes_pro',
|
|
1453
|
+
'cfke_connected_nodes_enterprise',
|
|
1454
|
+
'cfcr_storage'
|
|
1455
|
+
]),
|
|
1300
1456
|
value: z.number(),
|
|
1301
1457
|
price: z.number(),
|
|
1302
1458
|
total: z.number()
|
|
@@ -1306,9 +1462,7 @@ export const zUserCreateInput = z.object({
|
|
|
1306
1462
|
first_name: z.string().min(1).max(50),
|
|
1307
1463
|
last_name: z.string().min(1).max(50),
|
|
1308
1464
|
code: z.string(),
|
|
1309
|
-
password: z.string().min(8)
|
|
1310
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
1311
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1465
|
+
password: z.string().min(8)
|
|
1312
1466
|
});
|
|
1313
1467
|
export const zUser = z.object({
|
|
1314
1468
|
email: z.email(),
|
|
@@ -1326,202 +1480,162 @@ export const zUserUpdateInput = z.object({
|
|
|
1326
1480
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1327
1481
|
status: z.enum(['active', 'inactive']).optional()
|
|
1328
1482
|
});
|
|
1329
|
-
export const
|
|
1330
|
-
|
|
1331
|
-
'hourly',
|
|
1332
|
-
'daily',
|
|
1333
|
-
'monthly'
|
|
1334
|
-
]).optional().default('daily')
|
|
1483
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1484
|
+
email: z.string()
|
|
1335
1485
|
});
|
|
1336
1486
|
/**
|
|
1337
|
-
*
|
|
1487
|
+
* An array of organizations the user belongs to.
|
|
1338
1488
|
*/
|
|
1339
|
-
export const
|
|
1489
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1490
|
+
realm: z.string().optional(),
|
|
1491
|
+
displayName: z.string().optional()
|
|
1492
|
+
}));
|
|
1340
1493
|
/**
|
|
1341
|
-
*
|
|
1494
|
+
* An array of users
|
|
1342
1495
|
*/
|
|
1343
|
-
export const
|
|
1496
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1497
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1344
1498
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
*
|
|
1499
|
+
* Successfully created. Returns created user details.
|
|
1347
1500
|
*/
|
|
1348
|
-
export const
|
|
1349
|
-
|
|
1501
|
+
export const zCreateUserResponse = zUser;
|
|
1502
|
+
export const zDeleteUserPath = z.object({
|
|
1503
|
+
user_id: z.string()
|
|
1350
1504
|
});
|
|
1351
1505
|
/**
|
|
1352
|
-
*
|
|
1506
|
+
* User profile information
|
|
1353
1507
|
*/
|
|
1354
|
-
export const
|
|
1508
|
+
export const zDeleteUserResponse = zUser;
|
|
1509
|
+
export const zGetUserPath = z.object({
|
|
1510
|
+
user_id: z.string()
|
|
1511
|
+
});
|
|
1355
1512
|
/**
|
|
1356
|
-
*
|
|
1513
|
+
* User profile information
|
|
1357
1514
|
*/
|
|
1358
|
-
export const
|
|
1359
|
-
export const
|
|
1515
|
+
export const zGetUserResponse = zUser;
|
|
1516
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1517
|
+
export const zUpdateUserPath = z.object({
|
|
1518
|
+
user_id: z.string()
|
|
1519
|
+
});
|
|
1360
1520
|
/**
|
|
1361
|
-
* Successfully
|
|
1521
|
+
* Successfully created. Returns created user details.
|
|
1362
1522
|
*/
|
|
1363
|
-
export const
|
|
1523
|
+
export const zUpdateUserResponse = zUser;
|
|
1364
1524
|
/**
|
|
1365
|
-
*
|
|
1525
|
+
* Returns a list of access token details with masked secrets.
|
|
1366
1526
|
*/
|
|
1367
|
-
export const
|
|
1368
|
-
export const
|
|
1369
|
-
code: z.string().optional()
|
|
1370
|
-
});
|
|
1371
|
-
export const zListChartsPath = z.object({
|
|
1372
|
-
cluster_id: z.string()
|
|
1373
|
-
});
|
|
1527
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1528
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1374
1529
|
/**
|
|
1375
|
-
*
|
|
1530
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1376
1531
|
*/
|
|
1377
|
-
export const
|
|
1378
|
-
export const
|
|
1379
|
-
|
|
1380
|
-
cluster_id: z.string()
|
|
1532
|
+
export const zCreateTokenResponse = zToken;
|
|
1533
|
+
export const zDeleteTokenPath = z.object({
|
|
1534
|
+
token_id: z.string()
|
|
1381
1535
|
});
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
*/
|
|
1385
|
-
export const zCreateChartResponse = z.string();
|
|
1386
|
-
export const zDeleteChartPath = z.object({
|
|
1387
|
-
cluster_id: z.string(),
|
|
1388
|
-
chart_name: z.string()
|
|
1536
|
+
export const zGetTokenPath = z.object({
|
|
1537
|
+
token_id: z.string()
|
|
1389
1538
|
});
|
|
1390
1539
|
/**
|
|
1391
|
-
*
|
|
1540
|
+
* Returns access token details with masked secret.
|
|
1392
1541
|
*/
|
|
1393
|
-
export const
|
|
1394
|
-
export const
|
|
1395
|
-
|
|
1396
|
-
|
|
1542
|
+
export const zGetTokenResponse = zToken;
|
|
1543
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1544
|
+
export const zUpdateTokenPath = z.object({
|
|
1545
|
+
token_id: z.string()
|
|
1397
1546
|
});
|
|
1398
1547
|
/**
|
|
1399
|
-
* Returns
|
|
1548
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1400
1549
|
*/
|
|
1401
|
-
export const
|
|
1402
|
-
export const
|
|
1403
|
-
|
|
1404
|
-
cluster_id: z.string(),
|
|
1405
|
-
chart_name: z.string()
|
|
1550
|
+
export const zUpdateTokenResponse = zToken;
|
|
1551
|
+
export const zRegenerateTokenPath = z.object({
|
|
1552
|
+
token_id: z.string()
|
|
1406
1553
|
});
|
|
1407
1554
|
/**
|
|
1408
|
-
* Successfully updated.
|
|
1555
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1409
1556
|
*/
|
|
1410
|
-
export const
|
|
1411
|
-
export const zListFleetsPath = z.object({
|
|
1412
|
-
cluster_id: z.string()
|
|
1413
|
-
});
|
|
1557
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1414
1558
|
/**
|
|
1415
|
-
* An array of
|
|
1559
|
+
* An array of tickets for the organization, newest first.
|
|
1416
1560
|
*/
|
|
1417
|
-
export const
|
|
1418
|
-
export const
|
|
1419
|
-
|
|
1420
|
-
|
|
1561
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1562
|
+
export const zCreateTicketBody = z.object({
|
|
1563
|
+
payload: z.string().optional(),
|
|
1564
|
+
attachments: z.array(z.string()).optional()
|
|
1421
1565
|
});
|
|
1422
1566
|
/**
|
|
1423
|
-
*
|
|
1567
|
+
* Ticket created.
|
|
1424
1568
|
*/
|
|
1425
|
-
export const
|
|
1426
|
-
export const
|
|
1427
|
-
|
|
1428
|
-
fleet_name: z.string()
|
|
1569
|
+
export const zCreateTicketResponse = zTicket;
|
|
1570
|
+
export const zCloseTicketPath = z.object({
|
|
1571
|
+
ticket_id: z.string()
|
|
1429
1572
|
});
|
|
1430
1573
|
/**
|
|
1431
|
-
*
|
|
1574
|
+
* Ticket closed.
|
|
1432
1575
|
*/
|
|
1433
|
-
export const
|
|
1434
|
-
export const
|
|
1435
|
-
|
|
1436
|
-
fleet_name: z.string()
|
|
1576
|
+
export const zCloseTicketResponse = zTicket;
|
|
1577
|
+
export const zGetTicketPath = z.object({
|
|
1578
|
+
ticket_id: z.string()
|
|
1437
1579
|
});
|
|
1438
1580
|
/**
|
|
1439
|
-
*
|
|
1581
|
+
* Ticket with messages (internal notes excluded).
|
|
1440
1582
|
*/
|
|
1441
|
-
export const
|
|
1442
|
-
export const
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1583
|
+
export const zGetTicketResponse = zTicket;
|
|
1584
|
+
export const zReplyTicketBody = z.object({
|
|
1585
|
+
payload: z.string().optional(),
|
|
1586
|
+
attachments: z.array(z.string()).optional()
|
|
1587
|
+
});
|
|
1588
|
+
export const zReplyTicketPath = z.object({
|
|
1589
|
+
ticket_id: z.string()
|
|
1446
1590
|
});
|
|
1447
1591
|
/**
|
|
1448
|
-
*
|
|
1592
|
+
* Reply appended.
|
|
1449
1593
|
*/
|
|
1450
|
-
export const
|
|
1451
|
-
export const
|
|
1452
|
-
|
|
1594
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1595
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1596
|
+
ticket_id: z.string(),
|
|
1597
|
+
attachment_id: z.string()
|
|
1453
1598
|
});
|
|
1454
1599
|
/**
|
|
1455
|
-
*
|
|
1600
|
+
* Attachment binary stream.
|
|
1456
1601
|
*/
|
|
1457
|
-
export const
|
|
1458
|
-
export const zCreateClusterBody = zClusterCreateInput;
|
|
1602
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1459
1603
|
/**
|
|
1460
|
-
*
|
|
1604
|
+
* List of repositories
|
|
1461
1605
|
*/
|
|
1462
|
-
export const
|
|
1463
|
-
export const
|
|
1464
|
-
|
|
1606
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1607
|
+
export const zListTagsPath = z.object({
|
|
1608
|
+
region: z.string(),
|
|
1609
|
+
repository: z.string()
|
|
1465
1610
|
});
|
|
1466
1611
|
/**
|
|
1467
|
-
*
|
|
1612
|
+
* Repository with tags
|
|
1468
1613
|
*/
|
|
1469
|
-
export const
|
|
1470
|
-
export const
|
|
1471
|
-
|
|
1614
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1615
|
+
export const zDeleteTagPath = z.object({
|
|
1616
|
+
region: z.string(),
|
|
1617
|
+
repository: z.string(),
|
|
1618
|
+
tag: z.string()
|
|
1472
1619
|
});
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1478
|
-
export const zUpdateClusterPath = z.object({
|
|
1479
|
-
cluster_id: z.string()
|
|
1620
|
+
export const zGetTagPath = z.object({
|
|
1621
|
+
region: z.string(),
|
|
1622
|
+
repository: z.string(),
|
|
1623
|
+
tag: z.string()
|
|
1480
1624
|
});
|
|
1481
1625
|
/**
|
|
1482
|
-
*
|
|
1483
|
-
*/
|
|
1484
|
-
export const zUpdateClusterResponse = zCluster;
|
|
1485
|
-
export const zGetJoinInformationPath = z.object({
|
|
1486
|
-
cluster_id: z.string()
|
|
1487
|
-
});
|
|
1488
|
-
/**
|
|
1489
|
-
* An object of cluster join information
|
|
1490
|
-
*/
|
|
1491
|
-
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1492
|
-
/**
|
|
1493
|
-
* An array of invites
|
|
1494
|
-
*/
|
|
1495
|
-
export const zListInvitesResponse = z.array(zInvite);
|
|
1496
|
-
export const zCreateInviteBody = z.object({
|
|
1497
|
-
email: z.string().optional()
|
|
1498
|
-
});
|
|
1499
|
-
/**
|
|
1500
|
-
* Successfully created. Returns created invite details.
|
|
1501
|
-
*/
|
|
1502
|
-
export const zCreateInviteResponse = zInvite;
|
|
1503
|
-
export const zGetInvitePath = z.object({
|
|
1504
|
-
code: z.string()
|
|
1505
|
-
});
|
|
1506
|
-
/**
|
|
1507
|
-
* Returns a single object containing invite details.
|
|
1626
|
+
* Tag details
|
|
1508
1627
|
*/
|
|
1509
|
-
export const
|
|
1510
|
-
export const zDeleteInvitePath = z.object({
|
|
1511
|
-
email: z.string()
|
|
1512
|
-
});
|
|
1628
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1513
1629
|
/**
|
|
1514
|
-
*
|
|
1630
|
+
* Returns a single object containing organization details.
|
|
1515
1631
|
*/
|
|
1516
|
-
export const
|
|
1517
|
-
export const
|
|
1518
|
-
chart_name: z.string(),
|
|
1519
|
-
version_channel: z.string()
|
|
1520
|
-
});
|
|
1632
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1633
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1521
1634
|
/**
|
|
1522
|
-
*
|
|
1635
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1636
|
+
*
|
|
1523
1637
|
*/
|
|
1524
|
-
export const
|
|
1638
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1525
1639
|
/**
|
|
1526
1640
|
* JSON-RPC 2.0 request payload
|
|
1527
1641
|
*/
|
|
@@ -1550,154 +1664,218 @@ export const zPostMcpResponse = z.object({
|
|
|
1550
1664
|
}).optional()
|
|
1551
1665
|
});
|
|
1552
1666
|
/**
|
|
1553
|
-
*
|
|
1667
|
+
* An array of chart listings in the marketplace.
|
|
1554
1668
|
*/
|
|
1555
|
-
export const
|
|
1556
|
-
export const
|
|
1669
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1670
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1671
|
+
chart_name: z.string(),
|
|
1672
|
+
version_channel: z.string()
|
|
1673
|
+
});
|
|
1557
1674
|
/**
|
|
1558
|
-
*
|
|
1675
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1559
1676
|
*/
|
|
1560
|
-
export const
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1677
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1678
|
+
/**
|
|
1679
|
+
* An array of invites
|
|
1680
|
+
*/
|
|
1681
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1682
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1683
|
+
/**
|
|
1684
|
+
* Successfully created. Returns created invite details.
|
|
1685
|
+
*/
|
|
1686
|
+
export const zCreateInviteResponse = zInvite;
|
|
1687
|
+
export const zGetInvitePath = z.object({
|
|
1688
|
+
code: z.string()
|
|
1564
1689
|
});
|
|
1565
1690
|
/**
|
|
1566
|
-
*
|
|
1691
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1567
1692
|
*/
|
|
1568
|
-
export const
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
repository: z.string(),
|
|
1572
|
-
tag: z.string()
|
|
1693
|
+
export const zGetInviteResponse = z.object({
|
|
1694
|
+
email: z.email().optional(),
|
|
1695
|
+
organization_id: z.string().optional()
|
|
1573
1696
|
});
|
|
1574
|
-
export const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1697
|
+
export const zDeleteInvitePath = z.object({
|
|
1698
|
+
email: z.email()
|
|
1699
|
+
});
|
|
1700
|
+
export const zQueryClusterPath = z.object({
|
|
1701
|
+
cluster_id: z.string()
|
|
1702
|
+
});
|
|
1703
|
+
export const zListFleetsPath = z.object({
|
|
1704
|
+
cluster_id: z.string()
|
|
1578
1705
|
});
|
|
1579
1706
|
/**
|
|
1580
|
-
*
|
|
1707
|
+
* An array of fleets
|
|
1581
1708
|
*/
|
|
1582
|
-
export const
|
|
1709
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1710
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1711
|
+
export const zCreateFleetPath = z.object({
|
|
1712
|
+
cluster_id: z.string()
|
|
1713
|
+
});
|
|
1583
1714
|
/**
|
|
1584
|
-
*
|
|
1715
|
+
* Successfully created. Returns created Fleet ID.
|
|
1585
1716
|
*/
|
|
1586
|
-
export const
|
|
1587
|
-
export const
|
|
1588
|
-
|
|
1589
|
-
|
|
1717
|
+
export const zCreateFleetResponse = z.string();
|
|
1718
|
+
export const zDeleteFleetPath = z.object({
|
|
1719
|
+
cluster_id: z.string(),
|
|
1720
|
+
fleet_name: z.string()
|
|
1590
1721
|
});
|
|
1591
1722
|
/**
|
|
1592
|
-
*
|
|
1723
|
+
* Successfully deleted.
|
|
1593
1724
|
*/
|
|
1594
|
-
export const
|
|
1595
|
-
export const
|
|
1596
|
-
|
|
1725
|
+
export const zDeleteFleetResponse = z.string();
|
|
1726
|
+
export const zGetFleetPath = z.object({
|
|
1727
|
+
cluster_id: z.string(),
|
|
1728
|
+
fleet_name: z.string()
|
|
1597
1729
|
});
|
|
1598
1730
|
/**
|
|
1599
|
-
*
|
|
1731
|
+
* Returns a single object containing fleet details.
|
|
1600
1732
|
*/
|
|
1601
|
-
export const
|
|
1602
|
-
export const
|
|
1603
|
-
|
|
1733
|
+
export const zGetFleetResponse = zFleet;
|
|
1734
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1735
|
+
export const zUpdateFleetPath = z.object({
|
|
1736
|
+
cluster_id: z.string(),
|
|
1737
|
+
fleet_name: z.string()
|
|
1604
1738
|
});
|
|
1605
1739
|
/**
|
|
1606
|
-
*
|
|
1740
|
+
* Successfully updated.
|
|
1607
1741
|
*/
|
|
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()
|
|
1742
|
+
export const zUpdateFleetResponse = z.string();
|
|
1743
|
+
export const zListChartsPath = z.object({
|
|
1744
|
+
cluster_id: z.string()
|
|
1615
1745
|
});
|
|
1616
1746
|
/**
|
|
1617
|
-
*
|
|
1747
|
+
* An array of charts
|
|
1618
1748
|
*/
|
|
1619
|
-
export const
|
|
1620
|
-
export const
|
|
1621
|
-
|
|
1622
|
-
|
|
1749
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1750
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1751
|
+
export const zCreateChartPath = z.object({
|
|
1752
|
+
cluster_id: z.string()
|
|
1623
1753
|
});
|
|
1624
1754
|
/**
|
|
1625
|
-
*
|
|
1755
|
+
* Successfully created. Returns created Chart ID.
|
|
1626
1756
|
*/
|
|
1627
|
-
export const
|
|
1757
|
+
export const zCreateChartResponse = z.string();
|
|
1758
|
+
export const zDeleteChartPath = z.object({
|
|
1759
|
+
cluster_id: z.string(),
|
|
1760
|
+
chart_name: z.string()
|
|
1761
|
+
});
|
|
1628
1762
|
/**
|
|
1629
|
-
*
|
|
1763
|
+
* Successfully deleted.
|
|
1630
1764
|
*/
|
|
1631
|
-
export const
|
|
1632
|
-
export const
|
|
1765
|
+
export const zDeleteChartResponse = z.string();
|
|
1766
|
+
export const zGetChartPath = z.object({
|
|
1767
|
+
cluster_id: z.string(),
|
|
1768
|
+
chart_name: z.string()
|
|
1769
|
+
});
|
|
1633
1770
|
/**
|
|
1634
|
-
*
|
|
1771
|
+
* Returns a single object containing chart details.
|
|
1635
1772
|
*/
|
|
1636
|
-
export const
|
|
1637
|
-
export const
|
|
1638
|
-
|
|
1773
|
+
export const zGetChartResponse = zChart;
|
|
1774
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1775
|
+
export const zUpdateChartPath = z.object({
|
|
1776
|
+
cluster_id: z.string(),
|
|
1777
|
+
chart_name: z.string()
|
|
1639
1778
|
});
|
|
1640
|
-
|
|
1641
|
-
|
|
1779
|
+
/**
|
|
1780
|
+
* Successfully updated.
|
|
1781
|
+
*/
|
|
1782
|
+
export const zUpdateChartResponse = z.string();
|
|
1783
|
+
/**
|
|
1784
|
+
* An array of clusters
|
|
1785
|
+
*/
|
|
1786
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1787
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1788
|
+
/**
|
|
1789
|
+
* Successfully created. Returns created Cluster ID.
|
|
1790
|
+
*/
|
|
1791
|
+
export const zCreateClusterResponse = z.string();
|
|
1792
|
+
export const zDeleteClusterPath = z.object({
|
|
1793
|
+
cluster_id: z.string()
|
|
1642
1794
|
});
|
|
1643
1795
|
/**
|
|
1644
|
-
*
|
|
1796
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1645
1797
|
*/
|
|
1646
|
-
export const
|
|
1647
|
-
export const
|
|
1648
|
-
|
|
1649
|
-
token_id: z.string()
|
|
1798
|
+
export const zDeleteClusterResponse = z.string();
|
|
1799
|
+
export const zGetClusterPath = z.object({
|
|
1800
|
+
cluster_id: z.string()
|
|
1650
1801
|
});
|
|
1651
1802
|
/**
|
|
1652
|
-
*
|
|
1803
|
+
* Returns a single object containing cluster details.
|
|
1653
1804
|
*/
|
|
1654
|
-
export const
|
|
1655
|
-
export const
|
|
1656
|
-
|
|
1805
|
+
export const zGetClusterResponse = zCluster;
|
|
1806
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1807
|
+
export const zUpdateClusterPath = z.object({
|
|
1808
|
+
cluster_id: z.string()
|
|
1657
1809
|
});
|
|
1658
1810
|
/**
|
|
1659
|
-
* Successfully updated. Returns updated
|
|
1811
|
+
* Successfully updated. Returns updated cluster details.
|
|
1660
1812
|
*/
|
|
1661
|
-
export const
|
|
1662
|
-
export const
|
|
1663
|
-
|
|
1813
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1814
|
+
export const zGetJoinInformationPath = z.object({
|
|
1815
|
+
cluster_id: z.string()
|
|
1664
1816
|
});
|
|
1665
1817
|
/**
|
|
1666
|
-
* An
|
|
1818
|
+
* An object of cluster join information
|
|
1667
1819
|
*/
|
|
1668
|
-
export const
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1820
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1821
|
+
export const zGetUsageQuery = z.object({
|
|
1822
|
+
granularity: z.enum([
|
|
1823
|
+
'hourly',
|
|
1824
|
+
'daily',
|
|
1825
|
+
'monthly'
|
|
1826
|
+
]).optional().default('daily')
|
|
1827
|
+
});
|
|
1672
1828
|
/**
|
|
1673
|
-
*
|
|
1829
|
+
* Usage data with facets for filtering
|
|
1674
1830
|
*/
|
|
1675
|
-
export const
|
|
1676
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1831
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1677
1832
|
/**
|
|
1678
|
-
*
|
|
1833
|
+
* The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
|
|
1834
|
+
*
|
|
1679
1835
|
*/
|
|
1680
|
-
export const
|
|
1681
|
-
|
|
1682
|
-
user_id: z.string()
|
|
1836
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1837
|
+
id: z.string().optional()
|
|
1683
1838
|
});
|
|
1684
1839
|
/**
|
|
1685
|
-
*
|
|
1840
|
+
* An array of payment methods.
|
|
1686
1841
|
*/
|
|
1687
|
-
export const
|
|
1688
|
-
export const
|
|
1689
|
-
|
|
1842
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1843
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1844
|
+
paymentMethodId: z.string()
|
|
1690
1845
|
});
|
|
1691
1846
|
/**
|
|
1692
|
-
*
|
|
1847
|
+
* Default payment method updated.
|
|
1693
1848
|
*/
|
|
1694
|
-
export const
|
|
1695
|
-
export const
|
|
1696
|
-
|
|
1697
|
-
user_id: z.string()
|
|
1849
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1850
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1851
|
+
paymentMethodId: z.string()
|
|
1698
1852
|
});
|
|
1699
1853
|
/**
|
|
1700
|
-
*
|
|
1854
|
+
* Payment method deleted.
|
|
1701
1855
|
*/
|
|
1702
|
-
export const
|
|
1856
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1857
|
+
/**
|
|
1858
|
+
* An array of usage records.
|
|
1859
|
+
*/
|
|
1860
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1861
|
+
/**
|
|
1862
|
+
* The outcome of the attempt.
|
|
1863
|
+
*/
|
|
1864
|
+
export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
|
|
1865
|
+
/**
|
|
1866
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1867
|
+
*/
|
|
1868
|
+
export const zGetContactResponse = zBillingContact;
|
|
1869
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1870
|
+
/**
|
|
1871
|
+
* Successfully updated. Returns updated organization details.
|
|
1872
|
+
*/
|
|
1873
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1874
|
+
/**
|
|
1875
|
+
* An array of the applied promotional credits records.
|
|
1876
|
+
*/
|
|
1877
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1878
|
+
export const zRedeemCreditsBody = z.object({
|
|
1879
|
+
code: z.string().optional()
|
|
1880
|
+
});
|
|
1703
1881
|
//# sourceMappingURL=zod.gen.js.map
|