@happyvertical/smrt-users 0.40.69 → 0.41.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/AGENTS.md +14 -3
- package/dist/chunks/{TerminalAuthService-R8kfAv1J.js → TerminalAuthService-PFOrUukl.js} +837 -806
- package/dist/chunks/TerminalAuthService-PFOrUukl.js.map +1 -0
- package/dist/collections/CliAuthRequestCollection.d.ts +10 -1
- package/dist/collections/CliAuthRequestCollection.d.ts.map +1 -1
- package/dist/collections/MagicLinkTokenCollection.d.ts +10 -1
- package/dist/collections/MagicLinkTokenCollection.d.ts.map +1 -1
- package/dist/collections/SessionCollection.d.ts +10 -2
- package/dist/collections/SessionCollection.d.ts.map +1 -1
- package/dist/collections/TenantIntegrationCollection.d.ts.map +1 -1
- package/dist/collections/UserCollection.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +150 -112
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +390 -205
- package/dist/models/CliAuthRequest.d.ts +18 -3
- package/dist/models/CliAuthRequest.d.ts.map +1 -1
- package/dist/models/MagicLinkToken.d.ts +6 -1
- package/dist/models/MagicLinkToken.d.ts.map +1 -1
- package/dist/models/Session.d.ts +3 -0
- package/dist/models/Session.d.ts.map +1 -1
- package/dist/models/User.d.ts +7 -1
- package/dist/models/User.d.ts.map +1 -1
- package/dist/retention.d.ts +47 -0
- package/dist/retention.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +22 -5
- package/dist/sveltekit.js +1 -1
- package/package.json +9 -9
- package/dist/chunks/TerminalAuthService-R8kfAv1J.js.map +0 -1
package/AGENTS.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Multi-tenant user management with RBAC, hierarchical tenants, session handling, and SvelteKit integration.
|
|
4
4
|
|
|
5
|
+
## Modules
|
|
6
|
+
|
|
7
|
+
| Module | Scope | Module doc |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `src/retention.ts` | expired session/token/CLI-auth reaping and its wiring into the framework retention sweep | [agents/retention.md](agents/retention.md) |
|
|
10
|
+
|
|
5
11
|
## Models (14)
|
|
6
12
|
|
|
7
13
|
| Model | Key Pattern |
|
|
@@ -295,9 +301,14 @@ the package root).
|
|
|
295
301
|
private `oidc_profile_email_reservations.email_key`, `User.emailKey`, and the
|
|
296
302
|
unique `User.profileId`; local callbacks acquire exact issuer/subject and normalized
|
|
297
303
|
email locks in deterministic order so changed email claims also serialize.
|
|
298
|
-
SQLite and DuckDB callbacks additionally serialize
|
|
299
|
-
|
|
300
|
-
|
|
304
|
+
SQLite and DuckDB callbacks additionally serialize every root-handle statement
|
|
305
|
+
the coordinator owns per database URL — `_smrt_backfills` initialization, the
|
|
306
|
+
transaction, and the post-commit rebind — because one adapter multiplexes a
|
|
307
|
+
single native connection and cannot safely overlap unrelated root
|
|
308
|
+
transactions. Never overlap two statements on one such handle, inside a
|
|
309
|
+
transaction or not: rebind and owner/email candidate reads are sequential,
|
|
310
|
+
never `Promise.all`. Owner-authorized DuckDB callbacks use that same
|
|
311
|
+
root-handle serialization;
|
|
301
312
|
PostgreSQL deadlock and serialization errors use a bounded transaction retry.
|
|
302
313
|
Newly provisioned Profiles use non-semantic per-profile slugs so equal IdP
|
|
303
314
|
display names cannot trigger a natural-key upsert;
|