latitudesh-typescript-sdk 0.7.0 → 0.7.1
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/README.md +1 -1
- package/bin/mcp-server.js +21 -12
- package/bin/mcp-server.js.map +8 -8
- package/dist/commonjs/funcs/virtualMachinesList.d.ts +2 -1
- package/dist/commonjs/funcs/virtualMachinesList.d.ts.map +1 -1
- package/dist/commonjs/funcs/virtualMachinesList.js +8 -1
- package/dist/commonjs/funcs/virtualMachinesList.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/models/operations/indexvirtualmachine.d.ts +5 -0
- package/dist/commonjs/models/operations/indexvirtualmachine.d.ts.map +1 -1
- package/dist/commonjs/models/operations/indexvirtualmachine.js +2 -0
- package/dist/commonjs/models/operations/indexvirtualmachine.js.map +1 -1
- package/dist/commonjs/models/operations/updatevirtualnetwork.d.ts +1 -1
- package/dist/commonjs/models/operations/updatevirtualnetwork.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevirtualnetwork.js +2 -2
- package/dist/commonjs/models/operations/updatevirtualnetwork.js.map +1 -1
- package/dist/esm/funcs/virtualMachinesList.d.ts +2 -1
- package/dist/esm/funcs/virtualMachinesList.d.ts.map +1 -1
- package/dist/esm/funcs/virtualMachinesList.js +8 -1
- package/dist/esm/funcs/virtualMachinesList.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/indexvirtualmachine.d.ts +5 -0
- package/dist/esm/models/operations/indexvirtualmachine.d.ts.map +1 -1
- package/dist/esm/models/operations/indexvirtualmachine.js +2 -0
- package/dist/esm/models/operations/indexvirtualmachine.js.map +1 -1
- package/dist/esm/models/operations/updatevirtualnetwork.d.ts +1 -1
- package/dist/esm/models/operations/updatevirtualnetwork.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevirtualnetwork.js +2 -2
- package/dist/esm/models/operations/updatevirtualnetwork.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/virtualMachinesList.ts +13 -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/indexvirtualmachine.ts +7 -0
- package/src/models/operations/updatevirtualnetwork.ts +3 -3
package/README.md
CHANGED
|
@@ -787,7 +787,7 @@ run();
|
|
|
787
787
|
|
|
788
788
|
|
|
789
789
|
**Inherit from [`LatitudeshError`](./src/models/errors/latitudesherror.ts)**:
|
|
790
|
-
* [`ErrorObject`](./src/models/errors/errorobject.ts): Applicable to
|
|
790
|
+
* [`ErrorObject`](./src/models/errors/errorobject.ts): Applicable to 33 of 146 methods.*
|
|
791
791
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
792
792
|
|
|
793
793
|
</details>
|
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.7.1",
|
|
53153
|
+
genVersion: "2.916.2",
|
|
53154
|
+
userAgent: "speakeasy-sdk/typescript 0.7.1 2.916.2 2023-06-01 latitudesh-typescript-sdk"
|
|
53155
53155
|
};
|
|
53156
53156
|
});
|
|
53157
53157
|
|
|
@@ -63886,7 +63886,8 @@ var init_indexvirtualmachine = __esm(() => {
|
|
|
63886
63886
|
IndexVirtualMachineRequest$inboundSchema = objectType({
|
|
63887
63887
|
"filter[project]": stringType().optional(),
|
|
63888
63888
|
"filter[tags]": stringType().optional(),
|
|
63889
|
-
"extra_fields[virtual_machines]": stringType().optional()
|
|
63889
|
+
"extra_fields[virtual_machines]": stringType().optional(),
|
|
63890
|
+
sort: stringType().optional()
|
|
63890
63891
|
}).transform((v2) => {
|
|
63891
63892
|
return remap(v2, {
|
|
63892
63893
|
"filter[project]": "filterProject",
|
|
@@ -63897,7 +63898,8 @@ var init_indexvirtualmachine = __esm(() => {
|
|
|
63897
63898
|
IndexVirtualMachineRequest$outboundSchema = objectType({
|
|
63898
63899
|
filterProject: stringType().optional(),
|
|
63899
63900
|
filterTags: stringType().optional(),
|
|
63900
|
-
extraFieldsVirtualMachines: stringType().optional()
|
|
63901
|
+
extraFieldsVirtualMachines: stringType().optional(),
|
|
63902
|
+
sort: stringType().optional()
|
|
63901
63903
|
}).transform((v2) => {
|
|
63902
63904
|
return remap(v2, {
|
|
63903
63905
|
filterProject: "filter[project]",
|
|
@@ -66061,11 +66063,11 @@ var init_updatevirtualnetwork = __esm(() => {
|
|
|
66061
66063
|
UpdateVirtualNetworkType2$outboundSchema = UpdateVirtualNetworkType2$inboundSchema;
|
|
66062
66064
|
UpdateVirtualNetworkAttributes2$inboundSchema = objectType({
|
|
66063
66065
|
tags: arrayType(stringType()).optional(),
|
|
66064
|
-
description: stringType().
|
|
66066
|
+
description: stringType().optional()
|
|
66065
66067
|
});
|
|
66066
66068
|
UpdateVirtualNetworkAttributes2$outboundSchema = objectType({
|
|
66067
66069
|
tags: arrayType(stringType()).optional(),
|
|
66068
|
-
description: stringType().
|
|
66070
|
+
description: stringType().optional()
|
|
66069
66071
|
});
|
|
66070
66072
|
UpdateVirtualNetworkData2$inboundSchema = objectType({
|
|
66071
66073
|
id: stringType(),
|
|
@@ -81660,7 +81662,8 @@ async function $do138(client, request, options) {
|
|
|
81660
81662
|
const query = encodeFormQuery({
|
|
81661
81663
|
"extra_fields[virtual_machines]": payload?.["extra_fields[virtual_machines]"],
|
|
81662
81664
|
"filter[project]": payload?.["filter[project]"],
|
|
81663
|
-
"filter[tags]": payload?.["filter[tags]"]
|
|
81665
|
+
"filter[tags]": payload?.["filter[tags]"],
|
|
81666
|
+
sort: payload?.sort
|
|
81664
81667
|
});
|
|
81665
81668
|
const headers = new Headers(compactMap({
|
|
81666
81669
|
Accept: "application/vnd.api+json"
|
|
@@ -81703,9 +81706,14 @@ async function $do138(client, request, options) {
|
|
|
81703
81706
|
return [doResult, { status: "request-error", request: req }];
|
|
81704
81707
|
}
|
|
81705
81708
|
const response = doResult.value;
|
|
81709
|
+
const responseFields = {
|
|
81710
|
+
HttpMeta: { Response: response, Request: req }
|
|
81711
|
+
};
|
|
81706
81712
|
const [result] = await match(json(200, VirtualMachines$inboundSchema, {
|
|
81707
81713
|
ctype: "application/vnd.api+json"
|
|
81708
|
-
}),
|
|
81714
|
+
}), jsonErr(400, ErrorObject$inboundSchema, {
|
|
81715
|
+
ctype: "application/vnd.api+json"
|
|
81716
|
+
}), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
81709
81717
|
if (!result.ok) {
|
|
81710
81718
|
return [result, { status: "complete", request: req, response }];
|
|
81711
81719
|
}
|
|
@@ -81719,6 +81727,7 @@ var init_virtualMachinesList = __esm(() => {
|
|
|
81719
81727
|
init_schemas4();
|
|
81720
81728
|
init_security();
|
|
81721
81729
|
init_url();
|
|
81730
|
+
init_errors4();
|
|
81722
81731
|
init_models();
|
|
81723
81732
|
init_operations();
|
|
81724
81733
|
init_async();
|
|
@@ -82613,7 +82622,7 @@ Refreshing an existing VPN Session will create new credentials for that session
|
|
|
82613
82622
|
function createMCPServer(deps) {
|
|
82614
82623
|
const server2 = new McpServer({
|
|
82615
82624
|
name: "Latitudesh",
|
|
82616
|
-
version: "0.
|
|
82625
|
+
version: "0.7.1"
|
|
82617
82626
|
});
|
|
82618
82627
|
const client = new LatitudeshCore({
|
|
82619
82628
|
bearer: deps.bearer,
|
|
@@ -84130,7 +84139,7 @@ var routes = ln({
|
|
|
84130
84139
|
var app = _e(routes, {
|
|
84131
84140
|
name: "mcp",
|
|
84132
84141
|
versionInfo: {
|
|
84133
|
-
currentVersion: "0.
|
|
84142
|
+
currentVersion: "0.7.1"
|
|
84134
84143
|
}
|
|
84135
84144
|
});
|
|
84136
84145
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -84138,5 +84147,5 @@ export {
|
|
|
84138
84147
|
app
|
|
84139
84148
|
};
|
|
84140
84149
|
|
|
84141
|
-
//# debugId=
|
|
84150
|
+
//# debugId=FB3BFAE6E22565CC64756E2164756E21
|
|
84142
84151
|
//# sourceMappingURL=mcp-server.js.map
|