latitudesh-typescript-sdk 0.6.1 → 0.6.3
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 +244 -117
- package/bin/mcp-server.js.map +17 -16
- package/dist/commonjs/funcs/filesystemStorageListFilesystems.d.ts +2 -1
- package/dist/commonjs/funcs/filesystemStorageListFilesystems.d.ts.map +1 -1
- package/dist/commonjs/funcs/filesystemStorageListFilesystems.js +5 -3
- package/dist/commonjs/funcs/filesystemStorageListFilesystems.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/filesystemStorageListFilesystems.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/filesystemStorageListFilesystems.js +2 -1
- package/dist/commonjs/mcp-server/tools/filesystemStorageListFilesystems.js.map +1 -1
- package/dist/commonjs/models/filesystemdata.d.ts +14 -16
- package/dist/commonjs/models/filesystemdata.d.ts.map +1 -1
- package/dist/commonjs/models/filesystemdata.js +18 -21
- package/dist/commonjs/models/filesystemdata.js.map +1 -1
- package/dist/commonjs/models/filesystems.d.ts +29 -0
- package/dist/commonjs/models/filesystems.d.ts.map +1 -0
- package/dist/commonjs/models/filesystems.js +73 -0
- package/dist/commonjs/models/filesystems.js.map +1 -0
- package/dist/commonjs/models/firewallassignmentdata.d.ts +17 -0
- package/dist/commonjs/models/firewallassignmentdata.d.ts.map +1 -1
- package/dist/commonjs/models/firewallassignmentdata.js +23 -1
- package/dist/commonjs/models/firewallassignmentdata.js.map +1 -1
- package/dist/commonjs/models/firewalldata.d.ts +5 -0
- package/dist/commonjs/models/firewalldata.d.ts.map +1 -1
- package/dist/commonjs/models/firewalldata.js +2 -0
- package/dist/commonjs/models/firewalldata.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/team.d.ts +31 -0
- package/dist/commonjs/models/team.d.ts.map +1 -1
- package/dist/commonjs/models/team.js +55 -1
- package/dist/commonjs/models/team.js.map +1 -1
- package/dist/commonjs/models/teaminclude.d.ts +31 -0
- package/dist/commonjs/models/teaminclude.d.ts.map +1 -1
- package/dist/commonjs/models/teaminclude.js +55 -1
- package/dist/commonjs/models/teaminclude.js.map +1 -1
- package/dist/commonjs/models/virtualmachinepayload.d.ts +5 -0
- package/dist/commonjs/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/commonjs/models/virtualmachinepayload.js +2 -0
- package/dist/commonjs/models/virtualmachinepayload.js.map +1 -1
- package/dist/commonjs/sdk/filesystemstorage.d.ts +2 -1
- package/dist/commonjs/sdk/filesystemstorage.d.ts.map +1 -1
- package/dist/commonjs/sdk/filesystemstorage.js.map +1 -1
- package/dist/esm/funcs/filesystemStorageListFilesystems.d.ts +2 -1
- package/dist/esm/funcs/filesystemStorageListFilesystems.d.ts.map +1 -1
- package/dist/esm/funcs/filesystemStorageListFilesystems.js +5 -3
- package/dist/esm/funcs/filesystemStorageListFilesystems.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/filesystemStorageListFilesystems.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/filesystemStorageListFilesystems.js +2 -1
- package/dist/esm/mcp-server/tools/filesystemStorageListFilesystems.js.map +1 -1
- package/dist/esm/models/filesystemdata.d.ts +14 -16
- package/dist/esm/models/filesystemdata.d.ts.map +1 -1
- package/dist/esm/models/filesystemdata.js +17 -18
- package/dist/esm/models/filesystemdata.js.map +1 -1
- package/dist/esm/models/filesystems.d.ts +29 -0
- package/dist/esm/models/filesystems.d.ts.map +1 -0
- package/dist/esm/models/filesystems.js +33 -0
- package/dist/esm/models/filesystems.js.map +1 -0
- package/dist/esm/models/firewallassignmentdata.d.ts +17 -0
- package/dist/esm/models/firewallassignmentdata.d.ts.map +1 -1
- package/dist/esm/models/firewallassignmentdata.js +20 -0
- package/dist/esm/models/firewallassignmentdata.js.map +1 -1
- package/dist/esm/models/firewalldata.d.ts +5 -0
- package/dist/esm/models/firewalldata.d.ts.map +1 -1
- package/dist/esm/models/firewalldata.js +2 -0
- package/dist/esm/models/firewalldata.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/team.d.ts +31 -0
- package/dist/esm/models/team.d.ts.map +1 -1
- package/dist/esm/models/team.js +52 -0
- package/dist/esm/models/team.js.map +1 -1
- package/dist/esm/models/teaminclude.d.ts +31 -0
- package/dist/esm/models/teaminclude.d.ts.map +1 -1
- package/dist/esm/models/teaminclude.js +52 -0
- package/dist/esm/models/teaminclude.js.map +1 -1
- package/dist/esm/models/virtualmachinepayload.d.ts +5 -0
- package/dist/esm/models/virtualmachinepayload.d.ts.map +1 -1
- package/dist/esm/models/virtualmachinepayload.js +2 -0
- package/dist/esm/models/virtualmachinepayload.js.map +1 -1
- package/dist/esm/sdk/filesystemstorage.d.ts +2 -1
- package/dist/esm/sdk/filesystemstorage.d.ts.map +1 -1
- package/dist/esm/sdk/filesystemstorage.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/filesystemStorageListFilesystems.ts +8 -6
- 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/filesystemStorageListFilesystems.ts +3 -1
- package/src/models/filesystemdata.ts +38 -51
- package/src/models/filesystems.ts +90 -0
- package/src/models/firewallassignmentdata.ts +55 -0
- package/src/models/firewalldata.ts +7 -0
- package/src/models/index.ts +1 -0
- package/src/models/team.ts +95 -0
- package/src/models/teaminclude.ts +99 -0
- package/src/models/virtualmachinepayload.ts +7 -0
- package/src/sdk/filesystemstorage.ts +2 -1
|
@@ -8,23 +8,37 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
ProjectInclude,
|
|
13
|
+
ProjectInclude$inboundSchema,
|
|
14
|
+
ProjectInclude$Outbound,
|
|
15
|
+
ProjectInclude$outboundSchema,
|
|
16
|
+
} from "./projectinclude.js";
|
|
17
|
+
import {
|
|
18
|
+
TeamInclude,
|
|
19
|
+
TeamInclude$inboundSchema,
|
|
20
|
+
TeamInclude$Outbound,
|
|
21
|
+
TeamInclude$outboundSchema,
|
|
22
|
+
} from "./teaminclude.js";
|
|
11
23
|
|
|
12
24
|
export const FilesystemDataType = {
|
|
13
25
|
Filesystems: "filesystems",
|
|
14
26
|
} as const;
|
|
15
27
|
export type FilesystemDataType = ClosedEnum<typeof FilesystemDataType>;
|
|
16
28
|
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
29
|
+
export const FilesystemStorageClass = {
|
|
30
|
+
Standard: "standard",
|
|
31
|
+
HighPerformance: "high_performance",
|
|
32
|
+
} as const;
|
|
33
|
+
export type FilesystemStorageClass = ClosedEnum<typeof FilesystemStorageClass>;
|
|
22
34
|
|
|
23
35
|
export type FilesystemDataAttributes = {
|
|
24
36
|
name?: string | undefined;
|
|
25
37
|
sizeInGb?: number | undefined;
|
|
38
|
+
filesystemStorageClass?: FilesystemStorageClass | null | undefined;
|
|
26
39
|
createdAt?: Date | null | undefined;
|
|
27
|
-
project?:
|
|
40
|
+
project?: ProjectInclude | undefined;
|
|
41
|
+
team?: TeamInclude | undefined;
|
|
28
42
|
};
|
|
29
43
|
|
|
30
44
|
export type FilesystemData = {
|
|
@@ -43,49 +57,13 @@ export const FilesystemDataType$outboundSchema: z.ZodNativeEnum<
|
|
|
43
57
|
> = FilesystemDataType$inboundSchema;
|
|
44
58
|
|
|
45
59
|
/** @internal */
|
|
46
|
-
export const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
unknown
|
|
50
|
-
> = z.object({
|
|
51
|
-
id: z.string().optional(),
|
|
52
|
-
name: z.string().optional(),
|
|
53
|
-
slug: z.string().optional(),
|
|
54
|
-
});
|
|
55
|
-
/** @internal */
|
|
56
|
-
export type FilesystemDataProject$Outbound = {
|
|
57
|
-
id?: string | undefined;
|
|
58
|
-
name?: string | undefined;
|
|
59
|
-
slug?: string | undefined;
|
|
60
|
-
};
|
|
61
|
-
|
|
60
|
+
export const FilesystemStorageClass$inboundSchema: z.ZodNativeEnum<
|
|
61
|
+
typeof FilesystemStorageClass
|
|
62
|
+
> = z.nativeEnum(FilesystemStorageClass);
|
|
62
63
|
/** @internal */
|
|
63
|
-
export const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
FilesystemDataProject
|
|
67
|
-
> = z.object({
|
|
68
|
-
id: z.string().optional(),
|
|
69
|
-
name: z.string().optional(),
|
|
70
|
-
slug: z.string().optional(),
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
export function filesystemDataProjectToJSON(
|
|
74
|
-
filesystemDataProject: FilesystemDataProject,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(
|
|
77
|
-
FilesystemDataProject$outboundSchema.parse(filesystemDataProject),
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
export function filesystemDataProjectFromJSON(
|
|
81
|
-
jsonString: string,
|
|
82
|
-
): SafeParseResult<FilesystemDataProject, SDKValidationError> {
|
|
83
|
-
return safeParse(
|
|
84
|
-
jsonString,
|
|
85
|
-
(x) => FilesystemDataProject$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
-
`Failed to parse 'FilesystemDataProject' from JSON`,
|
|
87
|
-
);
|
|
88
|
-
}
|
|
64
|
+
export const FilesystemStorageClass$outboundSchema: z.ZodNativeEnum<
|
|
65
|
+
typeof FilesystemStorageClass
|
|
66
|
+
> = FilesystemStorageClass$inboundSchema;
|
|
89
67
|
|
|
90
68
|
/** @internal */
|
|
91
69
|
export const FilesystemDataAttributes$inboundSchema: z.ZodType<
|
|
@@ -95,13 +73,16 @@ export const FilesystemDataAttributes$inboundSchema: z.ZodType<
|
|
|
95
73
|
> = z.object({
|
|
96
74
|
name: z.string().optional(),
|
|
97
75
|
size_in_gb: z.number().int().optional(),
|
|
76
|
+
storage_class: z.nullable(FilesystemStorageClass$inboundSchema).optional(),
|
|
98
77
|
created_at: z.nullable(
|
|
99
78
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
100
79
|
).optional(),
|
|
101
|
-
project:
|
|
80
|
+
project: ProjectInclude$inboundSchema.optional(),
|
|
81
|
+
team: TeamInclude$inboundSchema.optional(),
|
|
102
82
|
}).transform((v) => {
|
|
103
83
|
return remap$(v, {
|
|
104
84
|
"size_in_gb": "sizeInGb",
|
|
85
|
+
"storage_class": "filesystemStorageClass",
|
|
105
86
|
"created_at": "createdAt",
|
|
106
87
|
});
|
|
107
88
|
});
|
|
@@ -109,8 +90,10 @@ export const FilesystemDataAttributes$inboundSchema: z.ZodType<
|
|
|
109
90
|
export type FilesystemDataAttributes$Outbound = {
|
|
110
91
|
name?: string | undefined;
|
|
111
92
|
size_in_gb?: number | undefined;
|
|
93
|
+
storage_class?: string | null | undefined;
|
|
112
94
|
created_at?: string | null | undefined;
|
|
113
|
-
project?:
|
|
95
|
+
project?: ProjectInclude$Outbound | undefined;
|
|
96
|
+
team?: TeamInclude$Outbound | undefined;
|
|
114
97
|
};
|
|
115
98
|
|
|
116
99
|
/** @internal */
|
|
@@ -121,11 +104,15 @@ export const FilesystemDataAttributes$outboundSchema: z.ZodType<
|
|
|
121
104
|
> = z.object({
|
|
122
105
|
name: z.string().optional(),
|
|
123
106
|
sizeInGb: z.number().int().optional(),
|
|
107
|
+
filesystemStorageClass: z.nullable(FilesystemStorageClass$outboundSchema)
|
|
108
|
+
.optional(),
|
|
124
109
|
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
125
|
-
project:
|
|
110
|
+
project: ProjectInclude$outboundSchema.optional(),
|
|
111
|
+
team: TeamInclude$outboundSchema.optional(),
|
|
126
112
|
}).transform((v) => {
|
|
127
113
|
return remap$(v, {
|
|
128
114
|
sizeInGb: "size_in_gb",
|
|
115
|
+
filesystemStorageClass: "storage_class",
|
|
129
116
|
createdAt: "created_at",
|
|
130
117
|
});
|
|
131
118
|
});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
FilesystemData,
|
|
11
|
+
FilesystemData$inboundSchema,
|
|
12
|
+
FilesystemData$Outbound,
|
|
13
|
+
FilesystemData$outboundSchema,
|
|
14
|
+
} from "./filesystemdata.js";
|
|
15
|
+
|
|
16
|
+
export type FilesystemsMeta = {};
|
|
17
|
+
|
|
18
|
+
export type Filesystems = {
|
|
19
|
+
data?: Array<FilesystemData> | undefined;
|
|
20
|
+
meta?: FilesystemsMeta | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const FilesystemsMeta$inboundSchema: z.ZodType<
|
|
25
|
+
FilesystemsMeta,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({});
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type FilesystemsMeta$Outbound = {};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const FilesystemsMeta$outboundSchema: z.ZodType<
|
|
34
|
+
FilesystemsMeta$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
FilesystemsMeta
|
|
37
|
+
> = z.object({});
|
|
38
|
+
|
|
39
|
+
export function filesystemsMetaToJSON(
|
|
40
|
+
filesystemsMeta: FilesystemsMeta,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(FilesystemsMeta$outboundSchema.parse(filesystemsMeta));
|
|
43
|
+
}
|
|
44
|
+
export function filesystemsMetaFromJSON(
|
|
45
|
+
jsonString: string,
|
|
46
|
+
): SafeParseResult<FilesystemsMeta, SDKValidationError> {
|
|
47
|
+
return safeParse(
|
|
48
|
+
jsonString,
|
|
49
|
+
(x) => FilesystemsMeta$inboundSchema.parse(JSON.parse(x)),
|
|
50
|
+
`Failed to parse 'FilesystemsMeta' from JSON`,
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const Filesystems$inboundSchema: z.ZodType<
|
|
56
|
+
Filesystems,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
data: z.array(FilesystemData$inboundSchema).optional(),
|
|
61
|
+
meta: z.lazy(() => FilesystemsMeta$inboundSchema).optional(),
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type Filesystems$Outbound = {
|
|
65
|
+
data?: Array<FilesystemData$Outbound> | undefined;
|
|
66
|
+
meta?: FilesystemsMeta$Outbound | undefined;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const Filesystems$outboundSchema: z.ZodType<
|
|
71
|
+
Filesystems$Outbound,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
Filesystems
|
|
74
|
+
> = z.object({
|
|
75
|
+
data: z.array(FilesystemData$outboundSchema).optional(),
|
|
76
|
+
meta: z.lazy(() => FilesystemsMeta$outboundSchema).optional(),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export function filesystemsToJSON(filesystems: Filesystems): string {
|
|
80
|
+
return JSON.stringify(Filesystems$outboundSchema.parse(filesystems));
|
|
81
|
+
}
|
|
82
|
+
export function filesystemsFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<Filesystems, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => Filesystems$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'Filesystems' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -22,8 +22,14 @@ export type FirewallAssignmentDataServer = {
|
|
|
22
22
|
hostname?: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
export type FirewallAssignmentDataFirewall = {
|
|
26
|
+
id?: string | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
25
30
|
export type FirewallAssignmentDataAttributes = {
|
|
26
31
|
server?: FirewallAssignmentDataServer | undefined;
|
|
32
|
+
firewall?: FirewallAssignmentDataFirewall | undefined;
|
|
27
33
|
firewallId?: string | undefined;
|
|
28
34
|
};
|
|
29
35
|
|
|
@@ -97,6 +103,50 @@ export function firewallAssignmentDataServerFromJSON(
|
|
|
97
103
|
);
|
|
98
104
|
}
|
|
99
105
|
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const FirewallAssignmentDataFirewall$inboundSchema: z.ZodType<
|
|
108
|
+
FirewallAssignmentDataFirewall,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
id: z.string().optional(),
|
|
113
|
+
name: z.string().optional(),
|
|
114
|
+
});
|
|
115
|
+
/** @internal */
|
|
116
|
+
export type FirewallAssignmentDataFirewall$Outbound = {
|
|
117
|
+
id?: string | undefined;
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const FirewallAssignmentDataFirewall$outboundSchema: z.ZodType<
|
|
123
|
+
FirewallAssignmentDataFirewall$Outbound,
|
|
124
|
+
z.ZodTypeDef,
|
|
125
|
+
FirewallAssignmentDataFirewall
|
|
126
|
+
> = z.object({
|
|
127
|
+
id: z.string().optional(),
|
|
128
|
+
name: z.string().optional(),
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
export function firewallAssignmentDataFirewallToJSON(
|
|
132
|
+
firewallAssignmentDataFirewall: FirewallAssignmentDataFirewall,
|
|
133
|
+
): string {
|
|
134
|
+
return JSON.stringify(
|
|
135
|
+
FirewallAssignmentDataFirewall$outboundSchema.parse(
|
|
136
|
+
firewallAssignmentDataFirewall,
|
|
137
|
+
),
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
export function firewallAssignmentDataFirewallFromJSON(
|
|
141
|
+
jsonString: string,
|
|
142
|
+
): SafeParseResult<FirewallAssignmentDataFirewall, SDKValidationError> {
|
|
143
|
+
return safeParse(
|
|
144
|
+
jsonString,
|
|
145
|
+
(x) => FirewallAssignmentDataFirewall$inboundSchema.parse(JSON.parse(x)),
|
|
146
|
+
`Failed to parse 'FirewallAssignmentDataFirewall' from JSON`,
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
100
150
|
/** @internal */
|
|
101
151
|
export const FirewallAssignmentDataAttributes$inboundSchema: z.ZodType<
|
|
102
152
|
FirewallAssignmentDataAttributes,
|
|
@@ -104,6 +154,8 @@ export const FirewallAssignmentDataAttributes$inboundSchema: z.ZodType<
|
|
|
104
154
|
unknown
|
|
105
155
|
> = z.object({
|
|
106
156
|
server: z.lazy(() => FirewallAssignmentDataServer$inboundSchema).optional(),
|
|
157
|
+
firewall: z.lazy(() => FirewallAssignmentDataFirewall$inboundSchema)
|
|
158
|
+
.optional(),
|
|
107
159
|
firewall_id: z.string().optional(),
|
|
108
160
|
}).transform((v) => {
|
|
109
161
|
return remap$(v, {
|
|
@@ -113,6 +165,7 @@ export const FirewallAssignmentDataAttributes$inboundSchema: z.ZodType<
|
|
|
113
165
|
/** @internal */
|
|
114
166
|
export type FirewallAssignmentDataAttributes$Outbound = {
|
|
115
167
|
server?: FirewallAssignmentDataServer$Outbound | undefined;
|
|
168
|
+
firewall?: FirewallAssignmentDataFirewall$Outbound | undefined;
|
|
116
169
|
firewall_id?: string | undefined;
|
|
117
170
|
};
|
|
118
171
|
|
|
@@ -123,6 +176,8 @@ export const FirewallAssignmentDataAttributes$outboundSchema: z.ZodType<
|
|
|
123
176
|
FirewallAssignmentDataAttributes
|
|
124
177
|
> = z.object({
|
|
125
178
|
server: z.lazy(() => FirewallAssignmentDataServer$outboundSchema).optional(),
|
|
179
|
+
firewall: z.lazy(() => FirewallAssignmentDataFirewall$outboundSchema)
|
|
180
|
+
.optional(),
|
|
126
181
|
firewallId: z.string().optional(),
|
|
127
182
|
}).transform((v) => {
|
|
128
183
|
return remap$(v, {
|
|
@@ -24,6 +24,10 @@ export type Rule = {
|
|
|
24
24
|
to?: string | undefined;
|
|
25
25
|
port?: string | undefined;
|
|
26
26
|
protocol?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* True when this rule was seeded by Latitude when the firewall was created (cannot be deleted); false for user-added rules.
|
|
29
|
+
*/
|
|
30
|
+
default?: boolean | undefined;
|
|
27
31
|
/**
|
|
28
32
|
* Optional description explaining the purpose of this rule
|
|
29
33
|
*/
|
|
@@ -64,6 +68,7 @@ export const Rule$inboundSchema: z.ZodType<Rule, z.ZodTypeDef, unknown> = z
|
|
|
64
68
|
to: z.string().optional(),
|
|
65
69
|
port: z.string().optional(),
|
|
66
70
|
protocol: z.string().optional(),
|
|
71
|
+
default: z.boolean().optional(),
|
|
67
72
|
description: z.nullable(z.string()).optional(),
|
|
68
73
|
});
|
|
69
74
|
/** @internal */
|
|
@@ -72,6 +77,7 @@ export type Rule$Outbound = {
|
|
|
72
77
|
to?: string | undefined;
|
|
73
78
|
port?: string | undefined;
|
|
74
79
|
protocol?: string | undefined;
|
|
80
|
+
default?: boolean | undefined;
|
|
75
81
|
description?: string | null | undefined;
|
|
76
82
|
};
|
|
77
83
|
|
|
@@ -82,6 +88,7 @@ export const Rule$outboundSchema: z.ZodType<Rule$Outbound, z.ZodTypeDef, Rule> =
|
|
|
82
88
|
to: z.string().optional(),
|
|
83
89
|
port: z.string().optional(),
|
|
84
90
|
protocol: z.string().optional(),
|
|
91
|
+
default: z.boolean().optional(),
|
|
85
92
|
description: z.nullable(z.string()).optional(),
|
|
86
93
|
});
|
|
87
94
|
|
package/src/models/index.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./errorobject.js";
|
|
|
22
22
|
export * from "./eventdata.js";
|
|
23
23
|
export * from "./events.js";
|
|
24
24
|
export * from "./filesystemdata.js";
|
|
25
|
+
export * from "./filesystems.js";
|
|
25
26
|
export * from "./firewall.js";
|
|
26
27
|
export * from "./firewallassignmentdata.js";
|
|
27
28
|
export * from "./firewallassignments.js";
|
package/src/models/team.ts
CHANGED
|
@@ -25,6 +25,18 @@ export type TeamBilling = {
|
|
|
25
25
|
customerBillingId?: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
+
export type TeamLimits = {
|
|
29
|
+
bareMetal?: number | null | undefined;
|
|
30
|
+
bareMetalGpu?: number | null | undefined;
|
|
31
|
+
virtualMachine?: number | null | undefined;
|
|
32
|
+
virtualMachineGpu?: number | null | undefined;
|
|
33
|
+
elasticIp?: number | null | undefined;
|
|
34
|
+
virtualNetwork?: number | null | undefined;
|
|
35
|
+
database?: number | null | undefined;
|
|
36
|
+
filesystem?: number | null | undefined;
|
|
37
|
+
blockStorage?: number | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
28
40
|
export type TeamAttributes = {
|
|
29
41
|
name?: string | undefined;
|
|
30
42
|
slug?: string | undefined;
|
|
@@ -39,6 +51,7 @@ export type TeamAttributes = {
|
|
|
39
51
|
owner?: UserInclude | undefined;
|
|
40
52
|
billing?: TeamBilling | undefined;
|
|
41
53
|
featureFlags?: Array<string> | undefined;
|
|
54
|
+
limits?: TeamLimits | undefined;
|
|
42
55
|
};
|
|
43
56
|
|
|
44
57
|
export type Team = {
|
|
@@ -92,6 +105,85 @@ export function teamBillingFromJSON(
|
|
|
92
105
|
);
|
|
93
106
|
}
|
|
94
107
|
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const TeamLimits$inboundSchema: z.ZodType<
|
|
110
|
+
TeamLimits,
|
|
111
|
+
z.ZodTypeDef,
|
|
112
|
+
unknown
|
|
113
|
+
> = z.object({
|
|
114
|
+
bare_metal: z.nullable(z.number().int()).optional(),
|
|
115
|
+
bare_metal_gpu: z.nullable(z.number().int()).optional(),
|
|
116
|
+
virtual_machine: z.nullable(z.number().int()).optional(),
|
|
117
|
+
virtual_machine_gpu: z.nullable(z.number().int()).optional(),
|
|
118
|
+
elastic_ip: z.nullable(z.number().int()).optional(),
|
|
119
|
+
virtual_network: z.nullable(z.number().int()).optional(),
|
|
120
|
+
database: z.nullable(z.number().int()).optional(),
|
|
121
|
+
filesystem: z.nullable(z.number().int()).optional(),
|
|
122
|
+
block_storage: z.nullable(z.number().int()).optional(),
|
|
123
|
+
}).transform((v) => {
|
|
124
|
+
return remap$(v, {
|
|
125
|
+
"bare_metal": "bareMetal",
|
|
126
|
+
"bare_metal_gpu": "bareMetalGpu",
|
|
127
|
+
"virtual_machine": "virtualMachine",
|
|
128
|
+
"virtual_machine_gpu": "virtualMachineGpu",
|
|
129
|
+
"elastic_ip": "elasticIp",
|
|
130
|
+
"virtual_network": "virtualNetwork",
|
|
131
|
+
"block_storage": "blockStorage",
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
/** @internal */
|
|
135
|
+
export type TeamLimits$Outbound = {
|
|
136
|
+
bare_metal?: number | null | undefined;
|
|
137
|
+
bare_metal_gpu?: number | null | undefined;
|
|
138
|
+
virtual_machine?: number | null | undefined;
|
|
139
|
+
virtual_machine_gpu?: number | null | undefined;
|
|
140
|
+
elastic_ip?: number | null | undefined;
|
|
141
|
+
virtual_network?: number | null | undefined;
|
|
142
|
+
database?: number | null | undefined;
|
|
143
|
+
filesystem?: number | null | undefined;
|
|
144
|
+
block_storage?: number | null | undefined;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/** @internal */
|
|
148
|
+
export const TeamLimits$outboundSchema: z.ZodType<
|
|
149
|
+
TeamLimits$Outbound,
|
|
150
|
+
z.ZodTypeDef,
|
|
151
|
+
TeamLimits
|
|
152
|
+
> = z.object({
|
|
153
|
+
bareMetal: z.nullable(z.number().int()).optional(),
|
|
154
|
+
bareMetalGpu: z.nullable(z.number().int()).optional(),
|
|
155
|
+
virtualMachine: z.nullable(z.number().int()).optional(),
|
|
156
|
+
virtualMachineGpu: z.nullable(z.number().int()).optional(),
|
|
157
|
+
elasticIp: z.nullable(z.number().int()).optional(),
|
|
158
|
+
virtualNetwork: z.nullable(z.number().int()).optional(),
|
|
159
|
+
database: z.nullable(z.number().int()).optional(),
|
|
160
|
+
filesystem: z.nullable(z.number().int()).optional(),
|
|
161
|
+
blockStorage: z.nullable(z.number().int()).optional(),
|
|
162
|
+
}).transform((v) => {
|
|
163
|
+
return remap$(v, {
|
|
164
|
+
bareMetal: "bare_metal",
|
|
165
|
+
bareMetalGpu: "bare_metal_gpu",
|
|
166
|
+
virtualMachine: "virtual_machine",
|
|
167
|
+
virtualMachineGpu: "virtual_machine_gpu",
|
|
168
|
+
elasticIp: "elastic_ip",
|
|
169
|
+
virtualNetwork: "virtual_network",
|
|
170
|
+
blockStorage: "block_storage",
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
export function teamLimitsToJSON(teamLimits: TeamLimits): string {
|
|
175
|
+
return JSON.stringify(TeamLimits$outboundSchema.parse(teamLimits));
|
|
176
|
+
}
|
|
177
|
+
export function teamLimitsFromJSON(
|
|
178
|
+
jsonString: string,
|
|
179
|
+
): SafeParseResult<TeamLimits, SDKValidationError> {
|
|
180
|
+
return safeParse(
|
|
181
|
+
jsonString,
|
|
182
|
+
(x) => TeamLimits$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
+
`Failed to parse 'TeamLimits' from JSON`,
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
95
187
|
/** @internal */
|
|
96
188
|
export const TeamAttributes$inboundSchema: z.ZodType<
|
|
97
189
|
TeamAttributes,
|
|
@@ -111,6 +203,7 @@ export const TeamAttributes$inboundSchema: z.ZodType<
|
|
|
111
203
|
owner: UserInclude$inboundSchema.optional(),
|
|
112
204
|
billing: z.lazy(() => TeamBilling$inboundSchema).optional(),
|
|
113
205
|
feature_flags: z.array(z.string()).optional(),
|
|
206
|
+
limits: z.lazy(() => TeamLimits$inboundSchema).optional(),
|
|
114
207
|
}).transform((v) => {
|
|
115
208
|
return remap$(v, {
|
|
116
209
|
"created_at": "createdAt",
|
|
@@ -134,6 +227,7 @@ export type TeamAttributes$Outbound = {
|
|
|
134
227
|
owner?: UserInclude$Outbound | undefined;
|
|
135
228
|
billing?: TeamBilling$Outbound | undefined;
|
|
136
229
|
feature_flags?: Array<string> | undefined;
|
|
230
|
+
limits?: TeamLimits$Outbound | undefined;
|
|
137
231
|
};
|
|
138
232
|
|
|
139
233
|
/** @internal */
|
|
@@ -155,6 +249,7 @@ export const TeamAttributes$outboundSchema: z.ZodType<
|
|
|
155
249
|
owner: UserInclude$outboundSchema.optional(),
|
|
156
250
|
billing: z.lazy(() => TeamBilling$outboundSchema).optional(),
|
|
157
251
|
featureFlags: z.array(z.string()).optional(),
|
|
252
|
+
limits: z.lazy(() => TeamLimits$outboundSchema).optional(),
|
|
158
253
|
}).transform((v) => {
|
|
159
254
|
return remap$(v, {
|
|
160
255
|
createdAt: "created_at",
|
|
@@ -10,6 +10,18 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type Currency = {};
|
|
12
12
|
|
|
13
|
+
export type TeamIncludeLimits = {
|
|
14
|
+
bareMetal?: number | null | undefined;
|
|
15
|
+
bareMetalGpu?: number | null | undefined;
|
|
16
|
+
virtualMachine?: number | null | undefined;
|
|
17
|
+
virtualMachineGpu?: number | null | undefined;
|
|
18
|
+
elasticIp?: number | null | undefined;
|
|
19
|
+
virtualNetwork?: number | null | undefined;
|
|
20
|
+
database?: number | null | undefined;
|
|
21
|
+
filesystem?: number | null | undefined;
|
|
22
|
+
blockStorage?: number | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
13
25
|
export type TeamInclude = {
|
|
14
26
|
id?: string | undefined;
|
|
15
27
|
name?: string | undefined;
|
|
@@ -19,6 +31,7 @@ export type TeamInclude = {
|
|
|
19
31
|
currency?: Currency | undefined;
|
|
20
32
|
status?: string | undefined;
|
|
21
33
|
featureFlags?: Array<string> | undefined;
|
|
34
|
+
limits?: TeamIncludeLimits | undefined;
|
|
22
35
|
};
|
|
23
36
|
|
|
24
37
|
/** @internal */
|
|
@@ -50,6 +63,89 @@ export function currencyFromJSON(
|
|
|
50
63
|
);
|
|
51
64
|
}
|
|
52
65
|
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const TeamIncludeLimits$inboundSchema: z.ZodType<
|
|
68
|
+
TeamIncludeLimits,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
unknown
|
|
71
|
+
> = z.object({
|
|
72
|
+
bare_metal: z.nullable(z.number().int()).optional(),
|
|
73
|
+
bare_metal_gpu: z.nullable(z.number().int()).optional(),
|
|
74
|
+
virtual_machine: z.nullable(z.number().int()).optional(),
|
|
75
|
+
virtual_machine_gpu: z.nullable(z.number().int()).optional(),
|
|
76
|
+
elastic_ip: z.nullable(z.number().int()).optional(),
|
|
77
|
+
virtual_network: z.nullable(z.number().int()).optional(),
|
|
78
|
+
database: z.nullable(z.number().int()).optional(),
|
|
79
|
+
filesystem: z.nullable(z.number().int()).optional(),
|
|
80
|
+
block_storage: z.nullable(z.number().int()).optional(),
|
|
81
|
+
}).transform((v) => {
|
|
82
|
+
return remap$(v, {
|
|
83
|
+
"bare_metal": "bareMetal",
|
|
84
|
+
"bare_metal_gpu": "bareMetalGpu",
|
|
85
|
+
"virtual_machine": "virtualMachine",
|
|
86
|
+
"virtual_machine_gpu": "virtualMachineGpu",
|
|
87
|
+
"elastic_ip": "elasticIp",
|
|
88
|
+
"virtual_network": "virtualNetwork",
|
|
89
|
+
"block_storage": "blockStorage",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
/** @internal */
|
|
93
|
+
export type TeamIncludeLimits$Outbound = {
|
|
94
|
+
bare_metal?: number | null | undefined;
|
|
95
|
+
bare_metal_gpu?: number | null | undefined;
|
|
96
|
+
virtual_machine?: number | null | undefined;
|
|
97
|
+
virtual_machine_gpu?: number | null | undefined;
|
|
98
|
+
elastic_ip?: number | null | undefined;
|
|
99
|
+
virtual_network?: number | null | undefined;
|
|
100
|
+
database?: number | null | undefined;
|
|
101
|
+
filesystem?: number | null | undefined;
|
|
102
|
+
block_storage?: number | null | undefined;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const TeamIncludeLimits$outboundSchema: z.ZodType<
|
|
107
|
+
TeamIncludeLimits$Outbound,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
TeamIncludeLimits
|
|
110
|
+
> = z.object({
|
|
111
|
+
bareMetal: z.nullable(z.number().int()).optional(),
|
|
112
|
+
bareMetalGpu: z.nullable(z.number().int()).optional(),
|
|
113
|
+
virtualMachine: z.nullable(z.number().int()).optional(),
|
|
114
|
+
virtualMachineGpu: z.nullable(z.number().int()).optional(),
|
|
115
|
+
elasticIp: z.nullable(z.number().int()).optional(),
|
|
116
|
+
virtualNetwork: z.nullable(z.number().int()).optional(),
|
|
117
|
+
database: z.nullable(z.number().int()).optional(),
|
|
118
|
+
filesystem: z.nullable(z.number().int()).optional(),
|
|
119
|
+
blockStorage: z.nullable(z.number().int()).optional(),
|
|
120
|
+
}).transform((v) => {
|
|
121
|
+
return remap$(v, {
|
|
122
|
+
bareMetal: "bare_metal",
|
|
123
|
+
bareMetalGpu: "bare_metal_gpu",
|
|
124
|
+
virtualMachine: "virtual_machine",
|
|
125
|
+
virtualMachineGpu: "virtual_machine_gpu",
|
|
126
|
+
elasticIp: "elastic_ip",
|
|
127
|
+
virtualNetwork: "virtual_network",
|
|
128
|
+
blockStorage: "block_storage",
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
export function teamIncludeLimitsToJSON(
|
|
133
|
+
teamIncludeLimits: TeamIncludeLimits,
|
|
134
|
+
): string {
|
|
135
|
+
return JSON.stringify(
|
|
136
|
+
TeamIncludeLimits$outboundSchema.parse(teamIncludeLimits),
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
export function teamIncludeLimitsFromJSON(
|
|
140
|
+
jsonString: string,
|
|
141
|
+
): SafeParseResult<TeamIncludeLimits, SDKValidationError> {
|
|
142
|
+
return safeParse(
|
|
143
|
+
jsonString,
|
|
144
|
+
(x) => TeamIncludeLimits$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
+
`Failed to parse 'TeamIncludeLimits' from JSON`,
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
53
149
|
/** @internal */
|
|
54
150
|
export const TeamInclude$inboundSchema: z.ZodType<
|
|
55
151
|
TeamInclude,
|
|
@@ -64,6 +160,7 @@ export const TeamInclude$inboundSchema: z.ZodType<
|
|
|
64
160
|
currency: z.lazy(() => Currency$inboundSchema).optional(),
|
|
65
161
|
status: z.string().optional(),
|
|
66
162
|
feature_flags: z.array(z.string()).optional(),
|
|
163
|
+
limits: z.lazy(() => TeamIncludeLimits$inboundSchema).optional(),
|
|
67
164
|
}).transform((v) => {
|
|
68
165
|
return remap$(v, {
|
|
69
166
|
"feature_flags": "featureFlags",
|
|
@@ -79,6 +176,7 @@ export type TeamInclude$Outbound = {
|
|
|
79
176
|
currency?: Currency$Outbound | undefined;
|
|
80
177
|
status?: string | undefined;
|
|
81
178
|
feature_flags?: Array<string> | undefined;
|
|
179
|
+
limits?: TeamIncludeLimits$Outbound | undefined;
|
|
82
180
|
};
|
|
83
181
|
|
|
84
182
|
/** @internal */
|
|
@@ -95,6 +193,7 @@ export const TeamInclude$outboundSchema: z.ZodType<
|
|
|
95
193
|
currency: z.lazy(() => Currency$outboundSchema).optional(),
|
|
96
194
|
status: z.string().optional(),
|
|
97
195
|
featureFlags: z.array(z.string()).optional(),
|
|
196
|
+
limits: z.lazy(() => TeamIncludeLimits$outboundSchema).optional(),
|
|
98
197
|
}).transform((v) => {
|
|
99
198
|
return remap$(v, {
|
|
100
199
|
featureFlags: "feature_flags",
|
|
@@ -41,6 +41,10 @@ export type VirtualMachinePayloadAttributes = {
|
|
|
41
41
|
* Array of tag IDs to assign to the VM.
|
|
42
42
|
*/
|
|
43
43
|
tags?: Array<string> | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Site/region slug where the VM is provisioned (e.g. DAL, SAO). Defaults to DAL when omitted.
|
|
46
|
+
*/
|
|
47
|
+
site?: string | null | undefined;
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
export type VirtualMachinePayloadData = {
|
|
@@ -103,6 +107,7 @@ export const VirtualMachinePayloadAttributes$inboundSchema: z.ZodType<
|
|
|
103
107
|
operating_system: z.nullable(z.string()).optional(),
|
|
104
108
|
user_data: z.nullable(z.union([z.number().int(), z.string()])).optional(),
|
|
105
109
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
110
|
+
site: z.nullable(z.string().default("DAL")),
|
|
106
111
|
}).transform((v) => {
|
|
107
112
|
return remap$(v, {
|
|
108
113
|
"ssh_keys": "sshKeys",
|
|
@@ -119,6 +124,7 @@ export type VirtualMachinePayloadAttributes$Outbound = {
|
|
|
119
124
|
operating_system?: string | null | undefined;
|
|
120
125
|
user_data?: number | string | null | undefined;
|
|
121
126
|
tags?: Array<string> | null | undefined;
|
|
127
|
+
site: string | null;
|
|
122
128
|
};
|
|
123
129
|
|
|
124
130
|
/** @internal */
|
|
@@ -134,6 +140,7 @@ export const VirtualMachinePayloadAttributes$outboundSchema: z.ZodType<
|
|
|
134
140
|
operatingSystem: z.nullable(z.string()).optional(),
|
|
135
141
|
userData: z.nullable(z.union([z.number().int(), z.string()])).optional(),
|
|
136
142
|
tags: z.nullable(z.array(z.string())).optional(),
|
|
143
|
+
site: z.nullable(z.string().default("DAL")),
|
|
137
144
|
}).transform((v) => {
|
|
138
145
|
return remap$(v, {
|
|
139
146
|
sshKeys: "ssh_keys",
|
|
@@ -7,6 +7,7 @@ import { filesystemStorageDeleteFilesystem } from "../funcs/filesystemStorageDel
|
|
|
7
7
|
import { filesystemStorageListFilesystems } from "../funcs/filesystemStorageListFilesystems.js";
|
|
8
8
|
import { filesystemStorageUpdateFilesystem } from "../funcs/filesystemStorageUpdateFilesystem.js";
|
|
9
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as models from "../models/index.js";
|
|
10
11
|
import * as operations from "../models/operations/index.js";
|
|
11
12
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
13
|
|
|
@@ -37,7 +38,7 @@ export class FilesystemStorage extends ClientSDK {
|
|
|
37
38
|
async listFilesystems(
|
|
38
39
|
request?: operations.GetStorageFilesystemsRequest | undefined,
|
|
39
40
|
options?: RequestOptions,
|
|
40
|
-
): Promise<
|
|
41
|
+
): Promise<models.Filesystems> {
|
|
41
42
|
return unwrapAsync(filesystemStorageListFilesystems(
|
|
42
43
|
this,
|
|
43
44
|
request,
|