@cloudfleet/sdk 0.0.1-2791829 → 0.0.1-28564af
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 +960 -131
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1618 -263
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +85 -7
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +158 -127
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +8 -8
- package/dist/types.gen.d.ts +903 -57
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +887 -617
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +491 -457
- 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,21 +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([
|
|
204
|
+
'1.x.x-cfke.x',
|
|
205
|
+
'1.31.x-cfke.x',
|
|
206
|
+
'1.32.x-cfke.x',
|
|
207
|
+
'1.33.x-cfke.x'
|
|
208
|
+
]).optional().default('1.x.x-cfke.x')
|
|
210
209
|
});
|
|
211
210
|
export const zClusterJoinInformation = z.object({
|
|
212
211
|
certificate_authority: z.string(),
|
|
213
212
|
endpoint: z.url(),
|
|
213
|
+
cluster_dns: z.string(),
|
|
214
214
|
auth_key: z.string(),
|
|
215
215
|
bootstrap_token: z.string(),
|
|
216
216
|
versions: z.object({
|
|
@@ -227,17 +227,13 @@ export const zClusterJoinInformation = z.object({
|
|
|
227
227
|
});
|
|
228
228
|
export const zCluster = z.object({
|
|
229
229
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
-
tier: z.enum([
|
|
231
|
-
|
|
232
|
-
'
|
|
233
|
-
]),
|
|
234
|
-
region: z.optional(z.enum([
|
|
235
|
-
'staging',
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
231
|
+
region: z.enum([
|
|
232
|
+
'staging-1a',
|
|
236
233
|
'northamerica-central-1',
|
|
237
234
|
'europe-central-1a',
|
|
238
235
|
'northamerica-central-1a'
|
|
239
|
-
])),
|
|
240
|
-
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-]+)*))?$/)).default('1.x.x-cfke.x'),
|
|
236
|
+
]).optional().default('staging-1a'),
|
|
241
237
|
id: z.uuid(),
|
|
242
238
|
status: z.enum([
|
|
243
239
|
'active',
|
|
@@ -248,111 +244,118 @@ export const zCluster = z.object({
|
|
|
248
244
|
'failed',
|
|
249
245
|
'updating'
|
|
250
246
|
]),
|
|
251
|
-
endpoint: z.
|
|
247
|
+
endpoint: z.union([
|
|
252
248
|
z.url(),
|
|
253
|
-
z.enum([
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
ready: z.optional(z.boolean())
|
|
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()
|
|
262
257
|
});
|
|
263
258
|
export const zClusterUpdateInput = z.object({
|
|
264
|
-
name: z.
|
|
265
|
-
tier: z.enum([
|
|
266
|
-
|
|
267
|
-
'pro'
|
|
268
|
-
]),
|
|
269
|
-
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()
|
|
270
262
|
});
|
|
271
263
|
export const zFleetCreateInput = z.object({
|
|
272
|
-
limits: z.
|
|
264
|
+
limits: z.object({
|
|
273
265
|
cpu: z.number().gte(0)
|
|
274
|
-
})),
|
|
275
|
-
gcp: z.
|
|
276
|
-
enabled: z.
|
|
266
|
+
}).optional(),
|
|
267
|
+
gcp: z.object({
|
|
268
|
+
enabled: z.boolean().optional().default(true),
|
|
277
269
|
project: z.string()
|
|
278
|
-
})),
|
|
279
|
-
hetzner: z.
|
|
280
|
-
enabled: z.
|
|
270
|
+
}).optional(),
|
|
271
|
+
hetzner: z.object({
|
|
272
|
+
enabled: z.boolean().optional().default(true),
|
|
281
273
|
apiKey: z.string()
|
|
282
|
-
})),
|
|
283
|
-
aws: z.
|
|
284
|
-
enabled: z.
|
|
274
|
+
}).optional(),
|
|
275
|
+
aws: z.object({
|
|
276
|
+
enabled: z.boolean().optional().default(true),
|
|
285
277
|
controllerRoleArn: z.string()
|
|
286
|
-
})),
|
|
278
|
+
}).optional(),
|
|
287
279
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
288
280
|
});
|
|
289
281
|
export const zFleet = z.object({
|
|
290
|
-
limits: z.
|
|
282
|
+
limits: z.object({
|
|
291
283
|
cpu: z.number().gte(0)
|
|
292
|
-
})),
|
|
293
|
-
gcp: z.
|
|
294
|
-
enabled: z.
|
|
284
|
+
}).optional(),
|
|
285
|
+
gcp: z.object({
|
|
286
|
+
enabled: z.boolean().optional().default(true),
|
|
295
287
|
project: z.string()
|
|
296
|
-
})),
|
|
297
|
-
hetzner: z.
|
|
298
|
-
enabled: z.
|
|
288
|
+
}).optional(),
|
|
289
|
+
hetzner: z.object({
|
|
290
|
+
enabled: z.boolean().optional().default(true),
|
|
299
291
|
apiKey: z.string()
|
|
300
|
-
})),
|
|
301
|
-
aws: z.
|
|
302
|
-
enabled: z.
|
|
292
|
+
}).optional(),
|
|
293
|
+
aws: z.object({
|
|
294
|
+
enabled: z.boolean().optional().default(true),
|
|
303
295
|
controllerRoleArn: z.string()
|
|
304
|
-
})),
|
|
296
|
+
}).optional(),
|
|
305
297
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
306
298
|
});
|
|
307
299
|
export const zFleetUpdateInput = z.object({
|
|
308
|
-
limits: z.
|
|
300
|
+
limits: z.object({
|
|
309
301
|
cpu: z.number().gte(0)
|
|
310
|
-
})),
|
|
311
|
-
gcp: z.
|
|
312
|
-
enabled: z.
|
|
302
|
+
}).optional(),
|
|
303
|
+
gcp: z.object({
|
|
304
|
+
enabled: z.boolean().optional().default(true),
|
|
313
305
|
project: z.string()
|
|
314
|
-
})),
|
|
315
|
-
hetzner: z.
|
|
316
|
-
enabled: z.
|
|
306
|
+
}).optional(),
|
|
307
|
+
hetzner: z.object({
|
|
308
|
+
enabled: z.boolean().optional().default(true),
|
|
317
309
|
apiKey: z.string()
|
|
318
|
-
})),
|
|
319
|
-
aws: z.
|
|
320
|
-
enabled: z.
|
|
310
|
+
}).optional(),
|
|
311
|
+
aws: z.object({
|
|
312
|
+
enabled: z.boolean().optional().default(true),
|
|
321
313
|
controllerRoleArn: z.string()
|
|
322
|
-
}))
|
|
314
|
+
}).optional()
|
|
323
315
|
});
|
|
324
316
|
export const zInvite = z.object({
|
|
325
|
-
id: z.
|
|
326
|
-
organization_id: z.
|
|
317
|
+
id: z.string().optional(),
|
|
318
|
+
organization_id: z.uuid().optional(),
|
|
327
319
|
date_created: z.iso.datetime(),
|
|
328
|
-
email: z.
|
|
329
|
-
code: z.
|
|
320
|
+
email: z.email().optional(),
|
|
321
|
+
code: z.string().optional()
|
|
330
322
|
});
|
|
331
323
|
export const zInvoice = z.object({
|
|
332
|
-
id: z.
|
|
333
|
-
number: z.
|
|
334
|
-
status: z.
|
|
335
|
-
total: z.
|
|
336
|
-
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(),
|
|
337
329
|
created: z.iso.datetime(),
|
|
338
330
|
period_start: z.iso.datetime(),
|
|
339
331
|
period_end: z.iso.datetime(),
|
|
340
|
-
invoice_pdf: z.
|
|
332
|
+
invoice_pdf: z.string().optional()
|
|
333
|
+
});
|
|
334
|
+
export const zMarketplaceListingFiles = z.object({
|
|
335
|
+
chartYaml: z.string().optional(),
|
|
336
|
+
valuesYaml: z.string().optional(),
|
|
337
|
+
valuesSchemaJson: z.string().optional()
|
|
341
338
|
});
|
|
342
339
|
export const zMarketplaceListing = z.object({
|
|
343
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
344
340
|
name: z.string(),
|
|
345
|
-
|
|
346
|
-
description: z.string(),
|
|
347
|
-
logoUrl: z.string(),
|
|
348
|
-
longDescription: z.string(),
|
|
349
|
-
categories: z.array(z.string()),
|
|
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-]+)*))?$/)),
|
|
350
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-]+)*))?$/)),
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
343
|
+
latestVersion: z.string(),
|
|
344
|
+
metadata: z.object({
|
|
345
|
+
name: z.string(),
|
|
346
|
+
version: z.string(),
|
|
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({
|
|
355
|
+
name: z.string(),
|
|
356
|
+
email: z.string().optional()
|
|
357
|
+
})).optional()
|
|
358
|
+
}).optional()
|
|
356
359
|
});
|
|
357
360
|
export const zOrganizationCreateInput = z.object({
|
|
358
361
|
email: z.email(),
|
|
@@ -363,7 +366,7 @@ export const zOrganizationCreateInput = z.object({
|
|
|
363
366
|
});
|
|
364
367
|
export const zOrganization = z.object({
|
|
365
368
|
id: z.uuid(),
|
|
366
|
-
name: z.
|
|
369
|
+
name: z.string().min(2).max(120).optional(),
|
|
367
370
|
date_created: z.iso.datetime(),
|
|
368
371
|
quota: z.object({
|
|
369
372
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -376,7 +379,8 @@ export const zOrganization = z.object({
|
|
|
376
379
|
versions: z.array(z.object({
|
|
377
380
|
id: z.string(),
|
|
378
381
|
label: z.string()
|
|
379
|
-
})).min(1)
|
|
382
|
+
})).min(1),
|
|
383
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
380
384
|
}),
|
|
381
385
|
status: z.enum([
|
|
382
386
|
'active',
|
|
@@ -387,9 +391,7 @@ export const zOrganization = z.object({
|
|
|
387
391
|
export const zPaymentMethod = z.object({
|
|
388
392
|
id: z.uuid(),
|
|
389
393
|
setup: z.boolean(),
|
|
390
|
-
type: z.enum([
|
|
391
|
-
'card'
|
|
392
|
-
]),
|
|
394
|
+
type: z.enum(['card']),
|
|
393
395
|
last4: z.string(),
|
|
394
396
|
exp_month: z.int().gte(1).lte(12),
|
|
395
397
|
exp_year: z.int().gte(2024),
|
|
@@ -405,73 +407,202 @@ export const zPaymentMethod = z.object({
|
|
|
405
407
|
'unknown'
|
|
406
408
|
])
|
|
407
409
|
});
|
|
410
|
+
export const zPlatformQuota = z.object({
|
|
411
|
+
basic_clusters_max: z.int().gte(0),
|
|
412
|
+
basic_clusters_available: z.int(),
|
|
413
|
+
pro_clusters_max: z.int().gte(0),
|
|
414
|
+
pro_clusters_available: z.int(),
|
|
415
|
+
fleets_max: z.int().gte(0),
|
|
416
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
417
|
+
regions: z.array(z.string()).min(1),
|
|
418
|
+
versions: z.array(z.object({
|
|
419
|
+
id: z.string(),
|
|
420
|
+
label: z.string()
|
|
421
|
+
})).min(1),
|
|
422
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
423
|
+
});
|
|
424
|
+
export const zRegistryRepository = z.object({
|
|
425
|
+
name: z.string(),
|
|
426
|
+
region: z.string(),
|
|
427
|
+
uri: z.string()
|
|
428
|
+
});
|
|
429
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
430
|
+
name: z.string(),
|
|
431
|
+
region: z.string(),
|
|
432
|
+
uri: z.string(),
|
|
433
|
+
tags: z.array(z.object({
|
|
434
|
+
name: z.string(),
|
|
435
|
+
size: z.number(),
|
|
436
|
+
mediaType: z.string().optional(),
|
|
437
|
+
platforms: z.array(z.string()).optional()
|
|
438
|
+
})),
|
|
439
|
+
totalSize: z.number()
|
|
440
|
+
});
|
|
441
|
+
export const zRegistryTag = z.object({
|
|
442
|
+
name: z.string(),
|
|
443
|
+
digest: z.string(),
|
|
444
|
+
mediaType: z.string().optional(),
|
|
445
|
+
config: z.object({
|
|
446
|
+
size: z.number()
|
|
447
|
+
}).optional(),
|
|
448
|
+
layers: z.array(z.object({
|
|
449
|
+
digest: z.string().optional(),
|
|
450
|
+
size: z.number()
|
|
451
|
+
})).optional(),
|
|
452
|
+
manifests: z.array(z.object({
|
|
453
|
+
digest: z.string(),
|
|
454
|
+
platform: z.object({
|
|
455
|
+
architecture: z.string(),
|
|
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(),
|
|
465
|
+
size: z.number(),
|
|
466
|
+
region: z.string(),
|
|
467
|
+
repository: z.string(),
|
|
468
|
+
uri: z.string()
|
|
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
|
+
});
|
|
408
566
|
export const zTokenCreateInput = z.object({
|
|
409
567
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
410
|
-
role: z.enum([
|
|
411
|
-
'Administrator',
|
|
412
|
-
'User'
|
|
413
|
-
])
|
|
568
|
+
role: z.enum(['Administrator', 'User'])
|
|
414
569
|
});
|
|
415
570
|
export const zToken = z.object({
|
|
416
571
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
417
|
-
role: z.enum([
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
]),
|
|
421
|
-
id: z.optional(z.string()),
|
|
422
|
-
secret: z.optional(z.string()),
|
|
572
|
+
role: z.enum(['Administrator', 'User']),
|
|
573
|
+
id: z.string().optional(),
|
|
574
|
+
secret: z.string().optional(),
|
|
423
575
|
date_created: z.iso.datetime()
|
|
424
576
|
});
|
|
425
577
|
export const zTokenUpdateInput = z.object({
|
|
426
|
-
name: z.
|
|
427
|
-
role: z.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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()
|
|
580
|
+
});
|
|
581
|
+
export const zUsageFacets = z.object({
|
|
582
|
+
cluster_id: z.array(z.string()).optional(),
|
|
583
|
+
product: z.array(z.string()).optional()
|
|
584
|
+
});
|
|
585
|
+
export const zUsageResponse = z.object({
|
|
586
|
+
data: z.array(z.object({
|
|
587
|
+
hour: z.string(),
|
|
588
|
+
cluster_id: z.string(),
|
|
589
|
+
product: z.string(),
|
|
590
|
+
value: z.number(),
|
|
591
|
+
price: z.number(),
|
|
592
|
+
total: z.number()
|
|
593
|
+
})),
|
|
594
|
+
facets: z.object({
|
|
595
|
+
cluster_id: z.array(z.string()).optional(),
|
|
596
|
+
product: z.array(z.string()).optional()
|
|
597
|
+
})
|
|
431
598
|
});
|
|
432
599
|
export const zUsage = z.object({
|
|
433
|
-
hour: z.
|
|
434
|
-
cluster_id: z.
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
]),
|
|
440
|
-
product: z.enum([
|
|
441
|
-
'cfke_controlplane',
|
|
442
|
-
'cfke_connected_nodes',
|
|
443
|
-
'infra_compute',
|
|
444
|
-
'infra_storage',
|
|
445
|
-
'infra_loadbalancing',
|
|
446
|
-
'infra_traffic',
|
|
447
|
-
'cfcr_storage'
|
|
448
|
-
]),
|
|
449
|
-
node_name: z.string(),
|
|
450
|
-
sku: z.string(),
|
|
451
|
-
cpu: z.union([
|
|
452
|
-
z.number(),
|
|
453
|
-
z.enum([
|
|
454
|
-
''
|
|
455
|
-
])
|
|
456
|
-
]),
|
|
457
|
-
price: z.union([
|
|
458
|
-
z.number(),
|
|
459
|
-
z.enum([
|
|
460
|
-
''
|
|
461
|
-
])
|
|
462
|
-
]),
|
|
463
|
-
value: z.union([
|
|
464
|
-
z.number(),
|
|
465
|
-
z.enum([
|
|
466
|
-
''
|
|
467
|
-
])
|
|
468
|
-
]),
|
|
469
|
-
total: z.union([
|
|
470
|
-
z.number(),
|
|
471
|
-
z.enum([
|
|
472
|
-
''
|
|
473
|
-
])
|
|
474
|
-
])
|
|
600
|
+
hour: z.string(),
|
|
601
|
+
cluster_id: z.string(),
|
|
602
|
+
product: z.string(),
|
|
603
|
+
value: z.number(),
|
|
604
|
+
price: z.number(),
|
|
605
|
+
total: z.number()
|
|
475
606
|
});
|
|
476
607
|
export const zUserCreateInput = z.object({
|
|
477
608
|
email: z.email(),
|
|
@@ -479,491 +610,394 @@ export const zUserCreateInput = z.object({
|
|
|
479
610
|
last_name: z.string().min(1).max(50),
|
|
480
611
|
code: z.string(),
|
|
481
612
|
password: z.string().min(8),
|
|
482
|
-
status: z.
|
|
483
|
-
|
|
484
|
-
'inactive'
|
|
485
|
-
])),
|
|
486
|
-
role: z.optional(z.enum([
|
|
487
|
-
'Administrator',
|
|
488
|
-
'User'
|
|
489
|
-
]))
|
|
613
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
614
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
490
615
|
});
|
|
491
616
|
export const zUser = z.object({
|
|
492
617
|
email: z.email(),
|
|
493
618
|
first_name: z.string().min(1).max(50),
|
|
494
619
|
last_name: z.string().min(1).max(50),
|
|
495
|
-
role: z.enum([
|
|
496
|
-
|
|
497
|
-
'User'
|
|
498
|
-
]),
|
|
499
|
-
status: z.enum([
|
|
500
|
-
'active',
|
|
501
|
-
'inactive'
|
|
502
|
-
]),
|
|
620
|
+
role: z.enum(['Administrator', 'User']),
|
|
621
|
+
status: z.enum(['active', 'inactive']),
|
|
503
622
|
id: z.uuid(),
|
|
504
623
|
date_created: z.iso.datetime()
|
|
505
624
|
});
|
|
506
625
|
export const zUserUpdateInput = z.object({
|
|
507
|
-
email: z.
|
|
508
|
-
first_name: z.
|
|
509
|
-
last_name: z.
|
|
510
|
-
role: z.
|
|
511
|
-
|
|
512
|
-
'User'
|
|
513
|
-
])),
|
|
514
|
-
status: z.optional(z.enum([
|
|
515
|
-
'active',
|
|
516
|
-
'inactive'
|
|
517
|
-
]))
|
|
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()
|
|
518
631
|
});
|
|
519
|
-
export const
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
632
|
+
export const zGetUsageQuery = z.object({
|
|
633
|
+
granularity: z.enum([
|
|
634
|
+
'hourly',
|
|
635
|
+
'daily',
|
|
636
|
+
'monthly'
|
|
637
|
+
]).optional().default('daily')
|
|
523
638
|
});
|
|
524
639
|
/**
|
|
525
|
-
*
|
|
640
|
+
* Usage data with facets for filtering
|
|
526
641
|
*/
|
|
527
|
-
export const zGetUsageResponse =
|
|
528
|
-
export const zGetPaymentMethodData = z.object({
|
|
529
|
-
body: z.optional(z.never()),
|
|
530
|
-
path: z.optional(z.never()),
|
|
531
|
-
query: z.optional(z.never())
|
|
532
|
-
});
|
|
642
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
533
643
|
/**
|
|
534
644
|
* Redacted payment card information.
|
|
535
645
|
*/
|
|
536
646
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
537
|
-
export const zGetPaymentMethodSecretData = z.object({
|
|
538
|
-
body: z.optional(z.never()),
|
|
539
|
-
path: z.optional(z.never()),
|
|
540
|
-
query: z.optional(z.never())
|
|
541
|
-
});
|
|
542
647
|
/**
|
|
543
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.
|
|
544
649
|
*
|
|
545
650
|
*/
|
|
546
651
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
547
|
-
id: z.
|
|
548
|
-
});
|
|
549
|
-
export const zListInvoicesData = z.object({
|
|
550
|
-
body: z.optional(z.never()),
|
|
551
|
-
path: z.optional(z.never()),
|
|
552
|
-
query: z.optional(z.never())
|
|
652
|
+
id: z.string().optional()
|
|
553
653
|
});
|
|
554
654
|
/**
|
|
555
655
|
* An array of usage records.
|
|
556
656
|
*/
|
|
557
657
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
558
|
-
export const zGetContactData = z.object({
|
|
559
|
-
body: z.optional(z.never()),
|
|
560
|
-
path: z.optional(z.never()),
|
|
561
|
-
query: z.optional(z.never())
|
|
562
|
-
});
|
|
563
658
|
/**
|
|
564
659
|
* Returns a single object containing organization contact and billing address details.
|
|
565
660
|
*/
|
|
566
661
|
export const zGetContactResponse = zBillingContact;
|
|
567
|
-
export const
|
|
568
|
-
body: zBillingContact,
|
|
569
|
-
path: z.optional(z.never()),
|
|
570
|
-
query: z.optional(z.never())
|
|
571
|
-
});
|
|
662
|
+
export const zUpdateContactBody = zBillingContact;
|
|
572
663
|
/**
|
|
573
664
|
* Successfully updated. Returns updated organization details.
|
|
574
665
|
*/
|
|
575
666
|
export const zUpdateContactResponse = zBillingContact;
|
|
576
|
-
export const zGetCreditsData = z.object({
|
|
577
|
-
body: z.optional(z.never()),
|
|
578
|
-
path: z.optional(z.never()),
|
|
579
|
-
query: z.optional(z.never())
|
|
580
|
-
});
|
|
581
667
|
/**
|
|
582
668
|
* An array of the applied promotional credits records.
|
|
583
669
|
*/
|
|
584
670
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
585
|
-
export const
|
|
586
|
-
|
|
587
|
-
code: z.optional(z.string())
|
|
588
|
-
}),
|
|
589
|
-
path: z.optional(z.never()),
|
|
590
|
-
query: z.optional(z.never())
|
|
671
|
+
export const zRedeemCreditsBody = z.object({
|
|
672
|
+
code: z.string().optional()
|
|
591
673
|
});
|
|
592
|
-
export const
|
|
593
|
-
|
|
594
|
-
path: z.object({
|
|
595
|
-
cluster_id: z.string()
|
|
596
|
-
}),
|
|
597
|
-
query: z.optional(z.never())
|
|
674
|
+
export const zListChartsPath = z.object({
|
|
675
|
+
cluster_id: z.string()
|
|
598
676
|
});
|
|
599
677
|
/**
|
|
600
678
|
* An array of charts
|
|
601
679
|
*/
|
|
602
680
|
export const zListChartsResponse = z.array(zChart);
|
|
603
|
-
export const
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
cluster_id: z.string()
|
|
607
|
-
}),
|
|
608
|
-
query: z.optional(z.never())
|
|
681
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
682
|
+
export const zCreateChartPath = z.object({
|
|
683
|
+
cluster_id: z.string()
|
|
609
684
|
});
|
|
610
685
|
/**
|
|
611
686
|
* Successfully created. Returns created Chart ID.
|
|
612
687
|
*/
|
|
613
688
|
export const zCreateChartResponse = z.string();
|
|
614
|
-
export const
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
cluster_id: z.string(),
|
|
618
|
-
chart_name: z.string()
|
|
619
|
-
}),
|
|
620
|
-
query: z.optional(z.never())
|
|
689
|
+
export const zDeleteChartPath = z.object({
|
|
690
|
+
cluster_id: z.string(),
|
|
691
|
+
chart_name: z.string()
|
|
621
692
|
});
|
|
622
693
|
/**
|
|
623
694
|
* Successfully deleted.
|
|
624
695
|
*/
|
|
625
696
|
export const zDeleteChartResponse = z.string();
|
|
626
|
-
export const
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
cluster_id: z.string(),
|
|
630
|
-
chart_name: z.string()
|
|
631
|
-
}),
|
|
632
|
-
query: z.optional(z.never())
|
|
697
|
+
export const zGetChartPath = z.object({
|
|
698
|
+
cluster_id: z.string(),
|
|
699
|
+
chart_name: z.string()
|
|
633
700
|
});
|
|
634
701
|
/**
|
|
635
702
|
* Returns a single object containing chart details.
|
|
636
703
|
*/
|
|
637
704
|
export const zGetChartResponse = zChart;
|
|
638
|
-
export const
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
chart_name: z.string()
|
|
643
|
-
}),
|
|
644
|
-
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()
|
|
645
709
|
});
|
|
646
710
|
/**
|
|
647
711
|
* Successfully updated.
|
|
648
712
|
*/
|
|
649
713
|
export const zUpdateChartResponse = z.string();
|
|
650
|
-
export const
|
|
651
|
-
|
|
652
|
-
path: z.object({
|
|
653
|
-
cluster_id: z.string()
|
|
654
|
-
}),
|
|
655
|
-
query: z.optional(z.never())
|
|
714
|
+
export const zListFleetsPath = z.object({
|
|
715
|
+
cluster_id: z.string()
|
|
656
716
|
});
|
|
657
717
|
/**
|
|
658
718
|
* An array of fleets
|
|
659
719
|
*/
|
|
660
720
|
export const zListFleetsResponse = z.array(zFleet);
|
|
661
|
-
export const
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
cluster_id: z.string()
|
|
665
|
-
}),
|
|
666
|
-
query: z.optional(z.never())
|
|
721
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
722
|
+
export const zCreateFleetPath = z.object({
|
|
723
|
+
cluster_id: z.string()
|
|
667
724
|
});
|
|
668
725
|
/**
|
|
669
726
|
* Successfully created. Returns created Fleet ID.
|
|
670
727
|
*/
|
|
671
728
|
export const zCreateFleetResponse = z.string();
|
|
672
|
-
export const
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
cluster_id: z.string(),
|
|
676
|
-
fleet_name: z.string()
|
|
677
|
-
}),
|
|
678
|
-
query: z.optional(z.never())
|
|
729
|
+
export const zDeleteFleetPath = z.object({
|
|
730
|
+
cluster_id: z.string(),
|
|
731
|
+
fleet_name: z.string()
|
|
679
732
|
});
|
|
680
733
|
/**
|
|
681
734
|
* Successfully deleted.
|
|
682
735
|
*/
|
|
683
736
|
export const zDeleteFleetResponse = z.string();
|
|
684
|
-
export const
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
cluster_id: z.string(),
|
|
688
|
-
fleet_name: z.string()
|
|
689
|
-
}),
|
|
690
|
-
query: z.optional(z.never())
|
|
737
|
+
export const zGetFleetPath = z.object({
|
|
738
|
+
cluster_id: z.string(),
|
|
739
|
+
fleet_name: z.string()
|
|
691
740
|
});
|
|
692
741
|
/**
|
|
693
742
|
* Returns a single object containing fleet details.
|
|
694
743
|
*/
|
|
695
744
|
export const zGetFleetResponse = zFleet;
|
|
696
|
-
export const
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
fleet_name: z.string()
|
|
701
|
-
}),
|
|
702
|
-
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()
|
|
703
749
|
});
|
|
704
750
|
/**
|
|
705
751
|
* Successfully updated.
|
|
706
752
|
*/
|
|
707
753
|
export const zUpdateFleetResponse = z.string();
|
|
708
|
-
export const
|
|
709
|
-
|
|
710
|
-
path: z.object({
|
|
711
|
-
cluster_id: z.string()
|
|
712
|
-
}),
|
|
713
|
-
query: z.optional(z.never())
|
|
714
|
-
});
|
|
715
|
-
export const zListClustersData = z.object({
|
|
716
|
-
body: z.optional(z.never()),
|
|
717
|
-
path: z.optional(z.never()),
|
|
718
|
-
query: z.optional(z.never())
|
|
754
|
+
export const zQueryClusterPath = z.object({
|
|
755
|
+
cluster_id: z.string()
|
|
719
756
|
});
|
|
720
757
|
/**
|
|
721
758
|
* An array of clusters
|
|
722
759
|
*/
|
|
723
760
|
export const zListClustersResponse = z.array(zCluster);
|
|
724
|
-
export const
|
|
725
|
-
body: zClusterCreateInput,
|
|
726
|
-
path: z.optional(z.never()),
|
|
727
|
-
query: z.optional(z.never())
|
|
728
|
-
});
|
|
761
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
729
762
|
/**
|
|
730
763
|
* Successfully created. Returns created Cluster ID.
|
|
731
764
|
*/
|
|
732
765
|
export const zCreateClusterResponse = z.string();
|
|
733
|
-
export const
|
|
734
|
-
|
|
735
|
-
path: z.object({
|
|
736
|
-
cluster_id: z.string()
|
|
737
|
-
}),
|
|
738
|
-
query: z.optional(z.never())
|
|
766
|
+
export const zDeleteClusterPath = z.object({
|
|
767
|
+
cluster_id: z.string()
|
|
739
768
|
});
|
|
740
769
|
/**
|
|
741
770
|
* Successfully deleted.
|
|
742
771
|
*/
|
|
743
772
|
export const zDeleteClusterResponse = z.string();
|
|
744
|
-
export const
|
|
745
|
-
|
|
746
|
-
path: z.object({
|
|
747
|
-
cluster_id: z.string()
|
|
748
|
-
}),
|
|
749
|
-
query: z.optional(z.never())
|
|
773
|
+
export const zGetClusterPath = z.object({
|
|
774
|
+
cluster_id: z.string()
|
|
750
775
|
});
|
|
751
776
|
/**
|
|
752
777
|
* Returns a single object containing cluster details.
|
|
753
778
|
*/
|
|
754
779
|
export const zGetClusterResponse = zCluster;
|
|
755
|
-
export const
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
cluster_id: z.string()
|
|
759
|
-
}),
|
|
760
|
-
query: z.optional(z.never())
|
|
780
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
781
|
+
export const zUpdateClusterPath = z.object({
|
|
782
|
+
cluster_id: z.string()
|
|
761
783
|
});
|
|
762
784
|
/**
|
|
763
785
|
* Successfully updated. Returns updated cluster details.
|
|
764
786
|
*/
|
|
765
787
|
export const zUpdateClusterResponse = zCluster;
|
|
766
|
-
export const
|
|
767
|
-
|
|
768
|
-
path: z.object({
|
|
769
|
-
cluster_id: z.string()
|
|
770
|
-
}),
|
|
771
|
-
query: z.optional(z.never())
|
|
788
|
+
export const zGetJoinInformationPath = z.object({
|
|
789
|
+
cluster_id: z.string()
|
|
772
790
|
});
|
|
773
791
|
/**
|
|
774
792
|
* An object of cluster join information
|
|
775
793
|
*/
|
|
776
794
|
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
777
|
-
export const zListInvitesData = z.object({
|
|
778
|
-
body: z.optional(z.never()),
|
|
779
|
-
path: z.optional(z.never()),
|
|
780
|
-
query: z.optional(z.never())
|
|
781
|
-
});
|
|
782
795
|
/**
|
|
783
796
|
* An array of invites
|
|
784
797
|
*/
|
|
785
798
|
export const zListInvitesResponse = z.array(zInvite);
|
|
786
|
-
export const
|
|
787
|
-
|
|
788
|
-
email: z.optional(z.string())
|
|
789
|
-
}),
|
|
790
|
-
path: z.optional(z.never()),
|
|
791
|
-
query: z.optional(z.never())
|
|
799
|
+
export const zCreateInviteBody = z.object({
|
|
800
|
+
email: z.string().optional()
|
|
792
801
|
});
|
|
793
802
|
/**
|
|
794
803
|
* Successfully created. Returns created invite details.
|
|
795
804
|
*/
|
|
796
805
|
export const zCreateInviteResponse = zInvite;
|
|
797
|
-
export const
|
|
798
|
-
|
|
799
|
-
path: z.object({
|
|
800
|
-
code: z.string()
|
|
801
|
-
}),
|
|
802
|
-
query: z.optional(z.never())
|
|
806
|
+
export const zGetInvitePath = z.object({
|
|
807
|
+
code: z.string()
|
|
803
808
|
});
|
|
804
809
|
/**
|
|
805
810
|
* Returns a single object containing invite details.
|
|
806
811
|
*/
|
|
807
812
|
export const zGetInviteResponse = zInvite;
|
|
808
|
-
export const
|
|
809
|
-
|
|
810
|
-
path: z.object({
|
|
811
|
-
email: z.string()
|
|
812
|
-
}),
|
|
813
|
-
query: z.optional(z.never())
|
|
814
|
-
});
|
|
815
|
-
export const zListMarketplaceChartsData = z.object({
|
|
816
|
-
body: z.optional(z.never()),
|
|
817
|
-
path: z.optional(z.never()),
|
|
818
|
-
query: z.optional(z.never())
|
|
813
|
+
export const zDeleteInvitePath = z.object({
|
|
814
|
+
email: z.string()
|
|
819
815
|
});
|
|
820
816
|
/**
|
|
821
817
|
* An array of chart listings in the marketplace.
|
|
822
818
|
*/
|
|
823
819
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
824
|
-
export const
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
listing_id: z.string()
|
|
828
|
-
}),
|
|
829
|
-
query: z.optional(z.never())
|
|
820
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
821
|
+
chart_name: z.string(),
|
|
822
|
+
version_channel: z.string()
|
|
830
823
|
});
|
|
831
824
|
/**
|
|
832
|
-
* Returns an object containing the chart
|
|
825
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
833
826
|
*/
|
|
834
|
-
export const
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
827
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
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()
|
|
839
|
+
});
|
|
840
|
+
/**
|
|
841
|
+
* JSON-RPC 2.0 success or error response
|
|
842
|
+
*/
|
|
843
|
+
export const zPostMcpResponse = z.object({
|
|
844
|
+
jsonrpc: z.string().optional(),
|
|
845
|
+
id: z.union([
|
|
846
|
+
z.string(),
|
|
847
|
+
z.number()
|
|
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()
|
|
839
854
|
});
|
|
840
855
|
/**
|
|
841
856
|
* Returns a single object containing organization details.
|
|
842
857
|
*/
|
|
843
858
|
export const zGetOrganizationResponse = zOrganization;
|
|
844
|
-
export const
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
859
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
860
|
+
/**
|
|
861
|
+
* List of repositories
|
|
862
|
+
*/
|
|
863
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
864
|
+
export const zListTagsPath = z.object({
|
|
865
|
+
region: z.string(),
|
|
866
|
+
repository: z.string()
|
|
848
867
|
});
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
868
|
+
/**
|
|
869
|
+
* Repository with tags
|
|
870
|
+
*/
|
|
871
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
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()
|
|
881
|
+
});
|
|
882
|
+
/**
|
|
883
|
+
* Tag details
|
|
884
|
+
*/
|
|
885
|
+
export const zGetTagResponse = zRegistryTag;
|
|
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()
|
|
853
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();
|
|
854
931
|
/**
|
|
855
932
|
* Returns a list of access token details with masked secrets.
|
|
856
933
|
*/
|
|
857
934
|
export const zListTokensResponse = z.array(zToken);
|
|
858
|
-
export const
|
|
859
|
-
body: zTokenCreateInput,
|
|
860
|
-
path: z.optional(z.never()),
|
|
861
|
-
query: z.optional(z.never())
|
|
862
|
-
});
|
|
935
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
863
936
|
/**
|
|
864
937
|
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
865
938
|
*/
|
|
866
939
|
export const zCreateTokenResponse = zToken;
|
|
867
|
-
export const
|
|
868
|
-
|
|
869
|
-
path: z.object({
|
|
870
|
-
token_id: z.string()
|
|
871
|
-
}),
|
|
872
|
-
query: z.optional(z.never())
|
|
940
|
+
export const zDeleteTokenPath = z.object({
|
|
941
|
+
token_id: z.string()
|
|
873
942
|
});
|
|
874
|
-
export const
|
|
875
|
-
|
|
876
|
-
path: z.object({
|
|
877
|
-
token_id: z.string()
|
|
878
|
-
}),
|
|
879
|
-
query: z.optional(z.never())
|
|
943
|
+
export const zGetTokenPath = z.object({
|
|
944
|
+
token_id: z.string()
|
|
880
945
|
});
|
|
881
946
|
/**
|
|
882
947
|
* Returns access token details with masked secret.
|
|
883
948
|
*/
|
|
884
949
|
export const zGetTokenResponse = zToken;
|
|
885
|
-
export const
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
token_id: z.string()
|
|
889
|
-
}),
|
|
890
|
-
query: z.optional(z.never())
|
|
950
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
951
|
+
export const zUpdateTokenPath = z.object({
|
|
952
|
+
token_id: z.string()
|
|
891
953
|
});
|
|
892
954
|
/**
|
|
893
955
|
* Successfully updated. Returns updated token details with masked secret.
|
|
894
956
|
*/
|
|
895
957
|
export const zUpdateTokenResponse = zToken;
|
|
896
|
-
export const
|
|
897
|
-
|
|
898
|
-
path: z.object({
|
|
899
|
-
token_id: z.string()
|
|
900
|
-
}),
|
|
901
|
-
query: z.optional(z.never())
|
|
958
|
+
export const zRegenerateTokenPath = z.object({
|
|
959
|
+
token_id: z.string()
|
|
902
960
|
});
|
|
903
961
|
/**
|
|
904
962
|
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
905
963
|
*/
|
|
906
964
|
export const zRegenerateTokenResponse = zToken;
|
|
907
|
-
export const
|
|
908
|
-
|
|
909
|
-
path: z.object({
|
|
910
|
-
email: z.string()
|
|
911
|
-
}),
|
|
912
|
-
query: z.optional(z.never())
|
|
965
|
+
export const zListUserOrganizationsPath = z.object({
|
|
966
|
+
email: z.string()
|
|
913
967
|
});
|
|
914
968
|
/**
|
|
915
969
|
* An array of organizations the user belongs to.
|
|
916
970
|
*/
|
|
917
971
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
918
|
-
realm: z.
|
|
919
|
-
displayName: z.
|
|
972
|
+
realm: z.string().optional(),
|
|
973
|
+
displayName: z.string().optional()
|
|
920
974
|
}));
|
|
921
|
-
export const zListUsersData = z.object({
|
|
922
|
-
body: z.optional(z.never()),
|
|
923
|
-
path: z.optional(z.never()),
|
|
924
|
-
query: z.optional(z.never())
|
|
925
|
-
});
|
|
926
975
|
/**
|
|
927
976
|
* An array of users
|
|
928
977
|
*/
|
|
929
978
|
export const zListUsersResponse = z.array(zUser);
|
|
930
|
-
export const
|
|
931
|
-
body: zUserCreateInput,
|
|
932
|
-
path: z.optional(z.never()),
|
|
933
|
-
query: z.optional(z.never())
|
|
934
|
-
});
|
|
979
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
935
980
|
/**
|
|
936
981
|
* Successfully created. Returns created user details.
|
|
937
982
|
*/
|
|
938
983
|
export const zCreateUserResponse = zUser;
|
|
939
|
-
export const
|
|
940
|
-
|
|
941
|
-
path: z.object({
|
|
942
|
-
user_id: z.string()
|
|
943
|
-
}),
|
|
944
|
-
query: z.optional(z.never())
|
|
984
|
+
export const zDeleteUserPath = z.object({
|
|
985
|
+
user_id: z.string()
|
|
945
986
|
});
|
|
946
987
|
/**
|
|
947
988
|
* User profile information
|
|
948
989
|
*/
|
|
949
990
|
export const zDeleteUserResponse = zUser;
|
|
950
|
-
export const
|
|
951
|
-
|
|
952
|
-
path: z.object({
|
|
953
|
-
user_id: z.string()
|
|
954
|
-
}),
|
|
955
|
-
query: z.optional(z.never())
|
|
991
|
+
export const zGetUserPath = z.object({
|
|
992
|
+
user_id: z.string()
|
|
956
993
|
});
|
|
957
994
|
/**
|
|
958
995
|
* User profile information
|
|
959
996
|
*/
|
|
960
997
|
export const zGetUserResponse = zUser;
|
|
961
|
-
export const
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
user_id: z.string()
|
|
965
|
-
}),
|
|
966
|
-
query: z.optional(z.never())
|
|
998
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
999
|
+
export const zUpdateUserPath = z.object({
|
|
1000
|
+
user_id: z.string()
|
|
967
1001
|
});
|
|
968
1002
|
/**
|
|
969
1003
|
* Successfully created. Returns created user details.
|