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