@cloudfleet/sdk 0.0.1-9a4447d → 0.0.1-9bc5464
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 +528 -606
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +472 -405
- 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 +528 -202
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +707 -284
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +252 -221
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +366 -322
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1144 -816
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1723 -1484
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +523 -350
- 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,16 +1113,68 @@ 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')
|
|
1124
|
+
});
|
|
1125
|
+
export const zInviteCreateInput = z.object({
|
|
1126
|
+
email: z.email(),
|
|
1127
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1013
1128
|
});
|
|
1014
1129
|
export const zInvite = z.object({
|
|
1015
1130
|
id: z.string().optional(),
|
|
1016
1131
|
organization_id: z.uuid().optional(),
|
|
1017
1132
|
date_created: z.iso.datetime(),
|
|
1018
1133
|
email: z.email().optional(),
|
|
1019
|
-
code: z.string().optional()
|
|
1134
|
+
code: z.string().optional(),
|
|
1135
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1136
|
+
});
|
|
1137
|
+
export const zInvoicePaymentAttempt = z.object({
|
|
1138
|
+
invoice_id: z.string(),
|
|
1139
|
+
number: z.string(),
|
|
1140
|
+
amount: z.number(),
|
|
1141
|
+
currency: z.string(),
|
|
1142
|
+
status: z.enum([
|
|
1143
|
+
'paid',
|
|
1144
|
+
'processing',
|
|
1145
|
+
'requires_action',
|
|
1146
|
+
'failed'
|
|
1147
|
+
]),
|
|
1148
|
+
client_secret: z.string(),
|
|
1149
|
+
failure_code: z.string(),
|
|
1150
|
+
failure_message: z.string()
|
|
1151
|
+
});
|
|
1152
|
+
export const zInvoicePaymentResult = z.object({
|
|
1153
|
+
code: z.enum([
|
|
1154
|
+
'paid',
|
|
1155
|
+
'processing',
|
|
1156
|
+
'action_required',
|
|
1157
|
+
'partially_paid',
|
|
1158
|
+
'failed',
|
|
1159
|
+
'nothing_due',
|
|
1160
|
+
'bank_transfer_due'
|
|
1161
|
+
]),
|
|
1162
|
+
message: z.string(),
|
|
1163
|
+
results: z.array(z.object({
|
|
1164
|
+
invoice_id: z.string(),
|
|
1165
|
+
number: z.string(),
|
|
1166
|
+
amount: z.number(),
|
|
1167
|
+
currency: z.string(),
|
|
1168
|
+
status: z.enum([
|
|
1169
|
+
'paid',
|
|
1170
|
+
'processing',
|
|
1171
|
+
'requires_action',
|
|
1172
|
+
'failed'
|
|
1173
|
+
]),
|
|
1174
|
+
client_secret: z.string(),
|
|
1175
|
+
failure_code: z.string(),
|
|
1176
|
+
failure_message: z.string()
|
|
1177
|
+
}))
|
|
1020
1178
|
});
|
|
1021
1179
|
export const zInvoice = z.object({
|
|
1022
1180
|
id: z.string().optional(),
|
|
@@ -1076,6 +1234,8 @@ export const zOrganization = z.object({
|
|
|
1076
1234
|
basic_clusters_available: z.int(),
|
|
1077
1235
|
pro_clusters_max: z.int().gte(0),
|
|
1078
1236
|
pro_clusters_available: z.int(),
|
|
1237
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1238
|
+
enterprise_clusters_available: z.int(),
|
|
1079
1239
|
fleets_max: z.int().gte(0),
|
|
1080
1240
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1081
1241
|
regions: z.array(z.string()).min(1),
|
|
@@ -1117,6 +1277,8 @@ export const zPlatformQuota = z.object({
|
|
|
1117
1277
|
basic_clusters_available: z.int(),
|
|
1118
1278
|
pro_clusters_max: z.int().gte(0),
|
|
1119
1279
|
pro_clusters_available: z.int(),
|
|
1280
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1281
|
+
enterprise_clusters_available: z.int(),
|
|
1120
1282
|
fleets_max: z.int().gte(0),
|
|
1121
1283
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1122
1284
|
regions: z.array(z.string()).min(1),
|
|
@@ -1187,39 +1349,6 @@ export const zTicketCreateInput = z.object({
|
|
|
1187
1349
|
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1188
1350
|
properties: z.record(z.string(), z.unknown()).optional()
|
|
1189
1351
|
});
|
|
1190
|
-
export const zTicketListResponse = z.object({
|
|
1191
|
-
items: z.array(z.object({
|
|
1192
|
-
id: z.string(),
|
|
1193
|
-
status: z.enum([
|
|
1194
|
-
'waiting_on_us',
|
|
1195
|
-
'waiting_on_user',
|
|
1196
|
-
'closed'
|
|
1197
|
-
]),
|
|
1198
|
-
category: z.enum([
|
|
1199
|
-
'billing',
|
|
1200
|
-
'technical',
|
|
1201
|
-
'general'
|
|
1202
|
-
]),
|
|
1203
|
-
summary: z.string(),
|
|
1204
|
-
closed_at: z.iso.datetime().optional(),
|
|
1205
|
-
date_created: z.iso.datetime(),
|
|
1206
|
-
date_updated: z.iso.datetime(),
|
|
1207
|
-
messages: z.array(z.object({
|
|
1208
|
-
id: z.string(),
|
|
1209
|
-
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1210
|
-
body: z.string(),
|
|
1211
|
-
author_first_name: z.string().optional(),
|
|
1212
|
-
author_last_name: z.string().optional(),
|
|
1213
|
-
attachments: z.array(z.object({
|
|
1214
|
-
id: z.string(),
|
|
1215
|
-
filename: z.string(),
|
|
1216
|
-
content_type: z.string(),
|
|
1217
|
-
size: z.int()
|
|
1218
|
-
})).optional(),
|
|
1219
|
-
date_created: z.iso.datetime()
|
|
1220
|
-
})).optional()
|
|
1221
|
-
}))
|
|
1222
|
-
});
|
|
1223
1352
|
export const zTicketMessageInput = z.object({
|
|
1224
1353
|
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1225
1354
|
});
|
|
@@ -1285,26 +1414,58 @@ export const zTokenUpdateInput = z.object({
|
|
|
1285
1414
|
});
|
|
1286
1415
|
export const zUsageFacets = z.object({
|
|
1287
1416
|
cluster_id: z.array(z.string()).optional(),
|
|
1288
|
-
product: z.array(z.
|
|
1417
|
+
product: z.array(z.enum([
|
|
1418
|
+
'cfke_controlplane_basic',
|
|
1419
|
+
'cfke_controlplane_pro',
|
|
1420
|
+
'cfke_controlplane_enterprise',
|
|
1421
|
+
'cfke_connected_nodes_basic',
|
|
1422
|
+
'cfke_connected_nodes_pro',
|
|
1423
|
+
'cfke_connected_nodes_enterprise',
|
|
1424
|
+
'cfcr_storage'
|
|
1425
|
+
])).optional()
|
|
1289
1426
|
});
|
|
1290
1427
|
export const zUsageResponse = z.object({
|
|
1291
1428
|
data: z.array(z.object({
|
|
1292
1429
|
hour: z.string(),
|
|
1293
1430
|
cluster_id: z.string(),
|
|
1294
|
-
product: z.
|
|
1431
|
+
product: z.enum([
|
|
1432
|
+
'cfke_controlplane_basic',
|
|
1433
|
+
'cfke_controlplane_pro',
|
|
1434
|
+
'cfke_controlplane_enterprise',
|
|
1435
|
+
'cfke_connected_nodes_basic',
|
|
1436
|
+
'cfke_connected_nodes_pro',
|
|
1437
|
+
'cfke_connected_nodes_enterprise',
|
|
1438
|
+
'cfcr_storage'
|
|
1439
|
+
]),
|
|
1295
1440
|
value: z.number(),
|
|
1296
1441
|
price: z.number(),
|
|
1297
1442
|
total: z.number()
|
|
1298
1443
|
})),
|
|
1299
1444
|
facets: z.object({
|
|
1300
1445
|
cluster_id: z.array(z.string()).optional(),
|
|
1301
|
-
product: z.array(z.
|
|
1446
|
+
product: z.array(z.enum([
|
|
1447
|
+
'cfke_controlplane_basic',
|
|
1448
|
+
'cfke_controlplane_pro',
|
|
1449
|
+
'cfke_controlplane_enterprise',
|
|
1450
|
+
'cfke_connected_nodes_basic',
|
|
1451
|
+
'cfke_connected_nodes_pro',
|
|
1452
|
+
'cfke_connected_nodes_enterprise',
|
|
1453
|
+
'cfcr_storage'
|
|
1454
|
+
])).optional()
|
|
1302
1455
|
})
|
|
1303
1456
|
});
|
|
1304
1457
|
export const zUsage = z.object({
|
|
1305
1458
|
hour: z.string(),
|
|
1306
1459
|
cluster_id: z.string(),
|
|
1307
|
-
product: z.
|
|
1460
|
+
product: z.enum([
|
|
1461
|
+
'cfke_controlplane_basic',
|
|
1462
|
+
'cfke_controlplane_pro',
|
|
1463
|
+
'cfke_controlplane_enterprise',
|
|
1464
|
+
'cfke_connected_nodes_basic',
|
|
1465
|
+
'cfke_connected_nodes_pro',
|
|
1466
|
+
'cfke_connected_nodes_enterprise',
|
|
1467
|
+
'cfcr_storage'
|
|
1468
|
+
]),
|
|
1308
1469
|
value: z.number(),
|
|
1309
1470
|
price: z.number(),
|
|
1310
1471
|
total: z.number()
|
|
@@ -1314,9 +1475,7 @@ export const zUserCreateInput = z.object({
|
|
|
1314
1475
|
first_name: z.string().min(1).max(50),
|
|
1315
1476
|
last_name: z.string().min(1).max(50),
|
|
1316
1477
|
code: z.string(),
|
|
1317
|
-
password: z.string().min(8)
|
|
1318
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
1319
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1478
|
+
password: z.string().min(8)
|
|
1320
1479
|
});
|
|
1321
1480
|
export const zUser = z.object({
|
|
1322
1481
|
email: z.email(),
|
|
@@ -1334,216 +1493,171 @@ export const zUserUpdateInput = z.object({
|
|
|
1334
1493
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1335
1494
|
status: z.enum(['active', 'inactive']).optional()
|
|
1336
1495
|
});
|
|
1337
|
-
export const
|
|
1338
|
-
|
|
1339
|
-
'hourly',
|
|
1340
|
-
'daily',
|
|
1341
|
-
'monthly'
|
|
1342
|
-
]).optional().default('daily')
|
|
1496
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1497
|
+
email: z.string()
|
|
1343
1498
|
});
|
|
1344
1499
|
/**
|
|
1345
|
-
*
|
|
1500
|
+
* An array of organizations the user belongs to.
|
|
1346
1501
|
*/
|
|
1347
|
-
export const
|
|
1502
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1503
|
+
realm: z.string().optional(),
|
|
1504
|
+
displayName: z.string().optional()
|
|
1505
|
+
}));
|
|
1348
1506
|
/**
|
|
1349
|
-
*
|
|
1350
|
-
*
|
|
1507
|
+
* An array of users
|
|
1351
1508
|
*/
|
|
1352
|
-
export const
|
|
1353
|
-
|
|
1354
|
-
});
|
|
1509
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1510
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1355
1511
|
/**
|
|
1356
|
-
*
|
|
1512
|
+
* Successfully created. Returns created user details.
|
|
1357
1513
|
*/
|
|
1358
|
-
export const
|
|
1359
|
-
export const
|
|
1360
|
-
|
|
1514
|
+
export const zCreateUserResponse = zUser;
|
|
1515
|
+
export const zDeleteUserPath = z.object({
|
|
1516
|
+
user_id: z.string()
|
|
1361
1517
|
});
|
|
1362
1518
|
/**
|
|
1363
|
-
*
|
|
1519
|
+
* User profile information
|
|
1364
1520
|
*/
|
|
1365
|
-
export const
|
|
1366
|
-
export const
|
|
1367
|
-
|
|
1521
|
+
export const zDeleteUserResponse = zUser;
|
|
1522
|
+
export const zGetUserPath = z.object({
|
|
1523
|
+
user_id: z.string()
|
|
1368
1524
|
});
|
|
1369
1525
|
/**
|
|
1370
|
-
*
|
|
1371
|
-
*/
|
|
1372
|
-
export const zDeletePaymentMethodResponse = z.void();
|
|
1373
|
-
/**
|
|
1374
|
-
* An array of usage records.
|
|
1526
|
+
* User profile information
|
|
1375
1527
|
*/
|
|
1376
|
-
export const
|
|
1528
|
+
export const zGetUserResponse = zUser;
|
|
1529
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1530
|
+
export const zUpdateUserPath = z.object({
|
|
1531
|
+
user_id: z.string()
|
|
1532
|
+
});
|
|
1377
1533
|
/**
|
|
1378
|
-
*
|
|
1534
|
+
* Successfully created. Returns created user details.
|
|
1379
1535
|
*/
|
|
1380
|
-
export const
|
|
1381
|
-
export const zUpdateContactBody = zBillingContact;
|
|
1536
|
+
export const zUpdateUserResponse = zUser;
|
|
1382
1537
|
/**
|
|
1383
|
-
*
|
|
1538
|
+
* Returns a list of access token details with masked secrets.
|
|
1384
1539
|
*/
|
|
1385
|
-
export const
|
|
1540
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1541
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1386
1542
|
/**
|
|
1387
|
-
*
|
|
1543
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1388
1544
|
*/
|
|
1389
|
-
export const
|
|
1390
|
-
export const
|
|
1391
|
-
|
|
1545
|
+
export const zCreateTokenResponse = zToken;
|
|
1546
|
+
export const zDeleteTokenPath = z.object({
|
|
1547
|
+
token_id: z.string()
|
|
1392
1548
|
});
|
|
1393
|
-
export const
|
|
1394
|
-
|
|
1549
|
+
export const zGetTokenPath = z.object({
|
|
1550
|
+
token_id: z.string()
|
|
1395
1551
|
});
|
|
1396
1552
|
/**
|
|
1397
|
-
*
|
|
1553
|
+
* Returns access token details with masked secret.
|
|
1398
1554
|
*/
|
|
1399
|
-
export const
|
|
1400
|
-
export const
|
|
1401
|
-
export const
|
|
1402
|
-
|
|
1555
|
+
export const zGetTokenResponse = zToken;
|
|
1556
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1557
|
+
export const zUpdateTokenPath = z.object({
|
|
1558
|
+
token_id: z.string()
|
|
1403
1559
|
});
|
|
1404
1560
|
/**
|
|
1405
|
-
* Successfully
|
|
1561
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1406
1562
|
*/
|
|
1407
|
-
export const
|
|
1408
|
-
export const
|
|
1409
|
-
|
|
1410
|
-
chart_name: z.string()
|
|
1563
|
+
export const zUpdateTokenResponse = zToken;
|
|
1564
|
+
export const zRegenerateTokenPath = z.object({
|
|
1565
|
+
token_id: z.string()
|
|
1411
1566
|
});
|
|
1412
1567
|
/**
|
|
1413
|
-
* Successfully
|
|
1568
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1414
1569
|
*/
|
|
1415
|
-
export const
|
|
1416
|
-
export const zGetChartPath = z.object({
|
|
1417
|
-
cluster_id: z.string(),
|
|
1418
|
-
chart_name: z.string()
|
|
1419
|
-
});
|
|
1570
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1420
1571
|
/**
|
|
1421
|
-
*
|
|
1572
|
+
* An array of tickets for the organization, newest first.
|
|
1422
1573
|
*/
|
|
1423
|
-
export const
|
|
1424
|
-
export const
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
chart_name: z.string()
|
|
1574
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1575
|
+
export const zCreateTicketBody = z.object({
|
|
1576
|
+
payload: z.string().optional(),
|
|
1577
|
+
attachments: z.array(z.string()).optional()
|
|
1428
1578
|
});
|
|
1429
1579
|
/**
|
|
1430
|
-
*
|
|
1580
|
+
* Ticket created.
|
|
1431
1581
|
*/
|
|
1432
|
-
export const
|
|
1433
|
-
export const
|
|
1434
|
-
|
|
1582
|
+
export const zCreateTicketResponse = zTicket;
|
|
1583
|
+
export const zCloseTicketPath = z.object({
|
|
1584
|
+
ticket_id: z.string()
|
|
1435
1585
|
});
|
|
1436
1586
|
/**
|
|
1437
|
-
*
|
|
1587
|
+
* Ticket closed.
|
|
1438
1588
|
*/
|
|
1439
|
-
export const
|
|
1440
|
-
export const
|
|
1441
|
-
|
|
1442
|
-
cluster_id: z.string()
|
|
1589
|
+
export const zCloseTicketResponse = zTicket;
|
|
1590
|
+
export const zGetTicketPath = z.object({
|
|
1591
|
+
ticket_id: z.string()
|
|
1443
1592
|
});
|
|
1444
1593
|
/**
|
|
1445
|
-
*
|
|
1594
|
+
* Ticket with messages (internal notes excluded).
|
|
1446
1595
|
*/
|
|
1447
|
-
export const
|
|
1448
|
-
export const
|
|
1449
|
-
|
|
1450
|
-
|
|
1596
|
+
export const zGetTicketResponse = zTicket;
|
|
1597
|
+
export const zReplyTicketBody = z.object({
|
|
1598
|
+
payload: z.string().optional(),
|
|
1599
|
+
attachments: z.array(z.string()).optional()
|
|
1600
|
+
});
|
|
1601
|
+
export const zReplyTicketPath = z.object({
|
|
1602
|
+
ticket_id: z.string()
|
|
1451
1603
|
});
|
|
1452
1604
|
/**
|
|
1453
|
-
*
|
|
1605
|
+
* Reply appended.
|
|
1454
1606
|
*/
|
|
1455
|
-
export const
|
|
1456
|
-
export const
|
|
1457
|
-
|
|
1458
|
-
|
|
1607
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1608
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1609
|
+
ticket_id: z.string(),
|
|
1610
|
+
attachment_id: z.string()
|
|
1459
1611
|
});
|
|
1460
1612
|
/**
|
|
1461
|
-
*
|
|
1613
|
+
* Attachment binary stream.
|
|
1462
1614
|
*/
|
|
1463
|
-
export const
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1615
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1616
|
+
/**
|
|
1617
|
+
* List of repositories
|
|
1618
|
+
*/
|
|
1619
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1620
|
+
export const zListTagsPath = z.object({
|
|
1621
|
+
region: z.string(),
|
|
1622
|
+
repository: z.string()
|
|
1468
1623
|
});
|
|
1469
1624
|
/**
|
|
1470
|
-
*
|
|
1625
|
+
* Repository with tags
|
|
1471
1626
|
*/
|
|
1472
|
-
export const
|
|
1473
|
-
export const
|
|
1474
|
-
|
|
1627
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1628
|
+
export const zDeleteTagPath = z.object({
|
|
1629
|
+
region: z.string(),
|
|
1630
|
+
repository: z.string(),
|
|
1631
|
+
tag: z.string()
|
|
1632
|
+
});
|
|
1633
|
+
export const zGetTagPath = z.object({
|
|
1634
|
+
region: z.string(),
|
|
1635
|
+
repository: z.string(),
|
|
1636
|
+
tag: z.string()
|
|
1475
1637
|
});
|
|
1476
1638
|
/**
|
|
1477
|
-
*
|
|
1639
|
+
* Tag details
|
|
1478
1640
|
*/
|
|
1479
|
-
export const
|
|
1480
|
-
export const zCreateClusterBody = zClusterCreateInput;
|
|
1641
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1481
1642
|
/**
|
|
1482
|
-
*
|
|
1643
|
+
* Returns a single object containing organization details.
|
|
1483
1644
|
*/
|
|
1484
|
-
export const
|
|
1485
|
-
export const
|
|
1486
|
-
cluster_id: z.string()
|
|
1487
|
-
});
|
|
1488
|
-
/**
|
|
1489
|
-
* Successfully deleted.
|
|
1490
|
-
*/
|
|
1491
|
-
export const zDeleteClusterResponse = z.string();
|
|
1492
|
-
export const zGetClusterPath = z.object({
|
|
1493
|
-
cluster_id: z.string()
|
|
1494
|
-
});
|
|
1495
|
-
/**
|
|
1496
|
-
* Returns a single object containing cluster details.
|
|
1497
|
-
*/
|
|
1498
|
-
export const zGetClusterResponse = zCluster;
|
|
1499
|
-
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1500
|
-
export const zUpdateClusterPath = z.object({
|
|
1501
|
-
cluster_id: z.string()
|
|
1502
|
-
});
|
|
1503
|
-
/**
|
|
1504
|
-
* Successfully updated. Returns updated cluster details.
|
|
1505
|
-
*/
|
|
1506
|
-
export const zUpdateClusterResponse = zCluster;
|
|
1507
|
-
export const zGetJoinInformationPath = z.object({
|
|
1508
|
-
cluster_id: z.string()
|
|
1509
|
-
});
|
|
1510
|
-
/**
|
|
1511
|
-
* An object of cluster join information
|
|
1512
|
-
*/
|
|
1513
|
-
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1514
|
-
/**
|
|
1515
|
-
* An array of invites
|
|
1516
|
-
*/
|
|
1517
|
-
export const zListInvitesResponse = z.array(zInvite);
|
|
1518
|
-
export const zCreateInviteBody = z.object({
|
|
1519
|
-
email: z.string().optional()
|
|
1520
|
-
});
|
|
1521
|
-
/**
|
|
1522
|
-
* Successfully created. Returns created invite details.
|
|
1523
|
-
*/
|
|
1524
|
-
export const zCreateInviteResponse = zInvite;
|
|
1525
|
-
export const zGetInvitePath = z.object({
|
|
1526
|
-
code: z.string()
|
|
1527
|
-
});
|
|
1645
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1646
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1528
1647
|
/**
|
|
1529
|
-
* Returns
|
|
1648
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1649
|
+
*
|
|
1530
1650
|
*/
|
|
1531
|
-
export const
|
|
1532
|
-
export const zDeleteInvitePath = z.object({
|
|
1533
|
-
email: z.string()
|
|
1534
|
-
});
|
|
1651
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1535
1652
|
/**
|
|
1536
|
-
*
|
|
1653
|
+
* Returns the current consent status.
|
|
1537
1654
|
*/
|
|
1538
|
-
export const
|
|
1539
|
-
export const
|
|
1540
|
-
chart_name: z.string(),
|
|
1541
|
-
version_channel: z.string()
|
|
1542
|
-
});
|
|
1655
|
+
export const zGetBasicPriceConsentResponse = zBasicPriceConsent;
|
|
1656
|
+
export const zSetBasicPriceConsentBody = zBasicPriceConsentInput;
|
|
1543
1657
|
/**
|
|
1544
|
-
*
|
|
1658
|
+
* Decision recorded. Returns the updated consent status.
|
|
1545
1659
|
*/
|
|
1546
|
-
export const
|
|
1660
|
+
export const zSetBasicPriceConsentResponse = zBasicPriceConsent;
|
|
1547
1661
|
/**
|
|
1548
1662
|
* JSON-RPC 2.0 request payload
|
|
1549
1663
|
*/
|
|
@@ -1572,159 +1686,218 @@ export const zPostMcpResponse = z.object({
|
|
|
1572
1686
|
}).optional()
|
|
1573
1687
|
});
|
|
1574
1688
|
/**
|
|
1575
|
-
*
|
|
1689
|
+
* An array of chart listings in the marketplace.
|
|
1576
1690
|
*/
|
|
1577
|
-
export const
|
|
1578
|
-
export const
|
|
1691
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1692
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1693
|
+
chart_name: z.string(),
|
|
1694
|
+
version_channel: z.string()
|
|
1695
|
+
});
|
|
1579
1696
|
/**
|
|
1580
|
-
*
|
|
1581
|
-
*
|
|
1697
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1582
1698
|
*/
|
|
1583
|
-
export const
|
|
1699
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1584
1700
|
/**
|
|
1585
|
-
*
|
|
1701
|
+
* An array of invites
|
|
1586
1702
|
*/
|
|
1587
|
-
export const
|
|
1588
|
-
export const
|
|
1589
|
-
|
|
1590
|
-
|
|
1703
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1704
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1705
|
+
/**
|
|
1706
|
+
* Successfully created. Returns created invite details.
|
|
1707
|
+
*/
|
|
1708
|
+
export const zCreateInviteResponse = zInvite;
|
|
1709
|
+
export const zGetInvitePath = z.object({
|
|
1710
|
+
code: z.string()
|
|
1591
1711
|
});
|
|
1592
1712
|
/**
|
|
1593
|
-
*
|
|
1713
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1594
1714
|
*/
|
|
1595
|
-
export const
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
repository: z.string(),
|
|
1599
|
-
tag: z.string()
|
|
1715
|
+
export const zGetInviteResponse = z.object({
|
|
1716
|
+
email: z.email().optional(),
|
|
1717
|
+
organization_id: z.string().optional()
|
|
1600
1718
|
});
|
|
1601
|
-
export const
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1719
|
+
export const zDeleteInvitePath = z.object({
|
|
1720
|
+
email: z.email()
|
|
1721
|
+
});
|
|
1722
|
+
export const zQueryClusterPath = z.object({
|
|
1723
|
+
cluster_id: z.string()
|
|
1724
|
+
});
|
|
1725
|
+
export const zListFleetsPath = z.object({
|
|
1726
|
+
cluster_id: z.string()
|
|
1605
1727
|
});
|
|
1606
1728
|
/**
|
|
1607
|
-
*
|
|
1729
|
+
* An array of fleets
|
|
1608
1730
|
*/
|
|
1609
|
-
export const
|
|
1731
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1732
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1733
|
+
export const zCreateFleetPath = z.object({
|
|
1734
|
+
cluster_id: z.string()
|
|
1735
|
+
});
|
|
1610
1736
|
/**
|
|
1611
|
-
*
|
|
1737
|
+
* Successfully created. Returns created Fleet ID.
|
|
1612
1738
|
*/
|
|
1613
|
-
export const
|
|
1614
|
-
export const
|
|
1615
|
-
|
|
1616
|
-
|
|
1739
|
+
export const zCreateFleetResponse = z.string();
|
|
1740
|
+
export const zDeleteFleetPath = z.object({
|
|
1741
|
+
cluster_id: z.string(),
|
|
1742
|
+
fleet_name: z.string()
|
|
1617
1743
|
});
|
|
1618
1744
|
/**
|
|
1619
|
-
*
|
|
1745
|
+
* Successfully deleted.
|
|
1620
1746
|
*/
|
|
1621
|
-
export const
|
|
1622
|
-
export const
|
|
1623
|
-
|
|
1747
|
+
export const zDeleteFleetResponse = z.string();
|
|
1748
|
+
export const zGetFleetPath = z.object({
|
|
1749
|
+
cluster_id: z.string(),
|
|
1750
|
+
fleet_name: z.string()
|
|
1624
1751
|
});
|
|
1625
1752
|
/**
|
|
1626
|
-
*
|
|
1753
|
+
* Returns a single object containing fleet details.
|
|
1627
1754
|
*/
|
|
1628
|
-
export const
|
|
1629
|
-
export const
|
|
1630
|
-
|
|
1755
|
+
export const zGetFleetResponse = zFleet;
|
|
1756
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1757
|
+
export const zUpdateFleetPath = z.object({
|
|
1758
|
+
cluster_id: z.string(),
|
|
1759
|
+
fleet_name: z.string()
|
|
1631
1760
|
});
|
|
1632
1761
|
/**
|
|
1633
|
-
*
|
|
1762
|
+
* Successfully updated.
|
|
1634
1763
|
*/
|
|
1635
|
-
export const
|
|
1636
|
-
export const
|
|
1637
|
-
|
|
1638
|
-
attachments: z.array(z.string()).optional()
|
|
1639
|
-
});
|
|
1640
|
-
export const zReplyTicketPath = z.object({
|
|
1641
|
-
ticket_id: z.string()
|
|
1764
|
+
export const zUpdateFleetResponse = z.string();
|
|
1765
|
+
export const zListChartsPath = z.object({
|
|
1766
|
+
cluster_id: z.string()
|
|
1642
1767
|
});
|
|
1643
1768
|
/**
|
|
1644
|
-
*
|
|
1769
|
+
* An array of charts
|
|
1645
1770
|
*/
|
|
1646
|
-
export const
|
|
1647
|
-
export const
|
|
1648
|
-
|
|
1649
|
-
|
|
1771
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1772
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1773
|
+
export const zCreateChartPath = z.object({
|
|
1774
|
+
cluster_id: z.string()
|
|
1650
1775
|
});
|
|
1651
1776
|
/**
|
|
1652
|
-
*
|
|
1777
|
+
* Successfully created. Returns created Chart ID.
|
|
1653
1778
|
*/
|
|
1654
|
-
export const
|
|
1779
|
+
export const zCreateChartResponse = z.string();
|
|
1780
|
+
export const zDeleteChartPath = z.object({
|
|
1781
|
+
cluster_id: z.string(),
|
|
1782
|
+
chart_name: z.string()
|
|
1783
|
+
});
|
|
1655
1784
|
/**
|
|
1656
|
-
*
|
|
1785
|
+
* Successfully deleted.
|
|
1657
1786
|
*/
|
|
1658
|
-
export const
|
|
1659
|
-
export const
|
|
1787
|
+
export const zDeleteChartResponse = z.string();
|
|
1788
|
+
export const zGetChartPath = z.object({
|
|
1789
|
+
cluster_id: z.string(),
|
|
1790
|
+
chart_name: z.string()
|
|
1791
|
+
});
|
|
1660
1792
|
/**
|
|
1661
|
-
*
|
|
1793
|
+
* Returns a single object containing chart details.
|
|
1662
1794
|
*/
|
|
1663
|
-
export const
|
|
1664
|
-
export const
|
|
1665
|
-
|
|
1795
|
+
export const zGetChartResponse = zChart;
|
|
1796
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1797
|
+
export const zUpdateChartPath = z.object({
|
|
1798
|
+
cluster_id: z.string(),
|
|
1799
|
+
chart_name: z.string()
|
|
1666
1800
|
});
|
|
1667
|
-
|
|
1668
|
-
|
|
1801
|
+
/**
|
|
1802
|
+
* Successfully updated.
|
|
1803
|
+
*/
|
|
1804
|
+
export const zUpdateChartResponse = z.string();
|
|
1805
|
+
/**
|
|
1806
|
+
* An array of clusters
|
|
1807
|
+
*/
|
|
1808
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1809
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1810
|
+
/**
|
|
1811
|
+
* Successfully created. Returns created Cluster ID.
|
|
1812
|
+
*/
|
|
1813
|
+
export const zCreateClusterResponse = z.string();
|
|
1814
|
+
export const zDeleteClusterPath = z.object({
|
|
1815
|
+
cluster_id: z.string()
|
|
1669
1816
|
});
|
|
1670
1817
|
/**
|
|
1671
|
-
*
|
|
1818
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1672
1819
|
*/
|
|
1673
|
-
export const
|
|
1674
|
-
export const
|
|
1675
|
-
|
|
1676
|
-
token_id: z.string()
|
|
1820
|
+
export const zDeleteClusterResponse = z.string();
|
|
1821
|
+
export const zGetClusterPath = z.object({
|
|
1822
|
+
cluster_id: z.string()
|
|
1677
1823
|
});
|
|
1678
1824
|
/**
|
|
1679
|
-
*
|
|
1825
|
+
* Returns a single object containing cluster details.
|
|
1680
1826
|
*/
|
|
1681
|
-
export const
|
|
1682
|
-
export const
|
|
1683
|
-
|
|
1827
|
+
export const zGetClusterResponse = zCluster;
|
|
1828
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1829
|
+
export const zUpdateClusterPath = z.object({
|
|
1830
|
+
cluster_id: z.string()
|
|
1684
1831
|
});
|
|
1685
1832
|
/**
|
|
1686
|
-
* Successfully updated. Returns updated
|
|
1833
|
+
* Successfully updated. Returns updated cluster details.
|
|
1687
1834
|
*/
|
|
1688
|
-
export const
|
|
1689
|
-
export const
|
|
1690
|
-
|
|
1835
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1836
|
+
export const zGetJoinInformationPath = z.object({
|
|
1837
|
+
cluster_id: z.string()
|
|
1691
1838
|
});
|
|
1692
1839
|
/**
|
|
1693
|
-
* An
|
|
1840
|
+
* An object of cluster join information
|
|
1694
1841
|
*/
|
|
1695
|
-
export const
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1842
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1843
|
+
export const zGetUsageQuery = z.object({
|
|
1844
|
+
granularity: z.enum([
|
|
1845
|
+
'hourly',
|
|
1846
|
+
'daily',
|
|
1847
|
+
'monthly'
|
|
1848
|
+
]).optional().default('daily')
|
|
1849
|
+
});
|
|
1699
1850
|
/**
|
|
1700
|
-
*
|
|
1851
|
+
* Usage data with facets for filtering
|
|
1701
1852
|
*/
|
|
1702
|
-
export const
|
|
1703
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1853
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1704
1854
|
/**
|
|
1705
|
-
*
|
|
1855
|
+
* 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.
|
|
1856
|
+
*
|
|
1706
1857
|
*/
|
|
1707
|
-
export const
|
|
1708
|
-
|
|
1709
|
-
user_id: z.string()
|
|
1858
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1859
|
+
id: z.string().optional()
|
|
1710
1860
|
});
|
|
1711
1861
|
/**
|
|
1712
|
-
*
|
|
1862
|
+
* An array of payment methods.
|
|
1713
1863
|
*/
|
|
1714
|
-
export const
|
|
1715
|
-
export const
|
|
1716
|
-
|
|
1864
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1865
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1866
|
+
paymentMethodId: z.string()
|
|
1717
1867
|
});
|
|
1718
1868
|
/**
|
|
1719
|
-
*
|
|
1869
|
+
* Default payment method updated.
|
|
1720
1870
|
*/
|
|
1721
|
-
export const
|
|
1722
|
-
export const
|
|
1723
|
-
|
|
1724
|
-
user_id: z.string()
|
|
1871
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1872
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1873
|
+
paymentMethodId: z.string()
|
|
1725
1874
|
});
|
|
1726
1875
|
/**
|
|
1727
|
-
*
|
|
1876
|
+
* Payment method deleted.
|
|
1728
1877
|
*/
|
|
1729
|
-
export const
|
|
1878
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1879
|
+
/**
|
|
1880
|
+
* An array of usage records.
|
|
1881
|
+
*/
|
|
1882
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1883
|
+
/**
|
|
1884
|
+
* The outcome of the attempt.
|
|
1885
|
+
*/
|
|
1886
|
+
export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
|
|
1887
|
+
/**
|
|
1888
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1889
|
+
*/
|
|
1890
|
+
export const zGetContactResponse = zBillingContact;
|
|
1891
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1892
|
+
/**
|
|
1893
|
+
* Successfully updated. Returns updated organization details.
|
|
1894
|
+
*/
|
|
1895
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1896
|
+
/**
|
|
1897
|
+
* An array of the applied promotional credits records.
|
|
1898
|
+
*/
|
|
1899
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1900
|
+
export const zRedeemCreditsBody = z.object({
|
|
1901
|
+
code: z.string().optional()
|
|
1902
|
+
});
|
|
1730
1903
|
//# sourceMappingURL=zod.gen.js.map
|