@cloudfleet/sdk 0.0.1-cb875c6 → 0.0.1-cd7e06c
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 +220 -73
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +763 -159
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +7 -5
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +40 -143
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +153 -41
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +436 -591
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +276 -488
- 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,7 +420,10 @@ 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)
|
|
420
427
|
});
|
|
421
428
|
export const zRegistryRepository = z.object({
|
|
422
429
|
name: z.string(),
|
|
@@ -430,26 +437,35 @@ export const zRegistryRepositoryWithTags = z.object({
|
|
|
430
437
|
tags: z.array(z.object({
|
|
431
438
|
name: z.string(),
|
|
432
439
|
size: z.number(),
|
|
433
|
-
mediaType: z.
|
|
440
|
+
mediaType: z.string().optional(),
|
|
441
|
+
platforms: z.array(z.string()).optional()
|
|
434
442
|
})),
|
|
435
443
|
totalSize: z.number()
|
|
436
444
|
});
|
|
437
445
|
export const zRegistryTag = z.object({
|
|
438
446
|
name: z.string(),
|
|
439
|
-
|
|
440
|
-
|
|
447
|
+
digest: z.string(),
|
|
448
|
+
mediaType: z.string().optional(),
|
|
449
|
+
config: z.object({
|
|
441
450
|
size: z.number()
|
|
442
|
-
})),
|
|
443
|
-
layers: z.
|
|
451
|
+
}).optional(),
|
|
452
|
+
layers: z.array(z.object({
|
|
453
|
+
digest: z.string().optional(),
|
|
444
454
|
size: z.number()
|
|
445
|
-
}))),
|
|
446
|
-
manifests: z.
|
|
455
|
+
})).optional(),
|
|
456
|
+
manifests: z.array(z.object({
|
|
447
457
|
digest: z.string(),
|
|
448
|
-
platform: z.
|
|
458
|
+
platform: z.object({
|
|
449
459
|
architecture: z.string(),
|
|
450
|
-
os: z.string()
|
|
451
|
-
|
|
452
|
-
|
|
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(),
|
|
453
469
|
size: z.number(),
|
|
454
470
|
region: z.string(),
|
|
455
471
|
repository: z.string(),
|
|
@@ -457,31 +473,22 @@ export const zRegistryTag = z.object({
|
|
|
457
473
|
});
|
|
458
474
|
export const zTokenCreateInput = z.object({
|
|
459
475
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
460
|
-
role: z.enum([
|
|
461
|
-
'Administrator',
|
|
462
|
-
'User'
|
|
463
|
-
])
|
|
476
|
+
role: z.enum(['Administrator', 'User'])
|
|
464
477
|
});
|
|
465
478
|
export const zToken = z.object({
|
|
466
479
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
467
|
-
role: z.enum([
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
]),
|
|
471
|
-
id: z.optional(z.string()),
|
|
472
|
-
secret: z.optional(z.string()),
|
|
480
|
+
role: z.enum(['Administrator', 'User']),
|
|
481
|
+
id: z.string().optional(),
|
|
482
|
+
secret: z.string().optional(),
|
|
473
483
|
date_created: z.iso.datetime()
|
|
474
484
|
});
|
|
475
485
|
export const zTokenUpdateInput = z.object({
|
|
476
|
-
name: z.
|
|
477
|
-
role: z.
|
|
478
|
-
'Administrator',
|
|
479
|
-
'User'
|
|
480
|
-
]))
|
|
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()
|
|
481
488
|
});
|
|
482
489
|
export const zUsageFacets = z.object({
|
|
483
|
-
cluster_id: z.
|
|
484
|
-
product: z.
|
|
490
|
+
cluster_id: z.array(z.string()).optional(),
|
|
491
|
+
product: z.array(z.string()).optional()
|
|
485
492
|
});
|
|
486
493
|
export const zUsageResponse = z.object({
|
|
487
494
|
data: z.array(z.object({
|
|
@@ -493,8 +500,8 @@ export const zUsageResponse = z.object({
|
|
|
493
500
|
total: z.number()
|
|
494
501
|
})),
|
|
495
502
|
facets: z.object({
|
|
496
|
-
cluster_id: z.
|
|
497
|
-
product: z.
|
|
503
|
+
cluster_id: z.array(z.string()).optional(),
|
|
504
|
+
product: z.array(z.string()).optional()
|
|
498
505
|
})
|
|
499
506
|
});
|
|
500
507
|
export const zUsage = z.object({
|
|
@@ -511,568 +518,349 @@ export const zUserCreateInput = z.object({
|
|
|
511
518
|
last_name: z.string().min(1).max(50),
|
|
512
519
|
code: z.string(),
|
|
513
520
|
password: z.string().min(8),
|
|
514
|
-
status: z.
|
|
515
|
-
|
|
516
|
-
'inactive'
|
|
517
|
-
])),
|
|
518
|
-
role: z.optional(z.enum([
|
|
519
|
-
'Administrator',
|
|
520
|
-
'User'
|
|
521
|
-
]))
|
|
521
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
522
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
522
523
|
});
|
|
523
524
|
export const zUser = z.object({
|
|
524
525
|
email: z.email(),
|
|
525
526
|
first_name: z.string().min(1).max(50),
|
|
526
527
|
last_name: z.string().min(1).max(50),
|
|
527
|
-
role: z.enum([
|
|
528
|
-
|
|
529
|
-
'User'
|
|
530
|
-
]),
|
|
531
|
-
status: z.enum([
|
|
532
|
-
'active',
|
|
533
|
-
'inactive'
|
|
534
|
-
]),
|
|
528
|
+
role: z.enum(['Administrator', 'User']),
|
|
529
|
+
status: z.enum(['active', 'inactive']),
|
|
535
530
|
id: z.uuid(),
|
|
536
531
|
date_created: z.iso.datetime()
|
|
537
532
|
});
|
|
538
533
|
export const zUserUpdateInput = z.object({
|
|
539
|
-
email: z.
|
|
540
|
-
first_name: z.
|
|
541
|
-
last_name: z.
|
|
542
|
-
role: z.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
'
|
|
548
|
-
'
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
export const zGetUsageData = z.object({
|
|
552
|
-
body: z.optional(z.never()),
|
|
553
|
-
path: z.optional(z.never()),
|
|
554
|
-
query: z.optional(z.object({
|
|
555
|
-
granularity: z.optional(z.enum([
|
|
556
|
-
'hourly',
|
|
557
|
-
'daily',
|
|
558
|
-
'monthly'
|
|
559
|
-
]))
|
|
560
|
-
}))
|
|
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()
|
|
539
|
+
});
|
|
540
|
+
export const zGetUsageQuery = z.object({
|
|
541
|
+
granularity: z.enum([
|
|
542
|
+
'hourly',
|
|
543
|
+
'daily',
|
|
544
|
+
'monthly'
|
|
545
|
+
]).optional()
|
|
561
546
|
});
|
|
562
547
|
/**
|
|
563
548
|
* Usage data with facets for filtering
|
|
564
549
|
*/
|
|
565
550
|
export const zGetUsageResponse = zUsageResponse;
|
|
566
|
-
export const zGetPaymentMethodData = z.object({
|
|
567
|
-
body: z.optional(z.never()),
|
|
568
|
-
path: z.optional(z.never()),
|
|
569
|
-
query: z.optional(z.never())
|
|
570
|
-
});
|
|
571
551
|
/**
|
|
572
552
|
* Redacted payment card information.
|
|
573
553
|
*/
|
|
574
554
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
575
|
-
export const zGetPaymentMethodSecretData = z.object({
|
|
576
|
-
body: z.optional(z.never()),
|
|
577
|
-
path: z.optional(z.never()),
|
|
578
|
-
query: z.optional(z.never())
|
|
579
|
-
});
|
|
580
555
|
/**
|
|
581
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.
|
|
582
557
|
*
|
|
583
558
|
*/
|
|
584
559
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
585
|
-
id: z.
|
|
586
|
-
});
|
|
587
|
-
export const zListInvoicesData = z.object({
|
|
588
|
-
body: z.optional(z.never()),
|
|
589
|
-
path: z.optional(z.never()),
|
|
590
|
-
query: z.optional(z.never())
|
|
560
|
+
id: z.string().optional()
|
|
591
561
|
});
|
|
592
562
|
/**
|
|
593
563
|
* An array of usage records.
|
|
594
564
|
*/
|
|
595
565
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
596
|
-
export const zGetContactData = z.object({
|
|
597
|
-
body: z.optional(z.never()),
|
|
598
|
-
path: z.optional(z.never()),
|
|
599
|
-
query: z.optional(z.never())
|
|
600
|
-
});
|
|
601
566
|
/**
|
|
602
567
|
* Returns a single object containing organization contact and billing address details.
|
|
603
568
|
*/
|
|
604
569
|
export const zGetContactResponse = zBillingContact;
|
|
605
|
-
export const
|
|
606
|
-
body: zBillingContact,
|
|
607
|
-
path: z.optional(z.never()),
|
|
608
|
-
query: z.optional(z.never())
|
|
609
|
-
});
|
|
570
|
+
export const zUpdateContactBody = zBillingContact;
|
|
610
571
|
/**
|
|
611
572
|
* Successfully updated. Returns updated organization details.
|
|
612
573
|
*/
|
|
613
574
|
export const zUpdateContactResponse = zBillingContact;
|
|
614
|
-
export const zGetCreditsData = z.object({
|
|
615
|
-
body: z.optional(z.never()),
|
|
616
|
-
path: z.optional(z.never()),
|
|
617
|
-
query: z.optional(z.never())
|
|
618
|
-
});
|
|
619
575
|
/**
|
|
620
576
|
* An array of the applied promotional credits records.
|
|
621
577
|
*/
|
|
622
578
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
623
|
-
export const
|
|
624
|
-
|
|
625
|
-
code: z.optional(z.string())
|
|
626
|
-
}),
|
|
627
|
-
path: z.optional(z.never()),
|
|
628
|
-
query: z.optional(z.never())
|
|
579
|
+
export const zRedeemCreditsBody = z.object({
|
|
580
|
+
code: z.string().optional()
|
|
629
581
|
});
|
|
630
|
-
export const
|
|
631
|
-
|
|
632
|
-
path: z.object({
|
|
633
|
-
cluster_id: z.string()
|
|
634
|
-
}),
|
|
635
|
-
query: z.optional(z.never())
|
|
582
|
+
export const zListChartsPath = z.object({
|
|
583
|
+
cluster_id: z.string()
|
|
636
584
|
});
|
|
637
585
|
/**
|
|
638
586
|
* An array of charts
|
|
639
587
|
*/
|
|
640
588
|
export const zListChartsResponse = z.array(zChart);
|
|
641
|
-
export const
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
cluster_id: z.string()
|
|
645
|
-
}),
|
|
646
|
-
query: z.optional(z.never())
|
|
589
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
590
|
+
export const zCreateChartPath = z.object({
|
|
591
|
+
cluster_id: z.string()
|
|
647
592
|
});
|
|
648
593
|
/**
|
|
649
594
|
* Successfully created. Returns created Chart ID.
|
|
650
595
|
*/
|
|
651
596
|
export const zCreateChartResponse = z.string();
|
|
652
|
-
export const
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
cluster_id: z.string(),
|
|
656
|
-
chart_name: z.string()
|
|
657
|
-
}),
|
|
658
|
-
query: z.optional(z.never())
|
|
597
|
+
export const zDeleteChartPath = z.object({
|
|
598
|
+
cluster_id: z.string(),
|
|
599
|
+
chart_name: z.string()
|
|
659
600
|
});
|
|
660
601
|
/**
|
|
661
602
|
* Successfully deleted.
|
|
662
603
|
*/
|
|
663
604
|
export const zDeleteChartResponse = z.string();
|
|
664
|
-
export const
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
cluster_id: z.string(),
|
|
668
|
-
chart_name: z.string()
|
|
669
|
-
}),
|
|
670
|
-
query: z.optional(z.never())
|
|
605
|
+
export const zGetChartPath = z.object({
|
|
606
|
+
cluster_id: z.string(),
|
|
607
|
+
chart_name: z.string()
|
|
671
608
|
});
|
|
672
609
|
/**
|
|
673
610
|
* Returns a single object containing chart details.
|
|
674
611
|
*/
|
|
675
612
|
export const zGetChartResponse = zChart;
|
|
676
|
-
export const
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
chart_name: z.string()
|
|
681
|
-
}),
|
|
682
|
-
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()
|
|
683
617
|
});
|
|
684
618
|
/**
|
|
685
619
|
* Successfully updated.
|
|
686
620
|
*/
|
|
687
621
|
export const zUpdateChartResponse = z.string();
|
|
688
|
-
export const
|
|
689
|
-
|
|
690
|
-
path: z.object({
|
|
691
|
-
cluster_id: z.string()
|
|
692
|
-
}),
|
|
693
|
-
query: z.optional(z.never())
|
|
622
|
+
export const zListFleetsPath = z.object({
|
|
623
|
+
cluster_id: z.string()
|
|
694
624
|
});
|
|
695
625
|
/**
|
|
696
626
|
* An array of fleets
|
|
697
627
|
*/
|
|
698
628
|
export const zListFleetsResponse = z.array(zFleet);
|
|
699
|
-
export const
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
cluster_id: z.string()
|
|
703
|
-
}),
|
|
704
|
-
query: z.optional(z.never())
|
|
629
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
630
|
+
export const zCreateFleetPath = z.object({
|
|
631
|
+
cluster_id: z.string()
|
|
705
632
|
});
|
|
706
633
|
/**
|
|
707
634
|
* Successfully created. Returns created Fleet ID.
|
|
708
635
|
*/
|
|
709
636
|
export const zCreateFleetResponse = z.string();
|
|
710
|
-
export const
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
cluster_id: z.string(),
|
|
714
|
-
fleet_name: z.string()
|
|
715
|
-
}),
|
|
716
|
-
query: z.optional(z.never())
|
|
637
|
+
export const zDeleteFleetPath = z.object({
|
|
638
|
+
cluster_id: z.string(),
|
|
639
|
+
fleet_name: z.string()
|
|
717
640
|
});
|
|
718
641
|
/**
|
|
719
642
|
* Successfully deleted.
|
|
720
643
|
*/
|
|
721
644
|
export const zDeleteFleetResponse = z.string();
|
|
722
|
-
export const
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
cluster_id: z.string(),
|
|
726
|
-
fleet_name: z.string()
|
|
727
|
-
}),
|
|
728
|
-
query: z.optional(z.never())
|
|
645
|
+
export const zGetFleetPath = z.object({
|
|
646
|
+
cluster_id: z.string(),
|
|
647
|
+
fleet_name: z.string()
|
|
729
648
|
});
|
|
730
649
|
/**
|
|
731
650
|
* Returns a single object containing fleet details.
|
|
732
651
|
*/
|
|
733
652
|
export const zGetFleetResponse = zFleet;
|
|
734
|
-
export const
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
fleet_name: z.string()
|
|
739
|
-
}),
|
|
740
|
-
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()
|
|
741
657
|
});
|
|
742
658
|
/**
|
|
743
659
|
* Successfully updated.
|
|
744
660
|
*/
|
|
745
661
|
export const zUpdateFleetResponse = z.string();
|
|
746
|
-
export const
|
|
747
|
-
|
|
748
|
-
path: z.object({
|
|
749
|
-
cluster_id: z.string()
|
|
750
|
-
}),
|
|
751
|
-
query: z.optional(z.never())
|
|
752
|
-
});
|
|
753
|
-
export const zListClustersData = z.object({
|
|
754
|
-
body: z.optional(z.never()),
|
|
755
|
-
path: z.optional(z.never()),
|
|
756
|
-
query: z.optional(z.never())
|
|
662
|
+
export const zQueryClusterPath = z.object({
|
|
663
|
+
cluster_id: z.string()
|
|
757
664
|
});
|
|
758
665
|
/**
|
|
759
666
|
* An array of clusters
|
|
760
667
|
*/
|
|
761
668
|
export const zListClustersResponse = z.array(zCluster);
|
|
762
|
-
export const
|
|
763
|
-
body: zClusterCreateInput,
|
|
764
|
-
path: z.optional(z.never()),
|
|
765
|
-
query: z.optional(z.never())
|
|
766
|
-
});
|
|
669
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
767
670
|
/**
|
|
768
671
|
* Successfully created. Returns created Cluster ID.
|
|
769
672
|
*/
|
|
770
673
|
export const zCreateClusterResponse = z.string();
|
|
771
|
-
export const
|
|
772
|
-
|
|
773
|
-
path: z.object({
|
|
774
|
-
cluster_id: z.string()
|
|
775
|
-
}),
|
|
776
|
-
query: z.optional(z.never())
|
|
674
|
+
export const zDeleteClusterPath = z.object({
|
|
675
|
+
cluster_id: z.string()
|
|
777
676
|
});
|
|
778
677
|
/**
|
|
779
678
|
* Successfully deleted.
|
|
780
679
|
*/
|
|
781
680
|
export const zDeleteClusterResponse = z.string();
|
|
782
|
-
export const
|
|
783
|
-
|
|
784
|
-
path: z.object({
|
|
785
|
-
cluster_id: z.string()
|
|
786
|
-
}),
|
|
787
|
-
query: z.optional(z.never())
|
|
681
|
+
export const zGetClusterPath = z.object({
|
|
682
|
+
cluster_id: z.string()
|
|
788
683
|
});
|
|
789
684
|
/**
|
|
790
685
|
* Returns a single object containing cluster details.
|
|
791
686
|
*/
|
|
792
687
|
export const zGetClusterResponse = zCluster;
|
|
793
|
-
export const
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
cluster_id: z.string()
|
|
797
|
-
}),
|
|
798
|
-
query: z.optional(z.never())
|
|
688
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
689
|
+
export const zUpdateClusterPath = z.object({
|
|
690
|
+
cluster_id: z.string()
|
|
799
691
|
});
|
|
800
692
|
/**
|
|
801
693
|
* Successfully updated. Returns updated cluster details.
|
|
802
694
|
*/
|
|
803
695
|
export const zUpdateClusterResponse = zCluster;
|
|
804
|
-
export const
|
|
805
|
-
|
|
806
|
-
path: z.object({
|
|
807
|
-
cluster_id: z.string()
|
|
808
|
-
}),
|
|
809
|
-
query: z.optional(z.never())
|
|
696
|
+
export const zGetJoinInformationPath = z.object({
|
|
697
|
+
cluster_id: z.string()
|
|
810
698
|
});
|
|
811
699
|
/**
|
|
812
700
|
* An object of cluster join information
|
|
813
701
|
*/
|
|
814
702
|
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
815
|
-
export const zListInvitesData = z.object({
|
|
816
|
-
body: z.optional(z.never()),
|
|
817
|
-
path: z.optional(z.never()),
|
|
818
|
-
query: z.optional(z.never())
|
|
819
|
-
});
|
|
820
703
|
/**
|
|
821
704
|
* An array of invites
|
|
822
705
|
*/
|
|
823
706
|
export const zListInvitesResponse = z.array(zInvite);
|
|
824
|
-
export const
|
|
825
|
-
|
|
826
|
-
email: z.optional(z.string())
|
|
827
|
-
}),
|
|
828
|
-
path: z.optional(z.never()),
|
|
829
|
-
query: z.optional(z.never())
|
|
707
|
+
export const zCreateInviteBody = z.object({
|
|
708
|
+
email: z.string().optional()
|
|
830
709
|
});
|
|
831
710
|
/**
|
|
832
711
|
* Successfully created. Returns created invite details.
|
|
833
712
|
*/
|
|
834
713
|
export const zCreateInviteResponse = zInvite;
|
|
835
|
-
export const
|
|
836
|
-
|
|
837
|
-
path: z.object({
|
|
838
|
-
code: z.string()
|
|
839
|
-
}),
|
|
840
|
-
query: z.optional(z.never())
|
|
714
|
+
export const zGetInvitePath = z.object({
|
|
715
|
+
code: z.string()
|
|
841
716
|
});
|
|
842
717
|
/**
|
|
843
718
|
* Returns a single object containing invite details.
|
|
844
719
|
*/
|
|
845
720
|
export const zGetInviteResponse = zInvite;
|
|
846
|
-
export const
|
|
847
|
-
|
|
848
|
-
path: z.object({
|
|
849
|
-
email: z.string()
|
|
850
|
-
}),
|
|
851
|
-
query: z.optional(z.never())
|
|
852
|
-
});
|
|
853
|
-
export const zListMarketplaceChartsData = z.object({
|
|
854
|
-
body: z.optional(z.never()),
|
|
855
|
-
path: z.optional(z.never()),
|
|
856
|
-
query: z.optional(z.never())
|
|
721
|
+
export const zDeleteInvitePath = z.object({
|
|
722
|
+
email: z.string()
|
|
857
723
|
});
|
|
858
724
|
/**
|
|
859
725
|
* An array of chart listings in the marketplace.
|
|
860
726
|
*/
|
|
861
727
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
862
|
-
export const
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
listing_id: z.string()
|
|
866
|
-
}),
|
|
867
|
-
query: z.optional(z.never())
|
|
728
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
729
|
+
chart_name: z.string(),
|
|
730
|
+
version_channel: z.string()
|
|
868
731
|
});
|
|
869
732
|
/**
|
|
870
|
-
* Returns an object containing the chart
|
|
733
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
871
734
|
*/
|
|
872
|
-
export const
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
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()
|
|
885
747
|
});
|
|
886
748
|
/**
|
|
887
749
|
* JSON-RPC 2.0 success or error response
|
|
888
750
|
*/
|
|
889
751
|
export const zPostMcpResponse = z.object({
|
|
890
|
-
jsonrpc: z.
|
|
891
|
-
id: z.
|
|
752
|
+
jsonrpc: z.string().optional(),
|
|
753
|
+
id: z.union([
|
|
892
754
|
z.string(),
|
|
893
755
|
z.number()
|
|
894
|
-
])),
|
|
895
|
-
result: z.
|
|
896
|
-
error: z.
|
|
897
|
-
code: z.
|
|
898
|
-
message: z.
|
|
899
|
-
}))
|
|
900
|
-
});
|
|
901
|
-
export const zGetOrganizationData = z.object({
|
|
902
|
-
body: z.optional(z.never()),
|
|
903
|
-
path: z.optional(z.never()),
|
|
904
|
-
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()
|
|
905
762
|
});
|
|
906
763
|
/**
|
|
907
764
|
* Returns a single object containing organization details.
|
|
908
765
|
*/
|
|
909
766
|
export const zGetOrganizationResponse = zOrganization;
|
|
910
|
-
export const
|
|
911
|
-
body: zOrganizationCreateInput,
|
|
912
|
-
path: z.optional(z.never()),
|
|
913
|
-
query: z.optional(z.never())
|
|
914
|
-
});
|
|
915
|
-
export const zListRepositoriesData = z.object({
|
|
916
|
-
body: z.optional(z.never()),
|
|
917
|
-
path: z.optional(z.never()),
|
|
918
|
-
query: z.optional(z.never())
|
|
919
|
-
});
|
|
767
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
920
768
|
/**
|
|
921
769
|
* List of repositories
|
|
922
770
|
*/
|
|
923
771
|
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
924
|
-
export const
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
region: z.string(),
|
|
928
|
-
repository: z.string()
|
|
929
|
-
}),
|
|
930
|
-
query: z.optional(z.never())
|
|
772
|
+
export const zListTagsPath = z.object({
|
|
773
|
+
region: z.string(),
|
|
774
|
+
repository: z.string()
|
|
931
775
|
});
|
|
932
776
|
/**
|
|
933
777
|
* Repository with tags
|
|
934
778
|
*/
|
|
935
779
|
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
936
|
-
export const
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
export const zGetTagData = z.object({
|
|
946
|
-
body: z.optional(z.never()),
|
|
947
|
-
path: z.object({
|
|
948
|
-
region: z.string(),
|
|
949
|
-
repository: z.string(),
|
|
950
|
-
tag: z.string()
|
|
951
|
-
}),
|
|
952
|
-
query: z.optional(z.never())
|
|
780
|
+
export const zDeleteTagPath = z.object({
|
|
781
|
+
region: z.string(),
|
|
782
|
+
repository: z.string(),
|
|
783
|
+
tag: z.string()
|
|
784
|
+
});
|
|
785
|
+
export const zGetTagPath = z.object({
|
|
786
|
+
region: z.string(),
|
|
787
|
+
repository: z.string(),
|
|
788
|
+
tag: z.string()
|
|
953
789
|
});
|
|
954
790
|
/**
|
|
955
791
|
* Tag details
|
|
956
792
|
*/
|
|
957
793
|
export const zGetTagResponse = zRegistryTag;
|
|
958
|
-
export const zListTokensData = z.object({
|
|
959
|
-
body: z.optional(z.never()),
|
|
960
|
-
path: z.optional(z.never()),
|
|
961
|
-
query: z.optional(z.never())
|
|
962
|
-
});
|
|
963
794
|
/**
|
|
964
795
|
* Returns a list of access token details with masked secrets.
|
|
965
796
|
*/
|
|
966
797
|
export const zListTokensResponse = z.array(zToken);
|
|
967
|
-
export const
|
|
968
|
-
body: zTokenCreateInput,
|
|
969
|
-
path: z.optional(z.never()),
|
|
970
|
-
query: z.optional(z.never())
|
|
971
|
-
});
|
|
798
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
972
799
|
/**
|
|
973
800
|
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
974
801
|
*/
|
|
975
802
|
export const zCreateTokenResponse = zToken;
|
|
976
|
-
export const
|
|
977
|
-
|
|
978
|
-
path: z.object({
|
|
979
|
-
token_id: z.string()
|
|
980
|
-
}),
|
|
981
|
-
query: z.optional(z.never())
|
|
803
|
+
export const zDeleteTokenPath = z.object({
|
|
804
|
+
token_id: z.string()
|
|
982
805
|
});
|
|
983
|
-
export const
|
|
984
|
-
|
|
985
|
-
path: z.object({
|
|
986
|
-
token_id: z.string()
|
|
987
|
-
}),
|
|
988
|
-
query: z.optional(z.never())
|
|
806
|
+
export const zGetTokenPath = z.object({
|
|
807
|
+
token_id: z.string()
|
|
989
808
|
});
|
|
990
809
|
/**
|
|
991
810
|
* Returns access token details with masked secret.
|
|
992
811
|
*/
|
|
993
812
|
export const zGetTokenResponse = zToken;
|
|
994
|
-
export const
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
token_id: z.string()
|
|
998
|
-
}),
|
|
999
|
-
query: z.optional(z.never())
|
|
813
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
814
|
+
export const zUpdateTokenPath = z.object({
|
|
815
|
+
token_id: z.string()
|
|
1000
816
|
});
|
|
1001
817
|
/**
|
|
1002
818
|
* Successfully updated. Returns updated token details with masked secret.
|
|
1003
819
|
*/
|
|
1004
820
|
export const zUpdateTokenResponse = zToken;
|
|
1005
|
-
export const
|
|
1006
|
-
|
|
1007
|
-
path: z.object({
|
|
1008
|
-
token_id: z.string()
|
|
1009
|
-
}),
|
|
1010
|
-
query: z.optional(z.never())
|
|
821
|
+
export const zRegenerateTokenPath = z.object({
|
|
822
|
+
token_id: z.string()
|
|
1011
823
|
});
|
|
1012
824
|
/**
|
|
1013
825
|
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1014
826
|
*/
|
|
1015
827
|
export const zRegenerateTokenResponse = zToken;
|
|
1016
|
-
export const
|
|
1017
|
-
|
|
1018
|
-
path: z.object({
|
|
1019
|
-
email: z.string()
|
|
1020
|
-
}),
|
|
1021
|
-
query: z.optional(z.never())
|
|
828
|
+
export const zListUserOrganizationsPath = z.object({
|
|
829
|
+
email: z.string()
|
|
1022
830
|
});
|
|
1023
831
|
/**
|
|
1024
832
|
* An array of organizations the user belongs to.
|
|
1025
833
|
*/
|
|
1026
834
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1027
|
-
realm: z.
|
|
1028
|
-
displayName: z.
|
|
835
|
+
realm: z.string().optional(),
|
|
836
|
+
displayName: z.string().optional()
|
|
1029
837
|
}));
|
|
1030
|
-
export const zListUsersData = z.object({
|
|
1031
|
-
body: z.optional(z.never()),
|
|
1032
|
-
path: z.optional(z.never()),
|
|
1033
|
-
query: z.optional(z.never())
|
|
1034
|
-
});
|
|
1035
838
|
/**
|
|
1036
839
|
* An array of users
|
|
1037
840
|
*/
|
|
1038
841
|
export const zListUsersResponse = z.array(zUser);
|
|
1039
|
-
export const
|
|
1040
|
-
body: zUserCreateInput,
|
|
1041
|
-
path: z.optional(z.never()),
|
|
1042
|
-
query: z.optional(z.never())
|
|
1043
|
-
});
|
|
842
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1044
843
|
/**
|
|
1045
844
|
* Successfully created. Returns created user details.
|
|
1046
845
|
*/
|
|
1047
846
|
export const zCreateUserResponse = zUser;
|
|
1048
|
-
export const
|
|
1049
|
-
|
|
1050
|
-
path: z.object({
|
|
1051
|
-
user_id: z.string()
|
|
1052
|
-
}),
|
|
1053
|
-
query: z.optional(z.never())
|
|
847
|
+
export const zDeleteUserPath = z.object({
|
|
848
|
+
user_id: z.string()
|
|
1054
849
|
});
|
|
1055
850
|
/**
|
|
1056
851
|
* User profile information
|
|
1057
852
|
*/
|
|
1058
853
|
export const zDeleteUserResponse = zUser;
|
|
1059
|
-
export const
|
|
1060
|
-
|
|
1061
|
-
path: z.object({
|
|
1062
|
-
user_id: z.string()
|
|
1063
|
-
}),
|
|
1064
|
-
query: z.optional(z.never())
|
|
854
|
+
export const zGetUserPath = z.object({
|
|
855
|
+
user_id: z.string()
|
|
1065
856
|
});
|
|
1066
857
|
/**
|
|
1067
858
|
* User profile information
|
|
1068
859
|
*/
|
|
1069
860
|
export const zGetUserResponse = zUser;
|
|
1070
|
-
export const
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
user_id: z.string()
|
|
1074
|
-
}),
|
|
1075
|
-
query: z.optional(z.never())
|
|
861
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
862
|
+
export const zUpdateUserPath = z.object({
|
|
863
|
+
user_id: z.string()
|
|
1076
864
|
});
|
|
1077
865
|
/**
|
|
1078
866
|
* Successfully created. Returns created user details.
|