@happyvertical/smrt-users 0.60.9 → 0.60.11
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/README.md +20 -0
- package/dist/chunks/{PasswordCredentialService-DHJNKEeJ.js → PasswordCredentialService-BSSP_kyT.js} +22 -8
- package/dist/chunks/PasswordCredentialService-BSSP_kyT.js.map +1 -0
- package/dist/chunks/TerminalAuthService-BULSwd4n.js +4012 -0
- package/dist/chunks/TerminalAuthService-BULSwd4n.js.map +1 -0
- package/dist/chunks/{types-DFqeph0R.js → types-DqUZxluX.js} +5 -1
- package/dist/chunks/types-DqUZxluX.js.map +1 -0
- package/dist/collections/RoleCollection.d.ts.map +1 -1
- package/dist/index.js +22 -20
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +577 -145
- package/dist/operator.js +2 -2
- package/dist/services/TenantService.d.ts +6 -1
- package/dist/services/TenantService.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/smrt-knowledge.okf.md +185 -0
- package/dist/sveltekit.js +2 -2
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +12 -12
- package/dist/chunks/PasswordCredentialService-DHJNKEeJ.js.map +0 -1
- package/dist/chunks/TerminalAuthService-BkOn3fbj.js +0 -4012
- package/dist/chunks/TerminalAuthService-BkOn3fbj.js.map +0 -1
- package/dist/chunks/types-DFqeph0R.js.map +0 -1
package/dist/operator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dt as normalizeEmail, Et as isValidEmail, I as UserCollection, Ot as normalizeUsername, P as verifySecretHash, U as TenantCollection, _ as PermissionResolver, f as PasswordCredentialService, lt as UsersPasswordCredentialCollection, pt as MembershipCollection, st as RoleCollection } from "./chunks/PasswordCredentialService-
|
|
2
|
-
import { a as MembershipStatus, l as TenantStatus, u as UserStatus } from "./chunks/types-
|
|
1
|
+
import { Dt as normalizeEmail, Et as isValidEmail, I as UserCollection, Ot as normalizeUsername, P as verifySecretHash, U as TenantCollection, _ as PermissionResolver, f as PasswordCredentialService, lt as UsersPasswordCredentialCollection, pt as MembershipCollection, st as RoleCollection } from "./chunks/PasswordCredentialService-BSSP_kyT.js";
|
|
2
|
+
import { a as MembershipStatus, l as TenantStatus, u as UserStatus } from "./chunks/types-DqUZxluX.js";
|
|
3
3
|
import { isPostgresDatabase, withEmbeddedWriteTransaction } from "@happyvertical/smrt-core";
|
|
4
4
|
import { withSystemContext } from "@happyvertical/smrt-tenancy";
|
|
5
5
|
//#region src/operator.ts
|
|
@@ -76,11 +76,16 @@ export declare class TenantService {
|
|
|
76
76
|
*
|
|
77
77
|
* @param userId - The user to make owner
|
|
78
78
|
* @param name - Tenant name
|
|
79
|
-
* @param options - Optional slug override
|
|
79
|
+
* @param options - Optional slug override and trusted provisioning identities
|
|
80
80
|
* @returns The created tenant and membership
|
|
81
81
|
*/
|
|
82
82
|
createTenantWithOwnership(userId: string, name: string, options?: {
|
|
83
83
|
slug?: string;
|
|
84
|
+
/** Server-owned IDs only. Use the caller's provisioning transaction. */
|
|
85
|
+
reservedIdentity?: {
|
|
86
|
+
tenantId?: string;
|
|
87
|
+
membershipId?: string;
|
|
88
|
+
};
|
|
84
89
|
}): Promise<TenantWithOwnershipResult>;
|
|
85
90
|
/**
|
|
86
91
|
* Check if a user can create a new tenant
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TenantService.d.ts","sourceRoot":"","sources":["../../src/services/TenantService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAIjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAIL,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;AAG3B;;GAEG;AACH,MAAM,WAAW,yBAA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AE,MAAM,EACd,QAAQ,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC1C,OAAO,CAAC,kBAAkB,CAAC;IA+C9B;;OAEG;IACG,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAuBxD;;OAEG;WACU,MAAM,CACjB,OAAO,EAAE,gBAAgB,EACzB,MAAM,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC,aAAa,CAAC;CAK1B"}
|
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.60.
|
|
6
|
+
"packageVersion": "0.60.11",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "88cf5e9621c729f91013c4575564126624d0af8c8f4f586551deb3a8978a9df2",
|
|
11
|
+
"packageJson": "91f3ef339f923334de81c557b182f3597937f96800efcc46dd3a43b9b80f7c76",
|
|
12
12
|
"agents": "0dd40a4fc4386d603822766cdcff52a922577ab5cb2af81d466a209b7564214b",
|
|
13
13
|
"moduleDoc:agents/permissions.md": "02b2f03f0e057721369d9c693a624a6fdb3df4935401531a4373ff18229a64be",
|
|
14
14
|
"moduleDoc:agents/oidc-provisioning.md": "b73f3fdaf61136720132a614c7e14237b7bd35f7bf5d43eabb29f565485803b9",
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: "Component"
|
|
3
|
+
title: "@happyvertical/smrt-users"
|
|
4
|
+
description: "Multi-tenant user management for the SMRT framework - users, tenants, roles, permissions, groups"
|
|
5
|
+
status: "stable"
|
|
6
|
+
generated:
|
|
7
|
+
by: "smrt/scripts/generate-knowledge-okf.ts"
|
|
8
|
+
at: "2026-11-05T15:48:19Z"
|
|
9
|
+
audience: "internal"
|
|
10
|
+
evidence_level: "source-inspected"
|
|
11
|
+
source_revision: "sha256:1a6ed0197c74c374694ae38813f577793942372d5c8c438ea2da47c7c334ddb2"
|
|
12
|
+
sources:
|
|
13
|
+
- id: "manifest"
|
|
14
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/users/package.json"
|
|
15
|
+
title: "@happyvertical/smrt-users package manifest"
|
|
16
|
+
- id: "agents"
|
|
17
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/users/AGENTS.md"
|
|
18
|
+
title: "@happyvertical/smrt-users packages/users/AGENTS.md"
|
|
19
|
+
- id: "agents-2"
|
|
20
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/users/agents/family-invitations.md"
|
|
21
|
+
title: "@happyvertical/smrt-users packages/users/agents/family-invitations.md"
|
|
22
|
+
- id: "agents-3"
|
|
23
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/users/agents/mobile-auth.md"
|
|
24
|
+
title: "@happyvertical/smrt-users packages/users/agents/mobile-auth.md"
|
|
25
|
+
- id: "agents-4"
|
|
26
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/users/agents/oidc-provisioning.md"
|
|
27
|
+
title: "@happyvertical/smrt-users packages/users/agents/oidc-provisioning.md"
|
|
28
|
+
- id: "agents-5"
|
|
29
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/users/agents/permissions.md"
|
|
30
|
+
title: "@happyvertical/smrt-users packages/users/agents/permissions.md"
|
|
31
|
+
- id: "agents-6"
|
|
32
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/users/agents/retention.md"
|
|
33
|
+
title: "@happyvertical/smrt-users packages/users/agents/retention.md"
|
|
34
|
+
- id: "agents-7"
|
|
35
|
+
resource: "https://github.com/happyvertical/smrt/blob/main/packages/users/agents/terminal-auth-testing.md"
|
|
36
|
+
title: "@happyvertical/smrt-users packages/users/agents/terminal-auth-testing.md"
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# @happyvertical/smrt-users
|
|
40
|
+
|
|
41
|
+
## Package
|
|
42
|
+
|
|
43
|
+
- Directory: `packages/users`
|
|
44
|
+
- Private: no
|
|
45
|
+
- Object source: `domain-artifact`
|
|
46
|
+
- Evidence level: `source-inspected`
|
|
47
|
+
|
|
48
|
+
## Documentation
|
|
49
|
+
|
|
50
|
+
- `packages/users/AGENTS.md`
|
|
51
|
+
- `packages/users/agents/family-invitations.md`
|
|
52
|
+
- `packages/users/agents/mobile-auth.md`
|
|
53
|
+
- `packages/users/agents/oidc-provisioning.md`
|
|
54
|
+
- `packages/users/agents/permissions.md`
|
|
55
|
+
- `packages/users/agents/retention.md`
|
|
56
|
+
- `packages/users/agents/terminal-auth-testing.md`
|
|
57
|
+
|
|
58
|
+
## Framework dependencies
|
|
59
|
+
|
|
60
|
+
- [smrt-config](/components/smrt-config.md)
|
|
61
|
+
- [smrt-core](/components/smrt-core.md)
|
|
62
|
+
- [smrt-mobile-contract](/components/smrt-mobile-contract.md)
|
|
63
|
+
- [smrt-profiles](/components/smrt-profiles.md)
|
|
64
|
+
- [smrt-tenancy](/components/smrt-tenancy.md)
|
|
65
|
+
- [smrt-types](/components/smrt-types.md)
|
|
66
|
+
- [smrt-ui](/components/smrt-ui.md)
|
|
67
|
+
- [smrt-vitest](/components/smrt-vitest.md)
|
|
68
|
+
|
|
69
|
+
## SDK dependencies
|
|
70
|
+
|
|
71
|
+
- `@happyvertical/logger`
|
|
72
|
+
- `@happyvertical/sql`
|
|
73
|
+
|
|
74
|
+
## Exports
|
|
75
|
+
|
|
76
|
+
- `.`
|
|
77
|
+
- `./app-contract`
|
|
78
|
+
- `./manifest`
|
|
79
|
+
- `./manifest.json`
|
|
80
|
+
- `./operator`
|
|
81
|
+
- `./playground`
|
|
82
|
+
- `./svelte`
|
|
83
|
+
- `./sveltekit`
|
|
84
|
+
|
|
85
|
+
## Models
|
|
86
|
+
|
|
87
|
+
- `AccessRequest` (collection `accessrequests`, extends `SmrtObject`)
|
|
88
|
+
- `AccessRequestCollection` (collection `accessrequests`, extends `SmrtCollection`)
|
|
89
|
+
- `Group` (collection `groups`, extends `SmrtObject`)
|
|
90
|
+
- `GroupCollection` (collection `groups`, extends `SmrtCollection`)
|
|
91
|
+
- `GroupMember` (collection `groupmembers`, extends `SmrtObject`)
|
|
92
|
+
- `GroupMemberCollection` (collection `groupmembers`, extends `SmrtCollection`)
|
|
93
|
+
- `GroupRole` (collection `grouproles`, extends `SmrtObject`)
|
|
94
|
+
- `GroupRoleCollection` (collection `grouproles`, extends `SmrtCollection`)
|
|
95
|
+
- `LegalMember` (collection `legalmembers`, extends `SmrtObject`)
|
|
96
|
+
- `LegalMemberCollection` (collection `legalmembers`, extends `SmrtCollection`)
|
|
97
|
+
- `LegalMemberReference` (collection `legalmemberreferences`, extends `SmrtObject`)
|
|
98
|
+
- `LegalMemberReferenceCollection` (collection `legalmemberreferences`, extends `SmrtCollection`)
|
|
99
|
+
- `LegalMemberStatusHistory` (collection `legalmemberstatushistories`, extends `SmrtObject`)
|
|
100
|
+
- `LegalMemberStatusHistoryCollection` (collection `legalmemberstatushistories`, extends `SmrtCollection`)
|
|
101
|
+
- `MemberClass` (collection `memberclasses`, extends `SmrtObject`)
|
|
102
|
+
- `MemberClassCollection` (collection `memberclasses`, extends `SmrtCollection`)
|
|
103
|
+
- `MemberEligibilitySnapshot` (collection `membereligibilitysnapshots`, extends `SmrtObject`)
|
|
104
|
+
- `MemberEligibilitySnapshotCollection` (collection `membereligibilitysnapshots`, extends `SmrtCollection`)
|
|
105
|
+
- `MemberOfficerAppointment` (collection `memberofficerappointments`, extends `SmrtObject`)
|
|
106
|
+
- `MemberOfficerAppointmentCollection` (collection `memberofficerappointments`, extends `SmrtCollection`)
|
|
107
|
+
- `Membership` (collection `memberships`, extends `SmrtObject`)
|
|
108
|
+
- `MembershipCollection` (collection `memberships`, extends `SmrtCollection`)
|
|
109
|
+
- `MembershipOverride` (collection `membershipoverrides`, extends `SmrtObject`)
|
|
110
|
+
- `MembershipOverrideCollection` (collection `membershipoverrides`, extends `SmrtCollection`)
|
|
111
|
+
- `Permission` (collection `permissions`, extends `SmrtObject`)
|
|
112
|
+
- `PermissionCollection` (collection `permissions`, extends `SmrtCollection`)
|
|
113
|
+
- `ResourceGrant` (collection `resourcegrants`, extends `SmrtObject`)
|
|
114
|
+
- `ResourceGrantCollection` (collection `resourcegrants`, extends `SmrtCollection`)
|
|
115
|
+
- `Role` (collection `roles`, extends `SmrtObject`)
|
|
116
|
+
- `RoleCollection` (collection `roles`, extends `SmrtCollection`)
|
|
117
|
+
- `RolePermission` (collection `rolepermissions`, extends `SmrtObject`)
|
|
118
|
+
- `RolePermissionCollection` (collection `rolepermissions`, extends `SmrtCollection`)
|
|
119
|
+
- `Session` (collection `sessions`, extends `SmrtObject`)
|
|
120
|
+
- `SessionCollection` (collection `sessions`, extends `SmrtCollection`)
|
|
121
|
+
- `Tenant` (collection `tenants`, extends `SmrtObject`, STI table)
|
|
122
|
+
- `TenantCollection` (collection `tenants`, extends `SmrtCollection`)
|
|
123
|
+
- `TenantIntegration` (collection `tenantintegrations`, extends `SmrtObject`)
|
|
124
|
+
- `TenantIntegrationCollection` (collection `tenantintegrations`, extends `SmrtCollection`)
|
|
125
|
+
- `TenantPermissionOverride` (collection `tenantpermissionoverrides`, extends `SmrtObject`)
|
|
126
|
+
- `TenantPermissionOverrideCollection` (collection `tenantpermissionoverrides`, extends `SmrtCollection`)
|
|
127
|
+
- `User` (collection `users`, extends `SmrtObject`)
|
|
128
|
+
- `UserCollection` (collection `users`, extends `SmrtCollection`)
|
|
129
|
+
- `UsersCliAuthApproveLimit` (collection `userscliauthapprovelimits`, extends `SmrtObject`)
|
|
130
|
+
- `UsersCliAuthApproveLimitCollection` (collection `userscliauthapprovelimits`, extends `SmrtCollection`)
|
|
131
|
+
- `UsersCliAuthRequest` (collection `userscliauthrequests`, extends `SmrtObject`)
|
|
132
|
+
- `UsersCliAuthRequestCollection` (collection `userscliauthrequests`, extends `SmrtCollection`)
|
|
133
|
+
- `UsersLoginAttempt` (collection `usersloginattempts`, extends `SmrtObject`)
|
|
134
|
+
- `UsersLoginAttemptCollection` (collection `usersloginattempts`, extends `SmrtCollection`)
|
|
135
|
+
- `UsersLoginAuditEvent` (collection `usersloginauditevents`, extends `SmrtObject`)
|
|
136
|
+
- `UsersLoginAuditEventCollection` (collection `usersloginauditevents`, extends `SmrtCollection`)
|
|
137
|
+
- `UsersMagicLinkToken` (collection `usersmagiclinktokens`, extends `SmrtObject`)
|
|
138
|
+
- `UsersMagicLinkTokenCollection` (collection `usersmagiclinktokens`, extends `SmrtCollection`)
|
|
139
|
+
- `UsersOAuthAccessTokenRevocation` (collection `usersoauthaccesstokenrevocations`, extends `SmrtObject`)
|
|
140
|
+
- `UsersOAuthAccessTokenRevocationCollection` (collection `usersoauthaccesstokenrevocations`, extends `SmrtCollection`)
|
|
141
|
+
- `UsersOAuthAuthorization` (collection `usersoauthauthorizations`, extends `SmrtObject`)
|
|
142
|
+
- `UsersOAuthAuthorizationCode` (collection `usersoauthauthorizationcodes`, extends `SmrtObject`)
|
|
143
|
+
- `UsersOAuthAuthorizationCodeCollection` (collection `usersoauthauthorizationcodes`, extends `SmrtCollection`)
|
|
144
|
+
- `UsersOAuthAuthorizationCollection` (collection `usersoauthauthorizations`, extends `SmrtCollection`)
|
|
145
|
+
- `UsersOAuthClient` (collection `usersoauthclients`, extends `SmrtObject`)
|
|
146
|
+
- `UsersOAuthClientCollection` (collection `usersoauthclients`, extends `SmrtCollection`)
|
|
147
|
+
- `UsersOAuthRefreshFamily` (collection `usersoauthrefreshfamilies`, extends `SmrtObject`)
|
|
148
|
+
- `UsersOAuthRefreshFamilyCollection` (collection `usersoauthrefreshfamilies`, extends `SmrtCollection`)
|
|
149
|
+
- `UsersOAuthRefreshGrant` (collection `usersoauthrefreshgrants`, extends `SmrtObject`)
|
|
150
|
+
- `UsersOAuthRefreshGrantCollection` (collection `usersoauthrefreshgrants`, extends `SmrtCollection`)
|
|
151
|
+
- `UsersPasskeyChallenge` (collection `userspasskeychallenges`, extends `SmrtObject`)
|
|
152
|
+
- `UsersPasskeyChallengeCollection` (collection `userspasskeychallenges`, extends `SmrtCollection`)
|
|
153
|
+
- `UsersPasskeyCredential` (collection `userspasskeycredentials`, extends `SmrtObject`)
|
|
154
|
+
- `UsersPasskeyCredentialCollection` (collection `userspasskeycredentials`, extends `SmrtCollection`)
|
|
155
|
+
- `UsersPasswordCredential` (collection `userspasswordcredentials`, extends `SmrtObject`)
|
|
156
|
+
- `UsersPasswordCredentialCollection` (collection `userspasswordcredentials`, extends `SmrtCollection`)
|
|
157
|
+
- `UsersPinCredential` (collection `userspincredentials`, extends `SmrtObject`)
|
|
158
|
+
- `UsersPinCredentialCollection` (collection `userspincredentials`, extends `SmrtCollection`)
|
|
159
|
+
|
|
160
|
+
## MCP tools
|
|
161
|
+
|
|
162
|
+
- `group_get`: get on `@happyvertical/smrt-users:Group`
|
|
163
|
+
- `group_list`: list on `@happyvertical/smrt-users:Group`
|
|
164
|
+
- `groupmember_get`: get on `@happyvertical/smrt-users:GroupMember`
|
|
165
|
+
- `groupmember_list`: list on `@happyvertical/smrt-users:GroupMember`
|
|
166
|
+
- `grouprole_get`: get on `@happyvertical/smrt-users:GroupRole`
|
|
167
|
+
- `grouprole_list`: list on `@happyvertical/smrt-users:GroupRole`
|
|
168
|
+
- `membership_get`: get on `@happyvertical/smrt-users:Membership`
|
|
169
|
+
- `membership_list`: list on `@happyvertical/smrt-users:Membership`
|
|
170
|
+
- `membershipoverride_get`: get on `@happyvertical/smrt-users:MembershipOverride`
|
|
171
|
+
- `membershipoverride_list`: list on `@happyvertical/smrt-users:MembershipOverride`
|
|
172
|
+
- `permission_get`: get on `@happyvertical/smrt-users:Permission`
|
|
173
|
+
- `permission_list`: list on `@happyvertical/smrt-users:Permission`
|
|
174
|
+
- `role_get`: get on `@happyvertical/smrt-users:Role`
|
|
175
|
+
- `role_list`: list on `@happyvertical/smrt-users:Role`
|
|
176
|
+
- `rolepermission_get`: get on `@happyvertical/smrt-users:RolePermission`
|
|
177
|
+
- `rolepermission_list`: list on `@happyvertical/smrt-users:RolePermission`
|
|
178
|
+
- `tenant_get`: get on `@happyvertical/smrt-users:Tenant`
|
|
179
|
+
- `tenant_list`: list on `@happyvertical/smrt-users:Tenant`
|
|
180
|
+
- `tenantintegration_get`: get on `@happyvertical/smrt-users:TenantIntegration`
|
|
181
|
+
- `tenantintegration_list`: list on `@happyvertical/smrt-users:TenantIntegration`
|
|
182
|
+
- `tenantpermissionoverride_get`: get on `@happyvertical/smrt-users:TenantPermissionOverride`
|
|
183
|
+
- `tenantpermissionoverride_list`: list on `@happyvertical/smrt-users:TenantPermissionOverride`
|
|
184
|
+
- `user_get`: get on `@happyvertical/smrt-users:User`
|
|
185
|
+
- `user_list`: list on `@happyvertical/smrt-users:User`
|
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-
|
|
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-
|
|
1
|
+
import { M as LoginRateLimitError, d as PasswordCredentialForbiddenError, f as PasswordCredentialService, g as SessionService, p as PasswordPolicyError, u as PasswordCredentialError } from "./chunks/PasswordCredentialService-BSSP_kyT.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-BULSwd4n.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/dist/types/index.d.ts
CHANGED
|
@@ -17,18 +17,22 @@ export declare const DEFAULT_ROLE_SLUGS: {
|
|
|
17
17
|
*/
|
|
18
18
|
export declare const DEFAULT_ROLES: readonly [{
|
|
19
19
|
readonly slug: "owner";
|
|
20
|
+
readonly id: "566aef94-1328-4876-b291-b7cf18d4df01";
|
|
20
21
|
readonly name: "Owner";
|
|
21
22
|
readonly description: "Full access to all resources";
|
|
22
23
|
}, {
|
|
23
24
|
readonly slug: "admin";
|
|
25
|
+
readonly id: "566aef94-1328-4876-b291-b7cf18d4df02";
|
|
24
26
|
readonly name: "Administrator";
|
|
25
27
|
readonly description: "Manage users and settings";
|
|
26
28
|
}, {
|
|
27
29
|
readonly slug: "member";
|
|
30
|
+
readonly id: "566aef94-1328-4876-b291-b7cf18d4df03";
|
|
28
31
|
readonly name: "Member";
|
|
29
32
|
readonly description: "Standard access";
|
|
30
33
|
}, {
|
|
31
34
|
readonly slug: "viewer";
|
|
35
|
+
readonly id: "566aef94-1328-4876-b291-b7cf18d4df04";
|
|
32
36
|
readonly name: "Viewer";
|
|
33
37
|
readonly description: "Read-only access";
|
|
34
38
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,YAAY,EACZ,UAAU,GACX,MAAM,2BAA2B,CAAC;AAInC;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,sBAAsB,EACtB,YAAY,EACZ,UAAU,GACX,MAAM,2BAA2B,CAAC;AAInC;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;EAyBhB,CAAC;AAEX,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAI/D;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,kBAAkB;IAClB,IAAI,EAAE,gBAAgB,CAAC;IAEvB,+CAA+C;IAC/C,UAAU,EAAE,MAAM,CAAC;IAEnB,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAInC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-users",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.11",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Multi-tenant user management for the SMRT framework - users, tenants, roles, permissions, groups",
|
|
6
6
|
"type": "module",
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@happyvertical/auth": "^0.111.
|
|
55
|
-
"@happyvertical/logger": "^0.111.
|
|
56
|
-
"@happyvertical/smrt-config": "0.60.
|
|
57
|
-
"@happyvertical/smrt-core": "0.60.
|
|
58
|
-
"@happyvertical/smrt-mobile-contract": "0.60.
|
|
59
|
-
"@happyvertical/smrt-profiles": "0.60.
|
|
60
|
-
"@happyvertical/smrt-tenancy": "0.60.
|
|
61
|
-
"@happyvertical/smrt-types": "0.60.
|
|
62
|
-
"@happyvertical/smrt-ui": "0.60.
|
|
63
|
-
"@happyvertical/sql": "^0.111.
|
|
54
|
+
"@happyvertical/auth": "^0.111.5",
|
|
55
|
+
"@happyvertical/logger": "^0.111.5",
|
|
56
|
+
"@happyvertical/smrt-config": "0.60.11",
|
|
57
|
+
"@happyvertical/smrt-core": "0.60.11",
|
|
58
|
+
"@happyvertical/smrt-mobile-contract": "0.60.11",
|
|
59
|
+
"@happyvertical/smrt-profiles": "0.60.11",
|
|
60
|
+
"@happyvertical/smrt-tenancy": "0.60.11",
|
|
61
|
+
"@happyvertical/smrt-types": "0.60.11",
|
|
62
|
+
"@happyvertical/smrt-ui": "0.60.11",
|
|
63
|
+
"@happyvertical/sql": "^0.111.5",
|
|
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.60.
|
|
69
|
+
"@happyvertical/smrt-vitest": "0.60.11",
|
|
70
70
|
"@sveltejs/package": "^2.5.8",
|
|
71
71
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
72
72
|
"@types/node": "24.13.6",
|