latitudesh-typescript-sdk 0.3.6 → 0.3.7

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 CHANGED
@@ -739,7 +739,7 @@ run();
739
739
 
740
740
 
741
741
  **Inherit from [`LatitudeshError`](./src/models/errors/latitudesherror.ts)**:
742
- * [`ErrorObject`](./src/models/errors/errorobject.ts): Applicable to 18 of 128 methods.*
742
+ * [`ErrorObject`](./src/models/errors/errorobject.ts): Applicable to 19 of 128 methods.*
743
743
  * [`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.
744
744
 
745
745
  </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.3.6",
53153
- genVersion: "2.879.1",
53154
- userAgent: "speakeasy-sdk/typescript 0.3.6 2.879.1 2023-06-01 latitudesh-typescript-sdk"
53152
+ sdkVersion: "0.3.7",
53153
+ genVersion: "2.879.6",
53154
+ userAgent: "speakeasy-sdk/typescript 0.3.7 2.879.6 2023-06-01 latitudesh-typescript-sdk"
53155
53155
  };
53156
53156
  });
53157
53157
 
@@ -71845,7 +71845,7 @@ async function $do62(client, request, options) {
71845
71845
  const path = pathToFunc("/servers/{server_id}/reinstall")(pathParams);
71846
71846
  const headers = new Headers(compactMap({
71847
71847
  "Content-Type": "application/json",
71848
- Accept: "*/*"
71848
+ Accept: "application/vnd.api+json"
71849
71849
  }));
71850
71850
  const secConfig = await extractSecurity(client._options.bearer);
71851
71851
  const securityInput = secConfig == null ? {} : { bearer: secConfig };
@@ -71876,7 +71876,7 @@ async function $do62(client, request, options) {
71876
71876
  const req = requestRes.value;
71877
71877
  const doResult = await client._do(req, {
71878
71878
  context,
71879
- errorCodes: ["4XX", "5XX"],
71879
+ errorCodes: ["404", "422", "4XX", "5XX"],
71880
71880
  retryConfig: context.retryConfig,
71881
71881
  retryCodes: context.retryCodes
71882
71882
  });
@@ -71884,7 +71884,12 @@ async function $do62(client, request, options) {
71884
71884
  return [doResult, { status: "request-error", request: req }];
71885
71885
  }
71886
71886
  const response = doResult.value;
71887
- const [result] = await match(nil(201, voidType()), fail("4XX"), fail("5XX"))(response, req);
71887
+ const responseFields = {
71888
+ HttpMeta: { Response: response, Request: req }
71889
+ };
71890
+ const [result] = await match(nil(201, voidType()), jsonErr([404, 422], ErrorObject$inboundSchema, {
71891
+ ctype: "application/vnd.api+json"
71892
+ }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
71888
71893
  if (!result.ok) {
71889
71894
  return [result, { status: "complete", request: req, response }];
71890
71895
  }
@@ -71898,6 +71903,7 @@ var init_serversReinstall = __esm(() => {
71898
71903
  init_schemas4();
71899
71904
  init_security();
71900
71905
  init_url();
71906
+ init_errors4();
71901
71907
  init_operations();
71902
71908
  init_async();
71903
71909
  });
@@ -78932,7 +78938,7 @@ Refreshing an existing VPN Session will create new credentials for that session
78932
78938
  function createMCPServer(deps) {
78933
78939
  const server2 = new McpServer({
78934
78940
  name: "Latitudesh",
78935
- version: "0.3.6"
78941
+ version: "0.3.7"
78936
78942
  });
78937
78943
  const client = new LatitudeshCore({
78938
78944
  bearer: deps.bearer,
@@ -80413,7 +80419,7 @@ var routes = ln({
80413
80419
  var app = _e(routes, {
80414
80420
  name: "mcp",
80415
80421
  versionInfo: {
80416
- currentVersion: "0.3.6"
80422
+ currentVersion: "0.3.7"
80417
80423
  }
80418
80424
  });
80419
80425
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -80421,5 +80427,5 @@ export {
80421
80427
  app
80422
80428
  };
80423
80429
 
80424
- //# debugId=4BD556437EF3D68564756E2164756E21
80430
+ //# debugId=A25A49300263E9CE64756E2164756E21
80425
80431
  //# sourceMappingURL=mcp-server.js.map