@scaleway/sdk 2.60.0 → 2.62.0

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 (179) hide show
  1. package/dist/api/account/index.gen.d.ts +2 -2
  2. package/dist/api/account/v2/index.gen.d.ts +1 -1
  3. package/dist/api/account/v3/api.gen.cjs +106 -0
  4. package/dist/api/account/v3/api.gen.d.ts +53 -1
  5. package/dist/api/account/v3/api.gen.js +108 -2
  6. package/dist/api/account/v3/index.gen.cjs +1 -0
  7. package/dist/api/account/v3/index.gen.d.ts +3 -3
  8. package/dist/api/account/v3/index.gen.js +2 -1
  9. package/dist/api/account/v3/marshalling.gen.cjs +71 -0
  10. package/dist/api/account/v3/marshalling.gen.d.ts +6 -1
  11. package/dist/api/account/v3/marshalling.gen.js +71 -0
  12. package/dist/api/account/v3/types.gen.d.ts +81 -0
  13. package/dist/api/account/v3/validation-rules.gen.cjs +22 -0
  14. package/dist/api/account/v3/validation-rules.gen.d.ts +19 -0
  15. package/dist/api/account/v3/validation-rules.gen.js +22 -0
  16. package/dist/api/applesilicon/index.gen.d.ts +1 -1
  17. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
  18. package/dist/api/audit_trail/index.gen.d.ts +1 -1
  19. package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +2 -2
  20. package/dist/api/baremetal/index.gen.d.ts +2 -2
  21. package/dist/api/baremetal/v1/api.utils.d.ts +2 -2
  22. package/dist/api/baremetal/v1/index.d.ts +4 -4
  23. package/dist/api/baremetal/v1/index.gen.d.ts +3 -3
  24. package/dist/api/baremetal/v3/index.gen.d.ts +2 -2
  25. package/dist/api/billing/index.gen.d.ts +2 -2
  26. package/dist/api/billing/v2alpha1/index.gen.d.ts +1 -1
  27. package/dist/api/billing/v2beta1/index.gen.d.ts +1 -1
  28. package/dist/api/block/index.gen.d.ts +1 -1
  29. package/dist/api/block/v1alpha1/index.gen.d.ts +3 -3
  30. package/dist/api/cockpit/index.gen.d.ts +2 -2
  31. package/dist/api/cockpit/v1/index.gen.d.ts +2 -2
  32. package/dist/api/cockpit/v1beta1/index.gen.d.ts +2 -2
  33. package/dist/api/container/index.gen.d.ts +1 -1
  34. package/dist/api/container/v1beta1/api.gen.cjs +6 -8
  35. package/dist/api/container/v1beta1/api.gen.d.ts +6 -8
  36. package/dist/api/container/v1beta1/api.gen.js +6 -8
  37. package/dist/api/container/v1beta1/index.gen.d.ts +3 -3
  38. package/dist/api/dedibox/index.gen.d.ts +1 -1
  39. package/dist/api/dedibox/v1/index.gen.d.ts +3 -3
  40. package/dist/api/document_db/index.gen.d.ts +1 -1
  41. package/dist/api/document_db/v1beta1/index.gen.d.ts +3 -3
  42. package/dist/api/domain/index.gen.d.ts +1 -1
  43. package/dist/api/domain/v2beta1/index.gen.d.ts +2 -2
  44. package/dist/api/edge_services/index.gen.d.ts +1 -1
  45. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +2 -2
  46. package/dist/api/flexibleip/index.gen.d.ts +1 -1
  47. package/dist/api/flexibleip/v1alpha1/index.gen.d.ts +3 -3
  48. package/dist/api/function/index.gen.d.ts +1 -1
  49. package/dist/api/function/v1beta1/index.gen.d.ts +3 -3
  50. package/dist/api/iam/index.gen.d.ts +1 -1
  51. package/dist/api/iam/v1alpha1/api.gen.cjs +46 -0
  52. package/dist/api/iam/v1alpha1/api.gen.d.ts +24 -1
  53. package/dist/api/iam/v1alpha1/api.gen.js +47 -1
  54. package/dist/api/iam/v1alpha1/index.gen.d.ts +3 -3
  55. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +27 -2
  56. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
  57. package/dist/api/iam/v1alpha1/marshalling.gen.js +28 -3
  58. package/dist/api/iam/v1alpha1/types.gen.d.ts +21 -5
  59. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +6 -0
  60. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +5 -0
  61. package/dist/api/iam/v1alpha1/validation-rules.gen.js +7 -1
  62. package/dist/api/index.d.ts +16 -16
  63. package/dist/api/index.gen.d.ts +41 -41
  64. package/dist/api/inference/index.gen.d.ts +1 -1
  65. package/dist/api/inference/v1beta1/index.gen.d.ts +3 -3
  66. package/dist/api/instance/index.gen.d.ts +1 -1
  67. package/dist/api/instance/v1/api.utils.d.ts +2 -2
  68. package/dist/api/instance/v1/index.d.ts +2 -2
  69. package/dist/api/instance/v1/index.gen.d.ts +2 -2
  70. package/dist/api/interlink/index.gen.d.ts +1 -1
  71. package/dist/api/interlink/v1beta1/index.gen.d.ts +2 -2
  72. package/dist/api/iot/index.gen.d.ts +1 -1
  73. package/dist/api/iot/v1/index.gen.d.ts +2 -2
  74. package/dist/api/ipam/index.gen.d.ts +1 -1
  75. package/dist/api/ipam/v1/index.gen.d.ts +2 -2
  76. package/dist/api/ipfs/index.gen.d.ts +1 -1
  77. package/dist/api/ipfs/v1alpha1/index.gen.d.ts +2 -2
  78. package/dist/api/jobs/index.gen.d.ts +1 -1
  79. package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -1
  80. package/dist/api/jobs/v1alpha1/api.gen.js +2 -1
  81. package/dist/api/jobs/v1alpha1/index.gen.d.ts +3 -3
  82. package/dist/api/jobs/v1alpha1/types.gen.d.ts +1 -0
  83. package/dist/api/k8s/index.gen.d.ts +1 -1
  84. package/dist/api/k8s/v1/api.utils.d.ts +1 -1
  85. package/dist/api/k8s/v1/index.d.ts +3 -3
  86. package/dist/api/k8s/v1/index.gen.d.ts +3 -3
  87. package/dist/api/key_manager/index.gen.d.ts +1 -1
  88. package/dist/api/key_manager/v1alpha1/index.gen.d.ts +1 -1
  89. package/dist/api/lb/index.gen.d.ts +1 -1
  90. package/dist/api/lb/v1/api.utils.d.ts +2 -2
  91. package/dist/api/lb/v1/index.d.ts +2 -2
  92. package/dist/api/lb/v1/index.gen.d.ts +2 -2
  93. package/dist/api/llm_inference/index.gen.d.ts +1 -1
  94. package/dist/api/llm_inference/v1beta1/index.gen.d.ts +3 -3
  95. package/dist/api/marketplace/index.gen.d.ts +1 -1
  96. package/dist/api/marketplace/v2/index.gen.d.ts +1 -1
  97. package/dist/api/mnq/index.gen.d.ts +1 -1
  98. package/dist/api/mnq/v1beta1/index.gen.d.ts +2 -2
  99. package/dist/api/mongodb/index.gen.d.ts +1 -1
  100. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +3 -3
  101. package/dist/api/qaas/index.gen.d.ts +1 -1
  102. package/dist/api/qaas/v1alpha1/index.gen.d.ts +3 -3
  103. package/dist/api/rdb/index.gen.d.ts +1 -1
  104. package/dist/api/rdb/v1/index.gen.d.ts +3 -3
  105. package/dist/api/redis/index.gen.d.ts +1 -1
  106. package/dist/api/redis/v1/index.gen.d.ts +2 -2
  107. package/dist/api/registry/index.gen.d.ts +1 -1
  108. package/dist/api/registry/v1/index.gen.d.ts +2 -2
  109. package/dist/api/secret/index.gen.d.ts +2 -2
  110. package/dist/api/secret/v1alpha1/index.gen.d.ts +1 -1
  111. package/dist/api/secret/v1beta1/index.gen.d.ts +2 -2
  112. package/dist/api/serverless_sqldb/index.gen.d.ts +1 -1
  113. package/dist/api/serverless_sqldb/v1alpha1/index.gen.d.ts +3 -3
  114. package/dist/api/tem/index.gen.d.ts +1 -1
  115. package/dist/api/tem/v1alpha1/api.gen.cjs +54 -0
  116. package/dist/api/tem/v1alpha1/api.gen.d.ts +27 -1
  117. package/dist/api/tem/v1alpha1/api.gen.js +55 -1
  118. package/dist/api/tem/v1alpha1/index.gen.d.ts +4 -4
  119. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +48 -0
  120. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +4 -1
  121. package/dist/api/tem/v1alpha1/marshalling.gen.js +48 -0
  122. package/dist/api/tem/v1alpha1/types.gen.d.ts +84 -1
  123. package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +16 -0
  124. package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +14 -0
  125. package/dist/api/tem/v1alpha1/validation-rules.gen.js +16 -0
  126. package/dist/api/test/index.gen.d.ts +1 -1
  127. package/dist/api/test/v1/index.gen.d.ts +2 -2
  128. package/dist/api/vpc/index.gen.d.ts +2 -2
  129. package/dist/api/vpc/v1/index.gen.d.ts +1 -1
  130. package/dist/api/vpc/v2/index.gen.d.ts +2 -2
  131. package/dist/api/vpcgw/index.gen.d.ts +2 -2
  132. package/dist/api/vpcgw/v1/index.gen.d.ts +2 -2
  133. package/dist/api/vpcgw/v2/api.gen.cjs +47 -0
  134. package/dist/api/vpcgw/v2/api.gen.d.ts +25 -1
  135. package/dist/api/vpcgw/v2/api.gen.js +48 -1
  136. package/dist/api/vpcgw/v2/index.gen.d.ts +3 -3
  137. package/dist/api/vpcgw/v2/marshalling.gen.cjs +31 -0
  138. package/dist/api/vpcgw/v2/marshalling.gen.d.ts +5 -1
  139. package/dist/api/vpcgw/v2/marshalling.gen.js +31 -0
  140. package/dist/api/vpcgw/v2/types.gen.d.ts +37 -0
  141. package/dist/api/webhosting/index.gen.d.ts +2 -2
  142. package/dist/api/webhosting/v1/index.gen.d.ts +3 -3
  143. package/dist/api/webhosting/v1/types.gen.d.ts +1 -1
  144. package/dist/api/webhosting/v1alpha1/index.gen.d.ts +3 -3
  145. package/dist/bridge.d.ts +10 -10
  146. package/dist/index.d.ts +11 -11
  147. package/dist/internal/logger/console-logger.d.ts +1 -1
  148. package/dist/internal/logger/index.d.ts +1 -1
  149. package/dist/internal/logger/logger.d.ts +1 -1
  150. package/dist/internals.d.ts +10 -10
  151. package/dist/scw/api.d.ts +1 -1
  152. package/dist/scw/auth.d.ts +1 -1
  153. package/dist/scw/client-ini-factory.d.ts +3 -3
  154. package/dist/scw/client-settings.d.ts +1 -1
  155. package/dist/scw/client.d.ts +3 -3
  156. package/dist/scw/constants.cjs +1 -1
  157. package/dist/scw/constants.d.ts +2 -2
  158. package/dist/scw/constants.js +1 -1
  159. package/dist/scw/custom-marshalling.d.ts +2 -2
  160. package/dist/scw/errors/error-parser.d.ts +2 -2
  161. package/dist/scw/errors/non-standard/invalid-request-mapper.d.ts +4 -4
  162. package/dist/scw/errors/non-standard/unknown-resource-mapper.d.ts +3 -3
  163. package/dist/scw/errors/scw-error-from-json.d.ts +2 -2
  164. package/dist/scw/errors/scw-error.d.ts +1 -1
  165. package/dist/scw/errors/standard/already-exists-error.d.ts +2 -2
  166. package/dist/scw/errors/standard/denied-authentication-error.d.ts +2 -2
  167. package/dist/scw/errors/standard/index.d.ts +17 -17
  168. package/dist/scw/errors/standard/invalid-arguments-error.d.ts +2 -2
  169. package/dist/scw/errors/standard/out-of-stock-error.d.ts +2 -2
  170. package/dist/scw/errors/standard/permissions-denied-error.d.ts +2 -2
  171. package/dist/scw/errors/standard/precondition-failed-error.d.ts +2 -2
  172. package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +2 -2
  173. package/dist/scw/errors/standard/resource-expired-error.d.ts +2 -2
  174. package/dist/scw/errors/standard/resource-locked-error.d.ts +2 -2
  175. package/dist/scw/errors/standard/resource-not-found-error.d.ts +2 -2
  176. package/dist/scw/errors/standard/too-many-requests-error.d.ts +2 -2
  177. package/dist/scw/errors/standard/transient-state-error.d.ts +2 -2
  178. package/dist/scw/fetch/build-fetcher.d.ts +1 -1
  179. package/package.json +3 -3
@@ -1,19 +1,23 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, Gateway, GatewayNetwork, IP, ListGatewayNetworksResponse, ListGatewayTypesResponse, ListGatewaysResponse, ListIPsResponse, ListPatRulesResponse, PatRule, SetPatRulesRequest, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest } from './types.gen';
2
+ import type { AddBastionAllowedIPsRequest, AddBastionAllowedIPsResponse, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, Gateway, GatewayNetwork, IP, ListGatewayNetworksResponse, ListGatewayTypesResponse, ListGatewaysResponse, ListIPsResponse, ListPatRulesResponse, PatRule, SetBastionAllowedIPsRequest, SetBastionAllowedIPsResponse, SetPatRulesRequest, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest } from './types.gen';
3
3
  export declare const unmarshalGatewayNetwork: (data: unknown) => GatewayNetwork;
4
4
  export declare const unmarshalIP: (data: unknown) => IP;
5
5
  export declare const unmarshalGateway: (data: unknown) => Gateway;
6
6
  export declare const unmarshalPatRule: (data: unknown) => PatRule;
7
+ export declare const unmarshalAddBastionAllowedIPsResponse: (data: unknown) => AddBastionAllowedIPsResponse;
7
8
  export declare const unmarshalListGatewayNetworksResponse: (data: unknown) => ListGatewayNetworksResponse;
8
9
  export declare const unmarshalListGatewayTypesResponse: (data: unknown) => ListGatewayTypesResponse;
9
10
  export declare const unmarshalListGatewaysResponse: (data: unknown) => ListGatewaysResponse;
10
11
  export declare const unmarshalListIPsResponse: (data: unknown) => ListIPsResponse;
11
12
  export declare const unmarshalListPatRulesResponse: (data: unknown) => ListPatRulesResponse;
13
+ export declare const unmarshalSetBastionAllowedIPsResponse: (data: unknown) => SetBastionAllowedIPsResponse;
12
14
  export declare const unmarshalSetPatRulesResponse: (data: unknown) => SetPatRulesResponse;
15
+ export declare const marshalAddBastionAllowedIPsRequest: (request: AddBastionAllowedIPsRequest, defaults: DefaultValues) => Record<string, unknown>;
13
16
  export declare const marshalCreateGatewayNetworkRequest: (request: CreateGatewayNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
14
17
  export declare const marshalCreateGatewayRequest: (request: CreateGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
15
18
  export declare const marshalCreateIPRequest: (request: CreateIPRequest, defaults: DefaultValues) => Record<string, unknown>;
16
19
  export declare const marshalCreatePatRuleRequest: (request: CreatePatRuleRequest, defaults: DefaultValues) => Record<string, unknown>;
20
+ export declare const marshalSetBastionAllowedIPsRequest: (request: SetBastionAllowedIPsRequest, defaults: DefaultValues) => Record<string, unknown>;
17
21
  export declare const marshalSetPatRulesRequest: (request: SetPatRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
18
22
  export declare const marshalUpdateGatewayNetworkRequest: (request: UpdateGatewayNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
19
23
  export declare const marshalUpdateGatewayRequest: (request: UpdateGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -49,6 +49,7 @@ const unmarshalGateway = (data) => {
49
49
  }
50
50
  return {
51
51
  bandwidth: data.bandwidth,
52
+ bastionAllowedIps: data.bastion_allowed_ips,
52
53
  bastionEnabled: data.bastion_enabled,
53
54
  bastionPort: data.bastion_port,
54
55
  canUpgradeTo: data.can_upgrade_to,
@@ -90,6 +91,16 @@ const unmarshalPatRule = (data) => {
90
91
  zone: data.zone
91
92
  };
92
93
  };
94
+ const unmarshalAddBastionAllowedIPsResponse = (data) => {
95
+ if (!isJSONObject(data)) {
96
+ throw new TypeError(
97
+ `Unmarshalling the type 'AddBastionAllowedIPsResponse' failed as data isn't a dictionary.`
98
+ );
99
+ }
100
+ return {
101
+ ipRanges: data.ip_ranges
102
+ };
103
+ };
93
104
  const unmarshalListGatewayNetworksResponse = (data) => {
94
105
  if (!isJSONObject(data)) {
95
106
  throw new TypeError(
@@ -159,6 +170,16 @@ const unmarshalListPatRulesResponse = (data) => {
159
170
  totalCount: data.total_count
160
171
  };
161
172
  };
173
+ const unmarshalSetBastionAllowedIPsResponse = (data) => {
174
+ if (!isJSONObject(data)) {
175
+ throw new TypeError(
176
+ `Unmarshalling the type 'SetBastionAllowedIPsResponse' failed as data isn't a dictionary.`
177
+ );
178
+ }
179
+ return {
180
+ ipRanges: data.ip_ranges
181
+ };
182
+ };
162
183
  const unmarshalSetPatRulesResponse = (data) => {
163
184
  if (!isJSONObject(data)) {
164
185
  throw new TypeError(
@@ -169,6 +190,9 @@ const unmarshalSetPatRulesResponse = (data) => {
169
190
  patRules: unmarshalArrayOfObject(data.pat_rules, unmarshalPatRule)
170
191
  };
171
192
  };
193
+ const marshalAddBastionAllowedIPsRequest = (request, defaults) => ({
194
+ ip_range: request.ipRange
195
+ });
172
196
  const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
173
197
  enable_masquerade: request.enableMasquerade,
174
198
  gateway_id: request.gatewayId,
@@ -197,6 +221,9 @@ const marshalCreatePatRuleRequest = (request, defaults) => ({
197
221
  protocol: request.protocol,
198
222
  public_port: request.publicPort
199
223
  });
224
+ const marshalSetBastionAllowedIPsRequest = (request, defaults) => ({
225
+ ip_ranges: request.ipRanges
226
+ });
200
227
  const marshalSetPatRulesRequestRule = (request, defaults) => ({
201
228
  private_ip: request.privateIp,
202
229
  private_port: request.privatePort,
@@ -236,16 +263,19 @@ const marshalUpgradeGatewayRequest = (request, defaults) => ({
236
263
  type: request.type
237
264
  });
238
265
  export {
266
+ marshalAddBastionAllowedIPsRequest,
239
267
  marshalCreateGatewayNetworkRequest,
240
268
  marshalCreateGatewayRequest,
241
269
  marshalCreateIPRequest,
242
270
  marshalCreatePatRuleRequest,
271
+ marshalSetBastionAllowedIPsRequest,
243
272
  marshalSetPatRulesRequest,
244
273
  marshalUpdateGatewayNetworkRequest,
245
274
  marshalUpdateGatewayRequest,
246
275
  marshalUpdateIPRequest,
247
276
  marshalUpdatePatRuleRequest,
248
277
  marshalUpgradeGatewayRequest,
278
+ unmarshalAddBastionAllowedIPsResponse,
249
279
  unmarshalGateway,
250
280
  unmarshalGatewayNetwork,
251
281
  unmarshalIP,
@@ -255,5 +285,6 @@ export {
255
285
  unmarshalListIPsResponse,
256
286
  unmarshalListPatRulesResponse,
257
287
  unmarshalPatRule,
288
+ unmarshalSetBastionAllowedIPsResponse,
258
289
  unmarshalSetPatRulesResponse
259
290
  };
@@ -110,6 +110,8 @@ export interface Gateway {
110
110
  smtpEnabled: boolean;
111
111
  /** Defines whether the gateway uses non-IPAM IP configurations. */
112
112
  isLegacy: boolean;
113
+ /** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. */
114
+ bastionAllowedIps: string[];
113
115
  /** Zone of the gateway. */
114
116
  zone: Zone;
115
117
  }
@@ -146,6 +148,18 @@ export interface SetPatRulesRequestRule {
146
148
  /** Protocol the rule should apply to. */
147
149
  protocol: PatRuleProtocol;
148
150
  }
151
+ export type AddBastionAllowedIPsRequest = {
152
+ /** Zone to target. If none is passed will use default zone from the config. */
153
+ zone?: Zone;
154
+ /** ID of the gateway to add the allowed IP range to. */
155
+ gatewayId: string;
156
+ /** IP range allowed to connect to the SSH bastion. */
157
+ ipRange: string;
158
+ };
159
+ export interface AddBastionAllowedIPsResponse {
160
+ /** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. */
161
+ ipRanges: string[];
162
+ }
149
163
  export type CreateGatewayNetworkRequest = {
150
164
  /** Zone to target. If none is passed will use default zone from the config. */
151
165
  zone?: Zone;
@@ -202,6 +216,14 @@ export type CreatePatRuleRequest = {
202
216
  /** Protocol the rule should apply to. */
203
217
  protocol?: PatRuleProtocol;
204
218
  };
219
+ export type DeleteBastionAllowedIPsRequest = {
220
+ /** Zone to target. If none is passed will use default zone from the config. */
221
+ zone?: Zone;
222
+ /** ID of the gateway on which to delete the allowed IP range. */
223
+ gatewayId: string;
224
+ /** IP range to delete from SSH bastion's list of allowed IPs. */
225
+ ipRange: string;
226
+ };
205
227
  export type DeleteGatewayNetworkRequest = {
206
228
  /** Zone to target. If none is passed will use default zone from the config. */
207
229
  zone?: Zone;
@@ -376,6 +398,21 @@ export type RefreshSSHKeysRequest = {
376
398
  /** ID of the gateway to refresh SSH keys on. */
377
399
  gatewayId: string;
378
400
  };
401
+ export type SetBastionAllowedIPsRequest = {
402
+ /** Zone to target. If none is passed will use default zone from the config. */
403
+ zone?: Zone;
404
+ /** ID of the gateway on which to set the allowed IP range. */
405
+ gatewayId: string;
406
+ /**
407
+ * New list of IP ranges (each range in CIDR notation) allowed to connect to
408
+ * the SSH bastion.
409
+ */
410
+ ipRanges?: string[];
411
+ };
412
+ export interface SetBastionAllowedIPsResponse {
413
+ /** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. */
414
+ ipRanges: string[];
415
+ }
379
416
  export type SetPatRulesRequest = {
380
417
  /** Zone to target. If none is passed will use default zone from the config. */
381
418
  zone?: Zone;
@@ -2,5 +2,5 @@
2
2
  * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
3
  * EDIT HERE
4
4
  */
5
- export * as v1 from './v1/index.gen';
6
- export * as v1alpha1 from './v1alpha1/index.gen';
5
+ export * as v1 from './v1/index.gen.js';
6
+ export * as v1alpha1 from './v1alpha1/index.gen.js';
@@ -1,4 +1,4 @@
1
- export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
2
- export * from './content.gen';
1
+ export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen.js';
2
+ export * from './content.gen.js';
3
3
  export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, HostingSummaryStatus, HostingUser, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, ResetHostingPasswordResponse, ResourceSummary, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
4
- export * as ValidationRules from './validation-rules.gen';
4
+ export * as ValidationRules from './validation-rules.gen.js';
@@ -13,7 +13,7 @@ export type ListMailAccountsRequestOrderBy = 'username_asc' | 'username_desc' |
13
13
  export type ListOffersRequestOrderBy = 'price_asc';
14
14
  export type ListWebsitesRequestOrderBy = 'domain_asc' | 'domain_desc';
15
15
  export type NameserverStatus = 'unknown_status' | 'valid' | 'invalid';
16
- export type OfferOptionName = 'unknown_name' | 'domain_count' | 'email_count' | 'storage_gb' | 'vcpu_count' | 'ram_gb' | 'backup' | 'dedicated_ip' | 'email_storage_gb' | 'database_count';
16
+ export type OfferOptionName = 'unknown_name' | 'domain_count' | 'email_count' | 'storage_gb' | 'vcpu_count' | 'ram_gb' | 'backup' | 'dedicated_ip' | 'email_storage_gb' | 'database_count' | 'support';
17
17
  export type OfferOptionWarning = 'unknown_warning' | 'quota_exceeded_warning' | 'usage_low_warning';
18
18
  export type PlatformPlatformGroup = 'unknown_group' | 'default' | 'premium';
19
19
  export interface PlatformControlPanelUrls {
@@ -1,4 +1,4 @@
1
- export { API, ClassicMailAPI } from './api.gen';
2
- export * from './content.gen';
1
+ export { API, ClassicMailAPI } from './api.gen.js';
2
+ export * from './content.gen.js';
3
3
  export type { CheckUserOwnsDomainRequest, CheckUserOwnsDomainResponse, ClassicMailApiCreateMailboxRequest, ClassicMailApiDeleteMailboxRequest, ClassicMailApiGetMailboxRequest, ClassicMailApiListMailboxesRequest, ClassicMailApiUpdateMailboxRequest, ControlPanel, CreateHostingRequest, CreateHostingRequestDomainConfiguration, CreateSessionRequest, DeleteHostingRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, EmailAddress, GetDomainDnsRecordsRequest, GetHostingRequest, Hosting, HostingCpanelUrls, HostingDnsStatus, HostingOption, HostingStatus, ListControlPanelsRequest, ListControlPanelsResponse, ListHostingsRequest, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailboxesResponse, ListOffersRequest, ListOffersRequestOrderBy, ListOffersResponse, Mailbox, Nameserver, NameserverStatus, Offer, OfferProduct, OfferQuotaWarning, ResetHostingPasswordRequest, ResetHostingPasswordResponse, RestoreHostingRequest, Session, UpdateHostingRequest, } from './types.gen';
4
- export * as ValidationRules from './validation-rules.gen';
4
+ export * as ValidationRules from './validation-rules.gen.js';
package/dist/bridge.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  /** List all helpers required by APIs */
2
- export { isJSONObject } from './helpers/json';
3
- export { waitForResource } from './internal/async/interval-retrier';
4
- export type { WaitForOptions } from './internal/async/interval-retrier';
5
- export { API } from './scw/api';
6
- export type { DefaultValues } from './scw/client-settings';
7
- export type { Money, ServiceInfo, ScwFile, TimeSeries, } from './scw/custom-types';
8
- export { Decimal } from './scw/custom-types';
9
- export { marshalScwFile, marshalMoney, marshalTimeSeries, marshalDecimal, marshalBlobToScwFile, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, unmarshalDecimal, } from './scw/custom-marshalling';
10
- export { enrichForPagination } from './scw/fetch/resource-paginator';
2
+ export { isJSONObject } from './helpers/json.js';
3
+ export { waitForResource } from './internal/async/interval-retrier.js';
4
+ export type { WaitForOptions } from './internal/async/interval-retrier.js';
5
+ export { API } from './scw/api.js';
6
+ export type { DefaultValues } from './scw/client-settings.js';
7
+ export type { Money, ServiceInfo, ScwFile, TimeSeries, } from './scw/custom-types.js';
8
+ export { Decimal } from './scw/custom-types.js';
9
+ export { marshalScwFile, marshalMoney, marshalTimeSeries, marshalDecimal, marshalBlobToScwFile, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, unmarshalDecimal, } from './scw/custom-marshalling.js';
10
+ export { enrichForPagination } from './scw/fetch/resource-paginator.js';
11
11
  export type { Region, Zone } from './scw/locality';
12
- export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling';
12
+ export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling.js';
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- export type { WaitForOptions, WaitForStopCondition, } from './internal/async/interval-retrier';
1
+ export type { WaitForOptions, WaitForStopCondition, } from './internal/async/interval-retrier.js';
2
2
  export type { NetworkInterceptors, RequestInterceptor, ResponseInterceptor, ResponseErrorInterceptor, } from './internal/interceptors/types';
3
- export { enableConsoleLogger, setLogger } from './internal/logger';
3
+ export { enableConsoleLogger, setLogger } from './internal/logger/index.js';
4
4
  export type { Logger } from './internal/logger/logger';
5
- export { createClient, createAdvancedClient } from './scw/client';
6
- export type { Client } from './scw/client';
7
- export type { Profile } from './scw/client-ini-profile';
8
- export type { Settings } from './scw/client-settings';
9
- export { withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix, } from './scw/client-ini-factory';
10
- export type { ClientConfig } from './scw/client-ini-factory';
11
- export { Decimal } from './scw/custom-types';
12
- export type { Money, ScwFile, TimeSeries } from './scw/custom-types';
13
- export * as Errors from './scw/errors/standard';
5
+ export { createClient, createAdvancedClient } from './scw/client.js';
6
+ export type { Client } from './scw/client.js';
7
+ export type { Profile } from './scw/client-ini-profile.js';
8
+ export type { Settings } from './scw/client-settings.js';
9
+ export { withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix, } from './scw/client-ini-factory.js';
10
+ export type { ClientConfig } from './scw/client-ini-factory.js';
11
+ export { Decimal } from './scw/custom-types.js';
12
+ export type { Money, ScwFile, TimeSeries } from './scw/custom-types.js';
13
+ export * as Errors from './scw/errors/standard/index.js';
14
14
  export type { Region, Zone } from './scw/locality';
15
15
  export * from './internals';
16
16
  export * from './api';
@@ -1,4 +1,4 @@
1
- import type { LogLevel } from './level-resolver';
1
+ import type { LogLevel } from './level-resolver.js';
2
2
  import type { Logger } from './logger';
3
3
  /**
4
4
  * A Logger using console output.
@@ -1,4 +1,4 @@
1
- import type { LogLevel } from './level-resolver';
1
+ import type { LogLevel } from './level-resolver.js';
2
2
  import type { Logger } from './logger';
3
3
  /**
4
4
  * Sets a logger to be used within the SDK.
@@ -1,4 +1,4 @@
1
- import type { LogLevel } from './level-resolver';
1
+ import type { LogLevel } from './level-resolver.js';
2
2
  /**
3
3
  * Logger.
4
4
  *
@@ -1,10 +1,10 @@
1
- export { isJSONObject } from './helpers/json';
2
- export { createExponentialBackoffStrategy, tryAtIntervals, waitForResource, } from './internal/async/interval-retrier';
3
- export { addAsyncHeaderInterceptor } from './internal/interceptors/helpers';
4
- export { API } from './scw/api';
5
- export { authenticateWithSessionToken } from './scw/auth';
6
- export type { DefaultValues } from './scw/client-settings';
7
- export { marshalDecimal, marshalScwFile, marshalMoney, marshalTimeSeries, marshalBlobToScwFile, unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, } from './scw/custom-marshalling';
8
- export type { ServiceInfo } from './scw/custom-types';
9
- export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling';
10
- export { enrichForPagination } from './scw/fetch/resource-paginator';
1
+ export { isJSONObject } from './helpers/json.js';
2
+ export { createExponentialBackoffStrategy, tryAtIntervals, waitForResource, } from './internal/async/interval-retrier.js';
3
+ export { addAsyncHeaderInterceptor } from './internal/interceptors/helpers.js';
4
+ export { API } from './scw/api.js';
5
+ export { authenticateWithSessionToken } from './scw/auth.js';
6
+ export type { DefaultValues } from './scw/client-settings.js';
7
+ export { marshalDecimal, marshalScwFile, marshalMoney, marshalTimeSeries, marshalBlobToScwFile, unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, } from './scw/custom-marshalling.js';
8
+ export type { ServiceInfo } from './scw/custom-types.js';
9
+ export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling.js';
10
+ export { enrichForPagination } from './scw/fetch/resource-paginator.js';
package/dist/scw/api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Client } from './client';
1
+ import type { Client } from './client.js';
2
2
  /**
3
3
  * Abstract class to instantiate API from a {@link Client}.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import type { RequestInterceptor } from '../internal/interceptors/types';
2
- import type { AuthenticationSecrets } from './client-ini-profile';
2
+ import type { AuthenticationSecrets } from './client-ini-profile.js';
3
3
  interface TokenAccessor {
4
4
  (): Promise<string | undefined>;
5
5
  }
@@ -1,6 +1,6 @@
1
- import type { NetworkInterceptors } from '../index';
2
- import type { Profile } from './client-ini-profile';
3
- import type { Settings } from './client-settings';
1
+ import type { NetworkInterceptors } from '../index.js';
2
+ import type { Profile } from './client-ini-profile.js';
3
+ import type { Settings } from './client-settings.js';
4
4
  /**
5
5
  * A factory to build {@link Settings}.
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import type { NetworkInterceptors, RequestInterceptor, ResponseInterceptor } from '../internal/interceptors/types';
2
- import type { ProfileDefaultValues } from './client-ini-profile';
2
+ import type { ProfileDefaultValues } from './client-ini-profile.js';
3
3
  /**
4
4
  * Holds default values of settings.
5
5
  *
@@ -1,6 +1,6 @@
1
- import type { ClientConfig } from './client-ini-factory';
2
- import type { Settings } from './client-settings';
3
- import type { Fetcher } from './fetch/build-fetcher';
1
+ import type { ClientConfig } from './client-ini-factory.js';
2
+ import type { Settings } from './client-settings.js';
3
+ import type { Fetcher } from './fetch/build-fetcher.js';
4
4
  /**
5
5
  * Scaleway client.
6
6
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.59.0";
3
+ const version = "v2.61.0";
4
4
  const userAgent = `scaleway-sdk-js/${version}`;
5
5
  exports.userAgent = userAgent;
6
6
  exports.version = version;
@@ -1,2 +1,2 @@
1
- export declare const version = "v2.59.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.59.0";
1
+ export declare const version = "v2.61.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.61.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.59.0";
1
+ const version = "v2.61.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
@@ -1,5 +1,5 @@
1
- import type { Money, ScwFile, ServiceInfo, TimeSeries, TimeSeriesPoint } from './custom-types';
2
- import { Decimal } from './custom-types';
1
+ import type { Money, ScwFile, ServiceInfo, TimeSeries, TimeSeriesPoint } from './custom-types.js';
2
+ import { Decimal } from './custom-types.js';
3
3
  /**
4
4
  * Unmarshals {@link Money}
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../helpers/json';
2
- import { ScalewayError } from './scw-error';
1
+ import type { JSONObject } from '../../helpers/json.js';
2
+ import { ScalewayError } from './scw-error.js';
3
3
  /**
4
4
  * Parses Scaleway error from raw body.
5
5
  *
@@ -1,7 +1,7 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
3
- import { InvalidArgumentsError } from '../standard/invalid-arguments-error';
4
- import { QuotasExceededError } from '../standard/quotas-exceeded-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
+ import { InvalidArgumentsError } from '../standard/invalid-arguments-error.js';
4
+ import { QuotasExceededError } from '../standard/quotas-exceeded-error.js';
5
5
  /**
6
6
  * InvalidRequest error is only returned by the instance API.
7
7
  *
@@ -1,6 +1,6 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
3
- import { ResourceNotFoundError } from '../standard/resource-not-found-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
+ import { ResourceNotFoundError } from '../standard/resource-not-found-error.js';
4
4
  /**
5
5
  * UnknownResource error is only returned by the instance API.
6
6
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../helpers/json';
2
- import type { ScalewayError } from './scw-error';
1
+ import type { JSONObject } from '../../helpers/json.js';
2
+ import type { ScalewayError } from './scw-error.js';
3
3
  /**
4
4
  * Interface with static method that initialize {@link ScalewayError} from JSON.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { JSONObject } from '../../helpers/json';
1
+ import type { JSONObject } from '../../helpers/json.js';
2
2
  /**
3
3
  * Scaleway error.
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * AlreadyExists error is used when a resource already exists.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * DeniedAuthentication error is used by the API Gateway auth service to deny a request.
5
5
  *
@@ -1,17 +1,17 @@
1
- export { ScalewayError } from '../scw-error';
2
- export { AlreadyExistsError } from './already-exists-error';
3
- export { DeniedAuthenticationError } from './denied-authentication-error';
4
- export { InvalidArgumentsError } from './invalid-arguments-error';
5
- export type { InvalidArgumentsErrorDetails } from './invalid-arguments-error';
6
- export { OutOfStockError } from './out-of-stock-error';
7
- export { PermissionsDeniedError } from './permissions-denied-error';
8
- export type { PermissionsDeniedErrorDetails } from './permissions-denied-error';
9
- export { PreconditionFailedError } from './precondition-failed-error';
10
- export { QuotasExceededError } from './quotas-exceeded-error';
11
- export type { QuotasExceededErrorDetails, QuotasExceededErrorScope, } from './quotas-exceeded-error';
12
- export { ResourceExpiredError } from './resource-expired-error';
13
- export { ResourceLockedError } from './resource-locked-error';
14
- export { ResourceNotFoundError } from './resource-not-found-error';
15
- export { TooManyRequestsError } from './too-many-requests-error';
16
- export type { TooManyRequestsQuotaPolicy } from './too-many-requests-error';
17
- export { TransientStateError } from './transient-state-error';
1
+ export { ScalewayError } from '../scw-error.js';
2
+ export { AlreadyExistsError } from './already-exists-error.js';
3
+ export { DeniedAuthenticationError } from './denied-authentication-error.js';
4
+ export { InvalidArgumentsError } from './invalid-arguments-error.js';
5
+ export type { InvalidArgumentsErrorDetails } from './invalid-arguments-error.js';
6
+ export { OutOfStockError } from './out-of-stock-error.js';
7
+ export { PermissionsDeniedError } from './permissions-denied-error.js';
8
+ export type { PermissionsDeniedErrorDetails } from './permissions-denied-error.js';
9
+ export { PreconditionFailedError } from './precondition-failed-error.js';
10
+ export { QuotasExceededError } from './quotas-exceeded-error.js';
11
+ export type { QuotasExceededErrorDetails, QuotasExceededErrorScope, } from './quotas-exceeded-error.js';
12
+ export { ResourceExpiredError } from './resource-expired-error.js';
13
+ export { ResourceLockedError } from './resource-locked-error.js';
14
+ export { ResourceNotFoundError } from './resource-not-found-error.js';
15
+ export { TooManyRequestsError } from './too-many-requests-error.js';
16
+ export type { TooManyRequestsQuotaPolicy } from './too-many-requests-error.js';
17
+ export { TransientStateError } from './transient-state-error.js';
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * Details of an {@link InvalidArgumentsError} error.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * OutOfStock error happens when stocks are empty for the resource.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * Details of an {@link PermissionsDeniedError} error.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * PreconditionFailed error is used when a precondition is not respected.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * Scope of an {@link QuotasExceededErrorDetails} error.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * ResourceExpired error happens when trying to access a resource that has expired.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * ResourceLocked error happens when a resource is locked by trust and safety.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * ResourceNotFound error happens when getting a resource that does not exist anymore.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * Quota policy of {@link TooManyRequestsError}.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { JSONObject } from '../../../helpers/json';
2
- import { ScalewayError } from '../scw-error';
1
+ import type { JSONObject } from '../../../helpers/json.js';
2
+ import { ScalewayError } from '../scw-error.js';
3
3
  /**
4
4
  * TransientState error happens when trying to perform an action on a resource in a transient state.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { Settings } from '../client-settings';
1
+ import type { Settings } from '../client-settings.js';
2
2
  import type { ResponseUnmarshaller, ScwRequest } from './types';
3
3
  /**
4
4
  * Builds Request from {@link ScwRequest} & {@link Settings}.