@scaleway/sdk-block 2.13.0 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ import type { ListSnapshotsRequestOrderBy, ListVolumesRequestOrderBy, ReferenceStatus, ReferenceType, SnapshotStatus, StorageClass, VolumeStatus } from './types.gen.js';
2
+ /** Lists all values of the enum {@link ListSnapshotsRequestOrderBy}. */
3
+ export declare const LIST_SNAPSHOTS_REQUEST_ORDER_BIES: ListSnapshotsRequestOrderBy[];
4
+ /** Lists all values of the enum {@link ListVolumesRequestOrderBy}. */
5
+ export declare const LIST_VOLUMES_REQUEST_ORDER_BIES: ListVolumesRequestOrderBy[];
6
+ /** Lists all values of the enum {@link ReferenceStatus}. */
7
+ export declare const REFERENCE_STATUSES: ReferenceStatus[];
8
+ /** Lists all values of the enum {@link ReferenceType}. */
9
+ export declare const REFERENCE_TYPES: ReferenceType[];
10
+ /** Lists all values of the enum {@link SnapshotStatus}. */
11
+ export declare const SNAPSHOT_STATUSES: SnapshotStatus[];
12
+ /** Lists all values of the enum {@link StorageClass}. */
13
+ export declare const STORAGE_CLASSES: StorageClass[];
14
+ /** Lists all values of the enum {@link VolumeStatus}. */
15
+ export declare const VOLUME_STATUSES: VolumeStatus[];
@@ -0,0 +1,67 @@
1
+ //#region src/v1/constants.gen.ts
2
+ /** Lists all values of the enum {@link ListSnapshotsRequestOrderBy}. */
3
+ const LIST_SNAPSHOTS_REQUEST_ORDER_BIES = [
4
+ "created_at_asc",
5
+ "created_at_desc",
6
+ "name_asc",
7
+ "name_desc"
8
+ ];
9
+ /** Lists all values of the enum {@link ListVolumesRequestOrderBy}. */
10
+ const LIST_VOLUMES_REQUEST_ORDER_BIES = [
11
+ "created_at_asc",
12
+ "created_at_desc",
13
+ "name_asc",
14
+ "name_desc"
15
+ ];
16
+ /** Lists all values of the enum {@link ReferenceStatus}. */
17
+ const REFERENCE_STATUSES = [
18
+ "unknown_status",
19
+ "attaching",
20
+ "attached",
21
+ "detaching",
22
+ "detached",
23
+ "creating",
24
+ "error"
25
+ ];
26
+ /** Lists all values of the enum {@link ReferenceType}. */
27
+ const REFERENCE_TYPES = [
28
+ "unknown_type",
29
+ "link",
30
+ "exclusive",
31
+ "read_only"
32
+ ];
33
+ /** Lists all values of the enum {@link SnapshotStatus}. */
34
+ const SNAPSHOT_STATUSES = [
35
+ "unknown_status",
36
+ "creating",
37
+ "available",
38
+ "error",
39
+ "deleting",
40
+ "deleted",
41
+ "in_use",
42
+ "locked",
43
+ "exporting"
44
+ ];
45
+ /** Lists all values of the enum {@link StorageClass}. */
46
+ const STORAGE_CLASSES = [
47
+ "unknown_storage_class",
48
+ "unspecified",
49
+ "bssd",
50
+ "sbs"
51
+ ];
52
+ /** Lists all values of the enum {@link VolumeStatus}. */
53
+ const VOLUME_STATUSES = [
54
+ "unknown_status",
55
+ "creating",
56
+ "available",
57
+ "in_use",
58
+ "deleting",
59
+ "deleted",
60
+ "resizing",
61
+ "error",
62
+ "snapshotting",
63
+ "locked",
64
+ "updating"
65
+ ];
66
+ //#endregion
67
+ export { LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES };
@@ -1,5 +1,6 @@
1
1
  export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
+ export * from './constants.gen.js';
3
4
  export * from './marshalling.gen.js';
4
5
  export type { CreateSnapshotRequest, CreateVolumeRequest, CreateVolumeRequestFromEmpty, CreateVolumeRequestFromSnapshot, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesRequestOrderBy, ListVolumesResponse, Reference, ReferenceStatus, ReferenceType, Snapshot, SnapshotParentVolume, SnapshotStatus, StorageClass, UpdateSnapshotRequest, UpdateVolumeRequest, Volume, VolumeSpecifications, VolumeStatus, VolumeType, } from './types.gen.js';
5
6
  export * as ValidationRules from './validation-rules.gen.js';
@@ -2,12 +2,20 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { REFERENCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalReference, unmarshalSnapshot, unmarshalVolume } from "./marshalling.gen.js";
4
4
  import { API } from "./api.gen.js";
5
+ import { LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES } from "./constants.gen.js";
5
6
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
7
  //#region src/v1/index.gen.ts
7
8
  var index_gen_exports = /* @__PURE__ */ __exportAll({
8
9
  API: () => API,
10
+ LIST_SNAPSHOTS_REQUEST_ORDER_BIES: () => LIST_SNAPSHOTS_REQUEST_ORDER_BIES,
11
+ LIST_VOLUMES_REQUEST_ORDER_BIES: () => LIST_VOLUMES_REQUEST_ORDER_BIES,
12
+ REFERENCE_STATUSES: () => REFERENCE_STATUSES,
9
13
  REFERENCE_TRANSIENT_STATUSES: () => REFERENCE_TRANSIENT_STATUSES,
14
+ REFERENCE_TYPES: () => REFERENCE_TYPES,
15
+ SNAPSHOT_STATUSES: () => SNAPSHOT_STATUSES,
10
16
  SNAPSHOT_TRANSIENT_STATUSES: () => SNAPSHOT_TRANSIENT_STATUSES,
17
+ STORAGE_CLASSES: () => STORAGE_CLASSES,
18
+ VOLUME_STATUSES: () => VOLUME_STATUSES,
11
19
  VOLUME_TRANSIENT_STATUSES: () => VOLUME_TRANSIENT_STATUSES,
12
20
  ValidationRules: () => validation_rules_gen_exports,
13
21
  marshalCreateSnapshotRequest: () => marshalCreateSnapshotRequest,
@@ -24,4 +32,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
24
32
  unmarshalVolume: () => unmarshalVolume
25
33
  });
26
34
  //#endregion
27
- export { API, REFERENCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalReference, unmarshalSnapshot, unmarshalVolume };
35
+ export { API, LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TRANSIENT_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES, VOLUME_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalReference, unmarshalSnapshot, unmarshalVolume };
@@ -0,0 +1,15 @@
1
+ import type { ListSnapshotsRequestOrderBy, ListVolumesRequestOrderBy, ReferenceStatus, ReferenceType, SnapshotStatus, StorageClass, VolumeStatus } from './types.gen.js';
2
+ /** Lists all values of the enum {@link ListSnapshotsRequestOrderBy}. */
3
+ export declare const LIST_SNAPSHOTS_REQUEST_ORDER_BIES: ListSnapshotsRequestOrderBy[];
4
+ /** Lists all values of the enum {@link ListVolumesRequestOrderBy}. */
5
+ export declare const LIST_VOLUMES_REQUEST_ORDER_BIES: ListVolumesRequestOrderBy[];
6
+ /** Lists all values of the enum {@link ReferenceStatus}. */
7
+ export declare const REFERENCE_STATUSES: ReferenceStatus[];
8
+ /** Lists all values of the enum {@link ReferenceType}. */
9
+ export declare const REFERENCE_TYPES: ReferenceType[];
10
+ /** Lists all values of the enum {@link SnapshotStatus}. */
11
+ export declare const SNAPSHOT_STATUSES: SnapshotStatus[];
12
+ /** Lists all values of the enum {@link StorageClass}. */
13
+ export declare const STORAGE_CLASSES: StorageClass[];
14
+ /** Lists all values of the enum {@link VolumeStatus}. */
15
+ export declare const VOLUME_STATUSES: VolumeStatus[];
@@ -0,0 +1,67 @@
1
+ //#region src/v1alpha1/constants.gen.ts
2
+ /** Lists all values of the enum {@link ListSnapshotsRequestOrderBy}. */
3
+ const LIST_SNAPSHOTS_REQUEST_ORDER_BIES = [
4
+ "created_at_asc",
5
+ "created_at_desc",
6
+ "name_asc",
7
+ "name_desc"
8
+ ];
9
+ /** Lists all values of the enum {@link ListVolumesRequestOrderBy}. */
10
+ const LIST_VOLUMES_REQUEST_ORDER_BIES = [
11
+ "created_at_asc",
12
+ "created_at_desc",
13
+ "name_asc",
14
+ "name_desc"
15
+ ];
16
+ /** Lists all values of the enum {@link ReferenceStatus}. */
17
+ const REFERENCE_STATUSES = [
18
+ "unknown_status",
19
+ "attaching",
20
+ "attached",
21
+ "detaching",
22
+ "detached",
23
+ "creating",
24
+ "error"
25
+ ];
26
+ /** Lists all values of the enum {@link ReferenceType}. */
27
+ const REFERENCE_TYPES = [
28
+ "unknown_type",
29
+ "link",
30
+ "exclusive",
31
+ "read_only"
32
+ ];
33
+ /** Lists all values of the enum {@link SnapshotStatus}. */
34
+ const SNAPSHOT_STATUSES = [
35
+ "unknown_status",
36
+ "creating",
37
+ "available",
38
+ "error",
39
+ "deleting",
40
+ "deleted",
41
+ "in_use",
42
+ "locked",
43
+ "exporting"
44
+ ];
45
+ /** Lists all values of the enum {@link StorageClass}. */
46
+ const STORAGE_CLASSES = [
47
+ "unknown_storage_class",
48
+ "unspecified",
49
+ "bssd",
50
+ "sbs"
51
+ ];
52
+ /** Lists all values of the enum {@link VolumeStatus}. */
53
+ const VOLUME_STATUSES = [
54
+ "unknown_status",
55
+ "creating",
56
+ "available",
57
+ "in_use",
58
+ "deleting",
59
+ "deleted",
60
+ "resizing",
61
+ "error",
62
+ "snapshotting",
63
+ "locked",
64
+ "updating"
65
+ ];
66
+ //#endregion
67
+ export { LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES };
@@ -1,5 +1,6 @@
1
1
  export { API, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
+ export * from './constants.gen.js';
3
4
  export * from './marshalling.gen.js';
4
5
  export type { CreateSnapshotRequest, CreateVolumeRequest, CreateVolumeRequestFromEmpty, CreateVolumeRequestFromSnapshot, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesRequestOrderBy, ListVolumesResponse, Reference, ReferenceStatus, ReferenceType, Snapshot, SnapshotParentVolume, SnapshotStatus, StorageClass, UpdateSnapshotRequest, UpdateVolumeRequest, Volume, VolumeSpecifications, VolumeStatus, VolumeType, } from './types.gen.js';
5
6
  export * as ValidationRules from './validation-rules.gen.js';
@@ -2,12 +2,20 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { REFERENCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume } from "./marshalling.gen.js";
4
4
  import { API } from "./api.gen.js";
5
+ import { LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES } from "./constants.gen.js";
5
6
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
7
  //#region src/v1alpha1/index.gen.ts
7
8
  var index_gen_exports = /* @__PURE__ */ __exportAll({
8
9
  API: () => API,
10
+ LIST_SNAPSHOTS_REQUEST_ORDER_BIES: () => LIST_SNAPSHOTS_REQUEST_ORDER_BIES,
11
+ LIST_VOLUMES_REQUEST_ORDER_BIES: () => LIST_VOLUMES_REQUEST_ORDER_BIES,
12
+ REFERENCE_STATUSES: () => REFERENCE_STATUSES,
9
13
  REFERENCE_TRANSIENT_STATUSES: () => REFERENCE_TRANSIENT_STATUSES,
14
+ REFERENCE_TYPES: () => REFERENCE_TYPES,
15
+ SNAPSHOT_STATUSES: () => SNAPSHOT_STATUSES,
10
16
  SNAPSHOT_TRANSIENT_STATUSES: () => SNAPSHOT_TRANSIENT_STATUSES,
17
+ STORAGE_CLASSES: () => STORAGE_CLASSES,
18
+ VOLUME_STATUSES: () => VOLUME_STATUSES,
11
19
  VOLUME_TRANSIENT_STATUSES: () => VOLUME_TRANSIENT_STATUSES,
12
20
  ValidationRules: () => validation_rules_gen_exports,
13
21
  marshalCreateSnapshotRequest: () => marshalCreateSnapshotRequest,
@@ -24,4 +32,4 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
24
32
  unmarshalVolume: () => unmarshalVolume
25
33
  });
26
34
  //#endregion
27
- export { API, REFERENCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume };
35
+ export { API, LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TRANSIENT_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES, VOLUME_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-block",
3
- "version": "2.13.0",
3
+ "version": "2.14.1",
4
4
  "description": "Scaleway SDK block",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,14 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@scaleway/random-name": "6.0.2",
36
- "@scaleway/sdk-std": "2.6.0"
36
+ "@scaleway/sdk-std": "2.7.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^2.6.0",
40
- "@repo/configs": "^0.1.1"
39
+ "@repo/configs": "^0.1.1",
40
+ "@scaleway/sdk-client": "^2.7.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@scaleway/sdk-client": "^2.6.0"
43
+ "@scaleway/sdk-client": "^2.7.0"
44
44
  },
45
45
  "engines": {
46
46
  "node": ">=20.20.2"