latitudesh-typescript-sdk 0.3.0 → 0.3.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 (178) hide show
  1. package/README.md +7 -7
  2. package/bin/mcp-server.js +220 -203
  3. package/bin/mcp-server.js.map +27 -25
  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/createkubernetescluster.d.ts +6 -6
  60. package/dist/commonjs/models/createkubernetescluster.d.ts.map +1 -1
  61. package/dist/commonjs/models/createkubernetescluster.js +6 -6
  62. package/dist/commonjs/models/createkubernetescluster.js.map +1 -1
  63. package/dist/commonjs/models/elasticipdata.d.ts +41 -11
  64. package/dist/commonjs/models/elasticipdata.d.ts.map +1 -1
  65. package/dist/commonjs/models/elasticipdata.js +25 -14
  66. package/dist/commonjs/models/elasticipdata.js.map +1 -1
  67. package/dist/commonjs/models/ipaddress.d.ts +8 -8
  68. package/dist/commonjs/models/ipaddress.d.ts.map +1 -1
  69. package/dist/commonjs/models/ipaddress.js +11 -11
  70. package/dist/commonjs/models/ipaddress.js.map +1 -1
  71. package/dist/commonjs/models/operations/listelasticips.d.ts +2 -1
  72. package/dist/commonjs/models/operations/listelasticips.d.ts.map +1 -1
  73. package/dist/commonjs/models/operations/listelasticips.js +2 -1
  74. package/dist/commonjs/models/operations/listelasticips.js.map +1 -1
  75. package/dist/commonjs/sdk/elasticips.d.ts +2 -2
  76. package/dist/commonjs/sdk/elasticips.js +14 -14
  77. package/dist/commonjs/sdk/sdk.d.ts +3 -3
  78. package/dist/commonjs/sdk/sdk.js +2 -2
  79. package/dist/esm/funcs/{elasticIPsCreateElasticIp.d.ts → elasticIpsCreateElasticIp.d.ts} +3 -3
  80. package/dist/esm/funcs/{elasticIPsCreateElasticIp.d.ts.map → elasticIpsCreateElasticIp.d.ts.map} +1 -1
  81. package/dist/esm/funcs/{elasticIPsCreateElasticIp.js → elasticIpsCreateElasticIp.js} +3 -3
  82. package/dist/esm/funcs/{elasticIPsCreateElasticIp.js.map → elasticIpsCreateElasticIp.js.map} +1 -1
  83. package/dist/{commonjs/funcs/elasticIPsDeleteElasticIp.d.ts → esm/funcs/elasticIpsDeleteElasticIp.d.ts} +2 -2
  84. package/dist/esm/funcs/{elasticIPsDeleteElasticIp.d.ts.map → elasticIpsDeleteElasticIp.d.ts.map} +1 -1
  85. package/dist/esm/funcs/{elasticIPsDeleteElasticIp.js → elasticIpsDeleteElasticIp.js} +2 -2
  86. package/dist/esm/funcs/{elasticIPsDeleteElasticIp.js.map → elasticIpsDeleteElasticIp.js.map} +1 -1
  87. package/dist/{commonjs/funcs/elasticIPsGetElasticIp.d.ts → esm/funcs/elasticIpsGetElasticIp.d.ts} +2 -2
  88. package/dist/esm/funcs/{elasticIPsGetElasticIp.d.ts.map → elasticIpsGetElasticIp.d.ts.map} +1 -1
  89. package/dist/esm/funcs/{elasticIPsGetElasticIp.js → elasticIpsGetElasticIp.js} +2 -2
  90. package/dist/esm/funcs/{elasticIPsGetElasticIp.js.map → elasticIpsGetElasticIp.js.map} +1 -1
  91. package/dist/{commonjs/funcs/elasticIPsListElasticIps.d.ts → esm/funcs/elasticIpsListElasticIps.d.ts} +2 -2
  92. package/dist/esm/funcs/{elasticIPsListElasticIps.d.ts.map → elasticIpsListElasticIps.d.ts.map} +1 -1
  93. package/dist/esm/funcs/{elasticIPsListElasticIps.js → elasticIpsListElasticIps.js} +3 -3
  94. package/dist/esm/funcs/{elasticIPsListElasticIps.js.map → elasticIpsListElasticIps.js.map} +1 -1
  95. package/dist/{commonjs/funcs/elasticIPsUpdateElasticIp.d.ts → esm/funcs/elasticIpsUpdateElasticIp.d.ts} +2 -2
  96. package/dist/{commonjs/funcs/elasticIPsUpdateElasticIp.d.ts.map → esm/funcs/elasticIpsUpdateElasticIp.d.ts.map} +1 -1
  97. package/dist/esm/funcs/{elasticIPsUpdateElasticIp.js → elasticIpsUpdateElasticIp.js} +3 -3
  98. package/dist/esm/funcs/{elasticIPsUpdateElasticIp.js.map → elasticIpsUpdateElasticIp.js.map} +1 -1
  99. package/dist/esm/lib/config.d.ts +3 -3
  100. package/dist/esm/lib/config.js +3 -3
  101. package/dist/esm/lib/config.js.map +1 -1
  102. package/dist/esm/lib/matchers.d.ts.map +1 -1
  103. package/dist/esm/lib/matchers.js +0 -1
  104. package/dist/esm/lib/matchers.js.map +1 -1
  105. package/dist/esm/lib/security.d.ts.map +1 -1
  106. package/dist/esm/lib/security.js +1 -2
  107. package/dist/esm/lib/security.js.map +1 -1
  108. package/dist/esm/mcp-server/cli/start/impl.js +2 -2
  109. package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
  110. package/dist/esm/mcp-server/mcp-server.js +1 -1
  111. package/dist/esm/mcp-server/server.js +11 -11
  112. package/dist/esm/mcp-server/shared.js +1 -1
  113. package/dist/esm/mcp-server/shared.js.map +1 -1
  114. package/dist/esm/mcp-server/tools/{elasticIPsCreateElasticIp.d.ts → elasticIpsCreateElasticIp.d.ts} +2 -2
  115. package/dist/esm/mcp-server/tools/{elasticIPsCreateElasticIp.d.ts.map → elasticIpsCreateElasticIp.d.ts.map} +1 -1
  116. package/dist/esm/mcp-server/tools/{elasticIPsCreateElasticIp.js → elasticIpsCreateElasticIp.js} +6 -6
  117. package/dist/esm/mcp-server/tools/{elasticIPsCreateElasticIp.js.map → elasticIpsCreateElasticIp.js.map} +1 -1
  118. package/dist/esm/mcp-server/tools/{elasticIPsDeleteElasticIp.d.ts → elasticIpsDeleteElasticIp.d.ts} +2 -2
  119. package/dist/{commonjs/mcp-server/tools/elasticIPsUpdateElasticIp.d.ts.map → esm/mcp-server/tools/elasticIpsDeleteElasticIp.d.ts.map} +1 -1
  120. package/dist/esm/mcp-server/tools/{elasticIPsDeleteElasticIp.js → elasticIpsDeleteElasticIp.js} +5 -5
  121. package/dist/esm/mcp-server/tools/{elasticIPsDeleteElasticIp.js.map → elasticIpsDeleteElasticIp.js.map} +1 -1
  122. package/dist/{commonjs/mcp-server/tools/elasticIPsGetElasticIp.d.ts → esm/mcp-server/tools/elasticIpsGetElasticIp.d.ts} +2 -2
  123. package/dist/esm/mcp-server/tools/{elasticIPsGetElasticIp.d.ts.map → elasticIpsGetElasticIp.d.ts.map} +1 -1
  124. package/dist/esm/mcp-server/tools/{elasticIPsGetElasticIp.js → elasticIpsGetElasticIp.js} +5 -5
  125. package/dist/esm/mcp-server/tools/{elasticIPsGetElasticIp.js.map → elasticIpsGetElasticIp.js.map} +1 -1
  126. package/dist/{commonjs/mcp-server/tools/elasticIPsListElasticIps.d.ts → esm/mcp-server/tools/elasticIpsListElasticIps.d.ts} +2 -2
  127. package/dist/esm/mcp-server/tools/{elasticIPsListElasticIps.d.ts.map → elasticIpsListElasticIps.d.ts.map} +1 -1
  128. package/dist/esm/mcp-server/tools/{elasticIPsListElasticIps.js → elasticIpsListElasticIps.js} +5 -5
  129. package/dist/esm/mcp-server/tools/{elasticIPsListElasticIps.js.map → elasticIpsListElasticIps.js.map} +1 -1
  130. package/dist/esm/mcp-server/tools/{elasticIPsUpdateElasticIp.d.ts → elasticIpsUpdateElasticIp.d.ts} +2 -2
  131. package/dist/esm/mcp-server/tools/{elasticIPsUpdateElasticIp.d.ts.map → elasticIpsUpdateElasticIp.d.ts.map} +1 -1
  132. package/dist/esm/mcp-server/tools/{elasticIPsUpdateElasticIp.js → elasticIpsUpdateElasticIp.js} +5 -5
  133. package/dist/esm/mcp-server/tools/{elasticIPsUpdateElasticIp.js.map → elasticIpsUpdateElasticIp.js.map} +1 -1
  134. package/dist/esm/models/createkubernetescluster.d.ts +6 -6
  135. package/dist/esm/models/createkubernetescluster.d.ts.map +1 -1
  136. package/dist/esm/models/createkubernetescluster.js +6 -6
  137. package/dist/esm/models/createkubernetescluster.js.map +1 -1
  138. package/dist/esm/models/elasticipdata.d.ts +41 -11
  139. package/dist/esm/models/elasticipdata.d.ts.map +1 -1
  140. package/dist/esm/models/elasticipdata.js +22 -11
  141. package/dist/esm/models/elasticipdata.js.map +1 -1
  142. package/dist/esm/models/ipaddress.d.ts +8 -8
  143. package/dist/esm/models/ipaddress.d.ts.map +1 -1
  144. package/dist/esm/models/ipaddress.js +8 -8
  145. package/dist/esm/models/ipaddress.js.map +1 -1
  146. package/dist/esm/models/operations/listelasticips.d.ts +2 -1
  147. package/dist/esm/models/operations/listelasticips.d.ts.map +1 -1
  148. package/dist/esm/models/operations/listelasticips.js +2 -1
  149. package/dist/esm/models/operations/listelasticips.js.map +1 -1
  150. package/dist/esm/sdk/elasticips.d.ts +2 -2
  151. package/dist/esm/sdk/elasticips.js +12 -12
  152. package/dist/esm/sdk/sdk.d.ts +3 -3
  153. package/dist/esm/sdk/sdk.js +3 -3
  154. package/jsr.json +1 -1
  155. package/package.json +4 -4
  156. package/src/funcs/{elasticIPsCreateElasticIp.ts → elasticIpsCreateElasticIp.ts} +2 -2
  157. package/src/funcs/{elasticIPsDeleteElasticIp.ts → elasticIpsDeleteElasticIp.ts} +1 -1
  158. package/src/funcs/{elasticIPsGetElasticIp.ts → elasticIpsGetElasticIp.ts} +1 -1
  159. package/src/funcs/{elasticIPsListElasticIps.ts → elasticIpsListElasticIps.ts} +2 -2
  160. package/src/funcs/{elasticIPsUpdateElasticIp.ts → elasticIpsUpdateElasticIp.ts} +2 -2
  161. package/src/lib/config.ts +3 -3
  162. package/src/lib/matchers.ts +3 -2
  163. package/src/lib/security.ts +1 -2
  164. package/src/mcp-server/cli/start/impl.ts +4 -2
  165. package/src/mcp-server/mcp-server.ts +1 -1
  166. package/src/mcp-server/server.ts +11 -11
  167. package/src/mcp-server/shared.ts +2 -2
  168. package/src/mcp-server/tools/{elasticIPsCreateElasticIp.ts → elasticIpsCreateElasticIp.ts} +5 -5
  169. package/src/mcp-server/tools/{elasticIPsDeleteElasticIp.ts → elasticIpsDeleteElasticIp.ts} +4 -4
  170. package/src/mcp-server/tools/{elasticIPsGetElasticIp.ts → elasticIpsGetElasticIp.ts} +4 -4
  171. package/src/mcp-server/tools/{elasticIPsListElasticIps.ts → elasticIpsListElasticIps.ts} +4 -4
  172. package/src/mcp-server/tools/{elasticIPsUpdateElasticIp.ts → elasticIpsUpdateElasticIp.ts} +4 -4
  173. package/src/models/createkubernetescluster.ts +12 -12
  174. package/src/models/elasticipdata.ts +63 -23
  175. package/src/models/ipaddress.ts +21 -17
  176. package/src/models/operations/listelasticips.ts +2 -1
  177. package/src/sdk/elasticips.ts +12 -12
  178. package/src/sdk/sdk.ts +4 -4
@@ -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 } },
@@ -18,9 +18,9 @@ export type CreateKubernetesClusterType = ClosedEnum<
18
18
 
19
19
  export type CreateKubernetesClusterAttributes = {
20
20
  /**
21
- * The cluster name. Must follow Kubernetes naming rules: lowercase alphanumeric or hyphens, must start and end with alphanumeric, max 63 characters.
21
+ * The cluster name. Must follow Kubernetes naming rules: lowercase alphanumeric or hyphens, must start and end with alphanumeric, max 63 characters. Auto-generated if omitted.
22
22
  */
23
- name: string;
23
+ name?: string | null | undefined;
24
24
  /**
25
25
  * The project ID where the cluster will be created
26
26
  */
@@ -34,9 +34,9 @@ export type CreateKubernetesClusterAttributes = {
34
34
  */
35
35
  plan: string;
36
36
  /**
37
- * The SSH key ID to use for node access
37
+ * Array of SSH key IDs to use for node access. All keys must exist and belong to your team.
38
38
  */
39
- sshKeyId: string;
39
+ sshKeys?: Array<string> | null | undefined;
40
40
  /**
41
41
  * The machine plan for worker nodes. Defaults to the control plane plan if not specified.
42
42
  */
@@ -83,11 +83,11 @@ export const CreateKubernetesClusterAttributes$inboundSchema: z.ZodType<
83
83
  z.ZodTypeDef,
84
84
  unknown
85
85
  > = z.object({
86
- name: z.string(),
86
+ name: z.nullable(z.string()).optional(),
87
87
  project_id: z.string(),
88
88
  site: z.string(),
89
89
  plan: z.string(),
90
- ssh_key_id: z.string(),
90
+ ssh_keys: z.nullable(z.array(z.string())).optional(),
91
91
  worker_plan: z.nullable(z.string()).optional(),
92
92
  kubernetes_version: z.nullable(z.string()).optional(),
93
93
  control_plane_count: z.nullable(z.number().int()).optional(),
@@ -96,7 +96,7 @@ export const CreateKubernetesClusterAttributes$inboundSchema: z.ZodType<
96
96
  }).transform((v) => {
97
97
  return remap$(v, {
98
98
  "project_id": "projectId",
99
- "ssh_key_id": "sshKeyId",
99
+ "ssh_keys": "sshKeys",
100
100
  "worker_plan": "workerPlan",
101
101
  "kubernetes_version": "kubernetesVersion",
102
102
  "control_plane_count": "controlPlaneCount",
@@ -106,11 +106,11 @@ export const CreateKubernetesClusterAttributes$inboundSchema: z.ZodType<
106
106
  });
107
107
  /** @internal */
108
108
  export type CreateKubernetesClusterAttributes$Outbound = {
109
- name: string;
109
+ name?: string | null | undefined;
110
110
  project_id: string;
111
111
  site: string;
112
112
  plan: string;
113
- ssh_key_id: string;
113
+ ssh_keys?: Array<string> | null | undefined;
114
114
  worker_plan?: string | null | undefined;
115
115
  kubernetes_version?: string | null | undefined;
116
116
  control_plane_count?: number | null | undefined;
@@ -124,11 +124,11 @@ export const CreateKubernetesClusterAttributes$outboundSchema: z.ZodType<
124
124
  z.ZodTypeDef,
125
125
  CreateKubernetesClusterAttributes
126
126
  > = z.object({
127
- name: z.string(),
127
+ name: z.nullable(z.string()).optional(),
128
128
  projectId: z.string(),
129
129
  site: z.string(),
130
130
  plan: z.string(),
131
- sshKeyId: z.string(),
131
+ sshKeys: z.nullable(z.array(z.string())).optional(),
132
132
  workerPlan: z.nullable(z.string()).optional(),
133
133
  kubernetesVersion: z.nullable(z.string()).optional(),
134
134
  controlPlaneCount: z.nullable(z.number().int()).optional(),
@@ -137,7 +137,7 @@ export const CreateKubernetesClusterAttributes$outboundSchema: z.ZodType<
137
137
  }).transform((v) => {
138
138
  return remap$(v, {
139
139
  projectId: "project_id",
140
- sshKeyId: "ssh_key_id",
140
+ sshKeys: "ssh_keys",
141
141
  workerPlan: "worker_plan",
142
142
  kubernetesVersion: "kubernetes_version",
143
143
  controlPlaneCount: "control_plane_count",
@@ -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(
@@ -26,7 +26,7 @@ export type IpAddressProject = {
26
26
  name?: string | undefined;
27
27
  };
28
28
 
29
- export type Location = {
29
+ export type IpAddressLocation = {
30
30
  id?: string | undefined;
31
31
  name?: string | undefined;
32
32
  slug?: string | undefined;
@@ -35,7 +35,7 @@ export type Location = {
35
35
  export type IpAddressRegion = {
36
36
  id?: string | undefined;
37
37
  name?: string | undefined;
38
- location?: Location | undefined;
38
+ location?: IpAddressLocation | undefined;
39
39
  };
40
40
 
41
41
  export type Assignment = {
@@ -126,8 +126,8 @@ export function ipAddressProjectFromJSON(
126
126
  }
127
127
 
128
128
  /** @internal */
129
- export const Location$inboundSchema: z.ZodType<
130
- Location,
129
+ export const IpAddressLocation$inboundSchema: z.ZodType<
130
+ IpAddressLocation,
131
131
  z.ZodTypeDef,
132
132
  unknown
133
133
  > = z.object({
@@ -136,33 +136,37 @@ export const Location$inboundSchema: z.ZodType<
136
136
  slug: z.string().optional(),
137
137
  });
138
138
  /** @internal */
139
- export type Location$Outbound = {
139
+ export type IpAddressLocation$Outbound = {
140
140
  id?: string | undefined;
141
141
  name?: string | undefined;
142
142
  slug?: string | undefined;
143
143
  };
144
144
 
145
145
  /** @internal */
146
- export const Location$outboundSchema: z.ZodType<
147
- Location$Outbound,
146
+ export const IpAddressLocation$outboundSchema: z.ZodType<
147
+ IpAddressLocation$Outbound,
148
148
  z.ZodTypeDef,
149
- Location
149
+ IpAddressLocation
150
150
  > = z.object({
151
151
  id: z.string().optional(),
152
152
  name: z.string().optional(),
153
153
  slug: z.string().optional(),
154
154
  });
155
155
 
156
- export function locationToJSON(location: Location): string {
157
- return JSON.stringify(Location$outboundSchema.parse(location));
156
+ export function ipAddressLocationToJSON(
157
+ ipAddressLocation: IpAddressLocation,
158
+ ): string {
159
+ return JSON.stringify(
160
+ IpAddressLocation$outboundSchema.parse(ipAddressLocation),
161
+ );
158
162
  }
159
- export function locationFromJSON(
163
+ export function ipAddressLocationFromJSON(
160
164
  jsonString: string,
161
- ): SafeParseResult<Location, SDKValidationError> {
165
+ ): SafeParseResult<IpAddressLocation, SDKValidationError> {
162
166
  return safeParse(
163
167
  jsonString,
164
- (x) => Location$inboundSchema.parse(JSON.parse(x)),
165
- `Failed to parse 'Location' from JSON`,
168
+ (x) => IpAddressLocation$inboundSchema.parse(JSON.parse(x)),
169
+ `Failed to parse 'IpAddressLocation' from JSON`,
166
170
  );
167
171
  }
168
172
 
@@ -174,13 +178,13 @@ export const IpAddressRegion$inboundSchema: z.ZodType<
174
178
  > = z.object({
175
179
  id: z.string().optional(),
176
180
  name: z.string().optional(),
177
- location: z.lazy(() => Location$inboundSchema).optional(),
181
+ location: z.lazy(() => IpAddressLocation$inboundSchema).optional(),
178
182
  });
179
183
  /** @internal */
180
184
  export type IpAddressRegion$Outbound = {
181
185
  id?: string | undefined;
182
186
  name?: string | undefined;
183
- location?: Location$Outbound | undefined;
187
+ location?: IpAddressLocation$Outbound | undefined;
184
188
  };
185
189
 
186
190
  /** @internal */
@@ -191,7 +195,7 @@ export const IpAddressRegion$outboundSchema: z.ZodType<
191
195
  > = z.object({
192
196
  id: z.string().optional(),
193
197
  name: z.string().optional(),
194
- location: z.lazy(() => Location$outboundSchema).optional(),
198
+ location: z.lazy(() => IpAddressLocation$outboundSchema).optional(),
195
199
  });
196
200
 
197
201
  export function ipAddressRegionToJSON(
@@ -14,8 +14,9 @@ import * as models from "../index.js";
14
14
  * The status to filter by
15
15
  */
16
16
  export const FilterStatus = {
17
- Provisioning: "provisioning",
17
+ Configuring: "configuring",
18
18
  Active: "active",
19
+ Moving: "moving",
19
20
  Releasing: "releasing",
20
21
  Error: "error",
21
22
  } as const;
@@ -2,18 +2,18 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { elasticIPsCreateElasticIp } from "../funcs/elasticIPsCreateElasticIp.js";
6
- import { elasticIPsDeleteElasticIp } from "../funcs/elasticIPsDeleteElasticIp.js";
7
- import { elasticIPsGetElasticIp } from "../funcs/elasticIPsGetElasticIp.js";
8
- import { elasticIPsListElasticIps } from "../funcs/elasticIPsListElasticIps.js";
9
- import { elasticIPsUpdateElasticIp } from "../funcs/elasticIPsUpdateElasticIp.js";
5
+ import { elasticIpsCreateElasticIp } from "../funcs/elasticIpsCreateElasticIp.js";
6
+ import { elasticIpsDeleteElasticIp } from "../funcs/elasticIpsDeleteElasticIp.js";
7
+ import { elasticIpsGetElasticIp } from "../funcs/elasticIpsGetElasticIp.js";
8
+ import { elasticIpsListElasticIps } from "../funcs/elasticIpsListElasticIps.js";
9
+ import { elasticIpsUpdateElasticIp } from "../funcs/elasticIpsUpdateElasticIp.js";
10
10
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
11
  import * as models from "../models/index.js";
12
12
  import * as operations from "../models/operations/index.js";
13
13
  import { unwrapAsync } from "../types/fp.js";
14
14
  import { PageIterator, unwrapResultIterator } from "../types/operations.js";
15
15
 
16
- export class ElasticIPs extends ClientSDK {
16
+ export class ElasticIps extends ClientSDK {
17
17
  /**
18
18
  * List Elastic IPs
19
19
  *
@@ -28,7 +28,7 @@ export class ElasticIPs extends ClientSDK {
28
28
  ): Promise<
29
29
  PageIterator<operations.ListElasticIpsResponse, { page: number }>
30
30
  > {
31
- return unwrapResultIterator(elasticIPsListElasticIps(
31
+ return unwrapResultIterator(elasticIpsListElasticIps(
32
32
  this,
33
33
  request,
34
34
  options,
@@ -39,7 +39,7 @@ export class ElasticIPs extends ClientSDK {
39
39
  * Create an Elastic IP
40
40
  *
41
41
  * @remarks
42
- * 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.
42
+ * 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.
43
43
  *
44
44
  * **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.
45
45
  */
@@ -47,7 +47,7 @@ export class ElasticIPs extends ClientSDK {
47
47
  request: models.CreateElasticIp,
48
48
  options?: RequestOptions,
49
49
  ): Promise<models.ElasticIp> {
50
- return unwrapAsync(elasticIPsCreateElasticIp(
50
+ return unwrapAsync(elasticIpsCreateElasticIp(
51
51
  this,
52
52
  request,
53
53
  options,
@@ -66,7 +66,7 @@ export class ElasticIPs extends ClientSDK {
66
66
  request: operations.GetElasticIpRequest,
67
67
  options?: RequestOptions,
68
68
  ): Promise<models.ElasticIp> {
69
- return unwrapAsync(elasticIPsGetElasticIp(
69
+ return unwrapAsync(elasticIpsGetElasticIp(
70
70
  this,
71
71
  request,
72
72
  options,
@@ -85,7 +85,7 @@ export class ElasticIPs extends ClientSDK {
85
85
  request: operations.DeleteElasticIpRequest,
86
86
  options?: RequestOptions,
87
87
  ): Promise<void> {
88
- return unwrapAsync(elasticIPsDeleteElasticIp(
88
+ return unwrapAsync(elasticIpsDeleteElasticIp(
89
89
  this,
90
90
  request,
91
91
  options,
@@ -104,7 +104,7 @@ export class ElasticIPs extends ClientSDK {
104
104
  request: operations.UpdateElasticIpRequest,
105
105
  options?: RequestOptions,
106
106
  ): Promise<models.ElasticIp> {
107
- return unwrapAsync(elasticIPsUpdateElasticIp(
107
+ return unwrapAsync(elasticIpsUpdateElasticIp(
108
108
  this,
109
109
  request,
110
110
  options,
package/src/sdk/sdk.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  import { ClientSDK } from "../lib/sdks.js";
6
6
  import { ApiKeys } from "./apikeys.js";
7
7
  import { Billing } from "./billing.js";
8
- import { ElasticIPs } from "./elasticips.js";
8
+ import { ElasticIps } from "./elasticips.js";
9
9
  import { Events } from "./events.js";
10
10
  import { Firewalls } from "./firewalls.js";
11
11
  import { IpAddresses } from "./ipaddresses.js";
@@ -50,9 +50,9 @@ export class Latitudesh extends ClientSDK {
50
50
  return (this._firewalls ??= new Firewalls(this._options));
51
51
  }
52
52
 
53
- private _elasticIPs?: ElasticIPs;
54
- get elasticIPs(): ElasticIPs {
55
- return (this._elasticIPs ??= new ElasticIPs(this._options));
53
+ private _elasticIps?: ElasticIps;
54
+ get elasticIps(): ElasticIps {
55
+ return (this._elasticIps ??= new ElasticIps(this._options));
56
56
  }
57
57
 
58
58
  private _ipAddresses?: IpAddresses;