latitudesh-typescript-sdk 0.3.0 → 0.3.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.
Files changed (169) hide show
  1. package/README.md +7 -7
  2. package/bin/mcp-server.js +214 -197
  3. package/bin/mcp-server.js.map +26 -24
  4. package/dist/commonjs/funcs/{elasticIPsCreateElasticIp.d.ts → elasticIpsCreateElasticIp.d.ts} +3 -3
  5. package/dist/commonjs/funcs/{elasticIPsCreateElasticIp.d.ts.map → elasticIpsCreateElasticIp.d.ts.map} +1 -1
  6. package/dist/commonjs/funcs/{elasticIPsCreateElasticIp.js → elasticIpsCreateElasticIp.js} +4 -4
  7. package/dist/commonjs/funcs/{elasticIPsCreateElasticIp.js.map → elasticIpsCreateElasticIp.js.map} +1 -1
  8. package/dist/{esm/funcs/elasticIPsDeleteElasticIp.d.ts → commonjs/funcs/elasticIpsDeleteElasticIp.d.ts} +2 -2
  9. package/dist/commonjs/funcs/{elasticIPsDeleteElasticIp.d.ts.map → elasticIpsDeleteElasticIp.d.ts.map} +1 -1
  10. package/dist/commonjs/funcs/{elasticIPsDeleteElasticIp.js → elasticIpsDeleteElasticIp.js} +3 -3
  11. package/dist/commonjs/funcs/{elasticIPsDeleteElasticIp.js.map → elasticIpsDeleteElasticIp.js.map} +1 -1
  12. package/dist/{esm/funcs/elasticIPsGetElasticIp.d.ts → commonjs/funcs/elasticIpsGetElasticIp.d.ts} +2 -2
  13. package/dist/commonjs/funcs/{elasticIPsGetElasticIp.d.ts.map → elasticIpsGetElasticIp.d.ts.map} +1 -1
  14. package/dist/commonjs/funcs/{elasticIPsGetElasticIp.js → elasticIpsGetElasticIp.js} +3 -3
  15. package/dist/commonjs/funcs/{elasticIPsGetElasticIp.js.map → elasticIpsGetElasticIp.js.map} +1 -1
  16. package/dist/{esm/funcs/elasticIPsListElasticIps.d.ts → commonjs/funcs/elasticIpsListElasticIps.d.ts} +2 -2
  17. package/dist/commonjs/funcs/{elasticIPsListElasticIps.d.ts.map → elasticIpsListElasticIps.d.ts.map} +1 -1
  18. package/dist/commonjs/funcs/{elasticIPsListElasticIps.js → elasticIpsListElasticIps.js} +4 -4
  19. package/dist/commonjs/funcs/{elasticIPsListElasticIps.js.map → elasticIpsListElasticIps.js.map} +1 -1
  20. package/dist/{esm/funcs/elasticIPsUpdateElasticIp.d.ts → commonjs/funcs/elasticIpsUpdateElasticIp.d.ts} +2 -2
  21. package/dist/{esm/funcs/elasticIPsUpdateElasticIp.d.ts.map → commonjs/funcs/elasticIpsUpdateElasticIp.d.ts.map} +1 -1
  22. package/dist/commonjs/funcs/{elasticIPsUpdateElasticIp.js → elasticIpsUpdateElasticIp.js} +4 -4
  23. package/dist/commonjs/funcs/{elasticIPsUpdateElasticIp.js.map → elasticIpsUpdateElasticIp.js.map} +1 -1
  24. package/dist/commonjs/lib/config.d.ts +3 -3
  25. package/dist/commonjs/lib/config.js +3 -3
  26. package/dist/commonjs/lib/config.js.map +1 -1
  27. package/dist/commonjs/lib/matchers.d.ts.map +1 -1
  28. package/dist/commonjs/lib/matchers.js +0 -1
  29. package/dist/commonjs/lib/matchers.js.map +1 -1
  30. package/dist/commonjs/lib/security.d.ts.map +1 -1
  31. package/dist/commonjs/lib/security.js +1 -2
  32. package/dist/commonjs/lib/security.js.map +1 -1
  33. package/dist/commonjs/mcp-server/cli/start/impl.js +2 -2
  34. package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
  35. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  36. package/dist/commonjs/mcp-server/server.js +11 -11
  37. package/dist/commonjs/mcp-server/shared.js +1 -1
  38. package/dist/commonjs/mcp-server/shared.js.map +1 -1
  39. package/dist/commonjs/mcp-server/tools/{elasticIPsCreateElasticIp.d.ts → elasticIpsCreateElasticIp.d.ts} +2 -2
  40. package/dist/commonjs/mcp-server/tools/{elasticIPsCreateElasticIp.d.ts.map → elasticIpsCreateElasticIp.d.ts.map} +1 -1
  41. package/dist/commonjs/mcp-server/tools/{elasticIPsCreateElasticIp.js → elasticIpsCreateElasticIp.js} +7 -7
  42. package/dist/commonjs/mcp-server/tools/{elasticIPsCreateElasticIp.js.map → elasticIpsCreateElasticIp.js.map} +1 -1
  43. package/dist/commonjs/mcp-server/tools/{elasticIPsDeleteElasticIp.d.ts → elasticIpsDeleteElasticIp.d.ts} +2 -2
  44. package/dist/{esm/mcp-server/tools/elasticIPsDeleteElasticIp.d.ts.map → commonjs/mcp-server/tools/elasticIpsDeleteElasticIp.d.ts.map} +1 -1
  45. package/dist/commonjs/mcp-server/tools/{elasticIPsDeleteElasticIp.js → elasticIpsDeleteElasticIp.js} +6 -6
  46. package/dist/commonjs/mcp-server/tools/{elasticIPsDeleteElasticIp.js.map → elasticIpsDeleteElasticIp.js.map} +1 -1
  47. package/dist/{esm/mcp-server/tools/elasticIPsGetElasticIp.d.ts → commonjs/mcp-server/tools/elasticIpsGetElasticIp.d.ts} +2 -2
  48. package/dist/commonjs/mcp-server/tools/{elasticIPsGetElasticIp.d.ts.map → elasticIpsGetElasticIp.d.ts.map} +1 -1
  49. package/dist/commonjs/mcp-server/tools/{elasticIPsGetElasticIp.js → elasticIpsGetElasticIp.js} +6 -6
  50. package/dist/commonjs/mcp-server/tools/{elasticIPsGetElasticIp.js.map → elasticIpsGetElasticIp.js.map} +1 -1
  51. package/dist/{esm/mcp-server/tools/elasticIPsListElasticIps.d.ts → commonjs/mcp-server/tools/elasticIpsListElasticIps.d.ts} +2 -2
  52. package/dist/commonjs/mcp-server/tools/{elasticIPsListElasticIps.d.ts.map → elasticIpsListElasticIps.d.ts.map} +1 -1
  53. package/dist/commonjs/mcp-server/tools/{elasticIPsListElasticIps.js → elasticIpsListElasticIps.js} +6 -6
  54. package/dist/commonjs/mcp-server/tools/{elasticIPsListElasticIps.js.map → elasticIpsListElasticIps.js.map} +1 -1
  55. package/dist/commonjs/mcp-server/tools/{elasticIPsUpdateElasticIp.d.ts → elasticIpsUpdateElasticIp.d.ts} +2 -2
  56. package/dist/commonjs/mcp-server/tools/{elasticIPsDeleteElasticIp.d.ts.map → elasticIpsUpdateElasticIp.d.ts.map} +1 -1
  57. package/dist/commonjs/mcp-server/tools/{elasticIPsUpdateElasticIp.js → elasticIpsUpdateElasticIp.js} +6 -6
  58. package/dist/commonjs/mcp-server/tools/{elasticIPsUpdateElasticIp.js.map → elasticIpsUpdateElasticIp.js.map} +1 -1
  59. package/dist/commonjs/models/elasticipdata.d.ts +41 -11
  60. package/dist/commonjs/models/elasticipdata.d.ts.map +1 -1
  61. package/dist/commonjs/models/elasticipdata.js +25 -14
  62. package/dist/commonjs/models/elasticipdata.js.map +1 -1
  63. package/dist/commonjs/models/ipaddress.d.ts +8 -8
  64. package/dist/commonjs/models/ipaddress.d.ts.map +1 -1
  65. package/dist/commonjs/models/ipaddress.js +11 -11
  66. package/dist/commonjs/models/ipaddress.js.map +1 -1
  67. package/dist/commonjs/models/operations/listelasticips.d.ts +2 -1
  68. package/dist/commonjs/models/operations/listelasticips.d.ts.map +1 -1
  69. package/dist/commonjs/models/operations/listelasticips.js +2 -1
  70. package/dist/commonjs/models/operations/listelasticips.js.map +1 -1
  71. package/dist/commonjs/sdk/elasticips.d.ts +2 -2
  72. package/dist/commonjs/sdk/elasticips.js +14 -14
  73. package/dist/commonjs/sdk/sdk.d.ts +3 -3
  74. package/dist/commonjs/sdk/sdk.js +2 -2
  75. package/dist/esm/funcs/{elasticIPsCreateElasticIp.d.ts → elasticIpsCreateElasticIp.d.ts} +3 -3
  76. package/dist/esm/funcs/{elasticIPsCreateElasticIp.d.ts.map → elasticIpsCreateElasticIp.d.ts.map} +1 -1
  77. package/dist/esm/funcs/{elasticIPsCreateElasticIp.js → elasticIpsCreateElasticIp.js} +3 -3
  78. package/dist/esm/funcs/{elasticIPsCreateElasticIp.js.map → elasticIpsCreateElasticIp.js.map} +1 -1
  79. package/dist/{commonjs/funcs/elasticIPsDeleteElasticIp.d.ts → esm/funcs/elasticIpsDeleteElasticIp.d.ts} +2 -2
  80. package/dist/esm/funcs/{elasticIPsDeleteElasticIp.d.ts.map → elasticIpsDeleteElasticIp.d.ts.map} +1 -1
  81. package/dist/esm/funcs/{elasticIPsDeleteElasticIp.js → elasticIpsDeleteElasticIp.js} +2 -2
  82. package/dist/esm/funcs/{elasticIPsDeleteElasticIp.js.map → elasticIpsDeleteElasticIp.js.map} +1 -1
  83. package/dist/{commonjs/funcs/elasticIPsGetElasticIp.d.ts → esm/funcs/elasticIpsGetElasticIp.d.ts} +2 -2
  84. package/dist/esm/funcs/{elasticIPsGetElasticIp.d.ts.map → elasticIpsGetElasticIp.d.ts.map} +1 -1
  85. package/dist/esm/funcs/{elasticIPsGetElasticIp.js → elasticIpsGetElasticIp.js} +2 -2
  86. package/dist/esm/funcs/{elasticIPsGetElasticIp.js.map → elasticIpsGetElasticIp.js.map} +1 -1
  87. package/dist/{commonjs/funcs/elasticIPsListElasticIps.d.ts → esm/funcs/elasticIpsListElasticIps.d.ts} +2 -2
  88. package/dist/esm/funcs/{elasticIPsListElasticIps.d.ts.map → elasticIpsListElasticIps.d.ts.map} +1 -1
  89. package/dist/esm/funcs/{elasticIPsListElasticIps.js → elasticIpsListElasticIps.js} +3 -3
  90. package/dist/esm/funcs/{elasticIPsListElasticIps.js.map → elasticIpsListElasticIps.js.map} +1 -1
  91. package/dist/{commonjs/funcs/elasticIPsUpdateElasticIp.d.ts → esm/funcs/elasticIpsUpdateElasticIp.d.ts} +2 -2
  92. package/dist/{commonjs/funcs/elasticIPsUpdateElasticIp.d.ts.map → esm/funcs/elasticIpsUpdateElasticIp.d.ts.map} +1 -1
  93. package/dist/esm/funcs/{elasticIPsUpdateElasticIp.js → elasticIpsUpdateElasticIp.js} +3 -3
  94. package/dist/esm/funcs/{elasticIPsUpdateElasticIp.js.map → elasticIpsUpdateElasticIp.js.map} +1 -1
  95. package/dist/esm/lib/config.d.ts +3 -3
  96. package/dist/esm/lib/config.js +3 -3
  97. package/dist/esm/lib/config.js.map +1 -1
  98. package/dist/esm/lib/matchers.d.ts.map +1 -1
  99. package/dist/esm/lib/matchers.js +0 -1
  100. package/dist/esm/lib/matchers.js.map +1 -1
  101. package/dist/esm/lib/security.d.ts.map +1 -1
  102. package/dist/esm/lib/security.js +1 -2
  103. package/dist/esm/lib/security.js.map +1 -1
  104. package/dist/esm/mcp-server/cli/start/impl.js +2 -2
  105. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  106. package/dist/esm/mcp-server/mcp-server.js +1 -1
  107. package/dist/esm/mcp-server/server.js +11 -11
  108. package/dist/esm/mcp-server/shared.js +1 -1
  109. package/dist/esm/mcp-server/shared.js.map +1 -1
  110. package/dist/esm/mcp-server/tools/{elasticIPsCreateElasticIp.d.ts → elasticIpsCreateElasticIp.d.ts} +2 -2
  111. package/dist/esm/mcp-server/tools/{elasticIPsCreateElasticIp.d.ts.map → elasticIpsCreateElasticIp.d.ts.map} +1 -1
  112. package/dist/esm/mcp-server/tools/{elasticIPsCreateElasticIp.js → elasticIpsCreateElasticIp.js} +6 -6
  113. package/dist/esm/mcp-server/tools/{elasticIPsCreateElasticIp.js.map → elasticIpsCreateElasticIp.js.map} +1 -1
  114. package/dist/esm/mcp-server/tools/{elasticIPsDeleteElasticIp.d.ts → elasticIpsDeleteElasticIp.d.ts} +2 -2
  115. package/dist/{commonjs/mcp-server/tools/elasticIPsUpdateElasticIp.d.ts.map → esm/mcp-server/tools/elasticIpsDeleteElasticIp.d.ts.map} +1 -1
  116. package/dist/esm/mcp-server/tools/{elasticIPsDeleteElasticIp.js → elasticIpsDeleteElasticIp.js} +5 -5
  117. package/dist/esm/mcp-server/tools/{elasticIPsDeleteElasticIp.js.map → elasticIpsDeleteElasticIp.js.map} +1 -1
  118. package/dist/{commonjs/mcp-server/tools/elasticIPsGetElasticIp.d.ts → esm/mcp-server/tools/elasticIpsGetElasticIp.d.ts} +2 -2
  119. package/dist/esm/mcp-server/tools/{elasticIPsGetElasticIp.d.ts.map → elasticIpsGetElasticIp.d.ts.map} +1 -1
  120. package/dist/esm/mcp-server/tools/{elasticIPsGetElasticIp.js → elasticIpsGetElasticIp.js} +5 -5
  121. package/dist/esm/mcp-server/tools/{elasticIPsGetElasticIp.js.map → elasticIpsGetElasticIp.js.map} +1 -1
  122. package/dist/{commonjs/mcp-server/tools/elasticIPsListElasticIps.d.ts → esm/mcp-server/tools/elasticIpsListElasticIps.d.ts} +2 -2
  123. package/dist/esm/mcp-server/tools/{elasticIPsListElasticIps.d.ts.map → elasticIpsListElasticIps.d.ts.map} +1 -1
  124. package/dist/esm/mcp-server/tools/{elasticIPsListElasticIps.js → elasticIpsListElasticIps.js} +5 -5
  125. package/dist/esm/mcp-server/tools/{elasticIPsListElasticIps.js.map → elasticIpsListElasticIps.js.map} +1 -1
  126. package/dist/esm/mcp-server/tools/{elasticIPsUpdateElasticIp.d.ts → elasticIpsUpdateElasticIp.d.ts} +2 -2
  127. package/dist/esm/mcp-server/tools/{elasticIPsUpdateElasticIp.d.ts.map → elasticIpsUpdateElasticIp.d.ts.map} +1 -1
  128. package/dist/esm/mcp-server/tools/{elasticIPsUpdateElasticIp.js → elasticIpsUpdateElasticIp.js} +5 -5
  129. package/dist/esm/mcp-server/tools/{elasticIPsUpdateElasticIp.js.map → elasticIpsUpdateElasticIp.js.map} +1 -1
  130. package/dist/esm/models/elasticipdata.d.ts +41 -11
  131. package/dist/esm/models/elasticipdata.d.ts.map +1 -1
  132. package/dist/esm/models/elasticipdata.js +22 -11
  133. package/dist/esm/models/elasticipdata.js.map +1 -1
  134. package/dist/esm/models/ipaddress.d.ts +8 -8
  135. package/dist/esm/models/ipaddress.d.ts.map +1 -1
  136. package/dist/esm/models/ipaddress.js +8 -8
  137. package/dist/esm/models/ipaddress.js.map +1 -1
  138. package/dist/esm/models/operations/listelasticips.d.ts +2 -1
  139. package/dist/esm/models/operations/listelasticips.d.ts.map +1 -1
  140. package/dist/esm/models/operations/listelasticips.js +2 -1
  141. package/dist/esm/models/operations/listelasticips.js.map +1 -1
  142. package/dist/esm/sdk/elasticips.d.ts +2 -2
  143. package/dist/esm/sdk/elasticips.js +12 -12
  144. package/dist/esm/sdk/sdk.d.ts +3 -3
  145. package/dist/esm/sdk/sdk.js +3 -3
  146. package/jsr.json +1 -1
  147. package/package.json +4 -4
  148. package/src/funcs/{elasticIPsCreateElasticIp.ts → elasticIpsCreateElasticIp.ts} +2 -2
  149. package/src/funcs/{elasticIPsDeleteElasticIp.ts → elasticIpsDeleteElasticIp.ts} +1 -1
  150. package/src/funcs/{elasticIPsGetElasticIp.ts → elasticIpsGetElasticIp.ts} +1 -1
  151. package/src/funcs/{elasticIPsListElasticIps.ts → elasticIpsListElasticIps.ts} +2 -2
  152. package/src/funcs/{elasticIPsUpdateElasticIp.ts → elasticIpsUpdateElasticIp.ts} +2 -2
  153. package/src/lib/config.ts +3 -3
  154. package/src/lib/matchers.ts +3 -2
  155. package/src/lib/security.ts +1 -2
  156. package/src/mcp-server/cli/start/impl.ts +4 -2
  157. package/src/mcp-server/mcp-server.ts +1 -1
  158. package/src/mcp-server/server.ts +11 -11
  159. package/src/mcp-server/shared.ts +2 -2
  160. package/src/mcp-server/tools/{elasticIPsCreateElasticIp.ts → elasticIpsCreateElasticIp.ts} +5 -5
  161. package/src/mcp-server/tools/{elasticIPsDeleteElasticIp.ts → elasticIpsDeleteElasticIp.ts} +4 -4
  162. package/src/mcp-server/tools/{elasticIPsGetElasticIp.ts → elasticIpsGetElasticIp.ts} +4 -4
  163. package/src/mcp-server/tools/{elasticIPsListElasticIps.ts → elasticIpsListElasticIps.ts} +4 -4
  164. package/src/mcp-server/tools/{elasticIPsUpdateElasticIp.ts → elasticIpsUpdateElasticIp.ts} +4 -4
  165. package/src/models/elasticipdata.ts +63 -23
  166. package/src/models/ipaddress.ts +21 -17
  167. package/src/models/operations/listelasticips.ts +2 -1
  168. package/src/sdk/elasticips.ts +12 -12
  169. package/src/sdk/sdk.ts +4 -4
@@ -4,7 +4,7 @@
4
4
  import { ClientSDK } from "../lib/sdks.js";
5
5
  import { ApiKeys } from "./apikeys.js";
6
6
  import { Billing } from "./billing.js";
7
- import { ElasticIPs } from "./elasticips.js";
7
+ import { ElasticIps } from "./elasticips.js";
8
8
  import { Events } from "./events.js";
9
9
  import { Firewalls } from "./firewalls.js";
10
10
  import { IpAddresses } from "./ipaddresses.js";
@@ -40,8 +40,8 @@ export class Latitudesh extends ClientSDK {
40
40
  get firewalls() {
41
41
  return (this._firewalls ?? (this._firewalls = new Firewalls(this._options)));
42
42
  }
43
- get elasticIPs() {
44
- return (this._elasticIPs ?? (this._elasticIPs = new ElasticIPs(this._options)));
43
+ get elasticIps() {
44
+ return (this._elasticIps ?? (this._elasticIps = new ElasticIps(this._options)));
45
45
  }
46
46
  get ipAddresses() {
47
47
  return (this._ipAddresses ?? (this._ipAddresses = new IpAddresses(this._options)));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "latitudesh-typescript-sdk",
5
- "version": "0.3.0",
5
+ "version": "0.3.1",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "latitudesh-typescript-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "bin": {
@@ -39,12 +39,12 @@
39
39
  "@eslint/js": "^9.26.0",
40
40
  "@stricli/core": "^1.1.1",
41
41
  "@types/express": "^4.17.21",
42
- "bun": "1.3.10",
43
- "bun-types": "1.3.10",
42
+ "bun": "1.2.17",
43
+ "bun-types": "1.2.17",
44
44
  "eslint": "^9.26.0",
45
45
  "express": "^4.21.2",
46
46
  "globals": "^15.14.0",
47
- "tshy": "^2.0.0",
47
+ "tshy": "^3.3.2",
48
48
  "typescript": "~5.8.3",
49
49
  "typescript-eslint": "^8.26.0"
50
50
  },
@@ -29,11 +29,11 @@ import { Result } from "../types/fp.js";
29
29
  * Create an Elastic IP
30
30
  *
31
31
  * @remarks
32
- * Creates a new Elastic IP and assigns it to the specified server. The IP is provisioned asynchronously—the response will show status `provisioning` and the `id` will be `null` until provisioning completes.
32
+ * Creates a new Elastic IP and assigns it to the specified server. The IP is provisioned asynchronously—the response will show status `configuring` and the `id` will be `null` until provisioning completes.
33
33
  *
34
34
  * **Note:** This feature requires the `elastic_ips` feature flag to be enabled for your team. Currently only IPv4 /32 addresses in routed mode are supported.
35
35
  */
36
- export function elasticIPsCreateElasticIp(
36
+ export function elasticIpsCreateElasticIp(
37
37
  client: LatitudeshCore,
38
38
  request: models.CreateElasticIp,
39
39
  options?: RequestOptions,
@@ -34,7 +34,7 @@ import { Result } from "../types/fp.js";
34
34
  *
35
35
  * **Note:** This feature requires the `elastic_ips` feature flag to be enabled for your team. Only Elastic IPs with status `active` or `error` can be released.
36
36
  */
37
- export function elasticIPsDeleteElasticIp(
37
+ export function elasticIpsDeleteElasticIp(
38
38
  client: LatitudeshCore,
39
39
  request: operations.DeleteElasticIpRequest,
40
40
  options?: RequestOptions,
@@ -34,7 +34,7 @@ import { Result } from "../types/fp.js";
34
34
  *
35
35
  * **Note:** This feature requires the `elastic_ips` feature flag to be enabled for your team.
36
36
  */
37
- export function elasticIPsGetElasticIp(
37
+ export function elasticIpsGetElasticIp(
38
38
  client: LatitudeshCore,
39
39
  request: operations.GetElasticIpRequest,
40
40
  options?: RequestOptions,
@@ -39,7 +39,7 @@ import {
39
39
  *
40
40
  * **Note:** This feature requires the `elastic_ips` feature flag to be enabled for your team. When the flag is disabled, the endpoint returns an empty list.
41
41
  */
42
- export function elasticIPsListElasticIps(
42
+ export function elasticIpsListElasticIps(
43
43
  client: LatitudeshCore,
44
44
  request?: operations.ListElasticIpsRequest | undefined,
45
45
  options?: RequestOptions,
@@ -225,7 +225,7 @@ async function $do(
225
225
  }
226
226
 
227
227
  const nextVal = () =>
228
- elasticIPsListElasticIps(
228
+ elasticIpsListElasticIps(
229
229
  client,
230
230
  {
231
231
  ...request!,
@@ -34,7 +34,7 @@ import { Result } from "../types/fp.js";
34
34
  *
35
35
  * **Note:** This feature requires the `elastic_ips` feature flag to be enabled for your team. The Elastic IP must be in `active` status and the target server must belong to the same project.
36
36
  */
37
- export function elasticIPsUpdateElasticIp(
37
+ export function elasticIpsUpdateElasticIp(
38
38
  client: LatitudeshCore,
39
39
  request: operations.UpdateElasticIpRequest,
40
40
  options?: RequestOptions,
@@ -166,7 +166,7 @@ async function $do(
166
166
  | UnexpectedClientError
167
167
  | SDKValidationError
168
168
  >(
169
- M.json(200, models.ElasticIp$inboundSchema, {
169
+ M.json(202, models.ElasticIp$inboundSchema, {
170
170
  ctype: "application/vnd.api+json",
171
171
  }),
172
172
  M.jsonErr([403, 404, 422], errors.ErrorObject$inboundSchema, {
package/src/lib/config.ts CHANGED
@@ -74,8 +74,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
74
74
  export const SDK_METADATA = {
75
75
  language: "typescript",
76
76
  openapiDocVersion: "2023-06-01",
77
- sdkVersion: "0.3.0",
78
- genVersion: "2.845.12",
77
+ sdkVersion: "0.3.1",
78
+ genVersion: "2.849.8",
79
79
  userAgent:
80
- "speakeasy-sdk/typescript 0.3.0 2.845.12 2023-06-01 latitudesh-typescript-sdk",
80
+ "speakeasy-sdk/typescript 0.3.1 2.849.8 2023-06-01 latitudesh-typescript-sdk",
81
81
  } as const;
@@ -251,8 +251,9 @@ export function match<T, E>(
251
251
  raw = body;
252
252
  break;
253
253
  default:
254
- encoding satisfies never;
255
- throw new Error(`Unsupported response type: ${encoding}`);
254
+ throw new Error(
255
+ `Unsupported response type: ${encoding satisfies never}`,
256
+ );
256
257
  }
257
258
 
258
259
  if (matcher.enc === "fail") {
@@ -198,8 +198,7 @@ export function resolveSecurity(
198
198
  applyBearer(state, spec);
199
199
  break;
200
200
  default:
201
- spec satisfies never;
202
- throw SecurityError.unrecognizedType(type);
201
+ throw SecurityError.unrecognizedType((spec satisfies never, type));
203
202
  }
204
203
  });
205
204
 
@@ -48,7 +48,8 @@ async function startStdio(flags: StartCommandFlags) {
48
48
  const server = createMCPServer({
49
49
  logger,
50
50
  allowedTools: flags.tool,
51
- ...{ bearer: flags.bearer ?? "" },
51
+ bearer: flags.bearer ?? "",
52
+
52
53
  serverURL: flags["server-url"],
53
54
  serverIdx: flags["server-index"],
54
55
  latitudeApiKey: flags["latitude-api-key"],
@@ -69,7 +70,8 @@ async function startSSE(flags: StartCommandFlags) {
69
70
  const mcpServer = createMCPServer({
70
71
  logger,
71
72
  allowedTools: flags.tool,
72
- ...{ bearer: flags.bearer ?? "" },
73
+ bearer: flags.bearer ?? "",
74
+
73
75
  serverURL: flags["server-url"],
74
76
  serverIdx: flags["server-index"],
75
77
  latitudeApiKey: flags["latitude-api-key"],
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.3.0",
22
+ currentVersion: "0.3.1",
23
23
  },
24
24
  });
25
25
 
@@ -19,11 +19,11 @@ import { tool$apiKeysList } from "./tools/apiKeysList.js";
19
19
  import { tool$apiKeysUpdate } from "./tools/apiKeysUpdate.js";
20
20
  import { tool$apiKeysUpdateApiKey } from "./tools/apiKeysUpdateApiKey.js";
21
21
  import { tool$billingListUsage } from "./tools/billingListUsage.js";
22
- import { tool$elasticIPsCreateElasticIp } from "./tools/elasticIPsCreateElasticIp.js";
23
- import { tool$elasticIPsDeleteElasticIp } from "./tools/elasticIPsDeleteElasticIp.js";
24
- import { tool$elasticIPsGetElasticIp } from "./tools/elasticIPsGetElasticIp.js";
25
- import { tool$elasticIPsListElasticIps } from "./tools/elasticIPsListElasticIps.js";
26
- import { tool$elasticIPsUpdateElasticIp } from "./tools/elasticIPsUpdateElasticIp.js";
22
+ import { tool$elasticIpsCreateElasticIp } from "./tools/elasticIpsCreateElasticIp.js";
23
+ import { tool$elasticIpsDeleteElasticIp } from "./tools/elasticIpsDeleteElasticIp.js";
24
+ import { tool$elasticIpsGetElasticIp } from "./tools/elasticIpsGetElasticIp.js";
25
+ import { tool$elasticIpsListElasticIps } from "./tools/elasticIpsListElasticIps.js";
26
+ import { tool$elasticIpsUpdateElasticIp } from "./tools/elasticIpsUpdateElasticIp.js";
27
27
  import { tool$eventsList } from "./tools/eventsList.js";
28
28
  import { tool$firewallsAssignmentsCreate } from "./tools/firewallsAssignmentsCreate.js";
29
29
  import { tool$firewallsCreate } from "./tools/firewallsCreate.js";
@@ -148,7 +148,7 @@ export function createMCPServer(deps: {
148
148
  }) {
149
149
  const server = new McpServer({
150
150
  name: "Latitudesh",
151
- version: "0.3.0",
151
+ version: "0.3.1",
152
152
  });
153
153
 
154
154
  const client = new LatitudeshCore({
@@ -194,11 +194,11 @@ export function createMCPServer(deps: {
194
194
  tool(tool$firewallsDelete);
195
195
  tool(tool$firewallsListAssignments);
196
196
  tool(tool$firewallsDeleteAssignment);
197
- tool(tool$elasticIPsListElasticIps);
198
- tool(tool$elasticIPsCreateElasticIp);
199
- tool(tool$elasticIPsGetElasticIp);
200
- tool(tool$elasticIPsDeleteElasticIp);
201
- tool(tool$elasticIPsUpdateElasticIp);
197
+ tool(tool$elasticIpsListElasticIps);
198
+ tool(tool$elasticIpsCreateElasticIp);
199
+ tool(tool$elasticIpsGetElasticIp);
200
+ tool(tool$elasticIpsDeleteElasticIp);
201
+ tool(tool$elasticIpsUpdateElasticIp);
202
202
  tool(tool$ipAddressesList);
203
203
  tool(tool$ipAddressesGet);
204
204
  tool(tool$teamsGet);
@@ -16,12 +16,12 @@ export async function consumeStream(
16
16
  stream: ReadableStream<Uint8Array>,
17
17
  ): Promise<Uint8Array> {
18
18
  const reader = stream.getReader();
19
- const chunks: Uint8Array[] = [];
19
+ const chunks: ArrayBuffer[] = [];
20
20
 
21
21
  try {
22
22
  while (true) {
23
23
  const { done, value } = await reader.read();
24
- if (value != null) chunks.push(value);
24
+ if (value != null) chunks.push(new Uint8Array(value).buffer);
25
25
  if (done) break;
26
26
  }
27
27
  } finally {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { elasticIPsCreateElasticIp } from "../../funcs/elasticIPsCreateElasticIp.js";
5
+ import { elasticIpsCreateElasticIp } from "../../funcs/elasticIpsCreateElasticIp.js";
6
6
  import * as models from "../../models/index.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
@@ -10,17 +10,17 @@ const args = {
10
10
  request: models.CreateElasticIp$inboundSchema,
11
11
  };
12
12
 
13
- export const tool$elasticIPsCreateElasticIp: ToolDefinition<typeof args> = {
14
- name: "elastic-I-ps-create-elastic-ip",
13
+ export const tool$elasticIpsCreateElasticIp: ToolDefinition<typeof args> = {
14
+ name: "elastic-ips-create-elastic-ip",
15
15
  description: `Create an Elastic IP
16
16
 
17
- Creates a new Elastic IP and assigns it to the specified server. The IP is provisioned asynchronously—the response will show status \`provisioning\` and the \`id\` will be \`null\` until provisioning completes.
17
+ Creates a new Elastic IP and assigns it to the specified server. The IP is provisioned asynchronously—the response will show status \`configuring\` and the \`id\` will be \`null\` until provisioning completes.
18
18
 
19
19
  **Note:** This feature requires the \`elastic_ips\` feature flag to be enabled for your team. Currently only IPv4 /32 addresses in routed mode are supported.
20
20
  `,
21
21
  args,
22
22
  tool: async (client, args, ctx) => {
23
- const [result, apiCall] = await elasticIPsCreateElasticIp(
23
+ const [result, apiCall] = await elasticIpsCreateElasticIp(
24
24
  client,
25
25
  args.request,
26
26
  { fetchOptions: { signal: ctx.signal } },
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { elasticIPsDeleteElasticIp } from "../../funcs/elasticIPsDeleteElasticIp.js";
5
+ import { elasticIpsDeleteElasticIp } from "../../funcs/elasticIpsDeleteElasticIp.js";
6
6
  import * as operations from "../../models/operations/index.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
@@ -10,8 +10,8 @@ const args = {
10
10
  request: operations.DeleteElasticIpRequest$inboundSchema,
11
11
  };
12
12
 
13
- export const tool$elasticIPsDeleteElasticIp: ToolDefinition<typeof args> = {
14
- name: "elastic-I-ps-delete-elastic-ip",
13
+ export const tool$elasticIpsDeleteElasticIp: ToolDefinition<typeof args> = {
14
+ name: "elastic-ips-delete-elastic-ip",
15
15
  description: `Release an Elastic IP
16
16
 
17
17
  Releases an Elastic IP, returning it to the available pool. The IP will transition to \`releasing\` status before being fully removed.
@@ -20,7 +20,7 @@ Releases an Elastic IP, returning it to the available pool. The IP will transiti
20
20
  `,
21
21
  args,
22
22
  tool: async (client, args, ctx) => {
23
- const [result, apiCall] = await elasticIPsDeleteElasticIp(
23
+ const [result, apiCall] = await elasticIpsDeleteElasticIp(
24
24
  client,
25
25
  args.request,
26
26
  { fetchOptions: { signal: ctx.signal } },
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { elasticIPsGetElasticIp } from "../../funcs/elasticIPsGetElasticIp.js";
5
+ import { elasticIpsGetElasticIp } from "../../funcs/elasticIpsGetElasticIp.js";
6
6
  import * as operations from "../../models/operations/index.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
@@ -10,8 +10,8 @@ const args = {
10
10
  request: operations.GetElasticIpRequest$inboundSchema,
11
11
  };
12
12
 
13
- export const tool$elasticIPsGetElasticIp: ToolDefinition<typeof args> = {
14
- name: "elastic-I-ps-get-elastic-ip",
13
+ export const tool$elasticIpsGetElasticIp: ToolDefinition<typeof args> = {
14
+ name: "elastic-ips-get-elastic-ip",
15
15
  description: `Retrieve an Elastic IP
16
16
 
17
17
  Returns a single Elastic IP by its ID.
@@ -20,7 +20,7 @@ Returns a single Elastic IP by its ID.
20
20
  `,
21
21
  args,
22
22
  tool: async (client, args, ctx) => {
23
- const [result, apiCall] = await elasticIPsGetElasticIp(
23
+ const [result, apiCall] = await elasticIpsGetElasticIp(
24
24
  client,
25
25
  args.request,
26
26
  { fetchOptions: { signal: ctx.signal } },
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { elasticIPsListElasticIps } from "../../funcs/elasticIPsListElasticIps.js";
5
+ import { elasticIpsListElasticIps } from "../../funcs/elasticIpsListElasticIps.js";
6
6
  import * as operations from "../../models/operations/index.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
@@ -10,8 +10,8 @@ const args = {
10
10
  request: operations.ListElasticIpsRequest$inboundSchema.optional(),
11
11
  };
12
12
 
13
- export const tool$elasticIPsListElasticIps: ToolDefinition<typeof args> = {
14
- name: "elastic-I-ps-list-elastic-ips",
13
+ export const tool$elasticIpsListElasticIps: ToolDefinition<typeof args> = {
14
+ name: "elastic-ips-list-elastic-ips",
15
15
  description: `List Elastic IPs
16
16
 
17
17
  List all Elastic IPs for the authenticated team. Elastic IPs are static public IP addresses that can be assigned to servers and moved between servers within the same project.
@@ -20,7 +20,7 @@ List all Elastic IPs for the authenticated team. Elastic IPs are static public I
20
20
  `,
21
21
  args,
22
22
  tool: async (client, args, ctx) => {
23
- const [result, apiCall] = await elasticIPsListElasticIps(
23
+ const [result, apiCall] = await elasticIpsListElasticIps(
24
24
  client,
25
25
  args.request,
26
26
  { fetchOptions: { signal: ctx.signal } },
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { elasticIPsUpdateElasticIp } from "../../funcs/elasticIPsUpdateElasticIp.js";
5
+ import { elasticIpsUpdateElasticIp } from "../../funcs/elasticIpsUpdateElasticIp.js";
6
6
  import * as operations from "../../models/operations/index.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
@@ -10,8 +10,8 @@ const args = {
10
10
  request: operations.UpdateElasticIpRequest$inboundSchema,
11
11
  };
12
12
 
13
- export const tool$elasticIPsUpdateElasticIp: ToolDefinition<typeof args> = {
14
- name: "elastic-I-ps-update-elastic-ip",
13
+ export const tool$elasticIpsUpdateElasticIp: ToolDefinition<typeof args> = {
14
+ name: "elastic-ips-update-elastic-ip",
15
15
  description: `Move an Elastic IP
16
16
 
17
17
  Moves an Elastic IP to a different server within the same project. The reassignment is performed asynchronously.
@@ -20,7 +20,7 @@ Moves an Elastic IP to a different server within the same project. The reassignm
20
20
  `,
21
21
  args,
22
22
  tool: async (client, args, ctx) => {
23
- const [result, apiCall] = await elasticIPsUpdateElasticIp(
23
+ const [result, apiCall] = await elasticIpsUpdateElasticIp(
24
24
  client,
25
25
  args.request,
26
26
  { fetchOptions: { signal: ctx.signal } },
@@ -40,8 +40,9 @@ export type Mode = ClosedEnum<typeof Mode>;
40
40
  * The current status of the Elastic IP
41
41
  */
42
42
  export const ElasticIpDataStatus = {
43
- Provisioning: "provisioning",
43
+ Configuring: "configuring",
44
44
  Active: "active",
45
+ Moving: "moving",
45
46
  Releasing: "releasing",
46
47
  Error: "error",
47
48
  } as const;
@@ -57,6 +58,7 @@ export type ElasticIpDataServer = {
57
58
  id?: string | undefined;
58
59
  hostname?: string | undefined;
59
60
  primaryIpv4?: string | undefined;
61
+ operatingSystem?: string | null | undefined;
60
62
  };
61
63
 
62
64
  /**
@@ -68,7 +70,21 @@ export type ElasticIpDataProject = {
68
70
  slug?: string | undefined;
69
71
  };
70
72
 
71
- export type ElasticIpDataSite = {
73
+ /**
74
+ * The site/location within the region
75
+ */
76
+ export type ElasticIpDataLocation = {
77
+ /**
78
+ * The site ID
79
+ */
80
+ id?: string | undefined;
81
+ /**
82
+ * The site name
83
+ */
84
+ name?: string | undefined;
85
+ /**
86
+ * The site slug
87
+ */
72
88
  slug?: string | undefined;
73
89
  };
74
90
 
@@ -76,8 +92,18 @@ export type ElasticIpDataSite = {
76
92
  * The region where this Elastic IP is located
77
93
  */
78
94
  export type ElasticIpDataRegion = {
79
- city?: string | undefined;
80
- site?: ElasticIpDataSite | undefined;
95
+ /**
96
+ * The region ID
97
+ */
98
+ id?: string | undefined;
99
+ /**
100
+ * The region name
101
+ */
102
+ name?: string | undefined;
103
+ /**
104
+ * The site/location within the region
105
+ */
106
+ location?: ElasticIpDataLocation | undefined;
81
107
  };
82
108
 
83
109
  export type ElasticIpDataAttributes = {
@@ -172,9 +198,11 @@ export const ElasticIpDataServer$inboundSchema: z.ZodType<
172
198
  id: z.string().optional(),
173
199
  hostname: z.string().optional(),
174
200
  primary_ipv4: z.string().optional(),
201
+ operating_system: z.nullable(z.string()).optional(),
175
202
  }).transform((v) => {
176
203
  return remap$(v, {
177
204
  "primary_ipv4": "primaryIpv4",
205
+ "operating_system": "operatingSystem",
178
206
  });
179
207
  });
180
208
  /** @internal */
@@ -182,6 +210,7 @@ export type ElasticIpDataServer$Outbound = {
182
210
  id?: string | undefined;
183
211
  hostname?: string | undefined;
184
212
  primary_ipv4?: string | undefined;
213
+ operating_system?: string | null | undefined;
185
214
  };
186
215
 
187
216
  /** @internal */
@@ -193,9 +222,11 @@ export const ElasticIpDataServer$outboundSchema: z.ZodType<
193
222
  id: z.string().optional(),
194
223
  hostname: z.string().optional(),
195
224
  primaryIpv4: z.string().optional(),
225
+ operatingSystem: z.nullable(z.string()).optional(),
196
226
  }).transform((v) => {
197
227
  return remap$(v, {
198
228
  primaryIpv4: "primary_ipv4",
229
+ operatingSystem: "operating_system",
199
230
  });
200
231
  });
201
232
 
@@ -262,41 +293,47 @@ export function elasticIpDataProjectFromJSON(
262
293
  }
263
294
 
264
295
  /** @internal */
265
- export const ElasticIpDataSite$inboundSchema: z.ZodType<
266
- ElasticIpDataSite,
296
+ export const ElasticIpDataLocation$inboundSchema: z.ZodType<
297
+ ElasticIpDataLocation,
267
298
  z.ZodTypeDef,
268
299
  unknown
269
300
  > = z.object({
301
+ id: z.string().optional(),
302
+ name: z.string().optional(),
270
303
  slug: z.string().optional(),
271
304
  });
272
305
  /** @internal */
273
- export type ElasticIpDataSite$Outbound = {
306
+ export type ElasticIpDataLocation$Outbound = {
307
+ id?: string | undefined;
308
+ name?: string | undefined;
274
309
  slug?: string | undefined;
275
310
  };
276
311
 
277
312
  /** @internal */
278
- export const ElasticIpDataSite$outboundSchema: z.ZodType<
279
- ElasticIpDataSite$Outbound,
313
+ export const ElasticIpDataLocation$outboundSchema: z.ZodType<
314
+ ElasticIpDataLocation$Outbound,
280
315
  z.ZodTypeDef,
281
- ElasticIpDataSite
316
+ ElasticIpDataLocation
282
317
  > = z.object({
318
+ id: z.string().optional(),
319
+ name: z.string().optional(),
283
320
  slug: z.string().optional(),
284
321
  });
285
322
 
286
- export function elasticIpDataSiteToJSON(
287
- elasticIpDataSite: ElasticIpDataSite,
323
+ export function elasticIpDataLocationToJSON(
324
+ elasticIpDataLocation: ElasticIpDataLocation,
288
325
  ): string {
289
326
  return JSON.stringify(
290
- ElasticIpDataSite$outboundSchema.parse(elasticIpDataSite),
327
+ ElasticIpDataLocation$outboundSchema.parse(elasticIpDataLocation),
291
328
  );
292
329
  }
293
- export function elasticIpDataSiteFromJSON(
330
+ export function elasticIpDataLocationFromJSON(
294
331
  jsonString: string,
295
- ): SafeParseResult<ElasticIpDataSite, SDKValidationError> {
332
+ ): SafeParseResult<ElasticIpDataLocation, SDKValidationError> {
296
333
  return safeParse(
297
334
  jsonString,
298
- (x) => ElasticIpDataSite$inboundSchema.parse(JSON.parse(x)),
299
- `Failed to parse 'ElasticIpDataSite' from JSON`,
335
+ (x) => ElasticIpDataLocation$inboundSchema.parse(JSON.parse(x)),
336
+ `Failed to parse 'ElasticIpDataLocation' from JSON`,
300
337
  );
301
338
  }
302
339
 
@@ -306,13 +343,15 @@ export const ElasticIpDataRegion$inboundSchema: z.ZodType<
306
343
  z.ZodTypeDef,
307
344
  unknown
308
345
  > = z.object({
309
- city: z.string().optional(),
310
- site: z.lazy(() => ElasticIpDataSite$inboundSchema).optional(),
346
+ id: z.string().optional(),
347
+ name: z.string().optional(),
348
+ location: z.lazy(() => ElasticIpDataLocation$inboundSchema).optional(),
311
349
  });
312
350
  /** @internal */
313
351
  export type ElasticIpDataRegion$Outbound = {
314
- city?: string | undefined;
315
- site?: ElasticIpDataSite$Outbound | undefined;
352
+ id?: string | undefined;
353
+ name?: string | undefined;
354
+ location?: ElasticIpDataLocation$Outbound | undefined;
316
355
  };
317
356
 
318
357
  /** @internal */
@@ -321,8 +360,9 @@ export const ElasticIpDataRegion$outboundSchema: z.ZodType<
321
360
  z.ZodTypeDef,
322
361
  ElasticIpDataRegion
323
362
  > = z.object({
324
- city: z.string().optional(),
325
- site: z.lazy(() => ElasticIpDataSite$outboundSchema).optional(),
363
+ id: z.string().optional(),
364
+ name: z.string().optional(),
365
+ location: z.lazy(() => ElasticIpDataLocation$outboundSchema).optional(),
326
366
  });
327
367
 
328
368
  export function elasticIpDataRegionToJSON(