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