@happyvertical/smrt-users 0.57.21 → 0.57.23

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.
Files changed (33) hide show
  1. package/AGENTS.md +101 -0
  2. package/README.md +53 -1
  3. package/dist/chunks/{PasswordCredentialService-DezdsV_v.js → PasswordCredentialService-DA2Y6H2X.js} +8 -2
  4. package/dist/chunks/PasswordCredentialService-DA2Y6H2X.js.map +1 -0
  5. package/dist/chunks/{TerminalAuthService-D7SIRyUk.js → TerminalAuthService-VRpBNnsC.js} +3 -3
  6. package/dist/chunks/TerminalAuthService-VRpBNnsC.js.map +1 -0
  7. package/dist/collections/MagicLinkTokenCollection.d.ts +2 -0
  8. package/dist/collections/MagicLinkTokenCollection.d.ts.map +1 -1
  9. package/dist/collections/UserCollection.d.ts +2 -0
  10. package/dist/collections/UserCollection.d.ts.map +1 -1
  11. package/dist/index.d.ts +2 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +590 -64
  14. package/dist/index.js.map +1 -1
  15. package/dist/manifest.json +34 -1
  16. package/dist/member-register/service.d.ts +18 -2
  17. package/dist/member-register/service.d.ts.map +1 -1
  18. package/dist/operator.js +1 -1
  19. package/dist/services/LoginAttemptLimiter.d.ts +2 -0
  20. package/dist/services/LoginAttemptLimiter.d.ts.map +1 -1
  21. package/dist/services/MagicLinkService.d.ts +11 -1
  22. package/dist/services/MagicLinkService.d.ts.map +1 -1
  23. package/dist/services/MailboxAuthenticationService.d.ts +61 -0
  24. package/dist/services/MailboxAuthenticationService.d.ts.map +1 -0
  25. package/dist/services/TenantInvitationService.d.ts +120 -0
  26. package/dist/services/TenantInvitationService.d.ts.map +1 -0
  27. package/dist/services/index.d.ts +2 -0
  28. package/dist/services/index.d.ts.map +1 -1
  29. package/dist/smrt-knowledge.json +38 -5
  30. package/dist/sveltekit.js +2 -2
  31. package/package.json +10 -10
  32. package/dist/chunks/PasswordCredentialService-DezdsV_v.js.map +0 -1
  33. package/dist/chunks/TerminalAuthService-D7SIRyUk.js.map +0 -1
package/dist/sveltekit.js CHANGED
@@ -1,5 +1,5 @@
1
- import { M as LoginRateLimitError, d as PasswordCredentialForbiddenError, f as PasswordCredentialService, g as SessionService, p as PasswordPolicyError, u as PasswordCredentialError } from "./chunks/PasswordCredentialService-DezdsV_v.js";
2
- import { B as OidcLoginService, C as PasskeyCredentialService, D as OperationPermissionError, F as MobileAuthError, H as encodeOidcTransaction, I as MobileAuthService, J as DeviceCredentialError, L as readMobileBearerToken, P as withSessionPermissionContext, R as validateMobileRedirectUri, S as PasskeyCredentialForbiddenError, T as PasskeyRegistrationError, U as getUsersOidcConfig, V as decodeOidcTransaction, W as resolveOidcProviderConfig, X as DeviceCredentialPolicyError, Y as DeviceCredentialForbiddenError, Z as DeviceCredentialService, a as TerminalAuthError, o as TerminalAuthRateLimitError, s as TerminalAuthService, w as PasskeyReauthenticationRequiredError, x as PasskeyCredentialError, z as OidcLoginError } from "./chunks/TerminalAuthService-D7SIRyUk.js";
1
+ import { M as LoginRateLimitError, d as PasswordCredentialForbiddenError, f as PasswordCredentialService, g as SessionService, p as PasswordPolicyError, u as PasswordCredentialError } from "./chunks/PasswordCredentialService-DA2Y6H2X.js";
2
+ import { B as OidcLoginService, C as PasskeyCredentialService, D as OperationPermissionError, F as MobileAuthError, H as encodeOidcTransaction, I as MobileAuthService, J as DeviceCredentialError, L as readMobileBearerToken, P as withSessionPermissionContext, R as validateMobileRedirectUri, S as PasskeyCredentialForbiddenError, T as PasskeyRegistrationError, U as getUsersOidcConfig, V as decodeOidcTransaction, W as resolveOidcProviderConfig, X as DeviceCredentialPolicyError, Y as DeviceCredentialForbiddenError, Z as DeviceCredentialService, a as TerminalAuthError, o as TerminalAuthRateLimitError, s as TerminalAuthService, w as PasskeyReauthenticationRequiredError, x as PasskeyCredentialError, z as OidcLoginError } from "./chunks/TerminalAuthService-VRpBNnsC.js";
3
3
  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";
4
4
  import { ObjectRegistry, createClassNamePredicate, resolveCustomActionMetadata, resolveEffectiveActionMetadata } from "@happyvertical/smrt-core";
5
5
  import { createLogger } from "@happyvertical/logger";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-users",
3
- "version": "0.57.21",
3
+ "version": "0.57.23",
4
4
  "smrtJsdoc": "strict",
5
5
  "description": "Multi-tenant user management for the SMRT framework - users, tenants, roles, permissions, groups",
6
6
  "type": "module",
@@ -53,20 +53,20 @@
53
53
  "dependencies": {
54
54
  "@happyvertical/auth": "^0.106.0",
55
55
  "@happyvertical/logger": "^0.106.0",
56
- "@happyvertical/smrt-config": "0.57.21",
57
- "@happyvertical/smrt-core": "0.57.21",
58
- "@happyvertical/smrt-mobile-contract": "0.57.21",
59
- "@happyvertical/smrt-profiles": "0.57.21",
60
- "@happyvertical/smrt-tenancy": "0.57.21",
61
- "@happyvertical/smrt-types": "0.57.21",
62
- "@happyvertical/smrt-ui": "0.57.21",
56
+ "@happyvertical/smrt-config": "0.57.23",
57
+ "@happyvertical/smrt-core": "0.57.23",
58
+ "@happyvertical/smrt-mobile-contract": "0.57.23",
59
+ "@happyvertical/smrt-profiles": "0.57.23",
60
+ "@happyvertical/smrt-tenancy": "0.57.23",
61
+ "@happyvertical/smrt-types": "0.57.23",
62
+ "@happyvertical/smrt-ui": "0.57.23",
63
63
  "@happyvertical/sql": "^0.106.0",
64
64
  "@simplewebauthn/browser": "^14.0.0",
65
65
  "@simplewebauthn/server": "^14.0.3",
66
66
  "jose": "^6.2.12"
67
67
  },
68
68
  "devDependencies": {
69
- "@happyvertical/smrt-vitest": "0.57.21",
69
+ "@happyvertical/smrt-vitest": "0.57.23",
70
70
  "@sveltejs/package": "^2.5.8",
71
71
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
72
72
  "@types/node": "24.13.6",
@@ -104,7 +104,7 @@
104
104
  "clean": "rm -rf dist",
105
105
  "dev": "npm run build:watch",
106
106
  "test": "vitest run",
107
- "test:postgres": "node ../../scripts/run-with-ci-postgres.mjs -- pnpm exec vitest run src/__tests__/operator-provisioning-postgres.test.ts src/__tests__/member-register-postgres.test.ts src/__tests__/permission-action-alias-postgres.test.ts src/__tests__/permission-postgres-rls.test.ts src/__tests__/principal-permission-context-postgres.test.ts src/__tests__/oidc-provisioning-postgres.test.ts src/__tests__/legacy-user-profile-backfill-postgres.test.ts src/__tests__/terminal-auth-postgres.test.ts src/__tests__/device-credential-postgres.test.ts src/__tests__/password-credential-postgres.test.ts src/__tests__/passkey-credential-postgres.test.ts src/__tests__/username-identity.test.ts src/__tests__/resource-grant-postgres.test.ts src/__tests__/issue-3036-hierarchy-resolution-postgres.test.ts src/__tests__/issue-3047-permission-resolution-cost-postgres.test.ts src/__tests__/issue-3048-authorization-list-bounds-postgres.test.ts src/__tests__/issue-3329-concurrent-seeding-postgres.test.ts src/__tests__/issue-3329-grant-dedup.test.ts src/__tests__/issue-3375-authority-pair-dedup.test.ts src/__tests__/issue-3375-authority-pair-identity.test.ts src/__tests__/oauth-authorization.test.ts",
107
+ "test:postgres": "node ../../scripts/run-with-ci-postgres.mjs -- pnpm exec vitest run src/__tests__/operator-provisioning-postgres.test.ts src/__tests__/member-register-postgres.test.ts src/__tests__/member-eligibility-read.test.ts src/__tests__/permission-action-alias-postgres.test.ts src/__tests__/permission-postgres-rls.test.ts src/__tests__/principal-permission-context-postgres.test.ts src/__tests__/oidc-provisioning-postgres.test.ts src/__tests__/legacy-user-profile-backfill-postgres.test.ts src/__tests__/terminal-auth-postgres.test.ts src/__tests__/device-credential-postgres.test.ts src/__tests__/password-credential-postgres.test.ts src/__tests__/passkey-credential-postgres.test.ts src/__tests__/username-identity.test.ts src/__tests__/resource-grant-postgres.test.ts src/__tests__/issue-3036-hierarchy-resolution-postgres.test.ts src/__tests__/issue-3047-permission-resolution-cost-postgres.test.ts src/__tests__/issue-3048-authorization-list-bounds-postgres.test.ts src/__tests__/issue-3329-concurrent-seeding-postgres.test.ts src/__tests__/issue-3329-grant-dedup.test.ts src/__tests__/issue-3375-authority-pair-dedup.test.ts src/__tests__/issue-3375-authority-pair-identity.test.ts src/__tests__/oauth-authorization.test.ts src/__tests__/mailbox-authentication.test.ts",
108
108
  "typecheck": "tsc --noEmit && node ../../scripts/svelte-check-a11y.mjs --tsconfig ./tsconfig.svelte.json",
109
109
  "check": "pnpm exec svelte-check --tsconfig ./tsconfig.svelte.json",
110
110
  "verify:pack": "node ../../scripts/verify-package-types-exports.js ."