@siremzam/sentinel 0.3.0 → 0.3.1
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/README.md +2 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -365,7 +365,8 @@ Only unconditional rule evaluations are cached — conditional results are alway
|
|
|
365
365
|
Run the engine as a standalone HTTP authorization microservice:
|
|
366
366
|
|
|
367
367
|
```typescript
|
|
368
|
-
import {
|
|
368
|
+
import { AccessEngine } from "@siremzam/sentinel";
|
|
369
|
+
import { createAuthServer } from "@siremzam/sentinel/server";
|
|
369
370
|
|
|
370
371
|
const engine = new AccessEngine<MySchema>({ schema: {} as MySchema });
|
|
371
372
|
engine.addRules(/* ... */);
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export type { AccessEngineOptions } from "./engine.js";
|
|
|
3
3
|
export { RuleBuilder, allow, deny, createPolicyFactory } from "./policy-builder.js";
|
|
4
4
|
export { RoleHierarchy } from "./role-hierarchy.js";
|
|
5
5
|
export { ConditionRegistry, exportRules, exportRulesToJson, importRules, importRulesFromJson, } from "./serialization.js";
|
|
6
|
-
export { createAuthServer } from "./server.js";
|
|
7
6
|
export { toAuditEntry } from "./types.js";
|
|
8
7
|
export type { SchemaDefinition, ActionString, InferRole, InferResource, InferAction, InferTenantId, RoleAssignment, Subject, ResourceContext, EvaluationContext, Condition, PolicyEffect, PolicyRule, Decision, AuditEntry, DecisionListener, ConditionError, ConditionErrorHandler, EngineOptions, ExplainResult, RuleEvaluation, ConditionResult, } from "./types.js";
|
|
9
8
|
export type { JsonPolicyRule, JsonPolicyDocument, } from "./serialization.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mapp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
package/dist/index.js
CHANGED
|
@@ -2,6 +2,5 @@ export { AccessEngine } from "./engine.js";
|
|
|
2
2
|
export { RuleBuilder, allow, deny, createPolicyFactory } from "./policy-builder.js";
|
|
3
3
|
export { RoleHierarchy } from "./role-hierarchy.js";
|
|
4
4
|
export { ConditionRegistry, exportRules, exportRulesToJson, importRules, importRulesFromJson, } from "./serialization.js";
|
|
5
|
-
export { createAuthServer } from "./server.js";
|
|
6
5
|
export { toAuditEntry } from "./types.js";
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|