@cloudfleet/sdk 0.0.1-d582884 → 0.0.1-d824507
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/@tanstack/react-query.gen.d.ts +1125 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1129 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +113 -98
- 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 +9 -13
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +6 -2
- 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 +1 -1
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/core/serverSentEvents.gen.js +6 -9
- 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 +482 -32
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1108 -125
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +45 -5
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +105 -141
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +8 -8
- package/dist/types.gen.d.ts +411 -21
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +692 -575
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +398 -493
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -5
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().default('staging-1a'),
|
|
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().default('1.x.x-cfke.x')
|
|
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().default('staging-1a'),
|
|
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,58 +433,154 @@ 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(),
|
|
475
468
|
uri: z.string()
|
|
476
469
|
});
|
|
470
|
+
export const zTicketAttachment = z.object({
|
|
471
|
+
id: z.string(),
|
|
472
|
+
filename: z.string(),
|
|
473
|
+
content_type: z.string(),
|
|
474
|
+
size: z.int()
|
|
475
|
+
});
|
|
476
|
+
export const zTicketCreateInput = z.object({
|
|
477
|
+
category: z.enum([
|
|
478
|
+
'billing',
|
|
479
|
+
'technical',
|
|
480
|
+
'general'
|
|
481
|
+
]),
|
|
482
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
483
|
+
properties: z.record(z.string(), z.unknown()).optional()
|
|
484
|
+
});
|
|
485
|
+
export const zTicketListResponse = z.object({
|
|
486
|
+
items: z.array(z.object({
|
|
487
|
+
id: z.string(),
|
|
488
|
+
status: z.enum([
|
|
489
|
+
'waiting_on_us',
|
|
490
|
+
'waiting_on_user',
|
|
491
|
+
'closed'
|
|
492
|
+
]),
|
|
493
|
+
category: z.enum([
|
|
494
|
+
'billing',
|
|
495
|
+
'technical',
|
|
496
|
+
'general'
|
|
497
|
+
]),
|
|
498
|
+
summary: z.string(),
|
|
499
|
+
closed_at: z.iso.datetime().optional(),
|
|
500
|
+
date_created: z.iso.datetime(),
|
|
501
|
+
date_updated: z.iso.datetime(),
|
|
502
|
+
messages: z.array(z.object({
|
|
503
|
+
id: z.string(),
|
|
504
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
505
|
+
body: z.string(),
|
|
506
|
+
author_first_name: z.string().optional(),
|
|
507
|
+
author_last_name: z.string().optional(),
|
|
508
|
+
attachments: z.array(z.object({
|
|
509
|
+
id: z.string(),
|
|
510
|
+
filename: z.string(),
|
|
511
|
+
content_type: z.string(),
|
|
512
|
+
size: z.int()
|
|
513
|
+
})).optional(),
|
|
514
|
+
date_created: z.iso.datetime()
|
|
515
|
+
})).optional()
|
|
516
|
+
}))
|
|
517
|
+
});
|
|
518
|
+
export const zTicketMessageInput = z.object({
|
|
519
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
520
|
+
});
|
|
521
|
+
export const zTicketMessage = z.object({
|
|
522
|
+
id: z.string(),
|
|
523
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
524
|
+
body: z.string(),
|
|
525
|
+
author_first_name: z.string().optional(),
|
|
526
|
+
author_last_name: z.string().optional(),
|
|
527
|
+
attachments: z.array(z.object({
|
|
528
|
+
id: z.string(),
|
|
529
|
+
filename: z.string(),
|
|
530
|
+
content_type: z.string(),
|
|
531
|
+
size: z.int()
|
|
532
|
+
})).optional(),
|
|
533
|
+
date_created: z.iso.datetime()
|
|
534
|
+
});
|
|
535
|
+
export const zTicket = z.object({
|
|
536
|
+
id: z.string(),
|
|
537
|
+
status: z.enum([
|
|
538
|
+
'waiting_on_us',
|
|
539
|
+
'waiting_on_user',
|
|
540
|
+
'closed'
|
|
541
|
+
]),
|
|
542
|
+
category: z.enum([
|
|
543
|
+
'billing',
|
|
544
|
+
'technical',
|
|
545
|
+
'general'
|
|
546
|
+
]),
|
|
547
|
+
summary: z.string(),
|
|
548
|
+
closed_at: z.iso.datetime().optional(),
|
|
549
|
+
date_created: z.iso.datetime(),
|
|
550
|
+
date_updated: z.iso.datetime(),
|
|
551
|
+
messages: z.array(z.object({
|
|
552
|
+
id: z.string(),
|
|
553
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
554
|
+
body: z.string(),
|
|
555
|
+
author_first_name: z.string().optional(),
|
|
556
|
+
author_last_name: z.string().optional(),
|
|
557
|
+
attachments: z.array(z.object({
|
|
558
|
+
id: z.string(),
|
|
559
|
+
filename: z.string(),
|
|
560
|
+
content_type: z.string(),
|
|
561
|
+
size: z.int()
|
|
562
|
+
})).optional(),
|
|
563
|
+
date_created: z.iso.datetime()
|
|
564
|
+
})).optional()
|
|
565
|
+
});
|
|
477
566
|
export const zTokenCreateInput = z.object({
|
|
478
567
|
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
|
-
])
|
|
568
|
+
role: z.enum(['Administrator', 'User'])
|
|
483
569
|
});
|
|
484
570
|
export const zToken = z.object({
|
|
485
571
|
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()),
|
|
572
|
+
role: z.enum(['Administrator', 'User']),
|
|
573
|
+
id: z.string().optional(),
|
|
574
|
+
secret: z.string().optional(),
|
|
492
575
|
date_created: z.iso.datetime()
|
|
493
576
|
});
|
|
494
577
|
export const zTokenUpdateInput = z.object({
|
|
495
|
-
name: z.
|
|
496
|
-
role: z.
|
|
497
|
-
'Administrator',
|
|
498
|
-
'User'
|
|
499
|
-
]))
|
|
578
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
579
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
500
580
|
});
|
|
501
581
|
export const zUsageFacets = z.object({
|
|
502
|
-
cluster_id: z.
|
|
503
|
-
product: z.
|
|
582
|
+
cluster_id: z.array(z.string()).optional(),
|
|
583
|
+
product: z.array(z.string()).optional()
|
|
504
584
|
});
|
|
505
585
|
export const zUsageResponse = z.object({
|
|
506
586
|
data: z.array(z.object({
|
|
@@ -512,8 +592,8 @@ export const zUsageResponse = z.object({
|
|
|
512
592
|
total: z.number()
|
|
513
593
|
})),
|
|
514
594
|
facets: z.object({
|
|
515
|
-
cluster_id: z.
|
|
516
|
-
product: z.
|
|
595
|
+
cluster_id: z.array(z.string()).optional(),
|
|
596
|
+
product: z.array(z.string()).optional()
|
|
517
597
|
})
|
|
518
598
|
});
|
|
519
599
|
export const zUsage = z.object({
|
|
@@ -530,569 +610,394 @@ export const zUserCreateInput = z.object({
|
|
|
530
610
|
last_name: z.string().min(1).max(50),
|
|
531
611
|
code: z.string(),
|
|
532
612
|
password: z.string().min(8),
|
|
533
|
-
status: z.
|
|
534
|
-
|
|
535
|
-
'inactive'
|
|
536
|
-
])),
|
|
537
|
-
role: z.optional(z.enum([
|
|
538
|
-
'Administrator',
|
|
539
|
-
'User'
|
|
540
|
-
]))
|
|
613
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
614
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
541
615
|
});
|
|
542
616
|
export const zUser = z.object({
|
|
543
617
|
email: z.email(),
|
|
544
618
|
first_name: z.string().min(1).max(50),
|
|
545
619
|
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
|
-
]),
|
|
620
|
+
role: z.enum(['Administrator', 'User']),
|
|
621
|
+
status: z.enum(['active', 'inactive']),
|
|
554
622
|
id: z.uuid(),
|
|
555
623
|
date_created: z.iso.datetime()
|
|
556
624
|
});
|
|
557
625
|
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
|
-
}))
|
|
626
|
+
email: z.email().optional(),
|
|
627
|
+
first_name: z.string().min(1).max(50).optional(),
|
|
628
|
+
last_name: z.string().min(1).max(50).optional(),
|
|
629
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
630
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
631
|
+
});
|
|
632
|
+
export const zGetUsageQuery = z.object({
|
|
633
|
+
granularity: z.enum([
|
|
634
|
+
'hourly',
|
|
635
|
+
'daily',
|
|
636
|
+
'monthly'
|
|
637
|
+
]).optional().default('daily')
|
|
580
638
|
});
|
|
581
639
|
/**
|
|
582
640
|
* Usage data with facets for filtering
|
|
583
641
|
*/
|
|
584
642
|
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
643
|
/**
|
|
591
644
|
* Redacted payment card information.
|
|
592
645
|
*/
|
|
593
646
|
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
647
|
/**
|
|
600
648
|
* 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
649
|
*
|
|
602
650
|
*/
|
|
603
651
|
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())
|
|
652
|
+
id: z.string().optional()
|
|
610
653
|
});
|
|
611
654
|
/**
|
|
612
655
|
* An array of usage records.
|
|
613
656
|
*/
|
|
614
657
|
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
658
|
/**
|
|
621
659
|
* Returns a single object containing organization contact and billing address details.
|
|
622
660
|
*/
|
|
623
661
|
export const zGetContactResponse = zBillingContact;
|
|
624
|
-
export const
|
|
625
|
-
body: zBillingContact,
|
|
626
|
-
path: z.optional(z.never()),
|
|
627
|
-
query: z.optional(z.never())
|
|
628
|
-
});
|
|
662
|
+
export const zUpdateContactBody = zBillingContact;
|
|
629
663
|
/**
|
|
630
664
|
* Successfully updated. Returns updated organization details.
|
|
631
665
|
*/
|
|
632
666
|
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
667
|
/**
|
|
639
668
|
* An array of the applied promotional credits records.
|
|
640
669
|
*/
|
|
641
670
|
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())
|
|
671
|
+
export const zRedeemCreditsBody = z.object({
|
|
672
|
+
code: z.string().optional()
|
|
648
673
|
});
|
|
649
|
-
export const
|
|
650
|
-
|
|
651
|
-
path: z.object({
|
|
652
|
-
cluster_id: z.string()
|
|
653
|
-
}),
|
|
654
|
-
query: z.optional(z.never())
|
|
674
|
+
export const zListChartsPath = z.object({
|
|
675
|
+
cluster_id: z.string()
|
|
655
676
|
});
|
|
656
677
|
/**
|
|
657
678
|
* An array of charts
|
|
658
679
|
*/
|
|
659
680
|
export const zListChartsResponse = z.array(zChart);
|
|
660
|
-
export const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
cluster_id: z.string()
|
|
664
|
-
}),
|
|
665
|
-
query: z.optional(z.never())
|
|
681
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
682
|
+
export const zCreateChartPath = z.object({
|
|
683
|
+
cluster_id: z.string()
|
|
666
684
|
});
|
|
667
685
|
/**
|
|
668
686
|
* Successfully created. Returns created Chart ID.
|
|
669
687
|
*/
|
|
670
688
|
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())
|
|
689
|
+
export const zDeleteChartPath = z.object({
|
|
690
|
+
cluster_id: z.string(),
|
|
691
|
+
chart_name: z.string()
|
|
678
692
|
});
|
|
679
693
|
/**
|
|
680
694
|
* Successfully deleted.
|
|
681
695
|
*/
|
|
682
696
|
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())
|
|
697
|
+
export const zGetChartPath = z.object({
|
|
698
|
+
cluster_id: z.string(),
|
|
699
|
+
chart_name: z.string()
|
|
690
700
|
});
|
|
691
701
|
/**
|
|
692
702
|
* Returns a single object containing chart details.
|
|
693
703
|
*/
|
|
694
704
|
export const zGetChartResponse = zChart;
|
|
695
|
-
export const
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
chart_name: z.string()
|
|
700
|
-
}),
|
|
701
|
-
query: z.optional(z.never())
|
|
705
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
706
|
+
export const zUpdateChartPath = z.object({
|
|
707
|
+
cluster_id: z.string(),
|
|
708
|
+
chart_name: z.string()
|
|
702
709
|
});
|
|
703
710
|
/**
|
|
704
711
|
* Successfully updated.
|
|
705
712
|
*/
|
|
706
713
|
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())
|
|
714
|
+
export const zListFleetsPath = z.object({
|
|
715
|
+
cluster_id: z.string()
|
|
713
716
|
});
|
|
714
717
|
/**
|
|
715
718
|
* An array of fleets
|
|
716
719
|
*/
|
|
717
720
|
export const zListFleetsResponse = z.array(zFleet);
|
|
718
|
-
export const
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
cluster_id: z.string()
|
|
722
|
-
}),
|
|
723
|
-
query: z.optional(z.never())
|
|
721
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
722
|
+
export const zCreateFleetPath = z.object({
|
|
723
|
+
cluster_id: z.string()
|
|
724
724
|
});
|
|
725
725
|
/**
|
|
726
726
|
* Successfully created. Returns created Fleet ID.
|
|
727
727
|
*/
|
|
728
728
|
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())
|
|
729
|
+
export const zDeleteFleetPath = z.object({
|
|
730
|
+
cluster_id: z.string(),
|
|
731
|
+
fleet_name: z.string()
|
|
736
732
|
});
|
|
737
733
|
/**
|
|
738
734
|
* Successfully deleted.
|
|
739
735
|
*/
|
|
740
736
|
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())
|
|
737
|
+
export const zGetFleetPath = z.object({
|
|
738
|
+
cluster_id: z.string(),
|
|
739
|
+
fleet_name: z.string()
|
|
748
740
|
});
|
|
749
741
|
/**
|
|
750
742
|
* Returns a single object containing fleet details.
|
|
751
743
|
*/
|
|
752
744
|
export const zGetFleetResponse = zFleet;
|
|
753
|
-
export const
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
fleet_name: z.string()
|
|
758
|
-
}),
|
|
759
|
-
query: z.optional(z.never())
|
|
745
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
746
|
+
export const zUpdateFleetPath = z.object({
|
|
747
|
+
cluster_id: z.string(),
|
|
748
|
+
fleet_name: z.string()
|
|
760
749
|
});
|
|
761
750
|
/**
|
|
762
751
|
* Successfully updated.
|
|
763
752
|
*/
|
|
764
753
|
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())
|
|
754
|
+
export const zQueryClusterPath = z.object({
|
|
755
|
+
cluster_id: z.string()
|
|
776
756
|
});
|
|
777
757
|
/**
|
|
778
758
|
* An array of clusters
|
|
779
759
|
*/
|
|
780
760
|
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
|
-
});
|
|
761
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
786
762
|
/**
|
|
787
763
|
* Successfully created. Returns created Cluster ID.
|
|
788
764
|
*/
|
|
789
765
|
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())
|
|
766
|
+
export const zDeleteClusterPath = z.object({
|
|
767
|
+
cluster_id: z.string()
|
|
796
768
|
});
|
|
797
769
|
/**
|
|
798
770
|
* Successfully deleted.
|
|
799
771
|
*/
|
|
800
772
|
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())
|
|
773
|
+
export const zGetClusterPath = z.object({
|
|
774
|
+
cluster_id: z.string()
|
|
807
775
|
});
|
|
808
776
|
/**
|
|
809
777
|
* Returns a single object containing cluster details.
|
|
810
778
|
*/
|
|
811
779
|
export const zGetClusterResponse = zCluster;
|
|
812
|
-
export const
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
cluster_id: z.string()
|
|
816
|
-
}),
|
|
817
|
-
query: z.optional(z.never())
|
|
780
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
781
|
+
export const zUpdateClusterPath = z.object({
|
|
782
|
+
cluster_id: z.string()
|
|
818
783
|
});
|
|
819
784
|
/**
|
|
820
785
|
* Successfully updated. Returns updated cluster details.
|
|
821
786
|
*/
|
|
822
787
|
export const zUpdateClusterResponse = zCluster;
|
|
823
|
-
export const
|
|
824
|
-
|
|
825
|
-
path: z.object({
|
|
826
|
-
cluster_id: z.string()
|
|
827
|
-
}),
|
|
828
|
-
query: z.optional(z.never())
|
|
788
|
+
export const zGetJoinInformationPath = z.object({
|
|
789
|
+
cluster_id: z.string()
|
|
829
790
|
});
|
|
830
791
|
/**
|
|
831
792
|
* An object of cluster join information
|
|
832
793
|
*/
|
|
833
794
|
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
795
|
/**
|
|
840
796
|
* An array of invites
|
|
841
797
|
*/
|
|
842
798
|
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())
|
|
799
|
+
export const zCreateInviteBody = z.object({
|
|
800
|
+
email: z.string().optional()
|
|
849
801
|
});
|
|
850
802
|
/**
|
|
851
803
|
* Successfully created. Returns created invite details.
|
|
852
804
|
*/
|
|
853
805
|
export const zCreateInviteResponse = zInvite;
|
|
854
|
-
export const
|
|
855
|
-
|
|
856
|
-
path: z.object({
|
|
857
|
-
code: z.string()
|
|
858
|
-
}),
|
|
859
|
-
query: z.optional(z.never())
|
|
806
|
+
export const zGetInvitePath = z.object({
|
|
807
|
+
code: z.string()
|
|
860
808
|
});
|
|
861
809
|
/**
|
|
862
810
|
* Returns a single object containing invite details.
|
|
863
811
|
*/
|
|
864
812
|
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())
|
|
813
|
+
export const zDeleteInvitePath = z.object({
|
|
814
|
+
email: z.string()
|
|
876
815
|
});
|
|
877
816
|
/**
|
|
878
817
|
* An array of chart listings in the marketplace.
|
|
879
818
|
*/
|
|
880
819
|
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())
|
|
820
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
821
|
+
chart_name: z.string(),
|
|
822
|
+
version_channel: z.string()
|
|
888
823
|
});
|
|
889
824
|
/**
|
|
890
|
-
* Returns an object containing the chart files.
|
|
825
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
891
826
|
*/
|
|
892
827
|
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
query: z.optional(z.never())
|
|
828
|
+
/**
|
|
829
|
+
* JSON-RPC 2.0 request payload
|
|
830
|
+
*/
|
|
831
|
+
export const zPostMcpBody = z.object({
|
|
832
|
+
jsonrpc: z.string().optional(),
|
|
833
|
+
method: z.string().optional(),
|
|
834
|
+
id: z.union([
|
|
835
|
+
z.string(),
|
|
836
|
+
z.number()
|
|
837
|
+
]).optional(),
|
|
838
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
905
839
|
});
|
|
906
840
|
/**
|
|
907
841
|
* JSON-RPC 2.0 success or error response
|
|
908
842
|
*/
|
|
909
843
|
export const zPostMcpResponse = z.object({
|
|
910
|
-
jsonrpc: z.
|
|
911
|
-
id: z.
|
|
844
|
+
jsonrpc: z.string().optional(),
|
|
845
|
+
id: z.union([
|
|
912
846
|
z.string(),
|
|
913
847
|
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())
|
|
848
|
+
]).optional(),
|
|
849
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
850
|
+
error: z.object({
|
|
851
|
+
code: z.int().optional(),
|
|
852
|
+
message: z.string().optional()
|
|
853
|
+
}).optional()
|
|
925
854
|
});
|
|
926
855
|
/**
|
|
927
856
|
* Returns a single object containing organization details.
|
|
928
857
|
*/
|
|
929
858
|
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
|
-
});
|
|
859
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
940
860
|
/**
|
|
941
861
|
* List of repositories
|
|
942
862
|
*/
|
|
943
863
|
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())
|
|
864
|
+
export const zListTagsPath = z.object({
|
|
865
|
+
region: z.string(),
|
|
866
|
+
repository: z.string()
|
|
951
867
|
});
|
|
952
868
|
/**
|
|
953
869
|
* Repository with tags
|
|
954
870
|
*/
|
|
955
871
|
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())
|
|
872
|
+
export const zDeleteTagPath = z.object({
|
|
873
|
+
region: z.string(),
|
|
874
|
+
repository: z.string(),
|
|
875
|
+
tag: z.string()
|
|
876
|
+
});
|
|
877
|
+
export const zGetTagPath = z.object({
|
|
878
|
+
region: z.string(),
|
|
879
|
+
repository: z.string(),
|
|
880
|
+
tag: z.string()
|
|
973
881
|
});
|
|
974
882
|
/**
|
|
975
883
|
* Tag details
|
|
976
884
|
*/
|
|
977
885
|
export const zGetTagResponse = zRegistryTag;
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
886
|
+
/**
|
|
887
|
+
* Tickets for the organization.
|
|
888
|
+
*/
|
|
889
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
890
|
+
export const zCreateTicketBody = z.object({
|
|
891
|
+
payload: z.string().optional(),
|
|
892
|
+
attachments: z.array(z.string()).optional()
|
|
893
|
+
});
|
|
894
|
+
/**
|
|
895
|
+
* Ticket created.
|
|
896
|
+
*/
|
|
897
|
+
export const zCreateTicketResponse = zTicket;
|
|
898
|
+
export const zCloseTicketPath = z.object({
|
|
899
|
+
ticket_id: z.string()
|
|
900
|
+
});
|
|
901
|
+
/**
|
|
902
|
+
* Ticket closed.
|
|
903
|
+
*/
|
|
904
|
+
export const zCloseTicketResponse = zTicket;
|
|
905
|
+
export const zGetTicketPath = z.object({
|
|
906
|
+
ticket_id: z.string()
|
|
907
|
+
});
|
|
908
|
+
/**
|
|
909
|
+
* Ticket with messages (internal notes excluded).
|
|
910
|
+
*/
|
|
911
|
+
export const zGetTicketResponse = zTicket;
|
|
912
|
+
export const zReplyTicketBody = z.object({
|
|
913
|
+
payload: z.string().optional(),
|
|
914
|
+
attachments: z.array(z.string()).optional()
|
|
915
|
+
});
|
|
916
|
+
export const zReplyTicketPath = z.object({
|
|
917
|
+
ticket_id: z.string()
|
|
982
918
|
});
|
|
919
|
+
/**
|
|
920
|
+
* Reply appended.
|
|
921
|
+
*/
|
|
922
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
923
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
924
|
+
ticket_id: z.string(),
|
|
925
|
+
attachment_id: z.string()
|
|
926
|
+
});
|
|
927
|
+
/**
|
|
928
|
+
* Attachment binary stream.
|
|
929
|
+
*/
|
|
930
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
983
931
|
/**
|
|
984
932
|
* Returns a list of access token details with masked secrets.
|
|
985
933
|
*/
|
|
986
934
|
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
|
-
});
|
|
935
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
992
936
|
/**
|
|
993
937
|
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
994
938
|
*/
|
|
995
939
|
export const zCreateTokenResponse = zToken;
|
|
996
|
-
export const
|
|
997
|
-
|
|
998
|
-
path: z.object({
|
|
999
|
-
token_id: z.string()
|
|
1000
|
-
}),
|
|
1001
|
-
query: z.optional(z.never())
|
|
940
|
+
export const zDeleteTokenPath = z.object({
|
|
941
|
+
token_id: z.string()
|
|
1002
942
|
});
|
|
1003
|
-
export const
|
|
1004
|
-
|
|
1005
|
-
path: z.object({
|
|
1006
|
-
token_id: z.string()
|
|
1007
|
-
}),
|
|
1008
|
-
query: z.optional(z.never())
|
|
943
|
+
export const zGetTokenPath = z.object({
|
|
944
|
+
token_id: z.string()
|
|
1009
945
|
});
|
|
1010
946
|
/**
|
|
1011
947
|
* Returns access token details with masked secret.
|
|
1012
948
|
*/
|
|
1013
949
|
export const zGetTokenResponse = zToken;
|
|
1014
|
-
export const
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
token_id: z.string()
|
|
1018
|
-
}),
|
|
1019
|
-
query: z.optional(z.never())
|
|
950
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
951
|
+
export const zUpdateTokenPath = z.object({
|
|
952
|
+
token_id: z.string()
|
|
1020
953
|
});
|
|
1021
954
|
/**
|
|
1022
955
|
* Successfully updated. Returns updated token details with masked secret.
|
|
1023
956
|
*/
|
|
1024
957
|
export const zUpdateTokenResponse = zToken;
|
|
1025
|
-
export const
|
|
1026
|
-
|
|
1027
|
-
path: z.object({
|
|
1028
|
-
token_id: z.string()
|
|
1029
|
-
}),
|
|
1030
|
-
query: z.optional(z.never())
|
|
958
|
+
export const zRegenerateTokenPath = z.object({
|
|
959
|
+
token_id: z.string()
|
|
1031
960
|
});
|
|
1032
961
|
/**
|
|
1033
962
|
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1034
963
|
*/
|
|
1035
964
|
export const zRegenerateTokenResponse = zToken;
|
|
1036
|
-
export const
|
|
1037
|
-
|
|
1038
|
-
path: z.object({
|
|
1039
|
-
email: z.string()
|
|
1040
|
-
}),
|
|
1041
|
-
query: z.optional(z.never())
|
|
965
|
+
export const zListUserOrganizationsPath = z.object({
|
|
966
|
+
email: z.string()
|
|
1042
967
|
});
|
|
1043
968
|
/**
|
|
1044
969
|
* An array of organizations the user belongs to.
|
|
1045
970
|
*/
|
|
1046
971
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1047
|
-
realm: z.
|
|
1048
|
-
displayName: z.
|
|
972
|
+
realm: z.string().optional(),
|
|
973
|
+
displayName: z.string().optional()
|
|
1049
974
|
}));
|
|
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
975
|
/**
|
|
1056
976
|
* An array of users
|
|
1057
977
|
*/
|
|
1058
978
|
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
|
-
});
|
|
979
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1064
980
|
/**
|
|
1065
981
|
* Successfully created. Returns created user details.
|
|
1066
982
|
*/
|
|
1067
983
|
export const zCreateUserResponse = zUser;
|
|
1068
|
-
export const
|
|
1069
|
-
|
|
1070
|
-
path: z.object({
|
|
1071
|
-
user_id: z.string()
|
|
1072
|
-
}),
|
|
1073
|
-
query: z.optional(z.never())
|
|
984
|
+
export const zDeleteUserPath = z.object({
|
|
985
|
+
user_id: z.string()
|
|
1074
986
|
});
|
|
1075
987
|
/**
|
|
1076
988
|
* User profile information
|
|
1077
989
|
*/
|
|
1078
990
|
export const zDeleteUserResponse = zUser;
|
|
1079
|
-
export const
|
|
1080
|
-
|
|
1081
|
-
path: z.object({
|
|
1082
|
-
user_id: z.string()
|
|
1083
|
-
}),
|
|
1084
|
-
query: z.optional(z.never())
|
|
991
|
+
export const zGetUserPath = z.object({
|
|
992
|
+
user_id: z.string()
|
|
1085
993
|
});
|
|
1086
994
|
/**
|
|
1087
995
|
* User profile information
|
|
1088
996
|
*/
|
|
1089
997
|
export const zGetUserResponse = zUser;
|
|
1090
|
-
export const
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
user_id: z.string()
|
|
1094
|
-
}),
|
|
1095
|
-
query: z.optional(z.never())
|
|
998
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
999
|
+
export const zUpdateUserPath = z.object({
|
|
1000
|
+
user_id: z.string()
|
|
1096
1001
|
});
|
|
1097
1002
|
/**
|
|
1098
1003
|
* Successfully created. Returns created user details.
|