latitudesh-typescript-sdk 0.7.0 → 0.7.2

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.
Files changed (52) hide show
  1. package/README.md +1 -1
  2. package/bin/mcp-server.js +45 -18
  3. package/bin/mcp-server.js.map +9 -9
  4. package/dist/commonjs/funcs/virtualMachinesList.d.ts +2 -1
  5. package/dist/commonjs/funcs/virtualMachinesList.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/virtualMachinesList.js +8 -1
  7. package/dist/commonjs/funcs/virtualMachinesList.js.map +1 -1
  8. package/dist/commonjs/lib/config.d.ts +3 -3
  9. package/dist/commonjs/lib/config.js +3 -3
  10. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  11. package/dist/commonjs/mcp-server/server.js +1 -1
  12. package/dist/commonjs/models/operations/indexvirtualmachine.d.ts +5 -0
  13. package/dist/commonjs/models/operations/indexvirtualmachine.d.ts.map +1 -1
  14. package/dist/commonjs/models/operations/indexvirtualmachine.js +2 -0
  15. package/dist/commonjs/models/operations/indexvirtualmachine.js.map +1 -1
  16. package/dist/commonjs/models/operations/updatevirtualnetwork.d.ts +1 -1
  17. package/dist/commonjs/models/operations/updatevirtualnetwork.d.ts.map +1 -1
  18. package/dist/commonjs/models/operations/updatevirtualnetwork.js +2 -2
  19. package/dist/commonjs/models/operations/updatevirtualnetwork.js.map +1 -1
  20. package/dist/commonjs/models/teaminclude.d.ts +16 -6
  21. package/dist/commonjs/models/teaminclude.d.ts.map +1 -1
  22. package/dist/commonjs/models/teaminclude.js +24 -6
  23. package/dist/commonjs/models/teaminclude.js.map +1 -1
  24. package/dist/esm/funcs/virtualMachinesList.d.ts +2 -1
  25. package/dist/esm/funcs/virtualMachinesList.d.ts.map +1 -1
  26. package/dist/esm/funcs/virtualMachinesList.js +8 -1
  27. package/dist/esm/funcs/virtualMachinesList.js.map +1 -1
  28. package/dist/esm/lib/config.d.ts +3 -3
  29. package/dist/esm/lib/config.js +3 -3
  30. package/dist/esm/mcp-server/mcp-server.js +1 -1
  31. package/dist/esm/mcp-server/server.js +1 -1
  32. package/dist/esm/models/operations/indexvirtualmachine.d.ts +5 -0
  33. package/dist/esm/models/operations/indexvirtualmachine.d.ts.map +1 -1
  34. package/dist/esm/models/operations/indexvirtualmachine.js +2 -0
  35. package/dist/esm/models/operations/indexvirtualmachine.js.map +1 -1
  36. package/dist/esm/models/operations/updatevirtualnetwork.d.ts +1 -1
  37. package/dist/esm/models/operations/updatevirtualnetwork.d.ts.map +1 -1
  38. package/dist/esm/models/operations/updatevirtualnetwork.js +2 -2
  39. package/dist/esm/models/operations/updatevirtualnetwork.js.map +1 -1
  40. package/dist/esm/models/teaminclude.d.ts +16 -6
  41. package/dist/esm/models/teaminclude.d.ts.map +1 -1
  42. package/dist/esm/models/teaminclude.js +24 -6
  43. package/dist/esm/models/teaminclude.js.map +1 -1
  44. package/jsr.json +1 -1
  45. package/package.json +1 -1
  46. package/src/funcs/virtualMachinesList.ts +13 -1
  47. package/src/lib/config.ts +3 -3
  48. package/src/mcp-server/mcp-server.ts +1 -1
  49. package/src/mcp-server/server.ts +1 -1
  50. package/src/models/operations/indexvirtualmachine.ts +7 -0
  51. package/src/models/operations/updatevirtualnetwork.ts +3 -3
  52. package/src/models/teaminclude.ts +40 -12
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 32 of 146 methods.*
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.6.4",
53153
- genVersion: "2.915.0",
53154
- userAgent: "speakeasy-sdk/typescript 0.6.4 2.915.0 2023-06-01 latitudesh-typescript-sdk"
53152
+ sdkVersion: "0.7.2",
53153
+ genVersion: "2.916.2",
53154
+ userAgent: "speakeasy-sdk/typescript 0.7.2 2.916.2 2023-06-01 latitudesh-typescript-sdk"
53155
53155
  };
53156
53156
  });
53157
53157
 
@@ -55273,8 +55273,26 @@ var Currency$inboundSchema, Currency$outboundSchema, TeamIncludeLimits$inboundSc
55273
55273
  var init_teaminclude = __esm(() => {
55274
55274
  init_v3();
55275
55275
  init_primitives();
55276
- Currency$inboundSchema = objectType({});
55277
- Currency$outboundSchema = objectType({});
55276
+ Currency$inboundSchema = objectType({
55277
+ id: stringType().optional(),
55278
+ code: stringType().optional(),
55279
+ name: stringType().optional(),
55280
+ currency_id: nullableType(numberType().int()).optional()
55281
+ }).transform((v2) => {
55282
+ return remap(v2, {
55283
+ currency_id: "currencyId"
55284
+ });
55285
+ });
55286
+ Currency$outboundSchema = objectType({
55287
+ id: stringType().optional(),
55288
+ code: stringType().optional(),
55289
+ name: stringType().optional(),
55290
+ currencyId: nullableType(numberType().int()).optional()
55291
+ }).transform((v2) => {
55292
+ return remap(v2, {
55293
+ currencyId: "currency_id"
55294
+ });
55295
+ });
55278
55296
  TeamIncludeLimits$inboundSchema = objectType({
55279
55297
  bare_metal: nullableType(numberType().int()).optional(),
55280
55298
  bare_metal_gpu: nullableType(numberType().int()).optional(),
@@ -55322,9 +55340,9 @@ var init_teaminclude = __esm(() => {
55322
55340
  name: stringType().optional(),
55323
55341
  slug: stringType().optional(),
55324
55342
  description: nullableType(stringType()).optional(),
55325
- address: stringType().optional(),
55343
+ address: nullableType(stringType()).optional(),
55326
55344
  currency: lazyType(() => Currency$inboundSchema).optional(),
55327
- status: stringType().optional(),
55345
+ status: nullableType(stringType()).optional(),
55328
55346
  feature_flags: arrayType(stringType()).optional(),
55329
55347
  limits: lazyType(() => TeamIncludeLimits$inboundSchema).optional()
55330
55348
  }).transform((v2) => {
@@ -55337,9 +55355,9 @@ var init_teaminclude = __esm(() => {
55337
55355
  name: stringType().optional(),
55338
55356
  slug: stringType().optional(),
55339
55357
  description: nullableType(stringType()).optional(),
55340
- address: stringType().optional(),
55358
+ address: nullableType(stringType()).optional(),
55341
55359
  currency: lazyType(() => Currency$outboundSchema).optional(),
55342
- status: stringType().optional(),
55360
+ status: nullableType(stringType()).optional(),
55343
55361
  featureFlags: arrayType(stringType()).optional(),
55344
55362
  limits: lazyType(() => TeamIncludeLimits$outboundSchema).optional()
55345
55363
  }).transform((v2) => {
@@ -63886,7 +63904,8 @@ var init_indexvirtualmachine = __esm(() => {
63886
63904
  IndexVirtualMachineRequest$inboundSchema = objectType({
63887
63905
  "filter[project]": stringType().optional(),
63888
63906
  "filter[tags]": stringType().optional(),
63889
- "extra_fields[virtual_machines]": stringType().optional()
63907
+ "extra_fields[virtual_machines]": stringType().optional(),
63908
+ sort: stringType().optional()
63890
63909
  }).transform((v2) => {
63891
63910
  return remap(v2, {
63892
63911
  "filter[project]": "filterProject",
@@ -63897,7 +63916,8 @@ var init_indexvirtualmachine = __esm(() => {
63897
63916
  IndexVirtualMachineRequest$outboundSchema = objectType({
63898
63917
  filterProject: stringType().optional(),
63899
63918
  filterTags: stringType().optional(),
63900
- extraFieldsVirtualMachines: stringType().optional()
63919
+ extraFieldsVirtualMachines: stringType().optional(),
63920
+ sort: stringType().optional()
63901
63921
  }).transform((v2) => {
63902
63922
  return remap(v2, {
63903
63923
  filterProject: "filter[project]",
@@ -66061,11 +66081,11 @@ var init_updatevirtualnetwork = __esm(() => {
66061
66081
  UpdateVirtualNetworkType2$outboundSchema = UpdateVirtualNetworkType2$inboundSchema;
66062
66082
  UpdateVirtualNetworkAttributes2$inboundSchema = objectType({
66063
66083
  tags: arrayType(stringType()).optional(),
66064
- description: stringType().default("Test virtual network update")
66084
+ description: stringType().optional()
66065
66085
  });
66066
66086
  UpdateVirtualNetworkAttributes2$outboundSchema = objectType({
66067
66087
  tags: arrayType(stringType()).optional(),
66068
- description: stringType().default("Test virtual network update")
66088
+ description: stringType().optional()
66069
66089
  });
66070
66090
  UpdateVirtualNetworkData2$inboundSchema = objectType({
66071
66091
  id: stringType(),
@@ -81660,7 +81680,8 @@ async function $do138(client, request, options) {
81660
81680
  const query = encodeFormQuery({
81661
81681
  "extra_fields[virtual_machines]": payload?.["extra_fields[virtual_machines]"],
81662
81682
  "filter[project]": payload?.["filter[project]"],
81663
- "filter[tags]": payload?.["filter[tags]"]
81683
+ "filter[tags]": payload?.["filter[tags]"],
81684
+ sort: payload?.sort
81664
81685
  });
81665
81686
  const headers = new Headers(compactMap({
81666
81687
  Accept: "application/vnd.api+json"
@@ -81703,9 +81724,14 @@ async function $do138(client, request, options) {
81703
81724
  return [doResult, { status: "request-error", request: req }];
81704
81725
  }
81705
81726
  const response = doResult.value;
81727
+ const responseFields = {
81728
+ HttpMeta: { Response: response, Request: req }
81729
+ };
81706
81730
  const [result] = await match(json(200, VirtualMachines$inboundSchema, {
81707
81731
  ctype: "application/vnd.api+json"
81708
- }), fail("4XX"), fail("5XX"))(response, req);
81732
+ }), jsonErr(400, ErrorObject$inboundSchema, {
81733
+ ctype: "application/vnd.api+json"
81734
+ }), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
81709
81735
  if (!result.ok) {
81710
81736
  return [result, { status: "complete", request: req, response }];
81711
81737
  }
@@ -81719,6 +81745,7 @@ var init_virtualMachinesList = __esm(() => {
81719
81745
  init_schemas4();
81720
81746
  init_security();
81721
81747
  init_url();
81748
+ init_errors4();
81722
81749
  init_models();
81723
81750
  init_operations();
81724
81751
  init_async();
@@ -82613,7 +82640,7 @@ Refreshing an existing VPN Session will create new credentials for that session
82613
82640
  function createMCPServer(deps) {
82614
82641
  const server2 = new McpServer({
82615
82642
  name: "Latitudesh",
82616
- version: "0.6.4"
82643
+ version: "0.7.2"
82617
82644
  });
82618
82645
  const client = new LatitudeshCore({
82619
82646
  bearer: deps.bearer,
@@ -84130,7 +84157,7 @@ var routes = ln({
84130
84157
  var app = _e(routes, {
84131
84158
  name: "mcp",
84132
84159
  versionInfo: {
84133
- currentVersion: "0.6.4"
84160
+ currentVersion: "0.7.2"
84134
84161
  }
84135
84162
  });
84136
84163
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -84138,5 +84165,5 @@ export {
84138
84165
  app
84139
84166
  };
84140
84167
 
84141
- //# debugId=9DD8B5EDD4254C3E64756E2164756E21
84168
+ //# debugId=51B48170CDDCCF1464756E2164756E21
84142
84169
  //# sourceMappingURL=mcp-server.js.map