@cloudfleet/sdk 0.0.1-cfddf24 → 0.0.1-d32b155
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 +446 -372
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +478 -392
- 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 +474 -225
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +636 -317
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +249 -211
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +357 -304
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1103 -787
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1695 -1474
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +502 -349
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -11
package/dist/zod.gen.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
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({
|
|
17
|
+
type: z.enum(['business', 'personal']),
|
|
4
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(),
|
|
5
19
|
address1: z.string().optional(),
|
|
6
20
|
address2: z.string().optional(),
|
|
@@ -166,22 +180,7 @@ export const zChart = z.object({
|
|
|
166
180
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
167
181
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
168
182
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
169
|
-
status: z.
|
|
170
|
-
'InstallSucceeded',
|
|
171
|
-
'InstallFailed',
|
|
172
|
-
'UpgradeSucceeded',
|
|
173
|
-
'UpgradeFailed',
|
|
174
|
-
'TestSucceeded',
|
|
175
|
-
'TestFailed',
|
|
176
|
-
'RollbackSucceeded',
|
|
177
|
-
'RollbackFailed',
|
|
178
|
-
'UninstallSucceeded',
|
|
179
|
-
'UninstallFailed',
|
|
180
|
-
'ArtifactFailed',
|
|
181
|
-
'DependencyNotReady',
|
|
182
|
-
'Progressing',
|
|
183
|
-
'SourceNotReady'
|
|
184
|
-
]),
|
|
183
|
+
status: z.string(),
|
|
185
184
|
version_current: z.string(),
|
|
186
185
|
created_at: z.string(),
|
|
187
186
|
updated_at: z.string(),
|
|
@@ -191,26 +190,55 @@ export const zChartUpdateInput = z.object({
|
|
|
191
190
|
values: z.string(),
|
|
192
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-]+)*))?$/)
|
|
193
192
|
});
|
|
193
|
+
/**
|
|
194
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
195
|
+
*/
|
|
194
196
|
export const zClusterCreateInput = z.object({
|
|
195
197
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
196
|
-
tier: z.enum([
|
|
197
|
-
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
+
})
|
|
209
236
|
});
|
|
210
237
|
export const zClusterJoinInformation = z.object({
|
|
211
238
|
certificate_authority: z.string(),
|
|
212
239
|
endpoint: z.url(),
|
|
213
240
|
cluster_dns: z.string(),
|
|
241
|
+
pod_cidr: z.string(),
|
|
214
242
|
auth_key: z.string(),
|
|
215
243
|
bootstrap_token: z.string(),
|
|
216
244
|
versions: z.object({
|
|
@@ -225,24 +253,55 @@ export const zClusterJoinInformation = z.object({
|
|
|
225
253
|
gcp_workload_identity_provider: z.string()
|
|
226
254
|
})
|
|
227
255
|
});
|
|
256
|
+
/**
|
|
257
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
258
|
+
*/
|
|
228
259
|
export const zCluster = z.object({
|
|
229
260
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
-
tier: z.enum([
|
|
231
|
-
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
261
|
+
tier: z.enum([
|
|
262
|
+
'basic',
|
|
263
|
+
'pro',
|
|
264
|
+
'enterprise'
|
|
265
|
+
]).default('basic'),
|
|
266
|
+
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'),
|
|
267
|
+
release_channel: z.enum([
|
|
268
|
+
'rapid',
|
|
269
|
+
'stable',
|
|
270
|
+
'extended'
|
|
271
|
+
]).default('rapid'),
|
|
272
|
+
features: z.object({
|
|
273
|
+
gpu_sharing_strategy: z.enum([
|
|
274
|
+
'none',
|
|
275
|
+
'mps',
|
|
276
|
+
'time_slicing'
|
|
277
|
+
]).default('none'),
|
|
278
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
279
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
280
|
+
}).default({
|
|
281
|
+
gpu_sharing_strategy: 'none',
|
|
282
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
283
|
+
cilium_socket_lb_host_namespace_only: false
|
|
284
|
+
}),
|
|
285
|
+
region: z.string(),
|
|
286
|
+
networking: z.object({
|
|
287
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
288
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
289
|
+
dual_stack: z.boolean(),
|
|
290
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
291
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
292
|
+
}).default({
|
|
293
|
+
pod_cidr: '10.244.0.0/16',
|
|
294
|
+
service_cidr: '10.96.0.0/12',
|
|
295
|
+
dual_stack: false,
|
|
296
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
297
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
298
|
+
}),
|
|
237
299
|
id: z.uuid(),
|
|
238
300
|
status: z.enum([
|
|
239
|
-
'active',
|
|
240
|
-
'disabled',
|
|
241
|
-
'deleted',
|
|
242
301
|
'creating',
|
|
243
302
|
'deployed',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
303
|
+
'updating',
|
|
304
|
+
'disabled'
|
|
246
305
|
]),
|
|
247
306
|
endpoint: z.union([
|
|
248
307
|
z.url(),
|
|
@@ -256,14 +315,41 @@ export const zCluster = z.object({
|
|
|
256
315
|
version_current: z.string().optional(),
|
|
257
316
|
created_at: z.string().optional(),
|
|
258
317
|
updated_at: z.string().optional(),
|
|
259
|
-
ready: z.boolean()
|
|
260
|
-
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
318
|
+
ready: z.boolean()
|
|
261
319
|
});
|
|
320
|
+
/**
|
|
321
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
322
|
+
*/
|
|
262
323
|
export const zClusterUpdateInput = z.object({
|
|
263
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
264
|
-
tier: z.enum([
|
|
265
|
-
|
|
324
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
325
|
+
tier: z.enum([
|
|
326
|
+
'basic',
|
|
327
|
+
'pro',
|
|
328
|
+
'enterprise'
|
|
329
|
+
]).optional().default('basic'),
|
|
330
|
+
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'),
|
|
331
|
+
release_channel: z.enum([
|
|
332
|
+
'rapid',
|
|
333
|
+
'stable',
|
|
334
|
+
'extended'
|
|
335
|
+
]).optional().default('rapid'),
|
|
336
|
+
features: z.object({
|
|
337
|
+
gpu_sharing_strategy: z.enum([
|
|
338
|
+
'none',
|
|
339
|
+
'mps',
|
|
340
|
+
'time_slicing'
|
|
341
|
+
]).optional().default('none'),
|
|
342
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
343
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
344
|
+
}).optional().default({
|
|
345
|
+
gpu_sharing_strategy: 'none',
|
|
346
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
347
|
+
cilium_socket_lb_host_namespace_only: false
|
|
348
|
+
})
|
|
266
349
|
});
|
|
350
|
+
/**
|
|
351
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
352
|
+
*/
|
|
267
353
|
export const zFleetCreateInput = z.object({
|
|
268
354
|
limits: z.object({
|
|
269
355
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -274,7 +360,7 @@ export const zFleetCreateInput = z.object({
|
|
|
274
360
|
}).optional(),
|
|
275
361
|
hetzner: z.object({
|
|
276
362
|
enabled: z.boolean(),
|
|
277
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
363
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
278
364
|
}).optional(),
|
|
279
365
|
aws: z.object({
|
|
280
366
|
enabled: z.boolean(),
|
|
@@ -442,7 +528,7 @@ export const zFleetCreateInput = z.object({
|
|
|
442
528
|
'x8g',
|
|
443
529
|
'z1d',
|
|
444
530
|
'z3'
|
|
445
|
-
])).optional(),
|
|
531
|
+
])).optional().default([]),
|
|
446
532
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
447
533
|
'africa-south1',
|
|
448
534
|
'ap-northeast-1',
|
|
@@ -508,11 +594,19 @@ export const zFleetCreateInput = z.object({
|
|
|
508
594
|
'us-west2',
|
|
509
595
|
'us-west3',
|
|
510
596
|
'us-west4'
|
|
511
|
-
])).optional()
|
|
512
|
-
}).optional()
|
|
597
|
+
])).optional().default([])
|
|
598
|
+
}).optional().default({
|
|
599
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
600
|
+
'kubernetes.io/arch': ['amd64'],
|
|
601
|
+
'cfke.io/instance-family': [],
|
|
602
|
+
'topology.kubernetes.io/region': []
|
|
603
|
+
}),
|
|
513
604
|
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
514
605
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
515
606
|
});
|
|
607
|
+
/**
|
|
608
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
609
|
+
*/
|
|
516
610
|
export const zFleet = z.object({
|
|
517
611
|
limits: z.object({
|
|
518
612
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -530,8 +624,8 @@ export const zFleet = z.object({
|
|
|
530
624
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
531
625
|
}).optional(),
|
|
532
626
|
constraints: z.object({
|
|
533
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).
|
|
534
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).
|
|
627
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
628
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
535
629
|
'cfke.io/instance-family': z.array(z.enum([
|
|
536
630
|
'a1',
|
|
537
631
|
'a2',
|
|
@@ -691,7 +785,7 @@ export const zFleet = z.object({
|
|
|
691
785
|
'x8g',
|
|
692
786
|
'z1d',
|
|
693
787
|
'z3'
|
|
694
|
-
])).optional(),
|
|
788
|
+
])).optional().default([]),
|
|
695
789
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
696
790
|
'africa-south1',
|
|
697
791
|
'ap-northeast-1',
|
|
@@ -757,11 +851,23 @@ export const zFleet = z.object({
|
|
|
757
851
|
'us-west2',
|
|
758
852
|
'us-west3',
|
|
759
853
|
'us-west4'
|
|
760
|
-
])).optional()
|
|
761
|
-
}).
|
|
854
|
+
])).optional().default([])
|
|
855
|
+
}).default({
|
|
856
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
857
|
+
'kubernetes.io/arch': ['amd64'],
|
|
858
|
+
'cfke.io/instance-family': [],
|
|
859
|
+
'topology.kubernetes.io/region': []
|
|
860
|
+
}),
|
|
762
861
|
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
763
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
862
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
863
|
+
ready: z.boolean(),
|
|
864
|
+
status_message: z.string().optional(),
|
|
865
|
+
created_at: z.string(),
|
|
866
|
+
updated_at: z.string()
|
|
764
867
|
});
|
|
868
|
+
/**
|
|
869
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
870
|
+
*/
|
|
765
871
|
export const zFleetUpdateInput = z.object({
|
|
766
872
|
limits: z.object({
|
|
767
873
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -772,15 +878,15 @@ export const zFleetUpdateInput = z.object({
|
|
|
772
878
|
}).optional(),
|
|
773
879
|
hetzner: z.object({
|
|
774
880
|
enabled: z.boolean(),
|
|
775
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
881
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
776
882
|
}).optional(),
|
|
777
883
|
aws: z.object({
|
|
778
884
|
enabled: z.boolean(),
|
|
779
885
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
780
886
|
}).optional(),
|
|
781
887
|
constraints: z.object({
|
|
782
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
783
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
888
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
889
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
784
890
|
'cfke.io/instance-family': z.array(z.enum([
|
|
785
891
|
'a1',
|
|
786
892
|
'a2',
|
|
@@ -940,7 +1046,7 @@ export const zFleetUpdateInput = z.object({
|
|
|
940
1046
|
'x8g',
|
|
941
1047
|
'z1d',
|
|
942
1048
|
'z3'
|
|
943
|
-
])).optional(),
|
|
1049
|
+
])).optional().default([]),
|
|
944
1050
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
945
1051
|
'africa-south1',
|
|
946
1052
|
'ap-northeast-1',
|
|
@@ -1006,16 +1112,26 @@ export const zFleetUpdateInput = z.object({
|
|
|
1006
1112
|
'us-west2',
|
|
1007
1113
|
'us-west3',
|
|
1008
1114
|
'us-west4'
|
|
1009
|
-
])).optional()
|
|
1010
|
-
}).optional()
|
|
1011
|
-
|
|
1115
|
+
])).optional().default([])
|
|
1116
|
+
}).optional().default({
|
|
1117
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1118
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1119
|
+
'cfke.io/instance-family': [],
|
|
1120
|
+
'topology.kubernetes.io/region': []
|
|
1121
|
+
}),
|
|
1122
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
|
|
1123
|
+
});
|
|
1124
|
+
export const zInviteCreateInput = z.object({
|
|
1125
|
+
email: z.email(),
|
|
1126
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1012
1127
|
});
|
|
1013
1128
|
export const zInvite = z.object({
|
|
1014
1129
|
id: z.string().optional(),
|
|
1015
1130
|
organization_id: z.uuid().optional(),
|
|
1016
1131
|
date_created: z.iso.datetime(),
|
|
1017
1132
|
email: z.email().optional(),
|
|
1018
|
-
code: z.string().optional()
|
|
1133
|
+
code: z.string().optional(),
|
|
1134
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1019
1135
|
});
|
|
1020
1136
|
export const zInvoice = z.object({
|
|
1021
1137
|
id: z.string().optional(),
|
|
@@ -1055,21 +1171,28 @@ export const zMarketplaceListing = z.object({
|
|
|
1055
1171
|
}).optional()
|
|
1056
1172
|
});
|
|
1057
1173
|
export const zOrganizationCreateInput = z.object({
|
|
1174
|
+
type: z.enum(['business', 'personal']),
|
|
1058
1175
|
email: z.email(),
|
|
1059
|
-
first_name: z.string(),
|
|
1060
|
-
last_name: z.string(),
|
|
1176
|
+
first_name: z.string().min(1),
|
|
1177
|
+
last_name: z.string().min(1),
|
|
1061
1178
|
company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
|
|
1062
1179
|
password: z.string().min(8)
|
|
1063
1180
|
});
|
|
1181
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1182
|
+
id: z.string()
|
|
1183
|
+
});
|
|
1064
1184
|
export const zOrganization = z.object({
|
|
1065
1185
|
id: z.uuid(),
|
|
1066
1186
|
name: z.string().min(2).max(120).optional(),
|
|
1187
|
+
type: z.enum(['business', 'personal']),
|
|
1067
1188
|
date_created: z.iso.datetime(),
|
|
1068
1189
|
quota: z.object({
|
|
1069
1190
|
basic_clusters_max: z.int().gte(0),
|
|
1070
1191
|
basic_clusters_available: z.int(),
|
|
1071
1192
|
pro_clusters_max: z.int().gte(0),
|
|
1072
1193
|
pro_clusters_available: z.int(),
|
|
1194
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1195
|
+
enterprise_clusters_available: z.int(),
|
|
1073
1196
|
fleets_max: z.int().gte(0),
|
|
1074
1197
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1075
1198
|
regions: z.array(z.string()).min(1),
|
|
@@ -1083,32 +1206,36 @@ export const zOrganization = z.object({
|
|
|
1083
1206
|
'active',
|
|
1084
1207
|
'closed',
|
|
1085
1208
|
'suspended'
|
|
1209
|
+
]),
|
|
1210
|
+
verification: z.enum([
|
|
1211
|
+
'none',
|
|
1212
|
+
'submitted',
|
|
1213
|
+
'verified'
|
|
1086
1214
|
])
|
|
1087
1215
|
});
|
|
1088
1216
|
export const zPaymentMethod = z.object({
|
|
1089
|
-
id: z.
|
|
1090
|
-
|
|
1091
|
-
|
|
1217
|
+
id: z.string(),
|
|
1218
|
+
type: z.enum([
|
|
1219
|
+
'card',
|
|
1220
|
+
'sepa_debit',
|
|
1221
|
+
'bank_transfer'
|
|
1222
|
+
]),
|
|
1092
1223
|
last4: z.string(),
|
|
1093
1224
|
exp_month: z.int().gte(1).lte(12),
|
|
1094
|
-
exp_year: z.int()
|
|
1095
|
-
brand: z.
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
'jcb',
|
|
1101
|
-
'mastercard',
|
|
1102
|
-
'unionpay',
|
|
1103
|
-
'visa',
|
|
1104
|
-
'unknown'
|
|
1105
|
-
])
|
|
1225
|
+
exp_year: z.int(),
|
|
1226
|
+
brand: z.string(),
|
|
1227
|
+
iban: z.string(),
|
|
1228
|
+
bic: z.string(),
|
|
1229
|
+
account_holder_name: z.string(),
|
|
1230
|
+
is_default: z.boolean()
|
|
1106
1231
|
});
|
|
1107
1232
|
export const zPlatformQuota = z.object({
|
|
1108
1233
|
basic_clusters_max: z.int().gte(0),
|
|
1109
1234
|
basic_clusters_available: z.int(),
|
|
1110
1235
|
pro_clusters_max: z.int().gte(0),
|
|
1111
1236
|
pro_clusters_available: z.int(),
|
|
1237
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1238
|
+
enterprise_clusters_available: z.int(),
|
|
1112
1239
|
fleets_max: z.int().gte(0),
|
|
1113
1240
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1114
1241
|
regions: z.array(z.string()).min(1),
|
|
@@ -1179,39 +1306,6 @@ export const zTicketCreateInput = z.object({
|
|
|
1179
1306
|
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1180
1307
|
properties: z.record(z.string(), z.unknown()).optional()
|
|
1181
1308
|
});
|
|
1182
|
-
export const zTicketListResponse = z.object({
|
|
1183
|
-
items: z.array(z.object({
|
|
1184
|
-
id: z.string(),
|
|
1185
|
-
status: z.enum([
|
|
1186
|
-
'waiting_on_us',
|
|
1187
|
-
'waiting_on_user',
|
|
1188
|
-
'closed'
|
|
1189
|
-
]),
|
|
1190
|
-
category: z.enum([
|
|
1191
|
-
'billing',
|
|
1192
|
-
'technical',
|
|
1193
|
-
'general'
|
|
1194
|
-
]),
|
|
1195
|
-
summary: z.string(),
|
|
1196
|
-
closed_at: z.iso.datetime().optional(),
|
|
1197
|
-
date_created: z.iso.datetime(),
|
|
1198
|
-
date_updated: z.iso.datetime(),
|
|
1199
|
-
messages: z.array(z.object({
|
|
1200
|
-
id: z.string(),
|
|
1201
|
-
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1202
|
-
body: z.string(),
|
|
1203
|
-
author_first_name: z.string().optional(),
|
|
1204
|
-
author_last_name: z.string().optional(),
|
|
1205
|
-
attachments: z.array(z.object({
|
|
1206
|
-
id: z.string(),
|
|
1207
|
-
filename: z.string(),
|
|
1208
|
-
content_type: z.string(),
|
|
1209
|
-
size: z.int()
|
|
1210
|
-
})).optional(),
|
|
1211
|
-
date_created: z.iso.datetime()
|
|
1212
|
-
})).optional()
|
|
1213
|
-
}))
|
|
1214
|
-
});
|
|
1215
1309
|
export const zTicketMessageInput = z.object({
|
|
1216
1310
|
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1217
1311
|
});
|
|
@@ -1277,26 +1371,58 @@ export const zTokenUpdateInput = z.object({
|
|
|
1277
1371
|
});
|
|
1278
1372
|
export const zUsageFacets = z.object({
|
|
1279
1373
|
cluster_id: z.array(z.string()).optional(),
|
|
1280
|
-
product: z.array(z.
|
|
1374
|
+
product: z.array(z.enum([
|
|
1375
|
+
'cfke_controlplane_basic',
|
|
1376
|
+
'cfke_controlplane_pro',
|
|
1377
|
+
'cfke_controlplane_enterprise',
|
|
1378
|
+
'cfke_connected_nodes_basic',
|
|
1379
|
+
'cfke_connected_nodes_pro',
|
|
1380
|
+
'cfke_connected_nodes_enterprise',
|
|
1381
|
+
'cfcr_storage'
|
|
1382
|
+
])).optional()
|
|
1281
1383
|
});
|
|
1282
1384
|
export const zUsageResponse = z.object({
|
|
1283
1385
|
data: z.array(z.object({
|
|
1284
1386
|
hour: z.string(),
|
|
1285
1387
|
cluster_id: z.string(),
|
|
1286
|
-
product: z.
|
|
1388
|
+
product: z.enum([
|
|
1389
|
+
'cfke_controlplane_basic',
|
|
1390
|
+
'cfke_controlplane_pro',
|
|
1391
|
+
'cfke_controlplane_enterprise',
|
|
1392
|
+
'cfke_connected_nodes_basic',
|
|
1393
|
+
'cfke_connected_nodes_pro',
|
|
1394
|
+
'cfke_connected_nodes_enterprise',
|
|
1395
|
+
'cfcr_storage'
|
|
1396
|
+
]),
|
|
1287
1397
|
value: z.number(),
|
|
1288
1398
|
price: z.number(),
|
|
1289
1399
|
total: z.number()
|
|
1290
1400
|
})),
|
|
1291
1401
|
facets: z.object({
|
|
1292
1402
|
cluster_id: z.array(z.string()).optional(),
|
|
1293
|
-
product: z.array(z.
|
|
1403
|
+
product: z.array(z.enum([
|
|
1404
|
+
'cfke_controlplane_basic',
|
|
1405
|
+
'cfke_controlplane_pro',
|
|
1406
|
+
'cfke_controlplane_enterprise',
|
|
1407
|
+
'cfke_connected_nodes_basic',
|
|
1408
|
+
'cfke_connected_nodes_pro',
|
|
1409
|
+
'cfke_connected_nodes_enterprise',
|
|
1410
|
+
'cfcr_storage'
|
|
1411
|
+
])).optional()
|
|
1294
1412
|
})
|
|
1295
1413
|
});
|
|
1296
1414
|
export const zUsage = z.object({
|
|
1297
1415
|
hour: z.string(),
|
|
1298
1416
|
cluster_id: z.string(),
|
|
1299
|
-
product: z.
|
|
1417
|
+
product: 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
|
+
]),
|
|
1300
1426
|
value: z.number(),
|
|
1301
1427
|
price: z.number(),
|
|
1302
1428
|
total: z.number()
|
|
@@ -1306,9 +1432,7 @@ export const zUserCreateInput = z.object({
|
|
|
1306
1432
|
first_name: z.string().min(1).max(50),
|
|
1307
1433
|
last_name: z.string().min(1).max(50),
|
|
1308
1434
|
code: z.string(),
|
|
1309
|
-
password: z.string().min(8)
|
|
1310
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
1311
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1435
|
+
password: z.string().min(8)
|
|
1312
1436
|
});
|
|
1313
1437
|
export const zUser = z.object({
|
|
1314
1438
|
email: z.email(),
|
|
@@ -1326,202 +1450,171 @@ export const zUserUpdateInput = z.object({
|
|
|
1326
1450
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1327
1451
|
status: z.enum(['active', 'inactive']).optional()
|
|
1328
1452
|
});
|
|
1329
|
-
export const
|
|
1330
|
-
|
|
1331
|
-
'hourly',
|
|
1332
|
-
'daily',
|
|
1333
|
-
'monthly'
|
|
1334
|
-
]).optional().default('daily')
|
|
1453
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1454
|
+
email: z.string()
|
|
1335
1455
|
});
|
|
1336
1456
|
/**
|
|
1337
|
-
*
|
|
1457
|
+
* An array of organizations the user belongs to.
|
|
1338
1458
|
*/
|
|
1339
|
-
export const
|
|
1459
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1460
|
+
realm: z.string().optional(),
|
|
1461
|
+
displayName: z.string().optional()
|
|
1462
|
+
}));
|
|
1340
1463
|
/**
|
|
1341
|
-
*
|
|
1464
|
+
* An array of users
|
|
1342
1465
|
*/
|
|
1343
|
-
export const
|
|
1466
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1467
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1344
1468
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
*
|
|
1469
|
+
* Successfully created. Returns created user details.
|
|
1347
1470
|
*/
|
|
1348
|
-
export const
|
|
1349
|
-
|
|
1471
|
+
export const zCreateUserResponse = zUser;
|
|
1472
|
+
export const zDeleteUserPath = z.object({
|
|
1473
|
+
user_id: z.string()
|
|
1350
1474
|
});
|
|
1351
1475
|
/**
|
|
1352
|
-
*
|
|
1476
|
+
* User profile information
|
|
1353
1477
|
*/
|
|
1354
|
-
export const
|
|
1478
|
+
export const zDeleteUserResponse = zUser;
|
|
1479
|
+
export const zGetUserPath = z.object({
|
|
1480
|
+
user_id: z.string()
|
|
1481
|
+
});
|
|
1355
1482
|
/**
|
|
1356
|
-
*
|
|
1483
|
+
* User profile information
|
|
1357
1484
|
*/
|
|
1358
|
-
export const
|
|
1359
|
-
export const
|
|
1485
|
+
export const zGetUserResponse = zUser;
|
|
1486
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1487
|
+
export const zUpdateUserPath = z.object({
|
|
1488
|
+
user_id: z.string()
|
|
1489
|
+
});
|
|
1360
1490
|
/**
|
|
1361
|
-
* Successfully
|
|
1491
|
+
* Successfully created. Returns created user details.
|
|
1362
1492
|
*/
|
|
1363
|
-
export const
|
|
1493
|
+
export const zUpdateUserResponse = zUser;
|
|
1364
1494
|
/**
|
|
1365
|
-
*
|
|
1495
|
+
* Returns a list of access token details with masked secrets.
|
|
1366
1496
|
*/
|
|
1367
|
-
export const
|
|
1368
|
-
export const
|
|
1369
|
-
code: z.string().optional()
|
|
1370
|
-
});
|
|
1371
|
-
export const zListChartsPath = z.object({
|
|
1372
|
-
cluster_id: z.string()
|
|
1373
|
-
});
|
|
1497
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1498
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1374
1499
|
/**
|
|
1375
|
-
*
|
|
1500
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1376
1501
|
*/
|
|
1377
|
-
export const
|
|
1378
|
-
export const
|
|
1379
|
-
|
|
1380
|
-
cluster_id: z.string()
|
|
1502
|
+
export const zCreateTokenResponse = zToken;
|
|
1503
|
+
export const zDeleteTokenPath = z.object({
|
|
1504
|
+
token_id: z.string()
|
|
1381
1505
|
});
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
*/
|
|
1385
|
-
export const zCreateChartResponse = z.string();
|
|
1386
|
-
export const zDeleteChartPath = z.object({
|
|
1387
|
-
cluster_id: z.string(),
|
|
1388
|
-
chart_name: z.string()
|
|
1506
|
+
export const zGetTokenPath = z.object({
|
|
1507
|
+
token_id: z.string()
|
|
1389
1508
|
});
|
|
1390
1509
|
/**
|
|
1391
|
-
*
|
|
1510
|
+
* Returns access token details with masked secret.
|
|
1392
1511
|
*/
|
|
1393
|
-
export const
|
|
1394
|
-
export const
|
|
1395
|
-
|
|
1396
|
-
|
|
1512
|
+
export const zGetTokenResponse = zToken;
|
|
1513
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1514
|
+
export const zUpdateTokenPath = z.object({
|
|
1515
|
+
token_id: z.string()
|
|
1397
1516
|
});
|
|
1398
1517
|
/**
|
|
1399
|
-
* Returns
|
|
1518
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1400
1519
|
*/
|
|
1401
|
-
export const
|
|
1402
|
-
export const
|
|
1403
|
-
|
|
1404
|
-
cluster_id: z.string(),
|
|
1405
|
-
chart_name: z.string()
|
|
1520
|
+
export const zUpdateTokenResponse = zToken;
|
|
1521
|
+
export const zRegenerateTokenPath = z.object({
|
|
1522
|
+
token_id: z.string()
|
|
1406
1523
|
});
|
|
1407
1524
|
/**
|
|
1408
|
-
* Successfully updated.
|
|
1525
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1409
1526
|
*/
|
|
1410
|
-
export const
|
|
1411
|
-
export const zListFleetsPath = z.object({
|
|
1412
|
-
cluster_id: z.string()
|
|
1413
|
-
});
|
|
1527
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1414
1528
|
/**
|
|
1415
|
-
* An array of
|
|
1529
|
+
* An array of tickets for the organization, newest first.
|
|
1416
1530
|
*/
|
|
1417
|
-
export const
|
|
1418
|
-
export const
|
|
1419
|
-
|
|
1420
|
-
|
|
1531
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1532
|
+
export const zCreateTicketBody = z.object({
|
|
1533
|
+
payload: z.string().optional(),
|
|
1534
|
+
attachments: z.array(z.string()).optional()
|
|
1421
1535
|
});
|
|
1422
1536
|
/**
|
|
1423
|
-
*
|
|
1537
|
+
* Ticket created.
|
|
1424
1538
|
*/
|
|
1425
|
-
export const
|
|
1426
|
-
export const
|
|
1427
|
-
|
|
1428
|
-
fleet_name: z.string()
|
|
1539
|
+
export const zCreateTicketResponse = zTicket;
|
|
1540
|
+
export const zCloseTicketPath = z.object({
|
|
1541
|
+
ticket_id: z.string()
|
|
1429
1542
|
});
|
|
1430
1543
|
/**
|
|
1431
|
-
*
|
|
1544
|
+
* Ticket closed.
|
|
1432
1545
|
*/
|
|
1433
|
-
export const
|
|
1434
|
-
export const
|
|
1435
|
-
|
|
1436
|
-
fleet_name: z.string()
|
|
1546
|
+
export const zCloseTicketResponse = zTicket;
|
|
1547
|
+
export const zGetTicketPath = z.object({
|
|
1548
|
+
ticket_id: z.string()
|
|
1437
1549
|
});
|
|
1438
1550
|
/**
|
|
1439
|
-
*
|
|
1551
|
+
* Ticket with messages (internal notes excluded).
|
|
1440
1552
|
*/
|
|
1441
|
-
export const
|
|
1442
|
-
export const
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1553
|
+
export const zGetTicketResponse = zTicket;
|
|
1554
|
+
export const zReplyTicketBody = z.object({
|
|
1555
|
+
payload: z.string().optional(),
|
|
1556
|
+
attachments: z.array(z.string()).optional()
|
|
1557
|
+
});
|
|
1558
|
+
export const zReplyTicketPath = z.object({
|
|
1559
|
+
ticket_id: z.string()
|
|
1446
1560
|
});
|
|
1447
1561
|
/**
|
|
1448
|
-
*
|
|
1562
|
+
* Reply appended.
|
|
1449
1563
|
*/
|
|
1450
|
-
export const
|
|
1451
|
-
export const
|
|
1452
|
-
|
|
1564
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1565
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1566
|
+
ticket_id: z.string(),
|
|
1567
|
+
attachment_id: z.string()
|
|
1453
1568
|
});
|
|
1454
1569
|
/**
|
|
1455
|
-
*
|
|
1570
|
+
* Attachment binary stream.
|
|
1456
1571
|
*/
|
|
1457
|
-
export const
|
|
1458
|
-
export const zCreateClusterBody = zClusterCreateInput;
|
|
1572
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1459
1573
|
/**
|
|
1460
|
-
*
|
|
1574
|
+
* List of repositories
|
|
1461
1575
|
*/
|
|
1462
|
-
export const
|
|
1463
|
-
export const
|
|
1464
|
-
|
|
1576
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1577
|
+
export const zListTagsPath = z.object({
|
|
1578
|
+
region: z.string(),
|
|
1579
|
+
repository: z.string()
|
|
1465
1580
|
});
|
|
1466
1581
|
/**
|
|
1467
|
-
*
|
|
1582
|
+
* Repository with tags
|
|
1468
1583
|
*/
|
|
1469
|
-
export const
|
|
1470
|
-
export const
|
|
1471
|
-
|
|
1584
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1585
|
+
export const zDeleteTagPath = z.object({
|
|
1586
|
+
region: z.string(),
|
|
1587
|
+
repository: z.string(),
|
|
1588
|
+
tag: z.string()
|
|
1589
|
+
});
|
|
1590
|
+
export const zGetTagPath = z.object({
|
|
1591
|
+
region: z.string(),
|
|
1592
|
+
repository: z.string(),
|
|
1593
|
+
tag: z.string()
|
|
1472
1594
|
});
|
|
1473
1595
|
/**
|
|
1474
|
-
*
|
|
1596
|
+
* Tag details
|
|
1475
1597
|
*/
|
|
1476
|
-
export const
|
|
1477
|
-
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1478
|
-
export const zUpdateClusterPath = z.object({
|
|
1479
|
-
cluster_id: z.string()
|
|
1480
|
-
});
|
|
1598
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1481
1599
|
/**
|
|
1482
|
-
*
|
|
1600
|
+
* Returns a single object containing organization details.
|
|
1483
1601
|
*/
|
|
1484
|
-
export const
|
|
1485
|
-
export const
|
|
1486
|
-
cluster_id: z.string()
|
|
1487
|
-
});
|
|
1488
|
-
/**
|
|
1489
|
-
* An object of cluster join information
|
|
1490
|
-
*/
|
|
1491
|
-
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1492
|
-
/**
|
|
1493
|
-
* An array of invites
|
|
1494
|
-
*/
|
|
1495
|
-
export const zListInvitesResponse = z.array(zInvite);
|
|
1496
|
-
export const zCreateInviteBody = z.object({
|
|
1497
|
-
email: z.string().optional()
|
|
1498
|
-
});
|
|
1499
|
-
/**
|
|
1500
|
-
* Successfully created. Returns created invite details.
|
|
1501
|
-
*/
|
|
1502
|
-
export const zCreateInviteResponse = zInvite;
|
|
1503
|
-
export const zGetInvitePath = z.object({
|
|
1504
|
-
code: z.string()
|
|
1505
|
-
});
|
|
1602
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1603
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1506
1604
|
/**
|
|
1507
|
-
* Returns
|
|
1605
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1606
|
+
*
|
|
1508
1607
|
*/
|
|
1509
|
-
export const
|
|
1510
|
-
export const zDeleteInvitePath = z.object({
|
|
1511
|
-
email: z.string()
|
|
1512
|
-
});
|
|
1608
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1513
1609
|
/**
|
|
1514
|
-
*
|
|
1610
|
+
* Returns the current consent status.
|
|
1515
1611
|
*/
|
|
1516
|
-
export const
|
|
1517
|
-
export const
|
|
1518
|
-
chart_name: z.string(),
|
|
1519
|
-
version_channel: z.string()
|
|
1520
|
-
});
|
|
1612
|
+
export const zGetBasicPriceConsentResponse = zBasicPriceConsent;
|
|
1613
|
+
export const zSetBasicPriceConsentBody = zBasicPriceConsentInput;
|
|
1521
1614
|
/**
|
|
1522
|
-
*
|
|
1615
|
+
* Decision recorded. Returns the updated consent status.
|
|
1523
1616
|
*/
|
|
1524
|
-
export const
|
|
1617
|
+
export const zSetBasicPriceConsentResponse = zBasicPriceConsent;
|
|
1525
1618
|
/**
|
|
1526
1619
|
* JSON-RPC 2.0 request payload
|
|
1527
1620
|
*/
|
|
@@ -1550,154 +1643,214 @@ export const zPostMcpResponse = z.object({
|
|
|
1550
1643
|
}).optional()
|
|
1551
1644
|
});
|
|
1552
1645
|
/**
|
|
1553
|
-
*
|
|
1646
|
+
* An array of chart listings in the marketplace.
|
|
1554
1647
|
*/
|
|
1555
|
-
export const
|
|
1556
|
-
export const
|
|
1648
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1649
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1650
|
+
chart_name: z.string(),
|
|
1651
|
+
version_channel: z.string()
|
|
1652
|
+
});
|
|
1557
1653
|
/**
|
|
1558
|
-
*
|
|
1654
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1559
1655
|
*/
|
|
1560
|
-
export const
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1656
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1657
|
+
/**
|
|
1658
|
+
* An array of invites
|
|
1659
|
+
*/
|
|
1660
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1661
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1662
|
+
/**
|
|
1663
|
+
* Successfully created. Returns created invite details.
|
|
1664
|
+
*/
|
|
1665
|
+
export const zCreateInviteResponse = zInvite;
|
|
1666
|
+
export const zGetInvitePath = z.object({
|
|
1667
|
+
code: z.string()
|
|
1564
1668
|
});
|
|
1565
1669
|
/**
|
|
1566
|
-
*
|
|
1670
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1567
1671
|
*/
|
|
1568
|
-
export const
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
repository: z.string(),
|
|
1572
|
-
tag: z.string()
|
|
1672
|
+
export const zGetInviteResponse = z.object({
|
|
1673
|
+
email: z.email().optional(),
|
|
1674
|
+
organization_id: z.string().optional()
|
|
1573
1675
|
});
|
|
1574
|
-
export const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1676
|
+
export const zDeleteInvitePath = z.object({
|
|
1677
|
+
email: z.email()
|
|
1678
|
+
});
|
|
1679
|
+
export const zQueryClusterPath = z.object({
|
|
1680
|
+
cluster_id: z.string()
|
|
1681
|
+
});
|
|
1682
|
+
export const zListFleetsPath = z.object({
|
|
1683
|
+
cluster_id: z.string()
|
|
1578
1684
|
});
|
|
1579
1685
|
/**
|
|
1580
|
-
*
|
|
1686
|
+
* An array of fleets
|
|
1581
1687
|
*/
|
|
1582
|
-
export const
|
|
1688
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1689
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1690
|
+
export const zCreateFleetPath = z.object({
|
|
1691
|
+
cluster_id: z.string()
|
|
1692
|
+
});
|
|
1583
1693
|
/**
|
|
1584
|
-
*
|
|
1694
|
+
* Successfully created. Returns created Fleet ID.
|
|
1585
1695
|
*/
|
|
1586
|
-
export const
|
|
1587
|
-
export const
|
|
1588
|
-
|
|
1589
|
-
|
|
1696
|
+
export const zCreateFleetResponse = z.string();
|
|
1697
|
+
export const zDeleteFleetPath = z.object({
|
|
1698
|
+
cluster_id: z.string(),
|
|
1699
|
+
fleet_name: z.string()
|
|
1590
1700
|
});
|
|
1591
1701
|
/**
|
|
1592
|
-
*
|
|
1702
|
+
* Successfully deleted.
|
|
1593
1703
|
*/
|
|
1594
|
-
export const
|
|
1595
|
-
export const
|
|
1596
|
-
|
|
1704
|
+
export const zDeleteFleetResponse = z.string();
|
|
1705
|
+
export const zGetFleetPath = z.object({
|
|
1706
|
+
cluster_id: z.string(),
|
|
1707
|
+
fleet_name: z.string()
|
|
1597
1708
|
});
|
|
1598
1709
|
/**
|
|
1599
|
-
*
|
|
1710
|
+
* Returns a single object containing fleet details.
|
|
1600
1711
|
*/
|
|
1601
|
-
export const
|
|
1602
|
-
export const
|
|
1603
|
-
|
|
1712
|
+
export const zGetFleetResponse = zFleet;
|
|
1713
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1714
|
+
export const zUpdateFleetPath = z.object({
|
|
1715
|
+
cluster_id: z.string(),
|
|
1716
|
+
fleet_name: z.string()
|
|
1604
1717
|
});
|
|
1605
1718
|
/**
|
|
1606
|
-
*
|
|
1719
|
+
* Successfully updated.
|
|
1607
1720
|
*/
|
|
1608
|
-
export const
|
|
1609
|
-
export const
|
|
1610
|
-
|
|
1611
|
-
attachments: z.array(z.string()).optional()
|
|
1612
|
-
});
|
|
1613
|
-
export const zReplyTicketPath = z.object({
|
|
1614
|
-
ticket_id: z.string()
|
|
1721
|
+
export const zUpdateFleetResponse = z.string();
|
|
1722
|
+
export const zListChartsPath = z.object({
|
|
1723
|
+
cluster_id: z.string()
|
|
1615
1724
|
});
|
|
1616
1725
|
/**
|
|
1617
|
-
*
|
|
1726
|
+
* An array of charts
|
|
1618
1727
|
*/
|
|
1619
|
-
export const
|
|
1620
|
-
export const
|
|
1621
|
-
|
|
1622
|
-
|
|
1728
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1729
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1730
|
+
export const zCreateChartPath = z.object({
|
|
1731
|
+
cluster_id: z.string()
|
|
1623
1732
|
});
|
|
1624
1733
|
/**
|
|
1625
|
-
*
|
|
1734
|
+
* Successfully created. Returns created Chart ID.
|
|
1626
1735
|
*/
|
|
1627
|
-
export const
|
|
1736
|
+
export const zCreateChartResponse = z.string();
|
|
1737
|
+
export const zDeleteChartPath = z.object({
|
|
1738
|
+
cluster_id: z.string(),
|
|
1739
|
+
chart_name: z.string()
|
|
1740
|
+
});
|
|
1628
1741
|
/**
|
|
1629
|
-
*
|
|
1742
|
+
* Successfully deleted.
|
|
1630
1743
|
*/
|
|
1631
|
-
export const
|
|
1632
|
-
export const
|
|
1744
|
+
export const zDeleteChartResponse = z.string();
|
|
1745
|
+
export const zGetChartPath = z.object({
|
|
1746
|
+
cluster_id: z.string(),
|
|
1747
|
+
chart_name: z.string()
|
|
1748
|
+
});
|
|
1633
1749
|
/**
|
|
1634
|
-
*
|
|
1750
|
+
* Returns a single object containing chart details.
|
|
1635
1751
|
*/
|
|
1636
|
-
export const
|
|
1637
|
-
export const
|
|
1638
|
-
|
|
1752
|
+
export const zGetChartResponse = zChart;
|
|
1753
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1754
|
+
export const zUpdateChartPath = z.object({
|
|
1755
|
+
cluster_id: z.string(),
|
|
1756
|
+
chart_name: z.string()
|
|
1639
1757
|
});
|
|
1640
|
-
|
|
1641
|
-
|
|
1758
|
+
/**
|
|
1759
|
+
* Successfully updated.
|
|
1760
|
+
*/
|
|
1761
|
+
export const zUpdateChartResponse = z.string();
|
|
1762
|
+
/**
|
|
1763
|
+
* An array of clusters
|
|
1764
|
+
*/
|
|
1765
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1766
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1767
|
+
/**
|
|
1768
|
+
* Successfully created. Returns created Cluster ID.
|
|
1769
|
+
*/
|
|
1770
|
+
export const zCreateClusterResponse = z.string();
|
|
1771
|
+
export const zDeleteClusterPath = z.object({
|
|
1772
|
+
cluster_id: z.string()
|
|
1642
1773
|
});
|
|
1643
1774
|
/**
|
|
1644
|
-
*
|
|
1775
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1645
1776
|
*/
|
|
1646
|
-
export const
|
|
1647
|
-
export const
|
|
1648
|
-
|
|
1649
|
-
token_id: z.string()
|
|
1777
|
+
export const zDeleteClusterResponse = z.string();
|
|
1778
|
+
export const zGetClusterPath = z.object({
|
|
1779
|
+
cluster_id: z.string()
|
|
1650
1780
|
});
|
|
1651
1781
|
/**
|
|
1652
|
-
*
|
|
1782
|
+
* Returns a single object containing cluster details.
|
|
1653
1783
|
*/
|
|
1654
|
-
export const
|
|
1655
|
-
export const
|
|
1656
|
-
|
|
1784
|
+
export const zGetClusterResponse = zCluster;
|
|
1785
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1786
|
+
export const zUpdateClusterPath = z.object({
|
|
1787
|
+
cluster_id: z.string()
|
|
1657
1788
|
});
|
|
1658
1789
|
/**
|
|
1659
|
-
* Successfully updated. Returns updated
|
|
1790
|
+
* Successfully updated. Returns updated cluster details.
|
|
1660
1791
|
*/
|
|
1661
|
-
export const
|
|
1662
|
-
export const
|
|
1663
|
-
|
|
1792
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1793
|
+
export const zGetJoinInformationPath = z.object({
|
|
1794
|
+
cluster_id: z.string()
|
|
1664
1795
|
});
|
|
1665
1796
|
/**
|
|
1666
|
-
* An
|
|
1797
|
+
* An object of cluster join information
|
|
1667
1798
|
*/
|
|
1668
|
-
export const
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1799
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1800
|
+
export const zGetUsageQuery = z.object({
|
|
1801
|
+
granularity: z.enum([
|
|
1802
|
+
'hourly',
|
|
1803
|
+
'daily',
|
|
1804
|
+
'monthly'
|
|
1805
|
+
]).optional().default('daily')
|
|
1806
|
+
});
|
|
1672
1807
|
/**
|
|
1673
|
-
*
|
|
1808
|
+
* Usage data with facets for filtering
|
|
1674
1809
|
*/
|
|
1675
|
-
export const
|
|
1676
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1810
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1677
1811
|
/**
|
|
1678
|
-
*
|
|
1812
|
+
* 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.
|
|
1813
|
+
*
|
|
1679
1814
|
*/
|
|
1680
|
-
export const
|
|
1681
|
-
|
|
1682
|
-
user_id: z.string()
|
|
1815
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1816
|
+
id: z.string().optional()
|
|
1683
1817
|
});
|
|
1684
1818
|
/**
|
|
1685
|
-
*
|
|
1819
|
+
* An array of payment methods.
|
|
1686
1820
|
*/
|
|
1687
|
-
export const
|
|
1688
|
-
export const
|
|
1689
|
-
|
|
1821
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1822
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1823
|
+
paymentMethodId: z.string()
|
|
1690
1824
|
});
|
|
1691
1825
|
/**
|
|
1692
|
-
*
|
|
1826
|
+
* Default payment method updated.
|
|
1693
1827
|
*/
|
|
1694
|
-
export const
|
|
1695
|
-
export const
|
|
1696
|
-
|
|
1697
|
-
user_id: z.string()
|
|
1828
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1829
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1830
|
+
paymentMethodId: z.string()
|
|
1698
1831
|
});
|
|
1699
1832
|
/**
|
|
1700
|
-
*
|
|
1833
|
+
* Payment method deleted.
|
|
1701
1834
|
*/
|
|
1702
|
-
export const
|
|
1835
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1836
|
+
/**
|
|
1837
|
+
* An array of usage records.
|
|
1838
|
+
*/
|
|
1839
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1840
|
+
/**
|
|
1841
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1842
|
+
*/
|
|
1843
|
+
export const zGetContactResponse = zBillingContact;
|
|
1844
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1845
|
+
/**
|
|
1846
|
+
* Successfully updated. Returns updated organization details.
|
|
1847
|
+
*/
|
|
1848
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1849
|
+
/**
|
|
1850
|
+
* An array of the applied promotional credits records.
|
|
1851
|
+
*/
|
|
1852
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1853
|
+
export const zRedeemCreditsBody = z.object({
|
|
1854
|
+
code: z.string().optional()
|
|
1855
|
+
});
|
|
1703
1856
|
//# sourceMappingURL=zod.gen.js.map
|