Estructura inicial del proyecto
This commit is contained in:
4
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/index.d.ts
generated
vendored
Normal file
4
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export { createKeyVault, KeyVaultContext, KeyVaultClientOptionalParams, } from "./keyVaultContext.js";
|
||||
export { getKeyAttestation, getRandomBytes, updateKeyRotationPolicy, getKeyRotationPolicy, recoverDeletedKey, purgeDeletedKey, getDeletedKey, getDeletedKeys, release, unwrapKey, wrapKey, verify, sign, decrypt, encrypt, restoreKey, backupKey, getKeys, getKeyVersions, getKey, updateKey, deleteKey, importKey, rotateKey, createKey, } from "./operations.js";
|
||||
export { GetKeyAttestationOptionalParams, GetRandomBytesOptionalParams, UpdateKeyRotationPolicyOptionalParams, GetKeyRotationPolicyOptionalParams, RecoverDeletedKeyOptionalParams, PurgeDeletedKeyOptionalParams, GetDeletedKeyOptionalParams, GetDeletedKeysOptionalParams, ReleaseOptionalParams, UnwrapKeyOptionalParams, WrapKeyOptionalParams, VerifyOptionalParams, SignOptionalParams, DecryptOptionalParams, EncryptOptionalParams, RestoreKeyOptionalParams, BackupKeyOptionalParams, GetKeysOptionalParams, GetKeyVersionsOptionalParams, GetKeyOptionalParams, UpdateKeyOptionalParams, DeleteKeyOptionalParams, ImportKeyOptionalParams, RotateKeyOptionalParams, CreateKeyOptionalParams, } from "./options.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/index.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/index.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/api/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,eAAe,EACf,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,cAAc,EACd,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,OAAO,EACP,OAAO,EACP,UAAU,EACV,SAAS,EACT,OAAO,EACP,cAAc,EACd,MAAM,EACN,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,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,GACxB,MAAM,cAAc,CAAC"}
|
||||
34
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/index.js
generated
vendored
Normal file
34
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/index.js
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createKey = exports.rotateKey = exports.importKey = exports.deleteKey = exports.updateKey = exports.getKey = exports.getKeyVersions = exports.getKeys = exports.backupKey = exports.restoreKey = exports.encrypt = exports.decrypt = exports.sign = exports.verify = exports.wrapKey = exports.unwrapKey = exports.release = exports.getDeletedKeys = exports.getDeletedKey = exports.purgeDeletedKey = exports.recoverDeletedKey = exports.getKeyRotationPolicy = exports.updateKeyRotationPolicy = exports.getRandomBytes = exports.getKeyAttestation = exports.createKeyVault = void 0;
|
||||
var keyVaultContext_js_1 = require("./keyVaultContext.js");
|
||||
Object.defineProperty(exports, "createKeyVault", { enumerable: true, get: function () { return keyVaultContext_js_1.createKeyVault; } });
|
||||
var operations_js_1 = require("./operations.js");
|
||||
Object.defineProperty(exports, "getKeyAttestation", { enumerable: true, get: function () { return operations_js_1.getKeyAttestation; } });
|
||||
Object.defineProperty(exports, "getRandomBytes", { enumerable: true, get: function () { return operations_js_1.getRandomBytes; } });
|
||||
Object.defineProperty(exports, "updateKeyRotationPolicy", { enumerable: true, get: function () { return operations_js_1.updateKeyRotationPolicy; } });
|
||||
Object.defineProperty(exports, "getKeyRotationPolicy", { enumerable: true, get: function () { return operations_js_1.getKeyRotationPolicy; } });
|
||||
Object.defineProperty(exports, "recoverDeletedKey", { enumerable: true, get: function () { return operations_js_1.recoverDeletedKey; } });
|
||||
Object.defineProperty(exports, "purgeDeletedKey", { enumerable: true, get: function () { return operations_js_1.purgeDeletedKey; } });
|
||||
Object.defineProperty(exports, "getDeletedKey", { enumerable: true, get: function () { return operations_js_1.getDeletedKey; } });
|
||||
Object.defineProperty(exports, "getDeletedKeys", { enumerable: true, get: function () { return operations_js_1.getDeletedKeys; } });
|
||||
Object.defineProperty(exports, "release", { enumerable: true, get: function () { return operations_js_1.release; } });
|
||||
Object.defineProperty(exports, "unwrapKey", { enumerable: true, get: function () { return operations_js_1.unwrapKey; } });
|
||||
Object.defineProperty(exports, "wrapKey", { enumerable: true, get: function () { return operations_js_1.wrapKey; } });
|
||||
Object.defineProperty(exports, "verify", { enumerable: true, get: function () { return operations_js_1.verify; } });
|
||||
Object.defineProperty(exports, "sign", { enumerable: true, get: function () { return operations_js_1.sign; } });
|
||||
Object.defineProperty(exports, "decrypt", { enumerable: true, get: function () { return operations_js_1.decrypt; } });
|
||||
Object.defineProperty(exports, "encrypt", { enumerable: true, get: function () { return operations_js_1.encrypt; } });
|
||||
Object.defineProperty(exports, "restoreKey", { enumerable: true, get: function () { return operations_js_1.restoreKey; } });
|
||||
Object.defineProperty(exports, "backupKey", { enumerable: true, get: function () { return operations_js_1.backupKey; } });
|
||||
Object.defineProperty(exports, "getKeys", { enumerable: true, get: function () { return operations_js_1.getKeys; } });
|
||||
Object.defineProperty(exports, "getKeyVersions", { enumerable: true, get: function () { return operations_js_1.getKeyVersions; } });
|
||||
Object.defineProperty(exports, "getKey", { enumerable: true, get: function () { return operations_js_1.getKey; } });
|
||||
Object.defineProperty(exports, "updateKey", { enumerable: true, get: function () { return operations_js_1.updateKey; } });
|
||||
Object.defineProperty(exports, "deleteKey", { enumerable: true, get: function () { return operations_js_1.deleteKey; } });
|
||||
Object.defineProperty(exports, "importKey", { enumerable: true, get: function () { return operations_js_1.importKey; } });
|
||||
Object.defineProperty(exports, "rotateKey", { enumerable: true, get: function () { return operations_js_1.rotateKey; } });
|
||||
Object.defineProperty(exports, "createKey", { enumerable: true, get: function () { return operations_js_1.createKey; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/index.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/api/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,2DAI8B;AAH5B,oHAAA,cAAc,OAAA;AAIhB,iDA0ByB;AAzBvB,kHAAA,iBAAiB,OAAA;AACjB,+GAAA,cAAc,OAAA;AACd,wHAAA,uBAAuB,OAAA;AACvB,qHAAA,oBAAoB,OAAA;AACpB,kHAAA,iBAAiB,OAAA;AACjB,gHAAA,eAAe,OAAA;AACf,8GAAA,aAAa,OAAA;AACb,+GAAA,cAAc,OAAA;AACd,wGAAA,OAAO,OAAA;AACP,0GAAA,SAAS,OAAA;AACT,wGAAA,OAAO,OAAA;AACP,uGAAA,MAAM,OAAA;AACN,qGAAA,IAAI,OAAA;AACJ,wGAAA,OAAO,OAAA;AACP,wGAAA,OAAO,OAAA;AACP,2GAAA,UAAU,OAAA;AACV,0GAAA,SAAS,OAAA;AACT,wGAAA,OAAO,OAAA;AACP,+GAAA,cAAc,OAAA;AACd,uGAAA,MAAM,OAAA;AACN,0GAAA,SAAS,OAAA;AACT,0GAAA,SAAS,OAAA;AACT,0GAAA,SAAS,OAAA;AACT,0GAAA,SAAS,OAAA;AACT,0GAAA,SAAS,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n createKeyVault,\n KeyVaultContext,\n KeyVaultClientOptionalParams,\n} from \"./keyVaultContext.js\";\nexport {\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 \"./operations.js\";\nexport {\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 \"./options.js\";\n"]}
|
||||
17
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/keyVaultContext.d.ts
generated
vendored
Normal file
17
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/keyVaultContext.d.ts
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
import { Client, ClientOptions } from "@azure-rest/core-client";
|
||||
import { TokenCredential } from "@azure/core-auth";
|
||||
/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
|
||||
export interface KeyVaultContext extends Client {
|
||||
/** The API version to use for this operation. */
|
||||
/** Known values of {@link KnownVersions} that the service accepts. */
|
||||
apiVersion: string;
|
||||
}
|
||||
/** Optional parameters for the client. */
|
||||
export interface KeyVaultClientOptionalParams extends ClientOptions {
|
||||
/** The API version to use for this operation. */
|
||||
/** Known values of {@link KnownVersions} that the service accepts. */
|
||||
apiVersion?: string;
|
||||
}
|
||||
/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
|
||||
export declare function createKeyVault(endpointParam: string, credential: TokenCredential, options?: KeyVaultClientOptionalParams): KeyVaultContext;
|
||||
//# sourceMappingURL=keyVaultContext.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/keyVaultContext.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/keyVaultContext.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"keyVaultContext.d.ts","sourceRoot":"","sources":["../../../../src/generated/api/keyVaultContext.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAa,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD,qHAAqH;AACrH,MAAM,WAAW,eAAgB,SAAQ,MAAM;IAC7C,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,0CAA0C;AAC1C,MAAM,WAAW,4BAA6B,SAAQ,aAAa;IACjE,iDAAiD;IACjD,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qHAAqH;AACrH,wBAAgB,cAAc,CAC5B,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,4BAAiC,GACzC,eAAe,CAqCjB"}
|
||||
40
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/keyVaultContext.js
generated
vendored
Normal file
40
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/keyVaultContext.js
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createKeyVault = createKeyVault;
|
||||
const tslib_1 = require("tslib");
|
||||
const logger_js_1 = require("../logger.js");
|
||||
const core_client_1 = require("@azure-rest/core-client");
|
||||
/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
|
||||
function createKeyVault(endpointParam, credential, options = {}) {
|
||||
var _a, _b, _c, _d, _e, _f, _g, _h;
|
||||
const endpointUrl = (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUrl) !== null && _b !== void 0 ? _b : String(endpointParam);
|
||||
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
||||
const userAgentInfo = `azsdk-js-keyvault-keys/1.0.0-beta.1`;
|
||||
const userAgentPrefix = prefixFromOptions
|
||||
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
||||
: `azsdk-js-api ${userAgentInfo}`;
|
||||
const _j = Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix }, loggingOptions: { logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger_js_1.logger.info }, credentials: {
|
||||
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : [
|
||||
"https://vault.azure.net/.default",
|
||||
],
|
||||
} }), { apiVersion: _ } = _j, updatedOptions = tslib_1.__rest(_j, ["apiVersion"]);
|
||||
const clientContext = (0, core_client_1.getClient)(endpointUrl, credential, updatedOptions);
|
||||
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
||||
const apiVersion = (_h = options.apiVersion) !== null && _h !== void 0 ? _h : "7.6";
|
||||
clientContext.pipeline.addPolicy({
|
||||
name: "ClientApiVersionPolicy",
|
||||
sendRequest: (req, next) => {
|
||||
// Use the apiVersion defined in request url directly
|
||||
// Append one if there is no apiVersion and we have one at client options
|
||||
const url = new URL(req.url);
|
||||
if (!url.searchParams.get("api-version")) {
|
||||
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
||||
}
|
||||
return next(req);
|
||||
},
|
||||
});
|
||||
return Object.assign(Object.assign({}, clientContext), { apiVersion });
|
||||
}
|
||||
//# sourceMappingURL=keyVaultContext.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/keyVaultContext.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/keyVaultContext.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"keyVaultContext.js","sourceRoot":"","sources":["../../../../src/generated/api/keyVaultContext.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsBlC,wCAyCC;;AA7DD,4CAAsC;AAEtC,yDAA2E;AAiB3E,qHAAqH;AACrH,SAAgB,cAAc,CAC5B,aAAqB,EACrB,UAA2B,EAC3B,UAAwC,EAAE;;IAE1C,MAAM,WAAW,GACf,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,MAAM,CAAC,aAAa,CAAC,CAAC;IAC/D,MAAM,iBAAiB,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,0CAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,qCAAqC,CAAC;IAC5D,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,qCACD,OAAO,KACV,gBAAgB,EAAE,EAAE,eAAe,EAAE,EACrC,cAAc,EAAE,EAAE,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,kBAAM,CAAC,IAAI,EAAE,EACzE,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI;gBACrC,kCAAkC;aACnC;SACF,GACF,EATK,EAAE,UAAU,EAAE,CAAC,OASpB,EATyB,cAAc,sBAAlC,cAAoC,CASzC,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,KAAK,CAAC;IAC/C,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO,gCAAK,aAAa,KAAE,UAAU,GAAqB,CAAC;AAC7D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */\nexport interface KeyVaultContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n}\n\n/** Optional parameters for the client. */\nexport interface KeyVaultClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */\nexport function createKeyVault(\n endpointParam: string,\n credential: TokenCredential,\n options: KeyVaultClientOptionalParams = {},\n): KeyVaultContext {\n const endpointUrl =\n options.endpoint ?? options.baseUrl ?? String(endpointParam);\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-keyvault-keys/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\n \"https://vault.azure.net/.default\",\n ],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"7.6\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return { ...clientContext, apiVersion } as KeyVaultContext;\n}\n"]}
|
||||
106
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/operations.d.ts
generated
vendored
Normal file
106
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/operations.d.ts
generated
vendored
Normal file
@ -0,0 +1,106 @@
|
||||
import { KeyVaultContext as Client } from "./index.js";
|
||||
import { KeyCreateParameters, KeyBundle, KeyImportParameters, DeletedKeyBundle, KeyUpdateParameters, _KeyListResult, KeyItem, BackupKeyResult, KeyRestoreParameters, KeyOperationsParameters, KeyOperationResult, KeySignParameters, KeyVerifyParameters, KeyVerifyResult, KeyReleaseParameters, KeyReleaseResult, _DeletedKeyListResult, DeletedKeyItem, KeyRotationPolicy, GetRandomBytesRequest, RandomBytes } from "../models/models.js";
|
||||
import { GetKeyAttestationOptionalParams, GetRandomBytesOptionalParams, UpdateKeyRotationPolicyOptionalParams, GetKeyRotationPolicyOptionalParams, RecoverDeletedKeyOptionalParams, PurgeDeletedKeyOptionalParams, GetDeletedKeyOptionalParams, GetDeletedKeysOptionalParams, ReleaseOptionalParams, UnwrapKeyOptionalParams, WrapKeyOptionalParams, VerifyOptionalParams, SignOptionalParams, DecryptOptionalParams, EncryptOptionalParams, RestoreKeyOptionalParams, BackupKeyOptionalParams, GetKeysOptionalParams, GetKeyVersionsOptionalParams, GetKeyOptionalParams, UpdateKeyOptionalParams, DeleteKeyOptionalParams, ImportKeyOptionalParams, RotateKeyOptionalParams, CreateKeyOptionalParams } from "./options.js";
|
||||
import { PagedAsyncIterableIterator } from "../static-helpers/pagingHelpers.js";
|
||||
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
||||
export declare function _getKeyAttestationSend(context: Client, keyName: string, keyVersion: string, options?: GetKeyAttestationOptionalParams): StreamableMethod;
|
||||
export declare function _getKeyAttestationDeserialize(result: PathUncheckedResponse): Promise<KeyBundle>;
|
||||
/** The get key attestation operation returns the key along with its attestation blob. This operation requires the keys/get permission. */
|
||||
export declare function getKeyAttestation(context: Client, keyName: string, keyVersion: string, options?: GetKeyAttestationOptionalParams): Promise<KeyBundle>;
|
||||
export declare function _getRandomBytesSend(context: Client, parameters: GetRandomBytesRequest, options?: GetRandomBytesOptionalParams): StreamableMethod;
|
||||
export declare function _getRandomBytesDeserialize(result: PathUncheckedResponse): Promise<RandomBytes>;
|
||||
/** Get the requested number of bytes containing random values from a managed HSM. */
|
||||
export declare function getRandomBytes(context: Client, parameters: GetRandomBytesRequest, options?: GetRandomBytesOptionalParams): Promise<RandomBytes>;
|
||||
export declare function _updateKeyRotationPolicySend(context: Client, keyName: string, keyRotationPolicy: KeyRotationPolicy, options?: UpdateKeyRotationPolicyOptionalParams): StreamableMethod;
|
||||
export declare function _updateKeyRotationPolicyDeserialize(result: PathUncheckedResponse): Promise<KeyRotationPolicy>;
|
||||
/** Set specified members in the key policy. Leave others as undefined. This operation requires the keys/update permission. */
|
||||
export declare function updateKeyRotationPolicy(context: Client, keyName: string, keyRotationPolicy: KeyRotationPolicy, options?: UpdateKeyRotationPolicyOptionalParams): Promise<KeyRotationPolicy>;
|
||||
export declare function _getKeyRotationPolicySend(context: Client, keyName: string, options?: GetKeyRotationPolicyOptionalParams): StreamableMethod;
|
||||
export declare function _getKeyRotationPolicyDeserialize(result: PathUncheckedResponse): Promise<KeyRotationPolicy>;
|
||||
/** The GetKeyRotationPolicy operation returns the specified key policy resources in the specified key vault. This operation requires the keys/get permission. */
|
||||
export declare function getKeyRotationPolicy(context: Client, keyName: string, options?: GetKeyRotationPolicyOptionalParams): Promise<KeyRotationPolicy>;
|
||||
export declare function _recoverDeletedKeySend(context: Client, keyName: string, options?: RecoverDeletedKeyOptionalParams): StreamableMethod;
|
||||
export declare function _recoverDeletedKeyDeserialize(result: PathUncheckedResponse): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
export declare function recoverDeletedKey(context: Client, keyName: string, options?: RecoverDeletedKeyOptionalParams): Promise<KeyBundle>;
|
||||
export declare function _purgeDeletedKeySend(context: Client, keyName: string, options?: PurgeDeletedKeyOptionalParams): StreamableMethod;
|
||||
export declare function _purgeDeletedKeyDeserialize(result: PathUncheckedResponse): Promise<void>;
|
||||
/** 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. */
|
||||
export declare function purgeDeletedKey(context: Client, keyName: string, options?: PurgeDeletedKeyOptionalParams): Promise<void>;
|
||||
export declare function _getDeletedKeySend(context: Client, keyName: string, options?: GetDeletedKeyOptionalParams): StreamableMethod;
|
||||
export declare function _getDeletedKeyDeserialize(result: PathUncheckedResponse): Promise<DeletedKeyBundle>;
|
||||
/** 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. */
|
||||
export declare function getDeletedKey(context: Client, keyName: string, options?: GetDeletedKeyOptionalParams): Promise<DeletedKeyBundle>;
|
||||
export declare function _getDeletedKeysSend(context: Client, options?: GetDeletedKeysOptionalParams): StreamableMethod;
|
||||
export declare function _getDeletedKeysDeserialize(result: PathUncheckedResponse): Promise<_DeletedKeyListResult>;
|
||||
/** 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. */
|
||||
export declare function getDeletedKeys(context: Client, options?: GetDeletedKeysOptionalParams): PagedAsyncIterableIterator<DeletedKeyItem>;
|
||||
export declare function _releaseSend(context: Client, keyName: string, keyVersion: string, parameters: KeyReleaseParameters, options?: ReleaseOptionalParams): StreamableMethod;
|
||||
export declare function _releaseDeserialize(result: PathUncheckedResponse): Promise<KeyReleaseResult>;
|
||||
/** The release key operation is applicable to all key types. The target key must be marked exportable. This operation requires the keys/release permission. */
|
||||
export declare function release(context: Client, keyName: string, keyVersion: string, parameters: KeyReleaseParameters, options?: ReleaseOptionalParams): Promise<KeyReleaseResult>;
|
||||
export declare function _unwrapKeySend(context: Client, keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: UnwrapKeyOptionalParams): StreamableMethod;
|
||||
export declare function _unwrapKeyDeserialize(result: PathUncheckedResponse): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
export declare function unwrapKey(context: Client, keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: UnwrapKeyOptionalParams): Promise<KeyOperationResult>;
|
||||
export declare function _wrapKeySend(context: Client, keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: WrapKeyOptionalParams): StreamableMethod;
|
||||
export declare function _wrapKeyDeserialize(result: PathUncheckedResponse): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
export declare function wrapKey(context: Client, keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: WrapKeyOptionalParams): Promise<KeyOperationResult>;
|
||||
export declare function _verifySend(context: Client, keyName: string, keyVersion: string, parameters: KeyVerifyParameters, options?: VerifyOptionalParams): StreamableMethod;
|
||||
export declare function _verifyDeserialize(result: PathUncheckedResponse): Promise<KeyVerifyResult>;
|
||||
/** 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. */
|
||||
export declare function verify(context: Client, keyName: string, keyVersion: string, parameters: KeyVerifyParameters, options?: VerifyOptionalParams): Promise<KeyVerifyResult>;
|
||||
export declare function _signSend(context: Client, keyName: string, keyVersion: string, parameters: KeySignParameters, options?: SignOptionalParams): StreamableMethod;
|
||||
export declare function _signDeserialize(result: PathUncheckedResponse): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
export declare function sign(context: Client, keyName: string, keyVersion: string, parameters: KeySignParameters, options?: SignOptionalParams): Promise<KeyOperationResult>;
|
||||
export declare function _decryptSend(context: Client, keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: DecryptOptionalParams): StreamableMethod;
|
||||
export declare function _decryptDeserialize(result: PathUncheckedResponse): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
export declare function decrypt(context: Client, keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: DecryptOptionalParams): Promise<KeyOperationResult>;
|
||||
export declare function _encryptSend(context: Client, keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: EncryptOptionalParams): StreamableMethod;
|
||||
export declare function _encryptDeserialize(result: PathUncheckedResponse): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
export declare function encrypt(context: Client, keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: EncryptOptionalParams): Promise<KeyOperationResult>;
|
||||
export declare function _restoreKeySend(context: Client, parameters: KeyRestoreParameters, options?: RestoreKeyOptionalParams): StreamableMethod;
|
||||
export declare function _restoreKeyDeserialize(result: PathUncheckedResponse): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
export declare function restoreKey(context: Client, parameters: KeyRestoreParameters, options?: RestoreKeyOptionalParams): Promise<KeyBundle>;
|
||||
export declare function _backupKeySend(context: Client, keyName: string, options?: BackupKeyOptionalParams): StreamableMethod;
|
||||
export declare function _backupKeyDeserialize(result: PathUncheckedResponse): Promise<BackupKeyResult>;
|
||||
/** 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. */
|
||||
export declare function backupKey(context: Client, keyName: string, options?: BackupKeyOptionalParams): Promise<BackupKeyResult>;
|
||||
export declare function _getKeysSend(context: Client, options?: GetKeysOptionalParams): StreamableMethod;
|
||||
export declare function _getKeysDeserialize(result: PathUncheckedResponse): Promise<_KeyListResult>;
|
||||
/** 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. */
|
||||
export declare function getKeys(context: Client, options?: GetKeysOptionalParams): PagedAsyncIterableIterator<KeyItem>;
|
||||
export declare function _getKeyVersionsSend(context: Client, keyName: string, options?: GetKeyVersionsOptionalParams): StreamableMethod;
|
||||
export declare function _getKeyVersionsDeserialize(result: PathUncheckedResponse): Promise<_KeyListResult>;
|
||||
/** The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/list permission. */
|
||||
export declare function getKeyVersions(context: Client, keyName: string, options?: GetKeyVersionsOptionalParams): PagedAsyncIterableIterator<KeyItem>;
|
||||
export declare function _getKeySend(context: Client, keyName: string, keyVersion: string, options?: GetKeyOptionalParams): StreamableMethod;
|
||||
export declare function _getKeyDeserialize(result: PathUncheckedResponse): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
export declare function getKey(context: Client, keyName: string, keyVersion: string, options?: GetKeyOptionalParams): Promise<KeyBundle>;
|
||||
export declare function _updateKeySend(context: Client, keyName: string, keyVersion: string, parameters: KeyUpdateParameters, options?: UpdateKeyOptionalParams): StreamableMethod;
|
||||
export declare function _updateKeyDeserialize(result: PathUncheckedResponse): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
export declare function updateKey(context: Client, keyName: string, keyVersion: string, parameters: KeyUpdateParameters, options?: UpdateKeyOptionalParams): Promise<KeyBundle>;
|
||||
export declare function _deleteKeySend(context: Client, keyName: string, options?: DeleteKeyOptionalParams): StreamableMethod;
|
||||
export declare function _deleteKeyDeserialize(result: PathUncheckedResponse): Promise<DeletedKeyBundle>;
|
||||
/** 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. */
|
||||
export declare function deleteKey(context: Client, keyName: string, options?: DeleteKeyOptionalParams): Promise<DeletedKeyBundle>;
|
||||
export declare function _importKeySend(context: Client, keyName: string, parameters: KeyImportParameters, options?: ImportKeyOptionalParams): StreamableMethod;
|
||||
export declare function _importKeyDeserialize(result: PathUncheckedResponse): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
export declare function importKey(context: Client, keyName: string, parameters: KeyImportParameters, options?: ImportKeyOptionalParams): Promise<KeyBundle>;
|
||||
export declare function _rotateKeySend(context: Client, keyName: string, options?: RotateKeyOptionalParams): StreamableMethod;
|
||||
export declare function _rotateKeyDeserialize(result: PathUncheckedResponse): Promise<KeyBundle>;
|
||||
/** The operation will rotate the key based on the key policy. It requires the keys/rotate permission. */
|
||||
export declare function rotateKey(context: Client, keyName: string, options?: RotateKeyOptionalParams): Promise<KeyBundle>;
|
||||
export declare function _createKeySend(context: Client, keyName: string, parameters: KeyCreateParameters, options?: CreateKeyOptionalParams): StreamableMethod;
|
||||
export declare function _createKeyDeserialize(result: PathUncheckedResponse): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
export declare function createKey(context: Client, keyName: string, parameters: KeyCreateParameters, options?: CreateKeyOptionalParams): Promise<KeyBundle>;
|
||||
//# sourceMappingURL=operations.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/operations.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/operations.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
740
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/operations.js
generated
vendored
Normal file
740
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/operations.js
generated
vendored
Normal file
@ -0,0 +1,740 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports._getKeyAttestationSend = _getKeyAttestationSend;
|
||||
exports._getKeyAttestationDeserialize = _getKeyAttestationDeserialize;
|
||||
exports.getKeyAttestation = getKeyAttestation;
|
||||
exports._getRandomBytesSend = _getRandomBytesSend;
|
||||
exports._getRandomBytesDeserialize = _getRandomBytesDeserialize;
|
||||
exports.getRandomBytes = getRandomBytes;
|
||||
exports._updateKeyRotationPolicySend = _updateKeyRotationPolicySend;
|
||||
exports._updateKeyRotationPolicyDeserialize = _updateKeyRotationPolicyDeserialize;
|
||||
exports.updateKeyRotationPolicy = updateKeyRotationPolicy;
|
||||
exports._getKeyRotationPolicySend = _getKeyRotationPolicySend;
|
||||
exports._getKeyRotationPolicyDeserialize = _getKeyRotationPolicyDeserialize;
|
||||
exports.getKeyRotationPolicy = getKeyRotationPolicy;
|
||||
exports._recoverDeletedKeySend = _recoverDeletedKeySend;
|
||||
exports._recoverDeletedKeyDeserialize = _recoverDeletedKeyDeserialize;
|
||||
exports.recoverDeletedKey = recoverDeletedKey;
|
||||
exports._purgeDeletedKeySend = _purgeDeletedKeySend;
|
||||
exports._purgeDeletedKeyDeserialize = _purgeDeletedKeyDeserialize;
|
||||
exports.purgeDeletedKey = purgeDeletedKey;
|
||||
exports._getDeletedKeySend = _getDeletedKeySend;
|
||||
exports._getDeletedKeyDeserialize = _getDeletedKeyDeserialize;
|
||||
exports.getDeletedKey = getDeletedKey;
|
||||
exports._getDeletedKeysSend = _getDeletedKeysSend;
|
||||
exports._getDeletedKeysDeserialize = _getDeletedKeysDeserialize;
|
||||
exports.getDeletedKeys = getDeletedKeys;
|
||||
exports._releaseSend = _releaseSend;
|
||||
exports._releaseDeserialize = _releaseDeserialize;
|
||||
exports.release = release;
|
||||
exports._unwrapKeySend = _unwrapKeySend;
|
||||
exports._unwrapKeyDeserialize = _unwrapKeyDeserialize;
|
||||
exports.unwrapKey = unwrapKey;
|
||||
exports._wrapKeySend = _wrapKeySend;
|
||||
exports._wrapKeyDeserialize = _wrapKeyDeserialize;
|
||||
exports.wrapKey = wrapKey;
|
||||
exports._verifySend = _verifySend;
|
||||
exports._verifyDeserialize = _verifyDeserialize;
|
||||
exports.verify = verify;
|
||||
exports._signSend = _signSend;
|
||||
exports._signDeserialize = _signDeserialize;
|
||||
exports.sign = sign;
|
||||
exports._decryptSend = _decryptSend;
|
||||
exports._decryptDeserialize = _decryptDeserialize;
|
||||
exports.decrypt = decrypt;
|
||||
exports._encryptSend = _encryptSend;
|
||||
exports._encryptDeserialize = _encryptDeserialize;
|
||||
exports.encrypt = encrypt;
|
||||
exports._restoreKeySend = _restoreKeySend;
|
||||
exports._restoreKeyDeserialize = _restoreKeyDeserialize;
|
||||
exports.restoreKey = restoreKey;
|
||||
exports._backupKeySend = _backupKeySend;
|
||||
exports._backupKeyDeserialize = _backupKeyDeserialize;
|
||||
exports.backupKey = backupKey;
|
||||
exports._getKeysSend = _getKeysSend;
|
||||
exports._getKeysDeserialize = _getKeysDeserialize;
|
||||
exports.getKeys = getKeys;
|
||||
exports._getKeyVersionsSend = _getKeyVersionsSend;
|
||||
exports._getKeyVersionsDeserialize = _getKeyVersionsDeserialize;
|
||||
exports.getKeyVersions = getKeyVersions;
|
||||
exports._getKeySend = _getKeySend;
|
||||
exports._getKeyDeserialize = _getKeyDeserialize;
|
||||
exports.getKey = getKey;
|
||||
exports._updateKeySend = _updateKeySend;
|
||||
exports._updateKeyDeserialize = _updateKeyDeserialize;
|
||||
exports.updateKey = updateKey;
|
||||
exports._deleteKeySend = _deleteKeySend;
|
||||
exports._deleteKeyDeserialize = _deleteKeyDeserialize;
|
||||
exports.deleteKey = deleteKey;
|
||||
exports._importKeySend = _importKeySend;
|
||||
exports._importKeyDeserialize = _importKeyDeserialize;
|
||||
exports.importKey = importKey;
|
||||
exports._rotateKeySend = _rotateKeySend;
|
||||
exports._rotateKeyDeserialize = _rotateKeyDeserialize;
|
||||
exports.rotateKey = rotateKey;
|
||||
exports._createKeySend = _createKeySend;
|
||||
exports._createKeyDeserialize = _createKeyDeserialize;
|
||||
exports.createKey = createKey;
|
||||
const models_js_1 = require("../models/models.js");
|
||||
const pagingHelpers_js_1 = require("../static-helpers/pagingHelpers.js");
|
||||
const urlTemplate_js_1 = require("../static-helpers/urlTemplate.js");
|
||||
const core_client_1 = require("@azure-rest/core-client");
|
||||
function _getKeyAttestationSend(context, keyName, keyVersion, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/attestation{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _getKeyAttestationDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** The get key attestation operation returns the key along with its attestation blob. This operation requires the keys/get permission. */
|
||||
async function getKeyAttestation(context, keyName, keyVersion, options = { requestOptions: {} }) {
|
||||
const result = await _getKeyAttestationSend(context, keyName, keyVersion, options);
|
||||
return _getKeyAttestationDeserialize(result);
|
||||
}
|
||||
function _getRandomBytesSend(context, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/rng{?api%2Dversion}", {
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.getRandomBytesRequestSerializer)(parameters) }));
|
||||
}
|
||||
async function _getRandomBytesDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.randomBytesDeserializer)(result.body);
|
||||
}
|
||||
/** Get the requested number of bytes containing random values from a managed HSM. */
|
||||
async function getRandomBytes(context, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _getRandomBytesSend(context, parameters, options);
|
||||
return _getRandomBytesDeserialize(result);
|
||||
}
|
||||
function _updateKeyRotationPolicySend(context, keyName, keyRotationPolicy, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/rotationpolicy{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyRotationPolicySerializer)(keyRotationPolicy) }));
|
||||
}
|
||||
async function _updateKeyRotationPolicyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyRotationPolicyDeserializer)(result.body);
|
||||
}
|
||||
/** Set specified members in the key policy. Leave others as undefined. This operation requires the keys/update permission. */
|
||||
async function updateKeyRotationPolicy(context, keyName, keyRotationPolicy, options = { requestOptions: {} }) {
|
||||
const result = await _updateKeyRotationPolicySend(context, keyName, keyRotationPolicy, options);
|
||||
return _updateKeyRotationPolicyDeserialize(result);
|
||||
}
|
||||
function _getKeyRotationPolicySend(context, keyName, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/rotationpolicy{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _getKeyRotationPolicyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyRotationPolicyDeserializer)(result.body);
|
||||
}
|
||||
/** The GetKeyRotationPolicy operation returns the specified key policy resources in the specified key vault. This operation requires the keys/get permission. */
|
||||
async function getKeyRotationPolicy(context, keyName, options = { requestOptions: {} }) {
|
||||
const result = await _getKeyRotationPolicySend(context, keyName, options);
|
||||
return _getKeyRotationPolicyDeserialize(result);
|
||||
}
|
||||
function _recoverDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedkeys/{key-name}/recover{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _recoverDeletedKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function recoverDeletedKey(context, keyName, options = { requestOptions: {} }) {
|
||||
const result = await _recoverDeletedKeySend(context, keyName, options);
|
||||
return _recoverDeletedKeyDeserialize(result);
|
||||
}
|
||||
function _purgeDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedkeys/{key-name}{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _purgeDeletedKeyDeserialize(result) {
|
||||
const expectedStatuses = ["204"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return;
|
||||
}
|
||||
/** 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. */
|
||||
async function purgeDeletedKey(context, keyName, options = { requestOptions: {} }) {
|
||||
const result = await _purgeDeletedKeySend(context, keyName, options);
|
||||
return _purgeDeletedKeyDeserialize(result);
|
||||
}
|
||||
function _getDeletedKeySend(context, keyName, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedkeys/{key-name}{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _getDeletedKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.deletedKeyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function getDeletedKey(context, keyName, options = { requestOptions: {} }) {
|
||||
const result = await _getDeletedKeySend(context, keyName, options);
|
||||
return _getDeletedKeyDeserialize(result);
|
||||
}
|
||||
function _getDeletedKeysSend(context, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/deletedkeys{?api%2Dversion,maxresults}", {
|
||||
"api%2Dversion": context.apiVersion,
|
||||
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _getDeletedKeysDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1._deletedKeyListResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
function getDeletedKeys(context, options = { requestOptions: {} }) {
|
||||
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getDeletedKeysSend(context, options), _getDeletedKeysDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
||||
}
|
||||
function _releaseSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/release{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyReleaseParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _releaseDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyReleaseResultDeserializer)(result.body);
|
||||
}
|
||||
/** The release key operation is applicable to all key types. The target key must be marked exportable. This operation requires the keys/release permission. */
|
||||
async function release(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _releaseSend(context, keyName, keyVersion, parameters, options);
|
||||
return _releaseDeserialize(result);
|
||||
}
|
||||
function _unwrapKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/unwrapkey{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyOperationsParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _unwrapKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyOperationResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function unwrapKey(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _unwrapKeySend(context, keyName, keyVersion, parameters, options);
|
||||
return _unwrapKeyDeserialize(result);
|
||||
}
|
||||
function _wrapKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/wrapkey{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyOperationsParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _wrapKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyOperationResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function wrapKey(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _wrapKeySend(context, keyName, keyVersion, parameters, options);
|
||||
return _wrapKeyDeserialize(result);
|
||||
}
|
||||
function _verifySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/verify{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyVerifyParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _verifyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyVerifyResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function verify(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _verifySend(context, keyName, keyVersion, parameters, options);
|
||||
return _verifyDeserialize(result);
|
||||
}
|
||||
function _signSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/sign{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keySignParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _signDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyOperationResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function sign(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _signSend(context, keyName, keyVersion, parameters, options);
|
||||
return _signDeserialize(result);
|
||||
}
|
||||
function _decryptSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/decrypt{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyOperationsParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _decryptDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyOperationResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function decrypt(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _decryptSend(context, keyName, keyVersion, parameters, options);
|
||||
return _decryptDeserialize(result);
|
||||
}
|
||||
function _encryptSend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}/encrypt{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyOperationsParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _encryptDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyOperationResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function encrypt(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _encryptSend(context, keyName, keyVersion, parameters, options);
|
||||
return _encryptDeserialize(result);
|
||||
}
|
||||
function _restoreKeySend(context, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/restore{?api%2Dversion}", {
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyRestoreParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _restoreKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function restoreKey(context, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _restoreKeySend(context, parameters, options);
|
||||
return _restoreKeyDeserialize(result);
|
||||
}
|
||||
function _backupKeySend(context, keyName, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/backup{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _backupKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.backupKeyResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function backupKey(context, keyName, options = { requestOptions: {} }) {
|
||||
const result = await _backupKeySend(context, keyName, options);
|
||||
return _backupKeyDeserialize(result);
|
||||
}
|
||||
function _getKeysSend(context, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys{?api%2Dversion,maxresults}", {
|
||||
"api%2Dversion": context.apiVersion,
|
||||
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _getKeysDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1._keyListResultDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
function getKeys(context, options = { requestOptions: {} }) {
|
||||
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getKeysSend(context, options), _getKeysDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
||||
}
|
||||
function _getKeyVersionsSend(context, keyName, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/versions{?api%2Dversion,maxresults}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
maxresults: options === null || options === void 0 ? void 0 : options.maxresults,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _getKeyVersionsDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1._keyListResultDeserializer)(result.body);
|
||||
}
|
||||
/** The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/list permission. */
|
||||
function getKeyVersions(context, keyName, options = { requestOptions: {} }) {
|
||||
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _getKeyVersionsSend(context, keyName, options), _getKeyVersionsDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
||||
}
|
||||
function _getKeySend(context, keyName, keyVersion, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _getKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function getKey(context, keyName, keyVersion, options = { requestOptions: {} }) {
|
||||
const result = await _getKeySend(context, keyName, keyVersion, options);
|
||||
return _getKeyDeserialize(result);
|
||||
}
|
||||
function _updateKeySend(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/{key-version}{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"key-version": keyVersion,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyUpdateParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _updateKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function updateKey(context, keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _updateKeySend(context, keyName, keyVersion, parameters, options);
|
||||
return _updateKeyDeserialize(result);
|
||||
}
|
||||
function _deleteKeySend(context, keyName, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.delete(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _deleteKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.deletedKeyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function deleteKey(context, keyName, options = { requestOptions: {} }) {
|
||||
const result = await _deleteKeySend(context, keyName, options);
|
||||
return _deleteKeyDeserialize(result);
|
||||
}
|
||||
function _importKeySend(context, keyName, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyImportParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _importKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function importKey(context, keyName, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _importKeySend(context, keyName, parameters, options);
|
||||
return _importKeyDeserialize(result);
|
||||
}
|
||||
function _rotateKeySend(context, keyName, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/rotate{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
||||
}
|
||||
async function _rotateKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** The operation will rotate the key based on the key policy. It requires the keys/rotate permission. */
|
||||
async function rotateKey(context, keyName, options = { requestOptions: {} }) {
|
||||
const result = await _rotateKeySend(context, keyName, options);
|
||||
return _rotateKeyDeserialize(result);
|
||||
}
|
||||
function _createKeySend(context, keyName, parameters, options = { requestOptions: {} }) {
|
||||
var _a, _b;
|
||||
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/keys/{key-name}/create{?api%2Dversion}", {
|
||||
"key-name": keyName,
|
||||
"api%2Dversion": context.apiVersion,
|
||||
}, {
|
||||
allowReserved: (_a = options === null || options === void 0 ? void 0 : options.requestOptions) === null || _a === void 0 ? void 0 : _a.skipUrlEncoding,
|
||||
});
|
||||
return context
|
||||
.path(path)
|
||||
.post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.keyCreateParametersSerializer)(parameters) }));
|
||||
}
|
||||
async function _createKeyDeserialize(result) {
|
||||
const expectedStatuses = ["200"];
|
||||
if (!expectedStatuses.includes(result.status)) {
|
||||
const error = (0, core_client_1.createRestError)(result);
|
||||
error.details = (0, models_js_1.keyVaultErrorDeserializer)(result.body);
|
||||
throw error;
|
||||
}
|
||||
return (0, models_js_1.keyBundleDeserializer)(result.body);
|
||||
}
|
||||
/** 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. */
|
||||
async function createKey(context, keyName, parameters, options = { requestOptions: {} }) {
|
||||
const result = await _createKeySend(context, keyName, parameters, options);
|
||||
return _createKeyDeserialize(result);
|
||||
}
|
||||
//# sourceMappingURL=operations.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/operations.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/operations.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
83
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/options.d.ts
generated
vendored
Normal file
83
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/options.d.ts
generated
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
import { OperationOptions } from "@azure-rest/core-client";
|
||||
/** Optional parameters. */
|
||||
export interface GetKeyAttestationOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface GetRandomBytesOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface UpdateKeyRotationPolicyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface GetKeyRotationPolicyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface RecoverDeletedKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface PurgeDeletedKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface GetDeletedKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface GetDeletedKeysOptionalParams extends OperationOptions {
|
||||
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
|
||||
maxresults?: number;
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface ReleaseOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface UnwrapKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface WrapKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface VerifyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface SignOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface DecryptOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface EncryptOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface RestoreKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface BackupKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface GetKeysOptionalParams extends OperationOptions {
|
||||
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
|
||||
maxresults?: number;
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface GetKeyVersionsOptionalParams extends OperationOptions {
|
||||
/** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */
|
||||
maxresults?: number;
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface GetKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface UpdateKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface DeleteKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface ImportKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface RotateKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
/** Optional parameters. */
|
||||
export interface CreateKeyOptionalParams extends OperationOptions {
|
||||
}
|
||||
//# sourceMappingURL=options.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/options.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/options.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/generated/api/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,2BAA2B;AAC3B,MAAM,WAAW,+BAAgC,SAAQ,gBAAgB;CAAG;AAE5E,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;CAAG;AAEzE,2BAA2B;AAC3B,MAAM,WAAW,qCACf,SAAQ,gBAAgB;CAAG;AAE7B,2BAA2B;AAC3B,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;CAAG;AAE/E,2BAA2B;AAC3B,MAAM,WAAW,+BAAgC,SAAQ,gBAAgB;CAAG;AAE5E,2BAA2B;AAC3B,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;CAAG;AAE1E,2BAA2B;AAC3B,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;CAAG;AAExE,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;IACpE,gHAAgH;IAChH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,2BAA2B;AAC3B,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;CAAG;AAElE,2BAA2B;AAC3B,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;CAAG;AAEpE,2BAA2B;AAC3B,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;CAAG;AAElE,2BAA2B;AAC3B,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;CAAG;AAEjE,2BAA2B;AAC3B,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;CAAG;AAE/D,2BAA2B;AAC3B,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;CAAG;AAElE,2BAA2B;AAC3B,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;CAAG;AAElE,2BAA2B;AAC3B,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;CAAG;AAErE,2BAA2B;AAC3B,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;CAAG;AAEpE,2BAA2B;AAC3B,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,gHAAgH;IAChH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,2BAA2B;AAC3B,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;IACpE,gHAAgH;IAChH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,2BAA2B;AAC3B,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;CAAG;AAEjE,2BAA2B;AAC3B,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;CAAG;AAEpE,2BAA2B;AAC3B,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;CAAG;AAEpE,2BAA2B;AAC3B,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;CAAG;AAEpE,2BAA2B;AAC3B,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;CAAG;AAEpE,2BAA2B;AAC3B,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;CAAG"}
|
||||
5
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/options.js
generated
vendored
Normal file
5
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/options.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=options.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/options.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/api/options.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/generated/api/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface GetKeyAttestationOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetRandomBytesOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface UpdateKeyRotationPolicyOptionalParams\n extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetKeyRotationPolicyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface RecoverDeletedKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface PurgeDeletedKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetDeletedKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetDeletedKeysOptionalParams extends OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Optional parameters. */\nexport interface ReleaseOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface UnwrapKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface WrapKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface VerifyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface SignOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface DecryptOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface EncryptOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface RestoreKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface BackupKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface GetKeysOptionalParams extends OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Optional parameters. */\nexport interface GetKeyVersionsOptionalParams extends OperationOptions {\n /** Maximum number of results to return in a page. If not specified the service will return up to 25 results. */\n maxresults?: number;\n}\n\n/** Optional parameters. */\nexport interface GetKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface UpdateKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface DeleteKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface ImportKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface RotateKeyOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface CreateKeyOptionalParams extends OperationOptions {}\n"]}
|
||||
6
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/index.d.ts
generated
vendored
Normal file
6
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
||||
export { KeyVaultClient } from "./keyVaultClient.js";
|
||||
export { KeyCreateParameters, KnownJsonWebKeyType, JsonWebKeyType, KnownJsonWebKeyOperation, JsonWebKeyOperation, KeyAttributes, KnownDeletionRecoveryLevel, DeletionRecoveryLevel, KeyAttestation, KnownJsonWebKeyCurveName, JsonWebKeyCurveName, KeyReleasePolicy, KeyBundle, JsonWebKey, KeyVaultError, ErrorModel, KeyImportParameters, DeletedKeyBundle, KeyUpdateParameters, KeyItem, BackupKeyResult, KeyRestoreParameters, KeyOperationsParameters, KnownJsonWebKeyEncryptionAlgorithm, JsonWebKeyEncryptionAlgorithm, KeyOperationResult, KeySignParameters, KnownJsonWebKeySignatureAlgorithm, JsonWebKeySignatureAlgorithm, KeyVerifyParameters, KeyVerifyResult, KeyReleaseParameters, KnownKeyEncryptionAlgorithm, KeyEncryptionAlgorithm, KeyReleaseResult, DeletedKeyItem, KeyRotationPolicy, LifetimeActions, LifetimeActionsTrigger, LifetimeActionsType, KeyRotationPolicyAction, KeyRotationPolicyAttributes, GetRandomBytesRequest, RandomBytes, KnownVersions, } from "./models/index.js";
|
||||
export { KeyVaultClientOptionalParams, GetKeyAttestationOptionalParams, GetRandomBytesOptionalParams, UpdateKeyRotationPolicyOptionalParams, GetKeyRotationPolicyOptionalParams, RecoverDeletedKeyOptionalParams, PurgeDeletedKeyOptionalParams, GetDeletedKeyOptionalParams, GetDeletedKeysOptionalParams, ReleaseOptionalParams, UnwrapKeyOptionalParams, WrapKeyOptionalParams, VerifyOptionalParams, SignOptionalParams, DecryptOptionalParams, EncryptOptionalParams, RestoreKeyOptionalParams, BackupKeyOptionalParams, GetKeysOptionalParams, GetKeyVersionsOptionalParams, GetKeyOptionalParams, UpdateKeyOptionalParams, DeleteKeyOptionalParams, ImportKeyOptionalParams, RotateKeyOptionalParams, CreateKeyOptionalParams, } from "./api/index.js";
|
||||
export { PageSettings, ContinuablePage, PagedAsyncIterableIterator };
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/index.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/index.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,0BAA0B,EAC3B,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,kCAAkC,EAClC,6BAA6B,EAC7B,kBAAkB,EAClB,iBAAiB,EACjB,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,WAAW,EACX,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,4BAA4B,EAC5B,+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,GACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,0BAA0B,EAAE,CAAC"}
|
||||
17
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/index.js
generated
vendored
Normal file
17
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/index.js
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.KnownVersions = exports.KnownKeyEncryptionAlgorithm = exports.KnownJsonWebKeySignatureAlgorithm = exports.KnownJsonWebKeyEncryptionAlgorithm = exports.KnownJsonWebKeyCurveName = exports.KnownDeletionRecoveryLevel = exports.KnownJsonWebKeyOperation = exports.KnownJsonWebKeyType = exports.KeyVaultClient = void 0;
|
||||
var keyVaultClient_js_1 = require("./keyVaultClient.js");
|
||||
Object.defineProperty(exports, "KeyVaultClient", { enumerable: true, get: function () { return keyVaultClient_js_1.KeyVaultClient; } });
|
||||
var index_js_1 = require("./models/index.js");
|
||||
Object.defineProperty(exports, "KnownJsonWebKeyType", { enumerable: true, get: function () { return index_js_1.KnownJsonWebKeyType; } });
|
||||
Object.defineProperty(exports, "KnownJsonWebKeyOperation", { enumerable: true, get: function () { return index_js_1.KnownJsonWebKeyOperation; } });
|
||||
Object.defineProperty(exports, "KnownDeletionRecoveryLevel", { enumerable: true, get: function () { return index_js_1.KnownDeletionRecoveryLevel; } });
|
||||
Object.defineProperty(exports, "KnownJsonWebKeyCurveName", { enumerable: true, get: function () { return index_js_1.KnownJsonWebKeyCurveName; } });
|
||||
Object.defineProperty(exports, "KnownJsonWebKeyEncryptionAlgorithm", { enumerable: true, get: function () { return index_js_1.KnownJsonWebKeyEncryptionAlgorithm; } });
|
||||
Object.defineProperty(exports, "KnownJsonWebKeySignatureAlgorithm", { enumerable: true, get: function () { return index_js_1.KnownJsonWebKeySignatureAlgorithm; } });
|
||||
Object.defineProperty(exports, "KnownKeyEncryptionAlgorithm", { enumerable: true, get: function () { return index_js_1.KnownKeyEncryptionAlgorithm; } });
|
||||
Object.defineProperty(exports, "KnownVersions", { enumerable: true, get: function () { return index_js_1.KnownVersions; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/index.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAQlC,yDAAqD;AAA5C,mHAAA,cAAc,OAAA;AACvB,8CA8C2B;AA5CzB,+GAAA,mBAAmB,OAAA;AAEnB,oHAAA,wBAAwB,OAAA;AAGxB,sHAAA,0BAA0B,OAAA;AAG1B,oHAAA,wBAAwB,OAAA;AAcxB,8HAAA,kCAAkC,OAAA;AAIlC,6HAAA,iCAAiC,OAAA;AAKjC,uHAAA,2BAA2B,OAAA;AAY3B,yGAAA,aAAa,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { KeyVaultClient } from \"./keyVaultClient.js\";\nexport {\n KeyCreateParameters,\n KnownJsonWebKeyType,\n JsonWebKeyType,\n KnownJsonWebKeyOperation,\n JsonWebKeyOperation,\n KeyAttributes,\n KnownDeletionRecoveryLevel,\n DeletionRecoveryLevel,\n KeyAttestation,\n KnownJsonWebKeyCurveName,\n JsonWebKeyCurveName,\n KeyReleasePolicy,\n KeyBundle,\n JsonWebKey,\n KeyVaultError,\n ErrorModel,\n KeyImportParameters,\n DeletedKeyBundle,\n KeyUpdateParameters,\n KeyItem,\n BackupKeyResult,\n KeyRestoreParameters,\n KeyOperationsParameters,\n KnownJsonWebKeyEncryptionAlgorithm,\n JsonWebKeyEncryptionAlgorithm,\n KeyOperationResult,\n KeySignParameters,\n KnownJsonWebKeySignatureAlgorithm,\n JsonWebKeySignatureAlgorithm,\n KeyVerifyParameters,\n KeyVerifyResult,\n KeyReleaseParameters,\n KnownKeyEncryptionAlgorithm,\n KeyEncryptionAlgorithm,\n KeyReleaseResult,\n DeletedKeyItem,\n KeyRotationPolicy,\n LifetimeActions,\n LifetimeActionsTrigger,\n LifetimeActionsType,\n KeyRotationPolicyAction,\n KeyRotationPolicyAttributes,\n GetRandomBytesRequest,\n RandomBytes,\n KnownVersions,\n} from \"./models/index.js\";\nexport {\n KeyVaultClientOptionalParams,\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/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\n"]}
|
||||
65
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/keyVaultClient.d.ts
generated
vendored
Normal file
65
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/keyVaultClient.d.ts
generated
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
import { KeyVaultClientOptionalParams } from "./api/index.js";
|
||||
import { KeyCreateParameters, KeyBundle, KeyImportParameters, DeletedKeyBundle, KeyUpdateParameters, KeyItem, BackupKeyResult, KeyRestoreParameters, KeyOperationsParameters, KeyOperationResult, KeySignParameters, KeyVerifyParameters, KeyVerifyResult, KeyReleaseParameters, KeyReleaseResult, DeletedKeyItem, KeyRotationPolicy, GetRandomBytesRequest, RandomBytes } from "./models/models.js";
|
||||
import { GetKeyAttestationOptionalParams, GetRandomBytesOptionalParams, UpdateKeyRotationPolicyOptionalParams, GetKeyRotationPolicyOptionalParams, RecoverDeletedKeyOptionalParams, PurgeDeletedKeyOptionalParams, GetDeletedKeyOptionalParams, GetDeletedKeysOptionalParams, ReleaseOptionalParams, UnwrapKeyOptionalParams, WrapKeyOptionalParams, VerifyOptionalParams, SignOptionalParams, DecryptOptionalParams, EncryptOptionalParams, RestoreKeyOptionalParams, BackupKeyOptionalParams, GetKeysOptionalParams, GetKeyVersionsOptionalParams, GetKeyOptionalParams, UpdateKeyOptionalParams, DeleteKeyOptionalParams, ImportKeyOptionalParams, RotateKeyOptionalParams, CreateKeyOptionalParams } from "./api/options.js";
|
||||
import { PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
||||
import { Pipeline } from "@azure/core-rest-pipeline";
|
||||
import { TokenCredential } from "@azure/core-auth";
|
||||
export { KeyVaultClientOptionalParams } from "./api/keyVaultContext.js";
|
||||
export declare class KeyVaultClient {
|
||||
private _client;
|
||||
/** The pipeline used by this client to make requests */
|
||||
readonly pipeline: Pipeline;
|
||||
/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
|
||||
constructor(endpointParam: string, credential: TokenCredential, options?: KeyVaultClientOptionalParams);
|
||||
/** The get key attestation operation returns the key along with its attestation blob. This operation requires the keys/get permission. */
|
||||
getKeyAttestation(keyName: string, keyVersion: string, options?: GetKeyAttestationOptionalParams): Promise<KeyBundle>;
|
||||
/** Get the requested number of bytes containing random values from a managed HSM. */
|
||||
getRandomBytes(parameters: GetRandomBytesRequest, options?: GetRandomBytesOptionalParams): Promise<RandomBytes>;
|
||||
/** Set specified members in the key policy. Leave others as undefined. This operation requires the keys/update permission. */
|
||||
updateKeyRotationPolicy(keyName: string, keyRotationPolicy: KeyRotationPolicy, options?: UpdateKeyRotationPolicyOptionalParams): Promise<KeyRotationPolicy>;
|
||||
/** The GetKeyRotationPolicy operation returns the specified key policy resources in the specified key vault. This operation requires the keys/get permission. */
|
||||
getKeyRotationPolicy(keyName: string, options?: GetKeyRotationPolicyOptionalParams): Promise<KeyRotationPolicy>;
|
||||
/** 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. */
|
||||
recoverDeletedKey(keyName: string, options?: RecoverDeletedKeyOptionalParams): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
purgeDeletedKey(keyName: string, options?: PurgeDeletedKeyOptionalParams): Promise<void>;
|
||||
/** 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. */
|
||||
getDeletedKey(keyName: string, options?: GetDeletedKeyOptionalParams): Promise<DeletedKeyBundle>;
|
||||
/** 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. */
|
||||
getDeletedKeys(options?: GetDeletedKeysOptionalParams): PagedAsyncIterableIterator<DeletedKeyItem>;
|
||||
/** The release key operation is applicable to all key types. The target key must be marked exportable. This operation requires the keys/release permission. */
|
||||
release(keyName: string, keyVersion: string, parameters: KeyReleaseParameters, options?: ReleaseOptionalParams): Promise<KeyReleaseResult>;
|
||||
/** 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. */
|
||||
unwrapKey(keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: UnwrapKeyOptionalParams): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
wrapKey(keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: WrapKeyOptionalParams): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
verify(keyName: string, keyVersion: string, parameters: KeyVerifyParameters, options?: VerifyOptionalParams): Promise<KeyVerifyResult>;
|
||||
/** 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. */
|
||||
sign(keyName: string, keyVersion: string, parameters: KeySignParameters, options?: SignOptionalParams): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
decrypt(keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: DecryptOptionalParams): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
encrypt(keyName: string, keyVersion: string, parameters: KeyOperationsParameters, options?: EncryptOptionalParams): Promise<KeyOperationResult>;
|
||||
/** 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. */
|
||||
restoreKey(parameters: KeyRestoreParameters, options?: RestoreKeyOptionalParams): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
backupKey(keyName: string, options?: BackupKeyOptionalParams): Promise<BackupKeyResult>;
|
||||
/** 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. */
|
||||
getKeys(options?: GetKeysOptionalParams): PagedAsyncIterableIterator<KeyItem>;
|
||||
/** The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/list permission. */
|
||||
getKeyVersions(keyName: string, options?: GetKeyVersionsOptionalParams): PagedAsyncIterableIterator<KeyItem>;
|
||||
/** 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. */
|
||||
getKey(keyName: string, keyVersion: string, options?: GetKeyOptionalParams): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
updateKey(keyName: string, keyVersion: string, parameters: KeyUpdateParameters, options?: UpdateKeyOptionalParams): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
deleteKey(keyName: string, options?: DeleteKeyOptionalParams): Promise<DeletedKeyBundle>;
|
||||
/** 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. */
|
||||
importKey(keyName: string, parameters: KeyImportParameters, options?: ImportKeyOptionalParams): Promise<KeyBundle>;
|
||||
/** The operation will rotate the key based on the key policy. It requires the keys/rotate permission. */
|
||||
rotateKey(keyName: string, options?: RotateKeyOptionalParams): Promise<KeyBundle>;
|
||||
/** 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. */
|
||||
createKey(keyName: string, parameters: KeyCreateParameters, options?: CreateKeyOptionalParams): Promise<KeyBundle>;
|
||||
}
|
||||
//# sourceMappingURL=keyVaultClient.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/keyVaultClient.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/keyVaultClient.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"keyVaultClient.d.ts","sourceRoot":"","sources":["../../../src/generated/keyVaultClient.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,4BAA4B,EAC7B,MAAM,gBAAgB,CAAC;AACxB,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;AAEnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAExE,qBAAa,cAAc;IACzB,OAAO,CAAC,OAAO,CAAkB;IACjC,wDAAwD;IACxD,SAAgB,QAAQ,EAAE,QAAQ,CAAC;IAEnC,qHAAqH;gBAEnH,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,4BAAiC;IAa5C,0IAA0I;IAC1I,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,+BAAwD,GAChE,OAAO,CAAC,SAAS,CAAC;IAIrB,qFAAqF;IACrF,cAAc,CACZ,UAAU,EAAE,qBAAqB,EACjC,OAAO,GAAE,4BAAqD,GAC7D,OAAO,CAAC,WAAW,CAAC;IAIvB,8HAA8H;IAC9H,uBAAuB,CACrB,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,GAAE,qCAA8D,GACtE,OAAO,CAAC,iBAAiB,CAAC;IAS7B,iKAAiK;IACjK,oBAAoB,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,kCAA2D,GACnE,OAAO,CAAC,iBAAiB,CAAC;IAI7B,+WAA+W;IAC/W,iBAAiB,CACf,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,+BAAwD,GAChE,OAAO,CAAC,SAAS,CAAC;IAIrB,+PAA+P;IAC/P,eAAe,CACb,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,6BAAsD,GAC9D,OAAO,CAAC,IAAI,CAAC;IAIhB,2PAA2P;IAC3P,aAAa,CACX,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,2BAAoD,GAC5D,OAAO,CAAC,gBAAgB,CAAC;IAI5B,gbAAgb;IAChb,cAAc,CACZ,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,cAAc,CAAC;IAI7C,+JAA+J;IAC/J,OAAO,CACL,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,oBAAoB,EAChC,OAAO,GAAE,qBAA8C,GACtD,OAAO,CAAC,gBAAgB,CAAC;IAI5B,yVAAyV;IACzV,SAAS,CACP,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,uBAAuB,EACnC,OAAO,GAAE,uBAAgD,GACxD,OAAO,CAAC,kBAAkB,CAAC;IAI9B,0hBAA0hB;IAC1hB,OAAO,CACL,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,uBAAuB,EACnC,OAAO,GAAE,qBAA8C,GACtD,OAAO,CAAC,kBAAkB,CAAC;IAI9B,8aAA8a;IAC9a,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,mBAAmB,EAC/B,OAAO,GAAE,oBAA6C,GACrD,OAAO,CAAC,eAAe,CAAC;IAI3B,8MAA8M;IAC9M,IAAI,CACF,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,iBAAiB,EAC7B,OAAO,GAAE,kBAA2C,GACnD,OAAO,CAAC,kBAAkB,CAAC;IAI9B,+uBAA+uB;IAC/uB,OAAO,CACL,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,uBAAuB,EACnC,OAAO,GAAE,qBAA8C,GACtD,OAAO,CAAC,kBAAkB,CAAC;IAI9B,sqBAAsqB;IACtqB,OAAO,CACL,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,uBAAuB,EACnC,OAAO,GAAE,qBAA8C,GACtD,OAAO,CAAC,kBAAkB,CAAC;IAI9B,45BAA45B;IAC55B,UAAU,CACR,UAAU,EAAE,oBAAoB,EAChC,OAAO,GAAE,wBAAiD,GACzD,OAAO,CAAC,SAAS,CAAC;IAIrB,o7BAAo7B;IACp7B,SAAS,CACP,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAAgD,GACxD,OAAO,CAAC,eAAe,CAAC;IAI3B,wXAAwX;IACxX,OAAO,CACL,OAAO,GAAE,qBAA8C,GACtD,0BAA0B,CAAC,OAAO,CAAC;IAItC,oIAAoI;IACpI,cAAc,CACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4BAAqD,GAC7D,0BAA0B,CAAC,OAAO,CAAC;IAItC,kMAAkM;IAClM,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,oBAA6C,GACrD,OAAO,CAAC,SAAS,CAAC;IAIrB,+MAA+M;IAC/M,SAAS,CACP,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,mBAAmB,EAC/B,OAAO,GAAE,uBAAgD,GACxD,OAAO,CAAC,SAAS,CAAC;IAIrB,mTAAmT;IACnT,SAAS,CACP,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAAgD,GACxD,OAAO,CAAC,gBAAgB,CAAC;IAI5B,kOAAkO;IAClO,SAAS,CACP,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,mBAAmB,EAC/B,OAAO,GAAE,uBAAgD,GACxD,OAAO,CAAC,SAAS,CAAC;IAIrB,yGAAyG;IACzG,SAAS,CACP,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,uBAAgD,GACxD,OAAO,CAAC,SAAS,CAAC;IAIrB,iNAAiN;IACjN,SAAS,CACP,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,mBAAmB,EAC/B,OAAO,GAAE,uBAAgD,GACxD,OAAO,CAAC,SAAS,CAAC;CAGtB"}
|
||||
121
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/keyVaultClient.js
generated
vendored
Normal file
121
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/keyVaultClient.js
generated
vendored
Normal file
@ -0,0 +1,121 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.KeyVaultClient = void 0;
|
||||
const index_js_1 = require("./api/index.js");
|
||||
const operations_js_1 = require("./api/operations.js");
|
||||
class KeyVaultClient {
|
||||
/** The key vault client performs cryptographic key operations and vault operations against the Key Vault service. */
|
||||
constructor(endpointParam, credential, options = {}) {
|
||||
var _a;
|
||||
const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
|
||||
const userAgentPrefix = prefixFromOptions
|
||||
? `${prefixFromOptions} azsdk-js-client`
|
||||
: `azsdk-js-client`;
|
||||
this._client = (0, index_js_1.createKeyVault)(endpointParam, credential, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
|
||||
this.pipeline = this._client.pipeline;
|
||||
}
|
||||
/** The get key attestation operation returns the key along with its attestation blob. This operation requires the keys/get permission. */
|
||||
getKeyAttestation(keyName, keyVersion, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.getKeyAttestation)(this._client, keyName, keyVersion, options);
|
||||
}
|
||||
/** Get the requested number of bytes containing random values from a managed HSM. */
|
||||
getRandomBytes(parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.getRandomBytes)(this._client, parameters, options);
|
||||
}
|
||||
/** Set specified members in the key policy. Leave others as undefined. This operation requires the keys/update permission. */
|
||||
updateKeyRotationPolicy(keyName, keyRotationPolicy, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.updateKeyRotationPolicy)(this._client, keyName, keyRotationPolicy, options);
|
||||
}
|
||||
/** The GetKeyRotationPolicy operation returns the specified key policy resources in the specified key vault. This operation requires the keys/get permission. */
|
||||
getKeyRotationPolicy(keyName, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.getKeyRotationPolicy)(this._client, keyName, options);
|
||||
}
|
||||
/** 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. */
|
||||
recoverDeletedKey(keyName, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.recoverDeletedKey)(this._client, keyName, options);
|
||||
}
|
||||
/** 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. */
|
||||
purgeDeletedKey(keyName, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.purgeDeletedKey)(this._client, keyName, options);
|
||||
}
|
||||
/** 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. */
|
||||
getDeletedKey(keyName, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.getDeletedKey)(this._client, keyName, options);
|
||||
}
|
||||
/** 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. */
|
||||
getDeletedKeys(options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.getDeletedKeys)(this._client, options);
|
||||
}
|
||||
/** The release key operation is applicable to all key types. The target key must be marked exportable. This operation requires the keys/release permission. */
|
||||
release(keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.release)(this._client, keyName, keyVersion, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
unwrapKey(keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.unwrapKey)(this._client, keyName, keyVersion, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
wrapKey(keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.wrapKey)(this._client, keyName, keyVersion, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
verify(keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.verify)(this._client, keyName, keyVersion, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
sign(keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.sign)(this._client, keyName, keyVersion, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
decrypt(keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.decrypt)(this._client, keyName, keyVersion, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
encrypt(keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.encrypt)(this._client, keyName, keyVersion, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
restoreKey(parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.restoreKey)(this._client, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
backupKey(keyName, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.backupKey)(this._client, keyName, options);
|
||||
}
|
||||
/** 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. */
|
||||
getKeys(options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.getKeys)(this._client, options);
|
||||
}
|
||||
/** The full key identifier, attributes, and tags are provided in the response. This operation requires the keys/list permission. */
|
||||
getKeyVersions(keyName, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.getKeyVersions)(this._client, keyName, options);
|
||||
}
|
||||
/** 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. */
|
||||
getKey(keyName, keyVersion, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.getKey)(this._client, keyName, keyVersion, options);
|
||||
}
|
||||
/** 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. */
|
||||
updateKey(keyName, keyVersion, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.updateKey)(this._client, keyName, keyVersion, parameters, options);
|
||||
}
|
||||
/** 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. */
|
||||
deleteKey(keyName, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.deleteKey)(this._client, keyName, options);
|
||||
}
|
||||
/** 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. */
|
||||
importKey(keyName, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.importKey)(this._client, keyName, parameters, options);
|
||||
}
|
||||
/** The operation will rotate the key based on the key policy. It requires the keys/rotate permission. */
|
||||
rotateKey(keyName, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.rotateKey)(this._client, keyName, options);
|
||||
}
|
||||
/** 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. */
|
||||
createKey(keyName, parameters, options = { requestOptions: {} }) {
|
||||
return (0, operations_js_1.createKey)(this._client, keyName, parameters, options);
|
||||
}
|
||||
}
|
||||
exports.KeyVaultClient = KeyVaultClient;
|
||||
//# sourceMappingURL=keyVaultClient.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/keyVaultClient.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/keyVaultClient.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/logger.d.ts
generated
vendored
Normal file
2
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/logger.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export declare const logger: import("@azure/logger").AzureLogger;
|
||||
//# sourceMappingURL=logger.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/logger.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/logger.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/generated/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,qCAAsC,CAAC"}
|
||||
8
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/logger.js
generated
vendored
Normal file
8
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/logger.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.logger = void 0;
|
||||
const logger_1 = require("@azure/logger");
|
||||
exports.logger = (0, logger_1.createClientLogger)("keyvault-keys");
|
||||
//# sourceMappingURL=logger.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/logger.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/logger.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/generated/logger.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,0CAAmD;AACtC,QAAA,MAAM,GAAG,IAAA,2BAAkB,EAAC,eAAe,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"keyvault-keys\");\n"]}
|
||||
2
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/index.d.ts
generated
vendored
Normal file
2
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export { KeyCreateParameters, KnownJsonWebKeyType, JsonWebKeyType, KnownJsonWebKeyOperation, JsonWebKeyOperation, KeyAttributes, KnownDeletionRecoveryLevel, DeletionRecoveryLevel, KeyAttestation, KnownJsonWebKeyCurveName, JsonWebKeyCurveName, KeyReleasePolicy, KeyBundle, JsonWebKey, KeyVaultError, ErrorModel, KeyImportParameters, DeletedKeyBundle, KeyUpdateParameters, KeyItem, BackupKeyResult, KeyRestoreParameters, KeyOperationsParameters, KnownJsonWebKeyEncryptionAlgorithm, JsonWebKeyEncryptionAlgorithm, KeyOperationResult, KeySignParameters, KnownJsonWebKeySignatureAlgorithm, JsonWebKeySignatureAlgorithm, KeyVerifyParameters, KeyVerifyResult, KeyReleaseParameters, KnownKeyEncryptionAlgorithm, KeyEncryptionAlgorithm, KeyReleaseResult, DeletedKeyItem, KeyRotationPolicy, LifetimeActions, LifetimeActionsTrigger, LifetimeActionsType, KeyRotationPolicyAction, KeyRotationPolicyAttributes, GetRandomBytesRequest, RandomBytes, KnownVersions, } from "./models.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/index.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/index.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC1B,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,kCAAkC,EAClC,6BAA6B,EAC7B,kBAAkB,EAClB,iBAAiB,EACjB,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,WAAW,EACX,aAAa,GACd,MAAM,aAAa,CAAC"}
|
||||
15
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/index.js
generated
vendored
Normal file
15
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.KnownVersions = exports.KnownKeyEncryptionAlgorithm = exports.KnownJsonWebKeySignatureAlgorithm = exports.KnownJsonWebKeyEncryptionAlgorithm = exports.KnownJsonWebKeyCurveName = exports.KnownDeletionRecoveryLevel = exports.KnownJsonWebKeyOperation = exports.KnownJsonWebKeyType = void 0;
|
||||
var models_js_1 = require("./models.js");
|
||||
Object.defineProperty(exports, "KnownJsonWebKeyType", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeyType; } });
|
||||
Object.defineProperty(exports, "KnownJsonWebKeyOperation", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeyOperation; } });
|
||||
Object.defineProperty(exports, "KnownDeletionRecoveryLevel", { enumerable: true, get: function () { return models_js_1.KnownDeletionRecoveryLevel; } });
|
||||
Object.defineProperty(exports, "KnownJsonWebKeyCurveName", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeyCurveName; } });
|
||||
Object.defineProperty(exports, "KnownJsonWebKeyEncryptionAlgorithm", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeyEncryptionAlgorithm; } });
|
||||
Object.defineProperty(exports, "KnownJsonWebKeySignatureAlgorithm", { enumerable: true, get: function () { return models_js_1.KnownJsonWebKeySignatureAlgorithm; } });
|
||||
Object.defineProperty(exports, "KnownKeyEncryptionAlgorithm", { enumerable: true, get: function () { return models_js_1.KnownKeyEncryptionAlgorithm; } });
|
||||
Object.defineProperty(exports, "KnownVersions", { enumerable: true, get: function () { return models_js_1.KnownVersions; } });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/index.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/models/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,yCA8CqB;AA5CnB,gHAAA,mBAAmB,OAAA;AAEnB,qHAAA,wBAAwB,OAAA;AAGxB,uHAAA,0BAA0B,OAAA;AAG1B,qHAAA,wBAAwB,OAAA;AAcxB,+HAAA,kCAAkC,OAAA;AAIlC,8HAAA,iCAAiC,OAAA;AAKjC,wHAAA,2BAA2B,OAAA;AAY3B,0GAAA,aAAa,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n KeyCreateParameters,\n KnownJsonWebKeyType,\n JsonWebKeyType,\n KnownJsonWebKeyOperation,\n JsonWebKeyOperation,\n KeyAttributes,\n KnownDeletionRecoveryLevel,\n DeletionRecoveryLevel,\n KeyAttestation,\n KnownJsonWebKeyCurveName,\n JsonWebKeyCurveName,\n KeyReleasePolicy,\n KeyBundle,\n JsonWebKey,\n KeyVaultError,\n ErrorModel,\n KeyImportParameters,\n DeletedKeyBundle,\n KeyUpdateParameters,\n KeyItem,\n BackupKeyResult,\n KeyRestoreParameters,\n KeyOperationsParameters,\n KnownJsonWebKeyEncryptionAlgorithm,\n JsonWebKeyEncryptionAlgorithm,\n KeyOperationResult,\n KeySignParameters,\n KnownJsonWebKeySignatureAlgorithm,\n JsonWebKeySignatureAlgorithm,\n KeyVerifyParameters,\n KeyVerifyResult,\n KeyReleaseParameters,\n KnownKeyEncryptionAlgorithm,\n KeyEncryptionAlgorithm,\n KeyReleaseResult,\n DeletedKeyItem,\n KeyRotationPolicy,\n LifetimeActions,\n LifetimeActionsTrigger,\n LifetimeActionsType,\n KeyRotationPolicyAction,\n KeyRotationPolicyAttributes,\n GetRandomBytesRequest,\n RandomBytes,\n KnownVersions,\n} from \"./models.js\";\n"]}
|
||||
635
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/models.d.ts
generated
vendored
Normal file
635
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/models.d.ts
generated
vendored
Normal file
@ -0,0 +1,635 @@
|
||||
/** The key create parameters. */
|
||||
export interface KeyCreateParameters {
|
||||
/** The type of key to create. For valid values, see JsonWebKeyType. */
|
||||
kty: JsonWebKeyType;
|
||||
/** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */
|
||||
keySize?: number;
|
||||
/** The public exponent for a RSA key. */
|
||||
publicExponent?: number;
|
||||
/** Json web key operations. For more information on possible key operations, see JsonWebKeyOperation. */
|
||||
keyOps?: JsonWebKeyOperation[];
|
||||
/** The attributes of a key managed by the key vault service. */
|
||||
keyAttributes?: KeyAttributes;
|
||||
/** Application specific metadata in the form of key-value pairs. */
|
||||
tags?: Record<string, string>;
|
||||
/** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */
|
||||
curve?: JsonWebKeyCurveName;
|
||||
/** The policy rules under which the key can be exported. */
|
||||
releasePolicy?: KeyReleasePolicy;
|
||||
}
|
||||
export declare function keyCreateParametersSerializer(item: KeyCreateParameters): any;
|
||||
/** JsonWebKey Key Type (kty), as defined in https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40. */
|
||||
export declare enum KnownJsonWebKeyType {
|
||||
/** Elliptic Curve. */
|
||||
EC = "EC",
|
||||
/** Elliptic Curve with a private key which is stored in the HSM. */
|
||||
ECHSM = "EC-HSM",
|
||||
/** RSA (https://tools.ietf.org/html/rfc3447) */
|
||||
RSA = "RSA",
|
||||
/** RSA with a private key which is stored in the HSM. */
|
||||
RSAHSM = "RSA-HSM",
|
||||
/** Octet sequence (used to represent symmetric keys) */
|
||||
Oct = "oct",
|
||||
/** Octet sequence (used to represent symmetric keys) which is stored the HSM. */
|
||||
OctHSM = "oct-HSM"
|
||||
}
|
||||
/**
|
||||
* JsonWebKey Key Type (kty), as defined in https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40. \
|
||||
* {@link KnownJsonWebKeyType} can be used interchangeably with JsonWebKeyType,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **EC**: Elliptic Curve. \
|
||||
* **EC-HSM**: Elliptic Curve with a private key which is stored in the HSM. \
|
||||
* **RSA**: RSA (https:\//tools.ietf.org\/html\/rfc3447) \
|
||||
* **RSA-HSM**: RSA with a private key which is stored in the HSM. \
|
||||
* **oct**: Octet sequence (used to represent symmetric keys) \
|
||||
* **oct-HSM**: Octet sequence (used to represent symmetric keys) which is stored the HSM.
|
||||
*/
|
||||
export type JsonWebKeyType = string;
|
||||
/** JSON web key operations. For more information, see JsonWebKeyOperation. */
|
||||
export declare enum KnownJsonWebKeyOperation {
|
||||
/** Indicates that the key can be used to encrypt. */
|
||||
Encrypt = "encrypt",
|
||||
/** Indicates that the key can be used to decrypt. */
|
||||
Decrypt = "decrypt",
|
||||
/** Indicates that the key can be used to sign. */
|
||||
Sign = "sign",
|
||||
/** Indicates that the key can be used to verify. */
|
||||
Verify = "verify",
|
||||
/** Indicates that the key can be used to wrap another key. */
|
||||
WrapKey = "wrapKey",
|
||||
/** Indicates that the key can be used to unwrap another key. */
|
||||
UnwrapKey = "unwrapKey",
|
||||
/** Indicates that the key can be imported during creation. */
|
||||
Import = "import",
|
||||
/** Indicates that the private component of the key can be exported. */
|
||||
Export = "export"
|
||||
}
|
||||
/**
|
||||
* JSON web key operations. For more information, see JsonWebKeyOperation. \
|
||||
* {@link KnownJsonWebKeyOperation} can be used interchangeably with JsonWebKeyOperation,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **encrypt**: Indicates that the key can be used to encrypt. \
|
||||
* **decrypt**: Indicates that the key can be used to decrypt. \
|
||||
* **sign**: Indicates that the key can be used to sign. \
|
||||
* **verify**: Indicates that the key can be used to verify. \
|
||||
* **wrapKey**: Indicates that the key can be used to wrap another key. \
|
||||
* **unwrapKey**: Indicates that the key can be used to unwrap another key. \
|
||||
* **import**: Indicates that the key can be imported during creation. \
|
||||
* **export**: Indicates that the private component of the key can be exported.
|
||||
*/
|
||||
export type JsonWebKeyOperation = string;
|
||||
/** The attributes of a key managed by the key vault service. */
|
||||
export interface KeyAttributes {
|
||||
/** Determines whether the object is enabled. */
|
||||
enabled?: boolean;
|
||||
/** Not before date in UTC. */
|
||||
notBefore?: Date;
|
||||
/** Expiry date in UTC. */
|
||||
expires?: Date;
|
||||
/** Creation time in UTC. */
|
||||
readonly created?: Date;
|
||||
/** Last updated time in UTC. */
|
||||
readonly updated?: Date;
|
||||
/** softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. */
|
||||
readonly recoverableDays?: number;
|
||||
/** Reflects the deletion recovery level currently in effect for keys in the current vault. If it contains 'Purgeable' the key can be permanently deleted by a privileged user; otherwise, only the system can purge the key, at the end of the retention interval. */
|
||||
readonly recoveryLevel?: DeletionRecoveryLevel;
|
||||
/** Indicates if the private key can be exported. Release policy must be provided when creating the first version of an exportable key. */
|
||||
exportable?: boolean;
|
||||
/** The underlying HSM Platform. */
|
||||
readonly hsmPlatform?: string;
|
||||
/** The key or key version attestation information. */
|
||||
readonly attestation?: KeyAttestation;
|
||||
}
|
||||
export declare function keyAttributesSerializer(item: KeyAttributes): any;
|
||||
export declare function keyAttributesDeserializer(item: any): KeyAttributes;
|
||||
/** Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. */
|
||||
export declare enum KnownDeletionRecoveryLevel {
|
||||
/** Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) */
|
||||
Purgeable = "Purgeable",
|
||||
/** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered */
|
||||
RecoverablePurgeable = "Recoverable+Purgeable",
|
||||
/** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered */
|
||||
Recoverable = "Recoverable",
|
||||
/** Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered */
|
||||
RecoverableProtectedSubscription = "Recoverable+ProtectedSubscription",
|
||||
/** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. */
|
||||
CustomizedRecoverablePurgeable = "CustomizedRecoverable+Purgeable",
|
||||
/** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. */
|
||||
CustomizedRecoverable = "CustomizedRecoverable",
|
||||
/** Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7 <= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled. */
|
||||
CustomizedRecoverableProtectedSubscription = "CustomizedRecoverable+ProtectedSubscription"
|
||||
}
|
||||
/**
|
||||
* Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. \
|
||||
* {@link KnownDeletionRecoveryLevel} can be used interchangeably with DeletionRecoveryLevel,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **Purgeable**: Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) \
|
||||
* **Recoverable+Purgeable**: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered \
|
||||
* **Recoverable**: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered \
|
||||
* **Recoverable+ProtectedSubscription**: Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered \
|
||||
* **CustomizedRecoverable+Purgeable**: Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. \
|
||||
* **CustomizedRecoverable**: Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. \
|
||||
* **CustomizedRecoverable+ProtectedSubscription**: Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7 <= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled.
|
||||
*/
|
||||
export type DeletionRecoveryLevel = string;
|
||||
/** The key attestation information. */
|
||||
export interface KeyAttestation {
|
||||
/** A base64url-encoded string containing certificates in PEM format, used for attestation validation. */
|
||||
certificatePemFile?: Uint8Array;
|
||||
/** The attestation blob bytes encoded as base64url string corresponding to a private key. */
|
||||
privateKeyAttestation?: Uint8Array;
|
||||
/** The attestation blob bytes encoded as base64url string corresponding to a public key in case of asymmetric key. */
|
||||
publicKeyAttestation?: Uint8Array;
|
||||
/** The version of the attestation. */
|
||||
version?: string;
|
||||
}
|
||||
export declare function keyAttestationDeserializer(item: any): KeyAttestation;
|
||||
/** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */
|
||||
export declare enum KnownJsonWebKeyCurveName {
|
||||
/** The NIST P-256 elliptic curve, AKA SECG curve SECP256R1. */
|
||||
P256 = "P-256",
|
||||
/** The NIST P-384 elliptic curve, AKA SECG curve SECP384R1. */
|
||||
P384 = "P-384",
|
||||
/** The NIST P-521 elliptic curve, AKA SECG curve SECP521R1. */
|
||||
P521 = "P-521",
|
||||
/** The SECG SECP256K1 elliptic curve. */
|
||||
P256K = "P-256K"
|
||||
}
|
||||
/**
|
||||
* Elliptic curve name. For valid values, see JsonWebKeyCurveName. \
|
||||
* {@link KnownJsonWebKeyCurveName} can be used interchangeably with JsonWebKeyCurveName,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **P-256**: The NIST P-256 elliptic curve, AKA SECG curve SECP256R1. \
|
||||
* **P-384**: The NIST P-384 elliptic curve, AKA SECG curve SECP384R1. \
|
||||
* **P-521**: The NIST P-521 elliptic curve, AKA SECG curve SECP521R1. \
|
||||
* **P-256K**: The SECG SECP256K1 elliptic curve.
|
||||
*/
|
||||
export type JsonWebKeyCurveName = string;
|
||||
/** The policy rules under which the key can be exported. */
|
||||
export interface KeyReleasePolicy {
|
||||
/** Content type and version of key release policy */
|
||||
contentType?: string;
|
||||
/** Defines the mutability state of the policy. Once marked immutable, this flag cannot be reset and the policy cannot be changed under any circumstances. */
|
||||
immutable?: boolean;
|
||||
/** Blob encoding the policy rules under which the key can be released. Blob must be base64 URL encoded. */
|
||||
encodedPolicy?: Uint8Array;
|
||||
}
|
||||
export declare function keyReleasePolicySerializer(item: KeyReleasePolicy): any;
|
||||
export declare function keyReleasePolicyDeserializer(item: any): KeyReleasePolicy;
|
||||
/** A KeyBundle consisting of a WebKey plus its attributes. */
|
||||
export interface KeyBundle {
|
||||
/** The Json web key. */
|
||||
key?: JsonWebKey;
|
||||
/** The key management attributes. */
|
||||
attributes?: KeyAttributes;
|
||||
/** Application specific metadata in the form of key-value pairs. */
|
||||
tags?: Record<string, string>;
|
||||
/** True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */
|
||||
readonly managed?: boolean;
|
||||
/** The policy rules under which the key can be exported. */
|
||||
releasePolicy?: KeyReleasePolicy;
|
||||
}
|
||||
export declare function keyBundleDeserializer(item: any): KeyBundle;
|
||||
/** As of http://tools.ietf.org/html/draft-ietf-jose-json-web-key-18 */
|
||||
export interface JsonWebKey {
|
||||
/** Key identifier. */
|
||||
kid?: string;
|
||||
/** JsonWebKey Key Type (kty), as defined in https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40. */
|
||||
kty?: JsonWebKeyType;
|
||||
/** Json web key operations. For more information on possible key operations, see JsonWebKeyOperation. */
|
||||
keyOps?: string[];
|
||||
/** RSA modulus. */
|
||||
n?: Uint8Array;
|
||||
/** RSA public exponent. */
|
||||
e?: Uint8Array;
|
||||
/** RSA private exponent, or the D component of an EC private key. */
|
||||
d?: Uint8Array;
|
||||
/** RSA private key parameter. */
|
||||
dp?: Uint8Array;
|
||||
/** RSA private key parameter. */
|
||||
dq?: Uint8Array;
|
||||
/** RSA private key parameter. */
|
||||
qi?: Uint8Array;
|
||||
/** RSA secret prime. */
|
||||
p?: Uint8Array;
|
||||
/** RSA secret prime, with p < q. */
|
||||
q?: Uint8Array;
|
||||
/** Symmetric key. */
|
||||
k?: Uint8Array;
|
||||
/** Protected Key, used with 'Bring Your Own Key'. */
|
||||
t?: Uint8Array;
|
||||
/** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */
|
||||
crv?: JsonWebKeyCurveName;
|
||||
/** X component of an EC public key. */
|
||||
x?: Uint8Array;
|
||||
/** Y component of an EC public key. */
|
||||
y?: Uint8Array;
|
||||
}
|
||||
export declare function jsonWebKeySerializer(item: JsonWebKey): any;
|
||||
export declare function jsonWebKeyDeserializer(item: any): JsonWebKey;
|
||||
/** The key vault error exception. */
|
||||
export interface KeyVaultError {
|
||||
/** The key vault server error. */
|
||||
readonly error?: ErrorModel;
|
||||
}
|
||||
export declare function keyVaultErrorDeserializer(item: any): KeyVaultError;
|
||||
/** Alias for ErrorModel */
|
||||
export type ErrorModel = {
|
||||
code?: string;
|
||||
message?: string;
|
||||
innerError?: ErrorModel;
|
||||
} | null;
|
||||
/** model interface _KeyVaultErrorError */
|
||||
export interface _KeyVaultErrorError {
|
||||
/** The error code. */
|
||||
readonly code?: string;
|
||||
/** The error message. */
|
||||
readonly message?: string;
|
||||
/** The key vault server error. */
|
||||
readonly innerError?: ErrorModel;
|
||||
}
|
||||
export declare function _keyVaultErrorErrorDeserializer(item: any): _KeyVaultErrorError;
|
||||
/** The key import parameters. */
|
||||
export interface KeyImportParameters {
|
||||
/** Whether to import as a hardware key (HSM) or software key. */
|
||||
hsm?: boolean;
|
||||
/** The Json web key */
|
||||
key: JsonWebKey;
|
||||
/** The key management attributes. */
|
||||
keyAttributes?: KeyAttributes;
|
||||
/** Application specific metadata in the form of key-value pairs. */
|
||||
tags?: Record<string, string>;
|
||||
/** The policy rules under which the key can be exported. */
|
||||
releasePolicy?: KeyReleasePolicy;
|
||||
}
|
||||
export declare function keyImportParametersSerializer(item: KeyImportParameters): any;
|
||||
/** A DeletedKeyBundle consisting of a WebKey plus its Attributes and deletion info */
|
||||
export interface DeletedKeyBundle {
|
||||
/** The Json web key. */
|
||||
key?: JsonWebKey;
|
||||
/** The key management attributes. */
|
||||
attributes?: KeyAttributes;
|
||||
/** Application specific metadata in the form of key-value pairs. */
|
||||
tags?: Record<string, string>;
|
||||
/** True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */
|
||||
readonly managed?: boolean;
|
||||
/** The policy rules under which the key can be exported. */
|
||||
releasePolicy?: KeyReleasePolicy;
|
||||
/** The url of the recovery object, used to identify and recover the deleted key. */
|
||||
recoveryId?: string;
|
||||
/** The time when the key is scheduled to be purged, in UTC */
|
||||
readonly scheduledPurgeDate?: Date;
|
||||
/** The time when the key was deleted, in UTC */
|
||||
readonly deletedDate?: Date;
|
||||
}
|
||||
export declare function deletedKeyBundleDeserializer(item: any): DeletedKeyBundle;
|
||||
/** The key update parameters. */
|
||||
export interface KeyUpdateParameters {
|
||||
/** Json web key operations. For more information on possible key operations, see JsonWebKeyOperation. */
|
||||
keyOps?: JsonWebKeyOperation[];
|
||||
/** The attributes of a key managed by the key vault service. */
|
||||
keyAttributes?: KeyAttributes;
|
||||
/** Application specific metadata in the form of key-value pairs. */
|
||||
tags?: Record<string, string>;
|
||||
/** The policy rules under which the key can be exported. */
|
||||
releasePolicy?: KeyReleasePolicy;
|
||||
}
|
||||
export declare function keyUpdateParametersSerializer(item: KeyUpdateParameters): any;
|
||||
/** The key list result. */
|
||||
export interface _KeyListResult {
|
||||
/** A response message containing a list of keys in the key vault along with a link to the next page of keys. */
|
||||
readonly value?: KeyItem[];
|
||||
/** The URL to get the next set of keys. */
|
||||
readonly nextLink?: string;
|
||||
}
|
||||
export declare function _keyListResultDeserializer(item: any): _KeyListResult;
|
||||
export declare function keyItemArrayDeserializer(result: Array<KeyItem>): any[];
|
||||
/** The key item containing key metadata. */
|
||||
export interface KeyItem {
|
||||
/** Key identifier. */
|
||||
kid?: string;
|
||||
/** The key management attributes. */
|
||||
attributes?: KeyAttributes;
|
||||
/** Application specific metadata in the form of key-value pairs. */
|
||||
tags?: Record<string, string>;
|
||||
/** True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */
|
||||
readonly managed?: boolean;
|
||||
}
|
||||
export declare function keyItemDeserializer(item: any): KeyItem;
|
||||
/** The backup key result, containing the backup blob. */
|
||||
export interface BackupKeyResult {
|
||||
/** The backup blob containing the backed up key. */
|
||||
readonly value?: Uint8Array;
|
||||
}
|
||||
export declare function backupKeyResultDeserializer(item: any): BackupKeyResult;
|
||||
/** The key restore parameters. */
|
||||
export interface KeyRestoreParameters {
|
||||
/** The backup blob associated with a key bundle. */
|
||||
keyBundleBackup: Uint8Array;
|
||||
}
|
||||
export declare function keyRestoreParametersSerializer(item: KeyRestoreParameters): any;
|
||||
/** The key operations parameters. */
|
||||
export interface KeyOperationsParameters {
|
||||
/** algorithm identifier */
|
||||
algorithm: JsonWebKeyEncryptionAlgorithm;
|
||||
/** The value to operate on. */
|
||||
value: Uint8Array;
|
||||
/** Cryptographically random, non-repeating initialization vector for symmetric algorithms. */
|
||||
iv?: Uint8Array;
|
||||
/** Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */
|
||||
aad?: Uint8Array;
|
||||
/** The tag to authenticate when performing decryption with an authenticated algorithm. */
|
||||
tag?: Uint8Array;
|
||||
}
|
||||
export declare function keyOperationsParametersSerializer(item: KeyOperationsParameters): any;
|
||||
/** An algorithm used for encryption and decryption. */
|
||||
export declare enum KnownJsonWebKeyEncryptionAlgorithm {
|
||||
/** [Not recommended] RSAES using Optimal Asymmetric Encryption Padding (OAEP), as described in https://tools.ietf.org/html/rfc3447, with the default parameters specified by RFC 3447 in Section A.2.1. Those default parameters are using a hash function of SHA-1 and a mask generation function of MGF1 with SHA-1. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_OAEP, which is included solely for backwards compatibility. RSA_OAEP utilizes SHA1, which has known collision problems. */
|
||||
RSAOaep = "RSA-OAEP",
|
||||
/** RSAES using Optimal Asymmetric Encryption Padding with a hash function of SHA-256 and a mask generation function of MGF1 with SHA-256. */
|
||||
RSAOaep256 = "RSA-OAEP-256",
|
||||
/** [Not recommended] RSAES-PKCS1-V1_5 key encryption, as described in https://tools.ietf.org/html/rfc3447. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_1_5, which is included solely for backwards compatibility. Cryptographic standards no longer consider RSA with the PKCS#1 v1.5 padding scheme secure for encryption. */
|
||||
RSA15 = "RSA1_5",
|
||||
/** 128-bit AES-GCM. */
|
||||
A128GCM = "A128GCM",
|
||||
/** 192-bit AES-GCM. */
|
||||
A192GCM = "A192GCM",
|
||||
/** 256-bit AES-GCM. */
|
||||
A256GCM = "A256GCM",
|
||||
/** 128-bit AES key wrap. */
|
||||
A128KW = "A128KW",
|
||||
/** 192-bit AES key wrap. */
|
||||
A192KW = "A192KW",
|
||||
/** 256-bit AES key wrap. */
|
||||
A256KW = "A256KW",
|
||||
/** 128-bit AES-CBC. */
|
||||
A128CBC = "A128CBC",
|
||||
/** 192-bit AES-CBC. */
|
||||
A192CBC = "A192CBC",
|
||||
/** 256-bit AES-CBC. */
|
||||
A256CBC = "A256CBC",
|
||||
/** 128-bit AES-CBC with PKCS padding. */
|
||||
A128Cbcpad = "A128CBCPAD",
|
||||
/** 192-bit AES-CBC with PKCS padding. */
|
||||
A192Cbcpad = "A192CBCPAD",
|
||||
/** 256-bit AES-CBC with PKCS padding. */
|
||||
A256Cbcpad = "A256CBCPAD",
|
||||
/** CKM AES key wrap. */
|
||||
CkmAesKeyWrap = "CKM_AES_KEY_WRAP",
|
||||
/** CKM AES key wrap with padding. */
|
||||
CkmAesKeyWrapPad = "CKM_AES_KEY_WRAP_PAD"
|
||||
}
|
||||
/**
|
||||
* An algorithm used for encryption and decryption. \
|
||||
* {@link KnownJsonWebKeyEncryptionAlgorithm} can be used interchangeably with JsonWebKeyEncryptionAlgorithm,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **RSA-OAEP**: [Not recommended] RSAES using Optimal Asymmetric Encryption Padding (OAEP), as described in https:\//tools.ietf.org\/html\/rfc3447, with the default parameters specified by RFC 3447 in Section A.2.1. Those default parameters are using a hash function of SHA-1 and a mask generation function of MGF1 with SHA-1. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_OAEP, which is included solely for backwards compatibility. RSA_OAEP utilizes SHA1, which has known collision problems. \
|
||||
* **RSA-OAEP-256**: RSAES using Optimal Asymmetric Encryption Padding with a hash function of SHA-256 and a mask generation function of MGF1 with SHA-256. \
|
||||
* **RSA1_5**: [Not recommended] RSAES-PKCS1-V1_5 key encryption, as described in https:\//tools.ietf.org\/html\/rfc3447. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_1_5, which is included solely for backwards compatibility. Cryptographic standards no longer consider RSA with the PKCS#1 v1.5 padding scheme secure for encryption. \
|
||||
* **A128GCM**: 128-bit AES-GCM. \
|
||||
* **A192GCM**: 192-bit AES-GCM. \
|
||||
* **A256GCM**: 256-bit AES-GCM. \
|
||||
* **A128KW**: 128-bit AES key wrap. \
|
||||
* **A192KW**: 192-bit AES key wrap. \
|
||||
* **A256KW**: 256-bit AES key wrap. \
|
||||
* **A128CBC**: 128-bit AES-CBC. \
|
||||
* **A192CBC**: 192-bit AES-CBC. \
|
||||
* **A256CBC**: 256-bit AES-CBC. \
|
||||
* **A128CBCPAD**: 128-bit AES-CBC with PKCS padding. \
|
||||
* **A192CBCPAD**: 192-bit AES-CBC with PKCS padding. \
|
||||
* **A256CBCPAD**: 256-bit AES-CBC with PKCS padding. \
|
||||
* **CKM_AES_KEY_WRAP**: CKM AES key wrap. \
|
||||
* **CKM_AES_KEY_WRAP_PAD**: CKM AES key wrap with padding.
|
||||
*/
|
||||
export type JsonWebKeyEncryptionAlgorithm = string;
|
||||
/** The key operation result. */
|
||||
export interface KeyOperationResult {
|
||||
/** Key identifier */
|
||||
readonly kid?: string;
|
||||
/** The result of the operation. */
|
||||
readonly result?: Uint8Array;
|
||||
/** Cryptographically random, non-repeating initialization vector for symmetric algorithms. */
|
||||
readonly iv?: Uint8Array;
|
||||
/** The tag to authenticate when performing decryption with an authenticated algorithm. */
|
||||
readonly authenticationTag?: Uint8Array;
|
||||
/** Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */
|
||||
readonly additionalAuthenticatedData?: Uint8Array;
|
||||
}
|
||||
export declare function keyOperationResultDeserializer(item: any): KeyOperationResult;
|
||||
/** The key operations parameters. */
|
||||
export interface KeySignParameters {
|
||||
/** The signing/verification algorithm identifier. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. */
|
||||
algorithm: JsonWebKeySignatureAlgorithm;
|
||||
/** The value to operate on. */
|
||||
value: Uint8Array;
|
||||
}
|
||||
export declare function keySignParametersSerializer(item: KeySignParameters): any;
|
||||
/** The signing/verification algorithm identifier. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. */
|
||||
export declare enum KnownJsonWebKeySignatureAlgorithm {
|
||||
/** RSASSA-PSS using SHA-256 and MGF1 with SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
PS256 = "PS256",
|
||||
/** RSASSA-PSS using SHA-384 and MGF1 with SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
PS384 = "PS384",
|
||||
/** RSASSA-PSS using SHA-512 and MGF1 with SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
PS512 = "PS512",
|
||||
/** RSASSA-PKCS1-v1_5 using SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
RS256 = "RS256",
|
||||
/** RSASSA-PKCS1-v1_5 using SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
RS384 = "RS384",
|
||||
/** RSASSA-PKCS1-v1_5 using SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
RS512 = "RS512",
|
||||
/** HMAC using SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
HS256 = "HS256",
|
||||
/** HMAC using SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
HS384 = "HS384",
|
||||
/** HMAC using SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
HS512 = "HS512",
|
||||
/** Reserved */
|
||||
Rsnull = "RSNULL",
|
||||
/** ECDSA using P-256 and SHA-256, as described in https://tools.ietf.org/html/rfc7518. */
|
||||
ES256 = "ES256",
|
||||
/** ECDSA using P-384 and SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
ES384 = "ES384",
|
||||
/** ECDSA using P-521 and SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
ES512 = "ES512",
|
||||
/** ECDSA using P-256K and SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
ES256K = "ES256K"
|
||||
}
|
||||
/**
|
||||
* The signing/verification algorithm identifier. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. \
|
||||
* {@link KnownJsonWebKeySignatureAlgorithm} can be used interchangeably with JsonWebKeySignatureAlgorithm,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **PS256**: RSASSA-PSS using SHA-256 and MGF1 with SHA-256, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **PS384**: RSASSA-PSS using SHA-384 and MGF1 with SHA-384, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **PS512**: RSASSA-PSS using SHA-512 and MGF1 with SHA-512, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **RS256**: RSASSA-PKCS1-v1_5 using SHA-256, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **RS384**: RSASSA-PKCS1-v1_5 using SHA-384, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **RS512**: RSASSA-PKCS1-v1_5 using SHA-512, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **HS256**: HMAC using SHA-256, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **HS384**: HMAC using SHA-384, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **HS512**: HMAC using SHA-512, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **RSNULL**: Reserved \
|
||||
* **ES256**: ECDSA using P-256 and SHA-256, as described in https:\//tools.ietf.org\/html\/rfc7518. \
|
||||
* **ES384**: ECDSA using P-384 and SHA-384, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **ES512**: ECDSA using P-521 and SHA-512, as described in https:\//tools.ietf.org\/html\/rfc7518 \
|
||||
* **ES256K**: ECDSA using P-256K and SHA-256, as described in https:\//tools.ietf.org\/html\/rfc7518
|
||||
*/
|
||||
export type JsonWebKeySignatureAlgorithm = string;
|
||||
/** The key verify parameters. */
|
||||
export interface KeyVerifyParameters {
|
||||
/** The signing/verification algorithm. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. */
|
||||
algorithm: JsonWebKeySignatureAlgorithm;
|
||||
/** The digest used for signing. */
|
||||
digest: Uint8Array;
|
||||
/** The signature to be verified. */
|
||||
signature: Uint8Array;
|
||||
}
|
||||
export declare function keyVerifyParametersSerializer(item: KeyVerifyParameters): any;
|
||||
/** The key verify result. */
|
||||
export interface KeyVerifyResult {
|
||||
/** True if the signature is verified, otherwise false. */
|
||||
readonly value?: boolean;
|
||||
}
|
||||
export declare function keyVerifyResultDeserializer(item: any): KeyVerifyResult;
|
||||
/** The release key parameters. */
|
||||
export interface KeyReleaseParameters {
|
||||
/** The attestation assertion for the target of the key release. */
|
||||
targetAttestationToken: string;
|
||||
/** A client provided nonce for freshness. */
|
||||
nonce?: string;
|
||||
/** The encryption algorithm to use to protected the exported key material */
|
||||
enc?: KeyEncryptionAlgorithm;
|
||||
}
|
||||
export declare function keyReleaseParametersSerializer(item: KeyReleaseParameters): any;
|
||||
/** The encryption algorithm to use to protected the exported key material */
|
||||
export declare enum KnownKeyEncryptionAlgorithm {
|
||||
/** The CKM_RSA_AES_KEY_WRAP key wrap mechanism. */
|
||||
CkmRsaAesKeyWrap = "CKM_RSA_AES_KEY_WRAP",
|
||||
/** The RSA_AES_KEY_WRAP_256 key wrap mechanism. */
|
||||
RsaAesKeyWrap256 = "RSA_AES_KEY_WRAP_256",
|
||||
/** The RSA_AES_KEY_WRAP_384 key wrap mechanism. */
|
||||
RsaAesKeyWrap384 = "RSA_AES_KEY_WRAP_384"
|
||||
}
|
||||
/**
|
||||
* The encryption algorithm to use to protected the exported key material \
|
||||
* {@link KnownKeyEncryptionAlgorithm} can be used interchangeably with KeyEncryptionAlgorithm,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **CKM_RSA_AES_KEY_WRAP**: The CKM_RSA_AES_KEY_WRAP key wrap mechanism. \
|
||||
* **RSA_AES_KEY_WRAP_256**: The RSA_AES_KEY_WRAP_256 key wrap mechanism. \
|
||||
* **RSA_AES_KEY_WRAP_384**: The RSA_AES_KEY_WRAP_384 key wrap mechanism.
|
||||
*/
|
||||
export type KeyEncryptionAlgorithm = string;
|
||||
/** The release result, containing the released key. */
|
||||
export interface KeyReleaseResult {
|
||||
/** A signed object containing the released key. */
|
||||
readonly value?: string;
|
||||
}
|
||||
export declare function keyReleaseResultDeserializer(item: any): KeyReleaseResult;
|
||||
/** A list of keys that have been deleted in this vault. */
|
||||
export interface _DeletedKeyListResult {
|
||||
/** A response message containing a list of deleted keys in the key vault along with a link to the next page of deleted keys. */
|
||||
readonly value?: DeletedKeyItem[];
|
||||
/** The URL to get the next set of deleted keys. */
|
||||
readonly nextLink?: string;
|
||||
}
|
||||
export declare function _deletedKeyListResultDeserializer(item: any): _DeletedKeyListResult;
|
||||
export declare function deletedKeyItemArrayDeserializer(result: Array<DeletedKeyItem>): any[];
|
||||
/** The deleted key item containing the deleted key metadata and information about deletion. */
|
||||
export interface DeletedKeyItem {
|
||||
/** Key identifier. */
|
||||
kid?: string;
|
||||
/** The key management attributes. */
|
||||
attributes?: KeyAttributes;
|
||||
/** Application specific metadata in the form of key-value pairs. */
|
||||
tags?: Record<string, string>;
|
||||
/** True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */
|
||||
readonly managed?: boolean;
|
||||
/** The url of the recovery object, used to identify and recover the deleted key. */
|
||||
recoveryId?: string;
|
||||
/** The time when the key is scheduled to be purged, in UTC */
|
||||
readonly scheduledPurgeDate?: Date;
|
||||
/** The time when the key was deleted, in UTC */
|
||||
readonly deletedDate?: Date;
|
||||
}
|
||||
export declare function deletedKeyItemDeserializer(item: any): DeletedKeyItem;
|
||||
/** Management policy for a key. */
|
||||
export interface KeyRotationPolicy {
|
||||
/** The key policy id. */
|
||||
readonly id?: string;
|
||||
/** Actions that will be performed by Key Vault over the lifetime of a key. For preview, lifetimeActions can only have two items at maximum: one for rotate, one for notify. Notification time would be default to 30 days before expiry and it is not configurable. */
|
||||
lifetimeActions?: LifetimeActions[];
|
||||
/** The key rotation policy attributes. */
|
||||
attributes?: KeyRotationPolicyAttributes;
|
||||
}
|
||||
export declare function keyRotationPolicySerializer(item: KeyRotationPolicy): any;
|
||||
export declare function keyRotationPolicyDeserializer(item: any): KeyRotationPolicy;
|
||||
export declare function lifetimeActionsArraySerializer(result: Array<LifetimeActions>): any[];
|
||||
export declare function lifetimeActionsArrayDeserializer(result: Array<LifetimeActions>): any[];
|
||||
/** Action and its trigger that will be performed by Key Vault over the lifetime of a key. */
|
||||
export interface LifetimeActions {
|
||||
/** The condition that will execute the action. */
|
||||
trigger?: LifetimeActionsTrigger;
|
||||
/** The action that will be executed. */
|
||||
action?: LifetimeActionsType;
|
||||
}
|
||||
export declare function lifetimeActionsSerializer(item: LifetimeActions): any;
|
||||
export declare function lifetimeActionsDeserializer(item: any): LifetimeActions;
|
||||
/** A condition to be satisfied for an action to be executed. */
|
||||
export interface LifetimeActionsTrigger {
|
||||
/** Time after creation to attempt to rotate. It only applies to rotate. It will be in ISO 8601 duration format. Example: 90 days : "P90D" */
|
||||
timeAfterCreate?: string;
|
||||
/** Time before expiry to attempt to rotate or notify. It will be in ISO 8601 duration format. Example: 90 days : "P90D" */
|
||||
timeBeforeExpiry?: string;
|
||||
}
|
||||
export declare function lifetimeActionsTriggerSerializer(item: LifetimeActionsTrigger): any;
|
||||
export declare function lifetimeActionsTriggerDeserializer(item: any): LifetimeActionsTrigger;
|
||||
/** The action that will be executed. */
|
||||
export interface LifetimeActionsType {
|
||||
/** The type of the action. The value should be compared case-insensitively. */
|
||||
type?: KeyRotationPolicyAction;
|
||||
}
|
||||
export declare function lifetimeActionsTypeSerializer(item: LifetimeActionsType): any;
|
||||
export declare function lifetimeActionsTypeDeserializer(item: any): LifetimeActionsType;
|
||||
/** The type of the action. The value should be compared case-insensitively. */
|
||||
export type KeyRotationPolicyAction = "Rotate" | "Notify";
|
||||
/** The key rotation policy attributes. */
|
||||
export interface KeyRotationPolicyAttributes {
|
||||
/** The expiryTime will be applied on the new key version. It should be at least 28 days. It will be in ISO 8601 Format. Examples: 90 days: P90D, 3 months: P3M, 48 hours: PT48H, 1 year and 10 days: P1Y10D */
|
||||
expiryTime?: string;
|
||||
/** The key rotation policy created time in UTC. */
|
||||
readonly created?: Date;
|
||||
/** The key rotation policy's last updated time in UTC. */
|
||||
readonly updated?: Date;
|
||||
}
|
||||
export declare function keyRotationPolicyAttributesSerializer(item: KeyRotationPolicyAttributes): any;
|
||||
export declare function keyRotationPolicyAttributesDeserializer(item: any): KeyRotationPolicyAttributes;
|
||||
/** The get random bytes request object. */
|
||||
export interface GetRandomBytesRequest {
|
||||
/** The requested number of random bytes. */
|
||||
count: number;
|
||||
}
|
||||
export declare function getRandomBytesRequestSerializer(item: GetRandomBytesRequest): any;
|
||||
/** The get random bytes response object containing the bytes. */
|
||||
export interface RandomBytes {
|
||||
/** The bytes encoded as a base64url string. */
|
||||
value: Uint8Array;
|
||||
}
|
||||
export declare function randomBytesDeserializer(item: any): RandomBytes;
|
||||
/** The available API versions. */
|
||||
export declare enum KnownVersions {
|
||||
/** The 7.5 API version. */
|
||||
V75 = "7.5",
|
||||
/** The 7.6-preview.2 API version. */
|
||||
V76Preview2 = "7.6-preview.2",
|
||||
/** The 7.6 API version. */
|
||||
V76 = "7.6"
|
||||
}
|
||||
//# sourceMappingURL=models.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/models.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/models.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
702
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/models.js
generated
vendored
Normal file
702
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/models.js
generated
vendored
Normal file
@ -0,0 +1,702 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.KnownVersions = exports.KnownKeyEncryptionAlgorithm = exports.KnownJsonWebKeySignatureAlgorithm = exports.KnownJsonWebKeyEncryptionAlgorithm = exports.KnownJsonWebKeyCurveName = exports.KnownDeletionRecoveryLevel = exports.KnownJsonWebKeyOperation = exports.KnownJsonWebKeyType = void 0;
|
||||
exports.keyCreateParametersSerializer = keyCreateParametersSerializer;
|
||||
exports.keyAttributesSerializer = keyAttributesSerializer;
|
||||
exports.keyAttributesDeserializer = keyAttributesDeserializer;
|
||||
exports.keyAttestationDeserializer = keyAttestationDeserializer;
|
||||
exports.keyReleasePolicySerializer = keyReleasePolicySerializer;
|
||||
exports.keyReleasePolicyDeserializer = keyReleasePolicyDeserializer;
|
||||
exports.keyBundleDeserializer = keyBundleDeserializer;
|
||||
exports.jsonWebKeySerializer = jsonWebKeySerializer;
|
||||
exports.jsonWebKeyDeserializer = jsonWebKeyDeserializer;
|
||||
exports.keyVaultErrorDeserializer = keyVaultErrorDeserializer;
|
||||
exports._keyVaultErrorErrorDeserializer = _keyVaultErrorErrorDeserializer;
|
||||
exports.keyImportParametersSerializer = keyImportParametersSerializer;
|
||||
exports.deletedKeyBundleDeserializer = deletedKeyBundleDeserializer;
|
||||
exports.keyUpdateParametersSerializer = keyUpdateParametersSerializer;
|
||||
exports._keyListResultDeserializer = _keyListResultDeserializer;
|
||||
exports.keyItemArrayDeserializer = keyItemArrayDeserializer;
|
||||
exports.keyItemDeserializer = keyItemDeserializer;
|
||||
exports.backupKeyResultDeserializer = backupKeyResultDeserializer;
|
||||
exports.keyRestoreParametersSerializer = keyRestoreParametersSerializer;
|
||||
exports.keyOperationsParametersSerializer = keyOperationsParametersSerializer;
|
||||
exports.keyOperationResultDeserializer = keyOperationResultDeserializer;
|
||||
exports.keySignParametersSerializer = keySignParametersSerializer;
|
||||
exports.keyVerifyParametersSerializer = keyVerifyParametersSerializer;
|
||||
exports.keyVerifyResultDeserializer = keyVerifyResultDeserializer;
|
||||
exports.keyReleaseParametersSerializer = keyReleaseParametersSerializer;
|
||||
exports.keyReleaseResultDeserializer = keyReleaseResultDeserializer;
|
||||
exports._deletedKeyListResultDeserializer = _deletedKeyListResultDeserializer;
|
||||
exports.deletedKeyItemArrayDeserializer = deletedKeyItemArrayDeserializer;
|
||||
exports.deletedKeyItemDeserializer = deletedKeyItemDeserializer;
|
||||
exports.keyRotationPolicySerializer = keyRotationPolicySerializer;
|
||||
exports.keyRotationPolicyDeserializer = keyRotationPolicyDeserializer;
|
||||
exports.lifetimeActionsArraySerializer = lifetimeActionsArraySerializer;
|
||||
exports.lifetimeActionsArrayDeserializer = lifetimeActionsArrayDeserializer;
|
||||
exports.lifetimeActionsSerializer = lifetimeActionsSerializer;
|
||||
exports.lifetimeActionsDeserializer = lifetimeActionsDeserializer;
|
||||
exports.lifetimeActionsTriggerSerializer = lifetimeActionsTriggerSerializer;
|
||||
exports.lifetimeActionsTriggerDeserializer = lifetimeActionsTriggerDeserializer;
|
||||
exports.lifetimeActionsTypeSerializer = lifetimeActionsTypeSerializer;
|
||||
exports.lifetimeActionsTypeDeserializer = lifetimeActionsTypeDeserializer;
|
||||
exports.keyRotationPolicyAttributesSerializer = keyRotationPolicyAttributesSerializer;
|
||||
exports.keyRotationPolicyAttributesDeserializer = keyRotationPolicyAttributesDeserializer;
|
||||
exports.getRandomBytesRequestSerializer = getRandomBytesRequestSerializer;
|
||||
exports.randomBytesDeserializer = randomBytesDeserializer;
|
||||
const core_util_1 = require("@azure/core-util");
|
||||
function keyCreateParametersSerializer(item) {
|
||||
return {
|
||||
kty: item["kty"],
|
||||
key_size: item["keySize"],
|
||||
public_exponent: item["publicExponent"],
|
||||
key_ops: !item["keyOps"]
|
||||
? item["keyOps"]
|
||||
: item["keyOps"].map((p) => {
|
||||
return p;
|
||||
}),
|
||||
attributes: !item["keyAttributes"]
|
||||
? item["keyAttributes"]
|
||||
: keyAttributesSerializer(item["keyAttributes"]),
|
||||
tags: item["tags"],
|
||||
crv: item["curve"],
|
||||
release_policy: !item["releasePolicy"]
|
||||
? item["releasePolicy"]
|
||||
: keyReleasePolicySerializer(item["releasePolicy"]),
|
||||
};
|
||||
}
|
||||
/** JsonWebKey Key Type (kty), as defined in https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40. */
|
||||
var KnownJsonWebKeyType;
|
||||
(function (KnownJsonWebKeyType) {
|
||||
/** Elliptic Curve. */
|
||||
KnownJsonWebKeyType["EC"] = "EC";
|
||||
/** Elliptic Curve with a private key which is stored in the HSM. */
|
||||
KnownJsonWebKeyType["ECHSM"] = "EC-HSM";
|
||||
/** RSA (https://tools.ietf.org/html/rfc3447) */
|
||||
KnownJsonWebKeyType["RSA"] = "RSA";
|
||||
/** RSA with a private key which is stored in the HSM. */
|
||||
KnownJsonWebKeyType["RSAHSM"] = "RSA-HSM";
|
||||
/** Octet sequence (used to represent symmetric keys) */
|
||||
KnownJsonWebKeyType["Oct"] = "oct";
|
||||
/** Octet sequence (used to represent symmetric keys) which is stored the HSM. */
|
||||
KnownJsonWebKeyType["OctHSM"] = "oct-HSM";
|
||||
})(KnownJsonWebKeyType || (exports.KnownJsonWebKeyType = KnownJsonWebKeyType = {}));
|
||||
/** JSON web key operations. For more information, see JsonWebKeyOperation. */
|
||||
var KnownJsonWebKeyOperation;
|
||||
(function (KnownJsonWebKeyOperation) {
|
||||
/** Indicates that the key can be used to encrypt. */
|
||||
KnownJsonWebKeyOperation["Encrypt"] = "encrypt";
|
||||
/** Indicates that the key can be used to decrypt. */
|
||||
KnownJsonWebKeyOperation["Decrypt"] = "decrypt";
|
||||
/** Indicates that the key can be used to sign. */
|
||||
KnownJsonWebKeyOperation["Sign"] = "sign";
|
||||
/** Indicates that the key can be used to verify. */
|
||||
KnownJsonWebKeyOperation["Verify"] = "verify";
|
||||
/** Indicates that the key can be used to wrap another key. */
|
||||
KnownJsonWebKeyOperation["WrapKey"] = "wrapKey";
|
||||
/** Indicates that the key can be used to unwrap another key. */
|
||||
KnownJsonWebKeyOperation["UnwrapKey"] = "unwrapKey";
|
||||
/** Indicates that the key can be imported during creation. */
|
||||
KnownJsonWebKeyOperation["Import"] = "import";
|
||||
/** Indicates that the private component of the key can be exported. */
|
||||
KnownJsonWebKeyOperation["Export"] = "export";
|
||||
})(KnownJsonWebKeyOperation || (exports.KnownJsonWebKeyOperation = KnownJsonWebKeyOperation = {}));
|
||||
function keyAttributesSerializer(item) {
|
||||
return {
|
||||
enabled: item["enabled"],
|
||||
nbf: !item["notBefore"]
|
||||
? item["notBefore"]
|
||||
: (item["notBefore"].getTime() / 1000) | 0,
|
||||
exp: !item["expires"]
|
||||
? item["expires"]
|
||||
: (item["expires"].getTime() / 1000) | 0,
|
||||
exportable: item["exportable"],
|
||||
};
|
||||
}
|
||||
function keyAttributesDeserializer(item) {
|
||||
return {
|
||||
enabled: item["enabled"],
|
||||
notBefore: !item["nbf"] ? item["nbf"] : new Date(item["nbf"] * 1000),
|
||||
expires: !item["exp"] ? item["exp"] : new Date(item["exp"] * 1000),
|
||||
created: !item["created"]
|
||||
? item["created"]
|
||||
: new Date(item["created"] * 1000),
|
||||
updated: !item["updated"]
|
||||
? item["updated"]
|
||||
: new Date(item["updated"] * 1000),
|
||||
recoverableDays: item["recoverableDays"],
|
||||
recoveryLevel: item["recoveryLevel"],
|
||||
exportable: item["exportable"],
|
||||
hsmPlatform: item["hsmPlatform"],
|
||||
attestation: !item["attestation"]
|
||||
? item["attestation"]
|
||||
: keyAttestationDeserializer(item["attestation"]),
|
||||
};
|
||||
}
|
||||
/** Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. */
|
||||
var KnownDeletionRecoveryLevel;
|
||||
(function (KnownDeletionRecoveryLevel) {
|
||||
/** Denotes a vault state in which deletion is an irreversible operation, without the possibility for recovery. This level corresponds to no protection being available against a Delete operation; the data is irretrievably lost upon accepting a Delete operation at the entity level or higher (vault, resource group, subscription etc.) */
|
||||
KnownDeletionRecoveryLevel["Purgeable"] = "Purgeable";
|
||||
/** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval (90 days), unless a Purge operation is requested, or the subscription is cancelled. System wil permanently delete it after 90 days, if not recovered */
|
||||
KnownDeletionRecoveryLevel["RecoverablePurgeable"] = "Recoverable+Purgeable";
|
||||
/** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge). This level guarantees the recoverability of the deleted entity during the retention interval(90 days) and while the subscription is still available. System wil permanently delete it after 90 days, if not recovered */
|
||||
KnownDeletionRecoveryLevel["Recoverable"] = "Recoverable";
|
||||
/** Denotes a vault and subscription state in which deletion is recoverable within retention interval (90 days), immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled. System wil permanently delete it after 90 days, if not recovered */
|
||||
KnownDeletionRecoveryLevel["RecoverableProtectedSubscription"] = "Recoverable+ProtectedSubscription";
|
||||
/** Denotes a vault state in which deletion is recoverable, and which also permits immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90). This level guarantees the recoverability of the deleted entity during the retention interval, unless a Purge operation is requested, or the subscription is cancelled. */
|
||||
KnownDeletionRecoveryLevel["CustomizedRecoverablePurgeable"] = "CustomizedRecoverable+Purgeable";
|
||||
/** Denotes a vault state in which deletion is recoverable without the possibility for immediate and permanent deletion (i.e. purge when 7 <= SoftDeleteRetentionInDays < 90).This level guarantees the recoverability of the deleted entity during the retention interval and while the subscription is still available. */
|
||||
KnownDeletionRecoveryLevel["CustomizedRecoverable"] = "CustomizedRecoverable";
|
||||
/** Denotes a vault and subscription state in which deletion is recoverable, immediate and permanent deletion (i.e. purge) is not permitted, and in which the subscription itself cannot be permanently canceled when 7 <= SoftDeleteRetentionInDays < 90. This level guarantees the recoverability of the deleted entity during the retention interval, and also reflects the fact that the subscription itself cannot be cancelled. */
|
||||
KnownDeletionRecoveryLevel["CustomizedRecoverableProtectedSubscription"] = "CustomizedRecoverable+ProtectedSubscription";
|
||||
})(KnownDeletionRecoveryLevel || (exports.KnownDeletionRecoveryLevel = KnownDeletionRecoveryLevel = {}));
|
||||
function keyAttestationDeserializer(item) {
|
||||
return {
|
||||
certificatePemFile: !item["certificatePemFile"]
|
||||
? item["certificatePemFile"]
|
||||
: typeof item["certificatePemFile"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["certificatePemFile"], "base64url")
|
||||
: item["certificatePemFile"],
|
||||
privateKeyAttestation: !item["privateKeyAttestation"]
|
||||
? item["privateKeyAttestation"]
|
||||
: typeof item["privateKeyAttestation"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["privateKeyAttestation"], "base64url")
|
||||
: item["privateKeyAttestation"],
|
||||
publicKeyAttestation: !item["publicKeyAttestation"]
|
||||
? item["publicKeyAttestation"]
|
||||
: typeof item["publicKeyAttestation"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["publicKeyAttestation"], "base64url")
|
||||
: item["publicKeyAttestation"],
|
||||
version: item["version"],
|
||||
};
|
||||
}
|
||||
/** Elliptic curve name. For valid values, see JsonWebKeyCurveName. */
|
||||
var KnownJsonWebKeyCurveName;
|
||||
(function (KnownJsonWebKeyCurveName) {
|
||||
/** The NIST P-256 elliptic curve, AKA SECG curve SECP256R1. */
|
||||
KnownJsonWebKeyCurveName["P256"] = "P-256";
|
||||
/** The NIST P-384 elliptic curve, AKA SECG curve SECP384R1. */
|
||||
KnownJsonWebKeyCurveName["P384"] = "P-384";
|
||||
/** The NIST P-521 elliptic curve, AKA SECG curve SECP521R1. */
|
||||
KnownJsonWebKeyCurveName["P521"] = "P-521";
|
||||
/** The SECG SECP256K1 elliptic curve. */
|
||||
KnownJsonWebKeyCurveName["P256K"] = "P-256K";
|
||||
})(KnownJsonWebKeyCurveName || (exports.KnownJsonWebKeyCurveName = KnownJsonWebKeyCurveName = {}));
|
||||
function keyReleasePolicySerializer(item) {
|
||||
return {
|
||||
contentType: item["contentType"],
|
||||
immutable: item["immutable"],
|
||||
data: !item["encodedPolicy"]
|
||||
? item["encodedPolicy"]
|
||||
: (0, core_util_1.uint8ArrayToString)(item["encodedPolicy"], "base64url"),
|
||||
};
|
||||
}
|
||||
function keyReleasePolicyDeserializer(item) {
|
||||
return {
|
||||
contentType: item["contentType"],
|
||||
immutable: item["immutable"],
|
||||
encodedPolicy: !item["data"]
|
||||
? item["data"]
|
||||
: typeof item["data"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["data"], "base64url")
|
||||
: item["data"],
|
||||
};
|
||||
}
|
||||
function keyBundleDeserializer(item) {
|
||||
return {
|
||||
key: !item["key"] ? item["key"] : jsonWebKeyDeserializer(item["key"]),
|
||||
attributes: !item["attributes"]
|
||||
? item["attributes"]
|
||||
: keyAttributesDeserializer(item["attributes"]),
|
||||
tags: item["tags"],
|
||||
managed: item["managed"],
|
||||
releasePolicy: !item["release_policy"]
|
||||
? item["release_policy"]
|
||||
: keyReleasePolicyDeserializer(item["release_policy"]),
|
||||
};
|
||||
}
|
||||
function jsonWebKeySerializer(item) {
|
||||
return {
|
||||
kid: item["kid"],
|
||||
kty: item["kty"],
|
||||
key_ops: !item["keyOps"]
|
||||
? item["keyOps"]
|
||||
: item["keyOps"].map((p) => {
|
||||
return p;
|
||||
}),
|
||||
n: !item["n"] ? item["n"] : (0, core_util_1.uint8ArrayToString)(item["n"], "base64url"),
|
||||
e: !item["e"] ? item["e"] : (0, core_util_1.uint8ArrayToString)(item["e"], "base64url"),
|
||||
d: !item["d"] ? item["d"] : (0, core_util_1.uint8ArrayToString)(item["d"], "base64url"),
|
||||
dp: !item["dp"] ? item["dp"] : (0, core_util_1.uint8ArrayToString)(item["dp"], "base64url"),
|
||||
dq: !item["dq"] ? item["dq"] : (0, core_util_1.uint8ArrayToString)(item["dq"], "base64url"),
|
||||
qi: !item["qi"] ? item["qi"] : (0, core_util_1.uint8ArrayToString)(item["qi"], "base64url"),
|
||||
p: !item["p"] ? item["p"] : (0, core_util_1.uint8ArrayToString)(item["p"], "base64url"),
|
||||
q: !item["q"] ? item["q"] : (0, core_util_1.uint8ArrayToString)(item["q"], "base64url"),
|
||||
k: !item["k"] ? item["k"] : (0, core_util_1.uint8ArrayToString)(item["k"], "base64url"),
|
||||
key_hsm: !item["t"]
|
||||
? item["t"]
|
||||
: (0, core_util_1.uint8ArrayToString)(item["t"], "base64url"),
|
||||
crv: item["crv"],
|
||||
x: !item["x"] ? item["x"] : (0, core_util_1.uint8ArrayToString)(item["x"], "base64url"),
|
||||
y: !item["y"] ? item["y"] : (0, core_util_1.uint8ArrayToString)(item["y"], "base64url"),
|
||||
};
|
||||
}
|
||||
function jsonWebKeyDeserializer(item) {
|
||||
return {
|
||||
kid: item["kid"],
|
||||
kty: item["kty"],
|
||||
keyOps: !item["key_ops"]
|
||||
? item["key_ops"]
|
||||
: item["key_ops"].map((p) => {
|
||||
return p;
|
||||
}),
|
||||
n: !item["n"]
|
||||
? item["n"]
|
||||
: typeof item["n"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["n"], "base64url")
|
||||
: item["n"],
|
||||
e: !item["e"]
|
||||
? item["e"]
|
||||
: typeof item["e"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["e"], "base64url")
|
||||
: item["e"],
|
||||
d: !item["d"]
|
||||
? item["d"]
|
||||
: typeof item["d"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["d"], "base64url")
|
||||
: item["d"],
|
||||
dp: !item["dp"]
|
||||
? item["dp"]
|
||||
: typeof item["dp"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["dp"], "base64url")
|
||||
: item["dp"],
|
||||
dq: !item["dq"]
|
||||
? item["dq"]
|
||||
: typeof item["dq"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["dq"], "base64url")
|
||||
: item["dq"],
|
||||
qi: !item["qi"]
|
||||
? item["qi"]
|
||||
: typeof item["qi"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["qi"], "base64url")
|
||||
: item["qi"],
|
||||
p: !item["p"]
|
||||
? item["p"]
|
||||
: typeof item["p"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["p"], "base64url")
|
||||
: item["p"],
|
||||
q: !item["q"]
|
||||
? item["q"]
|
||||
: typeof item["q"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["q"], "base64url")
|
||||
: item["q"],
|
||||
k: !item["k"]
|
||||
? item["k"]
|
||||
: typeof item["k"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["k"], "base64url")
|
||||
: item["k"],
|
||||
t: !item["key_hsm"]
|
||||
? item["key_hsm"]
|
||||
: typeof item["key_hsm"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["key_hsm"], "base64url")
|
||||
: item["key_hsm"],
|
||||
crv: item["crv"],
|
||||
x: !item["x"]
|
||||
? item["x"]
|
||||
: typeof item["x"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["x"], "base64url")
|
||||
: item["x"],
|
||||
y: !item["y"]
|
||||
? item["y"]
|
||||
: typeof item["y"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["y"], "base64url")
|
||||
: item["y"],
|
||||
};
|
||||
}
|
||||
function keyVaultErrorDeserializer(item) {
|
||||
return {
|
||||
error: !item["error"]
|
||||
? item["error"]
|
||||
: _keyVaultErrorErrorDeserializer(item["error"]),
|
||||
};
|
||||
}
|
||||
function _keyVaultErrorErrorDeserializer(item) {
|
||||
return {
|
||||
code: item["code"],
|
||||
message: item["message"],
|
||||
innerError: !item["innererror"]
|
||||
? item["innererror"]
|
||||
: _keyVaultErrorErrorDeserializer(item["innererror"]),
|
||||
};
|
||||
}
|
||||
function keyImportParametersSerializer(item) {
|
||||
return {
|
||||
Hsm: item["hsm"],
|
||||
key: jsonWebKeySerializer(item["key"]),
|
||||
attributes: !item["keyAttributes"]
|
||||
? item["keyAttributes"]
|
||||
: keyAttributesSerializer(item["keyAttributes"]),
|
||||
tags: item["tags"],
|
||||
release_policy: !item["releasePolicy"]
|
||||
? item["releasePolicy"]
|
||||
: keyReleasePolicySerializer(item["releasePolicy"]),
|
||||
};
|
||||
}
|
||||
function deletedKeyBundleDeserializer(item) {
|
||||
return {
|
||||
key: !item["key"] ? item["key"] : jsonWebKeyDeserializer(item["key"]),
|
||||
attributes: !item["attributes"]
|
||||
? item["attributes"]
|
||||
: keyAttributesDeserializer(item["attributes"]),
|
||||
tags: item["tags"],
|
||||
managed: item["managed"],
|
||||
releasePolicy: !item["release_policy"]
|
||||
? item["release_policy"]
|
||||
: keyReleasePolicyDeserializer(item["release_policy"]),
|
||||
recoveryId: item["recoveryId"],
|
||||
scheduledPurgeDate: !item["scheduledPurgeDate"]
|
||||
? item["scheduledPurgeDate"]
|
||||
: new Date(item["scheduledPurgeDate"] * 1000),
|
||||
deletedDate: !item["deletedDate"]
|
||||
? item["deletedDate"]
|
||||
: new Date(item["deletedDate"] * 1000),
|
||||
};
|
||||
}
|
||||
function keyUpdateParametersSerializer(item) {
|
||||
return {
|
||||
key_ops: !item["keyOps"]
|
||||
? item["keyOps"]
|
||||
: item["keyOps"].map((p) => {
|
||||
return p;
|
||||
}),
|
||||
attributes: !item["keyAttributes"]
|
||||
? item["keyAttributes"]
|
||||
: keyAttributesSerializer(item["keyAttributes"]),
|
||||
tags: item["tags"],
|
||||
release_policy: !item["releasePolicy"]
|
||||
? item["releasePolicy"]
|
||||
: keyReleasePolicySerializer(item["releasePolicy"]),
|
||||
};
|
||||
}
|
||||
function _keyListResultDeserializer(item) {
|
||||
return {
|
||||
value: !item["value"]
|
||||
? item["value"]
|
||||
: keyItemArrayDeserializer(item["value"]),
|
||||
nextLink: item["nextLink"],
|
||||
};
|
||||
}
|
||||
function keyItemArrayDeserializer(result) {
|
||||
return result.map((item) => {
|
||||
return keyItemDeserializer(item);
|
||||
});
|
||||
}
|
||||
function keyItemDeserializer(item) {
|
||||
return {
|
||||
kid: item["kid"],
|
||||
attributes: !item["attributes"]
|
||||
? item["attributes"]
|
||||
: keyAttributesDeserializer(item["attributes"]),
|
||||
tags: item["tags"],
|
||||
managed: item["managed"],
|
||||
};
|
||||
}
|
||||
function backupKeyResultDeserializer(item) {
|
||||
return {
|
||||
value: !item["value"]
|
||||
? item["value"]
|
||||
: typeof item["value"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["value"], "base64url")
|
||||
: item["value"],
|
||||
};
|
||||
}
|
||||
function keyRestoreParametersSerializer(item) {
|
||||
return { value: (0, core_util_1.uint8ArrayToString)(item["keyBundleBackup"], "base64url") };
|
||||
}
|
||||
function keyOperationsParametersSerializer(item) {
|
||||
return {
|
||||
alg: item["algorithm"],
|
||||
value: (0, core_util_1.uint8ArrayToString)(item["value"], "base64url"),
|
||||
iv: !item["iv"] ? item["iv"] : (0, core_util_1.uint8ArrayToString)(item["iv"], "base64url"),
|
||||
aad: !item["aad"]
|
||||
? item["aad"]
|
||||
: (0, core_util_1.uint8ArrayToString)(item["aad"], "base64url"),
|
||||
tag: !item["tag"]
|
||||
? item["tag"]
|
||||
: (0, core_util_1.uint8ArrayToString)(item["tag"], "base64url"),
|
||||
};
|
||||
}
|
||||
/** An algorithm used for encryption and decryption. */
|
||||
var KnownJsonWebKeyEncryptionAlgorithm;
|
||||
(function (KnownJsonWebKeyEncryptionAlgorithm) {
|
||||
/** [Not recommended] RSAES using Optimal Asymmetric Encryption Padding (OAEP), as described in https://tools.ietf.org/html/rfc3447, with the default parameters specified by RFC 3447 in Section A.2.1. Those default parameters are using a hash function of SHA-1 and a mask generation function of MGF1 with SHA-1. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_OAEP, which is included solely for backwards compatibility. RSA_OAEP utilizes SHA1, which has known collision problems. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["RSAOaep"] = "RSA-OAEP";
|
||||
/** RSAES using Optimal Asymmetric Encryption Padding with a hash function of SHA-256 and a mask generation function of MGF1 with SHA-256. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["RSAOaep256"] = "RSA-OAEP-256";
|
||||
/** [Not recommended] RSAES-PKCS1-V1_5 key encryption, as described in https://tools.ietf.org/html/rfc3447. Microsoft recommends using RSA_OAEP_256 or stronger algorithms for enhanced security. Microsoft does *not* recommend RSA_1_5, which is included solely for backwards compatibility. Cryptographic standards no longer consider RSA with the PKCS#1 v1.5 padding scheme secure for encryption. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["RSA15"] = "RSA1_5";
|
||||
/** 128-bit AES-GCM. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A128GCM"] = "A128GCM";
|
||||
/** 192-bit AES-GCM. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A192GCM"] = "A192GCM";
|
||||
/** 256-bit AES-GCM. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A256GCM"] = "A256GCM";
|
||||
/** 128-bit AES key wrap. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A128KW"] = "A128KW";
|
||||
/** 192-bit AES key wrap. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A192KW"] = "A192KW";
|
||||
/** 256-bit AES key wrap. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A256KW"] = "A256KW";
|
||||
/** 128-bit AES-CBC. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A128CBC"] = "A128CBC";
|
||||
/** 192-bit AES-CBC. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A192CBC"] = "A192CBC";
|
||||
/** 256-bit AES-CBC. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A256CBC"] = "A256CBC";
|
||||
/** 128-bit AES-CBC with PKCS padding. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A128Cbcpad"] = "A128CBCPAD";
|
||||
/** 192-bit AES-CBC with PKCS padding. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A192Cbcpad"] = "A192CBCPAD";
|
||||
/** 256-bit AES-CBC with PKCS padding. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["A256Cbcpad"] = "A256CBCPAD";
|
||||
/** CKM AES key wrap. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["CkmAesKeyWrap"] = "CKM_AES_KEY_WRAP";
|
||||
/** CKM AES key wrap with padding. */
|
||||
KnownJsonWebKeyEncryptionAlgorithm["CkmAesKeyWrapPad"] = "CKM_AES_KEY_WRAP_PAD";
|
||||
})(KnownJsonWebKeyEncryptionAlgorithm || (exports.KnownJsonWebKeyEncryptionAlgorithm = KnownJsonWebKeyEncryptionAlgorithm = {}));
|
||||
function keyOperationResultDeserializer(item) {
|
||||
return {
|
||||
kid: item["kid"],
|
||||
result: !item["value"]
|
||||
? item["value"]
|
||||
: typeof item["value"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["value"], "base64url")
|
||||
: item["value"],
|
||||
iv: !item["iv"]
|
||||
? item["iv"]
|
||||
: typeof item["iv"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["iv"], "base64url")
|
||||
: item["iv"],
|
||||
authenticationTag: !item["tag"]
|
||||
? item["tag"]
|
||||
: typeof item["tag"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["tag"], "base64url")
|
||||
: item["tag"],
|
||||
additionalAuthenticatedData: !item["aad"]
|
||||
? item["aad"]
|
||||
: typeof item["aad"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["aad"], "base64url")
|
||||
: item["aad"],
|
||||
};
|
||||
}
|
||||
function keySignParametersSerializer(item) {
|
||||
return {
|
||||
alg: item["algorithm"],
|
||||
value: (0, core_util_1.uint8ArrayToString)(item["value"], "base64url"),
|
||||
};
|
||||
}
|
||||
/** The signing/verification algorithm identifier. For more information on possible algorithm types, see JsonWebKeySignatureAlgorithm. */
|
||||
var KnownJsonWebKeySignatureAlgorithm;
|
||||
(function (KnownJsonWebKeySignatureAlgorithm) {
|
||||
/** RSASSA-PSS using SHA-256 and MGF1 with SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["PS256"] = "PS256";
|
||||
/** RSASSA-PSS using SHA-384 and MGF1 with SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["PS384"] = "PS384";
|
||||
/** RSASSA-PSS using SHA-512 and MGF1 with SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["PS512"] = "PS512";
|
||||
/** RSASSA-PKCS1-v1_5 using SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["RS256"] = "RS256";
|
||||
/** RSASSA-PKCS1-v1_5 using SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["RS384"] = "RS384";
|
||||
/** RSASSA-PKCS1-v1_5 using SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["RS512"] = "RS512";
|
||||
/** HMAC using SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["HS256"] = "HS256";
|
||||
/** HMAC using SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["HS384"] = "HS384";
|
||||
/** HMAC using SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["HS512"] = "HS512";
|
||||
/** Reserved */
|
||||
KnownJsonWebKeySignatureAlgorithm["Rsnull"] = "RSNULL";
|
||||
/** ECDSA using P-256 and SHA-256, as described in https://tools.ietf.org/html/rfc7518. */
|
||||
KnownJsonWebKeySignatureAlgorithm["ES256"] = "ES256";
|
||||
/** ECDSA using P-384 and SHA-384, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["ES384"] = "ES384";
|
||||
/** ECDSA using P-521 and SHA-512, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["ES512"] = "ES512";
|
||||
/** ECDSA using P-256K and SHA-256, as described in https://tools.ietf.org/html/rfc7518 */
|
||||
KnownJsonWebKeySignatureAlgorithm["ES256K"] = "ES256K";
|
||||
})(KnownJsonWebKeySignatureAlgorithm || (exports.KnownJsonWebKeySignatureAlgorithm = KnownJsonWebKeySignatureAlgorithm = {}));
|
||||
function keyVerifyParametersSerializer(item) {
|
||||
return {
|
||||
alg: item["algorithm"],
|
||||
digest: (0, core_util_1.uint8ArrayToString)(item["digest"], "base64url"),
|
||||
value: (0, core_util_1.uint8ArrayToString)(item["signature"], "base64url"),
|
||||
};
|
||||
}
|
||||
function keyVerifyResultDeserializer(item) {
|
||||
return {
|
||||
value: item["value"],
|
||||
};
|
||||
}
|
||||
function keyReleaseParametersSerializer(item) {
|
||||
return {
|
||||
target: item["targetAttestationToken"],
|
||||
nonce: item["nonce"],
|
||||
enc: item["enc"],
|
||||
};
|
||||
}
|
||||
/** The encryption algorithm to use to protected the exported key material */
|
||||
var KnownKeyEncryptionAlgorithm;
|
||||
(function (KnownKeyEncryptionAlgorithm) {
|
||||
/** The CKM_RSA_AES_KEY_WRAP key wrap mechanism. */
|
||||
KnownKeyEncryptionAlgorithm["CkmRsaAesKeyWrap"] = "CKM_RSA_AES_KEY_WRAP";
|
||||
/** The RSA_AES_KEY_WRAP_256 key wrap mechanism. */
|
||||
KnownKeyEncryptionAlgorithm["RsaAesKeyWrap256"] = "RSA_AES_KEY_WRAP_256";
|
||||
/** The RSA_AES_KEY_WRAP_384 key wrap mechanism. */
|
||||
KnownKeyEncryptionAlgorithm["RsaAesKeyWrap384"] = "RSA_AES_KEY_WRAP_384";
|
||||
})(KnownKeyEncryptionAlgorithm || (exports.KnownKeyEncryptionAlgorithm = KnownKeyEncryptionAlgorithm = {}));
|
||||
function keyReleaseResultDeserializer(item) {
|
||||
return {
|
||||
value: item["value"],
|
||||
};
|
||||
}
|
||||
function _deletedKeyListResultDeserializer(item) {
|
||||
return {
|
||||
value: !item["value"]
|
||||
? item["value"]
|
||||
: deletedKeyItemArrayDeserializer(item["value"]),
|
||||
nextLink: item["nextLink"],
|
||||
};
|
||||
}
|
||||
function deletedKeyItemArrayDeserializer(result) {
|
||||
return result.map((item) => {
|
||||
return deletedKeyItemDeserializer(item);
|
||||
});
|
||||
}
|
||||
function deletedKeyItemDeserializer(item) {
|
||||
return {
|
||||
kid: item["kid"],
|
||||
attributes: !item["attributes"]
|
||||
? item["attributes"]
|
||||
: keyAttributesDeserializer(item["attributes"]),
|
||||
tags: item["tags"],
|
||||
managed: item["managed"],
|
||||
recoveryId: item["recoveryId"],
|
||||
scheduledPurgeDate: !item["scheduledPurgeDate"]
|
||||
? item["scheduledPurgeDate"]
|
||||
: new Date(item["scheduledPurgeDate"] * 1000),
|
||||
deletedDate: !item["deletedDate"]
|
||||
? item["deletedDate"]
|
||||
: new Date(item["deletedDate"] * 1000),
|
||||
};
|
||||
}
|
||||
function keyRotationPolicySerializer(item) {
|
||||
return {
|
||||
lifetimeActions: !item["lifetimeActions"]
|
||||
? item["lifetimeActions"]
|
||||
: lifetimeActionsArraySerializer(item["lifetimeActions"]),
|
||||
attributes: !item["attributes"]
|
||||
? item["attributes"]
|
||||
: keyRotationPolicyAttributesSerializer(item["attributes"]),
|
||||
};
|
||||
}
|
||||
function keyRotationPolicyDeserializer(item) {
|
||||
return {
|
||||
id: item["id"],
|
||||
lifetimeActions: !item["lifetimeActions"]
|
||||
? item["lifetimeActions"]
|
||||
: lifetimeActionsArrayDeserializer(item["lifetimeActions"]),
|
||||
attributes: !item["attributes"]
|
||||
? item["attributes"]
|
||||
: keyRotationPolicyAttributesDeserializer(item["attributes"]),
|
||||
};
|
||||
}
|
||||
function lifetimeActionsArraySerializer(result) {
|
||||
return result.map((item) => {
|
||||
return lifetimeActionsSerializer(item);
|
||||
});
|
||||
}
|
||||
function lifetimeActionsArrayDeserializer(result) {
|
||||
return result.map((item) => {
|
||||
return lifetimeActionsDeserializer(item);
|
||||
});
|
||||
}
|
||||
function lifetimeActionsSerializer(item) {
|
||||
return {
|
||||
trigger: !item["trigger"]
|
||||
? item["trigger"]
|
||||
: lifetimeActionsTriggerSerializer(item["trigger"]),
|
||||
action: !item["action"]
|
||||
? item["action"]
|
||||
: lifetimeActionsTypeSerializer(item["action"]),
|
||||
};
|
||||
}
|
||||
function lifetimeActionsDeserializer(item) {
|
||||
return {
|
||||
trigger: !item["trigger"]
|
||||
? item["trigger"]
|
||||
: lifetimeActionsTriggerDeserializer(item["trigger"]),
|
||||
action: !item["action"]
|
||||
? item["action"]
|
||||
: lifetimeActionsTypeDeserializer(item["action"]),
|
||||
};
|
||||
}
|
||||
function lifetimeActionsTriggerSerializer(item) {
|
||||
return {
|
||||
timeAfterCreate: item["timeAfterCreate"],
|
||||
timeBeforeExpiry: item["timeBeforeExpiry"],
|
||||
};
|
||||
}
|
||||
function lifetimeActionsTriggerDeserializer(item) {
|
||||
return {
|
||||
timeAfterCreate: item["timeAfterCreate"],
|
||||
timeBeforeExpiry: item["timeBeforeExpiry"],
|
||||
};
|
||||
}
|
||||
function lifetimeActionsTypeSerializer(item) {
|
||||
return { type: item["type"] };
|
||||
}
|
||||
function lifetimeActionsTypeDeserializer(item) {
|
||||
return {
|
||||
type: item["type"],
|
||||
};
|
||||
}
|
||||
function keyRotationPolicyAttributesSerializer(item) {
|
||||
return { expiryTime: item["expiryTime"] };
|
||||
}
|
||||
function keyRotationPolicyAttributesDeserializer(item) {
|
||||
return {
|
||||
expiryTime: item["expiryTime"],
|
||||
created: !item["created"]
|
||||
? item["created"]
|
||||
: new Date(item["created"] * 1000),
|
||||
updated: !item["updated"]
|
||||
? item["updated"]
|
||||
: new Date(item["updated"] * 1000),
|
||||
};
|
||||
}
|
||||
function getRandomBytesRequestSerializer(item) {
|
||||
return { count: item["count"] };
|
||||
}
|
||||
function randomBytesDeserializer(item) {
|
||||
return {
|
||||
value: typeof item["value"] === "string"
|
||||
? (0, core_util_1.stringToUint8Array)(item["value"], "base64url")
|
||||
: item["value"],
|
||||
};
|
||||
}
|
||||
/** The available API versions. */
|
||||
var KnownVersions;
|
||||
(function (KnownVersions) {
|
||||
/** The 7.5 API version. */
|
||||
KnownVersions["V75"] = "7.5";
|
||||
/** The 7.6-preview.2 API version. */
|
||||
KnownVersions["V76Preview2"] = "7.6-preview.2";
|
||||
/** The 7.6 API version. */
|
||||
KnownVersions["V76"] = "7.6";
|
||||
})(KnownVersions || (exports.KnownVersions = KnownVersions = {}));
|
||||
//# sourceMappingURL=models.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/models.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/models/models.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
72
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/pagingHelpers.d.ts
generated
vendored
Normal file
72
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/pagingHelpers.d.ts
generated
vendored
Normal file
@ -0,0 +1,72 @@
|
||||
import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
|
||||
/**
|
||||
* Options for the byPage method
|
||||
*/
|
||||
export interface PageSettings {
|
||||
/**
|
||||
* A reference to a specific page to start iterating from.
|
||||
*/
|
||||
continuationToken?: string;
|
||||
}
|
||||
/**
|
||||
* An interface that describes a page of results.
|
||||
*/
|
||||
export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
|
||||
/**
|
||||
* The token that keeps track of where to continue the iterator
|
||||
*/
|
||||
continuationToken?: string;
|
||||
};
|
||||
/**
|
||||
* An interface that allows async iterable iteration both to completion and by page.
|
||||
*/
|
||||
export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
||||
/**
|
||||
* The next method, part of the iteration protocol
|
||||
*/
|
||||
next(): Promise<IteratorResult<TElement>>;
|
||||
/**
|
||||
* The connection to the async iterator, part of the iteration protocol
|
||||
*/
|
||||
[Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
||||
/**
|
||||
* Return an AsyncIterableIterator that works a page at a time
|
||||
*/
|
||||
byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
||||
}
|
||||
/**
|
||||
* An interface that describes how to communicate with the service.
|
||||
*/
|
||||
export interface PagedResult<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
|
||||
/**
|
||||
* Link to the first page of results.
|
||||
*/
|
||||
firstPageLink?: string;
|
||||
/**
|
||||
* A method that returns a page of results.
|
||||
*/
|
||||
getPage: (pageLink?: string) => Promise<{
|
||||
page: TPage;
|
||||
nextPageLink?: string;
|
||||
} | undefined>;
|
||||
/**
|
||||
* a function to implement the `byPage` method on the paged async iterator.
|
||||
*/
|
||||
byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
|
||||
/**
|
||||
* A function to extract elements from a page.
|
||||
*/
|
||||
toElements?: (page: TPage) => TElement[];
|
||||
}
|
||||
/**
|
||||
* Options for the paging helper
|
||||
*/
|
||||
export interface BuildPagedAsyncIteratorOptions {
|
||||
itemName?: string;
|
||||
nextLinkName?: string;
|
||||
}
|
||||
/**
|
||||
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
||||
*/
|
||||
export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
|
||||
//# sourceMappingURL=pagingHelpers.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/pagingHelpers.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/pagingHelpers.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../../src/generated/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,MAAM,EAEN,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAGjC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,KAAK,GAAG;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,0BAA0B,CAClD,QAAQ,EACR,KAAK,EACL,aAAa,CACd,CAAC;IACF;;OAEG;IACH,MAAM,EAAE,CACN,QAAQ,CAAC,EAAE,aAAa,KACrB,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;CAC9D;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAC1B,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,CACP,QAAQ,CAAC,EAAE,MAAM,KACd,OAAO,CAAC;QAAE,IAAI,EAAE,KAAK,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,MAAM,CAAC,EAAE,CACP,QAAQ,CAAC,EAAE,aAAa,KACrB,qBAAqB,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IAE7D;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,QAAQ,EAAE,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAE/D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,EAChD,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,CAAC,OAAO,CAAC,EAChE,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"}
|
||||
142
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/pagingHelpers.js
generated
vendored
Normal file
142
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/pagingHelpers.js
generated
vendored
Normal file
@ -0,0 +1,142 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.buildPagedAsyncIterator = buildPagedAsyncIterator;
|
||||
const tslib_1 = require("tslib");
|
||||
const core_client_1 = require("@azure-rest/core-client");
|
||||
const core_rest_pipeline_1 = require("@azure/core-rest-pipeline");
|
||||
/**
|
||||
* Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
|
||||
*/
|
||||
function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
|
||||
var _a, _b;
|
||||
const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
|
||||
const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
|
||||
const pagedResult = {
|
||||
getPage: async (pageLink) => {
|
||||
const result = pageLink === undefined
|
||||
? await getInitialResponse()
|
||||
: await client.pathUnchecked(pageLink).get();
|
||||
checkPagingRequest(result, expectedStatuses);
|
||||
const results = await processResponseBody(result);
|
||||
const nextLink = getNextLink(results, nextLinkName);
|
||||
const values = getElements(results, itemName);
|
||||
return {
|
||||
page: values,
|
||||
nextPageLink: nextLink,
|
||||
};
|
||||
},
|
||||
byPage: (settings) => {
|
||||
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
||||
return getPageAsyncIterator(pagedResult, {
|
||||
pageLink: continuationToken,
|
||||
});
|
||||
},
|
||||
};
|
||||
return getPagedAsyncIterator(pagedResult);
|
||||
}
|
||||
/**
|
||||
* returns an async iterator that iterates over results. It also has a `byPage`
|
||||
* method that returns pages of items at once.
|
||||
*
|
||||
* @param pagedResult - an object that specifies how to get pages.
|
||||
* @returns a paged async iterator that iterates over results.
|
||||
*/
|
||||
function getPagedAsyncIterator(pagedResult) {
|
||||
var _a;
|
||||
const iter = getItemAsyncIterator(pagedResult);
|
||||
return {
|
||||
next() {
|
||||
return iter.next();
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this;
|
||||
},
|
||||
byPage: (_a = pagedResult === null || pagedResult === void 0 ? void 0 : pagedResult.byPage) !== null && _a !== void 0 ? _a : ((settings) => {
|
||||
const { continuationToken } = settings !== null && settings !== void 0 ? settings : {};
|
||||
return getPageAsyncIterator(pagedResult, {
|
||||
pageLink: continuationToken,
|
||||
});
|
||||
}),
|
||||
};
|
||||
}
|
||||
function getItemAsyncIterator(pagedResult) {
|
||||
return tslib_1.__asyncGenerator(this, arguments, function* getItemAsyncIterator_1() {
|
||||
var _a, e_1, _b, _c;
|
||||
const pages = getPageAsyncIterator(pagedResult);
|
||||
try {
|
||||
for (var _d = true, pages_1 = tslib_1.__asyncValues(pages), pages_1_1; pages_1_1 = yield tslib_1.__await(pages_1.next()), _a = pages_1_1.done, !_a; _d = true) {
|
||||
_c = pages_1_1.value;
|
||||
_d = false;
|
||||
const page = _c;
|
||||
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (!_d && !_a && (_b = pages_1.return)) yield tslib_1.__await(_b.call(pages_1));
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
});
|
||||
}
|
||||
function getPageAsyncIterator(pagedResult_1) {
|
||||
return tslib_1.__asyncGenerator(this, arguments, function* getPageAsyncIterator_1(pagedResult, options = {}) {
|
||||
const { pageLink } = options;
|
||||
let response = yield tslib_1.__await(pagedResult.getPage(pageLink !== null && pageLink !== void 0 ? pageLink : pagedResult.firstPageLink));
|
||||
if (!response) {
|
||||
return yield tslib_1.__await(void 0);
|
||||
}
|
||||
let result = response.page;
|
||||
result.continuationToken = response.nextPageLink;
|
||||
yield yield tslib_1.__await(result);
|
||||
while (response.nextPageLink) {
|
||||
response = yield tslib_1.__await(pagedResult.getPage(response.nextPageLink));
|
||||
if (!response) {
|
||||
return yield tslib_1.__await(void 0);
|
||||
}
|
||||
result = response.page;
|
||||
result.continuationToken = response.nextPageLink;
|
||||
yield yield tslib_1.__await(result);
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Gets for the value of nextLink in the body
|
||||
*/
|
||||
function getNextLink(body, nextLinkName) {
|
||||
if (!nextLinkName) {
|
||||
return undefined;
|
||||
}
|
||||
const nextLink = body[nextLinkName];
|
||||
if (typeof nextLink !== "string" &&
|
||||
typeof nextLink !== "undefined" &&
|
||||
nextLink !== null) {
|
||||
throw new core_rest_pipeline_1.RestError(`Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`);
|
||||
}
|
||||
if (nextLink === null) {
|
||||
return undefined;
|
||||
}
|
||||
return nextLink;
|
||||
}
|
||||
/**
|
||||
* Gets the elements of the current request in the body.
|
||||
*/
|
||||
function getElements(body, itemName) {
|
||||
const value = body[itemName];
|
||||
if (!Array.isArray(value)) {
|
||||
throw new core_rest_pipeline_1.RestError(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
|
||||
}
|
||||
return value !== null && value !== void 0 ? value : [];
|
||||
}
|
||||
/**
|
||||
* Checks if a request failed
|
||||
*/
|
||||
function checkPagingRequest(response, expectedStatuses) {
|
||||
if (!expectedStatuses.includes(response.status)) {
|
||||
throw (0, core_client_1.createRestError)(`Pagination failed with unexpected statusCode ${response.status}`, response);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=pagingHelpers.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/pagingHelpers.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/pagingHelpers.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
5
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/urlTemplate.d.ts
generated
vendored
Normal file
5
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/urlTemplate.d.ts
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export interface UrlTemplateOptions {
|
||||
allowReserved?: boolean;
|
||||
}
|
||||
export declare function expandUrlTemplate(template: string, context: Record<string, any>, option?: UrlTemplateOptions): string;
|
||||
//# sourceMappingURL=urlTemplate.d.ts.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/urlTemplate.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/urlTemplate.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"urlTemplate.d.ts","sourceRoot":"","sources":["../../../../src/generated/static-helpers/urlTemplate.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,kBAAkB;IAEjC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAmJD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,MAAM,CAAC,EAAE,kBAAkB,GAC1B,MAAM,CA8BR"}
|
||||
175
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/urlTemplate.js
generated
vendored
Normal file
175
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/urlTemplate.js
generated
vendored
Normal file
@ -0,0 +1,175 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.expandUrlTemplate = expandUrlTemplate;
|
||||
// ---------------------
|
||||
// helpers
|
||||
// ---------------------
|
||||
function encodeComponent(val, reserved, op) {
|
||||
return (reserved !== null && reserved !== void 0 ? reserved : op === "+") || op === "#"
|
||||
? encodeReservedComponent(val)
|
||||
: encodeRFC3986URIComponent(val);
|
||||
}
|
||||
function encodeReservedComponent(str) {
|
||||
return str
|
||||
.split(/(%[0-9A-Fa-f]{2})/g)
|
||||
.map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))
|
||||
.join("");
|
||||
}
|
||||
function encodeRFC3986URIComponent(str) {
|
||||
return encodeURIComponent(str).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|
||||
}
|
||||
function isDefined(val) {
|
||||
return val !== undefined && val !== null;
|
||||
}
|
||||
function getNamedAndIfEmpty(op) {
|
||||
return [
|
||||
!!op && [";", "?", "&"].includes(op),
|
||||
!!op && ["?", "&"].includes(op) ? "=" : "",
|
||||
];
|
||||
}
|
||||
function getFirstOrSep(op, isFirst = false) {
|
||||
if (isFirst) {
|
||||
return !op || op === "+" ? "" : op;
|
||||
}
|
||||
else if (!op || op === "+" || op === "#") {
|
||||
return ",";
|
||||
}
|
||||
else if (op === "?") {
|
||||
return "&";
|
||||
}
|
||||
else {
|
||||
return op;
|
||||
}
|
||||
}
|
||||
function getExpandedValue(option) {
|
||||
let isFirst = option.isFirst;
|
||||
const { op, varName, varValue: value, reserved } = option;
|
||||
const vals = [];
|
||||
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
||||
if (Array.isArray(value)) {
|
||||
for (const val of value.filter(isDefined)) {
|
||||
// prepare the following parts: separator, varName, value
|
||||
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
||||
if (named && varName) {
|
||||
vals.push(`${encodeURIComponent(varName)}`);
|
||||
val === "" ? vals.push(ifEmpty) : vals.push("=");
|
||||
}
|
||||
vals.push(encodeComponent(val, reserved, op));
|
||||
isFirst = false;
|
||||
}
|
||||
}
|
||||
else if (typeof value === "object") {
|
||||
for (const key of Object.keys(value)) {
|
||||
const val = value[key];
|
||||
if (!isDefined(val)) {
|
||||
continue;
|
||||
}
|
||||
// prepare the following parts: separator, key, value
|
||||
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
||||
if (key) {
|
||||
vals.push(`${encodeURIComponent(key)}`);
|
||||
named && val === "" ? vals.push(ifEmpty) : vals.push("=");
|
||||
}
|
||||
vals.push(encodeComponent(val, reserved, op));
|
||||
isFirst = false;
|
||||
}
|
||||
}
|
||||
return vals.join("");
|
||||
}
|
||||
function getNonExpandedValue(option) {
|
||||
const { op, varName, varValue: value, isFirst, reserved } = option;
|
||||
const vals = [];
|
||||
const first = getFirstOrSep(op, isFirst);
|
||||
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
||||
if (named && varName) {
|
||||
vals.push(encodeComponent(varName, reserved, op));
|
||||
if (value === "") {
|
||||
if (!ifEmpty) {
|
||||
vals.push(ifEmpty);
|
||||
}
|
||||
return !vals.join("") ? undefined : `${first}${vals.join("")}`;
|
||||
}
|
||||
vals.push("=");
|
||||
}
|
||||
const items = [];
|
||||
if (Array.isArray(value)) {
|
||||
for (const val of value.filter(isDefined)) {
|
||||
items.push(encodeComponent(val, reserved, op));
|
||||
}
|
||||
}
|
||||
else if (typeof value === "object") {
|
||||
for (const key of Object.keys(value)) {
|
||||
if (!isDefined(value[key])) {
|
||||
continue;
|
||||
}
|
||||
items.push(encodeRFC3986URIComponent(key));
|
||||
items.push(encodeComponent(value[key], reserved, op));
|
||||
}
|
||||
}
|
||||
vals.push(items.join(","));
|
||||
return !vals.join(",") ? undefined : `${first}${vals.join("")}`;
|
||||
}
|
||||
function getVarValue(option) {
|
||||
const { op, varName, modifier, isFirst, reserved, varValue: value } = option;
|
||||
if (!isDefined(value)) {
|
||||
return undefined;
|
||||
}
|
||||
else if (["string", "number", "boolean"].includes(typeof value)) {
|
||||
let val = value.toString();
|
||||
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
||||
const vals = [getFirstOrSep(op, isFirst)];
|
||||
if (named && varName) {
|
||||
// No need to encode varName considering it is already encoded
|
||||
vals.push(varName);
|
||||
val === "" ? vals.push(ifEmpty) : vals.push("=");
|
||||
}
|
||||
if (modifier && modifier !== "*") {
|
||||
val = val.substring(0, parseInt(modifier, 10));
|
||||
}
|
||||
vals.push(encodeComponent(val, reserved, op));
|
||||
return vals.join("");
|
||||
}
|
||||
else if (modifier === "*") {
|
||||
return getExpandedValue(option);
|
||||
}
|
||||
else {
|
||||
return getNonExpandedValue(option);
|
||||
}
|
||||
}
|
||||
// ---------------------------------------------------------------------------------------------------
|
||||
// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.
|
||||
// ---------------------------------------------------------------------------------------------------
|
||||
function expandUrlTemplate(template, context, option) {
|
||||
return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, (_, expr, text) => {
|
||||
if (!expr) {
|
||||
return encodeReservedComponent(text);
|
||||
}
|
||||
let op;
|
||||
if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
|
||||
(op = expr[0]), (expr = expr.slice(1));
|
||||
}
|
||||
const varList = expr.split(/,/g);
|
||||
const result = [];
|
||||
for (const varSpec of varList) {
|
||||
const varMatch = /([^:\*]*)(?::(\d+)|(\*))?/.exec(varSpec);
|
||||
if (!varMatch || !varMatch[1]) {
|
||||
continue;
|
||||
}
|
||||
const varValue = getVarValue({
|
||||
isFirst: result.length === 0,
|
||||
op,
|
||||
varValue: context[varMatch[1]],
|
||||
varName: varMatch[1],
|
||||
modifier: varMatch[2] || varMatch[3],
|
||||
reserved: option === null || option === void 0 ? void 0 : option.allowReserved,
|
||||
});
|
||||
if (varValue) {
|
||||
result.push(varValue);
|
||||
}
|
||||
}
|
||||
return result.join("");
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=urlTemplate.js.map
|
||||
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/urlTemplate.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/keyvault-keys/dist/commonjs/generated/static-helpers/urlTemplate.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user