@azure/keyvault-keys 4.10.1 → 4.10.2-alpha.20250925.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.
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/keyVaultContext.d.ts.map +1 -0
- package/dist/{esm/generated/src → browser}/api/keyVaultContext.js +1 -3
- package/dist/browser/api/keyVaultContext.js.map +1 -0
- package/dist/browser/api/operations.d.ts.map +1 -0
- package/dist/{esm/generated/src → browser}/api/operations.js +25 -75
- package/dist/browser/api/operations.js.map +1 -0
- package/dist/browser/api/options.d.ts.map +1 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/cryptography/remoteCryptographyProvider.js +2 -2
- package/dist/browser/cryptography/remoteCryptographyProvider.js.map +1 -1
- package/dist/browser/cryptographyClient.js +1 -1
- package/dist/browser/cryptographyClient.js.map +1 -1
- package/dist/browser/cryptographyClientModels.d.ts +2 -2
- package/dist/browser/cryptographyClientModels.d.ts.map +1 -1
- package/dist/browser/cryptographyClientModels.js +1 -1
- package/dist/browser/cryptographyClientModels.js.map +1 -1
- package/dist/browser/index.d.ts +2 -2
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +3 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/keyVaultClient.d.ts.map +1 -0
- package/dist/{esm/generated/src → browser}/keyVaultClient.js +1 -1
- package/dist/browser/keyVaultClient.js.map +1 -0
- package/dist/browser/keysModels.d.ts +2 -2
- package/dist/browser/keysModels.d.ts.map +1 -1
- package/dist/browser/keysModels.js.map +1 -1
- package/dist/{esm/log.d.ts → browser/logger.d.ts} +1 -1
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/{log.js → logger.js} +1 -1
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/lro/delete/operation.d.ts +1 -1
- package/dist/browser/lro/delete/operation.d.ts.map +1 -1
- package/dist/browser/lro/delete/operation.js.map +1 -1
- package/dist/browser/lro/keyVaultKeyPoller.d.ts +1 -1
- package/dist/browser/lro/keyVaultKeyPoller.d.ts.map +1 -1
- package/dist/browser/lro/keyVaultKeyPoller.js.map +1 -1
- package/dist/browser/lro/recover/operation.d.ts +1 -1
- package/dist/browser/lro/recover/operation.d.ts.map +1 -1
- package/dist/browser/lro/recover/operation.js.map +1 -1
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/{esm/generated/src → browser}/models/models.js +17 -51
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/{esm/generated/src → browser}/static-helpers/pagingHelpers.js +2 -4
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/{esm/generated/src → browser}/static-helpers/urlTemplate.js +1 -4
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/browser/transformations.d.ts +2 -2
- package/dist/browser/transformations.d.ts.map +1 -1
- package/dist/browser/transformations.js.map +1 -1
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/keyVaultContext.d.ts.map +1 -0
- package/dist/commonjs/{generated/src/api → api}/keyVaultContext.js +1 -3
- package/dist/commonjs/api/keyVaultContext.js.map +1 -0
- package/dist/commonjs/api/operations.d.ts.map +1 -0
- package/dist/commonjs/{generated/src/api → api}/operations.js +25 -75
- package/dist/commonjs/api/operations.js.map +1 -0
- package/dist/commonjs/api/options.d.ts.map +1 -0
- package/dist/commonjs/api/options.js.map +1 -0
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/cryptography/remoteCryptographyProvider.js +5 -5
- package/dist/commonjs/cryptography/remoteCryptographyProvider.js.map +1 -1
- package/dist/commonjs/cryptographyClient.js +2 -2
- package/dist/commonjs/cryptographyClient.js.map +1 -1
- package/dist/commonjs/cryptographyClientModels.d.ts +2 -2
- package/dist/commonjs/cryptographyClientModels.d.ts.map +1 -1
- package/dist/commonjs/cryptographyClientModels.js +6 -6
- package/dist/commonjs/cryptographyClientModels.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +6 -6
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/keyVaultClient.d.ts.map +1 -0
- package/dist/commonjs/keyVaultClient.js.map +1 -0
- package/dist/commonjs/keysModels.d.ts +2 -2
- package/dist/commonjs/keysModels.d.ts.map +1 -1
- package/dist/commonjs/keysModels.js.map +1 -1
- package/dist/{browser/log.d.ts → commonjs/logger.d.ts} +1 -1
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/{log.js → logger.js} +1 -1
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/lro/delete/operation.d.ts +1 -1
- package/dist/commonjs/lro/delete/operation.d.ts.map +1 -1
- package/dist/commonjs/lro/delete/operation.js.map +1 -1
- package/dist/commonjs/lro/keyVaultKeyPoller.d.ts +1 -1
- package/dist/commonjs/lro/keyVaultKeyPoller.d.ts.map +1 -1
- package/dist/commonjs/lro/keyVaultKeyPoller.js.map +1 -1
- package/dist/commonjs/lro/recover/operation.d.ts +1 -1
- package/dist/commonjs/lro/recover/operation.d.ts.map +1 -1
- package/dist/commonjs/lro/recover/operation.js.map +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/{generated/src/models → models}/models.js +17 -51
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/{generated/src/static-helpers → static-helpers}/pagingHelpers.js +1 -3
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/{generated/src/static-helpers → static-helpers}/urlTemplate.js +1 -4
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/transformations.d.ts +2 -2
- package/dist/commonjs/transformations.d.ts.map +1 -1
- package/dist/commonjs/transformations.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/keyVaultContext.d.ts.map +1 -0
- package/dist/{browser/generated/src → esm}/api/keyVaultContext.js +1 -3
- package/dist/esm/api/keyVaultContext.js.map +1 -0
- package/dist/esm/api/operations.d.ts.map +1 -0
- package/dist/{browser/generated/src → esm}/api/operations.js +25 -75
- package/dist/esm/api/operations.js.map +1 -0
- package/dist/esm/api/options.d.ts.map +1 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/cryptography/remoteCryptographyProvider.js +2 -2
- package/dist/esm/cryptography/remoteCryptographyProvider.js.map +1 -1
- package/dist/esm/cryptographyClient.js +1 -1
- package/dist/esm/cryptographyClient.js.map +1 -1
- package/dist/esm/cryptographyClientModels.d.ts +2 -2
- package/dist/esm/cryptographyClientModels.d.ts.map +1 -1
- package/dist/esm/cryptographyClientModels.js +1 -1
- package/dist/esm/cryptographyClientModels.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/keyVaultClient.d.ts.map +1 -0
- package/dist/{browser/generated/src → esm}/keyVaultClient.js +1 -1
- package/dist/esm/keyVaultClient.js.map +1 -0
- package/dist/esm/keysModels.d.ts +2 -2
- package/dist/esm/keysModels.d.ts.map +1 -1
- package/dist/esm/keysModels.js.map +1 -1
- package/dist/{commonjs/log.d.ts → esm/logger.d.ts} +1 -1
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/{log.js → logger.js} +1 -1
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/lro/delete/operation.d.ts +1 -1
- package/dist/esm/lro/delete/operation.d.ts.map +1 -1
- package/dist/esm/lro/delete/operation.js.map +1 -1
- package/dist/esm/lro/keyVaultKeyPoller.d.ts +1 -1
- package/dist/esm/lro/keyVaultKeyPoller.d.ts.map +1 -1
- package/dist/esm/lro/keyVaultKeyPoller.js.map +1 -1
- package/dist/esm/lro/recover/operation.d.ts +1 -1
- package/dist/esm/lro/recover/operation.d.ts.map +1 -1
- package/dist/esm/lro/recover/operation.js.map +1 -1
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/{browser/generated/src → esm}/models/models.js +17 -51
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/{browser/generated/src → esm}/static-helpers/pagingHelpers.js +2 -4
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/{browser/generated/src → esm}/static-helpers/urlTemplate.js +1 -4
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/esm/transformations.d.ts +2 -2
- package/dist/esm/transformations.d.ts.map +1 -1
- package/dist/esm/transformations.js.map +1 -1
- package/package.json +8 -13
- package/dist/browser/generated/src/api/index.d.ts.map +0 -1
- package/dist/browser/generated/src/api/index.js.map +0 -1
- package/dist/browser/generated/src/api/keyVaultContext.d.ts.map +0 -1
- package/dist/browser/generated/src/api/keyVaultContext.js.map +0 -1
- package/dist/browser/generated/src/api/operations.d.ts.map +0 -1
- package/dist/browser/generated/src/api/operations.js.map +0 -1
- package/dist/browser/generated/src/api/options.d.ts.map +0 -1
- package/dist/browser/generated/src/api/options.js.map +0 -1
- package/dist/browser/generated/src/index.d.ts +0 -6
- package/dist/browser/generated/src/index.d.ts.map +0 -1
- package/dist/browser/generated/src/index.js +0 -5
- package/dist/browser/generated/src/index.js.map +0 -1
- package/dist/browser/generated/src/keyVaultClient.d.ts.map +0 -1
- package/dist/browser/generated/src/keyVaultClient.js.map +0 -1
- package/dist/browser/generated/src/logger.d.ts +0 -2
- package/dist/browser/generated/src/logger.d.ts.map +0 -1
- package/dist/browser/generated/src/logger.js +0 -5
- package/dist/browser/generated/src/logger.js.map +0 -1
- package/dist/browser/generated/src/models/index.d.ts.map +0 -1
- package/dist/browser/generated/src/models/index.js.map +0 -1
- package/dist/browser/generated/src/models/models.d.ts.map +0 -1
- package/dist/browser/generated/src/models/models.js.map +0 -1
- package/dist/browser/generated/src/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/browser/generated/src/static-helpers/pagingHelpers.js.map +0 -1
- package/dist/browser/generated/src/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/browser/generated/src/static-helpers/urlTemplate.js.map +0 -1
- package/dist/browser/log.d.ts.map +0 -1
- package/dist/browser/log.js.map +0 -1
- package/dist/commonjs/generated/src/api/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/api/index.js.map +0 -1
- package/dist/commonjs/generated/src/api/keyVaultContext.d.ts.map +0 -1
- package/dist/commonjs/generated/src/api/keyVaultContext.js.map +0 -1
- package/dist/commonjs/generated/src/api/operations.d.ts.map +0 -1
- package/dist/commonjs/generated/src/api/operations.js.map +0 -1
- package/dist/commonjs/generated/src/api/options.d.ts.map +0 -1
- package/dist/commonjs/generated/src/api/options.js.map +0 -1
- package/dist/commonjs/generated/src/index.d.ts +0 -6
- package/dist/commonjs/generated/src/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/index.js +0 -17
- package/dist/commonjs/generated/src/index.js.map +0 -1
- package/dist/commonjs/generated/src/keyVaultClient.d.ts.map +0 -1
- package/dist/commonjs/generated/src/keyVaultClient.js.map +0 -1
- package/dist/commonjs/generated/src/logger.d.ts +0 -2
- package/dist/commonjs/generated/src/logger.d.ts.map +0 -1
- package/dist/commonjs/generated/src/logger.js +0 -8
- package/dist/commonjs/generated/src/logger.js.map +0 -1
- package/dist/commonjs/generated/src/models/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models/index.js.map +0 -1
- package/dist/commonjs/generated/src/models/models.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models/models.js.map +0 -1
- package/dist/commonjs/generated/src/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/commonjs/generated/src/static-helpers/pagingHelpers.js.map +0 -1
- package/dist/commonjs/generated/src/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/commonjs/generated/src/static-helpers/urlTemplate.js.map +0 -1
- package/dist/commonjs/log.d.ts.map +0 -1
- package/dist/commonjs/log.js.map +0 -1
- package/dist/esm/generated/src/api/index.d.ts.map +0 -1
- package/dist/esm/generated/src/api/index.js.map +0 -1
- package/dist/esm/generated/src/api/keyVaultContext.d.ts.map +0 -1
- package/dist/esm/generated/src/api/keyVaultContext.js.map +0 -1
- package/dist/esm/generated/src/api/operations.d.ts.map +0 -1
- package/dist/esm/generated/src/api/operations.js.map +0 -1
- package/dist/esm/generated/src/api/options.d.ts.map +0 -1
- package/dist/esm/generated/src/api/options.js.map +0 -1
- package/dist/esm/generated/src/index.d.ts +0 -6
- package/dist/esm/generated/src/index.d.ts.map +0 -1
- package/dist/esm/generated/src/index.js +0 -5
- package/dist/esm/generated/src/index.js.map +0 -1
- package/dist/esm/generated/src/keyVaultClient.d.ts.map +0 -1
- package/dist/esm/generated/src/keyVaultClient.js.map +0 -1
- package/dist/esm/generated/src/logger.d.ts +0 -2
- package/dist/esm/generated/src/logger.d.ts.map +0 -1
- package/dist/esm/generated/src/logger.js +0 -5
- package/dist/esm/generated/src/logger.js.map +0 -1
- package/dist/esm/generated/src/models/index.d.ts.map +0 -1
- package/dist/esm/generated/src/models/index.js.map +0 -1
- package/dist/esm/generated/src/models/models.d.ts.map +0 -1
- package/dist/esm/generated/src/models/models.js.map +0 -1
- package/dist/esm/generated/src/static-helpers/pagingHelpers.d.ts.map +0 -1
- package/dist/esm/generated/src/static-helpers/pagingHelpers.js.map +0 -1
- package/dist/esm/generated/src/static-helpers/urlTemplate.d.ts.map +0 -1
- package/dist/esm/generated/src/static-helpers/urlTemplate.js.map +0 -1
- package/dist/esm/log.d.ts.map +0 -1
- package/dist/esm/log.js.map +0 -1
- /package/dist/browser/{generated/src/api → api}/index.d.ts +0 -0
- /package/dist/browser/{generated/src/api → api}/index.js +0 -0
- /package/dist/browser/{generated/src/api → api}/keyVaultContext.d.ts +0 -0
- /package/dist/browser/{generated/src/api → api}/operations.d.ts +0 -0
- /package/dist/browser/{generated/src/api → api}/options.d.ts +0 -0
- /package/dist/browser/{generated/src/api → api}/options.js +0 -0
- /package/dist/browser/{generated/src/keyVaultClient.d.ts → keyVaultClient.d.ts} +0 -0
- /package/dist/browser/{generated/src/models → models}/index.d.ts +0 -0
- /package/dist/browser/{generated/src/models → models}/index.js +0 -0
- /package/dist/browser/{generated/src/models → models}/models.d.ts +0 -0
- /package/dist/browser/{generated/src/static-helpers → static-helpers}/pagingHelpers.d.ts +0 -0
- /package/dist/browser/{generated/src/static-helpers → static-helpers}/urlTemplate.d.ts +0 -0
- /package/dist/commonjs/{generated/src/api → api}/index.d.ts +0 -0
- /package/dist/commonjs/{generated/src/api → api}/index.js +0 -0
- /package/dist/commonjs/{generated/src/api → api}/keyVaultContext.d.ts +0 -0
- /package/dist/commonjs/{generated/src/api → api}/operations.d.ts +0 -0
- /package/dist/commonjs/{generated/src/api → api}/options.d.ts +0 -0
- /package/dist/commonjs/{generated/src/api → api}/options.js +0 -0
- /package/dist/commonjs/{generated/src/keyVaultClient.d.ts → keyVaultClient.d.ts} +0 -0
- /package/dist/commonjs/{generated/src/keyVaultClient.js → keyVaultClient.js} +0 -0
- /package/dist/commonjs/{generated/src/models → models}/index.d.ts +0 -0
- /package/dist/commonjs/{generated/src/models → models}/index.js +0 -0
- /package/dist/commonjs/{generated/src/models → models}/models.d.ts +0 -0
- /package/dist/commonjs/{generated/src/static-helpers → static-helpers}/pagingHelpers.d.ts +0 -0
- /package/dist/commonjs/{generated/src/static-helpers → static-helpers}/urlTemplate.d.ts +0 -0
- /package/dist/esm/{generated/src/api → api}/index.d.ts +0 -0
- /package/dist/esm/{generated/src/api → api}/index.js +0 -0
- /package/dist/esm/{generated/src/api → api}/keyVaultContext.d.ts +0 -0
- /package/dist/esm/{generated/src/api → api}/operations.d.ts +0 -0
- /package/dist/esm/{generated/src/api → api}/options.d.ts +0 -0
- /package/dist/esm/{generated/src/api → api}/options.js +0 -0
- /package/dist/esm/{generated/src/keyVaultClient.d.ts → keyVaultClient.d.ts} +0 -0
- /package/dist/esm/{generated/src/models → models}/index.d.ts +0 -0
- /package/dist/esm/{generated/src/models → models}/index.js +0 -0
- /package/dist/esm/{generated/src/models → models}/models.d.ts +0 -0
- /package/dist/esm/{generated/src/static-helpers → static-helpers}/pagingHelpers.d.ts +0 -0
- /package/dist/esm/{generated/src/static-helpers → static-helpers}/urlTemplate.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CryptographyOptions, KeyVaultKey } from "./keysModels.js";
|
|
2
|
-
import type { JsonWebKey } from "./
|
|
3
|
-
import { JsonWebKeyEncryptionAlgorithm as EncryptionAlgorithm, JsonWebKeyCurveName as KeyCurveName, KnownJsonWebKeyCurveName as KnownKeyCurveNames, KnownJsonWebKeySignatureAlgorithm as KnownSignatureAlgorithms, KnownJsonWebKeyEncryptionAlgorithm as KnownEncryptionAlgorithms, JsonWebKeySignatureAlgorithm as SignatureAlgorithm, KnownJsonWebKeyType as KnownKeyTypes, KnownKeyEncryptionAlgorithm as KnownKeyExportEncryptionAlgorithm } from "./
|
|
2
|
+
import type { JsonWebKey } from "./models/models.js";
|
|
3
|
+
import { JsonWebKeyEncryptionAlgorithm as EncryptionAlgorithm, JsonWebKeyCurveName as KeyCurveName, KnownJsonWebKeyCurveName as KnownKeyCurveNames, KnownJsonWebKeySignatureAlgorithm as KnownSignatureAlgorithms, KnownJsonWebKeyEncryptionAlgorithm as KnownEncryptionAlgorithms, JsonWebKeySignatureAlgorithm as SignatureAlgorithm, KnownJsonWebKeyType as KnownKeyTypes, KnownKeyEncryptionAlgorithm as KnownKeyExportEncryptionAlgorithm } from "./models/models.js";
|
|
4
4
|
export { EncryptionAlgorithm, KeyCurveName, KnownEncryptionAlgorithms, KnownKeyCurveNames, KnownKeyExportEncryptionAlgorithm, KnownKeyTypes, KnownSignatureAlgorithms, SignatureAlgorithm, };
|
|
5
5
|
/**
|
|
6
6
|
* Supported algorithms for key wrapping/unwrapping
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cryptographyClientModels.d.ts","sourceRoot":"","sources":["../../src/cryptographyClientModels.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cryptographyClientModels.d.ts","sourceRoot":"","sources":["../../src/cryptographyClientModels.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,6BAA6B,IAAI,mBAAmB,EACpD,mBAAmB,IAAI,YAAY,EACnC,wBAAwB,IAAI,kBAAkB,EAC9C,iCAAiC,IAAI,wBAAwB,EAC7D,kCAAkC,IAAI,yBAAyB,EAC/D,4BAA4B,IAAI,kBAAkB,EAClD,mBAAmB,IAAI,aAAa,EACpC,2BAA2B,IAAI,iCAAiC,EACjE,MAAM,oBAAoB,CAAC;AAE5B,OA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AU,CAAC;CACnB,CAAC"}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.KnownSignatureAlgorithms = exports.KnownKeyTypes = exports.KnownKeyExportEncryptionAlgorithm = exports.KnownKeyCurveNames = exports.KnownEncryptionAlgorithms = void 0;
|
|
6
|
-
const
|
|
7
|
-
Object.defineProperty(exports, "KnownKeyCurveNames", { enumerable: true, get: function () { return
|
|
8
|
-
Object.defineProperty(exports, "KnownSignatureAlgorithms", { enumerable: true, get: function () { return
|
|
9
|
-
Object.defineProperty(exports, "KnownEncryptionAlgorithms", { enumerable: true, get: function () { return
|
|
10
|
-
Object.defineProperty(exports, "KnownKeyTypes", { enumerable: true, get: function () { return
|
|
11
|
-
Object.defineProperty(exports, "KnownKeyExportEncryptionAlgorithm", { enumerable: true, get: function () { return
|
|
6
|
+
const models_js_1 = require("./models/models.js");
|
|
7
|
+
Object.defineProperty(exports, "KnownKeyCurveNames", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeyCurveName; } });
|
|
8
|
+
Object.defineProperty(exports, "KnownSignatureAlgorithms", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeySignatureAlgorithm; } });
|
|
9
|
+
Object.defineProperty(exports, "KnownEncryptionAlgorithms", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeyEncryptionAlgorithm; } });
|
|
10
|
+
Object.defineProperty(exports, "KnownKeyTypes", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeyType; } });
|
|
11
|
+
Object.defineProperty(exports, "KnownKeyExportEncryptionAlgorithm", { enumerable: true, get: function () { return models_js_1.KnownKeyEncryptionAlgorithm; } });
|
|
12
12
|
//# sourceMappingURL=cryptographyClientModels.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cryptographyClientModels.js","sourceRoot":"","sources":["../../src/cryptographyClientModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAKlC,
|
|
1
|
+
{"version":3,"file":"cryptographyClientModels.js","sourceRoot":"","sources":["../../src/cryptographyClientModels.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAKlC,kDAS4B;AAM1B,mGAZ4B,oCAAkB,OAY5B;AAGlB,yGAdqC,6CAAwB,OAcrC;AAJxB,0GATsC,8CAAyB,OAStC;AAGzB,8FAVuB,+BAAa,OAUvB;AADb,kHAR+B,uCAAiC,OAQ/B","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CryptographyOptions, KeyVaultKey } from \"./keysModels.js\";\n\nimport type { JsonWebKey } from \"./models/models.js\";\nimport {\n JsonWebKeyEncryptionAlgorithm as EncryptionAlgorithm,\n JsonWebKeyCurveName as KeyCurveName,\n KnownJsonWebKeyCurveName as KnownKeyCurveNames,\n KnownJsonWebKeySignatureAlgorithm as KnownSignatureAlgorithms,\n KnownJsonWebKeyEncryptionAlgorithm as KnownEncryptionAlgorithms,\n JsonWebKeySignatureAlgorithm as SignatureAlgorithm,\n KnownJsonWebKeyType as KnownKeyTypes,\n KnownKeyEncryptionAlgorithm as KnownKeyExportEncryptionAlgorithm,\n} from \"./models/models.js\";\n\nexport {\n EncryptionAlgorithm,\n KeyCurveName,\n KnownEncryptionAlgorithms,\n KnownKeyCurveNames,\n KnownKeyExportEncryptionAlgorithm,\n KnownKeyTypes,\n KnownSignatureAlgorithms,\n SignatureAlgorithm,\n};\n\n/**\n * Supported algorithms for key wrapping/unwrapping\n */\nexport type KeyWrapAlgorithm =\n | \"A128KW\"\n | \"A192KW\"\n | \"A256KW\"\n | \"RSA-OAEP\"\n | \"RSA-OAEP-256\"\n | \"RSA1_5\"\n | \"CKM_AES_KEY_WRAP\"\n | \"CKM_AES_KEY_WRAP_PAD\";\n\n/**\n * Result of the {@link encrypt} operation.\n */\nexport interface EncryptResult {\n /**\n * Result of the {@link encrypt} operation in bytes.\n */\n result: Uint8Array;\n /**\n * The {@link EncryptionAlgorithm} used to encrypt the data.\n */\n algorithm: EncryptionAlgorithm;\n /**\n * The ID of the Key Vault Key used to encrypt the data.\n */\n keyID?: string;\n /**\n * The initialization vector used for encryption.\n */\n iv?: Uint8Array;\n /**\n * The authentication tag resulting from encryption with a symmetric key including A128GCM, A192GCM, and A256GCM.\n */\n authenticationTag?: Uint8Array;\n /**\n * Additional data that is authenticated during decryption but not encrypted.\n */\n additionalAuthenticatedData?: Uint8Array;\n}\n\n/**\n * Result of the {@link wrap} operation.\n */\nexport interface WrapResult {\n /**\n * Result of the {@link wrap} operation in bytes.\n */\n result: Uint8Array;\n /**\n * The ID of the Key Vault Key used to wrap the data.\n */\n keyID?: string;\n /**\n * The {@link EncryptionAlgorithm} used to wrap the data.\n */\n algorithm: KeyWrapAlgorithm;\n}\n\n/**\n * Result of the {@link unwrap} operation.\n */\nexport interface UnwrapResult {\n /**\n * Result of the {@link unwrap} operation in bytes.\n */\n result: Uint8Array;\n /**\n * The ID of the Key Vault Key used to unwrap the data.\n */\n keyID?: string;\n /**\n * The {@link KeyWrapAlgorithm} used to unwrap the data.\n */\n algorithm: KeyWrapAlgorithm;\n}\n/**\n * Result of the {@link decrypt} operation.\n */\nexport interface DecryptResult {\n /**\n * Result of the {@link decrypt} operation in bytes.\n */\n result: Uint8Array;\n /**\n * The ID of the Key Vault Key used to decrypt the encrypted data.\n */\n keyID?: string;\n /**\n * The {@link EncryptionAlgorithm} used to decrypt the encrypted data.\n */\n algorithm: EncryptionAlgorithm;\n}\n\n/**\n * Result of the {@link sign} operation.\n */\nexport interface SignResult {\n /**\n * Result of the {@link sign} operation in bytes.\n */\n result: Uint8Array;\n /**\n * The ID of the Key Vault Key used to sign the data.\n */\n keyID?: string;\n /**\n * The {@link EncryptionAlgorithm} used to sign the data.\n */\n algorithm: SignatureAlgorithm;\n}\n\n/**\n * Result of the {@link verify} operation.\n */\nexport interface VerifyResult {\n /**\n * Result of the {@link verify} operation in bytes.\n */\n result: boolean;\n /**\n * The ID of the Key Vault Key used to verify the data.\n */\n keyID?: string;\n}\n\n/**\n * Options for {@link encrypt}.\n */\nexport interface EncryptOptions extends CryptographyOptions {}\n\n/**\n * Options for {@link decrypt}.\n */\nexport interface DecryptOptions extends CryptographyOptions {}\n\n/**\n * Options for {@link sign}.\n */\nexport interface SignOptions extends CryptographyOptions {}\n\n/**\n * Options for {@link verify}.\n */\nexport interface VerifyOptions extends CryptographyOptions {}\n\n/**\n * Options for {@link verifyData}\n */\nexport interface VerifyDataOptions extends CryptographyOptions {}\n\n/**\n * Options for {@link wrapKey}.\n */\nexport interface WrapKeyOptions extends CryptographyOptions {}\n\n/**\n * Options for {@link unwrapKey}.\n */\nexport interface UnwrapKeyOptions extends CryptographyOptions {}\n\n/**\n * A union type representing all supported RSA encryption algorithms.\n */\nexport type RsaEncryptionAlgorithm = \"RSA1_5\" | \"RSA-OAEP\" | \"RSA-OAEP-256\";\n\n/**\n * Encryption parameters for RSA encryption algorithms.\n */\nexport interface RsaEncryptParameters {\n /**\n * The encryption algorithm to use.\n */\n algorithm: RsaEncryptionAlgorithm;\n /**\n * The plain text to encrypt.\n */\n plaintext: Uint8Array;\n}\n\n/**\n * A union type representing all supported AES-GCM encryption algorithms.\n */\nexport type AesGcmEncryptionAlgorithm = \"A128GCM\" | \"A192GCM\" | \"A256GCM\";\n\n/**\n * Encryption parameters for AES-GCM encryption algorithms.\n */\nexport interface AesGcmEncryptParameters {\n /**\n * The encryption algorithm to use.\n */\n algorithm: AesGcmEncryptionAlgorithm;\n /**\n * The plain text to encrypt.\n */\n plaintext: Uint8Array;\n /**\n * Optional data that is authenticated but not encrypted.\n */\n additionalAuthenticatedData?: Uint8Array;\n}\n\n/**\n * A union type representing all supported AES-CBC encryption algorithms.\n */\nexport type AesCbcEncryptionAlgorithm =\n | \"A128CBC\"\n | \"A192CBC\"\n | \"A256CBC\"\n | \"A128CBCPAD\"\n | \"A192CBCPAD\"\n | \"A256CBCPAD\";\n\n/**\n * Encryption parameters for AES-CBC encryption algorithms.\n */\nexport interface AesCbcEncryptParameters {\n /**\n * The encryption algorithm to use.\n */\n algorithm: AesCbcEncryptionAlgorithm;\n /**\n * The plain text to encrypt.\n */\n plaintext: Uint8Array;\n /**\n * The initialization vector used for encryption. If omitted we will attempt to generate an IV using crypto's `randomBytes` functionality.\n * An error will be thrown if creating an IV fails, and you may recover by passing in your own cryptographically secure IV.\n *\n * When passing your own IV, make sure you use a cryptographically random, non-repeating IV.\n */\n iv?: Uint8Array;\n}\n\n/**\n * A type representing all currently supported encryption parameters as they apply to different encryption algorithms.\n */\nexport type EncryptParameters =\n | RsaEncryptParameters\n | AesGcmEncryptParameters\n | AesCbcEncryptParameters;\n\n/**\n * Decryption parameters for RSA encryption algorithms.\n */\nexport interface RsaDecryptParameters {\n /**\n * The encryption algorithm to use.\n */\n algorithm: RsaEncryptionAlgorithm;\n /**\n * The ciphertext to decrypt.\n */\n ciphertext: Uint8Array;\n}\n\n/**\n * Decryption parameters for AES-GCM encryption algorithms.\n */\nexport interface AesGcmDecryptParameters {\n /**\n * The encryption algorithm to use.\n */\n algorithm: AesGcmEncryptionAlgorithm;\n /**\n * The ciphertext to decrypt.\n */\n ciphertext: Uint8Array;\n /**\n * The initialization vector (or nonce) generated during encryption.\n */\n iv: Uint8Array;\n /**\n * The authentication tag generated during encryption.\n */\n authenticationTag: Uint8Array;\n /**\n * Optional data that is authenticated but not encrypted.\n */\n additionalAuthenticatedData?: Uint8Array;\n}\n\n/**\n * Decryption parameters for AES-CBC encryption algorithms.\n */\nexport interface AesCbcDecryptParameters {\n /**\n * The encryption algorithm to use.\n */\n algorithm: AesCbcEncryptionAlgorithm;\n /**\n * The initialization vector used during encryption.\n */\n /**\n * The ciphertext to decrypt. Microsoft recommends you not use CBC without first ensuring the integrity of the ciphertext using an HMAC, for example.\n * See https://learn.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information.\n */\n ciphertext: Uint8Array;\n /**\n * The initialization vector generated during encryption.\n */\n iv: Uint8Array;\n}\n\n/**\n * A type representing all currently supported decryption parameters as they apply to different encryption algorithms.\n */\nexport type DecryptParameters =\n | RsaDecryptParameters\n | AesGcmDecryptParameters\n | AesCbcDecryptParameters;\n\n/**\n * The various key types a {@link CryptographyClient} can hold.\n * The key may be an identifier (URL) to a KeyVault key, the actual KeyVault key,\n * or a local-only JsonWebKey.\n *\n * If an identifier is used, an attempt will be made to exchange it for a {@link KeyVaultKey} during the first operation call. If this attempt fails, the identifier\n * will become a remote-only identifier and the {@link CryptographyClient} will only be able to perform remote operations.\n */\nexport type CryptographyClientKey =\n | {\n kind: \"identifier\";\n value: string;\n }\n | {\n kind: \"remoteOnlyIdentifier\";\n value: string;\n }\n | {\n kind: \"KeyVaultKey\";\n value: KeyVaultKey;\n }\n | {\n kind: \"JsonWebKey\";\n value: JsonWebKey;\n };\n"]}
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { TokenCredential } from "@azure/core-auth";
|
|
2
|
-
import { logger } from "./
|
|
2
|
+
import { logger } from "./logger.js";
|
|
3
3
|
import { PageSettings, PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
4
4
|
import { PollOperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
-
import { DeletionRecoveryLevel, KnownDeletionRecoveryLevel } from "./
|
|
5
|
+
import { DeletionRecoveryLevel, KnownDeletionRecoveryLevel } from "./models/models.js";
|
|
6
6
|
import { BackupKeyOptions, BeginDeleteKeyOptions, BeginRecoverDeletedKeyOptions, CreateEcKeyOptions, CreateKeyOptions, CreateOctKeyOptions, CreateRsaKeyOptions, CryptographyClientOptions, CryptographyOptions, DeletedKey, GetCryptographyClientOptions, GetDeletedKeyOptions, GetKeyAttestationOptions, GetKeyOptions, GetKeyRotationPolicyOptions, GetRandomBytesOptions, ImportKeyOptions, JsonWebKey, KeyAttestation, KeyClientOptions, KeyExportEncryptionAlgorithm, KeyOperation, KeyPollerOptions, KeyProperties, KeyReleasePolicy, KeyRotationLifetimeAction, KeyRotationPolicy, KeyRotationPolicyAction, KeyRotationPolicyProperties, KeyType, KeyVaultKey, KnownKeyOperations, ListDeletedKeysOptions, ListPropertiesOfKeyVersionsOptions, ListPropertiesOfKeysOptions, PurgeDeletedKeyOptions, ReleaseKeyOptions, ReleaseKeyResult, RestoreKeyBackupOptions, RotateKeyOptions, UpdateKeyPropertiesOptions, UpdateKeyRotationPolicyOptions } from "./keysModels.js";
|
|
7
7
|
import { CryptographyClient } from "./cryptographyClient.js";
|
|
8
8
|
import { AesCbcDecryptParameters, AesCbcEncryptParameters, AesCbcEncryptionAlgorithm, AesGcmDecryptParameters, AesGcmEncryptParameters, AesGcmEncryptionAlgorithm, DecryptOptions, DecryptParameters, DecryptResult, EncryptOptions, EncryptParameters, EncryptResult, EncryptionAlgorithm, KeyCurveName, KeyWrapAlgorithm, KnownKeyExportEncryptionAlgorithm, KnownEncryptionAlgorithms, KnownKeyTypes, KnownKeyCurveNames, KnownSignatureAlgorithms, RsaDecryptParameters, RsaEncryptParameters, RsaEncryptionAlgorithm, SignOptions, SignResult, SignatureAlgorithm, UnwrapKeyOptions, UnwrapResult, VerifyDataOptions, VerifyOptions, VerifyResult, WrapKeyOptions, WrapResult } from "./cryptographyClientModels.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,oBAA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,OAAO,GAAE,kCAAuC,GAC/C,0BAA0B,CAAC,aAAa,CAAC;IAQ5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACI,oBAAoB,CACzB,OAAO,GAAE,2BAAgC,GACxC,0BAA0B,CAAC,aAAa,CAAC;IAQ5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACI,eAAe,CACpB,OAAO,GAAE,sBAA2B,GACnC,0BAA0B,CAAC,UAAU,CAAC;CAO1C"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/// <reference lib="esnext.asynciterable" />
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.KeyClient = exports.logger = exports.parseKeyVaultKeyIdentifier = exports.KnownSignatureAlgorithms = exports.KnownKeyTypes = exports.KnownKeyOperations = exports.KnownEncryptionAlgorithms = exports.KnownKeyExportEncryptionAlgorithm = exports.KnownKeyCurveNames = exports.KnownDeletionRecoveryLevel = exports.CryptographyClient = void 0;
|
|
7
|
-
const
|
|
8
|
-
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return
|
|
9
|
-
const
|
|
10
|
-
Object.defineProperty(exports, "KnownDeletionRecoveryLevel", { enumerable: true, get: function () { return
|
|
11
|
-
const keyVaultClient_js_1 = require("./
|
|
7
|
+
const logger_js_1 = require("./logger.js");
|
|
8
|
+
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_js_1.logger; } });
|
|
9
|
+
const models_js_1 = require("./models/models.js");
|
|
10
|
+
Object.defineProperty(exports, "KnownDeletionRecoveryLevel", { enumerable: true, get: function () { return models_js_1.KnownDeletionRecoveryLevel; } });
|
|
11
|
+
const keyVaultClient_js_1 = require("./keyVaultClient.js");
|
|
12
12
|
const constants_js_1 = require("./constants.js");
|
|
13
13
|
const keyvault_common_1 = require("@azure/keyvault-common");
|
|
14
14
|
const poller_js_1 = require("./lro/delete/poller.js");
|
|
@@ -83,7 +83,7 @@ class KeyClient {
|
|
|
83
83
|
...pipelineOptions,
|
|
84
84
|
apiVersion: pipelineOptions.serviceVersion || keysModels_js_1.LATEST_API_VERSION,
|
|
85
85
|
loggingOptions: {
|
|
86
|
-
logger:
|
|
86
|
+
logger: logger_js_1.logger.info,
|
|
87
87
|
additionalAllowedHeaderNames: [
|
|
88
88
|
"x-ms-keyvault-region",
|
|
89
89
|
"x-ms-keyvault-network-info",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;;;AAG5C,qCAAkC;AA2LhC,uFA3LO,eAAM,OA2LP;AAxLR,8DAAoG;AAwHlG,2GAxH8B,qCAA0B,OAwH9B;AAtH5B,yEAAmE;AACnE,iDAA6C;AAC7C,4DAAsE;AACtE,sDAAyD;AACzD,uDAAkE;AAClE,mDA4CyB;AAyFvB,mGArGA,kCAAkB,OAqGA;AAxFpB,mEAA6D;AAuD3D,mGAvDO,0CAAkB,OAuDP;AAtDpB,+EAkCuC;AAiDrC,kHAnEA,+DAAiC,OAmEA;AAEjC,0GApEA,uDAAyB,OAoEA;AAIzB,8FAvEA,2CAAa,OAuEA;AAPb,mGA/DA,gDAAkB,OA+DA;AAalB,yGA3EA,sDAAwB,OA2EA;AA5D1B,mDAAoF;AAqElF,2GArE8B,0CAA0B,OAqE9B;AApE5B,6DAM8B;AAC9B,6CAA6C;AAC7C,kEAAgF;AA0FhF;;;;;;GAMG;AACH,MAAa,SAAS;IACpB;;OAEG;IACa,QAAQ,CAAS;IAEjC;;OAEG;IACc,MAAM,CAAiB;IAExC;;;OAGG;IACc,UAAU,CAAkB;IAE7C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YACE,QAAgB,EAChB,UAA2B,EAC3B,kBAAoC,EAAE;QAEtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,MAAM,OAA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,CACpB,UAAkC,EAAE;QAEpC,OAAO,IAAA,0CAAqB,EAC1B,OAAO,EACP,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAC5C,oDAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AA1kCD,8BA0kCC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { logger } from \"./log.js\";\nimport { PageSettings, PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollOperationState, PollerLike } from \"@azure/core-lro\";\nimport { DeletionRecoveryLevel, KnownDeletionRecoveryLevel } from \"./generated/src/models/index.js\";\nimport type { KeyVaultClientOptionalParams } from \"./generated/src/keyVaultClient.js\";\nimport { KeyVaultClient } from \"./generated/src/keyVaultClient.js\";\nimport { SDK_VERSION } from \"./constants.js\";\nimport { keyVaultAuthenticationPolicy } from \"@azure/keyvault-common\";\nimport { DeleteKeyPoller } from \"./lro/delete/poller.js\";\nimport { RecoverDeletedKeyPoller } from \"./lro/recover/poller.js\";\nimport {\n BackupKeyOptions,\n BeginDeleteKeyOptions,\n BeginRecoverDeletedKeyOptions,\n CreateEcKeyOptions,\n CreateKeyOptions,\n CreateOctKeyOptions,\n CreateRsaKeyOptions,\n CryptographyClientOptions,\n CryptographyOptions,\n DeletedKey,\n GetCryptographyClientOptions,\n GetDeletedKeyOptions,\n GetKeyAttestationOptions,\n GetKeyOptions,\n GetKeyRotationPolicyOptions,\n GetRandomBytesOptions,\n ImportKeyOptions,\n JsonWebKey,\n KeyAttestation,\n KeyClientOptions,\n KeyExportEncryptionAlgorithm,\n KeyOperation,\n KeyPollerOptions,\n KeyProperties,\n KeyReleasePolicy,\n KeyRotationLifetimeAction,\n KeyRotationPolicy,\n KeyRotationPolicyAction,\n KeyRotationPolicyProperties,\n KeyType,\n KeyVaultKey,\n KnownKeyOperations,\n LATEST_API_VERSION,\n ListDeletedKeysOptions,\n ListPropertiesOfKeyVersionsOptions,\n ListPropertiesOfKeysOptions,\n PurgeDeletedKeyOptions,\n ReleaseKeyOptions,\n ReleaseKeyResult,\n RestoreKeyBackupOptions,\n RotateKeyOptions,\n UpdateKeyPropertiesOptions,\n UpdateKeyRotationPolicyOptions,\n} from \"./keysModels.js\";\nimport { CryptographyClient } from \"./cryptographyClient.js\";\nimport {\n AesCbcDecryptParameters,\n AesCbcEncryptParameters,\n AesCbcEncryptionAlgorithm,\n AesGcmDecryptParameters,\n AesGcmEncryptParameters,\n AesGcmEncryptionAlgorithm,\n DecryptOptions,\n DecryptParameters,\n DecryptResult,\n EncryptOptions,\n EncryptParameters,\n EncryptResult,\n EncryptionAlgorithm,\n KeyCurveName,\n KeyWrapAlgorithm,\n KnownKeyExportEncryptionAlgorithm,\n KnownEncryptionAlgorithms,\n KnownKeyTypes,\n KnownKeyCurveNames,\n KnownSignatureAlgorithms,\n RsaDecryptParameters,\n RsaEncryptParameters,\n RsaEncryptionAlgorithm,\n SignOptions,\n SignResult,\n SignatureAlgorithm,\n UnwrapKeyOptions,\n UnwrapResult,\n VerifyDataOptions,\n VerifyOptions,\n VerifyResult,\n WrapKeyOptions,\n WrapResult,\n} from \"./cryptographyClientModels.js\";\nimport { KeyVaultKeyIdentifier, parseKeyVaultKeyIdentifier } from \"./identifier.js\";\nimport {\n getDeletedKeyFromDeletedKeyItem,\n getKeyFromKeyBundle,\n getKeyPropertiesFromKeyItem,\n keyRotationTransformations,\n mapPagedAsyncIterable,\n} from \"./transformations.js\";\nimport { tracingClient } from \"./tracing.js\";\nimport { bearerTokenAuthenticationPolicyName } from \"@azure/core-rest-pipeline\";\n\nexport {\n CryptographyClientOptions,\n KeyClientOptions,\n BackupKeyOptions,\n CreateEcKeyOptions,\n CreateKeyOptions,\n CreateRsaKeyOptions,\n CreateOctKeyOptions,\n CryptographyClient,\n CryptographyOptions,\n RsaEncryptionAlgorithm,\n RsaDecryptParameters,\n AesGcmEncryptionAlgorithm,\n AesGcmDecryptParameters,\n AesCbcEncryptionAlgorithm,\n AesCbcDecryptParameters,\n DecryptParameters,\n DecryptOptions,\n DecryptResult,\n DeletedKey,\n DeletionRecoveryLevel,\n KnownDeletionRecoveryLevel,\n RsaEncryptParameters,\n AesGcmEncryptParameters,\n AesCbcEncryptParameters,\n EncryptParameters,\n EncryptOptions,\n EncryptResult,\n GetDeletedKeyOptions,\n GetKeyAttestationOptions,\n GetKeyOptions,\n GetRandomBytesOptions,\n ImportKeyOptions,\n JsonWebKey,\n KeyAttestation,\n KeyCurveName,\n KnownKeyCurveNames,\n KnownKeyExportEncryptionAlgorithm,\n EncryptionAlgorithm,\n KnownEncryptionAlgorithms,\n KeyOperation,\n KnownKeyOperations,\n KeyType,\n KnownKeyTypes,\n KeyPollerOptions,\n BeginDeleteKeyOptions,\n BeginRecoverDeletedKeyOptions,\n KeyProperties,\n SignatureAlgorithm,\n KnownSignatureAlgorithms,\n KeyVaultKey,\n KeyWrapAlgorithm,\n ListPropertiesOfKeysOptions,\n ListPropertiesOfKeyVersionsOptions,\n ListDeletedKeysOptions,\n PageSettings,\n PagedAsyncIterableIterator,\n KeyVaultKeyIdentifier,\n parseKeyVaultKeyIdentifier,\n PollOperationState,\n PollerLike,\n PurgeDeletedKeyOptions,\n RestoreKeyBackupOptions,\n RotateKeyOptions,\n SignOptions,\n SignResult,\n UnwrapKeyOptions,\n UnwrapResult,\n UpdateKeyPropertiesOptions,\n VerifyOptions,\n VerifyDataOptions,\n VerifyResult,\n WrapKeyOptions,\n WrapResult,\n ReleaseKeyOptions,\n ReleaseKeyResult,\n KeyReleasePolicy,\n KeyExportEncryptionAlgorithm,\n GetCryptographyClientOptions,\n KeyRotationPolicyAction,\n KeyRotationPolicyProperties,\n KeyRotationPolicy,\n KeyRotationLifetimeAction,\n UpdateKeyRotationPolicyOptions,\n GetKeyRotationPolicyOptions,\n logger,\n};\n\n/**\n * The KeyClient provides methods to manage {@link KeyVaultKey} in the\n * Azure Key Vault. The client supports creating, retrieving, updating,\n * deleting, purging, backing up, restoring and listing KeyVaultKeys. The\n * client also supports listing {@link DeletedKey} for a soft-delete enabled Azure Key\n * Vault.\n */\nexport class KeyClient {\n /**\n * The base URL to the vault\n */\n public readonly vaultUrl: string;\n\n /**\n * A reference to the auto-generated Key Vault HTTP client.\n */\n private readonly client: KeyVaultClient;\n\n /**\n * A reference to the credential that was used to construct this client.\n * Later used to instantiate a {@link CryptographyClient} with the same credential.\n */\n private readonly credential: TokenCredential;\n\n /**\n * Creates an instance of KeyClient.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateClient\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * // Build the URL to reach your key vault\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`; // or `https://${vaultName}.managedhsm.azure.net` for managed HSM.\n *\n * // Lastly, create our keys client and connect to the service\n * const client = new KeyClient(url, credential);\n * ```\n * @param vaultUrl - the URL of the Key Vault. It should have this shape: `https://${your-key-vault-name}.vault.azure.net`. You should validate that this URL references a valid Key Vault or Managed HSM resource. See https://aka.ms/azsdk/blog/vault-uri for details.\n * @param credential - An object that implements the `TokenCredential` interface used to authenticate requests to the service. Use the \\@azure/identity package to create a credential that suits your needs.\n * @param pipelineOptions - Pipeline options used to configure Key Vault API requests. Omit this parameter to use the default pipeline configuration.\n */\n constructor(\n vaultUrl: string,\n credential: TokenCredential,\n pipelineOptions: KeyClientOptions = {},\n ) {\n this.vaultUrl = vaultUrl;\n\n const libInfo = `azsdk-js-keyvault-keys/${SDK_VERSION}`;\n\n const userAgentOptions = pipelineOptions.userAgentOptions;\n\n pipelineOptions.userAgentOptions = {\n userAgentPrefix:\n userAgentOptions && userAgentOptions.userAgentPrefix\n ? `${userAgentOptions.userAgentPrefix} ${libInfo}`\n : libInfo,\n };\n\n const internalPipelineOptions: KeyVaultClientOptionalParams = {\n ...pipelineOptions,\n apiVersion: pipelineOptions.serviceVersion || LATEST_API_VERSION,\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"x-ms-keyvault-region\",\n \"x-ms-keyvault-network-info\",\n \"x-ms-keyvault-service-version\",\n ],\n },\n };\n\n this.credential = credential;\n this.client = new KeyVaultClient(vaultUrl, credential, internalPipelineOptions);\n\n this.client.pipeline.removePolicy({ name: bearerTokenAuthenticationPolicyName });\n this.client.pipeline.addPolicy(keyVaultAuthenticationPolicy(credential, pipelineOptions));\n // Workaround for: https://github.com/Azure/azure-sdk-for-js/issues/31843\n this.client.pipeline.addPolicy({\n name: \"ContentTypePolicy\",\n sendRequest(request, next) {\n const contentType = request.headers.get(\"Content-Type\") ?? \"\";\n if (contentType.startsWith(\"application/json\")) {\n request.headers.set(\"Content-Type\", \"application/json\");\n }\n return next(request);\n },\n });\n }\n\n /**\n * The create key operation can be used to create any key type in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n * const result = await client.createKey(keyName, \"RSA\");\n * console.log(\"result: \", result);\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param keyType - The type of the key. One of the following: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'.\n * @param options - The optional parameters.\n */\n public createKey(\n name: string,\n keyType: KeyType,\n options: CreateKeyOptions = {},\n ): Promise<KeyVaultKey> {\n return tracingClient.withSpan(\"KeyClient.createKey\", options, async (updatedOptions) => {\n const response = await this.client.createKey(\n name,\n {\n kty: keyType,\n curve: options?.curve,\n keyAttributes: {\n enabled: options?.enabled,\n notBefore: options?.notBefore,\n expires: options?.expiresOn,\n exportable: options?.exportable,\n },\n keyOps: options?.keyOps,\n keySize: options?.keySize,\n releasePolicy: options?.releasePolicy,\n tags: options?.tags,\n },\n updatedOptions,\n );\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The createEcKey method creates a new elliptic curve key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateEcKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n * const result = await client.createEcKey(keyName, { curve: \"P-256\" });\n * console.log(\"result: \", result);\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createEcKey(name: string, options?: CreateEcKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownKeyTypes.ECHSM : KnownKeyTypes.EC;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The createRSAKey method creates a new RSA key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateRsaKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n * const result = await client.createRsaKey(\"MyKey\", { keySize: 2048 });\n * console.log(\"result: \", result);\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createRsaKey(name: string, options?: CreateRsaKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownKeyTypes.RSAHSM : KnownKeyTypes.RSA;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The createOctKey method creates a new OCT key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateOctKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n * const result = await client.createOctKey(\"MyKey\", { hsm: true });\n * console.log(\"result: \", result);\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createOctKey(name: string, options?: CreateOctKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownKeyTypes.OctHSM : KnownKeyTypes.Oct;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The import key operation may be used to import any key type into an Azure Key Vault. If the\n * named key already exists, Azure Key Vault creates a new version of the key. This operation\n * requires the keys/import permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleImportKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const jsonWebKey = {\n * kty: \"RSA\",\n * kid: \"test-key-123\",\n * use: \"sig\",\n * alg: \"RS256\",\n * n: new Uint8Array([112, 34, 56, 98, 123, 244, 200, 99]),\n * e: new Uint8Array([1, 0, 1]),\n * d: new Uint8Array([45, 67, 89, 23, 144, 200, 76, 233]),\n * p: new Uint8Array([34, 89, 100, 77, 204, 56, 29, 77]),\n * q: new Uint8Array([78, 99, 201, 45, 188, 34, 67, 90]),\n * dp: new Uint8Array([23, 45, 78, 56, 200, 144, 32, 67]),\n * dq: new Uint8Array([12, 67, 89, 144, 99, 56, 23, 45]),\n * qi: new Uint8Array([78, 90, 45, 201, 34, 67, 120, 55]),\n * };\n *\n * const result = await client.importKey(\"MyKey\", jsonWebKey);\n * ```\n * Imports an externally created key, stores it, and returns key parameters and properties\n * to the client.\n * @param name - Name for the imported key.\n * @param key - The JSON web key.\n * @param options - The optional parameters.\n */\n public importKey(\n name: string,\n key: JsonWebKey,\n options: ImportKeyOptions = {},\n ): Promise<KeyVaultKey> {\n return tracingClient.withSpan(`KeyClient.importKey`, options, async (updatedOptions) => {\n const { enabled, notBefore, expiresOn: expires, exportable, releasePolicy, tags } = options;\n const keyAttributes = {\n enabled,\n notBefore,\n expires,\n exportable,\n };\n const parameters = {\n key,\n hsm: options?.hardwareProtected,\n keyAttributes,\n releasePolicy,\n tags,\n };\n const response = await this.client.importKey(name, parameters, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * Gets a {@link CryptographyClient} for the given key.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetCryptographyClient\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * // Get a cryptography client for a given key\n * const cryptographyClient = client.getCryptographyClient(\"MyKey\");\n * ```\n * @param name - The name of the key used to perform cryptographic operations.\n * @param version - Optional version of the key used to perform cryptographic operations.\n * @returns - A {@link CryptographyClient} using the same options, credentials, and http client as this {@link KeyClient}\n */\n public getCryptographyClient(\n keyName: string,\n options?: GetCryptographyClientOptions,\n ): CryptographyClient {\n const keyUrl = new URL(\n [\"keys\", keyName, options?.keyVersion].filter(Boolean).join(\"/\"),\n this.vaultUrl,\n );\n\n // The goals of this method are discoverability and performance (by sharing a client and pipeline).\n // The existing cryptography client does not accept a pipeline as an argument, nor does it expose it.\n // In order to avoid publicly exposing the pipeline we will pass in the underlying client as an undocumented\n // property to the constructor so that crypto providers downstream can use it.\n const constructorOptions: CryptographyClientOptions & { generatedClient: KeyVaultClient } = {\n generatedClient: this.client,\n };\n const cryptoClient = new CryptographyClient(\n keyUrl.toString(),\n this.credential,\n constructorOptions,\n );\n return cryptoClient;\n }\n\n /**\n * The delete operation applies to any key stored in Azure Key Vault. Individual versions\n * of a key can not be deleted, only all versions of a given key at once.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the key is deleted.\n *\n * This operation requires the keys/delete permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleDeleteKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const poller = await client.beginDeleteKey(keyName);\n * await poller.pollUntilDone();\n * ```\n * Deletes a key from a specified key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async beginDeleteKey(\n name: string,\n options: BeginDeleteKeyOptions = {},\n ): Promise<PollerLike<PollOperationState<DeletedKey>, DeletedKey>> {\n const poller = new DeleteKeyPoller({\n name,\n client: this.client,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options,\n });\n\n // This will initialize the poller's operation (the deletion of the key).\n await poller.poll();\n\n return poller;\n }\n\n /**\n * The updateKeyProperties method changes specified properties of an existing stored key. Properties that\n * are not specified in the request are left unchanged. The value of a key itself cannot be\n * changed. This operation requires the keys/set permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleUpdateKeyProperties\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const result = await client.createKey(keyName, \"RSA\");\n * await client.updateKeyProperties(keyName, result.properties.version, {\n * enabled: false,\n * });\n * ```\n * Updates the properties associated with a specified key in a given key vault.\n * @param name - The name of the key.\n * @param keyVersion - The version of the key.\n * @param options - The optional parameters.\n */\n public updateKeyProperties(\n name: string,\n keyVersion: string,\n options?: UpdateKeyPropertiesOptions,\n ): Promise<KeyVaultKey>;\n /**\n * The updateKeyProperties method changes specified properties of the latest version of an existing stored key. Properties that\n * are not specified in the request are left unchanged. The value of a key itself cannot be\n * changed. This operation requires the keys/set permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleUpdateKeyProperties\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const result = await client.createKey(keyName, \"RSA\");\n * await client.updateKeyProperties(keyName, result.properties.version, {\n * enabled: false,\n * });\n * ```\n * Updates the properties associated with a specified key in a given key vault.\n * @param name - The name of the key.\n * @param keyVersion - The version of the key.\n * @param options - The optional parameters.\n */\n public updateKeyProperties(\n name: string,\n options?: UpdateKeyPropertiesOptions,\n ): Promise<KeyVaultKey>;\n public updateKeyProperties(\n ...args: [string, string, UpdateKeyPropertiesOptions?] | [string, UpdateKeyPropertiesOptions?]\n ): Promise<KeyVaultKey> {\n const [name, keyVersion, options] = this.disambiguateUpdateKeyPropertiesArgs(args);\n return tracingClient.withSpan(\n `KeyClient.updateKeyProperties`,\n options,\n async (updatedOptions) => {\n const response = await this.client.updateKey(\n name,\n keyVersion,\n {\n keyAttributes: {\n enabled: options?.enabled,\n notBefore: options?.notBefore,\n expires: options?.expiresOn,\n },\n keyOps: options?.keyOps,\n releasePolicy: options?.releasePolicy,\n tags: options?.tags,\n },\n updatedOptions,\n );\n return getKeyFromKeyBundle(response);\n },\n );\n }\n\n /**\n * Standardizes an overloaded arguments collection for the updateKeyProperties method.\n *\n * @param args - The arguments collection.\n * @returns - The standardized arguments collection.\n */\n private disambiguateUpdateKeyPropertiesArgs(\n args: [string, string, UpdateKeyPropertiesOptions?] | [string, UpdateKeyPropertiesOptions?],\n ): [string, string, UpdateKeyPropertiesOptions] {\n if (typeof args[1] === \"string\") {\n // [name, keyVersion, options?] => [name, keyVersion, options || {}]\n return [args[0], args[1], args[2] || {}];\n } else {\n // [name, options?] => [name , \"\", options || {}]\n return [args[0], \"\", args[1] || {}];\n }\n }\n\n /**\n * The getKey method gets a specified key and is applicable to any key stored in Azure Key Vault.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const latestKey = await client.getKey(keyName);\n * console.log(`Latest version of the key ${keyName}: `, latestKey);\n *\n * const specificKey = await client.getKey(keyName, { version: latestKey.properties.version! });\n * console.log(`The key ${keyName} at the version ${latestKey.properties.version!}: `, specificKey);\n * ```\n * Get a specified key from a given key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getKey(name: string, options: GetKeyOptions = {}): Promise<KeyVaultKey> {\n return tracingClient.withSpan(`KeyClient.getKey`, options, async (updatedOptions) => {\n const response = await this.client.getKey(name, options.version || \"\", updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The getKeyAttestation method gets a specified key and its attestation blob and is applicable to any key stored in Azure Key Vault Managed HSM.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetKeyAttestation\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT MANAGED HSM NAME>\";\n * const url = `https://${vaultName}.managedhsm.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const latestKey = await client.getKeyAttestation(keyName);\n * console.log(`Latest version of the key ${keyName}: `, latestKey);\n *\n * const specificKey = await client.getKeyAttestation(keyName, {\n * version: latestKey.properties.version!,\n * });\n * console.log(`The key ${keyName} at the version ${latestKey.properties.version!}: `, specificKey);\n * ```\n * Get a specified key from a given key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getKeyAttestation(\n name: string,\n options: GetKeyAttestationOptions = {},\n ): Promise<KeyVaultKey> {\n return tracingClient.withSpan(\n `KeyClient.getKeyAttestation`,\n options,\n async (updatedOptions) => {\n const response = await this.client.getKeyAttestation(\n name,\n updatedOptions.version ?? \"\",\n updatedOptions,\n );\n return getKeyFromKeyBundle(response);\n },\n );\n }\n\n /**\n * The getDeletedKey method returns the specified deleted key along with its properties.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetDeletedKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * await client.getDeletedKey(keyName);\n * ```\n * Gets the specified deleted key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getDeletedKey(name: string, options: GetDeletedKeyOptions = {}): Promise<DeletedKey> {\n return tracingClient.withSpan(`KeyClient.getDeletedKey`, options, async (updatedOptions) => {\n const response = await this.client.getDeletedKey(name, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The purge deleted key operation removes the key permanently, without the possibility of\n * recovery. This operation can only be enabled on a soft-delete enabled vault. This operation\n * requires the keys/purge permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSamplePurgeDeletedKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const deletePoller = await client.beginDeleteKey(keyName);\n * await deletePoller.pollUntilDone();\n *\n * await client.purgeDeletedKey(keyName);\n * ```\n * Permanently deletes the specified key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public purgeDeletedKey(name: string, options: PurgeDeletedKeyOptions = {}): Promise<void> {\n return tracingClient.withSpan(`KeyClient.purgeDeletedKey`, options, async (updatedOptions) => {\n await this.client.purgeDeletedKey(name, updatedOptions);\n });\n }\n\n /**\n * Recovers the deleted key in the specified vault. This operation can only be performed on a\n * soft-delete enabled vault.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the deleted key is recovered.\n *\n * This operation requires the keys/recover permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleRecoverDeletedKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const deletePoller = await client.beginDeleteKey(keyName);\n * await deletePoller.pollUntilDone();\n *\n * const recoverPoller = await client.beginRecoverDeletedKey(keyName);\n * const recoveredKey = await recoverPoller.pollUntilDone();\n * ```\n * Recovers the deleted key to the latest version.\n * @param name - The name of the deleted key.\n * @param options - The optional parameters.\n */\n public async beginRecoverDeletedKey(\n name: string,\n options: BeginRecoverDeletedKeyOptions = {},\n ): Promise<PollerLike<PollOperationState<DeletedKey>, DeletedKey>> {\n const poller = new RecoverDeletedKeyPoller({\n name,\n client: this.client,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options,\n });\n // This will initialize the poller's operation (the deletion of the key).\n await poller.poll();\n return poller;\n }\n\n /**\n * Requests that a backup of the specified key be downloaded to the client. All versions of the\n * key will be downloaded. This operation requires the keys/backup permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleBackupKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const backupContents = await client.backupKey(keyName);\n * ```\n * Backs up the specified key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public backupKey(name: string, options: BackupKeyOptions = {}): Promise<Uint8Array | undefined> {\n return tracingClient.withSpan(`KeyClient.backupKey`, options, async (updatedOptions) => {\n const response = await this.client.backupKey(name, updatedOptions);\n return response.value;\n });\n }\n\n /**\n * Restores a backed up key, and all its versions, to a vault. This operation requires the\n * keys/restore permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleRestoreKeyBackup\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const backupContents = await client.backupKey(keyName);\n *\n * const key = await client.restoreKeyBackup(backupContents);\n * ```\n * Restores a backed up key to a vault.\n * @param backup - The backup blob associated with a key bundle.\n * @param options - The optional parameters.\n */\n public async restoreKeyBackup(\n backup: Uint8Array,\n options: RestoreKeyBackupOptions = {},\n ): Promise<KeyVaultKey> {\n return tracingClient.withSpan(`KeyClient.restoreKeyBackup`, options, async (updatedOptions) => {\n const response = await this.client.restoreKey({ keyBundleBackup: backup }, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * Gets the requested number of bytes containing random values from a managed HSM.\n * This operation requires the managedHsm/rng permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetRandomBytes\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const bytes = await client.getRandomBytes(10);\n * ```\n * @param count - The number of bytes to generate between 1 and 128 inclusive.\n * @param options - The optional parameters.\n */\n public getRandomBytes(count: number, options: GetRandomBytesOptions = {}): Promise<Uint8Array> {\n return tracingClient.withSpan(\"KeyClient.getRandomBytes\", options, async (updatedOptions) => {\n const response = await this.client.getRandomBytes({ count }, updatedOptions);\n return response.value!;\n });\n }\n\n /**\n * Rotates the key based on the key policy by generating a new version of the key. This operation requires the keys/rotate permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleKeyRotation\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * // Set the key's automated rotation policy to rotate the key 30 days before expiry.\n * const policy = await client.updateKeyRotationPolicy(keyName, {\n * lifetimeActions: [\n * {\n * action: \"Rotate\",\n * timeBeforeExpiry: \"P30D\",\n * },\n * ],\n * // You may also specify the duration after which any newly rotated key will expire.\n * // In this case, any new key versions will expire after 90 days.\n * expiresIn: \"P90D\",\n * });\n *\n * // You can get the current key rotation policy of a given key by calling the getKeyRotationPolicy method.\n * const currentPolicy = await client.getKeyRotationPolicy(keyName);\n *\n * // Finally, you can rotate a key on-demand by creating a new version of the given key.\n * const rotatedKey = await client.rotateKey(keyName);\n * ```\n *\n * @param name - The name of the key to rotate.\n * @param options - The optional parameters.\n */\n public rotateKey(name: string, options: RotateKeyOptions = {}): Promise<KeyVaultKey> {\n return tracingClient.withSpan(\"KeyClient.rotateKey\", options, async (updatedOptions) => {\n const key = await this.client.rotateKey(name, updatedOptions);\n return getKeyFromKeyBundle(key);\n });\n }\n\n /**\n * Releases a key from a managed HSM.\n *\n * The release key operation is applicable to all key types. The operation requires the key to be marked exportable and the keys/release permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleReleaseKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const result = await client.releaseKey(\"myKey\", \"<attestation-target>\");\n * ```\n *\n * @param name - The name of the key.\n * @param targetAttestationToken - The attestation assertion for the target of the key release.\n * @param options - The optional parameters.\n */\n public releaseKey(\n name: string,\n targetAttestationToken: string,\n options: ReleaseKeyOptions = {},\n ): Promise<ReleaseKeyResult> {\n return tracingClient.withSpan(\"KeyClient.releaseKey\", options, async (updatedOptions) => {\n const { nonce, algorithm, ...rest } = updatedOptions;\n const result = await this.client.release(\n name,\n options?.version || \"\",\n {\n targetAttestationToken,\n enc: algorithm,\n nonce,\n },\n rest,\n );\n\n return { value: result.value! };\n });\n }\n\n /**\n * Gets the rotation policy of a Key Vault Key.\n * By default, all keys have a policy that will notify 30 days before expiry.\n *\n * This operation requires the keys/get permission.\n * Example usage:\n * ```ts snippet:ReadmeSampleGetKeyRotationPolicy\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const result = await client.getKeyRotationPolicy(keyName);\n * ```\n *\n * @param keyName - The name of the key.\n * @param options - The optional parameters.\n */\n public getKeyRotationPolicy(\n keyName: string,\n options: GetKeyRotationPolicyOptions = {},\n ): Promise<KeyRotationPolicy> {\n return tracingClient.withSpan(\"KeyClient.getKeyRotationPolicy\", options, async () => {\n const policy = await this.client.getKeyRotationPolicy(keyName);\n return keyRotationTransformations.generatedToPublic(policy);\n });\n }\n\n /**\n * Updates the rotation policy of a Key Vault Key.\n * This operation requires the keys/update permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleUpdateKeyRotationPolicy\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const myPolicy = await client.getKeyRotationPolicy(keyName);\n *\n * const setPolicy = await client.updateKeyRotationPolicy(keyName, myPolicy);\n * ```\n *\n * @param keyName - The name of the key.\n * @param policyProperties - The {@link KeyRotationPolicyProperties} for the policy.\n * @param options - The optional parameters.\n */\n public updateKeyRotationPolicy(\n keyName: string,\n policy: KeyRotationPolicyProperties,\n options: UpdateKeyRotationPolicyOptions = {},\n ): Promise<KeyRotationPolicy> {\n return tracingClient.withSpan(\n \"KeyClient.updateKeyRotationPolicy\",\n options,\n async (updatedOptions) => {\n const result = await this.client.updateKeyRotationPolicy(\n keyName,\n keyRotationTransformations.propertiesToGenerated(policy),\n updatedOptions,\n );\n return keyRotationTransformations.generatedToPublic(result);\n },\n );\n }\n\n /**\n * Iterates all versions of the given key in the vault. The full key identifier, properties, and tags are provided\n * in the response. This operation requires the keys/list permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleListKeys\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * for await (const keyProperties of client.listPropertiesOfKeys()) {\n * console.log(\"Key properties: \", keyProperties);\n * }\n *\n * for await (const deletedKey of client.listDeletedKeys()) {\n * console.log(\"Deleted: \", deletedKey);\n * }\n *\n * for await (const versionProperties of client.listPropertiesOfKeyVersions(keyName)) {\n * console.log(\"Version properties: \", versionProperties);\n * }\n * ```\n * @param name - Name of the key to fetch versions for\n * @param options - The optional parameters.\n */\n public listPropertiesOfKeyVersions(\n name: string,\n options: ListPropertiesOfKeyVersionsOptions = {},\n ): PagedAsyncIterableIterator<KeyProperties> {\n return mapPagedAsyncIterable(\n options,\n (mappedOptions) => this.client.getKeyVersions(name, mappedOptions),\n getKeyPropertiesFromKeyItem,\n );\n }\n\n /**\n * Iterates the latest version of all keys in the vault. The full key identifier and properties are provided\n * in the response. No values are returned for the keys. This operations requires the keys/list permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleListKeys\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * for await (const keyProperties of client.listPropertiesOfKeys()) {\n * console.log(\"Key properties: \", keyProperties);\n * }\n *\n * for await (const deletedKey of client.listDeletedKeys()) {\n * console.log(\"Deleted: \", deletedKey);\n * }\n *\n * for await (const versionProperties of client.listPropertiesOfKeyVersions(keyName)) {\n * console.log(\"Version properties: \", versionProperties);\n * }\n * ```\n * List all keys in the vault\n * @param options - The optional parameters.\n */\n public listPropertiesOfKeys(\n options: ListPropertiesOfKeysOptions = {},\n ): PagedAsyncIterableIterator<KeyProperties> {\n return mapPagedAsyncIterable(\n options,\n this.client.getKeys.bind(this.client),\n getKeyPropertiesFromKeyItem,\n );\n }\n\n /**\n * Iterates the deleted keys in the vault. The full key identifier and properties are provided\n * in the response. No values are returned for the keys. This operations requires the keys/list permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleListKeys\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * for await (const keyProperties of client.listPropertiesOfKeys()) {\n * console.log(\"Key properties: \", keyProperties);\n * }\n *\n * for await (const deletedKey of client.listDeletedKeys()) {\n * console.log(\"Deleted: \", deletedKey);\n * }\n *\n * for await (const versionProperties of client.listPropertiesOfKeyVersions(keyName)) {\n * console.log(\"Version properties: \", versionProperties);\n * }\n * ```\n * List all keys in the vault\n * @param options - The optional parameters.\n */\n public listDeletedKeys(\n options: ListDeletedKeysOptions = {},\n ): PagedAsyncIterableIterator<DeletedKey> {\n return mapPagedAsyncIterable(\n options,\n this.client.getDeletedKeys.bind(this.client),\n getDeletedKeyFromDeletedKeyItem,\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAClC,4CAA4C;;;AAG5C,2CAAqC;AA2LnC,uFA3LO,kBAAM,OA2LP;AAxLR,kDAAuF;AAwHrF,2GAxH8B,sCAA0B,OAwH9B;AAtH5B,2DAAqD;AACrD,iDAA6C;AAC7C,4DAAsE;AACtE,sDAAyD;AACzD,uDAAkE;AAClE,mDA4CyB;AAyFvB,mGArGA,kCAAkB,OAqGA;AAxFpB,mEAA6D;AAuD3D,mGAvDO,0CAAkB,OAuDP;AAtDpB,+EAkCuC;AAiDrC,kHAnEA,+DAAiC,OAmEA;AAEjC,0GApEA,uDAAyB,OAoEA;AAIzB,8FAvEA,2CAAa,OAuEA;AAPb,mGA/DA,gDAAkB,OA+DA;AAalB,yGA3EA,sDAAwB,OA2EA;AA5D1B,mDAAoF;AAqElF,2GArE8B,0CAA0B,OAqE9B;AApE5B,6DAM8B;AAC9B,6CAA6C;AAC7C,kEAAgF;AA0FhF;;;;;;GAMG;AACH,MAAa,SAAS;IACpB;;OAEG;IACa,QAAQ,CAAS;IAEjC;;OAEG;IACc,MAAM,CAAiB;IAExC;;;OAGG;IACc,UAAU,CAAkB;IAE7C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YACE,QAAgB,EAChB,UAA2B,EAC3B,kBAAoC,EAAE;QAEtC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,MAAM,OAAO,GAAG,0BAA0B,0BAAW,EAAE,CAAC;QA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A,0CAAqB,EAC1B,OAAO,EACP,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAC5C,oDAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AA1kCD,8BA0kCC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport { logger } from \"./logger.js\";\nimport { PageSettings, PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollOperationState, PollerLike } from \"@azure/core-lro\";\nimport { DeletionRecoveryLevel, KnownDeletionRecoveryLevel } from \"./models/models.js\";\nimport type { KeyVaultClientOptionalParams } from \"./keyVaultClient.js\";\nimport { KeyVaultClient } from \"./keyVaultClient.js\";\nimport { SDK_VERSION } from \"./constants.js\";\nimport { keyVaultAuthenticationPolicy } from \"@azure/keyvault-common\";\nimport { DeleteKeyPoller } from \"./lro/delete/poller.js\";\nimport { RecoverDeletedKeyPoller } from \"./lro/recover/poller.js\";\nimport {\n BackupKeyOptions,\n BeginDeleteKeyOptions,\n BeginRecoverDeletedKeyOptions,\n CreateEcKeyOptions,\n CreateKeyOptions,\n CreateOctKeyOptions,\n CreateRsaKeyOptions,\n CryptographyClientOptions,\n CryptographyOptions,\n DeletedKey,\n GetCryptographyClientOptions,\n GetDeletedKeyOptions,\n GetKeyAttestationOptions,\n GetKeyOptions,\n GetKeyRotationPolicyOptions,\n GetRandomBytesOptions,\n ImportKeyOptions,\n JsonWebKey,\n KeyAttestation,\n KeyClientOptions,\n KeyExportEncryptionAlgorithm,\n KeyOperation,\n KeyPollerOptions,\n KeyProperties,\n KeyReleasePolicy,\n KeyRotationLifetimeAction,\n KeyRotationPolicy,\n KeyRotationPolicyAction,\n KeyRotationPolicyProperties,\n KeyType,\n KeyVaultKey,\n KnownKeyOperations,\n LATEST_API_VERSION,\n ListDeletedKeysOptions,\n ListPropertiesOfKeyVersionsOptions,\n ListPropertiesOfKeysOptions,\n PurgeDeletedKeyOptions,\n ReleaseKeyOptions,\n ReleaseKeyResult,\n RestoreKeyBackupOptions,\n RotateKeyOptions,\n UpdateKeyPropertiesOptions,\n UpdateKeyRotationPolicyOptions,\n} from \"./keysModels.js\";\nimport { CryptographyClient } from \"./cryptographyClient.js\";\nimport {\n AesCbcDecryptParameters,\n AesCbcEncryptParameters,\n AesCbcEncryptionAlgorithm,\n AesGcmDecryptParameters,\n AesGcmEncryptParameters,\n AesGcmEncryptionAlgorithm,\n DecryptOptions,\n DecryptParameters,\n DecryptResult,\n EncryptOptions,\n EncryptParameters,\n EncryptResult,\n EncryptionAlgorithm,\n KeyCurveName,\n KeyWrapAlgorithm,\n KnownKeyExportEncryptionAlgorithm,\n KnownEncryptionAlgorithms,\n KnownKeyTypes,\n KnownKeyCurveNames,\n KnownSignatureAlgorithms,\n RsaDecryptParameters,\n RsaEncryptParameters,\n RsaEncryptionAlgorithm,\n SignOptions,\n SignResult,\n SignatureAlgorithm,\n UnwrapKeyOptions,\n UnwrapResult,\n VerifyDataOptions,\n VerifyOptions,\n VerifyResult,\n WrapKeyOptions,\n WrapResult,\n} from \"./cryptographyClientModels.js\";\nimport { KeyVaultKeyIdentifier, parseKeyVaultKeyIdentifier } from \"./identifier.js\";\nimport {\n getDeletedKeyFromDeletedKeyItem,\n getKeyFromKeyBundle,\n getKeyPropertiesFromKeyItem,\n keyRotationTransformations,\n mapPagedAsyncIterable,\n} from \"./transformations.js\";\nimport { tracingClient } from \"./tracing.js\";\nimport { bearerTokenAuthenticationPolicyName } from \"@azure/core-rest-pipeline\";\n\nexport {\n CryptographyClientOptions,\n KeyClientOptions,\n BackupKeyOptions,\n CreateEcKeyOptions,\n CreateKeyOptions,\n CreateRsaKeyOptions,\n CreateOctKeyOptions,\n CryptographyClient,\n CryptographyOptions,\n RsaEncryptionAlgorithm,\n RsaDecryptParameters,\n AesGcmEncryptionAlgorithm,\n AesGcmDecryptParameters,\n AesCbcEncryptionAlgorithm,\n AesCbcDecryptParameters,\n DecryptParameters,\n DecryptOptions,\n DecryptResult,\n DeletedKey,\n DeletionRecoveryLevel,\n KnownDeletionRecoveryLevel,\n RsaEncryptParameters,\n AesGcmEncryptParameters,\n AesCbcEncryptParameters,\n EncryptParameters,\n EncryptOptions,\n EncryptResult,\n GetDeletedKeyOptions,\n GetKeyAttestationOptions,\n GetKeyOptions,\n GetRandomBytesOptions,\n ImportKeyOptions,\n JsonWebKey,\n KeyAttestation,\n KeyCurveName,\n KnownKeyCurveNames,\n KnownKeyExportEncryptionAlgorithm,\n EncryptionAlgorithm,\n KnownEncryptionAlgorithms,\n KeyOperation,\n KnownKeyOperations,\n KeyType,\n KnownKeyTypes,\n KeyPollerOptions,\n BeginDeleteKeyOptions,\n BeginRecoverDeletedKeyOptions,\n KeyProperties,\n SignatureAlgorithm,\n KnownSignatureAlgorithms,\n KeyVaultKey,\n KeyWrapAlgorithm,\n ListPropertiesOfKeysOptions,\n ListPropertiesOfKeyVersionsOptions,\n ListDeletedKeysOptions,\n PageSettings,\n PagedAsyncIterableIterator,\n KeyVaultKeyIdentifier,\n parseKeyVaultKeyIdentifier,\n PollOperationState,\n PollerLike,\n PurgeDeletedKeyOptions,\n RestoreKeyBackupOptions,\n RotateKeyOptions,\n SignOptions,\n SignResult,\n UnwrapKeyOptions,\n UnwrapResult,\n UpdateKeyPropertiesOptions,\n VerifyOptions,\n VerifyDataOptions,\n VerifyResult,\n WrapKeyOptions,\n WrapResult,\n ReleaseKeyOptions,\n ReleaseKeyResult,\n KeyReleasePolicy,\n KeyExportEncryptionAlgorithm,\n GetCryptographyClientOptions,\n KeyRotationPolicyAction,\n KeyRotationPolicyProperties,\n KeyRotationPolicy,\n KeyRotationLifetimeAction,\n UpdateKeyRotationPolicyOptions,\n GetKeyRotationPolicyOptions,\n logger,\n};\n\n/**\n * The KeyClient provides methods to manage {@link KeyVaultKey} in the\n * Azure Key Vault. The client supports creating, retrieving, updating,\n * deleting, purging, backing up, restoring and listing KeyVaultKeys. The\n * client also supports listing {@link DeletedKey} for a soft-delete enabled Azure Key\n * Vault.\n */\nexport class KeyClient {\n /**\n * The base URL to the vault\n */\n public readonly vaultUrl: string;\n\n /**\n * A reference to the auto-generated Key Vault HTTP client.\n */\n private readonly client: KeyVaultClient;\n\n /**\n * A reference to the credential that was used to construct this client.\n * Later used to instantiate a {@link CryptographyClient} with the same credential.\n */\n private readonly credential: TokenCredential;\n\n /**\n * Creates an instance of KeyClient.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateClient\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * // Build the URL to reach your key vault\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`; // or `https://${vaultName}.managedhsm.azure.net` for managed HSM.\n *\n * // Lastly, create our keys client and connect to the service\n * const client = new KeyClient(url, credential);\n * ```\n * @param vaultUrl - the URL of the Key Vault. It should have this shape: `https://${your-key-vault-name}.vault.azure.net`. You should validate that this URL references a valid Key Vault or Managed HSM resource. See https://aka.ms/azsdk/blog/vault-uri for details.\n * @param credential - An object that implements the `TokenCredential` interface used to authenticate requests to the service. Use the \\@azure/identity package to create a credential that suits your needs.\n * @param pipelineOptions - Pipeline options used to configure Key Vault API requests. Omit this parameter to use the default pipeline configuration.\n */\n constructor(\n vaultUrl: string,\n credential: TokenCredential,\n pipelineOptions: KeyClientOptions = {},\n ) {\n this.vaultUrl = vaultUrl;\n\n const libInfo = `azsdk-js-keyvault-keys/${SDK_VERSION}`;\n\n const userAgentOptions = pipelineOptions.userAgentOptions;\n\n pipelineOptions.userAgentOptions = {\n userAgentPrefix:\n userAgentOptions && userAgentOptions.userAgentPrefix\n ? `${userAgentOptions.userAgentPrefix} ${libInfo}`\n : libInfo,\n };\n\n const internalPipelineOptions: KeyVaultClientOptionalParams = {\n ...pipelineOptions,\n apiVersion: pipelineOptions.serviceVersion || LATEST_API_VERSION,\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"x-ms-keyvault-region\",\n \"x-ms-keyvault-network-info\",\n \"x-ms-keyvault-service-version\",\n ],\n },\n };\n\n this.credential = credential;\n this.client = new KeyVaultClient(vaultUrl, credential, internalPipelineOptions);\n\n this.client.pipeline.removePolicy({ name: bearerTokenAuthenticationPolicyName });\n this.client.pipeline.addPolicy(keyVaultAuthenticationPolicy(credential, pipelineOptions));\n // Workaround for: https://github.com/Azure/azure-sdk-for-js/issues/31843\n this.client.pipeline.addPolicy({\n name: \"ContentTypePolicy\",\n sendRequest(request, next) {\n const contentType = request.headers.get(\"Content-Type\") ?? \"\";\n if (contentType.startsWith(\"application/json\")) {\n request.headers.set(\"Content-Type\", \"application/json\");\n }\n return next(request);\n },\n });\n }\n\n /**\n * The create key operation can be used to create any key type in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n * const result = await client.createKey(keyName, \"RSA\");\n * console.log(\"result: \", result);\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param keyType - The type of the key. One of the following: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'.\n * @param options - The optional parameters.\n */\n public createKey(\n name: string,\n keyType: KeyType,\n options: CreateKeyOptions = {},\n ): Promise<KeyVaultKey> {\n return tracingClient.withSpan(\"KeyClient.createKey\", options, async (updatedOptions) => {\n const response = await this.client.createKey(\n name,\n {\n kty: keyType,\n curve: options?.curve,\n keyAttributes: {\n enabled: options?.enabled,\n notBefore: options?.notBefore,\n expires: options?.expiresOn,\n exportable: options?.exportable,\n },\n keyOps: options?.keyOps,\n keySize: options?.keySize,\n releasePolicy: options?.releasePolicy,\n tags: options?.tags,\n },\n updatedOptions,\n );\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The createEcKey method creates a new elliptic curve key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateEcKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n * const result = await client.createEcKey(keyName, { curve: \"P-256\" });\n * console.log(\"result: \", result);\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createEcKey(name: string, options?: CreateEcKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownKeyTypes.ECHSM : KnownKeyTypes.EC;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The createRSAKey method creates a new RSA key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateRsaKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n * const result = await client.createRsaKey(\"MyKey\", { keySize: 2048 });\n * console.log(\"result: \", result);\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createRsaKey(name: string, options?: CreateRsaKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownKeyTypes.RSAHSM : KnownKeyTypes.RSA;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The createOctKey method creates a new OCT key in Azure Key Vault. If the named key\n * already exists, Azure Key Vault creates a new version of the key. It requires the keys/create\n * permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleCreateOctKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n * const result = await client.createOctKey(\"MyKey\", { hsm: true });\n * console.log(\"result: \", result);\n * ```\n * Creates a new key, stores it, then returns key parameters and properties to the client.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async createOctKey(name: string, options?: CreateOctKeyOptions): Promise<KeyVaultKey> {\n const keyType = options?.hsm ? KnownKeyTypes.OctHSM : KnownKeyTypes.Oct;\n return this.createKey(name, keyType, options);\n }\n\n /**\n * The import key operation may be used to import any key type into an Azure Key Vault. If the\n * named key already exists, Azure Key Vault creates a new version of the key. This operation\n * requires the keys/import permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleImportKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const jsonWebKey = {\n * kty: \"RSA\",\n * kid: \"test-key-123\",\n * use: \"sig\",\n * alg: \"RS256\",\n * n: new Uint8Array([112, 34, 56, 98, 123, 244, 200, 99]),\n * e: new Uint8Array([1, 0, 1]),\n * d: new Uint8Array([45, 67, 89, 23, 144, 200, 76, 233]),\n * p: new Uint8Array([34, 89, 100, 77, 204, 56, 29, 77]),\n * q: new Uint8Array([78, 99, 201, 45, 188, 34, 67, 90]),\n * dp: new Uint8Array([23, 45, 78, 56, 200, 144, 32, 67]),\n * dq: new Uint8Array([12, 67, 89, 144, 99, 56, 23, 45]),\n * qi: new Uint8Array([78, 90, 45, 201, 34, 67, 120, 55]),\n * };\n *\n * const result = await client.importKey(\"MyKey\", jsonWebKey);\n * ```\n * Imports an externally created key, stores it, and returns key parameters and properties\n * to the client.\n * @param name - Name for the imported key.\n * @param key - The JSON web key.\n * @param options - The optional parameters.\n */\n public importKey(\n name: string,\n key: JsonWebKey,\n options: ImportKeyOptions = {},\n ): Promise<KeyVaultKey> {\n return tracingClient.withSpan(`KeyClient.importKey`, options, async (updatedOptions) => {\n const { enabled, notBefore, expiresOn: expires, exportable, releasePolicy, tags } = options;\n const keyAttributes = {\n enabled,\n notBefore,\n expires,\n exportable,\n };\n const parameters = {\n key,\n hsm: options?.hardwareProtected,\n keyAttributes,\n releasePolicy,\n tags,\n };\n const response = await this.client.importKey(name, parameters, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * Gets a {@link CryptographyClient} for the given key.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetCryptographyClient\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * // Get a cryptography client for a given key\n * const cryptographyClient = client.getCryptographyClient(\"MyKey\");\n * ```\n * @param name - The name of the key used to perform cryptographic operations.\n * @param version - Optional version of the key used to perform cryptographic operations.\n * @returns - A {@link CryptographyClient} using the same options, credentials, and http client as this {@link KeyClient}\n */\n public getCryptographyClient(\n keyName: string,\n options?: GetCryptographyClientOptions,\n ): CryptographyClient {\n const keyUrl = new URL(\n [\"keys\", keyName, options?.keyVersion].filter(Boolean).join(\"/\"),\n this.vaultUrl,\n );\n\n // The goals of this method are discoverability and performance (by sharing a client and pipeline).\n // The existing cryptography client does not accept a pipeline as an argument, nor does it expose it.\n // In order to avoid publicly exposing the pipeline we will pass in the underlying client as an undocumented\n // property to the constructor so that crypto providers downstream can use it.\n const constructorOptions: CryptographyClientOptions & { generatedClient: KeyVaultClient } = {\n generatedClient: this.client,\n };\n const cryptoClient = new CryptographyClient(\n keyUrl.toString(),\n this.credential,\n constructorOptions,\n );\n return cryptoClient;\n }\n\n /**\n * The delete operation applies to any key stored in Azure Key Vault. Individual versions\n * of a key can not be deleted, only all versions of a given key at once.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the key is deleted.\n *\n * This operation requires the keys/delete permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleDeleteKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const poller = await client.beginDeleteKey(keyName);\n * await poller.pollUntilDone();\n * ```\n * Deletes a key from a specified key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public async beginDeleteKey(\n name: string,\n options: BeginDeleteKeyOptions = {},\n ): Promise<PollerLike<PollOperationState<DeletedKey>, DeletedKey>> {\n const poller = new DeleteKeyPoller({\n name,\n client: this.client,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options,\n });\n\n // This will initialize the poller's operation (the deletion of the key).\n await poller.poll();\n\n return poller;\n }\n\n /**\n * The updateKeyProperties method changes specified properties of an existing stored key. Properties that\n * are not specified in the request are left unchanged. The value of a key itself cannot be\n * changed. This operation requires the keys/set permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleUpdateKeyProperties\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const result = await client.createKey(keyName, \"RSA\");\n * await client.updateKeyProperties(keyName, result.properties.version, {\n * enabled: false,\n * });\n * ```\n * Updates the properties associated with a specified key in a given key vault.\n * @param name - The name of the key.\n * @param keyVersion - The version of the key.\n * @param options - The optional parameters.\n */\n public updateKeyProperties(\n name: string,\n keyVersion: string,\n options?: UpdateKeyPropertiesOptions,\n ): Promise<KeyVaultKey>;\n /**\n * The updateKeyProperties method changes specified properties of the latest version of an existing stored key. Properties that\n * are not specified in the request are left unchanged. The value of a key itself cannot be\n * changed. This operation requires the keys/set permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleUpdateKeyProperties\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const result = await client.createKey(keyName, \"RSA\");\n * await client.updateKeyProperties(keyName, result.properties.version, {\n * enabled: false,\n * });\n * ```\n * Updates the properties associated with a specified key in a given key vault.\n * @param name - The name of the key.\n * @param keyVersion - The version of the key.\n * @param options - The optional parameters.\n */\n public updateKeyProperties(\n name: string,\n options?: UpdateKeyPropertiesOptions,\n ): Promise<KeyVaultKey>;\n public updateKeyProperties(\n ...args: [string, string, UpdateKeyPropertiesOptions?] | [string, UpdateKeyPropertiesOptions?]\n ): Promise<KeyVaultKey> {\n const [name, keyVersion, options] = this.disambiguateUpdateKeyPropertiesArgs(args);\n return tracingClient.withSpan(\n `KeyClient.updateKeyProperties`,\n options,\n async (updatedOptions) => {\n const response = await this.client.updateKey(\n name,\n keyVersion,\n {\n keyAttributes: {\n enabled: options?.enabled,\n notBefore: options?.notBefore,\n expires: options?.expiresOn,\n },\n keyOps: options?.keyOps,\n releasePolicy: options?.releasePolicy,\n tags: options?.tags,\n },\n updatedOptions,\n );\n return getKeyFromKeyBundle(response);\n },\n );\n }\n\n /**\n * Standardizes an overloaded arguments collection for the updateKeyProperties method.\n *\n * @param args - The arguments collection.\n * @returns - The standardized arguments collection.\n */\n private disambiguateUpdateKeyPropertiesArgs(\n args: [string, string, UpdateKeyPropertiesOptions?] | [string, UpdateKeyPropertiesOptions?],\n ): [string, string, UpdateKeyPropertiesOptions] {\n if (typeof args[1] === \"string\") {\n // [name, keyVersion, options?] => [name, keyVersion, options || {}]\n return [args[0], args[1], args[2] || {}];\n } else {\n // [name, options?] => [name , \"\", options || {}]\n return [args[0], \"\", args[1] || {}];\n }\n }\n\n /**\n * The getKey method gets a specified key and is applicable to any key stored in Azure Key Vault.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const latestKey = await client.getKey(keyName);\n * console.log(`Latest version of the key ${keyName}: `, latestKey);\n *\n * const specificKey = await client.getKey(keyName, { version: latestKey.properties.version! });\n * console.log(`The key ${keyName} at the version ${latestKey.properties.version!}: `, specificKey);\n * ```\n * Get a specified key from a given key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getKey(name: string, options: GetKeyOptions = {}): Promise<KeyVaultKey> {\n return tracingClient.withSpan(`KeyClient.getKey`, options, async (updatedOptions) => {\n const response = await this.client.getKey(name, options.version || \"\", updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The getKeyAttestation method gets a specified key and its attestation blob and is applicable to any key stored in Azure Key Vault Managed HSM.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetKeyAttestation\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT MANAGED HSM NAME>\";\n * const url = `https://${vaultName}.managedhsm.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const latestKey = await client.getKeyAttestation(keyName);\n * console.log(`Latest version of the key ${keyName}: `, latestKey);\n *\n * const specificKey = await client.getKeyAttestation(keyName, {\n * version: latestKey.properties.version!,\n * });\n * console.log(`The key ${keyName} at the version ${latestKey.properties.version!}: `, specificKey);\n * ```\n * Get a specified key from a given key vault.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getKeyAttestation(\n name: string,\n options: GetKeyAttestationOptions = {},\n ): Promise<KeyVaultKey> {\n return tracingClient.withSpan(\n `KeyClient.getKeyAttestation`,\n options,\n async (updatedOptions) => {\n const response = await this.client.getKeyAttestation(\n name,\n updatedOptions.version ?? \"\",\n updatedOptions,\n );\n return getKeyFromKeyBundle(response);\n },\n );\n }\n\n /**\n * The getDeletedKey method returns the specified deleted key along with its properties.\n * This operation requires the keys/get permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetDeletedKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * await client.getDeletedKey(keyName);\n * ```\n * Gets the specified deleted key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public getDeletedKey(name: string, options: GetDeletedKeyOptions = {}): Promise<DeletedKey> {\n return tracingClient.withSpan(`KeyClient.getDeletedKey`, options, async (updatedOptions) => {\n const response = await this.client.getDeletedKey(name, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * The purge deleted key operation removes the key permanently, without the possibility of\n * recovery. This operation can only be enabled on a soft-delete enabled vault. This operation\n * requires the keys/purge permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSamplePurgeDeletedKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const deletePoller = await client.beginDeleteKey(keyName);\n * await deletePoller.pollUntilDone();\n *\n * await client.purgeDeletedKey(keyName);\n * ```\n * Permanently deletes the specified key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public purgeDeletedKey(name: string, options: PurgeDeletedKeyOptions = {}): Promise<void> {\n return tracingClient.withSpan(`KeyClient.purgeDeletedKey`, options, async (updatedOptions) => {\n await this.client.purgeDeletedKey(name, updatedOptions);\n });\n }\n\n /**\n * Recovers the deleted key in the specified vault. This operation can only be performed on a\n * soft-delete enabled vault.\n *\n * This function returns a Long Running Operation poller that allows you to wait indefinitely until the deleted key is recovered.\n *\n * This operation requires the keys/recover permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleRecoverDeletedKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const deletePoller = await client.beginDeleteKey(keyName);\n * await deletePoller.pollUntilDone();\n *\n * const recoverPoller = await client.beginRecoverDeletedKey(keyName);\n * const recoveredKey = await recoverPoller.pollUntilDone();\n * ```\n * Recovers the deleted key to the latest version.\n * @param name - The name of the deleted key.\n * @param options - The optional parameters.\n */\n public async beginRecoverDeletedKey(\n name: string,\n options: BeginRecoverDeletedKeyOptions = {},\n ): Promise<PollerLike<PollOperationState<DeletedKey>, DeletedKey>> {\n const poller = new RecoverDeletedKeyPoller({\n name,\n client: this.client,\n intervalInMs: options.intervalInMs,\n resumeFrom: options.resumeFrom,\n operationOptions: options,\n });\n // This will initialize the poller's operation (the deletion of the key).\n await poller.poll();\n return poller;\n }\n\n /**\n * Requests that a backup of the specified key be downloaded to the client. All versions of the\n * key will be downloaded. This operation requires the keys/backup permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleBackupKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const backupContents = await client.backupKey(keyName);\n * ```\n * Backs up the specified key.\n * @param name - The name of the key.\n * @param options - The optional parameters.\n */\n public backupKey(name: string, options: BackupKeyOptions = {}): Promise<Uint8Array | undefined> {\n return tracingClient.withSpan(`KeyClient.backupKey`, options, async (updatedOptions) => {\n const response = await this.client.backupKey(name, updatedOptions);\n return response.value;\n });\n }\n\n /**\n * Restores a backed up key, and all its versions, to a vault. This operation requires the\n * keys/restore permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleRestoreKeyBackup\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const backupContents = await client.backupKey(keyName);\n *\n * const key = await client.restoreKeyBackup(backupContents);\n * ```\n * Restores a backed up key to a vault.\n * @param backup - The backup blob associated with a key bundle.\n * @param options - The optional parameters.\n */\n public async restoreKeyBackup(\n backup: Uint8Array,\n options: RestoreKeyBackupOptions = {},\n ): Promise<KeyVaultKey> {\n return tracingClient.withSpan(`KeyClient.restoreKeyBackup`, options, async (updatedOptions) => {\n const response = await this.client.restoreKey({ keyBundleBackup: backup }, updatedOptions);\n return getKeyFromKeyBundle(response);\n });\n }\n\n /**\n * Gets the requested number of bytes containing random values from a managed HSM.\n * This operation requires the managedHsm/rng permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleGetRandomBytes\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const bytes = await client.getRandomBytes(10);\n * ```\n * @param count - The number of bytes to generate between 1 and 128 inclusive.\n * @param options - The optional parameters.\n */\n public getRandomBytes(count: number, options: GetRandomBytesOptions = {}): Promise<Uint8Array> {\n return tracingClient.withSpan(\"KeyClient.getRandomBytes\", options, async (updatedOptions) => {\n const response = await this.client.getRandomBytes({ count }, updatedOptions);\n return response.value!;\n });\n }\n\n /**\n * Rotates the key based on the key policy by generating a new version of the key. This operation requires the keys/rotate permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleKeyRotation\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * // Set the key's automated rotation policy to rotate the key 30 days before expiry.\n * const policy = await client.updateKeyRotationPolicy(keyName, {\n * lifetimeActions: [\n * {\n * action: \"Rotate\",\n * timeBeforeExpiry: \"P30D\",\n * },\n * ],\n * // You may also specify the duration after which any newly rotated key will expire.\n * // In this case, any new key versions will expire after 90 days.\n * expiresIn: \"P90D\",\n * });\n *\n * // You can get the current key rotation policy of a given key by calling the getKeyRotationPolicy method.\n * const currentPolicy = await client.getKeyRotationPolicy(keyName);\n *\n * // Finally, you can rotate a key on-demand by creating a new version of the given key.\n * const rotatedKey = await client.rotateKey(keyName);\n * ```\n *\n * @param name - The name of the key to rotate.\n * @param options - The optional parameters.\n */\n public rotateKey(name: string, options: RotateKeyOptions = {}): Promise<KeyVaultKey> {\n return tracingClient.withSpan(\"KeyClient.rotateKey\", options, async (updatedOptions) => {\n const key = await this.client.rotateKey(name, updatedOptions);\n return getKeyFromKeyBundle(key);\n });\n }\n\n /**\n * Releases a key from a managed HSM.\n *\n * The release key operation is applicable to all key types. The operation requires the key to be marked exportable and the keys/release permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleReleaseKey\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const result = await client.releaseKey(\"myKey\", \"<attestation-target>\");\n * ```\n *\n * @param name - The name of the key.\n * @param targetAttestationToken - The attestation assertion for the target of the key release.\n * @param options - The optional parameters.\n */\n public releaseKey(\n name: string,\n targetAttestationToken: string,\n options: ReleaseKeyOptions = {},\n ): Promise<ReleaseKeyResult> {\n return tracingClient.withSpan(\"KeyClient.releaseKey\", options, async (updatedOptions) => {\n const { nonce, algorithm, ...rest } = updatedOptions;\n const result = await this.client.release(\n name,\n options?.version || \"\",\n {\n targetAttestationToken,\n enc: algorithm,\n nonce,\n },\n rest,\n );\n\n return { value: result.value! };\n });\n }\n\n /**\n * Gets the rotation policy of a Key Vault Key.\n * By default, all keys have a policy that will notify 30 days before expiry.\n *\n * This operation requires the keys/get permission.\n * Example usage:\n * ```ts snippet:ReadmeSampleGetKeyRotationPolicy\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const result = await client.getKeyRotationPolicy(keyName);\n * ```\n *\n * @param keyName - The name of the key.\n * @param options - The optional parameters.\n */\n public getKeyRotationPolicy(\n keyName: string,\n options: GetKeyRotationPolicyOptions = {},\n ): Promise<KeyRotationPolicy> {\n return tracingClient.withSpan(\"KeyClient.getKeyRotationPolicy\", options, async () => {\n const policy = await this.client.getKeyRotationPolicy(keyName);\n return keyRotationTransformations.generatedToPublic(policy);\n });\n }\n\n /**\n * Updates the rotation policy of a Key Vault Key.\n * This operation requires the keys/update permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleUpdateKeyRotationPolicy\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * const myPolicy = await client.getKeyRotationPolicy(keyName);\n *\n * const setPolicy = await client.updateKeyRotationPolicy(keyName, myPolicy);\n * ```\n *\n * @param keyName - The name of the key.\n * @param policyProperties - The {@link KeyRotationPolicyProperties} for the policy.\n * @param options - The optional parameters.\n */\n public updateKeyRotationPolicy(\n keyName: string,\n policy: KeyRotationPolicyProperties,\n options: UpdateKeyRotationPolicyOptions = {},\n ): Promise<KeyRotationPolicy> {\n return tracingClient.withSpan(\n \"KeyClient.updateKeyRotationPolicy\",\n options,\n async (updatedOptions) => {\n const result = await this.client.updateKeyRotationPolicy(\n keyName,\n keyRotationTransformations.propertiesToGenerated(policy),\n updatedOptions,\n );\n return keyRotationTransformations.generatedToPublic(result);\n },\n );\n }\n\n /**\n * Iterates all versions of the given key in the vault. The full key identifier, properties, and tags are provided\n * in the response. This operation requires the keys/list permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleListKeys\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * for await (const keyProperties of client.listPropertiesOfKeys()) {\n * console.log(\"Key properties: \", keyProperties);\n * }\n *\n * for await (const deletedKey of client.listDeletedKeys()) {\n * console.log(\"Deleted: \", deletedKey);\n * }\n *\n * for await (const versionProperties of client.listPropertiesOfKeyVersions(keyName)) {\n * console.log(\"Version properties: \", versionProperties);\n * }\n * ```\n * @param name - Name of the key to fetch versions for\n * @param options - The optional parameters.\n */\n public listPropertiesOfKeyVersions(\n name: string,\n options: ListPropertiesOfKeyVersionsOptions = {},\n ): PagedAsyncIterableIterator<KeyProperties> {\n return mapPagedAsyncIterable(\n options,\n (mappedOptions) => this.client.getKeyVersions(name, mappedOptions),\n getKeyPropertiesFromKeyItem,\n );\n }\n\n /**\n * Iterates the latest version of all keys in the vault. The full key identifier and properties are provided\n * in the response. No values are returned for the keys. This operations requires the keys/list permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleListKeys\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * for await (const keyProperties of client.listPropertiesOfKeys()) {\n * console.log(\"Key properties: \", keyProperties);\n * }\n *\n * for await (const deletedKey of client.listDeletedKeys()) {\n * console.log(\"Deleted: \", deletedKey);\n * }\n *\n * for await (const versionProperties of client.listPropertiesOfKeyVersions(keyName)) {\n * console.log(\"Version properties: \", versionProperties);\n * }\n * ```\n * List all keys in the vault\n * @param options - The optional parameters.\n */\n public listPropertiesOfKeys(\n options: ListPropertiesOfKeysOptions = {},\n ): PagedAsyncIterableIterator<KeyProperties> {\n return mapPagedAsyncIterable(\n options,\n this.client.getKeys.bind(this.client),\n getKeyPropertiesFromKeyItem,\n );\n }\n\n /**\n * Iterates the deleted keys in the vault. The full key identifier and properties are provided\n * in the response. No values are returned for the keys. This operations requires the keys/list permission.\n *\n * Example usage:\n * ```ts snippet:ReadmeSampleListKeys\n * import { DefaultAzureCredential } from \"@azure/identity\";\n * import { KeyClient } from \"@azure/keyvault-keys\";\n *\n * const credential = new DefaultAzureCredential();\n *\n * const vaultName = \"<YOUR KEYVAULT NAME>\";\n * const url = `https://${vaultName}.vault.azure.net`;\n *\n * const client = new KeyClient(url, credential);\n *\n * const keyName = \"MyKeyName\";\n *\n * for await (const keyProperties of client.listPropertiesOfKeys()) {\n * console.log(\"Key properties: \", keyProperties);\n * }\n *\n * for await (const deletedKey of client.listDeletedKeys()) {\n * console.log(\"Deleted: \", deletedKey);\n * }\n *\n * for await (const versionProperties of client.listPropertiesOfKeyVersions(keyName)) {\n * console.log(\"Version properties: \", versionProperties);\n * }\n * ```\n * List all keys in the vault\n * @param options - The optional parameters.\n */\n public listDeletedKeys(\n options: ListDeletedKeysOptions = {},\n ): PagedAsyncIterableIterator<DeletedKey> {\n return mapPagedAsyncIterable(\n options,\n this.client.getDeletedKeys.bind(this.client),\n getDeletedKeyFromDeletedKeyItem,\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyVaultClient.d.ts","sourceRoot":"","sources":["../../src/keyVaultClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAAmC,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EACL,mBAAmB,EACnB,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,EAC5B,qCAAqC,EACrC,kCAAkC,EAClC,+BAA+B,EAC/B,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AA4B1B,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEn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,OAAe,EACf,UAA+B,EAC/B,UAAmC,EAAE,cAAc,EAAE,EAAE,EAAE;QAEzD,OAAO,IAAA,yBAAS,EAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,yGAAyG;IACzG,SAAS,CACP,OAAe,EACf,UAAmC,EAAE,cAAc,EAAE,EAAE,EAAE;QAEzD,OAAO,IAAA,yBAAS,EAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,iNAAiN;IACjN,SAAS,CACP,OAAe,EACf,UAA+B,EAC/B,UAAmC,EAAE,cAAc,EAAE,EAAE,EAAE;QAEzD,OAAO,IAAA,yBAAS,EAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAhPD,wCAgPC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createKeyVault, KeyVaultContext, KeyVaultClientOptionalParams } from \"./api/index.js\";\nimport {\n KeyCreateParameters,\n KeyBundle,\n KeyImportParameters,\n DeletedKeyBundle,\n KeyUpdateParameters,\n KeyItem,\n BackupKeyResult,\n KeyRestoreParameters,\n KeyOperationsParameters,\n KeyOperationResult,\n KeySignParameters,\n KeyVerifyParameters,\n KeyVerifyResult,\n KeyReleaseParameters,\n KeyReleaseResult,\n DeletedKeyItem,\n KeyRotationPolicy,\n GetRandomBytesRequest,\n RandomBytes,\n} from \"./models/models.js\";\nimport {\n GetKeyAttestationOptionalParams,\n GetRandomBytesOptionalParams,\n UpdateKeyRotationPolicyOptionalParams,\n GetKeyRotationPolicyOptionalParams,\n RecoverDeletedKeyOptionalParams,\n PurgeDeletedKeyOptionalParams,\n GetDeletedKeyOptionalParams,\n GetDeletedKeysOptionalParams,\n ReleaseOptionalParams,\n UnwrapKeyOptionalParams,\n WrapKeyOptionalParams,\n VerifyOptionalParams,\n SignOptionalParams,\n DecryptOptionalParams,\n EncryptOptionalParams,\n RestoreKeyOptionalParams,\n BackupKeyOptionalParams,\n GetKeysOptionalParams,\n GetKeyVersionsOptionalParams,\n GetKeyOptionalParams,\n UpdateKeyOptionalParams,\n DeleteKeyOptionalParams,\n ImportKeyOptionalParams,\n RotateKeyOptionalParams,\n CreateKeyOptionalParams,\n} from \"./api/options.js\";\nimport {\n getKeyAttestation,\n getRandomBytes,\n updateKeyRotationPolicy,\n getKeyRotationPolicy,\n recoverDeletedKey,\n purgeDeletedKey,\n getDeletedKey,\n getDeletedKeys,\n release,\n unwrapKey,\n wrapKey,\n verify,\n sign,\n decrypt,\n encrypt,\n restoreKey,\n backupKey,\n getKeys,\n getKeyVersions,\n getKey,\n updateKey,\n deleteKey,\n importKey,\n rotateKey,\n createKey,\n} from \"./api/operations.js\";\nimport { PagedAsyncIterableIterator } from \"./static-helpers/pagingHelpers.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { KeyVaultClientOptionalParams } from \"./api/keyVaultContext.js\";\n\nexport class KeyVaultClient {\n private _client: KeyVaultContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */\n constructor(\n endpointParam: string,\n credential: TokenCredential,\n options: KeyVaultClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createKeyVault(endpointParam, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n }\n\n /** The get key attestation operation returns the key along with its attestation blob. This operation requires the keys/get permission. */\n getKeyAttestation(\n keyName: string,\n keyVersion: string,\n options: GetKeyAttestationOptionalParams = { requestOptions: {} },\n ): Promise<KeyBundle> {\n return getKeyAttestation(this._client, keyName, keyVersion, options);\n }\n\n /** Get the requested number of bytes containing random values from a managed HSM. */\n getRandomBytes(\n parameters: GetRandomBytesRequest,\n options: GetRandomBytesOptionalParams = { requestOptions: {} },\n ): Promise<RandomBytes> {\n return getRandomBytes(this._client, parameters, options);\n }\n\n /** Set specified members in the key policy. Leave others as undefined. This operation requires the keys/update permission. */\n updateKeyRotationPolicy(\n keyName: string,\n keyRotationPolicy: KeyRotationPolicy,\n options: UpdateKeyRotationPolicyOptionalParams = { requestOptions: {} },\n ): Promise<KeyRotationPolicy> {\n return updateKeyRotationPolicy(this._client, keyName, keyRotationPolicy, options);\n }\n\n /** The GetKeyRotationPolicy operation returns the specified key policy resources in the specified key vault. This operation requires the keys/get permission. */\n getKeyRotationPolicy(\n keyName: string,\n options: GetKeyRotationPolicyOptionalParams = { requestOptions: {} },\n ): Promise<KeyRotationPolicy> {\n return getKeyRotationPolicy(this._client, keyName, options);\n }\n\n /** The Recover Deleted Key operation is applicable for deleted keys in soft-delete enabled vaults. It recovers the deleted key back to its latest version under /keys. An attempt to recover an non-deleted key will return an error. Consider this the inverse of the delete operation on soft-delete enabled vaults. This operation requires the keys/recover permission. */\n recoverDeletedKey(\n keyName: string,\n options: RecoverDeletedKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyBundle> {\n return recoverDeletedKey(this._client, keyName, options);\n }\n\n /** The Purge Deleted Key operation is applicable for soft-delete enabled vaults. While the operation can be invoked on any vault, it will return an error if invoked on a non soft-delete enabled vault. This operation requires the keys/purge permission. */\n purgeDeletedKey(\n keyName: string,\n options: PurgeDeletedKeyOptionalParams = { requestOptions: {} },\n ): Promise<void> {\n return purgeDeletedKey(this._client, keyName, options);\n }\n\n /** The Get Deleted Key operation is applicable for soft-delete enabled vaults. While the operation can be invoked on any vault, it will return an error if invoked on a non soft-delete enabled vault. This operation requires the keys/get permission. */\n getDeletedKey(\n keyName: string,\n options: GetDeletedKeyOptionalParams = { requestOptions: {} },\n ): Promise<DeletedKeyBundle> {\n return getDeletedKey(this._client, keyName, options);\n }\n\n /** Retrieves a list of the keys in the Key Vault as JSON Web Key structures that contain the public part of a deleted key. This operation includes deletion-specific information. The Get Deleted Keys operation is applicable for vaults enabled for soft-delete. While the operation can be invoked on any vault, it will return an error if invoked on a non soft-delete enabled vault. This operation requires the keys/list permission. */\n getDeletedKeys(\n options: GetDeletedKeysOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<DeletedKeyItem> {\n return getDeletedKeys(this._client, options);\n }\n\n /** The release key operation is applicable to all key types. The target key must be marked exportable. This operation requires the keys/release permission. */\n release(\n keyName: string,\n keyVersion: string,\n parameters: KeyReleaseParameters,\n options: ReleaseOptionalParams = { requestOptions: {} },\n ): Promise<KeyReleaseResult> {\n return release(this._client, keyName, keyVersion, parameters, options);\n }\n\n /** The UNWRAP operation supports decryption of a symmetric key using the target key encryption key. This operation is the reverse of the WRAP operation. The UNWRAP operation applies to asymmetric and symmetric keys stored in Azure Key Vault since it uses the private portion of the key. This operation requires the keys/unwrapKey permission. */\n unwrapKey(\n keyName: string,\n keyVersion: string,\n parameters: KeyOperationsParameters,\n options: UnwrapKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyOperationResult> {\n return unwrapKey(this._client, keyName, keyVersion, parameters, options);\n }\n\n /** The WRAP operation supports encryption of a symmetric key using a key encryption key that has previously been stored in an Azure Key Vault. The WRAP operation is only strictly necessary for symmetric keys stored in Azure Key Vault since protection with an asymmetric key can be performed using the public portion of the key. This operation is supported for asymmetric keys as a convenience for callers that have a key-reference but do not have access to the public key material. This operation requires the keys/wrapKey permission. */\n wrapKey(\n keyName: string,\n keyVersion: string,\n parameters: KeyOperationsParameters,\n options: WrapKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyOperationResult> {\n return wrapKey(this._client, keyName, keyVersion, parameters, options);\n }\n\n /** The VERIFY operation is applicable to symmetric keys stored in Azure Key Vault. VERIFY is not strictly necessary for asymmetric keys stored in Azure Key Vault since signature verification can be performed using the public portion of the key but this operation is supported as a convenience for callers that only have a key-reference and not the public portion of the key. This operation requires the keys/verify permission. */\n verify(\n keyName: string,\n keyVersion: string,\n parameters: KeyVerifyParameters,\n options: VerifyOptionalParams = { requestOptions: {} },\n ): Promise<KeyVerifyResult> {\n return verify(this._client, keyName, keyVersion, parameters, options);\n }\n\n /** The SIGN operation is applicable to asymmetric and symmetric keys stored in Azure Key Vault since this operation uses the private portion of the key. This operation requires the keys/sign permission. */\n sign(\n keyName: string,\n keyVersion: string,\n parameters: KeySignParameters,\n options: SignOptionalParams = { requestOptions: {} },\n ): Promise<KeyOperationResult> {\n return sign(this._client, keyName, keyVersion, parameters, options);\n }\n\n /** The DECRYPT operation decrypts a well-formed block of ciphertext using the target encryption key and specified algorithm. This operation is the reverse of the ENCRYPT operation; only a single block of data may be decrypted, the size of this block is dependent on the target key and the algorithm to be used. The DECRYPT operation applies to asymmetric and symmetric keys stored in Azure Key Vault since it uses the private portion of the key. This operation requires the keys/decrypt permission. Microsoft recommends not to use CBC algorithms for decryption without first ensuring the integrity of the ciphertext using an HMAC, for example. See https://learn.microsoft.com/dotnet/standard/security/vulnerabilities-cbc-mode for more information. */\n decrypt(\n keyName: string,\n keyVersion: string,\n parameters: KeyOperationsParameters,\n options: DecryptOptionalParams = { requestOptions: {} },\n ): Promise<KeyOperationResult> {\n return decrypt(this._client, keyName, keyVersion, parameters, options);\n }\n\n /** The ENCRYPT operation encrypts an arbitrary sequence of bytes using an encryption key that is stored in Azure Key Vault. Note that the ENCRYPT operation only supports a single block of data, the size of which is dependent on the target key and the encryption algorithm to be used. The ENCRYPT operation is only strictly necessary for symmetric keys stored in Azure Key Vault since protection with an asymmetric key can be performed using public portion of the key. This operation is supported for asymmetric keys as a convenience for callers that have a key-reference but do not have access to the public key material. This operation requires the keys/encrypt permission. */\n encrypt(\n keyName: string,\n keyVersion: string,\n parameters: KeyOperationsParameters,\n options: EncryptOptionalParams = { requestOptions: {} },\n ): Promise<KeyOperationResult> {\n return encrypt(this._client, keyName, keyVersion, parameters, options);\n }\n\n /** Imports a previously backed up key into Azure Key Vault, restoring the key, its key identifier, attributes and access control policies. The RESTORE operation may be used to import a previously backed up key. Individual versions of a key cannot be restored. The key is restored in its entirety with the same key name as it had when it was backed up. If the key name is not available in the target Key Vault, the RESTORE operation will be rejected. While the key name is retained during restore, the final key identifier will change if the key is restored to a different vault. Restore will restore all versions and preserve version identifiers. The RESTORE operation is subject to security constraints: The target Key Vault must be owned by the same Microsoft Azure Subscription as the source Key Vault The user must have RESTORE permission in the target Key Vault. This operation requires the keys/restore permission. */\n restoreKey(\n parameters: KeyRestoreParameters,\n options: RestoreKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyBundle> {\n return restoreKey(this._client, parameters, options);\n }\n\n /** The Key Backup operation exports a key from Azure Key Vault in a protected form. Note that this operation does NOT return key material in a form that can be used outside the Azure Key Vault system, the returned key material is either protected to a Azure Key Vault HSM or to Azure Key Vault itself. The intent of this operation is to allow a client to GENERATE a key in one Azure Key Vault instance, BACKUP the key, and then RESTORE it into another Azure Key Vault instance. The BACKUP operation may be used to export, in protected form, any key type from Azure Key Vault. Individual versions of a key cannot be backed up. BACKUP / RESTORE can be performed within geographical boundaries only; meaning that a BACKUP from one geographical area cannot be restored to another geographical area. For example, a backup from the US geographical area cannot be restored in an EU geographical area. This operation requires the key/backup permission. */\n backupKey(\n keyName: string,\n options: BackupKeyOptionalParams = { requestOptions: {} },\n ): Promise<BackupKeyResult> {\n return backupKey(this._client, keyName, options);\n }\n\n /** Retrieves a list of the keys in the Key Vault as JSON Web Key structures that contain the public part of a stored key. The LIST operation is applicable to all key types, however only the base key identifier, attributes, and tags are provided in the response. Individual versions of a key are not listed in the response. This operation requires the keys/list permission. */\n getKeys(\n options: GetKeysOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<KeyItem> {\n return getKeys(this._client, options);\n }\n\n /** The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/list permission. */\n getKeyVersions(\n keyName: string,\n options: GetKeyVersionsOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<KeyItem> {\n return getKeyVersions(this._client, keyName, options);\n }\n\n /** The get key operation is applicable to all key types. If the requested key is symmetric, then no key material is released in the response. This operation requires the keys/get permission. */\n getKey(\n keyName: string,\n keyVersion: string,\n options: GetKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyBundle> {\n return getKey(this._client, keyName, keyVersion, options);\n }\n\n /** In order to perform this operation, the key must already exist in the Key Vault. Note: The cryptographic material of a key itself cannot be changed. This operation requires the keys/update permission. */\n updateKey(\n keyName: string,\n keyVersion: string,\n parameters: KeyUpdateParameters,\n options: UpdateKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyBundle> {\n return updateKey(this._client, keyName, keyVersion, parameters, options);\n }\n\n /** The delete key operation cannot be used to remove individual versions of a key. This operation removes the cryptographic material associated with the key, which means the key is not usable for Sign/Verify, Wrap/Unwrap or Encrypt/Decrypt operations. This operation requires the keys/delete permission. */\n deleteKey(\n keyName: string,\n options: DeleteKeyOptionalParams = { requestOptions: {} },\n ): Promise<DeletedKeyBundle> {\n return deleteKey(this._client, keyName, options);\n }\n\n /** The import key operation may be used to import any key type into an Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. This operation requires the keys/import permission. */\n importKey(\n keyName: string,\n parameters: KeyImportParameters,\n options: ImportKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyBundle> {\n return importKey(this._client, keyName, parameters, options);\n }\n\n /** The operation will rotate the key based on the key policy. It requires the keys/rotate permission. */\n rotateKey(\n keyName: string,\n options: RotateKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyBundle> {\n return rotateKey(this._client, keyName, options);\n }\n\n /** The create key operation can be used to create any key type in Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. It requires the keys/create permission. */\n createKey(\n keyName: string,\n parameters: KeyCreateParameters,\n options: CreateKeyOptionalParams = { requestOptions: {} },\n ): Promise<KeyBundle> {\n return createKey(this._client, keyName, parameters, options);\n }\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as coreClient from "@azure-rest/core-client";
|
|
2
2
|
import type { ExtendedCommonClientOptions } from "@azure/core-http-compat";
|
|
3
|
-
import type { DeletionRecoveryLevel } from "./
|
|
4
|
-
import { JsonWebKeyOperation as KeyOperation, JsonWebKeyType as KeyType } from "./
|
|
3
|
+
import type { DeletionRecoveryLevel } from "./models/models.js";
|
|
4
|
+
import { JsonWebKeyOperation as KeyOperation, JsonWebKeyType as KeyType } from "./models/models.js";
|
|
5
5
|
import type { KeyCurveName } from "./cryptographyClientModels.js";
|
|
6
6
|
export { KeyType, KeyOperation };
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keysModels.d.ts","sourceRoot":"","sources":["../../src/keysModels.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"keysModels.d.ts","sourceRoot":"","sources":["../../src/keysModels.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mBAAmB,IAAI,YAAY,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAEpG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAExC;;GAEG;AACH,MAAM,WAA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