@cloudfleet/sdk 0.0.1-a0f38b2 → 0.0.1-a64863e
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 +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 +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 +380 -557
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +259 -491
- 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,569 +518,349 @@ 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
|
-
|
|
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
|
-
}))
|
|
534
|
+
email: z.email().optional(),
|
|
535
|
+
first_name: z.string().min(1).max(50).optional(),
|
|
536
|
+
last_name: z.string().min(1).max(50).optional(),
|
|
537
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
538
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
539
|
+
});
|
|
540
|
+
export const zGetUsageQuery = z.object({
|
|
541
|
+
granularity: z.enum([
|
|
542
|
+
'hourly',
|
|
543
|
+
'daily',
|
|
544
|
+
'monthly'
|
|
545
|
+
]).optional()
|
|
580
546
|
});
|
|
581
547
|
/**
|
|
582
548
|
* Usage data with facets for filtering
|
|
583
549
|
*/
|
|
584
550
|
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
551
|
/**
|
|
591
552
|
* Redacted payment card information.
|
|
592
553
|
*/
|
|
593
554
|
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
555
|
/**
|
|
600
556
|
* The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
|
|
601
557
|
*
|
|
602
558
|
*/
|
|
603
559
|
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())
|
|
560
|
+
id: z.string().optional()
|
|
610
561
|
});
|
|
611
562
|
/**
|
|
612
563
|
* An array of usage records.
|
|
613
564
|
*/
|
|
614
565
|
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
566
|
/**
|
|
621
567
|
* Returns a single object containing organization contact and billing address details.
|
|
622
568
|
*/
|
|
623
569
|
export const zGetContactResponse = zBillingContact;
|
|
624
|
-
export const
|
|
625
|
-
body: zBillingContact,
|
|
626
|
-
path: z.optional(z.never()),
|
|
627
|
-
query: z.optional(z.never())
|
|
628
|
-
});
|
|
570
|
+
export const zUpdateContactBody = zBillingContact;
|
|
629
571
|
/**
|
|
630
572
|
* Successfully updated. Returns updated organization details.
|
|
631
573
|
*/
|
|
632
574
|
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
575
|
/**
|
|
639
576
|
* An array of the applied promotional credits records.
|
|
640
577
|
*/
|
|
641
578
|
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())
|
|
579
|
+
export const zRedeemCreditsBody = z.object({
|
|
580
|
+
code: z.string().optional()
|
|
648
581
|
});
|
|
649
|
-
export const
|
|
650
|
-
|
|
651
|
-
path: z.object({
|
|
652
|
-
cluster_id: z.string()
|
|
653
|
-
}),
|
|
654
|
-
query: z.optional(z.never())
|
|
582
|
+
export const zListChartsPath = z.object({
|
|
583
|
+
cluster_id: z.string()
|
|
655
584
|
});
|
|
656
585
|
/**
|
|
657
586
|
* An array of charts
|
|
658
587
|
*/
|
|
659
588
|
export const zListChartsResponse = z.array(zChart);
|
|
660
|
-
export const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
cluster_id: z.string()
|
|
664
|
-
}),
|
|
665
|
-
query: z.optional(z.never())
|
|
589
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
590
|
+
export const zCreateChartPath = z.object({
|
|
591
|
+
cluster_id: z.string()
|
|
666
592
|
});
|
|
667
593
|
/**
|
|
668
594
|
* Successfully created. Returns created Chart ID.
|
|
669
595
|
*/
|
|
670
596
|
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())
|
|
597
|
+
export const zDeleteChartPath = z.object({
|
|
598
|
+
cluster_id: z.string(),
|
|
599
|
+
chart_name: z.string()
|
|
678
600
|
});
|
|
679
601
|
/**
|
|
680
602
|
* Successfully deleted.
|
|
681
603
|
*/
|
|
682
604
|
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())
|
|
605
|
+
export const zGetChartPath = z.object({
|
|
606
|
+
cluster_id: z.string(),
|
|
607
|
+
chart_name: z.string()
|
|
690
608
|
});
|
|
691
609
|
/**
|
|
692
610
|
* Returns a single object containing chart details.
|
|
693
611
|
*/
|
|
694
612
|
export const zGetChartResponse = zChart;
|
|
695
|
-
export const
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
chart_name: z.string()
|
|
700
|
-
}),
|
|
701
|
-
query: z.optional(z.never())
|
|
613
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
614
|
+
export const zUpdateChartPath = z.object({
|
|
615
|
+
cluster_id: z.string(),
|
|
616
|
+
chart_name: z.string()
|
|
702
617
|
});
|
|
703
618
|
/**
|
|
704
619
|
* Successfully updated.
|
|
705
620
|
*/
|
|
706
621
|
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())
|
|
622
|
+
export const zListFleetsPath = z.object({
|
|
623
|
+
cluster_id: z.string()
|
|
713
624
|
});
|
|
714
625
|
/**
|
|
715
626
|
* An array of fleets
|
|
716
627
|
*/
|
|
717
628
|
export const zListFleetsResponse = z.array(zFleet);
|
|
718
|
-
export const
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
cluster_id: z.string()
|
|
722
|
-
}),
|
|
723
|
-
query: z.optional(z.never())
|
|
629
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
630
|
+
export const zCreateFleetPath = z.object({
|
|
631
|
+
cluster_id: z.string()
|
|
724
632
|
});
|
|
725
633
|
/**
|
|
726
634
|
* Successfully created. Returns created Fleet ID.
|
|
727
635
|
*/
|
|
728
636
|
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())
|
|
637
|
+
export const zDeleteFleetPath = z.object({
|
|
638
|
+
cluster_id: z.string(),
|
|
639
|
+
fleet_name: z.string()
|
|
736
640
|
});
|
|
737
641
|
/**
|
|
738
642
|
* Successfully deleted.
|
|
739
643
|
*/
|
|
740
644
|
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())
|
|
645
|
+
export const zGetFleetPath = z.object({
|
|
646
|
+
cluster_id: z.string(),
|
|
647
|
+
fleet_name: z.string()
|
|
748
648
|
});
|
|
749
649
|
/**
|
|
750
650
|
* Returns a single object containing fleet details.
|
|
751
651
|
*/
|
|
752
652
|
export const zGetFleetResponse = zFleet;
|
|
753
|
-
export const
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
fleet_name: z.string()
|
|
758
|
-
}),
|
|
759
|
-
query: z.optional(z.never())
|
|
653
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
654
|
+
export const zUpdateFleetPath = z.object({
|
|
655
|
+
cluster_id: z.string(),
|
|
656
|
+
fleet_name: z.string()
|
|
760
657
|
});
|
|
761
658
|
/**
|
|
762
659
|
* Successfully updated.
|
|
763
660
|
*/
|
|
764
661
|
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())
|
|
662
|
+
export const zQueryClusterPath = z.object({
|
|
663
|
+
cluster_id: z.string()
|
|
776
664
|
});
|
|
777
665
|
/**
|
|
778
666
|
* An array of clusters
|
|
779
667
|
*/
|
|
780
668
|
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
|
-
});
|
|
669
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
786
670
|
/**
|
|
787
671
|
* Successfully created. Returns created Cluster ID.
|
|
788
672
|
*/
|
|
789
673
|
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())
|
|
674
|
+
export const zDeleteClusterPath = z.object({
|
|
675
|
+
cluster_id: z.string()
|
|
796
676
|
});
|
|
797
677
|
/**
|
|
798
678
|
* Successfully deleted.
|
|
799
679
|
*/
|
|
800
680
|
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())
|
|
681
|
+
export const zGetClusterPath = z.object({
|
|
682
|
+
cluster_id: z.string()
|
|
807
683
|
});
|
|
808
684
|
/**
|
|
809
685
|
* Returns a single object containing cluster details.
|
|
810
686
|
*/
|
|
811
687
|
export const zGetClusterResponse = zCluster;
|
|
812
|
-
export const
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
cluster_id: z.string()
|
|
816
|
-
}),
|
|
817
|
-
query: z.optional(z.never())
|
|
688
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
689
|
+
export const zUpdateClusterPath = z.object({
|
|
690
|
+
cluster_id: z.string()
|
|
818
691
|
});
|
|
819
692
|
/**
|
|
820
693
|
* Successfully updated. Returns updated cluster details.
|
|
821
694
|
*/
|
|
822
695
|
export const zUpdateClusterResponse = zCluster;
|
|
823
|
-
export const
|
|
824
|
-
|
|
825
|
-
path: z.object({
|
|
826
|
-
cluster_id: z.string()
|
|
827
|
-
}),
|
|
828
|
-
query: z.optional(z.never())
|
|
696
|
+
export const zGetJoinInformationPath = z.object({
|
|
697
|
+
cluster_id: z.string()
|
|
829
698
|
});
|
|
830
699
|
/**
|
|
831
700
|
* An object of cluster join information
|
|
832
701
|
*/
|
|
833
702
|
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
703
|
/**
|
|
840
704
|
* An array of invites
|
|
841
705
|
*/
|
|
842
706
|
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())
|
|
707
|
+
export const zCreateInviteBody = z.object({
|
|
708
|
+
email: z.string().optional()
|
|
849
709
|
});
|
|
850
710
|
/**
|
|
851
711
|
* Successfully created. Returns created invite details.
|
|
852
712
|
*/
|
|
853
713
|
export const zCreateInviteResponse = zInvite;
|
|
854
|
-
export const
|
|
855
|
-
|
|
856
|
-
path: z.object({
|
|
857
|
-
code: z.string()
|
|
858
|
-
}),
|
|
859
|
-
query: z.optional(z.never())
|
|
714
|
+
export const zGetInvitePath = z.object({
|
|
715
|
+
code: z.string()
|
|
860
716
|
});
|
|
861
717
|
/**
|
|
862
718
|
* Returns a single object containing invite details.
|
|
863
719
|
*/
|
|
864
720
|
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())
|
|
721
|
+
export const zDeleteInvitePath = z.object({
|
|
722
|
+
email: z.string()
|
|
876
723
|
});
|
|
877
724
|
/**
|
|
878
725
|
* An array of chart listings in the marketplace.
|
|
879
726
|
*/
|
|
880
727
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
881
|
-
export const
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
chart_name: z.string(),
|
|
885
|
-
version_channel: z.string()
|
|
886
|
-
}),
|
|
887
|
-
query: z.optional(z.never())
|
|
728
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
729
|
+
chart_name: z.string(),
|
|
730
|
+
version_channel: z.string()
|
|
888
731
|
});
|
|
889
732
|
/**
|
|
890
733
|
* Returns an object containing the chart files for the latest matching version.
|
|
891
734
|
*/
|
|
892
735
|
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
query: z.optional(z.never())
|
|
736
|
+
/**
|
|
737
|
+
* JSON-RPC 2.0 request payload
|
|
738
|
+
*/
|
|
739
|
+
export const zPostMcpBody = z.object({
|
|
740
|
+
jsonrpc: z.string().optional(),
|
|
741
|
+
method: z.string().optional(),
|
|
742
|
+
id: z.union([
|
|
743
|
+
z.string(),
|
|
744
|
+
z.number()
|
|
745
|
+
]).optional(),
|
|
746
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
905
747
|
});
|
|
906
748
|
/**
|
|
907
749
|
* JSON-RPC 2.0 success or error response
|
|
908
750
|
*/
|
|
909
751
|
export const zPostMcpResponse = z.object({
|
|
910
|
-
jsonrpc: z.
|
|
911
|
-
id: z.
|
|
752
|
+
jsonrpc: z.string().optional(),
|
|
753
|
+
id: z.union([
|
|
912
754
|
z.string(),
|
|
913
755
|
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())
|
|
756
|
+
]).optional(),
|
|
757
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
758
|
+
error: z.object({
|
|
759
|
+
code: z.int().optional(),
|
|
760
|
+
message: z.string().optional()
|
|
761
|
+
}).optional()
|
|
925
762
|
});
|
|
926
763
|
/**
|
|
927
764
|
* Returns a single object containing organization details.
|
|
928
765
|
*/
|
|
929
766
|
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
|
-
});
|
|
767
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
940
768
|
/**
|
|
941
769
|
* List of repositories
|
|
942
770
|
*/
|
|
943
771
|
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())
|
|
772
|
+
export const zListTagsPath = z.object({
|
|
773
|
+
region: z.string(),
|
|
774
|
+
repository: z.string()
|
|
951
775
|
});
|
|
952
776
|
/**
|
|
953
777
|
* Repository with tags
|
|
954
778
|
*/
|
|
955
779
|
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())
|
|
780
|
+
export const zDeleteTagPath = z.object({
|
|
781
|
+
region: z.string(),
|
|
782
|
+
repository: z.string(),
|
|
783
|
+
tag: z.string()
|
|
784
|
+
});
|
|
785
|
+
export const zGetTagPath = z.object({
|
|
786
|
+
region: z.string(),
|
|
787
|
+
repository: z.string(),
|
|
788
|
+
tag: z.string()
|
|
973
789
|
});
|
|
974
790
|
/**
|
|
975
791
|
* Tag details
|
|
976
792
|
*/
|
|
977
793
|
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
794
|
/**
|
|
984
795
|
* Returns a list of access token details with masked secrets.
|
|
985
796
|
*/
|
|
986
797
|
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
|
-
});
|
|
798
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
992
799
|
/**
|
|
993
800
|
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
994
801
|
*/
|
|
995
802
|
export const zCreateTokenResponse = zToken;
|
|
996
|
-
export const
|
|
997
|
-
|
|
998
|
-
path: z.object({
|
|
999
|
-
token_id: z.string()
|
|
1000
|
-
}),
|
|
1001
|
-
query: z.optional(z.never())
|
|
803
|
+
export const zDeleteTokenPath = z.object({
|
|
804
|
+
token_id: z.string()
|
|
1002
805
|
});
|
|
1003
|
-
export const
|
|
1004
|
-
|
|
1005
|
-
path: z.object({
|
|
1006
|
-
token_id: z.string()
|
|
1007
|
-
}),
|
|
1008
|
-
query: z.optional(z.never())
|
|
806
|
+
export const zGetTokenPath = z.object({
|
|
807
|
+
token_id: z.string()
|
|
1009
808
|
});
|
|
1010
809
|
/**
|
|
1011
810
|
* Returns access token details with masked secret.
|
|
1012
811
|
*/
|
|
1013
812
|
export const zGetTokenResponse = zToken;
|
|
1014
|
-
export const
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
token_id: z.string()
|
|
1018
|
-
}),
|
|
1019
|
-
query: z.optional(z.never())
|
|
813
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
814
|
+
export const zUpdateTokenPath = z.object({
|
|
815
|
+
token_id: z.string()
|
|
1020
816
|
});
|
|
1021
817
|
/**
|
|
1022
818
|
* Successfully updated. Returns updated token details with masked secret.
|
|
1023
819
|
*/
|
|
1024
820
|
export const zUpdateTokenResponse = zToken;
|
|
1025
|
-
export const
|
|
1026
|
-
|
|
1027
|
-
path: z.object({
|
|
1028
|
-
token_id: z.string()
|
|
1029
|
-
}),
|
|
1030
|
-
query: z.optional(z.never())
|
|
821
|
+
export const zRegenerateTokenPath = z.object({
|
|
822
|
+
token_id: z.string()
|
|
1031
823
|
});
|
|
1032
824
|
/**
|
|
1033
825
|
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1034
826
|
*/
|
|
1035
827
|
export const zRegenerateTokenResponse = zToken;
|
|
1036
|
-
export const
|
|
1037
|
-
|
|
1038
|
-
path: z.object({
|
|
1039
|
-
email: z.string()
|
|
1040
|
-
}),
|
|
1041
|
-
query: z.optional(z.never())
|
|
828
|
+
export const zListUserOrganizationsPath = z.object({
|
|
829
|
+
email: z.string()
|
|
1042
830
|
});
|
|
1043
831
|
/**
|
|
1044
832
|
* An array of organizations the user belongs to.
|
|
1045
833
|
*/
|
|
1046
834
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1047
|
-
realm: z.
|
|
1048
|
-
displayName: z.
|
|
835
|
+
realm: z.string().optional(),
|
|
836
|
+
displayName: z.string().optional()
|
|
1049
837
|
}));
|
|
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
838
|
/**
|
|
1056
839
|
* An array of users
|
|
1057
840
|
*/
|
|
1058
841
|
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
|
-
});
|
|
842
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1064
843
|
/**
|
|
1065
844
|
* Successfully created. Returns created user details.
|
|
1066
845
|
*/
|
|
1067
846
|
export const zCreateUserResponse = zUser;
|
|
1068
|
-
export const
|
|
1069
|
-
|
|
1070
|
-
path: z.object({
|
|
1071
|
-
user_id: z.string()
|
|
1072
|
-
}),
|
|
1073
|
-
query: z.optional(z.never())
|
|
847
|
+
export const zDeleteUserPath = z.object({
|
|
848
|
+
user_id: z.string()
|
|
1074
849
|
});
|
|
1075
850
|
/**
|
|
1076
851
|
* User profile information
|
|
1077
852
|
*/
|
|
1078
853
|
export const zDeleteUserResponse = zUser;
|
|
1079
|
-
export const
|
|
1080
|
-
|
|
1081
|
-
path: z.object({
|
|
1082
|
-
user_id: z.string()
|
|
1083
|
-
}),
|
|
1084
|
-
query: z.optional(z.never())
|
|
854
|
+
export const zGetUserPath = z.object({
|
|
855
|
+
user_id: z.string()
|
|
1085
856
|
});
|
|
1086
857
|
/**
|
|
1087
858
|
* User profile information
|
|
1088
859
|
*/
|
|
1089
860
|
export const zGetUserResponse = zUser;
|
|
1090
|
-
export const
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
user_id: z.string()
|
|
1094
|
-
}),
|
|
1095
|
-
query: z.optional(z.never())
|
|
861
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
862
|
+
export const zUpdateUserPath = z.object({
|
|
863
|
+
user_id: z.string()
|
|
1096
864
|
});
|
|
1097
865
|
/**
|
|
1098
866
|
* Successfully created. Returns created user details.
|