@cloudfleet/sdk 0.0.1-c386d40 → 0.0.1-c3c7509
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 +473 -596
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +440 -411
- 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 +464 -190
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +626 -269
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +238 -221
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +344 -325
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1069 -808
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1693 -1506
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +493 -346
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -13
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,27 +177,57 @@ 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(),
|
|
230
|
+
login_server: z.string(),
|
|
216
231
|
bootstrap_token: z.string(),
|
|
217
232
|
versions: z.object({
|
|
218
233
|
kubernetes: z.string(),
|
|
@@ -226,24 +241,55 @@ export const zClusterJoinInformation = z.object({
|
|
|
226
241
|
gcp_workload_identity_provider: z.string()
|
|
227
242
|
})
|
|
228
243
|
});
|
|
244
|
+
/**
|
|
245
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
246
|
+
*/
|
|
229
247
|
export const zCluster = z.object({
|
|
230
248
|
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
|
-
|
|
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
|
+
}),
|
|
238
287
|
id: z.uuid(),
|
|
239
288
|
status: z.enum([
|
|
240
|
-
'active',
|
|
241
|
-
'disabled',
|
|
242
|
-
'deleted',
|
|
243
289
|
'creating',
|
|
244
290
|
'deployed',
|
|
245
|
-
'
|
|
246
|
-
'
|
|
291
|
+
'updating',
|
|
292
|
+
'disabled'
|
|
247
293
|
]),
|
|
248
294
|
endpoint: z.union([
|
|
249
295
|
z.url(),
|
|
@@ -257,14 +303,41 @@ export const zCluster = z.object({
|
|
|
257
303
|
version_current: z.string().optional(),
|
|
258
304
|
created_at: z.string().optional(),
|
|
259
305
|
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()
|
|
306
|
+
ready: z.boolean()
|
|
262
307
|
});
|
|
308
|
+
/**
|
|
309
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
310
|
+
*/
|
|
263
311
|
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
|
-
|
|
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
|
+
})
|
|
267
337
|
});
|
|
338
|
+
/**
|
|
339
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
340
|
+
*/
|
|
268
341
|
export const zFleetCreateInput = z.object({
|
|
269
342
|
limits: z.object({
|
|
270
343
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -275,7 +348,7 @@ export const zFleetCreateInput = z.object({
|
|
|
275
348
|
}).optional(),
|
|
276
349
|
hetzner: z.object({
|
|
277
350
|
enabled: z.boolean(),
|
|
278
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
351
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
279
352
|
}).optional(),
|
|
280
353
|
aws: z.object({
|
|
281
354
|
enabled: z.boolean(),
|
|
@@ -443,7 +516,7 @@ export const zFleetCreateInput = z.object({
|
|
|
443
516
|
'x8g',
|
|
444
517
|
'z1d',
|
|
445
518
|
'z3'
|
|
446
|
-
])).optional(),
|
|
519
|
+
])).optional().default([]),
|
|
447
520
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
448
521
|
'africa-south1',
|
|
449
522
|
'ap-northeast-1',
|
|
@@ -509,11 +582,19 @@ export const zFleetCreateInput = z.object({
|
|
|
509
582
|
'us-west2',
|
|
510
583
|
'us-west3',
|
|
511
584
|
'us-west4'
|
|
512
|
-
])).optional()
|
|
513
|
-
}).optional()
|
|
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
|
+
}),
|
|
514
592
|
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
515
593
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
516
594
|
});
|
|
595
|
+
/**
|
|
596
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
597
|
+
*/
|
|
517
598
|
export const zFleet = z.object({
|
|
518
599
|
limits: z.object({
|
|
519
600
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -531,8 +612,8 @@ export const zFleet = z.object({
|
|
|
531
612
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
532
613
|
}).optional(),
|
|
533
614
|
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).
|
|
615
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
616
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
536
617
|
'cfke.io/instance-family': z.array(z.enum([
|
|
537
618
|
'a1',
|
|
538
619
|
'a2',
|
|
@@ -692,7 +773,7 @@ export const zFleet = z.object({
|
|
|
692
773
|
'x8g',
|
|
693
774
|
'z1d',
|
|
694
775
|
'z3'
|
|
695
|
-
])).optional(),
|
|
776
|
+
])).optional().default([]),
|
|
696
777
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
697
778
|
'africa-south1',
|
|
698
779
|
'ap-northeast-1',
|
|
@@ -758,11 +839,23 @@ export const zFleet = z.object({
|
|
|
758
839
|
'us-west2',
|
|
759
840
|
'us-west3',
|
|
760
841
|
'us-west4'
|
|
761
|
-
])).optional()
|
|
762
|
-
}).
|
|
842
|
+
])).optional().default([])
|
|
843
|
+
}).default({
|
|
844
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
845
|
+
'kubernetes.io/arch': ['amd64'],
|
|
846
|
+
'cfke.io/instance-family': [],
|
|
847
|
+
'topology.kubernetes.io/region': []
|
|
848
|
+
}),
|
|
763
849
|
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])?$/)
|
|
850
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
851
|
+
ready: z.boolean(),
|
|
852
|
+
status_message: z.string().optional(),
|
|
853
|
+
created_at: z.string(),
|
|
854
|
+
updated_at: z.string()
|
|
765
855
|
});
|
|
856
|
+
/**
|
|
857
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
858
|
+
*/
|
|
766
859
|
export const zFleetUpdateInput = z.object({
|
|
767
860
|
limits: z.object({
|
|
768
861
|
cpu: z.int().gte(0).lte(100000).optional()
|
|
@@ -773,15 +866,15 @@ export const zFleetUpdateInput = z.object({
|
|
|
773
866
|
}).optional(),
|
|
774
867
|
hetzner: z.object({
|
|
775
868
|
enabled: z.boolean(),
|
|
776
|
-
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]
|
|
869
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
777
870
|
}).optional(),
|
|
778
871
|
aws: z.object({
|
|
779
872
|
enabled: z.boolean(),
|
|
780
873
|
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
781
874
|
}).optional(),
|
|
782
875
|
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(),
|
|
876
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
877
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
785
878
|
'cfke.io/instance-family': z.array(z.enum([
|
|
786
879
|
'a1',
|
|
787
880
|
'a2',
|
|
@@ -941,7 +1034,7 @@ export const zFleetUpdateInput = z.object({
|
|
|
941
1034
|
'x8g',
|
|
942
1035
|
'z1d',
|
|
943
1036
|
'z3'
|
|
944
|
-
])).optional(),
|
|
1037
|
+
])).optional().default([]),
|
|
945
1038
|
'topology.kubernetes.io/region': z.array(z.enum([
|
|
946
1039
|
'africa-south1',
|
|
947
1040
|
'ap-northeast-1',
|
|
@@ -1007,9 +1100,14 @@ export const zFleetUpdateInput = z.object({
|
|
|
1007
1100
|
'us-west2',
|
|
1008
1101
|
'us-west3',
|
|
1009
1102
|
'us-west4'
|
|
1010
|
-
])).optional()
|
|
1011
|
-
}).optional()
|
|
1012
|
-
|
|
1103
|
+
])).optional().default([])
|
|
1104
|
+
}).optional().default({
|
|
1105
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1106
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1107
|
+
'cfke.io/instance-family': [],
|
|
1108
|
+
'topology.kubernetes.io/region': []
|
|
1109
|
+
}),
|
|
1110
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
|
|
1013
1111
|
});
|
|
1014
1112
|
export const zInviteCreateInput = z.object({
|
|
1015
1113
|
email: z.email(),
|
|
@@ -1023,6 +1121,48 @@ export const zInvite = z.object({
|
|
|
1023
1121
|
code: z.string().optional(),
|
|
1024
1122
|
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
1025
1123
|
});
|
|
1124
|
+
export const zInvoicePaymentAttempt = z.object({
|
|
1125
|
+
invoice_id: z.string(),
|
|
1126
|
+
number: z.string(),
|
|
1127
|
+
amount: z.number(),
|
|
1128
|
+
currency: z.string(),
|
|
1129
|
+
status: z.enum([
|
|
1130
|
+
'paid',
|
|
1131
|
+
'processing',
|
|
1132
|
+
'requires_action',
|
|
1133
|
+
'failed'
|
|
1134
|
+
]),
|
|
1135
|
+
client_secret: z.string(),
|
|
1136
|
+
failure_code: z.string(),
|
|
1137
|
+
failure_message: z.string()
|
|
1138
|
+
});
|
|
1139
|
+
export const zInvoicePaymentResult = z.object({
|
|
1140
|
+
code: z.enum([
|
|
1141
|
+
'paid',
|
|
1142
|
+
'processing',
|
|
1143
|
+
'action_required',
|
|
1144
|
+
'partially_paid',
|
|
1145
|
+
'failed',
|
|
1146
|
+
'nothing_due',
|
|
1147
|
+
'bank_transfer_due'
|
|
1148
|
+
]),
|
|
1149
|
+
message: z.string(),
|
|
1150
|
+
results: z.array(z.object({
|
|
1151
|
+
invoice_id: z.string(),
|
|
1152
|
+
number: z.string(),
|
|
1153
|
+
amount: z.number(),
|
|
1154
|
+
currency: z.string(),
|
|
1155
|
+
status: z.enum([
|
|
1156
|
+
'paid',
|
|
1157
|
+
'processing',
|
|
1158
|
+
'requires_action',
|
|
1159
|
+
'failed'
|
|
1160
|
+
]),
|
|
1161
|
+
client_secret: z.string(),
|
|
1162
|
+
failure_code: z.string(),
|
|
1163
|
+
failure_message: z.string()
|
|
1164
|
+
}))
|
|
1165
|
+
});
|
|
1026
1166
|
export const zInvoice = z.object({
|
|
1027
1167
|
id: z.string().optional(),
|
|
1028
1168
|
number: z.string().optional(),
|
|
@@ -1081,6 +1221,8 @@ export const zOrganization = z.object({
|
|
|
1081
1221
|
basic_clusters_available: z.int(),
|
|
1082
1222
|
pro_clusters_max: z.int().gte(0),
|
|
1083
1223
|
pro_clusters_available: z.int(),
|
|
1224
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1225
|
+
enterprise_clusters_available: z.int(),
|
|
1084
1226
|
fleets_max: z.int().gte(0),
|
|
1085
1227
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1086
1228
|
regions: z.array(z.string()).min(1),
|
|
@@ -1122,6 +1264,8 @@ export const zPlatformQuota = z.object({
|
|
|
1122
1264
|
basic_clusters_available: z.int(),
|
|
1123
1265
|
pro_clusters_max: z.int().gte(0),
|
|
1124
1266
|
pro_clusters_available: z.int(),
|
|
1267
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1268
|
+
enterprise_clusters_available: z.int(),
|
|
1125
1269
|
fleets_max: z.int().gte(0),
|
|
1126
1270
|
cluster_tiers: z.array(z.string()).min(0),
|
|
1127
1271
|
regions: z.array(z.string()).min(1),
|
|
@@ -1192,39 +1336,6 @@ export const zTicketCreateInput = z.object({
|
|
|
1192
1336
|
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1193
1337
|
properties: z.record(z.string(), z.unknown()).optional()
|
|
1194
1338
|
});
|
|
1195
|
-
export const zTicketListResponse = z.object({
|
|
1196
|
-
items: z.array(z.object({
|
|
1197
|
-
id: z.string(),
|
|
1198
|
-
status: z.enum([
|
|
1199
|
-
'waiting_on_us',
|
|
1200
|
-
'waiting_on_user',
|
|
1201
|
-
'closed'
|
|
1202
|
-
]),
|
|
1203
|
-
category: z.enum([
|
|
1204
|
-
'billing',
|
|
1205
|
-
'technical',
|
|
1206
|
-
'general'
|
|
1207
|
-
]),
|
|
1208
|
-
summary: z.string(),
|
|
1209
|
-
closed_at: z.iso.datetime().optional(),
|
|
1210
|
-
date_created: z.iso.datetime(),
|
|
1211
|
-
date_updated: z.iso.datetime(),
|
|
1212
|
-
messages: z.array(z.object({
|
|
1213
|
-
id: z.string(),
|
|
1214
|
-
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1215
|
-
body: z.string(),
|
|
1216
|
-
author_first_name: z.string().optional(),
|
|
1217
|
-
author_last_name: z.string().optional(),
|
|
1218
|
-
attachments: z.array(z.object({
|
|
1219
|
-
id: z.string(),
|
|
1220
|
-
filename: z.string(),
|
|
1221
|
-
content_type: z.string(),
|
|
1222
|
-
size: z.int()
|
|
1223
|
-
})).optional(),
|
|
1224
|
-
date_created: z.iso.datetime()
|
|
1225
|
-
})).optional()
|
|
1226
|
-
}))
|
|
1227
|
-
});
|
|
1228
1339
|
export const zTicketMessageInput = z.object({
|
|
1229
1340
|
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1230
1341
|
});
|
|
@@ -1290,26 +1401,58 @@ export const zTokenUpdateInput = z.object({
|
|
|
1290
1401
|
});
|
|
1291
1402
|
export const zUsageFacets = z.object({
|
|
1292
1403
|
cluster_id: z.array(z.string()).optional(),
|
|
1293
|
-
product: z.array(z.
|
|
1404
|
+
product: z.array(z.enum([
|
|
1405
|
+
'cfke_controlplane_basic',
|
|
1406
|
+
'cfke_controlplane_pro',
|
|
1407
|
+
'cfke_controlplane_enterprise',
|
|
1408
|
+
'cfke_connected_nodes_basic',
|
|
1409
|
+
'cfke_connected_nodes_pro',
|
|
1410
|
+
'cfke_connected_nodes_enterprise',
|
|
1411
|
+
'cfcr_storage'
|
|
1412
|
+
])).optional()
|
|
1294
1413
|
});
|
|
1295
1414
|
export const zUsageResponse = z.object({
|
|
1296
1415
|
data: z.array(z.object({
|
|
1297
1416
|
hour: z.string(),
|
|
1298
1417
|
cluster_id: z.string(),
|
|
1299
|
-
product: z.
|
|
1418
|
+
product: z.enum([
|
|
1419
|
+
'cfke_controlplane_basic',
|
|
1420
|
+
'cfke_controlplane_pro',
|
|
1421
|
+
'cfke_controlplane_enterprise',
|
|
1422
|
+
'cfke_connected_nodes_basic',
|
|
1423
|
+
'cfke_connected_nodes_pro',
|
|
1424
|
+
'cfke_connected_nodes_enterprise',
|
|
1425
|
+
'cfcr_storage'
|
|
1426
|
+
]),
|
|
1300
1427
|
value: z.number(),
|
|
1301
1428
|
price: z.number(),
|
|
1302
1429
|
total: z.number()
|
|
1303
1430
|
})),
|
|
1304
1431
|
facets: z.object({
|
|
1305
1432
|
cluster_id: z.array(z.string()).optional(),
|
|
1306
|
-
product: z.array(z.
|
|
1433
|
+
product: z.array(z.enum([
|
|
1434
|
+
'cfke_controlplane_basic',
|
|
1435
|
+
'cfke_controlplane_pro',
|
|
1436
|
+
'cfke_controlplane_enterprise',
|
|
1437
|
+
'cfke_connected_nodes_basic',
|
|
1438
|
+
'cfke_connected_nodes_pro',
|
|
1439
|
+
'cfke_connected_nodes_enterprise',
|
|
1440
|
+
'cfcr_storage'
|
|
1441
|
+
])).optional()
|
|
1307
1442
|
})
|
|
1308
1443
|
});
|
|
1309
1444
|
export const zUsage = z.object({
|
|
1310
1445
|
hour: z.string(),
|
|
1311
1446
|
cluster_id: z.string(),
|
|
1312
|
-
product: z.
|
|
1447
|
+
product: z.enum([
|
|
1448
|
+
'cfke_controlplane_basic',
|
|
1449
|
+
'cfke_controlplane_pro',
|
|
1450
|
+
'cfke_controlplane_enterprise',
|
|
1451
|
+
'cfke_connected_nodes_basic',
|
|
1452
|
+
'cfke_connected_nodes_pro',
|
|
1453
|
+
'cfke_connected_nodes_enterprise',
|
|
1454
|
+
'cfcr_storage'
|
|
1455
|
+
]),
|
|
1313
1456
|
value: z.number(),
|
|
1314
1457
|
price: z.number(),
|
|
1315
1458
|
total: z.number()
|
|
@@ -1337,183 +1480,201 @@ export const zUserUpdateInput = z.object({
|
|
|
1337
1480
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
1338
1481
|
status: z.enum(['active', 'inactive']).optional()
|
|
1339
1482
|
});
|
|
1340
|
-
export const
|
|
1341
|
-
|
|
1342
|
-
'hourly',
|
|
1343
|
-
'daily',
|
|
1344
|
-
'monthly'
|
|
1345
|
-
]).optional().default('daily')
|
|
1483
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1484
|
+
email: z.string()
|
|
1346
1485
|
});
|
|
1347
1486
|
/**
|
|
1348
|
-
*
|
|
1487
|
+
* An array of organizations the user belongs to.
|
|
1349
1488
|
*/
|
|
1350
|
-
export const
|
|
1489
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1490
|
+
realm: z.string().optional(),
|
|
1491
|
+
displayName: z.string().optional()
|
|
1492
|
+
}));
|
|
1351
1493
|
/**
|
|
1352
|
-
*
|
|
1353
|
-
*
|
|
1494
|
+
* An array of users
|
|
1354
1495
|
*/
|
|
1355
|
-
export const
|
|
1356
|
-
|
|
1357
|
-
});
|
|
1496
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1497
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1358
1498
|
/**
|
|
1359
|
-
*
|
|
1499
|
+
* Successfully created. Returns created user details.
|
|
1360
1500
|
*/
|
|
1361
|
-
export const
|
|
1362
|
-
export const
|
|
1363
|
-
|
|
1501
|
+
export const zCreateUserResponse = zUser;
|
|
1502
|
+
export const zDeleteUserPath = z.object({
|
|
1503
|
+
user_id: z.string()
|
|
1364
1504
|
});
|
|
1365
1505
|
/**
|
|
1366
|
-
*
|
|
1506
|
+
* User profile information
|
|
1367
1507
|
*/
|
|
1368
|
-
export const
|
|
1369
|
-
export const
|
|
1370
|
-
|
|
1508
|
+
export const zDeleteUserResponse = zUser;
|
|
1509
|
+
export const zGetUserPath = z.object({
|
|
1510
|
+
user_id: z.string()
|
|
1371
1511
|
});
|
|
1372
1512
|
/**
|
|
1373
|
-
*
|
|
1374
|
-
*/
|
|
1375
|
-
export const zDeletePaymentMethodResponse = z.void();
|
|
1376
|
-
/**
|
|
1377
|
-
* An array of usage records.
|
|
1513
|
+
* User profile information
|
|
1378
1514
|
*/
|
|
1379
|
-
export const
|
|
1515
|
+
export const zGetUserResponse = zUser;
|
|
1516
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1517
|
+
export const zUpdateUserPath = z.object({
|
|
1518
|
+
user_id: z.string()
|
|
1519
|
+
});
|
|
1380
1520
|
/**
|
|
1381
|
-
*
|
|
1521
|
+
* Successfully created. Returns created user details.
|
|
1382
1522
|
*/
|
|
1383
|
-
export const
|
|
1384
|
-
export const zUpdateContactBody = zBillingContact;
|
|
1523
|
+
export const zUpdateUserResponse = zUser;
|
|
1385
1524
|
/**
|
|
1386
|
-
*
|
|
1525
|
+
* Returns a list of access token details with masked secrets.
|
|
1387
1526
|
*/
|
|
1388
|
-
export const
|
|
1527
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1528
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1389
1529
|
/**
|
|
1390
|
-
*
|
|
1530
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1391
1531
|
*/
|
|
1392
|
-
export const
|
|
1393
|
-
export const
|
|
1394
|
-
|
|
1532
|
+
export const zCreateTokenResponse = zToken;
|
|
1533
|
+
export const zDeleteTokenPath = z.object({
|
|
1534
|
+
token_id: z.string()
|
|
1395
1535
|
});
|
|
1396
|
-
export const
|
|
1397
|
-
|
|
1536
|
+
export const zGetTokenPath = z.object({
|
|
1537
|
+
token_id: z.string()
|
|
1398
1538
|
});
|
|
1399
1539
|
/**
|
|
1400
|
-
*
|
|
1540
|
+
* Returns access token details with masked secret.
|
|
1401
1541
|
*/
|
|
1402
|
-
export const
|
|
1403
|
-
export const
|
|
1404
|
-
export const
|
|
1405
|
-
|
|
1542
|
+
export const zGetTokenResponse = zToken;
|
|
1543
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1544
|
+
export const zUpdateTokenPath = z.object({
|
|
1545
|
+
token_id: z.string()
|
|
1406
1546
|
});
|
|
1407
1547
|
/**
|
|
1408
|
-
* Successfully
|
|
1548
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1409
1549
|
*/
|
|
1410
|
-
export const
|
|
1411
|
-
export const
|
|
1412
|
-
|
|
1413
|
-
chart_name: z.string()
|
|
1550
|
+
export const zUpdateTokenResponse = zToken;
|
|
1551
|
+
export const zRegenerateTokenPath = z.object({
|
|
1552
|
+
token_id: z.string()
|
|
1414
1553
|
});
|
|
1415
1554
|
/**
|
|
1416
|
-
* Successfully
|
|
1555
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1417
1556
|
*/
|
|
1418
|
-
export const
|
|
1419
|
-
export const zGetChartPath = z.object({
|
|
1420
|
-
cluster_id: z.string(),
|
|
1421
|
-
chart_name: z.string()
|
|
1422
|
-
});
|
|
1557
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1423
1558
|
/**
|
|
1424
|
-
*
|
|
1559
|
+
* An array of tickets for the organization, newest first.
|
|
1425
1560
|
*/
|
|
1426
|
-
export const
|
|
1427
|
-
export const
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
chart_name: z.string()
|
|
1561
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1562
|
+
export const zCreateTicketBody = z.object({
|
|
1563
|
+
payload: z.string().optional(),
|
|
1564
|
+
attachments: z.array(z.string()).optional()
|
|
1431
1565
|
});
|
|
1432
1566
|
/**
|
|
1433
|
-
*
|
|
1567
|
+
* Ticket created.
|
|
1434
1568
|
*/
|
|
1435
|
-
export const
|
|
1436
|
-
export const
|
|
1437
|
-
|
|
1569
|
+
export const zCreateTicketResponse = zTicket;
|
|
1570
|
+
export const zCloseTicketPath = z.object({
|
|
1571
|
+
ticket_id: z.string()
|
|
1438
1572
|
});
|
|
1439
1573
|
/**
|
|
1440
|
-
*
|
|
1574
|
+
* Ticket closed.
|
|
1441
1575
|
*/
|
|
1442
|
-
export const
|
|
1443
|
-
export const
|
|
1444
|
-
|
|
1445
|
-
cluster_id: z.string()
|
|
1576
|
+
export const zCloseTicketResponse = zTicket;
|
|
1577
|
+
export const zGetTicketPath = z.object({
|
|
1578
|
+
ticket_id: z.string()
|
|
1446
1579
|
});
|
|
1447
1580
|
/**
|
|
1448
|
-
*
|
|
1581
|
+
* Ticket with messages (internal notes excluded).
|
|
1449
1582
|
*/
|
|
1450
|
-
export const
|
|
1451
|
-
export const
|
|
1452
|
-
|
|
1453
|
-
|
|
1583
|
+
export const zGetTicketResponse = zTicket;
|
|
1584
|
+
export const zReplyTicketBody = z.object({
|
|
1585
|
+
payload: z.string().optional(),
|
|
1586
|
+
attachments: z.array(z.string()).optional()
|
|
1454
1587
|
});
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
*/
|
|
1458
|
-
export const zDeleteFleetResponse = z.string();
|
|
1459
|
-
export const zGetFleetPath = z.object({
|
|
1460
|
-
cluster_id: z.string(),
|
|
1461
|
-
fleet_name: z.string()
|
|
1588
|
+
export const zReplyTicketPath = z.object({
|
|
1589
|
+
ticket_id: z.string()
|
|
1462
1590
|
});
|
|
1463
1591
|
/**
|
|
1464
|
-
*
|
|
1592
|
+
* Reply appended.
|
|
1465
1593
|
*/
|
|
1466
|
-
export const
|
|
1467
|
-
export const
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
fleet_name: z.string()
|
|
1594
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1595
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1596
|
+
ticket_id: z.string(),
|
|
1597
|
+
attachment_id: z.string()
|
|
1471
1598
|
});
|
|
1472
1599
|
/**
|
|
1473
|
-
*
|
|
1600
|
+
* Attachment binary stream.
|
|
1474
1601
|
*/
|
|
1475
|
-
export const
|
|
1476
|
-
export const zQueryClusterPath = z.object({
|
|
1477
|
-
cluster_id: z.string()
|
|
1478
|
-
});
|
|
1602
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1479
1603
|
/**
|
|
1480
|
-
*
|
|
1604
|
+
* List of repositories
|
|
1481
1605
|
*/
|
|
1482
|
-
export const
|
|
1483
|
-
export const
|
|
1606
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1607
|
+
export const zListTagsPath = z.object({
|
|
1608
|
+
region: z.string(),
|
|
1609
|
+
repository: z.string()
|
|
1610
|
+
});
|
|
1484
1611
|
/**
|
|
1485
|
-
*
|
|
1612
|
+
* Repository with tags
|
|
1486
1613
|
*/
|
|
1487
|
-
export const
|
|
1488
|
-
export const
|
|
1489
|
-
|
|
1614
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1615
|
+
export const zDeleteTagPath = z.object({
|
|
1616
|
+
region: z.string(),
|
|
1617
|
+
repository: z.string(),
|
|
1618
|
+
tag: z.string()
|
|
1619
|
+
});
|
|
1620
|
+
export const zGetTagPath = z.object({
|
|
1621
|
+
region: z.string(),
|
|
1622
|
+
repository: z.string(),
|
|
1623
|
+
tag: z.string()
|
|
1490
1624
|
});
|
|
1491
1625
|
/**
|
|
1492
|
-
*
|
|
1626
|
+
* Tag details
|
|
1493
1627
|
*/
|
|
1494
|
-
export const
|
|
1495
|
-
export const zGetClusterPath = z.object({
|
|
1496
|
-
cluster_id: z.string()
|
|
1497
|
-
});
|
|
1628
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1498
1629
|
/**
|
|
1499
|
-
* Returns a single object containing
|
|
1630
|
+
* Returns a single object containing organization details.
|
|
1500
1631
|
*/
|
|
1501
|
-
export const
|
|
1502
|
-
export const
|
|
1503
|
-
|
|
1504
|
-
|
|
1632
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1633
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1634
|
+
/**
|
|
1635
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1636
|
+
*
|
|
1637
|
+
*/
|
|
1638
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1639
|
+
/**
|
|
1640
|
+
* JSON-RPC 2.0 request payload
|
|
1641
|
+
*/
|
|
1642
|
+
export const zPostMcpBody = z.object({
|
|
1643
|
+
jsonrpc: z.string().optional(),
|
|
1644
|
+
method: z.string().optional(),
|
|
1645
|
+
id: z.union([
|
|
1646
|
+
z.string(),
|
|
1647
|
+
z.number()
|
|
1648
|
+
]).optional(),
|
|
1649
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
1505
1650
|
});
|
|
1506
1651
|
/**
|
|
1507
|
-
*
|
|
1652
|
+
* JSON-RPC 2.0 success or error response
|
|
1508
1653
|
*/
|
|
1509
|
-
export const
|
|
1510
|
-
|
|
1511
|
-
|
|
1654
|
+
export const zPostMcpResponse = z.object({
|
|
1655
|
+
jsonrpc: z.string().optional(),
|
|
1656
|
+
id: z.union([
|
|
1657
|
+
z.string(),
|
|
1658
|
+
z.number()
|
|
1659
|
+
]).optional(),
|
|
1660
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1661
|
+
error: z.object({
|
|
1662
|
+
code: z.int().optional(),
|
|
1663
|
+
message: z.string().optional()
|
|
1664
|
+
}).optional()
|
|
1512
1665
|
});
|
|
1513
1666
|
/**
|
|
1514
|
-
* An
|
|
1667
|
+
* An array of chart listings in the marketplace.
|
|
1515
1668
|
*/
|
|
1516
|
-
export const
|
|
1669
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1670
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1671
|
+
chart_name: z.string(),
|
|
1672
|
+
version_channel: z.string()
|
|
1673
|
+
});
|
|
1674
|
+
/**
|
|
1675
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1676
|
+
*/
|
|
1677
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1517
1678
|
/**
|
|
1518
1679
|
* An array of invites
|
|
1519
1680
|
*/
|
|
@@ -1536,199 +1697,185 @@ export const zGetInviteResponse = z.object({
|
|
|
1536
1697
|
export const zDeleteInvitePath = z.object({
|
|
1537
1698
|
email: z.email()
|
|
1538
1699
|
});
|
|
1700
|
+
export const zQueryClusterPath = z.object({
|
|
1701
|
+
cluster_id: z.string()
|
|
1702
|
+
});
|
|
1703
|
+
export const zListFleetsPath = z.object({
|
|
1704
|
+
cluster_id: z.string()
|
|
1705
|
+
});
|
|
1539
1706
|
/**
|
|
1540
|
-
* An array of
|
|
1707
|
+
* An array of fleets
|
|
1541
1708
|
*/
|
|
1542
|
-
export const
|
|
1543
|
-
export const
|
|
1544
|
-
|
|
1545
|
-
|
|
1709
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1710
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1711
|
+
export const zCreateFleetPath = z.object({
|
|
1712
|
+
cluster_id: z.string()
|
|
1546
1713
|
});
|
|
1547
1714
|
/**
|
|
1548
|
-
*
|
|
1715
|
+
* Successfully created. Returns created Fleet ID.
|
|
1549
1716
|
*/
|
|
1550
|
-
export const
|
|
1717
|
+
export const zCreateFleetResponse = z.string();
|
|
1718
|
+
export const zDeleteFleetPath = z.object({
|
|
1719
|
+
cluster_id: z.string(),
|
|
1720
|
+
fleet_name: z.string()
|
|
1721
|
+
});
|
|
1551
1722
|
/**
|
|
1552
|
-
*
|
|
1723
|
+
* Successfully deleted.
|
|
1553
1724
|
*/
|
|
1554
|
-
export const
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
z.string(),
|
|
1559
|
-
z.number()
|
|
1560
|
-
]).optional(),
|
|
1561
|
-
params: z.record(z.string(), z.unknown()).optional()
|
|
1725
|
+
export const zDeleteFleetResponse = z.string();
|
|
1726
|
+
export const zGetFleetPath = z.object({
|
|
1727
|
+
cluster_id: z.string(),
|
|
1728
|
+
fleet_name: z.string()
|
|
1562
1729
|
});
|
|
1563
1730
|
/**
|
|
1564
|
-
*
|
|
1731
|
+
* Returns a single object containing fleet details.
|
|
1565
1732
|
*/
|
|
1566
|
-
export const
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
]).optional(),
|
|
1572
|
-
result: z.record(z.string(), z.unknown()).optional(),
|
|
1573
|
-
error: z.object({
|
|
1574
|
-
code: z.int().optional(),
|
|
1575
|
-
message: z.string().optional()
|
|
1576
|
-
}).optional()
|
|
1733
|
+
export const zGetFleetResponse = zFleet;
|
|
1734
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1735
|
+
export const zUpdateFleetPath = z.object({
|
|
1736
|
+
cluster_id: z.string(),
|
|
1737
|
+
fleet_name: z.string()
|
|
1577
1738
|
});
|
|
1578
1739
|
/**
|
|
1579
|
-
*
|
|
1740
|
+
* Successfully updated.
|
|
1580
1741
|
*/
|
|
1581
|
-
export const
|
|
1582
|
-
export const
|
|
1742
|
+
export const zUpdateFleetResponse = z.string();
|
|
1743
|
+
export const zListChartsPath = z.object({
|
|
1744
|
+
cluster_id: z.string()
|
|
1745
|
+
});
|
|
1583
1746
|
/**
|
|
1584
|
-
*
|
|
1585
|
-
*
|
|
1747
|
+
* An array of charts
|
|
1586
1748
|
*/
|
|
1587
|
-
export const
|
|
1749
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1750
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1751
|
+
export const zCreateChartPath = z.object({
|
|
1752
|
+
cluster_id: z.string()
|
|
1753
|
+
});
|
|
1588
1754
|
/**
|
|
1589
|
-
*
|
|
1755
|
+
* Successfully created. Returns created Chart ID.
|
|
1590
1756
|
*/
|
|
1591
|
-
export const
|
|
1592
|
-
export const
|
|
1593
|
-
|
|
1594
|
-
|
|
1757
|
+
export const zCreateChartResponse = z.string();
|
|
1758
|
+
export const zDeleteChartPath = z.object({
|
|
1759
|
+
cluster_id: z.string(),
|
|
1760
|
+
chart_name: z.string()
|
|
1595
1761
|
});
|
|
1596
1762
|
/**
|
|
1597
|
-
*
|
|
1763
|
+
* Successfully deleted.
|
|
1598
1764
|
*/
|
|
1599
|
-
export const
|
|
1600
|
-
export const
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
tag: z.string()
|
|
1765
|
+
export const zDeleteChartResponse = z.string();
|
|
1766
|
+
export const zGetChartPath = z.object({
|
|
1767
|
+
cluster_id: z.string(),
|
|
1768
|
+
chart_name: z.string()
|
|
1604
1769
|
});
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1770
|
+
/**
|
|
1771
|
+
* Returns a single object containing chart details.
|
|
1772
|
+
*/
|
|
1773
|
+
export const zGetChartResponse = zChart;
|
|
1774
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1775
|
+
export const zUpdateChartPath = z.object({
|
|
1776
|
+
cluster_id: z.string(),
|
|
1777
|
+
chart_name: z.string()
|
|
1609
1778
|
});
|
|
1610
1779
|
/**
|
|
1611
|
-
*
|
|
1780
|
+
* Successfully updated.
|
|
1612
1781
|
*/
|
|
1613
|
-
export const
|
|
1782
|
+
export const zUpdateChartResponse = z.string();
|
|
1614
1783
|
/**
|
|
1615
|
-
*
|
|
1784
|
+
* An array of clusters
|
|
1616
1785
|
*/
|
|
1617
|
-
export const
|
|
1618
|
-
export const
|
|
1619
|
-
payload: z.string().optional(),
|
|
1620
|
-
attachments: z.array(z.string()).optional()
|
|
1621
|
-
});
|
|
1786
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1787
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1622
1788
|
/**
|
|
1623
|
-
*
|
|
1789
|
+
* Successfully created. Returns created Cluster ID.
|
|
1624
1790
|
*/
|
|
1625
|
-
export const
|
|
1626
|
-
export const
|
|
1627
|
-
|
|
1791
|
+
export const zCreateClusterResponse = z.string();
|
|
1792
|
+
export const zDeleteClusterPath = z.object({
|
|
1793
|
+
cluster_id: z.string()
|
|
1628
1794
|
});
|
|
1629
1795
|
/**
|
|
1630
|
-
*
|
|
1796
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1631
1797
|
*/
|
|
1632
|
-
export const
|
|
1633
|
-
export const
|
|
1634
|
-
|
|
1798
|
+
export const zDeleteClusterResponse = z.string();
|
|
1799
|
+
export const zGetClusterPath = z.object({
|
|
1800
|
+
cluster_id: z.string()
|
|
1635
1801
|
});
|
|
1636
1802
|
/**
|
|
1637
|
-
*
|
|
1803
|
+
* Returns a single object containing cluster details.
|
|
1638
1804
|
*/
|
|
1639
|
-
export const
|
|
1640
|
-
export const
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
});
|
|
1644
|
-
export const zReplyTicketPath = z.object({
|
|
1645
|
-
ticket_id: z.string()
|
|
1805
|
+
export const zGetClusterResponse = zCluster;
|
|
1806
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1807
|
+
export const zUpdateClusterPath = z.object({
|
|
1808
|
+
cluster_id: z.string()
|
|
1646
1809
|
});
|
|
1647
1810
|
/**
|
|
1648
|
-
*
|
|
1811
|
+
* Successfully updated. Returns updated cluster details.
|
|
1649
1812
|
*/
|
|
1650
|
-
export const
|
|
1651
|
-
export const
|
|
1652
|
-
|
|
1653
|
-
attachment_id: z.string()
|
|
1813
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1814
|
+
export const zGetJoinInformationPath = z.object({
|
|
1815
|
+
cluster_id: z.string()
|
|
1654
1816
|
});
|
|
1655
1817
|
/**
|
|
1656
|
-
*
|
|
1818
|
+
* An object of cluster join information
|
|
1657
1819
|
*/
|
|
1658
|
-
export const
|
|
1820
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1821
|
+
export const zGetUsageQuery = z.object({
|
|
1822
|
+
granularity: z.enum([
|
|
1823
|
+
'hourly',
|
|
1824
|
+
'daily',
|
|
1825
|
+
'monthly'
|
|
1826
|
+
]).optional().default('daily')
|
|
1827
|
+
});
|
|
1659
1828
|
/**
|
|
1660
|
-
*
|
|
1829
|
+
* Usage data with facets for filtering
|
|
1661
1830
|
*/
|
|
1662
|
-
export const
|
|
1663
|
-
export const zCreateTokenBody = zTokenCreateInput;
|
|
1831
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1664
1832
|
/**
|
|
1665
|
-
*
|
|
1833
|
+
* 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.
|
|
1834
|
+
*
|
|
1666
1835
|
*/
|
|
1667
|
-
export const
|
|
1668
|
-
|
|
1669
|
-
token_id: z.string()
|
|
1670
|
-
});
|
|
1671
|
-
export const zGetTokenPath = z.object({
|
|
1672
|
-
token_id: z.string()
|
|
1836
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1837
|
+
id: z.string().optional()
|
|
1673
1838
|
});
|
|
1674
1839
|
/**
|
|
1675
|
-
*
|
|
1840
|
+
* An array of payment methods.
|
|
1676
1841
|
*/
|
|
1677
|
-
export const
|
|
1678
|
-
export const
|
|
1679
|
-
|
|
1680
|
-
token_id: z.string()
|
|
1842
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1843
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1844
|
+
paymentMethodId: z.string()
|
|
1681
1845
|
});
|
|
1682
1846
|
/**
|
|
1683
|
-
*
|
|
1847
|
+
* Default payment method updated.
|
|
1684
1848
|
*/
|
|
1685
|
-
export const
|
|
1686
|
-
export const
|
|
1687
|
-
|
|
1849
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1850
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1851
|
+
paymentMethodId: z.string()
|
|
1688
1852
|
});
|
|
1689
1853
|
/**
|
|
1690
|
-
*
|
|
1854
|
+
* Payment method deleted.
|
|
1691
1855
|
*/
|
|
1692
|
-
export const
|
|
1693
|
-
export const zListUserOrganizationsPath = z.object({
|
|
1694
|
-
email: z.string()
|
|
1695
|
-
});
|
|
1856
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1696
1857
|
/**
|
|
1697
|
-
* An array of
|
|
1858
|
+
* An array of usage records.
|
|
1698
1859
|
*/
|
|
1699
|
-
export const
|
|
1700
|
-
realm: z.string().optional(),
|
|
1701
|
-
displayName: z.string().optional()
|
|
1702
|
-
}));
|
|
1860
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1703
1861
|
/**
|
|
1704
|
-
*
|
|
1862
|
+
* The outcome of the attempt.
|
|
1705
1863
|
*/
|
|
1706
|
-
export const
|
|
1707
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1864
|
+
export const zPayOpenInvoicesResponse = zInvoicePaymentResult;
|
|
1708
1865
|
/**
|
|
1709
|
-
*
|
|
1866
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1710
1867
|
*/
|
|
1711
|
-
export const
|
|
1712
|
-
export const
|
|
1713
|
-
user_id: z.string()
|
|
1714
|
-
});
|
|
1868
|
+
export const zGetContactResponse = zBillingContact;
|
|
1869
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1715
1870
|
/**
|
|
1716
|
-
*
|
|
1871
|
+
* Successfully updated. Returns updated organization details.
|
|
1717
1872
|
*/
|
|
1718
|
-
export const
|
|
1719
|
-
export const zGetUserPath = z.object({
|
|
1720
|
-
user_id: z.string()
|
|
1721
|
-
});
|
|
1873
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1722
1874
|
/**
|
|
1723
|
-
*
|
|
1875
|
+
* An array of the applied promotional credits records.
|
|
1724
1876
|
*/
|
|
1725
|
-
export const
|
|
1726
|
-
export const
|
|
1727
|
-
|
|
1728
|
-
user_id: z.string()
|
|
1877
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1878
|
+
export const zRedeemCreditsBody = z.object({
|
|
1879
|
+
code: z.string().optional()
|
|
1729
1880
|
});
|
|
1730
|
-
/**
|
|
1731
|
-
* Successfully created. Returns created user details.
|
|
1732
|
-
*/
|
|
1733
|
-
export const zUpdateUserResponse = zUser;
|
|
1734
1881
|
//# sourceMappingURL=zod.gen.js.map
|