@happyvertical/smrt-users 0.42.2 → 0.42.3
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-ecTq1_0M.js → TerminalAuthService-Bg3s5wHA.js} +2 -2
- package/dist/chunks/{TerminalAuthService-ecTq1_0M.js.map → TerminalAuthService-Bg3s5wHA.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/manifest.json +2 -8
- package/dist/smrt-knowledge.json +3 -3
- package/dist/sveltekit.js +1 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as MembershipCollection, A as UserEmailKeyBackfillError, B as PermissionCatalogService, C as decodeOidcTransaction, Ct as UserStatus, E as resolveOidcProviderConfig, F as TenantHierarchyError, G as syncPermissionCatalog, H as deriveOperationPermissionSlug, I as MAX_TENANT_HIERARCHY_DEPTH, J as Role, K as RolePermission, L as Tenant, M as TenantPermissionOverrideCollection, N as TenantPermissionOverride, O as OidcProvisioningError, P as TenantCollection, Q as MembershipOverride, R as DEFAULT_ROLE_PERMISSION_PATTERNS, S as OidcLoginService, St as TenantStatus, T as getUsersOidcConfig, Tt as UsersCliAuthRequest, U as normalizeOperationPermissionAction, V as deriveOperationPermissionCollectionName, W as registerPermissionDefinitions, X as Permission, Y as PermissionCollection, Z as MembershipOverrideCollection, _ as readMobileBearerToken, _t as DEFAULT_TENANT_POLICY, a as TerminalAuthRateLimitError, at as GroupCollection, b as PermissionResolver, bt as SessionStatus, c as assertOperationPermission, ct as isValidEmail, d as getCurrentSessionPermissionContext, dt as DEFAULT_SESSION_TTL, et as Membership, f as getRequestScopedDatabase, ft as Session, g as MobileAuthService, gt as DEFAULT_ROLE_SLUGS, h as MobileAuthError, ht as DEFAULT_ROLES, i as TerminalAuthError, it as GroupMember, j as backfillUserEmailKeys, k as UserCollection, l as checkOperationPermission, lt as normalizeEmail, m as withSessionPermissionContext, mt as AccessRequestStatus, n as DEFAULT_CLI_AUTH_REQUEST_TTL_SECONDS, nt as GroupRole, o as TerminalAuthService, ot as Group, p as withPrincipalPermissionContext, pt as generateSessionId, q as RoleCollection, r as DEFAULT_CLI_SESSION_TTL_SECONDS, rt as GroupMemberCollection, s as OperationPermissionError, st as User, t as DEFAULT_CLI_AUTH_POLL_INTERVAL_SECONDS, tt as GroupRoleCollection, u as hasOperationPermission, ut as SessionCollection, v as validateMobileRedirectUri, vt as MembershipStatus, w as encodeOidcTransaction, wt as UsersCliAuthRequestCollection, x as OidcLoginError, xt as TenantPermissionEffect, y as SessionService, yt as OverrideEffect, z as RolePermissionCollection } from "./chunks/TerminalAuthService-
|
|
1
|
+
import { $ as MembershipCollection, A as UserEmailKeyBackfillError, B as PermissionCatalogService, C as decodeOidcTransaction, Ct as UserStatus, E as resolveOidcProviderConfig, F as TenantHierarchyError, G as syncPermissionCatalog, H as deriveOperationPermissionSlug, I as MAX_TENANT_HIERARCHY_DEPTH, J as Role, K as RolePermission, L as Tenant, M as TenantPermissionOverrideCollection, N as TenantPermissionOverride, O as OidcProvisioningError, P as TenantCollection, Q as MembershipOverride, R as DEFAULT_ROLE_PERMISSION_PATTERNS, S as OidcLoginService, St as TenantStatus, T as getUsersOidcConfig, Tt as UsersCliAuthRequest, U as normalizeOperationPermissionAction, V as deriveOperationPermissionCollectionName, W as registerPermissionDefinitions, X as Permission, Y as PermissionCollection, Z as MembershipOverrideCollection, _ as readMobileBearerToken, _t as DEFAULT_TENANT_POLICY, a as TerminalAuthRateLimitError, at as GroupCollection, b as PermissionResolver, bt as SessionStatus, c as assertOperationPermission, ct as isValidEmail, d as getCurrentSessionPermissionContext, dt as DEFAULT_SESSION_TTL, et as Membership, f as getRequestScopedDatabase, ft as Session, g as MobileAuthService, gt as DEFAULT_ROLE_SLUGS, h as MobileAuthError, ht as DEFAULT_ROLES, i as TerminalAuthError, it as GroupMember, j as backfillUserEmailKeys, k as UserCollection, l as checkOperationPermission, lt as normalizeEmail, m as withSessionPermissionContext, mt as AccessRequestStatus, n as DEFAULT_CLI_AUTH_REQUEST_TTL_SECONDS, nt as GroupRole, o as TerminalAuthService, ot as Group, p as withPrincipalPermissionContext, pt as generateSessionId, q as RoleCollection, r as DEFAULT_CLI_SESSION_TTL_SECONDS, rt as GroupMemberCollection, s as OperationPermissionError, st as User, t as DEFAULT_CLI_AUTH_POLL_INTERVAL_SECONDS, tt as GroupRoleCollection, u as hasOperationPermission, ut as SessionCollection, v as validateMobileRedirectUri, vt as MembershipStatus, w as encodeOidcTransaction, wt as UsersCliAuthRequestCollection, x as OidcLoginError, xt as TenantPermissionEffect, y as SessionService, yt as OverrideEffect, z as RolePermissionCollection } from "./chunks/TerminalAuthService-Bg3s5wHA.js";
|
|
2
2
|
import { ObjectRegistry, SmrtCollection, SmrtObject, field, findManifestEntryByQualifiedName, isUniqueViolationError, registerRetentionTask, smrt, unregisterRetentionTask } from "@happyvertical/smrt-core";
|
|
3
3
|
import { TenantScoped, tenantId } from "@happyvertical/smrt-tenancy";
|
|
4
4
|
import { createLogger } from "@happyvertical/logger";
|
|
@@ -953,7 +953,7 @@ var MagicLinkService = class MagicLinkService {
|
|
|
953
953
|
* The caller is responsible for emailing the token to the user.
|
|
954
954
|
*/
|
|
955
955
|
async generate(email) {
|
|
956
|
-
const { SignJWT } = await import("./chunks/TerminalAuthService-
|
|
956
|
+
const { SignJWT } = await import("./chunks/TerminalAuthService-Bg3s5wHA.js").then((n) => n.D);
|
|
957
957
|
const key = await this.getSigningKey();
|
|
958
958
|
const nonce = crypto.randomUUID();
|
|
959
959
|
const normalizedEmail = normalizeEmail(email);
|
|
@@ -982,7 +982,7 @@ var MagicLinkService = class MagicLinkService {
|
|
|
982
982
|
* @throws {MagicLinkError} If the token is invalid, expired, or already used
|
|
983
983
|
*/
|
|
984
984
|
async verify(token) {
|
|
985
|
-
const { jwtVerify, errors } = await import("./chunks/TerminalAuthService-
|
|
985
|
+
const { jwtVerify, errors } = await import("./chunks/TerminalAuthService-Bg3s5wHA.js").then((n) => n.D);
|
|
986
986
|
const key = await this.getSigningKey();
|
|
987
987
|
let payload;
|
|
988
988
|
try {
|
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-users",
|
|
5
|
-
"packageVersion": "0.42.
|
|
5
|
+
"packageVersion": "0.42.3",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-users:AccessRequestCollection": {
|
|
8
8
|
"name": "accessrequestcollection",
|
|
@@ -5856,13 +5856,7 @@
|
|
|
5856
5856
|
"extends": "SmrtObject",
|
|
5857
5857
|
"exportName": "TenantIntegration",
|
|
5858
5858
|
"collectionExportName": "TenantIntegrationCollection",
|
|
5859
|
-
"validationRules": [
|
|
5860
|
-
{
|
|
5861
|
-
"field": "tenantId",
|
|
5862
|
-
"rule": "required",
|
|
5863
|
-
"fieldType": "text"
|
|
5864
|
-
}
|
|
5865
|
-
],
|
|
5859
|
+
"validationRules": [],
|
|
5866
5860
|
"schema": {
|
|
5867
5861
|
"tableName": "tenant_integrations",
|
|
5868
5862
|
"ddl": "CREATE TABLE IF NOT EXISTS \"tenant_integrations\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID NOT NULL,\n \"provider\" TEXT DEFAULT 'aws',\n \"external_ids\" TEXT,\n \"status\" TEXT DEFAULT 'unprovisioned',\n \"last_checked_at\" TIMESTAMP,\n \"last_check_summary\" TEXT,\n \"last_error\" TEXT\n);",
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-users",
|
|
6
|
-
"packageVersion": "0.42.
|
|
6
|
+
"packageVersion": "0.42.3",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "b80f4a5e22e9ea94531d185351a836c19a4e91020d3cec30579005fcc201d088",
|
|
11
|
+
"packageJson": "2d60b007ee46065ed4a40e0a0ac91c2d384e6115db52640fb6a02858fc70daae",
|
|
12
12
|
"agents": "6ec265b8af7cdfa9fea1a3f128af9bf25cbcdb1353c34a81a7fc5b0d2e4a8f2b",
|
|
13
13
|
"moduleDoc:agents/retention.md": "455e7e9d36e8410b5deb62aa274421c50c8f2037d04bf770145d2fc71b79030f"
|
|
14
14
|
},
|
package/dist/sveltekit.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as decodeOidcTransaction, E as resolveOidcProviderConfig, S as OidcLoginService, T as getUsersOidcConfig, _ as readMobileBearerToken, a as TerminalAuthRateLimitError, g as MobileAuthService, h as MobileAuthError, i as TerminalAuthError, m as withSessionPermissionContext, o as TerminalAuthService, s as OperationPermissionError, v as validateMobileRedirectUri, w as encodeOidcTransaction, x as OidcLoginError, y as SessionService } from "./chunks/TerminalAuthService-
|
|
1
|
+
import { C as decodeOidcTransaction, E as resolveOidcProviderConfig, S as OidcLoginService, T as getUsersOidcConfig, _ as readMobileBearerToken, a as TerminalAuthRateLimitError, g as MobileAuthService, h as MobileAuthError, i as TerminalAuthError, m as withSessionPermissionContext, o as TerminalAuthService, s as OperationPermissionError, v as validateMobileRedirectUri, w as encodeOidcTransaction, x as OidcLoginError, y as SessionService } from "./chunks/TerminalAuthService-Bg3s5wHA.js";
|
|
2
2
|
import { DiscoveryArtifactValidationError, SMRT_APP_RESULT_CONTRACT, SMRT_APP_RESULT_SCHEMA, SMRT_APP_RESULT_VERSION, SMRT_DISCOVERY_CONFORMANCE_ARTIFACT_SCHEMA, SMRT_DISCOVERY_CONFORMANCE_SCHEMA, SMRT_DISCOVERY_CONFORMANCE_VERSION, SMRT_MCP_RESULT_METADATA_KEY, canonicalizeDiscoveryArtifact, createDiscoveryConformanceArtifact, deriveCommandRequirements, validateDiscoveryConformanceArtifact } from "./app-contract.js";
|
|
3
3
|
import { ObjectRegistry } from "@happyvertical/smrt-core";
|
|
4
4
|
import { createLogger } from "@happyvertical/logger";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-users",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.3",
|
|
4
4
|
"description": "Multi-tenant user management for the SMRT framework - users, tenants, roles, permissions, groups",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"@happyvertical/logger": "^0.88.0",
|
|
49
49
|
"@happyvertical/sql": "^0.88.0",
|
|
50
50
|
"jose": "^6.2.3",
|
|
51
|
-
"@happyvertical/smrt-config": "0.42.
|
|
52
|
-
"@happyvertical/smrt-core": "0.42.
|
|
53
|
-
"@happyvertical/smrt-mobile-contract": "0.42.
|
|
54
|
-
"@happyvertical/smrt-profiles": "0.42.
|
|
55
|
-
"@happyvertical/smrt-tenancy": "0.42.
|
|
56
|
-
"@happyvertical/smrt-types": "0.42.
|
|
57
|
-
"@happyvertical/smrt-ui": "0.42.
|
|
51
|
+
"@happyvertical/smrt-config": "0.42.3",
|
|
52
|
+
"@happyvertical/smrt-core": "0.42.3",
|
|
53
|
+
"@happyvertical/smrt-mobile-contract": "0.42.3",
|
|
54
|
+
"@happyvertical/smrt-profiles": "0.42.3",
|
|
55
|
+
"@happyvertical/smrt-tenancy": "0.42.3",
|
|
56
|
+
"@happyvertical/smrt-types": "0.42.3",
|
|
57
|
+
"@happyvertical/smrt-ui": "0.42.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@sveltejs/package": "^2.5.8",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"typescript": "5.9.3",
|
|
67
67
|
"vite": "8.1.4",
|
|
68
68
|
"vitest": "4.1.10",
|
|
69
|
-
"@happyvertical/smrt-vitest": "0.42.
|
|
69
|
+
"@happyvertical/smrt-vitest": "0.42.3"
|
|
70
70
|
},
|
|
71
71
|
"keywords": [
|
|
72
72
|
"smrt",
|