@cloudfleet/sdk 0.0.1-c4175a2 → 0.0.1-c4563f6
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 +26 -2
- package/dist/@tanstack/react-query.gen.d.ts +521 -576
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +520 -382
- 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/schemas.gen.d.ts +774 -252
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1045 -362
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +265 -209
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +396 -312
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1359 -838
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1919 -1542
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +618 -366
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -13
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(),
|
|
@@ -166,22 +167,7 @@ export const zChart = z.object({
|
|
|
166
167
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
167
168
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
168
169
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
169
|
-
status: z.
|
|
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
|
-
]),
|
|
170
|
+
status: z.string(),
|
|
185
171
|
version_current: z.string(),
|
|
186
172
|
created_at: z.string(),
|
|
187
173
|
updated_at: z.string(),
|
|
@@ -191,27 +177,57 @@ export const zChartUpdateInput = z.object({
|
|
|
191
177
|
values: z.string(),
|
|
192
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-]+)*))?$/)
|
|
193
179
|
});
|
|
180
|
+
/**
|
|
181
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
182
|
+
*/
|
|
194
183
|
export const zClusterCreateInput = z.object({
|
|
195
184
|
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
|
-
|
|
185
|
+
tier: z.enum([
|
|
186
|
+
'basic',
|
|
187
|
+
'pro',
|
|
188
|
+
'enterprise'
|
|
189
|
+
]).optional().default('basic'),
|
|
190
|
+
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'),
|
|
191
|
+
release_channel: z.enum([
|
|
192
|
+
'rapid',
|
|
193
|
+
'stable',
|
|
194
|
+
'extended'
|
|
195
|
+
]).optional().default('rapid'),
|
|
196
|
+
features: z.object({
|
|
197
|
+
gpu_sharing_strategy: z.enum([
|
|
198
|
+
'none',
|
|
199
|
+
'mps',
|
|
200
|
+
'time_slicing'
|
|
201
|
+
]).optional().default('none'),
|
|
202
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
203
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
204
|
+
}).optional().default({
|
|
205
|
+
gpu_sharing_strategy: 'none',
|
|
206
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
207
|
+
cilium_socket_lb_host_namespace_only: false
|
|
208
|
+
}),
|
|
209
|
+
region: z.string(),
|
|
210
|
+
networking: z.object({
|
|
211
|
+
pod_cidr: z.string().optional().default('10.244.0.0/16'),
|
|
212
|
+
service_cidr: z.string().optional().default('10.96.0.0/12'),
|
|
213
|
+
dual_stack: z.boolean().optional(),
|
|
214
|
+
pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
|
|
215
|
+
service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
|
|
216
|
+
}).optional().default({
|
|
217
|
+
pod_cidr: '10.244.0.0/16',
|
|
218
|
+
service_cidr: '10.96.0.0/12',
|
|
219
|
+
dual_stack: false,
|
|
220
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
221
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
222
|
+
})
|
|
209
223
|
});
|
|
210
224
|
export const zClusterJoinInformation = z.object({
|
|
211
225
|
certificate_authority: z.string(),
|
|
212
226
|
endpoint: z.url(),
|
|
213
227
|
cluster_dns: z.string(),
|
|
228
|
+
pod_cidr: z.string(),
|
|
214
229
|
auth_key: z.string(),
|
|
230
|
+
login_server: z.string(),
|
|
215
231
|
bootstrap_token: z.string(),
|
|
216
232
|
versions: z.object({
|
|
217
233
|
kubernetes: z.string(),
|
|
@@ -225,60 +241,122 @@ export const zClusterJoinInformation = z.object({
|
|
|
225
241
|
gcp_workload_identity_provider: z.string()
|
|
226
242
|
})
|
|
227
243
|
});
|
|
244
|
+
/**
|
|
245
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
246
|
+
*/
|
|
228
247
|
export const zCluster = z.object({
|
|
229
248
|
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
|
-
|
|
249
|
+
tier: z.enum([
|
|
250
|
+
'basic',
|
|
251
|
+
'pro',
|
|
252
|
+
'enterprise'
|
|
253
|
+
]).default('basic'),
|
|
254
|
+
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'),
|
|
255
|
+
release_channel: z.enum([
|
|
256
|
+
'rapid',
|
|
257
|
+
'stable',
|
|
258
|
+
'extended'
|
|
259
|
+
]).default('rapid'),
|
|
260
|
+
features: z.object({
|
|
261
|
+
gpu_sharing_strategy: z.enum([
|
|
262
|
+
'none',
|
|
263
|
+
'mps',
|
|
264
|
+
'time_slicing'
|
|
265
|
+
]).default('none'),
|
|
266
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
267
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
268
|
+
}).default({
|
|
269
|
+
gpu_sharing_strategy: 'none',
|
|
270
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
271
|
+
cilium_socket_lb_host_namespace_only: false
|
|
272
|
+
}),
|
|
273
|
+
region: z.string(),
|
|
274
|
+
networking: z.object({
|
|
275
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
276
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
277
|
+
dual_stack: z.boolean(),
|
|
278
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
279
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
280
|
+
}).default({
|
|
281
|
+
pod_cidr: '10.244.0.0/16',
|
|
282
|
+
service_cidr: '10.96.0.0/12',
|
|
283
|
+
dual_stack: false,
|
|
284
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
285
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
286
|
+
}),
|
|
237
287
|
id: z.uuid(),
|
|
238
288
|
status: z.enum([
|
|
239
|
-
'active',
|
|
240
|
-
'disabled',
|
|
241
|
-
'deleted',
|
|
242
289
|
'creating',
|
|
243
290
|
'deployed',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
291
|
+
'updating',
|
|
292
|
+
'disabled'
|
|
246
293
|
]),
|
|
247
294
|
endpoint: z.union([
|
|
248
295
|
z.url(),
|
|
249
296
|
z.enum([''])
|
|
250
297
|
]).optional(),
|
|
298
|
+
endpoint_public: z.union([
|
|
299
|
+
z.url(),
|
|
300
|
+
z.enum([''])
|
|
301
|
+
]).optional(),
|
|
251
302
|
certificate_ca: z.string().optional(),
|
|
252
303
|
version_current: z.string().optional(),
|
|
253
304
|
created_at: z.string().optional(),
|
|
254
305
|
updated_at: z.string().optional(),
|
|
255
|
-
ready: z.boolean()
|
|
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()
|
|
306
|
+
ready: z.boolean()
|
|
257
307
|
});
|
|
308
|
+
/**
|
|
309
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
310
|
+
*/
|
|
258
311
|
export const zClusterUpdateInput = z.object({
|
|
259
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
260
|
-
tier: z.enum([
|
|
261
|
-
|
|
312
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
313
|
+
tier: z.enum([
|
|
314
|
+
'basic',
|
|
315
|
+
'pro',
|
|
316
|
+
'enterprise'
|
|
317
|
+
]).optional().default('basic'),
|
|
318
|
+
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'),
|
|
319
|
+
release_channel: z.enum([
|
|
320
|
+
'rapid',
|
|
321
|
+
'stable',
|
|
322
|
+
'extended'
|
|
323
|
+
]).optional().default('rapid'),
|
|
324
|
+
features: z.object({
|
|
325
|
+
gpu_sharing_strategy: z.enum([
|
|
326
|
+
'none',
|
|
327
|
+
'mps',
|
|
328
|
+
'time_slicing'
|
|
329
|
+
]).optional().default('none'),
|
|
330
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
331
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
332
|
+
}).optional().default({
|
|
333
|
+
gpu_sharing_strategy: 'none',
|
|
334
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
335
|
+
cilium_socket_lb_host_namespace_only: false
|
|
336
|
+
})
|
|
262
337
|
});
|
|
338
|
+
/**
|
|
339
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
340
|
+
*/
|
|
263
341
|
export const zFleetCreateInput = z.object({
|
|
264
342
|
limits: z.object({
|
|
265
|
-
cpu: z.
|
|
343
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
266
344
|
}).optional(),
|
|
267
345
|
gcp: z.object({
|
|
268
|
-
enabled: z.boolean()
|
|
269
|
-
project: z.string()
|
|
346
|
+
enabled: z.boolean(),
|
|
347
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
270
348
|
}).optional(),
|
|
271
349
|
hetzner: z.object({
|
|
272
|
-
enabled: z.boolean()
|
|
273
|
-
apiKey: z.string().optional()
|
|
350
|
+
enabled: z.boolean(),
|
|
351
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
274
352
|
}).optional(),
|
|
275
353
|
aws: z.object({
|
|
276
|
-
enabled: z.boolean()
|
|
277
|
-
controllerRoleArn: z.string()
|
|
354
|
+
enabled: z.boolean(),
|
|
355
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
278
356
|
}).optional(),
|
|
279
357
|
constraints: z.object({
|
|
280
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).optional(),
|
|
281
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).optional(),
|
|
358
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
359
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
282
360
|
'cfke.io/instance-family': z.array(z.enum([
|
|
283
361
|
'a1',
|
|
284
362
|
'a2',
|
|
@@ -438,7 +516,7 @@ export const zFleetCreateInput = z.object({
|
|
|
438
516
|
'x8g',
|
|
439
517
|
'z1d',
|
|
440
518
|
'z3'
|
|
441
|
-
])).optional(),
|
|
519
|
+
])).optional().default([]),
|
|
442
520
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
443
521
|
'africa-south1',
|
|
444
522
|
'ap-northeast-1',
|
|
@@ -504,30 +582,47 @@ export const zFleetCreateInput = z.object({
|
|
|
504
582
|
'us-west2',
|
|
505
583
|
'us-west3',
|
|
506
584
|
'us-west4'
|
|
507
|
-
])).optional()
|
|
508
|
-
}).optional()
|
|
509
|
-
|
|
585
|
+
])).optional().default([])
|
|
586
|
+
}).optional().default({
|
|
587
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
588
|
+
'kubernetes.io/arch': ['amd64'],
|
|
589
|
+
'cfke.io/instance-family': [],
|
|
590
|
+
'topology.kubernetes.io/region': []
|
|
591
|
+
}),
|
|
592
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
593
|
+
taints: z.array(z.object({
|
|
594
|
+
key: z.string(),
|
|
595
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
596
|
+
effect: z.enum([
|
|
597
|
+
'NoSchedule',
|
|
598
|
+
'PreferNoSchedule',
|
|
599
|
+
'NoExecute'
|
|
600
|
+
])
|
|
601
|
+
})).max(50).optional().default([]),
|
|
510
602
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
511
603
|
});
|
|
604
|
+
/**
|
|
605
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
606
|
+
*/
|
|
512
607
|
export const zFleet = z.object({
|
|
513
608
|
limits: z.object({
|
|
514
|
-
cpu: z.
|
|
609
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
515
610
|
}).optional(),
|
|
516
611
|
gcp: z.object({
|
|
517
|
-
enabled: z.boolean()
|
|
518
|
-
project: z.string()
|
|
612
|
+
enabled: z.boolean(),
|
|
613
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
519
614
|
}).optional(),
|
|
520
615
|
hetzner: z.object({
|
|
521
|
-
enabled: z.boolean()
|
|
522
|
-
apiKey: z.string().optional()
|
|
616
|
+
enabled: z.boolean(),
|
|
617
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
523
618
|
}).optional(),
|
|
524
619
|
aws: z.object({
|
|
525
|
-
enabled: z.boolean()
|
|
526
|
-
controllerRoleArn: z.string()
|
|
620
|
+
enabled: z.boolean(),
|
|
621
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
527
622
|
}).optional(),
|
|
528
623
|
constraints: z.object({
|
|
529
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).
|
|
530
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).
|
|
624
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
625
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
531
626
|
'cfke.io/instance-family': z.array(z.enum([
|
|
532
627
|
'a1',
|
|
533
628
|
'a2',
|
|
@@ -687,7 +782,7 @@ export const zFleet = z.object({
|
|
|
687
782
|
'x8g',
|
|
688
783
|
'z1d',
|
|
689
784
|
'z3'
|
|
690
|
-
])).optional(),
|
|
785
|
+
])).optional().default([]),
|
|
691
786
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
692
787
|
'africa-south1',
|
|
693
788
|
'ap-northeast-1',
|
|
@@ -753,30 +848,51 @@ export const zFleet = z.object({
|
|
|
753
848
|
'us-west2',
|
|
754
849
|
'us-west3',
|
|
755
850
|
'us-west4'
|
|
756
|
-
])).optional()
|
|
757
|
-
}).
|
|
758
|
-
|
|
759
|
-
|
|
851
|
+
])).optional().default([])
|
|
852
|
+
}).default({
|
|
853
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
854
|
+
'kubernetes.io/arch': ['amd64'],
|
|
855
|
+
'cfke.io/instance-family': [],
|
|
856
|
+
'topology.kubernetes.io/region': []
|
|
857
|
+
}),
|
|
858
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
859
|
+
taints: z.array(z.object({
|
|
860
|
+
key: z.string(),
|
|
861
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
862
|
+
effect: z.enum([
|
|
863
|
+
'NoSchedule',
|
|
864
|
+
'PreferNoSchedule',
|
|
865
|
+
'NoExecute'
|
|
866
|
+
])
|
|
867
|
+
})).max(50).default([]),
|
|
868
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
869
|
+
ready: z.boolean(),
|
|
870
|
+
status_message: z.string().optional(),
|
|
871
|
+
created_at: z.string(),
|
|
872
|
+
updated_at: z.string()
|
|
760
873
|
});
|
|
874
|
+
/**
|
|
875
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
876
|
+
*/
|
|
761
877
|
export const zFleetUpdateInput = z.object({
|
|
762
878
|
limits: z.object({
|
|
763
|
-
cpu: z.
|
|
879
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
764
880
|
}).optional(),
|
|
765
881
|
gcp: z.object({
|
|
766
|
-
enabled: z.boolean()
|
|
767
|
-
project: z.string()
|
|
882
|
+
enabled: z.boolean(),
|
|
883
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
768
884
|
}).optional(),
|
|
769
885
|
hetzner: z.object({
|
|
770
|
-
enabled: z.boolean()
|
|
771
|
-
apiKey: z.string().optional()
|
|
886
|
+
enabled: z.boolean(),
|
|
887
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
772
888
|
}).optional(),
|
|
773
889
|
aws: z.object({
|
|
774
|
-
enabled: z.boolean()
|
|
775
|
-
controllerRoleArn: z.string()
|
|
890
|
+
enabled: z.boolean(),
|
|
891
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
776
892
|
}).optional(),
|
|
777
893
|
constraints: z.object({
|
|
778
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).optional(),
|
|
779
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).optional(),
|
|
894
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
895
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
780
896
|
'cfke.io/instance-family': z.array(z.enum([
|
|
781
897
|
'a1',
|
|
782
898
|
'a2',
|
|
@@ -936,7 +1052,7 @@ export const zFleetUpdateInput = z.object({
|
|
|
936
1052
|
'x8g',
|
|
937
1053
|
'z1d',
|
|
938
1054
|
'z3'
|
|
939
|
-
])).optional(),
|
|
1055
|
+
])).optional().default([]),
|
|
940
1056
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
941
1057
|
'africa-south1',
|
|
942
1058
|
'ap-northeast-1',
|
|
@@ -1002,16 +1118,77 @@ export const zFleetUpdateInput = z.object({
|
|
|
1002
1118
|
'us-west2',
|
|
1003
1119
|
'us-west3',
|
|
1004
1120
|
'us-west4'
|
|
1005
|
-
])).optional()
|
|
1006
|
-
}).optional()
|
|
1007
|
-
|
|
1121
|
+
])).optional().default([])
|
|
1122
|
+
}).optional().default({
|
|
1123
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1124
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1125
|
+
'cfke.io/instance-family': [],
|
|
1126
|
+
'topology.kubernetes.io/region': []
|
|
1127
|
+
}),
|
|
1128
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
1129
|
+
taints: z.array(z.object({
|
|
1130
|
+
key: z.string(),
|
|
1131
|
+
value: z.string().max(63).regex(/^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$/).optional(),
|
|
1132
|
+
effect: z.enum([
|
|
1133
|
+
'NoSchedule',
|
|
1134
|
+
'PreferNoSchedule',
|
|
1135
|
+
'NoExecute'
|
|
1136
|
+
])
|
|
1137
|
+
})).max(50).optional().default([])
|
|
1138
|
+
});
|
|
1139
|
+
export const zInviteCreateInput = z.object({
|
|
1140
|
+
email: z.email(),
|
|
1141
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1008
1142
|
});
|
|
1009
1143
|
export const zInvite = z.object({
|
|
1010
1144
|
id: z.string().optional(),
|
|
1011
1145
|
organization_id: z.uuid().optional(),
|
|
1012
1146
|
date_created: z.iso.datetime(),
|
|
1013
1147
|
email: z.email().optional(),
|
|
1014
|
-
code: z.string().optional()
|
|
1148
|
+
code: z.string().optional(),
|
|
1149
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1150
|
+
});
|
|
1151
|
+
export const zInvoicePaymentAttempt = z.object({
|
|
1152
|
+
invoice_id: z.string(),
|
|
1153
|
+
number: z.string(),
|
|
1154
|
+
amount: z.number(),
|
|
1155
|
+
currency: z.string(),
|
|
1156
|
+
status: z.enum([
|
|
1157
|
+
'paid',
|
|
1158
|
+
'processing',
|
|
1159
|
+
'requires_action',
|
|
1160
|
+
'failed'
|
|
1161
|
+
]),
|
|
1162
|
+
client_secret: z.string(),
|
|
1163
|
+
failure_code: z.string(),
|
|
1164
|
+
failure_message: z.string()
|
|
1165
|
+
});
|
|
1166
|
+
export const zInvoicePaymentResult = z.object({
|
|
1167
|
+
code: z.enum([
|
|
1168
|
+
'paid',
|
|
1169
|
+
'processing',
|
|
1170
|
+
'action_required',
|
|
1171
|
+
'partially_paid',
|
|
1172
|
+
'failed',
|
|
1173
|
+
'nothing_due',
|
|
1174
|
+
'bank_transfer_due'
|
|
1175
|
+
]),
|
|
1176
|
+
message: z.string(),
|
|
1177
|
+
results: z.array(z.object({
|
|
1178
|
+
invoice_id: z.string(),
|
|
1179
|
+
number: z.string(),
|
|
1180
|
+
amount: z.number(),
|
|
1181
|
+
currency: z.string(),
|
|
1182
|
+
status: z.enum([
|
|
1183
|
+
'paid',
|
|
1184
|
+
'processing',
|
|
1185
|
+
'requires_action',
|
|
1186
|
+
'failed'
|
|
1187
|
+
]),
|
|
1188
|
+
client_secret: z.string(),
|
|
1189
|
+
failure_code: z.string(),
|
|
1190
|
+
failure_message: z.string()
|
|
1191
|
+
}))
|
|
1015
1192
|
});
|
|
1016
1193
|
export const zInvoice = z.object({
|
|
1017
1194
|
id: z.string().optional(),
|
|
@@ -1051,21 +1228,28 @@ export const zMarketplaceListing = z.object({
|
|
|
1051
1228
|
}).optional()
|
|
1052
1229
|
});
|
|
1053
1230
|
export const zOrganizationCreateInput = z.object({
|
|
1231
|
+
type: z.enum(['business', 'personal']),
|
|
1054
1232
|
email: z.email(),
|
|
1055
|
-
first_name: z.string(),
|
|
1056
|
-
last_name: z.string(),
|
|
1233
|
+
first_name: z.string().min(1),
|
|
1234
|
+
last_name: z.string().min(1),
|
|
1057
1235
|
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,}$/),
|
|
1058
1236
|
password: z.string().min(8)
|
|
1059
1237
|
});
|
|
1238
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1239
|
+
id: z.string()
|
|
1240
|
+
});
|
|
1060
1241
|
export const zOrganization = z.object({
|
|
1061
1242
|
id: z.uuid(),
|
|
1062
1243
|
name: z.string().min(2).max(120).optional(),
|
|
1244
|
+
type: z.enum(['business', 'personal']),
|
|
1063
1245
|
date_created: z.iso.datetime(),
|
|
1064
1246
|
quota: z.object({
|
|
1065
1247
|
basic_clusters_max: z.int().gte(0),
|
|
1066
1248
|
basic_clusters_available: z.int(),
|
|
1067
1249
|
pro_clusters_max: z.int().gte(0),
|
|
1068
1250
|
pro_clusters_available: z.int(),
|
|
1251
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1252
|
+
enterprise_clusters_available: z.int(),
|
|
1069
1253
|
fleets_max: z.int().gte(0),
|
|
1070
1254
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1071
1255
|
regions: z.array(z.string()).min(1),
|
|
@@ -1079,32 +1263,36 @@ export const zOrganization = z.object({
|
|
|
1079
1263
|
'active',
|
|
1080
1264
|
'closed',
|
|
1081
1265
|
'suspended'
|
|
1266
|
+
]),
|
|
1267
|
+
verification: z.enum([
|
|
1268
|
+
'none',
|
|
1269
|
+
'submitted',
|
|
1270
|
+
'verified'
|
|
1082
1271
|
])
|
|
1083
1272
|
});
|
|
1084
1273
|
export const zPaymentMethod = z.object({
|
|
1085
|
-
id: z.
|
|
1086
|
-
|
|
1087
|
-
|
|
1274
|
+
id: z.string(),
|
|
1275
|
+
type: z.enum([
|
|
1276
|
+
'card',
|
|
1277
|
+
'sepa_debit',
|
|
1278
|
+
'bank_transfer'
|
|
1279
|
+
]),
|
|
1088
1280
|
last4: z.string(),
|
|
1089
1281
|
exp_month: z.int().gte(1).lte(12),
|
|
1090
|
-
exp_year: z.int()
|
|
1091
|
-
brand: z.
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
'jcb',
|
|
1097
|
-
'mastercard',
|
|
1098
|
-
'unionpay',
|
|
1099
|
-
'visa',
|
|
1100
|
-
'unknown'
|
|
1101
|
-
])
|
|
1282
|
+
exp_year: z.int(),
|
|
1283
|
+
brand: z.string(),
|
|
1284
|
+
iban: z.string(),
|
|
1285
|
+
bic: z.string(),
|
|
1286
|
+
account_holder_name: z.string(),
|
|
1287
|
+
is_default: z.boolean()
|
|
1102
1288
|
});
|
|
1103
1289
|
export const zPlatformQuota = z.object({
|
|
1104
1290
|
basic_clusters_max: z.int().gte(0),
|
|
1105
1291
|
basic_clusters_available: z.int(),
|
|
1106
1292
|
pro_clusters_max: z.int().gte(0),
|
|
1107
1293
|
pro_clusters_available: z.int(),
|
|
1294
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1295
|
+
enterprise_clusters_available: z.int(),
|
|
1108
1296
|
fleets_max: z.int().gte(0),
|
|
1109
1297
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1110
1298
|
regions: z.array(z.string()).min(1),
|
|
@@ -1160,6 +1348,25 @@ export const zRegistryTag = z.object({
|
|
|
1160
1348
|
repository: z.string(),
|
|
1161
1349
|
uri: z.string()
|
|
1162
1350
|
});
|
|
1351
|
+
export const zRoadmapItemCreateInput = z.object({
|
|
1352
|
+
text: z.string().min(1).max(500)
|
|
1353
|
+
});
|
|
1354
|
+
export const zRoadmapItem = z.object({
|
|
1355
|
+
id: z.string(),
|
|
1356
|
+
text: z.string(),
|
|
1357
|
+
vote: z.union([
|
|
1358
|
+
z.literal(-1),
|
|
1359
|
+
z.literal(1),
|
|
1360
|
+
z.literal(2)
|
|
1361
|
+
])
|
|
1362
|
+
});
|
|
1363
|
+
export const zRoadmapVoteInput = z.object({
|
|
1364
|
+
value: z.union([
|
|
1365
|
+
z.literal(-1),
|
|
1366
|
+
z.literal(1),
|
|
1367
|
+
z.literal(2)
|
|
1368
|
+
])
|
|
1369
|
+
});
|
|
1163
1370
|
export const zTicketAttachment = z.object({
|
|
1164
1371
|
id: z.string(),
|
|
1165
1372
|
filename: z.string(),
|
|
@@ -1175,39 +1382,6 @@ export const zTicketCreateInput = z.object({
|
|
|
1175
1382
|
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1176
1383
|
properties: z.record(z.string(), z.unknown()).optional()
|
|
1177
1384
|
});
|
|
1178
|
-
export const zTicketListResponse = z.object({
|
|
1179
|
-
items: z.array(z.object({
|
|
1180
|
-
id: z.string(),
|
|
1181
|
-
status: z.enum([
|
|
1182
|
-
'waiting_on_us',
|
|
1183
|
-
'waiting_on_user',
|
|
1184
|
-
'closed'
|
|
1185
|
-
]),
|
|
1186
|
-
category: z.enum([
|
|
1187
|
-
'billing',
|
|
1188
|
-
'technical',
|
|
1189
|
-
'general'
|
|
1190
|
-
]),
|
|
1191
|
-
summary: z.string(),
|
|
1192
|
-
closed_at: z.iso.datetime().optional(),
|
|
1193
|
-
date_created: z.iso.datetime(),
|
|
1194
|
-
date_updated: z.iso.datetime(),
|
|
1195
|
-
messages: z.array(z.object({
|
|
1196
|
-
id: z.string(),
|
|
1197
|
-
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1198
|
-
body: z.string(),
|
|
1199
|
-
author_first_name: z.string().optional(),
|
|
1200
|
-
author_last_name: z.string().optional(),
|
|
1201
|
-
attachments: z.array(z.object({
|
|
1202
|
-
id: z.string(),
|
|
1203
|
-
filename: z.string(),
|
|
1204
|
-
content_type: z.string(),
|
|
1205
|
-
size: z.int()
|
|
1206
|
-
})).optional(),
|
|
1207
|
-
date_created: z.iso.datetime()
|
|
1208
|
-
})).optional()
|
|
1209
|
-
}))
|
|
1210
|
-
});
|
|
1211
1385
|
export const zTicketMessageInput = z.object({
|
|
1212
1386
|
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1213
1387
|
});
|
|
@@ -1273,26 +1447,58 @@ export const zTokenUpdateInput = z.object({
|
|
|
1273
1447
|
});
|
|
1274
1448
|
export const zUsageFacets = z.object({
|
|
1275
1449
|
cluster_id: z.array(z.string()).optional(),
|
|
1276
|
-
product: z.array(z.
|
|
1450
|
+
product: z.array(z.enum([
|
|
1451
|
+
'cfke_controlplane_basic',
|
|
1452
|
+
'cfke_controlplane_pro',
|
|
1453
|
+
'cfke_controlplane_enterprise',
|
|
1454
|
+
'cfke_connected_nodes_basic',
|
|
1455
|
+
'cfke_connected_nodes_pro',
|
|
1456
|
+
'cfke_connected_nodes_enterprise',
|
|
1457
|
+
'cfcr_storage'
|
|
1458
|
+
])).optional()
|
|
1277
1459
|
});
|
|
1278
1460
|
export const zUsageResponse = z.object({
|
|
1279
1461
|
data: z.array(z.object({
|
|
1280
1462
|
hour: z.string(),
|
|
1281
1463
|
cluster_id: z.string(),
|
|
1282
|
-
product: z.
|
|
1464
|
+
product: 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
|
+
]),
|
|
1283
1473
|
value: z.number(),
|
|
1284
1474
|
price: z.number(),
|
|
1285
1475
|
total: z.number()
|
|
1286
1476
|
})),
|
|
1287
1477
|
facets: z.object({
|
|
1288
1478
|
cluster_id: z.array(z.string()).optional(),
|
|
1289
|
-
product: z.array(z.
|
|
1479
|
+
product: z.array(z.enum([
|
|
1480
|
+
'cfke_controlplane_basic',
|
|
1481
|
+
'cfke_controlplane_pro',
|
|
1482
|
+
'cfke_controlplane_enterprise',
|
|
1483
|
+
'cfke_connected_nodes_basic',
|
|
1484
|
+
'cfke_connected_nodes_pro',
|
|
1485
|
+
'cfke_connected_nodes_enterprise',
|
|
1486
|
+
'cfcr_storage'
|
|
1487
|
+
])).optional()
|
|
1290
1488
|
})
|
|
1291
1489
|
});
|
|
1292
1490
|
export const zUsage = z.object({
|
|
1293
1491
|
hour: z.string(),
|
|
1294
1492
|
cluster_id: z.string(),
|
|
1295
|
-
product: z.
|
|
1493
|
+
product: z.enum([
|
|
1494
|
+
'cfke_controlplane_basic',
|
|
1495
|
+
'cfke_controlplane_pro',
|
|
1496
|
+
'cfke_controlplane_enterprise',
|
|
1497
|
+
'cfke_connected_nodes_basic',
|
|
1498
|
+
'cfke_connected_nodes_pro',
|
|
1499
|
+
'cfke_connected_nodes_enterprise',
|
|
1500
|
+
'cfcr_storage'
|
|
1501
|
+
]),
|
|
1296
1502
|
value: z.number(),
|
|
1297
1503
|
price: z.number(),
|
|
1298
1504
|
total: z.number()
|
|
@@ -1302,9 +1508,7 @@ export const zUserCreateInput = z.object({
|
|
|
1302
1508
|
first_name: z.string().min(1).max(50),
|
|
1303
1509
|
last_name: z.string().min(1).max(50),
|
|
1304
1510
|
code: z.string(),
|
|
1305
|
-
password: z.string().min(8)
|
|
1306
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
1307
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1511
|
+
password: z.string().min(8)
|
|
1308
1512
|
});
|
|
1309
1513
|
export const zUser = z.object({
|
|
1310
1514
|
email: z.email(),
|
|
@@ -1322,202 +1526,186 @@ export const zUserUpdateInput = z.object({
|
|
|
1322
1526
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1323
1527
|
status: z.enum(['active', 'inactive']).optional()
|
|
1324
1528
|
});
|
|
1325
|
-
export const
|
|
1326
|
-
|
|
1327
|
-
'hourly',
|
|
1328
|
-
'daily',
|
|
1329
|
-
'monthly'
|
|
1330
|
-
]).optional().default('daily')
|
|
1529
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1530
|
+
email: z.string()
|
|
1331
1531
|
});
|
|
1332
1532
|
/**
|
|
1333
|
-
*
|
|
1533
|
+
* An array of organizations the user belongs to.
|
|
1334
1534
|
*/
|
|
1335
|
-
export const
|
|
1535
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1536
|
+
realm: z.string().optional(),
|
|
1537
|
+
displayName: z.string().optional()
|
|
1538
|
+
}));
|
|
1336
1539
|
/**
|
|
1337
|
-
*
|
|
1540
|
+
* An array of users
|
|
1338
1541
|
*/
|
|
1339
|
-
export const
|
|
1542
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1543
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1340
1544
|
/**
|
|
1341
|
-
*
|
|
1342
|
-
*
|
|
1545
|
+
* Successfully created. Returns created user details.
|
|
1343
1546
|
*/
|
|
1344
|
-
export const
|
|
1345
|
-
|
|
1547
|
+
export const zCreateUserResponse = zUser;
|
|
1548
|
+
export const zDeleteUserPath = z.object({
|
|
1549
|
+
user_id: z.string()
|
|
1346
1550
|
});
|
|
1347
1551
|
/**
|
|
1348
|
-
*
|
|
1552
|
+
* User profile information
|
|
1349
1553
|
*/
|
|
1350
|
-
export const
|
|
1554
|
+
export const zDeleteUserResponse = zUser;
|
|
1555
|
+
export const zGetUserPath = z.object({
|
|
1556
|
+
user_id: z.string()
|
|
1557
|
+
});
|
|
1351
1558
|
/**
|
|
1352
|
-
*
|
|
1559
|
+
* User profile information
|
|
1353
1560
|
*/
|
|
1354
|
-
export const
|
|
1355
|
-
export const
|
|
1561
|
+
export const zGetUserResponse = zUser;
|
|
1562
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1563
|
+
export const zUpdateUserPath = z.object({
|
|
1564
|
+
user_id: z.string()
|
|
1565
|
+
});
|
|
1356
1566
|
/**
|
|
1357
|
-
* Successfully
|
|
1567
|
+
* Successfully created. Returns created user details.
|
|
1358
1568
|
*/
|
|
1359
|
-
export const
|
|
1569
|
+
export const zUpdateUserResponse = zUser;
|
|
1360
1570
|
/**
|
|
1361
|
-
*
|
|
1571
|
+
* Returns a list of access token details with masked secrets.
|
|
1362
1572
|
*/
|
|
1363
|
-
export const
|
|
1364
|
-
export const
|
|
1365
|
-
code: z.string().optional()
|
|
1366
|
-
});
|
|
1367
|
-
export const zListChartsPath = z.object({
|
|
1368
|
-
cluster_id: z.string()
|
|
1369
|
-
});
|
|
1573
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1574
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1370
1575
|
/**
|
|
1371
|
-
*
|
|
1576
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1372
1577
|
*/
|
|
1373
|
-
export const
|
|
1374
|
-
export const
|
|
1375
|
-
|
|
1376
|
-
|
|
1578
|
+
export const zCreateTokenResponse = zToken;
|
|
1579
|
+
export const zDeleteTokenPath = z.object({
|
|
1580
|
+
token_id: z.string()
|
|
1581
|
+
});
|
|
1582
|
+
export const zGetTokenPath = z.object({
|
|
1583
|
+
token_id: z.string()
|
|
1377
1584
|
});
|
|
1378
1585
|
/**
|
|
1379
|
-
*
|
|
1586
|
+
* Returns access token details with masked secret.
|
|
1380
1587
|
*/
|
|
1381
|
-
export const
|
|
1382
|
-
export const
|
|
1383
|
-
|
|
1384
|
-
|
|
1588
|
+
export const zGetTokenResponse = zToken;
|
|
1589
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1590
|
+
export const zUpdateTokenPath = z.object({
|
|
1591
|
+
token_id: z.string()
|
|
1385
1592
|
});
|
|
1386
1593
|
/**
|
|
1387
|
-
* Successfully
|
|
1594
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1388
1595
|
*/
|
|
1389
|
-
export const
|
|
1390
|
-
export const
|
|
1391
|
-
|
|
1392
|
-
chart_name: z.string()
|
|
1596
|
+
export const zUpdateTokenResponse = zToken;
|
|
1597
|
+
export const zRegenerateTokenPath = z.object({
|
|
1598
|
+
token_id: z.string()
|
|
1393
1599
|
});
|
|
1394
1600
|
/**
|
|
1395
|
-
* Returns
|
|
1601
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1396
1602
|
*/
|
|
1397
|
-
export const
|
|
1398
|
-
export const zUpdateChartBody = zChartUpdateInput;
|
|
1399
|
-
export const zUpdateChartPath = z.object({
|
|
1400
|
-
cluster_id: z.string(),
|
|
1401
|
-
chart_name: z.string()
|
|
1402
|
-
});
|
|
1603
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1403
1604
|
/**
|
|
1404
|
-
*
|
|
1605
|
+
* An array of tickets for the organization, newest first.
|
|
1405
1606
|
*/
|
|
1406
|
-
export const
|
|
1407
|
-
export const
|
|
1408
|
-
|
|
1607
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1608
|
+
export const zCreateTicketBody = z.object({
|
|
1609
|
+
payload: z.string().optional(),
|
|
1610
|
+
attachments: z.array(z.string()).optional()
|
|
1409
1611
|
});
|
|
1410
1612
|
/**
|
|
1411
|
-
*
|
|
1613
|
+
* Ticket created.
|
|
1412
1614
|
*/
|
|
1413
|
-
export const
|
|
1414
|
-
export const
|
|
1415
|
-
|
|
1416
|
-
cluster_id: z.string()
|
|
1615
|
+
export const zCreateTicketResponse = zTicket;
|
|
1616
|
+
export const zCloseTicketPath = z.object({
|
|
1617
|
+
ticket_id: z.string()
|
|
1417
1618
|
});
|
|
1418
1619
|
/**
|
|
1419
|
-
*
|
|
1620
|
+
* Ticket closed.
|
|
1420
1621
|
*/
|
|
1421
|
-
export const
|
|
1422
|
-
export const
|
|
1423
|
-
|
|
1424
|
-
fleet_name: z.string()
|
|
1622
|
+
export const zCloseTicketResponse = zTicket;
|
|
1623
|
+
export const zGetTicketPath = z.object({
|
|
1624
|
+
ticket_id: z.string()
|
|
1425
1625
|
});
|
|
1426
1626
|
/**
|
|
1427
|
-
*
|
|
1627
|
+
* Ticket with messages (internal notes excluded).
|
|
1428
1628
|
*/
|
|
1429
|
-
export const
|
|
1430
|
-
export const
|
|
1431
|
-
|
|
1432
|
-
|
|
1629
|
+
export const zGetTicketResponse = zTicket;
|
|
1630
|
+
export const zReplyTicketBody = z.object({
|
|
1631
|
+
payload: z.string().optional(),
|
|
1632
|
+
attachments: z.array(z.string()).optional()
|
|
1633
|
+
});
|
|
1634
|
+
export const zReplyTicketPath = z.object({
|
|
1635
|
+
ticket_id: z.string()
|
|
1433
1636
|
});
|
|
1434
1637
|
/**
|
|
1435
|
-
*
|
|
1638
|
+
* Reply appended.
|
|
1436
1639
|
*/
|
|
1437
|
-
export const
|
|
1438
|
-
export const
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
fleet_name: z.string()
|
|
1640
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1641
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1642
|
+
ticket_id: z.string(),
|
|
1643
|
+
attachment_id: z.string()
|
|
1442
1644
|
});
|
|
1443
1645
|
/**
|
|
1444
|
-
*
|
|
1646
|
+
* Attachment binary stream.
|
|
1445
1647
|
*/
|
|
1446
|
-
export const
|
|
1447
|
-
export const zQueryClusterPath = z.object({
|
|
1448
|
-
cluster_id: z.string()
|
|
1449
|
-
});
|
|
1648
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1450
1649
|
/**
|
|
1451
|
-
* An array of
|
|
1650
|
+
* An array of roadmap items, newest first.
|
|
1452
1651
|
*/
|
|
1453
|
-
export const
|
|
1454
|
-
export const
|
|
1652
|
+
export const zListRoadmapResponse = z.array(zRoadmapItem);
|
|
1653
|
+
export const zSuggestRoadmapBody = zRoadmapItemCreateInput;
|
|
1455
1654
|
/**
|
|
1456
|
-
*
|
|
1655
|
+
* Suggestion submitted for review.
|
|
1457
1656
|
*/
|
|
1458
|
-
export const
|
|
1459
|
-
export const
|
|
1460
|
-
|
|
1657
|
+
export const zSuggestRoadmapResponse = zRoadmapItem;
|
|
1658
|
+
export const zUnvoteRoadmapPath = z.object({
|
|
1659
|
+
item_id: z.string()
|
|
1461
1660
|
});
|
|
1462
1661
|
/**
|
|
1463
|
-
*
|
|
1662
|
+
* Vote removed. Returns the item without a vote.
|
|
1464
1663
|
*/
|
|
1465
|
-
export const
|
|
1466
|
-
export const
|
|
1467
|
-
|
|
1664
|
+
export const zUnvoteRoadmapResponse = zRoadmapItem;
|
|
1665
|
+
export const zVoteRoadmapBody = zRoadmapVoteInput;
|
|
1666
|
+
export const zVoteRoadmapPath = z.object({
|
|
1667
|
+
item_id: z.string()
|
|
1468
1668
|
});
|
|
1469
1669
|
/**
|
|
1470
|
-
* Returns
|
|
1670
|
+
* Vote saved. Returns the item with your vote.
|
|
1471
1671
|
*/
|
|
1472
|
-
export const
|
|
1473
|
-
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1474
|
-
export const zUpdateClusterPath = z.object({
|
|
1475
|
-
cluster_id: z.string()
|
|
1476
|
-
});
|
|
1672
|
+
export const zVoteRoadmapResponse = zRoadmapItem;
|
|
1477
1673
|
/**
|
|
1478
|
-
*
|
|
1674
|
+
* List of repositories
|
|
1479
1675
|
*/
|
|
1480
|
-
export const
|
|
1481
|
-
export const
|
|
1482
|
-
|
|
1676
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1677
|
+
export const zListTagsPath = z.object({
|
|
1678
|
+
region: z.string(),
|
|
1679
|
+
repository: z.string()
|
|
1483
1680
|
});
|
|
1484
1681
|
/**
|
|
1485
|
-
*
|
|
1682
|
+
* Repository with tags
|
|
1486
1683
|
*/
|
|
1487
|
-
export const
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
export const zCreateInviteBody = z.object({
|
|
1493
|
-
email: z.string().optional()
|
|
1684
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1685
|
+
export const zDeleteTagPath = z.object({
|
|
1686
|
+
region: z.string(),
|
|
1687
|
+
repository: z.string(),
|
|
1688
|
+
tag: z.string()
|
|
1494
1689
|
});
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
export const zGetInvitePath = z.object({
|
|
1500
|
-
code: z.string()
|
|
1690
|
+
export const zGetTagPath = z.object({
|
|
1691
|
+
region: z.string(),
|
|
1692
|
+
repository: z.string(),
|
|
1693
|
+
tag: z.string()
|
|
1501
1694
|
});
|
|
1502
1695
|
/**
|
|
1503
|
-
*
|
|
1696
|
+
* Tag details
|
|
1504
1697
|
*/
|
|
1505
|
-
export const
|
|
1506
|
-
export const zDeleteInvitePath = z.object({
|
|
1507
|
-
email: z.string()
|
|
1508
|
-
});
|
|
1698
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1509
1699
|
/**
|
|
1510
|
-
*
|
|
1700
|
+
* Returns a single object containing organization details.
|
|
1511
1701
|
*/
|
|
1512
|
-
export const
|
|
1513
|
-
export const
|
|
1514
|
-
chart_name: z.string(),
|
|
1515
|
-
version_channel: z.string()
|
|
1516
|
-
});
|
|
1702
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1703
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1517
1704
|
/**
|
|
1518
|
-
*
|
|
1705
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1706
|
+
*
|
|
1519
1707
|
*/
|
|
1520
|
-
export const
|
|
1708
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1521
1709
|
/**
|
|
1522
1710
|
* JSON-RPC 2.0 request payload
|
|
1523
1711
|
*/
|
|
@@ -1546,154 +1734,218 @@ export const zPostMcpResponse = z.object({
|
|
|
1546
1734
|
}).optional()
|
|
1547
1735
|
});
|
|
1548
1736
|
/**
|
|
1549
|
-
*
|
|
1737
|
+
* An array of chart listings in the marketplace.
|
|
1550
1738
|
*/
|
|
1551
|
-
export const
|
|
1552
|
-
export const
|
|
1739
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1740
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1741
|
+
chart_name: z.string(),
|
|
1742
|
+
version_channel: z.string()
|
|
1743
|
+
});
|
|
1553
1744
|
/**
|
|
1554
|
-
*
|
|
1745
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1555
1746
|
*/
|
|
1556
|
-
export const
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1747
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1748
|
+
/**
|
|
1749
|
+
* An array of invites
|
|
1750
|
+
*/
|
|
1751
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1752
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1753
|
+
/**
|
|
1754
|
+
* Successfully created. Returns created invite details.
|
|
1755
|
+
*/
|
|
1756
|
+
export const zCreateInviteResponse = zInvite;
|
|
1757
|
+
export const zGetInvitePath = z.object({
|
|
1758
|
+
code: z.string()
|
|
1560
1759
|
});
|
|
1561
1760
|
/**
|
|
1562
|
-
*
|
|
1761
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1563
1762
|
*/
|
|
1564
|
-
export const
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
repository: z.string(),
|
|
1568
|
-
tag: z.string()
|
|
1763
|
+
export const zGetInviteResponse = z.object({
|
|
1764
|
+
email: z.email().optional(),
|
|
1765
|
+
organization_id: z.string().optional()
|
|
1569
1766
|
});
|
|
1570
|
-
export const
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1767
|
+
export const zDeleteInvitePath = z.object({
|
|
1768
|
+
email: z.email()
|
|
1769
|
+
});
|
|
1770
|
+
export const zQueryClusterPath = z.object({
|
|
1771
|
+
cluster_id: z.string()
|
|
1772
|
+
});
|
|
1773
|
+
export const zListFleetsPath = z.object({
|
|
1774
|
+
cluster_id: z.string()
|
|
1574
1775
|
});
|
|
1575
1776
|
/**
|
|
1576
|
-
*
|
|
1777
|
+
* An array of fleets
|
|
1577
1778
|
*/
|
|
1578
|
-
export const
|
|
1779
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1780
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1781
|
+
export const zCreateFleetPath = z.object({
|
|
1782
|
+
cluster_id: z.string()
|
|
1783
|
+
});
|
|
1579
1784
|
/**
|
|
1580
|
-
*
|
|
1785
|
+
* Successfully created. Returns created Fleet ID.
|
|
1581
1786
|
*/
|
|
1582
|
-
export const
|
|
1583
|
-
export const
|
|
1584
|
-
|
|
1585
|
-
|
|
1787
|
+
export const zCreateFleetResponse = z.string();
|
|
1788
|
+
export const zDeleteFleetPath = z.object({
|
|
1789
|
+
cluster_id: z.string(),
|
|
1790
|
+
fleet_name: z.string()
|
|
1586
1791
|
});
|
|
1587
1792
|
/**
|
|
1588
|
-
*
|
|
1793
|
+
* Successfully deleted.
|
|
1589
1794
|
*/
|
|
1590
|
-
export const
|
|
1591
|
-
export const
|
|
1592
|
-
|
|
1795
|
+
export const zDeleteFleetResponse = z.string();
|
|
1796
|
+
export const zGetFleetPath = z.object({
|
|
1797
|
+
cluster_id: z.string(),
|
|
1798
|
+
fleet_name: z.string()
|
|
1593
1799
|
});
|
|
1594
1800
|
/**
|
|
1595
|
-
*
|
|
1801
|
+
* Returns a single object containing fleet details.
|
|
1596
1802
|
*/
|
|
1597
|
-
export const
|
|
1598
|
-
export const
|
|
1599
|
-
|
|
1803
|
+
export const zGetFleetResponse = zFleet;
|
|
1804
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1805
|
+
export const zUpdateFleetPath = z.object({
|
|
1806
|
+
cluster_id: z.string(),
|
|
1807
|
+
fleet_name: z.string()
|
|
1600
1808
|
});
|
|
1601
1809
|
/**
|
|
1602
|
-
*
|
|
1810
|
+
* Successfully updated.
|
|
1603
1811
|
*/
|
|
1604
|
-
export const
|
|
1605
|
-
export const
|
|
1606
|
-
|
|
1607
|
-
attachments: z.array(z.string()).optional()
|
|
1608
|
-
});
|
|
1609
|
-
export const zReplyTicketPath = z.object({
|
|
1610
|
-
ticket_id: z.string()
|
|
1812
|
+
export const zUpdateFleetResponse = z.string();
|
|
1813
|
+
export const zListChartsPath = z.object({
|
|
1814
|
+
cluster_id: z.string()
|
|
1611
1815
|
});
|
|
1612
1816
|
/**
|
|
1613
|
-
*
|
|
1817
|
+
* An array of charts
|
|
1614
1818
|
*/
|
|
1615
|
-
export const
|
|
1616
|
-
export const
|
|
1617
|
-
|
|
1618
|
-
|
|
1819
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1820
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1821
|
+
export const zCreateChartPath = z.object({
|
|
1822
|
+
cluster_id: z.string()
|
|
1619
1823
|
});
|
|
1620
1824
|
/**
|
|
1621
|
-
*
|
|
1825
|
+
* Successfully created. Returns created Chart ID.
|
|
1622
1826
|
*/
|
|
1623
|
-
export const
|
|
1827
|
+
export const zCreateChartResponse = z.string();
|
|
1828
|
+
export const zDeleteChartPath = z.object({
|
|
1829
|
+
cluster_id: z.string(),
|
|
1830
|
+
chart_name: z.string()
|
|
1831
|
+
});
|
|
1624
1832
|
/**
|
|
1625
|
-
*
|
|
1833
|
+
* Successfully deleted.
|
|
1626
1834
|
*/
|
|
1627
|
-
export const
|
|
1628
|
-
export const
|
|
1835
|
+
export const zDeleteChartResponse = z.string();
|
|
1836
|
+
export const zGetChartPath = z.object({
|
|
1837
|
+
cluster_id: z.string(),
|
|
1838
|
+
chart_name: z.string()
|
|
1839
|
+
});
|
|
1629
1840
|
/**
|
|
1630
|
-
*
|
|
1841
|
+
* Returns a single object containing chart details.
|
|
1631
1842
|
*/
|
|
1632
|
-
export const
|
|
1633
|
-
export const
|
|
1634
|
-
|
|
1843
|
+
export const zGetChartResponse = zChart;
|
|
1844
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1845
|
+
export const zUpdateChartPath = z.object({
|
|
1846
|
+
cluster_id: z.string(),
|
|
1847
|
+
chart_name: z.string()
|
|
1635
1848
|
});
|
|
1636
|
-
|
|
1637
|
-
|
|
1849
|
+
/**
|
|
1850
|
+
* Successfully updated.
|
|
1851
|
+
*/
|
|
1852
|
+
export const zUpdateChartResponse = z.string();
|
|
1853
|
+
/**
|
|
1854
|
+
* An array of clusters
|
|
1855
|
+
*/
|
|
1856
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1857
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1858
|
+
/**
|
|
1859
|
+
* Successfully created. Returns created Cluster ID.
|
|
1860
|
+
*/
|
|
1861
|
+
export const zCreateClusterResponse = z.string();
|
|
1862
|
+
export const zDeleteClusterPath = z.object({
|
|
1863
|
+
cluster_id: z.string()
|
|
1638
1864
|
});
|
|
1639
1865
|
/**
|
|
1640
|
-
*
|
|
1866
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1641
1867
|
*/
|
|
1642
|
-
export const
|
|
1643
|
-
export const
|
|
1644
|
-
|
|
1645
|
-
token_id: z.string()
|
|
1868
|
+
export const zDeleteClusterResponse = z.string();
|
|
1869
|
+
export const zGetClusterPath = z.object({
|
|
1870
|
+
cluster_id: z.string()
|
|
1646
1871
|
});
|
|
1647
1872
|
/**
|
|
1648
|
-
*
|
|
1873
|
+
* Returns a single object containing cluster details.
|
|
1649
1874
|
*/
|
|
1650
|
-
export const
|
|
1651
|
-
export const
|
|
1652
|
-
|
|
1875
|
+
export const zGetClusterResponse = zCluster;
|
|
1876
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1877
|
+
export const zUpdateClusterPath = z.object({
|
|
1878
|
+
cluster_id: z.string()
|
|
1653
1879
|
});
|
|
1654
1880
|
/**
|
|
1655
|
-
* Successfully updated. Returns updated
|
|
1881
|
+
* Successfully updated. Returns updated cluster details.
|
|
1656
1882
|
*/
|
|
1657
|
-
export const
|
|
1658
|
-
export const
|
|
1659
|
-
|
|
1883
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1884
|
+
export const zGetJoinInformationPath = z.object({
|
|
1885
|
+
cluster_id: z.string()
|
|
1660
1886
|
});
|
|
1661
1887
|
/**
|
|
1662
|
-
* An
|
|
1888
|
+
* An object of cluster join information
|
|
1663
1889
|
*/
|
|
1664
|
-
export const
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1890
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1891
|
+
export const zGetUsageQuery = z.object({
|
|
1892
|
+
granularity: z.enum([
|
|
1893
|
+
'hourly',
|
|
1894
|
+
'daily',
|
|
1895
|
+
'monthly'
|
|
1896
|
+
]).optional().default('daily')
|
|
1897
|
+
});
|
|
1668
1898
|
/**
|
|
1669
|
-
*
|
|
1899
|
+
* Usage data with facets for filtering
|
|
1670
1900
|
*/
|
|
1671
|
-
export const
|
|
1672
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1901
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1673
1902
|
/**
|
|
1674
|
-
*
|
|
1903
|
+
* 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.
|
|
1904
|
+
*
|
|
1675
1905
|
*/
|
|
1676
|
-
export const
|
|
1677
|
-
|
|
1678
|
-
user_id: z.string()
|
|
1906
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1907
|
+
id: z.string().optional()
|
|
1679
1908
|
});
|
|
1680
1909
|
/**
|
|
1681
|
-
*
|
|
1910
|
+
* An array of payment methods.
|
|
1682
1911
|
*/
|
|
1683
|
-
export const
|
|
1684
|
-
export const
|
|
1685
|
-
|
|
1912
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1913
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1914
|
+
paymentMethodId: z.string()
|
|
1686
1915
|
});
|
|
1687
1916
|
/**
|
|
1688
|
-
*
|
|
1917
|
+
* Default payment method updated.
|
|
1689
1918
|
*/
|
|
1690
|
-
export const
|
|
1691
|
-
export const
|
|
1692
|
-
|
|
1693
|
-
user_id: z.string()
|
|
1919
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1920
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1921
|
+
paymentMethodId: z.string()
|
|
1694
1922
|
});
|
|
1695
1923
|
/**
|
|
1696
|
-
*
|
|
1924
|
+
* Payment method deleted.
|
|
1697
1925
|
*/
|
|
1698
|
-
export const
|
|
1926
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1927
|
+
/**
|
|
1928
|
+
* An array of usage records.
|
|
1929
|
+
*/
|
|
1930
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1931
|
+
/**
|
|
1932
|
+
* The outcome of the attempt.
|
|
1933
|
+
*/
|
|
1934
|
+
export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
|
|
1935
|
+
/**
|
|
1936
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1937
|
+
*/
|
|
1938
|
+
export const zGetContactResponse = zBillingContact;
|
|
1939
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1940
|
+
/**
|
|
1941
|
+
* Successfully updated. Returns updated organization details.
|
|
1942
|
+
*/
|
|
1943
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1944
|
+
/**
|
|
1945
|
+
* An array of the applied promotional credits records.
|
|
1946
|
+
*/
|
|
1947
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1948
|
+
export const zRedeemCreditsBody = z.object({
|
|
1949
|
+
code: z.string().optional()
|
|
1950
|
+
});
|
|
1699
1951
|
//# sourceMappingURL=zod.gen.js.map
|