@cloudfleet/sdk 0.0.1-cfddf24 → 0.0.1-d06768f
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/README.md +56 -2
- package/dist/@tanstack/react-query.gen.d.ts +432 -614
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +431 -404
- package/dist/@tanstack/react-query.gen.js.map +1 -1
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +1 -4
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +1 -1
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +3 -3
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/core/params.gen.js +4 -4
- package/dist/core/params.gen.js.map +1 -1
- package/dist/errors.d.ts +42 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +83 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.gen.d.ts +778 -487
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1050 -630
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +226 -221
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +340 -324
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +18 -55
- package/dist/services/kubernetes/api.d.ts.map +1 -1
- package/dist/services/kubernetes/api.js +36 -75
- package/dist/services/kubernetes/api.js.map +1 -1
- package/dist/services/kubernetes/index.d.ts.map +1 -1
- package/dist/services/kubernetes/index.js +36 -37
- package/dist/services/kubernetes/index.js.map +1 -1
- package/dist/types.gen.d.ts +1253 -989
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1886 -1537
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +586 -393
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -15
package/dist/zod.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
|
+
type: z.enum(['business', 'personal']),
|
|
4
5
|
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
6
|
address1: z.string().optional(),
|
|
6
7
|
address2: z.string().optional(),
|
|
@@ -22,12 +23,17 @@ export const zBillingContact = z.object({
|
|
|
22
23
|
'at_vat',
|
|
23
24
|
'au_abn',
|
|
24
25
|
'au_arn',
|
|
26
|
+
'aw_tin',
|
|
27
|
+
'az_tin',
|
|
25
28
|
'ba_tin',
|
|
26
29
|
'bb_tin',
|
|
30
|
+
'bd_bin',
|
|
27
31
|
'be_vat',
|
|
32
|
+
'bf_ifu',
|
|
28
33
|
'bg_uic',
|
|
29
34
|
'bg_vat',
|
|
30
35
|
'bh_vat',
|
|
36
|
+
'bj_ifu',
|
|
31
37
|
'bo_tin',
|
|
32
38
|
'br_cnpj',
|
|
33
39
|
'br_cpf',
|
|
@@ -43,9 +49,11 @@ export const zBillingContact = z.object({
|
|
|
43
49
|
'ch_uid',
|
|
44
50
|
'ch_vat',
|
|
45
51
|
'cl_tin',
|
|
52
|
+
'cm_niu',
|
|
46
53
|
'cn_tin',
|
|
47
54
|
'co_nit',
|
|
48
55
|
'cr_tin',
|
|
56
|
+
'cv_nif',
|
|
49
57
|
'cy_vat',
|
|
50
58
|
'cz_vat',
|
|
51
59
|
'de_stn',
|
|
@@ -57,6 +65,7 @@ export const zBillingContact = z.object({
|
|
|
57
65
|
'eg_tin',
|
|
58
66
|
'es_cif',
|
|
59
67
|
'es_vat',
|
|
68
|
+
'et_tin',
|
|
60
69
|
'eu_oss_vat',
|
|
61
70
|
'fi_vat',
|
|
62
71
|
'fr_vat',
|
|
@@ -79,11 +88,14 @@ export const zBillingContact = z.object({
|
|
|
79
88
|
'jp_rn',
|
|
80
89
|
'jp_trn',
|
|
81
90
|
'ke_pin',
|
|
91
|
+
'kg_tin',
|
|
82
92
|
'kh_tin',
|
|
83
93
|
'kr_brn',
|
|
84
94
|
'kz_bin',
|
|
95
|
+
'la_tin',
|
|
85
96
|
'li_uid',
|
|
86
97
|
'li_vat',
|
|
98
|
+
'lk_vat',
|
|
87
99
|
'lt_vat',
|
|
88
100
|
'lu_vat',
|
|
89
101
|
'lv_vat',
|
|
@@ -153,65 +165,57 @@ export const zBillingCredits = z.object({
|
|
|
153
165
|
value_total: z.number(),
|
|
154
166
|
value_remaining: z.number().optional()
|
|
155
167
|
});
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
160
|
-
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
161
|
-
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
162
|
-
});
|
|
163
|
-
export const zChart = z.object({
|
|
164
|
-
values: z.string(),
|
|
165
|
-
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-]+)*))?$/),
|
|
166
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
167
|
-
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
168
|
-
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
169
|
-
status: z.enum([
|
|
170
|
-
'InstallSucceeded',
|
|
171
|
-
'InstallFailed',
|
|
172
|
-
'UpgradeSucceeded',
|
|
173
|
-
'UpgradeFailed',
|
|
174
|
-
'TestSucceeded',
|
|
175
|
-
'TestFailed',
|
|
176
|
-
'RollbackSucceeded',
|
|
177
|
-
'RollbackFailed',
|
|
178
|
-
'UninstallSucceeded',
|
|
179
|
-
'UninstallFailed',
|
|
180
|
-
'ArtifactFailed',
|
|
181
|
-
'DependencyNotReady',
|
|
182
|
-
'Progressing',
|
|
183
|
-
'SourceNotReady'
|
|
184
|
-
]),
|
|
185
|
-
version_current: z.string(),
|
|
186
|
-
created_at: z.string(),
|
|
187
|
-
updated_at: z.string(),
|
|
188
|
-
ready: z.boolean()
|
|
189
|
-
});
|
|
190
|
-
export const zChartUpdateInput = z.object({
|
|
191
|
-
values: z.string(),
|
|
192
|
-
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-]+)*))?$/)
|
|
193
|
-
});
|
|
168
|
+
/**
|
|
169
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
170
|
+
*/
|
|
194
171
|
export const zClusterCreateInput = z.object({
|
|
195
172
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
196
|
-
tier: z.enum([
|
|
197
|
-
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
173
|
+
tier: z.enum([
|
|
174
|
+
'basic',
|
|
175
|
+
'pro',
|
|
176
|
+
'enterprise'
|
|
177
|
+
]).optional().default('basic'),
|
|
178
|
+
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().default('1.x.x-cfke.x'),
|
|
179
|
+
release_channel: z.enum([
|
|
180
|
+
'rapid',
|
|
181
|
+
'stable',
|
|
182
|
+
'extended'
|
|
183
|
+
]).optional().default('rapid'),
|
|
184
|
+
features: z.object({
|
|
185
|
+
gpu_sharing_strategy: z.enum([
|
|
186
|
+
'none',
|
|
187
|
+
'mps',
|
|
188
|
+
'time_slicing'
|
|
189
|
+
]).optional().default('none'),
|
|
190
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
191
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
192
|
+
}).optional().default({
|
|
193
|
+
gpu_sharing_strategy: 'none',
|
|
194
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
195
|
+
cilium_socket_lb_host_namespace_only: false
|
|
196
|
+
}),
|
|
197
|
+
region: z.string(),
|
|
198
|
+
networking: z.object({
|
|
199
|
+
pod_cidr: z.string().optional().default('10.244.0.0/16'),
|
|
200
|
+
service_cidr: z.string().optional().default('10.96.0.0/12'),
|
|
201
|
+
dual_stack: z.boolean().optional(),
|
|
202
|
+
pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
|
|
203
|
+
service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
|
|
204
|
+
}).optional().default({
|
|
205
|
+
pod_cidr: '10.244.0.0/16',
|
|
206
|
+
service_cidr: '10.96.0.0/12',
|
|
207
|
+
dual_stack: false,
|
|
208
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
209
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
210
|
+
})
|
|
209
211
|
});
|
|
210
212
|
export const zClusterJoinInformation = z.object({
|
|
211
213
|
certificate_authority: z.string(),
|
|
212
214
|
endpoint: z.url(),
|
|
213
215
|
cluster_dns: z.string(),
|
|
216
|
+
pod_cidr: z.string(),
|
|
214
217
|
auth_key: z.string(),
|
|
218
|
+
login_server: z.string(),
|
|
215
219
|
bootstrap_token: z.string(),
|
|
216
220
|
versions: z.object({
|
|
217
221
|
kubernetes: z.string(),
|
|
@@ -225,24 +229,55 @@ export const zClusterJoinInformation = z.object({
|
|
|
225
229
|
gcp_workload_identity_provider: z.string()
|
|
226
230
|
})
|
|
227
231
|
});
|
|
232
|
+
/**
|
|
233
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
234
|
+
*/
|
|
228
235
|
export const zCluster = z.object({
|
|
229
236
|
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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
+
tier: z.enum([
|
|
238
|
+
'basic',
|
|
239
|
+
'pro',
|
|
240
|
+
'enterprise'
|
|
241
|
+
]).default('basic'),
|
|
242
|
+
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-]+)*))?$/).default('1.x.x-cfke.x'),
|
|
243
|
+
release_channel: z.enum([
|
|
244
|
+
'rapid',
|
|
245
|
+
'stable',
|
|
246
|
+
'extended'
|
|
247
|
+
]).default('rapid'),
|
|
248
|
+
features: z.object({
|
|
249
|
+
gpu_sharing_strategy: z.enum([
|
|
250
|
+
'none',
|
|
251
|
+
'mps',
|
|
252
|
+
'time_slicing'
|
|
253
|
+
]).default('none'),
|
|
254
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
255
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
256
|
+
}).default({
|
|
257
|
+
gpu_sharing_strategy: 'none',
|
|
258
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
259
|
+
cilium_socket_lb_host_namespace_only: false
|
|
260
|
+
}),
|
|
261
|
+
region: z.string(),
|
|
262
|
+
networking: z.object({
|
|
263
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
264
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
265
|
+
dual_stack: z.boolean(),
|
|
266
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
267
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
268
|
+
}).default({
|
|
269
|
+
pod_cidr: '10.244.0.0/16',
|
|
270
|
+
service_cidr: '10.96.0.0/12',
|
|
271
|
+
dual_stack: false,
|
|
272
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
273
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
274
|
+
}),
|
|
237
275
|
id: z.uuid(),
|
|
238
276
|
status: z.enum([
|
|
239
|
-
'active',
|
|
240
|
-
'disabled',
|
|
241
|
-
'deleted',
|
|
242
277
|
'creating',
|
|
243
278
|
'deployed',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
279
|
+
'updating',
|
|
280
|
+
'disabled'
|
|
246
281
|
]),
|
|
247
282
|
endpoint: z.union([
|
|
248
283
|
z.url(),
|
|
@@ -256,14 +291,61 @@ export const zCluster = z.object({
|
|
|
256
291
|
version_current: z.string().optional(),
|
|
257
292
|
created_at: z.string().optional(),
|
|
258
293
|
updated_at: z.string().optional(),
|
|
259
|
-
ready: z.boolean()
|
|
260
|
-
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()
|
|
294
|
+
ready: z.boolean()
|
|
261
295
|
});
|
|
296
|
+
/**
|
|
297
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
298
|
+
*/
|
|
262
299
|
export const zClusterUpdateInput = z.object({
|
|
263
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
264
|
-
tier: z.enum([
|
|
265
|
-
|
|
300
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
301
|
+
tier: z.enum([
|
|
302
|
+
'basic',
|
|
303
|
+
'pro',
|
|
304
|
+
'enterprise'
|
|
305
|
+
]).optional().default('basic'),
|
|
306
|
+
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().default('1.x.x-cfke.x'),
|
|
307
|
+
release_channel: z.enum([
|
|
308
|
+
'rapid',
|
|
309
|
+
'stable',
|
|
310
|
+
'extended'
|
|
311
|
+
]).optional().default('rapid'),
|
|
312
|
+
features: z.object({
|
|
313
|
+
gpu_sharing_strategy: z.enum([
|
|
314
|
+
'none',
|
|
315
|
+
'mps',
|
|
316
|
+
'time_slicing'
|
|
317
|
+
]).optional().default('none'),
|
|
318
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
319
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
320
|
+
}).optional().default({
|
|
321
|
+
gpu_sharing_strategy: 'none',
|
|
322
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
323
|
+
cilium_socket_lb_host_namespace_only: false
|
|
324
|
+
})
|
|
266
325
|
});
|
|
326
|
+
export const zFeedbackCreateInput = z.object({
|
|
327
|
+
sentiment: z.enum([
|
|
328
|
+
'positive',
|
|
329
|
+
'neutral',
|
|
330
|
+
'negative'
|
|
331
|
+
]),
|
|
332
|
+
message: z.string().min(1).max(2000),
|
|
333
|
+
context: z.string().max(2000).optional(),
|
|
334
|
+
source: z.enum([
|
|
335
|
+
'cli',
|
|
336
|
+
'mcp',
|
|
337
|
+
'plugin',
|
|
338
|
+
'console',
|
|
339
|
+
'api'
|
|
340
|
+
]).optional().default('api'),
|
|
341
|
+
client: z.string().max(100).optional()
|
|
342
|
+
});
|
|
343
|
+
export const zFeedback = z.object({
|
|
344
|
+
id: z.string()
|
|
345
|
+
});
|
|
346
|
+
/**
|
|
347
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
348
|
+
*/
|
|
267
349
|
export const zFleetCreateInput = z.object({
|
|
268
350
|
limits: z.object({
|
|
269
351
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -274,7 +356,7 @@ export const zFleetCreateInput = z.object({
|
|
|
274
356
|
}).optional(),
|
|
275
357
|
hetzner: z.object({
|
|
276
358
|
enabled: z.boolean(),
|
|
277
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
359
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
278
360
|
}).optional(),
|
|
279
361
|
aws: z.object({
|
|
280
362
|
enabled: z.boolean(),
|
|
@@ -442,7 +524,7 @@ export const zFleetCreateInput = z.object({
|
|
|
442
524
|
'x8g',
|
|
443
525
|
'z1d',
|
|
444
526
|
'z3'
|
|
445
|
-
])).optional(),
|
|
527
|
+
])).optional().default([]),
|
|
446
528
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
447
529
|
'africa-south1',
|
|
448
530
|
'ap-northeast-1',
|
|
@@ -508,11 +590,28 @@ export const zFleetCreateInput = z.object({
|
|
|
508
590
|
'us-west2',
|
|
509
591
|
'us-west3',
|
|
510
592
|
'us-west4'
|
|
511
|
-
])).optional()
|
|
512
|
-
}).optional()
|
|
593
|
+
])).optional().default([])
|
|
594
|
+
}).optional().default({
|
|
595
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
596
|
+
'kubernetes.io/arch': ['amd64'],
|
|
597
|
+
'cfke.io/instance-family': [],
|
|
598
|
+
'topology.kubernetes.io/region': []
|
|
599
|
+
}),
|
|
513
600
|
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
601
|
+
taints: z.array(z.object({
|
|
602
|
+
key: z.string(),
|
|
603
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
604
|
+
effect: z.enum([
|
|
605
|
+
'NoSchedule',
|
|
606
|
+
'PreferNoSchedule',
|
|
607
|
+
'NoExecute'
|
|
608
|
+
])
|
|
609
|
+
})).max(50).optional().default([]),
|
|
514
610
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
515
611
|
});
|
|
612
|
+
/**
|
|
613
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
614
|
+
*/
|
|
516
615
|
export const zFleet = z.object({
|
|
517
616
|
limits: z.object({
|
|
518
617
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -530,8 +629,8 @@ export const zFleet = z.object({
|
|
|
530
629
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
531
630
|
}).optional(),
|
|
532
631
|
constraints: z.object({
|
|
533
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).
|
|
534
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).
|
|
632
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
633
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
535
634
|
'cfke.io/instance-family': z.array(z.enum([
|
|
536
635
|
'a1',
|
|
537
636
|
'a2',
|
|
@@ -691,7 +790,7 @@ export const zFleet = z.object({
|
|
|
691
790
|
'x8g',
|
|
692
791
|
'z1d',
|
|
693
792
|
'z3'
|
|
694
|
-
])).optional(),
|
|
793
|
+
])).optional().default([]),
|
|
695
794
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
696
795
|
'africa-south1',
|
|
697
796
|
'ap-northeast-1',
|
|
@@ -757,11 +856,32 @@ export const zFleet = z.object({
|
|
|
757
856
|
'us-west2',
|
|
758
857
|
'us-west3',
|
|
759
858
|
'us-west4'
|
|
760
|
-
])).optional()
|
|
761
|
-
}).
|
|
859
|
+
])).optional().default([])
|
|
860
|
+
}).default({
|
|
861
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
862
|
+
'kubernetes.io/arch': ['amd64'],
|
|
863
|
+
'cfke.io/instance-family': [],
|
|
864
|
+
'topology.kubernetes.io/region': []
|
|
865
|
+
}),
|
|
762
866
|
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
763
|
-
|
|
867
|
+
taints: z.array(z.object({
|
|
868
|
+
key: z.string(),
|
|
869
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
870
|
+
effect: z.enum([
|
|
871
|
+
'NoSchedule',
|
|
872
|
+
'PreferNoSchedule',
|
|
873
|
+
'NoExecute'
|
|
874
|
+
])
|
|
875
|
+
})).max(50).default([]),
|
|
876
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
877
|
+
ready: z.boolean(),
|
|
878
|
+
status_message: z.string().optional(),
|
|
879
|
+
created_at: z.string(),
|
|
880
|
+
updated_at: z.string()
|
|
764
881
|
});
|
|
882
|
+
/**
|
|
883
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
884
|
+
*/
|
|
765
885
|
export const zFleetUpdateInput = z.object({
|
|
766
886
|
limits: z.object({
|
|
767
887
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -772,15 +892,15 @@ export const zFleetUpdateInput = z.object({
|
|
|
772
892
|
}).optional(),
|
|
773
893
|
hetzner: z.object({
|
|
774
894
|
enabled: z.boolean(),
|
|
775
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
895
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
776
896
|
}).optional(),
|
|
777
897
|
aws: z.object({
|
|
778
898
|
enabled: z.boolean(),
|
|
779
899
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
780
900
|
}).optional(),
|
|
781
901
|
constraints: z.object({
|
|
782
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
783
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
902
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
903
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
784
904
|
'cfke.io/instance-family': z.array(z.enum([
|
|
785
905
|
'a1',
|
|
786
906
|
'a2',
|
|
@@ -940,7 +1060,7 @@ export const zFleetUpdateInput = z.object({
|
|
|
940
1060
|
'x8g',
|
|
941
1061
|
'z1d',
|
|
942
1062
|
'z3'
|
|
943
|
-
])).optional(),
|
|
1063
|
+
])).optional().default([]),
|
|
944
1064
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
945
1065
|
'africa-south1',
|
|
946
1066
|
'ap-northeast-1',
|
|
@@ -1006,16 +1126,77 @@ export const zFleetUpdateInput = z.object({
|
|
|
1006
1126
|
'us-west2',
|
|
1007
1127
|
'us-west3',
|
|
1008
1128
|
'us-west4'
|
|
1009
|
-
])).optional()
|
|
1010
|
-
}).optional()
|
|
1011
|
-
|
|
1129
|
+
])).optional().default([])
|
|
1130
|
+
}).optional().default({
|
|
1131
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1132
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1133
|
+
'cfke.io/instance-family': [],
|
|
1134
|
+
'topology.kubernetes.io/region': []
|
|
1135
|
+
}),
|
|
1136
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
1137
|
+
taints: z.array(z.object({
|
|
1138
|
+
key: z.string(),
|
|
1139
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
1140
|
+
effect: z.enum([
|
|
1141
|
+
'NoSchedule',
|
|
1142
|
+
'PreferNoSchedule',
|
|
1143
|
+
'NoExecute'
|
|
1144
|
+
])
|
|
1145
|
+
})).max(50).optional().default([])
|
|
1146
|
+
});
|
|
1147
|
+
export const zInviteCreateInput = z.object({
|
|
1148
|
+
email: z.email(),
|
|
1149
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1012
1150
|
});
|
|
1013
1151
|
export const zInvite = z.object({
|
|
1014
1152
|
id: z.string().optional(),
|
|
1015
1153
|
organization_id: z.uuid().optional(),
|
|
1016
1154
|
date_created: z.iso.datetime(),
|
|
1017
1155
|
email: z.email().optional(),
|
|
1018
|
-
code: z.string().optional()
|
|
1156
|
+
code: z.string().optional(),
|
|
1157
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1158
|
+
});
|
|
1159
|
+
export const zInvoicePaymentAttempt = z.object({
|
|
1160
|
+
invoice_id: z.string(),
|
|
1161
|
+
number: z.string(),
|
|
1162
|
+
amount: z.number(),
|
|
1163
|
+
currency: z.string(),
|
|
1164
|
+
status: z.enum([
|
|
1165
|
+
'paid',
|
|
1166
|
+
'processing',
|
|
1167
|
+
'requires_action',
|
|
1168
|
+
'failed'
|
|
1169
|
+
]),
|
|
1170
|
+
client_secret: z.string(),
|
|
1171
|
+
failure_code: z.string(),
|
|
1172
|
+
failure_message: z.string()
|
|
1173
|
+
});
|
|
1174
|
+
export const zInvoicePaymentResult = z.object({
|
|
1175
|
+
code: z.enum([
|
|
1176
|
+
'paid',
|
|
1177
|
+
'processing',
|
|
1178
|
+
'action_required',
|
|
1179
|
+
'partially_paid',
|
|
1180
|
+
'failed',
|
|
1181
|
+
'nothing_due',
|
|
1182
|
+
'bank_transfer_due'
|
|
1183
|
+
]),
|
|
1184
|
+
message: z.string(),
|
|
1185
|
+
results: z.array(z.object({
|
|
1186
|
+
invoice_id: z.string(),
|
|
1187
|
+
number: z.string(),
|
|
1188
|
+
amount: z.number(),
|
|
1189
|
+
currency: z.string(),
|
|
1190
|
+
status: z.enum([
|
|
1191
|
+
'paid',
|
|
1192
|
+
'processing',
|
|
1193
|
+
'requires_action',
|
|
1194
|
+
'failed'
|
|
1195
|
+
]),
|
|
1196
|
+
client_secret: z.string(),
|
|
1197
|
+
failure_code: z.string(),
|
|
1198
|
+
failure_message: z.string()
|
|
1199
|
+
}))
|
|
1019
1200
|
});
|
|
1020
1201
|
export const zInvoice = z.object({
|
|
1021
1202
|
id: z.string().optional(),
|
|
@@ -1028,48 +1209,29 @@ export const zInvoice = z.object({
|
|
|
1028
1209
|
period_end: z.iso.datetime(),
|
|
1029
1210
|
invoice_pdf: z.string().optional()
|
|
1030
1211
|
});
|
|
1031
|
-
export const zMarketplaceListingFiles = z.object({
|
|
1032
|
-
chartYaml: z.string().optional(),
|
|
1033
|
-
valuesYaml: z.string().optional(),
|
|
1034
|
-
valuesSchemaJson: z.string().optional()
|
|
1035
|
-
});
|
|
1036
|
-
export const zMarketplaceListing = z.object({
|
|
1037
|
-
name: z.string(),
|
|
1038
|
-
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-]+)*))?$/)),
|
|
1039
|
-
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-]+)*))?$/)),
|
|
1040
|
-
latestVersion: z.string(),
|
|
1041
|
-
metadata: z.object({
|
|
1042
|
-
name: z.string(),
|
|
1043
|
-
version: z.string(),
|
|
1044
|
-
description: z.string().optional(),
|
|
1045
|
-
appVersion: z.string().optional(),
|
|
1046
|
-
apiVersion: z.string().optional(),
|
|
1047
|
-
keywords: z.array(z.string()).optional(),
|
|
1048
|
-
home: z.string().optional(),
|
|
1049
|
-
icon: z.string().optional(),
|
|
1050
|
-
sources: z.array(z.string()).optional(),
|
|
1051
|
-
maintainers: z.array(z.object({
|
|
1052
|
-
name: z.string(),
|
|
1053
|
-
email: z.string().optional()
|
|
1054
|
-
})).optional()
|
|
1055
|
-
}).optional()
|
|
1056
|
-
});
|
|
1057
1212
|
export const zOrganizationCreateInput = z.object({
|
|
1213
|
+
type: z.enum(['business', 'personal']),
|
|
1058
1214
|
email: z.email(),
|
|
1059
|
-
first_name: z.string(),
|
|
1060
|
-
last_name: z.string(),
|
|
1215
|
+
first_name: z.string().min(1),
|
|
1216
|
+
last_name: z.string().min(1),
|
|
1061
1217
|
company_name: 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,}$/),
|
|
1062
1218
|
password: z.string().min(8)
|
|
1063
1219
|
});
|
|
1220
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1221
|
+
id: z.string()
|
|
1222
|
+
});
|
|
1064
1223
|
export const zOrganization = z.object({
|
|
1065
1224
|
id: z.uuid(),
|
|
1066
1225
|
name: z.string().min(2).max(120).optional(),
|
|
1226
|
+
type: z.enum(['business', 'personal']),
|
|
1067
1227
|
date_created: z.iso.datetime(),
|
|
1068
1228
|
quota: z.object({
|
|
1069
1229
|
basic_clusters_max: z.int().gte(0),
|
|
1070
1230
|
basic_clusters_available: z.int(),
|
|
1071
1231
|
pro_clusters_max: z.int().gte(0),
|
|
1072
1232
|
pro_clusters_available: z.int(),
|
|
1233
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1234
|
+
enterprise_clusters_available: z.int(),
|
|
1073
1235
|
fleets_max: z.int().gte(0),
|
|
1074
1236
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1075
1237
|
regions: z.array(z.string()).min(1),
|
|
@@ -1083,32 +1245,36 @@ export const zOrganization = z.object({
|
|
|
1083
1245
|
'active',
|
|
1084
1246
|
'closed',
|
|
1085
1247
|
'suspended'
|
|
1248
|
+
]),
|
|
1249
|
+
verification: z.enum([
|
|
1250
|
+
'none',
|
|
1251
|
+
'submitted',
|
|
1252
|
+
'verified'
|
|
1086
1253
|
])
|
|
1087
1254
|
});
|
|
1088
1255
|
export const zPaymentMethod = z.object({
|
|
1089
|
-
id: z.
|
|
1090
|
-
|
|
1091
|
-
|
|
1256
|
+
id: z.string(),
|
|
1257
|
+
type: z.enum([
|
|
1258
|
+
'card',
|
|
1259
|
+
'sepa_debit',
|
|
1260
|
+
'bank_transfer'
|
|
1261
|
+
]),
|
|
1092
1262
|
last4: z.string(),
|
|
1093
1263
|
exp_month: z.int().gte(1).lte(12),
|
|
1094
|
-
exp_year: z.int()
|
|
1095
|
-
brand: z.
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
'jcb',
|
|
1101
|
-
'mastercard',
|
|
1102
|
-
'unionpay',
|
|
1103
|
-
'visa',
|
|
1104
|
-
'unknown'
|
|
1105
|
-
])
|
|
1264
|
+
exp_year: z.int(),
|
|
1265
|
+
brand: z.string(),
|
|
1266
|
+
iban: z.string(),
|
|
1267
|
+
bic: z.string(),
|
|
1268
|
+
account_holder_name: z.string(),
|
|
1269
|
+
is_default: z.boolean()
|
|
1106
1270
|
});
|
|
1107
1271
|
export const zPlatformQuota = z.object({
|
|
1108
1272
|
basic_clusters_max: z.int().gte(0),
|
|
1109
1273
|
basic_clusters_available: z.int(),
|
|
1110
1274
|
pro_clusters_max: z.int().gte(0),
|
|
1111
1275
|
pro_clusters_available: z.int(),
|
|
1276
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1277
|
+
enterprise_clusters_available: z.int(),
|
|
1112
1278
|
fleets_max: z.int().gte(0),
|
|
1113
1279
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1114
1280
|
regions: z.array(z.string()).min(1),
|
|
@@ -1164,6 +1330,25 @@ export const zRegistryTag = z.object({
|
|
|
1164
1330
|
repository: z.string(),
|
|
1165
1331
|
uri: z.string()
|
|
1166
1332
|
});
|
|
1333
|
+
export const zRoadmapItemCreateInput = z.object({
|
|
1334
|
+
text: z.string().min(1).max(500)
|
|
1335
|
+
});
|
|
1336
|
+
export const zRoadmapItem = z.object({
|
|
1337
|
+
id: z.string(),
|
|
1338
|
+
text: z.string(),
|
|
1339
|
+
vote: z.union([
|
|
1340
|
+
z.literal(-1),
|
|
1341
|
+
z.literal(1),
|
|
1342
|
+
z.literal(2)
|
|
1343
|
+
])
|
|
1344
|
+
});
|
|
1345
|
+
export const zRoadmapVoteInput = z.object({
|
|
1346
|
+
value: z.union([
|
|
1347
|
+
z.literal(-1),
|
|
1348
|
+
z.literal(1),
|
|
1349
|
+
z.literal(2)
|
|
1350
|
+
])
|
|
1351
|
+
});
|
|
1167
1352
|
export const zTicketAttachment = z.object({
|
|
1168
1353
|
id: z.string(),
|
|
1169
1354
|
filename: z.string(),
|
|
@@ -1177,40 +1362,8 @@ export const zTicketCreateInput = z.object({
|
|
|
1177
1362
|
'general'
|
|
1178
1363
|
]),
|
|
1179
1364
|
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1180
|
-
properties: z.record(z.string(), z.unknown()).optional()
|
|
1181
|
-
|
|
1182
|
-
export const zTicketListResponse = z.object({
|
|
1183
|
-
items: z.array(z.object({
|
|
1184
|
-
id: z.string(),
|
|
1185
|
-
status: z.enum([
|
|
1186
|
-
'waiting_on_us',
|
|
1187
|
-
'waiting_on_user',
|
|
1188
|
-
'closed'
|
|
1189
|
-
]),
|
|
1190
|
-
category: z.enum([
|
|
1191
|
-
'billing',
|
|
1192
|
-
'technical',
|
|
1193
|
-
'general'
|
|
1194
|
-
]),
|
|
1195
|
-
summary: z.string(),
|
|
1196
|
-
closed_at: z.iso.datetime().optional(),
|
|
1197
|
-
date_created: z.iso.datetime(),
|
|
1198
|
-
date_updated: z.iso.datetime(),
|
|
1199
|
-
messages: z.array(z.object({
|
|
1200
|
-
id: z.string(),
|
|
1201
|
-
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1202
|
-
body: z.string(),
|
|
1203
|
-
author_first_name: z.string().optional(),
|
|
1204
|
-
author_last_name: z.string().optional(),
|
|
1205
|
-
attachments: z.array(z.object({
|
|
1206
|
-
id: z.string(),
|
|
1207
|
-
filename: z.string(),
|
|
1208
|
-
content_type: z.string(),
|
|
1209
|
-
size: z.int()
|
|
1210
|
-
})).optional(),
|
|
1211
|
-
date_created: z.iso.datetime()
|
|
1212
|
-
})).optional()
|
|
1213
|
-
}))
|
|
1365
|
+
properties: z.record(z.string(), z.unknown()).optional(),
|
|
1366
|
+
grant_support_access: z.boolean().optional()
|
|
1214
1367
|
});
|
|
1215
1368
|
export const zTicketMessageInput = z.object({
|
|
1216
1369
|
body: z.string().min(1).max(50000).regex(/\S/)
|
|
@@ -1242,6 +1395,8 @@ export const zTicket = z.object({
|
|
|
1242
1395
|
'general'
|
|
1243
1396
|
]),
|
|
1244
1397
|
summary: z.string(),
|
|
1398
|
+
support_access_granted: z.boolean(),
|
|
1399
|
+
support_access_granted_at: z.iso.datetime(),
|
|
1245
1400
|
closed_at: z.iso.datetime().optional(),
|
|
1246
1401
|
date_created: z.iso.datetime(),
|
|
1247
1402
|
date_updated: z.iso.datetime(),
|
|
@@ -1277,26 +1432,58 @@ export const zTokenUpdateInput = z.object({
|
|
|
1277
1432
|
});
|
|
1278
1433
|
export const zUsageFacets = z.object({
|
|
1279
1434
|
cluster_id: z.array(z.string()).optional(),
|
|
1280
|
-
product: z.array(z.
|
|
1435
|
+
product: z.array(z.enum([
|
|
1436
|
+
'cfke_controlplane_basic',
|
|
1437
|
+
'cfke_controlplane_pro',
|
|
1438
|
+
'cfke_controlplane_enterprise',
|
|
1439
|
+
'cfke_connected_nodes_basic',
|
|
1440
|
+
'cfke_connected_nodes_pro',
|
|
1441
|
+
'cfke_connected_nodes_enterprise',
|
|
1442
|
+
'cfcr_storage'
|
|
1443
|
+
])).optional()
|
|
1281
1444
|
});
|
|
1282
1445
|
export const zUsageResponse = z.object({
|
|
1283
1446
|
data: z.array(z.object({
|
|
1284
1447
|
hour: z.string(),
|
|
1285
1448
|
cluster_id: z.string(),
|
|
1286
|
-
product: z.
|
|
1449
|
+
product: z.enum([
|
|
1450
|
+
'cfke_controlplane_basic',
|
|
1451
|
+
'cfke_controlplane_pro',
|
|
1452
|
+
'cfke_controlplane_enterprise',
|
|
1453
|
+
'cfke_connected_nodes_basic',
|
|
1454
|
+
'cfke_connected_nodes_pro',
|
|
1455
|
+
'cfke_connected_nodes_enterprise',
|
|
1456
|
+
'cfcr_storage'
|
|
1457
|
+
]),
|
|
1287
1458
|
value: z.number(),
|
|
1288
1459
|
price: z.number(),
|
|
1289
1460
|
total: z.number()
|
|
1290
1461
|
})),
|
|
1291
1462
|
facets: z.object({
|
|
1292
1463
|
cluster_id: z.array(z.string()).optional(),
|
|
1293
|
-
product: z.array(z.
|
|
1464
|
+
product: z.array(z.enum([
|
|
1465
|
+
'cfke_controlplane_basic',
|
|
1466
|
+
'cfke_controlplane_pro',
|
|
1467
|
+
'cfke_controlplane_enterprise',
|
|
1468
|
+
'cfke_connected_nodes_basic',
|
|
1469
|
+
'cfke_connected_nodes_pro',
|
|
1470
|
+
'cfke_connected_nodes_enterprise',
|
|
1471
|
+
'cfcr_storage'
|
|
1472
|
+
])).optional()
|
|
1294
1473
|
})
|
|
1295
1474
|
});
|
|
1296
1475
|
export const zUsage = z.object({
|
|
1297
1476
|
hour: z.string(),
|
|
1298
1477
|
cluster_id: z.string(),
|
|
1299
|
-
product: z.
|
|
1478
|
+
product: z.enum([
|
|
1479
|
+
'cfke_controlplane_basic',
|
|
1480
|
+
'cfke_controlplane_pro',
|
|
1481
|
+
'cfke_controlplane_enterprise',
|
|
1482
|
+
'cfke_connected_nodes_basic',
|
|
1483
|
+
'cfke_connected_nodes_pro',
|
|
1484
|
+
'cfke_connected_nodes_enterprise',
|
|
1485
|
+
'cfcr_storage'
|
|
1486
|
+
]),
|
|
1300
1487
|
value: z.number(),
|
|
1301
1488
|
price: z.number(),
|
|
1302
1489
|
total: z.number()
|
|
@@ -1306,9 +1493,7 @@ export const zUserCreateInput = z.object({
|
|
|
1306
1493
|
first_name: z.string().min(1).max(50),
|
|
1307
1494
|
last_name: z.string().min(1).max(50),
|
|
1308
1495
|
code: z.string(),
|
|
1309
|
-
password: z.string().min(8)
|
|
1310
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
1311
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1496
|
+
password: z.string().min(8)
|
|
1312
1497
|
});
|
|
1313
1498
|
export const zUser = z.object({
|
|
1314
1499
|
email: z.email(),
|
|
@@ -1326,202 +1511,193 @@ export const zUserUpdateInput = z.object({
|
|
|
1326
1511
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1327
1512
|
status: z.enum(['active', 'inactive']).optional()
|
|
1328
1513
|
});
|
|
1329
|
-
export const
|
|
1330
|
-
|
|
1331
|
-
'hourly',
|
|
1332
|
-
'daily',
|
|
1333
|
-
'monthly'
|
|
1334
|
-
]).optional().default('daily')
|
|
1514
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1515
|
+
email: z.string()
|
|
1335
1516
|
});
|
|
1336
1517
|
/**
|
|
1337
|
-
*
|
|
1518
|
+
* An array of organizations the user belongs to.
|
|
1338
1519
|
*/
|
|
1339
|
-
export const
|
|
1520
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1521
|
+
realm: z.string().optional(),
|
|
1522
|
+
displayName: z.string().optional()
|
|
1523
|
+
}));
|
|
1340
1524
|
/**
|
|
1341
|
-
*
|
|
1525
|
+
* An array of users
|
|
1342
1526
|
*/
|
|
1343
|
-
export const
|
|
1527
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1528
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1344
1529
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
*
|
|
1530
|
+
* Successfully created. Returns created user details.
|
|
1347
1531
|
*/
|
|
1348
|
-
export const
|
|
1349
|
-
|
|
1532
|
+
export const zCreateUserResponse = zUser;
|
|
1533
|
+
export const zDeleteUserPath = z.object({
|
|
1534
|
+
user_id: z.string()
|
|
1350
1535
|
});
|
|
1351
1536
|
/**
|
|
1352
|
-
*
|
|
1537
|
+
* User profile information
|
|
1353
1538
|
*/
|
|
1354
|
-
export const
|
|
1539
|
+
export const zDeleteUserResponse = zUser;
|
|
1540
|
+
export const zGetUserPath = z.object({
|
|
1541
|
+
user_id: z.string()
|
|
1542
|
+
});
|
|
1355
1543
|
/**
|
|
1356
|
-
*
|
|
1544
|
+
* User profile information
|
|
1357
1545
|
*/
|
|
1358
|
-
export const
|
|
1359
|
-
export const
|
|
1546
|
+
export const zGetUserResponse = zUser;
|
|
1547
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1548
|
+
export const zUpdateUserPath = z.object({
|
|
1549
|
+
user_id: z.string()
|
|
1550
|
+
});
|
|
1360
1551
|
/**
|
|
1361
|
-
* Successfully
|
|
1552
|
+
* Successfully created. Returns created user details.
|
|
1362
1553
|
*/
|
|
1363
|
-
export const
|
|
1554
|
+
export const zUpdateUserResponse = zUser;
|
|
1364
1555
|
/**
|
|
1365
|
-
*
|
|
1556
|
+
* Returns a list of access token details with masked secrets.
|
|
1366
1557
|
*/
|
|
1367
|
-
export const
|
|
1368
|
-
export const
|
|
1369
|
-
code: z.string().optional()
|
|
1370
|
-
});
|
|
1371
|
-
export const zListChartsPath = z.object({
|
|
1372
|
-
cluster_id: z.string()
|
|
1373
|
-
});
|
|
1558
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1559
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1374
1560
|
/**
|
|
1375
|
-
*
|
|
1561
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1376
1562
|
*/
|
|
1377
|
-
export const
|
|
1378
|
-
export const
|
|
1379
|
-
|
|
1380
|
-
cluster_id: z.string()
|
|
1563
|
+
export const zCreateTokenResponse = zToken;
|
|
1564
|
+
export const zDeleteTokenPath = z.object({
|
|
1565
|
+
token_id: z.string()
|
|
1381
1566
|
});
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
*/
|
|
1385
|
-
export const zCreateChartResponse = z.string();
|
|
1386
|
-
export const zDeleteChartPath = z.object({
|
|
1387
|
-
cluster_id: z.string(),
|
|
1388
|
-
chart_name: z.string()
|
|
1567
|
+
export const zGetTokenPath = z.object({
|
|
1568
|
+
token_id: z.string()
|
|
1389
1569
|
});
|
|
1390
1570
|
/**
|
|
1391
|
-
*
|
|
1571
|
+
* Returns access token details with masked secret.
|
|
1392
1572
|
*/
|
|
1393
|
-
export const
|
|
1394
|
-
export const
|
|
1395
|
-
|
|
1396
|
-
|
|
1573
|
+
export const zGetTokenResponse = zToken;
|
|
1574
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1575
|
+
export const zUpdateTokenPath = z.object({
|
|
1576
|
+
token_id: z.string()
|
|
1397
1577
|
});
|
|
1398
1578
|
/**
|
|
1399
|
-
* Returns
|
|
1579
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1400
1580
|
*/
|
|
1401
|
-
export const
|
|
1402
|
-
export const
|
|
1403
|
-
|
|
1404
|
-
cluster_id: z.string(),
|
|
1405
|
-
chart_name: z.string()
|
|
1581
|
+
export const zUpdateTokenResponse = zToken;
|
|
1582
|
+
export const zRegenerateTokenPath = z.object({
|
|
1583
|
+
token_id: z.string()
|
|
1406
1584
|
});
|
|
1407
1585
|
/**
|
|
1408
|
-
* Successfully updated.
|
|
1586
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1409
1587
|
*/
|
|
1410
|
-
export const
|
|
1411
|
-
export const zListFleetsPath = z.object({
|
|
1412
|
-
cluster_id: z.string()
|
|
1413
|
-
});
|
|
1588
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1414
1589
|
/**
|
|
1415
|
-
* An array of
|
|
1590
|
+
* An array of tickets for the organization, newest first.
|
|
1416
1591
|
*/
|
|
1417
|
-
export const
|
|
1418
|
-
export const
|
|
1419
|
-
|
|
1420
|
-
|
|
1592
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1593
|
+
export const zCreateTicketBody = z.object({
|
|
1594
|
+
payload: z.string().optional(),
|
|
1595
|
+
attachments: z.array(z.string()).optional()
|
|
1421
1596
|
});
|
|
1422
1597
|
/**
|
|
1423
|
-
*
|
|
1598
|
+
* Ticket created.
|
|
1424
1599
|
*/
|
|
1425
|
-
export const
|
|
1426
|
-
export const
|
|
1427
|
-
|
|
1428
|
-
fleet_name: z.string()
|
|
1600
|
+
export const zCreateTicketResponse = zTicket;
|
|
1601
|
+
export const zCloseTicketPath = z.object({
|
|
1602
|
+
ticket_id: z.string()
|
|
1429
1603
|
});
|
|
1430
1604
|
/**
|
|
1431
|
-
*
|
|
1605
|
+
* Ticket closed.
|
|
1432
1606
|
*/
|
|
1433
|
-
export const
|
|
1434
|
-
export const
|
|
1435
|
-
|
|
1436
|
-
fleet_name: z.string()
|
|
1607
|
+
export const zCloseTicketResponse = zTicket;
|
|
1608
|
+
export const zGetTicketPath = z.object({
|
|
1609
|
+
ticket_id: z.string()
|
|
1437
1610
|
});
|
|
1438
1611
|
/**
|
|
1439
|
-
*
|
|
1612
|
+
* Ticket with messages (internal notes excluded).
|
|
1440
1613
|
*/
|
|
1441
|
-
export const
|
|
1442
|
-
export const
|
|
1443
|
-
|
|
1444
|
-
cluster_id: z.string(),
|
|
1445
|
-
fleet_name: z.string()
|
|
1614
|
+
export const zGetTicketResponse = zTicket;
|
|
1615
|
+
export const zGrantTicketSupportAccessPath = z.object({
|
|
1616
|
+
ticket_id: z.string()
|
|
1446
1617
|
});
|
|
1447
1618
|
/**
|
|
1448
|
-
*
|
|
1619
|
+
* Support access granted.
|
|
1449
1620
|
*/
|
|
1450
|
-
export const
|
|
1451
|
-
export const
|
|
1452
|
-
|
|
1621
|
+
export const zGrantTicketSupportAccessResponse = zTicket;
|
|
1622
|
+
export const zReplyTicketBody = z.object({
|
|
1623
|
+
payload: z.string().optional(),
|
|
1624
|
+
attachments: z.array(z.string()).optional()
|
|
1625
|
+
});
|
|
1626
|
+
export const zReplyTicketPath = z.object({
|
|
1627
|
+
ticket_id: z.string()
|
|
1453
1628
|
});
|
|
1454
1629
|
/**
|
|
1455
|
-
*
|
|
1630
|
+
* Reply appended.
|
|
1456
1631
|
*/
|
|
1457
|
-
export const
|
|
1458
|
-
export const
|
|
1632
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1633
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1634
|
+
ticket_id: z.string(),
|
|
1635
|
+
attachment_id: z.string()
|
|
1636
|
+
});
|
|
1459
1637
|
/**
|
|
1460
|
-
*
|
|
1638
|
+
* Attachment binary stream.
|
|
1461
1639
|
*/
|
|
1462
|
-
export const
|
|
1463
|
-
export const zDeleteClusterPath = z.object({
|
|
1464
|
-
cluster_id: z.string()
|
|
1465
|
-
});
|
|
1640
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1466
1641
|
/**
|
|
1467
|
-
*
|
|
1642
|
+
* An array of roadmap items, newest first.
|
|
1468
1643
|
*/
|
|
1469
|
-
export const
|
|
1470
|
-
export const
|
|
1471
|
-
cluster_id: z.string()
|
|
1472
|
-
});
|
|
1644
|
+
export const zListRoadmapResponse = z.array(zRoadmapItem);
|
|
1645
|
+
export const zSuggestRoadmapBody = zRoadmapItemCreateInput;
|
|
1473
1646
|
/**
|
|
1474
|
-
*
|
|
1647
|
+
* Suggestion submitted for review.
|
|
1475
1648
|
*/
|
|
1476
|
-
export const
|
|
1477
|
-
export const
|
|
1478
|
-
|
|
1479
|
-
cluster_id: z.string()
|
|
1649
|
+
export const zSuggestRoadmapResponse = zRoadmapItem;
|
|
1650
|
+
export const zUnvoteRoadmapPath = z.object({
|
|
1651
|
+
item_id: z.string()
|
|
1480
1652
|
});
|
|
1481
1653
|
/**
|
|
1482
|
-
*
|
|
1654
|
+
* Vote removed. Returns the item without a vote.
|
|
1483
1655
|
*/
|
|
1484
|
-
export const
|
|
1485
|
-
export const
|
|
1486
|
-
|
|
1656
|
+
export const zUnvoteRoadmapResponse = zRoadmapItem;
|
|
1657
|
+
export const zVoteRoadmapBody = zRoadmapVoteInput;
|
|
1658
|
+
export const zVoteRoadmapPath = z.object({
|
|
1659
|
+
item_id: z.string()
|
|
1487
1660
|
});
|
|
1488
1661
|
/**
|
|
1489
|
-
*
|
|
1662
|
+
* Vote saved. Returns the item with your vote.
|
|
1490
1663
|
*/
|
|
1491
|
-
export const
|
|
1664
|
+
export const zVoteRoadmapResponse = zRoadmapItem;
|
|
1492
1665
|
/**
|
|
1493
|
-
*
|
|
1666
|
+
* List of repositories
|
|
1494
1667
|
*/
|
|
1495
|
-
export const
|
|
1496
|
-
export const
|
|
1497
|
-
|
|
1668
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1669
|
+
export const zListTagsPath = z.object({
|
|
1670
|
+
region: z.string(),
|
|
1671
|
+
repository: z.string()
|
|
1498
1672
|
});
|
|
1499
1673
|
/**
|
|
1500
|
-
*
|
|
1674
|
+
* Repository with tags
|
|
1501
1675
|
*/
|
|
1502
|
-
export const
|
|
1503
|
-
export const
|
|
1504
|
-
|
|
1676
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1677
|
+
export const zDeleteTagPath = z.object({
|
|
1678
|
+
region: z.string(),
|
|
1679
|
+
repository: z.string(),
|
|
1680
|
+
tag: z.string()
|
|
1681
|
+
});
|
|
1682
|
+
export const zGetTagPath = z.object({
|
|
1683
|
+
region: z.string(),
|
|
1684
|
+
repository: z.string(),
|
|
1685
|
+
tag: z.string()
|
|
1505
1686
|
});
|
|
1506
1687
|
/**
|
|
1507
|
-
*
|
|
1688
|
+
* Tag details
|
|
1508
1689
|
*/
|
|
1509
|
-
export const
|
|
1510
|
-
export const zDeleteInvitePath = z.object({
|
|
1511
|
-
email: z.string()
|
|
1512
|
-
});
|
|
1690
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1513
1691
|
/**
|
|
1514
|
-
*
|
|
1692
|
+
* Returns a single object containing organization details.
|
|
1515
1693
|
*/
|
|
1516
|
-
export const
|
|
1517
|
-
export const
|
|
1518
|
-
chart_name: z.string(),
|
|
1519
|
-
version_channel: z.string()
|
|
1520
|
-
});
|
|
1694
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1695
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1521
1696
|
/**
|
|
1522
|
-
*
|
|
1697
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1698
|
+
*
|
|
1523
1699
|
*/
|
|
1524
|
-
export const
|
|
1700
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1525
1701
|
/**
|
|
1526
1702
|
* JSON-RPC 2.0 request payload
|
|
1527
1703
|
*/
|
|
@@ -1550,154 +1726,171 @@ export const zPostMcpResponse = z.object({
|
|
|
1550
1726
|
}).optional()
|
|
1551
1727
|
});
|
|
1552
1728
|
/**
|
|
1553
|
-
*
|
|
1729
|
+
* An array of invites
|
|
1554
1730
|
*/
|
|
1555
|
-
export const
|
|
1556
|
-
export const
|
|
1731
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1732
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1557
1733
|
/**
|
|
1558
|
-
*
|
|
1734
|
+
* Successfully created. Returns created invite details.
|
|
1559
1735
|
*/
|
|
1560
|
-
export const
|
|
1561
|
-
export const
|
|
1562
|
-
|
|
1563
|
-
repository: z.string()
|
|
1736
|
+
export const zCreateInviteResponse = zInvite;
|
|
1737
|
+
export const zGetInvitePath = z.object({
|
|
1738
|
+
code: z.string()
|
|
1564
1739
|
});
|
|
1565
1740
|
/**
|
|
1566
|
-
*
|
|
1741
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1567
1742
|
*/
|
|
1568
|
-
export const
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
repository: z.string(),
|
|
1572
|
-
tag: z.string()
|
|
1743
|
+
export const zGetInviteResponse = z.object({
|
|
1744
|
+
email: z.email().optional(),
|
|
1745
|
+
organization_id: z.string().optional()
|
|
1573
1746
|
});
|
|
1574
|
-
export const
|
|
1575
|
-
|
|
1576
|
-
repository: z.string(),
|
|
1577
|
-
tag: z.string()
|
|
1747
|
+
export const zDeleteInvitePath = z.object({
|
|
1748
|
+
email: z.email()
|
|
1578
1749
|
});
|
|
1750
|
+
export const zSendFeedbackBody = zFeedbackCreateInput;
|
|
1579
1751
|
/**
|
|
1580
|
-
*
|
|
1581
|
-
*/
|
|
1582
|
-
export const zGetTagResponse = zRegistryTag;
|
|
1583
|
-
/**
|
|
1584
|
-
* Tickets for the organization.
|
|
1752
|
+
* Feedback received.
|
|
1585
1753
|
*/
|
|
1586
|
-
export const
|
|
1587
|
-
export const
|
|
1588
|
-
|
|
1589
|
-
|
|
1754
|
+
export const zSendFeedbackResponse = zFeedback;
|
|
1755
|
+
export const zQueryClusterPath = z.object({
|
|
1756
|
+
cluster_id: z.string()
|
|
1757
|
+
});
|
|
1758
|
+
export const zListFleetsPath = z.object({
|
|
1759
|
+
cluster_id: z.string()
|
|
1590
1760
|
});
|
|
1591
1761
|
/**
|
|
1592
|
-
*
|
|
1762
|
+
* An array of fleets
|
|
1593
1763
|
*/
|
|
1594
|
-
export const
|
|
1595
|
-
export const
|
|
1596
|
-
|
|
1764
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1765
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1766
|
+
export const zCreateFleetPath = z.object({
|
|
1767
|
+
cluster_id: z.string()
|
|
1597
1768
|
});
|
|
1598
1769
|
/**
|
|
1599
|
-
*
|
|
1770
|
+
* Successfully created. Returns created Fleet ID.
|
|
1600
1771
|
*/
|
|
1601
|
-
export const
|
|
1602
|
-
export const
|
|
1603
|
-
|
|
1772
|
+
export const zCreateFleetResponse = z.string();
|
|
1773
|
+
export const zDeleteFleetPath = z.object({
|
|
1774
|
+
cluster_id: z.string(),
|
|
1775
|
+
fleet_name: z.string()
|
|
1604
1776
|
});
|
|
1605
1777
|
/**
|
|
1606
|
-
*
|
|
1778
|
+
* Successfully deleted.
|
|
1607
1779
|
*/
|
|
1608
|
-
export const
|
|
1609
|
-
export const
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
});
|
|
1613
|
-
export const zReplyTicketPath = z.object({
|
|
1614
|
-
ticket_id: z.string()
|
|
1780
|
+
export const zDeleteFleetResponse = z.string();
|
|
1781
|
+
export const zGetFleetPath = z.object({
|
|
1782
|
+
cluster_id: z.string(),
|
|
1783
|
+
fleet_name: z.string()
|
|
1615
1784
|
});
|
|
1616
1785
|
/**
|
|
1617
|
-
*
|
|
1786
|
+
* Returns a single object containing fleet details.
|
|
1618
1787
|
*/
|
|
1619
|
-
export const
|
|
1620
|
-
export const
|
|
1621
|
-
|
|
1622
|
-
|
|
1788
|
+
export const zGetFleetResponse = zFleet;
|
|
1789
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1790
|
+
export const zUpdateFleetPath = z.object({
|
|
1791
|
+
cluster_id: z.string(),
|
|
1792
|
+
fleet_name: z.string()
|
|
1623
1793
|
});
|
|
1624
1794
|
/**
|
|
1625
|
-
*
|
|
1795
|
+
* Successfully updated.
|
|
1626
1796
|
*/
|
|
1627
|
-
export const
|
|
1797
|
+
export const zUpdateFleetResponse = z.string();
|
|
1628
1798
|
/**
|
|
1629
|
-
*
|
|
1799
|
+
* An array of clusters
|
|
1630
1800
|
*/
|
|
1631
|
-
export const
|
|
1632
|
-
export const
|
|
1801
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1802
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1633
1803
|
/**
|
|
1634
|
-
* Successfully created. Returns created
|
|
1804
|
+
* Successfully created. Returns created Cluster ID.
|
|
1635
1805
|
*/
|
|
1636
|
-
export const
|
|
1637
|
-
export const
|
|
1638
|
-
|
|
1639
|
-
});
|
|
1640
|
-
export const zGetTokenPath = z.object({
|
|
1641
|
-
token_id: z.string()
|
|
1806
|
+
export const zCreateClusterResponse = z.string();
|
|
1807
|
+
export const zDeleteClusterPath = z.object({
|
|
1808
|
+
cluster_id: z.string()
|
|
1642
1809
|
});
|
|
1643
1810
|
/**
|
|
1644
|
-
*
|
|
1811
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1645
1812
|
*/
|
|
1646
|
-
export const
|
|
1647
|
-
export const
|
|
1648
|
-
|
|
1649
|
-
token_id: z.string()
|
|
1813
|
+
export const zDeleteClusterResponse = z.string();
|
|
1814
|
+
export const zGetClusterPath = z.object({
|
|
1815
|
+
cluster_id: z.string()
|
|
1650
1816
|
});
|
|
1651
1817
|
/**
|
|
1652
|
-
*
|
|
1818
|
+
* Returns a single object containing cluster details.
|
|
1653
1819
|
*/
|
|
1654
|
-
export const
|
|
1655
|
-
export const
|
|
1656
|
-
|
|
1820
|
+
export const zGetClusterResponse = zCluster;
|
|
1821
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1822
|
+
export const zUpdateClusterPath = z.object({
|
|
1823
|
+
cluster_id: z.string()
|
|
1657
1824
|
});
|
|
1658
1825
|
/**
|
|
1659
|
-
* Successfully updated. Returns updated
|
|
1826
|
+
* Successfully updated. Returns updated cluster details.
|
|
1660
1827
|
*/
|
|
1661
|
-
export const
|
|
1662
|
-
export const
|
|
1663
|
-
|
|
1828
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1829
|
+
export const zGetJoinInformationPath = z.object({
|
|
1830
|
+
cluster_id: z.string()
|
|
1664
1831
|
});
|
|
1665
1832
|
/**
|
|
1666
|
-
* An
|
|
1833
|
+
* An object of cluster join information
|
|
1667
1834
|
*/
|
|
1668
|
-
export const
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1835
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1836
|
+
export const zGetUsageQuery = z.object({
|
|
1837
|
+
granularity: z.enum([
|
|
1838
|
+
'hourly',
|
|
1839
|
+
'daily',
|
|
1840
|
+
'monthly'
|
|
1841
|
+
]).optional().default('daily')
|
|
1842
|
+
});
|
|
1672
1843
|
/**
|
|
1673
|
-
*
|
|
1844
|
+
* Usage data with facets for filtering
|
|
1674
1845
|
*/
|
|
1675
|
-
export const
|
|
1676
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1846
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1677
1847
|
/**
|
|
1678
|
-
*
|
|
1848
|
+
* 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.
|
|
1849
|
+
*
|
|
1679
1850
|
*/
|
|
1680
|
-
export const
|
|
1681
|
-
|
|
1682
|
-
user_id: z.string()
|
|
1851
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1852
|
+
id: z.string().optional()
|
|
1683
1853
|
});
|
|
1684
1854
|
/**
|
|
1685
|
-
*
|
|
1855
|
+
* An array of payment methods.
|
|
1686
1856
|
*/
|
|
1687
|
-
export const
|
|
1688
|
-
export const
|
|
1689
|
-
|
|
1857
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1858
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1859
|
+
paymentMethodId: z.string()
|
|
1690
1860
|
});
|
|
1691
1861
|
/**
|
|
1692
|
-
*
|
|
1862
|
+
* Default payment method updated.
|
|
1693
1863
|
*/
|
|
1694
|
-
export const
|
|
1695
|
-
export const
|
|
1696
|
-
|
|
1697
|
-
user_id: z.string()
|
|
1864
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1865
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1866
|
+
paymentMethodId: z.string()
|
|
1698
1867
|
});
|
|
1699
1868
|
/**
|
|
1700
|
-
*
|
|
1869
|
+
* Payment method deleted.
|
|
1701
1870
|
*/
|
|
1702
|
-
export const
|
|
1871
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1872
|
+
/**
|
|
1873
|
+
* An array of usage records.
|
|
1874
|
+
*/
|
|
1875
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1876
|
+
/**
|
|
1877
|
+
* The outcome of the attempt.
|
|
1878
|
+
*/
|
|
1879
|
+
export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
|
|
1880
|
+
/**
|
|
1881
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1882
|
+
*/
|
|
1883
|
+
export const zGetContactResponse = zBillingContact;
|
|
1884
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1885
|
+
/**
|
|
1886
|
+
* Successfully updated. Returns updated organization details.
|
|
1887
|
+
*/
|
|
1888
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1889
|
+
/**
|
|
1890
|
+
* An array of the applied promotional credits records.
|
|
1891
|
+
*/
|
|
1892
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1893
|
+
export const zRedeemCreditsBody = z.object({
|
|
1894
|
+
code: z.string().optional()
|
|
1895
|
+
});
|
|
1703
1896
|
//# sourceMappingURL=zod.gen.js.map
|