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