@cloudfleet/sdk 0.8.22 → 0.8.23
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 +34 -4
- 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 +9 -11
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/client.gen.d.ts +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 +12 -4
- 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.map +1 -1
- package/dist/core/utils.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +14 -2
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +565 -101
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +35 -140
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +8 -0
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +4 -1
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +264 -305
- 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,22 +193,19 @@ 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
|
-
'pro'
|
|
202
|
-
]),
|
|
203
|
-
region: z.optional(z.enum([
|
|
196
|
+
tier: z.enum(['basic', 'pro']),
|
|
197
|
+
region: z.enum([
|
|
204
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([
|
|
210
204
|
'1.x.x-cfke.x',
|
|
211
205
|
'1.31.x-cfke.x',
|
|
212
206
|
'1.32.x-cfke.x',
|
|
213
207
|
'1.33.x-cfke.x'
|
|
214
|
-
]))
|
|
208
|
+
]).optional()
|
|
215
209
|
});
|
|
216
210
|
export const zClusterJoinInformation = z.object({
|
|
217
211
|
certificate_authority: z.string(),
|
|
@@ -233,16 +227,13 @@ export const zClusterJoinInformation = z.object({
|
|
|
233
227
|
});
|
|
234
228
|
export const zCluster = z.object({
|
|
235
229
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
236
|
-
tier: z.enum([
|
|
237
|
-
|
|
238
|
-
'pro'
|
|
239
|
-
]),
|
|
240
|
-
region: z.optional(z.enum([
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
231
|
+
region: z.enum([
|
|
241
232
|
'staging-1a',
|
|
242
233
|
'northamerica-central-1',
|
|
243
234
|
'europe-central-1a',
|
|
244
235
|
'northamerica-central-1a'
|
|
245
|
-
])),
|
|
236
|
+
]).optional(),
|
|
246
237
|
id: z.uuid(),
|
|
247
238
|
status: z.enum([
|
|
248
239
|
'active',
|
|
@@ -253,123 +244,118 @@ export const zCluster = z.object({
|
|
|
253
244
|
'failed',
|
|
254
245
|
'updating'
|
|
255
246
|
]),
|
|
256
|
-
endpoint: z.
|
|
247
|
+
endpoint: z.union([
|
|
257
248
|
z.url(),
|
|
258
|
-
z.enum([
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
ready: z.optional(z.boolean()),
|
|
267
|
-
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-]+)*))?$/))
|
|
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()
|
|
268
257
|
});
|
|
269
258
|
export const zClusterUpdateInput = z.object({
|
|
270
|
-
name: z.
|
|
271
|
-
tier: z.enum([
|
|
272
|
-
|
|
273
|
-
'pro'
|
|
274
|
-
]),
|
|
275
|
-
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()
|
|
276
262
|
});
|
|
277
263
|
export const zFleetCreateInput = z.object({
|
|
278
|
-
limits: z.
|
|
264
|
+
limits: z.object({
|
|
279
265
|
cpu: z.number().gte(0)
|
|
280
|
-
})),
|
|
281
|
-
gcp: z.
|
|
282
|
-
enabled: z.
|
|
266
|
+
}).optional(),
|
|
267
|
+
gcp: z.object({
|
|
268
|
+
enabled: z.boolean().optional().default(true),
|
|
283
269
|
project: z.string()
|
|
284
|
-
})),
|
|
285
|
-
hetzner: z.
|
|
286
|
-
enabled: z.
|
|
270
|
+
}).optional(),
|
|
271
|
+
hetzner: z.object({
|
|
272
|
+
enabled: z.boolean().optional().default(true),
|
|
287
273
|
apiKey: z.string()
|
|
288
|
-
})),
|
|
289
|
-
aws: z.
|
|
290
|
-
enabled: z.
|
|
274
|
+
}).optional(),
|
|
275
|
+
aws: z.object({
|
|
276
|
+
enabled: z.boolean().optional().default(true),
|
|
291
277
|
controllerRoleArn: z.string()
|
|
292
|
-
})),
|
|
278
|
+
}).optional(),
|
|
293
279
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
294
280
|
});
|
|
295
281
|
export const zFleet = z.object({
|
|
296
|
-
limits: z.
|
|
282
|
+
limits: z.object({
|
|
297
283
|
cpu: z.number().gte(0)
|
|
298
|
-
})),
|
|
299
|
-
gcp: z.
|
|
300
|
-
enabled: z.
|
|
284
|
+
}).optional(),
|
|
285
|
+
gcp: z.object({
|
|
286
|
+
enabled: z.boolean().optional().default(true),
|
|
301
287
|
project: z.string()
|
|
302
|
-
})),
|
|
303
|
-
hetzner: z.
|
|
304
|
-
enabled: z.
|
|
288
|
+
}).optional(),
|
|
289
|
+
hetzner: z.object({
|
|
290
|
+
enabled: z.boolean().optional().default(true),
|
|
305
291
|
apiKey: z.string()
|
|
306
|
-
})),
|
|
307
|
-
aws: z.
|
|
308
|
-
enabled: z.
|
|
292
|
+
}).optional(),
|
|
293
|
+
aws: z.object({
|
|
294
|
+
enabled: z.boolean().optional().default(true),
|
|
309
295
|
controllerRoleArn: z.string()
|
|
310
|
-
})),
|
|
296
|
+
}).optional(),
|
|
311
297
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
312
298
|
});
|
|
313
299
|
export const zFleetUpdateInput = z.object({
|
|
314
|
-
limits: z.
|
|
300
|
+
limits: z.object({
|
|
315
301
|
cpu: z.number().gte(0)
|
|
316
|
-
})),
|
|
317
|
-
gcp: z.
|
|
318
|
-
enabled: z.
|
|
302
|
+
}).optional(),
|
|
303
|
+
gcp: z.object({
|
|
304
|
+
enabled: z.boolean().optional().default(true),
|
|
319
305
|
project: z.string()
|
|
320
|
-
})),
|
|
321
|
-
hetzner: z.
|
|
322
|
-
enabled: z.
|
|
306
|
+
}).optional(),
|
|
307
|
+
hetzner: z.object({
|
|
308
|
+
enabled: z.boolean().optional().default(true),
|
|
323
309
|
apiKey: z.string()
|
|
324
|
-
})),
|
|
325
|
-
aws: z.
|
|
326
|
-
enabled: z.
|
|
310
|
+
}).optional(),
|
|
311
|
+
aws: z.object({
|
|
312
|
+
enabled: z.boolean().optional().default(true),
|
|
327
313
|
controllerRoleArn: z.string()
|
|
328
|
-
}))
|
|
314
|
+
}).optional()
|
|
329
315
|
});
|
|
330
316
|
export const zInvite = z.object({
|
|
331
|
-
id: z.
|
|
332
|
-
organization_id: z.
|
|
317
|
+
id: z.string().optional(),
|
|
318
|
+
organization_id: z.uuid().optional(),
|
|
333
319
|
date_created: z.iso.datetime(),
|
|
334
|
-
email: z.
|
|
335
|
-
code: z.
|
|
320
|
+
email: z.email().optional(),
|
|
321
|
+
code: z.string().optional()
|
|
336
322
|
});
|
|
337
323
|
export const zInvoice = z.object({
|
|
338
|
-
id: z.
|
|
339
|
-
number: z.
|
|
340
|
-
status: z.
|
|
341
|
-
total: z.
|
|
342
|
-
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(),
|
|
343
329
|
created: z.iso.datetime(),
|
|
344
330
|
period_start: z.iso.datetime(),
|
|
345
331
|
period_end: z.iso.datetime(),
|
|
346
|
-
invoice_pdf: z.
|
|
332
|
+
invoice_pdf: z.string().optional()
|
|
347
333
|
});
|
|
348
334
|
export const zMarketplaceListingFiles = z.object({
|
|
349
|
-
chartYaml: z.
|
|
350
|
-
valuesYaml: z.
|
|
351
|
-
valuesSchemaJson: z.
|
|
335
|
+
chartYaml: z.string().optional(),
|
|
336
|
+
valuesYaml: z.string().optional(),
|
|
337
|
+
valuesSchemaJson: z.string().optional()
|
|
352
338
|
});
|
|
353
339
|
export const zMarketplaceListing = z.object({
|
|
354
340
|
name: z.string(),
|
|
355
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-]+)*))?$/)),
|
|
356
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-]+)*))?$/)),
|
|
357
343
|
latestVersion: z.string(),
|
|
358
|
-
metadata: z.
|
|
344
|
+
metadata: z.object({
|
|
359
345
|
name: z.string(),
|
|
360
346
|
version: z.string(),
|
|
361
|
-
description: z.
|
|
362
|
-
appVersion: z.
|
|
363
|
-
apiVersion: z.
|
|
364
|
-
keywords: z.
|
|
365
|
-
home: z.
|
|
366
|
-
icon: z.
|
|
367
|
-
sources: z.
|
|
368
|
-
maintainers: z.
|
|
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({
|
|
369
355
|
name: z.string(),
|
|
370
|
-
email: z.
|
|
371
|
-
})))
|
|
372
|
-
}))
|
|
356
|
+
email: z.string().optional()
|
|
357
|
+
})).optional()
|
|
358
|
+
}).optional()
|
|
373
359
|
});
|
|
374
360
|
export const zOrganizationCreateInput = z.object({
|
|
375
361
|
email: z.email(),
|
|
@@ -380,7 +366,7 @@ export const zOrganizationCreateInput = z.object({
|
|
|
380
366
|
});
|
|
381
367
|
export const zOrganization = z.object({
|
|
382
368
|
id: z.uuid(),
|
|
383
|
-
name: z.
|
|
369
|
+
name: z.string().min(2).max(120).optional(),
|
|
384
370
|
date_created: z.iso.datetime(),
|
|
385
371
|
quota: z.object({
|
|
386
372
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -395,7 +381,8 @@ export const zOrganization = z.object({
|
|
|
395
381
|
label: z.string()
|
|
396
382
|
})).min(1),
|
|
397
383
|
copilot_user_hourly_tokens: z.int().gte(0),
|
|
398
|
-
copilot_organization_hourly_tokens: z.int().gte(0)
|
|
384
|
+
copilot_organization_hourly_tokens: z.int().gte(0),
|
|
385
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
399
386
|
}),
|
|
400
387
|
status: z.enum([
|
|
401
388
|
'active',
|
|
@@ -406,9 +393,7 @@ export const zOrganization = z.object({
|
|
|
406
393
|
export const zPaymentMethod = z.object({
|
|
407
394
|
id: z.uuid(),
|
|
408
395
|
setup: z.boolean(),
|
|
409
|
-
type: z.enum([
|
|
410
|
-
'card'
|
|
411
|
-
]),
|
|
396
|
+
type: z.enum(['card']),
|
|
412
397
|
last4: z.string(),
|
|
413
398
|
exp_month: z.int().gte(1).lte(12),
|
|
414
399
|
exp_year: z.int().gte(2024),
|
|
@@ -437,7 +422,8 @@ export const zPlatformQuota = z.object({
|
|
|
437
422
|
label: z.string()
|
|
438
423
|
})).min(1),
|
|
439
424
|
copilot_user_hourly_tokens: z.int().gte(0),
|
|
440
|
-
copilot_organization_hourly_tokens: z.int().gte(0)
|
|
425
|
+
copilot_organization_hourly_tokens: z.int().gte(0),
|
|
426
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
441
427
|
});
|
|
442
428
|
export const zRegistryRepository = z.object({
|
|
443
429
|
name: z.string(),
|
|
@@ -451,35 +437,35 @@ export const zRegistryRepositoryWithTags = z.object({
|
|
|
451
437
|
tags: z.array(z.object({
|
|
452
438
|
name: z.string(),
|
|
453
439
|
size: z.number(),
|
|
454
|
-
mediaType: z.
|
|
455
|
-
platforms: z.
|
|
440
|
+
mediaType: z.string().optional(),
|
|
441
|
+
platforms: z.array(z.string()).optional()
|
|
456
442
|
})),
|
|
457
443
|
totalSize: z.number()
|
|
458
444
|
});
|
|
459
445
|
export const zRegistryTag = z.object({
|
|
460
446
|
name: z.string(),
|
|
461
447
|
digest: z.string(),
|
|
462
|
-
mediaType: z.
|
|
463
|
-
config: z.
|
|
448
|
+
mediaType: z.string().optional(),
|
|
449
|
+
config: z.object({
|
|
464
450
|
size: z.number()
|
|
465
|
-
})),
|
|
466
|
-
layers: z.
|
|
467
|
-
digest: z.
|
|
451
|
+
}).optional(),
|
|
452
|
+
layers: z.array(z.object({
|
|
453
|
+
digest: z.string().optional(),
|
|
468
454
|
size: z.number()
|
|
469
|
-
}))),
|
|
470
|
-
manifests: z.
|
|
455
|
+
})).optional(),
|
|
456
|
+
manifests: z.array(z.object({
|
|
471
457
|
digest: z.string(),
|
|
472
|
-
platform: z.
|
|
458
|
+
platform: z.object({
|
|
473
459
|
architecture: z.string(),
|
|
474
460
|
os: z.string(),
|
|
475
|
-
variant: z.
|
|
476
|
-
})),
|
|
477
|
-
layers: z.
|
|
478
|
-
digest: z.
|
|
461
|
+
variant: z.string().optional()
|
|
462
|
+
}).optional(),
|
|
463
|
+
layers: z.array(z.object({
|
|
464
|
+
digest: z.string().optional(),
|
|
479
465
|
size: z.number()
|
|
480
|
-
}))),
|
|
481
|
-
size: z.
|
|
482
|
-
}))),
|
|
466
|
+
})).optional(),
|
|
467
|
+
size: z.number().optional()
|
|
468
|
+
})).optional(),
|
|
483
469
|
size: z.number(),
|
|
484
470
|
region: z.string(),
|
|
485
471
|
repository: z.string(),
|
|
@@ -487,31 +473,22 @@ export const zRegistryTag = z.object({
|
|
|
487
473
|
});
|
|
488
474
|
export const zTokenCreateInput = z.object({
|
|
489
475
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
490
|
-
role: z.enum([
|
|
491
|
-
'Administrator',
|
|
492
|
-
'User'
|
|
493
|
-
])
|
|
476
|
+
role: z.enum(['Administrator', 'User'])
|
|
494
477
|
});
|
|
495
478
|
export const zToken = z.object({
|
|
496
479
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
497
|
-
role: z.enum([
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
]),
|
|
501
|
-
id: z.optional(z.string()),
|
|
502
|
-
secret: z.optional(z.string()),
|
|
480
|
+
role: z.enum(['Administrator', 'User']),
|
|
481
|
+
id: z.string().optional(),
|
|
482
|
+
secret: z.string().optional(),
|
|
503
483
|
date_created: z.iso.datetime()
|
|
504
484
|
});
|
|
505
485
|
export const zTokenUpdateInput = z.object({
|
|
506
|
-
name: z.
|
|
507
|
-
role: z.
|
|
508
|
-
'Administrator',
|
|
509
|
-
'User'
|
|
510
|
-
]))
|
|
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()
|
|
511
488
|
});
|
|
512
489
|
export const zUsageFacets = z.object({
|
|
513
|
-
cluster_id: z.
|
|
514
|
-
product: z.
|
|
490
|
+
cluster_id: z.array(z.string()).optional(),
|
|
491
|
+
product: z.array(z.string()).optional()
|
|
515
492
|
});
|
|
516
493
|
export const zUsageResponse = z.object({
|
|
517
494
|
data: z.array(z.object({
|
|
@@ -523,8 +500,8 @@ export const zUsageResponse = z.object({
|
|
|
523
500
|
total: z.number()
|
|
524
501
|
})),
|
|
525
502
|
facets: z.object({
|
|
526
|
-
cluster_id: z.
|
|
527
|
-
product: z.
|
|
503
|
+
cluster_id: z.array(z.string()).optional(),
|
|
504
|
+
product: z.array(z.string()).optional()
|
|
528
505
|
})
|
|
529
506
|
});
|
|
530
507
|
export const zUsage = z.object({
|
|
@@ -541,92 +518,74 @@ export const zUserCreateInput = z.object({
|
|
|
541
518
|
last_name: z.string().min(1).max(50),
|
|
542
519
|
code: z.string(),
|
|
543
520
|
password: z.string().min(8),
|
|
544
|
-
status: z.
|
|
545
|
-
|
|
546
|
-
'inactive'
|
|
547
|
-
])),
|
|
548
|
-
role: z.optional(z.enum([
|
|
549
|
-
'Administrator',
|
|
550
|
-
'User'
|
|
551
|
-
]))
|
|
521
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
522
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
552
523
|
});
|
|
553
524
|
export const zUser = z.object({
|
|
554
525
|
email: z.email(),
|
|
555
526
|
first_name: z.string().min(1).max(50),
|
|
556
527
|
last_name: z.string().min(1).max(50),
|
|
557
|
-
role: z.enum([
|
|
558
|
-
|
|
559
|
-
'User'
|
|
560
|
-
]),
|
|
561
|
-
status: z.enum([
|
|
562
|
-
'active',
|
|
563
|
-
'inactive'
|
|
564
|
-
]),
|
|
528
|
+
role: z.enum(['Administrator', 'User']),
|
|
529
|
+
status: z.enum(['active', 'inactive']),
|
|
565
530
|
id: z.uuid(),
|
|
566
531
|
date_created: z.iso.datetime()
|
|
567
532
|
});
|
|
568
533
|
export const zUserUpdateInput = z.object({
|
|
569
|
-
email: z.
|
|
570
|
-
first_name: z.
|
|
571
|
-
last_name: z.
|
|
572
|
-
role: z.
|
|
573
|
-
|
|
574
|
-
'User'
|
|
575
|
-
])),
|
|
576
|
-
status: z.optional(z.enum([
|
|
577
|
-
'active',
|
|
578
|
-
'inactive'
|
|
579
|
-
]))
|
|
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()
|
|
580
539
|
});
|
|
581
540
|
export const zGetUsageData = z.object({
|
|
582
|
-
body: z.
|
|
583
|
-
path: z.
|
|
584
|
-
query: z.
|
|
585
|
-
granularity: z.
|
|
541
|
+
body: z.never().optional(),
|
|
542
|
+
path: z.never().optional(),
|
|
543
|
+
query: z.object({
|
|
544
|
+
granularity: z.enum([
|
|
586
545
|
'hourly',
|
|
587
546
|
'daily',
|
|
588
547
|
'monthly'
|
|
589
|
-
]))
|
|
590
|
-
}))
|
|
548
|
+
]).optional()
|
|
549
|
+
}).optional()
|
|
591
550
|
});
|
|
592
551
|
/**
|
|
593
552
|
* Usage data with facets for filtering
|
|
594
553
|
*/
|
|
595
554
|
export const zGetUsageResponse = zUsageResponse;
|
|
596
555
|
export const zGetPaymentMethodData = z.object({
|
|
597
|
-
body: z.
|
|
598
|
-
path: z.
|
|
599
|
-
query: z.
|
|
556
|
+
body: z.never().optional(),
|
|
557
|
+
path: z.never().optional(),
|
|
558
|
+
query: z.never().optional()
|
|
600
559
|
});
|
|
601
560
|
/**
|
|
602
561
|
* Redacted payment card information.
|
|
603
562
|
*/
|
|
604
563
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
605
564
|
export const zGetPaymentMethodSecretData = z.object({
|
|
606
|
-
body: z.
|
|
607
|
-
path: z.
|
|
608
|
-
query: z.
|
|
565
|
+
body: z.never().optional(),
|
|
566
|
+
path: z.never().optional(),
|
|
567
|
+
query: z.never().optional()
|
|
609
568
|
});
|
|
610
569
|
/**
|
|
611
570
|
* 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.
|
|
612
571
|
*
|
|
613
572
|
*/
|
|
614
573
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
615
|
-
id: z.
|
|
574
|
+
id: z.string().optional()
|
|
616
575
|
});
|
|
617
576
|
export const zListInvoicesData = z.object({
|
|
618
|
-
body: z.
|
|
619
|
-
path: z.
|
|
620
|
-
query: z.
|
|
577
|
+
body: z.never().optional(),
|
|
578
|
+
path: z.never().optional(),
|
|
579
|
+
query: z.never().optional()
|
|
621
580
|
});
|
|
622
581
|
/**
|
|
623
582
|
* An array of usage records.
|
|
624
583
|
*/
|
|
625
584
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
626
585
|
export const zGetContactData = z.object({
|
|
627
|
-
body: z.
|
|
628
|
-
path: z.
|
|
629
|
-
query: z.
|
|
586
|
+
body: z.never().optional(),
|
|
587
|
+
path: z.never().optional(),
|
|
588
|
+
query: z.never().optional()
|
|
630
589
|
});
|
|
631
590
|
/**
|
|
632
591
|
* Returns a single object containing organization contact and billing address details.
|
|
@@ -634,17 +593,17 @@ export const zGetContactData = z.object({
|
|
|
634
593
|
export const zGetContactResponse = zBillingContact;
|
|
635
594
|
export const zUpdateContactData = z.object({
|
|
636
595
|
body: zBillingContact,
|
|
637
|
-
path: z.
|
|
638
|
-
query: z.
|
|
596
|
+
path: z.never().optional(),
|
|
597
|
+
query: z.never().optional()
|
|
639
598
|
});
|
|
640
599
|
/**
|
|
641
600
|
* Successfully updated. Returns updated organization details.
|
|
642
601
|
*/
|
|
643
602
|
export const zUpdateContactResponse = zBillingContact;
|
|
644
603
|
export const zGetCreditsData = z.object({
|
|
645
|
-
body: z.
|
|
646
|
-
path: z.
|
|
647
|
-
query: z.
|
|
604
|
+
body: z.never().optional(),
|
|
605
|
+
path: z.never().optional(),
|
|
606
|
+
query: z.never().optional()
|
|
648
607
|
});
|
|
649
608
|
/**
|
|
650
609
|
* An array of the applied promotional credits records.
|
|
@@ -652,17 +611,17 @@ export const zGetCreditsData = z.object({
|
|
|
652
611
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
653
612
|
export const zRedeemCreditsData = z.object({
|
|
654
613
|
body: z.object({
|
|
655
|
-
code: z.
|
|
614
|
+
code: z.string().optional()
|
|
656
615
|
}),
|
|
657
|
-
path: z.
|
|
658
|
-
query: z.
|
|
616
|
+
path: z.never().optional(),
|
|
617
|
+
query: z.never().optional()
|
|
659
618
|
});
|
|
660
619
|
export const zListChartsData = z.object({
|
|
661
|
-
body: z.
|
|
620
|
+
body: z.never().optional(),
|
|
662
621
|
path: z.object({
|
|
663
622
|
cluster_id: z.string()
|
|
664
623
|
}),
|
|
665
|
-
query: z.
|
|
624
|
+
query: z.never().optional()
|
|
666
625
|
});
|
|
667
626
|
/**
|
|
668
627
|
* An array of charts
|
|
@@ -673,31 +632,31 @@ export const zCreateChartData = z.object({
|
|
|
673
632
|
path: z.object({
|
|
674
633
|
cluster_id: z.string()
|
|
675
634
|
}),
|
|
676
|
-
query: z.
|
|
635
|
+
query: z.never().optional()
|
|
677
636
|
});
|
|
678
637
|
/**
|
|
679
638
|
* Successfully created. Returns created Chart ID.
|
|
680
639
|
*/
|
|
681
640
|
export const zCreateChartResponse = z.string();
|
|
682
641
|
export const zDeleteChartData = z.object({
|
|
683
|
-
body: z.
|
|
642
|
+
body: z.never().optional(),
|
|
684
643
|
path: z.object({
|
|
685
644
|
cluster_id: z.string(),
|
|
686
645
|
chart_name: z.string()
|
|
687
646
|
}),
|
|
688
|
-
query: z.
|
|
647
|
+
query: z.never().optional()
|
|
689
648
|
});
|
|
690
649
|
/**
|
|
691
650
|
* Successfully deleted.
|
|
692
651
|
*/
|
|
693
652
|
export const zDeleteChartResponse = z.string();
|
|
694
653
|
export const zGetChartData = z.object({
|
|
695
|
-
body: z.
|
|
654
|
+
body: z.never().optional(),
|
|
696
655
|
path: z.object({
|
|
697
656
|
cluster_id: z.string(),
|
|
698
657
|
chart_name: z.string()
|
|
699
658
|
}),
|
|
700
|
-
query: z.
|
|
659
|
+
query: z.never().optional()
|
|
701
660
|
});
|
|
702
661
|
/**
|
|
703
662
|
* Returns a single object containing chart details.
|
|
@@ -709,18 +668,18 @@ export const zUpdateChartData = z.object({
|
|
|
709
668
|
cluster_id: z.string(),
|
|
710
669
|
chart_name: z.string()
|
|
711
670
|
}),
|
|
712
|
-
query: z.
|
|
671
|
+
query: z.never().optional()
|
|
713
672
|
});
|
|
714
673
|
/**
|
|
715
674
|
* Successfully updated.
|
|
716
675
|
*/
|
|
717
676
|
export const zUpdateChartResponse = z.string();
|
|
718
677
|
export const zListFleetsData = z.object({
|
|
719
|
-
body: z.
|
|
678
|
+
body: z.never().optional(),
|
|
720
679
|
path: z.object({
|
|
721
680
|
cluster_id: z.string()
|
|
722
681
|
}),
|
|
723
|
-
query: z.
|
|
682
|
+
query: z.never().optional()
|
|
724
683
|
});
|
|
725
684
|
/**
|
|
726
685
|
* An array of fleets
|
|
@@ -731,31 +690,31 @@ export const zCreateFleetData = z.object({
|
|
|
731
690
|
path: z.object({
|
|
732
691
|
cluster_id: z.string()
|
|
733
692
|
}),
|
|
734
|
-
query: z.
|
|
693
|
+
query: z.never().optional()
|
|
735
694
|
});
|
|
736
695
|
/**
|
|
737
696
|
* Successfully created. Returns created Fleet ID.
|
|
738
697
|
*/
|
|
739
698
|
export const zCreateFleetResponse = z.string();
|
|
740
699
|
export const zDeleteFleetData = z.object({
|
|
741
|
-
body: z.
|
|
700
|
+
body: z.never().optional(),
|
|
742
701
|
path: z.object({
|
|
743
702
|
cluster_id: z.string(),
|
|
744
703
|
fleet_name: z.string()
|
|
745
704
|
}),
|
|
746
|
-
query: z.
|
|
705
|
+
query: z.never().optional()
|
|
747
706
|
});
|
|
748
707
|
/**
|
|
749
708
|
* Successfully deleted.
|
|
750
709
|
*/
|
|
751
710
|
export const zDeleteFleetResponse = z.string();
|
|
752
711
|
export const zGetFleetData = z.object({
|
|
753
|
-
body: z.
|
|
712
|
+
body: z.never().optional(),
|
|
754
713
|
path: z.object({
|
|
755
714
|
cluster_id: z.string(),
|
|
756
715
|
fleet_name: z.string()
|
|
757
716
|
}),
|
|
758
|
-
query: z.
|
|
717
|
+
query: z.never().optional()
|
|
759
718
|
});
|
|
760
719
|
/**
|
|
761
720
|
* Returns a single object containing fleet details.
|
|
@@ -767,23 +726,23 @@ export const zUpdateFleetData = z.object({
|
|
|
767
726
|
cluster_id: z.string(),
|
|
768
727
|
fleet_name: z.string()
|
|
769
728
|
}),
|
|
770
|
-
query: z.
|
|
729
|
+
query: z.never().optional()
|
|
771
730
|
});
|
|
772
731
|
/**
|
|
773
732
|
* Successfully updated.
|
|
774
733
|
*/
|
|
775
734
|
export const zUpdateFleetResponse = z.string();
|
|
776
735
|
export const zQueryClusterData = z.object({
|
|
777
|
-
body: z.
|
|
736
|
+
body: z.never().optional(),
|
|
778
737
|
path: z.object({
|
|
779
738
|
cluster_id: z.string()
|
|
780
739
|
}),
|
|
781
|
-
query: z.
|
|
740
|
+
query: z.never().optional()
|
|
782
741
|
});
|
|
783
742
|
export const zListClustersData = z.object({
|
|
784
|
-
body: z.
|
|
785
|
-
path: z.
|
|
786
|
-
query: z.
|
|
743
|
+
body: z.never().optional(),
|
|
744
|
+
path: z.never().optional(),
|
|
745
|
+
query: z.never().optional()
|
|
787
746
|
});
|
|
788
747
|
/**
|
|
789
748
|
* An array of clusters
|
|
@@ -791,30 +750,30 @@ export const zListClustersData = z.object({
|
|
|
791
750
|
export const zListClustersResponse = z.array(zCluster);
|
|
792
751
|
export const zCreateClusterData = z.object({
|
|
793
752
|
body: zClusterCreateInput,
|
|
794
|
-
path: z.
|
|
795
|
-
query: z.
|
|
753
|
+
path: z.never().optional(),
|
|
754
|
+
query: z.never().optional()
|
|
796
755
|
});
|
|
797
756
|
/**
|
|
798
757
|
* Successfully created. Returns created Cluster ID.
|
|
799
758
|
*/
|
|
800
759
|
export const zCreateClusterResponse = z.string();
|
|
801
760
|
export const zDeleteClusterData = z.object({
|
|
802
|
-
body: z.
|
|
761
|
+
body: z.never().optional(),
|
|
803
762
|
path: z.object({
|
|
804
763
|
cluster_id: z.string()
|
|
805
764
|
}),
|
|
806
|
-
query: z.
|
|
765
|
+
query: z.never().optional()
|
|
807
766
|
});
|
|
808
767
|
/**
|
|
809
768
|
* Successfully deleted.
|
|
810
769
|
*/
|
|
811
770
|
export const zDeleteClusterResponse = z.string();
|
|
812
771
|
export const zGetClusterData = z.object({
|
|
813
|
-
body: z.
|
|
772
|
+
body: z.never().optional(),
|
|
814
773
|
path: z.object({
|
|
815
774
|
cluster_id: z.string()
|
|
816
775
|
}),
|
|
817
|
-
query: z.
|
|
776
|
+
query: z.never().optional()
|
|
818
777
|
});
|
|
819
778
|
/**
|
|
820
779
|
* Returns a single object containing cluster details.
|
|
@@ -825,27 +784,27 @@ export const zUpdateClusterData = z.object({
|
|
|
825
784
|
path: z.object({
|
|
826
785
|
cluster_id: z.string()
|
|
827
786
|
}),
|
|
828
|
-
query: z.
|
|
787
|
+
query: z.never().optional()
|
|
829
788
|
});
|
|
830
789
|
/**
|
|
831
790
|
* Successfully updated. Returns updated cluster details.
|
|
832
791
|
*/
|
|
833
792
|
export const zUpdateClusterResponse = zCluster;
|
|
834
793
|
export const zGetJoinInformationData = z.object({
|
|
835
|
-
body: z.
|
|
794
|
+
body: z.never().optional(),
|
|
836
795
|
path: z.object({
|
|
837
796
|
cluster_id: z.string()
|
|
838
797
|
}),
|
|
839
|
-
query: z.
|
|
798
|
+
query: z.never().optional()
|
|
840
799
|
});
|
|
841
800
|
/**
|
|
842
801
|
* An object of cluster join information
|
|
843
802
|
*/
|
|
844
803
|
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
845
804
|
export const zListInvitesData = z.object({
|
|
846
|
-
body: z.
|
|
847
|
-
path: z.
|
|
848
|
-
query: z.
|
|
805
|
+
body: z.never().optional(),
|
|
806
|
+
path: z.never().optional(),
|
|
807
|
+
query: z.never().optional()
|
|
849
808
|
});
|
|
850
809
|
/**
|
|
851
810
|
* An array of invites
|
|
@@ -853,49 +812,49 @@ export const zListInvitesData = z.object({
|
|
|
853
812
|
export const zListInvitesResponse = z.array(zInvite);
|
|
854
813
|
export const zCreateInviteData = z.object({
|
|
855
814
|
body: z.object({
|
|
856
|
-
email: z.
|
|
815
|
+
email: z.string().optional()
|
|
857
816
|
}),
|
|
858
|
-
path: z.
|
|
859
|
-
query: z.
|
|
817
|
+
path: z.never().optional(),
|
|
818
|
+
query: z.never().optional()
|
|
860
819
|
});
|
|
861
820
|
/**
|
|
862
821
|
* Successfully created. Returns created invite details.
|
|
863
822
|
*/
|
|
864
823
|
export const zCreateInviteResponse = zInvite;
|
|
865
824
|
export const zGetInviteData = z.object({
|
|
866
|
-
body: z.
|
|
825
|
+
body: z.never().optional(),
|
|
867
826
|
path: z.object({
|
|
868
827
|
code: z.string()
|
|
869
828
|
}),
|
|
870
|
-
query: z.
|
|
829
|
+
query: z.never().optional()
|
|
871
830
|
});
|
|
872
831
|
/**
|
|
873
832
|
* Returns a single object containing invite details.
|
|
874
833
|
*/
|
|
875
834
|
export const zGetInviteResponse = zInvite;
|
|
876
835
|
export const zDeleteInviteData = z.object({
|
|
877
|
-
body: z.
|
|
836
|
+
body: z.never().optional(),
|
|
878
837
|
path: z.object({
|
|
879
838
|
email: z.string()
|
|
880
839
|
}),
|
|
881
|
-
query: z.
|
|
840
|
+
query: z.never().optional()
|
|
882
841
|
});
|
|
883
842
|
export const zListMarketplaceChartsData = z.object({
|
|
884
|
-
body: z.
|
|
885
|
-
path: z.
|
|
886
|
-
query: z.
|
|
843
|
+
body: z.never().optional(),
|
|
844
|
+
path: z.never().optional(),
|
|
845
|
+
query: z.never().optional()
|
|
887
846
|
});
|
|
888
847
|
/**
|
|
889
848
|
* An array of chart listings in the marketplace.
|
|
890
849
|
*/
|
|
891
850
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
892
851
|
export const zGetMarketplaceChartFilesData = z.object({
|
|
893
|
-
body: z.
|
|
852
|
+
body: z.never().optional(),
|
|
894
853
|
path: z.object({
|
|
895
854
|
chart_name: z.string(),
|
|
896
855
|
version_channel: z.string()
|
|
897
856
|
}),
|
|
898
|
-
query: z.
|
|
857
|
+
query: z.never().optional()
|
|
899
858
|
});
|
|
900
859
|
/**
|
|
901
860
|
* Returns an object containing the chart files for the latest matching version.
|
|
@@ -903,36 +862,36 @@ export const zGetMarketplaceChartFilesData = z.object({
|
|
|
903
862
|
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
904
863
|
export const zPostMcpData = z.object({
|
|
905
864
|
body: z.object({
|
|
906
|
-
jsonrpc: z.
|
|
907
|
-
method: z.
|
|
908
|
-
id: z.
|
|
865
|
+
jsonrpc: z.string().optional(),
|
|
866
|
+
method: z.string().optional(),
|
|
867
|
+
id: z.union([
|
|
909
868
|
z.string(),
|
|
910
869
|
z.number()
|
|
911
|
-
])),
|
|
912
|
-
params: z.
|
|
870
|
+
]).optional(),
|
|
871
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
913
872
|
}),
|
|
914
|
-
path: z.
|
|
915
|
-
query: z.
|
|
873
|
+
path: z.never().optional(),
|
|
874
|
+
query: z.never().optional()
|
|
916
875
|
});
|
|
917
876
|
/**
|
|
918
877
|
* JSON-RPC 2.0 success or error response
|
|
919
878
|
*/
|
|
920
879
|
export const zPostMcpResponse = z.object({
|
|
921
|
-
jsonrpc: z.
|
|
922
|
-
id: z.
|
|
880
|
+
jsonrpc: z.string().optional(),
|
|
881
|
+
id: z.union([
|
|
923
882
|
z.string(),
|
|
924
883
|
z.number()
|
|
925
|
-
])),
|
|
926
|
-
result: z.
|
|
927
|
-
error: z.
|
|
928
|
-
code: z.
|
|
929
|
-
message: z.
|
|
930
|
-
}))
|
|
884
|
+
]).optional(),
|
|
885
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
886
|
+
error: z.object({
|
|
887
|
+
code: z.int().optional(),
|
|
888
|
+
message: z.string().optional()
|
|
889
|
+
}).optional()
|
|
931
890
|
});
|
|
932
891
|
export const zGetOrganizationData = z.object({
|
|
933
|
-
body: z.
|
|
934
|
-
path: z.
|
|
935
|
-
query: z.
|
|
892
|
+
body: z.never().optional(),
|
|
893
|
+
path: z.never().optional(),
|
|
894
|
+
query: z.never().optional()
|
|
936
895
|
});
|
|
937
896
|
/**
|
|
938
897
|
* Returns a single object containing organization details.
|
|
@@ -940,56 +899,56 @@ export const zGetOrganizationData = z.object({
|
|
|
940
899
|
export const zGetOrganizationResponse = zOrganization;
|
|
941
900
|
export const zCreateOrganizationData = z.object({
|
|
942
901
|
body: zOrganizationCreateInput,
|
|
943
|
-
path: z.
|
|
944
|
-
query: z.
|
|
902
|
+
path: z.never().optional(),
|
|
903
|
+
query: z.never().optional()
|
|
945
904
|
});
|
|
946
905
|
export const zListRepositoriesData = z.object({
|
|
947
|
-
body: z.
|
|
948
|
-
path: z.
|
|
949
|
-
query: z.
|
|
906
|
+
body: z.never().optional(),
|
|
907
|
+
path: z.never().optional(),
|
|
908
|
+
query: z.never().optional()
|
|
950
909
|
});
|
|
951
910
|
/**
|
|
952
911
|
* List of repositories
|
|
953
912
|
*/
|
|
954
913
|
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
955
914
|
export const zListTagsData = z.object({
|
|
956
|
-
body: z.
|
|
915
|
+
body: z.never().optional(),
|
|
957
916
|
path: z.object({
|
|
958
917
|
region: z.string(),
|
|
959
918
|
repository: z.string()
|
|
960
919
|
}),
|
|
961
|
-
query: z.
|
|
920
|
+
query: z.never().optional()
|
|
962
921
|
});
|
|
963
922
|
/**
|
|
964
923
|
* Repository with tags
|
|
965
924
|
*/
|
|
966
925
|
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
967
926
|
export const zDeleteTagData = z.object({
|
|
968
|
-
body: z.
|
|
927
|
+
body: z.never().optional(),
|
|
969
928
|
path: z.object({
|
|
970
929
|
region: z.string(),
|
|
971
930
|
repository: z.string(),
|
|
972
931
|
tag: z.string()
|
|
973
932
|
}),
|
|
974
|
-
query: z.
|
|
933
|
+
query: z.never().optional()
|
|
975
934
|
});
|
|
976
935
|
export const zGetTagData = z.object({
|
|
977
|
-
body: z.
|
|
936
|
+
body: z.never().optional(),
|
|
978
937
|
path: z.object({
|
|
979
938
|
region: z.string(),
|
|
980
939
|
repository: z.string(),
|
|
981
940
|
tag: z.string()
|
|
982
941
|
}),
|
|
983
|
-
query: z.
|
|
942
|
+
query: z.never().optional()
|
|
984
943
|
});
|
|
985
944
|
/**
|
|
986
945
|
* Tag details
|
|
987
946
|
*/
|
|
988
947
|
export const zGetTagResponse = zRegistryTag;
|
|
989
948
|
export const zListTokensData = z.object({
|
|
990
|
-
body: z.
|
|
991
|
-
path: z.
|
|
992
|
-
query: z.
|
|
949
|
+
body: z.never().optional(),
|
|
950
|
+
path: z.never().optional(),
|
|
951
|
+
query: z.never().optional()
|
|
993
952
|
});
|
|
994
953
|
/**
|
|
995
954
|
* Returns a list of access token details with masked secrets.
|
|
@@ -997,26 +956,26 @@ export const zListTokensData = z.object({
|
|
|
997
956
|
export const zListTokensResponse = z.array(zToken);
|
|
998
957
|
export const zCreateTokenData = z.object({
|
|
999
958
|
body: zTokenCreateInput,
|
|
1000
|
-
path: z.
|
|
1001
|
-
query: z.
|
|
959
|
+
path: z.never().optional(),
|
|
960
|
+
query: z.never().optional()
|
|
1002
961
|
});
|
|
1003
962
|
/**
|
|
1004
963
|
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1005
964
|
*/
|
|
1006
965
|
export const zCreateTokenResponse = zToken;
|
|
1007
966
|
export const zDeleteTokenData = z.object({
|
|
1008
|
-
body: z.
|
|
967
|
+
body: z.never().optional(),
|
|
1009
968
|
path: z.object({
|
|
1010
969
|
token_id: z.string()
|
|
1011
970
|
}),
|
|
1012
|
-
query: z.
|
|
971
|
+
query: z.never().optional()
|
|
1013
972
|
});
|
|
1014
973
|
export const zGetTokenData = z.object({
|
|
1015
|
-
body: z.
|
|
974
|
+
body: z.never().optional(),
|
|
1016
975
|
path: z.object({
|
|
1017
976
|
token_id: z.string()
|
|
1018
977
|
}),
|
|
1019
|
-
query: z.
|
|
978
|
+
query: z.never().optional()
|
|
1020
979
|
});
|
|
1021
980
|
/**
|
|
1022
981
|
* Returns access token details with masked secret.
|
|
@@ -1027,41 +986,41 @@ export const zUpdateTokenData = z.object({
|
|
|
1027
986
|
path: z.object({
|
|
1028
987
|
token_id: z.string()
|
|
1029
988
|
}),
|
|
1030
|
-
query: z.
|
|
989
|
+
query: z.never().optional()
|
|
1031
990
|
});
|
|
1032
991
|
/**
|
|
1033
992
|
* Successfully updated. Returns updated token details with masked secret.
|
|
1034
993
|
*/
|
|
1035
994
|
export const zUpdateTokenResponse = zToken;
|
|
1036
995
|
export const zRegenerateTokenData = z.object({
|
|
1037
|
-
body: z.
|
|
996
|
+
body: z.never().optional(),
|
|
1038
997
|
path: z.object({
|
|
1039
998
|
token_id: z.string()
|
|
1040
999
|
}),
|
|
1041
|
-
query: z.
|
|
1000
|
+
query: z.never().optional()
|
|
1042
1001
|
});
|
|
1043
1002
|
/**
|
|
1044
1003
|
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1045
1004
|
*/
|
|
1046
1005
|
export const zRegenerateTokenResponse = zToken;
|
|
1047
1006
|
export const zListUserOrganizationsData = z.object({
|
|
1048
|
-
body: z.
|
|
1007
|
+
body: z.never().optional(),
|
|
1049
1008
|
path: z.object({
|
|
1050
1009
|
email: z.string()
|
|
1051
1010
|
}),
|
|
1052
|
-
query: z.
|
|
1011
|
+
query: z.never().optional()
|
|
1053
1012
|
});
|
|
1054
1013
|
/**
|
|
1055
1014
|
* An array of organizations the user belongs to.
|
|
1056
1015
|
*/
|
|
1057
1016
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1058
|
-
realm: z.
|
|
1059
|
-
displayName: z.
|
|
1017
|
+
realm: z.string().optional(),
|
|
1018
|
+
displayName: z.string().optional()
|
|
1060
1019
|
}));
|
|
1061
1020
|
export const zListUsersData = z.object({
|
|
1062
|
-
body: z.
|
|
1063
|
-
path: z.
|
|
1064
|
-
query: z.
|
|
1021
|
+
body: z.never().optional(),
|
|
1022
|
+
path: z.never().optional(),
|
|
1023
|
+
query: z.never().optional()
|
|
1065
1024
|
});
|
|
1066
1025
|
/**
|
|
1067
1026
|
* An array of users
|
|
@@ -1069,30 +1028,30 @@ export const zListUsersData = z.object({
|
|
|
1069
1028
|
export const zListUsersResponse = z.array(zUser);
|
|
1070
1029
|
export const zCreateUserData = z.object({
|
|
1071
1030
|
body: zUserCreateInput,
|
|
1072
|
-
path: z.
|
|
1073
|
-
query: z.
|
|
1031
|
+
path: z.never().optional(),
|
|
1032
|
+
query: z.never().optional()
|
|
1074
1033
|
});
|
|
1075
1034
|
/**
|
|
1076
1035
|
* Successfully created. Returns created user details.
|
|
1077
1036
|
*/
|
|
1078
1037
|
export const zCreateUserResponse = zUser;
|
|
1079
1038
|
export const zDeleteUserData = z.object({
|
|
1080
|
-
body: z.
|
|
1039
|
+
body: z.never().optional(),
|
|
1081
1040
|
path: z.object({
|
|
1082
1041
|
user_id: z.string()
|
|
1083
1042
|
}),
|
|
1084
|
-
query: z.
|
|
1043
|
+
query: z.never().optional()
|
|
1085
1044
|
});
|
|
1086
1045
|
/**
|
|
1087
1046
|
* User profile information
|
|
1088
1047
|
*/
|
|
1089
1048
|
export const zDeleteUserResponse = zUser;
|
|
1090
1049
|
export const zGetUserData = z.object({
|
|
1091
|
-
body: z.
|
|
1050
|
+
body: z.never().optional(),
|
|
1092
1051
|
path: z.object({
|
|
1093
1052
|
user_id: z.string()
|
|
1094
1053
|
}),
|
|
1095
|
-
query: z.
|
|
1054
|
+
query: z.never().optional()
|
|
1096
1055
|
});
|
|
1097
1056
|
/**
|
|
1098
1057
|
* User profile information
|
|
@@ -1103,7 +1062,7 @@ export const zUpdateUserData = z.object({
|
|
|
1103
1062
|
path: z.object({
|
|
1104
1063
|
user_id: z.string()
|
|
1105
1064
|
}),
|
|
1106
|
-
query: z.
|
|
1065
|
+
query: z.never().optional()
|
|
1107
1066
|
});
|
|
1108
1067
|
/**
|
|
1109
1068
|
* Successfully created. Returns created user details.
|