"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isIEndpointAuthzOptions = void 0;
const cactus_common_1 = require("@hyperledger/cactus-common");
function isIEndpointAuthzOptions(x) {
    var _a, _b;
    return (!!x &&
        Array.isArray((_a = x) === null || _a === void 0 ? void 0 : _a.requiredRoles) &&
        cactus_common_1.Bools.isBooleanStrict((_b = x) === null || _b === void 0 ? void 0 : _b.isProtected));
}
exports.isIEndpointAuthzOptions = isIEndpointAuthzOptions;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1lbmRwb2ludC1hdXRoei1vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vc3JjL21haW4vdHlwZXNjcmlwdC9wbHVnaW4vd2ViLXNlcnZpY2UvaS1lbmRwb2ludC1hdXRoei1vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDhEQUFtRDtBQTZCbkQsU0FBZ0IsdUJBQXVCLENBQ3JDLENBQVU7O0lBRVYsT0FBTyxDQUNMLENBQUMsQ0FBQyxDQUFDO1FBQ0gsS0FBSyxDQUFDLE9BQU8sQ0FBQyxNQUFDLENBQTJCLDBDQUFFLGFBQWEsQ0FBQztRQUMxRCxxQkFBSyxDQUFDLGVBQWUsQ0FBQyxNQUFDLENBQTJCLDBDQUFFLFdBQVcsQ0FBQyxDQUNqRSxDQUFDO0FBQ0osQ0FBQztBQVJELDBEQVFDIn0=