All files / lib/Service/VaultRecovery types.js

100% Statements 9/9
85.71% Branches 6/7
100% Functions 2/2
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17  1x 1x   1x 1x 1x 11x       1x       1x  
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ACL_KEY_PROBE_ID = exports.SHARED_KEY_PROBE_ID = exports.PAYLOAD_FIELDS = void 0;
const Credential_1 = __importDefault(require("../../Model/Credential"));
exports.PAYLOAD_FIELDS = Credential_1.default.ENCRYPTED_FIELDS.filter((field) => field !== 'shared_key');
/**
 * Synthetic probe id for a blob that decrypts with the credential's decrypted `shared_key` (not a vault candidate).
 */
exports.SHARED_KEY_PROBE_ID = '__shared_key__';
/**
 * Synthetic probe id for a blob that decrypts with the ACL key plaintext of a credential shared with us.
 */
exports.ACL_KEY_PROBE_ID = '__acl_key__';