latitudesh-typescript-sdk 0.8.3 → 0.8.4
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/bin/mcp-server.js +134 -64
- package/bin/mcp-server.js.map +18 -18
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/billingusage.d.ts +2 -2
- package/dist/commonjs/models/billingusage.d.ts.map +1 -1
- package/dist/commonjs/models/billingusage.js +2 -2
- package/dist/commonjs/models/billingusage.js.map +1 -1
- package/dist/commonjs/models/ipmisession.d.ts +5 -0
- package/dist/commonjs/models/ipmisession.d.ts.map +1 -1
- package/dist/commonjs/models/ipmisession.js +4 -0
- package/dist/commonjs/models/ipmisession.js.map +1 -1
- package/dist/commonjs/models/kubernetesclusterdata.d.ts +32 -28
- package/dist/commonjs/models/kubernetesclusterdata.d.ts.map +1 -1
- package/dist/commonjs/models/kubernetesclusterdata.js +20 -15
- package/dist/commonjs/models/kubernetesclusterdata.js.map +1 -1
- package/dist/commonjs/models/kubernetesclustersummarydata.d.ts +9 -7
- package/dist/commonjs/models/kubernetesclustersummarydata.d.ts.map +1 -1
- package/dist/commonjs/models/kubernetesclustersummarydata.js +6 -3
- package/dist/commonjs/models/kubernetesclustersummarydata.js.map +1 -1
- package/dist/commonjs/models/objectstoragedata.d.ts +5 -0
- package/dist/commonjs/models/objectstoragedata.d.ts.map +1 -1
- package/dist/commonjs/models/objectstoragedata.js +2 -0
- package/dist/commonjs/models/objectstoragedata.js.map +1 -1
- package/dist/commonjs/models/operatingsystemdata.d.ts +6 -0
- package/dist/commonjs/models/operatingsystemdata.d.ts.map +1 -1
- package/dist/commonjs/models/operatingsystemdata.js +6 -0
- package/dist/commonjs/models/operatingsystemdata.js.map +1 -1
- package/dist/commonjs/models/operations/patchuserprofile.d.ts +11 -0
- package/dist/commonjs/models/operations/patchuserprofile.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchuserprofile.js +15 -1
- package/dist/commonjs/models/operations/patchuserprofile.js.map +1 -1
- package/dist/commonjs/models/serverdata.d.ts +25 -2
- package/dist/commonjs/models/serverdata.d.ts.map +1 -1
- package/dist/commonjs/models/serverdata.js +29 -3
- package/dist/commonjs/models/serverdata.js.map +1 -1
- package/dist/commonjs/models/user.d.ts +15 -0
- package/dist/commonjs/models/user.d.ts.map +1 -1
- package/dist/commonjs/models/user.js +19 -1
- package/dist/commonjs/models/user.js.map +1 -1
- package/dist/commonjs/models/userupdate.d.ts +17 -2
- package/dist/commonjs/models/userupdate.d.ts.map +1 -1
- package/dist/commonjs/models/userupdate.js +20 -3
- package/dist/commonjs/models/userupdate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/billingusage.d.ts +2 -2
- package/dist/esm/models/billingusage.d.ts.map +1 -1
- package/dist/esm/models/billingusage.js +2 -2
- package/dist/esm/models/billingusage.js.map +1 -1
- package/dist/esm/models/ipmisession.d.ts +5 -0
- package/dist/esm/models/ipmisession.d.ts.map +1 -1
- package/dist/esm/models/ipmisession.js +4 -0
- package/dist/esm/models/ipmisession.js.map +1 -1
- package/dist/esm/models/kubernetesclusterdata.d.ts +32 -28
- package/dist/esm/models/kubernetesclusterdata.d.ts.map +1 -1
- package/dist/esm/models/kubernetesclusterdata.js +20 -15
- package/dist/esm/models/kubernetesclusterdata.js.map +1 -1
- package/dist/esm/models/kubernetesclustersummarydata.d.ts +9 -7
- package/dist/esm/models/kubernetesclustersummarydata.d.ts.map +1 -1
- package/dist/esm/models/kubernetesclustersummarydata.js +6 -3
- package/dist/esm/models/kubernetesclustersummarydata.js.map +1 -1
- package/dist/esm/models/objectstoragedata.d.ts +5 -0
- package/dist/esm/models/objectstoragedata.d.ts.map +1 -1
- package/dist/esm/models/objectstoragedata.js +2 -0
- package/dist/esm/models/objectstoragedata.js.map +1 -1
- package/dist/esm/models/operatingsystemdata.d.ts +6 -0
- package/dist/esm/models/operatingsystemdata.d.ts.map +1 -1
- package/dist/esm/models/operatingsystemdata.js +6 -0
- package/dist/esm/models/operatingsystemdata.js.map +1 -1
- package/dist/esm/models/operations/patchuserprofile.d.ts +11 -0
- package/dist/esm/models/operations/patchuserprofile.d.ts.map +1 -1
- package/dist/esm/models/operations/patchuserprofile.js +12 -0
- package/dist/esm/models/operations/patchuserprofile.js.map +1 -1
- package/dist/esm/models/serverdata.d.ts +25 -2
- package/dist/esm/models/serverdata.d.ts.map +1 -1
- package/dist/esm/models/serverdata.js +26 -2
- package/dist/esm/models/serverdata.js.map +1 -1
- package/dist/esm/models/user.d.ts +15 -0
- package/dist/esm/models/user.d.ts.map +1 -1
- package/dist/esm/models/user.js +18 -0
- package/dist/esm/models/user.js.map +1 -1
- package/dist/esm/models/userupdate.d.ts +17 -2
- package/dist/esm/models/userupdate.d.ts.map +1 -1
- package/dist/esm/models/userupdate.js +19 -2
- package/dist/esm/models/userupdate.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/billingusage.ts +4 -4
- package/src/models/ipmisession.ts +9 -0
- package/src/models/kubernetesclusterdata.ts +63 -44
- package/src/models/kubernetesclustersummarydata.ts +18 -11
- package/src/models/objectstoragedata.ts +7 -0
- package/src/models/operatingsystemdata.ts +12 -0
- package/src/models/operations/patchuserprofile.ts +39 -0
- package/src/models/serverdata.ts +63 -4
- package/src/models/user.ts +29 -0
- package/src/models/userupdate.ts +35 -4
|
@@ -5,24 +5,27 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
9
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
9
10
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
11
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
|
-
* The current phase of the cluster lifecycle
|
|
14
|
+
* The current phase of the cluster lifecycle. 'Upgrading' is reported while a Kubernetes version upgrade is rolling through the cluster.
|
|
14
15
|
*/
|
|
15
16
|
export const KubernetesClusterDataPhase = {
|
|
16
17
|
Pending: "Pending",
|
|
17
18
|
Provisioning: "Provisioning",
|
|
18
19
|
Provisioned: "Provisioned",
|
|
20
|
+
Upgrading: "Upgrading",
|
|
19
21
|
Deleting: "Deleting",
|
|
20
22
|
Failed: "Failed",
|
|
23
|
+
Unknown: "Unknown",
|
|
21
24
|
} as const;
|
|
22
25
|
/**
|
|
23
|
-
* The current phase of the cluster lifecycle
|
|
26
|
+
* The current phase of the cluster lifecycle. 'Upgrading' is reported while a Kubernetes version upgrade is rolling through the cluster.
|
|
24
27
|
*/
|
|
25
|
-
export type KubernetesClusterDataPhase =
|
|
28
|
+
export type KubernetesClusterDataPhase = OpenEnum<
|
|
26
29
|
typeof KubernetesClusterDataPhase
|
|
27
30
|
>;
|
|
28
31
|
|
|
@@ -59,31 +62,33 @@ export type Workers = {
|
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
/**
|
|
62
|
-
* Current status of worker nodes. 'idle' when 0 workers, 'ready' when all workers are ready, 'scaling' when workers are being provisioned/removed, 'error' when a worker has failed.
|
|
65
|
+
* Current status of worker nodes. 'idle' when 0 workers, 'ready' when all workers are ready, 'scaling' when workers are being provisioned/removed, 'upgrading' while a Kubernetes version upgrade is rolling through the workers, 'error' when a worker has failed.
|
|
63
66
|
*/
|
|
64
67
|
export const WorkerStatus = {
|
|
65
68
|
Idle: "idle",
|
|
66
69
|
Ready: "ready",
|
|
67
70
|
Scaling: "scaling",
|
|
71
|
+
Upgrading: "upgrading",
|
|
68
72
|
Error: "error",
|
|
69
73
|
} as const;
|
|
70
74
|
/**
|
|
71
|
-
* Current status of worker nodes. 'idle' when 0 workers, 'ready' when all workers are ready, 'scaling' when workers are being provisioned/removed, 'error' when a worker has failed.
|
|
75
|
+
* Current status of worker nodes. 'idle' when 0 workers, 'ready' when all workers are ready, 'scaling' when workers are being provisioned/removed, 'upgrading' while a Kubernetes version upgrade is rolling through the workers, 'error' when a worker has failed.
|
|
72
76
|
*/
|
|
73
|
-
export type WorkerStatus =
|
|
77
|
+
export type WorkerStatus = OpenEnum<typeof WorkerStatus>;
|
|
74
78
|
|
|
75
79
|
/**
|
|
76
|
-
* Current status of control plane nodes. 'ready' when control plane is operational, 'scaling' when nodes are being provisioned/removed, 'error' when a control plane node has failed.
|
|
80
|
+
* Current status of control plane nodes. 'ready' when control plane is operational, 'scaling' when nodes are being provisioned/removed, 'upgrading' while a Kubernetes version upgrade is rolling through the control plane, 'error' when a control plane node has failed.
|
|
77
81
|
*/
|
|
78
82
|
export const ControlPlaneStatus = {
|
|
79
83
|
Ready: "ready",
|
|
80
84
|
Scaling: "scaling",
|
|
85
|
+
Upgrading: "upgrading",
|
|
81
86
|
Error: "error",
|
|
82
87
|
} as const;
|
|
83
88
|
/**
|
|
84
|
-
* Current status of control plane nodes. 'ready' when control plane is operational, 'scaling' when nodes are being provisioned/removed, 'error' when a control plane node has failed.
|
|
89
|
+
* Current status of control plane nodes. 'ready' when control plane is operational, 'scaling' when nodes are being provisioned/removed, 'upgrading' while a Kubernetes version upgrade is rolling through the control plane, 'error' when a control plane node has failed.
|
|
85
90
|
*/
|
|
86
|
-
export type ControlPlaneStatus =
|
|
91
|
+
export type ControlPlaneStatus = OpenEnum<typeof ControlPlaneStatus>;
|
|
87
92
|
|
|
88
93
|
/**
|
|
89
94
|
* Step identifier
|
|
@@ -217,7 +222,7 @@ export type KubernetesClusterDataAttributes = {
|
|
|
217
222
|
*/
|
|
218
223
|
name?: string | undefined;
|
|
219
224
|
/**
|
|
220
|
-
* The current phase of the cluster lifecycle
|
|
225
|
+
* The current phase of the cluster lifecycle. 'Upgrading' is reported while a Kubernetes version upgrade is rolling through the cluster.
|
|
221
226
|
*/
|
|
222
227
|
phase?: KubernetesClusterDataPhase | undefined;
|
|
223
228
|
/**
|
|
@@ -233,17 +238,17 @@ export type KubernetesClusterDataAttributes = {
|
|
|
233
238
|
*/
|
|
234
239
|
kubeconfigUrl?: string | null | undefined;
|
|
235
240
|
/**
|
|
236
|
-
* The site/region where the cluster is deployed
|
|
241
|
+
* The site/region where the cluster is deployed. May be null when the cluster's resources are not fully available (e.g., incomplete provisioning or deletion in progress).
|
|
237
242
|
*/
|
|
238
|
-
location?: string | undefined;
|
|
243
|
+
location?: string | null | undefined;
|
|
239
244
|
/**
|
|
240
245
|
* IP addresses assigned to the cluster's load balancer
|
|
241
246
|
*/
|
|
242
247
|
loadBalancerIps?: Array<string> | undefined;
|
|
243
248
|
/**
|
|
244
|
-
* The Kubernetes version running on the cluster
|
|
249
|
+
* The Kubernetes version running on the cluster. May be null when the control plane resource is not fully available (e.g., incomplete provisioning or deletion in progress).
|
|
245
250
|
*/
|
|
246
|
-
kubernetesVersion?: string | undefined;
|
|
251
|
+
kubernetesVersion?: string | null | undefined;
|
|
247
252
|
/**
|
|
248
253
|
* The cluster's version status relative to available upgrades
|
|
249
254
|
*/
|
|
@@ -257,9 +262,9 @@ export type KubernetesClusterDataAttributes = {
|
|
|
257
262
|
*/
|
|
258
263
|
createdAt?: Date | undefined;
|
|
259
264
|
/**
|
|
260
|
-
* The machine plan slug for control plane nodes
|
|
265
|
+
* The machine plan slug for control plane nodes. May be null when the control plane machine template is not available (e.g., incomplete provisioning or deletion in progress).
|
|
261
266
|
*/
|
|
262
|
-
plan?: string | undefined;
|
|
267
|
+
plan?: string | null | undefined;
|
|
263
268
|
/**
|
|
264
269
|
* The machine plan slug for worker nodes. Null if no workers exist.
|
|
265
270
|
*/
|
|
@@ -281,11 +286,11 @@ export type KubernetesClusterDataAttributes = {
|
|
|
281
286
|
*/
|
|
282
287
|
workers?: Workers | null | undefined;
|
|
283
288
|
/**
|
|
284
|
-
* Current status of worker nodes. 'idle' when 0 workers, 'ready' when all workers are ready, 'scaling' when workers are being provisioned/removed, 'error' when a worker has failed.
|
|
289
|
+
* Current status of worker nodes. 'idle' when 0 workers, 'ready' when all workers are ready, 'scaling' when workers are being provisioned/removed, 'upgrading' while a Kubernetes version upgrade is rolling through the workers, 'error' when a worker has failed.
|
|
285
290
|
*/
|
|
286
291
|
workerStatus?: WorkerStatus | null | undefined;
|
|
287
292
|
/**
|
|
288
|
-
* Current status of control plane nodes. 'ready' when control plane is operational, 'scaling' when nodes are being provisioned/removed, 'error' when a control plane node has failed.
|
|
293
|
+
* Current status of control plane nodes. 'ready' when control plane is operational, 'scaling' when nodes are being provisioned/removed, 'upgrading' while a Kubernetes version upgrade is rolling through the control plane, 'error' when a control plane node has failed.
|
|
289
294
|
*/
|
|
290
295
|
controlPlaneStatus?: ControlPlaneStatus | undefined;
|
|
291
296
|
/**
|
|
@@ -336,13 +341,17 @@ export type KubernetesClusterData = {
|
|
|
336
341
|
};
|
|
337
342
|
|
|
338
343
|
/** @internal */
|
|
339
|
-
export const KubernetesClusterDataPhase$inboundSchema: z.
|
|
340
|
-
|
|
341
|
-
|
|
344
|
+
export const KubernetesClusterDataPhase$inboundSchema: z.ZodType<
|
|
345
|
+
KubernetesClusterDataPhase,
|
|
346
|
+
z.ZodTypeDef,
|
|
347
|
+
unknown
|
|
348
|
+
> = openEnums.inboundSchema(KubernetesClusterDataPhase);
|
|
342
349
|
/** @internal */
|
|
343
|
-
export const KubernetesClusterDataPhase$outboundSchema: z.
|
|
344
|
-
|
|
345
|
-
|
|
350
|
+
export const KubernetesClusterDataPhase$outboundSchema: z.ZodType<
|
|
351
|
+
string,
|
|
352
|
+
z.ZodTypeDef,
|
|
353
|
+
KubernetesClusterDataPhase
|
|
354
|
+
> = openEnums.outboundSchema(KubernetesClusterDataPhase);
|
|
346
355
|
|
|
347
356
|
/** @internal */
|
|
348
357
|
export const VersionStatus$inboundSchema: z.ZodNativeEnum<
|
|
@@ -451,20 +460,30 @@ export function workersFromJSON(
|
|
|
451
460
|
}
|
|
452
461
|
|
|
453
462
|
/** @internal */
|
|
454
|
-
export const WorkerStatus$inboundSchema: z.
|
|
455
|
-
|
|
463
|
+
export const WorkerStatus$inboundSchema: z.ZodType<
|
|
464
|
+
WorkerStatus,
|
|
465
|
+
z.ZodTypeDef,
|
|
466
|
+
unknown
|
|
467
|
+
> = openEnums.inboundSchema(WorkerStatus);
|
|
456
468
|
/** @internal */
|
|
457
|
-
export const WorkerStatus$outboundSchema: z.
|
|
458
|
-
|
|
469
|
+
export const WorkerStatus$outboundSchema: z.ZodType<
|
|
470
|
+
string,
|
|
471
|
+
z.ZodTypeDef,
|
|
472
|
+
WorkerStatus
|
|
473
|
+
> = openEnums.outboundSchema(WorkerStatus);
|
|
459
474
|
|
|
460
475
|
/** @internal */
|
|
461
|
-
export const ControlPlaneStatus$inboundSchema: z.
|
|
462
|
-
|
|
463
|
-
|
|
476
|
+
export const ControlPlaneStatus$inboundSchema: z.ZodType<
|
|
477
|
+
ControlPlaneStatus,
|
|
478
|
+
z.ZodTypeDef,
|
|
479
|
+
unknown
|
|
480
|
+
> = openEnums.inboundSchema(ControlPlaneStatus);
|
|
464
481
|
/** @internal */
|
|
465
|
-
export const ControlPlaneStatus$outboundSchema: z.
|
|
466
|
-
|
|
467
|
-
|
|
482
|
+
export const ControlPlaneStatus$outboundSchema: z.ZodType<
|
|
483
|
+
string,
|
|
484
|
+
z.ZodTypeDef,
|
|
485
|
+
ControlPlaneStatus
|
|
486
|
+
> = openEnums.outboundSchema(ControlPlaneStatus);
|
|
468
487
|
|
|
469
488
|
/** @internal */
|
|
470
489
|
export const KubernetesClusterDataName$inboundSchema: z.ZodNativeEnum<
|
|
@@ -665,14 +684,14 @@ export const KubernetesClusterDataAttributes$inboundSchema: z.ZodType<
|
|
|
665
684
|
ready: z.boolean().optional(),
|
|
666
685
|
control_plane_endpoint: z.nullable(z.string()).optional(),
|
|
667
686
|
kubeconfig_url: z.nullable(z.string()).optional(),
|
|
668
|
-
location: z.string().optional(),
|
|
687
|
+
location: z.nullable(z.string()).optional(),
|
|
669
688
|
load_balancer_ips: z.array(z.string()).optional(),
|
|
670
|
-
kubernetes_version: z.string().optional(),
|
|
689
|
+
kubernetes_version: z.nullable(z.string()).optional(),
|
|
671
690
|
version_status: VersionStatus$inboundSchema.optional(),
|
|
672
691
|
available_upgrade: z.nullable(z.string()).optional(),
|
|
673
692
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
674
693
|
.optional(),
|
|
675
|
-
plan: z.string().optional(),
|
|
694
|
+
plan: z.nullable(z.string()).optional(),
|
|
676
695
|
worker_plan: z.nullable(z.string()).optional(),
|
|
677
696
|
control_plane_count: z.number().int().optional(),
|
|
678
697
|
worker_count: z.number().int().optional(),
|
|
@@ -722,13 +741,13 @@ export type KubernetesClusterDataAttributes$Outbound = {
|
|
|
722
741
|
ready?: boolean | undefined;
|
|
723
742
|
control_plane_endpoint?: string | null | undefined;
|
|
724
743
|
kubeconfig_url?: string | null | undefined;
|
|
725
|
-
location?: string | undefined;
|
|
744
|
+
location?: string | null | undefined;
|
|
726
745
|
load_balancer_ips?: Array<string> | undefined;
|
|
727
|
-
kubernetes_version?: string | undefined;
|
|
746
|
+
kubernetes_version?: string | null | undefined;
|
|
728
747
|
version_status?: string | undefined;
|
|
729
748
|
available_upgrade?: string | null | undefined;
|
|
730
749
|
created_at?: string | undefined;
|
|
731
|
-
plan?: string | undefined;
|
|
750
|
+
plan?: string | null | undefined;
|
|
732
751
|
worker_plan?: string | null | undefined;
|
|
733
752
|
control_plane_count?: number | undefined;
|
|
734
753
|
worker_count?: number | undefined;
|
|
@@ -758,13 +777,13 @@ export const KubernetesClusterDataAttributes$outboundSchema: z.ZodType<
|
|
|
758
777
|
ready: z.boolean().optional(),
|
|
759
778
|
controlPlaneEndpoint: z.nullable(z.string()).optional(),
|
|
760
779
|
kubeconfigUrl: z.nullable(z.string()).optional(),
|
|
761
|
-
location: z.string().optional(),
|
|
780
|
+
location: z.nullable(z.string()).optional(),
|
|
762
781
|
loadBalancerIps: z.array(z.string()).optional(),
|
|
763
|
-
kubernetesVersion: z.string().optional(),
|
|
782
|
+
kubernetesVersion: z.nullable(z.string()).optional(),
|
|
764
783
|
versionStatus: VersionStatus$outboundSchema.optional(),
|
|
765
784
|
availableUpgrade: z.nullable(z.string()).optional(),
|
|
766
785
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
767
|
-
plan: z.string().optional(),
|
|
786
|
+
plan: z.nullable(z.string()).optional(),
|
|
768
787
|
workerPlan: z.nullable(z.string()).optional(),
|
|
769
788
|
controlPlaneCount: z.number().int().optional(),
|
|
770
789
|
workerCount: z.number().int().optional(),
|
|
@@ -5,24 +5,27 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
9
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
9
10
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
11
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
|
-
* The current phase of the cluster lifecycle
|
|
14
|
+
* The current phase of the cluster lifecycle.
|
|
14
15
|
*/
|
|
15
16
|
export const KubernetesClusterSummaryDataPhase = {
|
|
16
17
|
Pending: "Pending",
|
|
17
18
|
Provisioning: "Provisioning",
|
|
18
19
|
Provisioned: "Provisioned",
|
|
20
|
+
Upgrading: "Upgrading",
|
|
19
21
|
Deleting: "Deleting",
|
|
20
22
|
Failed: "Failed",
|
|
23
|
+
Unknown: "Unknown",
|
|
21
24
|
} as const;
|
|
22
25
|
/**
|
|
23
|
-
* The current phase of the cluster lifecycle
|
|
26
|
+
* The current phase of the cluster lifecycle.
|
|
24
27
|
*/
|
|
25
|
-
export type KubernetesClusterSummaryDataPhase =
|
|
28
|
+
export type KubernetesClusterSummaryDataPhase = OpenEnum<
|
|
26
29
|
typeof KubernetesClusterSummaryDataPhase
|
|
27
30
|
>;
|
|
28
31
|
|
|
@@ -73,7 +76,7 @@ export type KubernetesClusterSummaryDataAttributes = {
|
|
|
73
76
|
*/
|
|
74
77
|
name?: string | undefined;
|
|
75
78
|
/**
|
|
76
|
-
* The current phase of the cluster lifecycle
|
|
79
|
+
* The current phase of the cluster lifecycle.
|
|
77
80
|
*/
|
|
78
81
|
phase?: KubernetesClusterSummaryDataPhase | undefined;
|
|
79
82
|
/**
|
|
@@ -119,13 +122,17 @@ export type KubernetesClusterSummaryData = {
|
|
|
119
122
|
};
|
|
120
123
|
|
|
121
124
|
/** @internal */
|
|
122
|
-
export const KubernetesClusterSummaryDataPhase$inboundSchema: z.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
export const KubernetesClusterSummaryDataPhase$inboundSchema: z.ZodType<
|
|
126
|
+
KubernetesClusterSummaryDataPhase,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
unknown
|
|
129
|
+
> = openEnums.inboundSchema(KubernetesClusterSummaryDataPhase);
|
|
125
130
|
/** @internal */
|
|
126
|
-
export const KubernetesClusterSummaryDataPhase$outboundSchema: z.
|
|
127
|
-
|
|
128
|
-
|
|
131
|
+
export const KubernetesClusterSummaryDataPhase$outboundSchema: z.ZodType<
|
|
132
|
+
string,
|
|
133
|
+
z.ZodTypeDef,
|
|
134
|
+
KubernetesClusterSummaryDataPhase
|
|
135
|
+
> = openEnums.outboundSchema(KubernetesClusterSummaryDataPhase);
|
|
129
136
|
|
|
130
137
|
/** @internal */
|
|
131
138
|
export const KubernetesClusterSummaryDataName$inboundSchema: z.ZodNativeEnum<
|
|
@@ -118,6 +118,10 @@ export type ObjectStorageDataAttributes = {
|
|
|
118
118
|
* Default retention period in days when object lock is enabled
|
|
119
119
|
*/
|
|
120
120
|
retentionPeriod?: number | null | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* How the bucket originated: `default` for buckets created through the API, or `synchronized` for buckets imported from the storage provider.
|
|
123
|
+
*/
|
|
124
|
+
source?: string | undefined;
|
|
121
125
|
/**
|
|
122
126
|
* Region information where the object storage is located
|
|
123
127
|
*/
|
|
@@ -225,6 +229,7 @@ export const ObjectStorageDataAttributes$inboundSchema: z.ZodType<
|
|
|
225
229
|
locking: z.nullable(z.boolean()).optional(),
|
|
226
230
|
retention_mode: z.nullable(RetentionMode$inboundSchema).optional(),
|
|
227
231
|
retention_period: z.nullable(z.number().int()).optional(),
|
|
232
|
+
source: z.string().optional(),
|
|
228
233
|
region: z.nullable(z.lazy(() => ObjectStorageDataRegion$inboundSchema))
|
|
229
234
|
.optional(),
|
|
230
235
|
project: ProjectInclude$inboundSchema.optional(),
|
|
@@ -255,6 +260,7 @@ export type ObjectStorageDataAttributes$Outbound = {
|
|
|
255
260
|
locking?: boolean | null | undefined;
|
|
256
261
|
retention_mode?: string | null | undefined;
|
|
257
262
|
retention_period?: number | null | undefined;
|
|
263
|
+
source?: string | undefined;
|
|
258
264
|
region?: ObjectStorageDataRegion$Outbound | null | undefined;
|
|
259
265
|
project?: ProjectInclude$Outbound | undefined;
|
|
260
266
|
team?: TeamInclude$Outbound | undefined;
|
|
@@ -278,6 +284,7 @@ export const ObjectStorageDataAttributes$outboundSchema: z.ZodType<
|
|
|
278
284
|
locking: z.nullable(z.boolean()).optional(),
|
|
279
285
|
retentionMode: z.nullable(RetentionMode$outboundSchema).optional(),
|
|
280
286
|
retentionPeriod: z.nullable(z.number().int()).optional(),
|
|
287
|
+
source: z.string().optional(),
|
|
281
288
|
region: z.nullable(z.lazy(() => ObjectStorageDataRegion$outboundSchema))
|
|
282
289
|
.optional(),
|
|
283
290
|
project: ProjectInclude$outboundSchema.optional(),
|
|
@@ -20,6 +20,9 @@ export type OperatingSystemDataFeatures = {
|
|
|
20
20
|
raid?: boolean | undefined;
|
|
21
21
|
sshKeys?: boolean | undefined;
|
|
22
22
|
userData?: boolean | undefined;
|
|
23
|
+
accelerate?: boolean | undefined;
|
|
24
|
+
rescue?: boolean | undefined;
|
|
25
|
+
workflow?: boolean | undefined;
|
|
23
26
|
};
|
|
24
27
|
|
|
25
28
|
export type OperatingSystemDataAttributes = {
|
|
@@ -56,6 +59,9 @@ export const OperatingSystemDataFeatures$inboundSchema: z.ZodType<
|
|
|
56
59
|
raid: z.boolean().optional(),
|
|
57
60
|
ssh_keys: z.boolean().optional(),
|
|
58
61
|
user_data: z.boolean().optional(),
|
|
62
|
+
accelerate: z.boolean().optional(),
|
|
63
|
+
rescue: z.boolean().optional(),
|
|
64
|
+
workflow: z.boolean().optional(),
|
|
59
65
|
}).transform((v) => {
|
|
60
66
|
return remap$(v, {
|
|
61
67
|
"ssh_keys": "sshKeys",
|
|
@@ -67,6 +73,9 @@ export type OperatingSystemDataFeatures$Outbound = {
|
|
|
67
73
|
raid?: boolean | undefined;
|
|
68
74
|
ssh_keys?: boolean | undefined;
|
|
69
75
|
user_data?: boolean | undefined;
|
|
76
|
+
accelerate?: boolean | undefined;
|
|
77
|
+
rescue?: boolean | undefined;
|
|
78
|
+
workflow?: boolean | undefined;
|
|
70
79
|
};
|
|
71
80
|
|
|
72
81
|
/** @internal */
|
|
@@ -78,6 +87,9 @@ export const OperatingSystemDataFeatures$outboundSchema: z.ZodType<
|
|
|
78
87
|
raid: z.boolean().optional(),
|
|
79
88
|
sshKeys: z.boolean().optional(),
|
|
80
89
|
userData: z.boolean().optional(),
|
|
90
|
+
accelerate: z.boolean().optional(),
|
|
91
|
+
rescue: z.boolean().optional(),
|
|
92
|
+
workflow: z.boolean().optional(),
|
|
81
93
|
}).transform((v) => {
|
|
82
94
|
return remap$(v, {
|
|
83
95
|
sshKeys: "ssh_keys",
|
|
@@ -44,11 +44,14 @@ export type PatchUserProfileRequest = {
|
|
|
44
44
|
requestBody: PatchUserProfileRequestBody2;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
export type PatchUserProfileMeta = {};
|
|
48
|
+
|
|
47
49
|
/**
|
|
48
50
|
* Success
|
|
49
51
|
*/
|
|
50
52
|
export type PatchUserProfileResponse = {
|
|
51
53
|
data?: models.UserUpdate | undefined;
|
|
54
|
+
meta?: PatchUserProfileMeta | undefined;
|
|
52
55
|
};
|
|
53
56
|
|
|
54
57
|
/** @internal */
|
|
@@ -264,6 +267,39 @@ export function patchUserProfileRequestFromJSON(
|
|
|
264
267
|
);
|
|
265
268
|
}
|
|
266
269
|
|
|
270
|
+
/** @internal */
|
|
271
|
+
export const PatchUserProfileMeta$inboundSchema: z.ZodType<
|
|
272
|
+
PatchUserProfileMeta,
|
|
273
|
+
z.ZodTypeDef,
|
|
274
|
+
unknown
|
|
275
|
+
> = z.object({});
|
|
276
|
+
/** @internal */
|
|
277
|
+
export type PatchUserProfileMeta$Outbound = {};
|
|
278
|
+
|
|
279
|
+
/** @internal */
|
|
280
|
+
export const PatchUserProfileMeta$outboundSchema: z.ZodType<
|
|
281
|
+
PatchUserProfileMeta$Outbound,
|
|
282
|
+
z.ZodTypeDef,
|
|
283
|
+
PatchUserProfileMeta
|
|
284
|
+
> = z.object({});
|
|
285
|
+
|
|
286
|
+
export function patchUserProfileMetaToJSON(
|
|
287
|
+
patchUserProfileMeta: PatchUserProfileMeta,
|
|
288
|
+
): string {
|
|
289
|
+
return JSON.stringify(
|
|
290
|
+
PatchUserProfileMeta$outboundSchema.parse(patchUserProfileMeta),
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
export function patchUserProfileMetaFromJSON(
|
|
294
|
+
jsonString: string,
|
|
295
|
+
): SafeParseResult<PatchUserProfileMeta, SDKValidationError> {
|
|
296
|
+
return safeParse(
|
|
297
|
+
jsonString,
|
|
298
|
+
(x) => PatchUserProfileMeta$inboundSchema.parse(JSON.parse(x)),
|
|
299
|
+
`Failed to parse 'PatchUserProfileMeta' from JSON`,
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
|
|
267
303
|
/** @internal */
|
|
268
304
|
export const PatchUserProfileResponse$inboundSchema: z.ZodType<
|
|
269
305
|
PatchUserProfileResponse,
|
|
@@ -271,10 +307,12 @@ export const PatchUserProfileResponse$inboundSchema: z.ZodType<
|
|
|
271
307
|
unknown
|
|
272
308
|
> = z.object({
|
|
273
309
|
data: models.UserUpdate$inboundSchema.optional(),
|
|
310
|
+
meta: z.lazy(() => PatchUserProfileMeta$inboundSchema).optional(),
|
|
274
311
|
});
|
|
275
312
|
/** @internal */
|
|
276
313
|
export type PatchUserProfileResponse$Outbound = {
|
|
277
314
|
data?: models.UserUpdate$Outbound | undefined;
|
|
315
|
+
meta?: PatchUserProfileMeta$Outbound | undefined;
|
|
278
316
|
};
|
|
279
317
|
|
|
280
318
|
/** @internal */
|
|
@@ -284,6 +322,7 @@ export const PatchUserProfileResponse$outboundSchema: z.ZodType<
|
|
|
284
322
|
PatchUserProfileResponse
|
|
285
323
|
> = z.object({
|
|
286
324
|
data: models.UserUpdate$outboundSchema.optional(),
|
|
325
|
+
meta: z.lazy(() => PatchUserProfileMeta$outboundSchema).optional(),
|
|
287
326
|
});
|
|
288
327
|
|
|
289
328
|
export function patchUserProfileResponseToJSON(
|
package/src/models/serverdata.ts
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
TeamInclude$outboundSchema,
|
|
28
28
|
} from "./teaminclude.js";
|
|
29
29
|
|
|
30
|
+
export type ServerDataTag = {
|
|
31
|
+
id?: string | undefined;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
description?: string | null | undefined;
|
|
34
|
+
color?: string | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
30
37
|
/**
|
|
31
38
|
* `on` - The server is powered ON
|
|
32
39
|
*
|
|
@@ -163,11 +170,13 @@ export type Interface = {
|
|
|
163
170
|
};
|
|
164
171
|
|
|
165
172
|
export type ServerDataAttributes = {
|
|
173
|
+
tags?: Array<ServerDataTag> | undefined;
|
|
166
174
|
hostname?: string | undefined;
|
|
167
175
|
/**
|
|
168
176
|
* The server label
|
|
169
177
|
*/
|
|
170
178
|
label?: string | undefined;
|
|
179
|
+
price?: number | null | undefined;
|
|
171
180
|
/**
|
|
172
181
|
* `on` - The server is powered ON
|
|
173
182
|
*
|
|
@@ -180,7 +189,7 @@ export type ServerDataAttributes = {
|
|
|
180
189
|
* `rescue_mode` - The server is in rescue mode
|
|
181
190
|
*/
|
|
182
191
|
status?: ServerDataStatus | undefined;
|
|
183
|
-
ipmiStatus?: IpmiStatus | undefined;
|
|
192
|
+
ipmiStatus?: IpmiStatus | null | undefined;
|
|
184
193
|
/**
|
|
185
194
|
* The server role (e.g. Bare Metal)
|
|
186
195
|
*/
|
|
@@ -207,6 +216,50 @@ export type ServerData = {
|
|
|
207
216
|
attributes?: ServerDataAttributes | undefined;
|
|
208
217
|
};
|
|
209
218
|
|
|
219
|
+
/** @internal */
|
|
220
|
+
export const ServerDataTag$inboundSchema: z.ZodType<
|
|
221
|
+
ServerDataTag,
|
|
222
|
+
z.ZodTypeDef,
|
|
223
|
+
unknown
|
|
224
|
+
> = z.object({
|
|
225
|
+
id: z.string().optional(),
|
|
226
|
+
name: z.string().optional(),
|
|
227
|
+
description: z.nullable(z.string()).optional(),
|
|
228
|
+
color: z.nullable(z.string()).optional(),
|
|
229
|
+
});
|
|
230
|
+
/** @internal */
|
|
231
|
+
export type ServerDataTag$Outbound = {
|
|
232
|
+
id?: string | undefined;
|
|
233
|
+
name?: string | undefined;
|
|
234
|
+
description?: string | null | undefined;
|
|
235
|
+
color?: string | null | undefined;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
/** @internal */
|
|
239
|
+
export const ServerDataTag$outboundSchema: z.ZodType<
|
|
240
|
+
ServerDataTag$Outbound,
|
|
241
|
+
z.ZodTypeDef,
|
|
242
|
+
ServerDataTag
|
|
243
|
+
> = z.object({
|
|
244
|
+
id: z.string().optional(),
|
|
245
|
+
name: z.string().optional(),
|
|
246
|
+
description: z.nullable(z.string()).optional(),
|
|
247
|
+
color: z.nullable(z.string()).optional(),
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
export function serverDataTagToJSON(serverDataTag: ServerDataTag): string {
|
|
251
|
+
return JSON.stringify(ServerDataTag$outboundSchema.parse(serverDataTag));
|
|
252
|
+
}
|
|
253
|
+
export function serverDataTagFromJSON(
|
|
254
|
+
jsonString: string,
|
|
255
|
+
): SafeParseResult<ServerDataTag, SDKValidationError> {
|
|
256
|
+
return safeParse(
|
|
257
|
+
jsonString,
|
|
258
|
+
(x) => ServerDataTag$inboundSchema.parse(JSON.parse(x)),
|
|
259
|
+
`Failed to parse 'ServerDataTag' from JSON`,
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
210
263
|
/** @internal */
|
|
211
264
|
export const ServerDataStatus$inboundSchema: z.ZodNativeEnum<
|
|
212
265
|
typeof ServerDataStatus
|
|
@@ -534,10 +587,12 @@ export const ServerDataAttributes$inboundSchema: z.ZodType<
|
|
|
534
587
|
z.ZodTypeDef,
|
|
535
588
|
unknown
|
|
536
589
|
> = z.object({
|
|
590
|
+
tags: z.array(z.lazy(() => ServerDataTag$inboundSchema)).optional(),
|
|
537
591
|
hostname: z.string().optional(),
|
|
538
592
|
label: z.string().optional(),
|
|
593
|
+
price: z.nullable(z.number()).optional(),
|
|
539
594
|
status: ServerDataStatus$inboundSchema.optional(),
|
|
540
|
-
ipmi_status: IpmiStatus$inboundSchema.optional(),
|
|
595
|
+
ipmi_status: z.nullable(IpmiStatus$inboundSchema).optional(),
|
|
541
596
|
role: z.string().optional(),
|
|
542
597
|
site: z.string().optional(),
|
|
543
598
|
locked: z.boolean().optional(),
|
|
@@ -567,10 +622,12 @@ export const ServerDataAttributes$inboundSchema: z.ZodType<
|
|
|
567
622
|
});
|
|
568
623
|
/** @internal */
|
|
569
624
|
export type ServerDataAttributes$Outbound = {
|
|
625
|
+
tags?: Array<ServerDataTag$Outbound> | undefined;
|
|
570
626
|
hostname?: string | undefined;
|
|
571
627
|
label?: string | undefined;
|
|
628
|
+
price?: number | null | undefined;
|
|
572
629
|
status?: string | undefined;
|
|
573
|
-
ipmi_status?: string | undefined;
|
|
630
|
+
ipmi_status?: string | null | undefined;
|
|
574
631
|
role?: string | undefined;
|
|
575
632
|
site?: string | undefined;
|
|
576
633
|
locked?: boolean | undefined;
|
|
@@ -594,10 +651,12 @@ export const ServerDataAttributes$outboundSchema: z.ZodType<
|
|
|
594
651
|
z.ZodTypeDef,
|
|
595
652
|
ServerDataAttributes
|
|
596
653
|
> = z.object({
|
|
654
|
+
tags: z.array(z.lazy(() => ServerDataTag$outboundSchema)).optional(),
|
|
597
655
|
hostname: z.string().optional(),
|
|
598
656
|
label: z.string().optional(),
|
|
657
|
+
price: z.nullable(z.number()).optional(),
|
|
599
658
|
status: ServerDataStatus$outboundSchema.optional(),
|
|
600
|
-
ipmiStatus: IpmiStatus$outboundSchema.optional(),
|
|
659
|
+
ipmiStatus: z.nullable(IpmiStatus$outboundSchema).optional(),
|
|
601
660
|
role: z.string().optional(),
|
|
602
661
|
site: z.string().optional(),
|
|
603
662
|
locked: z.boolean().optional(),
|