@imolko/ultra-ddd 3.0.1-beta → 3.0.2-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-browser/authorization/errors/authorization.error.d.ts +21 -7
- package/dist-browser/authorization/errors/authorization.error.d.ts.map +1 -1
- package/dist-browser/authorization/errors/authorization.error.js +26 -7
- package/dist-browser/authorization/errors/authorization.error.js.map +1 -1
- package/dist-browser/authorization/index.d.ts +1 -0
- package/dist-browser/authorization/index.d.ts.map +1 -1
- package/dist-browser/authorization/index.js +1 -0
- package/dist-browser/authorization/index.js.map +1 -1
- package/dist-browser/authorization/ports/authorization.port.d.ts +14 -3
- package/dist-browser/authorization/ports/authorization.port.d.ts.map +1 -1
- package/dist-browser/authorization/ports/authorization.port.js.map +1 -1
- package/dist-browser/authorization/resource-scope/conditions.d.ts +26 -0
- package/dist-browser/authorization/resource-scope/conditions.d.ts.map +1 -0
- package/dist-browser/authorization/resource-scope/conditions.js +27 -0
- package/dist-browser/authorization/resource-scope/conditions.js.map +1 -0
- package/dist-browser/authorization/resource-scope/definition.d.ts +23 -0
- package/dist-browser/authorization/resource-scope/definition.d.ts.map +1 -0
- package/dist-browser/authorization/resource-scope/definition.js +34 -0
- package/dist-browser/authorization/resource-scope/definition.js.map +1 -0
- package/dist-browser/authorization/resource-scope/errors.d.ts +3 -0
- package/dist-browser/authorization/resource-scope/errors.d.ts.map +1 -0
- package/dist-browser/authorization/resource-scope/errors.js +2 -0
- package/dist-browser/authorization/resource-scope/errors.js.map +1 -0
- package/dist-browser/authorization/resource-scope/index.d.ts +5 -0
- package/dist-browser/authorization/resource-scope/index.d.ts.map +1 -0
- package/dist-browser/authorization/resource-scope/index.js +2 -0
- package/dist-browser/authorization/resource-scope/index.js.map +1 -0
- package/dist-browser/authorization/resource-scope/payload.d.ts +4 -0
- package/dist-browser/authorization/resource-scope/payload.d.ts.map +1 -0
- package/dist-browser/authorization/resource-scope/payload.js +2 -0
- package/dist-browser/authorization/resource-scope/payload.js.map +1 -0
- package/dist-browser/authorization/resource-scope/primitive.d.ts +2 -0
- package/dist-browser/authorization/resource-scope/primitive.d.ts.map +1 -0
- package/dist-browser/authorization/resource-scope/primitive.js +2 -0
- package/dist-browser/authorization/resource-scope/primitive.js.map +1 -0
- package/dist-browser/authorization/resource-scope/props.d.ts +7 -0
- package/dist-browser/authorization/resource-scope/props.d.ts.map +1 -0
- package/dist-browser/authorization/resource-scope/props.js +2 -0
- package/dist-browser/authorization/resource-scope/props.js.map +1 -0
- package/dist-browser/authorization/resource-scope/value-object.d.ts +102 -0
- package/dist-browser/authorization/resource-scope/value-object.d.ts.map +1 -0
- package/dist-browser/authorization/resource-scope/value-object.js +17 -0
- package/dist-browser/authorization/resource-scope/value-object.js.map +1 -0
- package/dist-browser/authorization/secured-use-case/secured-use-case.mixin.d.ts +6 -4
- package/dist-browser/authorization/secured-use-case/secured-use-case.mixin.d.ts.map +1 -1
- package/dist-browser/authorization/secured-use-case/secured-use-case.mixin.js +93 -11
- package/dist-browser/authorization/secured-use-case/secured-use-case.mixin.js.map +1 -1
- package/dist-browser/authorization/secured-use-case/secured-use-case.types.d.ts +28 -0
- package/dist-browser/authorization/secured-use-case/secured-use-case.types.d.ts.map +1 -1
- package/dist-node/authorization/errors/authorization.error.d.ts +21 -7
- package/dist-node/authorization/errors/authorization.error.d.ts.map +1 -1
- package/dist-node/authorization/errors/authorization.error.js +26 -7
- package/dist-node/authorization/errors/authorization.error.js.map +1 -1
- package/dist-node/authorization/index.d.ts +1 -0
- package/dist-node/authorization/index.d.ts.map +1 -1
- package/dist-node/authorization/index.js +1 -0
- package/dist-node/authorization/index.js.map +1 -1
- package/dist-node/authorization/ports/authorization.port.d.ts +14 -3
- package/dist-node/authorization/ports/authorization.port.d.ts.map +1 -1
- package/dist-node/authorization/ports/authorization.port.js.map +1 -1
- package/dist-node/authorization/resource-scope/conditions.d.ts +26 -0
- package/dist-node/authorization/resource-scope/conditions.d.ts.map +1 -0
- package/dist-node/authorization/resource-scope/conditions.js +30 -0
- package/dist-node/authorization/resource-scope/conditions.js.map +1 -0
- package/dist-node/authorization/resource-scope/definition.d.ts +23 -0
- package/dist-node/authorization/resource-scope/definition.d.ts.map +1 -0
- package/dist-node/authorization/resource-scope/definition.js +37 -0
- package/dist-node/authorization/resource-scope/definition.js.map +1 -0
- package/dist-node/authorization/resource-scope/errors.d.ts +3 -0
- package/dist-node/authorization/resource-scope/errors.d.ts.map +1 -0
- package/dist-node/authorization/resource-scope/errors.js +3 -0
- package/dist-node/authorization/resource-scope/errors.js.map +1 -0
- package/dist-node/authorization/resource-scope/index.d.ts +5 -0
- package/dist-node/authorization/resource-scope/index.d.ts.map +1 -0
- package/dist-node/authorization/resource-scope/index.js +6 -0
- package/dist-node/authorization/resource-scope/index.js.map +1 -0
- package/dist-node/authorization/resource-scope/payload.d.ts +4 -0
- package/dist-node/authorization/resource-scope/payload.d.ts.map +1 -0
- package/dist-node/authorization/resource-scope/payload.js +3 -0
- package/dist-node/authorization/resource-scope/payload.js.map +1 -0
- package/dist-node/authorization/resource-scope/primitive.d.ts +2 -0
- package/dist-node/authorization/resource-scope/primitive.d.ts.map +1 -0
- package/dist-node/authorization/resource-scope/primitive.js +3 -0
- package/dist-node/authorization/resource-scope/primitive.js.map +1 -0
- package/dist-node/authorization/resource-scope/props.d.ts +7 -0
- package/dist-node/authorization/resource-scope/props.d.ts.map +1 -0
- package/dist-node/authorization/resource-scope/props.js +3 -0
- package/dist-node/authorization/resource-scope/props.js.map +1 -0
- package/dist-node/authorization/resource-scope/value-object.d.ts +102 -0
- package/dist-node/authorization/resource-scope/value-object.d.ts.map +1 -0
- package/dist-node/authorization/resource-scope/value-object.js +20 -0
- package/dist-node/authorization/resource-scope/value-object.js.map +1 -0
- package/dist-node/authorization/secured-use-case/secured-use-case.mixin.d.ts +6 -4
- package/dist-node/authorization/secured-use-case/secured-use-case.mixin.d.ts.map +1 -1
- package/dist-node/authorization/secured-use-case/secured-use-case.mixin.js +93 -11
- package/dist-node/authorization/secured-use-case/secured-use-case.mixin.js.map +1 -1
- package/dist-node/authorization/secured-use-case/secured-use-case.types.d.ts +28 -0
- package/dist-node/authorization/secured-use-case/secured-use-case.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/authorization/resource-scope/errors.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ResourceScope } from './value-object';
|
|
2
|
+
export { Errors as ResourceScopeErrors } from './errors';
|
|
3
|
+
export { Payload as ResourceScopePayload } from './payload';
|
|
4
|
+
export { Primitive as ResourceScopePrimitive } from './primitive';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/authorization/resource-scope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,SAAS,IAAI,sBAAsB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceScope = void 0;
|
|
4
|
+
var value_object_1 = require("./value-object");
|
|
5
|
+
Object.defineProperty(exports, "ResourceScope", { enumerable: true, get: function () { return value_object_1.ResourceScope; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/authorization/resource-scope/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAAtC,6GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/authorization/resource-scope/payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../src/authorization/resource-scope/payload.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../src/authorization/resource-scope/primitive.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.js","sourceRoot":"","sources":["../../../src/authorization/resource-scope/primitive.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/authorization/resource-scope/props.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../src/authorization/resource-scope/props.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Definition } from './definition';
|
|
2
|
+
import { Errors } from './errors';
|
|
3
|
+
import { Props } from './props';
|
|
4
|
+
declare const ResourceScope_base: ((abstract new (...args: any[]) => {
|
|
5
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
6
|
+
readonly props: Readonly<Props>;
|
|
7
|
+
equals<Implemented extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
8
|
+
getPrimitive(): string;
|
|
9
|
+
getPayload(): string;
|
|
10
|
+
}) & {
|
|
11
|
+
factoryUsed: boolean;
|
|
12
|
+
rules<Implemented extends /*elided*/ any & {
|
|
13
|
+
new (...args: any[]): {
|
|
14
|
+
readonly props: Readonly<Props>;
|
|
15
|
+
equals<Implemented_1 extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
16
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
17
|
+
getPrimitive(): string;
|
|
18
|
+
getPayload(): string;
|
|
19
|
+
} & Props;
|
|
20
|
+
prototype: {
|
|
21
|
+
readonly props: Readonly<Props>;
|
|
22
|
+
equals<Implemented_1 extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
23
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
24
|
+
getPrimitive(): string;
|
|
25
|
+
getPayload(): string;
|
|
26
|
+
} & Props;
|
|
27
|
+
} & ((abstract new (...args: any[]) => {
|
|
28
|
+
readonly props: Readonly<Props>;
|
|
29
|
+
equals<Implemented_1 extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
30
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
31
|
+
getPrimitive(): string;
|
|
32
|
+
getPayload(): string;
|
|
33
|
+
}) & {
|
|
34
|
+
conditions: import("zod").ZodType;
|
|
35
|
+
builder?(value: Props): import("../..").ValueObjectBase<Props, string, string>;
|
|
36
|
+
NAME: string;
|
|
37
|
+
}) & typeof Definition>(this: Implemented): import("zod").ZodType<InstanceType<Implemented>, string, import("zod/v4/core").$ZodTypeInternals<InstanceType<Implemented>, string>>;
|
|
38
|
+
of<Implemented extends /*elided*/ any & {
|
|
39
|
+
new (...args: any[]): {
|
|
40
|
+
readonly props: Readonly<Props>;
|
|
41
|
+
equals<Implemented_1 extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
42
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
43
|
+
getPrimitive(): string;
|
|
44
|
+
getPayload(): string;
|
|
45
|
+
} & Props;
|
|
46
|
+
prototype: {
|
|
47
|
+
readonly props: Readonly<Props>;
|
|
48
|
+
equals<Implemented_1 extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
49
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
50
|
+
getPrimitive(): string;
|
|
51
|
+
getPayload(): string;
|
|
52
|
+
} & Props;
|
|
53
|
+
} & ((abstract new (...args: any[]) => {
|
|
54
|
+
readonly props: Readonly<Props>;
|
|
55
|
+
equals<Implemented_1 extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented_1, other?: Implemented_1 | undefined): boolean;
|
|
56
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
57
|
+
getPrimitive(): string;
|
|
58
|
+
getPayload(): string;
|
|
59
|
+
}) & {
|
|
60
|
+
conditions: import("zod").ZodType;
|
|
61
|
+
builder?(value: Props): import("../..").ValueObjectBase<Props, string, string>;
|
|
62
|
+
NAME: string;
|
|
63
|
+
}) & typeof Definition>(this: Implemented, payload: string): import("@imolko/ultra-result").Validation<Errors, InstanceType<Implemented>>;
|
|
64
|
+
builder(props: Props): {
|
|
65
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
66
|
+
readonly props: Readonly<Props>;
|
|
67
|
+
equals<Implemented extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
68
|
+
getPrimitive(): string;
|
|
69
|
+
getPayload(): string;
|
|
70
|
+
};
|
|
71
|
+
conditions: import("zod").ZodType;
|
|
72
|
+
NAME: string;
|
|
73
|
+
}) & {
|
|
74
|
+
new (...args: any[]): {
|
|
75
|
+
readonly props: Readonly<Props>;
|
|
76
|
+
equals<Implemented extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
77
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
78
|
+
getPrimitive(): string;
|
|
79
|
+
getPayload(): string;
|
|
80
|
+
} & Props;
|
|
81
|
+
prototype: {
|
|
82
|
+
readonly props: Readonly<Props>;
|
|
83
|
+
equals<Implemented extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
84
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
85
|
+
getPrimitive(): string;
|
|
86
|
+
getPayload(): string;
|
|
87
|
+
} & Props;
|
|
88
|
+
} & ((abstract new (...args: any[]) => {
|
|
89
|
+
readonly props: Readonly<Props>;
|
|
90
|
+
equals<Implemented extends import("../..").ValueObjectBase<Props, string, string>>(this: Implemented, other?: Implemented | undefined): boolean;
|
|
91
|
+
clone(changes: Partial<Props>): /*elided*/ any;
|
|
92
|
+
getPrimitive(): string;
|
|
93
|
+
getPayload(): string;
|
|
94
|
+
}) & {
|
|
95
|
+
conditions: import("zod").ZodType;
|
|
96
|
+
builder?(value: Props): import("../..").ValueObjectBase<Props, string, string>;
|
|
97
|
+
NAME: string;
|
|
98
|
+
}) & typeof Definition;
|
|
99
|
+
export declare class ResourceScope extends ResourceScope_base {
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
102
|
+
//# sourceMappingURL=value-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-object.d.ts","sourceRoot":"","sources":["../../../src/authorization/resource-scope/value-object.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,qBAIa,aAAc,SAAQ,kBAMtB;CAAG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ResourceScope = void 0;
|
|
10
|
+
const value_object_1 = require("../../value-object");
|
|
11
|
+
const definition_1 = require("./definition");
|
|
12
|
+
let ResourceScope = class ResourceScope extends (0, value_object_1.ValueObjectWithPublicApi)(definition_1.Definition) {
|
|
13
|
+
};
|
|
14
|
+
exports.ResourceScope = ResourceScope;
|
|
15
|
+
exports.ResourceScope = ResourceScope = __decorate([
|
|
16
|
+
(0, value_object_1.RegisterValueObject)({
|
|
17
|
+
description: 'Alcance opaco del recurso sobre el que el caso de uso seguro ejerce un permiso',
|
|
18
|
+
})
|
|
19
|
+
], ResourceScope);
|
|
20
|
+
//# sourceMappingURL=value-object.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-object.js","sourceRoot":"","sources":["../../../src/authorization/resource-scope/value-object.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAG4B;AAE5B,6CAA0C;AAUnC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,IAAA,uCAAwB,EAMzD,uBAAU,CAAC;CAAG,CAAA;AANH,sCAAa;wBAAb,aAAa;IAJzB,IAAA,kCAAmB,EAAC;QACnB,WAAW,EACT,gFAAgF;KACnF,CAAC;GACW,aAAa,CAMV"}
|
|
@@ -2,10 +2,12 @@ import { SecuredUseCaseConstructor, SecuredUseCaseDefinition } from './secured-u
|
|
|
2
2
|
/**
|
|
3
3
|
* Mixin de caso de uso seguro.
|
|
4
4
|
*
|
|
5
|
-
* Exige `security` en el tipo de la definición,
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `
|
|
5
|
+
* Exige `security` en el tipo de la definición, acepta `securityScope` como
|
|
6
|
+
* estático opcional para resolver los alcances del recurso a partir de la
|
|
7
|
+
* petición, expone `run` como único camino público y oculta `execute` en el
|
|
8
|
+
* tipo (no en el runtime). `run` aplica el enforcement fail-closed y preserva
|
|
9
|
+
* el canal del caso de uso, uniendo `AuthorizationError` a su tipo de error sin
|
|
10
|
+
* anidar resultados.
|
|
9
11
|
*
|
|
10
12
|
* @param Source Definición del caso de uso con `security` y `execute`
|
|
11
13
|
* @returns Constructor cuyo tipo público sólo ofrece `run`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secured-use-case.mixin.d.ts","sourceRoot":"","sources":["../../../src/authorization/secured-use-case/secured-use-case.mixin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secured-use-case.mixin.d.ts","sourceRoot":"","sources":["../../../src/authorization/secured-use-case/secured-use-case.mixin.ts"],"names":[],"mappings":"AAQA,OAAO,EAGL,yBAAyB,EAEzB,wBAAwB,EAEzB,MAAM,0BAA0B,CAAC;AAmLlC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,GAAI,UAAU,SAAS,wBAAwB,EACxE,QAAQ,UAAU,KACjB,yBAAyB,CAAC,UAAU,CAqCtC,CAAC"}
|
|
@@ -5,6 +5,7 @@ exports.SecuredUseCase = void 0;
|
|
|
5
5
|
const ultra_result_1 = require("@imolko/ultra-result");
|
|
6
6
|
const errors_1 = require("../errors");
|
|
7
7
|
const permission_1 = require("../permission");
|
|
8
|
+
const resource_scope_1 = require("../resource-scope");
|
|
8
9
|
const security_1 = require("../security");
|
|
9
10
|
/**
|
|
10
11
|
* Lectura fail-closed de la seguridad declarada.
|
|
@@ -31,22 +32,87 @@ const readSecurity = (security) => {
|
|
|
31
32
|
: [];
|
|
32
33
|
return { mode: candidate?.mode, permissions, trusted: false };
|
|
33
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Indica si un valor se comporta como promesa.
|
|
37
|
+
*
|
|
38
|
+
* @param value Valor devuelto por el resolutor
|
|
39
|
+
* @returns `true` si expone un `then` invocable
|
|
40
|
+
*/
|
|
41
|
+
const isThenable = (value) => typeof value === 'object' &&
|
|
42
|
+
value !== null &&
|
|
43
|
+
typeof value.then === 'function';
|
|
44
|
+
/**
|
|
45
|
+
* Consume una promesa devuelta por el resolutor para que su rechazo no quede
|
|
46
|
+
* huérfano y tumbe el proceso del consumidor.
|
|
47
|
+
*
|
|
48
|
+
* @param value Promesa que se descarta
|
|
49
|
+
*/
|
|
50
|
+
const discard = (value) => {
|
|
51
|
+
Promise.resolve(value).catch(() => undefined);
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Resuelve los alcances declarados por el caso de uso.
|
|
55
|
+
*
|
|
56
|
+
* La resolución es fail-closed: un resolutor no invocable, una excepción, o
|
|
57
|
+
* un retorno que no sea una lista no vacía de `ResourceScope` produce `null`,
|
|
58
|
+
* que el enforcement traduce a denegación. No se interpreta el contenido de
|
|
59
|
+
* los alcances.
|
|
60
|
+
*
|
|
61
|
+
* El resolutor es síncrono por contrato: una promesa se deniega y su rechazo
|
|
62
|
+
* se consume, para que un `securityScope` declarado `async` desde JavaScript
|
|
63
|
+
* no deje un rechazo no gestionado.
|
|
64
|
+
*
|
|
65
|
+
* @param resolver Estático `securityScope` de la definición
|
|
66
|
+
* @param request Petición del caso de uso
|
|
67
|
+
* @returns Los alcances resueltos, o `null` si la resolución no es confiable
|
|
68
|
+
*/
|
|
69
|
+
const resolveScopes = (resolver, request) => {
|
|
70
|
+
if (typeof resolver !== 'function') {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
try {
|
|
74
|
+
const resolved = resolver(request);
|
|
75
|
+
if (isThenable(resolved)) {
|
|
76
|
+
discard(resolved);
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
if (!Array.isArray(resolved) || resolved.length === 0) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
if (!resolved.every((scope) => scope instanceof resource_scope_1.ResourceScope)) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return resolved;
|
|
86
|
+
}
|
|
87
|
+
catch {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
34
91
|
/**
|
|
35
92
|
* Aplica el enforcement fail-closed y devuelve la primera denegación.
|
|
36
93
|
*
|
|
94
|
+
* Precedencia de fallos: sujeto ausente, `security` no validada, resolución
|
|
95
|
+
* de alcances y decisión por permiso.
|
|
96
|
+
*
|
|
37
97
|
* Reglas:
|
|
38
98
|
* - autenticación requerida sin sujeto deniega sin consultar el puerto;
|
|
39
99
|
* - cualquier modo distinto de `optional` sin sujeto deniega;
|
|
40
100
|
* - permisos declarados sin sujeto deniegan;
|
|
41
101
|
* - una `security` no validada deniega;
|
|
102
|
+
* - `securityScope` se resuelve una vez, antes de la primera llamada al
|
|
103
|
+
* puerto, y sólo si hay permisos que autorizar;
|
|
104
|
+
* - un `securityScope` declarado que no devuelve alcances, lanza, devuelve
|
|
105
|
+
* valores no validados, no es invocable o devuelve una promesa deniega;
|
|
106
|
+
* - sin `securityScope`, se autoriza contra `(subject, permission)` como en
|
|
107
|
+
* 3.0.0;
|
|
42
108
|
* - el primer `denied` del puerto detiene la evaluación;
|
|
43
109
|
* - `optional` sin permisos ejecuta aunque no haya sujeto.
|
|
44
110
|
*
|
|
45
|
-
* @param
|
|
46
|
-
* @param context Sujeto y puerto de autorización
|
|
111
|
+
* @param query Seguridad, contexto, petición y resolutor de alcances
|
|
47
112
|
* @returns La denegación o `null` si el caso de uso puede ejecutarse
|
|
48
113
|
*/
|
|
49
|
-
const findDenial = async (
|
|
114
|
+
const findDenial = async (query) => {
|
|
115
|
+
const { security, context, request, securityScope } = query;
|
|
50
116
|
const { subject, authorizationPort } = context;
|
|
51
117
|
const { mode, permissions, trusted } = readSecurity(security);
|
|
52
118
|
if (!subject) {
|
|
@@ -56,10 +122,19 @@ const findDenial = async (security, context) => {
|
|
|
56
122
|
if (!trusted) {
|
|
57
123
|
return new errors_1.AuthorizationError(subject, null);
|
|
58
124
|
}
|
|
125
|
+
const hasSecurityScope = securityScope !== undefined;
|
|
126
|
+
const scopes = hasSecurityScope && permissions.length > 0
|
|
127
|
+
? resolveScopes(securityScope, request)
|
|
128
|
+
: null;
|
|
129
|
+
if (hasSecurityScope && permissions.length > 0 && scopes === null) {
|
|
130
|
+
return new errors_1.AuthorizationError(subject, permissions[0]);
|
|
131
|
+
}
|
|
59
132
|
for (const permission of permissions) {
|
|
60
|
-
const decision =
|
|
133
|
+
const decision = scopes === null
|
|
134
|
+
? await authorizationPort.authorize(subject, permission)
|
|
135
|
+
: await authorizationPort.authorize(subject, permission, scopes);
|
|
61
136
|
if (decision !== 'granted') {
|
|
62
|
-
return errors_1.AuthorizationError.denied(subject, permission);
|
|
137
|
+
return errors_1.AuthorizationError.denied(subject, permission, scopes);
|
|
63
138
|
}
|
|
64
139
|
}
|
|
65
140
|
return null;
|
|
@@ -67,10 +142,12 @@ const findDenial = async (security, context) => {
|
|
|
67
142
|
/**
|
|
68
143
|
* Mixin de caso de uso seguro.
|
|
69
144
|
*
|
|
70
|
-
* Exige `security` en el tipo de la definición,
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* `
|
|
145
|
+
* Exige `security` en el tipo de la definición, acepta `securityScope` como
|
|
146
|
+
* estático opcional para resolver los alcances del recurso a partir de la
|
|
147
|
+
* petición, expone `run` como único camino público y oculta `execute` en el
|
|
148
|
+
* tipo (no en el runtime). `run` aplica el enforcement fail-closed y preserva
|
|
149
|
+
* el canal del caso de uso, uniendo `AuthorizationError` a su tipo de error sin
|
|
150
|
+
* anidar resultados.
|
|
74
151
|
*
|
|
75
152
|
* @param Source Definición del caso de uso con `security` y `execute`
|
|
76
153
|
* @returns Constructor cuyo tipo público sólo ofrece `run`
|
|
@@ -86,8 +163,13 @@ const SecuredUseCase = (Source) => {
|
|
|
86
163
|
*/
|
|
87
164
|
run(request, context) {
|
|
88
165
|
const runSecured = async () => {
|
|
89
|
-
const
|
|
90
|
-
const denial = await findDenial(
|
|
166
|
+
const source = this.constructor;
|
|
167
|
+
const denial = await findDenial({
|
|
168
|
+
security: source.security,
|
|
169
|
+
context,
|
|
170
|
+
request,
|
|
171
|
+
securityScope: source.securityScope,
|
|
172
|
+
});
|
|
91
173
|
if (denial) {
|
|
92
174
|
return (0, ultra_result_1.fail)(denial);
|
|
93
175
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secured-use-case.mixin.js","sourceRoot":"","sources":["../../../src/authorization/secured-use-case/secured-use-case.mixin.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,uDAA2D;AAG3D,sCAA+C;AAC/C,8CAA2C;AAC3C,0CAAuC;
|
|
1
|
+
{"version":3,"file":"secured-use-case.mixin.js","sourceRoot":"","sources":["../../../src/authorization/secured-use-case/secured-use-case.mixin.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,uDAA2D;AAG3D,sCAA+C;AAC/C,8CAA2C;AAC3C,sDAAkD;AAClD,0CAAuC;AAUvC;;;;;;;;;;GAUG;AACH,MAAM,YAAY,GAAG,CACnB,QAAiB,EAC+C,EAAE;IAClE,IAAI,QAAQ,YAAY,mBAAQ,EAAE,CAAC;QACjC,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,WAAW,EAAE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,OAAO,UAA4C,CAAC;QACtD,CAAC;KACF;IAED,OAAO,OAA2D,CAAC;AACrE,CAAC,CAAC;AAvCW,QAAA,cAAc,kBAuCzB"}
|
|
@@ -3,6 +3,7 @@ import { Identifiable, SubjectId } from '../../entity/identity';
|
|
|
3
3
|
import { AuthenticatedSubject } from '../authenticated-subject';
|
|
4
4
|
import { AuthorizationError } from '../errors';
|
|
5
5
|
import { AuthorizationPort } from '../ports';
|
|
6
|
+
import { ResourceScope } from '../resource-scope';
|
|
6
7
|
import { Security } from '../security';
|
|
7
8
|
/**
|
|
8
9
|
* Contexto que recibe `run` con el sujeto ya autenticado por el transporte.
|
|
@@ -18,11 +19,34 @@ export interface SecuredUseCaseContext<Id extends Identifiable = SubjectId> {
|
|
|
18
19
|
/** Puerto que decide sobre los permisos declarados */
|
|
19
20
|
authorizationPort: AuthorizationPort<Id>;
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Resolución de los alcances del recurso a partir de la petición.
|
|
24
|
+
*
|
|
25
|
+
* Es **pura y síncrona** por contrato: sin E/S, sin reloj y sin acceso al
|
|
26
|
+
* sujeto autenticado. Sólo transforma la petición en los recursos sobre los que
|
|
27
|
+
* el caso de uso pide sus permisos. Lo que requiera consultar (por ejemplo, la
|
|
28
|
+
* pertenencia del sujeto a una marca) es trabajo del `AuthorizationPort`, que
|
|
29
|
+
* ya puede ser asíncrono.
|
|
30
|
+
*
|
|
31
|
+
* Devolver `undefined` o una lista vacía se trata como denegación: declarar el
|
|
32
|
+
* resolutor hace obligatorio el alcance en toda llamada que autorice permisos.
|
|
33
|
+
* Devolver una promesa también deniega —la resolución no se espera— y su
|
|
34
|
+
* rechazo se consume para que un resolutor declarado `async` desde JavaScript
|
|
35
|
+
* no deje un rechazo no gestionado.
|
|
36
|
+
*
|
|
37
|
+
* @template Request Tipo de la petición del caso de uso
|
|
38
|
+
*/
|
|
39
|
+
export type SecurityScopeResolver<Request = unknown> = (request: Request) => readonly ResourceScope[] | undefined;
|
|
21
40
|
/**
|
|
22
41
|
* Forma estática mínima de una definición de caso de uso seguro.
|
|
23
42
|
*
|
|
24
43
|
* Exige `security` y que `execute` devuelva un `TaskExecution`. La definición
|
|
25
44
|
* conserva su canal de resultado; el mixin sólo lo ensancha en el lado de error.
|
|
45
|
+
*
|
|
46
|
+
* `securityScope` es opcional y su tipo es permisivo a propósito: ligar el
|
|
47
|
+
* `request` del resolutor al de `execute` exigiría volver genérica la
|
|
48
|
+
* definición. El consumidor tiene comprobación real declarando el estático con
|
|
49
|
+
* `SecurityScopeResolver<Request>`.
|
|
26
50
|
*/
|
|
27
51
|
export interface SecuredUseCaseDefinition {
|
|
28
52
|
new (...args: any[]): {
|
|
@@ -30,6 +54,8 @@ export interface SecuredUseCaseDefinition {
|
|
|
30
54
|
};
|
|
31
55
|
/** Modo de autenticación y permisos que exige el caso de uso */
|
|
32
56
|
security: Security;
|
|
57
|
+
/** Resolución opcional de los alcances del recurso que se autoriza */
|
|
58
|
+
securityScope?: SecurityScopeResolver<any>;
|
|
33
59
|
}
|
|
34
60
|
/** Firma de `execute` en la definición concreta. */
|
|
35
61
|
type ExecuteOf<Definition extends SecuredUseCaseDefinition> = InstanceType<Definition>['execute'];
|
|
@@ -66,6 +92,8 @@ export type SecuredUseCaseConstructor<Definition extends SecuredUseCaseDefinitio
|
|
|
66
92
|
new (...args: any[]): SecuredUseCaseInstance<Definition>;
|
|
67
93
|
/** Seguridad declarada por la definición, visible en el tipo */
|
|
68
94
|
security: Security;
|
|
95
|
+
/** Resolución opcional de alcances declarada por la definición */
|
|
96
|
+
securityScope?: SecurityScopeResolver<any>;
|
|
69
97
|
};
|
|
70
98
|
export {};
|
|
71
99
|
//# sourceMappingURL=secured-use-case.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secured-use-case.types.d.ts","sourceRoot":"","sources":["../../../src/authorization/secured-use-case/secured-use-case.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB,CAAC,EAAE,SAAS,YAAY,GAAG,SAAS;IACxE,uEAAuE;IACvE,OAAO,CAAC,EAAE,oBAAoB,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAC1C,sDAAsD;IACtD,iBAAiB,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC;CAC1C;AAED
|
|
1
|
+
{"version":3,"file":"secured-use-case.types.d.ts","sourceRoot":"","sources":["../../../src/authorization/secured-use-case/secured-use-case.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB,CAAC,EAAE,SAAS,YAAY,GAAG,SAAS;IACxE,uEAAuE;IACvE,OAAO,CAAC,EAAE,oBAAoB,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAC1C,sDAAsD;IACtD,iBAAiB,EAAE,iBAAiB,CAAC,EAAE,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