@entifix/authz 0.1.0-0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +3 -2
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @entifix/authz
2
+
3
+ The authorization vocabulary. A permission is `<domain>:<entityKey>:<action>` and is derived from the entity's own `@entity({ domain, key })`, so it cannot drift from the thing it guards.
4
+
5
+ Grants come from a `GrantTable` the application supplies — never from a token. `PolicyDecisionTag` is the port a route asks; `makeStaticPolicyDecision` answers it from that table.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ pnpm add @entifix/authz effect
11
+ ```
12
+
13
+ ## Entry points
14
+
15
+ | Import | What it holds |
16
+ | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
17
+ | `@entifix/authz` | `permissionFor`, `permissionForEntity`, `can`, `GrantTable`, `PolicyDecisionTag`, `makeStaticPolicyDecision`, roles and screen types |
18
+
19
+ ---
20
+
21
+ Tier 4 (app framework) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@entifix/authz",
3
- "version": "0.1.0-0",
3
+ "version": "0.1.1",
4
+ "description": "Authorization vocabulary: permissions derived from entities, roles, a grant table, and a PolicyDecision port.",
4
5
  "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
@@ -54,7 +55,7 @@
54
55
  },
55
56
  "dependencies": {
56
57
  "@swc/helpers": "0.5.23",
57
- "@entifix/core": "0.1.0-0"
58
+ "@entifix/core": "0.1.1"
58
59
  },
59
60
  "peerDependencies": {
60
61
  "effect": ">=3.22 <4"