@happyvertical/smrt-users 0.37.6 → 0.37.7
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/dist/chunks/{TerminalAuthService-Bibgx6Fz.js → TerminalAuthService-BusSHuHx.js} +2 -2
- package/dist/chunks/{TerminalAuthService-Bibgx6Fz.js.map → TerminalAuthService-BusSHuHx.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/manifest.json +10 -2
- package/dist/smrt-knowledge.json +5 -4
- package/dist/sveltekit.js +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as DEFAULT_ROLE_SLUGS, A as RolePermissionCollection, B as GroupRoleCollection, C as TenantHierarchyError, D as DEFAULT_SESSION_TTL, E as SessionCollection, F as parsePermissionSlug, G as Group, H as GroupMemberCollection, I as MembershipOverrideCollection, J as User, K as UsersCliAuthRequestCollection, L as MembershipOverride, M as PermissionCollection, N as Permission, O as Session, P as isValidPermissionSlug, Q as DEFAULT_ROLES, R as MembershipCollection, S as TenantCollection, T as Tenant, U as GroupMember, V as GroupRole, W as GroupCollection, X as normalizeEmail, Y as isValidEmail, Z as AccessRequestStatus, _ as resolveOidcProviderConfig, a as TerminalAuthRateLimitError, at as TenantStatus, b as TenantPermissionOverrideCollection, c as getRequestScopedDatabase, d as PermissionResolver, et as DEFAULT_TENANT_POLICY, f as OidcLoginError, g as getUsersOidcConfig, h as encodeOidcTransaction, i as TerminalAuthError, it as TenantPermissionEffect, j as RolePermission, k as generateSessionId, l as withSessionPermissionContext, m as decodeOidcTransaction, n as DEFAULT_CLI_AUTH_REQUEST_TTL_SECONDS, nt as OverrideEffect, o as TerminalAuthService, ot as UserStatus, p as OidcLoginService, q as UsersCliAuthRequest, r as DEFAULT_CLI_SESSION_TTL_SECONDS, rt as SessionStatus, s as getCurrentSessionPermissionContext, t as DEFAULT_CLI_AUTH_POLL_INTERVAL_SECONDS, tt as MembershipStatus, u as SessionService, w as MAX_TENANT_HIERARCHY_DEPTH, x as TenantPermissionOverride, y as UserCollection, z as Membership } from "./chunks/TerminalAuthService-
|
|
1
|
+
import { $ as DEFAULT_ROLE_SLUGS, A as RolePermissionCollection, B as GroupRoleCollection, C as TenantHierarchyError, D as DEFAULT_SESSION_TTL, E as SessionCollection, F as parsePermissionSlug, G as Group, H as GroupMemberCollection, I as MembershipOverrideCollection, J as User, K as UsersCliAuthRequestCollection, L as MembershipOverride, M as PermissionCollection, N as Permission, O as Session, P as isValidPermissionSlug, Q as DEFAULT_ROLES, R as MembershipCollection, S as TenantCollection, T as Tenant, U as GroupMember, V as GroupRole, W as GroupCollection, X as normalizeEmail, Y as isValidEmail, Z as AccessRequestStatus, _ as resolveOidcProviderConfig, a as TerminalAuthRateLimitError, at as TenantStatus, b as TenantPermissionOverrideCollection, c as getRequestScopedDatabase, d as PermissionResolver, et as DEFAULT_TENANT_POLICY, f as OidcLoginError, g as getUsersOidcConfig, h as encodeOidcTransaction, i as TerminalAuthError, it as TenantPermissionEffect, j as RolePermission, k as generateSessionId, l as withSessionPermissionContext, m as decodeOidcTransaction, n as DEFAULT_CLI_AUTH_REQUEST_TTL_SECONDS, nt as OverrideEffect, o as TerminalAuthService, ot as UserStatus, p as OidcLoginService, q as UsersCliAuthRequest, r as DEFAULT_CLI_SESSION_TTL_SECONDS, rt as SessionStatus, s as getCurrentSessionPermissionContext, t as DEFAULT_CLI_AUTH_POLL_INTERVAL_SECONDS, tt as MembershipStatus, u as SessionService, w as MAX_TENANT_HIERARCHY_DEPTH, x as TenantPermissionOverride, y as UserCollection, z as Membership } from "./chunks/TerminalAuthService-BusSHuHx.js";
|
|
2
2
|
import { ObjectRegistry, SmrtCollection, SmrtObject, field, findManifestEntryByQualifiedName, foreignKey, smrt } from "@happyvertical/smrt-core";
|
|
3
3
|
import { createLogger } from "@happyvertical/logger";
|
|
4
4
|
import { getPackageConfig } from "@happyvertical/smrt-config";
|
|
@@ -871,7 +871,7 @@ var MagicLinkService = class MagicLinkService {
|
|
|
871
871
|
* The caller is responsible for emailing the token to the user.
|
|
872
872
|
*/
|
|
873
873
|
async generate(email) {
|
|
874
|
-
const { SignJWT } = await import("./chunks/TerminalAuthService-
|
|
874
|
+
const { SignJWT } = await import("./chunks/TerminalAuthService-BusSHuHx.js").then((n) => n.v);
|
|
875
875
|
const key = await this.getSigningKey();
|
|
876
876
|
const nonce = crypto.randomUUID();
|
|
877
877
|
const normalizedEmail = normalizeEmail(email);
|
|
@@ -900,7 +900,7 @@ var MagicLinkService = class MagicLinkService {
|
|
|
900
900
|
* @throws {MagicLinkError} If the token is invalid, expired, or already used
|
|
901
901
|
*/
|
|
902
902
|
async verify(token) {
|
|
903
|
-
const { jwtVerify, errors } = await import("./chunks/TerminalAuthService-
|
|
903
|
+
const { jwtVerify, errors } = await import("./chunks/TerminalAuthService-BusSHuHx.js").then((n) => n.v);
|
|
904
904
|
const key = await this.getSigningKey();
|
|
905
905
|
let payload;
|
|
906
906
|
try {
|
package/dist/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"timestamp":
|
|
3
|
+
"timestamp": 1783048820674,
|
|
4
4
|
"packageName": "@happyvertical/smrt-users",
|
|
5
|
-
"packageVersion": "0.37.
|
|
5
|
+
"packageVersion": "0.37.7",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-users:AccessRequestCollection": {
|
|
8
8
|
"name": "accessrequestcollection",
|
|
@@ -4739,6 +4739,14 @@
|
|
|
4739
4739
|
"isStatic": false,
|
|
4740
4740
|
"isPublic": true
|
|
4741
4741
|
},
|
|
4742
|
+
"requireInsertOnSave": {
|
|
4743
|
+
"name": "requireInsertOnSave",
|
|
4744
|
+
"async": false,
|
|
4745
|
+
"parameters": [],
|
|
4746
|
+
"returnType": "void",
|
|
4747
|
+
"isStatic": false,
|
|
4748
|
+
"isPublic": true
|
|
4749
|
+
},
|
|
4742
4750
|
"initialize": {
|
|
4743
4751
|
"name": "initialize",
|
|
4744
4752
|
"async": true,
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-03T03:20:21.050Z",
|
|
4
4
|
"packageName": "@happyvertical/smrt-users",
|
|
5
|
-
"packageVersion": "0.37.
|
|
5
|
+
"packageVersion": "0.37.7",
|
|
6
6
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
7
|
"agentDocPath": "AGENTS.md",
|
|
8
8
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
9
|
+
"manifest": "3af9dd6d3ae47cb04951a5a9726879471da40aacbc41aed359d7ecc591dda1b4",
|
|
10
|
+
"packageJson": "15b6eace7f5b37732a183997dee62b5629e2bfb3421d329816a9bacd80ac3331",
|
|
11
11
|
"agents": "7244609f8590febc0f58df6f139e22317a1489541071ac249a5c07557b95dee3"
|
|
12
12
|
},
|
|
13
13
|
"exports": [
|
|
@@ -1820,6 +1820,7 @@
|
|
|
1820
1820
|
"recall",
|
|
1821
1821
|
"recallAll",
|
|
1822
1822
|
"remember",
|
|
1823
|
+
"requireInsertOnSave",
|
|
1823
1824
|
"resetAiUsage",
|
|
1824
1825
|
"save",
|
|
1825
1826
|
"summarizeAiUsage",
|
package/dist/sveltekit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as resolveOidcProviderConfig, a as TerminalAuthRateLimitError, f as OidcLoginError, g as getUsersOidcConfig, h as encodeOidcTransaction, i as TerminalAuthError, l as withSessionPermissionContext, m as decodeOidcTransaction, o as TerminalAuthService, p as OidcLoginService, u as SessionService } from "./chunks/TerminalAuthService-
|
|
1
|
+
import { _ as resolveOidcProviderConfig, a as TerminalAuthRateLimitError, f as OidcLoginError, g as getUsersOidcConfig, h as encodeOidcTransaction, i as TerminalAuthError, l as withSessionPermissionContext, m as decodeOidcTransaction, o as TerminalAuthService, p as OidcLoginService, u as SessionService } from "./chunks/TerminalAuthService-BusSHuHx.js";
|
|
2
2
|
import { ObjectRegistry } from "@happyvertical/smrt-core";
|
|
3
3
|
import { createLogger } from "@happyvertical/logger";
|
|
4
4
|
import { classnameToTablename } from "@happyvertical/smrt-core/utils";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-users",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.7",
|
|
4
4
|
"description": "Multi-tenant user management for the SMRT framework - users, tenants, roles, permissions, groups",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@happyvertical/logger": "^0.74.11",
|
|
45
45
|
"jose": "^6.2.3",
|
|
46
|
-
"@happyvertical/smrt-config": "0.37.
|
|
47
|
-
"@happyvertical/smrt-core": "0.37.
|
|
48
|
-
"@happyvertical/smrt-
|
|
49
|
-
"@happyvertical/smrt-
|
|
50
|
-
"@happyvertical/smrt-
|
|
51
|
-
"@happyvertical/smrt-ui": "0.37.
|
|
46
|
+
"@happyvertical/smrt-config": "0.37.7",
|
|
47
|
+
"@happyvertical/smrt-core": "0.37.7",
|
|
48
|
+
"@happyvertical/smrt-tenancy": "0.37.7",
|
|
49
|
+
"@happyvertical/smrt-types": "0.37.7",
|
|
50
|
+
"@happyvertical/smrt-profiles": "0.37.7",
|
|
51
|
+
"@happyvertical/smrt-ui": "0.37.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@happyvertical/sql": "^0.74.11",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"typescript": "^5.9.3",
|
|
62
62
|
"vite": "^8.1.2",
|
|
63
63
|
"vitest": "^4.1.9",
|
|
64
|
-
"@happyvertical/smrt-vitest": "0.37.
|
|
64
|
+
"@happyvertical/smrt-vitest": "0.37.7"
|
|
65
65
|
},
|
|
66
66
|
"keywords": [
|
|
67
67
|
"smrt",
|