@contember/authorization 1.2.0-alpha.6 → 1.2.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/AccessEvaluator.d.ts +5 -5
- package/dist/src/AccessEvaluator.d.ts.map +1 -1
- package/dist/src/AccessEvaluator.js +5 -4
- package/dist/src/AccessEvaluator.js.map +1 -1
- package/dist/src/AccessNode.d.ts +3 -3
- package/dist/src/AccessNode.d.ts.map +1 -1
- package/dist/src/AccessNode.js +2 -1
- package/dist/src/AccessNode.js.map +1 -1
- package/dist/src/AuthorizationScope.d.ts +2 -2
- package/dist/src/AuthorizationScope.d.ts.map +1 -1
- package/dist/src/AuthorizationScope.js +5 -4
- package/dist/src/AuthorizationScope.js.map +1 -1
- package/dist/src/Authorizator.d.ts +7 -6
- package/dist/src/Authorizator.d.ts.map +1 -1
- package/dist/src/Authorizator.js +4 -3
- package/dist/src/Authorizator.js.map +1 -1
- package/dist/src/Permissions.d.ts +5 -5
- package/dist/src/Permissions.d.ts.map +1 -1
- package/dist/src/Permissions.js +12 -11
- package/dist/src/Permissions.js.map +1 -1
- package/dist/src/index.d.ts +5 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +19 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/AccessEvaluator.ts +6 -6
- package/src/AccessNode.ts +3 -3
- package/src/AuthorizationScope.ts +2 -2
- package/src/Authorizator.ts +9 -9
- package/src/Permissions.ts +19 -13
- package/src/index.ts +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Permissions from './Permissions';
|
|
2
|
-
import AccessNode from './AccessNode';
|
|
3
|
-
import Authorizator from './Authorizator';
|
|
1
|
+
import { Permissions } from './Permissions';
|
|
2
|
+
import { AccessNode } from './AccessNode';
|
|
3
|
+
import { Authorizator } from './Authorizator';
|
|
4
4
|
interface AccessEvaluator {
|
|
5
5
|
evaluate(accessNode: AccessNode, action: Authorizator.Action): Promise<boolean>;
|
|
6
6
|
}
|
|
@@ -8,8 +8,8 @@ declare namespace AccessEvaluator {
|
|
|
8
8
|
class PermissionEvaluator implements AccessEvaluator {
|
|
9
9
|
private readonly permissions;
|
|
10
10
|
constructor(permissions: Permissions);
|
|
11
|
-
evaluate(accessNode: AccessNode, { resource, privilege }: Authorizator.Action): Promise<boolean>;
|
|
11
|
+
evaluate(accessNode: AccessNode, { resource, privilege, meta }: Authorizator.Action<any>): Promise<boolean>;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export { AccessEvaluator };
|
|
15
15
|
//# sourceMappingURL=AccessEvaluator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessEvaluator.d.ts","sourceRoot":"","sources":["../../src/AccessEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"AccessEvaluator.d.ts","sourceRoot":"","sources":["../../src/AccessEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,UAAU,eAAe;IACxB,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC/E;AAED,kBAAU,eAAe,CAAC;IACzB,MAAa,mBAAoB,YAAW,eAAe;QAC9C,OAAO,CAAC,QAAQ,CAAC,WAAW;oBAAX,WAAW,EAAE,WAAW;QAE/C,QAAQ,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;KAWjH;CAGD;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccessEvaluator = void 0;
|
|
3
4
|
const AccessNode_1 = require("./AccessNode");
|
|
4
5
|
var AccessEvaluator;
|
|
5
6
|
(function (AccessEvaluator) {
|
|
@@ -7,12 +8,12 @@ var AccessEvaluator;
|
|
|
7
8
|
constructor(permissions) {
|
|
8
9
|
this.permissions = permissions;
|
|
9
10
|
}
|
|
10
|
-
async evaluate(accessNode, { resource, privilege }) {
|
|
11
|
-
if (!(accessNode instanceof AccessNode_1.
|
|
11
|
+
async evaluate(accessNode, { resource, privilege, meta }) {
|
|
12
|
+
if (!(accessNode instanceof AccessNode_1.AccessNode.Roles)) {
|
|
12
13
|
throw new UnsupportedAccessNodeError();
|
|
13
14
|
}
|
|
14
15
|
for (let role of accessNode.roles) {
|
|
15
|
-
if (this.permissions.isAllowed(role, resource, privilege)) {
|
|
16
|
+
if (this.permissions.isAllowed(role, resource, privilege, meta)) {
|
|
16
17
|
return true;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
@@ -23,5 +24,5 @@ var AccessEvaluator;
|
|
|
23
24
|
class UnsupportedAccessNodeError extends Error {
|
|
24
25
|
}
|
|
25
26
|
})(AccessEvaluator || (AccessEvaluator = {}));
|
|
26
|
-
exports.
|
|
27
|
+
exports.AccessEvaluator = AccessEvaluator;
|
|
27
28
|
//# sourceMappingURL=AccessEvaluator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessEvaluator.js","sourceRoot":"","sources":["../../src/AccessEvaluator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccessEvaluator.js","sourceRoot":"","sources":["../../src/AccessEvaluator.ts"],"names":[],"mappings":";;;AACA,6CAAyC;AAOzC,IAAU,eAAe,CAkBxB;AAlBD,WAAU,eAAe;IACxB,MAAa,mBAAmB;QAC/B,YAA6B,WAAwB;YAAxB,gBAAW,GAAX,WAAW,CAAa;QAAG,CAAC;QAEzD,KAAK,CAAC,QAAQ,CAAC,UAAsB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAA4B;YAC7F,IAAI,CAAC,CAAC,UAAU,YAAY,uBAAU,CAAC,KAAK,CAAC,EAAE;gBAC9C,MAAM,IAAI,0BAA0B,EAAE,CAAA;aACtC;YACD,KAAK,IAAI,IAAI,IAAI,UAAU,CAAC,KAAK,EAAE;gBAClC,IAAI,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE;oBAChE,OAAO,IAAI,CAAA;iBACX;aACD;YACD,OAAO,KAAK,CAAA;QACb,CAAC;KACD;IAdY,mCAAmB,sBAc/B,CAAA;IAED,MAAM,0BAA2B,SAAQ,KAAK;KAAG;AAClD,CAAC,EAlBS,eAAe,KAAf,eAAe,QAkBxB;AAEQ,0CAAe"}
|
package/dist/src/AccessNode.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import AccessEvaluator from './AccessEvaluator';
|
|
2
|
-
import Authorizator from './Authorizator';
|
|
1
|
+
import { AccessEvaluator } from './AccessEvaluator';
|
|
2
|
+
import { Authorizator } from './Authorizator';
|
|
3
3
|
interface AccessNode {
|
|
4
4
|
isAllowed(accessEvaluator: AccessEvaluator, action: Authorizator.Action): Promise<boolean>;
|
|
5
5
|
}
|
|
@@ -38,5 +38,5 @@ declare namespace AccessNode {
|
|
|
38
38
|
}
|
|
39
39
|
export {};
|
|
40
40
|
}
|
|
41
|
-
export
|
|
41
|
+
export { AccessNode };
|
|
42
42
|
//# sourceMappingURL=AccessNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessNode.d.ts","sourceRoot":"","sources":["../../src/AccessNode.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"AccessNode.d.ts","sourceRoot":"","sources":["../../src/AccessNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,UAAU,UAAU;IACnB,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC1F;AAED,kBAAU,UAAU,CAAC;IACpB,UAAU,SAAU,SAAQ,UAAU;QACrC,QAAQ,IAAI,UAAU,EAAE,CAAA;KACxB;IAED,MAAM,OAAO,KAAM,YAAW,UAAU;QAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;oBAAN,MAAM,EAAE,OAAO;eAE9B,OAAO,IAAI,KAAK;eAIhB,MAAM,IAAI,KAAK;QAItB,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;KAGjG;IAED,MAAM,OAAO,YAAa,YAAW,SAAS;QACjC,OAAO,CAAC,QAAQ,CAAC,KAAK;oBAAL,KAAK,EAAE,UAAU,EAAE;QAEnC,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;QAYhG,QAAQ,IAAI,UAAU,EAAE;KAG/B;IAED,MAAM,OAAO,KAAM,YAAW,SAAS;QAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK;oBAAL,KAAK,EAAE,UAAU,EAAE;QAEnC,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;QAShG,QAAQ,IAAI,UAAU,EAAE;KAG/B;IAED,MAAM,OAAO,MAAO,YAAW,UAAU;QAC5B,OAAO,CAAC,QAAQ,CAAC,IAAI;oBAAJ,IAAI,EAAE,UAAU;QAEvC,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;KAGhG;IAED,MAAM,OAAO,KAAM,YAAW,UAAU;iBACX,KAAK,EAAE,SAAS,MAAM,EAAE;oBAAxB,KAAK,EAAE,SAAS,MAAM,EAAE;QAEpD,SAAS,CAAC,eAAe,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;KAG1F;;CACD;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
package/dist/src/AccessNode.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccessNode = void 0;
|
|
3
4
|
var AccessNode;
|
|
4
5
|
(function (AccessNode) {
|
|
5
6
|
class Fixed {
|
|
@@ -73,5 +74,5 @@ var AccessNode;
|
|
|
73
74
|
}
|
|
74
75
|
AccessNode.Roles = Roles;
|
|
75
76
|
})(AccessNode || (AccessNode = {}));
|
|
76
|
-
exports.
|
|
77
|
+
exports.AccessNode = AccessNode;
|
|
77
78
|
//# sourceMappingURL=AccessNode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessNode.js","sourceRoot":"","sources":["../../src/AccessNode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AccessNode.js","sourceRoot":"","sources":["../../src/AccessNode.ts"],"names":[],"mappings":";;;AAOA,IAAU,UAAU,CAyEnB;AAzED,WAAU,UAAU;IAKnB,MAAa,KAAK;QACjB,YAA6B,MAAe;YAAf,WAAM,GAAN,MAAM,CAAS;QAAG,CAAC;QAEzC,MAAM,CAAC,OAAO;YACpB,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAA;QACvB,CAAC;QAEM,MAAM,CAAC,MAAM;YACnB,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAA;QACxB,CAAC;QAEM,SAAS,CAAC,eAAgC,EAAE,MAA2B;YAC7E,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACpC,CAAC;KACD;IAdY,gBAAK,QAcjB,CAAA;IAED,MAAa,YAAY;QACxB,YAA6B,KAAmB;YAAnB,UAAK,GAAL,KAAK,CAAc;QAAG,CAAC;QAE7C,KAAK,CAAC,SAAS,CAAC,eAAgC,EAAE,MAA2B;YACnF,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC5B,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;aAC7B;YACD,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE;gBAC5B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,EAAE;oBACrD,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;iBAC7B;aACD;YACD,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QAC7B,CAAC;QAEM,QAAQ;YACd,OAAO,IAAI,CAAC,KAAK,CAAA;QAClB,CAAC;KACD;IAlBY,uBAAY,eAkBxB,CAAA;IAED,MAAa,KAAK;QACjB,YAA6B,KAAmB;YAAnB,UAAK,GAAL,KAAK,CAAc;QAAG,CAAC;QAE7C,KAAK,CAAC,SAAS,CAAC,eAAgC,EAAE,MAA2B;YACnF,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE;gBAC5B,IAAI,MAAM,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC,EAAE;oBAClD,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;iBAC5B;aACD;YACD,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;QAC9B,CAAC;QAEM,QAAQ;YACd,OAAO,IAAI,CAAC,KAAK,CAAA;QAClB,CAAC;KACD;IAfY,gBAAK,QAejB,CAAA;IAED,MAAa,MAAM;QAClB,YAA6B,IAAgB;YAAhB,SAAI,GAAJ,IAAI,CAAY;QAAG,CAAC;QAEjD,KAAK,CAAC,SAAS,CAAC,eAAgC,EAAE,MAA2B;YAC5E,OAAO,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAA;QAC7D,CAAC;KACD;IANY,iBAAM,SAMlB,CAAA;IAED,MAAa,KAAK;QACjB,YAA4B,KAAwB;YAAxB,UAAK,GAAL,KAAK,CAAmB;QAAG,CAAC;QAExD,SAAS,CAAC,eAAgC,EAAE,MAA2B;YACtE,OAAO,eAAe,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;QAC9C,CAAC;KACD;IANY,gBAAK,QAMjB,CAAA;AACF,CAAC,EAzES,UAAU,KAAV,UAAU,QAyEnB;AAEQ,gCAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AccessNode from './AccessNode';
|
|
1
|
+
import { AccessNode } from './AccessNode';
|
|
2
2
|
interface AuthorizationScope<Identity> {
|
|
3
3
|
getIdentityAccess(identity: Identity): Promise<AccessNode>;
|
|
4
4
|
}
|
|
@@ -22,5 +22,5 @@ declare namespace AuthorizationScope {
|
|
|
22
22
|
getIdentityAccess(identity: Identity): Promise<AccessNode>;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export { AuthorizationScope };
|
|
26
26
|
//# sourceMappingURL=AuthorizationScope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationScope.d.ts","sourceRoot":"","sources":["../../src/AuthorizationScope.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"AuthorizationScope.d.ts","sourceRoot":"","sources":["../../src/AuthorizationScope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,UAAU,kBAAkB,CAAC,QAAQ;IACpC,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;CAC1D;AAED,kBAAU,kBAAkB,CAAC;IAC5B,MAAa,KAAM,YAAW,kBAAkB,CAAC,GAAG,CAAC;QACxC,OAAO,CAAC,QAAQ,CAAC,IAAI;oBAAJ,IAAI,EAAE,UAAU;QAEvC,iBAAiB,IAAI,OAAO,CAAC,UAAU,CAAC;KAG9C;IAED,MAAa,MAAO,YAAW,kBAAkB,CAAC,GAAG,CAAC;QAC/C,iBAAiB,CAAC,QAAQ,EAAE,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC;KAG3D;IAED,MAAa,YAAY,CAAC,QAAQ,CAAE,YAAW,kBAAkB,CAAC,QAAQ,CAAC;QAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM;oBAAN,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE;QAE7D,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;KAOhE;IAED,MAAa,KAAK,CAAC,QAAQ,CAAE,YAAW,kBAAkB,CAAC,QAAQ,CAAC;QACvD,OAAO,CAAC,QAAQ,CAAC,MAAM;oBAAN,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE;QAE7D,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;KAOhE;CACD;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthorizationScope = void 0;
|
|
3
4
|
const AccessNode_1 = require("./AccessNode");
|
|
4
5
|
var AuthorizationScope;
|
|
5
6
|
(function (AuthorizationScope) {
|
|
@@ -14,7 +15,7 @@ var AuthorizationScope;
|
|
|
14
15
|
AuthorizationScope.Fixed = Fixed;
|
|
15
16
|
class Global {
|
|
16
17
|
async getIdentityAccess(identity) {
|
|
17
|
-
return AccessNode_1.
|
|
18
|
+
return AccessNode_1.AccessNode.Fixed.denied();
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
AuthorizationScope.Global = Global;
|
|
@@ -27,7 +28,7 @@ var AuthorizationScope;
|
|
|
27
28
|
for (let scope of this.scopes) {
|
|
28
29
|
nodes.push(scope.getIdentityAccess(identity));
|
|
29
30
|
}
|
|
30
|
-
return new AccessNode_1.
|
|
31
|
+
return new AccessNode_1.AccessNode.Intersection(await Promise.all(nodes));
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
AuthorizationScope.Intersection = Intersection;
|
|
@@ -40,10 +41,10 @@ var AuthorizationScope;
|
|
|
40
41
|
for (let scope of this.scopes) {
|
|
41
42
|
nodes.push(scope.getIdentityAccess(identity));
|
|
42
43
|
}
|
|
43
|
-
return new AccessNode_1.
|
|
44
|
+
return new AccessNode_1.AccessNode.Union(await Promise.all(nodes));
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
AuthorizationScope.Union = Union;
|
|
47
48
|
})(AuthorizationScope || (AuthorizationScope = {}));
|
|
48
|
-
exports.
|
|
49
|
+
exports.AuthorizationScope = AuthorizationScope;
|
|
49
50
|
//# sourceMappingURL=AuthorizationScope.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationScope.js","sourceRoot":"","sources":["../../src/AuthorizationScope.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthorizationScope.js","sourceRoot":"","sources":["../../src/AuthorizationScope.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAMzC,IAAU,kBAAkB,CAsC3B;AAtCD,WAAU,kBAAkB;IAC3B,MAAa,KAAK;QACjB,YAA6B,IAAgB;YAAhB,SAAI,GAAJ,IAAI,CAAY;QAAG,CAAC;QAEjD,KAAK,CAAC,iBAAiB;YACtB,OAAO,IAAI,CAAC,IAAI,CAAA;QACjB,CAAC;KACD;IANY,wBAAK,QAMjB,CAAA;IAED,MAAa,MAAM;QAClB,KAAK,CAAC,iBAAiB,CAAC,QAAa;YACpC,OAAO,uBAAU,CAAC,KAAK,CAAC,MAAM,EAAE,CAAA;QACjC,CAAC;KACD;IAJY,yBAAM,SAIlB,CAAA;IAED,MAAa,YAAY;QACxB,YAA6B,MAAsC;YAAtC,WAAM,GAAN,MAAM,CAAgC;QAAG,CAAC;QAEvE,KAAK,CAAC,iBAAiB,CAAC,QAAkB;YACzC,MAAM,KAAK,GAA0B,EAAE,CAAA;YACvC,KAAK,IAAI,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE;gBAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAA;aAC7C;YACD,OAAO,IAAI,uBAAU,CAAC,YAAY,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAA;QAC7D,CAAC;KACD;IAVY,+BAAY,eAUxB,CAAA;IAED,MAAa,KAAK;QACjB,YAA6B,MAAsC;YAAtC,WAAM,GAAN,MAAM,CAAgC;QAAG,CAAC;QAEvE,KAAK,CAAC,iBAAiB,CAAC,QAAkB;YACzC,MAAM,KAAK,GAA0B,EAAE,CAAA;YACvC,KAAK,IAAI,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE;gBAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAA;aAC7C;YACD,OAAO,IAAI,uBAAU,CAAC,KAAK,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAA;QACtD,CAAC;KACD;IAVY,wBAAK,QAUjB,CAAA;AACF,CAAC,EAtCS,kBAAkB,KAAlB,kBAAkB,QAsC3B;AAEQ,gDAAkB"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import AuthorizationScope from './AuthorizationScope';
|
|
2
|
-
import AccessEvaluator from './AccessEvaluator';
|
|
1
|
+
import { AuthorizationScope } from './AuthorizationScope';
|
|
2
|
+
import { AccessEvaluator } from './AccessEvaluator';
|
|
3
3
|
interface Authorizator<Identity extends Authorizator.Identity = Authorizator.Identity> {
|
|
4
4
|
isAllowed(identity: Identity, scope: AuthorizationScope<Identity>, action: Authorizator.Action): Promise<boolean>;
|
|
5
5
|
}
|
|
6
6
|
declare namespace Authorizator {
|
|
7
7
|
type Resource = string;
|
|
8
8
|
type Privilege = string;
|
|
9
|
-
type Action<Meta = undefined
|
|
9
|
+
type Action<Meta extends undefined | {} = undefined | Record<string, unknown>> = Meta extends {} ? {
|
|
10
10
|
resource: Resource;
|
|
11
11
|
privilege: Privilege;
|
|
12
|
+
meta: Meta;
|
|
12
13
|
} : {
|
|
13
14
|
resource: Resource;
|
|
14
15
|
privilege: Privilege;
|
|
15
|
-
meta
|
|
16
|
+
meta?: Meta;
|
|
16
17
|
};
|
|
17
18
|
function createAction(resource: Resource, privilege: Privilege): Action<undefined>;
|
|
18
|
-
function createAction<Meta>(resource: Resource, privilege: Privilege, meta: Meta): Action<Meta>;
|
|
19
|
+
function createAction<Meta extends {} | undefined>(resource: Resource, privilege: Privilege, meta: Meta): Action<Meta>;
|
|
19
20
|
class Default<Identity extends Authorizator.Identity> implements Authorizator<Identity> {
|
|
20
21
|
private readonly accessEvaluator;
|
|
21
22
|
constructor(accessEvaluator: AccessEvaluator);
|
|
@@ -25,5 +26,5 @@ declare namespace Authorizator {
|
|
|
25
26
|
roles: readonly string[];
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
export
|
|
29
|
+
export { Authorizator };
|
|
29
30
|
//# sourceMappingURL=Authorizator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorizator.d.ts","sourceRoot":"","sources":["../../src/Authorizator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Authorizator.d.ts","sourceRoot":"","sources":["../../src/Authorizator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGnD,UAAU,YAAY,CAAC,QAAQ,SAAS,YAAY,CAAC,QAAQ,GAAG,YAAY,CAAC,QAAQ;IACpF,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CACjH;AAED,kBAAU,YAAY,CAAC;IACtB,KAAY,QAAQ,GAAG,MAAM,CAAA;IAC7B,KAAY,SAAS,GAAG,MAAM,CAAA;IAC9B,KAAY,MAAM,CAAC,IAAI,SAAS,SAAS,GAAG,EAAE,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,IAAI,SAAS,EAAE,GACpG;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,SAAS,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,IAAI,CAAA;KAAE,GACxD;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,SAAS,EAAE,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,IAAI,CAAA;KAAE,CAAA;IAM5D,SAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;IACzF,SAAgB,YAAY,CAAC,IAAI,SAAS,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;IAQ7H,MAAa,OAAO,CAAC,QAAQ,SAAS,YAAY,CAAC,QAAQ,CAAE,YAAW,YAAY,CAAC,QAAQ,CAAC;QACjF,OAAO,CAAC,QAAQ,CAAC,eAAe;oBAAf,eAAe,EAAE,eAAe;QAEhD,SAAS,CACrB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,MAAM,GACzB,OAAO,CAAC,OAAO,CAAC;KAOnB;IAED,UAAiB,QAAQ;QACxB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;KACxB;CACD;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
package/dist/src/Authorizator.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Authorizator = void 0;
|
|
3
4
|
const AccessNode_1 = require("./AccessNode");
|
|
4
5
|
var Authorizator;
|
|
5
6
|
(function (Authorizator) {
|
|
@@ -17,12 +18,12 @@ var Authorizator;
|
|
|
17
18
|
}
|
|
18
19
|
async isAllowed(identity, scope, action) {
|
|
19
20
|
const scopeNode = await scope.getIdentityAccess(identity);
|
|
20
|
-
const globalNode = new AccessNode_1.
|
|
21
|
-
const node = new AccessNode_1.
|
|
21
|
+
const globalNode = new AccessNode_1.AccessNode.Roles(identity.roles);
|
|
22
|
+
const node = new AccessNode_1.AccessNode.Union([scopeNode, globalNode]);
|
|
22
23
|
return await node.isAllowed(this.accessEvaluator, action);
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
Authorizator.Default = Default;
|
|
26
27
|
})(Authorizator || (Authorizator = {}));
|
|
27
|
-
exports.
|
|
28
|
+
exports.Authorizator = Authorizator;
|
|
28
29
|
//# sourceMappingURL=Authorizator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorizator.js","sourceRoot":"","sources":["../../src/Authorizator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Authorizator.js","sourceRoot":"","sources":["../../src/Authorizator.ts"],"names":[],"mappings":";;;AAEA,6CAAyC;AAMzC,IAAU,YAAY,CAuCrB;AAvCD,WAAU,YAAY;IAarB,SAAgB,YAAY,CAAO,QAAkB,EAAE,SAAoB,EAAE,IAAW;QACvF,OAAO;YACN,QAAQ;YACR,SAAS;YACT,IAAI;SACJ,CAAA;IACF,CAAC;IANe,yBAAY,eAM3B,CAAA;IACD,MAAa,OAAO;QACnB,YAA6B,eAAgC;YAAhC,oBAAe,GAAf,eAAe,CAAiB;QAAG,CAAC;QAE1D,KAAK,CAAC,SAAS,CACrB,QAAkB,EAClB,KAAmC,EACnC,MAA2B;YAE3B,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAA;YACzD,MAAM,UAAU,GAAG,IAAI,uBAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;YACvD,MAAM,IAAI,GAAG,IAAI,uBAAU,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA;YAE1D,OAAO,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;QAC1D,CAAC;KACD;IAdY,oBAAO,UAcnB,CAAA;AAKF,CAAC,EAvCS,YAAY,KAAZ,YAAY,QAuCrB;AAEQ,oCAAY"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import Authorizator from './Authorizator';
|
|
1
|
+
import { Authorizator } from './Authorizator';
|
|
2
2
|
declare class Permissions {
|
|
3
3
|
private permissions;
|
|
4
|
-
allow(role: string, { resource, privilege }: Authorizator.Action): void;
|
|
5
|
-
isAllowed(role: string, resource: string, action: string): boolean;
|
|
4
|
+
allow<Meta extends {} | undefined = undefined>(role: string, { resource, privilege }: Authorizator.Action<Meta>, verifier?: (meta: Meta) => boolean): void;
|
|
5
|
+
isAllowed(role: string, resource: string, action: string, meta: any): boolean;
|
|
6
6
|
}
|
|
7
7
|
declare namespace Permissions {
|
|
8
8
|
const ALL = "*";
|
|
9
9
|
type PermissionsMap = {
|
|
10
10
|
[role: string]: {
|
|
11
11
|
[resource: string]: {
|
|
12
|
-
[privilege: string]:
|
|
12
|
+
[privilege: string]: (meta: any) => boolean;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export { Permissions };
|
|
18
18
|
//# sourceMappingURL=Permissions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../../src/Permissions.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"Permissions.d.ts","sourceRoot":"","sources":["../../src/Permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,cAAM,WAAW;IAChB,OAAO,CAAC,WAAW,CAAiC;IAE7C,KAAK,CAAC,IAAI,SAAS,EAAE,GAAG,SAAS,GAAG,SAAS,EACnD,IAAI,EAAE,MAAM,EACZ,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,EAClD,QAAQ,GAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAoB;IAOxC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO;CAcpF;AAED,kBAAU,WAAW,CAAC;IACd,MAAM,GAAG,MAAM,CAAA;IACtB,KAAY,cAAc,GAAG;QAC5B,CAAC,IAAI,EAAE,MAAM,GAAG;YACf,CAAC,QAAQ,EAAE,MAAM,GAAG;gBACnB,CAAC,SAAS,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAA;aAC3C,CAAA;SACD,CAAA;KACD,CAAA;CACD;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
package/dist/src/Permissions.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Permissions = void 0;
|
|
3
4
|
class Permissions {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.permissions = {};
|
|
6
7
|
}
|
|
7
|
-
allow(role, { resource, privilege }) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
this.permissions[role][resource][privilege] = true;
|
|
8
|
+
allow(role, { resource, privilege }, verifier = () => true) {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
var _c, _d;
|
|
11
|
+
(_a = (_c = this.permissions)[role]) !== null && _a !== void 0 ? _a : (_c[role] = {});
|
|
12
|
+
(_b = (_d = this.permissions[role])[resource]) !== null && _b !== void 0 ? _b : (_d[resource] = {});
|
|
13
|
+
this.permissions[role][resource][privilege] = verifier;
|
|
15
14
|
}
|
|
16
|
-
isAllowed(role, resource, action) {
|
|
15
|
+
isAllowed(role, resource, action, meta) {
|
|
16
|
+
var _a, _b;
|
|
17
17
|
const rolePermissions = this.permissions[role];
|
|
18
18
|
if (!rolePermissions) {
|
|
19
19
|
return false;
|
|
20
20
|
}
|
|
21
21
|
for (let tmpResource of [resource, Permissions.ALL]) {
|
|
22
22
|
for (let tmpAction of [action, Permissions.ALL]) {
|
|
23
|
-
if (rolePermissions[tmpResource]
|
|
23
|
+
if (((_b = (_a = rolePermissions[tmpResource]) === null || _a === void 0 ? void 0 : _a[tmpAction]) === null || _b === void 0 ? void 0 : _b.call(_a, meta)) === true) {
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -28,8 +28,9 @@ class Permissions {
|
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
+
exports.Permissions = Permissions;
|
|
31
32
|
(function (Permissions) {
|
|
32
33
|
Permissions.ALL = '*';
|
|
33
34
|
})(Permissions || (Permissions = {}));
|
|
34
|
-
exports.
|
|
35
|
+
exports.Permissions = Permissions;
|
|
35
36
|
//# sourceMappingURL=Permissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../src/Permissions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Permissions.js","sourceRoot":"","sources":["../../src/Permissions.ts"],"names":[],"mappings":";;;AAEA,MAAM,WAAW;IAAjB;QACS,gBAAW,GAA+B,EAAE,CAAA;IA0BrD,CAAC;IAxBO,KAAK,CACX,IAAY,EACZ,EAAE,QAAQ,EAAE,SAAS,EAA6B,EAClD,WAAoC,GAAG,EAAE,CAAC,IAAI;;;QAE9C,YAAA,IAAI,CAAC,WAAW,EAAC,IAAI,wCAAJ,IAAI,IAAM,EAAE,EAAA;QAC7B,YAAA,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAC,QAAQ,wCAAR,QAAQ,IAAM,EAAE,EAAA;QACvC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAA;IACvD,CAAC;IAEM,SAAS,CAAC,IAAY,EAAE,QAAgB,EAAE,MAAc,EAAE,IAAS;;QACzE,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAA;QAC9C,IAAI,CAAC,eAAe,EAAE;YACrB,OAAO,KAAK,CAAA;SACZ;QACD,KAAK,IAAI,WAAW,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE;YACpD,KAAK,IAAI,SAAS,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE;gBAChD,IAAI,CAAA,MAAA,MAAA,eAAe,CAAC,WAAW,CAAC,0CAAG,SAAS,CAAC,mDAAG,IAAI,CAAC,MAAK,IAAI,EAAE;oBAC/D,OAAO,IAAI,CAAA;iBACX;aACD;SACD;QACD,OAAO,KAAK,CAAA;IACb,CAAC;CACD;AAaQ,kCAAW;AAXpB,WAAU,WAAW;IACP,eAAG,GAAG,GAAG,CAAA;AAQvB,CAAC,EATS,WAAW,KAAX,WAAW,QASpB;AAEQ,kCAAW"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export * from './Authorizator';
|
|
2
|
+
export * from './AccessEvaluator';
|
|
3
|
+
export * from './AccessNode';
|
|
4
|
+
export * from './AuthorizationScope';
|
|
5
|
+
export * from './Permissions';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var AccessNode_1 = require("./AccessNode");
|
|
9
|
-
Object.defineProperty(exports, "AccessNode", { enumerable: true, get: function () { return AccessNode_1.default; } });
|
|
10
|
-
var AuthorizationScope_1 = require("./AuthorizationScope");
|
|
11
|
-
Object.defineProperty(exports, "AuthorizationScope", { enumerable: true, get: function () { return AuthorizationScope_1.default; } });
|
|
12
|
-
var Permissions_1 = require("./Permissions");
|
|
13
|
-
Object.defineProperty(exports, "Permissions", { enumerable: true, get: function () { return Permissions_1.default; } });
|
|
17
|
+
__exportStar(require("./Authorizator"), exports);
|
|
18
|
+
__exportStar(require("./AccessEvaluator"), exports);
|
|
19
|
+
__exportStar(require("./AccessNode"), exports);
|
|
20
|
+
__exportStar(require("./AuthorizationScope"), exports);
|
|
21
|
+
__exportStar(require("./Permissions"), exports);
|
|
14
22
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,oDAAiC;AACjC,+CAA4B;AAC5B,uDAAoC;AACpC,gDAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../src/AccessNode.ts","../../src/AuthorizationScope.ts","../../src/Authorizator.ts","../../src/Permissions.ts","../../src/AccessEvaluator.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/accepts/index.d.ts","../../../../node_modules/@types/bcrypt/index.d.ts","../../../../node_modules/@types/connect/index.d.ts","../../../../node_modules/@types/body-parser/index.d.ts","../../../../node_modules/@types/keyv/index.d.ts","../../../../node_modules/@types/http-cache-semantics/index.d.ts","../../../../node_modules/@types/responselike/index.d.ts","../../../../node_modules/@types/cacheable-request/index.d.ts","../../../../node_modules/@types/caseless/index.d.ts","../../../../node_modules/@types/chai/index.d.ts","../../../../node_modules/@types/chai-subset/index.d.ts","../../../../node_modules/@types/content-disposition/index.d.ts","../../../../node_modules/@types/cookiejar/index.d.ts","../../../../node_modules/@types/keygrip/index.d.ts","../../../../node_modules/@types/range-parser/index.d.ts","../../../../node_modules/@types/qs/index.d.ts","../../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../../node_modules/@types/mime/index.d.ts","../../../../node_modules/@types/serve-static/index.d.ts","../../../../node_modules/@types/express/index.d.ts","../../../../node_modules/@types/cookies/index.d.ts","../../../../node_modules/@types/fs-extra/index.d.ts","../../../../node_modules/@types/http-assert/index.d.ts","../../../../node_modules/@types/http-errors/index.d.ts","../../../../node_modules/@types/js-yaml/index.d.ts","../../../../node_modules/@types/json-buffer/index.d.ts","../../../../node_modules/@types/json-schema/index.d.ts","../../../../node_modules/@types/json-stable-stringify/index.d.ts","../../../../node_modules/@types/jsonwebtoken/index.d.ts","../../../../node_modules/@types/koa-compose/index.d.ts","../../../../node_modules/@types/koa/index.d.ts","../../../../node_modules/@types/koa-bodyparser/index.d.ts","../../../../node_modules/@types/koa-compress/index.d.ts","../../../../node_modules/@types/koa__cors/index.d.ts","../../../../node_modules/@types/mime-types/index.d.ts","../../../../node_modules/@types/mustache/index.d.ts","../../../../node_modules/form-data/index.d.ts","../../../../node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/@types/nodemailer/lib/dkim/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts","../../../../node_modules/@types/nodemailer/lib/xoauth2.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mime-node/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts","../../../../node_modules/@types/nodemailer/lib/shared.d.ts","../../../../node_modules/@types/nodemailer/lib/json-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/ses-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/stream-transport.d.ts","../../../../node_modules/@types/nodemailer/index.d.ts","../../../../node_modules/@types/npm-package-arg/index.d.ts","../../../../node_modules/@types/parse-json/index.d.ts","../../../../node_modules/pg-types/index.d.ts","../../../../node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/@types/pg/index.d.ts","../../../../node_modules/@types/prompts/index.d.ts","../../../../node_modules/@types/request/node_modules/form-data/index.d.ts","../../../../node_modules/@types/tough-cookie/index.d.ts","../../../../node_modules/@types/request/index.d.ts","../../../../node_modules/@types/sinonjs__fake-timers/index.d.ts","../../../../node_modules/@types/sinon/index.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@types/superagent/index.d.ts","../../../../node_modules/@types/supertest/index.d.ts","../../../../node_modules/@types/uuid/index.d.ts","../../../../node_modules/@types/ws/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},{"version":"23413d932c9bba133ffe55f2662f71e5ba33f1f99d0374ea9d76c927d5414161","signature":"1b1d62ad51b83bc8affad169756335468142adae6530b630f56b054b547bad40"},{"version":"cd4fd37b4fa004b28caafb3d24535fce57c90991df3b72b56a5b5b087de2cae3","signature":"8b619526d48a2819269e873a0c2cfe7c1de952ed22929965896c55269a18d019"},{"version":"1aeb5c7a61565346d9ba585a33c98011902dfc425c0d15047b855f972440c3c5","signature":"7caf27a3821f4617757af8aea2a48ecd3b4ab0e0ea823c751ccc7f285604068d"},{"version":"84a69c8b891d950d50260f05703d39d9cd909103625daa0e15653cce70a80fce","signature":"b8cda9d53f27e7a0e5b2e0bcd832cd593e1177365d50d5ae4240d0cf94ee613d"},{"version":"0aebcc10091d610724ad02583a64a7f9cb33e75b9e1c63f9e7bc7af25cdc7632","signature":"af58d7a88ef850fb7b85740a486b19ec75f8563c88c067731067170d9e1807fd"},{"version":"15344c94925bb765ea19aea5afa472a9908031773305d063e13697b745de43b1","signature":"78cf530e9352576f7b5df9c007f93f86d02176c560dcf6da8ab053c9c68754e4"},"0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"2f6c9750131d5d2fdaba85c164a930dc07d2d7e7e8970b89d32864aa6c72620c","affectsGlobalScope":true},"56d13f223ab40f71840795f5bef2552a397a70666ee60878222407f3893fb8d0",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","90b94d3d2aa3432cc9dd2d15f56a38b166163fc555404c74243e1af29c5549d8","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","c993aac3b6d4a4620ef9651497069eb84806a131420e4f158ea9396fb8eb9b8c","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"be57ed74f6dc1a2c92e6f8e00b1d758bb6ec513680b5547c67ac7c0193371b93","57951685bd0e57e5a7aebfd62512e365bc1db66315992211a647cacfcfa65965","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","d2f5c67858e65ebb932c2f4bd2af646f5764e8ad7f1e4fbe942a0b5ea05dc0e7","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","7f249c599e7a9335dd8e94a4bfe63f00e911756c3c23f77cdb6ef0ec4d479e4a",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"2cabc86ea4f972f2c8386903eccb8c19e2f2370fb9808b66dd8759c1f2ab30c7","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","02b3239cf1b1ff8737e383ed5557f0247499d15f5bd21ab849b1a24687b6100c","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"aee7013623e7632fba449d4df1da92925b27d9b816cb05546044dbfe54c88ef4","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","f6b2d700c02c818151361abb13737527e8bc0aab9b7065b662b25d9eaba4c5de","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"1aad825534c73852a1f3275e527d729a2c0640f539198fdfdfeb83b839851910","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd","6738101ae8e56cd3879ab3f99630ada7d78097fc9fd334df7e766216778ca219","57ddc4e066366bbe04f497f9afce1c88e088dbd09be0618e072754450de3acbb","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","fec943fdb3275eb6e006b35e04a8e2e99e9adf3f4b969ddf15315ac7575a93e4","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","5343f3c160282dfbaab9af350119a0c3b59b7076ef0117bb5995a66e240dab28",{"version":"3a15910b7f45dfc393f010ee8f913580b08d65752800fc48147ea13445acd5f7","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"204dbe6c72467fb14bbe8f06510b11fb541b6ce29580c6e10ebd3bdb2eb0c1f9","8d48b8f8a377ade8dd1f000625bc276eea067f2529cc9cafdf082d17142107d6","ce013414484233b24f42c0fcfca48a60bb66ab4e13c82953662305e8f1ee4925","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"101eb8b4e972b9326f39591e2e40e967e3331e8d960f81248daeb266ea1affec","affectsGlobalScope":true},"84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","0b85cb069d0e427ba946e5eb2d86ef65ffd19867042810516d16919f6c1a5aec","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","eb96a2321f717bccc3e49e104e299152984b927ea4546b559ae631c06565819c","ed19da84b7dbf00952ad0b98ce5c194f1903bcf7c94d8103e8e0d63b271543ae","e98185f4249720ace1921d59c1ff4612fa5c633a183fc9bf28e2e7b8e3c7fd51","6168414aa12d33d0fcfac4f9870aa81ce27e136db6faf182001a5f3792e1d720","686e548ae30250d62532c8cacb43fccc922b693408371bd3503563c4a0f28eed","75bdc1b420f0ffc6cc6fd0b6694d89f5072bf755b4e6c7e65a2fda797ca0bb8a","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","13cc3979e1f548aacaa23911f2d6e69c1a2999266c4a1952806de1e9593bdaaa","e5dd317ef2c7a2882b152337b03d592fafa8351b40351849a16a908b198bd3b5","5006668996956580886022c05108e32c742823e1b5652aff7914917233731518","0c52f5366c9146ad79b546e70162c659972a2798522806e8283f3137feab3965","aff59cc6a1f2049bc6ac37cdd5a7d449584f28e7ee5ba240bd903aefdaef6418","77224b06a9d39e8710eca2050acadd9f9e062b068d74aa98e38a6854c272d35e","dcb9aa62f2662b999047096125adfa905cca0c988d7f5130e38ab41afeb96a3f","c757372a092924f5c16eaf11a1475b80b95bb4dae49fe3242d2ad908f97d5abe","2d5c29f803f71f0c768684f98c4ab2e95fff0104b42f0644eb65479d05eccdc3","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","bb654d426b82e0846cd4bd7de91d637039ecdfd63c94447373490178f80846fe","db90f54098b237753ac9c846e39cd49aa538dcad07a2e1c68a138f3c0f8e621d","892f8cf5db77196b9f4da151423570a9ad92f01692740d6137c0a13a006d9121","6e41751646fe275206d052a2e5ba87d27dd0df4dcbca134fc3fd2dc4d3d410d2","eecb2ea10a1500dcc6bdeff14be1fb43806f63a9b8562e16e1b4fc8baa8dfa8d","221a6ab66d611349faaf80af49c7a34d95623787610fd153fed4da0811abdcae","40122dcc63746bc8827d17f5f981668844e6c12537ca3b3e5e1a35883a50d666","966418bf54ad347058abfd433deb2f74480e859adb80b9ddbe90bb3ada1a8eda","e79130cf2ba010f2b79747bf43b086252ad041b130768331a1144c0a86185877","5945e7a91249d0dcbce4609279cb8fa95e45a4ac0edf6b81742724ed38e5018f","dafce7a7b279977940b6b4b50017625e4f922f73094433d2875994bdc0b27e87","ec630acd5a4ac97faadbfff935eb00df5318a6302dd25938685ad8c25c70465c","b3edafa3cb2b51781dffced9ec03613b8fe4981c44dea915f119996d201c1d03","6c559dee3c6251c261b67df08e01d4cbc89cbd7a63300150c636705733cebfff","9b5a5e0d06f8646aa2978afb1b5bb5e608649751e9cfc7290e86be42605ba42f","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","5f7614d60b32dc66e5d665eafd10d7619eedca3a20f0e876e9ec73141735e364","e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c","f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","24a09dc3e07d69b0a224dbd14b2994c40d1efd0954e759004b61b9e683dabe5f","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","31c502014e5ba046d5cb060136929b73fd53f0f989aa37b2b0424644cb0d93ef","76232dbb982272b182a76ad8745a9b02724dc9896e2328ce360e2c56c64c9778","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6"],"options":{"composite":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"module":1,"noEmitOnError":true,"outDir":"./","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[77,102,109],[102,109],[77,102,109,112],[74,77,101,102,109,114,115,116],[102],[102,119],[77,102,109,112,123,129],[74,77,102,109,124,125],[102,113,125,126,128],[75,102,109],[74,102,109],[102,140],[102,107,109,140],[74,77,78,82,88,101,102,109,110,121,123,130,132,133,139],[77,101,102,109,146,147],[59,102],[62,102],[63,68,102],[64,74,75,82,91,101,102],[64,65,74,82,102],[66,102],[67,68,75,83,102],[68,91,98,102],[69,71,74,82,102],[70,102],[71,72,102],[73,74,102],[74,102],[74,75,76,91,101,102],[74,75,76,91,102],[77,82,91,101,102],[74,75,77,78,82,91,98,101,102],[77,79,91,98,101,102],[59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108],[74,80,102],[81,101,102],[71,74,82,91,102],[83,102],[84,102],[62,85,102],[86,100,102,106],[87,102],[88,102],[74,89,102],[89,90,102,104],[74,91,92,93,102],[91,93,102],[91,92,102],[94,102],[95,102],[74,96,97,102],[96,97,102],[68,82,98,102],[99,102],[82,100,102],[63,77,88,101,102],[68,102],[91,102,103],[102,104],[102,105],[63,68,74,76,85,91,101,102,104,106],[91,102,107],[102,109,150,152,156,157,158,159,160,161],[91,102,109],[74,102,109,150,152,153,155,162],[74,82,91,101,102,109,149,150,151,153,154,155,162],[91,102,109,152,153],[91,102,109,152,154],[102,109,150,152,153,155,162],[91,102,109,154],[74,82,91,98,102,109,151,153,155],[74,102,109,150,152,153,154,155,162],[74,91,102,109,150,151,152,153,154,155,162],[74,91,102,109,150,152,153,155,162],[77,91,102,109,155],[74,91,98,102,109,165,166,169,170],[75,77,79,82,91,101,102,109,118,172,173],[77,91,102,109],[77,102,109,127],[102,175],[63,75,77,91,102,109,122],[102,178],[74,77,79,91,98,101,102,107,109],[102,109,166,167,168],[91,102,109,166],[53,55,56,102],[55,57,102],[53,102],[53,54,57,102],[55,102],[53,54,55,56,57,102],[53,55,56],[55,57],[53],[54,57],[55],[53,54,55,56,57]],"referencedMap":[[110,1],[111,2],[113,3],[117,4],[118,5],[120,6],[119,5],[112,1],[121,5],[122,5],[130,7],[126,8],[129,9],[131,10],[132,5],[115,5],[133,5],[134,5],[135,5],[136,5],[137,5],[138,2],[123,5],[114,11],[141,12],[139,12],[142,13],[140,14],[143,12],[144,5],[127,5],[145,5],[147,5],[148,15],[59,16],[60,16],[62,17],[63,18],[64,19],[65,20],[66,21],[67,22],[68,23],[69,24],[70,25],[71,26],[72,26],[73,27],[74,28],[75,29],[76,30],[61,5],[108,5],[77,31],[78,32],[79,33],[109,34],[80,35],[81,36],[82,37],[83,38],[84,39],[85,40],[86,41],[87,42],[88,43],[89,44],[90,45],[91,46],[93,47],[92,48],[94,49],[95,50],[96,51],[97,52],[98,53],[99,54],[100,55],[101,56],[102,57],[103,58],[104,59],[105,60],[106,61],[107,62],[162,63],[149,64],[156,65],[152,66],[150,67],[153,68],[157,69],[158,65],[155,70],[154,71],[159,72],[160,73],[161,74],[151,75],[163,5],[164,5],[170,76],[171,64],[125,5],[124,5],[174,77],[172,78],[116,78],[128,79],[176,80],[175,5],[178,81],[179,82],[173,5],[180,5],[181,83],[177,5],[146,78],[169,84],[166,2],[168,85],[167,2],[165,5],[12,5],[11,5],[2,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[3,5],[4,5],[24,5],[21,5],[22,5],[23,5],[25,5],[26,5],[27,5],[5,5],[28,5],[29,5],[30,5],[31,5],[6,5],[32,5],[33,5],[34,5],[35,5],[7,5],[36,5],[41,5],[42,5],[37,5],[38,5],[39,5],[40,5],[8,5],[46,5],[43,5],[44,5],[45,5],[47,5],[9,5],[48,5],[49,5],[50,5],[51,5],[1,5],[10,5],[52,5],[57,86],[53,87],[54,88],[55,89],[56,90],[58,91]],"exportedModulesMap":[[110,1],[111,2],[113,3],[117,4],[118,5],[120,6],[119,5],[112,1],[121,5],[122,5],[130,7],[126,8],[129,9],[131,10],[132,5],[115,5],[133,5],[134,5],[135,5],[136,5],[137,5],[138,2],[123,5],[114,11],[141,12],[139,12],[142,13],[140,14],[143,12],[144,5],[127,5],[145,5],[147,5],[148,15],[59,16],[60,16],[62,17],[63,18],[64,19],[65,20],[66,21],[67,22],[68,23],[69,24],[70,25],[71,26],[72,26],[73,27],[74,28],[75,29],[76,30],[61,5],[108,5],[77,31],[78,32],[79,33],[109,34],[80,35],[81,36],[82,37],[83,38],[84,39],[85,40],[86,41],[87,42],[88,43],[89,44],[90,45],[91,46],[93,47],[92,48],[94,49],[95,50],[96,51],[97,52],[98,53],[99,54],[100,55],[101,56],[102,57],[103,58],[104,59],[105,60],[106,61],[107,62],[162,63],[149,64],[156,65],[152,66],[150,67],[153,68],[157,69],[158,65],[155,70],[154,71],[159,72],[160,73],[161,74],[151,75],[163,5],[164,5],[170,76],[171,64],[125,5],[124,5],[174,77],[172,78],[116,78],[128,79],[176,80],[175,5],[178,81],[179,82],[173,5],[180,5],[181,83],[177,5],[146,78],[169,84],[166,2],[168,85],[167,2],[165,5],[12,5],[11,5],[2,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[3,5],[4,5],[24,5],[21,5],[22,5],[23,5],[25,5],[26,5],[27,5],[5,5],[28,5],[29,5],[30,5],[31,5],[6,5],[32,5],[33,5],[34,5],[35,5],[7,5],[36,5],[41,5],[42,5],[37,5],[38,5],[39,5],[40,5],[8,5],[46,5],[43,5],[44,5],[45,5],[47,5],[9,5],[48,5],[49,5],[50,5],[51,5],[1,5],[10,5],[52,5],[57,92],[53,93],[54,94],[55,95],[56,96],[58,97]],"semanticDiagnosticsPerFile":[110,111,113,117,118,120,119,112,121,122,130,126,129,131,132,115,133,134,135,136,137,138,123,114,141,139,142,140,143,144,127,145,147,148,59,60,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,61,108,77,78,79,109,80,81,82,83,84,85,86,87,88,89,90,91,93,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,162,149,156,152,150,153,157,158,155,154,159,160,161,151,163,164,170,171,125,124,174,172,116,128,176,175,178,179,173,180,181,177,146,169,166,168,167,165,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,36,41,42,37,38,39,40,8,46,43,44,45,47,9,48,49,50,51,1,10,52,57,53,54,55,56,58]},"version":"4.7.3"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../src/AccessNode.ts","../../src/AuthorizationScope.ts","../../src/Authorizator.ts","../../src/Permissions.ts","../../src/AccessEvaluator.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/accepts/index.d.ts","../../../../node_modules/@types/bcrypt/index.d.ts","../../../../node_modules/@types/connect/index.d.ts","../../../../node_modules/@types/body-parser/index.d.ts","../../../../node_modules/@types/keyv/index.d.ts","../../../../node_modules/@types/http-cache-semantics/index.d.ts","../../../../node_modules/@types/responselike/index.d.ts","../../../../node_modules/@types/cacheable-request/index.d.ts","../../../../node_modules/@types/caseless/index.d.ts","../../../../node_modules/@types/chai/index.d.ts","../../../../node_modules/@types/chai-subset/index.d.ts","../../../../node_modules/@types/content-disposition/index.d.ts","../../../../node_modules/@types/cookiejar/index.d.ts","../../../../node_modules/@types/keygrip/index.d.ts","../../../../node_modules/@types/range-parser/index.d.ts","../../../../node_modules/@types/qs/index.d.ts","../../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../../node_modules/@types/mime/Mime.d.ts","../../../../node_modules/@types/mime/index.d.ts","../../../../node_modules/@types/serve-static/index.d.ts","../../../../node_modules/@types/express/index.d.ts","../../../../node_modules/@types/cookies/index.d.ts","../../../../node_modules/@types/fs-extra/index.d.ts","../../../../node_modules/@types/http-assert/index.d.ts","../../../../node_modules/@types/http-errors/index.d.ts","../../../../node_modules/@types/js-yaml/index.d.ts","../../../../node_modules/@types/json-buffer/index.d.ts","../../../../node_modules/@types/json-schema/index.d.ts","../../../../node_modules/@types/json-stable-stringify/index.d.ts","../../../../node_modules/@types/jsonwebtoken/index.d.ts","../../../../node_modules/@types/koa-compose/index.d.ts","../../../../node_modules/@types/koa/index.d.ts","../../../../node_modules/@types/koa-bodyparser/index.d.ts","../../../../node_modules/@types/koa-compress/index.d.ts","../../../../node_modules/@types/koa__cors/index.d.ts","../../../../node_modules/@types/mime-types/index.d.ts","../../../../node_modules/@types/mustache/index.d.ts","../../../../node_modules/form-data/index.d.ts","../../../../node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/@types/nodemailer/lib/dkim/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts","../../../../node_modules/@types/nodemailer/lib/xoauth2/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mime-node/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts","../../../../node_modules/@types/nodemailer/lib/shared/index.d.ts","../../../../node_modules/@types/nodemailer/lib/json-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/ses-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/stream-transport/index.d.ts","../../../../node_modules/@types/nodemailer/index.d.ts","../../../../node_modules/@types/npm-package-arg/index.d.ts","../../../../node_modules/@types/parse-json/index.d.ts","../../../../node_modules/pg-types/index.d.ts","../../../../node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/@types/pg/index.d.ts","../../../../node_modules/@types/prompts/index.d.ts","../../../../node_modules/@types/request/node_modules/form-data/index.d.ts","../../../../node_modules/@types/tough-cookie/index.d.ts","../../../../node_modules/@types/request/index.d.ts","../../../../node_modules/@types/sinonjs__fake-timers/index.d.ts","../../../../node_modules/@types/sinon/index.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@types/superagent/index.d.ts","../../../../node_modules/@types/supertest/index.d.ts","../../../../node_modules/@types/uuid/index.d.ts","../../../../node_modules/@types/ws/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"9e5dab55e3e2f65c0f634771907abdf7429311defbf5f28de42e3cc1d2ec3abb","signature":"e40080d8ef48c0ce003916bdf59f21d5e0c46c5759bdf44d54021fdcf5e69f58"},{"version":"ce09cfb98b3af1695eae79586001995cf34a4556088fb1f6a5ab36347ad39aec","signature":"e9b47c2a61c2ba47e8937a9ab81aadbd9557ce8701fd21bbd9587dc08195d4eb"},{"version":"cbe9fdd1641ff882126da42ea4b948ad4e5be79eb3570090d9809c08aee049da","signature":"cd8c3054bcd499e9113e59528b7e167479f86db985a12677d513ad427571f21a"},{"version":"2370007dbe65595a6436515cd212a7f991058634ecb52cd9bdf87134c52430ca","signature":"ff211d5b8d41f0341003f873766cbcb4a67c4a8d83741efbb4a70ec1a80e2d5e"},{"version":"622c8ccd68572d2dd4d323ca257461ee8cc0079bd1c13e54e27b1a60f03ac7cb","signature":"12b6db3c0f00a8e14b6d6aca2e304b9a580897f855a586bc452893b5cf1080df"},{"version":"21efb48ecb23411d6293cc0267eea90d2ba5ba77aa0b379a88169fa9ec550b86","signature":"2e5efbddb3871c537a41a11c2a18b89700ccd624d378f658340634c2ad601d28"},"9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"002d6d5f044365b3fbfba0ba9be3bb57cac09b81547c8df4b0795755d2081d90","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","c4cfc9a6e2ebb8bc8c0e2392dfc4056993ced3b35069ebf132ac18ca7a562881","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"bae4ea23beb8397755b935cb84d3cdc6cdb0b1b4a329b90de9fc6c8774d71994","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","df36874d9e56aff601e921c4b3971d37cf66d14f6455935ce821e6cad13b1823","68915895d4a136df5cf5f90aaa41d8e1e47ec047e7781a150b5d0cf273dbb7a9","acfbb5aaef964e1d441f961a1846197f03241dba3c63b1e4d1903684888ef465","09416dd69576b03a3f485adf329a02f043e4a481e060ef5b208194e488d31fd9","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"76527127c8b749bee5977408861ce3ee56ec19ddcea8704c628f98ca610283e6","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","cb92bc2e42b261e4299025756f1beb826b3d9666a3f0d46f8a7254ca512f57e4","cb4f3f03480e1727eae46400606cecaa97f550186ff8fa909ebc00db4180531b",{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","556bf5c36deb62cffa1bf697c1789fe008ec82db0273025001db66732714e9d9","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","0830071706fa0e477fb5e95f0955cc1062b5948b146b7d4e03a126f12ad6085f",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2d526e6f21d8cc66ac11ada32874e95ae88d870c6c9d3d9d4e03b1d1f9ad7b8e","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","d2ec52f565f0570e90b659811347bd689f8c6039b11eaaccd0f243759d46da6e","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"a12806a1bde5e9f137bb79728d87a4ceaedf04e95efc9967d3288a3c252d9a7b","6738101ae8e56cd3879ab3f99630ada7d78097fc9fd334df7e766216778ca219","57ddc4e066366bbe04f497f9afce1c88e088dbd09be0618e072754450de3acbb","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","fec943fdb3275eb6e006b35e04a8e2e99e9adf3f4b969ddf15315ac7575a93e4","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","5343f3c160282dfbaab9af350119a0c3b59b7076ef0117bb5995a66e240dab28",{"version":"127bf414ca8ced28c9738b91a935121009d03bbc136668db980bd1ba18976b2b","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"204dbe6c72467fb14bbe8f06510b11fb541b6ce29580c6e10ebd3bdb2eb0c1f9","8d48b8f8a377ade8dd1f000625bc276eea067f2529cc9cafdf082d17142107d6","ce013414484233b24f42c0fcfca48a60bb66ab4e13c82953662305e8f1ee4925","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"ae3fe461989bbd951344efc1f1fe932360ce7392e6126bdb225a82a1bbaf15ee","affectsGlobalScope":true},"5b9ecf7da4d71cf3832dbb8336150fa924631811f488ad4690c2dfec2b4fb1d7","951c85f75aac041dddbedfedf565886a7b494e29ec1532e2a9b4a6180560b50e","f47887b61c6cf2f48746980390d6cb5b8013518951d912cfb37fe748071942be","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","eb96a2321f717bccc3e49e104e299152984b927ea4546b559ae631c06565819c","ed19da84b7dbf00952ad0b98ce5c194f1903bcf7c94d8103e8e0d63b271543ae","e98185f4249720ace1921d59c1ff4612fa5c633a183fc9bf28e2e7b8e3c7fd51","6168414aa12d33d0fcfac4f9870aa81ce27e136db6faf182001a5f3792e1d720","686e548ae30250d62532c8cacb43fccc922b693408371bd3503563c4a0f28eed","75bdc1b420f0ffc6cc6fd0b6694d89f5072bf755b4e6c7e65a2fda797ca0bb8a","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","13cc3979e1f548aacaa23911f2d6e69c1a2999266c4a1952806de1e9593bdaaa","bb4ed283cfb3db7ec1d4bb79c37f5e96d39b340f1f4de995c4b0b836c8d5fa05","5006668996956580886022c05108e32c742823e1b5652aff7914917233731518","3a9b877f47119ac64aab98c61cae91a304ddeb6e8285ccd824a6aa665ffaeb95","aff59cc6a1f2049bc6ac37cdd5a7d449584f28e7ee5ba240bd903aefdaef6418","77224b06a9d39e8710eca2050acadd9f9e062b068d74aa98e38a6854c272d35e","dcb9aa62f2662b999047096125adfa905cca0c988d7f5130e38ab41afeb96a3f","c757372a092924f5c16eaf11a1475b80b95bb4dae49fe3242d2ad908f97d5abe","017cfb3f6986b6b449fda402cce0f7da77820cb7000d5faf5a8b62587684031a","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","3898e3dbe94b6fe529fbe8f0faee1309c1923100516d7a014b301955e52ece77","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","bb654d426b82e0846cd4bd7de91d637039ecdfd63c94447373490178f80846fe","db90f54098b237753ac9c846e39cd49aa538dcad07a2e1c68a138f3c0f8e621d","92ad68795c32309fb43576cacb38bd2677deeed38f5730dcd4a8c5e65463ae15","6e41751646fe275206d052a2e5ba87d27dd0df4dcbca134fc3fd2dc4d3d410d2","eecb2ea10a1500dcc6bdeff14be1fb43806f63a9b8562e16e1b4fc8baa8dfa8d","221a6ab66d611349faaf80af49c7a34d95623787610fd153fed4da0811abdcae","f3d84d6f83cf131e4db335dc8100898adbeb01dd4cf4e2fe695ab220eac98be4","6521aaade4e1d23cbc4b665083b004aeaca23f3347ba2422f88d1828968a0056","e79130cf2ba010f2b79747bf43b086252ad041b130768331a1144c0a86185877","e9709ed827c40789c669736fc78e2ab603605e8e81325d1e6d7a5eb451810dd0","dafce7a7b279977940b6b4b50017625e4f922f73094433d2875994bdc0b27e87","6fc76efbb61d3336833ef44ff3f37552667f26c2a73b368f3b4b259f19f2c234","479496e5bb48f2f5e981ef646665bc09fd9ab080e86e9ea882ca4369411604af","6c559dee3c6251c261b67df08e01d4cbc89cbd7a63300150c636705733cebfff","9b5a5e0d06f8646aa2978afb1b5bb5e608649751e9cfc7290e86be42605ba42f","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","5f7614d60b32dc66e5d665eafd10d7619eedca3a20f0e876e9ec73141735e364","e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c","f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","354abbae08f72ea982b1a767a8908f1b3efe8bbe53955c64f9c0c249c8832d5d","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","31c502014e5ba046d5cb060136929b73fd53f0f989aa37b2b0424644cb0d93ef","76232dbb982272b182a76ad8745a9b02724dc9896e2328ce360e2c56c64c9778","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6"],"options":{"composite":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"module":1,"noEmitOnError":true,"outDir":"./","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[79,106,113],[106,113],[79,106,113,116],[76,79,105,106,113,118,119,120],[106],[106,123],[79,106,113,116,127,134],[76,79,106,113,128,129],[106,117,129,130,133],[77,106,113],[76,106,113],[106,145],[106,111,113,145],[76,79,80,84,90,105,106,113,114,125,127,135,137,138,144],[106,132],[106,131],[79,105,106,113,151,152],[61,106],[64,106],[65,70,106],[66,76,77,84,94,105,106],[66,67,76,84,106],[68,106],[69,70,77,85,106],[70,94,102,106],[71,73,76,84,106],[72,106],[73,74,106],[75,76,106],[76,106],[76,77,78,94,105,106],[76,77,78,94,97,106],[106,110],[79,84,94,105,106],[76,77,79,80,84,94,102,105,106],[79,81,94,102,105,106],[61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],[76,82,106],[83,105,106],[73,76,84,94,106],[85,106],[86,106],[64,87,106],[88,104,106,110],[89,106],[90,106],[76,91,92,106],[91,93,106,108],[76,94,95,96,97,106],[94,96,106],[94,95,106],[97,106],[98,106],[76,100,101,106],[100,101,106],[70,84,94,102,106],[103,106],[84,104,106],[65,79,90,105,106],[70,106],[94,106,107],[106,108],[106,109],[65,70,76,78,87,94,105,106,108,110],[94,106,111],[106,113,155,157,161,162,163,164,165,166],[94,106,113],[76,106,113,155,157,158,160,167],[76,84,94,105,106,113,154,155,156,158,159,160,167],[94,106,113,157,158],[94,106,113,157,159],[106,113,155,157,158,160,167],[94,106,113,159],[76,84,94,102,106,113,156,158,160],[76,106,113,155,157,158,159,160,167],[76,94,106,113,155,156,157,158,159,160,167],[76,94,106,113,155,157,158,160,167],[79,94,106,113,160],[76,94,102,106,113,170,171,174,175],[77,79,81,84,94,105,106,113,122,177,178],[79,94,106,113],[79,106,113,132],[106,180],[65,77,79,94,106,113,126],[106,183],[76,79,81,94,102,105,106,111,113],[106,113,171,172,173],[94,106,113,171],[55,57,58,106],[57,59,106],[55,106],[55,56,59,106],[57,106],[55,56,57,58,59,106],[55,57,58],[57,59],[55],[56,59],[57],[55,56,57,58,59]],"referencedMap":[[114,1],[115,2],[117,3],[121,4],[122,5],[124,6],[123,5],[116,1],[125,5],[126,5],[135,7],[130,8],[134,9],[136,10],[137,5],[119,5],[138,5],[139,5],[140,5],[141,5],[142,5],[143,2],[127,5],[118,11],[146,12],[144,12],[147,13],[145,14],[148,12],[149,5],[131,15],[132,16],[150,5],[152,5],[153,17],[61,18],[62,18],[64,19],[65,20],[66,21],[67,22],[68,23],[69,24],[70,25],[71,26],[72,27],[73,28],[74,28],[75,29],[76,30],[77,31],[78,32],[63,33],[112,5],[79,34],[80,35],[81,36],[113,37],[82,38],[83,39],[84,40],[85,41],[86,42],[87,43],[88,44],[89,45],[90,46],[91,47],[92,47],[93,48],[94,49],[96,50],[95,51],[97,52],[98,53],[99,5],[100,54],[101,55],[102,56],[103,57],[104,58],[105,59],[106,60],[107,61],[108,62],[109,63],[110,64],[111,65],[167,66],[154,67],[161,68],[157,69],[155,70],[158,71],[162,72],[163,68],[160,73],[159,74],[164,75],[165,76],[166,77],[156,78],[168,5],[169,5],[175,79],[176,67],[129,5],[128,5],[179,80],[177,81],[120,81],[133,82],[181,83],[180,5],[183,84],[184,85],[178,5],[185,5],[186,86],[182,5],[151,81],[174,87],[171,2],[173,88],[172,2],[170,5],[11,5],[13,5],[12,5],[2,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[21,5],[3,5],[4,5],[25,5],[22,5],[23,5],[24,5],[26,5],[27,5],[28,5],[5,5],[29,5],[30,5],[31,5],[32,5],[6,5],[33,5],[34,5],[35,5],[36,5],[7,5],[37,5],[42,5],[43,5],[38,5],[39,5],[40,5],[41,5],[8,5],[47,5],[44,5],[45,5],[46,5],[48,5],[9,5],[49,5],[50,5],[51,5],[52,5],[53,5],[1,5],[10,5],[54,5],[59,89],[55,90],[56,91],[57,92],[58,93],[60,94]],"exportedModulesMap":[[114,1],[115,2],[117,3],[121,4],[122,5],[124,6],[123,5],[116,1],[125,5],[126,5],[135,7],[130,8],[134,9],[136,10],[137,5],[119,5],[138,5],[139,5],[140,5],[141,5],[142,5],[143,2],[127,5],[118,11],[146,12],[144,12],[147,13],[145,14],[148,12],[149,5],[131,15],[132,16],[150,5],[152,5],[153,17],[61,18],[62,18],[64,19],[65,20],[66,21],[67,22],[68,23],[69,24],[70,25],[71,26],[72,27],[73,28],[74,28],[75,29],[76,30],[77,31],[78,32],[63,33],[112,5],[79,34],[80,35],[81,36],[113,37],[82,38],[83,39],[84,40],[85,41],[86,42],[87,43],[88,44],[89,45],[90,46],[91,47],[92,47],[93,48],[94,49],[96,50],[95,51],[97,52],[98,53],[99,5],[100,54],[101,55],[102,56],[103,57],[104,58],[105,59],[106,60],[107,61],[108,62],[109,63],[110,64],[111,65],[167,66],[154,67],[161,68],[157,69],[155,70],[158,71],[162,72],[163,68],[160,73],[159,74],[164,75],[165,76],[166,77],[156,78],[168,5],[169,5],[175,79],[176,67],[129,5],[128,5],[179,80],[177,81],[120,81],[133,82],[181,83],[180,5],[183,84],[184,85],[178,5],[185,5],[186,86],[182,5],[151,81],[174,87],[171,2],[173,88],[172,2],[170,5],[11,5],[13,5],[12,5],[2,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[21,5],[3,5],[4,5],[25,5],[22,5],[23,5],[24,5],[26,5],[27,5],[28,5],[5,5],[29,5],[30,5],[31,5],[32,5],[6,5],[33,5],[34,5],[35,5],[36,5],[7,5],[37,5],[42,5],[43,5],[38,5],[39,5],[40,5],[41,5],[8,5],[47,5],[44,5],[45,5],[46,5],[48,5],[9,5],[49,5],[50,5],[51,5],[52,5],[53,5],[1,5],[10,5],[54,5],[59,95],[55,96],[56,97],[57,98],[58,99],[60,100]],"semanticDiagnosticsPerFile":[114,115,117,121,122,124,123,116,125,126,135,130,134,136,137,119,138,139,140,141,142,143,127,118,146,144,147,145,148,149,131,132,150,152,153,61,62,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,63,112,79,80,81,113,82,83,84,85,86,87,88,89,90,91,92,93,94,96,95,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,167,154,161,157,155,158,162,163,160,159,164,165,166,156,168,169,175,176,129,128,179,177,120,133,181,180,183,184,178,185,186,182,151,174,171,173,172,170,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,37,42,43,38,39,40,41,8,47,44,45,46,48,9,49,50,51,52,53,1,10,54,59,55,56,57,58,60],"latestChangedDtsFile":"./index.d.ts"},"version":"4.8.2"}
|
package/package.json
CHANGED
package/src/AccessEvaluator.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Permissions from './Permissions'
|
|
2
|
-
import AccessNode from './AccessNode'
|
|
3
|
-
import Authorizator from './Authorizator'
|
|
1
|
+
import { Permissions } from './Permissions'
|
|
2
|
+
import { AccessNode } from './AccessNode'
|
|
3
|
+
import { Authorizator } from './Authorizator'
|
|
4
4
|
|
|
5
5
|
interface AccessEvaluator {
|
|
6
6
|
evaluate(accessNode: AccessNode, action: Authorizator.Action): Promise<boolean>
|
|
@@ -10,12 +10,12 @@ namespace AccessEvaluator {
|
|
|
10
10
|
export class PermissionEvaluator implements AccessEvaluator {
|
|
11
11
|
constructor(private readonly permissions: Permissions) {}
|
|
12
12
|
|
|
13
|
-
async evaluate(accessNode: AccessNode, { resource, privilege }: Authorizator.Action): Promise<boolean> {
|
|
13
|
+
async evaluate(accessNode: AccessNode, { resource, privilege, meta }: Authorizator.Action<any>): Promise<boolean> {
|
|
14
14
|
if (!(accessNode instanceof AccessNode.Roles)) {
|
|
15
15
|
throw new UnsupportedAccessNodeError()
|
|
16
16
|
}
|
|
17
17
|
for (let role of accessNode.roles) {
|
|
18
|
-
if (this.permissions.isAllowed(role, resource, privilege)) {
|
|
18
|
+
if (this.permissions.isAllowed(role, resource, privilege, meta)) {
|
|
19
19
|
return true
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -26,4 +26,4 @@ namespace AccessEvaluator {
|
|
|
26
26
|
class UnsupportedAccessNodeError extends Error {}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export
|
|
29
|
+
export { AccessEvaluator }
|
package/src/AccessNode.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import AccessEvaluator from './AccessEvaluator'
|
|
2
|
-
import Authorizator from './Authorizator'
|
|
1
|
+
import { AccessEvaluator } from './AccessEvaluator'
|
|
2
|
+
import { Authorizator } from './Authorizator'
|
|
3
3
|
|
|
4
4
|
interface AccessNode {
|
|
5
5
|
isAllowed(accessEvaluator: AccessEvaluator, action: Authorizator.Action): Promise<boolean>
|
|
@@ -80,4 +80,4 @@ namespace AccessNode {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export
|
|
83
|
+
export { AccessNode }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AccessNode from './AccessNode'
|
|
1
|
+
import { AccessNode } from './AccessNode'
|
|
2
2
|
|
|
3
3
|
interface AuthorizationScope<Identity> {
|
|
4
4
|
getIdentityAccess(identity: Identity): Promise<AccessNode>
|
|
@@ -44,4 +44,4 @@ namespace AuthorizationScope {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export
|
|
47
|
+
export { AuthorizationScope }
|
package/src/Authorizator.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import AuthorizationScope from './AuthorizationScope'
|
|
2
|
-
import AccessEvaluator from './AccessEvaluator'
|
|
3
|
-
import AccessNode from './AccessNode'
|
|
1
|
+
import { AuthorizationScope } from './AuthorizationScope'
|
|
2
|
+
import { AccessEvaluator } from './AccessEvaluator'
|
|
3
|
+
import { AccessNode } from './AccessNode'
|
|
4
4
|
|
|
5
5
|
interface Authorizator<Identity extends Authorizator.Identity = Authorizator.Identity> {
|
|
6
6
|
isAllowed(identity: Identity, scope: AuthorizationScope<Identity>, action: Authorizator.Action): Promise<boolean>
|
|
@@ -9,16 +9,16 @@ interface Authorizator<Identity extends Authorizator.Identity = Authorizator.Ide
|
|
|
9
9
|
namespace Authorizator {
|
|
10
10
|
export type Resource = string
|
|
11
11
|
export type Privilege = string
|
|
12
|
-
export type Action<Meta = undefined
|
|
13
|
-
? { resource: Resource; privilege: Privilege }
|
|
14
|
-
: { resource: Resource; privilege: Privilege; meta
|
|
12
|
+
export type Action<Meta extends undefined | {} = undefined | Record<string, unknown>> = Meta extends {}
|
|
13
|
+
? { resource: Resource; privilege: Privilege; meta: Meta }
|
|
14
|
+
: { resource: Resource; privilege: Privilege; meta?: Meta }
|
|
15
15
|
|
|
16
16
|
type ActionCreator =
|
|
17
17
|
| ((resource: Resource, privilege: Privilege) => Action)
|
|
18
|
-
| (<Meta>(resource: Resource, privilege: Privilege, meta: Meta) => Action<Meta>)
|
|
18
|
+
| (<Meta extends {} | undefined>(resource: Resource, privilege: Privilege, meta: Meta) => Action<Meta>)
|
|
19
19
|
|
|
20
20
|
export function createAction(resource: Resource, privilege: Privilege): Action<undefined>
|
|
21
|
-
export function createAction<Meta>(resource: Resource, privilege: Privilege, meta: Meta): Action<Meta>
|
|
21
|
+
export function createAction<Meta extends {} | undefined>(resource: Resource, privilege: Privilege, meta: Meta): Action<Meta>
|
|
22
22
|
export function createAction<Meta>(resource: Resource, privilege: Privilege, meta?: Meta) {
|
|
23
23
|
return {
|
|
24
24
|
resource,
|
|
@@ -47,4 +47,4 @@ namespace Authorizator {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export
|
|
50
|
+
export { Authorizator }
|
package/src/Permissions.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import Authorizator from './Authorizator'
|
|
1
|
+
import { Authorizator } from './Authorizator'
|
|
2
2
|
|
|
3
3
|
class Permissions {
|
|
4
4
|
private permissions: Permissions.PermissionsMap = {}
|
|
5
5
|
|
|
6
|
-
public allow
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
this.permissions[role][resource][privilege] =
|
|
6
|
+
public allow<Meta extends {} | undefined = undefined>(
|
|
7
|
+
role: string,
|
|
8
|
+
{ resource, privilege }: Authorizator.Action<Meta>,
|
|
9
|
+
verifier: (meta: Meta) => boolean = () => true,
|
|
10
|
+
) {
|
|
11
|
+
this.permissions[role] ??= {}
|
|
12
|
+
this.permissions[role][resource] ??= {}
|
|
13
|
+
this.permissions[role][resource][privilege] = verifier
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
public isAllowed(role: string, resource: string, action: string): boolean {
|
|
16
|
+
public isAllowed(role: string, resource: string, action: string, meta: any): boolean {
|
|
17
17
|
const rolePermissions = this.permissions[role]
|
|
18
18
|
if (!rolePermissions) {
|
|
19
19
|
return false
|
|
20
20
|
}
|
|
21
21
|
for (let tmpResource of [resource, Permissions.ALL]) {
|
|
22
22
|
for (let tmpAction of [action, Permissions.ALL]) {
|
|
23
|
-
if (rolePermissions[tmpResource]
|
|
23
|
+
if (rolePermissions[tmpResource]?.[tmpAction]?.(meta) === true) {
|
|
24
24
|
return true
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -31,7 +31,13 @@ class Permissions {
|
|
|
31
31
|
|
|
32
32
|
namespace Permissions {
|
|
33
33
|
export const ALL = '*'
|
|
34
|
-
export type PermissionsMap = {
|
|
34
|
+
export type PermissionsMap = {
|
|
35
|
+
[role: string]: {
|
|
36
|
+
[resource: string]: {
|
|
37
|
+
[privilege: string]: (meta: any) => boolean
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
35
41
|
}
|
|
36
42
|
|
|
37
|
-
export
|
|
43
|
+
export { Permissions }
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
1
|
+
export * from './Authorizator'
|
|
2
|
+
export * from './AccessEvaluator'
|
|
3
|
+
export * from './AccessNode'
|
|
4
|
+
export * from './AuthorizationScope'
|
|
5
|
+
export * from './Permissions'
|