latitudesh-typescript-sdk 0.8.2 → 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 +838 -559
- package/bin/mcp-server.js.map +28 -27
- package/dist/commonjs/funcs/plansListStorage.d.ts +2 -1
- package/dist/commonjs/funcs/plansListStorage.d.ts.map +1 -1
- package/dist/commonjs/funcs/plansListStorage.js +18 -3
- package/dist/commonjs/funcs/plansListStorage.js.map +1 -1
- 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/mcp-server/tools/plansListStorage.d.ts +6 -1
- package/dist/commonjs/mcp-server/tools/plansListStorage.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/plansListStorage.js +40 -2
- package/dist/commonjs/mcp-server/tools/plansListStorage.js.map +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/getstorageplans.d.ts +25 -0
- package/dist/commonjs/models/operations/getstorageplans.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getstorageplans.js +71 -0
- package/dist/commonjs/models/operations/getstorageplans.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.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/operations/updateproject.d.ts +4 -4
- package/dist/commonjs/models/operations/updateproject.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateproject.js +8 -8
- package/dist/commonjs/models/operations/updateproject.js.map +1 -1
- package/dist/commonjs/models/outofbandconnection.d.ts +8 -8
- package/dist/commonjs/models/outofbandconnection.d.ts.map +1 -1
- package/dist/commonjs/models/outofbandconnection.js +11 -12
- package/dist/commonjs/models/outofbandconnection.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/storageplandata.d.ts +70 -5
- package/dist/commonjs/models/storageplandata.d.ts.map +1 -1
- package/dist/commonjs/models/storageplandata.js +101 -5
- package/dist/commonjs/models/storageplandata.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/userteam.d.ts +53 -0
- package/dist/commonjs/models/userteam.d.ts.map +1 -1
- package/dist/commonjs/models/userteam.js +79 -1
- package/dist/commonjs/models/userteam.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/commonjs/models/virtualmachineattributes.d.ts +32 -9
- package/dist/commonjs/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachineattributes.js +47 -9
- package/dist/commonjs/models/virtualmachineattributes.js.map +1 -1
- package/dist/commonjs/models/volumedata.d.ts +15 -0
- package/dist/commonjs/models/volumedata.d.ts.map +1 -1
- package/dist/commonjs/models/volumedata.js +10 -0
- package/dist/commonjs/models/volumedata.js.map +1 -1
- package/dist/commonjs/sdk/plans.d.ts +1 -1
- package/dist/commonjs/sdk/plans.d.ts.map +1 -1
- package/dist/commonjs/sdk/plans.js +2 -2
- package/dist/commonjs/sdk/plans.js.map +1 -1
- package/dist/esm/funcs/plansListStorage.d.ts +2 -1
- package/dist/esm/funcs/plansListStorage.d.ts.map +1 -1
- package/dist/esm/funcs/plansListStorage.js +18 -3
- package/dist/esm/funcs/plansListStorage.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/mcp-server/tools/plansListStorage.d.ts +6 -1
- package/dist/esm/mcp-server/tools/plansListStorage.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/plansListStorage.js +7 -2
- package/dist/esm/mcp-server/tools/plansListStorage.js.map +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/getstorageplans.d.ts +25 -0
- package/dist/esm/models/operations/getstorageplans.d.ts.map +1 -0
- package/dist/esm/models/operations/getstorageplans.js +33 -0
- package/dist/esm/models/operations/getstorageplans.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.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/operations/updateproject.d.ts +4 -4
- package/dist/esm/models/operations/updateproject.d.ts.map +1 -1
- package/dist/esm/models/operations/updateproject.js +8 -8
- package/dist/esm/models/operations/updateproject.js.map +1 -1
- package/dist/esm/models/outofbandconnection.d.ts +8 -8
- package/dist/esm/models/outofbandconnection.d.ts.map +1 -1
- package/dist/esm/models/outofbandconnection.js +8 -9
- package/dist/esm/models/outofbandconnection.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/storageplandata.d.ts +70 -5
- package/dist/esm/models/storageplandata.d.ts.map +1 -1
- package/dist/esm/models/storageplandata.js +94 -4
- package/dist/esm/models/storageplandata.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/userteam.d.ts +53 -0
- package/dist/esm/models/userteam.d.ts.map +1 -1
- package/dist/esm/models/userteam.js +76 -0
- package/dist/esm/models/userteam.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/dist/esm/models/virtualmachineattributes.d.ts +32 -9
- package/dist/esm/models/virtualmachineattributes.d.ts.map +1 -1
- package/dist/esm/models/virtualmachineattributes.js +44 -8
- package/dist/esm/models/virtualmachineattributes.js.map +1 -1
- package/dist/esm/models/volumedata.d.ts +15 -0
- package/dist/esm/models/volumedata.d.ts.map +1 -1
- package/dist/esm/models/volumedata.js +10 -0
- package/dist/esm/models/volumedata.js.map +1 -1
- package/dist/esm/sdk/plans.d.ts +1 -1
- package/dist/esm/sdk/plans.d.ts.map +1 -1
- package/dist/esm/sdk/plans.js +2 -2
- package/dist/esm/sdk/plans.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/plansListStorage.ts +25 -0
- 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/mcp-server/tools/plansListStorage.ts +9 -2
- 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/getstorageplans.ts +72 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/patchuserprofile.ts +39 -0
- package/src/models/operations/updateproject.ts +12 -16
- package/src/models/outofbandconnection.ts +28 -21
- package/src/models/serverdata.ts +63 -4
- package/src/models/storageplandata.ts +211 -10
- package/src/models/user.ts +29 -0
- package/src/models/userteam.ts +142 -0
- package/src/models/userupdate.ts +35 -4
- package/src/models/virtualmachineattributes.ts +98 -17
- package/src/models/volumedata.ts +25 -0
- package/src/sdk/plans.ts +2 -0
- package/tests/integration/projects.test.ts +3 -0
|
@@ -3,14 +3,21 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { plansListStorage } from "../../funcs/plansListStorage.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
6
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetStoragePlansRequest$inboundSchema.optional(),
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$plansListStorage: ToolDefinition<typeof args> = {
|
|
9
14
|
name: "plans-list-storage",
|
|
10
15
|
description: `List storage plans`,
|
|
11
|
-
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
12
18
|
const [result, apiCall] = await plansListStorage(
|
|
13
19
|
client,
|
|
20
|
+
args.request,
|
|
14
21
|
{ fetchOptions: { signal: ctx.signal } },
|
|
15
22
|
).$inspect();
|
|
16
23
|
|
|
@@ -72,7 +72,7 @@ export type UsageType = ClosedEnum<typeof UsageType>;
|
|
|
72
72
|
export type BillingUsageServer = {
|
|
73
73
|
id?: string | undefined;
|
|
74
74
|
hostname?: string | undefined;
|
|
75
|
-
plan?: string | undefined;
|
|
75
|
+
plan?: string | null | undefined;
|
|
76
76
|
tags?: Array<string> | undefined;
|
|
77
77
|
};
|
|
78
78
|
|
|
@@ -352,14 +352,14 @@ export const BillingUsageServer$inboundSchema: z.ZodType<
|
|
|
352
352
|
> = z.object({
|
|
353
353
|
id: z.string().optional(),
|
|
354
354
|
hostname: z.string().optional(),
|
|
355
|
-
plan: z.string().optional(),
|
|
355
|
+
plan: z.nullable(z.string()).optional(),
|
|
356
356
|
tags: z.array(z.string()).optional(),
|
|
357
357
|
});
|
|
358
358
|
/** @internal */
|
|
359
359
|
export type BillingUsageServer$Outbound = {
|
|
360
360
|
id?: string | undefined;
|
|
361
361
|
hostname?: string | undefined;
|
|
362
|
-
plan?: string | undefined;
|
|
362
|
+
plan?: string | null | undefined;
|
|
363
363
|
tags?: Array<string> | undefined;
|
|
364
364
|
};
|
|
365
365
|
|
|
@@ -371,7 +371,7 @@ export const BillingUsageServer$outboundSchema: z.ZodType<
|
|
|
371
371
|
> = z.object({
|
|
372
372
|
id: z.string().optional(),
|
|
373
373
|
hostname: z.string().optional(),
|
|
374
|
-
plan: z.string().optional(),
|
|
374
|
+
plan: z.nullable(z.string()).optional(),
|
|
375
375
|
tags: z.array(z.string()).optional(),
|
|
376
376
|
});
|
|
377
377
|
|
|
@@ -19,6 +19,10 @@ export type IpmiSessionAttributes = {
|
|
|
19
19
|
* The IPMI IP Address
|
|
20
20
|
*/
|
|
21
21
|
ipmiAddress?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The IPMI URL for direct access
|
|
24
|
+
*/
|
|
25
|
+
ipmiUrl?: string | null | undefined;
|
|
22
26
|
/**
|
|
23
27
|
* The IPMI username
|
|
24
28
|
*/
|
|
@@ -55,11 +59,13 @@ export const IpmiSessionAttributes$inboundSchema: z.ZodType<
|
|
|
55
59
|
unknown
|
|
56
60
|
> = z.object({
|
|
57
61
|
ipmi_address: z.string().optional(),
|
|
62
|
+
ipmi_url: z.nullable(z.string()).optional(),
|
|
58
63
|
ipmi_username: z.string().optional(),
|
|
59
64
|
ipmi_password: z.string().optional(),
|
|
60
65
|
}).transform((v) => {
|
|
61
66
|
return remap$(v, {
|
|
62
67
|
"ipmi_address": "ipmiAddress",
|
|
68
|
+
"ipmi_url": "ipmiUrl",
|
|
63
69
|
"ipmi_username": "ipmiUsername",
|
|
64
70
|
"ipmi_password": "ipmiPassword",
|
|
65
71
|
});
|
|
@@ -67,6 +73,7 @@ export const IpmiSessionAttributes$inboundSchema: z.ZodType<
|
|
|
67
73
|
/** @internal */
|
|
68
74
|
export type IpmiSessionAttributes$Outbound = {
|
|
69
75
|
ipmi_address?: string | undefined;
|
|
76
|
+
ipmi_url?: string | null | undefined;
|
|
70
77
|
ipmi_username?: string | undefined;
|
|
71
78
|
ipmi_password?: string | undefined;
|
|
72
79
|
};
|
|
@@ -78,11 +85,13 @@ export const IpmiSessionAttributes$outboundSchema: z.ZodType<
|
|
|
78
85
|
IpmiSessionAttributes
|
|
79
86
|
> = z.object({
|
|
80
87
|
ipmiAddress: z.string().optional(),
|
|
88
|
+
ipmiUrl: z.nullable(z.string()).optional(),
|
|
81
89
|
ipmiUsername: z.string().optional(),
|
|
82
90
|
ipmiPassword: z.string().optional(),
|
|
83
91
|
}).transform((v) => {
|
|
84
92
|
return remap$(v, {
|
|
85
93
|
ipmiAddress: "ipmi_address",
|
|
94
|
+
ipmiUrl: "ipmi_url",
|
|
86
95
|
ipmiUsername: "ipmi_username",
|
|
87
96
|
ipmiPassword: "ipmi_password",
|
|
88
97
|
});
|
|
@@ -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",
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetStoragePlansRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* Filter by storage type (filesystem or object)
|
|
14
|
+
*/
|
|
15
|
+
filterStorageType?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Filter by storage class (standard or high_performance)
|
|
18
|
+
*/
|
|
19
|
+
filterStorageClass?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const GetStoragePlansRequest$inboundSchema: z.ZodType<
|
|
24
|
+
GetStoragePlansRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
"filter[storage_type]": z.string().optional(),
|
|
29
|
+
"filter[storage_class]": z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"filter[storage_type]": "filterStorageType",
|
|
33
|
+
"filter[storage_class]": "filterStorageClass",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type GetStoragePlansRequest$Outbound = {
|
|
38
|
+
"filter[storage_type]"?: string | undefined;
|
|
39
|
+
"filter[storage_class]"?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const GetStoragePlansRequest$outboundSchema: z.ZodType<
|
|
44
|
+
GetStoragePlansRequest$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
GetStoragePlansRequest
|
|
47
|
+
> = z.object({
|
|
48
|
+
filterStorageType: z.string().optional(),
|
|
49
|
+
filterStorageClass: z.string().optional(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
filterStorageType: "filter[storage_type]",
|
|
53
|
+
filterStorageClass: "filter[storage_class]",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function getStoragePlansRequestToJSON(
|
|
58
|
+
getStoragePlansRequest: GetStoragePlansRequest,
|
|
59
|
+
): string {
|
|
60
|
+
return JSON.stringify(
|
|
61
|
+
GetStoragePlansRequest$outboundSchema.parse(getStoragePlansRequest),
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
export function getStoragePlansRequestFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<GetStoragePlansRequest, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => GetStoragePlansRequest$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'GetStoragePlansRequest' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -71,6 +71,7 @@ export * from "./getsshkeys.js";
|
|
|
71
71
|
export * from "./getstoragebucket.js";
|
|
72
72
|
export * from "./getstoragebuckets.js";
|
|
73
73
|
export * from "./getstoragefilesystems.js";
|
|
74
|
+
export * from "./getstorageplans.js";
|
|
74
75
|
export * from "./getstoragevolume.js";
|
|
75
76
|
export * from "./getstoragevolumes.js";
|
|
76
77
|
export * from "./getteammembers.js";
|
|
@@ -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(
|