@dudousxd/nestjs-authz 0.6.6 → 0.7.0

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 (40) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/cerbos/cerbos-decision.provider.d.ts +128 -0
  3. package/dist/cerbos/cerbos-decision.provider.d.ts.map +1 -0
  4. package/dist/cerbos/cerbos-decision.provider.js +134 -0
  5. package/dist/cerbos/cerbos-decision.provider.js.map +1 -0
  6. package/dist/cerbos/index.d.ts +3 -0
  7. package/dist/cerbos/index.d.ts.map +1 -0
  8. package/dist/cerbos/index.js +5 -0
  9. package/dist/cerbos/index.js.map +1 -0
  10. package/dist/cerbos/plan.d.ts +41 -0
  11. package/dist/cerbos/plan.d.ts.map +1 -0
  12. package/dist/cerbos/plan.js +158 -0
  13. package/dist/cerbos/plan.js.map +1 -0
  14. package/dist/decision-provider.d.ts +58 -0
  15. package/dist/decision-provider.d.ts.map +1 -0
  16. package/dist/decision-provider.js +2 -0
  17. package/dist/decision-provider.js.map +1 -0
  18. package/dist/diagnostics.d.ts +1 -1
  19. package/dist/diagnostics.d.ts.map +1 -1
  20. package/dist/diagnostics.js.map +1 -1
  21. package/dist/gate.d.ts +17 -1
  22. package/dist/gate.d.ts.map +1 -1
  23. package/dist/gate.js +83 -13
  24. package/dist/gate.js.map +1 -1
  25. package/dist/index.d.ts +3 -2
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +2 -2
  28. package/dist/index.js.map +1 -1
  29. package/dist/store-kit.d.ts +17 -0
  30. package/dist/store-kit.d.ts.map +1 -1
  31. package/dist/store-kit.js +5 -0
  32. package/dist/store-kit.js.map +1 -1
  33. package/dist/tokens.d.ts +7 -0
  34. package/dist/tokens.d.ts.map +1 -1
  35. package/dist/tokens.js +7 -0
  36. package/dist/tokens.js.map +1 -1
  37. package/dist/types.d.ts +6 -1
  38. package/dist/types.d.ts.map +1 -1
  39. package/package.json +24 -13
  40. package/skills/authz-rbac-seams/SKILL.md +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-authz",
3
- "version": "0.6.6",
3
+ "version": "0.7.0",
4
4
  "description": "NestJS authorization — Laravel-style Gates & Policies, @Can guard, resource resolver (zero DB).",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -8,6 +8,21 @@
8
8
  "url": "git+https://github.com/DavideCarvalho/nestjs-authz.git",
9
9
  "directory": "packages/core"
10
10
  },
11
+ "homepage": "https://davidecarvalho.github.io/aviary/docs/authz",
12
+ "bugs": {
13
+ "url": "https://github.com/DavideCarvalho/nestjs-authz/issues"
14
+ },
15
+ "keywords": [
16
+ "nestjs",
17
+ "authorization",
18
+ "authz",
19
+ "gate",
20
+ "policy",
21
+ "acl",
22
+ "rbac",
23
+ "tanstack-intent",
24
+ "cerbos"
25
+ ],
11
26
  "author": "Davi Carvalho <davi@goflip.ai>",
12
27
  "type": "module",
13
28
  "main": "./dist/index.js",
@@ -22,6 +37,11 @@
22
37
  "types": "./dist/store-kit.d.ts",
23
38
  "import": "./dist/store-kit.js",
24
39
  "default": "./dist/store-kit.js"
40
+ },
41
+ "./cerbos": {
42
+ "types": "./dist/cerbos/index.d.ts",
43
+ "import": "./dist/cerbos/index.js",
44
+ "default": "./dist/cerbos/index.js"
25
45
  }
26
46
  },
27
47
  "files": [
@@ -31,7 +51,7 @@
31
51
  "skills"
32
52
  ],
33
53
  "dependencies": {
34
- "@dudousxd/nestjs-diagnostics": "0.5.0"
54
+ "@dudousxd/nestjs-diagnostics": "0.7.1"
35
55
  },
36
56
  "peerDependencies": {
37
57
  "@dudousxd/nestjs-context": ">=0.1.0",
@@ -45,11 +65,12 @@
45
65
  }
46
66
  },
47
67
  "devDependencies": {
68
+ "@cerbos/http": "0.29.0",
48
69
  "@nestjs/common": "12.0.1",
49
- "@tanstack/intent": "0.3.2",
50
70
  "@nestjs/core": "12.0.1",
51
71
  "@nestjs/platform-express": "12.0.1",
52
72
  "@nestjs/testing": "12.0.1",
73
+ "@tanstack/intent": "0.4.0",
53
74
  "@types/express": "4.17.25",
54
75
  "@types/node": "20.19.43",
55
76
  "@types/supertest": "6.0.3",
@@ -63,16 +84,6 @@
63
84
  "engines": {
64
85
  "node": ">=20"
65
86
  },
66
- "keywords": [
67
- "nestjs",
68
- "authorization",
69
- "authz",
70
- "gate",
71
- "policy",
72
- "acl",
73
- "rbac",
74
- "tanstack-intent"
75
- ],
76
87
  "scripts": {
77
88
  "build": "tsc -p tsconfig.json",
78
89
  "test": "vitest run --passWithNoTests",
@@ -8,7 +8,7 @@ description: >
8
8
  segment wildcard matching (granted posts.* satisfies posts.update, * satisfies anything).
9
9
  ROLE_PROVIDER (a RoleProvider.getRoles) feeds coarse checks gate.hasRole / @Roles, unioned
10
10
  with the user-object defaultRoleResolver (reads user.roles / user.role). Both tokens are
11
- capability symbols the ORM adapters (@dudousxd/nestjs-authz-typeorm / -prisma / -mikro-orm)
11
+ capability symbols the ORM adapters (@dudousxd/nestjs-authz-typeorm / -prisma / -mikro-orm / -drizzle)
12
12
  register via AuthzRbacModule; seams are grant-only — a false result never DENIES, it falls
13
13
  through. Covers resolveRoles override and zero-table role checks.
14
14
  metadata: