@alienplatform/platform-api 3.3.20 → 3.3.21
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/esm/funcs/deploymentGetInfo.js +4 -2
- package/esm/funcs/deploymentGetInfo.js.map +1 -1
- package/esm/funcs/deploymentPlanCompute.js +2 -2
- package/esm/funcs/deploymentPlanCompute.js.map +1 -1
- package/esm/funcs/deploymentPrepareStack.js +2 -2
- package/esm/funcs/deploymentPrepareStack.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createsetuplinkresponse.d.ts +4 -0
- package/esm/models/createsetuplinkresponse.d.ts.map +1 -1
- package/esm/models/createsetuplinkresponse.js +1 -0
- package/esm/models/createsetuplinkresponse.js.map +1 -1
- package/esm/models/deploymentcomputeplan.d.ts +148 -10
- package/esm/models/deploymentcomputeplan.d.ts.map +1 -1
- package/esm/models/deploymentcomputeplan.js +83 -10
- package/esm/models/deploymentcomputeplan.js.map +1 -1
- package/esm/models/deploymentinfo.d.ts +1276 -8
- package/esm/models/deploymentinfo.d.ts.map +1 -1
- package/esm/models/deploymentinfo.js +987 -7
- package/esm/models/deploymentinfo.js.map +1 -1
- package/esm/models/deploymentupdateoperationstatus.d.ts +1 -0
- package/esm/models/deploymentupdateoperationstatus.d.ts.map +1 -1
- package/esm/models/deploymentupdateoperationstatus.js +1 -0
- package/esm/models/deploymentupdateoperationstatus.js.map +1 -1
- package/esm/models/deploymentupdateoperationsummary.d.ts +4 -0
- package/esm/models/deploymentupdateoperationsummary.d.ts.map +1 -1
- package/esm/models/deploymentupdateoperationsummary.js +1 -0
- package/esm/models/deploymentupdateoperationsummary.js.map +1 -1
- package/esm/models/operations/getdeploymentinfo.d.ts +4 -0
- package/esm/models/operations/getdeploymentinfo.d.ts.map +1 -1
- package/esm/models/operations/getdeploymentinfo.js +2 -0
- package/esm/models/operations/getdeploymentinfo.js.map +1 -1
- package/esm/models/operations/plandeploymentcompute.d.ts +140 -12
- package/esm/models/operations/plandeploymentcompute.d.ts.map +1 -1
- package/esm/models/operations/plandeploymentcompute.js +67 -6
- package/esm/models/operations/plandeploymentcompute.js.map +1 -1
- package/esm/models/operations/preparedeploymentstack.d.ts +145 -12
- package/esm/models/operations/preparedeploymentstack.d.ts.map +1 -1
- package/esm/models/operations/preparedeploymentstack.js +68 -7
- package/esm/models/operations/preparedeploymentstack.js.map +1 -1
- package/esm/models/operationspluginoperation.d.ts +4 -0
- package/esm/models/operationspluginoperation.d.ts.map +1 -1
- package/esm/models/operationspluginoperation.js +1 -0
- package/esm/models/operationspluginoperation.js.map +1 -1
- package/esm/models/prepareddeploymentstack.d.ts +1 -0
- package/esm/models/prepareddeploymentstack.d.ts.map +1 -1
- package/esm/models/prepareddeploymentstack.js +1 -0
- package/esm/models/prepareddeploymentstack.js.map +1 -1
- package/esm/sdk/resources.d.ts +0 -3
- package/esm/sdk/resources.d.ts.map +1 -1
- package/esm/sdk/resources.js +0 -3
- package/esm/sdk/resources.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/deploymentGetInfo.ts +4 -2
- package/src/funcs/deploymentPlanCompute.ts +2 -2
- package/src/funcs/deploymentPrepareStack.ts +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/createsetuplinkresponse.ts +7 -0
- package/src/models/deploymentcomputeplan.ts +311 -20
- package/src/models/deploymentinfo.ts +3599 -453
- package/src/models/deploymentupdateoperationstatus.ts +1 -0
- package/src/models/deploymentupdateoperationsummary.ts +5 -0
- package/src/models/operations/getdeploymentinfo.ts +6 -0
- package/src/models/operations/plandeploymentcompute.ts +295 -18
- package/src/models/operations/preparedeploymentstack.ts +301 -19
- package/src/models/operationspluginoperation.ts +5 -0
- package/src/models/prepareddeploymentstack.ts +2 -0
- package/src/sdk/resources.ts +0 -3
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../lib/schemas.js";
|
|
7
8
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
@@ -60,34 +61,150 @@ export type ScaleFixed = {
|
|
|
60
61
|
|
|
61
62
|
export type Scale = ScaleFixed | ScaleAutoscale;
|
|
62
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Failure-domain policy selected for a compute pool.
|
|
66
|
+
*/
|
|
67
|
+
export type SelectedFailureDomains2 = {
|
|
68
|
+
/**
|
|
69
|
+
* Concrete provider domains selected during setup.
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Empty delegates deterministic selection to the provider setup implementation.
|
|
73
|
+
*/
|
|
74
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Number of distinct failure domains across which new stateful replicas may be spread.
|
|
77
|
+
*/
|
|
78
|
+
spread: number;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type SelectedFailureDomainsUnion2 = SelectedFailureDomains2 | any;
|
|
82
|
+
|
|
63
83
|
export type SelectedAutoscale = {
|
|
64
|
-
|
|
65
|
-
|
|
84
|
+
failureDomains?: SelectedFailureDomains2 | any | null | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Provider machine type selected for this deployment.
|
|
87
|
+
*/
|
|
88
|
+
machine?: string | null | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Maximum machine count.
|
|
91
|
+
*/
|
|
66
92
|
max: number;
|
|
67
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Minimum machine count.
|
|
95
|
+
*/
|
|
96
|
+
min: number;
|
|
97
|
+
mode: "autoscale";
|
|
68
98
|
};
|
|
69
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Failure-domain policy selected for a compute pool.
|
|
102
|
+
*/
|
|
103
|
+
export type SelectedFailureDomains1 = {
|
|
104
|
+
/**
|
|
105
|
+
* Concrete provider domains selected during setup.
|
|
106
|
+
*
|
|
107
|
+
* @remarks
|
|
108
|
+
* Empty delegates deterministic selection to the provider setup implementation.
|
|
109
|
+
*/
|
|
110
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Number of distinct failure domains across which new stateful replicas may be spread.
|
|
113
|
+
*/
|
|
114
|
+
spread: number;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export type SelectedFailureDomainsUnion1 = SelectedFailureDomains1 | any;
|
|
118
|
+
|
|
70
119
|
export type SelectedFixed = {
|
|
71
|
-
|
|
120
|
+
failureDomains?: SelectedFailureDomains1 | any | null | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Provider machine type selected for this deployment.
|
|
123
|
+
*/
|
|
124
|
+
machine?: string | null | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* Number of machines to run.
|
|
127
|
+
*/
|
|
72
128
|
machines: number;
|
|
73
|
-
|
|
129
|
+
mode: "fixed";
|
|
74
130
|
};
|
|
75
131
|
|
|
132
|
+
/**
|
|
133
|
+
* User-selected deployment settings for one compute pool.
|
|
134
|
+
*/
|
|
76
135
|
export type Selected = SelectedFixed | SelectedAutoscale;
|
|
77
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Failure-domain policy selected for a compute pool.
|
|
139
|
+
*/
|
|
140
|
+
export type RecommendedFailureDomains2 = {
|
|
141
|
+
/**
|
|
142
|
+
* Concrete provider domains selected during setup.
|
|
143
|
+
*
|
|
144
|
+
* @remarks
|
|
145
|
+
* Empty delegates deterministic selection to the provider setup implementation.
|
|
146
|
+
*/
|
|
147
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Number of distinct failure domains across which new stateful replicas may be spread.
|
|
150
|
+
*/
|
|
151
|
+
spread: number;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
export type RecommendedFailureDomainsUnion2 = RecommendedFailureDomains2 | any;
|
|
155
|
+
|
|
78
156
|
export type RecommendedAutoscale = {
|
|
79
|
-
|
|
80
|
-
|
|
157
|
+
failureDomains?: RecommendedFailureDomains2 | any | null | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Provider machine type selected for this deployment.
|
|
160
|
+
*/
|
|
161
|
+
machine?: string | null | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Maximum machine count.
|
|
164
|
+
*/
|
|
81
165
|
max: number;
|
|
82
|
-
|
|
166
|
+
/**
|
|
167
|
+
* Minimum machine count.
|
|
168
|
+
*/
|
|
169
|
+
min: number;
|
|
170
|
+
mode: "autoscale";
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Failure-domain policy selected for a compute pool.
|
|
175
|
+
*/
|
|
176
|
+
export type RecommendedFailureDomains1 = {
|
|
177
|
+
/**
|
|
178
|
+
* Concrete provider domains selected during setup.
|
|
179
|
+
*
|
|
180
|
+
* @remarks
|
|
181
|
+
* Empty delegates deterministic selection to the provider setup implementation.
|
|
182
|
+
*/
|
|
183
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* Number of distinct failure domains across which new stateful replicas may be spread.
|
|
186
|
+
*/
|
|
187
|
+
spread: number;
|
|
83
188
|
};
|
|
84
189
|
|
|
190
|
+
export type RecommendedFailureDomainsUnion1 = RecommendedFailureDomains1 | any;
|
|
191
|
+
|
|
85
192
|
export type RecommendedFixed = {
|
|
86
|
-
|
|
193
|
+
failureDomains?: RecommendedFailureDomains1 | any | null | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* Provider machine type selected for this deployment.
|
|
196
|
+
*/
|
|
197
|
+
machine?: string | null | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* Number of machines to run.
|
|
200
|
+
*/
|
|
87
201
|
machines: number;
|
|
88
|
-
|
|
202
|
+
mode: "fixed";
|
|
89
203
|
};
|
|
90
204
|
|
|
205
|
+
/**
|
|
206
|
+
* User-selected deployment settings for one compute pool.
|
|
207
|
+
*/
|
|
91
208
|
export type Recommended = RecommendedFixed | RecommendedAutoscale;
|
|
92
209
|
|
|
93
210
|
export const ProfileArchitecture = {
|
|
@@ -120,7 +237,13 @@ export type Pool = {
|
|
|
120
237
|
workloads: Array<string>;
|
|
121
238
|
requirements: Requirements;
|
|
122
239
|
scale: ScaleFixed | ScaleAutoscale;
|
|
240
|
+
/**
|
|
241
|
+
* User-selected deployment settings for one compute pool.
|
|
242
|
+
*/
|
|
123
243
|
selected: SelectedFixed | SelectedAutoscale;
|
|
244
|
+
/**
|
|
245
|
+
* User-selected deployment settings for one compute pool.
|
|
246
|
+
*/
|
|
124
247
|
recommended: RecommendedFixed | RecommendedAutoscale;
|
|
125
248
|
machines: Array<DeploymentComputePlanMachine>;
|
|
126
249
|
errors?: Array<string> | undefined;
|
|
@@ -276,15 +399,57 @@ export function scaleFromJSON(
|
|
|
276
399
|
);
|
|
277
400
|
}
|
|
278
401
|
|
|
402
|
+
/** @internal */
|
|
403
|
+
export const SelectedFailureDomains2$inboundSchema: z.ZodType<
|
|
404
|
+
SelectedFailureDomains2,
|
|
405
|
+
unknown
|
|
406
|
+
> = z.object({
|
|
407
|
+
selectedFailureDomains: z.array(z.string()).optional(),
|
|
408
|
+
spread: z.int(),
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
export function selectedFailureDomains2FromJSON(
|
|
412
|
+
jsonString: string,
|
|
413
|
+
): SafeParseResult<SelectedFailureDomains2, SDKValidationError> {
|
|
414
|
+
return safeParse(
|
|
415
|
+
jsonString,
|
|
416
|
+
(x) => SelectedFailureDomains2$inboundSchema.parse(JSON.parse(x)),
|
|
417
|
+
`Failed to parse 'SelectedFailureDomains2' from JSON`,
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/** @internal */
|
|
422
|
+
export const SelectedFailureDomainsUnion2$inboundSchema: z.ZodType<
|
|
423
|
+
SelectedFailureDomainsUnion2,
|
|
424
|
+
unknown
|
|
425
|
+
> = z.union([z.lazy(() => SelectedFailureDomains2$inboundSchema), z.any()]);
|
|
426
|
+
|
|
427
|
+
export function selectedFailureDomainsUnion2FromJSON(
|
|
428
|
+
jsonString: string,
|
|
429
|
+
): SafeParseResult<SelectedFailureDomainsUnion2, SDKValidationError> {
|
|
430
|
+
return safeParse(
|
|
431
|
+
jsonString,
|
|
432
|
+
(x) => SelectedFailureDomainsUnion2$inboundSchema.parse(JSON.parse(x)),
|
|
433
|
+
`Failed to parse 'SelectedFailureDomainsUnion2' from JSON`,
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
|
|
279
437
|
/** @internal */
|
|
280
438
|
export const SelectedAutoscale$inboundSchema: z.ZodType<
|
|
281
439
|
SelectedAutoscale,
|
|
282
440
|
unknown
|
|
283
441
|
> = z.object({
|
|
284
|
-
|
|
285
|
-
|
|
442
|
+
failure_domains: z.nullable(
|
|
443
|
+
z.union([z.lazy(() => SelectedFailureDomains2$inboundSchema), z.any()]),
|
|
444
|
+
).optional(),
|
|
445
|
+
machine: z.nullable(z.string()).optional(),
|
|
286
446
|
max: z.int(),
|
|
287
|
-
|
|
447
|
+
min: z.int(),
|
|
448
|
+
mode: z.literal("autoscale"),
|
|
449
|
+
}).transform((v) => {
|
|
450
|
+
return remap$(v, {
|
|
451
|
+
"failure_domains": "failureDomains",
|
|
452
|
+
});
|
|
288
453
|
});
|
|
289
454
|
|
|
290
455
|
export function selectedAutoscaleFromJSON(
|
|
@@ -297,12 +462,54 @@ export function selectedAutoscaleFromJSON(
|
|
|
297
462
|
);
|
|
298
463
|
}
|
|
299
464
|
|
|
465
|
+
/** @internal */
|
|
466
|
+
export const SelectedFailureDomains1$inboundSchema: z.ZodType<
|
|
467
|
+
SelectedFailureDomains1,
|
|
468
|
+
unknown
|
|
469
|
+
> = z.object({
|
|
470
|
+
selectedFailureDomains: z.array(z.string()).optional(),
|
|
471
|
+
spread: z.int(),
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
export function selectedFailureDomains1FromJSON(
|
|
475
|
+
jsonString: string,
|
|
476
|
+
): SafeParseResult<SelectedFailureDomains1, SDKValidationError> {
|
|
477
|
+
return safeParse(
|
|
478
|
+
jsonString,
|
|
479
|
+
(x) => SelectedFailureDomains1$inboundSchema.parse(JSON.parse(x)),
|
|
480
|
+
`Failed to parse 'SelectedFailureDomains1' from JSON`,
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/** @internal */
|
|
485
|
+
export const SelectedFailureDomainsUnion1$inboundSchema: z.ZodType<
|
|
486
|
+
SelectedFailureDomainsUnion1,
|
|
487
|
+
unknown
|
|
488
|
+
> = z.union([z.lazy(() => SelectedFailureDomains1$inboundSchema), z.any()]);
|
|
489
|
+
|
|
490
|
+
export function selectedFailureDomainsUnion1FromJSON(
|
|
491
|
+
jsonString: string,
|
|
492
|
+
): SafeParseResult<SelectedFailureDomainsUnion1, SDKValidationError> {
|
|
493
|
+
return safeParse(
|
|
494
|
+
jsonString,
|
|
495
|
+
(x) => SelectedFailureDomainsUnion1$inboundSchema.parse(JSON.parse(x)),
|
|
496
|
+
`Failed to parse 'SelectedFailureDomainsUnion1' from JSON`,
|
|
497
|
+
);
|
|
498
|
+
}
|
|
499
|
+
|
|
300
500
|
/** @internal */
|
|
301
501
|
export const SelectedFixed$inboundSchema: z.ZodType<SelectedFixed, unknown> = z
|
|
302
502
|
.object({
|
|
303
|
-
|
|
503
|
+
failure_domains: z.nullable(
|
|
504
|
+
z.union([z.lazy(() => SelectedFailureDomains1$inboundSchema), z.any()]),
|
|
505
|
+
).optional(),
|
|
506
|
+
machine: z.nullable(z.string()).optional(),
|
|
304
507
|
machines: z.int(),
|
|
305
|
-
|
|
508
|
+
mode: z.literal("fixed"),
|
|
509
|
+
}).transform((v) => {
|
|
510
|
+
return remap$(v, {
|
|
511
|
+
"failure_domains": "failureDomains",
|
|
512
|
+
});
|
|
306
513
|
});
|
|
307
514
|
|
|
308
515
|
export function selectedFixedFromJSON(
|
|
@@ -331,15 +538,57 @@ export function selectedFromJSON(
|
|
|
331
538
|
);
|
|
332
539
|
}
|
|
333
540
|
|
|
541
|
+
/** @internal */
|
|
542
|
+
export const RecommendedFailureDomains2$inboundSchema: z.ZodType<
|
|
543
|
+
RecommendedFailureDomains2,
|
|
544
|
+
unknown
|
|
545
|
+
> = z.object({
|
|
546
|
+
selectedFailureDomains: z.array(z.string()).optional(),
|
|
547
|
+
spread: z.int(),
|
|
548
|
+
});
|
|
549
|
+
|
|
550
|
+
export function recommendedFailureDomains2FromJSON(
|
|
551
|
+
jsonString: string,
|
|
552
|
+
): SafeParseResult<RecommendedFailureDomains2, SDKValidationError> {
|
|
553
|
+
return safeParse(
|
|
554
|
+
jsonString,
|
|
555
|
+
(x) => RecommendedFailureDomains2$inboundSchema.parse(JSON.parse(x)),
|
|
556
|
+
`Failed to parse 'RecommendedFailureDomains2' from JSON`,
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/** @internal */
|
|
561
|
+
export const RecommendedFailureDomainsUnion2$inboundSchema: z.ZodType<
|
|
562
|
+
RecommendedFailureDomainsUnion2,
|
|
563
|
+
unknown
|
|
564
|
+
> = z.union([z.lazy(() => RecommendedFailureDomains2$inboundSchema), z.any()]);
|
|
565
|
+
|
|
566
|
+
export function recommendedFailureDomainsUnion2FromJSON(
|
|
567
|
+
jsonString: string,
|
|
568
|
+
): SafeParseResult<RecommendedFailureDomainsUnion2, SDKValidationError> {
|
|
569
|
+
return safeParse(
|
|
570
|
+
jsonString,
|
|
571
|
+
(x) => RecommendedFailureDomainsUnion2$inboundSchema.parse(JSON.parse(x)),
|
|
572
|
+
`Failed to parse 'RecommendedFailureDomainsUnion2' from JSON`,
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
|
|
334
576
|
/** @internal */
|
|
335
577
|
export const RecommendedAutoscale$inboundSchema: z.ZodType<
|
|
336
578
|
RecommendedAutoscale,
|
|
337
579
|
unknown
|
|
338
580
|
> = z.object({
|
|
339
|
-
|
|
340
|
-
|
|
581
|
+
failure_domains: z.nullable(
|
|
582
|
+
z.union([z.lazy(() => RecommendedFailureDomains2$inboundSchema), z.any()]),
|
|
583
|
+
).optional(),
|
|
584
|
+
machine: z.nullable(z.string()).optional(),
|
|
341
585
|
max: z.int(),
|
|
342
|
-
|
|
586
|
+
min: z.int(),
|
|
587
|
+
mode: z.literal("autoscale"),
|
|
588
|
+
}).transform((v) => {
|
|
589
|
+
return remap$(v, {
|
|
590
|
+
"failure_domains": "failureDomains",
|
|
591
|
+
});
|
|
343
592
|
});
|
|
344
593
|
|
|
345
594
|
export function recommendedAutoscaleFromJSON(
|
|
@@ -352,14 +601,56 @@ export function recommendedAutoscaleFromJSON(
|
|
|
352
601
|
);
|
|
353
602
|
}
|
|
354
603
|
|
|
604
|
+
/** @internal */
|
|
605
|
+
export const RecommendedFailureDomains1$inboundSchema: z.ZodType<
|
|
606
|
+
RecommendedFailureDomains1,
|
|
607
|
+
unknown
|
|
608
|
+
> = z.object({
|
|
609
|
+
selectedFailureDomains: z.array(z.string()).optional(),
|
|
610
|
+
spread: z.int(),
|
|
611
|
+
});
|
|
612
|
+
|
|
613
|
+
export function recommendedFailureDomains1FromJSON(
|
|
614
|
+
jsonString: string,
|
|
615
|
+
): SafeParseResult<RecommendedFailureDomains1, SDKValidationError> {
|
|
616
|
+
return safeParse(
|
|
617
|
+
jsonString,
|
|
618
|
+
(x) => RecommendedFailureDomains1$inboundSchema.parse(JSON.parse(x)),
|
|
619
|
+
`Failed to parse 'RecommendedFailureDomains1' from JSON`,
|
|
620
|
+
);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/** @internal */
|
|
624
|
+
export const RecommendedFailureDomainsUnion1$inboundSchema: z.ZodType<
|
|
625
|
+
RecommendedFailureDomainsUnion1,
|
|
626
|
+
unknown
|
|
627
|
+
> = z.union([z.lazy(() => RecommendedFailureDomains1$inboundSchema), z.any()]);
|
|
628
|
+
|
|
629
|
+
export function recommendedFailureDomainsUnion1FromJSON(
|
|
630
|
+
jsonString: string,
|
|
631
|
+
): SafeParseResult<RecommendedFailureDomainsUnion1, SDKValidationError> {
|
|
632
|
+
return safeParse(
|
|
633
|
+
jsonString,
|
|
634
|
+
(x) => RecommendedFailureDomainsUnion1$inboundSchema.parse(JSON.parse(x)),
|
|
635
|
+
`Failed to parse 'RecommendedFailureDomainsUnion1' from JSON`,
|
|
636
|
+
);
|
|
637
|
+
}
|
|
638
|
+
|
|
355
639
|
/** @internal */
|
|
356
640
|
export const RecommendedFixed$inboundSchema: z.ZodType<
|
|
357
641
|
RecommendedFixed,
|
|
358
642
|
unknown
|
|
359
643
|
> = z.object({
|
|
360
|
-
|
|
644
|
+
failure_domains: z.nullable(
|
|
645
|
+
z.union([z.lazy(() => RecommendedFailureDomains1$inboundSchema), z.any()]),
|
|
646
|
+
).optional(),
|
|
647
|
+
machine: z.nullable(z.string()).optional(),
|
|
361
648
|
machines: z.int(),
|
|
362
|
-
|
|
649
|
+
mode: z.literal("fixed"),
|
|
650
|
+
}).transform((v) => {
|
|
651
|
+
return remap$(v, {
|
|
652
|
+
"failure_domains": "failureDomains",
|
|
653
|
+
});
|
|
363
654
|
});
|
|
364
655
|
|
|
365
656
|
export function recommendedFixedFromJSON(
|