@cloudfleet/sdk 0.0.1-5753ad1 → 0.0.1-5aba3bd
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/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +39 -8
- 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 +4 -11
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +1 -1
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +10 -12
- 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 +18 -6
- package/dist/core/params.gen.js.map +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/core/pathSerializer.gen.js +3 -11
- package/dist/core/pathSerializer.gen.js.map +1 -1
- package/dist/core/queryKeySerializer.gen.d.ts.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.map +1 -1
- package/dist/core/serverSentEvents.gen.js +5 -7
- 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 +397 -70
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +933 -149
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +37 -5
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +74 -127
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +406 -41
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +520 -561
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +313 -445
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -4
package/dist/zod.gen.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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
|
-
company: z.
|
|
5
|
-
address1: z.
|
|
6
|
-
address2: z.
|
|
7
|
-
postalCode: z.
|
|
8
|
-
city: z.
|
|
9
|
-
state: z.
|
|
10
|
-
country: z.
|
|
11
|
-
phone: z.
|
|
4
|
+
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
|
+
address1: z.string().optional(),
|
|
6
|
+
address2: z.string().optional(),
|
|
7
|
+
postalCode: z.string().optional(),
|
|
8
|
+
city: z.string().optional(),
|
|
9
|
+
state: z.string().optional(),
|
|
10
|
+
country: z.string().optional(),
|
|
11
|
+
phone: z.string().optional(),
|
|
12
12
|
email: z.email(),
|
|
13
13
|
individual_name: z.string(),
|
|
14
|
-
tax_id: z.
|
|
15
|
-
tax_id_type: z.
|
|
14
|
+
tax_id: z.string().optional(),
|
|
15
|
+
tax_id_type: z.enum([
|
|
16
16
|
'ad_nrt',
|
|
17
17
|
'ae_trn',
|
|
18
18
|
'al_tin',
|
|
@@ -141,20 +141,17 @@ export const zBillingContact = z.object({
|
|
|
141
141
|
'zm_tin',
|
|
142
142
|
'zw_tin',
|
|
143
143
|
''
|
|
144
|
-
]))
|
|
144
|
+
]).optional()
|
|
145
145
|
});
|
|
146
146
|
export const zBillingCredits = z.object({
|
|
147
|
-
id: z.
|
|
148
|
-
type: z.enum([
|
|
149
|
-
'credit',
|
|
150
|
-
'discount'
|
|
151
|
-
]),
|
|
147
|
+
id: z.string().optional(),
|
|
148
|
+
type: z.enum(['credit', 'discount']),
|
|
152
149
|
date_start: z.iso.datetime(),
|
|
153
|
-
date_end: z.
|
|
150
|
+
date_end: z.iso.datetime().optional(),
|
|
154
151
|
code: z.string(),
|
|
155
|
-
description: z.
|
|
152
|
+
description: z.string().optional(),
|
|
156
153
|
value_total: z.number(),
|
|
157
|
-
value_remaining: z.
|
|
154
|
+
value_remaining: z.number().optional()
|
|
158
155
|
});
|
|
159
156
|
export const zChartCreateInput = z.object({
|
|
160
157
|
values: z.string(),
|
|
@@ -196,21 +193,24 @@ export const zChartUpdateInput = z.object({
|
|
|
196
193
|
});
|
|
197
194
|
export const zClusterCreateInput = z.object({
|
|
198
195
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
199
|
-
tier: z.enum([
|
|
200
|
-
|
|
201
|
-
'
|
|
202
|
-
]),
|
|
203
|
-
region: z.optional(z.enum([
|
|
204
|
-
'staging',
|
|
196
|
+
tier: z.enum(['basic', 'pro']),
|
|
197
|
+
region: z.enum([
|
|
198
|
+
'staging-1a',
|
|
205
199
|
'northamerica-central-1',
|
|
206
200
|
'europe-central-1a',
|
|
207
201
|
'northamerica-central-1a'
|
|
208
|
-
])),
|
|
209
|
-
version_channel: z.
|
|
202
|
+
]).optional(),
|
|
203
|
+
version_channel: z.enum([
|
|
204
|
+
'1.x.x-cfke.x',
|
|
205
|
+
'1.31.x-cfke.x',
|
|
206
|
+
'1.32.x-cfke.x',
|
|
207
|
+
'1.33.x-cfke.x'
|
|
208
|
+
]).optional()
|
|
210
209
|
});
|
|
211
210
|
export const zClusterJoinInformation = z.object({
|
|
212
211
|
certificate_authority: z.string(),
|
|
213
212
|
endpoint: z.url(),
|
|
213
|
+
cluster_dns: z.string(),
|
|
214
214
|
auth_key: z.string(),
|
|
215
215
|
bootstrap_token: z.string(),
|
|
216
216
|
versions: z.object({
|
|
@@ -227,17 +227,13 @@ export const zClusterJoinInformation = z.object({
|
|
|
227
227
|
});
|
|
228
228
|
export const zCluster = z.object({
|
|
229
229
|
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.optional(z.enum([
|
|
235
|
-
'staging',
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
231
|
+
region: z.enum([
|
|
232
|
+
'staging-1a',
|
|
236
233
|
'northamerica-central-1',
|
|
237
234
|
'europe-central-1a',
|
|
238
235
|
'northamerica-central-1a'
|
|
239
|
-
])),
|
|
240
|
-
version_channel: z.optional(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'),
|
|
236
|
+
]).optional(),
|
|
241
237
|
id: z.uuid(),
|
|
242
238
|
status: z.enum([
|
|
243
239
|
'active',
|
|
@@ -248,111 +244,118 @@ export const zCluster = z.object({
|
|
|
248
244
|
'failed',
|
|
249
245
|
'updating'
|
|
250
246
|
]),
|
|
251
|
-
endpoint: z.
|
|
247
|
+
endpoint: z.union([
|
|
252
248
|
z.url(),
|
|
253
|
-
z.enum([
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
ready: z.optional(z.boolean())
|
|
249
|
+
z.enum([''])
|
|
250
|
+
]).optional(),
|
|
251
|
+
certificate_ca: z.string().optional(),
|
|
252
|
+
version_current: z.string().optional(),
|
|
253
|
+
created_at: z.string().optional(),
|
|
254
|
+
updated_at: z.string().optional(),
|
|
255
|
+
ready: z.boolean().optional(),
|
|
256
|
+
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()
|
|
262
257
|
});
|
|
263
258
|
export const zClusterUpdateInput = z.object({
|
|
264
|
-
name: z.
|
|
265
|
-
tier: z.enum([
|
|
266
|
-
|
|
267
|
-
'pro'
|
|
268
|
-
]),
|
|
269
|
-
version_channel: z.optional(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-]+)*))?$/))
|
|
259
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
260
|
+
tier: z.enum(['basic', 'pro']),
|
|
261
|
+
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()
|
|
270
262
|
});
|
|
271
263
|
export const zFleetCreateInput = z.object({
|
|
272
|
-
limits: z.
|
|
264
|
+
limits: z.object({
|
|
273
265
|
cpu: z.number().gte(0)
|
|
274
|
-
})),
|
|
275
|
-
gcp: z.
|
|
276
|
-
enabled: z.
|
|
266
|
+
}).optional(),
|
|
267
|
+
gcp: z.object({
|
|
268
|
+
enabled: z.boolean().optional().default(true),
|
|
277
269
|
project: z.string()
|
|
278
|
-
})),
|
|
279
|
-
hetzner: z.
|
|
280
|
-
enabled: z.
|
|
270
|
+
}).optional(),
|
|
271
|
+
hetzner: z.object({
|
|
272
|
+
enabled: z.boolean().optional().default(true),
|
|
281
273
|
apiKey: z.string()
|
|
282
|
-
})),
|
|
283
|
-
aws: z.
|
|
284
|
-
enabled: z.
|
|
274
|
+
}).optional(),
|
|
275
|
+
aws: z.object({
|
|
276
|
+
enabled: z.boolean().optional().default(true),
|
|
285
277
|
controllerRoleArn: z.string()
|
|
286
|
-
})),
|
|
278
|
+
}).optional(),
|
|
287
279
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
288
280
|
});
|
|
289
281
|
export const zFleet = z.object({
|
|
290
|
-
limits: z.
|
|
282
|
+
limits: z.object({
|
|
291
283
|
cpu: z.number().gte(0)
|
|
292
|
-
})),
|
|
293
|
-
gcp: z.
|
|
294
|
-
enabled: z.
|
|
284
|
+
}).optional(),
|
|
285
|
+
gcp: z.object({
|
|
286
|
+
enabled: z.boolean().optional().default(true),
|
|
295
287
|
project: z.string()
|
|
296
|
-
})),
|
|
297
|
-
hetzner: z.
|
|
298
|
-
enabled: z.
|
|
288
|
+
}).optional(),
|
|
289
|
+
hetzner: z.object({
|
|
290
|
+
enabled: z.boolean().optional().default(true),
|
|
299
291
|
apiKey: z.string()
|
|
300
|
-
})),
|
|
301
|
-
aws: z.
|
|
302
|
-
enabled: z.
|
|
292
|
+
}).optional(),
|
|
293
|
+
aws: z.object({
|
|
294
|
+
enabled: z.boolean().optional().default(true),
|
|
303
295
|
controllerRoleArn: z.string()
|
|
304
|
-
})),
|
|
296
|
+
}).optional(),
|
|
305
297
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
306
298
|
});
|
|
307
299
|
export const zFleetUpdateInput = z.object({
|
|
308
|
-
limits: z.
|
|
300
|
+
limits: z.object({
|
|
309
301
|
cpu: z.number().gte(0)
|
|
310
|
-
})),
|
|
311
|
-
gcp: z.
|
|
312
|
-
enabled: z.
|
|
302
|
+
}).optional(),
|
|
303
|
+
gcp: z.object({
|
|
304
|
+
enabled: z.boolean().optional().default(true),
|
|
313
305
|
project: z.string()
|
|
314
|
-
})),
|
|
315
|
-
hetzner: z.
|
|
316
|
-
enabled: z.
|
|
306
|
+
}).optional(),
|
|
307
|
+
hetzner: z.object({
|
|
308
|
+
enabled: z.boolean().optional().default(true),
|
|
317
309
|
apiKey: z.string()
|
|
318
|
-
})),
|
|
319
|
-
aws: z.
|
|
320
|
-
enabled: z.
|
|
310
|
+
}).optional(),
|
|
311
|
+
aws: z.object({
|
|
312
|
+
enabled: z.boolean().optional().default(true),
|
|
321
313
|
controllerRoleArn: z.string()
|
|
322
|
-
}))
|
|
314
|
+
}).optional()
|
|
323
315
|
});
|
|
324
316
|
export const zInvite = z.object({
|
|
325
|
-
id: z.
|
|
326
|
-
organization_id: z.
|
|
317
|
+
id: z.string().optional(),
|
|
318
|
+
organization_id: z.uuid().optional(),
|
|
327
319
|
date_created: z.iso.datetime(),
|
|
328
|
-
email: z.
|
|
329
|
-
code: z.
|
|
320
|
+
email: z.email().optional(),
|
|
321
|
+
code: z.string().optional()
|
|
330
322
|
});
|
|
331
323
|
export const zInvoice = z.object({
|
|
332
|
-
id: z.
|
|
333
|
-
number: z.
|
|
334
|
-
status: z.
|
|
335
|
-
total: z.
|
|
336
|
-
currency: z.
|
|
324
|
+
id: z.string().optional(),
|
|
325
|
+
number: z.string().optional(),
|
|
326
|
+
status: z.string().optional(),
|
|
327
|
+
total: z.number().optional(),
|
|
328
|
+
currency: z.string().optional(),
|
|
337
329
|
created: z.iso.datetime(),
|
|
338
330
|
period_start: z.iso.datetime(),
|
|
339
331
|
period_end: z.iso.datetime(),
|
|
340
|
-
invoice_pdf: z.
|
|
332
|
+
invoice_pdf: z.string().optional()
|
|
333
|
+
});
|
|
334
|
+
export const zMarketplaceListingFiles = z.object({
|
|
335
|
+
chartYaml: z.string().optional(),
|
|
336
|
+
valuesYaml: z.string().optional(),
|
|
337
|
+
valuesSchemaJson: z.string().optional()
|
|
341
338
|
});
|
|
342
339
|
export const zMarketplaceListing = z.object({
|
|
343
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
344
340
|
name: z.string(),
|
|
345
|
-
|
|
346
|
-
description: z.string(),
|
|
347
|
-
logoUrl: z.string(),
|
|
348
|
-
longDescription: z.string(),
|
|
349
|
-
categories: z.array(z.string()),
|
|
341
|
+
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-]+)*))?$/)),
|
|
350
342
|
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-]+)*))?$/)),
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
343
|
+
latestVersion: z.string(),
|
|
344
|
+
metadata: z.object({
|
|
345
|
+
name: z.string(),
|
|
346
|
+
version: z.string(),
|
|
347
|
+
description: z.string().optional(),
|
|
348
|
+
appVersion: z.string().optional(),
|
|
349
|
+
apiVersion: z.string().optional(),
|
|
350
|
+
keywords: z.array(z.string()).optional(),
|
|
351
|
+
home: z.string().optional(),
|
|
352
|
+
icon: z.string().optional(),
|
|
353
|
+
sources: z.array(z.string()).optional(),
|
|
354
|
+
maintainers: z.array(z.object({
|
|
355
|
+
name: z.string(),
|
|
356
|
+
email: z.string().optional()
|
|
357
|
+
})).optional()
|
|
358
|
+
}).optional()
|
|
356
359
|
});
|
|
357
360
|
export const zOrganizationCreateInput = z.object({
|
|
358
361
|
email: z.email(),
|
|
@@ -363,7 +366,7 @@ export const zOrganizationCreateInput = z.object({
|
|
|
363
366
|
});
|
|
364
367
|
export const zOrganization = z.object({
|
|
365
368
|
id: z.uuid(),
|
|
366
|
-
name: z.
|
|
369
|
+
name: z.string().min(2).max(120).optional(),
|
|
367
370
|
date_created: z.iso.datetime(),
|
|
368
371
|
quota: z.object({
|
|
369
372
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -376,7 +379,10 @@ export const zOrganization = z.object({
|
|
|
376
379
|
versions: z.array(z.object({
|
|
377
380
|
id: z.string(),
|
|
378
381
|
label: z.string()
|
|
379
|
-
})).min(1)
|
|
382
|
+
})).min(1),
|
|
383
|
+
copilot_user_hourly_tokens: z.int().gte(0),
|
|
384
|
+
copilot_organization_hourly_tokens: z.int().gte(0),
|
|
385
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
380
386
|
}),
|
|
381
387
|
status: z.enum([
|
|
382
388
|
'active',
|
|
@@ -387,9 +393,7 @@ export const zOrganization = z.object({
|
|
|
387
393
|
export const zPaymentMethod = z.object({
|
|
388
394
|
id: z.uuid(),
|
|
389
395
|
setup: z.boolean(),
|
|
390
|
-
type: z.enum([
|
|
391
|
-
'card'
|
|
392
|
-
]),
|
|
396
|
+
type: z.enum(['card']),
|
|
393
397
|
last4: z.string(),
|
|
394
398
|
exp_month: z.int().gte(1).lte(12),
|
|
395
399
|
exp_year: z.int().gte(2024),
|
|
@@ -416,35 +420,75 @@ export const zPlatformQuota = z.object({
|
|
|
416
420
|
versions: z.array(z.object({
|
|
417
421
|
id: z.string(),
|
|
418
422
|
label: z.string()
|
|
419
|
-
})).min(1)
|
|
423
|
+
})).min(1),
|
|
424
|
+
copilot_user_hourly_tokens: z.int().gte(0),
|
|
425
|
+
copilot_organization_hourly_tokens: z.int().gte(0),
|
|
426
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
427
|
+
});
|
|
428
|
+
export const zRegistryRepository = z.object({
|
|
429
|
+
name: z.string(),
|
|
430
|
+
region: z.string(),
|
|
431
|
+
uri: z.string()
|
|
432
|
+
});
|
|
433
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
434
|
+
name: z.string(),
|
|
435
|
+
region: z.string(),
|
|
436
|
+
uri: z.string(),
|
|
437
|
+
tags: z.array(z.object({
|
|
438
|
+
name: z.string(),
|
|
439
|
+
size: z.number(),
|
|
440
|
+
mediaType: z.string().optional(),
|
|
441
|
+
platforms: z.array(z.string()).optional()
|
|
442
|
+
})),
|
|
443
|
+
totalSize: z.number()
|
|
444
|
+
});
|
|
445
|
+
export const zRegistryTag = z.object({
|
|
446
|
+
name: z.string(),
|
|
447
|
+
digest: z.string(),
|
|
448
|
+
mediaType: z.string().optional(),
|
|
449
|
+
config: z.object({
|
|
450
|
+
size: z.number()
|
|
451
|
+
}).optional(),
|
|
452
|
+
layers: z.array(z.object({
|
|
453
|
+
digest: z.string().optional(),
|
|
454
|
+
size: z.number()
|
|
455
|
+
})).optional(),
|
|
456
|
+
manifests: z.array(z.object({
|
|
457
|
+
digest: z.string(),
|
|
458
|
+
platform: z.object({
|
|
459
|
+
architecture: z.string(),
|
|
460
|
+
os: z.string(),
|
|
461
|
+
variant: z.string().optional()
|
|
462
|
+
}).optional(),
|
|
463
|
+
layers: z.array(z.object({
|
|
464
|
+
digest: z.string().optional(),
|
|
465
|
+
size: z.number()
|
|
466
|
+
})).optional(),
|
|
467
|
+
size: z.number().optional()
|
|
468
|
+
})).optional(),
|
|
469
|
+
size: z.number(),
|
|
470
|
+
region: z.string(),
|
|
471
|
+
repository: z.string(),
|
|
472
|
+
uri: z.string()
|
|
420
473
|
});
|
|
421
474
|
export const zTokenCreateInput = z.object({
|
|
422
475
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
423
|
-
role: z.enum([
|
|
424
|
-
'Administrator',
|
|
425
|
-
'User'
|
|
426
|
-
])
|
|
476
|
+
role: z.enum(['Administrator', 'User'])
|
|
427
477
|
});
|
|
428
478
|
export const zToken = z.object({
|
|
429
479
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
430
|
-
role: z.enum([
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
]),
|
|
434
|
-
id: z.optional(z.string()),
|
|
435
|
-
secret: z.optional(z.string()),
|
|
480
|
+
role: z.enum(['Administrator', 'User']),
|
|
481
|
+
id: z.string().optional(),
|
|
482
|
+
secret: z.string().optional(),
|
|
436
483
|
date_created: z.iso.datetime()
|
|
437
484
|
});
|
|
438
485
|
export const zTokenUpdateInput = z.object({
|
|
439
|
-
name: z.
|
|
440
|
-
role: z.
|
|
441
|
-
'Administrator',
|
|
442
|
-
'User'
|
|
443
|
-
]))
|
|
486
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
487
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
444
488
|
});
|
|
445
489
|
export const zUsageFacets = z.object({
|
|
446
|
-
cluster_id: z.
|
|
447
|
-
product: z.
|
|
490
|
+
cluster_id: z.array(z.string()).optional(),
|
|
491
|
+
product: z.array(z.string()).optional()
|
|
448
492
|
});
|
|
449
493
|
export const zUsageResponse = z.object({
|
|
450
494
|
data: z.array(z.object({
|
|
@@ -456,8 +500,8 @@ export const zUsageResponse = z.object({
|
|
|
456
500
|
total: z.number()
|
|
457
501
|
})),
|
|
458
502
|
facets: z.object({
|
|
459
|
-
cluster_id: z.
|
|
460
|
-
product: z.
|
|
503
|
+
cluster_id: z.array(z.string()).optional(),
|
|
504
|
+
product: z.array(z.string()).optional()
|
|
461
505
|
})
|
|
462
506
|
});
|
|
463
507
|
export const zUsage = z.object({
|
|
@@ -474,525 +518,349 @@ export const zUserCreateInput = z.object({
|
|
|
474
518
|
last_name: z.string().min(1).max(50),
|
|
475
519
|
code: z.string(),
|
|
476
520
|
password: z.string().min(8),
|
|
477
|
-
status: z.
|
|
478
|
-
|
|
479
|
-
'inactive'
|
|
480
|
-
])),
|
|
481
|
-
role: z.optional(z.enum([
|
|
482
|
-
'Administrator',
|
|
483
|
-
'User'
|
|
484
|
-
]))
|
|
521
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
522
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
485
523
|
});
|
|
486
524
|
export const zUser = z.object({
|
|
487
525
|
email: z.email(),
|
|
488
526
|
first_name: z.string().min(1).max(50),
|
|
489
527
|
last_name: z.string().min(1).max(50),
|
|
490
|
-
role: z.enum([
|
|
491
|
-
|
|
492
|
-
'User'
|
|
493
|
-
]),
|
|
494
|
-
status: z.enum([
|
|
495
|
-
'active',
|
|
496
|
-
'inactive'
|
|
497
|
-
]),
|
|
528
|
+
role: z.enum(['Administrator', 'User']),
|
|
529
|
+
status: z.enum(['active', 'inactive']),
|
|
498
530
|
id: z.uuid(),
|
|
499
531
|
date_created: z.iso.datetime()
|
|
500
532
|
});
|
|
501
533
|
export const zUserUpdateInput = z.object({
|
|
502
|
-
email: z.
|
|
503
|
-
first_name: z.
|
|
504
|
-
last_name: z.
|
|
505
|
-
role: z.
|
|
506
|
-
|
|
507
|
-
'User'
|
|
508
|
-
])),
|
|
509
|
-
status: z.optional(z.enum([
|
|
510
|
-
'active',
|
|
511
|
-
'inactive'
|
|
512
|
-
]))
|
|
534
|
+
email: z.email().optional(),
|
|
535
|
+
first_name: z.string().min(1).max(50).optional(),
|
|
536
|
+
last_name: z.string().min(1).max(50).optional(),
|
|
537
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
538
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
513
539
|
});
|
|
514
|
-
export const
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
'daily',
|
|
521
|
-
'monthly'
|
|
522
|
-
]))
|
|
523
|
-
}))
|
|
540
|
+
export const zGetUsageQuery = z.object({
|
|
541
|
+
granularity: z.enum([
|
|
542
|
+
'hourly',
|
|
543
|
+
'daily',
|
|
544
|
+
'monthly'
|
|
545
|
+
]).optional()
|
|
524
546
|
});
|
|
525
547
|
/**
|
|
526
548
|
* Usage data with facets for filtering
|
|
527
549
|
*/
|
|
528
550
|
export const zGetUsageResponse = zUsageResponse;
|
|
529
|
-
export const zGetPaymentMethodData = z.object({
|
|
530
|
-
body: z.optional(z.never()),
|
|
531
|
-
path: z.optional(z.never()),
|
|
532
|
-
query: z.optional(z.never())
|
|
533
|
-
});
|
|
534
551
|
/**
|
|
535
552
|
* Redacted payment card information.
|
|
536
553
|
*/
|
|
537
554
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
538
|
-
export const zGetPaymentMethodSecretData = z.object({
|
|
539
|
-
body: z.optional(z.never()),
|
|
540
|
-
path: z.optional(z.never()),
|
|
541
|
-
query: z.optional(z.never())
|
|
542
|
-
});
|
|
543
555
|
/**
|
|
544
556
|
* 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.
|
|
545
557
|
*
|
|
546
558
|
*/
|
|
547
559
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
548
|
-
id: z.
|
|
549
|
-
});
|
|
550
|
-
export const zListInvoicesData = z.object({
|
|
551
|
-
body: z.optional(z.never()),
|
|
552
|
-
path: z.optional(z.never()),
|
|
553
|
-
query: z.optional(z.never())
|
|
560
|
+
id: z.string().optional()
|
|
554
561
|
});
|
|
555
562
|
/**
|
|
556
563
|
* An array of usage records.
|
|
557
564
|
*/
|
|
558
565
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
559
|
-
export const zGetContactData = z.object({
|
|
560
|
-
body: z.optional(z.never()),
|
|
561
|
-
path: z.optional(z.never()),
|
|
562
|
-
query: z.optional(z.never())
|
|
563
|
-
});
|
|
564
566
|
/**
|
|
565
567
|
* Returns a single object containing organization contact and billing address details.
|
|
566
568
|
*/
|
|
567
569
|
export const zGetContactResponse = zBillingContact;
|
|
568
|
-
export const
|
|
569
|
-
body: zBillingContact,
|
|
570
|
-
path: z.optional(z.never()),
|
|
571
|
-
query: z.optional(z.never())
|
|
572
|
-
});
|
|
570
|
+
export const zUpdateContactBody = zBillingContact;
|
|
573
571
|
/**
|
|
574
572
|
* Successfully updated. Returns updated organization details.
|
|
575
573
|
*/
|
|
576
574
|
export const zUpdateContactResponse = zBillingContact;
|
|
577
|
-
export const zGetCreditsData = z.object({
|
|
578
|
-
body: z.optional(z.never()),
|
|
579
|
-
path: z.optional(z.never()),
|
|
580
|
-
query: z.optional(z.never())
|
|
581
|
-
});
|
|
582
575
|
/**
|
|
583
576
|
* An array of the applied promotional credits records.
|
|
584
577
|
*/
|
|
585
578
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
586
|
-
export const
|
|
587
|
-
|
|
588
|
-
code: z.optional(z.string())
|
|
589
|
-
}),
|
|
590
|
-
path: z.optional(z.never()),
|
|
591
|
-
query: z.optional(z.never())
|
|
579
|
+
export const zRedeemCreditsBody = z.object({
|
|
580
|
+
code: z.string().optional()
|
|
592
581
|
});
|
|
593
|
-
export const
|
|
594
|
-
|
|
595
|
-
path: z.object({
|
|
596
|
-
cluster_id: z.string()
|
|
597
|
-
}),
|
|
598
|
-
query: z.optional(z.never())
|
|
582
|
+
export const zListChartsPath = z.object({
|
|
583
|
+
cluster_id: z.string()
|
|
599
584
|
});
|
|
600
585
|
/**
|
|
601
586
|
* An array of charts
|
|
602
587
|
*/
|
|
603
588
|
export const zListChartsResponse = z.array(zChart);
|
|
604
|
-
export const
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
cluster_id: z.string()
|
|
608
|
-
}),
|
|
609
|
-
query: z.optional(z.never())
|
|
589
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
590
|
+
export const zCreateChartPath = z.object({
|
|
591
|
+
cluster_id: z.string()
|
|
610
592
|
});
|
|
611
593
|
/**
|
|
612
594
|
* Successfully created. Returns created Chart ID.
|
|
613
595
|
*/
|
|
614
596
|
export const zCreateChartResponse = z.string();
|
|
615
|
-
export const
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
cluster_id: z.string(),
|
|
619
|
-
chart_name: z.string()
|
|
620
|
-
}),
|
|
621
|
-
query: z.optional(z.never())
|
|
597
|
+
export const zDeleteChartPath = z.object({
|
|
598
|
+
cluster_id: z.string(),
|
|
599
|
+
chart_name: z.string()
|
|
622
600
|
});
|
|
623
601
|
/**
|
|
624
602
|
* Successfully deleted.
|
|
625
603
|
*/
|
|
626
604
|
export const zDeleteChartResponse = z.string();
|
|
627
|
-
export const
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
cluster_id: z.string(),
|
|
631
|
-
chart_name: z.string()
|
|
632
|
-
}),
|
|
633
|
-
query: z.optional(z.never())
|
|
605
|
+
export const zGetChartPath = z.object({
|
|
606
|
+
cluster_id: z.string(),
|
|
607
|
+
chart_name: z.string()
|
|
634
608
|
});
|
|
635
609
|
/**
|
|
636
610
|
* Returns a single object containing chart details.
|
|
637
611
|
*/
|
|
638
612
|
export const zGetChartResponse = zChart;
|
|
639
|
-
export const
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
chart_name: z.string()
|
|
644
|
-
}),
|
|
645
|
-
query: z.optional(z.never())
|
|
613
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
614
|
+
export const zUpdateChartPath = z.object({
|
|
615
|
+
cluster_id: z.string(),
|
|
616
|
+
chart_name: z.string()
|
|
646
617
|
});
|
|
647
618
|
/**
|
|
648
619
|
* Successfully updated.
|
|
649
620
|
*/
|
|
650
621
|
export const zUpdateChartResponse = z.string();
|
|
651
|
-
export const
|
|
652
|
-
|
|
653
|
-
path: z.object({
|
|
654
|
-
cluster_id: z.string()
|
|
655
|
-
}),
|
|
656
|
-
query: z.optional(z.never())
|
|
622
|
+
export const zListFleetsPath = z.object({
|
|
623
|
+
cluster_id: z.string()
|
|
657
624
|
});
|
|
658
625
|
/**
|
|
659
626
|
* An array of fleets
|
|
660
627
|
*/
|
|
661
628
|
export const zListFleetsResponse = z.array(zFleet);
|
|
662
|
-
export const
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
cluster_id: z.string()
|
|
666
|
-
}),
|
|
667
|
-
query: z.optional(z.never())
|
|
629
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
630
|
+
export const zCreateFleetPath = z.object({
|
|
631
|
+
cluster_id: z.string()
|
|
668
632
|
});
|
|
669
633
|
/**
|
|
670
634
|
* Successfully created. Returns created Fleet ID.
|
|
671
635
|
*/
|
|
672
636
|
export const zCreateFleetResponse = z.string();
|
|
673
|
-
export const
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
cluster_id: z.string(),
|
|
677
|
-
fleet_name: z.string()
|
|
678
|
-
}),
|
|
679
|
-
query: z.optional(z.never())
|
|
637
|
+
export const zDeleteFleetPath = z.object({
|
|
638
|
+
cluster_id: z.string(),
|
|
639
|
+
fleet_name: z.string()
|
|
680
640
|
});
|
|
681
641
|
/**
|
|
682
642
|
* Successfully deleted.
|
|
683
643
|
*/
|
|
684
644
|
export const zDeleteFleetResponse = z.string();
|
|
685
|
-
export const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
cluster_id: z.string(),
|
|
689
|
-
fleet_name: z.string()
|
|
690
|
-
}),
|
|
691
|
-
query: z.optional(z.never())
|
|
645
|
+
export const zGetFleetPath = z.object({
|
|
646
|
+
cluster_id: z.string(),
|
|
647
|
+
fleet_name: z.string()
|
|
692
648
|
});
|
|
693
649
|
/**
|
|
694
650
|
* Returns a single object containing fleet details.
|
|
695
651
|
*/
|
|
696
652
|
export const zGetFleetResponse = zFleet;
|
|
697
|
-
export const
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
fleet_name: z.string()
|
|
702
|
-
}),
|
|
703
|
-
query: z.optional(z.never())
|
|
653
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
654
|
+
export const zUpdateFleetPath = z.object({
|
|
655
|
+
cluster_id: z.string(),
|
|
656
|
+
fleet_name: z.string()
|
|
704
657
|
});
|
|
705
658
|
/**
|
|
706
659
|
* Successfully updated.
|
|
707
660
|
*/
|
|
708
661
|
export const zUpdateFleetResponse = z.string();
|
|
709
|
-
export const
|
|
710
|
-
|
|
711
|
-
path: z.object({
|
|
712
|
-
cluster_id: z.string()
|
|
713
|
-
}),
|
|
714
|
-
query: z.optional(z.never())
|
|
715
|
-
});
|
|
716
|
-
export const zListClustersData = z.object({
|
|
717
|
-
body: z.optional(z.never()),
|
|
718
|
-
path: z.optional(z.never()),
|
|
719
|
-
query: z.optional(z.never())
|
|
662
|
+
export const zQueryClusterPath = z.object({
|
|
663
|
+
cluster_id: z.string()
|
|
720
664
|
});
|
|
721
665
|
/**
|
|
722
666
|
* An array of clusters
|
|
723
667
|
*/
|
|
724
668
|
export const zListClustersResponse = z.array(zCluster);
|
|
725
|
-
export const
|
|
726
|
-
body: zClusterCreateInput,
|
|
727
|
-
path: z.optional(z.never()),
|
|
728
|
-
query: z.optional(z.never())
|
|
729
|
-
});
|
|
669
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
730
670
|
/**
|
|
731
671
|
* Successfully created. Returns created Cluster ID.
|
|
732
672
|
*/
|
|
733
673
|
export const zCreateClusterResponse = z.string();
|
|
734
|
-
export const
|
|
735
|
-
|
|
736
|
-
path: z.object({
|
|
737
|
-
cluster_id: z.string()
|
|
738
|
-
}),
|
|
739
|
-
query: z.optional(z.never())
|
|
674
|
+
export const zDeleteClusterPath = z.object({
|
|
675
|
+
cluster_id: z.string()
|
|
740
676
|
});
|
|
741
677
|
/**
|
|
742
678
|
* Successfully deleted.
|
|
743
679
|
*/
|
|
744
680
|
export const zDeleteClusterResponse = z.string();
|
|
745
|
-
export const
|
|
746
|
-
|
|
747
|
-
path: z.object({
|
|
748
|
-
cluster_id: z.string()
|
|
749
|
-
}),
|
|
750
|
-
query: z.optional(z.never())
|
|
681
|
+
export const zGetClusterPath = z.object({
|
|
682
|
+
cluster_id: z.string()
|
|
751
683
|
});
|
|
752
684
|
/**
|
|
753
685
|
* Returns a single object containing cluster details.
|
|
754
686
|
*/
|
|
755
687
|
export const zGetClusterResponse = zCluster;
|
|
756
|
-
export const
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
cluster_id: z.string()
|
|
760
|
-
}),
|
|
761
|
-
query: z.optional(z.never())
|
|
688
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
689
|
+
export const zUpdateClusterPath = z.object({
|
|
690
|
+
cluster_id: z.string()
|
|
762
691
|
});
|
|
763
692
|
/**
|
|
764
693
|
* Successfully updated. Returns updated cluster details.
|
|
765
694
|
*/
|
|
766
695
|
export const zUpdateClusterResponse = zCluster;
|
|
767
|
-
export const
|
|
768
|
-
|
|
769
|
-
path: z.object({
|
|
770
|
-
cluster_id: z.string()
|
|
771
|
-
}),
|
|
772
|
-
query: z.optional(z.never())
|
|
696
|
+
export const zGetJoinInformationPath = z.object({
|
|
697
|
+
cluster_id: z.string()
|
|
773
698
|
});
|
|
774
699
|
/**
|
|
775
700
|
* An object of cluster join information
|
|
776
701
|
*/
|
|
777
702
|
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
778
|
-
export const zListInvitesData = z.object({
|
|
779
|
-
body: z.optional(z.never()),
|
|
780
|
-
path: z.optional(z.never()),
|
|
781
|
-
query: z.optional(z.never())
|
|
782
|
-
});
|
|
783
703
|
/**
|
|
784
704
|
* An array of invites
|
|
785
705
|
*/
|
|
786
706
|
export const zListInvitesResponse = z.array(zInvite);
|
|
787
|
-
export const
|
|
788
|
-
|
|
789
|
-
email: z.optional(z.string())
|
|
790
|
-
}),
|
|
791
|
-
path: z.optional(z.never()),
|
|
792
|
-
query: z.optional(z.never())
|
|
707
|
+
export const zCreateInviteBody = z.object({
|
|
708
|
+
email: z.string().optional()
|
|
793
709
|
});
|
|
794
710
|
/**
|
|
795
711
|
* Successfully created. Returns created invite details.
|
|
796
712
|
*/
|
|
797
713
|
export const zCreateInviteResponse = zInvite;
|
|
798
|
-
export const
|
|
799
|
-
|
|
800
|
-
path: z.object({
|
|
801
|
-
code: z.string()
|
|
802
|
-
}),
|
|
803
|
-
query: z.optional(z.never())
|
|
714
|
+
export const zGetInvitePath = z.object({
|
|
715
|
+
code: z.string()
|
|
804
716
|
});
|
|
805
717
|
/**
|
|
806
718
|
* Returns a single object containing invite details.
|
|
807
719
|
*/
|
|
808
720
|
export const zGetInviteResponse = zInvite;
|
|
809
|
-
export const
|
|
810
|
-
|
|
811
|
-
path: z.object({
|
|
812
|
-
email: z.string()
|
|
813
|
-
}),
|
|
814
|
-
query: z.optional(z.never())
|
|
815
|
-
});
|
|
816
|
-
export const zListMarketplaceChartsData = z.object({
|
|
817
|
-
body: z.optional(z.never()),
|
|
818
|
-
path: z.optional(z.never()),
|
|
819
|
-
query: z.optional(z.never())
|
|
721
|
+
export const zDeleteInvitePath = z.object({
|
|
722
|
+
email: z.string()
|
|
820
723
|
});
|
|
821
724
|
/**
|
|
822
725
|
* An array of chart listings in the marketplace.
|
|
823
726
|
*/
|
|
824
727
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
825
|
-
export const
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
listing_id: z.string()
|
|
829
|
-
}),
|
|
830
|
-
query: z.optional(z.never())
|
|
728
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
729
|
+
chart_name: z.string(),
|
|
730
|
+
version_channel: z.string()
|
|
831
731
|
});
|
|
832
732
|
/**
|
|
833
|
-
* Returns an object containing the chart
|
|
733
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
834
734
|
*/
|
|
835
|
-
export const
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
query: z.optional(z.never())
|
|
735
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
736
|
+
/**
|
|
737
|
+
* JSON-RPC 2.0 request payload
|
|
738
|
+
*/
|
|
739
|
+
export const zPostMcpBody = z.object({
|
|
740
|
+
jsonrpc: z.string().optional(),
|
|
741
|
+
method: z.string().optional(),
|
|
742
|
+
id: z.union([
|
|
743
|
+
z.string(),
|
|
744
|
+
z.number()
|
|
745
|
+
]).optional(),
|
|
746
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
848
747
|
});
|
|
849
748
|
/**
|
|
850
749
|
* JSON-RPC 2.0 success or error response
|
|
851
750
|
*/
|
|
852
751
|
export const zPostMcpResponse = z.object({
|
|
853
|
-
jsonrpc: z.
|
|
854
|
-
id: z.
|
|
752
|
+
jsonrpc: z.string().optional(),
|
|
753
|
+
id: z.union([
|
|
855
754
|
z.string(),
|
|
856
755
|
z.number()
|
|
857
|
-
])),
|
|
858
|
-
result: z.
|
|
859
|
-
error: z.
|
|
860
|
-
code: z.
|
|
861
|
-
message: z.
|
|
862
|
-
}))
|
|
863
|
-
});
|
|
864
|
-
export const zGetOrganizationData = z.object({
|
|
865
|
-
body: z.optional(z.never()),
|
|
866
|
-
path: z.optional(z.never()),
|
|
867
|
-
query: z.optional(z.never())
|
|
756
|
+
]).optional(),
|
|
757
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
758
|
+
error: z.object({
|
|
759
|
+
code: z.int().optional(),
|
|
760
|
+
message: z.string().optional()
|
|
761
|
+
}).optional()
|
|
868
762
|
});
|
|
869
763
|
/**
|
|
870
764
|
* Returns a single object containing organization details.
|
|
871
765
|
*/
|
|
872
766
|
export const zGetOrganizationResponse = zOrganization;
|
|
873
|
-
export const
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
767
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
768
|
+
/**
|
|
769
|
+
* List of repositories
|
|
770
|
+
*/
|
|
771
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
772
|
+
export const zListTagsPath = z.object({
|
|
773
|
+
region: z.string(),
|
|
774
|
+
repository: z.string()
|
|
775
|
+
});
|
|
776
|
+
/**
|
|
777
|
+
* Repository with tags
|
|
778
|
+
*/
|
|
779
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
780
|
+
export const zDeleteTagPath = z.object({
|
|
781
|
+
region: z.string(),
|
|
782
|
+
repository: z.string(),
|
|
783
|
+
tag: z.string()
|
|
877
784
|
});
|
|
878
|
-
export const
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
785
|
+
export const zGetTagPath = z.object({
|
|
786
|
+
region: z.string(),
|
|
787
|
+
repository: z.string(),
|
|
788
|
+
tag: z.string()
|
|
882
789
|
});
|
|
790
|
+
/**
|
|
791
|
+
* Tag details
|
|
792
|
+
*/
|
|
793
|
+
export const zGetTagResponse = zRegistryTag;
|
|
883
794
|
/**
|
|
884
795
|
* Returns a list of access token details with masked secrets.
|
|
885
796
|
*/
|
|
886
797
|
export const zListTokensResponse = z.array(zToken);
|
|
887
|
-
export const
|
|
888
|
-
body: zTokenCreateInput,
|
|
889
|
-
path: z.optional(z.never()),
|
|
890
|
-
query: z.optional(z.never())
|
|
891
|
-
});
|
|
798
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
892
799
|
/**
|
|
893
800
|
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
894
801
|
*/
|
|
895
802
|
export const zCreateTokenResponse = zToken;
|
|
896
|
-
export const
|
|
897
|
-
|
|
898
|
-
path: z.object({
|
|
899
|
-
token_id: z.string()
|
|
900
|
-
}),
|
|
901
|
-
query: z.optional(z.never())
|
|
803
|
+
export const zDeleteTokenPath = z.object({
|
|
804
|
+
token_id: z.string()
|
|
902
805
|
});
|
|
903
|
-
export const
|
|
904
|
-
|
|
905
|
-
path: z.object({
|
|
906
|
-
token_id: z.string()
|
|
907
|
-
}),
|
|
908
|
-
query: z.optional(z.never())
|
|
806
|
+
export const zGetTokenPath = z.object({
|
|
807
|
+
token_id: z.string()
|
|
909
808
|
});
|
|
910
809
|
/**
|
|
911
810
|
* Returns access token details with masked secret.
|
|
912
811
|
*/
|
|
913
812
|
export const zGetTokenResponse = zToken;
|
|
914
|
-
export const
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
token_id: z.string()
|
|
918
|
-
}),
|
|
919
|
-
query: z.optional(z.never())
|
|
813
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
814
|
+
export const zUpdateTokenPath = z.object({
|
|
815
|
+
token_id: z.string()
|
|
920
816
|
});
|
|
921
817
|
/**
|
|
922
818
|
* Successfully updated. Returns updated token details with masked secret.
|
|
923
819
|
*/
|
|
924
820
|
export const zUpdateTokenResponse = zToken;
|
|
925
|
-
export const
|
|
926
|
-
|
|
927
|
-
path: z.object({
|
|
928
|
-
token_id: z.string()
|
|
929
|
-
}),
|
|
930
|
-
query: z.optional(z.never())
|
|
821
|
+
export const zRegenerateTokenPath = z.object({
|
|
822
|
+
token_id: z.string()
|
|
931
823
|
});
|
|
932
824
|
/**
|
|
933
825
|
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
934
826
|
*/
|
|
935
827
|
export const zRegenerateTokenResponse = zToken;
|
|
936
|
-
export const
|
|
937
|
-
|
|
938
|
-
path: z.object({
|
|
939
|
-
email: z.string()
|
|
940
|
-
}),
|
|
941
|
-
query: z.optional(z.never())
|
|
828
|
+
export const zListUserOrganizationsPath = z.object({
|
|
829
|
+
email: z.string()
|
|
942
830
|
});
|
|
943
831
|
/**
|
|
944
832
|
* An array of organizations the user belongs to.
|
|
945
833
|
*/
|
|
946
834
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
947
|
-
realm: z.
|
|
948
|
-
displayName: z.
|
|
835
|
+
realm: z.string().optional(),
|
|
836
|
+
displayName: z.string().optional()
|
|
949
837
|
}));
|
|
950
|
-
export const zListUsersData = z.object({
|
|
951
|
-
body: z.optional(z.never()),
|
|
952
|
-
path: z.optional(z.never()),
|
|
953
|
-
query: z.optional(z.never())
|
|
954
|
-
});
|
|
955
838
|
/**
|
|
956
839
|
* An array of users
|
|
957
840
|
*/
|
|
958
841
|
export const zListUsersResponse = z.array(zUser);
|
|
959
|
-
export const
|
|
960
|
-
body: zUserCreateInput,
|
|
961
|
-
path: z.optional(z.never()),
|
|
962
|
-
query: z.optional(z.never())
|
|
963
|
-
});
|
|
842
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
964
843
|
/**
|
|
965
844
|
* Successfully created. Returns created user details.
|
|
966
845
|
*/
|
|
967
846
|
export const zCreateUserResponse = zUser;
|
|
968
|
-
export const
|
|
969
|
-
|
|
970
|
-
path: z.object({
|
|
971
|
-
user_id: z.string()
|
|
972
|
-
}),
|
|
973
|
-
query: z.optional(z.never())
|
|
847
|
+
export const zDeleteUserPath = z.object({
|
|
848
|
+
user_id: z.string()
|
|
974
849
|
});
|
|
975
850
|
/**
|
|
976
851
|
* User profile information
|
|
977
852
|
*/
|
|
978
853
|
export const zDeleteUserResponse = zUser;
|
|
979
|
-
export const
|
|
980
|
-
|
|
981
|
-
path: z.object({
|
|
982
|
-
user_id: z.string()
|
|
983
|
-
}),
|
|
984
|
-
query: z.optional(z.never())
|
|
854
|
+
export const zGetUserPath = z.object({
|
|
855
|
+
user_id: z.string()
|
|
985
856
|
});
|
|
986
857
|
/**
|
|
987
858
|
* User profile information
|
|
988
859
|
*/
|
|
989
860
|
export const zGetUserResponse = zUser;
|
|
990
|
-
export const
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
user_id: z.string()
|
|
994
|
-
}),
|
|
995
|
-
query: z.optional(z.never())
|
|
861
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
862
|
+
export const zUpdateUserPath = z.object({
|
|
863
|
+
user_id: z.string()
|
|
996
864
|
});
|
|
997
865
|
/**
|
|
998
866
|
* Successfully created. Returns created user details.
|