@cloudfleet/sdk 0.0.1-aca000f → 0.0.1-af2f3f9
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 +420 -386
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +428 -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 +397 -82
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +496 -142
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +237 -215
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +338 -312
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1048 -720
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1547 -1426
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +435 -311
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -11
package/dist/zod.gen.js
CHANGED
|
@@ -167,22 +167,7 @@ export const zChart = z.object({
|
|
|
167
167
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
168
168
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
169
169
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
170
|
-
status: z.
|
|
171
|
-
'InstallSucceeded',
|
|
172
|
-
'InstallFailed',
|
|
173
|
-
'UpgradeSucceeded',
|
|
174
|
-
'UpgradeFailed',
|
|
175
|
-
'TestSucceeded',
|
|
176
|
-
'TestFailed',
|
|
177
|
-
'RollbackSucceeded',
|
|
178
|
-
'RollbackFailed',
|
|
179
|
-
'UninstallSucceeded',
|
|
180
|
-
'UninstallFailed',
|
|
181
|
-
'ArtifactFailed',
|
|
182
|
-
'DependencyNotReady',
|
|
183
|
-
'Progressing',
|
|
184
|
-
'SourceNotReady'
|
|
185
|
-
]),
|
|
170
|
+
status: z.string(),
|
|
186
171
|
version_current: z.string(),
|
|
187
172
|
created_at: z.string(),
|
|
188
173
|
updated_at: z.string(),
|
|
@@ -192,26 +177,55 @@ export const zChartUpdateInput = z.object({
|
|
|
192
177
|
values: z.string(),
|
|
193
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-]+)*))?$/)
|
|
194
179
|
});
|
|
180
|
+
/**
|
|
181
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
182
|
+
*/
|
|
195
183
|
export const zClusterCreateInput = z.object({
|
|
196
184
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
197
|
-
tier: z.enum([
|
|
198
|
-
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
+
})
|
|
210
223
|
});
|
|
211
224
|
export const zClusterJoinInformation = z.object({
|
|
212
225
|
certificate_authority: z.string(),
|
|
213
226
|
endpoint: z.url(),
|
|
214
227
|
cluster_dns: z.string(),
|
|
228
|
+
pod_cidr: z.string(),
|
|
215
229
|
auth_key: z.string(),
|
|
216
230
|
bootstrap_token: z.string(),
|
|
217
231
|
versions: z.object({
|
|
@@ -226,24 +240,55 @@ export const zClusterJoinInformation = z.object({
|
|
|
226
240
|
gcp_workload_identity_provider: z.string()
|
|
227
241
|
})
|
|
228
242
|
});
|
|
243
|
+
/**
|
|
244
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
245
|
+
*/
|
|
229
246
|
export const zCluster = z.object({
|
|
230
247
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
231
|
-
tier: z.enum([
|
|
232
|
-
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
248
|
+
tier: z.enum([
|
|
249
|
+
'basic',
|
|
250
|
+
'pro',
|
|
251
|
+
'enterprise'
|
|
252
|
+
]).default('basic'),
|
|
253
|
+
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'),
|
|
254
|
+
release_channel: z.enum([
|
|
255
|
+
'rapid',
|
|
256
|
+
'stable',
|
|
257
|
+
'extended'
|
|
258
|
+
]).default('rapid'),
|
|
259
|
+
features: z.object({
|
|
260
|
+
gpu_sharing_strategy: z.enum([
|
|
261
|
+
'none',
|
|
262
|
+
'mps',
|
|
263
|
+
'time_slicing'
|
|
264
|
+
]).default('none'),
|
|
265
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
266
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
267
|
+
}).default({
|
|
268
|
+
gpu_sharing_strategy: 'none',
|
|
269
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
270
|
+
cilium_socket_lb_host_namespace_only: false
|
|
271
|
+
}),
|
|
272
|
+
region: z.string(),
|
|
273
|
+
networking: z.object({
|
|
274
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
275
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
276
|
+
dual_stack: z.boolean(),
|
|
277
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
278
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
279
|
+
}).default({
|
|
280
|
+
pod_cidr: '10.244.0.0/16',
|
|
281
|
+
service_cidr: '10.96.0.0/12',
|
|
282
|
+
dual_stack: false,
|
|
283
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
284
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
285
|
+
}),
|
|
238
286
|
id: z.uuid(),
|
|
239
287
|
status: z.enum([
|
|
240
|
-
'active',
|
|
241
|
-
'disabled',
|
|
242
|
-
'deleted',
|
|
243
288
|
'creating',
|
|
244
289
|
'deployed',
|
|
245
|
-
'
|
|
246
|
-
'
|
|
290
|
+
'updating',
|
|
291
|
+
'disabled'
|
|
247
292
|
]),
|
|
248
293
|
endpoint: z.union([
|
|
249
294
|
z.url(),
|
|
@@ -257,14 +302,41 @@ export const zCluster = z.object({
|
|
|
257
302
|
version_current: z.string().optional(),
|
|
258
303
|
created_at: z.string().optional(),
|
|
259
304
|
updated_at: z.string().optional(),
|
|
260
|
-
ready: z.boolean()
|
|
261
|
-
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
305
|
+
ready: z.boolean()
|
|
262
306
|
});
|
|
307
|
+
/**
|
|
308
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
309
|
+
*/
|
|
263
310
|
export const zClusterUpdateInput = z.object({
|
|
264
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
265
|
-
tier: z.enum([
|
|
266
|
-
|
|
311
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
312
|
+
tier: z.enum([
|
|
313
|
+
'basic',
|
|
314
|
+
'pro',
|
|
315
|
+
'enterprise'
|
|
316
|
+
]).optional().default('basic'),
|
|
317
|
+
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'),
|
|
318
|
+
release_channel: z.enum([
|
|
319
|
+
'rapid',
|
|
320
|
+
'stable',
|
|
321
|
+
'extended'
|
|
322
|
+
]).optional().default('rapid'),
|
|
323
|
+
features: z.object({
|
|
324
|
+
gpu_sharing_strategy: z.enum([
|
|
325
|
+
'none',
|
|
326
|
+
'mps',
|
|
327
|
+
'time_slicing'
|
|
328
|
+
]).optional().default('none'),
|
|
329
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
330
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
331
|
+
}).optional().default({
|
|
332
|
+
gpu_sharing_strategy: 'none',
|
|
333
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
334
|
+
cilium_socket_lb_host_namespace_only: false
|
|
335
|
+
})
|
|
267
336
|
});
|
|
337
|
+
/**
|
|
338
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
339
|
+
*/
|
|
268
340
|
export const zFleetCreateInput = z.object({
|
|
269
341
|
limits: z.object({
|
|
270
342
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -275,7 +347,7 @@ export const zFleetCreateInput = z.object({
|
|
|
275
347
|
}).optional(),
|
|
276
348
|
hetzner: z.object({
|
|
277
349
|
enabled: z.boolean(),
|
|
278
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
350
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
279
351
|
}).optional(),
|
|
280
352
|
aws: z.object({
|
|
281
353
|
enabled: z.boolean(),
|
|
@@ -443,7 +515,7 @@ export const zFleetCreateInput = z.object({
|
|
|
443
515
|
'x8g',
|
|
444
516
|
'z1d',
|
|
445
517
|
'z3'
|
|
446
|
-
])).optional(),
|
|
518
|
+
])).optional().default([]),
|
|
447
519
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
448
520
|
'africa-south1',
|
|
449
521
|
'ap-northeast-1',
|
|
@@ -509,11 +581,19 @@ export const zFleetCreateInput = z.object({
|
|
|
509
581
|
'us-west2',
|
|
510
582
|
'us-west3',
|
|
511
583
|
'us-west4'
|
|
512
|
-
])).optional()
|
|
513
|
-
}).optional()
|
|
584
|
+
])).optional().default([])
|
|
585
|
+
}).optional().default({
|
|
586
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
587
|
+
'kubernetes.io/arch': ['amd64'],
|
|
588
|
+
'cfke.io/instance-family': [],
|
|
589
|
+
'topology.kubernetes.io/region': []
|
|
590
|
+
}),
|
|
514
591
|
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
515
592
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
516
593
|
});
|
|
594
|
+
/**
|
|
595
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
596
|
+
*/
|
|
517
597
|
export const zFleet = z.object({
|
|
518
598
|
limits: z.object({
|
|
519
599
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -531,8 +611,8 @@ export const zFleet = z.object({
|
|
|
531
611
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
532
612
|
}).optional(),
|
|
533
613
|
constraints: z.object({
|
|
534
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).
|
|
535
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).
|
|
614
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
615
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
536
616
|
'cfke.io/instance-family': z.array(z.enum([
|
|
537
617
|
'a1',
|
|
538
618
|
'a2',
|
|
@@ -692,7 +772,7 @@ export const zFleet = z.object({
|
|
|
692
772
|
'x8g',
|
|
693
773
|
'z1d',
|
|
694
774
|
'z3'
|
|
695
|
-
])).optional(),
|
|
775
|
+
])).optional().default([]),
|
|
696
776
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
697
777
|
'africa-south1',
|
|
698
778
|
'ap-northeast-1',
|
|
@@ -758,11 +838,23 @@ export const zFleet = z.object({
|
|
|
758
838
|
'us-west2',
|
|
759
839
|
'us-west3',
|
|
760
840
|
'us-west4'
|
|
761
|
-
])).optional()
|
|
762
|
-
}).
|
|
841
|
+
])).optional().default([])
|
|
842
|
+
}).default({
|
|
843
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
844
|
+
'kubernetes.io/arch': ['amd64'],
|
|
845
|
+
'cfke.io/instance-family': [],
|
|
846
|
+
'topology.kubernetes.io/region': []
|
|
847
|
+
}),
|
|
763
848
|
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
764
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
849
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
850
|
+
ready: z.boolean(),
|
|
851
|
+
status_message: z.string().optional(),
|
|
852
|
+
created_at: z.string(),
|
|
853
|
+
updated_at: z.string()
|
|
765
854
|
});
|
|
855
|
+
/**
|
|
856
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
857
|
+
*/
|
|
766
858
|
export const zFleetUpdateInput = z.object({
|
|
767
859
|
limits: z.object({
|
|
768
860
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -773,15 +865,15 @@ export const zFleetUpdateInput = z.object({
|
|
|
773
865
|
}).optional(),
|
|
774
866
|
hetzner: z.object({
|
|
775
867
|
enabled: z.boolean(),
|
|
776
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
868
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
777
869
|
}).optional(),
|
|
778
870
|
aws: z.object({
|
|
779
871
|
enabled: z.boolean(),
|
|
780
872
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
781
873
|
}).optional(),
|
|
782
874
|
constraints: z.object({
|
|
783
|
-
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
784
|
-
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
875
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
876
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
785
877
|
'cfke.io/instance-family': z.array(z.enum([
|
|
786
878
|
'a1',
|
|
787
879
|
'a2',
|
|
@@ -941,7 +1033,7 @@ export const zFleetUpdateInput = z.object({
|
|
|
941
1033
|
'x8g',
|
|
942
1034
|
'z1d',
|
|
943
1035
|
'z3'
|
|
944
|
-
])).optional(),
|
|
1036
|
+
])).optional().default([]),
|
|
945
1037
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
946
1038
|
'africa-south1',
|
|
947
1039
|
'ap-northeast-1',
|
|
@@ -1007,16 +1099,26 @@ export const zFleetUpdateInput = z.object({
|
|
|
1007
1099
|
'us-west2',
|
|
1008
1100
|
'us-west3',
|
|
1009
1101
|
'us-west4'
|
|
1010
|
-
])).optional()
|
|
1011
|
-
}).optional()
|
|
1012
|
-
|
|
1102
|
+
])).optional().default([])
|
|
1103
|
+
}).optional().default({
|
|
1104
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1105
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1106
|
+
'cfke.io/instance-family': [],
|
|
1107
|
+
'topology.kubernetes.io/region': []
|
|
1108
|
+
}),
|
|
1109
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
|
|
1110
|
+
});
|
|
1111
|
+
export const zInviteCreateInput = z.object({
|
|
1112
|
+
email: z.email(),
|
|
1113
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1013
1114
|
});
|
|
1014
1115
|
export const zInvite = z.object({
|
|
1015
1116
|
id: z.string().optional(),
|
|
1016
1117
|
organization_id: z.uuid().optional(),
|
|
1017
1118
|
date_created: z.iso.datetime(),
|
|
1018
1119
|
email: z.email().optional(),
|
|
1019
|
-
code: z.string().optional()
|
|
1120
|
+
code: z.string().optional(),
|
|
1121
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1020
1122
|
});
|
|
1021
1123
|
export const zInvoice = z.object({
|
|
1022
1124
|
id: z.string().optional(),
|
|
@@ -1063,6 +1165,9 @@ export const zOrganizationCreateInput = z.object({
|
|
|
1063
1165
|
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,}$/),
|
|
1064
1166
|
password: z.string().min(8)
|
|
1065
1167
|
});
|
|
1168
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1169
|
+
id: z.string()
|
|
1170
|
+
});
|
|
1066
1171
|
export const zOrganization = z.object({
|
|
1067
1172
|
id: z.uuid(),
|
|
1068
1173
|
name: z.string().min(2).max(120).optional(),
|
|
@@ -1073,6 +1178,8 @@ export const zOrganization = z.object({
|
|
|
1073
1178
|
basic_clusters_available: z.int(),
|
|
1074
1179
|
pro_clusters_max: z.int().gte(0),
|
|
1075
1180
|
pro_clusters_available: z.int(),
|
|
1181
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1182
|
+
enterprise_clusters_available: z.int(),
|
|
1076
1183
|
fleets_max: z.int().gte(0),
|
|
1077
1184
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1078
1185
|
regions: z.array(z.string()).min(1),
|
|
@@ -1094,29 +1201,28 @@ export const zOrganization = z.object({
|
|
|
1094
1201
|
])
|
|
1095
1202
|
});
|
|
1096
1203
|
export const zPaymentMethod = z.object({
|
|
1097
|
-
id: z.
|
|
1098
|
-
|
|
1099
|
-
|
|
1204
|
+
id: z.string(),
|
|
1205
|
+
type: z.enum([
|
|
1206
|
+
'card',
|
|
1207
|
+
'sepa_debit',
|
|
1208
|
+
'bank_transfer'
|
|
1209
|
+
]),
|
|
1100
1210
|
last4: z.string(),
|
|
1101
1211
|
exp_month: z.int().gte(1).lte(12),
|
|
1102
|
-
exp_year: z.int()
|
|
1103
|
-
brand: z.
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
'jcb',
|
|
1109
|
-
'mastercard',
|
|
1110
|
-
'unionpay',
|
|
1111
|
-
'visa',
|
|
1112
|
-
'unknown'
|
|
1113
|
-
])
|
|
1212
|
+
exp_year: z.int(),
|
|
1213
|
+
brand: z.string(),
|
|
1214
|
+
iban: z.string(),
|
|
1215
|
+
bic: z.string(),
|
|
1216
|
+
account_holder_name: z.string(),
|
|
1217
|
+
is_default: z.boolean()
|
|
1114
1218
|
});
|
|
1115
1219
|
export const zPlatformQuota = z.object({
|
|
1116
1220
|
basic_clusters_max: z.int().gte(0),
|
|
1117
1221
|
basic_clusters_available: z.int(),
|
|
1118
1222
|
pro_clusters_max: z.int().gte(0),
|
|
1119
1223
|
pro_clusters_available: z.int(),
|
|
1224
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1225
|
+
enterprise_clusters_available: z.int(),
|
|
1120
1226
|
fleets_max: z.int().gte(0),
|
|
1121
1227
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1122
1228
|
regions: z.array(z.string()).min(1),
|
|
@@ -1314,9 +1420,7 @@ export const zUserCreateInput = z.object({
|
|
|
1314
1420
|
first_name: z.string().min(1).max(50),
|
|
1315
1421
|
last_name: z.string().min(1).max(50),
|
|
1316
1422
|
code: z.string(),
|
|
1317
|
-
password: z.string().min(8)
|
|
1318
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
1319
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1423
|
+
password: z.string().min(8)
|
|
1320
1424
|
});
|
|
1321
1425
|
export const zUser = z.object({
|
|
1322
1426
|
email: z.email(),
|
|
@@ -1334,202 +1438,162 @@ export const zUserUpdateInput = z.object({
|
|
|
1334
1438
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1335
1439
|
status: z.enum(['active', 'inactive']).optional()
|
|
1336
1440
|
});
|
|
1337
|
-
export const
|
|
1338
|
-
|
|
1339
|
-
'hourly',
|
|
1340
|
-
'daily',
|
|
1341
|
-
'monthly'
|
|
1342
|
-
]).optional().default('daily')
|
|
1441
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1442
|
+
email: z.string()
|
|
1343
1443
|
});
|
|
1344
1444
|
/**
|
|
1345
|
-
*
|
|
1445
|
+
* An array of organizations the user belongs to.
|
|
1346
1446
|
*/
|
|
1347
|
-
export const
|
|
1447
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1448
|
+
realm: z.string().optional(),
|
|
1449
|
+
displayName: z.string().optional()
|
|
1450
|
+
}));
|
|
1348
1451
|
/**
|
|
1349
|
-
*
|
|
1452
|
+
* An array of users
|
|
1350
1453
|
*/
|
|
1351
|
-
export const
|
|
1454
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1455
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1352
1456
|
/**
|
|
1353
|
-
*
|
|
1354
|
-
*
|
|
1457
|
+
* Successfully created. Returns created user details.
|
|
1355
1458
|
*/
|
|
1356
|
-
export const
|
|
1357
|
-
|
|
1459
|
+
export const zCreateUserResponse = zUser;
|
|
1460
|
+
export const zDeleteUserPath = z.object({
|
|
1461
|
+
user_id: z.string()
|
|
1358
1462
|
});
|
|
1359
1463
|
/**
|
|
1360
|
-
*
|
|
1361
|
-
*/
|
|
1362
|
-
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1363
|
-
/**
|
|
1364
|
-
* Returns a single object containing organization contact and billing address details.
|
|
1365
|
-
*/
|
|
1366
|
-
export const zGetContactResponse = zBillingContact;
|
|
1367
|
-
export const zUpdateContactBody = zBillingContact;
|
|
1368
|
-
/**
|
|
1369
|
-
* Successfully updated. Returns updated organization details.
|
|
1370
|
-
*/
|
|
1371
|
-
export const zUpdateContactResponse = zBillingContact;
|
|
1372
|
-
/**
|
|
1373
|
-
* An array of the applied promotional credits records.
|
|
1464
|
+
* User profile information
|
|
1374
1465
|
*/
|
|
1375
|
-
export const
|
|
1376
|
-
export const
|
|
1377
|
-
|
|
1378
|
-
});
|
|
1379
|
-
export const zListChartsPath = z.object({
|
|
1380
|
-
cluster_id: z.string()
|
|
1466
|
+
export const zDeleteUserResponse = zUser;
|
|
1467
|
+
export const zGetUserPath = z.object({
|
|
1468
|
+
user_id: z.string()
|
|
1381
1469
|
});
|
|
1382
1470
|
/**
|
|
1383
|
-
*
|
|
1471
|
+
* User profile information
|
|
1384
1472
|
*/
|
|
1385
|
-
export const
|
|
1386
|
-
export const
|
|
1387
|
-
export const
|
|
1388
|
-
|
|
1473
|
+
export const zGetUserResponse = zUser;
|
|
1474
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1475
|
+
export const zUpdateUserPath = z.object({
|
|
1476
|
+
user_id: z.string()
|
|
1389
1477
|
});
|
|
1390
1478
|
/**
|
|
1391
|
-
* Successfully created. Returns created
|
|
1479
|
+
* Successfully created. Returns created user details.
|
|
1392
1480
|
*/
|
|
1393
|
-
export const
|
|
1394
|
-
export const zDeleteChartPath = z.object({
|
|
1395
|
-
cluster_id: z.string(),
|
|
1396
|
-
chart_name: z.string()
|
|
1397
|
-
});
|
|
1481
|
+
export const zUpdateUserResponse = zUser;
|
|
1398
1482
|
/**
|
|
1399
|
-
*
|
|
1483
|
+
* Returns a list of access token details with masked secrets.
|
|
1400
1484
|
*/
|
|
1401
|
-
export const
|
|
1402
|
-
export const
|
|
1403
|
-
cluster_id: z.string(),
|
|
1404
|
-
chart_name: z.string()
|
|
1405
|
-
});
|
|
1485
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1486
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1406
1487
|
/**
|
|
1407
|
-
* Returns
|
|
1488
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1408
1489
|
*/
|
|
1409
|
-
export const
|
|
1410
|
-
export const
|
|
1411
|
-
|
|
1412
|
-
cluster_id: z.string(),
|
|
1413
|
-
chart_name: z.string()
|
|
1490
|
+
export const zCreateTokenResponse = zToken;
|
|
1491
|
+
export const zDeleteTokenPath = z.object({
|
|
1492
|
+
token_id: z.string()
|
|
1414
1493
|
});
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
*/
|
|
1418
|
-
export const zUpdateChartResponse = z.string();
|
|
1419
|
-
export const zListFleetsPath = z.object({
|
|
1420
|
-
cluster_id: z.string()
|
|
1494
|
+
export const zGetTokenPath = z.object({
|
|
1495
|
+
token_id: z.string()
|
|
1421
1496
|
});
|
|
1422
1497
|
/**
|
|
1423
|
-
*
|
|
1498
|
+
* Returns access token details with masked secret.
|
|
1424
1499
|
*/
|
|
1425
|
-
export const
|
|
1426
|
-
export const
|
|
1427
|
-
export const
|
|
1428
|
-
|
|
1500
|
+
export const zGetTokenResponse = zToken;
|
|
1501
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1502
|
+
export const zUpdateTokenPath = z.object({
|
|
1503
|
+
token_id: z.string()
|
|
1429
1504
|
});
|
|
1430
1505
|
/**
|
|
1431
|
-
* Successfully
|
|
1506
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1432
1507
|
*/
|
|
1433
|
-
export const
|
|
1434
|
-
export const
|
|
1435
|
-
|
|
1436
|
-
fleet_name: z.string()
|
|
1508
|
+
export const zUpdateTokenResponse = zToken;
|
|
1509
|
+
export const zRegenerateTokenPath = z.object({
|
|
1510
|
+
token_id: z.string()
|
|
1437
1511
|
});
|
|
1438
1512
|
/**
|
|
1439
|
-
* Successfully
|
|
1513
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1440
1514
|
*/
|
|
1441
|
-
export const
|
|
1442
|
-
export const zGetFleetPath = z.object({
|
|
1443
|
-
cluster_id: z.string(),
|
|
1444
|
-
fleet_name: z.string()
|
|
1445
|
-
});
|
|
1515
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1446
1516
|
/**
|
|
1447
|
-
*
|
|
1517
|
+
* Tickets for the organization.
|
|
1448
1518
|
*/
|
|
1449
|
-
export const
|
|
1450
|
-
export const
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
fleet_name: z.string()
|
|
1519
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
1520
|
+
export const zCreateTicketBody = z.object({
|
|
1521
|
+
payload: z.string().optional(),
|
|
1522
|
+
attachments: z.array(z.string()).optional()
|
|
1454
1523
|
});
|
|
1455
1524
|
/**
|
|
1456
|
-
*
|
|
1525
|
+
* Ticket created.
|
|
1457
1526
|
*/
|
|
1458
|
-
export const
|
|
1459
|
-
export const
|
|
1460
|
-
|
|
1527
|
+
export const zCreateTicketResponse = zTicket;
|
|
1528
|
+
export const zCloseTicketPath = z.object({
|
|
1529
|
+
ticket_id: z.string()
|
|
1461
1530
|
});
|
|
1462
1531
|
/**
|
|
1463
|
-
*
|
|
1464
|
-
*/
|
|
1465
|
-
export const zListClustersResponse = z.array(zCluster);
|
|
1466
|
-
export const zCreateClusterBody = zClusterCreateInput;
|
|
1467
|
-
/**
|
|
1468
|
-
* Successfully created. Returns created Cluster ID.
|
|
1532
|
+
* Ticket closed.
|
|
1469
1533
|
*/
|
|
1470
|
-
export const
|
|
1471
|
-
export const
|
|
1472
|
-
|
|
1534
|
+
export const zCloseTicketResponse = zTicket;
|
|
1535
|
+
export const zGetTicketPath = z.object({
|
|
1536
|
+
ticket_id: z.string()
|
|
1473
1537
|
});
|
|
1474
1538
|
/**
|
|
1475
|
-
*
|
|
1539
|
+
* Ticket with messages (internal notes excluded).
|
|
1476
1540
|
*/
|
|
1477
|
-
export const
|
|
1478
|
-
export const
|
|
1479
|
-
|
|
1541
|
+
export const zGetTicketResponse = zTicket;
|
|
1542
|
+
export const zReplyTicketBody = z.object({
|
|
1543
|
+
payload: z.string().optional(),
|
|
1544
|
+
attachments: z.array(z.string()).optional()
|
|
1480
1545
|
});
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
*/
|
|
1484
|
-
export const zGetClusterResponse = zCluster;
|
|
1485
|
-
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1486
|
-
export const zUpdateClusterPath = z.object({
|
|
1487
|
-
cluster_id: z.string()
|
|
1546
|
+
export const zReplyTicketPath = z.object({
|
|
1547
|
+
ticket_id: z.string()
|
|
1488
1548
|
});
|
|
1489
1549
|
/**
|
|
1490
|
-
*
|
|
1550
|
+
* Reply appended.
|
|
1491
1551
|
*/
|
|
1492
|
-
export const
|
|
1493
|
-
export const
|
|
1494
|
-
|
|
1552
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1553
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1554
|
+
ticket_id: z.string(),
|
|
1555
|
+
attachment_id: z.string()
|
|
1495
1556
|
});
|
|
1496
1557
|
/**
|
|
1497
|
-
*
|
|
1558
|
+
* Attachment binary stream.
|
|
1498
1559
|
*/
|
|
1499
|
-
export const
|
|
1560
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1500
1561
|
/**
|
|
1501
|
-
*
|
|
1562
|
+
* List of repositories
|
|
1502
1563
|
*/
|
|
1503
|
-
export const
|
|
1504
|
-
export const
|
|
1505
|
-
|
|
1564
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1565
|
+
export const zListTagsPath = z.object({
|
|
1566
|
+
region: z.string(),
|
|
1567
|
+
repository: z.string()
|
|
1506
1568
|
});
|
|
1507
1569
|
/**
|
|
1508
|
-
*
|
|
1570
|
+
* Repository with tags
|
|
1509
1571
|
*/
|
|
1510
|
-
export const
|
|
1511
|
-
export const
|
|
1512
|
-
|
|
1572
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1573
|
+
export const zDeleteTagPath = z.object({
|
|
1574
|
+
region: z.string(),
|
|
1575
|
+
repository: z.string(),
|
|
1576
|
+
tag: z.string()
|
|
1577
|
+
});
|
|
1578
|
+
export const zGetTagPath = z.object({
|
|
1579
|
+
region: z.string(),
|
|
1580
|
+
repository: z.string(),
|
|
1581
|
+
tag: z.string()
|
|
1513
1582
|
});
|
|
1514
1583
|
/**
|
|
1515
|
-
*
|
|
1584
|
+
* Tag details
|
|
1516
1585
|
*/
|
|
1517
|
-
export const
|
|
1518
|
-
export const zDeleteInvitePath = z.object({
|
|
1519
|
-
email: z.string()
|
|
1520
|
-
});
|
|
1586
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1521
1587
|
/**
|
|
1522
|
-
*
|
|
1588
|
+
* Returns a single object containing organization details.
|
|
1523
1589
|
*/
|
|
1524
|
-
export const
|
|
1525
|
-
export const
|
|
1526
|
-
chart_name: z.string(),
|
|
1527
|
-
version_channel: z.string()
|
|
1528
|
-
});
|
|
1590
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1591
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1529
1592
|
/**
|
|
1530
|
-
*
|
|
1593
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1594
|
+
*
|
|
1531
1595
|
*/
|
|
1532
|
-
export const
|
|
1596
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1533
1597
|
/**
|
|
1534
1598
|
* JSON-RPC 2.0 request payload
|
|
1535
1599
|
*/
|
|
@@ -1558,154 +1622,214 @@ export const zPostMcpResponse = z.object({
|
|
|
1558
1622
|
}).optional()
|
|
1559
1623
|
});
|
|
1560
1624
|
/**
|
|
1561
|
-
*
|
|
1625
|
+
* An array of chart listings in the marketplace.
|
|
1562
1626
|
*/
|
|
1563
|
-
export const
|
|
1564
|
-
export const
|
|
1627
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1628
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1629
|
+
chart_name: z.string(),
|
|
1630
|
+
version_channel: z.string()
|
|
1631
|
+
});
|
|
1565
1632
|
/**
|
|
1566
|
-
*
|
|
1633
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1567
1634
|
*/
|
|
1568
|
-
export const
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1635
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1636
|
+
/**
|
|
1637
|
+
* An array of invites
|
|
1638
|
+
*/
|
|
1639
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1640
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1641
|
+
/**
|
|
1642
|
+
* Successfully created. Returns created invite details.
|
|
1643
|
+
*/
|
|
1644
|
+
export const zCreateInviteResponse = zInvite;
|
|
1645
|
+
export const zGetInvitePath = z.object({
|
|
1646
|
+
code: z.string()
|
|
1572
1647
|
});
|
|
1573
1648
|
/**
|
|
1574
|
-
*
|
|
1649
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1575
1650
|
*/
|
|
1576
|
-
export const
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
repository: z.string(),
|
|
1580
|
-
tag: z.string()
|
|
1651
|
+
export const zGetInviteResponse = z.object({
|
|
1652
|
+
email: z.email().optional(),
|
|
1653
|
+
organization_id: z.string().optional()
|
|
1581
1654
|
});
|
|
1582
|
-
export const
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1655
|
+
export const zDeleteInvitePath = z.object({
|
|
1656
|
+
email: z.email()
|
|
1657
|
+
});
|
|
1658
|
+
export const zQueryClusterPath = z.object({
|
|
1659
|
+
cluster_id: z.string()
|
|
1660
|
+
});
|
|
1661
|
+
export const zListFleetsPath = z.object({
|
|
1662
|
+
cluster_id: z.string()
|
|
1586
1663
|
});
|
|
1587
1664
|
/**
|
|
1588
|
-
*
|
|
1665
|
+
* An array of fleets
|
|
1589
1666
|
*/
|
|
1590
|
-
export const
|
|
1667
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1668
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1669
|
+
export const zCreateFleetPath = z.object({
|
|
1670
|
+
cluster_id: z.string()
|
|
1671
|
+
});
|
|
1591
1672
|
/**
|
|
1592
|
-
*
|
|
1673
|
+
* Successfully created. Returns created Fleet ID.
|
|
1593
1674
|
*/
|
|
1594
|
-
export const
|
|
1595
|
-
export const
|
|
1596
|
-
|
|
1597
|
-
|
|
1675
|
+
export const zCreateFleetResponse = z.string();
|
|
1676
|
+
export const zDeleteFleetPath = z.object({
|
|
1677
|
+
cluster_id: z.string(),
|
|
1678
|
+
fleet_name: z.string()
|
|
1598
1679
|
});
|
|
1599
1680
|
/**
|
|
1600
|
-
*
|
|
1681
|
+
* Successfully deleted.
|
|
1601
1682
|
*/
|
|
1602
|
-
export const
|
|
1603
|
-
export const
|
|
1604
|
-
|
|
1683
|
+
export const zDeleteFleetResponse = z.string();
|
|
1684
|
+
export const zGetFleetPath = z.object({
|
|
1685
|
+
cluster_id: z.string(),
|
|
1686
|
+
fleet_name: z.string()
|
|
1605
1687
|
});
|
|
1606
1688
|
/**
|
|
1607
|
-
*
|
|
1689
|
+
* Returns a single object containing fleet details.
|
|
1608
1690
|
*/
|
|
1609
|
-
export const
|
|
1610
|
-
export const
|
|
1611
|
-
|
|
1691
|
+
export const zGetFleetResponse = zFleet;
|
|
1692
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1693
|
+
export const zUpdateFleetPath = z.object({
|
|
1694
|
+
cluster_id: z.string(),
|
|
1695
|
+
fleet_name: z.string()
|
|
1612
1696
|
});
|
|
1613
1697
|
/**
|
|
1614
|
-
*
|
|
1698
|
+
* Successfully updated.
|
|
1615
1699
|
*/
|
|
1616
|
-
export const
|
|
1617
|
-
export const
|
|
1618
|
-
|
|
1619
|
-
attachments: z.array(z.string()).optional()
|
|
1620
|
-
});
|
|
1621
|
-
export const zReplyTicketPath = z.object({
|
|
1622
|
-
ticket_id: z.string()
|
|
1700
|
+
export const zUpdateFleetResponse = z.string();
|
|
1701
|
+
export const zListChartsPath = z.object({
|
|
1702
|
+
cluster_id: z.string()
|
|
1623
1703
|
});
|
|
1624
1704
|
/**
|
|
1625
|
-
*
|
|
1705
|
+
* An array of charts
|
|
1626
1706
|
*/
|
|
1627
|
-
export const
|
|
1628
|
-
export const
|
|
1629
|
-
|
|
1630
|
-
|
|
1707
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1708
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1709
|
+
export const zCreateChartPath = z.object({
|
|
1710
|
+
cluster_id: z.string()
|
|
1631
1711
|
});
|
|
1632
1712
|
/**
|
|
1633
|
-
*
|
|
1713
|
+
* Successfully created. Returns created Chart ID.
|
|
1634
1714
|
*/
|
|
1635
|
-
export const
|
|
1715
|
+
export const zCreateChartResponse = z.string();
|
|
1716
|
+
export const zDeleteChartPath = z.object({
|
|
1717
|
+
cluster_id: z.string(),
|
|
1718
|
+
chart_name: z.string()
|
|
1719
|
+
});
|
|
1636
1720
|
/**
|
|
1637
|
-
*
|
|
1721
|
+
* Successfully deleted.
|
|
1638
1722
|
*/
|
|
1639
|
-
export const
|
|
1640
|
-
export const
|
|
1723
|
+
export const zDeleteChartResponse = z.string();
|
|
1724
|
+
export const zGetChartPath = z.object({
|
|
1725
|
+
cluster_id: z.string(),
|
|
1726
|
+
chart_name: z.string()
|
|
1727
|
+
});
|
|
1641
1728
|
/**
|
|
1642
|
-
*
|
|
1729
|
+
* Returns a single object containing chart details.
|
|
1643
1730
|
*/
|
|
1644
|
-
export const
|
|
1645
|
-
export const
|
|
1646
|
-
|
|
1731
|
+
export const zGetChartResponse = zChart;
|
|
1732
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1733
|
+
export const zUpdateChartPath = z.object({
|
|
1734
|
+
cluster_id: z.string(),
|
|
1735
|
+
chart_name: z.string()
|
|
1647
1736
|
});
|
|
1648
|
-
|
|
1649
|
-
|
|
1737
|
+
/**
|
|
1738
|
+
* Successfully updated.
|
|
1739
|
+
*/
|
|
1740
|
+
export const zUpdateChartResponse = z.string();
|
|
1741
|
+
/**
|
|
1742
|
+
* An array of clusters
|
|
1743
|
+
*/
|
|
1744
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1745
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1746
|
+
/**
|
|
1747
|
+
* Successfully created. Returns created Cluster ID.
|
|
1748
|
+
*/
|
|
1749
|
+
export const zCreateClusterResponse = z.string();
|
|
1750
|
+
export const zDeleteClusterPath = z.object({
|
|
1751
|
+
cluster_id: z.string()
|
|
1650
1752
|
});
|
|
1651
1753
|
/**
|
|
1652
|
-
*
|
|
1754
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1653
1755
|
*/
|
|
1654
|
-
export const
|
|
1655
|
-
export const
|
|
1656
|
-
|
|
1657
|
-
token_id: z.string()
|
|
1756
|
+
export const zDeleteClusterResponse = z.string();
|
|
1757
|
+
export const zGetClusterPath = z.object({
|
|
1758
|
+
cluster_id: z.string()
|
|
1658
1759
|
});
|
|
1659
1760
|
/**
|
|
1660
|
-
*
|
|
1761
|
+
* Returns a single object containing cluster details.
|
|
1661
1762
|
*/
|
|
1662
|
-
export const
|
|
1663
|
-
export const
|
|
1664
|
-
|
|
1763
|
+
export const zGetClusterResponse = zCluster;
|
|
1764
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1765
|
+
export const zUpdateClusterPath = z.object({
|
|
1766
|
+
cluster_id: z.string()
|
|
1665
1767
|
});
|
|
1666
1768
|
/**
|
|
1667
|
-
* Successfully updated. Returns updated
|
|
1769
|
+
* Successfully updated. Returns updated cluster details.
|
|
1668
1770
|
*/
|
|
1669
|
-
export const
|
|
1670
|
-
export const
|
|
1671
|
-
|
|
1771
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1772
|
+
export const zGetJoinInformationPath = z.object({
|
|
1773
|
+
cluster_id: z.string()
|
|
1672
1774
|
});
|
|
1673
1775
|
/**
|
|
1674
|
-
* An
|
|
1776
|
+
* An object of cluster join information
|
|
1675
1777
|
*/
|
|
1676
|
-
export const
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1778
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1779
|
+
export const zGetUsageQuery = z.object({
|
|
1780
|
+
granularity: z.enum([
|
|
1781
|
+
'hourly',
|
|
1782
|
+
'daily',
|
|
1783
|
+
'monthly'
|
|
1784
|
+
]).optional().default('daily')
|
|
1785
|
+
});
|
|
1680
1786
|
/**
|
|
1681
|
-
*
|
|
1787
|
+
* Usage data with facets for filtering
|
|
1682
1788
|
*/
|
|
1683
|
-
export const
|
|
1684
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1789
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1685
1790
|
/**
|
|
1686
|
-
*
|
|
1791
|
+
* 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.
|
|
1792
|
+
*
|
|
1687
1793
|
*/
|
|
1688
|
-
export const
|
|
1689
|
-
|
|
1690
|
-
user_id: z.string()
|
|
1794
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1795
|
+
id: z.string().optional()
|
|
1691
1796
|
});
|
|
1692
1797
|
/**
|
|
1693
|
-
*
|
|
1798
|
+
* An array of payment methods.
|
|
1694
1799
|
*/
|
|
1695
|
-
export const
|
|
1696
|
-
export const
|
|
1697
|
-
|
|
1800
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1801
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1802
|
+
paymentMethodId: z.string()
|
|
1698
1803
|
});
|
|
1699
1804
|
/**
|
|
1700
|
-
*
|
|
1805
|
+
* Default payment method updated.
|
|
1701
1806
|
*/
|
|
1702
|
-
export const
|
|
1703
|
-
export const
|
|
1704
|
-
|
|
1705
|
-
user_id: z.string()
|
|
1807
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1808
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1809
|
+
paymentMethodId: z.string()
|
|
1706
1810
|
});
|
|
1707
1811
|
/**
|
|
1708
|
-
*
|
|
1812
|
+
* Payment method deleted.
|
|
1709
1813
|
*/
|
|
1710
|
-
export const
|
|
1814
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1815
|
+
/**
|
|
1816
|
+
* An array of usage records.
|
|
1817
|
+
*/
|
|
1818
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1819
|
+
/**
|
|
1820
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1821
|
+
*/
|
|
1822
|
+
export const zGetContactResponse = zBillingContact;
|
|
1823
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1824
|
+
/**
|
|
1825
|
+
* Successfully updated. Returns updated organization details.
|
|
1826
|
+
*/
|
|
1827
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1828
|
+
/**
|
|
1829
|
+
* An array of the applied promotional credits records.
|
|
1830
|
+
*/
|
|
1831
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1832
|
+
export const zRedeemCreditsBody = z.object({
|
|
1833
|
+
code: z.string().optional()
|
|
1834
|
+
});
|
|
1711
1835
|
//# sourceMappingURL=zod.gen.js.map
|