latitudesh-typescript-sdk 0.7.5 → 0.8.0
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 +44 -16
- package/bin/mcp-server.js.map +12 -10
- 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/createserver.d.ts +7 -7
- package/dist/commonjs/models/operations/createserver.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createserver.js +5 -4
- package/dist/commonjs/models/operations/createserver.js.map +1 -1
- package/dist/commonjs/models/operations/createvirtualnetwork.d.ts +7 -7
- package/dist/commonjs/models/operations/createvirtualnetwork.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createvirtualnetwork.js +4 -3
- package/dist/commonjs/models/operations/createvirtualnetwork.js.map +1 -1
- package/dist/commonjs/models/operations/getvpnsessions.d.ts +4 -4
- package/dist/commonjs/models/operations/getvpnsessions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvpnsessions.js +3 -2
- package/dist/commonjs/models/operations/getvpnsessions.js.map +1 -1
- package/dist/commonjs/models/operations/postvpnsession.d.ts +4 -4
- package/dist/commonjs/models/operations/postvpnsession.d.ts.map +1 -1
- package/dist/commonjs/models/operations/postvpnsession.js +3 -2
- package/dist/commonjs/models/operations/postvpnsession.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/createserver.d.ts +7 -7
- package/dist/esm/models/operations/createserver.d.ts.map +1 -1
- package/dist/esm/models/operations/createserver.js +5 -4
- package/dist/esm/models/operations/createserver.js.map +1 -1
- package/dist/esm/models/operations/createvirtualnetwork.d.ts +7 -7
- package/dist/esm/models/operations/createvirtualnetwork.d.ts.map +1 -1
- package/dist/esm/models/operations/createvirtualnetwork.js +4 -3
- package/dist/esm/models/operations/createvirtualnetwork.js.map +1 -1
- package/dist/esm/models/operations/getvpnsessions.d.ts +4 -4
- package/dist/esm/models/operations/getvpnsessions.d.ts.map +1 -1
- package/dist/esm/models/operations/getvpnsessions.js +3 -2
- package/dist/esm/models/operations/getvpnsessions.js.map +1 -1
- package/dist/esm/models/operations/postvpnsession.d.ts +4 -4
- package/dist/esm/models/operations/postvpnsession.d.ts.map +1 -1
- package/dist/esm/models/operations/postvpnsession.js +3 -2
- package/dist/esm/models/operations/postvpnsession.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/createserver.ts +18 -14
- package/src/models/operations/createvirtualnetwork.ts +16 -11
- package/src/models/operations/getvpnsessions.ts +13 -8
- package/src/models/operations/postvpnsession.ts +13 -8
package/bin/mcp-server.js
CHANGED
|
@@ -53149,9 +53149,9 @@ var init_config = __esm(() => {
|
|
|
53149
53149
|
SDK_METADATA = {
|
|
53150
53150
|
language: "typescript",
|
|
53151
53151
|
openapiDocVersion: "2023-06-01",
|
|
53152
|
-
sdkVersion: "0.
|
|
53153
|
-
genVersion: "2.
|
|
53154
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
53152
|
+
sdkVersion: "0.8.0",
|
|
53153
|
+
genVersion: "2.917.0",
|
|
53154
|
+
userAgent: "speakeasy-sdk/typescript 0.8.0 2.917.0 2023-06-01 latitudesh-typescript-sdk"
|
|
53155
53155
|
};
|
|
53156
53156
|
});
|
|
53157
53157
|
|
|
@@ -61086,11 +61086,36 @@ var init_createproject = __esm(() => {
|
|
|
61086
61086
|
});
|
|
61087
61087
|
});
|
|
61088
61088
|
|
|
61089
|
+
// src/types/unrecognized.ts
|
|
61090
|
+
function unrecognized(value) {
|
|
61091
|
+
globalCount++;
|
|
61092
|
+
return value;
|
|
61093
|
+
}
|
|
61094
|
+
var globalCount = 0;
|
|
61095
|
+
var init_unrecognized = () => {};
|
|
61096
|
+
|
|
61097
|
+
// src/types/enums.ts
|
|
61098
|
+
function inboundSchema(enumObj) {
|
|
61099
|
+
const options = Object.values(enumObj);
|
|
61100
|
+
return unionType([
|
|
61101
|
+
...options.map((x) => literalType(x)),
|
|
61102
|
+
stringType().transform((x) => unrecognized(x))
|
|
61103
|
+
]);
|
|
61104
|
+
}
|
|
61105
|
+
function outboundSchema(_2) {
|
|
61106
|
+
return stringType();
|
|
61107
|
+
}
|
|
61108
|
+
var init_enums = __esm(() => {
|
|
61109
|
+
init_v3();
|
|
61110
|
+
init_unrecognized();
|
|
61111
|
+
});
|
|
61112
|
+
|
|
61089
61113
|
// src/models/operations/createserver.ts
|
|
61090
61114
|
var CreateServerType2, Plan2, CreateServerSite2, CreateServerOperatingSystem2, CreateServerRaid2, CreateServerRole2, CreateServerRaidLevel2, CreateServerFilesystem2, CreateServerBilling2, CreateServerType2$inboundSchema, CreateServerType2$outboundSchema, Plan2$inboundSchema, Plan2$outboundSchema, CreateServerSite2$inboundSchema, CreateServerSite2$outboundSchema, CreateServerOperatingSystem2$inboundSchema, CreateServerOperatingSystem2$outboundSchema, CreateServerRaid2$inboundSchema, CreateServerRaid2$outboundSchema, CreateServerRole2$inboundSchema, CreateServerRole2$outboundSchema, CreateServerRaidLevel2$inboundSchema, CreateServerRaidLevel2$outboundSchema, CreateServerFilesystem2$inboundSchema, CreateServerFilesystem2$outboundSchema, CreateServerDiskLayout2$inboundSchema, CreateServerDiskLayout2$outboundSchema, CreateServerBilling2$inboundSchema, CreateServerBilling2$outboundSchema, CreateServerAttributes2$inboundSchema, CreateServerAttributes2$outboundSchema, CreateServerData2$inboundSchema, CreateServerData2$outboundSchema, CreateServerRequest$inboundSchema, CreateServerRequest$outboundSchema;
|
|
61091
61115
|
var init_createserver = __esm(() => {
|
|
61092
61116
|
init_v3();
|
|
61093
61117
|
init_primitives();
|
|
61118
|
+
init_enums();
|
|
61094
61119
|
CreateServerType2 = {
|
|
61095
61120
|
Servers: "servers"
|
|
61096
61121
|
};
|
|
@@ -61176,10 +61201,10 @@ var init_createserver = __esm(() => {
|
|
|
61176
61201
|
};
|
|
61177
61202
|
CreateServerType2$inboundSchema = nativeEnumType(CreateServerType2);
|
|
61178
61203
|
CreateServerType2$outboundSchema = CreateServerType2$inboundSchema;
|
|
61179
|
-
Plan2$inboundSchema =
|
|
61180
|
-
Plan2$outboundSchema = Plan2
|
|
61181
|
-
CreateServerSite2$inboundSchema =
|
|
61182
|
-
CreateServerSite2$outboundSchema = CreateServerSite2
|
|
61204
|
+
Plan2$inboundSchema = inboundSchema(Plan2);
|
|
61205
|
+
Plan2$outboundSchema = outboundSchema(Plan2);
|
|
61206
|
+
CreateServerSite2$inboundSchema = inboundSchema(CreateServerSite2);
|
|
61207
|
+
CreateServerSite2$outboundSchema = outboundSchema(CreateServerSite2);
|
|
61183
61208
|
CreateServerOperatingSystem2$inboundSchema = nativeEnumType(CreateServerOperatingSystem2);
|
|
61184
61209
|
CreateServerOperatingSystem2$outboundSchema = CreateServerOperatingSystem2$inboundSchema;
|
|
61185
61210
|
CreateServerRaid2$inboundSchema = nativeEnumType(CreateServerRaid2);
|
|
@@ -61734,6 +61759,7 @@ var init_createvirtualmachinerestore = __esm(() => {
|
|
|
61734
61759
|
var CreateVirtualNetworkType2, CreateVirtualNetworkSite2, CreateVirtualNetworkType2$inboundSchema, CreateVirtualNetworkType2$outboundSchema, CreateVirtualNetworkSite2$inboundSchema, CreateVirtualNetworkSite2$outboundSchema, CreateVirtualNetworkAttributes2$inboundSchema, CreateVirtualNetworkAttributes2$outboundSchema, CreateVirtualNetworkData2$inboundSchema, CreateVirtualNetworkData2$outboundSchema, CreateVirtualNetworkRequest$inboundSchema, CreateVirtualNetworkRequest$outboundSchema;
|
|
61735
61760
|
var init_createvirtualnetwork = __esm(() => {
|
|
61736
61761
|
init_v3();
|
|
61762
|
+
init_enums();
|
|
61737
61763
|
CreateVirtualNetworkType2 = {
|
|
61738
61764
|
VirtualNetwork: "virtual_network"
|
|
61739
61765
|
};
|
|
@@ -61759,8 +61785,8 @@ var init_createvirtualnetwork = __esm(() => {
|
|
|
61759
61785
|
};
|
|
61760
61786
|
CreateVirtualNetworkType2$inboundSchema = nativeEnumType(CreateVirtualNetworkType2);
|
|
61761
61787
|
CreateVirtualNetworkType2$outboundSchema = CreateVirtualNetworkType2$inboundSchema;
|
|
61762
|
-
CreateVirtualNetworkSite2$inboundSchema =
|
|
61763
|
-
CreateVirtualNetworkSite2$outboundSchema = CreateVirtualNetworkSite2
|
|
61788
|
+
CreateVirtualNetworkSite2$inboundSchema = inboundSchema(CreateVirtualNetworkSite2);
|
|
61789
|
+
CreateVirtualNetworkSite2$outboundSchema = outboundSchema(CreateVirtualNetworkSite2);
|
|
61764
61790
|
CreateVirtualNetworkAttributes2$inboundSchema = objectType({
|
|
61765
61791
|
description: stringType(),
|
|
61766
61792
|
site: CreateVirtualNetworkSite2$inboundSchema.optional(),
|
|
@@ -63899,6 +63925,7 @@ var FilterLocation, FilterLocation$inboundSchema, FilterLocation$outboundSchema,
|
|
|
63899
63925
|
var init_getvpnsessions = __esm(() => {
|
|
63900
63926
|
init_v3();
|
|
63901
63927
|
init_primitives();
|
|
63928
|
+
init_enums();
|
|
63902
63929
|
init_models();
|
|
63903
63930
|
FilterLocation = {
|
|
63904
63931
|
Ash: "ASH",
|
|
@@ -63920,8 +63947,8 @@ var init_getvpnsessions = __esm(() => {
|
|
|
63920
63947
|
Tyo: "TYO",
|
|
63921
63948
|
Tyo2: "TYO2"
|
|
63922
63949
|
};
|
|
63923
|
-
FilterLocation$inboundSchema =
|
|
63924
|
-
FilterLocation$outboundSchema = FilterLocation
|
|
63950
|
+
FilterLocation$inboundSchema = inboundSchema(FilterLocation);
|
|
63951
|
+
FilterLocation$outboundSchema = outboundSchema(FilterLocation);
|
|
63925
63952
|
GetVpnSessionsRequest$inboundSchema = objectType({
|
|
63926
63953
|
"filter[location]": FilterLocation$inboundSchema.optional()
|
|
63927
63954
|
}).transform((v2) => {
|
|
@@ -65038,6 +65065,7 @@ var PostVpnSessionType2, PostVpnSessionSite2, PostVpnSessionType2$inboundSchema,
|
|
|
65038
65065
|
var init_postvpnsession = __esm(() => {
|
|
65039
65066
|
init_v3();
|
|
65040
65067
|
init_primitives();
|
|
65068
|
+
init_enums();
|
|
65041
65069
|
PostVpnSessionType2 = {
|
|
65042
65070
|
VpnSessions: "vpn_sessions"
|
|
65043
65071
|
};
|
|
@@ -65063,8 +65091,8 @@ var init_postvpnsession = __esm(() => {
|
|
|
65063
65091
|
};
|
|
65064
65092
|
PostVpnSessionType2$inboundSchema = nativeEnumType(PostVpnSessionType2);
|
|
65065
65093
|
PostVpnSessionType2$outboundSchema = PostVpnSessionType2$inboundSchema;
|
|
65066
|
-
PostVpnSessionSite2$inboundSchema =
|
|
65067
|
-
PostVpnSessionSite2$outboundSchema = PostVpnSessionSite2
|
|
65094
|
+
PostVpnSessionSite2$inboundSchema = inboundSchema(PostVpnSessionSite2);
|
|
65095
|
+
PostVpnSessionSite2$outboundSchema = outboundSchema(PostVpnSessionSite2);
|
|
65068
65096
|
PostVpnSessionAttributes2$inboundSchema = objectType({
|
|
65069
65097
|
site: PostVpnSessionSite2$inboundSchema.optional(),
|
|
65070
65098
|
server_id: stringType().optional()
|
|
@@ -82704,7 +82732,7 @@ Refreshing an existing VPN Session will create new credentials for that session
|
|
|
82704
82732
|
function createMCPServer(deps) {
|
|
82705
82733
|
const server2 = new McpServer({
|
|
82706
82734
|
name: "Latitudesh",
|
|
82707
|
-
version: "0.
|
|
82735
|
+
version: "0.8.0"
|
|
82708
82736
|
});
|
|
82709
82737
|
const client = new LatitudeshCore({
|
|
82710
82738
|
bearer: deps.bearer,
|
|
@@ -84221,7 +84249,7 @@ var routes = ln({
|
|
|
84221
84249
|
var app = _e(routes, {
|
|
84222
84250
|
name: "mcp",
|
|
84223
84251
|
versionInfo: {
|
|
84224
|
-
currentVersion: "0.
|
|
84252
|
+
currentVersion: "0.8.0"
|
|
84225
84253
|
}
|
|
84226
84254
|
});
|
|
84227
84255
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -84229,5 +84257,5 @@ export {
|
|
|
84229
84257
|
app
|
|
84230
84258
|
};
|
|
84231
84259
|
|
|
84232
|
-
//# debugId=
|
|
84260
|
+
//# debugId=C17A256816E0FC4964756E2164756E21
|
|
84233
84261
|
//# sourceMappingURL=mcp-server.js.map
|