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