@scaleway/sdk-key-manager 2.17.0 → 2.18.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.
- package/LICENSE +191 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -6
- package/dist/index.gen.d.ts +2 -5
- package/dist/index.gen.js +2 -1
- package/dist/metadata.gen.d.ts +7 -5
- package/dist/metadata.gen.js +2 -1
- package/dist/v1alpha1/api.gen.d.ts +163 -161
- package/dist/v1alpha1/api.gen.js +6 -4
- package/dist/v1alpha1/constants.gen.d.ts +5 -1
- package/dist/v1alpha1/constants.gen.js +10 -2
- package/dist/v1alpha1/index.gen.d.ts +10 -5
- package/dist/v1alpha1/index.gen.js +5 -2
- package/dist/v1alpha1/marshalling.gen.d.ts +4 -2
- package/dist/v1alpha1/marshalling.gen.js +5 -1
- package/dist/v1alpha1/metadata.gen.d.ts +64 -62
- package/dist/v1alpha1/metadata.gen.js +2 -1
- package/dist/v1alpha1/types.gen.d.ts +532 -517
- package/dist/v1alpha1/validation-rules.gen.d.ts +8 -3
- package/dist/v1alpha1/validation-rules.gen.js +3 -1
- package/package.json +5 -7
- package/dist/.vite/license.md +0 -3
- package/dist/v1alpha1/types.gen.js +0 -0
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse } from "./marshalling.gen.js";
|
|
2
|
-
import { API
|
|
2
|
+
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
|
+
|
|
3
4
|
//#region src/v1alpha1/api.gen.ts
|
|
4
5
|
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
@@ -7,7 +8,7 @@ const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" }
|
|
|
7
8
|
|
|
8
9
|
This API allows you to create, manage and use cryptographic keys in a centralized and secure service.
|
|
9
10
|
*/
|
|
10
|
-
var API = class extends API
|
|
11
|
+
var API$1 = class extends API {
|
|
11
12
|
constructor(..._args) {
|
|
12
13
|
super(..._args);
|
|
13
14
|
this.createKey = (request) => this.client.fetch({
|
|
@@ -67,7 +68,7 @@ var API = class extends API$1 {
|
|
|
67
68
|
this.pageOfListKeys = (request) => this.client.fetch({
|
|
68
69
|
method: "GET",
|
|
69
70
|
path: `/key-manager/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/keys`,
|
|
70
|
-
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["scheduled_for_deletion", request.scheduledForDeletion], ["tags", request.tags], ["usage", request.usage])
|
|
71
|
+
urlParams: urlParams(["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["protection_level", request.protectionLevel], ["scheduled_for_deletion", request.scheduledForDeletion], ["tags", request.tags], ["usage", request.usage])
|
|
71
72
|
}, unmarshalListKeysResponse);
|
|
72
73
|
this.listKeys = (request) => enrichForPagination("keys", this.pageOfListKeys, request);
|
|
73
74
|
this.pageOfListKeyRotations = (request) => this.client.fetch({
|
|
@@ -150,5 +151,6 @@ var API = class extends API$1 {
|
|
|
150
151
|
] });
|
|
151
152
|
}
|
|
152
153
|
};
|
|
154
|
+
|
|
153
155
|
//#endregion
|
|
154
|
-
export { API };
|
|
156
|
+
export { API$1 as API };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DataKeyAlgorithmSymmetricEncryption, KeyAlgorithmAsymmetricEncryption, KeyAlgorithmAsymmetricSigning, KeyAlgorithmKeyEncapsulation, KeyAlgorithmSymmetricEncryption, KeyOrigin, KeyProtectionLevel, KeyRotationStatus, KeyState, ListAlgorithmsRequestUsage, ListKeyRotationsRequestOrderBy, ListKeysRequestOrderBy, ListKeysRequestUsage } from "./types.gen.js";
|
|
2
|
+
//#region src/v1alpha1/constants.gen.d.ts
|
|
2
3
|
/** Lists all values of the enum {@link DataKeyAlgorithmSymmetricEncryption}. */
|
|
3
4
|
export declare const DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS: DataKeyAlgorithmSymmetricEncryption[];
|
|
4
5
|
/** Lists all values of the enum {@link KeyAlgorithmAsymmetricEncryption}. */
|
|
@@ -11,6 +12,8 @@ export declare const KEY_ALGORITHM_KEY_ENCAPSULATIONS: KeyAlgorithmKeyEncapsulat
|
|
|
11
12
|
export declare const KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS: KeyAlgorithmSymmetricEncryption[];
|
|
12
13
|
/** Lists all values of the enum {@link KeyOrigin}. */
|
|
13
14
|
export declare const KEY_ORIGINS: KeyOrigin[];
|
|
15
|
+
/** Lists all values of the enum {@link KeyProtectionLevel}. */
|
|
16
|
+
export declare const KEY_PROTECTION_LEVELS: KeyProtectionLevel[];
|
|
14
17
|
/** Lists all values of the enum {@link KeyRotationStatus}. */
|
|
15
18
|
export declare const KEY_ROTATION_STATUSES: KeyRotationStatus[];
|
|
16
19
|
/** Lists all values of the enum {@link KeyState}. */
|
|
@@ -23,3 +26,4 @@ export declare const LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES: ListKeyRotationsRequ
|
|
|
23
26
|
export declare const LIST_KEYS_REQUEST_ORDER_BIES: ListKeysRequestOrderBy[];
|
|
24
27
|
/** Lists all values of the enum {@link ListKeysRequestUsage}. */
|
|
25
28
|
export declare const LIST_KEYS_REQUEST_USAGES: ListKeysRequestUsage[];
|
|
29
|
+
//#endregion
|
|
@@ -38,6 +38,12 @@ const KEY_ORIGINS = [
|
|
|
38
38
|
"scaleway_kms",
|
|
39
39
|
"external"
|
|
40
40
|
];
|
|
41
|
+
/** Lists all values of the enum {@link KeyProtectionLevel}. */
|
|
42
|
+
const KEY_PROTECTION_LEVELS = [
|
|
43
|
+
"unknown_protection_level",
|
|
44
|
+
"software",
|
|
45
|
+
"hsm"
|
|
46
|
+
];
|
|
41
47
|
/** Lists all values of the enum {@link KeyRotationStatus}. */
|
|
42
48
|
const KEY_ROTATION_STATUSES = [
|
|
43
49
|
"unknown_status",
|
|
@@ -76,7 +82,9 @@ const LIST_KEYS_REQUEST_USAGES = [
|
|
|
76
82
|
"unknown_usage",
|
|
77
83
|
"symmetric_encryption",
|
|
78
84
|
"asymmetric_encryption",
|
|
79
|
-
"asymmetric_signing"
|
|
85
|
+
"asymmetric_signing",
|
|
86
|
+
"key_encapsulation"
|
|
80
87
|
];
|
|
88
|
+
|
|
81
89
|
//#endregion
|
|
82
|
-
export { DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_ROTATION_STATUSES, KEY_STATES, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES };
|
|
90
|
+
export { DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_PROTECTION_LEVELS, KEY_ROTATION_STATUSES, KEY_STATES, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES };
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CreateKeyRequest, DataKey, DataKeyAlgorithmSymmetricEncryption, DecryptRequest, DecryptResponse, DeleteKeyMaterialRequest, DeleteKeyRequest, DisableKeyRequest, EnableKeyRequest, EncryptRequest, EncryptResponse, GenerateDataKeyRequest, GetKeyRequest, GetPublicKeyRequest, ImportKeyMaterialRequest, Key, KeyAlgorithmAsymmetricEncryption, KeyAlgorithmAsymmetricSigning, KeyAlgorithmKeyEncapsulation, KeyAlgorithmSymmetricEncryption, KeyOrigin, KeyProtectionLevel, KeyRotation, KeyRotationPolicy, KeyRotationStatus, KeyState, KeyUsage, ListAlgorithmsRequest, ListAlgorithmsRequestUsage, ListAlgorithmsResponse, ListAlgorithmsResponseAlgorithm, ListKeyRotationsRequest, ListKeyRotationsRequestOrderBy, ListKeyRotationsResponse, ListKeysRequest, ListKeysRequestOrderBy, ListKeysRequestUsage, ListKeysResponse, ProtectKeyRequest, PublicKey, RestoreKeyRequest, RotateKeyRequest, SignRequest, SignResponse, UnprotectKeyRequest, UnwrapKeyRequest, UnwrapKeyResponse, UpdateKeyRequest, VerifyRequest, VerifyResponse, WrapKeyRequest, WrapKeyResponse } from "./types.gen.js";
|
|
2
|
+
import { API } from "./api.gen.js";
|
|
3
|
+
import { DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_PROTECTION_LEVELS, KEY_ROTATION_STATUSES, KEY_STATES, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES } from "./constants.gen.js";
|
|
4
|
+
import { marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse } from "./marshalling.gen.js";
|
|
5
|
+
import { validation_rules_gen_d_exports } from "./validation-rules.gen.js";
|
|
6
|
+
declare namespace index_gen_d_exports {
|
|
7
|
+
export { API, CreateKeyRequest, DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, DataKey, DataKeyAlgorithmSymmetricEncryption, DecryptRequest, DecryptResponse, DeleteKeyMaterialRequest, DeleteKeyRequest, DisableKeyRequest, EnableKeyRequest, EncryptRequest, EncryptResponse, GenerateDataKeyRequest, GetKeyRequest, GetPublicKeyRequest, ImportKeyMaterialRequest, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_PROTECTION_LEVELS, KEY_ROTATION_STATUSES, KEY_STATES, Key, KeyAlgorithmAsymmetricEncryption, KeyAlgorithmAsymmetricSigning, KeyAlgorithmKeyEncapsulation, KeyAlgorithmSymmetricEncryption, KeyOrigin, KeyProtectionLevel, KeyRotation, KeyRotationPolicy, KeyRotationStatus, KeyState, KeyUsage, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES, ListAlgorithmsRequest, ListAlgorithmsRequestUsage, ListAlgorithmsResponse, ListAlgorithmsResponseAlgorithm, ListKeyRotationsRequest, ListKeyRotationsRequestOrderBy, ListKeyRotationsResponse, ListKeysRequest, ListKeysRequestOrderBy, ListKeysRequestUsage, ListKeysResponse, ProtectKeyRequest, PublicKey, RestoreKeyRequest, RotateKeyRequest, SignRequest, SignResponse, UnprotectKeyRequest, UnwrapKeyRequest, UnwrapKeyResponse, UpdateKeyRequest, validation_rules_gen_d_exports as ValidationRules, VerifyRequest, VerifyResponse, WrapKeyRequest, WrapKeyResponse, marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse };
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { API, type CreateKeyRequest, DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, type DataKey, type DataKeyAlgorithmSymmetricEncryption, type DecryptRequest, type DecryptResponse, type DeleteKeyMaterialRequest, type DeleteKeyRequest, type DisableKeyRequest, type EnableKeyRequest, type EncryptRequest, type EncryptResponse, type GenerateDataKeyRequest, type GetKeyRequest, type GetPublicKeyRequest, type ImportKeyMaterialRequest, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_PROTECTION_LEVELS, KEY_ROTATION_STATUSES, KEY_STATES, type Key, type KeyAlgorithmAsymmetricEncryption, type KeyAlgorithmAsymmetricSigning, type KeyAlgorithmKeyEncapsulation, type KeyAlgorithmSymmetricEncryption, type KeyOrigin, type KeyProtectionLevel, type KeyRotation, type KeyRotationPolicy, type KeyRotationStatus, type KeyState, type KeyUsage, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES, type ListAlgorithmsRequest, type ListAlgorithmsRequestUsage, type ListAlgorithmsResponse, type ListAlgorithmsResponseAlgorithm, type ListKeyRotationsRequest, type ListKeyRotationsRequestOrderBy, type ListKeyRotationsResponse, type ListKeysRequest, type ListKeysRequestOrderBy, type ListKeysRequestUsage, type ListKeysResponse, type ProtectKeyRequest, type PublicKey, type RestoreKeyRequest, type RotateKeyRequest, type SignRequest, type SignResponse, type UnprotectKeyRequest, type UnwrapKeyRequest, type UnwrapKeyResponse, type UpdateKeyRequest, validation_rules_gen_d_exports as ValidationRules, type VerifyRequest, type VerifyResponse, type WrapKeyRequest, type WrapKeyResponse, index_gen_d_exports, marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse } from "./marshalling.gen.js";
|
|
3
3
|
import { API } from "./api.gen.js";
|
|
4
|
-
import { DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_ROTATION_STATUSES, KEY_STATES, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES } from "./constants.gen.js";
|
|
4
|
+
import { DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_PROTECTION_LEVELS, KEY_ROTATION_STATUSES, KEY_STATES, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES } from "./constants.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
|
|
6
7
|
//#region src/v1alpha1/index.gen.ts
|
|
7
8
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
8
9
|
API: () => API,
|
|
@@ -12,6 +13,7 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
12
13
|
KEY_ALGORITHM_KEY_ENCAPSULATIONS: () => KEY_ALGORITHM_KEY_ENCAPSULATIONS,
|
|
13
14
|
KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS: () => KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS,
|
|
14
15
|
KEY_ORIGINS: () => KEY_ORIGINS,
|
|
16
|
+
KEY_PROTECTION_LEVELS: () => KEY_PROTECTION_LEVELS,
|
|
15
17
|
KEY_ROTATION_STATUSES: () => KEY_ROTATION_STATUSES,
|
|
16
18
|
KEY_STATES: () => KEY_STATES,
|
|
17
19
|
LIST_ALGORITHMS_REQUEST_USAGES: () => LIST_ALGORITHMS_REQUEST_USAGES,
|
|
@@ -43,5 +45,6 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
43
45
|
unmarshalVerifyResponse: () => unmarshalVerifyResponse,
|
|
44
46
|
unmarshalWrapKeyResponse: () => unmarshalWrapKeyResponse
|
|
45
47
|
});
|
|
48
|
+
|
|
46
49
|
//#endregion
|
|
47
|
-
export { API, DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_ROTATION_STATUSES, KEY_STATES, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse };
|
|
50
|
+
export { API, DATA_KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_ENCRYPTIONS, KEY_ALGORITHM_ASYMMETRIC_SIGNINGS, KEY_ALGORITHM_KEY_ENCAPSULATIONS, KEY_ALGORITHM_SYMMETRIC_ENCRYPTIONS, KEY_ORIGINS, KEY_PROTECTION_LEVELS, KEY_ROTATION_STATUSES, KEY_STATES, LIST_ALGORITHMS_REQUEST_USAGES, LIST_KEYS_REQUEST_ORDER_BIES, LIST_KEYS_REQUEST_USAGES, LIST_KEY_ROTATIONS_REQUEST_ORDER_BIES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CreateKeyRequest, DataKey, DecryptRequest, DecryptResponse, DeleteKeyMaterialRequest, EncryptRequest, EncryptResponse, GenerateDataKeyRequest, ImportKeyMaterialRequest, Key, ListAlgorithmsResponse, ListKeyRotationsResponse, ListKeysResponse, PublicKey, SignRequest, SignResponse, UnwrapKeyRequest, UnwrapKeyResponse, UpdateKeyRequest, VerifyRequest, VerifyResponse, WrapKeyRequest, WrapKeyResponse } from "./types.gen.js";
|
|
2
|
+
import { DefaultValues } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v1alpha1/marshalling.gen.d.ts
|
|
3
4
|
export declare const unmarshalKey: (data: unknown) => Key;
|
|
4
5
|
export declare const unmarshalDataKey: (data: unknown) => DataKey;
|
|
5
6
|
export declare const unmarshalDecryptResponse: (data: unknown) => DecryptResponse;
|
|
@@ -23,3 +24,4 @@ export declare const marshalUnwrapKeyRequest: (request: UnwrapKeyRequest, defaul
|
|
|
23
24
|
export declare const marshalUpdateKeyRequest: (request: UpdateKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
25
|
export declare const marshalVerifyRequest: (request: VerifyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
25
26
|
export declare const marshalWrapKeyRequest: (request: WrapKeyRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
27
|
+
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
+
|
|
2
3
|
//#region src/v1alpha1/marshalling.gen.ts
|
|
3
4
|
const unmarshalKeyRotationPolicy = (data) => {
|
|
4
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'KeyRotationPolicy' failed as data isn't a dictionary.`);
|
|
@@ -28,6 +29,7 @@ const unmarshalKey = (data) => {
|
|
|
28
29
|
origin: data.origin,
|
|
29
30
|
projectId: data.project_id,
|
|
30
31
|
protected: data.protected,
|
|
32
|
+
protectionLevel: data.protection_level,
|
|
31
33
|
region: data.region,
|
|
32
34
|
rotatedAt: unmarshalDate(data.rotated_at),
|
|
33
35
|
rotationCount: data.rotation_count,
|
|
@@ -161,6 +163,7 @@ const marshalCreateKeyRequest = (request, defaults) => ({
|
|
|
161
163
|
name: request.name,
|
|
162
164
|
origin: request.origin,
|
|
163
165
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
166
|
+
protection_level: request.protectionLevel,
|
|
164
167
|
rotation_policy: request.rotationPolicy !== void 0 ? marshalKeyRotationPolicy(request.rotationPolicy, defaults) : void 0,
|
|
165
168
|
tags: request.tags,
|
|
166
169
|
unprotected: request.unprotected,
|
|
@@ -202,5 +205,6 @@ const marshalWrapKeyRequest = (request, defaults) => ({
|
|
|
202
205
|
associated_data: request.associatedData,
|
|
203
206
|
plaintext: request.plaintext
|
|
204
207
|
});
|
|
208
|
+
|
|
205
209
|
//#endregion
|
|
206
|
-
export { marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse };
|
|
210
|
+
export { marshalCreateKeyRequest, marshalDecryptRequest, marshalDeleteKeyMaterialRequest, marshalEncryptRequest, marshalGenerateDataKeyRequest, marshalImportKeyMaterialRequest, marshalSignRequest, marshalUnwrapKeyRequest, marshalUpdateKeyRequest, marshalVerifyRequest, marshalWrapKeyRequest, unmarshalDataKey, unmarshalDecryptResponse, unmarshalEncryptResponse, unmarshalKey, unmarshalListAlgorithmsResponse, unmarshalListKeyRotationsResponse, unmarshalListKeysResponse, unmarshalPublicKey, unmarshalSignResponse, unmarshalUnwrapKeyResponse, unmarshalVerifyResponse, unmarshalWrapKeyResponse };
|
|
@@ -1,66 +1,68 @@
|
|
|
1
|
+
//#region src/v1alpha1/metadata.gen.d.ts
|
|
1
2
|
export declare const queriesMetadata: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}];
|
|
3
|
+
readonly namespace: 'key_manager';
|
|
4
|
+
readonly version: 'v1alpha1';
|
|
5
|
+
readonly folderName: 'keyManagerv1alpha1';
|
|
6
|
+
readonly services: readonly [{
|
|
7
|
+
readonly apiClass: 'API';
|
|
8
|
+
readonly methods: readonly [{
|
|
9
|
+
readonly methodName: 'getKey';
|
|
10
|
+
readonly protoName: 'GetKey';
|
|
11
|
+
readonly paramsType: 'GetKeyRequest';
|
|
12
|
+
readonly returnType: 'Key';
|
|
13
|
+
readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
|
|
14
|
+
readonly isList: false;
|
|
15
|
+
readonly paginationType: 'none';
|
|
16
|
+
readonly isPrivate: false;
|
|
17
|
+
readonly description: '"';
|
|
18
|
+
}, {
|
|
19
|
+
readonly methodName: 'getPublicKey';
|
|
20
|
+
readonly protoName: 'GetPublicKey';
|
|
21
|
+
readonly paramsType: 'GetPublicKeyRequest';
|
|
22
|
+
readonly returnType: 'PublicKey';
|
|
23
|
+
readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
|
|
24
|
+
readonly isList: false;
|
|
25
|
+
readonly paginationType: 'none';
|
|
26
|
+
readonly isPrivate: false;
|
|
27
|
+
readonly description: '"';
|
|
28
|
+
}, {
|
|
29
|
+
readonly methodName: 'listKeys';
|
|
30
|
+
readonly protoName: 'ListKeys';
|
|
31
|
+
readonly paramsType: 'ListKeysRequest';
|
|
32
|
+
readonly returnType: 'ListKeysResponse';
|
|
33
|
+
readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
|
|
34
|
+
readonly isList: true;
|
|
35
|
+
readonly paginationType: 'offset';
|
|
36
|
+
readonly pageParamKey: 'page';
|
|
37
|
+
readonly listItemType: 'Key';
|
|
38
|
+
readonly listItemTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
|
|
39
|
+
readonly isPrivate: false;
|
|
40
|
+
readonly description: '"';
|
|
41
|
+
}, {
|
|
42
|
+
readonly methodName: 'listKeyRotations';
|
|
43
|
+
readonly protoName: 'ListKeyRotations';
|
|
44
|
+
readonly paramsType: 'ListKeyRotationsRequest';
|
|
45
|
+
readonly returnType: 'ListKeyRotationsResponse';
|
|
46
|
+
readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
|
|
47
|
+
readonly isList: true;
|
|
48
|
+
readonly paginationType: 'offset';
|
|
49
|
+
readonly pageParamKey: 'page';
|
|
50
|
+
readonly listItemType: 'KeyRotation';
|
|
51
|
+
readonly listItemTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
|
|
52
|
+
readonly isPrivate: false;
|
|
53
|
+
readonly description: '"';
|
|
54
|
+
}, {
|
|
55
|
+
readonly methodName: 'listAlgorithms';
|
|
56
|
+
readonly protoName: 'ListAlgorithms';
|
|
57
|
+
readonly paramsType: 'ListAlgorithmsRequest';
|
|
58
|
+
readonly returnType: 'ListAlgorithmsResponse';
|
|
59
|
+
readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
|
|
60
|
+
readonly isList: false;
|
|
61
|
+
readonly paginationType: 'none';
|
|
62
|
+
readonly isPrivate: false;
|
|
63
|
+
readonly description: '"';
|
|
64
64
|
}];
|
|
65
|
+
}];
|
|
65
66
|
};
|
|
66
67
|
export type QueriesMetadata = typeof queriesMetadata;
|
|
68
|
+
//#endregion
|