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