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