@scaleway/sdk-key-manager 2.17.0 → 2.18.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.
@@ -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 as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
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$1 {
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 type { DataKeyAlgorithmSymmetricEncryption, KeyAlgorithmAsymmetricEncryption, KeyAlgorithmAsymmetricSigning, KeyAlgorithmKeyEncapsulation, KeyAlgorithmSymmetricEncryption, KeyOrigin, KeyRotationStatus, KeyState, ListAlgorithmsRequestUsage, ListKeyRotationsRequestOrderBy, ListKeysRequestOrderBy, ListKeysRequestUsage } from './types.gen.js';
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
- export { API, } from './api.gen.js';
2
- export * from './constants.gen.js';
3
- export * from './marshalling.gen.js';
4
- export type { CreateKeyRequest, DataKey, DataKeyAlgorithmSymmetricEncryption, DecryptRequest, DecryptResponse, DeleteKeyMaterialRequest, DeleteKeyRequest, DisableKeyRequest, EnableKeyRequest, EncryptRequest, EncryptResponse, GenerateDataKeyRequest, GetKeyRequest, GetPublicKeyRequest, ImportKeyMaterialRequest, Key, KeyAlgorithmAsymmetricEncryption, KeyAlgorithmAsymmetricSigning, KeyAlgorithmKeyEncapsulation, KeyAlgorithmSymmetricEncryption, KeyOrigin, 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';
5
- export * as ValidationRules from './validation-rules.gen.js';
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 type { DefaultValues } from '@scaleway/sdk-client';
2
- import type { Key, DataKey, DecryptResponse, EncryptResponse, ListAlgorithmsResponse, ListKeyRotationsResponse, ListKeysResponse, PublicKey, SignResponse, UnwrapKeyResponse, VerifyResponse, WrapKeyResponse, CreateKeyRequest, DecryptRequest, DeleteKeyMaterialRequest, EncryptRequest, GenerateDataKeyRequest, ImportKeyMaterialRequest, SignRequest, UnwrapKeyRequest, UpdateKeyRequest, VerifyRequest, WrapKeyRequest } from './types.gen.js';
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
- readonly namespace: 'key_manager';
3
- readonly version: 'v1alpha1';
4
- readonly folderName: 'keyManagerv1alpha1';
5
- readonly services: readonly [{
6
- readonly apiClass: 'API';
7
- readonly methods: readonly [{
8
- readonly methodName: 'getKey';
9
- readonly protoName: 'GetKey';
10
- readonly paramsType: 'GetKeyRequest';
11
- readonly returnType: 'Key';
12
- readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
13
- readonly isList: false;
14
- readonly paginationType: 'none';
15
- readonly isPrivate: false;
16
- readonly description: '"';
17
- }, {
18
- readonly methodName: 'getPublicKey';
19
- readonly protoName: 'GetPublicKey';
20
- readonly paramsType: 'GetPublicKeyRequest';
21
- readonly returnType: 'PublicKey';
22
- readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
23
- readonly isList: false;
24
- readonly paginationType: 'none';
25
- readonly isPrivate: false;
26
- readonly description: '"';
27
- }, {
28
- readonly methodName: 'listKeys';
29
- readonly protoName: 'ListKeys';
30
- readonly paramsType: 'ListKeysRequest';
31
- readonly returnType: 'ListKeysResponse';
32
- readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
33
- readonly isList: true;
34
- readonly paginationType: 'offset';
35
- readonly pageParamKey: 'page';
36
- readonly listItemType: 'Key';
37
- readonly listItemTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
38
- readonly isPrivate: false;
39
- readonly description: '"';
40
- }, {
41
- readonly methodName: 'listKeyRotations';
42
- readonly protoName: 'ListKeyRotations';
43
- readonly paramsType: 'ListKeyRotationsRequest';
44
- readonly returnType: 'ListKeyRotationsResponse';
45
- readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
46
- readonly isList: true;
47
- readonly paginationType: 'offset';
48
- readonly pageParamKey: 'page';
49
- readonly listItemType: 'KeyRotation';
50
- readonly listItemTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
51
- readonly isPrivate: false;
52
- readonly description: '"';
53
- }, {
54
- readonly methodName: 'listAlgorithms';
55
- readonly protoName: 'ListAlgorithms';
56
- readonly paramsType: 'ListAlgorithmsRequest';
57
- readonly returnType: 'ListAlgorithmsResponse';
58
- readonly returnTypeNamespace: '@scaleway/sdk-key-manager/v1alpha1';
59
- readonly isList: false;
60
- readonly paginationType: 'none';
61
- readonly isPrivate: false;
62
- readonly description: '"';
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
@@ -70,5 +70,6 @@ const queriesMetadata = {
70
70
  ]
71
71
  }]
72
72
  };
73
+
73
74
  //#endregion
74
- export { queriesMetadata };
75
+ export { queriesMetadata };