@scaleway/sdk 2.50.0 → 2.51.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 (57) hide show
  1. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +1 -0
  2. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +1 -0
  3. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +8 -0
  4. package/dist/api/baremetal/v1/marshalling.gen.cjs +3 -1
  5. package/dist/api/baremetal/v1/marshalling.gen.js +3 -1
  6. package/dist/api/baremetal/v1/types.gen.d.ts +4 -3
  7. package/dist/api/edge_services/v1alpha1/api.gen.cjs +27 -2
  8. package/dist/api/edge_services/v1alpha1/api.gen.d.ts +10 -3
  9. package/dist/api/edge_services/v1alpha1/api.gen.js +28 -3
  10. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  11. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +30 -0
  12. package/dist/api/edge_services/v1alpha1/marshalling.gen.d.ts +3 -1
  13. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +30 -0
  14. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +45 -9
  15. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +1 -0
  16. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
  17. package/dist/api/iam/v1alpha1/types.gen.d.ts +2 -0
  18. package/dist/api/index.gen.d.ts +2 -1
  19. package/dist/api/inference/v1beta1/validation-rules.gen.cjs +1 -1
  20. package/dist/api/inference/v1beta1/validation-rules.gen.js +1 -1
  21. package/dist/api/instance/v1/api.gen.cjs +0 -37
  22. package/dist/api/instance/v1/api.gen.d.ts +1 -21
  23. package/dist/api/instance/v1/api.gen.js +1 -38
  24. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  25. package/dist/api/instance/v1/marshalling.gen.cjs +1 -28
  26. package/dist/api/instance/v1/marshalling.gen.d.ts +1 -3
  27. package/dist/api/instance/v1/marshalling.gen.js +1 -28
  28. package/dist/api/instance/v1/types.gen.d.ts +9 -53
  29. package/dist/api/instance/v1/types.private.gen.d.ts +1 -3
  30. package/dist/api/jobs/v1alpha1/validation-rules.gen.cjs +2 -2
  31. package/dist/api/jobs/v1alpha1/validation-rules.gen.js +2 -2
  32. package/dist/api/mongodb/index.gen.cjs +4 -0
  33. package/dist/api/mongodb/index.gen.d.ts +5 -0
  34. package/dist/api/mongodb/index.gen.js +4 -0
  35. package/dist/api/mongodb/v1alpha1/api.gen.cjs +385 -0
  36. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +195 -0
  37. package/dist/api/mongodb/v1alpha1/api.gen.js +385 -0
  38. package/dist/api/mongodb/v1alpha1/content.gen.cjs +16 -0
  39. package/dist/api/mongodb/v1alpha1/content.gen.d.ts +5 -0
  40. package/dist/api/mongodb/v1alpha1/content.gen.js +16 -0
  41. package/dist/api/mongodb/v1alpha1/index.gen.cjs +9 -0
  42. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +4 -0
  43. package/dist/api/mongodb/v1alpha1/index.gen.js +9 -0
  44. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +326 -0
  45. package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +19 -0
  46. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +326 -0
  47. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +461 -0
  48. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +147 -0
  49. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +134 -0
  50. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +147 -0
  51. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +1 -1
  52. package/dist/index.cjs +16 -14
  53. package/dist/index.js +16 -14
  54. package/dist/scw/constants.cjs +1 -1
  55. package/dist/scw/constants.d.ts +2 -2
  56. package/dist/scw/constants.js +1 -1
  57. package/package.json +2 -2
@@ -0,0 +1,385 @@
1
+ import { waitForResource } from "../../../internal/async/interval-retrier.js";
2
+ import { API as API$1 } from "../../../scw/api.js";
3
+ import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
4
+ import "../../../vendor/base64/index.js";
5
+ import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
6
+ import { INSTANCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from "./content.gen.js";
7
+ import { unmarshalListNodeTypesResponse, unmarshalListVersionsResponse, unmarshalListInstancesResponse, unmarshalInstance, marshalCreateInstanceRequest, marshalUpdateInstanceRequest, marshalUpgradeInstanceRequest, marshalCreateSnapshotRequest, unmarshalSnapshot, marshalUpdateSnapshotRequest, marshalRestoreSnapshotRequest, unmarshalListSnapshotsResponse, unmarshalListUsersResponse, marshalUpdateUserRequest, unmarshalUser } from "./marshalling.gen.js";
8
+ const jsonContentHeaders = {
9
+ "Content-Type": "application/json; charset=utf-8"
10
+ };
11
+ class API extends API$1 {
12
+ /** Lists the available regions of the API. */
13
+ static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
14
+ pageOfListNodeTypes = (request = {}) => this.client.fetch(
15
+ {
16
+ method: "GET",
17
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/node-types`,
18
+ urlParams: urlParams(
19
+ ["include_disabled_types", request.includeDisabledTypes],
20
+ ["page", request.page],
21
+ [
22
+ "page_size",
23
+ request.pageSize ?? this.client.settings.defaultPageSize
24
+ ]
25
+ )
26
+ },
27
+ unmarshalListNodeTypesResponse
28
+ );
29
+ /**
30
+ * List available node types.
31
+ *
32
+ * @param request - The request {@link ListNodeTypesRequest}
33
+ * @returns A Promise of ListNodeTypesResponse
34
+ */
35
+ listNodeTypes = (request = {}) => enrichForPagination("nodeTypes", this.pageOfListNodeTypes, request);
36
+ pageOfListVersions = (request = {}) => this.client.fetch(
37
+ {
38
+ method: "GET",
39
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/versions`,
40
+ urlParams: urlParams(
41
+ ["page", request.page],
42
+ [
43
+ "page_size",
44
+ request.pageSize ?? this.client.settings.defaultPageSize
45
+ ],
46
+ ["version", request.version]
47
+ )
48
+ },
49
+ unmarshalListVersionsResponse
50
+ );
51
+ /**
52
+ * List available MongoDB™ versions.
53
+ *
54
+ * @param request - The request {@link ListVersionsRequest}
55
+ * @returns A Promise of ListVersionsResponse
56
+ */
57
+ listVersions = (request = {}) => enrichForPagination("versions", this.pageOfListVersions, request);
58
+ pageOfListInstances = (request = {}) => this.client.fetch(
59
+ {
60
+ method: "GET",
61
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances`,
62
+ urlParams: urlParams(
63
+ ["name", request.name],
64
+ ["order_by", request.orderBy],
65
+ [
66
+ "organization_id",
67
+ request.organizationId ?? this.client.settings.defaultOrganizationId
68
+ ],
69
+ ["page", request.page],
70
+ [
71
+ "page_size",
72
+ request.pageSize ?? this.client.settings.defaultPageSize
73
+ ],
74
+ [
75
+ "project_id",
76
+ request.projectId ?? this.client.settings.defaultProjectId
77
+ ],
78
+ ["tags", request.tags]
79
+ )
80
+ },
81
+ unmarshalListInstancesResponse
82
+ );
83
+ /**
84
+ * List MongoDB™ Database Instances. List all MongoDB™ Database Instances in
85
+ * the specified region, for a given Scaleway Project. By default, the
86
+ * MongoDB™ Database Instances returned in the list are ordered by creation
87
+ * date in ascending order, though this can be modified via the order_by
88
+ * field. You can define additional parameters for your query, such as `tags`
89
+ * and `name`. For the `name` parameter, the value you include will be checked
90
+ * against the whole name string to see if it includes the string you put in
91
+ * the parameter.
92
+ *
93
+ * @param request - The request {@link ListInstancesRequest}
94
+ * @returns A Promise of ListInstancesResponse
95
+ */
96
+ listInstances = (request = {}) => enrichForPagination("instances", this.pageOfListInstances, request);
97
+ /**
98
+ * Get a MongoDB™ Database Instance. Retrieve information about a given
99
+ * MongoDB™ Database Instance, specified by the `region` and `instance_id`
100
+ * parameters. Its full details, including name, status, IP address and port,
101
+ * are returned in the response object.
102
+ *
103
+ * @param request - The request {@link GetInstanceRequest}
104
+ * @returns A Promise of Instance
105
+ */
106
+ getInstance = (request) => this.client.fetch(
107
+ {
108
+ method: "GET",
109
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}`
110
+ },
111
+ unmarshalInstance
112
+ );
113
+ /**
114
+ * Waits for {@link Instance} to be in a final state.
115
+ *
116
+ * @param request - The request {@link GetInstanceRequest}
117
+ * @param options - The waiting options
118
+ * @returns A Promise of Instance
119
+ */
120
+ waitForInstance = (request, options) => waitForResource(
121
+ options?.stop ?? ((res) => Promise.resolve(!INSTANCE_TRANSIENT_STATUSES.includes(res.status))),
122
+ this.getInstance,
123
+ request,
124
+ options
125
+ );
126
+ /**
127
+ * Create a MongoDB™ Database Instance. Create a new MongoDB™ Database
128
+ * Instance.
129
+ *
130
+ * @param request - The request {@link CreateInstanceRequest}
131
+ * @returns A Promise of Instance
132
+ */
133
+ createInstance = (request) => this.client.fetch(
134
+ {
135
+ body: JSON.stringify(
136
+ marshalCreateInstanceRequest(request, this.client.settings)
137
+ ),
138
+ headers: jsonContentHeaders,
139
+ method: "POST",
140
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances`
141
+ },
142
+ unmarshalInstance
143
+ );
144
+ /**
145
+ * Update a MongoDB™ Database Instance. Update the parameters of a MongoDB™
146
+ * Database Instance.
147
+ *
148
+ * @param request - The request {@link UpdateInstanceRequest}
149
+ * @returns A Promise of Instance
150
+ */
151
+ updateInstance = (request) => this.client.fetch(
152
+ {
153
+ body: JSON.stringify(
154
+ marshalUpdateInstanceRequest(request, this.client.settings)
155
+ ),
156
+ headers: jsonContentHeaders,
157
+ method: "PATCH",
158
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}`
159
+ },
160
+ unmarshalInstance
161
+ );
162
+ /**
163
+ * Delete a MongoDB™ Database Instance. Delete a given MongoDB™ Database
164
+ * Instance, specified by the `region` and `instance_id` parameters. Deleting
165
+ * a MongoDB™ Database Instance is permanent, and cannot be undone. Note that
166
+ * upon deletion all your data will be lost.
167
+ *
168
+ * @param request - The request {@link DeleteInstanceRequest}
169
+ * @returns A Promise of Instance
170
+ */
171
+ deleteInstance = (request) => this.client.fetch(
172
+ {
173
+ method: "DELETE",
174
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}`
175
+ },
176
+ unmarshalInstance
177
+ );
178
+ /**
179
+ * Upgrade a Database Instance. Upgrade your current Database Instance
180
+ * specifications like volume size.
181
+ *
182
+ * @param request - The request {@link UpgradeInstanceRequest}
183
+ * @returns A Promise of Instance
184
+ */
185
+ upgradeInstance = (request) => this.client.fetch(
186
+ {
187
+ body: JSON.stringify(
188
+ marshalUpgradeInstanceRequest(request, this.client.settings)
189
+ ),
190
+ headers: jsonContentHeaders,
191
+ method: "POST",
192
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/upgrade`
193
+ },
194
+ unmarshalInstance
195
+ );
196
+ /**
197
+ * Get the certificate of a Database Instance. Retrieve the certificate of a
198
+ * given Database Instance, specified by the `instance_id` parameter.
199
+ *
200
+ * @param request - The request {@link GetInstanceCertificateRequest}
201
+ * @returns A Promise of Blob
202
+ */
203
+ getInstanceCertificate = (request) => this.client.fetch({
204
+ method: "GET",
205
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/certificate`,
206
+ urlParams: urlParams(["dl", 1]),
207
+ responseType: "blob"
208
+ });
209
+ /**
210
+ * Create a Database Instance snapshot. Create a new snapshot of a Database
211
+ * Instance. You must define the `name` and `instance_id` parameters in the
212
+ * request.
213
+ *
214
+ * @param request - The request {@link CreateSnapshotRequest}
215
+ * @returns A Promise of Snapshot
216
+ */
217
+ createSnapshot = (request) => this.client.fetch(
218
+ {
219
+ body: JSON.stringify(
220
+ marshalCreateSnapshotRequest(request, this.client.settings)
221
+ ),
222
+ headers: jsonContentHeaders,
223
+ method: "POST",
224
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/snapshots`
225
+ },
226
+ unmarshalSnapshot
227
+ );
228
+ /**
229
+ * Get a Database Instance snapshot. Retrieve information about a given
230
+ * snapshot of a Database Instance. You must specify, in the endpoint, the
231
+ * `snapshot_id` parameter of the snapshot you want to retrieve.
232
+ *
233
+ * @param request - The request {@link GetSnapshotRequest}
234
+ * @returns A Promise of Snapshot
235
+ */
236
+ getSnapshot = (request) => this.client.fetch(
237
+ {
238
+ method: "GET",
239
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
240
+ },
241
+ unmarshalSnapshot
242
+ );
243
+ /**
244
+ * Waits for {@link Snapshot} to be in a final state.
245
+ *
246
+ * @param request - The request {@link GetSnapshotRequest}
247
+ * @param options - The waiting options
248
+ * @returns A Promise of Snapshot
249
+ */
250
+ waitForSnapshot = (request, options) => waitForResource(
251
+ options?.stop ?? ((res) => Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))),
252
+ this.getSnapshot,
253
+ request,
254
+ options
255
+ );
256
+ updateSnapshot = (request) => this.client.fetch(
257
+ {
258
+ body: JSON.stringify(
259
+ marshalUpdateSnapshotRequest(request, this.client.settings)
260
+ ),
261
+ headers: jsonContentHeaders,
262
+ method: "POST",
263
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
264
+ },
265
+ unmarshalSnapshot
266
+ );
267
+ /**
268
+ * Restore a Database Instance snapshot. Restore a given snapshot of a
269
+ * Database Instance. You must specify, in the endpoint, the `snapshot_id`
270
+ * parameter of the snapshot you want to restore, the `instance_name` of the
271
+ * new Database Instance, `node_type` of the new Database Instance and
272
+ * `node_number` of the new Database Instance.
273
+ *
274
+ * @param request - The request {@link RestoreSnapshotRequest}
275
+ * @returns A Promise of Instance
276
+ */
277
+ restoreSnapshot = (request) => this.client.fetch(
278
+ {
279
+ body: JSON.stringify(
280
+ marshalRestoreSnapshotRequest(request, this.client.settings)
281
+ ),
282
+ headers: jsonContentHeaders,
283
+ method: "POST",
284
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}/restore`
285
+ },
286
+ unmarshalInstance
287
+ );
288
+ pageOfListSnapshots = (request = {}) => this.client.fetch(
289
+ {
290
+ method: "GET",
291
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots`,
292
+ urlParams: urlParams(
293
+ ["instance_id", request.instanceId],
294
+ ["name", request.name],
295
+ ["order_by", request.orderBy],
296
+ [
297
+ "organization_id",
298
+ request.organizationId ?? this.client.settings.defaultOrganizationId
299
+ ],
300
+ ["page", request.page],
301
+ [
302
+ "page_size",
303
+ request.pageSize ?? this.client.settings.defaultPageSize
304
+ ],
305
+ [
306
+ "project_id",
307
+ request.projectId ?? this.client.settings.defaultProjectId
308
+ ]
309
+ )
310
+ },
311
+ unmarshalListSnapshotsResponse
312
+ );
313
+ /**
314
+ * List snapshots. List snapshots. You can include the `instance_id` or
315
+ * `project_id` in your query to get the list of snapshots for specific
316
+ * Database Instances and/or Projects. By default, the details returned in the
317
+ * list are ordered by creation date in ascending order, though this can be
318
+ * modified via the `order_by` field.
319
+ *
320
+ * @param request - The request {@link ListSnapshotsRequest}
321
+ * @returns A Promise of ListSnapshotsResponse
322
+ */
323
+ listSnapshots = (request = {}) => enrichForPagination("snapshots", this.pageOfListSnapshots, request);
324
+ /**
325
+ * Delete a Database Instance snapshot. Delete a given snapshot of a Database
326
+ * Instance. You must specify, in the endpoint, the `snapshot_id` parameter of
327
+ * the snapshot you want to delete.
328
+ *
329
+ * @param request - The request {@link DeleteSnapshotRequest}
330
+ * @returns A Promise of Snapshot
331
+ */
332
+ deleteSnapshot = (request) => this.client.fetch(
333
+ {
334
+ method: "DELETE",
335
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
336
+ },
337
+ unmarshalSnapshot
338
+ );
339
+ pageOfListUsers = (request) => this.client.fetch(
340
+ {
341
+ method: "GET",
342
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users`,
343
+ urlParams: urlParams(
344
+ ["name", request.name],
345
+ ["order_by", request.orderBy],
346
+ ["page", request.page],
347
+ [
348
+ "page_size",
349
+ request.pageSize ?? this.client.settings.defaultPageSize
350
+ ]
351
+ )
352
+ },
353
+ unmarshalListUsersResponse
354
+ );
355
+ /**
356
+ * List users of a Database Instance. List all users of a given Database
357
+ * Instance.
358
+ *
359
+ * @param request - The request {@link ListUsersRequest}
360
+ * @returns A Promise of ListUsersResponse
361
+ */
362
+ listUsers = (request) => enrichForPagination("users", this.pageOfListUsers, request);
363
+ /**
364
+ * Update a user on a Database Instance. Update the parameters of a user on a
365
+ * Database Instance. You can update the `password` parameter, but you cannot
366
+ * change the name of the user.
367
+ *
368
+ * @param request - The request {@link UpdateUserRequest}
369
+ * @returns A Promise of User
370
+ */
371
+ updateUser = (request) => this.client.fetch(
372
+ {
373
+ body: JSON.stringify(
374
+ marshalUpdateUserRequest(request, this.client.settings)
375
+ ),
376
+ headers: jsonContentHeaders,
377
+ method: "PATCH",
378
+ path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users/${validatePathParam("name", request.name)}`
379
+ },
380
+ unmarshalUser
381
+ );
382
+ }
383
+ export {
384
+ API
385
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const INSTANCE_TRANSIENT_STATUSES = [
4
+ "provisioning",
5
+ "configuring",
6
+ "deleting",
7
+ "initializing",
8
+ "snapshotting"
9
+ ];
10
+ const SNAPSHOT_TRANSIENT_STATUSES = [
11
+ "creating",
12
+ "restoring",
13
+ "deleting"
14
+ ];
15
+ exports.INSTANCE_TRANSIENT_STATUSES = INSTANCE_TRANSIENT_STATUSES;
16
+ exports.SNAPSHOT_TRANSIENT_STATUSES = SNAPSHOT_TRANSIENT_STATUSES;
@@ -0,0 +1,5 @@
1
+ import type { InstanceStatus, SnapshotStatus } from './types.gen';
2
+ /** Lists transient statutes of the enum {@link InstanceStatus}. */
3
+ export declare const INSTANCE_TRANSIENT_STATUSES: InstanceStatus[];
4
+ /** Lists transient statutes of the enum {@link SnapshotStatus}. */
5
+ export declare const SNAPSHOT_TRANSIENT_STATUSES: SnapshotStatus[];
@@ -0,0 +1,16 @@
1
+ const INSTANCE_TRANSIENT_STATUSES = [
2
+ "provisioning",
3
+ "configuring",
4
+ "deleting",
5
+ "initializing",
6
+ "snapshotting"
7
+ ];
8
+ const SNAPSHOT_TRANSIENT_STATUSES = [
9
+ "creating",
10
+ "restoring",
11
+ "deleting"
12
+ ];
13
+ export {
14
+ INSTANCE_TRANSIENT_STATUSES,
15
+ SNAPSHOT_TRANSIENT_STATUSES
16
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const api_gen = require("./api.gen.cjs");
4
+ const content_gen = require("./content.gen.cjs");
5
+ const validationRules_gen = require("./validation-rules.gen.cjs");
6
+ exports.API = api_gen.API;
7
+ exports.INSTANCE_TRANSIENT_STATUSES = content_gen.INSTANCE_TRANSIENT_STATUSES;
8
+ exports.SNAPSHOT_TRANSIENT_STATUSES = content_gen.SNAPSHOT_TRANSIENT_STATUSES;
9
+ exports.ValidationRules = validationRules_gen;
@@ -0,0 +1,4 @@
1
+ export { API } from './api.gen';
2
+ export * from './content.gen';
3
+ export type { CreateInstanceRequest, CreateInstanceRequestVolumeDetails, CreateSnapshotRequest, DeleteInstanceRequest, DeleteSnapshotRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicDetails, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicDetails, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, InstanceSetting, InstanceStatus, ListInstancesRequest, ListInstancesRequestOrderBy, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, NodeType, NodeTypeStock, NodeTypeVolumeType, RestoreSnapshotRequest, RestoreSnapshotRequestVolumeDetails, Setting, SettingPropertyType, Snapshot, SnapshotStatus, SnapshotVolumeType, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User, Version, Volume, VolumeType, } from './types.gen';
4
+ export * as ValidationRules from './validation-rules.gen';
@@ -0,0 +1,9 @@
1
+ import { API } from "./api.gen.js";
2
+ import { INSTANCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import * as validationRules_gen from "./validation-rules.gen.js";
4
+ export {
5
+ API,
6
+ INSTANCE_TRANSIENT_STATUSES,
7
+ SNAPSHOT_TRANSIENT_STATUSES,
8
+ validationRules_gen as ValidationRules
9
+ };