@apipass/cerbos-pep 0.0.74 → 0.0.75
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.
|
@@ -4,5 +4,5 @@ import { CerbosService } from "../cerbos.service";
|
|
|
4
4
|
export declare class CerbosAuthorizationAdapter implements AuthorizationPort {
|
|
5
5
|
private readonly cerbosService;
|
|
6
6
|
constructor(cerbosService: CerbosService);
|
|
7
|
-
getQueryPlan(params: GetQueryPlanParams): Promise<
|
|
7
|
+
getQueryPlan(params: GetQueryPlanParams): Promise<Record<string, unknown>>;
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cerbos-authorization.adapter.js","sourceRoot":"","sources":["../../src/adapters/cerbos-authorization.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA2C;AAG3C,sDAAkD;AAG3C,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACnC,
|
|
1
|
+
{"version":3,"file":"cerbos-authorization.adapter.js","sourceRoot":"","sources":["../../src/adapters/cerbos-authorization.adapter.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA2C;AAG3C,sDAAkD;AAG3C,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACnC,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAEzD,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,MAA0B;QACzC,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,CAAA;IAClD,CAAC;CACJ,CAAA;AARY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;qCAEmC,8BAAa;GADhD,0BAA0B,CAQtC"}
|
package/lib/cerbos.service.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import type { CerbosModuleOptions } from './cerbos.module';
|
|
2
2
|
import { GetQueryPlanParams } from "./get-query-plan";
|
|
3
|
-
type PlanResourcesResponse = typeof import('@cerbos/core', { with: { "resolution-mode": "import" } });
|
|
4
3
|
export declare class CerbosService {
|
|
5
4
|
private readonly config;
|
|
6
5
|
private cerbos;
|
|
7
6
|
constructor(config: CerbosModuleOptions);
|
|
8
7
|
private getCerbos;
|
|
9
8
|
getCheckResource(request: unknown): Promise<unknown>;
|
|
10
|
-
getQueryPlan(params: GetQueryPlanParams): Promise<
|
|
9
|
+
getQueryPlan(params: GetQueryPlanParams): Promise<Record<string, unknown>>;
|
|
11
10
|
}
|
|
12
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cerbos.service.js","sourceRoot":"","sources":["../src/cerbos.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;
|
|
1
|
+
{"version":3,"file":"cerbos.service.js","sourceRoot":"","sources":["../src/cerbos.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AAO7C,IAAM,aAAa,GAAnB,MAAM,aAAa;IAGxB,YAAuD,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;IAC/E,CAAC;IAEI,KAAK,CAAC,SAAS;QACrB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,MAAM,CAAC,cAAc,CAAC,CAAgC,CAAC;YACvF,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC5C,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,OAAgB;QACrC,MAAM,MAAM,GAAS,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QAC5C,OAAO,MAAM,CAAC,aAAa,CAAC,OAAc,CAAC,CAAC;IAC9C,CAAC;IAEM,KAAK,CAAC,YAAY,CAAE,MAA0B;QACnD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAA;QAErC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;QAElD,OAAO,MAAM,CAAC,aAAa,CAAC;YAC1B,SAAS,EAAE;gBACT,EAAE,EAAE,SAAS,CAAC,EAAE;gBAChB,KAAK,EAAE,SAAS,CAAC,KAAK;gBACtB,UAAU,EAAE,SAAS,CAAC,UAAU;aACjC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,YAAY;aACnB;YACD,MAAM;SACP,CAAuC,CAAA;IAC1C,CAAC;CAEF,CAAA;AArCY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;IAIE,WAAA,IAAA,eAAM,EAAC,gBAAgB,CAAC,CAAA;;GAH1B,aAAa,CAqCzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const AUTHORIZATION_PORT: unique symbol;
|
|
2
2
|
export interface AuthorizationPort {
|
|
3
|
-
getQueryPlan(params: GetQueryPlanParams): Promise<unknown
|
|
3
|
+
getQueryPlan(params: GetQueryPlanParams): Promise<Record<string, unknown>>;
|
|
4
4
|
}
|
|
5
5
|
export interface GetQueryPlanParams {
|
|
6
6
|
principal: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apipass/cerbos-pep",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"description": "Cerbos PEP utility for NestJS",
|
|
5
5
|
"author": "raul@apipass.com.br",
|
|
6
6
|
"license": "ISC",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@nestjs/common": "10.4.15",
|
|
29
29
|
"@nestjs/core": "10.4.15"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "5c15e8389a840a589ace53c61b339bc6781ca720"
|
|
32
32
|
}
|