@cloudfleet/sdk 0.0.1-8e907c6 → 0.0.1-9095a30
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 +498 -595
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +451 -403
- 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 +377 -190
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +511 -269
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +244 -220
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +355 -320
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1012 -802
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1698 -1535
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +469 -346
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -13
package/dist/zod.gen.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import * as z from 'zod';
|
|
3
|
+
export const zBasicPriceConsentInput = z.object({
|
|
4
|
+
decision: z.enum(['accepted', 'rejected'])
|
|
5
|
+
});
|
|
6
|
+
export const zBasicPriceConsent = z.object({
|
|
7
|
+
status: z.enum([
|
|
8
|
+
'not_applicable',
|
|
9
|
+
'pending',
|
|
10
|
+
'accepted',
|
|
11
|
+
'rejected'
|
|
12
|
+
]),
|
|
13
|
+
decided_at: z.iso.datetime().optional(),
|
|
14
|
+
decided_by: z.string().optional()
|
|
15
|
+
});
|
|
3
16
|
export const zBillingContact = z.object({
|
|
4
17
|
type: z.enum(['business', 'personal']),
|
|
5
18
|
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(),
|
|
@@ -167,22 +180,7 @@ export const zChart = z.object({
|
|
|
167
180
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
168
181
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
169
182
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
170
|
-
status: z.
|
|
171
|
-
'InstallSucceeded',
|
|
172
|
-
'InstallFailed',
|
|
173
|
-
'UpgradeSucceeded',
|
|
174
|
-
'UpgradeFailed',
|
|
175
|
-
'TestSucceeded',
|
|
176
|
-
'TestFailed',
|
|
177
|
-
'RollbackSucceeded',
|
|
178
|
-
'RollbackFailed',
|
|
179
|
-
'UninstallSucceeded',
|
|
180
|
-
'UninstallFailed',
|
|
181
|
-
'ArtifactFailed',
|
|
182
|
-
'DependencyNotReady',
|
|
183
|
-
'Progressing',
|
|
184
|
-
'SourceNotReady'
|
|
185
|
-
]),
|
|
183
|
+
status: z.string(),
|
|
186
184
|
version_current: z.string(),
|
|
187
185
|
created_at: z.string(),
|
|
188
186
|
updated_at: z.string(),
|
|
@@ -192,27 +190,57 @@ export const zChartUpdateInput = z.object({
|
|
|
192
190
|
values: z.string(),
|
|
193
191
|
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-]+)*))?$/)
|
|
194
192
|
});
|
|
193
|
+
/**
|
|
194
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
195
|
+
*/
|
|
195
196
|
export const zClusterCreateInput = z.object({
|
|
196
197
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
197
|
-
tier: z.enum([
|
|
198
|
-
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
198
|
+
tier: z.enum([
|
|
199
|
+
'basic',
|
|
200
|
+
'pro',
|
|
201
|
+
'enterprise'
|
|
202
|
+
]).optional().default('basic'),
|
|
203
|
+
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'),
|
|
204
|
+
release_channel: z.enum([
|
|
205
|
+
'rapid',
|
|
206
|
+
'stable',
|
|
207
|
+
'extended'
|
|
208
|
+
]).optional().default('rapid'),
|
|
209
|
+
features: z.object({
|
|
210
|
+
gpu_sharing_strategy: z.enum([
|
|
211
|
+
'none',
|
|
212
|
+
'mps',
|
|
213
|
+
'time_slicing'
|
|
214
|
+
]).optional().default('none'),
|
|
215
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
216
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
217
|
+
}).optional().default({
|
|
218
|
+
gpu_sharing_strategy: 'none',
|
|
219
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
220
|
+
cilium_socket_lb_host_namespace_only: false
|
|
221
|
+
}),
|
|
222
|
+
region: z.string(),
|
|
223
|
+
networking: z.object({
|
|
224
|
+
pod_cidr: z.string().optional().default('10.244.0.0/16'),
|
|
225
|
+
service_cidr: z.string().optional().default('10.96.0.0/12'),
|
|
226
|
+
dual_stack: z.boolean().optional(),
|
|
227
|
+
pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
|
|
228
|
+
service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
|
|
229
|
+
}).optional().default({
|
|
230
|
+
pod_cidr: '10.244.0.0/16',
|
|
231
|
+
service_cidr: '10.96.0.0/12',
|
|
232
|
+
dual_stack: false,
|
|
233
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
234
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
235
|
+
})
|
|
210
236
|
});
|
|
211
237
|
export const zClusterJoinInformation = z.object({
|
|
212
238
|
certificate_authority: z.string(),
|
|
213
239
|
endpoint: z.url(),
|
|
214
240
|
cluster_dns: z.string(),
|
|
241
|
+
pod_cidr: z.string(),
|
|
215
242
|
auth_key: z.string(),
|
|
243
|
+
login_server: z.string(),
|
|
216
244
|
bootstrap_token: z.string(),
|
|
217
245
|
versions: z.object({
|
|
218
246
|
kubernetes: z.string(),
|
|
@@ -226,24 +254,55 @@ export const zClusterJoinInformation = z.object({
|
|
|
226
254
|
gcp_workload_identity_provider: z.string()
|
|
227
255
|
})
|
|
228
256
|
});
|
|
257
|
+
/**
|
|
258
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
259
|
+
*/
|
|
229
260
|
export const zCluster = z.object({
|
|
230
261
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
231
|
-
tier: z.enum([
|
|
232
|
-
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
262
|
+
tier: z.enum([
|
|
263
|
+
'basic',
|
|
264
|
+
'pro',
|
|
265
|
+
'enterprise'
|
|
266
|
+
]).default('basic'),
|
|
267
|
+
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'),
|
|
268
|
+
release_channel: z.enum([
|
|
269
|
+
'rapid',
|
|
270
|
+
'stable',
|
|
271
|
+
'extended'
|
|
272
|
+
]).default('rapid'),
|
|
273
|
+
features: z.object({
|
|
274
|
+
gpu_sharing_strategy: z.enum([
|
|
275
|
+
'none',
|
|
276
|
+
'mps',
|
|
277
|
+
'time_slicing'
|
|
278
|
+
]).default('none'),
|
|
279
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
280
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
281
|
+
}).default({
|
|
282
|
+
gpu_sharing_strategy: 'none',
|
|
283
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
284
|
+
cilium_socket_lb_host_namespace_only: false
|
|
285
|
+
}),
|
|
286
|
+
region: z.string(),
|
|
287
|
+
networking: z.object({
|
|
288
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
289
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
290
|
+
dual_stack: z.boolean(),
|
|
291
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
292
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
293
|
+
}).default({
|
|
294
|
+
pod_cidr: '10.244.0.0/16',
|
|
295
|
+
service_cidr: '10.96.0.0/12',
|
|
296
|
+
dual_stack: false,
|
|
297
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
298
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
299
|
+
}),
|
|
238
300
|
id: z.uuid(),
|
|
239
301
|
status: z.enum([
|
|
240
|
-
'active',
|
|
241
|
-
'disabled',
|
|
242
|
-
'deleted',
|
|
243
302
|
'creating',
|
|
244
303
|
'deployed',
|
|
245
|
-
'
|
|
246
|
-
'
|
|
304
|
+
'updating',
|
|
305
|
+
'disabled'
|
|
247
306
|
]),
|
|
248
307
|
endpoint: z.union([
|
|
249
308
|
z.url(),
|
|
@@ -257,14 +316,41 @@ export const zCluster = z.object({
|
|
|
257
316
|
version_current: z.string().optional(),
|
|
258
317
|
created_at: z.string().optional(),
|
|
259
318
|
updated_at: z.string().optional(),
|
|
260
|
-
ready: z.boolean()
|
|
261
|
-
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
319
|
+
ready: z.boolean()
|
|
262
320
|
});
|
|
321
|
+
/**
|
|
322
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
323
|
+
*/
|
|
263
324
|
export const zClusterUpdateInput = z.object({
|
|
264
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
265
|
-
tier: z.enum([
|
|
266
|
-
|
|
325
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
326
|
+
tier: z.enum([
|
|
327
|
+
'basic',
|
|
328
|
+
'pro',
|
|
329
|
+
'enterprise'
|
|
330
|
+
]).optional().default('basic'),
|
|
331
|
+
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'),
|
|
332
|
+
release_channel: z.enum([
|
|
333
|
+
'rapid',
|
|
334
|
+
'stable',
|
|
335
|
+
'extended'
|
|
336
|
+
]).optional().default('rapid'),
|
|
337
|
+
features: z.object({
|
|
338
|
+
gpu_sharing_strategy: z.enum([
|
|
339
|
+
'none',
|
|
340
|
+
'mps',
|
|
341
|
+
'time_slicing'
|
|
342
|
+
]).optional().default('none'),
|
|
343
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
344
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
345
|
+
}).optional().default({
|
|
346
|
+
gpu_sharing_strategy: 'none',
|
|
347
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
348
|
+
cilium_socket_lb_host_namespace_only: false
|
|
349
|
+
})
|
|
267
350
|
});
|
|
351
|
+
/**
|
|
352
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
353
|
+
*/
|
|
268
354
|
export const zFleetCreateInput = z.object({
|
|
269
355
|
limits: z.object({
|
|
270
356
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -275,7 +361,7 @@ export const zFleetCreateInput = z.object({
|
|
|
275
361
|
}).optional(),
|
|
276
362
|
hetzner: z.object({
|
|
277
363
|
enabled: z.boolean(),
|
|
278
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
364
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
279
365
|
}).optional(),
|
|
280
366
|
aws: z.object({
|
|
281
367
|
enabled: z.boolean(),
|
|
@@ -443,7 +529,7 @@ export const zFleetCreateInput = z.object({
|
|
|
443
529
|
'x8g',
|
|
444
530
|
'z1d',
|
|
445
531
|
'z3'
|
|
446
|
-
])).optional(),
|
|
532
|
+
])).optional().default([]),
|
|
447
533
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
448
534
|
'africa-south1',
|
|
449
535
|
'ap-northeast-1',
|
|
@@ -509,11 +595,19 @@ export const zFleetCreateInput = z.object({
|
|
|
509
595
|
'us-west2',
|
|
510
596
|
'us-west3',
|
|
511
597
|
'us-west4'
|
|
512
|
-
])).optional()
|
|
513
|
-
}).optional()
|
|
598
|
+
])).optional().default([])
|
|
599
|
+
}).optional().default({
|
|
600
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
601
|
+
'kubernetes.io/arch': ['amd64'],
|
|
602
|
+
'cfke.io/instance-family': [],
|
|
603
|
+
'topology.kubernetes.io/region': []
|
|
604
|
+
}),
|
|
514
605
|
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
515
606
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
516
607
|
});
|
|
608
|
+
/**
|
|
609
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
610
|
+
*/
|
|
517
611
|
export const zFleet = z.object({
|
|
518
612
|
limits: z.object({
|
|
519
613
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -531,8 +625,8 @@ export const zFleet = z.object({
|
|
|
531
625
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
532
626
|
}).optional(),
|
|
533
627
|
constraints: z.object({
|
|
534
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).
|
|
535
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).
|
|
628
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
629
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
536
630
|
'cfke.io/instance-family': z.array(z.enum([
|
|
537
631
|
'a1',
|
|
538
632
|
'a2',
|
|
@@ -692,7 +786,7 @@ export const zFleet = z.object({
|
|
|
692
786
|
'x8g',
|
|
693
787
|
'z1d',
|
|
694
788
|
'z3'
|
|
695
|
-
])).optional(),
|
|
789
|
+
])).optional().default([]),
|
|
696
790
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
697
791
|
'africa-south1',
|
|
698
792
|
'ap-northeast-1',
|
|
@@ -758,11 +852,23 @@ export const zFleet = z.object({
|
|
|
758
852
|
'us-west2',
|
|
759
853
|
'us-west3',
|
|
760
854
|
'us-west4'
|
|
761
|
-
])).optional()
|
|
762
|
-
}).
|
|
855
|
+
])).optional().default([])
|
|
856
|
+
}).default({
|
|
857
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
858
|
+
'kubernetes.io/arch': ['amd64'],
|
|
859
|
+
'cfke.io/instance-family': [],
|
|
860
|
+
'topology.kubernetes.io/region': []
|
|
861
|
+
}),
|
|
763
862
|
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
764
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
863
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
864
|
+
ready: z.boolean(),
|
|
865
|
+
status_message: z.string().optional(),
|
|
866
|
+
created_at: z.string(),
|
|
867
|
+
updated_at: z.string()
|
|
765
868
|
});
|
|
869
|
+
/**
|
|
870
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
871
|
+
*/
|
|
766
872
|
export const zFleetUpdateInput = z.object({
|
|
767
873
|
limits: z.object({
|
|
768
874
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -773,15 +879,15 @@ export const zFleetUpdateInput = z.object({
|
|
|
773
879
|
}).optional(),
|
|
774
880
|
hetzner: z.object({
|
|
775
881
|
enabled: z.boolean(),
|
|
776
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
882
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
777
883
|
}).optional(),
|
|
778
884
|
aws: z.object({
|
|
779
885
|
enabled: z.boolean(),
|
|
780
886
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
781
887
|
}).optional(),
|
|
782
888
|
constraints: z.object({
|
|
783
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
784
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
889
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
890
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
785
891
|
'cfke.io/instance-family': z.array(z.enum([
|
|
786
892
|
'a1',
|
|
787
893
|
'a2',
|
|
@@ -941,7 +1047,7 @@ export const zFleetUpdateInput = z.object({
|
|
|
941
1047
|
'x8g',
|
|
942
1048
|
'z1d',
|
|
943
1049
|
'z3'
|
|
944
|
-
])).optional(),
|
|
1050
|
+
])).optional().default([]),
|
|
945
1051
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
946
1052
|
'africa-south1',
|
|
947
1053
|
'ap-northeast-1',
|
|
@@ -1007,9 +1113,14 @@ export const zFleetUpdateInput = z.object({
|
|
|
1007
1113
|
'us-west2',
|
|
1008
1114
|
'us-west3',
|
|
1009
1115
|
'us-west4'
|
|
1010
|
-
])).optional()
|
|
1011
|
-
}).optional()
|
|
1012
|
-
|
|
1116
|
+
])).optional().default([])
|
|
1117
|
+
}).optional().default({
|
|
1118
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1119
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1120
|
+
'cfke.io/instance-family': [],
|
|
1121
|
+
'topology.kubernetes.io/region': []
|
|
1122
|
+
}),
|
|
1123
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
|
|
1013
1124
|
});
|
|
1014
1125
|
export const zInviteCreateInput = z.object({
|
|
1015
1126
|
email: z.email(),
|
|
@@ -1081,6 +1192,8 @@ export const zOrganization = z.object({
|
|
|
1081
1192
|
basic_clusters_available: z.int(),
|
|
1082
1193
|
pro_clusters_max: z.int().gte(0),
|
|
1083
1194
|
pro_clusters_available: z.int(),
|
|
1195
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1196
|
+
enterprise_clusters_available: z.int(),
|
|
1084
1197
|
fleets_max: z.int().gte(0),
|
|
1085
1198
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1086
1199
|
regions: z.array(z.string()).min(1),
|
|
@@ -1122,6 +1235,8 @@ export const zPlatformQuota = z.object({
|
|
|
1122
1235
|
basic_clusters_available: z.int(),
|
|
1123
1236
|
pro_clusters_max: z.int().gte(0),
|
|
1124
1237
|
pro_clusters_available: z.int(),
|
|
1238
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1239
|
+
enterprise_clusters_available: z.int(),
|
|
1125
1240
|
fleets_max: z.int().gte(0),
|
|
1126
1241
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1127
1242
|
regions: z.array(z.string()).min(1),
|
|
@@ -1192,39 +1307,6 @@ export const zTicketCreateInput = z.object({
|
|
|
1192
1307
|
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1193
1308
|
properties: z.record(z.string(), z.unknown()).optional()
|
|
1194
1309
|
});
|
|
1195
|
-
export const zTicketListResponse = z.object({
|
|
1196
|
-
items: z.array(z.object({
|
|
1197
|
-
id: z.string(),
|
|
1198
|
-
status: z.enum([
|
|
1199
|
-
'waiting_on_us',
|
|
1200
|
-
'waiting_on_user',
|
|
1201
|
-
'closed'
|
|
1202
|
-
]),
|
|
1203
|
-
category: z.enum([
|
|
1204
|
-
'billing',
|
|
1205
|
-
'technical',
|
|
1206
|
-
'general'
|
|
1207
|
-
]),
|
|
1208
|
-
summary: z.string(),
|
|
1209
|
-
closed_at: z.iso.datetime().optional(),
|
|
1210
|
-
date_created: z.iso.datetime(),
|
|
1211
|
-
date_updated: z.iso.datetime(),
|
|
1212
|
-
messages: z.array(z.object({
|
|
1213
|
-
id: z.string(),
|
|
1214
|
-
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1215
|
-
body: z.string(),
|
|
1216
|
-
author_first_name: z.string().optional(),
|
|
1217
|
-
author_last_name: z.string().optional(),
|
|
1218
|
-
attachments: z.array(z.object({
|
|
1219
|
-
id: z.string(),
|
|
1220
|
-
filename: z.string(),
|
|
1221
|
-
content_type: z.string(),
|
|
1222
|
-
size: z.int()
|
|
1223
|
-
})).optional(),
|
|
1224
|
-
date_created: z.iso.datetime()
|
|
1225
|
-
})).optional()
|
|
1226
|
-
}))
|
|
1227
|
-
});
|
|
1228
1310
|
export const zTicketMessageInput = z.object({
|
|
1229
1311
|
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1230
1312
|
});
|
|
@@ -1290,26 +1372,58 @@ export const zTokenUpdateInput = z.object({
|
|
|
1290
1372
|
});
|
|
1291
1373
|
export const zUsageFacets = z.object({
|
|
1292
1374
|
cluster_id: z.array(z.string()).optional(),
|
|
1293
|
-
product: z.array(z.
|
|
1375
|
+
product: z.array(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
|
+
])).optional()
|
|
1294
1384
|
});
|
|
1295
1385
|
export const zUsageResponse = z.object({
|
|
1296
1386
|
data: z.array(z.object({
|
|
1297
1387
|
hour: z.string(),
|
|
1298
1388
|
cluster_id: z.string(),
|
|
1299
|
-
product: z.
|
|
1389
|
+
product: z.enum([
|
|
1390
|
+
'cfke_controlplane_basic',
|
|
1391
|
+
'cfke_controlplane_pro',
|
|
1392
|
+
'cfke_controlplane_enterprise',
|
|
1393
|
+
'cfke_connected_nodes_basic',
|
|
1394
|
+
'cfke_connected_nodes_pro',
|
|
1395
|
+
'cfke_connected_nodes_enterprise',
|
|
1396
|
+
'cfcr_storage'
|
|
1397
|
+
]),
|
|
1300
1398
|
value: z.number(),
|
|
1301
1399
|
price: z.number(),
|
|
1302
1400
|
total: z.number()
|
|
1303
1401
|
})),
|
|
1304
1402
|
facets: z.object({
|
|
1305
1403
|
cluster_id: z.array(z.string()).optional(),
|
|
1306
|
-
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()
|
|
1307
1413
|
})
|
|
1308
1414
|
});
|
|
1309
1415
|
export const zUsage = z.object({
|
|
1310
1416
|
hour: z.string(),
|
|
1311
1417
|
cluster_id: z.string(),
|
|
1312
|
-
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
|
+
]),
|
|
1313
1427
|
value: z.number(),
|
|
1314
1428
|
price: z.number(),
|
|
1315
1429
|
total: z.number()
|
|
@@ -1337,183 +1451,210 @@ export const zUserUpdateInput = z.object({
|
|
|
1337
1451
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1338
1452
|
status: z.enum(['active', 'inactive']).optional()
|
|
1339
1453
|
});
|
|
1340
|
-
export const
|
|
1341
|
-
|
|
1342
|
-
'hourly',
|
|
1343
|
-
'daily',
|
|
1344
|
-
'monthly'
|
|
1345
|
-
]).optional().default('daily')
|
|
1454
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1455
|
+
email: z.string()
|
|
1346
1456
|
});
|
|
1347
1457
|
/**
|
|
1348
|
-
*
|
|
1458
|
+
* An array of organizations the user belongs to.
|
|
1349
1459
|
*/
|
|
1350
|
-
export const
|
|
1460
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1461
|
+
realm: z.string().optional(),
|
|
1462
|
+
displayName: z.string().optional()
|
|
1463
|
+
}));
|
|
1351
1464
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
1465
|
+
* An array of users
|
|
1354
1466
|
*/
|
|
1355
|
-
export const
|
|
1356
|
-
|
|
1357
|
-
});
|
|
1467
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1468
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1358
1469
|
/**
|
|
1359
|
-
*
|
|
1470
|
+
* Successfully created. Returns created user details.
|
|
1360
1471
|
*/
|
|
1361
|
-
export const
|
|
1362
|
-
export const
|
|
1363
|
-
|
|
1472
|
+
export const zCreateUserResponse = zUser;
|
|
1473
|
+
export const zDeleteUserPath = z.object({
|
|
1474
|
+
user_id: z.string()
|
|
1364
1475
|
});
|
|
1365
1476
|
/**
|
|
1366
|
-
*
|
|
1477
|
+
* User profile information
|
|
1367
1478
|
*/
|
|
1368
|
-
export const
|
|
1369
|
-
export const
|
|
1370
|
-
|
|
1479
|
+
export const zDeleteUserResponse = zUser;
|
|
1480
|
+
export const zGetUserPath = z.object({
|
|
1481
|
+
user_id: z.string()
|
|
1371
1482
|
});
|
|
1372
1483
|
/**
|
|
1373
|
-
*
|
|
1374
|
-
*/
|
|
1375
|
-
export const zDeletePaymentMethodResponse = z.void();
|
|
1376
|
-
/**
|
|
1377
|
-
* An array of usage records.
|
|
1484
|
+
* User profile information
|
|
1378
1485
|
*/
|
|
1379
|
-
export const
|
|
1486
|
+
export const zGetUserResponse = zUser;
|
|
1487
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1488
|
+
export const zUpdateUserPath = z.object({
|
|
1489
|
+
user_id: z.string()
|
|
1490
|
+
});
|
|
1380
1491
|
/**
|
|
1381
|
-
*
|
|
1492
|
+
* Successfully created. Returns created user details.
|
|
1382
1493
|
*/
|
|
1383
|
-
export const
|
|
1384
|
-
export const zUpdateContactBody = zBillingContact;
|
|
1494
|
+
export const zUpdateUserResponse = zUser;
|
|
1385
1495
|
/**
|
|
1386
|
-
*
|
|
1496
|
+
* Returns a list of access token details with masked secrets.
|
|
1387
1497
|
*/
|
|
1388
|
-
export const
|
|
1498
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1499
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1389
1500
|
/**
|
|
1390
|
-
*
|
|
1501
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1391
1502
|
*/
|
|
1392
|
-
export const
|
|
1393
|
-
export const
|
|
1394
|
-
|
|
1503
|
+
export const zCreateTokenResponse = zToken;
|
|
1504
|
+
export const zDeleteTokenPath = z.object({
|
|
1505
|
+
token_id: z.string()
|
|
1395
1506
|
});
|
|
1396
|
-
export const
|
|
1397
|
-
|
|
1507
|
+
export const zGetTokenPath = z.object({
|
|
1508
|
+
token_id: z.string()
|
|
1398
1509
|
});
|
|
1399
1510
|
/**
|
|
1400
|
-
*
|
|
1511
|
+
* Returns access token details with masked secret.
|
|
1401
1512
|
*/
|
|
1402
|
-
export const
|
|
1403
|
-
export const
|
|
1404
|
-
export const
|
|
1405
|
-
|
|
1513
|
+
export const zGetTokenResponse = zToken;
|
|
1514
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1515
|
+
export const zUpdateTokenPath = z.object({
|
|
1516
|
+
token_id: z.string()
|
|
1406
1517
|
});
|
|
1407
1518
|
/**
|
|
1408
|
-
* Successfully
|
|
1519
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1409
1520
|
*/
|
|
1410
|
-
export const
|
|
1411
|
-
export const
|
|
1412
|
-
|
|
1413
|
-
chart_name: z.string()
|
|
1521
|
+
export const zUpdateTokenResponse = zToken;
|
|
1522
|
+
export const zRegenerateTokenPath = z.object({
|
|
1523
|
+
token_id: z.string()
|
|
1414
1524
|
});
|
|
1415
1525
|
/**
|
|
1416
|
-
* Successfully
|
|
1526
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1417
1527
|
*/
|
|
1418
|
-
export const
|
|
1419
|
-
export const zGetChartPath = z.object({
|
|
1420
|
-
cluster_id: z.string(),
|
|
1421
|
-
chart_name: z.string()
|
|
1422
|
-
});
|
|
1528
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1423
1529
|
/**
|
|
1424
|
-
*
|
|
1530
|
+
* An array of tickets for the organization, newest first.
|
|
1425
1531
|
*/
|
|
1426
|
-
export const
|
|
1427
|
-
export const
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
chart_name: z.string()
|
|
1532
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1533
|
+
export const zCreateTicketBody = z.object({
|
|
1534
|
+
payload: z.string().optional(),
|
|
1535
|
+
attachments: z.array(z.string()).optional()
|
|
1431
1536
|
});
|
|
1432
1537
|
/**
|
|
1433
|
-
*
|
|
1538
|
+
* Ticket created.
|
|
1434
1539
|
*/
|
|
1435
|
-
export const
|
|
1436
|
-
export const
|
|
1437
|
-
|
|
1540
|
+
export const zCreateTicketResponse = zTicket;
|
|
1541
|
+
export const zCloseTicketPath = z.object({
|
|
1542
|
+
ticket_id: z.string()
|
|
1438
1543
|
});
|
|
1439
1544
|
/**
|
|
1440
|
-
*
|
|
1545
|
+
* Ticket closed.
|
|
1441
1546
|
*/
|
|
1442
|
-
export const
|
|
1443
|
-
export const
|
|
1444
|
-
|
|
1445
|
-
cluster_id: z.string()
|
|
1547
|
+
export const zCloseTicketResponse = zTicket;
|
|
1548
|
+
export const zGetTicketPath = z.object({
|
|
1549
|
+
ticket_id: z.string()
|
|
1446
1550
|
});
|
|
1447
1551
|
/**
|
|
1448
|
-
*
|
|
1552
|
+
* Ticket with messages (internal notes excluded).
|
|
1449
1553
|
*/
|
|
1450
|
-
export const
|
|
1451
|
-
export const
|
|
1452
|
-
|
|
1453
|
-
|
|
1554
|
+
export const zGetTicketResponse = zTicket;
|
|
1555
|
+
export const zReplyTicketBody = z.object({
|
|
1556
|
+
payload: z.string().optional(),
|
|
1557
|
+
attachments: z.array(z.string()).optional()
|
|
1558
|
+
});
|
|
1559
|
+
export const zReplyTicketPath = z.object({
|
|
1560
|
+
ticket_id: z.string()
|
|
1454
1561
|
});
|
|
1455
1562
|
/**
|
|
1456
|
-
*
|
|
1563
|
+
* Reply appended.
|
|
1457
1564
|
*/
|
|
1458
|
-
export const
|
|
1459
|
-
export const
|
|
1460
|
-
|
|
1461
|
-
|
|
1565
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1566
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1567
|
+
ticket_id: z.string(),
|
|
1568
|
+
attachment_id: z.string()
|
|
1462
1569
|
});
|
|
1463
1570
|
/**
|
|
1464
|
-
*
|
|
1571
|
+
* Attachment binary stream.
|
|
1465
1572
|
*/
|
|
1466
|
-
export const
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1573
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1574
|
+
/**
|
|
1575
|
+
* List of repositories
|
|
1576
|
+
*/
|
|
1577
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1578
|
+
export const zListTagsPath = z.object({
|
|
1579
|
+
region: z.string(),
|
|
1580
|
+
repository: z.string()
|
|
1471
1581
|
});
|
|
1472
1582
|
/**
|
|
1473
|
-
*
|
|
1583
|
+
* Repository with tags
|
|
1474
1584
|
*/
|
|
1475
|
-
export const
|
|
1476
|
-
export const
|
|
1477
|
-
|
|
1585
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1586
|
+
export const zDeleteTagPath = z.object({
|
|
1587
|
+
region: z.string(),
|
|
1588
|
+
repository: z.string(),
|
|
1589
|
+
tag: z.string()
|
|
1590
|
+
});
|
|
1591
|
+
export const zGetTagPath = z.object({
|
|
1592
|
+
region: z.string(),
|
|
1593
|
+
repository: z.string(),
|
|
1594
|
+
tag: z.string()
|
|
1478
1595
|
});
|
|
1479
1596
|
/**
|
|
1480
|
-
*
|
|
1597
|
+
* Tag details
|
|
1481
1598
|
*/
|
|
1482
|
-
export const
|
|
1483
|
-
export const zCreateClusterBody = zClusterCreateInput;
|
|
1599
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1484
1600
|
/**
|
|
1485
|
-
*
|
|
1601
|
+
* Returns a single object containing organization details.
|
|
1486
1602
|
*/
|
|
1487
|
-
export const
|
|
1488
|
-
export const
|
|
1489
|
-
cluster_id: z.string()
|
|
1490
|
-
});
|
|
1603
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1604
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1491
1605
|
/**
|
|
1492
|
-
*
|
|
1606
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1607
|
+
*
|
|
1493
1608
|
*/
|
|
1494
|
-
export const
|
|
1495
|
-
export const zGetClusterPath = z.object({
|
|
1496
|
-
cluster_id: z.string()
|
|
1497
|
-
});
|
|
1609
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1498
1610
|
/**
|
|
1499
|
-
* Returns
|
|
1611
|
+
* Returns the current consent status.
|
|
1500
1612
|
*/
|
|
1501
|
-
export const
|
|
1502
|
-
export const
|
|
1503
|
-
|
|
1504
|
-
|
|
1613
|
+
export const zGetBasicPriceConsentResponse = zBasicPriceConsent;
|
|
1614
|
+
export const zSetBasicPriceConsentBody = zBasicPriceConsentInput;
|
|
1615
|
+
/**
|
|
1616
|
+
* Decision recorded. Returns the updated consent status.
|
|
1617
|
+
*/
|
|
1618
|
+
export const zSetBasicPriceConsentResponse = zBasicPriceConsent;
|
|
1619
|
+
/**
|
|
1620
|
+
* JSON-RPC 2.0 request payload
|
|
1621
|
+
*/
|
|
1622
|
+
export const zPostMcpBody = z.object({
|
|
1623
|
+
jsonrpc: z.string().optional(),
|
|
1624
|
+
method: z.string().optional(),
|
|
1625
|
+
id: z.union([
|
|
1626
|
+
z.string(),
|
|
1627
|
+
z.number()
|
|
1628
|
+
]).optional(),
|
|
1629
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
1505
1630
|
});
|
|
1506
1631
|
/**
|
|
1507
|
-
*
|
|
1632
|
+
* JSON-RPC 2.0 success or error response
|
|
1508
1633
|
*/
|
|
1509
|
-
export const
|
|
1510
|
-
|
|
1511
|
-
|
|
1634
|
+
export const zPostMcpResponse = z.object({
|
|
1635
|
+
jsonrpc: z.string().optional(),
|
|
1636
|
+
id: z.union([
|
|
1637
|
+
z.string(),
|
|
1638
|
+
z.number()
|
|
1639
|
+
]).optional(),
|
|
1640
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1641
|
+
error: z.object({
|
|
1642
|
+
code: z.int().optional(),
|
|
1643
|
+
message: z.string().optional()
|
|
1644
|
+
}).optional()
|
|
1512
1645
|
});
|
|
1513
1646
|
/**
|
|
1514
|
-
* An
|
|
1647
|
+
* An array of chart listings in the marketplace.
|
|
1515
1648
|
*/
|
|
1516
|
-
export const
|
|
1649
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1650
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1651
|
+
chart_name: z.string(),
|
|
1652
|
+
version_channel: z.string()
|
|
1653
|
+
});
|
|
1654
|
+
/**
|
|
1655
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1656
|
+
*/
|
|
1657
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1517
1658
|
/**
|
|
1518
1659
|
* An array of invites
|
|
1519
1660
|
*/
|
|
@@ -1536,199 +1677,181 @@ export const zGetInviteResponse = z.object({
|
|
|
1536
1677
|
export const zDeleteInvitePath = z.object({
|
|
1537
1678
|
email: z.email()
|
|
1538
1679
|
});
|
|
1680
|
+
export const zQueryClusterPath = z.object({
|
|
1681
|
+
cluster_id: z.string()
|
|
1682
|
+
});
|
|
1683
|
+
export const zListFleetsPath = z.object({
|
|
1684
|
+
cluster_id: z.string()
|
|
1685
|
+
});
|
|
1539
1686
|
/**
|
|
1540
|
-
* An array of
|
|
1687
|
+
* An array of fleets
|
|
1541
1688
|
*/
|
|
1542
|
-
export const
|
|
1543
|
-
export const
|
|
1544
|
-
|
|
1545
|
-
|
|
1689
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1690
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1691
|
+
export const zCreateFleetPath = z.object({
|
|
1692
|
+
cluster_id: z.string()
|
|
1546
1693
|
});
|
|
1547
1694
|
/**
|
|
1548
|
-
*
|
|
1695
|
+
* Successfully created. Returns created Fleet ID.
|
|
1549
1696
|
*/
|
|
1550
|
-
export const
|
|
1697
|
+
export const zCreateFleetResponse = z.string();
|
|
1698
|
+
export const zDeleteFleetPath = z.object({
|
|
1699
|
+
cluster_id: z.string(),
|
|
1700
|
+
fleet_name: z.string()
|
|
1701
|
+
});
|
|
1551
1702
|
/**
|
|
1552
|
-
*
|
|
1703
|
+
* Successfully deleted.
|
|
1553
1704
|
*/
|
|
1554
|
-
export const
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
z.string(),
|
|
1559
|
-
z.number()
|
|
1560
|
-
]).optional(),
|
|
1561
|
-
params: z.record(z.string(), z.unknown()).optional()
|
|
1705
|
+
export const zDeleteFleetResponse = z.string();
|
|
1706
|
+
export const zGetFleetPath = z.object({
|
|
1707
|
+
cluster_id: z.string(),
|
|
1708
|
+
fleet_name: z.string()
|
|
1562
1709
|
});
|
|
1563
1710
|
/**
|
|
1564
|
-
*
|
|
1711
|
+
* Returns a single object containing fleet details.
|
|
1565
1712
|
*/
|
|
1566
|
-
export const
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
]).optional(),
|
|
1572
|
-
result: z.record(z.string(), z.unknown()).optional(),
|
|
1573
|
-
error: z.object({
|
|
1574
|
-
code: z.int().optional(),
|
|
1575
|
-
message: z.string().optional()
|
|
1576
|
-
}).optional()
|
|
1713
|
+
export const zGetFleetResponse = zFleet;
|
|
1714
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1715
|
+
export const zUpdateFleetPath = z.object({
|
|
1716
|
+
cluster_id: z.string(),
|
|
1717
|
+
fleet_name: z.string()
|
|
1577
1718
|
});
|
|
1578
1719
|
/**
|
|
1579
|
-
*
|
|
1720
|
+
* Successfully updated.
|
|
1580
1721
|
*/
|
|
1581
|
-
export const
|
|
1582
|
-
export const
|
|
1722
|
+
export const zUpdateFleetResponse = z.string();
|
|
1723
|
+
export const zListChartsPath = z.object({
|
|
1724
|
+
cluster_id: z.string()
|
|
1725
|
+
});
|
|
1583
1726
|
/**
|
|
1584
|
-
*
|
|
1585
|
-
*
|
|
1727
|
+
* An array of charts
|
|
1586
1728
|
*/
|
|
1587
|
-
export const
|
|
1729
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1730
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1731
|
+
export const zCreateChartPath = z.object({
|
|
1732
|
+
cluster_id: z.string()
|
|
1733
|
+
});
|
|
1588
1734
|
/**
|
|
1589
|
-
*
|
|
1735
|
+
* Successfully created. Returns created Chart ID.
|
|
1590
1736
|
*/
|
|
1591
|
-
export const
|
|
1592
|
-
export const
|
|
1593
|
-
|
|
1594
|
-
|
|
1737
|
+
export const zCreateChartResponse = z.string();
|
|
1738
|
+
export const zDeleteChartPath = z.object({
|
|
1739
|
+
cluster_id: z.string(),
|
|
1740
|
+
chart_name: z.string()
|
|
1595
1741
|
});
|
|
1596
1742
|
/**
|
|
1597
|
-
*
|
|
1743
|
+
* Successfully deleted.
|
|
1598
1744
|
*/
|
|
1599
|
-
export const
|
|
1600
|
-
export const
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
tag: z.string()
|
|
1604
|
-
});
|
|
1605
|
-
export const zGetTagPath = z.object({
|
|
1606
|
-
region: z.string(),
|
|
1607
|
-
repository: z.string(),
|
|
1608
|
-
tag: z.string()
|
|
1745
|
+
export const zDeleteChartResponse = z.string();
|
|
1746
|
+
export const zGetChartPath = z.object({
|
|
1747
|
+
cluster_id: z.string(),
|
|
1748
|
+
chart_name: z.string()
|
|
1609
1749
|
});
|
|
1610
1750
|
/**
|
|
1611
|
-
*
|
|
1751
|
+
* Returns a single object containing chart details.
|
|
1612
1752
|
*/
|
|
1613
|
-
export const
|
|
1753
|
+
export const zGetChartResponse = zChart;
|
|
1754
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1755
|
+
export const zUpdateChartPath = z.object({
|
|
1756
|
+
cluster_id: z.string(),
|
|
1757
|
+
chart_name: z.string()
|
|
1758
|
+
});
|
|
1614
1759
|
/**
|
|
1615
|
-
*
|
|
1760
|
+
* Successfully updated.
|
|
1616
1761
|
*/
|
|
1617
|
-
export const
|
|
1618
|
-
export const zCreateTicketBody = z.object({
|
|
1619
|
-
payload: z.string().optional(),
|
|
1620
|
-
attachments: z.array(z.string()).optional()
|
|
1621
|
-
});
|
|
1762
|
+
export const zUpdateChartResponse = z.string();
|
|
1622
1763
|
/**
|
|
1623
|
-
*
|
|
1764
|
+
* An array of clusters
|
|
1624
1765
|
*/
|
|
1625
|
-
export const
|
|
1626
|
-
export const
|
|
1627
|
-
ticket_id: z.string()
|
|
1628
|
-
});
|
|
1766
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1767
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1629
1768
|
/**
|
|
1630
|
-
*
|
|
1769
|
+
* Successfully created. Returns created Cluster ID.
|
|
1631
1770
|
*/
|
|
1632
|
-
export const
|
|
1633
|
-
export const
|
|
1634
|
-
|
|
1771
|
+
export const zCreateClusterResponse = z.string();
|
|
1772
|
+
export const zDeleteClusterPath = z.object({
|
|
1773
|
+
cluster_id: z.string()
|
|
1635
1774
|
});
|
|
1636
1775
|
/**
|
|
1637
|
-
*
|
|
1776
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1638
1777
|
*/
|
|
1639
|
-
export const
|
|
1640
|
-
export const
|
|
1641
|
-
|
|
1642
|
-
attachments: z.array(z.string()).optional()
|
|
1643
|
-
});
|
|
1644
|
-
export const zReplyTicketPath = z.object({
|
|
1645
|
-
ticket_id: z.string()
|
|
1778
|
+
export const zDeleteClusterResponse = z.string();
|
|
1779
|
+
export const zGetClusterPath = z.object({
|
|
1780
|
+
cluster_id: z.string()
|
|
1646
1781
|
});
|
|
1647
1782
|
/**
|
|
1648
|
-
*
|
|
1783
|
+
* Returns a single object containing cluster details.
|
|
1649
1784
|
*/
|
|
1650
|
-
export const
|
|
1651
|
-
export const
|
|
1652
|
-
|
|
1653
|
-
|
|
1785
|
+
export const zGetClusterResponse = zCluster;
|
|
1786
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1787
|
+
export const zUpdateClusterPath = z.object({
|
|
1788
|
+
cluster_id: z.string()
|
|
1654
1789
|
});
|
|
1655
1790
|
/**
|
|
1656
|
-
*
|
|
1791
|
+
* Successfully updated. Returns updated cluster details.
|
|
1657
1792
|
*/
|
|
1658
|
-
export const
|
|
1793
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1794
|
+
export const zGetJoinInformationPath = z.object({
|
|
1795
|
+
cluster_id: z.string()
|
|
1796
|
+
});
|
|
1659
1797
|
/**
|
|
1660
|
-
*
|
|
1798
|
+
* An object of cluster join information
|
|
1661
1799
|
*/
|
|
1662
|
-
export const
|
|
1663
|
-
export const
|
|
1800
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1801
|
+
export const zGetUsageQuery = z.object({
|
|
1802
|
+
granularity: z.enum([
|
|
1803
|
+
'hourly',
|
|
1804
|
+
'daily',
|
|
1805
|
+
'monthly'
|
|
1806
|
+
]).optional().default('daily')
|
|
1807
|
+
});
|
|
1664
1808
|
/**
|
|
1665
|
-
*
|
|
1809
|
+
* Usage data with facets for filtering
|
|
1666
1810
|
*/
|
|
1667
|
-
export const
|
|
1668
|
-
export const zDeleteTokenPath = z.object({
|
|
1669
|
-
token_id: z.string()
|
|
1670
|
-
});
|
|
1671
|
-
export const zGetTokenPath = z.object({
|
|
1672
|
-
token_id: z.string()
|
|
1673
|
-
});
|
|
1811
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1674
1812
|
/**
|
|
1675
|
-
*
|
|
1813
|
+
* 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.
|
|
1814
|
+
*
|
|
1676
1815
|
*/
|
|
1677
|
-
export const
|
|
1678
|
-
|
|
1679
|
-
export const zUpdateTokenPath = z.object({
|
|
1680
|
-
token_id: z.string()
|
|
1816
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1817
|
+
id: z.string().optional()
|
|
1681
1818
|
});
|
|
1682
1819
|
/**
|
|
1683
|
-
*
|
|
1820
|
+
* An array of payment methods.
|
|
1684
1821
|
*/
|
|
1685
|
-
export const
|
|
1686
|
-
export const
|
|
1687
|
-
|
|
1822
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1823
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1824
|
+
paymentMethodId: z.string()
|
|
1688
1825
|
});
|
|
1689
1826
|
/**
|
|
1690
|
-
*
|
|
1827
|
+
* Default payment method updated.
|
|
1691
1828
|
*/
|
|
1692
|
-
export const
|
|
1693
|
-
export const
|
|
1694
|
-
|
|
1829
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1830
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1831
|
+
paymentMethodId: z.string()
|
|
1695
1832
|
});
|
|
1696
1833
|
/**
|
|
1697
|
-
*
|
|
1834
|
+
* Payment method deleted.
|
|
1698
1835
|
*/
|
|
1699
|
-
export const
|
|
1700
|
-
realm: z.string().optional(),
|
|
1701
|
-
displayName: z.string().optional()
|
|
1702
|
-
}));
|
|
1836
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1703
1837
|
/**
|
|
1704
|
-
* An array of
|
|
1838
|
+
* An array of usage records.
|
|
1705
1839
|
*/
|
|
1706
|
-
export const
|
|
1707
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1840
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1708
1841
|
/**
|
|
1709
|
-
*
|
|
1842
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1710
1843
|
*/
|
|
1711
|
-
export const
|
|
1712
|
-
export const
|
|
1713
|
-
user_id: z.string()
|
|
1714
|
-
});
|
|
1844
|
+
export const zGetContactResponse = zBillingContact;
|
|
1845
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1715
1846
|
/**
|
|
1716
|
-
*
|
|
1847
|
+
* Successfully updated. Returns updated organization details.
|
|
1717
1848
|
*/
|
|
1718
|
-
export const
|
|
1719
|
-
export const zGetUserPath = z.object({
|
|
1720
|
-
user_id: z.string()
|
|
1721
|
-
});
|
|
1849
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1722
1850
|
/**
|
|
1723
|
-
*
|
|
1851
|
+
* An array of the applied promotional credits records.
|
|
1724
1852
|
*/
|
|
1725
|
-
export const
|
|
1726
|
-
export const
|
|
1727
|
-
|
|
1728
|
-
user_id: z.string()
|
|
1853
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1854
|
+
export const zRedeemCreditsBody = z.object({
|
|
1855
|
+
code: z.string().optional()
|
|
1729
1856
|
});
|
|
1730
|
-
/**
|
|
1731
|
-
* Successfully created. Returns created user details.
|
|
1732
|
-
*/
|
|
1733
|
-
export const zUpdateUserResponse = zUser;
|
|
1734
1857
|
//# sourceMappingURL=zod.gen.js.map
|