@cloudfleet/sdk 0.0.1-19f2280 → 0.0.1-1af6861
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 +1149 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1165 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +217 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +8 -7
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +6 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/{utils.d.ts → utils.gen.d.ts} +17 -25
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/{utils.js → utils.gen.js} +66 -122
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +3 -3
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -3
- package/dist/client.gen.js.map +1 -1
- package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/{auth.js → auth.gen.js} +2 -1
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/{params.d.ts → params.gen.d.ts} +21 -1
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/{params.js → params.gen.js} +24 -11
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/{types.d.ts → types.gen.d.ts} +21 -16
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1519 -571
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2936 -741
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +286 -164
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +406 -337
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1778 -792
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3775 -3726
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1347 -1161
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -8
- package/dist/client/client.d.ts +0 -3
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/client.js +0 -144
- package/dist/client/client.js.map +0 -1
- package/dist/client/types.d.ts.map +0 -1
- package/dist/client/types.js +0 -2
- package/dist/client/types.js.map +0 -1
- package/dist/client/utils.d.ts.map +0 -1
- package/dist/client/utils.js.map +0 -1
- package/dist/core/auth.d.ts.map +0 -1
- package/dist/core/auth.js.map +0 -1
- package/dist/core/bodySerializer.d.ts +0 -18
- package/dist/core/bodySerializer.d.ts.map +0 -1
- package/dist/core/bodySerializer.js.map +0 -1
- package/dist/core/params.d.ts.map +0 -1
- package/dist/core/params.js.map +0 -1
- package/dist/core/pathSerializer.d.ts.map +0 -1
- package/dist/core/pathSerializer.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -2
- package/dist/core/types.js.map +0 -1
package/dist/zod.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import
|
|
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(),
|
|
@@ -9,9 +10,8 @@ export const zBillingContact = z.object({
|
|
|
9
10
|
state: z.string().optional(),
|
|
10
11
|
country: z.string().optional(),
|
|
11
12
|
phone: z.string().optional(),
|
|
12
|
-
email: z.
|
|
13
|
-
|
|
14
|
-
last_name: z.string(),
|
|
13
|
+
email: z.email(),
|
|
14
|
+
individual_name: z.string(),
|
|
15
15
|
tax_id: z.string().optional(),
|
|
16
16
|
tax_id_type: z.enum([
|
|
17
17
|
'ad_nrt',
|
|
@@ -146,16 +146,12 @@ export const zBillingContact = z.object({
|
|
|
146
146
|
});
|
|
147
147
|
export const zBillingCredits = z.object({
|
|
148
148
|
id: z.string().optional(),
|
|
149
|
-
|
|
149
|
+
type: z.enum(['credit', 'discount']),
|
|
150
|
+
date_start: z.iso.datetime(),
|
|
151
|
+
date_end: z.iso.datetime().optional(),
|
|
150
152
|
code: z.string(),
|
|
151
153
|
description: z.string().optional(),
|
|
152
|
-
|
|
153
|
-
type: z.enum([
|
|
154
|
-
'credit',
|
|
155
|
-
'discount'
|
|
156
|
-
]),
|
|
157
|
-
value: z.number(),
|
|
158
|
-
billing_period: z.string().datetime(),
|
|
154
|
+
value_total: z.number(),
|
|
159
155
|
value_remaining: z.number().optional()
|
|
160
156
|
});
|
|
161
157
|
export const zChartCreateInput = z.object({
|
|
@@ -171,22 +167,7 @@ export const zChart = z.object({
|
|
|
171
167
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
172
168
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
173
169
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
174
|
-
status: z.
|
|
175
|
-
'InstallSucceeded',
|
|
176
|
-
'InstallFailed',
|
|
177
|
-
'UpgradeSucceeded',
|
|
178
|
-
'UpgradeFailed',
|
|
179
|
-
'TestSucceeded',
|
|
180
|
-
'TestFailed',
|
|
181
|
-
'RollbackSucceeded',
|
|
182
|
-
'RollbackFailed',
|
|
183
|
-
'UninstallSucceeded',
|
|
184
|
-
'UninstallFailed',
|
|
185
|
-
'ArtifactFailed',
|
|
186
|
-
'DependencyNotReady',
|
|
187
|
-
'Progressing',
|
|
188
|
-
'SourceNotReady'
|
|
189
|
-
]),
|
|
170
|
+
status: z.string(),
|
|
190
171
|
version_current: z.string(),
|
|
191
172
|
created_at: z.string(),
|
|
192
173
|
updated_at: z.string(),
|
|
@@ -198,26 +179,47 @@ export const zChartUpdateInput = z.object({
|
|
|
198
179
|
});
|
|
199
180
|
export const zClusterCreateInput = z.object({
|
|
200
181
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
201
|
-
tier: z.enum([
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
182
|
+
tier: z.enum(['basic', 'pro']),
|
|
183
|
+
region: z.string(),
|
|
184
|
+
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'),
|
|
185
|
+
release_channel: z.enum([
|
|
186
|
+
'rapid',
|
|
187
|
+
'stable',
|
|
188
|
+
'extended'
|
|
189
|
+
]).optional().default('rapid'),
|
|
190
|
+
features: z.object({
|
|
191
|
+
gpu_sharing_strategy: z.enum([
|
|
192
|
+
'none',
|
|
193
|
+
'mps',
|
|
194
|
+
'time_slicing'
|
|
195
|
+
]),
|
|
196
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
197
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
198
|
+
}).optional().default({
|
|
199
|
+
gpu_sharing_strategy: 'none',
|
|
200
|
+
gpu_max_shared_clients_per_gpu: 10,
|
|
201
|
+
cilium_socket_lb_host_namespace_only: false
|
|
202
|
+
}),
|
|
203
|
+
networking: z.object({
|
|
204
|
+
pod_cidr: z.string().optional(),
|
|
205
|
+
service_cidr: z.string().optional(),
|
|
206
|
+
dual_stack: z.boolean().optional(),
|
|
207
|
+
pod_cidr_v6: z.string().optional(),
|
|
208
|
+
service_cidr_v6: z.string().optional()
|
|
209
|
+
}).optional()
|
|
211
210
|
});
|
|
212
211
|
export const zClusterJoinInformation = z.object({
|
|
213
212
|
certificate_authority: z.string(),
|
|
214
|
-
endpoint: z.
|
|
213
|
+
endpoint: z.url(),
|
|
214
|
+
cluster_dns: z.string(),
|
|
215
|
+
pod_cidr: z.string(),
|
|
215
216
|
auth_key: z.string(),
|
|
216
217
|
bootstrap_token: z.string(),
|
|
217
218
|
versions: z.object({
|
|
218
219
|
kubernetes: z.string(),
|
|
219
220
|
tailscale: z.string(),
|
|
220
|
-
containerd: z.string()
|
|
221
|
+
containerd: z.string(),
|
|
222
|
+
nvidia_driver: z.string()
|
|
221
223
|
}),
|
|
222
224
|
third_party_api_access_config: z.object({
|
|
223
225
|
metadata_url: z.string(),
|
|
@@ -227,1354 +229,1538 @@ export const zClusterJoinInformation = z.object({
|
|
|
227
229
|
});
|
|
228
230
|
export const zCluster = z.object({
|
|
229
231
|
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
|
-
|
|
237
|
-
|
|
232
|
+
tier: z.enum(['basic', 'pro']),
|
|
233
|
+
region: z.string(),
|
|
234
|
+
networking: z.object({
|
|
235
|
+
pod_cidr: z.string().optional(),
|
|
236
|
+
service_cidr: z.string().optional(),
|
|
237
|
+
dual_stack: z.boolean().optional(),
|
|
238
|
+
pod_cidr_v6: z.string().optional(),
|
|
239
|
+
service_cidr_v6: z.string().optional()
|
|
240
|
+
}).optional(),
|
|
241
|
+
release_channel: z.enum([
|
|
242
|
+
'rapid',
|
|
243
|
+
'stable',
|
|
244
|
+
'extended'
|
|
238
245
|
]).optional(),
|
|
239
|
-
|
|
240
|
-
|
|
246
|
+
features: z.object({
|
|
247
|
+
gpu_sharing_strategy: z.enum([
|
|
248
|
+
'none',
|
|
249
|
+
'mps',
|
|
250
|
+
'time_slicing'
|
|
251
|
+
]),
|
|
252
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
253
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
254
|
+
}).optional(),
|
|
255
|
+
id: z.uuid(),
|
|
241
256
|
status: z.enum([
|
|
242
|
-
'active',
|
|
243
|
-
'deleted',
|
|
244
257
|
'creating',
|
|
245
258
|
'deployed',
|
|
246
|
-
'
|
|
247
|
-
'
|
|
259
|
+
'updating',
|
|
260
|
+
'disabled'
|
|
248
261
|
]),
|
|
249
262
|
endpoint: z.union([
|
|
250
|
-
z.
|
|
251
|
-
z.enum([
|
|
252
|
-
|
|
253
|
-
|
|
263
|
+
z.url(),
|
|
264
|
+
z.enum([''])
|
|
265
|
+
]).optional(),
|
|
266
|
+
endpoint_public: z.union([
|
|
267
|
+
z.url(),
|
|
268
|
+
z.enum([''])
|
|
254
269
|
]).optional(),
|
|
255
270
|
certificate_ca: z.string().optional(),
|
|
256
271
|
version_current: z.string().optional(),
|
|
257
272
|
created_at: z.string().optional(),
|
|
258
273
|
updated_at: z.string().optional(),
|
|
259
|
-
ready: z.boolean().optional()
|
|
274
|
+
ready: z.boolean().optional(),
|
|
275
|
+
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()
|
|
260
276
|
});
|
|
261
277
|
export const zClusterUpdateInput = z.object({
|
|
262
278
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
263
|
-
tier: z.enum([
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
279
|
+
tier: z.enum(['basic', 'pro']),
|
|
280
|
+
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(),
|
|
281
|
+
release_channel: z.enum([
|
|
282
|
+
'rapid',
|
|
283
|
+
'stable',
|
|
284
|
+
'extended'
|
|
285
|
+
]).optional(),
|
|
286
|
+
features: z.object({
|
|
287
|
+
gpu_sharing_strategy: z.enum([
|
|
288
|
+
'none',
|
|
289
|
+
'mps',
|
|
290
|
+
'time_slicing'
|
|
291
|
+
]),
|
|
292
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
293
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
294
|
+
}).optional()
|
|
268
295
|
});
|
|
269
296
|
export const zFleetCreateInput = z.object({
|
|
270
297
|
limits: z.object({
|
|
271
|
-
cpu: z.
|
|
298
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
272
299
|
}).optional(),
|
|
273
300
|
gcp: z.object({
|
|
274
|
-
enabled: z.boolean()
|
|
275
|
-
project: z.string()
|
|
301
|
+
enabled: z.boolean(),
|
|
302
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
276
303
|
}).optional(),
|
|
277
304
|
hetzner: z.object({
|
|
278
|
-
enabled: z.boolean()
|
|
279
|
-
apiKey: z.string()
|
|
305
|
+
enabled: z.boolean(),
|
|
306
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
280
307
|
}).optional(),
|
|
281
308
|
aws: z.object({
|
|
282
|
-
enabled: z.boolean()
|
|
283
|
-
controllerRoleArn: z.string()
|
|
309
|
+
enabled: z.boolean(),
|
|
310
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
284
311
|
}).optional(),
|
|
312
|
+
constraints: z.object({
|
|
313
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
314
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
315
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
316
|
+
'a1',
|
|
317
|
+
'a2',
|
|
318
|
+
'a3',
|
|
319
|
+
'a4',
|
|
320
|
+
'c1',
|
|
321
|
+
'c2',
|
|
322
|
+
'c2d',
|
|
323
|
+
'c3',
|
|
324
|
+
'c3d',
|
|
325
|
+
'c4',
|
|
326
|
+
'c4a',
|
|
327
|
+
'c4d',
|
|
328
|
+
'c5',
|
|
329
|
+
'c5a',
|
|
330
|
+
'c5ad',
|
|
331
|
+
'c5d',
|
|
332
|
+
'c5n',
|
|
333
|
+
'c6a',
|
|
334
|
+
'c6g',
|
|
335
|
+
'c6gd',
|
|
336
|
+
'c6gn',
|
|
337
|
+
'c6i',
|
|
338
|
+
'c6id',
|
|
339
|
+
'c6in',
|
|
340
|
+
'c7a',
|
|
341
|
+
'c7g',
|
|
342
|
+
'c7gd',
|
|
343
|
+
'c7gn',
|
|
344
|
+
'c7i',
|
|
345
|
+
'c7i-flex',
|
|
346
|
+
'c8g',
|
|
347
|
+
'c8gd',
|
|
348
|
+
'cax',
|
|
349
|
+
'ccx',
|
|
350
|
+
'cpx',
|
|
351
|
+
'cx',
|
|
352
|
+
'd2',
|
|
353
|
+
'd3',
|
|
354
|
+
'd3en',
|
|
355
|
+
'dl1',
|
|
356
|
+
'dl2q',
|
|
357
|
+
'e2',
|
|
358
|
+
'f1',
|
|
359
|
+
'f2',
|
|
360
|
+
'g1',
|
|
361
|
+
'g2',
|
|
362
|
+
'g4ad',
|
|
363
|
+
'g4dn',
|
|
364
|
+
'g5',
|
|
365
|
+
'g5g',
|
|
366
|
+
'g6',
|
|
367
|
+
'g6e',
|
|
368
|
+
'gr6',
|
|
369
|
+
'h1',
|
|
370
|
+
'h3',
|
|
371
|
+
'hpc6a',
|
|
372
|
+
'hpc6id',
|
|
373
|
+
'hpc7a',
|
|
374
|
+
'hpc7g',
|
|
375
|
+
'i2',
|
|
376
|
+
'i3',
|
|
377
|
+
'i3en',
|
|
378
|
+
'i4g',
|
|
379
|
+
'i4i',
|
|
380
|
+
'i7i',
|
|
381
|
+
'i7ie',
|
|
382
|
+
'i8g',
|
|
383
|
+
'im4gn',
|
|
384
|
+
'inf1',
|
|
385
|
+
'inf2',
|
|
386
|
+
'is4gen',
|
|
387
|
+
'm1',
|
|
388
|
+
'm2',
|
|
389
|
+
'm3',
|
|
390
|
+
'm4',
|
|
391
|
+
'm5',
|
|
392
|
+
'm5a',
|
|
393
|
+
'm5ad',
|
|
394
|
+
'm5d',
|
|
395
|
+
'm5dn',
|
|
396
|
+
'm5n',
|
|
397
|
+
'm5zn',
|
|
398
|
+
'm6a',
|
|
399
|
+
'm6g',
|
|
400
|
+
'm6gd',
|
|
401
|
+
'm6i',
|
|
402
|
+
'm6id',
|
|
403
|
+
'm6idn',
|
|
404
|
+
'm6in',
|
|
405
|
+
'm7a',
|
|
406
|
+
'm7g',
|
|
407
|
+
'm7gd',
|
|
408
|
+
'm7i',
|
|
409
|
+
'm7i-flex',
|
|
410
|
+
'm8g',
|
|
411
|
+
'm8gd',
|
|
412
|
+
'n1',
|
|
413
|
+
'n2',
|
|
414
|
+
'n2d',
|
|
415
|
+
'n4',
|
|
416
|
+
'p3',
|
|
417
|
+
'p3dn',
|
|
418
|
+
'p4d',
|
|
419
|
+
'p4de',
|
|
420
|
+
'p5',
|
|
421
|
+
'p5e',
|
|
422
|
+
'p5en',
|
|
423
|
+
'p6-b200',
|
|
424
|
+
'r3',
|
|
425
|
+
'r4',
|
|
426
|
+
'r5',
|
|
427
|
+
'r5a',
|
|
428
|
+
'r5ad',
|
|
429
|
+
'r5b',
|
|
430
|
+
'r5d',
|
|
431
|
+
'r5dn',
|
|
432
|
+
'r5n',
|
|
433
|
+
'r6a',
|
|
434
|
+
'r6g',
|
|
435
|
+
'r6gd',
|
|
436
|
+
'r6i',
|
|
437
|
+
'r6id',
|
|
438
|
+
'r6idn',
|
|
439
|
+
'r6in',
|
|
440
|
+
'r7a',
|
|
441
|
+
'r7g',
|
|
442
|
+
'r7gd',
|
|
443
|
+
'r7i',
|
|
444
|
+
'r7iz',
|
|
445
|
+
'r8g',
|
|
446
|
+
'r8gd',
|
|
447
|
+
't2',
|
|
448
|
+
't2a',
|
|
449
|
+
't2d',
|
|
450
|
+
't3',
|
|
451
|
+
't3a',
|
|
452
|
+
't4g',
|
|
453
|
+
'trn1',
|
|
454
|
+
'trn1n',
|
|
455
|
+
'u-3tb1',
|
|
456
|
+
'u-6tb1',
|
|
457
|
+
'u7i-12tb',
|
|
458
|
+
'u7i-6tb',
|
|
459
|
+
'u7i-8tb',
|
|
460
|
+
'u7in-16tb',
|
|
461
|
+
'u7in-24tb',
|
|
462
|
+
'u7in-32tb',
|
|
463
|
+
'vt1',
|
|
464
|
+
'x1',
|
|
465
|
+
'x1e',
|
|
466
|
+
'x2gd',
|
|
467
|
+
'x2idn',
|
|
468
|
+
'x2iedn',
|
|
469
|
+
'x2iezn',
|
|
470
|
+
'x4',
|
|
471
|
+
'x8g',
|
|
472
|
+
'z1d',
|
|
473
|
+
'z3'
|
|
474
|
+
])).optional(),
|
|
475
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
476
|
+
'africa-south1',
|
|
477
|
+
'ap-northeast-1',
|
|
478
|
+
'ap-northeast-2',
|
|
479
|
+
'ap-northeast-3',
|
|
480
|
+
'ap-south-1',
|
|
481
|
+
'ap-southeast-1',
|
|
482
|
+
'ap-southeast-2',
|
|
483
|
+
'ash',
|
|
484
|
+
'asia-east1',
|
|
485
|
+
'asia-east2',
|
|
486
|
+
'asia-northeast1',
|
|
487
|
+
'asia-northeast2',
|
|
488
|
+
'asia-northeast3',
|
|
489
|
+
'asia-south1',
|
|
490
|
+
'asia-south2',
|
|
491
|
+
'asia-southeast1',
|
|
492
|
+
'asia-southeast2',
|
|
493
|
+
'australia-southeast1',
|
|
494
|
+
'australia-southeast2',
|
|
495
|
+
'ca-central-1',
|
|
496
|
+
'eu-central-1',
|
|
497
|
+
'eu-central-2',
|
|
498
|
+
'eu-north-1',
|
|
499
|
+
'eu-west-1',
|
|
500
|
+
'eu-west-2',
|
|
501
|
+
'eu-west-3',
|
|
502
|
+
'europe-central2',
|
|
503
|
+
'europe-north1',
|
|
504
|
+
'europe-southwest1',
|
|
505
|
+
'europe-west1',
|
|
506
|
+
'europe-west10',
|
|
507
|
+
'europe-west12',
|
|
508
|
+
'europe-west2',
|
|
509
|
+
'europe-west3',
|
|
510
|
+
'europe-west4',
|
|
511
|
+
'europe-west6',
|
|
512
|
+
'europe-west8',
|
|
513
|
+
'europe-west9',
|
|
514
|
+
'fsn1',
|
|
515
|
+
'hel1',
|
|
516
|
+
'hil',
|
|
517
|
+
'me-central1',
|
|
518
|
+
'me-central2',
|
|
519
|
+
'me-west1',
|
|
520
|
+
'nbg1',
|
|
521
|
+
'northamerica-northeast1',
|
|
522
|
+
'northamerica-northeast2',
|
|
523
|
+
'sa-east-1',
|
|
524
|
+
'sin',
|
|
525
|
+
'southamerica-east1',
|
|
526
|
+
'southamerica-west1',
|
|
527
|
+
'us-central1',
|
|
528
|
+
'us-east-1',
|
|
529
|
+
'us-east-2',
|
|
530
|
+
'us-east1',
|
|
531
|
+
'us-east4',
|
|
532
|
+
'us-east5',
|
|
533
|
+
'us-south1',
|
|
534
|
+
'us-west-1',
|
|
535
|
+
'us-west-2',
|
|
536
|
+
'us-west1',
|
|
537
|
+
'us-west2',
|
|
538
|
+
'us-west3',
|
|
539
|
+
'us-west4'
|
|
540
|
+
])).optional()
|
|
541
|
+
}).optional(),
|
|
542
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
285
543
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
286
544
|
});
|
|
287
545
|
export const zFleet = z.object({
|
|
288
546
|
limits: z.object({
|
|
289
|
-
cpu: z.
|
|
547
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
290
548
|
}).optional(),
|
|
291
549
|
gcp: z.object({
|
|
292
|
-
enabled: z.boolean()
|
|
293
|
-
project: z.string()
|
|
550
|
+
enabled: z.boolean(),
|
|
551
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
294
552
|
}).optional(),
|
|
295
553
|
hetzner: z.object({
|
|
296
|
-
enabled: z.boolean()
|
|
297
|
-
apiKey: z.string()
|
|
554
|
+
enabled: z.boolean(),
|
|
555
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
298
556
|
}).optional(),
|
|
299
557
|
aws: z.object({
|
|
300
|
-
enabled: z.boolean()
|
|
301
|
-
controllerRoleArn: z.string()
|
|
558
|
+
enabled: z.boolean(),
|
|
559
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
302
560
|
}).optional(),
|
|
303
|
-
|
|
561
|
+
constraints: z.object({
|
|
562
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
563
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
564
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
565
|
+
'a1',
|
|
566
|
+
'a2',
|
|
567
|
+
'a3',
|
|
568
|
+
'a4',
|
|
569
|
+
'c1',
|
|
570
|
+
'c2',
|
|
571
|
+
'c2d',
|
|
572
|
+
'c3',
|
|
573
|
+
'c3d',
|
|
574
|
+
'c4',
|
|
575
|
+
'c4a',
|
|
576
|
+
'c4d',
|
|
577
|
+
'c5',
|
|
578
|
+
'c5a',
|
|
579
|
+
'c5ad',
|
|
580
|
+
'c5d',
|
|
581
|
+
'c5n',
|
|
582
|
+
'c6a',
|
|
583
|
+
'c6g',
|
|
584
|
+
'c6gd',
|
|
585
|
+
'c6gn',
|
|
586
|
+
'c6i',
|
|
587
|
+
'c6id',
|
|
588
|
+
'c6in',
|
|
589
|
+
'c7a',
|
|
590
|
+
'c7g',
|
|
591
|
+
'c7gd',
|
|
592
|
+
'c7gn',
|
|
593
|
+
'c7i',
|
|
594
|
+
'c7i-flex',
|
|
595
|
+
'c8g',
|
|
596
|
+
'c8gd',
|
|
597
|
+
'cax',
|
|
598
|
+
'ccx',
|
|
599
|
+
'cpx',
|
|
600
|
+
'cx',
|
|
601
|
+
'd2',
|
|
602
|
+
'd3',
|
|
603
|
+
'd3en',
|
|
604
|
+
'dl1',
|
|
605
|
+
'dl2q',
|
|
606
|
+
'e2',
|
|
607
|
+
'f1',
|
|
608
|
+
'f2',
|
|
609
|
+
'g1',
|
|
610
|
+
'g2',
|
|
611
|
+
'g4ad',
|
|
612
|
+
'g4dn',
|
|
613
|
+
'g5',
|
|
614
|
+
'g5g',
|
|
615
|
+
'g6',
|
|
616
|
+
'g6e',
|
|
617
|
+
'gr6',
|
|
618
|
+
'h1',
|
|
619
|
+
'h3',
|
|
620
|
+
'hpc6a',
|
|
621
|
+
'hpc6id',
|
|
622
|
+
'hpc7a',
|
|
623
|
+
'hpc7g',
|
|
624
|
+
'i2',
|
|
625
|
+
'i3',
|
|
626
|
+
'i3en',
|
|
627
|
+
'i4g',
|
|
628
|
+
'i4i',
|
|
629
|
+
'i7i',
|
|
630
|
+
'i7ie',
|
|
631
|
+
'i8g',
|
|
632
|
+
'im4gn',
|
|
633
|
+
'inf1',
|
|
634
|
+
'inf2',
|
|
635
|
+
'is4gen',
|
|
636
|
+
'm1',
|
|
637
|
+
'm2',
|
|
638
|
+
'm3',
|
|
639
|
+
'm4',
|
|
640
|
+
'm5',
|
|
641
|
+
'm5a',
|
|
642
|
+
'm5ad',
|
|
643
|
+
'm5d',
|
|
644
|
+
'm5dn',
|
|
645
|
+
'm5n',
|
|
646
|
+
'm5zn',
|
|
647
|
+
'm6a',
|
|
648
|
+
'm6g',
|
|
649
|
+
'm6gd',
|
|
650
|
+
'm6i',
|
|
651
|
+
'm6id',
|
|
652
|
+
'm6idn',
|
|
653
|
+
'm6in',
|
|
654
|
+
'm7a',
|
|
655
|
+
'm7g',
|
|
656
|
+
'm7gd',
|
|
657
|
+
'm7i',
|
|
658
|
+
'm7i-flex',
|
|
659
|
+
'm8g',
|
|
660
|
+
'm8gd',
|
|
661
|
+
'n1',
|
|
662
|
+
'n2',
|
|
663
|
+
'n2d',
|
|
664
|
+
'n4',
|
|
665
|
+
'p3',
|
|
666
|
+
'p3dn',
|
|
667
|
+
'p4d',
|
|
668
|
+
'p4de',
|
|
669
|
+
'p5',
|
|
670
|
+
'p5e',
|
|
671
|
+
'p5en',
|
|
672
|
+
'p6-b200',
|
|
673
|
+
'r3',
|
|
674
|
+
'r4',
|
|
675
|
+
'r5',
|
|
676
|
+
'r5a',
|
|
677
|
+
'r5ad',
|
|
678
|
+
'r5b',
|
|
679
|
+
'r5d',
|
|
680
|
+
'r5dn',
|
|
681
|
+
'r5n',
|
|
682
|
+
'r6a',
|
|
683
|
+
'r6g',
|
|
684
|
+
'r6gd',
|
|
685
|
+
'r6i',
|
|
686
|
+
'r6id',
|
|
687
|
+
'r6idn',
|
|
688
|
+
'r6in',
|
|
689
|
+
'r7a',
|
|
690
|
+
'r7g',
|
|
691
|
+
'r7gd',
|
|
692
|
+
'r7i',
|
|
693
|
+
'r7iz',
|
|
694
|
+
'r8g',
|
|
695
|
+
'r8gd',
|
|
696
|
+
't2',
|
|
697
|
+
't2a',
|
|
698
|
+
't2d',
|
|
699
|
+
't3',
|
|
700
|
+
't3a',
|
|
701
|
+
't4g',
|
|
702
|
+
'trn1',
|
|
703
|
+
'trn1n',
|
|
704
|
+
'u-3tb1',
|
|
705
|
+
'u-6tb1',
|
|
706
|
+
'u7i-12tb',
|
|
707
|
+
'u7i-6tb',
|
|
708
|
+
'u7i-8tb',
|
|
709
|
+
'u7in-16tb',
|
|
710
|
+
'u7in-24tb',
|
|
711
|
+
'u7in-32tb',
|
|
712
|
+
'vt1',
|
|
713
|
+
'x1',
|
|
714
|
+
'x1e',
|
|
715
|
+
'x2gd',
|
|
716
|
+
'x2idn',
|
|
717
|
+
'x2iedn',
|
|
718
|
+
'x2iezn',
|
|
719
|
+
'x4',
|
|
720
|
+
'x8g',
|
|
721
|
+
'z1d',
|
|
722
|
+
'z3'
|
|
723
|
+
])).optional(),
|
|
724
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
725
|
+
'africa-south1',
|
|
726
|
+
'ap-northeast-1',
|
|
727
|
+
'ap-northeast-2',
|
|
728
|
+
'ap-northeast-3',
|
|
729
|
+
'ap-south-1',
|
|
730
|
+
'ap-southeast-1',
|
|
731
|
+
'ap-southeast-2',
|
|
732
|
+
'ash',
|
|
733
|
+
'asia-east1',
|
|
734
|
+
'asia-east2',
|
|
735
|
+
'asia-northeast1',
|
|
736
|
+
'asia-northeast2',
|
|
737
|
+
'asia-northeast3',
|
|
738
|
+
'asia-south1',
|
|
739
|
+
'asia-south2',
|
|
740
|
+
'asia-southeast1',
|
|
741
|
+
'asia-southeast2',
|
|
742
|
+
'australia-southeast1',
|
|
743
|
+
'australia-southeast2',
|
|
744
|
+
'ca-central-1',
|
|
745
|
+
'eu-central-1',
|
|
746
|
+
'eu-central-2',
|
|
747
|
+
'eu-north-1',
|
|
748
|
+
'eu-west-1',
|
|
749
|
+
'eu-west-2',
|
|
750
|
+
'eu-west-3',
|
|
751
|
+
'europe-central2',
|
|
752
|
+
'europe-north1',
|
|
753
|
+
'europe-southwest1',
|
|
754
|
+
'europe-west1',
|
|
755
|
+
'europe-west10',
|
|
756
|
+
'europe-west12',
|
|
757
|
+
'europe-west2',
|
|
758
|
+
'europe-west3',
|
|
759
|
+
'europe-west4',
|
|
760
|
+
'europe-west6',
|
|
761
|
+
'europe-west8',
|
|
762
|
+
'europe-west9',
|
|
763
|
+
'fsn1',
|
|
764
|
+
'hel1',
|
|
765
|
+
'hil',
|
|
766
|
+
'me-central1',
|
|
767
|
+
'me-central2',
|
|
768
|
+
'me-west1',
|
|
769
|
+
'nbg1',
|
|
770
|
+
'northamerica-northeast1',
|
|
771
|
+
'northamerica-northeast2',
|
|
772
|
+
'sa-east-1',
|
|
773
|
+
'sin',
|
|
774
|
+
'southamerica-east1',
|
|
775
|
+
'southamerica-west1',
|
|
776
|
+
'us-central1',
|
|
777
|
+
'us-east-1',
|
|
778
|
+
'us-east-2',
|
|
779
|
+
'us-east1',
|
|
780
|
+
'us-east4',
|
|
781
|
+
'us-east5',
|
|
782
|
+
'us-south1',
|
|
783
|
+
'us-west-1',
|
|
784
|
+
'us-west-2',
|
|
785
|
+
'us-west1',
|
|
786
|
+
'us-west2',
|
|
787
|
+
'us-west3',
|
|
788
|
+
'us-west4'
|
|
789
|
+
])).optional()
|
|
790
|
+
}).optional(),
|
|
791
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
792
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
793
|
+
ready: z.boolean(),
|
|
794
|
+
status_message: z.string().optional(),
|
|
795
|
+
created_at: z.string(),
|
|
796
|
+
updated_at: z.string()
|
|
304
797
|
});
|
|
305
798
|
export const zFleetUpdateInput = z.object({
|
|
306
799
|
limits: z.object({
|
|
307
|
-
cpu: z.
|
|
800
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
308
801
|
}).optional(),
|
|
309
802
|
gcp: z.object({
|
|
310
|
-
enabled: z.boolean()
|
|
311
|
-
project: z.string()
|
|
803
|
+
enabled: z.boolean(),
|
|
804
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
312
805
|
}).optional(),
|
|
313
806
|
hetzner: z.object({
|
|
314
|
-
enabled: z.boolean()
|
|
315
|
-
apiKey: z.string()
|
|
807
|
+
enabled: z.boolean(),
|
|
808
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
316
809
|
}).optional(),
|
|
317
810
|
aws: z.object({
|
|
318
|
-
enabled: z.boolean()
|
|
319
|
-
controllerRoleArn: z.string()
|
|
320
|
-
}).optional()
|
|
811
|
+
enabled: z.boolean(),
|
|
812
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
813
|
+
}).optional(),
|
|
814
|
+
constraints: z.object({
|
|
815
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
816
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
817
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
818
|
+
'a1',
|
|
819
|
+
'a2',
|
|
820
|
+
'a3',
|
|
821
|
+
'a4',
|
|
822
|
+
'c1',
|
|
823
|
+
'c2',
|
|
824
|
+
'c2d',
|
|
825
|
+
'c3',
|
|
826
|
+
'c3d',
|
|
827
|
+
'c4',
|
|
828
|
+
'c4a',
|
|
829
|
+
'c4d',
|
|
830
|
+
'c5',
|
|
831
|
+
'c5a',
|
|
832
|
+
'c5ad',
|
|
833
|
+
'c5d',
|
|
834
|
+
'c5n',
|
|
835
|
+
'c6a',
|
|
836
|
+
'c6g',
|
|
837
|
+
'c6gd',
|
|
838
|
+
'c6gn',
|
|
839
|
+
'c6i',
|
|
840
|
+
'c6id',
|
|
841
|
+
'c6in',
|
|
842
|
+
'c7a',
|
|
843
|
+
'c7g',
|
|
844
|
+
'c7gd',
|
|
845
|
+
'c7gn',
|
|
846
|
+
'c7i',
|
|
847
|
+
'c7i-flex',
|
|
848
|
+
'c8g',
|
|
849
|
+
'c8gd',
|
|
850
|
+
'cax',
|
|
851
|
+
'ccx',
|
|
852
|
+
'cpx',
|
|
853
|
+
'cx',
|
|
854
|
+
'd2',
|
|
855
|
+
'd3',
|
|
856
|
+
'd3en',
|
|
857
|
+
'dl1',
|
|
858
|
+
'dl2q',
|
|
859
|
+
'e2',
|
|
860
|
+
'f1',
|
|
861
|
+
'f2',
|
|
862
|
+
'g1',
|
|
863
|
+
'g2',
|
|
864
|
+
'g4ad',
|
|
865
|
+
'g4dn',
|
|
866
|
+
'g5',
|
|
867
|
+
'g5g',
|
|
868
|
+
'g6',
|
|
869
|
+
'g6e',
|
|
870
|
+
'gr6',
|
|
871
|
+
'h1',
|
|
872
|
+
'h3',
|
|
873
|
+
'hpc6a',
|
|
874
|
+
'hpc6id',
|
|
875
|
+
'hpc7a',
|
|
876
|
+
'hpc7g',
|
|
877
|
+
'i2',
|
|
878
|
+
'i3',
|
|
879
|
+
'i3en',
|
|
880
|
+
'i4g',
|
|
881
|
+
'i4i',
|
|
882
|
+
'i7i',
|
|
883
|
+
'i7ie',
|
|
884
|
+
'i8g',
|
|
885
|
+
'im4gn',
|
|
886
|
+
'inf1',
|
|
887
|
+
'inf2',
|
|
888
|
+
'is4gen',
|
|
889
|
+
'm1',
|
|
890
|
+
'm2',
|
|
891
|
+
'm3',
|
|
892
|
+
'm4',
|
|
893
|
+
'm5',
|
|
894
|
+
'm5a',
|
|
895
|
+
'm5ad',
|
|
896
|
+
'm5d',
|
|
897
|
+
'm5dn',
|
|
898
|
+
'm5n',
|
|
899
|
+
'm5zn',
|
|
900
|
+
'm6a',
|
|
901
|
+
'm6g',
|
|
902
|
+
'm6gd',
|
|
903
|
+
'm6i',
|
|
904
|
+
'm6id',
|
|
905
|
+
'm6idn',
|
|
906
|
+
'm6in',
|
|
907
|
+
'm7a',
|
|
908
|
+
'm7g',
|
|
909
|
+
'm7gd',
|
|
910
|
+
'm7i',
|
|
911
|
+
'm7i-flex',
|
|
912
|
+
'm8g',
|
|
913
|
+
'm8gd',
|
|
914
|
+
'n1',
|
|
915
|
+
'n2',
|
|
916
|
+
'n2d',
|
|
917
|
+
'n4',
|
|
918
|
+
'p3',
|
|
919
|
+
'p3dn',
|
|
920
|
+
'p4d',
|
|
921
|
+
'p4de',
|
|
922
|
+
'p5',
|
|
923
|
+
'p5e',
|
|
924
|
+
'p5en',
|
|
925
|
+
'p6-b200',
|
|
926
|
+
'r3',
|
|
927
|
+
'r4',
|
|
928
|
+
'r5',
|
|
929
|
+
'r5a',
|
|
930
|
+
'r5ad',
|
|
931
|
+
'r5b',
|
|
932
|
+
'r5d',
|
|
933
|
+
'r5dn',
|
|
934
|
+
'r5n',
|
|
935
|
+
'r6a',
|
|
936
|
+
'r6g',
|
|
937
|
+
'r6gd',
|
|
938
|
+
'r6i',
|
|
939
|
+
'r6id',
|
|
940
|
+
'r6idn',
|
|
941
|
+
'r6in',
|
|
942
|
+
'r7a',
|
|
943
|
+
'r7g',
|
|
944
|
+
'r7gd',
|
|
945
|
+
'r7i',
|
|
946
|
+
'r7iz',
|
|
947
|
+
'r8g',
|
|
948
|
+
'r8gd',
|
|
949
|
+
't2',
|
|
950
|
+
't2a',
|
|
951
|
+
't2d',
|
|
952
|
+
't3',
|
|
953
|
+
't3a',
|
|
954
|
+
't4g',
|
|
955
|
+
'trn1',
|
|
956
|
+
'trn1n',
|
|
957
|
+
'u-3tb1',
|
|
958
|
+
'u-6tb1',
|
|
959
|
+
'u7i-12tb',
|
|
960
|
+
'u7i-6tb',
|
|
961
|
+
'u7i-8tb',
|
|
962
|
+
'u7in-16tb',
|
|
963
|
+
'u7in-24tb',
|
|
964
|
+
'u7in-32tb',
|
|
965
|
+
'vt1',
|
|
966
|
+
'x1',
|
|
967
|
+
'x1e',
|
|
968
|
+
'x2gd',
|
|
969
|
+
'x2idn',
|
|
970
|
+
'x2iedn',
|
|
971
|
+
'x2iezn',
|
|
972
|
+
'x4',
|
|
973
|
+
'x8g',
|
|
974
|
+
'z1d',
|
|
975
|
+
'z3'
|
|
976
|
+
])).optional(),
|
|
977
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
978
|
+
'africa-south1',
|
|
979
|
+
'ap-northeast-1',
|
|
980
|
+
'ap-northeast-2',
|
|
981
|
+
'ap-northeast-3',
|
|
982
|
+
'ap-south-1',
|
|
983
|
+
'ap-southeast-1',
|
|
984
|
+
'ap-southeast-2',
|
|
985
|
+
'ash',
|
|
986
|
+
'asia-east1',
|
|
987
|
+
'asia-east2',
|
|
988
|
+
'asia-northeast1',
|
|
989
|
+
'asia-northeast2',
|
|
990
|
+
'asia-northeast3',
|
|
991
|
+
'asia-south1',
|
|
992
|
+
'asia-south2',
|
|
993
|
+
'asia-southeast1',
|
|
994
|
+
'asia-southeast2',
|
|
995
|
+
'australia-southeast1',
|
|
996
|
+
'australia-southeast2',
|
|
997
|
+
'ca-central-1',
|
|
998
|
+
'eu-central-1',
|
|
999
|
+
'eu-central-2',
|
|
1000
|
+
'eu-north-1',
|
|
1001
|
+
'eu-west-1',
|
|
1002
|
+
'eu-west-2',
|
|
1003
|
+
'eu-west-3',
|
|
1004
|
+
'europe-central2',
|
|
1005
|
+
'europe-north1',
|
|
1006
|
+
'europe-southwest1',
|
|
1007
|
+
'europe-west1',
|
|
1008
|
+
'europe-west10',
|
|
1009
|
+
'europe-west12',
|
|
1010
|
+
'europe-west2',
|
|
1011
|
+
'europe-west3',
|
|
1012
|
+
'europe-west4',
|
|
1013
|
+
'europe-west6',
|
|
1014
|
+
'europe-west8',
|
|
1015
|
+
'europe-west9',
|
|
1016
|
+
'fsn1',
|
|
1017
|
+
'hel1',
|
|
1018
|
+
'hil',
|
|
1019
|
+
'me-central1',
|
|
1020
|
+
'me-central2',
|
|
1021
|
+
'me-west1',
|
|
1022
|
+
'nbg1',
|
|
1023
|
+
'northamerica-northeast1',
|
|
1024
|
+
'northamerica-northeast2',
|
|
1025
|
+
'sa-east-1',
|
|
1026
|
+
'sin',
|
|
1027
|
+
'southamerica-east1',
|
|
1028
|
+
'southamerica-west1',
|
|
1029
|
+
'us-central1',
|
|
1030
|
+
'us-east-1',
|
|
1031
|
+
'us-east-2',
|
|
1032
|
+
'us-east1',
|
|
1033
|
+
'us-east4',
|
|
1034
|
+
'us-east5',
|
|
1035
|
+
'us-south1',
|
|
1036
|
+
'us-west-1',
|
|
1037
|
+
'us-west-2',
|
|
1038
|
+
'us-west1',
|
|
1039
|
+
'us-west2',
|
|
1040
|
+
'us-west3',
|
|
1041
|
+
'us-west4'
|
|
1042
|
+
])).optional()
|
|
1043
|
+
}).optional(),
|
|
1044
|
+
scalingProfile: z.enum(['aggressive', 'conservative'])
|
|
1045
|
+
});
|
|
1046
|
+
export const zInviteCreateInput = z.object({
|
|
1047
|
+
email: z.email(),
|
|
1048
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
321
1049
|
});
|
|
322
1050
|
export const zInvite = z.object({
|
|
323
1051
|
id: z.string().optional(),
|
|
324
|
-
organization_id: z.
|
|
325
|
-
date_created: z.
|
|
326
|
-
email: z.
|
|
327
|
-
code: z.string().optional()
|
|
1052
|
+
organization_id: z.uuid().optional(),
|
|
1053
|
+
date_created: z.iso.datetime(),
|
|
1054
|
+
email: z.email().optional(),
|
|
1055
|
+
code: z.string().optional(),
|
|
1056
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
328
1057
|
});
|
|
329
1058
|
export const zInvoice = z.object({
|
|
330
|
-
id: z.string().
|
|
331
|
-
|
|
332
|
-
status: z.
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
'AOA',
|
|
345
|
-
'ARS',
|
|
346
|
-
'AUD',
|
|
347
|
-
'AWG',
|
|
348
|
-
'AZN',
|
|
349
|
-
'BAM',
|
|
350
|
-
'BBD',
|
|
351
|
-
'BDT',
|
|
352
|
-
'BGN',
|
|
353
|
-
'BHD',
|
|
354
|
-
'BIF',
|
|
355
|
-
'BMD',
|
|
356
|
-
'BND',
|
|
357
|
-
'BOB',
|
|
358
|
-
'BRL',
|
|
359
|
-
'BSD',
|
|
360
|
-
'BTN',
|
|
361
|
-
'BWP',
|
|
362
|
-
'BYR',
|
|
363
|
-
'BZD',
|
|
364
|
-
'CAD',
|
|
365
|
-
'CDF',
|
|
366
|
-
'CHF',
|
|
367
|
-
'CLP',
|
|
368
|
-
'CNY',
|
|
369
|
-
'COP',
|
|
370
|
-
'CRC',
|
|
371
|
-
'CUC',
|
|
372
|
-
'CUP',
|
|
373
|
-
'CVE',
|
|
374
|
-
'CZK',
|
|
375
|
-
'DJF',
|
|
376
|
-
'DKK',
|
|
377
|
-
'DOP',
|
|
378
|
-
'DZD',
|
|
379
|
-
'EGP',
|
|
380
|
-
'ERN',
|
|
381
|
-
'ETB',
|
|
382
|
-
'EUR',
|
|
383
|
-
'FJD',
|
|
384
|
-
'FKP',
|
|
385
|
-
'GBP',
|
|
386
|
-
'GEL',
|
|
387
|
-
'GGP',
|
|
388
|
-
'GHS',
|
|
389
|
-
'GIP',
|
|
390
|
-
'GMD',
|
|
391
|
-
'GNF',
|
|
392
|
-
'GTQ',
|
|
393
|
-
'GYD',
|
|
394
|
-
'HKD',
|
|
395
|
-
'HNL',
|
|
396
|
-
'HRK',
|
|
397
|
-
'HTG',
|
|
398
|
-
'HUF',
|
|
399
|
-
'IDR',
|
|
400
|
-
'ILS',
|
|
401
|
-
'IMP',
|
|
402
|
-
'INR',
|
|
403
|
-
'IQD',
|
|
404
|
-
'IRR',
|
|
405
|
-
'ISK',
|
|
406
|
-
'JEP',
|
|
407
|
-
'JMD',
|
|
408
|
-
'JOD',
|
|
409
|
-
'JPY',
|
|
410
|
-
'KES',
|
|
411
|
-
'KGS',
|
|
412
|
-
'KHR',
|
|
413
|
-
'KMF',
|
|
414
|
-
'KPW',
|
|
415
|
-
'KRW',
|
|
416
|
-
'KWD',
|
|
417
|
-
'KYD',
|
|
418
|
-
'KZT',
|
|
419
|
-
'LAK',
|
|
420
|
-
'LBP',
|
|
421
|
-
'LKR',
|
|
422
|
-
'LRD',
|
|
423
|
-
'LSL',
|
|
424
|
-
'LTL',
|
|
425
|
-
'LVL',
|
|
426
|
-
'LYD',
|
|
427
|
-
'MAD',
|
|
428
|
-
'MDL',
|
|
429
|
-
'MGA',
|
|
430
|
-
'MKD',
|
|
431
|
-
'MMK',
|
|
432
|
-
'MNT',
|
|
433
|
-
'MOP',
|
|
434
|
-
'MRO',
|
|
435
|
-
'MUR',
|
|
436
|
-
'MVR',
|
|
437
|
-
'MWK',
|
|
438
|
-
'MXN',
|
|
439
|
-
'MYR',
|
|
440
|
-
'MZN',
|
|
441
|
-
'NAD',
|
|
442
|
-
'NGN',
|
|
443
|
-
'NIO',
|
|
444
|
-
'NOK',
|
|
445
|
-
'NPR',
|
|
446
|
-
'NZD',
|
|
447
|
-
'OMR',
|
|
448
|
-
'PAB',
|
|
449
|
-
'PEN',
|
|
450
|
-
'PGK',
|
|
451
|
-
'PHP',
|
|
452
|
-
'PKR',
|
|
453
|
-
'PLN',
|
|
454
|
-
'PYG',
|
|
455
|
-
'QAR',
|
|
456
|
-
'RON',
|
|
457
|
-
'RSD',
|
|
458
|
-
'RUB',
|
|
459
|
-
'RWF',
|
|
460
|
-
'SAR',
|
|
461
|
-
'SBD',
|
|
462
|
-
'SCR',
|
|
463
|
-
'SDG',
|
|
464
|
-
'SEK',
|
|
465
|
-
'SGD',
|
|
466
|
-
'SHP',
|
|
467
|
-
'SLL',
|
|
468
|
-
'SOS',
|
|
469
|
-
'SPL',
|
|
470
|
-
'SRD',
|
|
471
|
-
'STD',
|
|
472
|
-
'SVC',
|
|
473
|
-
'SYP',
|
|
474
|
-
'SZL',
|
|
475
|
-
'THB',
|
|
476
|
-
'TJS',
|
|
477
|
-
'TMT',
|
|
478
|
-
'TND',
|
|
479
|
-
'TOP',
|
|
480
|
-
'TRY',
|
|
481
|
-
'TTD',
|
|
482
|
-
'TVD',
|
|
483
|
-
'TWD',
|
|
484
|
-
'TZS',
|
|
485
|
-
'UAH',
|
|
486
|
-
'UGX',
|
|
487
|
-
'USD',
|
|
488
|
-
'UYU',
|
|
489
|
-
'UZS',
|
|
490
|
-
'VEF',
|
|
491
|
-
'VND',
|
|
492
|
-
'VUV',
|
|
493
|
-
'WST',
|
|
494
|
-
'XAF',
|
|
495
|
-
'XCD',
|
|
496
|
-
'XDR',
|
|
497
|
-
'XOF',
|
|
498
|
-
'XPF',
|
|
499
|
-
'YER',
|
|
500
|
-
'ZAR',
|
|
501
|
-
'ZMW',
|
|
502
|
-
'ZWD',
|
|
503
|
-
'BTC'
|
|
504
|
-
]).optional(),
|
|
505
|
-
creditAdj: z.number().optional(),
|
|
506
|
-
refundAdj: z.number().optional(),
|
|
507
|
-
invoiceDate: z.string().optional(),
|
|
508
|
-
targetDate: z.string().optional(),
|
|
509
|
-
invoiceNumber: z.string().optional(),
|
|
510
|
-
balance: z.number().optional(),
|
|
511
|
-
bundleKeys: z.string().optional(),
|
|
512
|
-
credits: z.array(z.object({
|
|
513
|
-
id: z.string().uuid().optional(),
|
|
514
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
515
|
-
productName: z.string().optional(),
|
|
516
|
-
planName: z.string().optional(),
|
|
517
|
-
phaseName: z.string().optional(),
|
|
518
|
-
usageName: z.string().optional(),
|
|
519
|
-
prettyProductName: z.string().optional(),
|
|
520
|
-
prettyPlanName: z.string().optional(),
|
|
521
|
-
prettyPhaseName: z.string().optional(),
|
|
522
|
-
prettyUsageName: z.string().optional(),
|
|
523
|
-
itemType: z.enum([
|
|
524
|
-
'EXTERNAL_CHARGE',
|
|
525
|
-
'FIXED',
|
|
526
|
-
'RECURRING',
|
|
527
|
-
'REPAIR_ADJ',
|
|
528
|
-
'CBA_ADJ',
|
|
529
|
-
'CREDIT_ADJ',
|
|
530
|
-
'ITEM_ADJ',
|
|
531
|
-
'USAGE',
|
|
532
|
-
'TAX',
|
|
533
|
-
'PARENT_SUMMARY'
|
|
534
|
-
]).optional(),
|
|
535
|
-
description: z.string().optional(),
|
|
536
|
-
startDate: z.string().optional(),
|
|
537
|
-
endDate: z.string().optional(),
|
|
538
|
-
amount: z.number().optional(),
|
|
539
|
-
rate: z.number().optional(),
|
|
540
|
-
currency: z.enum([
|
|
541
|
-
'AED',
|
|
542
|
-
'AFN',
|
|
543
|
-
'ALL',
|
|
544
|
-
'AMD',
|
|
545
|
-
'ANG',
|
|
546
|
-
'AOA',
|
|
547
|
-
'ARS',
|
|
548
|
-
'AUD',
|
|
549
|
-
'AWG',
|
|
550
|
-
'AZN',
|
|
551
|
-
'BAM',
|
|
552
|
-
'BBD',
|
|
553
|
-
'BDT',
|
|
554
|
-
'BGN',
|
|
555
|
-
'BHD',
|
|
556
|
-
'BIF',
|
|
557
|
-
'BMD',
|
|
558
|
-
'BND',
|
|
559
|
-
'BOB',
|
|
560
|
-
'BRL',
|
|
561
|
-
'BSD',
|
|
562
|
-
'BTN',
|
|
563
|
-
'BWP',
|
|
564
|
-
'BYR',
|
|
565
|
-
'BZD',
|
|
566
|
-
'CAD',
|
|
567
|
-
'CDF',
|
|
568
|
-
'CHF',
|
|
569
|
-
'CLP',
|
|
570
|
-
'CNY',
|
|
571
|
-
'COP',
|
|
572
|
-
'CRC',
|
|
573
|
-
'CUC',
|
|
574
|
-
'CUP',
|
|
575
|
-
'CVE',
|
|
576
|
-
'CZK',
|
|
577
|
-
'DJF',
|
|
578
|
-
'DKK',
|
|
579
|
-
'DOP',
|
|
580
|
-
'DZD',
|
|
581
|
-
'EGP',
|
|
582
|
-
'ERN',
|
|
583
|
-
'ETB',
|
|
584
|
-
'EUR',
|
|
585
|
-
'FJD',
|
|
586
|
-
'FKP',
|
|
587
|
-
'GBP',
|
|
588
|
-
'GEL',
|
|
589
|
-
'GGP',
|
|
590
|
-
'GHS',
|
|
591
|
-
'GIP',
|
|
592
|
-
'GMD',
|
|
593
|
-
'GNF',
|
|
594
|
-
'GTQ',
|
|
595
|
-
'GYD',
|
|
596
|
-
'HKD',
|
|
597
|
-
'HNL',
|
|
598
|
-
'HRK',
|
|
599
|
-
'HTG',
|
|
600
|
-
'HUF',
|
|
601
|
-
'IDR',
|
|
602
|
-
'ILS',
|
|
603
|
-
'IMP',
|
|
604
|
-
'INR',
|
|
605
|
-
'IQD',
|
|
606
|
-
'IRR',
|
|
607
|
-
'ISK',
|
|
608
|
-
'JEP',
|
|
609
|
-
'JMD',
|
|
610
|
-
'JOD',
|
|
611
|
-
'JPY',
|
|
612
|
-
'KES',
|
|
613
|
-
'KGS',
|
|
614
|
-
'KHR',
|
|
615
|
-
'KMF',
|
|
616
|
-
'KPW',
|
|
617
|
-
'KRW',
|
|
618
|
-
'KWD',
|
|
619
|
-
'KYD',
|
|
620
|
-
'KZT',
|
|
621
|
-
'LAK',
|
|
622
|
-
'LBP',
|
|
623
|
-
'LKR',
|
|
624
|
-
'LRD',
|
|
625
|
-
'LSL',
|
|
626
|
-
'LTL',
|
|
627
|
-
'LVL',
|
|
628
|
-
'LYD',
|
|
629
|
-
'MAD',
|
|
630
|
-
'MDL',
|
|
631
|
-
'MGA',
|
|
632
|
-
'MKD',
|
|
633
|
-
'MMK',
|
|
634
|
-
'MNT',
|
|
635
|
-
'MOP',
|
|
636
|
-
'MRO',
|
|
637
|
-
'MUR',
|
|
638
|
-
'MVR',
|
|
639
|
-
'MWK',
|
|
640
|
-
'MXN',
|
|
641
|
-
'MYR',
|
|
642
|
-
'MZN',
|
|
643
|
-
'NAD',
|
|
644
|
-
'NGN',
|
|
645
|
-
'NIO',
|
|
646
|
-
'NOK',
|
|
647
|
-
'NPR',
|
|
648
|
-
'NZD',
|
|
649
|
-
'OMR',
|
|
650
|
-
'PAB',
|
|
651
|
-
'PEN',
|
|
652
|
-
'PGK',
|
|
653
|
-
'PHP',
|
|
654
|
-
'PKR',
|
|
655
|
-
'PLN',
|
|
656
|
-
'PYG',
|
|
657
|
-
'QAR',
|
|
658
|
-
'RON',
|
|
659
|
-
'RSD',
|
|
660
|
-
'RUB',
|
|
661
|
-
'RWF',
|
|
662
|
-
'SAR',
|
|
663
|
-
'SBD',
|
|
664
|
-
'SCR',
|
|
665
|
-
'SDG',
|
|
666
|
-
'SEK',
|
|
667
|
-
'SGD',
|
|
668
|
-
'SHP',
|
|
669
|
-
'SLL',
|
|
670
|
-
'SOS',
|
|
671
|
-
'SPL',
|
|
672
|
-
'SRD',
|
|
673
|
-
'STD',
|
|
674
|
-
'SVC',
|
|
675
|
-
'SYP',
|
|
676
|
-
'SZL',
|
|
677
|
-
'THB',
|
|
678
|
-
'TJS',
|
|
679
|
-
'TMT',
|
|
680
|
-
'TND',
|
|
681
|
-
'TOP',
|
|
682
|
-
'TRY',
|
|
683
|
-
'TTD',
|
|
684
|
-
'TVD',
|
|
685
|
-
'TWD',
|
|
686
|
-
'TZS',
|
|
687
|
-
'UAH',
|
|
688
|
-
'UGX',
|
|
689
|
-
'USD',
|
|
690
|
-
'UYU',
|
|
691
|
-
'UZS',
|
|
692
|
-
'VEF',
|
|
693
|
-
'VND',
|
|
694
|
-
'VUV',
|
|
695
|
-
'WST',
|
|
696
|
-
'XAF',
|
|
697
|
-
'XCD',
|
|
698
|
-
'XDR',
|
|
699
|
-
'XOF',
|
|
700
|
-
'XPF',
|
|
701
|
-
'YER',
|
|
702
|
-
'ZAR',
|
|
703
|
-
'ZMW',
|
|
704
|
-
'ZWD',
|
|
705
|
-
'BTC'
|
|
706
|
-
]).optional(),
|
|
707
|
-
quantity: z.number().optional(),
|
|
708
|
-
itemDetails: z.string().optional(),
|
|
709
|
-
catalogEffectiveDate: z.string().optional(),
|
|
710
|
-
childItems: z.array(z.union([
|
|
711
|
-
z.array(z.unknown()),
|
|
712
|
-
z.boolean(),
|
|
713
|
-
z.number(),
|
|
714
|
-
z.object({}),
|
|
715
|
-
z.string()
|
|
716
|
-
])).optional()
|
|
717
|
-
})).optional(),
|
|
718
|
-
items: z.array(z.object({
|
|
719
|
-
id: z.string().uuid().optional(),
|
|
720
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
721
|
-
productName: z.string().optional(),
|
|
722
|
-
planName: z.string().optional(),
|
|
723
|
-
phaseName: z.string().optional(),
|
|
724
|
-
usageName: z.string().optional(),
|
|
725
|
-
prettyProductName: z.string().optional(),
|
|
726
|
-
prettyPlanName: z.string().optional(),
|
|
727
|
-
prettyPhaseName: z.string().optional(),
|
|
728
|
-
prettyUsageName: z.string().optional(),
|
|
729
|
-
itemType: z.enum([
|
|
730
|
-
'EXTERNAL_CHARGE',
|
|
731
|
-
'FIXED',
|
|
732
|
-
'RECURRING',
|
|
733
|
-
'REPAIR_ADJ',
|
|
734
|
-
'CBA_ADJ',
|
|
735
|
-
'CREDIT_ADJ',
|
|
736
|
-
'ITEM_ADJ',
|
|
737
|
-
'USAGE',
|
|
738
|
-
'TAX',
|
|
739
|
-
'PARENT_SUMMARY'
|
|
740
|
-
]).optional(),
|
|
741
|
-
description: z.string().optional(),
|
|
742
|
-
startDate: z.string().optional(),
|
|
743
|
-
endDate: z.string().optional(),
|
|
744
|
-
amount: z.number().optional(),
|
|
745
|
-
rate: z.number().optional(),
|
|
746
|
-
currency: z.enum([
|
|
747
|
-
'AED',
|
|
748
|
-
'AFN',
|
|
749
|
-
'ALL',
|
|
750
|
-
'AMD',
|
|
751
|
-
'ANG',
|
|
752
|
-
'AOA',
|
|
753
|
-
'ARS',
|
|
754
|
-
'AUD',
|
|
755
|
-
'AWG',
|
|
756
|
-
'AZN',
|
|
757
|
-
'BAM',
|
|
758
|
-
'BBD',
|
|
759
|
-
'BDT',
|
|
760
|
-
'BGN',
|
|
761
|
-
'BHD',
|
|
762
|
-
'BIF',
|
|
763
|
-
'BMD',
|
|
764
|
-
'BND',
|
|
765
|
-
'BOB',
|
|
766
|
-
'BRL',
|
|
767
|
-
'BSD',
|
|
768
|
-
'BTN',
|
|
769
|
-
'BWP',
|
|
770
|
-
'BYR',
|
|
771
|
-
'BZD',
|
|
772
|
-
'CAD',
|
|
773
|
-
'CDF',
|
|
774
|
-
'CHF',
|
|
775
|
-
'CLP',
|
|
776
|
-
'CNY',
|
|
777
|
-
'COP',
|
|
778
|
-
'CRC',
|
|
779
|
-
'CUC',
|
|
780
|
-
'CUP',
|
|
781
|
-
'CVE',
|
|
782
|
-
'CZK',
|
|
783
|
-
'DJF',
|
|
784
|
-
'DKK',
|
|
785
|
-
'DOP',
|
|
786
|
-
'DZD',
|
|
787
|
-
'EGP',
|
|
788
|
-
'ERN',
|
|
789
|
-
'ETB',
|
|
790
|
-
'EUR',
|
|
791
|
-
'FJD',
|
|
792
|
-
'FKP',
|
|
793
|
-
'GBP',
|
|
794
|
-
'GEL',
|
|
795
|
-
'GGP',
|
|
796
|
-
'GHS',
|
|
797
|
-
'GIP',
|
|
798
|
-
'GMD',
|
|
799
|
-
'GNF',
|
|
800
|
-
'GTQ',
|
|
801
|
-
'GYD',
|
|
802
|
-
'HKD',
|
|
803
|
-
'HNL',
|
|
804
|
-
'HRK',
|
|
805
|
-
'HTG',
|
|
806
|
-
'HUF',
|
|
807
|
-
'IDR',
|
|
808
|
-
'ILS',
|
|
809
|
-
'IMP',
|
|
810
|
-
'INR',
|
|
811
|
-
'IQD',
|
|
812
|
-
'IRR',
|
|
813
|
-
'ISK',
|
|
814
|
-
'JEP',
|
|
815
|
-
'JMD',
|
|
816
|
-
'JOD',
|
|
817
|
-
'JPY',
|
|
818
|
-
'KES',
|
|
819
|
-
'KGS',
|
|
820
|
-
'KHR',
|
|
821
|
-
'KMF',
|
|
822
|
-
'KPW',
|
|
823
|
-
'KRW',
|
|
824
|
-
'KWD',
|
|
825
|
-
'KYD',
|
|
826
|
-
'KZT',
|
|
827
|
-
'LAK',
|
|
828
|
-
'LBP',
|
|
829
|
-
'LKR',
|
|
830
|
-
'LRD',
|
|
831
|
-
'LSL',
|
|
832
|
-
'LTL',
|
|
833
|
-
'LVL',
|
|
834
|
-
'LYD',
|
|
835
|
-
'MAD',
|
|
836
|
-
'MDL',
|
|
837
|
-
'MGA',
|
|
838
|
-
'MKD',
|
|
839
|
-
'MMK',
|
|
840
|
-
'MNT',
|
|
841
|
-
'MOP',
|
|
842
|
-
'MRO',
|
|
843
|
-
'MUR',
|
|
844
|
-
'MVR',
|
|
845
|
-
'MWK',
|
|
846
|
-
'MXN',
|
|
847
|
-
'MYR',
|
|
848
|
-
'MZN',
|
|
849
|
-
'NAD',
|
|
850
|
-
'NGN',
|
|
851
|
-
'NIO',
|
|
852
|
-
'NOK',
|
|
853
|
-
'NPR',
|
|
854
|
-
'NZD',
|
|
855
|
-
'OMR',
|
|
856
|
-
'PAB',
|
|
857
|
-
'PEN',
|
|
858
|
-
'PGK',
|
|
859
|
-
'PHP',
|
|
860
|
-
'PKR',
|
|
861
|
-
'PLN',
|
|
862
|
-
'PYG',
|
|
863
|
-
'QAR',
|
|
864
|
-
'RON',
|
|
865
|
-
'RSD',
|
|
866
|
-
'RUB',
|
|
867
|
-
'RWF',
|
|
868
|
-
'SAR',
|
|
869
|
-
'SBD',
|
|
870
|
-
'SCR',
|
|
871
|
-
'SDG',
|
|
872
|
-
'SEK',
|
|
873
|
-
'SGD',
|
|
874
|
-
'SHP',
|
|
875
|
-
'SLL',
|
|
876
|
-
'SOS',
|
|
877
|
-
'SPL',
|
|
878
|
-
'SRD',
|
|
879
|
-
'STD',
|
|
880
|
-
'SVC',
|
|
881
|
-
'SYP',
|
|
882
|
-
'SZL',
|
|
883
|
-
'THB',
|
|
884
|
-
'TJS',
|
|
885
|
-
'TMT',
|
|
886
|
-
'TND',
|
|
887
|
-
'TOP',
|
|
888
|
-
'TRY',
|
|
889
|
-
'TTD',
|
|
890
|
-
'TVD',
|
|
891
|
-
'TWD',
|
|
892
|
-
'TZS',
|
|
893
|
-
'UAH',
|
|
894
|
-
'UGX',
|
|
895
|
-
'USD',
|
|
896
|
-
'UYU',
|
|
897
|
-
'UZS',
|
|
898
|
-
'VEF',
|
|
899
|
-
'VND',
|
|
900
|
-
'VUV',
|
|
901
|
-
'WST',
|
|
902
|
-
'XAF',
|
|
903
|
-
'XCD',
|
|
904
|
-
'XDR',
|
|
905
|
-
'XOF',
|
|
906
|
-
'XPF',
|
|
907
|
-
'YER',
|
|
908
|
-
'ZAR',
|
|
909
|
-
'ZMW',
|
|
910
|
-
'ZWD',
|
|
911
|
-
'BTC'
|
|
912
|
-
]).optional(),
|
|
913
|
-
quantity: z.number().optional(),
|
|
914
|
-
itemDetails: z.string().optional(),
|
|
915
|
-
catalogEffectiveDate: z.string().optional(),
|
|
916
|
-
childItems: z.array(z.union([
|
|
917
|
-
z.array(z.unknown()),
|
|
918
|
-
z.boolean(),
|
|
919
|
-
z.number(),
|
|
920
|
-
z.object({}),
|
|
921
|
-
z.string()
|
|
922
|
-
])).optional()
|
|
923
|
-
})).optional()
|
|
1059
|
+
id: z.string().optional(),
|
|
1060
|
+
number: z.string().optional(),
|
|
1061
|
+
status: z.string().optional(),
|
|
1062
|
+
total: z.number().optional(),
|
|
1063
|
+
currency: z.string().optional(),
|
|
1064
|
+
created: z.iso.datetime(),
|
|
1065
|
+
period_start: z.iso.datetime(),
|
|
1066
|
+
period_end: z.iso.datetime(),
|
|
1067
|
+
invoice_pdf: z.string().optional()
|
|
1068
|
+
});
|
|
1069
|
+
export const zMarketplaceListingFiles = z.object({
|
|
1070
|
+
chartYaml: z.string().optional(),
|
|
1071
|
+
valuesYaml: z.string().optional(),
|
|
1072
|
+
valuesSchemaJson: z.string().optional()
|
|
924
1073
|
});
|
|
925
1074
|
export const zMarketplaceListing = z.object({
|
|
926
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
927
1075
|
name: z.string(),
|
|
928
|
-
|
|
929
|
-
description: z.string(),
|
|
930
|
-
logoUrl: z.string(),
|
|
931
|
-
longDescription: z.string(),
|
|
932
|
-
categories: z.array(z.string()),
|
|
1076
|
+
versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(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-]+)*))?$/)),
|
|
933
1077
|
version_channels: z.array(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-]+)*))?$/)),
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
1078
|
+
latestVersion: z.string(),
|
|
1079
|
+
metadata: z.object({
|
|
1080
|
+
name: z.string(),
|
|
1081
|
+
version: z.string(),
|
|
1082
|
+
description: z.string().optional(),
|
|
1083
|
+
appVersion: z.string().optional(),
|
|
1084
|
+
apiVersion: z.string().optional(),
|
|
1085
|
+
keywords: z.array(z.string()).optional(),
|
|
1086
|
+
home: z.string().optional(),
|
|
1087
|
+
icon: z.string().optional(),
|
|
1088
|
+
sources: z.array(z.string()).optional(),
|
|
1089
|
+
maintainers: z.array(z.object({
|
|
1090
|
+
name: z.string(),
|
|
1091
|
+
email: z.string().optional()
|
|
1092
|
+
})).optional()
|
|
1093
|
+
}).optional()
|
|
939
1094
|
});
|
|
940
1095
|
export const zOrganizationCreateInput = z.object({
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
1096
|
+
type: z.enum(['business', 'personal']),
|
|
1097
|
+
email: z.email(),
|
|
1098
|
+
first_name: z.string().min(1),
|
|
1099
|
+
last_name: z.string().min(1),
|
|
944
1100
|
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,}$/),
|
|
945
1101
|
password: z.string().min(8)
|
|
946
1102
|
});
|
|
1103
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1104
|
+
id: z.string()
|
|
1105
|
+
});
|
|
947
1106
|
export const zOrganization = z.object({
|
|
948
|
-
id: z.
|
|
1107
|
+
id: z.uuid(),
|
|
949
1108
|
name: z.string().min(2).max(120).optional(),
|
|
950
|
-
|
|
1109
|
+
type: z.enum(['business', 'personal']),
|
|
1110
|
+
date_created: z.iso.datetime(),
|
|
951
1111
|
quota: z.object({
|
|
952
|
-
basic_clusters_max: z.
|
|
953
|
-
basic_clusters_available: z.
|
|
954
|
-
pro_clusters_max: z.
|
|
955
|
-
pro_clusters_available: z.
|
|
956
|
-
fleets_max: z.
|
|
1112
|
+
basic_clusters_max: z.int().gte(0),
|
|
1113
|
+
basic_clusters_available: z.int(),
|
|
1114
|
+
pro_clusters_max: z.int().gte(0),
|
|
1115
|
+
pro_clusters_available: z.int(),
|
|
1116
|
+
fleets_max: z.int().gte(0),
|
|
957
1117
|
cluster_tiers: z.array(z.string()).min(0),
|
|
958
1118
|
regions: z.array(z.string()).min(1),
|
|
959
1119
|
versions: z.array(z.object({
|
|
960
1120
|
id: z.string(),
|
|
961
1121
|
label: z.string()
|
|
962
|
-
})).min(1)
|
|
1122
|
+
})).min(1),
|
|
1123
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
963
1124
|
}),
|
|
964
1125
|
status: z.enum([
|
|
965
1126
|
'active',
|
|
966
1127
|
'closed',
|
|
967
1128
|
'suspended'
|
|
1129
|
+
]),
|
|
1130
|
+
verification: z.enum([
|
|
1131
|
+
'none',
|
|
1132
|
+
'submitted',
|
|
1133
|
+
'verified'
|
|
968
1134
|
])
|
|
969
1135
|
});
|
|
970
1136
|
export const zPaymentMethod = z.object({
|
|
971
|
-
id: z.string()
|
|
972
|
-
setup: z.boolean(),
|
|
1137
|
+
id: z.string(),
|
|
973
1138
|
type: z.enum([
|
|
974
|
-
'card'
|
|
1139
|
+
'card',
|
|
1140
|
+
'sepa_debit',
|
|
1141
|
+
'bank_transfer'
|
|
975
1142
|
]),
|
|
976
1143
|
last4: z.string(),
|
|
977
|
-
exp_month: z.
|
|
978
|
-
exp_year: z.
|
|
979
|
-
brand: z.
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1144
|
+
exp_month: z.int().gte(1).lte(12),
|
|
1145
|
+
exp_year: z.int(),
|
|
1146
|
+
brand: z.string(),
|
|
1147
|
+
iban: z.string(),
|
|
1148
|
+
bic: z.string(),
|
|
1149
|
+
account_holder_name: z.string(),
|
|
1150
|
+
is_default: z.boolean()
|
|
1151
|
+
});
|
|
1152
|
+
export const zPlatformQuota = z.object({
|
|
1153
|
+
basic_clusters_max: z.int().gte(0),
|
|
1154
|
+
basic_clusters_available: z.int(),
|
|
1155
|
+
pro_clusters_max: z.int().gte(0),
|
|
1156
|
+
pro_clusters_available: z.int(),
|
|
1157
|
+
fleets_max: z.int().gte(0),
|
|
1158
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
1159
|
+
regions: z.array(z.string()).min(1),
|
|
1160
|
+
versions: z.array(z.object({
|
|
1161
|
+
id: z.string(),
|
|
1162
|
+
label: z.string()
|
|
1163
|
+
})).min(1),
|
|
1164
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
1165
|
+
});
|
|
1166
|
+
export const zRegistryRepository = z.object({
|
|
1167
|
+
name: z.string(),
|
|
1168
|
+
region: z.string(),
|
|
1169
|
+
uri: z.string()
|
|
1170
|
+
});
|
|
1171
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
1172
|
+
name: z.string(),
|
|
1173
|
+
region: z.string(),
|
|
1174
|
+
uri: z.string(),
|
|
1175
|
+
tags: z.array(z.object({
|
|
1176
|
+
name: z.string(),
|
|
1177
|
+
size: z.number(),
|
|
1178
|
+
mediaType: z.string().optional(),
|
|
1179
|
+
platforms: z.array(z.string()).optional()
|
|
1180
|
+
})),
|
|
1181
|
+
totalSize: z.number()
|
|
1182
|
+
});
|
|
1183
|
+
export const zRegistryTag = z.object({
|
|
1184
|
+
name: z.string(),
|
|
1185
|
+
digest: z.string(),
|
|
1186
|
+
mediaType: z.string().optional(),
|
|
1187
|
+
config: z.object({
|
|
1188
|
+
size: z.number()
|
|
1189
|
+
}).optional(),
|
|
1190
|
+
layers: z.array(z.object({
|
|
1191
|
+
digest: z.string().optional(),
|
|
1192
|
+
size: z.number()
|
|
1193
|
+
})).optional(),
|
|
1194
|
+
manifests: z.array(z.object({
|
|
1195
|
+
digest: z.string(),
|
|
1196
|
+
platform: z.object({
|
|
1197
|
+
architecture: z.string(),
|
|
1198
|
+
os: z.string(),
|
|
1199
|
+
variant: z.string().optional()
|
|
1200
|
+
}).optional(),
|
|
1201
|
+
layers: z.array(z.object({
|
|
1202
|
+
digest: z.string().optional(),
|
|
1203
|
+
size: z.number()
|
|
1204
|
+
})).optional(),
|
|
1205
|
+
size: z.number().optional()
|
|
1206
|
+
})).optional(),
|
|
1207
|
+
size: z.number(),
|
|
1208
|
+
region: z.string(),
|
|
1209
|
+
repository: z.string(),
|
|
1210
|
+
uri: z.string()
|
|
1211
|
+
});
|
|
1212
|
+
export const zTicketAttachment = z.object({
|
|
1213
|
+
id: z.string(),
|
|
1214
|
+
filename: z.string(),
|
|
1215
|
+
content_type: z.string(),
|
|
1216
|
+
size: z.int()
|
|
1217
|
+
});
|
|
1218
|
+
export const zTicketCreateInput = z.object({
|
|
1219
|
+
category: z.enum([
|
|
1220
|
+
'billing',
|
|
1221
|
+
'technical',
|
|
1222
|
+
'general'
|
|
1223
|
+
]),
|
|
1224
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1225
|
+
properties: z.record(z.string(), z.unknown()).optional()
|
|
1226
|
+
});
|
|
1227
|
+
export const zTicketListResponse = z.object({
|
|
1228
|
+
items: z.array(z.object({
|
|
1229
|
+
id: z.string(),
|
|
1230
|
+
status: z.enum([
|
|
1231
|
+
'waiting_on_us',
|
|
1232
|
+
'waiting_on_user',
|
|
1233
|
+
'closed'
|
|
1234
|
+
]),
|
|
1235
|
+
category: z.enum([
|
|
1236
|
+
'billing',
|
|
1237
|
+
'technical',
|
|
1238
|
+
'general'
|
|
1239
|
+
]),
|
|
1240
|
+
summary: z.string(),
|
|
1241
|
+
closed_at: z.iso.datetime().optional(),
|
|
1242
|
+
date_created: z.iso.datetime(),
|
|
1243
|
+
date_updated: z.iso.datetime(),
|
|
1244
|
+
messages: z.array(z.object({
|
|
1245
|
+
id: z.string(),
|
|
1246
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1247
|
+
body: z.string(),
|
|
1248
|
+
author_first_name: z.string().optional(),
|
|
1249
|
+
author_last_name: z.string().optional(),
|
|
1250
|
+
attachments: z.array(z.object({
|
|
1251
|
+
id: z.string(),
|
|
1252
|
+
filename: z.string(),
|
|
1253
|
+
content_type: z.string(),
|
|
1254
|
+
size: z.int()
|
|
1255
|
+
})).optional(),
|
|
1256
|
+
date_created: z.iso.datetime()
|
|
1257
|
+
})).optional()
|
|
1258
|
+
}))
|
|
1259
|
+
});
|
|
1260
|
+
export const zTicketMessageInput = z.object({
|
|
1261
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1262
|
+
});
|
|
1263
|
+
export const zTicketMessage = z.object({
|
|
1264
|
+
id: z.string(),
|
|
1265
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1266
|
+
body: z.string(),
|
|
1267
|
+
author_first_name: z.string().optional(),
|
|
1268
|
+
author_last_name: z.string().optional(),
|
|
1269
|
+
attachments: z.array(z.object({
|
|
1270
|
+
id: z.string(),
|
|
1271
|
+
filename: z.string(),
|
|
1272
|
+
content_type: z.string(),
|
|
1273
|
+
size: z.int()
|
|
1274
|
+
})).optional(),
|
|
1275
|
+
date_created: z.iso.datetime()
|
|
1276
|
+
});
|
|
1277
|
+
export const zTicket = z.object({
|
|
1278
|
+
id: z.string(),
|
|
1279
|
+
status: z.enum([
|
|
1280
|
+
'waiting_on_us',
|
|
1281
|
+
'waiting_on_user',
|
|
1282
|
+
'closed'
|
|
1283
|
+
]),
|
|
1284
|
+
category: z.enum([
|
|
1285
|
+
'billing',
|
|
1286
|
+
'technical',
|
|
1287
|
+
'general'
|
|
1288
|
+
]),
|
|
1289
|
+
summary: z.string(),
|
|
1290
|
+
closed_at: z.iso.datetime().optional(),
|
|
1291
|
+
date_created: z.iso.datetime(),
|
|
1292
|
+
date_updated: z.iso.datetime(),
|
|
1293
|
+
messages: z.array(z.object({
|
|
1294
|
+
id: z.string(),
|
|
1295
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1296
|
+
body: z.string(),
|
|
1297
|
+
author_first_name: z.string().optional(),
|
|
1298
|
+
author_last_name: z.string().optional(),
|
|
1299
|
+
attachments: z.array(z.object({
|
|
1300
|
+
id: z.string(),
|
|
1301
|
+
filename: z.string(),
|
|
1302
|
+
content_type: z.string(),
|
|
1303
|
+
size: z.int()
|
|
1304
|
+
})).optional(),
|
|
1305
|
+
date_created: z.iso.datetime()
|
|
1306
|
+
})).optional()
|
|
990
1307
|
});
|
|
991
1308
|
export const zTokenCreateInput = z.object({
|
|
992
1309
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
993
|
-
role: z.enum([
|
|
994
|
-
'Administrator',
|
|
995
|
-
'User'
|
|
996
|
-
])
|
|
1310
|
+
role: z.enum(['Administrator', 'User'])
|
|
997
1311
|
});
|
|
998
1312
|
export const zToken = z.object({
|
|
999
1313
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
1000
|
-
role: z.enum([
|
|
1001
|
-
'Administrator',
|
|
1002
|
-
'User'
|
|
1003
|
-
]),
|
|
1314
|
+
role: z.enum(['Administrator', 'User']),
|
|
1004
1315
|
id: z.string().optional(),
|
|
1005
1316
|
secret: z.string().optional(),
|
|
1006
|
-
date_created: z.
|
|
1317
|
+
date_created: z.iso.datetime()
|
|
1007
1318
|
});
|
|
1008
1319
|
export const zTokenUpdateInput = z.object({
|
|
1009
1320
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
1010
|
-
role: z.enum([
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1321
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1322
|
+
});
|
|
1323
|
+
export const zUsageFacets = z.object({
|
|
1324
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1325
|
+
product: z.array(z.string()).optional()
|
|
1326
|
+
});
|
|
1327
|
+
export const zUsageResponse = z.object({
|
|
1328
|
+
data: z.array(z.object({
|
|
1329
|
+
hour: z.string(),
|
|
1330
|
+
cluster_id: z.string(),
|
|
1331
|
+
product: z.string(),
|
|
1332
|
+
value: z.number(),
|
|
1333
|
+
price: z.number(),
|
|
1334
|
+
total: z.number()
|
|
1335
|
+
})),
|
|
1336
|
+
facets: z.object({
|
|
1337
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1338
|
+
product: z.array(z.string()).optional()
|
|
1339
|
+
})
|
|
1014
1340
|
});
|
|
1015
1341
|
export const zUsage = z.object({
|
|
1016
|
-
hour: z.string()
|
|
1017
|
-
cluster_id: z.string()
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
]),
|
|
1023
|
-
product: z.enum([
|
|
1024
|
-
'cfke_controlplane',
|
|
1025
|
-
'cfke_connected_nodes',
|
|
1026
|
-
'infra_compute',
|
|
1027
|
-
'infra_storage',
|
|
1028
|
-
'infra_loadbalancing',
|
|
1029
|
-
'infra_traffic',
|
|
1030
|
-
'cfcr_storage'
|
|
1031
|
-
]),
|
|
1032
|
-
node_name: z.string(),
|
|
1033
|
-
sku: z.string(),
|
|
1034
|
-
cpu: z.union([
|
|
1035
|
-
z.number(),
|
|
1036
|
-
z.enum([
|
|
1037
|
-
''
|
|
1038
|
-
])
|
|
1039
|
-
]),
|
|
1040
|
-
price: z.union([
|
|
1041
|
-
z.number(),
|
|
1042
|
-
z.enum([
|
|
1043
|
-
''
|
|
1044
|
-
])
|
|
1045
|
-
]),
|
|
1046
|
-
value: z.union([
|
|
1047
|
-
z.number(),
|
|
1048
|
-
z.enum([
|
|
1049
|
-
''
|
|
1050
|
-
])
|
|
1051
|
-
]),
|
|
1052
|
-
total: z.union([
|
|
1053
|
-
z.number(),
|
|
1054
|
-
z.enum([
|
|
1055
|
-
''
|
|
1056
|
-
])
|
|
1057
|
-
])
|
|
1342
|
+
hour: z.string(),
|
|
1343
|
+
cluster_id: z.string(),
|
|
1344
|
+
product: z.string(),
|
|
1345
|
+
value: z.number(),
|
|
1346
|
+
price: z.number(),
|
|
1347
|
+
total: z.number()
|
|
1058
1348
|
});
|
|
1059
1349
|
export const zUserCreateInput = z.object({
|
|
1060
|
-
email: z.
|
|
1350
|
+
email: z.email(),
|
|
1061
1351
|
first_name: z.string().min(1).max(50),
|
|
1062
1352
|
last_name: z.string().min(1).max(50),
|
|
1063
1353
|
code: z.string(),
|
|
1064
|
-
password: z.string().min(8)
|
|
1065
|
-
status: z.enum([
|
|
1066
|
-
'active',
|
|
1067
|
-
'inactive'
|
|
1068
|
-
]).optional(),
|
|
1069
|
-
role: z.enum([
|
|
1070
|
-
'Administrator',
|
|
1071
|
-
'User'
|
|
1072
|
-
]).optional()
|
|
1354
|
+
password: z.string().min(8)
|
|
1073
1355
|
});
|
|
1074
1356
|
export const zUser = z.object({
|
|
1075
|
-
email: z.
|
|
1357
|
+
email: z.email(),
|
|
1076
1358
|
first_name: z.string().min(1).max(50),
|
|
1077
1359
|
last_name: z.string().min(1).max(50),
|
|
1078
|
-
role: z.enum([
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
status: z.enum([
|
|
1083
|
-
'active',
|
|
1084
|
-
'inactive'
|
|
1085
|
-
]),
|
|
1086
|
-
id: z.string().uuid(),
|
|
1087
|
-
date_created: z.string().datetime()
|
|
1360
|
+
role: z.enum(['Administrator', 'User']),
|
|
1361
|
+
status: z.enum(['active', 'inactive']),
|
|
1362
|
+
id: z.uuid(),
|
|
1363
|
+
date_created: z.iso.datetime()
|
|
1088
1364
|
});
|
|
1089
1365
|
export const zUserUpdateInput = z.object({
|
|
1090
|
-
email: z.
|
|
1366
|
+
email: z.email().optional(),
|
|
1091
1367
|
first_name: z.string().min(1).max(50).optional(),
|
|
1092
1368
|
last_name: z.string().min(1).max(50).optional(),
|
|
1093
|
-
role: z.enum([
|
|
1094
|
-
|
|
1095
|
-
'User'
|
|
1096
|
-
]).optional(),
|
|
1097
|
-
status: z.enum([
|
|
1098
|
-
'active',
|
|
1099
|
-
'inactive'
|
|
1100
|
-
]).optional()
|
|
1369
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
1370
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
1101
1371
|
});
|
|
1102
|
-
export const
|
|
1103
|
-
|
|
1104
|
-
path: z.never().optional(),
|
|
1105
|
-
query: z.never().optional()
|
|
1372
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1373
|
+
email: z.string()
|
|
1106
1374
|
});
|
|
1107
1375
|
/**
|
|
1108
|
-
* An array of
|
|
1376
|
+
* An array of organizations the user belongs to.
|
|
1109
1377
|
*/
|
|
1110
|
-
export const
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1378
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1379
|
+
realm: z.string().optional(),
|
|
1380
|
+
displayName: z.string().optional()
|
|
1381
|
+
}));
|
|
1382
|
+
/**
|
|
1383
|
+
* An array of users
|
|
1384
|
+
*/
|
|
1385
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1386
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1387
|
+
/**
|
|
1388
|
+
* Successfully created. Returns created user details.
|
|
1389
|
+
*/
|
|
1390
|
+
export const zCreateUserResponse = zUser;
|
|
1391
|
+
export const zDeleteUserPath = z.object({
|
|
1392
|
+
user_id: z.string()
|
|
1115
1393
|
});
|
|
1116
1394
|
/**
|
|
1117
|
-
*
|
|
1395
|
+
* User profile information
|
|
1118
1396
|
*/
|
|
1119
|
-
export const
|
|
1120
|
-
export const
|
|
1121
|
-
|
|
1122
|
-
path: z.never().optional(),
|
|
1123
|
-
query: z.never().optional()
|
|
1397
|
+
export const zDeleteUserResponse = zUser;
|
|
1398
|
+
export const zGetUserPath = z.object({
|
|
1399
|
+
user_id: z.string()
|
|
1124
1400
|
});
|
|
1125
1401
|
/**
|
|
1126
|
-
*
|
|
1402
|
+
* User profile information
|
|
1127
1403
|
*/
|
|
1128
|
-
export const
|
|
1129
|
-
export const
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
query: z.never().optional()
|
|
1404
|
+
export const zGetUserResponse = zUser;
|
|
1405
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1406
|
+
export const zUpdateUserPath = z.object({
|
|
1407
|
+
user_id: z.string()
|
|
1133
1408
|
});
|
|
1134
1409
|
/**
|
|
1135
|
-
*
|
|
1136
|
-
*
|
|
1410
|
+
* Successfully created. Returns created user details.
|
|
1137
1411
|
*/
|
|
1138
|
-
export const
|
|
1139
|
-
|
|
1412
|
+
export const zUpdateUserResponse = zUser;
|
|
1413
|
+
/**
|
|
1414
|
+
* Returns a list of access token details with masked secrets.
|
|
1415
|
+
*/
|
|
1416
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1417
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1418
|
+
/**
|
|
1419
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1420
|
+
*/
|
|
1421
|
+
export const zCreateTokenResponse = zToken;
|
|
1422
|
+
export const zDeleteTokenPath = z.object({
|
|
1423
|
+
token_id: z.string()
|
|
1140
1424
|
});
|
|
1141
|
-
export const
|
|
1142
|
-
|
|
1143
|
-
path: z.never().optional(),
|
|
1144
|
-
query: z.object({
|
|
1145
|
-
start_date: z.string(),
|
|
1146
|
-
end_date: z.string()
|
|
1147
|
-
})
|
|
1425
|
+
export const zGetTokenPath = z.object({
|
|
1426
|
+
token_id: z.string()
|
|
1148
1427
|
});
|
|
1149
1428
|
/**
|
|
1150
|
-
*
|
|
1429
|
+
* Returns access token details with masked secret.
|
|
1151
1430
|
*/
|
|
1152
|
-
export const
|
|
1153
|
-
export const
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
id: z.string()
|
|
1157
|
-
}),
|
|
1158
|
-
query: z.never().optional()
|
|
1431
|
+
export const zGetTokenResponse = zToken;
|
|
1432
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1433
|
+
export const zUpdateTokenPath = z.object({
|
|
1434
|
+
token_id: z.string()
|
|
1159
1435
|
});
|
|
1160
1436
|
/**
|
|
1161
|
-
*
|
|
1437
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1162
1438
|
*/
|
|
1163
|
-
export const
|
|
1164
|
-
|
|
1439
|
+
export const zUpdateTokenResponse = zToken;
|
|
1440
|
+
export const zRegenerateTokenPath = z.object({
|
|
1441
|
+
token_id: z.string()
|
|
1165
1442
|
});
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1443
|
+
/**
|
|
1444
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1445
|
+
*/
|
|
1446
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1447
|
+
/**
|
|
1448
|
+
* Tickets for the organization.
|
|
1449
|
+
*/
|
|
1450
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
1451
|
+
export const zCreateTicketBody = z.object({
|
|
1452
|
+
payload: z.string().optional(),
|
|
1453
|
+
attachments: z.array(z.string()).optional()
|
|
1170
1454
|
});
|
|
1171
1455
|
/**
|
|
1172
|
-
*
|
|
1456
|
+
* Ticket created.
|
|
1173
1457
|
*/
|
|
1174
|
-
export const
|
|
1175
|
-
export const
|
|
1176
|
-
|
|
1177
|
-
path: z.never().optional(),
|
|
1178
|
-
query: z.never().optional()
|
|
1458
|
+
export const zCreateTicketResponse = zTicket;
|
|
1459
|
+
export const zCloseTicketPath = z.object({
|
|
1460
|
+
ticket_id: z.string()
|
|
1179
1461
|
});
|
|
1180
1462
|
/**
|
|
1181
|
-
*
|
|
1463
|
+
* Ticket closed.
|
|
1182
1464
|
*/
|
|
1183
|
-
export const
|
|
1184
|
-
export const
|
|
1185
|
-
|
|
1186
|
-
path: z.never().optional(),
|
|
1187
|
-
query: z.never().optional()
|
|
1465
|
+
export const zCloseTicketResponse = zTicket;
|
|
1466
|
+
export const zGetTicketPath = z.object({
|
|
1467
|
+
ticket_id: z.string()
|
|
1188
1468
|
});
|
|
1189
1469
|
/**
|
|
1190
|
-
*
|
|
1470
|
+
* Ticket with messages (internal notes excluded).
|
|
1191
1471
|
*/
|
|
1192
|
-
export const
|
|
1193
|
-
export const
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}),
|
|
1197
|
-
path: z.never().optional(),
|
|
1198
|
-
query: z.never().optional()
|
|
1472
|
+
export const zGetTicketResponse = zTicket;
|
|
1473
|
+
export const zReplyTicketBody = z.object({
|
|
1474
|
+
payload: z.string().optional(),
|
|
1475
|
+
attachments: z.array(z.string()).optional()
|
|
1199
1476
|
});
|
|
1200
|
-
export const
|
|
1201
|
-
|
|
1202
|
-
path: z.object({
|
|
1203
|
-
cluster_id: z.string()
|
|
1204
|
-
}),
|
|
1205
|
-
query: z.never().optional()
|
|
1477
|
+
export const zReplyTicketPath = z.object({
|
|
1478
|
+
ticket_id: z.string()
|
|
1206
1479
|
});
|
|
1207
1480
|
/**
|
|
1208
|
-
*
|
|
1481
|
+
* Reply appended.
|
|
1209
1482
|
*/
|
|
1210
|
-
export const
|
|
1211
|
-
export const
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
cluster_id: z.string()
|
|
1215
|
-
}),
|
|
1216
|
-
query: z.never().optional()
|
|
1483
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1484
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1485
|
+
ticket_id: z.string(),
|
|
1486
|
+
attachment_id: z.string()
|
|
1217
1487
|
});
|
|
1218
1488
|
/**
|
|
1219
|
-
*
|
|
1489
|
+
* Attachment binary stream.
|
|
1220
1490
|
*/
|
|
1221
|
-
export const
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1491
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1492
|
+
/**
|
|
1493
|
+
* List of repositories
|
|
1494
|
+
*/
|
|
1495
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1496
|
+
export const zListTagsPath = z.object({
|
|
1497
|
+
region: z.string(),
|
|
1498
|
+
repository: z.string()
|
|
1229
1499
|
});
|
|
1230
1500
|
/**
|
|
1231
|
-
*
|
|
1501
|
+
* Repository with tags
|
|
1232
1502
|
*/
|
|
1233
|
-
export const
|
|
1234
|
-
export const
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1503
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1504
|
+
export const zDeleteTagPath = z.object({
|
|
1505
|
+
region: z.string(),
|
|
1506
|
+
repository: z.string(),
|
|
1507
|
+
tag: z.string()
|
|
1508
|
+
});
|
|
1509
|
+
export const zGetTagPath = z.object({
|
|
1510
|
+
region: z.string(),
|
|
1511
|
+
repository: z.string(),
|
|
1512
|
+
tag: z.string()
|
|
1241
1513
|
});
|
|
1242
1514
|
/**
|
|
1243
|
-
*
|
|
1515
|
+
* Tag details
|
|
1244
1516
|
*/
|
|
1245
|
-
export const
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1517
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1518
|
+
/**
|
|
1519
|
+
* Returns a single object containing organization details.
|
|
1520
|
+
*/
|
|
1521
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1522
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1523
|
+
/**
|
|
1524
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1525
|
+
*
|
|
1526
|
+
*/
|
|
1527
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1528
|
+
/**
|
|
1529
|
+
* JSON-RPC 2.0 request payload
|
|
1530
|
+
*/
|
|
1531
|
+
export const zPostMcpBody = z.object({
|
|
1532
|
+
jsonrpc: z.string().optional(),
|
|
1533
|
+
method: z.string().optional(),
|
|
1534
|
+
id: z.union([
|
|
1535
|
+
z.string(),
|
|
1536
|
+
z.number()
|
|
1537
|
+
]).optional(),
|
|
1538
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
1253
1539
|
});
|
|
1254
1540
|
/**
|
|
1255
|
-
*
|
|
1541
|
+
* JSON-RPC 2.0 success or error response
|
|
1256
1542
|
*/
|
|
1257
|
-
export const
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1543
|
+
export const zPostMcpResponse = z.object({
|
|
1544
|
+
jsonrpc: z.string().optional(),
|
|
1545
|
+
id: z.union([
|
|
1546
|
+
z.string(),
|
|
1547
|
+
z.number()
|
|
1548
|
+
]).optional(),
|
|
1549
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1550
|
+
error: z.object({
|
|
1551
|
+
code: z.int().optional(),
|
|
1552
|
+
message: z.string().optional()
|
|
1553
|
+
}).optional()
|
|
1554
|
+
});
|
|
1555
|
+
/**
|
|
1556
|
+
* An array of chart listings in the marketplace.
|
|
1557
|
+
*/
|
|
1558
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1559
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1560
|
+
chart_name: z.string(),
|
|
1561
|
+
version_channel: z.string()
|
|
1562
|
+
});
|
|
1563
|
+
/**
|
|
1564
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1565
|
+
*/
|
|
1566
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1567
|
+
/**
|
|
1568
|
+
* An array of invites
|
|
1569
|
+
*/
|
|
1570
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1571
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1572
|
+
/**
|
|
1573
|
+
* Successfully created. Returns created invite details.
|
|
1574
|
+
*/
|
|
1575
|
+
export const zCreateInviteResponse = zInvite;
|
|
1576
|
+
export const zGetInvitePath = z.object({
|
|
1577
|
+
code: z.string()
|
|
1578
|
+
});
|
|
1579
|
+
/**
|
|
1580
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1581
|
+
*/
|
|
1582
|
+
export const zGetInviteResponse = z.object({
|
|
1583
|
+
email: z.email().optional(),
|
|
1584
|
+
organization_id: z.string().optional()
|
|
1585
|
+
});
|
|
1586
|
+
export const zDeleteInvitePath = z.object({
|
|
1587
|
+
email: z.email()
|
|
1588
|
+
});
|
|
1589
|
+
export const zQueryClusterPath = z.object({
|
|
1590
|
+
cluster_id: z.string()
|
|
1591
|
+
});
|
|
1592
|
+
export const zListFleetsPath = z.object({
|
|
1593
|
+
cluster_id: z.string()
|
|
1264
1594
|
});
|
|
1265
1595
|
/**
|
|
1266
1596
|
* An array of fleets
|
|
1267
1597
|
*/
|
|
1268
1598
|
export const zListFleetsResponse = z.array(zFleet);
|
|
1269
|
-
export const
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
cluster_id: z.string()
|
|
1273
|
-
}),
|
|
1274
|
-
query: z.never().optional()
|
|
1599
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1600
|
+
export const zCreateFleetPath = z.object({
|
|
1601
|
+
cluster_id: z.string()
|
|
1275
1602
|
});
|
|
1276
1603
|
/**
|
|
1277
1604
|
* Successfully created. Returns created Fleet ID.
|
|
1278
1605
|
*/
|
|
1279
1606
|
export const zCreateFleetResponse = z.string();
|
|
1280
|
-
export const
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
cluster_id: z.string(),
|
|
1284
|
-
fleet_name: z.string()
|
|
1285
|
-
}),
|
|
1286
|
-
query: z.never().optional()
|
|
1607
|
+
export const zDeleteFleetPath = z.object({
|
|
1608
|
+
cluster_id: z.string(),
|
|
1609
|
+
fleet_name: z.string()
|
|
1287
1610
|
});
|
|
1288
1611
|
/**
|
|
1289
1612
|
* Successfully deleted.
|
|
1290
1613
|
*/
|
|
1291
1614
|
export const zDeleteFleetResponse = z.string();
|
|
1292
|
-
export const
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
cluster_id: z.string(),
|
|
1296
|
-
fleet_name: z.string()
|
|
1297
|
-
}),
|
|
1298
|
-
query: z.never().optional()
|
|
1615
|
+
export const zGetFleetPath = z.object({
|
|
1616
|
+
cluster_id: z.string(),
|
|
1617
|
+
fleet_name: z.string()
|
|
1299
1618
|
});
|
|
1300
1619
|
/**
|
|
1301
1620
|
* Returns a single object containing fleet details.
|
|
1302
1621
|
*/
|
|
1303
1622
|
export const zGetFleetResponse = zFleet;
|
|
1304
|
-
export const
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
fleet_name: z.string()
|
|
1309
|
-
}),
|
|
1310
|
-
query: z.never().optional()
|
|
1623
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1624
|
+
export const zUpdateFleetPath = z.object({
|
|
1625
|
+
cluster_id: z.string(),
|
|
1626
|
+
fleet_name: z.string()
|
|
1311
1627
|
});
|
|
1312
1628
|
/**
|
|
1313
1629
|
* Successfully updated.
|
|
1314
1630
|
*/
|
|
1315
1631
|
export const zUpdateFleetResponse = z.string();
|
|
1316
|
-
export const
|
|
1317
|
-
|
|
1318
|
-
path: z.object({
|
|
1319
|
-
cluster_id: z.string()
|
|
1320
|
-
}),
|
|
1321
|
-
query: z.never().optional()
|
|
1322
|
-
});
|
|
1323
|
-
export const zListClustersData = z.object({
|
|
1324
|
-
body: z.never().optional(),
|
|
1325
|
-
path: z.never().optional(),
|
|
1326
|
-
query: z.never().optional()
|
|
1632
|
+
export const zListChartsPath = z.object({
|
|
1633
|
+
cluster_id: z.string()
|
|
1327
1634
|
});
|
|
1328
1635
|
/**
|
|
1329
|
-
* An array of
|
|
1636
|
+
* An array of charts
|
|
1330
1637
|
*/
|
|
1331
|
-
export const
|
|
1332
|
-
export const
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
query: z.never().optional()
|
|
1638
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1639
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1640
|
+
export const zCreateChartPath = z.object({
|
|
1641
|
+
cluster_id: z.string()
|
|
1336
1642
|
});
|
|
1337
1643
|
/**
|
|
1338
|
-
* Successfully created. Returns created
|
|
1644
|
+
* Successfully created. Returns created Chart ID.
|
|
1339
1645
|
*/
|
|
1340
|
-
export const
|
|
1341
|
-
export const
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
cluster_id: z.string()
|
|
1345
|
-
}),
|
|
1346
|
-
query: z.never().optional()
|
|
1646
|
+
export const zCreateChartResponse = z.string();
|
|
1647
|
+
export const zDeleteChartPath = z.object({
|
|
1648
|
+
cluster_id: z.string(),
|
|
1649
|
+
chart_name: z.string()
|
|
1347
1650
|
});
|
|
1348
1651
|
/**
|
|
1349
1652
|
* Successfully deleted.
|
|
1350
1653
|
*/
|
|
1351
|
-
export const
|
|
1352
|
-
export const
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
cluster_id: z.string()
|
|
1356
|
-
}),
|
|
1357
|
-
query: z.never().optional()
|
|
1358
|
-
});
|
|
1359
|
-
/**
|
|
1360
|
-
* Returns a single object containing cluster details.
|
|
1361
|
-
*/
|
|
1362
|
-
export const zGetClusterResponse = zCluster;
|
|
1363
|
-
export const zUpdateClusterData = z.object({
|
|
1364
|
-
body: zClusterUpdateInput,
|
|
1365
|
-
path: z.object({
|
|
1366
|
-
cluster_id: z.string()
|
|
1367
|
-
}),
|
|
1368
|
-
query: z.never().optional()
|
|
1369
|
-
});
|
|
1370
|
-
/**
|
|
1371
|
-
* Successfully updated. Returns updated cluster details.
|
|
1372
|
-
*/
|
|
1373
|
-
export const zUpdateClusterResponse = zCluster;
|
|
1374
|
-
export const zGetJoinInformationData = z.object({
|
|
1375
|
-
body: z.never().optional(),
|
|
1376
|
-
path: z.object({
|
|
1377
|
-
cluster_id: z.string()
|
|
1378
|
-
}),
|
|
1379
|
-
query: z.never().optional()
|
|
1654
|
+
export const zDeleteChartResponse = z.string();
|
|
1655
|
+
export const zGetChartPath = z.object({
|
|
1656
|
+
cluster_id: z.string(),
|
|
1657
|
+
chart_name: z.string()
|
|
1380
1658
|
});
|
|
1381
1659
|
/**
|
|
1382
|
-
*
|
|
1660
|
+
* Returns a single object containing chart details.
|
|
1383
1661
|
*/
|
|
1384
|
-
export const
|
|
1385
|
-
export const
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1662
|
+
export const zGetChartResponse = zChart;
|
|
1663
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1664
|
+
export const zUpdateChartPath = z.object({
|
|
1665
|
+
cluster_id: z.string(),
|
|
1666
|
+
chart_name: z.string()
|
|
1389
1667
|
});
|
|
1390
1668
|
/**
|
|
1391
|
-
*
|
|
1669
|
+
* Successfully updated.
|
|
1392
1670
|
*/
|
|
1393
|
-
export const
|
|
1394
|
-
export const zCreateInviteData = z.object({
|
|
1395
|
-
body: z.object({
|
|
1396
|
-
email: z.string().optional()
|
|
1397
|
-
}),
|
|
1398
|
-
path: z.never().optional(),
|
|
1399
|
-
query: z.never().optional()
|
|
1400
|
-
});
|
|
1671
|
+
export const zUpdateChartResponse = z.string();
|
|
1401
1672
|
/**
|
|
1402
|
-
*
|
|
1673
|
+
* An array of clusters
|
|
1403
1674
|
*/
|
|
1404
|
-
export const
|
|
1405
|
-
export const
|
|
1406
|
-
body: z.never().optional(),
|
|
1407
|
-
path: z.object({
|
|
1408
|
-
code: z.string()
|
|
1409
|
-
}),
|
|
1410
|
-
query: z.never().optional()
|
|
1411
|
-
});
|
|
1675
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1676
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1412
1677
|
/**
|
|
1413
|
-
*
|
|
1678
|
+
* Successfully created. Returns created Cluster ID.
|
|
1414
1679
|
*/
|
|
1415
|
-
export const
|
|
1416
|
-
export const
|
|
1417
|
-
|
|
1418
|
-
path: z.object({
|
|
1419
|
-
email: z.string()
|
|
1420
|
-
}),
|
|
1421
|
-
query: z.never().optional()
|
|
1422
|
-
});
|
|
1423
|
-
export const zListMarketplaceChartsData = z.object({
|
|
1424
|
-
body: z.never().optional(),
|
|
1425
|
-
path: z.never().optional(),
|
|
1426
|
-
query: z.never().optional()
|
|
1680
|
+
export const zCreateClusterResponse = z.string();
|
|
1681
|
+
export const zDeleteClusterPath = z.object({
|
|
1682
|
+
cluster_id: z.string()
|
|
1427
1683
|
});
|
|
1428
1684
|
/**
|
|
1429
|
-
*
|
|
1685
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1430
1686
|
*/
|
|
1431
|
-
export const
|
|
1432
|
-
export const
|
|
1433
|
-
|
|
1434
|
-
path: z.object({
|
|
1435
|
-
listing_id: z.string()
|
|
1436
|
-
}),
|
|
1437
|
-
query: z.never().optional()
|
|
1687
|
+
export const zDeleteClusterResponse = z.string();
|
|
1688
|
+
export const zGetClusterPath = z.object({
|
|
1689
|
+
cluster_id: z.string()
|
|
1438
1690
|
});
|
|
1439
1691
|
/**
|
|
1440
|
-
* Returns
|
|
1692
|
+
* Returns a single object containing cluster details.
|
|
1441
1693
|
*/
|
|
1442
|
-
export const
|
|
1443
|
-
export const
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
query: z.never().optional()
|
|
1694
|
+
export const zGetClusterResponse = zCluster;
|
|
1695
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1696
|
+
export const zUpdateClusterPath = z.object({
|
|
1697
|
+
cluster_id: z.string()
|
|
1447
1698
|
});
|
|
1448
1699
|
/**
|
|
1449
|
-
*
|
|
1700
|
+
* Successfully updated. Returns updated cluster details.
|
|
1450
1701
|
*/
|
|
1451
|
-
export const
|
|
1452
|
-
export const
|
|
1453
|
-
|
|
1454
|
-
path: z.never().optional(),
|
|
1455
|
-
query: z.never().optional()
|
|
1456
|
-
});
|
|
1457
|
-
export const zListTokensData = z.object({
|
|
1458
|
-
body: z.never().optional(),
|
|
1459
|
-
path: z.never().optional(),
|
|
1460
|
-
query: z.never().optional()
|
|
1702
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1703
|
+
export const zGetJoinInformationPath = z.object({
|
|
1704
|
+
cluster_id: z.string()
|
|
1461
1705
|
});
|
|
1462
1706
|
/**
|
|
1463
|
-
*
|
|
1707
|
+
* An object of cluster join information
|
|
1464
1708
|
*/
|
|
1465
|
-
export const
|
|
1466
|
-
export const
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1709
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1710
|
+
export const zGetUsageQuery = z.object({
|
|
1711
|
+
granularity: z.enum([
|
|
1712
|
+
'hourly',
|
|
1713
|
+
'daily',
|
|
1714
|
+
'monthly'
|
|
1715
|
+
]).optional().default('daily')
|
|
1470
1716
|
});
|
|
1471
1717
|
/**
|
|
1472
|
-
*
|
|
1718
|
+
* Usage data with facets for filtering
|
|
1473
1719
|
*/
|
|
1474
|
-
export const
|
|
1475
|
-
export const zDeleteTokenData = z.object({
|
|
1476
|
-
body: z.never().optional(),
|
|
1477
|
-
path: z.object({
|
|
1478
|
-
token_id: z.string()
|
|
1479
|
-
}),
|
|
1480
|
-
query: z.never().optional()
|
|
1481
|
-
});
|
|
1482
|
-
export const zGetTokenData = z.object({
|
|
1483
|
-
body: z.never().optional(),
|
|
1484
|
-
path: z.object({
|
|
1485
|
-
token_id: z.string()
|
|
1486
|
-
}),
|
|
1487
|
-
query: z.never().optional()
|
|
1488
|
-
});
|
|
1720
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1489
1721
|
/**
|
|
1490
|
-
*
|
|
1722
|
+
* 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.
|
|
1723
|
+
*
|
|
1491
1724
|
*/
|
|
1492
|
-
export const
|
|
1493
|
-
|
|
1494
|
-
body: zTokenUpdateInput,
|
|
1495
|
-
path: z.object({
|
|
1496
|
-
token_id: z.string()
|
|
1497
|
-
}),
|
|
1498
|
-
query: z.never().optional()
|
|
1725
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1726
|
+
id: z.string().optional()
|
|
1499
1727
|
});
|
|
1500
1728
|
/**
|
|
1501
|
-
*
|
|
1729
|
+
* An array of payment methods.
|
|
1502
1730
|
*/
|
|
1503
|
-
export const
|
|
1504
|
-
export const
|
|
1505
|
-
|
|
1506
|
-
path: z.object({
|
|
1507
|
-
token_id: z.string()
|
|
1508
|
-
}),
|
|
1509
|
-
query: z.never().optional()
|
|
1731
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1732
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1733
|
+
paymentMethodId: z.string()
|
|
1510
1734
|
});
|
|
1511
1735
|
/**
|
|
1512
|
-
*
|
|
1736
|
+
* Default payment method updated.
|
|
1513
1737
|
*/
|
|
1514
|
-
export const
|
|
1515
|
-
export const
|
|
1516
|
-
|
|
1517
|
-
path: z.object({
|
|
1518
|
-
email: z.string()
|
|
1519
|
-
}),
|
|
1520
|
-
query: z.never().optional()
|
|
1738
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1739
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1740
|
+
paymentMethodId: z.string()
|
|
1521
1741
|
});
|
|
1522
1742
|
/**
|
|
1523
|
-
*
|
|
1743
|
+
* Payment method deleted.
|
|
1524
1744
|
*/
|
|
1525
|
-
export const
|
|
1526
|
-
realm: z.string().optional(),
|
|
1527
|
-
displayName: z.string().optional()
|
|
1528
|
-
}));
|
|
1529
|
-
export const zListUsersData = z.object({
|
|
1530
|
-
body: z.never().optional(),
|
|
1531
|
-
path: z.never().optional(),
|
|
1532
|
-
query: z.never().optional()
|
|
1533
|
-
});
|
|
1745
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1534
1746
|
/**
|
|
1535
|
-
* An array of
|
|
1747
|
+
* An array of usage records.
|
|
1536
1748
|
*/
|
|
1537
|
-
export const
|
|
1538
|
-
export const zCreateUserData = z.object({
|
|
1539
|
-
body: zUserCreateInput,
|
|
1540
|
-
path: z.never().optional(),
|
|
1541
|
-
query: z.never().optional()
|
|
1542
|
-
});
|
|
1749
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1543
1750
|
/**
|
|
1544
|
-
*
|
|
1751
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1545
1752
|
*/
|
|
1546
|
-
export const
|
|
1547
|
-
export const
|
|
1548
|
-
body: z.never().optional(),
|
|
1549
|
-
path: z.object({
|
|
1550
|
-
user_id: z.string()
|
|
1551
|
-
}),
|
|
1552
|
-
query: z.never().optional()
|
|
1553
|
-
});
|
|
1753
|
+
export const zGetContactResponse = zBillingContact;
|
|
1754
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1554
1755
|
/**
|
|
1555
|
-
*
|
|
1756
|
+
* Successfully updated. Returns updated organization details.
|
|
1556
1757
|
*/
|
|
1557
|
-
export const
|
|
1558
|
-
export const zGetUserData = z.object({
|
|
1559
|
-
body: z.never().optional(),
|
|
1560
|
-
path: z.object({
|
|
1561
|
-
user_id: z.string()
|
|
1562
|
-
}),
|
|
1563
|
-
query: z.never().optional()
|
|
1564
|
-
});
|
|
1758
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1565
1759
|
/**
|
|
1566
|
-
*
|
|
1760
|
+
* An array of the applied promotional credits records.
|
|
1567
1761
|
*/
|
|
1568
|
-
export const
|
|
1569
|
-
export const
|
|
1570
|
-
|
|
1571
|
-
path: z.object({
|
|
1572
|
-
user_id: z.string()
|
|
1573
|
-
}),
|
|
1574
|
-
query: z.never().optional()
|
|
1762
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1763
|
+
export const zRedeemCreditsBody = z.object({
|
|
1764
|
+
code: z.string().optional()
|
|
1575
1765
|
});
|
|
1576
|
-
/**
|
|
1577
|
-
* Successfully created. Returns created user details.
|
|
1578
|
-
*/
|
|
1579
|
-
export const zUpdateUserResponse = zUser;
|
|
1580
1766
|
//# sourceMappingURL=zod.gen.js.map
|