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
package/src/models/user.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
11
|
import {
|
|
@@ -14,6 +15,11 @@ import {
|
|
|
14
15
|
TeamInclude$outboundSchema,
|
|
15
16
|
} from "./teaminclude.js";
|
|
16
17
|
|
|
18
|
+
export const UserType = {
|
|
19
|
+
Users: "users",
|
|
20
|
+
} as const;
|
|
21
|
+
export type UserType = ClosedEnum<typeof UserType>;
|
|
22
|
+
|
|
17
23
|
export type UserRole = {
|
|
18
24
|
id?: string | undefined;
|
|
19
25
|
name?: string | undefined;
|
|
@@ -26,15 +32,25 @@ export type UserAttributes = {
|
|
|
26
32
|
lastName?: string | undefined;
|
|
27
33
|
email?: string | undefined;
|
|
28
34
|
authenticationFactorId?: string | undefined;
|
|
35
|
+
createdAt?: string | undefined;
|
|
36
|
+
updatedAt?: string | undefined;
|
|
29
37
|
role?: UserRole | undefined;
|
|
30
38
|
teams?: Array<TeamInclude> | undefined;
|
|
31
39
|
};
|
|
32
40
|
|
|
33
41
|
export type User = {
|
|
34
42
|
id?: string | undefined;
|
|
43
|
+
type?: UserType | undefined;
|
|
35
44
|
attributes?: UserAttributes | undefined;
|
|
36
45
|
};
|
|
37
46
|
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const UserType$inboundSchema: z.ZodNativeEnum<typeof UserType> = z
|
|
49
|
+
.nativeEnum(UserType);
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const UserType$outboundSchema: z.ZodNativeEnum<typeof UserType> =
|
|
52
|
+
UserType$inboundSchema;
|
|
53
|
+
|
|
38
54
|
/** @internal */
|
|
39
55
|
export const UserRole$inboundSchema: z.ZodType<
|
|
40
56
|
UserRole,
|
|
@@ -101,6 +117,8 @@ export const UserAttributes$inboundSchema: z.ZodType<
|
|
|
101
117
|
last_name: z.string().optional(),
|
|
102
118
|
email: z.string().optional(),
|
|
103
119
|
authentication_factor_id: z.string().optional(),
|
|
120
|
+
created_at: z.string().optional(),
|
|
121
|
+
updated_at: z.string().optional(),
|
|
104
122
|
role: z.lazy(() => UserRole$inboundSchema).optional(),
|
|
105
123
|
teams: z.array(TeamInclude$inboundSchema).optional(),
|
|
106
124
|
}).transform((v) => {
|
|
@@ -108,6 +126,8 @@ export const UserAttributes$inboundSchema: z.ZodType<
|
|
|
108
126
|
"first_name": "firstName",
|
|
109
127
|
"last_name": "lastName",
|
|
110
128
|
"authentication_factor_id": "authenticationFactorId",
|
|
129
|
+
"created_at": "createdAt",
|
|
130
|
+
"updated_at": "updatedAt",
|
|
111
131
|
});
|
|
112
132
|
});
|
|
113
133
|
/** @internal */
|
|
@@ -116,6 +136,8 @@ export type UserAttributes$Outbound = {
|
|
|
116
136
|
last_name?: string | undefined;
|
|
117
137
|
email?: string | undefined;
|
|
118
138
|
authentication_factor_id?: string | undefined;
|
|
139
|
+
created_at?: string | undefined;
|
|
140
|
+
updated_at?: string | undefined;
|
|
119
141
|
role?: UserRole$Outbound | undefined;
|
|
120
142
|
teams?: Array<TeamInclude$Outbound> | undefined;
|
|
121
143
|
};
|
|
@@ -130,6 +152,8 @@ export const UserAttributes$outboundSchema: z.ZodType<
|
|
|
130
152
|
lastName: z.string().optional(),
|
|
131
153
|
email: z.string().optional(),
|
|
132
154
|
authenticationFactorId: z.string().optional(),
|
|
155
|
+
createdAt: z.string().optional(),
|
|
156
|
+
updatedAt: z.string().optional(),
|
|
133
157
|
role: z.lazy(() => UserRole$outboundSchema).optional(),
|
|
134
158
|
teams: z.array(TeamInclude$outboundSchema).optional(),
|
|
135
159
|
}).transform((v) => {
|
|
@@ -137,6 +161,8 @@ export const UserAttributes$outboundSchema: z.ZodType<
|
|
|
137
161
|
firstName: "first_name",
|
|
138
162
|
lastName: "last_name",
|
|
139
163
|
authenticationFactorId: "authentication_factor_id",
|
|
164
|
+
createdAt: "created_at",
|
|
165
|
+
updatedAt: "updated_at",
|
|
140
166
|
});
|
|
141
167
|
});
|
|
142
168
|
|
|
@@ -157,11 +183,13 @@ export function userAttributesFromJSON(
|
|
|
157
183
|
export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
|
|
158
184
|
.object({
|
|
159
185
|
id: z.string().optional(),
|
|
186
|
+
type: UserType$inboundSchema.optional(),
|
|
160
187
|
attributes: z.lazy(() => UserAttributes$inboundSchema).optional(),
|
|
161
188
|
});
|
|
162
189
|
/** @internal */
|
|
163
190
|
export type User$Outbound = {
|
|
164
191
|
id?: string | undefined;
|
|
192
|
+
type?: string | undefined;
|
|
165
193
|
attributes?: UserAttributes$Outbound | undefined;
|
|
166
194
|
};
|
|
167
195
|
|
|
@@ -169,6 +197,7 @@ export type User$Outbound = {
|
|
|
169
197
|
export const User$outboundSchema: z.ZodType<User$Outbound, z.ZodTypeDef, User> =
|
|
170
198
|
z.object({
|
|
171
199
|
id: z.string().optional(),
|
|
200
|
+
type: UserType$outboundSchema.optional(),
|
|
172
201
|
attributes: z.lazy(() => UserAttributes$outboundSchema).optional(),
|
|
173
202
|
});
|
|
174
203
|
|
package/src/models/userupdate.ts
CHANGED
|
@@ -5,22 +5,40 @@
|
|
|
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 { ClosedEnum } from "../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
export const UserUpdateType = {
|
|
13
|
+
Users: "users",
|
|
14
|
+
} as const;
|
|
15
|
+
export type UserUpdateType = ClosedEnum<typeof UserUpdateType>;
|
|
16
|
+
|
|
11
17
|
export type UserUpdateAttributes = {
|
|
12
18
|
firstName?: string | undefined;
|
|
13
19
|
lastName?: string | undefined;
|
|
14
20
|
email?: string | undefined;
|
|
15
21
|
authenticationFactorId?: string | null | undefined;
|
|
16
|
-
role?: string | undefined;
|
|
22
|
+
role?: string | null | undefined;
|
|
23
|
+
createdAt?: string | undefined;
|
|
24
|
+
updatedAt?: string | undefined;
|
|
17
25
|
};
|
|
18
26
|
|
|
19
27
|
export type UserUpdate = {
|
|
20
28
|
id?: string | undefined;
|
|
29
|
+
type?: UserUpdateType | undefined;
|
|
21
30
|
attributes?: UserUpdateAttributes | undefined;
|
|
22
31
|
};
|
|
23
32
|
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const UserUpdateType$inboundSchema: z.ZodNativeEnum<
|
|
35
|
+
typeof UserUpdateType
|
|
36
|
+
> = z.nativeEnum(UserUpdateType);
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const UserUpdateType$outboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof UserUpdateType
|
|
40
|
+
> = UserUpdateType$inboundSchema;
|
|
41
|
+
|
|
24
42
|
/** @internal */
|
|
25
43
|
export const UserUpdateAttributes$inboundSchema: z.ZodType<
|
|
26
44
|
UserUpdateAttributes,
|
|
@@ -31,12 +49,16 @@ export const UserUpdateAttributes$inboundSchema: z.ZodType<
|
|
|
31
49
|
last_name: z.string().optional(),
|
|
32
50
|
email: z.string().optional(),
|
|
33
51
|
authentication_factor_id: z.nullable(z.string()).optional(),
|
|
34
|
-
role: z.string().optional(),
|
|
52
|
+
role: z.nullable(z.string()).optional(),
|
|
53
|
+
created_at: z.string().optional(),
|
|
54
|
+
updated_at: z.string().optional(),
|
|
35
55
|
}).transform((v) => {
|
|
36
56
|
return remap$(v, {
|
|
37
57
|
"first_name": "firstName",
|
|
38
58
|
"last_name": "lastName",
|
|
39
59
|
"authentication_factor_id": "authenticationFactorId",
|
|
60
|
+
"created_at": "createdAt",
|
|
61
|
+
"updated_at": "updatedAt",
|
|
40
62
|
});
|
|
41
63
|
});
|
|
42
64
|
/** @internal */
|
|
@@ -45,7 +67,9 @@ export type UserUpdateAttributes$Outbound = {
|
|
|
45
67
|
last_name?: string | undefined;
|
|
46
68
|
email?: string | undefined;
|
|
47
69
|
authentication_factor_id?: string | null | undefined;
|
|
48
|
-
role?: string | undefined;
|
|
70
|
+
role?: string | null | undefined;
|
|
71
|
+
created_at?: string | undefined;
|
|
72
|
+
updated_at?: string | undefined;
|
|
49
73
|
};
|
|
50
74
|
|
|
51
75
|
/** @internal */
|
|
@@ -58,12 +82,16 @@ export const UserUpdateAttributes$outboundSchema: z.ZodType<
|
|
|
58
82
|
lastName: z.string().optional(),
|
|
59
83
|
email: z.string().optional(),
|
|
60
84
|
authenticationFactorId: z.nullable(z.string()).optional(),
|
|
61
|
-
role: z.string().optional(),
|
|
85
|
+
role: z.nullable(z.string()).optional(),
|
|
86
|
+
createdAt: z.string().optional(),
|
|
87
|
+
updatedAt: z.string().optional(),
|
|
62
88
|
}).transform((v) => {
|
|
63
89
|
return remap$(v, {
|
|
64
90
|
firstName: "first_name",
|
|
65
91
|
lastName: "last_name",
|
|
66
92
|
authenticationFactorId: "authentication_factor_id",
|
|
93
|
+
createdAt: "created_at",
|
|
94
|
+
updatedAt: "updated_at",
|
|
67
95
|
});
|
|
68
96
|
});
|
|
69
97
|
|
|
@@ -91,11 +119,13 @@ export const UserUpdate$inboundSchema: z.ZodType<
|
|
|
91
119
|
unknown
|
|
92
120
|
> = z.object({
|
|
93
121
|
id: z.string().optional(),
|
|
122
|
+
type: UserUpdateType$inboundSchema.optional(),
|
|
94
123
|
attributes: z.lazy(() => UserUpdateAttributes$inboundSchema).optional(),
|
|
95
124
|
});
|
|
96
125
|
/** @internal */
|
|
97
126
|
export type UserUpdate$Outbound = {
|
|
98
127
|
id?: string | undefined;
|
|
128
|
+
type?: string | undefined;
|
|
99
129
|
attributes?: UserUpdateAttributes$Outbound | undefined;
|
|
100
130
|
};
|
|
101
131
|
|
|
@@ -106,6 +136,7 @@ export const UserUpdate$outboundSchema: z.ZodType<
|
|
|
106
136
|
UserUpdate
|
|
107
137
|
> = z.object({
|
|
108
138
|
id: z.string().optional(),
|
|
139
|
+
type: UserUpdateType$outboundSchema.optional(),
|
|
109
140
|
attributes: z.lazy(() => UserUpdateAttributes$outboundSchema).optional(),
|
|
110
141
|
});
|
|
111
142
|
|