latitudesh-typescript-sdk 0.8.21 → 0.8.23

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 (123) hide show
  1. package/README.md +3 -1
  2. package/bin/mcp-server.js +32668 -38228
  3. package/bin/mcp-server.js.map +122 -208
  4. package/dist/commonjs/funcs/blockStoragePostStorageVolumesMap.js +4 -2
  5. package/dist/commonjs/funcs/blockStoragePostStorageVolumesMap.js.map +1 -1
  6. package/dist/commonjs/funcs/blockStoragePostStorageVolumesUnmap.d.ts +17 -0
  7. package/dist/commonjs/funcs/blockStoragePostStorageVolumesUnmap.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/blockStoragePostStorageVolumesUnmap.js +122 -0
  9. package/dist/commonjs/funcs/blockStoragePostStorageVolumesUnmap.js.map +1 -0
  10. package/dist/commonjs/funcs/firewallsGetAllFirewallAssignments.d.ts +1 -1
  11. package/dist/commonjs/funcs/firewallsGetAllFirewallAssignments.js +1 -1
  12. package/dist/commonjs/funcs/serversList.js +14 -0
  13. package/dist/commonjs/funcs/serversList.js.map +1 -1
  14. package/dist/commonjs/lib/config.d.ts +3 -3
  15. package/dist/commonjs/lib/config.js +3 -3
  16. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  17. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  18. package/dist/commonjs/mcp-server/server.js +3 -1
  19. package/dist/commonjs/mcp-server/server.js.map +1 -1
  20. package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesUnmap.d.ts +8 -0
  21. package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesUnmap.d.ts.map +1 -0
  22. package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesUnmap.js +64 -0
  23. package/dist/commonjs/mcp-server/tools/blockStoragePostStorageVolumesUnmap.js.map +1 -0
  24. package/dist/commonjs/mcp-server/tools/firewallsGetAllFirewallAssignments.js +1 -1
  25. package/dist/commonjs/mcp-server/tools/firewallsGetAllFirewallAssignments.js.map +1 -1
  26. package/dist/commonjs/models/operations/createfirewallassignment.d.ts +1 -1
  27. package/dist/commonjs/models/operations/getservers.d.ts +72 -2
  28. package/dist/commonjs/models/operations/getservers.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/getservers.js +56 -0
  30. package/dist/commonjs/models/operations/getservers.js.map +1 -1
  31. package/dist/commonjs/models/operations/index.d.ts +1 -0
  32. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  33. package/dist/commonjs/models/operations/index.js +1 -0
  34. package/dist/commonjs/models/operations/index.js.map +1 -1
  35. package/dist/commonjs/models/operations/poststoragevolumesmap.d.ts +29 -29
  36. package/dist/commonjs/models/operations/poststoragevolumesmap.d.ts.map +1 -1
  37. package/dist/commonjs/models/operations/poststoragevolumesmap.js +36 -36
  38. package/dist/commonjs/models/operations/poststoragevolumesmap.js.map +1 -1
  39. package/dist/commonjs/models/operations/poststoragevolumesunmap.d.ts +48 -0
  40. package/dist/commonjs/models/operations/poststoragevolumesunmap.d.ts.map +1 -0
  41. package/dist/commonjs/models/operations/poststoragevolumesunmap.js +89 -0
  42. package/dist/commonjs/models/operations/poststoragevolumesunmap.js.map +1 -0
  43. package/dist/commonjs/models/serverregionresourcedata.d.ts +2 -0
  44. package/dist/commonjs/models/serverregionresourcedata.d.ts.map +1 -1
  45. package/dist/commonjs/models/serverregionresourcedata.js +4 -0
  46. package/dist/commonjs/models/serverregionresourcedata.js.map +1 -1
  47. package/dist/commonjs/models/volumedata.d.ts +1 -1
  48. package/dist/commonjs/sdk/blockstorage.d.ts +7 -0
  49. package/dist/commonjs/sdk/blockstorage.d.ts.map +1 -1
  50. package/dist/commonjs/sdk/blockstorage.js +10 -0
  51. package/dist/commonjs/sdk/blockstorage.js.map +1 -1
  52. package/dist/commonjs/sdk/firewalls.d.ts +1 -1
  53. package/dist/commonjs/sdk/firewalls.js +1 -1
  54. package/dist/esm/funcs/blockStoragePostStorageVolumesMap.js +4 -2
  55. package/dist/esm/funcs/blockStoragePostStorageVolumesMap.js.map +1 -1
  56. package/dist/esm/funcs/blockStoragePostStorageVolumesUnmap.d.ts +17 -0
  57. package/dist/esm/funcs/blockStoragePostStorageVolumesUnmap.d.ts.map +1 -0
  58. package/dist/esm/funcs/blockStoragePostStorageVolumesUnmap.js +86 -0
  59. package/dist/esm/funcs/blockStoragePostStorageVolumesUnmap.js.map +1 -0
  60. package/dist/esm/funcs/firewallsGetAllFirewallAssignments.d.ts +1 -1
  61. package/dist/esm/funcs/firewallsGetAllFirewallAssignments.js +1 -1
  62. package/dist/esm/funcs/serversList.js +14 -0
  63. package/dist/esm/funcs/serversList.js.map +1 -1
  64. package/dist/esm/lib/config.d.ts +3 -3
  65. package/dist/esm/lib/config.js +3 -3
  66. package/dist/esm/mcp-server/mcp-server.js +1 -1
  67. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  68. package/dist/esm/mcp-server/server.js +3 -1
  69. package/dist/esm/mcp-server/server.js.map +1 -1
  70. package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesUnmap.d.ts +8 -0
  71. package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesUnmap.d.ts.map +1 -0
  72. package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesUnmap.js +28 -0
  73. package/dist/esm/mcp-server/tools/blockStoragePostStorageVolumesUnmap.js.map +1 -0
  74. package/dist/esm/mcp-server/tools/firewallsGetAllFirewallAssignments.js +1 -1
  75. package/dist/esm/mcp-server/tools/firewallsGetAllFirewallAssignments.js.map +1 -1
  76. package/dist/esm/models/operations/createfirewallassignment.d.ts +1 -1
  77. package/dist/esm/models/operations/getservers.d.ts +72 -2
  78. package/dist/esm/models/operations/getservers.d.ts.map +1 -1
  79. package/dist/esm/models/operations/getservers.js +56 -0
  80. package/dist/esm/models/operations/getservers.js.map +1 -1
  81. package/dist/esm/models/operations/index.d.ts +1 -0
  82. package/dist/esm/models/operations/index.d.ts.map +1 -1
  83. package/dist/esm/models/operations/index.js +1 -0
  84. package/dist/esm/models/operations/index.js.map +1 -1
  85. package/dist/esm/models/operations/poststoragevolumesmap.d.ts +29 -29
  86. package/dist/esm/models/operations/poststoragevolumesmap.d.ts.map +1 -1
  87. package/dist/esm/models/operations/poststoragevolumesmap.js +29 -29
  88. package/dist/esm/models/operations/poststoragevolumesmap.js.map +1 -1
  89. package/dist/esm/models/operations/poststoragevolumesunmap.d.ts +48 -0
  90. package/dist/esm/models/operations/poststoragevolumesunmap.d.ts.map +1 -0
  91. package/dist/esm/models/operations/poststoragevolumesunmap.js +47 -0
  92. package/dist/esm/models/operations/poststoragevolumesunmap.js.map +1 -0
  93. package/dist/esm/models/serverregionresourcedata.d.ts +2 -0
  94. package/dist/esm/models/serverregionresourcedata.d.ts.map +1 -1
  95. package/dist/esm/models/serverregionresourcedata.js +4 -0
  96. package/dist/esm/models/serverregionresourcedata.js.map +1 -1
  97. package/dist/esm/models/volumedata.d.ts +1 -1
  98. package/dist/esm/sdk/blockstorage.d.ts +7 -0
  99. package/dist/esm/sdk/blockstorage.d.ts.map +1 -1
  100. package/dist/esm/sdk/blockstorage.js +10 -0
  101. package/dist/esm/sdk/blockstorage.js.map +1 -1
  102. package/dist/esm/sdk/firewalls.d.ts +1 -1
  103. package/dist/esm/sdk/firewalls.js +1 -1
  104. package/jsr.json +1 -1
  105. package/package.json +6 -6
  106. package/src/funcs/blockStoragePostStorageVolumesMap.ts +4 -2
  107. package/src/funcs/blockStoragePostStorageVolumesUnmap.ts +170 -0
  108. package/src/funcs/firewallsGetAllFirewallAssignments.ts +1 -1
  109. package/src/funcs/serversList.ts +14 -0
  110. package/src/lib/config.ts +3 -3
  111. package/src/mcp-server/mcp-server.ts +1 -1
  112. package/src/mcp-server/server.ts +3 -1
  113. package/src/mcp-server/tools/blockStoragePostStorageVolumesUnmap.ts +39 -0
  114. package/src/mcp-server/tools/firewallsGetAllFirewallAssignments.ts +1 -1
  115. package/src/models/operations/createfirewallassignment.ts +1 -1
  116. package/src/models/operations/getservers.ts +128 -2
  117. package/src/models/operations/index.ts +1 -0
  118. package/src/models/operations/poststoragevolumesmap.ts +68 -68
  119. package/src/models/operations/poststoragevolumesunmap.ts +146 -0
  120. package/src/models/serverregionresourcedata.ts +6 -0
  121. package/src/models/volumedata.ts +1 -1
  122. package/src/sdk/blockstorage.ts +18 -0
  123. package/src/sdk/firewalls.ts +1 -1
@@ -10,27 +10,27 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  import * as models from "../index.js";
12
12
 
13
- export const PostStorageVolumesMapType = {
13
+ export const PostStorageVolumesMapType2 = {
14
14
  Volumes: "volumes",
15
15
  } as const;
16
- export type PostStorageVolumesMapType = ClosedEnum<
17
- typeof PostStorageVolumesMapType
16
+ export type PostStorageVolumesMapType2 = ClosedEnum<
17
+ typeof PostStorageVolumesMapType2
18
18
  >;
19
19
 
20
- export type PostStorageVolumesMapAttributes = {
20
+ export type PostStorageVolumesMapAttributes2 = {
21
21
  /**
22
22
  * ID of the server that will access the volume. The server must belong to the same project and location as the volume, and must be eligible for bonding.
23
23
  */
24
24
  serverId: string;
25
25
  };
26
26
 
27
- export type PostStorageVolumesMapData = {
28
- type: PostStorageVolumesMapType;
29
- attributes: PostStorageVolumesMapAttributes;
27
+ export type PostStorageVolumesMapData2 = {
28
+ type: PostStorageVolumesMapType2;
29
+ attributes: PostStorageVolumesMapAttributes2;
30
30
  };
31
31
 
32
- export type PostStorageVolumesMapRequestBody = {
33
- data: PostStorageVolumesMapData;
32
+ export type PostStorageVolumesMapRequestBody2 = {
33
+ data: PostStorageVolumesMapData2;
34
34
  };
35
35
 
36
36
  export type PostStorageVolumesMapRequest = {
@@ -38,7 +38,7 @@ export type PostStorageVolumesMapRequest = {
38
38
  * Volume ID
39
39
  */
40
40
  id: string;
41
- requestBody: PostStorageVolumesMapRequestBody;
41
+ requestBody: PostStorageVolumesMapRequestBody2;
42
42
  };
43
43
 
44
44
  export type PostStorageVolumesMapMeta = {};
@@ -52,17 +52,17 @@ export type PostStorageVolumesMapResponse = {
52
52
  };
53
53
 
54
54
  /** @internal */
55
- export const PostStorageVolumesMapType$inboundSchema: z.ZodNativeEnum<
56
- typeof PostStorageVolumesMapType
57
- > = z.nativeEnum(PostStorageVolumesMapType);
55
+ export const PostStorageVolumesMapType2$inboundSchema: z.ZodNativeEnum<
56
+ typeof PostStorageVolumesMapType2
57
+ > = z.nativeEnum(PostStorageVolumesMapType2);
58
58
  /** @internal */
59
- export const PostStorageVolumesMapType$outboundSchema: z.ZodNativeEnum<
60
- typeof PostStorageVolumesMapType
61
- > = PostStorageVolumesMapType$inboundSchema;
59
+ export const PostStorageVolumesMapType2$outboundSchema: z.ZodNativeEnum<
60
+ typeof PostStorageVolumesMapType2
61
+ > = PostStorageVolumesMapType2$inboundSchema;
62
62
 
63
63
  /** @internal */
64
- export const PostStorageVolumesMapAttributes$inboundSchema: z.ZodType<
65
- PostStorageVolumesMapAttributes,
64
+ export const PostStorageVolumesMapAttributes2$inboundSchema: z.ZodType<
65
+ PostStorageVolumesMapAttributes2,
66
66
  z.ZodTypeDef,
67
67
  unknown
68
68
  > = z.object({
@@ -73,15 +73,15 @@ export const PostStorageVolumesMapAttributes$inboundSchema: z.ZodType<
73
73
  });
74
74
  });
75
75
  /** @internal */
76
- export type PostStorageVolumesMapAttributes$Outbound = {
76
+ export type PostStorageVolumesMapAttributes2$Outbound = {
77
77
  server_id: string;
78
78
  };
79
79
 
80
80
  /** @internal */
81
- export const PostStorageVolumesMapAttributes$outboundSchema: z.ZodType<
82
- PostStorageVolumesMapAttributes$Outbound,
81
+ export const PostStorageVolumesMapAttributes2$outboundSchema: z.ZodType<
82
+ PostStorageVolumesMapAttributes2$Outbound,
83
83
  z.ZodTypeDef,
84
- PostStorageVolumesMapAttributes
84
+ PostStorageVolumesMapAttributes2
85
85
  > = z.object({
86
86
  serverId: z.string(),
87
87
  }).transform((v) => {
@@ -90,105 +90,105 @@ export const PostStorageVolumesMapAttributes$outboundSchema: z.ZodType<
90
90
  });
91
91
  });
92
92
 
93
- export function postStorageVolumesMapAttributesToJSON(
94
- postStorageVolumesMapAttributes: PostStorageVolumesMapAttributes,
93
+ export function postStorageVolumesMapAttributes2ToJSON(
94
+ postStorageVolumesMapAttributes2: PostStorageVolumesMapAttributes2,
95
95
  ): string {
96
96
  return JSON.stringify(
97
- PostStorageVolumesMapAttributes$outboundSchema.parse(
98
- postStorageVolumesMapAttributes,
97
+ PostStorageVolumesMapAttributes2$outboundSchema.parse(
98
+ postStorageVolumesMapAttributes2,
99
99
  ),
100
100
  );
101
101
  }
102
- export function postStorageVolumesMapAttributesFromJSON(
102
+ export function postStorageVolumesMapAttributes2FromJSON(
103
103
  jsonString: string,
104
- ): SafeParseResult<PostStorageVolumesMapAttributes, SDKValidationError> {
104
+ ): SafeParseResult<PostStorageVolumesMapAttributes2, SDKValidationError> {
105
105
  return safeParse(
106
106
  jsonString,
107
- (x) => PostStorageVolumesMapAttributes$inboundSchema.parse(JSON.parse(x)),
108
- `Failed to parse 'PostStorageVolumesMapAttributes' from JSON`,
107
+ (x) => PostStorageVolumesMapAttributes2$inboundSchema.parse(JSON.parse(x)),
108
+ `Failed to parse 'PostStorageVolumesMapAttributes2' from JSON`,
109
109
  );
110
110
  }
111
111
 
112
112
  /** @internal */
113
- export const PostStorageVolumesMapData$inboundSchema: z.ZodType<
114
- PostStorageVolumesMapData,
113
+ export const PostStorageVolumesMapData2$inboundSchema: z.ZodType<
114
+ PostStorageVolumesMapData2,
115
115
  z.ZodTypeDef,
116
116
  unknown
117
117
  > = z.object({
118
- type: PostStorageVolumesMapType$inboundSchema,
119
- attributes: z.lazy(() => PostStorageVolumesMapAttributes$inboundSchema),
118
+ type: PostStorageVolumesMapType2$inboundSchema,
119
+ attributes: z.lazy(() => PostStorageVolumesMapAttributes2$inboundSchema),
120
120
  });
121
121
  /** @internal */
122
- export type PostStorageVolumesMapData$Outbound = {
122
+ export type PostStorageVolumesMapData2$Outbound = {
123
123
  type: string;
124
- attributes: PostStorageVolumesMapAttributes$Outbound;
124
+ attributes: PostStorageVolumesMapAttributes2$Outbound;
125
125
  };
126
126
 
127
127
  /** @internal */
128
- export const PostStorageVolumesMapData$outboundSchema: z.ZodType<
129
- PostStorageVolumesMapData$Outbound,
128
+ export const PostStorageVolumesMapData2$outboundSchema: z.ZodType<
129
+ PostStorageVolumesMapData2$Outbound,
130
130
  z.ZodTypeDef,
131
- PostStorageVolumesMapData
131
+ PostStorageVolumesMapData2
132
132
  > = z.object({
133
- type: PostStorageVolumesMapType$outboundSchema,
134
- attributes: z.lazy(() => PostStorageVolumesMapAttributes$outboundSchema),
133
+ type: PostStorageVolumesMapType2$outboundSchema,
134
+ attributes: z.lazy(() => PostStorageVolumesMapAttributes2$outboundSchema),
135
135
  });
136
136
 
137
- export function postStorageVolumesMapDataToJSON(
138
- postStorageVolumesMapData: PostStorageVolumesMapData,
137
+ export function postStorageVolumesMapData2ToJSON(
138
+ postStorageVolumesMapData2: PostStorageVolumesMapData2,
139
139
  ): string {
140
140
  return JSON.stringify(
141
- PostStorageVolumesMapData$outboundSchema.parse(postStorageVolumesMapData),
141
+ PostStorageVolumesMapData2$outboundSchema.parse(postStorageVolumesMapData2),
142
142
  );
143
143
  }
144
- export function postStorageVolumesMapDataFromJSON(
144
+ export function postStorageVolumesMapData2FromJSON(
145
145
  jsonString: string,
146
- ): SafeParseResult<PostStorageVolumesMapData, SDKValidationError> {
146
+ ): SafeParseResult<PostStorageVolumesMapData2, SDKValidationError> {
147
147
  return safeParse(
148
148
  jsonString,
149
- (x) => PostStorageVolumesMapData$inboundSchema.parse(JSON.parse(x)),
150
- `Failed to parse 'PostStorageVolumesMapData' from JSON`,
149
+ (x) => PostStorageVolumesMapData2$inboundSchema.parse(JSON.parse(x)),
150
+ `Failed to parse 'PostStorageVolumesMapData2' from JSON`,
151
151
  );
152
152
  }
153
153
 
154
154
  /** @internal */
155
- export const PostStorageVolumesMapRequestBody$inboundSchema: z.ZodType<
156
- PostStorageVolumesMapRequestBody,
155
+ export const PostStorageVolumesMapRequestBody2$inboundSchema: z.ZodType<
156
+ PostStorageVolumesMapRequestBody2,
157
157
  z.ZodTypeDef,
158
158
  unknown
159
159
  > = z.object({
160
- data: z.lazy(() => PostStorageVolumesMapData$inboundSchema),
160
+ data: z.lazy(() => PostStorageVolumesMapData2$inboundSchema),
161
161
  });
162
162
  /** @internal */
163
- export type PostStorageVolumesMapRequestBody$Outbound = {
164
- data: PostStorageVolumesMapData$Outbound;
163
+ export type PostStorageVolumesMapRequestBody2$Outbound = {
164
+ data: PostStorageVolumesMapData2$Outbound;
165
165
  };
166
166
 
167
167
  /** @internal */
168
- export const PostStorageVolumesMapRequestBody$outboundSchema: z.ZodType<
169
- PostStorageVolumesMapRequestBody$Outbound,
168
+ export const PostStorageVolumesMapRequestBody2$outboundSchema: z.ZodType<
169
+ PostStorageVolumesMapRequestBody2$Outbound,
170
170
  z.ZodTypeDef,
171
- PostStorageVolumesMapRequestBody
171
+ PostStorageVolumesMapRequestBody2
172
172
  > = z.object({
173
- data: z.lazy(() => PostStorageVolumesMapData$outboundSchema),
173
+ data: z.lazy(() => PostStorageVolumesMapData2$outboundSchema),
174
174
  });
175
175
 
176
- export function postStorageVolumesMapRequestBodyToJSON(
177
- postStorageVolumesMapRequestBody: PostStorageVolumesMapRequestBody,
176
+ export function postStorageVolumesMapRequestBody2ToJSON(
177
+ postStorageVolumesMapRequestBody2: PostStorageVolumesMapRequestBody2,
178
178
  ): string {
179
179
  return JSON.stringify(
180
- PostStorageVolumesMapRequestBody$outboundSchema.parse(
181
- postStorageVolumesMapRequestBody,
180
+ PostStorageVolumesMapRequestBody2$outboundSchema.parse(
181
+ postStorageVolumesMapRequestBody2,
182
182
  ),
183
183
  );
184
184
  }
185
- export function postStorageVolumesMapRequestBodyFromJSON(
185
+ export function postStorageVolumesMapRequestBody2FromJSON(
186
186
  jsonString: string,
187
- ): SafeParseResult<PostStorageVolumesMapRequestBody, SDKValidationError> {
187
+ ): SafeParseResult<PostStorageVolumesMapRequestBody2, SDKValidationError> {
188
188
  return safeParse(
189
189
  jsonString,
190
- (x) => PostStorageVolumesMapRequestBody$inboundSchema.parse(JSON.parse(x)),
191
- `Failed to parse 'PostStorageVolumesMapRequestBody' from JSON`,
190
+ (x) => PostStorageVolumesMapRequestBody2$inboundSchema.parse(JSON.parse(x)),
191
+ `Failed to parse 'PostStorageVolumesMapRequestBody2' from JSON`,
192
192
  );
193
193
  }
194
194
 
@@ -199,7 +199,7 @@ export const PostStorageVolumesMapRequest$inboundSchema: z.ZodType<
199
199
  unknown
200
200
  > = z.object({
201
201
  id: z.string(),
202
- RequestBody: z.lazy(() => PostStorageVolumesMapRequestBody$inboundSchema),
202
+ RequestBody: z.lazy(() => PostStorageVolumesMapRequestBody2$inboundSchema),
203
203
  }).transform((v) => {
204
204
  return remap$(v, {
205
205
  "RequestBody": "requestBody",
@@ -208,7 +208,7 @@ export const PostStorageVolumesMapRequest$inboundSchema: z.ZodType<
208
208
  /** @internal */
209
209
  export type PostStorageVolumesMapRequest$Outbound = {
210
210
  id: string;
211
- RequestBody: PostStorageVolumesMapRequestBody$Outbound;
211
+ RequestBody: PostStorageVolumesMapRequestBody2$Outbound;
212
212
  };
213
213
 
214
214
  /** @internal */
@@ -218,7 +218,7 @@ export const PostStorageVolumesMapRequest$outboundSchema: z.ZodType<
218
218
  PostStorageVolumesMapRequest
219
219
  > = z.object({
220
220
  id: z.string(),
221
- requestBody: z.lazy(() => PostStorageVolumesMapRequestBody$outboundSchema),
221
+ requestBody: z.lazy(() => PostStorageVolumesMapRequestBody2$outboundSchema),
222
222
  }).transform((v) => {
223
223
  return remap$(v, {
224
224
  requestBody: "RequestBody",
@@ -0,0 +1,146 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import * as models from "../index.js";
10
+
11
+ export type PostStorageVolumesUnmapRequest = {
12
+ /**
13
+ * Volume ID
14
+ */
15
+ id: string;
16
+ };
17
+
18
+ export type PostStorageVolumesUnmapMeta = {};
19
+
20
+ /**
21
+ * Accepted
22
+ */
23
+ export type PostStorageVolumesUnmapResponse = {
24
+ data?: models.VolumeData | undefined;
25
+ meta?: PostStorageVolumesUnmapMeta | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const PostStorageVolumesUnmapRequest$inboundSchema: z.ZodType<
30
+ PostStorageVolumesUnmapRequest,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ id: z.string(),
35
+ });
36
+ /** @internal */
37
+ export type PostStorageVolumesUnmapRequest$Outbound = {
38
+ id: string;
39
+ };
40
+
41
+ /** @internal */
42
+ export const PostStorageVolumesUnmapRequest$outboundSchema: z.ZodType<
43
+ PostStorageVolumesUnmapRequest$Outbound,
44
+ z.ZodTypeDef,
45
+ PostStorageVolumesUnmapRequest
46
+ > = z.object({
47
+ id: z.string(),
48
+ });
49
+
50
+ export function postStorageVolumesUnmapRequestToJSON(
51
+ postStorageVolumesUnmapRequest: PostStorageVolumesUnmapRequest,
52
+ ): string {
53
+ return JSON.stringify(
54
+ PostStorageVolumesUnmapRequest$outboundSchema.parse(
55
+ postStorageVolumesUnmapRequest,
56
+ ),
57
+ );
58
+ }
59
+ export function postStorageVolumesUnmapRequestFromJSON(
60
+ jsonString: string,
61
+ ): SafeParseResult<PostStorageVolumesUnmapRequest, SDKValidationError> {
62
+ return safeParse(
63
+ jsonString,
64
+ (x) => PostStorageVolumesUnmapRequest$inboundSchema.parse(JSON.parse(x)),
65
+ `Failed to parse 'PostStorageVolumesUnmapRequest' from JSON`,
66
+ );
67
+ }
68
+
69
+ /** @internal */
70
+ export const PostStorageVolumesUnmapMeta$inboundSchema: z.ZodType<
71
+ PostStorageVolumesUnmapMeta,
72
+ z.ZodTypeDef,
73
+ unknown
74
+ > = z.object({});
75
+ /** @internal */
76
+ export type PostStorageVolumesUnmapMeta$Outbound = {};
77
+
78
+ /** @internal */
79
+ export const PostStorageVolumesUnmapMeta$outboundSchema: z.ZodType<
80
+ PostStorageVolumesUnmapMeta$Outbound,
81
+ z.ZodTypeDef,
82
+ PostStorageVolumesUnmapMeta
83
+ > = z.object({});
84
+
85
+ export function postStorageVolumesUnmapMetaToJSON(
86
+ postStorageVolumesUnmapMeta: PostStorageVolumesUnmapMeta,
87
+ ): string {
88
+ return JSON.stringify(
89
+ PostStorageVolumesUnmapMeta$outboundSchema.parse(
90
+ postStorageVolumesUnmapMeta,
91
+ ),
92
+ );
93
+ }
94
+ export function postStorageVolumesUnmapMetaFromJSON(
95
+ jsonString: string,
96
+ ): SafeParseResult<PostStorageVolumesUnmapMeta, SDKValidationError> {
97
+ return safeParse(
98
+ jsonString,
99
+ (x) => PostStorageVolumesUnmapMeta$inboundSchema.parse(JSON.parse(x)),
100
+ `Failed to parse 'PostStorageVolumesUnmapMeta' from JSON`,
101
+ );
102
+ }
103
+
104
+ /** @internal */
105
+ export const PostStorageVolumesUnmapResponse$inboundSchema: z.ZodType<
106
+ PostStorageVolumesUnmapResponse,
107
+ z.ZodTypeDef,
108
+ unknown
109
+ > = z.object({
110
+ data: models.VolumeData$inboundSchema.optional(),
111
+ meta: z.lazy(() => PostStorageVolumesUnmapMeta$inboundSchema).optional(),
112
+ });
113
+ /** @internal */
114
+ export type PostStorageVolumesUnmapResponse$Outbound = {
115
+ data?: models.VolumeData$Outbound | undefined;
116
+ meta?: PostStorageVolumesUnmapMeta$Outbound | undefined;
117
+ };
118
+
119
+ /** @internal */
120
+ export const PostStorageVolumesUnmapResponse$outboundSchema: z.ZodType<
121
+ PostStorageVolumesUnmapResponse$Outbound,
122
+ z.ZodTypeDef,
123
+ PostStorageVolumesUnmapResponse
124
+ > = z.object({
125
+ data: models.VolumeData$outboundSchema.optional(),
126
+ meta: z.lazy(() => PostStorageVolumesUnmapMeta$outboundSchema).optional(),
127
+ });
128
+
129
+ export function postStorageVolumesUnmapResponseToJSON(
130
+ postStorageVolumesUnmapResponse: PostStorageVolumesUnmapResponse,
131
+ ): string {
132
+ return JSON.stringify(
133
+ PostStorageVolumesUnmapResponse$outboundSchema.parse(
134
+ postStorageVolumesUnmapResponse,
135
+ ),
136
+ );
137
+ }
138
+ export function postStorageVolumesUnmapResponseFromJSON(
139
+ jsonString: string,
140
+ ): SafeParseResult<PostStorageVolumesUnmapResponse, SDKValidationError> {
141
+ return safeParse(
142
+ jsonString,
143
+ (x) => PostStorageVolumesUnmapResponse$inboundSchema.parse(JSON.parse(x)),
144
+ `Failed to parse 'PostStorageVolumesUnmapResponse' from JSON`,
145
+ );
146
+ }
@@ -14,6 +14,7 @@ export type ServerRegionResourceDataSite = {
14
14
  slug?: string | undefined;
15
15
  facility?: string | undefined;
16
16
  rackId?: string | undefined;
17
+ rackName?: string | null | undefined;
17
18
  };
18
19
 
19
20
  export type ServerRegionResourceData = {
@@ -33,9 +34,11 @@ export const ServerRegionResourceDataSite$inboundSchema: z.ZodType<
33
34
  slug: z.string().optional(),
34
35
  facility: z.string().optional(),
35
36
  rack_id: z.string().optional(),
37
+ rack_name: z.nullable(z.string()).optional(),
36
38
  }).transform((v) => {
37
39
  return remap$(v, {
38
40
  "rack_id": "rackId",
41
+ "rack_name": "rackName",
39
42
  });
40
43
  });
41
44
  /** @internal */
@@ -45,6 +48,7 @@ export type ServerRegionResourceDataSite$Outbound = {
45
48
  slug?: string | undefined;
46
49
  facility?: string | undefined;
47
50
  rack_id?: string | undefined;
51
+ rack_name?: string | null | undefined;
48
52
  };
49
53
 
50
54
  /** @internal */
@@ -58,9 +62,11 @@ export const ServerRegionResourceDataSite$outboundSchema: z.ZodType<
58
62
  slug: z.string().optional(),
59
63
  facility: z.string().optional(),
60
64
  rackId: z.string().optional(),
65
+ rackName: z.nullable(z.string()).optional(),
61
66
  }).transform((v) => {
62
67
  return remap$(v, {
63
68
  rackId: "rack_id",
69
+ rackName: "rack_name",
64
70
  });
65
71
  });
66
72
 
@@ -35,7 +35,7 @@ export type Initiator = {
35
35
  */
36
36
  export type Block = {
37
37
  /**
38
- * Mapping lifecycle state: "mapping" while the mapping is being applied, "mapped" once the server can access the volume, or "failed". Mapping is asynchronous, so poll the volume until this reaches a terminal state.
38
+ * Mapping lifecycle state: "mapping" while the mapping is being applied, "mapped" once the server can access the volume, "unmapping" while the mapping is being removed, or "failed". Mapping and unmapping are asynchronous, so poll the volume until this reaches a terminal state. The block object becomes null once the volume is fully unmapped.
39
39
  */
40
40
  status?: string | null | undefined;
41
41
  /**
@@ -8,6 +8,7 @@ import { blockStorageGetStorageVolumes } from "../funcs/blockStorageGetStorageVo
8
8
  import { blockStoragePostStorageVolumes } from "../funcs/blockStoragePostStorageVolumes.js";
9
9
  import { blockStoragePostStorageVolumesMap } from "../funcs/blockStoragePostStorageVolumesMap.js";
10
10
  import { blockStoragePostStorageVolumesMount } from "../funcs/blockStoragePostStorageVolumesMount.js";
11
+ import { blockStoragePostStorageVolumesUnmap } from "../funcs/blockStoragePostStorageVolumesUnmap.js";
11
12
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
12
13
  import * as operations from "../models/operations/index.js";
13
14
  import { unwrapAsync } from "../types/fp.js";
@@ -114,4 +115,21 @@ export class BlockStorage extends ClientSDK {
114
115
  options,
115
116
  ));
116
117
  }
118
+
119
+ /**
120
+ * Unmap volume from server
121
+ *
122
+ * @remarks
123
+ * Unmaps a high performance volume from the server it is currently mapped to.
124
+ */
125
+ async postStorageVolumesUnmap(
126
+ request: operations.PostStorageVolumesUnmapRequest,
127
+ options?: RequestOptions,
128
+ ): Promise<operations.PostStorageVolumesUnmapResponse> {
129
+ return unwrapAsync(blockStoragePostStorageVolumesUnmap(
130
+ this,
131
+ request,
132
+ options,
133
+ ));
134
+ }
117
135
  }
@@ -27,7 +27,7 @@ export class Firewalls extends ClientSDK {
27
27
  * List firewall assignments
28
28
  *
29
29
  * @remarks
30
- * Returns a list of all servers and virtual machines assigned to one or more firewalls.
30
+ * Returns a list of all servers and virtual machines assigned to a firewall.
31
31
  */
32
32
  async getAllFirewallAssignments(
33
33
  request?: operations.GetAllFirewallAssignmentsRequest | undefined,