@classytic/access 0.1.1 → 0.2.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.
- package/CHANGELOG.md +24 -0
- package/LICENSE +21 -0
- package/README.md +150 -140
- package/dist/domain/access-decision.d.mts +28 -6
- package/dist/domain/access-decision.mjs +49 -5
- package/dist/{event-catalog-BGFNnlNJ.d.mts → event-catalog-Dxo3cxR3.d.mts} +0 -1
- package/dist/events/event-catalog.d.mts +1 -1
- package/dist/index.d.mts +849 -59
- package/dist/index.mjs +1531 -243
- package/dist/schemas/common.d.mts +0 -1
- package/dist/schemas/entitlement.d.mts +0 -1
- package/package.json +11 -11
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classytic/access",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Access ENTITLEMENT engine
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Access ENTITLEMENT engine - time-bound (or lifetime) grants of access to any resource: course enrollment, file download, API access, membership, feature flag, any service. Like a session, but durable: the grant is a permanent record, the RIGHT to access is COMPUTED (never TTL-deleted). Single responsibility: it answers 'does this subject currently hold a live grant to this resource', NOT the purchase (@classytic/order), the money (@classytic/revenue), or the catalog item (@classytic/catalog). Powered by @classytic/mongokit.",
|
|
5
5
|
"author": "Classytic",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -46,26 +46,27 @@
|
|
|
46
46
|
"test:scenarios": "vitest run --project scenarios",
|
|
47
47
|
"test:watch": "vitest --project unit --project integration",
|
|
48
48
|
"test:all": "vitest run",
|
|
49
|
-
"prepublishOnly": "npm run typecheck && npm run build",
|
|
49
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build",
|
|
50
50
|
"push": "classytic-push"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@classytic/mongokit": ">=3.
|
|
54
|
-
"@classytic/primitives": ">=0.
|
|
55
|
-
"@classytic/repo-core": ">=0.
|
|
53
|
+
"@classytic/mongokit": ">=3.33.0",
|
|
54
|
+
"@classytic/primitives": ">=0.23.0",
|
|
55
|
+
"@classytic/repo-core": ">=0.24.0",
|
|
56
56
|
"mongoose": ">=9.4.1",
|
|
57
57
|
"zod": ">=4.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@classytic/dev-tools": "^0.2.0",
|
|
61
|
-
"@classytic/mongokit": "^3.
|
|
62
|
-
"@classytic/primitives": "
|
|
63
|
-
"@classytic/repo-core": "
|
|
61
|
+
"@classytic/mongokit": "^3.33.0",
|
|
62
|
+
"@classytic/primitives": ">=0.23.0",
|
|
63
|
+
"@classytic/repo-core": ">=0.24.0",
|
|
64
64
|
"@types/node": "^22.19.21",
|
|
65
65
|
"@vitest/coverage-v8": "^4.1.9",
|
|
66
66
|
"mongodb-memory-server": "^11.2.0",
|
|
67
67
|
"mongoose": "^9.4.1",
|
|
68
|
-
"
|
|
68
|
+
"publint": "^0.3.23",
|
|
69
|
+
"tsdown": "^0.22.14",
|
|
69
70
|
"typescript": "^6.0.3",
|
|
70
71
|
"vitest": "^4.1.9",
|
|
71
72
|
"zod": "^4.3.6"
|
|
@@ -85,4 +86,3 @@
|
|
|
85
86
|
"classytic"
|
|
86
87
|
]
|
|
87
88
|
}
|
|
88
|
-
|