@happyvertical/smrt-users 0.70.0 → 0.70.2
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/agents/permissions.md +7 -0
- package/dist/chunks/{PasswordCredentialService-Dec3bz4G.js → PasswordCredentialService-BjobA5uG.js} +22 -731
- package/dist/chunks/PasswordCredentialService-BjobA5uG.js.map +1 -0
- package/dist/chunks/PermissionCatalogService-DcmTn38P.js +716 -0
- package/dist/chunks/PermissionCatalogService-DcmTn38P.js.map +1 -0
- package/dist/chunks/PostgresPermissionPolicies-RzCLuARk.js +314 -0
- package/dist/chunks/PostgresPermissionPolicies-RzCLuARk.js.map +1 -0
- package/dist/chunks/{TerminalAuthService-BCem_pDy.js → TerminalAuthService-CLzZ8UzF.js} +4 -3
- package/dist/chunks/{TerminalAuthService-BCem_pDy.js.map → TerminalAuthService-CLzZ8UzF.js.map} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -285
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/operator.js +1 -1
- package/dist/postgres-policies.d.ts +8 -0
- package/dist/postgres-policies.d.ts.map +1 -0
- package/dist/postgres-policies.js +2 -0
- package/dist/services/PostgresPermissionPolicies.d.ts +40 -1
- package/dist/services/PostgresPermissionPolicies.d.ts.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +6 -5
- package/dist/smrt-knowledge.okf.md +3 -2
- package/dist/sveltekit.js +2 -2
- package/package.json +13 -9
- package/dist/chunks/PasswordCredentialService-Dec3bz4G.js.map +0 -1
package/agents/permissions.md
CHANGED
|
@@ -211,6 +211,13 @@ inherited permissions automatically, but RLS row filtering remains bound to the
|
|
|
211
211
|
session tenant: a root session's app-level guard authorization does not itself
|
|
212
212
|
permit child rows through RLS. Preserve this distinction.
|
|
213
213
|
|
|
214
|
+
A host with run-time models in an app schema passes a `PostgresPolicyScope` (second
|
|
215
|
+
argument; `@happyvertical/smrt-users/postgres-policies`, `applyScopedPostgresPermissionPolicies`
|
|
216
|
+
on a handle it already holds): tables and the `smrt_*` helpers live in
|
|
217
|
+
`schemaName`, never `public`; only `includeClass` classes get policies;
|
|
218
|
+
`permissionsFor` names the slugs; explicit bindings are not applied. Helper bodies
|
|
219
|
+
never call each other (a schema copied whole creates functions in name order).
|
|
220
|
+
|
|
214
221
|
RolePermission's natural key is `(role_id, permission_id)` (#3329); repeated or
|
|
215
222
|
concurrent inserts converge without changing the grant ID. Existing deployments
|
|
216
223
|
must run `deduplicateRolePermissions()` with stopped writers before ordinary
|