latitudesh-typescript-sdk 0.8.7 → 0.8.9
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 +78 -36
- package/bin/mcp-server.js.map +16 -16
- 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/operations/createtag.d.ts +1 -1
- package/dist/commonjs/models/operations/createtag.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createtag.js +2 -2
- package/dist/commonjs/models/operations/createtag.js.map +1 -1
- package/dist/commonjs/models/operations/patchstoragefilesystems.d.ts +1 -1
- package/dist/commonjs/models/operations/patchstoragefilesystems.d.ts.map +1 -1
- package/dist/commonjs/models/operations/patchstoragefilesystems.js +2 -2
- package/dist/commonjs/models/operations/patchstoragefilesystems.js.map +1 -1
- package/dist/commonjs/models/operations/putprojectsshkey.d.ts +2 -2
- package/dist/commonjs/models/operations/putprojectsshkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/putprojectsshkey.js +4 -4
- package/dist/commonjs/models/operations/putprojectsshkey.js.map +1 -1
- package/dist/commonjs/models/operations/putsshkey.d.ts +2 -2
- package/dist/commonjs/models/operations/putsshkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/putsshkey.js +4 -4
- package/dist/commonjs/models/operations/putsshkey.js.map +1 -1
- package/dist/commonjs/models/operations/updateserver.d.ts +2 -2
- package/dist/commonjs/models/operations/updateserver.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateserver.js +4 -4
- package/dist/commonjs/models/operations/updateserver.js.map +1 -1
- package/dist/commonjs/models/operations/updatetag.d.ts +1 -1
- package/dist/commonjs/models/operations/updatetag.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatetag.js +2 -2
- package/dist/commonjs/models/operations/updatetag.js.map +1 -1
- package/dist/commonjs/models/plan.d.ts +11 -0
- package/dist/commonjs/models/plan.d.ts.map +1 -1
- package/dist/commonjs/models/plan.js +15 -1
- package/dist/commonjs/models/plan.js.map +1 -1
- package/dist/commonjs/models/plandata.d.ts +2 -0
- package/dist/commonjs/models/plandata.d.ts.map +1 -1
- package/dist/commonjs/models/plandata.js +10 -0
- package/dist/commonjs/models/plandata.js.map +1 -1
- package/dist/commonjs/models/serverdata.d.ts +5 -0
- package/dist/commonjs/models/serverdata.d.ts.map +1 -1
- package/dist/commonjs/models/serverdata.js +4 -0
- package/dist/commonjs/models/serverdata.js.map +1 -1
- package/dist/commonjs/models/team.d.ts +8 -0
- package/dist/commonjs/models/team.d.ts.map +1 -1
- package/dist/commonjs/models/team.js +12 -0
- package/dist/commonjs/models/team.js.map +1 -1
- package/dist/commonjs/models/traffic.d.ts +21 -0
- package/dist/commonjs/models/traffic.d.ts.map +1 -1
- package/dist/commonjs/models/traffic.js +23 -1
- package/dist/commonjs/models/traffic.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/operations/createtag.d.ts +1 -1
- package/dist/esm/models/operations/createtag.d.ts.map +1 -1
- package/dist/esm/models/operations/createtag.js +2 -2
- package/dist/esm/models/operations/createtag.js.map +1 -1
- package/dist/esm/models/operations/patchstoragefilesystems.d.ts +1 -1
- package/dist/esm/models/operations/patchstoragefilesystems.d.ts.map +1 -1
- package/dist/esm/models/operations/patchstoragefilesystems.js +2 -2
- package/dist/esm/models/operations/patchstoragefilesystems.js.map +1 -1
- package/dist/esm/models/operations/putprojectsshkey.d.ts +2 -2
- package/dist/esm/models/operations/putprojectsshkey.d.ts.map +1 -1
- package/dist/esm/models/operations/putprojectsshkey.js +4 -4
- package/dist/esm/models/operations/putprojectsshkey.js.map +1 -1
- package/dist/esm/models/operations/putsshkey.d.ts +2 -2
- package/dist/esm/models/operations/putsshkey.d.ts.map +1 -1
- package/dist/esm/models/operations/putsshkey.js +4 -4
- package/dist/esm/models/operations/putsshkey.js.map +1 -1
- package/dist/esm/models/operations/updateserver.d.ts +2 -2
- package/dist/esm/models/operations/updateserver.d.ts.map +1 -1
- package/dist/esm/models/operations/updateserver.js +4 -4
- package/dist/esm/models/operations/updateserver.js.map +1 -1
- package/dist/esm/models/operations/updatetag.d.ts +1 -1
- package/dist/esm/models/operations/updatetag.d.ts.map +1 -1
- package/dist/esm/models/operations/updatetag.js +2 -2
- package/dist/esm/models/operations/updatetag.js.map +1 -1
- package/dist/esm/models/plan.d.ts +11 -0
- package/dist/esm/models/plan.d.ts.map +1 -1
- package/dist/esm/models/plan.js +12 -0
- package/dist/esm/models/plan.js.map +1 -1
- package/dist/esm/models/plandata.d.ts +2 -0
- package/dist/esm/models/plandata.d.ts.map +1 -1
- package/dist/esm/models/plandata.js +10 -0
- package/dist/esm/models/plandata.js.map +1 -1
- package/dist/esm/models/serverdata.d.ts +5 -0
- package/dist/esm/models/serverdata.d.ts.map +1 -1
- package/dist/esm/models/serverdata.js +4 -0
- package/dist/esm/models/serverdata.js.map +1 -1
- package/dist/esm/models/team.d.ts +8 -0
- package/dist/esm/models/team.d.ts.map +1 -1
- package/dist/esm/models/team.js +12 -0
- package/dist/esm/models/team.js.map +1 -1
- package/dist/esm/models/traffic.d.ts +21 -0
- package/dist/esm/models/traffic.d.ts.map +1 -1
- package/dist/esm/models/traffic.js +20 -0
- package/dist/esm/models/traffic.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/operations/createtag.ts +3 -3
- package/src/models/operations/patchstoragefilesystems.ts +3 -3
- package/src/models/operations/putprojectsshkey.ts +6 -6
- package/src/models/operations/putsshkey.ts +6 -6
- package/src/models/operations/updateserver.ts +6 -6
- package/src/models/operations/updatetag.ts +3 -3
- package/src/models/plan.ts +35 -0
- package/src/models/plandata.ts +12 -0
- package/src/models/serverdata.ts +9 -0
- package/src/models/team.ts +20 -0
- package/src/models/traffic.ts +53 -0
|
@@ -19,12 +19,16 @@ export const AttributesData$inboundSchema = z.object({
|
|
|
19
19
|
outbound_gb: z.number().int().optional(),
|
|
20
20
|
avg_outbound_speed_mbps: z.number().optional(),
|
|
21
21
|
avg_inbound_speed_mbps: z.number().optional(),
|
|
22
|
+
outbound_speed_mbps: z.number().optional(),
|
|
23
|
+
inbound_speed_mbps: z.number().optional(),
|
|
22
24
|
}).transform((v) => {
|
|
23
25
|
return remap$(v, {
|
|
24
26
|
"inbound_gb": "inboundGb",
|
|
25
27
|
"outbound_gb": "outboundGb",
|
|
26
28
|
"avg_outbound_speed_mbps": "avgOutboundSpeedMbps",
|
|
27
29
|
"avg_inbound_speed_mbps": "avgInboundSpeedMbps",
|
|
30
|
+
"outbound_speed_mbps": "outboundSpeedMbps",
|
|
31
|
+
"inbound_speed_mbps": "inboundSpeedMbps",
|
|
28
32
|
});
|
|
29
33
|
});
|
|
30
34
|
/** @internal */
|
|
@@ -34,12 +38,16 @@ export const AttributesData$outboundSchema = z.object({
|
|
|
34
38
|
outboundGb: z.number().int().optional(),
|
|
35
39
|
avgOutboundSpeedMbps: z.number().optional(),
|
|
36
40
|
avgInboundSpeedMbps: z.number().optional(),
|
|
41
|
+
outboundSpeedMbps: z.number().optional(),
|
|
42
|
+
inboundSpeedMbps: z.number().optional(),
|
|
37
43
|
}).transform((v) => {
|
|
38
44
|
return remap$(v, {
|
|
39
45
|
inboundGb: "inbound_gb",
|
|
40
46
|
outboundGb: "outbound_gb",
|
|
41
47
|
avgOutboundSpeedMbps: "avg_outbound_speed_mbps",
|
|
42
48
|
avgInboundSpeedMbps: "avg_inbound_speed_mbps",
|
|
49
|
+
outboundSpeedMbps: "outbound_speed_mbps",
|
|
50
|
+
inboundSpeedMbps: "inbound_speed_mbps",
|
|
43
51
|
});
|
|
44
52
|
});
|
|
45
53
|
export function attributesDataToJSON(attributesData) {
|
|
@@ -151,12 +159,24 @@ export function trafficDataFromJSON(jsonString) {
|
|
|
151
159
|
return safeParse(jsonString, (x) => TrafficData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TrafficData' from JSON`);
|
|
152
160
|
}
|
|
153
161
|
/** @internal */
|
|
162
|
+
export const TrafficMeta$inboundSchema = z.object({});
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const TrafficMeta$outboundSchema = z.object({});
|
|
165
|
+
export function trafficMetaToJSON(trafficMeta) {
|
|
166
|
+
return JSON.stringify(TrafficMeta$outboundSchema.parse(trafficMeta));
|
|
167
|
+
}
|
|
168
|
+
export function trafficMetaFromJSON(jsonString) {
|
|
169
|
+
return safeParse(jsonString, (x) => TrafficMeta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TrafficMeta' from JSON`);
|
|
170
|
+
}
|
|
171
|
+
/** @internal */
|
|
154
172
|
export const Traffic$inboundSchema = z.object({
|
|
155
173
|
data: z.lazy(() => TrafficData$inboundSchema).optional(),
|
|
174
|
+
meta: z.lazy(() => TrafficMeta$inboundSchema).optional(),
|
|
156
175
|
});
|
|
157
176
|
/** @internal */
|
|
158
177
|
export const Traffic$outboundSchema = z.object({
|
|
159
178
|
data: z.lazy(() => TrafficData$outboundSchema).optional(),
|
|
179
|
+
meta: z.lazy(() => TrafficMeta$outboundSchema).optional(),
|
|
160
180
|
});
|
|
161
181
|
export function trafficToJSON(traffic) {
|
|
162
182
|
return JSON.stringify(Traffic$outboundSchema.parse(traffic));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traffic.js","sourceRoot":"","sources":["../../../src/models/traffic.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mB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CAAC;AAOL,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;IACzD,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC;AAEH,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC;AACD,MAAM,UAAU,eAAe,CAC7B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -74,8 +74,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
74
74
|
export const SDK_METADATA = {
|
|
75
75
|
language: "typescript",
|
|
76
76
|
openapiDocVersion: "2023-06-01",
|
|
77
|
-
sdkVersion: "0.8.
|
|
78
|
-
genVersion: "2.
|
|
77
|
+
sdkVersion: "0.8.9",
|
|
78
|
+
genVersion: "2.931.0",
|
|
79
79
|
userAgent:
|
|
80
|
-
"speakeasy-sdk/typescript 0.8.
|
|
80
|
+
"speakeasy-sdk/typescript 0.8.9 2.931.0 2023-06-01 latitudesh-typescript-sdk",
|
|
81
81
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -25,7 +25,7 @@ export type CreateTagAttributes2 = {
|
|
|
25
25
|
/**
|
|
26
26
|
* Color of the Tag
|
|
27
27
|
*/
|
|
28
|
-
color
|
|
28
|
+
color: string;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export type CreateTagData2 = {
|
|
@@ -54,7 +54,7 @@ export const CreateTagAttributes2$inboundSchema: z.ZodType<
|
|
|
54
54
|
> = z.object({
|
|
55
55
|
name: z.string(),
|
|
56
56
|
description: z.nullable(z.string()).optional(),
|
|
57
|
-
color: z.string()
|
|
57
|
+
color: z.string(),
|
|
58
58
|
});
|
|
59
59
|
/** @internal */
|
|
60
60
|
export type CreateTagAttributes2$Outbound = {
|
|
@@ -71,7 +71,7 @@ export const CreateTagAttributes2$outboundSchema: z.ZodType<
|
|
|
71
71
|
> = z.object({
|
|
72
72
|
name: z.string(),
|
|
73
73
|
description: z.nullable(z.string()).optional(),
|
|
74
|
-
color: z.string()
|
|
74
|
+
color: z.string(),
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
export function createTagAttributes2ToJSON(
|
|
@@ -21,7 +21,7 @@ export type PatchStorageFilesystemsAttributes2 = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Size in GB (not required, default is 1500)
|
|
23
23
|
*/
|
|
24
|
-
sizeInGb
|
|
24
|
+
sizeInGb: number;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export type PatchStorageFilesystemsData2 = {
|
|
@@ -64,7 +64,7 @@ export const PatchStorageFilesystemsAttributes2$inboundSchema: z.ZodType<
|
|
|
64
64
|
z.ZodTypeDef,
|
|
65
65
|
unknown
|
|
66
66
|
> = z.object({
|
|
67
|
-
size_in_gb: z.number().int()
|
|
67
|
+
size_in_gb: z.number().int(),
|
|
68
68
|
}).transform((v) => {
|
|
69
69
|
return remap$(v, {
|
|
70
70
|
"size_in_gb": "sizeInGb",
|
|
@@ -81,7 +81,7 @@ export const PatchStorageFilesystemsAttributes2$outboundSchema: z.ZodType<
|
|
|
81
81
|
z.ZodTypeDef,
|
|
82
82
|
PatchStorageFilesystemsAttributes2
|
|
83
83
|
> = z.object({
|
|
84
|
-
sizeInGb: z.number().int()
|
|
84
|
+
sizeInGb: z.number().int(),
|
|
85
85
|
}).transform((v) => {
|
|
86
86
|
return remap$(v, {
|
|
87
87
|
sizeInGb: "size_in_gb",
|
|
@@ -24,7 +24,7 @@ export type PutProjectSshKeyAttributes2 = {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export type PutProjectSshKeyData2 = {
|
|
27
|
-
id
|
|
27
|
+
id: string;
|
|
28
28
|
type: PutProjectSshKeyType2;
|
|
29
29
|
attributes?: PutProjectSshKeyAttributes2 | undefined;
|
|
30
30
|
};
|
|
@@ -65,12 +65,12 @@ export const PutProjectSshKeyAttributes2$inboundSchema: z.ZodType<
|
|
|
65
65
|
unknown
|
|
66
66
|
> = z.object({
|
|
67
67
|
tags: z.array(z.string()).optional(),
|
|
68
|
-
name: z.string().
|
|
68
|
+
name: z.string().optional(),
|
|
69
69
|
});
|
|
70
70
|
/** @internal */
|
|
71
71
|
export type PutProjectSshKeyAttributes2$Outbound = {
|
|
72
72
|
tags?: Array<string> | undefined;
|
|
73
|
-
name
|
|
73
|
+
name?: string | undefined;
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
/** @internal */
|
|
@@ -80,7 +80,7 @@ export const PutProjectSshKeyAttributes2$outboundSchema: z.ZodType<
|
|
|
80
80
|
PutProjectSshKeyAttributes2
|
|
81
81
|
> = z.object({
|
|
82
82
|
tags: z.array(z.string()).optional(),
|
|
83
|
-
name: z.string().
|
|
83
|
+
name: z.string().optional(),
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
export function putProjectSshKeyAttributes2ToJSON(
|
|
@@ -108,7 +108,7 @@ export const PutProjectSshKeyData2$inboundSchema: z.ZodType<
|
|
|
108
108
|
z.ZodTypeDef,
|
|
109
109
|
unknown
|
|
110
110
|
> = z.object({
|
|
111
|
-
id: z.string()
|
|
111
|
+
id: z.string(),
|
|
112
112
|
type: PutProjectSshKeyType2$inboundSchema,
|
|
113
113
|
attributes: z.lazy(() => PutProjectSshKeyAttributes2$inboundSchema)
|
|
114
114
|
.optional(),
|
|
@@ -126,7 +126,7 @@ export const PutProjectSshKeyData2$outboundSchema: z.ZodType<
|
|
|
126
126
|
z.ZodTypeDef,
|
|
127
127
|
PutProjectSshKeyData2
|
|
128
128
|
> = z.object({
|
|
129
|
-
id: z.string()
|
|
129
|
+
id: z.string(),
|
|
130
130
|
type: PutProjectSshKeyType2$outboundSchema,
|
|
131
131
|
attributes: z.lazy(() => PutProjectSshKeyAttributes2$outboundSchema)
|
|
132
132
|
.optional(),
|
|
@@ -24,7 +24,7 @@ export type PutSshKeyAttributes2 = {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export type PutSshKeyData2 = {
|
|
27
|
-
id
|
|
27
|
+
id: string;
|
|
28
28
|
type: PutSshKeyType2;
|
|
29
29
|
attributes?: PutSshKeyAttributes2 | undefined;
|
|
30
30
|
};
|
|
@@ -61,12 +61,12 @@ export const PutSshKeyAttributes2$inboundSchema: z.ZodType<
|
|
|
61
61
|
unknown
|
|
62
62
|
> = z.object({
|
|
63
63
|
tags: z.array(z.string()).optional(),
|
|
64
|
-
name: z.string().
|
|
64
|
+
name: z.string().optional(),
|
|
65
65
|
});
|
|
66
66
|
/** @internal */
|
|
67
67
|
export type PutSshKeyAttributes2$Outbound = {
|
|
68
68
|
tags?: Array<string> | undefined;
|
|
69
|
-
name
|
|
69
|
+
name?: string | undefined;
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
/** @internal */
|
|
@@ -76,7 +76,7 @@ export const PutSshKeyAttributes2$outboundSchema: z.ZodType<
|
|
|
76
76
|
PutSshKeyAttributes2
|
|
77
77
|
> = z.object({
|
|
78
78
|
tags: z.array(z.string()).optional(),
|
|
79
|
-
name: z.string().
|
|
79
|
+
name: z.string().optional(),
|
|
80
80
|
});
|
|
81
81
|
|
|
82
82
|
export function putSshKeyAttributes2ToJSON(
|
|
@@ -102,7 +102,7 @@ export const PutSshKeyData2$inboundSchema: z.ZodType<
|
|
|
102
102
|
z.ZodTypeDef,
|
|
103
103
|
unknown
|
|
104
104
|
> = z.object({
|
|
105
|
-
id: z.string()
|
|
105
|
+
id: z.string(),
|
|
106
106
|
type: PutSshKeyType2$inboundSchema,
|
|
107
107
|
attributes: z.lazy(() => PutSshKeyAttributes2$inboundSchema).optional(),
|
|
108
108
|
});
|
|
@@ -119,7 +119,7 @@ export const PutSshKeyData2$outboundSchema: z.ZodType<
|
|
|
119
119
|
z.ZodTypeDef,
|
|
120
120
|
PutSshKeyData2
|
|
121
121
|
> = z.object({
|
|
122
|
-
id: z.string()
|
|
122
|
+
id: z.string(),
|
|
123
123
|
type: PutSshKeyType2$outboundSchema,
|
|
124
124
|
attributes: z.lazy(() => PutSshKeyAttributes2$outboundSchema).optional(),
|
|
125
125
|
});
|
|
@@ -82,14 +82,14 @@ export const UpdateServerAttributes2$inboundSchema: z.ZodType<
|
|
|
82
82
|
z.ZodTypeDef,
|
|
83
83
|
unknown
|
|
84
84
|
> = z.object({
|
|
85
|
-
hostname: z.string().
|
|
85
|
+
hostname: z.string().optional(),
|
|
86
86
|
billing: z.nullable(UpdateServerBilling2$inboundSchema).optional(),
|
|
87
87
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
88
88
|
project: z.string().optional(),
|
|
89
89
|
});
|
|
90
90
|
/** @internal */
|
|
91
91
|
export type UpdateServerAttributes2$Outbound = {
|
|
92
|
-
hostname
|
|
92
|
+
hostname?: string | undefined;
|
|
93
93
|
billing?: string | null | undefined;
|
|
94
94
|
tags?: Array<string> | null | undefined;
|
|
95
95
|
project?: string | undefined;
|
|
@@ -101,7 +101,7 @@ export const UpdateServerAttributes2$outboundSchema: z.ZodType<
|
|
|
101
101
|
z.ZodTypeDef,
|
|
102
102
|
UpdateServerAttributes2
|
|
103
103
|
> = z.object({
|
|
104
|
-
hostname: z.string().
|
|
104
|
+
hostname: z.string().optional(),
|
|
105
105
|
billing: z.nullable(UpdateServerBilling2$outboundSchema).optional(),
|
|
106
106
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
107
107
|
project: z.string().optional(),
|
|
@@ -130,13 +130,13 @@ export const UpdateServerData2$inboundSchema: z.ZodType<
|
|
|
130
130
|
z.ZodTypeDef,
|
|
131
131
|
unknown
|
|
132
132
|
> = z.object({
|
|
133
|
-
id: z.string().
|
|
133
|
+
id: z.string().optional(),
|
|
134
134
|
type: UpdateServerType2$inboundSchema.optional(),
|
|
135
135
|
attributes: z.lazy(() => UpdateServerAttributes2$inboundSchema).optional(),
|
|
136
136
|
});
|
|
137
137
|
/** @internal */
|
|
138
138
|
export type UpdateServerData2$Outbound = {
|
|
139
|
-
id
|
|
139
|
+
id?: string | undefined;
|
|
140
140
|
type?: string | undefined;
|
|
141
141
|
attributes?: UpdateServerAttributes2$Outbound | undefined;
|
|
142
142
|
};
|
|
@@ -147,7 +147,7 @@ export const UpdateServerData2$outboundSchema: z.ZodType<
|
|
|
147
147
|
z.ZodTypeDef,
|
|
148
148
|
UpdateServerData2
|
|
149
149
|
> = z.object({
|
|
150
|
-
id: z.string().
|
|
150
|
+
id: z.string().optional(),
|
|
151
151
|
type: UpdateServerType2$outboundSchema.optional(),
|
|
152
152
|
attributes: z.lazy(() => UpdateServerAttributes2$outboundSchema).optional(),
|
|
153
153
|
});
|
|
@@ -61,13 +61,13 @@ export const UpdateTagAttributes2$inboundSchema: z.ZodType<
|
|
|
61
61
|
> = z.object({
|
|
62
62
|
name: z.string().optional(),
|
|
63
63
|
description: z.nullable(z.string()).optional(),
|
|
64
|
-
color: z.string().
|
|
64
|
+
color: z.string().optional(),
|
|
65
65
|
});
|
|
66
66
|
/** @internal */
|
|
67
67
|
export type UpdateTagAttributes2$Outbound = {
|
|
68
68
|
name?: string | undefined;
|
|
69
69
|
description?: string | null | undefined;
|
|
70
|
-
color
|
|
70
|
+
color?: string | undefined;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
/** @internal */
|
|
@@ -78,7 +78,7 @@ export const UpdateTagAttributes2$outboundSchema: z.ZodType<
|
|
|
78
78
|
> = z.object({
|
|
79
79
|
name: z.string().optional(),
|
|
80
80
|
description: z.nullable(z.string()).optional(),
|
|
81
|
-
color: z.string().
|
|
81
|
+
color: z.string().optional(),
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
export function updateTagAttributes2ToJSON(
|
package/src/models/plan.ts
CHANGED
|
@@ -13,24 +13,59 @@ import {
|
|
|
13
13
|
PlanData$outboundSchema,
|
|
14
14
|
} from "./plandata.js";
|
|
15
15
|
|
|
16
|
+
export type PlanMeta = {};
|
|
17
|
+
|
|
16
18
|
export type Plan = {
|
|
17
19
|
data?: PlanData | undefined;
|
|
20
|
+
meta?: PlanMeta | undefined;
|
|
18
21
|
};
|
|
19
22
|
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const PlanMeta$inboundSchema: z.ZodType<
|
|
25
|
+
PlanMeta,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type PlanMeta$Outbound = {};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const PlanMeta$outboundSchema: z.ZodType<
|
|
34
|
+
PlanMeta$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
PlanMeta
|
|
37
|
+
> = z.object({});
|
|
38
|
+
|
|
39
|
+
export function planMetaToJSON(planMeta: PlanMeta): string {
|
|
40
|
+
return JSON.stringify(PlanMeta$outboundSchema.parse(planMeta));
|
|
41
|
+
}
|
|
42
|
+
export function planMetaFromJSON(
|
|
43
|
+
jsonString: string,
|
|
44
|
+
): SafeParseResult<PlanMeta, SDKValidationError> {
|
|
45
|
+
return safeParse(
|
|
46
|
+
jsonString,
|
|
47
|
+
(x) => PlanMeta$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'PlanMeta' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
20
52
|
/** @internal */
|
|
21
53
|
export const Plan$inboundSchema: z.ZodType<Plan, z.ZodTypeDef, unknown> = z
|
|
22
54
|
.object({
|
|
23
55
|
data: PlanData$inboundSchema.optional(),
|
|
56
|
+
meta: z.lazy(() => PlanMeta$inboundSchema).optional(),
|
|
24
57
|
});
|
|
25
58
|
/** @internal */
|
|
26
59
|
export type Plan$Outbound = {
|
|
27
60
|
data?: PlanData$Outbound | undefined;
|
|
61
|
+
meta?: PlanMeta$Outbound | undefined;
|
|
28
62
|
};
|
|
29
63
|
|
|
30
64
|
/** @internal */
|
|
31
65
|
export const Plan$outboundSchema: z.ZodType<Plan$Outbound, z.ZodTypeDef, Plan> =
|
|
32
66
|
z.object({
|
|
33
67
|
data: PlanData$outboundSchema.optional(),
|
|
68
|
+
meta: z.lazy(() => PlanMeta$outboundSchema).optional(),
|
|
34
69
|
});
|
|
35
70
|
|
|
36
71
|
export function planToJSON(plan: Plan): string {
|
package/src/models/plandata.ts
CHANGED
|
@@ -119,6 +119,7 @@ export type PlanDataAttributes = {
|
|
|
119
119
|
features?: Array<Feature> | undefined;
|
|
120
120
|
specs?: PlanDataSpecs | undefined;
|
|
121
121
|
regions?: Array<PlanDataRegion> | undefined;
|
|
122
|
+
availableOperatingSystems?: Array<string> | undefined;
|
|
122
123
|
};
|
|
123
124
|
|
|
124
125
|
export type PlanData = {
|
|
@@ -646,6 +647,11 @@ export const PlanDataAttributes$inboundSchema: z.ZodType<
|
|
|
646
647
|
features: z.array(Feature$inboundSchema).optional(),
|
|
647
648
|
specs: z.lazy(() => PlanDataSpecs$inboundSchema).optional(),
|
|
648
649
|
regions: z.array(z.lazy(() => PlanDataRegion$inboundSchema)).optional(),
|
|
650
|
+
available_operating_systems: z.array(z.string()).optional(),
|
|
651
|
+
}).transform((v) => {
|
|
652
|
+
return remap$(v, {
|
|
653
|
+
"available_operating_systems": "availableOperatingSystems",
|
|
654
|
+
});
|
|
649
655
|
});
|
|
650
656
|
/** @internal */
|
|
651
657
|
export type PlanDataAttributes$Outbound = {
|
|
@@ -654,6 +660,7 @@ export type PlanDataAttributes$Outbound = {
|
|
|
654
660
|
features?: Array<string> | undefined;
|
|
655
661
|
specs?: PlanDataSpecs$Outbound | undefined;
|
|
656
662
|
regions?: Array<PlanDataRegion$Outbound> | undefined;
|
|
663
|
+
available_operating_systems?: Array<string> | undefined;
|
|
657
664
|
};
|
|
658
665
|
|
|
659
666
|
/** @internal */
|
|
@@ -667,6 +674,11 @@ export const PlanDataAttributes$outboundSchema: z.ZodType<
|
|
|
667
674
|
features: z.array(Feature$outboundSchema).optional(),
|
|
668
675
|
specs: z.lazy(() => PlanDataSpecs$outboundSchema).optional(),
|
|
669
676
|
regions: z.array(z.lazy(() => PlanDataRegion$outboundSchema)).optional(),
|
|
677
|
+
availableOperatingSystems: z.array(z.string()).optional(),
|
|
678
|
+
}).transform((v) => {
|
|
679
|
+
return remap$(v, {
|
|
680
|
+
availableOperatingSystems: "available_operating_systems",
|
|
681
|
+
});
|
|
670
682
|
});
|
|
671
683
|
|
|
672
684
|
export function planDataAttributesToJSON(
|
package/src/models/serverdata.ts
CHANGED
|
@@ -194,6 +194,10 @@ export type ServerDataAttributes = {
|
|
|
194
194
|
* The server role (e.g. Bare Metal)
|
|
195
195
|
*/
|
|
196
196
|
role?: string | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Whether the server is eligible to be bonded (carries the bond-vpc-enabled tag).
|
|
199
|
+
*/
|
|
200
|
+
bondEligible?: boolean | undefined;
|
|
197
201
|
site?: string | undefined;
|
|
198
202
|
locked?: boolean | undefined;
|
|
199
203
|
rescueAllowed?: boolean | undefined;
|
|
@@ -594,6 +598,7 @@ export const ServerDataAttributes$inboundSchema: z.ZodType<
|
|
|
594
598
|
status: ServerDataStatus$inboundSchema.optional(),
|
|
595
599
|
ipmi_status: z.nullable(IpmiStatus$inboundSchema).optional(),
|
|
596
600
|
role: z.string().optional(),
|
|
601
|
+
bond_eligible: z.boolean().optional(),
|
|
597
602
|
site: z.string().optional(),
|
|
598
603
|
locked: z.boolean().optional(),
|
|
599
604
|
rescue_allowed: z.boolean().optional(),
|
|
@@ -612,6 +617,7 @@ export const ServerDataAttributes$inboundSchema: z.ZodType<
|
|
|
612
617
|
}).transform((v) => {
|
|
613
618
|
return remap$(v, {
|
|
614
619
|
"ipmi_status": "ipmiStatus",
|
|
620
|
+
"bond_eligible": "bondEligible",
|
|
615
621
|
"rescue_allowed": "rescueAllowed",
|
|
616
622
|
"primary_ipv4": "primaryIpv4",
|
|
617
623
|
"primary_ipv6": "primaryIpv6",
|
|
@@ -629,6 +635,7 @@ export type ServerDataAttributes$Outbound = {
|
|
|
629
635
|
status?: string | undefined;
|
|
630
636
|
ipmi_status?: string | null | undefined;
|
|
631
637
|
role?: string | undefined;
|
|
638
|
+
bond_eligible?: boolean | undefined;
|
|
632
639
|
site?: string | undefined;
|
|
633
640
|
locked?: boolean | undefined;
|
|
634
641
|
rescue_allowed?: boolean | undefined;
|
|
@@ -658,6 +665,7 @@ export const ServerDataAttributes$outboundSchema: z.ZodType<
|
|
|
658
665
|
status: ServerDataStatus$outboundSchema.optional(),
|
|
659
666
|
ipmiStatus: z.nullable(IpmiStatus$outboundSchema).optional(),
|
|
660
667
|
role: z.string().optional(),
|
|
668
|
+
bondEligible: z.boolean().optional(),
|
|
661
669
|
site: z.string().optional(),
|
|
662
670
|
locked: z.boolean().optional(),
|
|
663
671
|
rescueAllowed: z.boolean().optional(),
|
|
@@ -676,6 +684,7 @@ export const ServerDataAttributes$outboundSchema: z.ZodType<
|
|
|
676
684
|
}).transform((v) => {
|
|
677
685
|
return remap$(v, {
|
|
678
686
|
ipmiStatus: "ipmi_status",
|
|
687
|
+
bondEligible: "bond_eligible",
|
|
679
688
|
rescueAllowed: "rescue_allowed",
|
|
680
689
|
primaryIpv4: "primary_ipv4",
|
|
681
690
|
primaryIpv6: "primary_ipv6",
|
package/src/models/team.ts
CHANGED
|
@@ -46,7 +46,11 @@ export type TeamAttributes = {
|
|
|
46
46
|
currency?: string | undefined;
|
|
47
47
|
createdAt?: string | undefined;
|
|
48
48
|
updatedAt?: string | undefined;
|
|
49
|
+
status?: string | null | undefined;
|
|
49
50
|
enforceMfa?: boolean | undefined;
|
|
51
|
+
token?: string | null | undefined;
|
|
52
|
+
customerBillingId?: string | null | undefined;
|
|
53
|
+
referredCode?: string | null | undefined;
|
|
50
54
|
users?: Array<UserInclude> | undefined;
|
|
51
55
|
projects?: Array<ProjectInclude> | undefined;
|
|
52
56
|
owner?: UserInclude | undefined;
|
|
@@ -201,7 +205,11 @@ export const TeamAttributes$inboundSchema: z.ZodType<
|
|
|
201
205
|
currency: z.string().optional(),
|
|
202
206
|
created_at: z.string().optional(),
|
|
203
207
|
updated_at: z.string().optional(),
|
|
208
|
+
status: z.nullable(z.string()).optional(),
|
|
204
209
|
enforce_mfa: z.boolean().optional(),
|
|
210
|
+
token: z.nullable(z.string()).optional(),
|
|
211
|
+
customer_billing_id: z.nullable(z.string()).optional(),
|
|
212
|
+
referred_code: z.nullable(z.string()).optional(),
|
|
205
213
|
users: z.array(UserInclude$inboundSchema).optional(),
|
|
206
214
|
projects: z.array(ProjectInclude$inboundSchema).optional(),
|
|
207
215
|
owner: UserInclude$inboundSchema.optional(),
|
|
@@ -213,6 +221,8 @@ export const TeamAttributes$inboundSchema: z.ZodType<
|
|
|
213
221
|
"created_at": "createdAt",
|
|
214
222
|
"updated_at": "updatedAt",
|
|
215
223
|
"enforce_mfa": "enforceMfa",
|
|
224
|
+
"customer_billing_id": "customerBillingId",
|
|
225
|
+
"referred_code": "referredCode",
|
|
216
226
|
"feature_flags": "featureFlags",
|
|
217
227
|
});
|
|
218
228
|
});
|
|
@@ -225,7 +235,11 @@ export type TeamAttributes$Outbound = {
|
|
|
225
235
|
currency?: string | undefined;
|
|
226
236
|
created_at?: string | undefined;
|
|
227
237
|
updated_at?: string | undefined;
|
|
238
|
+
status?: string | null | undefined;
|
|
228
239
|
enforce_mfa?: boolean | undefined;
|
|
240
|
+
token?: string | null | undefined;
|
|
241
|
+
customer_billing_id?: string | null | undefined;
|
|
242
|
+
referred_code?: string | null | undefined;
|
|
229
243
|
users?: Array<UserInclude$Outbound> | undefined;
|
|
230
244
|
projects?: Array<ProjectInclude$Outbound> | undefined;
|
|
231
245
|
owner?: UserInclude$Outbound | undefined;
|
|
@@ -247,7 +261,11 @@ export const TeamAttributes$outboundSchema: z.ZodType<
|
|
|
247
261
|
currency: z.string().optional(),
|
|
248
262
|
createdAt: z.string().optional(),
|
|
249
263
|
updatedAt: z.string().optional(),
|
|
264
|
+
status: z.nullable(z.string()).optional(),
|
|
250
265
|
enforceMfa: z.boolean().optional(),
|
|
266
|
+
token: z.nullable(z.string()).optional(),
|
|
267
|
+
customerBillingId: z.nullable(z.string()).optional(),
|
|
268
|
+
referredCode: z.nullable(z.string()).optional(),
|
|
251
269
|
users: z.array(UserInclude$outboundSchema).optional(),
|
|
252
270
|
projects: z.array(ProjectInclude$outboundSchema).optional(),
|
|
253
271
|
owner: UserInclude$outboundSchema.optional(),
|
|
@@ -259,6 +277,8 @@ export const TeamAttributes$outboundSchema: z.ZodType<
|
|
|
259
277
|
createdAt: "created_at",
|
|
260
278
|
updatedAt: "updated_at",
|
|
261
279
|
enforceMfa: "enforce_mfa",
|
|
280
|
+
customerBillingId: "customer_billing_id",
|
|
281
|
+
referredCode: "referred_code",
|
|
262
282
|
featureFlags: "feature_flags",
|
|
263
283
|
});
|
|
264
284
|
});
|