@happyvertical/smrt-users 0.57.45 → 0.57.47

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-users",
5
- "packageVersion": "0.57.45",
5
+ "packageVersion": "0.57.47",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-users:AccessRequestCollection": {
8
8
  "name": "accessrequestcollection",
@@ -79,6 +79,12 @@
79
79
  "extendsTypeArg": "AccessRequest",
80
80
  "exportName": "AccessRequestCollection",
81
81
  "collectionExportName": "AccessRequestCollectionCollection",
82
+ "collectionOf": "@happyvertical/smrt-users:AccessRequest",
83
+ "inheritedExposure": [
84
+ "api",
85
+ "mcp",
86
+ "cli"
87
+ ],
82
88
  "schema": {
83
89
  "tableName": "access_requests",
84
90
  "ddl": "CREATE TABLE IF NOT EXISTS \"access_requests\" (\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 \"email\" TEXT NOT NULL DEFAULT '',\n \"name\" TEXT,\n \"status\" TEXT,\n \"source\" TEXT DEFAULT '',\n \"request_context\" TEXT DEFAULT '{}',\n \"note\" TEXT,\n \"requested_at\" TIMESTAMP,\n \"decided_at\" TIMESTAMP,\n \"decided_by\" TEXT,\n \"resulting_user_id\" TEXT,\n \"tenant_hint\" TEXT\n);",
@@ -261,6 +267,12 @@
261
267
  "extendsTypeArg": "UsersCliAuthApproveLimit",
262
268
  "exportName": "UsersCliAuthApproveLimitCollection",
263
269
  "collectionExportName": "UsersCliAuthApproveLimitCollectionCollection",
270
+ "collectionOf": "@happyvertical/smrt-users:UsersCliAuthApproveLimit",
271
+ "inheritedExposure": [
272
+ "api",
273
+ "mcp",
274
+ "cli"
275
+ ],
264
276
  "schema": {
265
277
  "tableName": "users_cli_auth_approve_limits",
266
278
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_cli_auth_approve_limits\" (\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 \"user_id\" UUID NOT NULL UNIQUE,\n \"attempt_count\" INTEGER NOT NULL DEFAULT 0,\n \"window_started_at\" TIMESTAMP NOT NULL\n);",
@@ -431,6 +443,12 @@
431
443
  "extendsTypeArg": "UsersCliAuthRequest",
432
444
  "exportName": "UsersCliAuthRequestCollection",
433
445
  "collectionExportName": "UsersCliAuthRequestCollectionCollection",
446
+ "collectionOf": "@happyvertical/smrt-users:UsersCliAuthRequest",
447
+ "inheritedExposure": [
448
+ "api",
449
+ "mcp",
450
+ "cli"
451
+ ],
434
452
  "schema": {
435
453
  "tableName": "users_cli_auth_requests",
436
454
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_cli_auth_requests\" (\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 \"user_code\" TEXT NOT NULL UNIQUE,\n \"device_code_hash\" TEXT NOT NULL UNIQUE,\n \"status\" TEXT,\n \"user_id\" UUID,\n \"tenant_id\" UUID,\n \"session_id\" UUID,\n \"expires_at\" TIMESTAMP,\n \"approved_at\" TIMESTAMP\n);",
@@ -630,6 +648,12 @@
630
648
  "extendsTypeArg": "Group",
631
649
  "exportName": "GroupCollection",
632
650
  "collectionExportName": "GroupCollectionCollection",
651
+ "collectionOf": "@happyvertical/smrt-users:Group",
652
+ "inheritedExposure": [
653
+ "api",
654
+ "mcp",
655
+ "cli"
656
+ ],
633
657
  "schema": {
634
658
  "tableName": "groups",
635
659
  "ddl": "CREATE TABLE IF NOT EXISTS \"groups\" (\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 \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT ''\n);",
@@ -872,6 +896,12 @@
872
896
  "extendsTypeArg": "GroupMember",
873
897
  "exportName": "GroupMemberCollection",
874
898
  "collectionExportName": "GroupMemberCollectionCollection",
899
+ "collectionOf": "@happyvertical/smrt-users:GroupMember",
900
+ "inheritedExposure": [
901
+ "api",
902
+ "mcp",
903
+ "cli"
904
+ ],
875
905
  "schema": {
876
906
  "tableName": "group_members",
877
907
  "ddl": "CREATE TABLE IF NOT EXISTS \"group_members\" (\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 \"group_id\" UUID NOT NULL,\n \"user_id\" UUID NOT NULL\n);",
@@ -1093,6 +1123,12 @@
1093
1123
  "extendsTypeArg": "GroupRole",
1094
1124
  "exportName": "GroupRoleCollection",
1095
1125
  "collectionExportName": "GroupRoleCollectionCollection",
1126
+ "collectionOf": "@happyvertical/smrt-users:GroupRole",
1127
+ "inheritedExposure": [
1128
+ "api",
1129
+ "mcp",
1130
+ "cli"
1131
+ ],
1096
1132
  "schema": {
1097
1133
  "tableName": "group_roles",
1098
1134
  "ddl": "CREATE TABLE IF NOT EXISTS \"group_roles\" (\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 \"group_id\" UUID NOT NULL,\n \"role_id\" UUID NOT NULL\n);",
@@ -1271,6 +1307,12 @@
1271
1307
  "extendsTypeArg": "UsersLoginAttempt",
1272
1308
  "exportName": "UsersLoginAttemptCollection",
1273
1309
  "collectionExportName": "UsersLoginAttemptCollectionCollection",
1310
+ "collectionOf": "@happyvertical/smrt-users:UsersLoginAttempt",
1311
+ "inheritedExposure": [
1312
+ "api",
1313
+ "mcp",
1314
+ "cli"
1315
+ ],
1274
1316
  "schema": {
1275
1317
  "tableName": "users_login_attempts",
1276
1318
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_login_attempts\" (\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 \"limiter_key\" TEXT NOT NULL UNIQUE,\n \"scope\" TEXT NOT NULL,\n \"attempt_count\" INTEGER NOT NULL DEFAULT 0,\n \"window_started_at\" TIMESTAMP NOT NULL,\n \"failure_streak\" INTEGER NOT NULL DEFAULT 0,\n \"locked_until\" TIMESTAMP,\n \"last_failed_at\" TIMESTAMP,\n \"retain_until\" TIMESTAMP NOT NULL\n);",
@@ -1417,6 +1459,12 @@
1417
1459
  "extendsTypeArg": "UsersLoginAuditEvent",
1418
1460
  "exportName": "UsersLoginAuditEventCollection",
1419
1461
  "collectionExportName": "UsersLoginAuditEventCollectionCollection",
1462
+ "collectionOf": "@happyvertical/smrt-users:UsersLoginAuditEvent",
1463
+ "inheritedExposure": [
1464
+ "api",
1465
+ "mcp",
1466
+ "cli"
1467
+ ],
1420
1468
  "schema": {
1421
1469
  "tableName": "users_login_audit_events",
1422
1470
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_login_audit_events\" (\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 \"kind\" TEXT NOT NULL,\n \"outcome\" TEXT NOT NULL,\n \"subject_key_hash\" TEXT,\n \"source_key_hash\" TEXT,\n \"retry_after_seconds\" INTEGER,\n \"occurred_at\" TIMESTAMP NOT NULL,\n \"metadata\" TEXT\n);",
@@ -1609,6 +1657,12 @@
1609
1657
  "extendsTypeArg": "UsersMagicLinkToken",
1610
1658
  "exportName": "UsersMagicLinkTokenCollection",
1611
1659
  "collectionExportName": "UsersMagicLinkTokenCollectionCollection",
1660
+ "collectionOf": "@happyvertical/smrt-users:UsersMagicLinkToken",
1661
+ "inheritedExposure": [
1662
+ "api",
1663
+ "mcp",
1664
+ "cli"
1665
+ ],
1612
1666
  "schema": {
1613
1667
  "tableName": "users_magic_link_tokens",
1614
1668
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_magic_link_tokens\" (\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 \"nonce\" TEXT NOT NULL UNIQUE DEFAULT '',\n \"email\" TEXT DEFAULT '',\n \"used\" BOOLEAN DEFAULT FALSE,\n \"expires_at\" TIMESTAMP\n);",
@@ -1826,6 +1880,12 @@
1826
1880
  "extendsTypeArg": "Membership",
1827
1881
  "exportName": "MembershipCollection",
1828
1882
  "collectionExportName": "MembershipCollectionCollection",
1883
+ "collectionOf": "@happyvertical/smrt-users:Membership",
1884
+ "inheritedExposure": [
1885
+ "api",
1886
+ "mcp",
1887
+ "cli"
1888
+ ],
1829
1889
  "schema": {
1830
1890
  "tableName": "memberships",
1831
1891
  "ddl": "CREATE TABLE IF NOT EXISTS \"memberships\" (\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 \"user_id\" UUID NOT NULL,\n \"tenant_id\" UUID NOT NULL,\n \"role_id\" UUID NOT NULL,\n \"status\" TEXT\n);",
@@ -2123,6 +2183,12 @@
2123
2183
  "extendsTypeArg": "MembershipOverride",
2124
2184
  "exportName": "MembershipOverrideCollection",
2125
2185
  "collectionExportName": "MembershipOverrideCollectionCollection",
2186
+ "collectionOf": "@happyvertical/smrt-users:MembershipOverride",
2187
+ "inheritedExposure": [
2188
+ "api",
2189
+ "mcp",
2190
+ "cli"
2191
+ ],
2126
2192
  "schema": {
2127
2193
  "tableName": "membership_overrides",
2128
2194
  "ddl": "CREATE TABLE IF NOT EXISTS \"membership_overrides\" (\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 \"membership_id\" UUID NOT NULL,\n \"permission_id\" UUID NOT NULL,\n \"effect\" TEXT\n);",
@@ -2253,6 +2319,12 @@
2253
2319
  "extendsTypeArg": "UsersOAuthClient",
2254
2320
  "exportName": "UsersOAuthClientCollection",
2255
2321
  "collectionExportName": "UsersOAuthClientCollectionCollection",
2322
+ "collectionOf": "@happyvertical/smrt-users:UsersOAuthClient",
2323
+ "inheritedExposure": [
2324
+ "api",
2325
+ "mcp",
2326
+ "cli"
2327
+ ],
2256
2328
  "schema": {
2257
2329
  "tableName": "users_oauth_clients",
2258
2330
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_oauth_clients\" (\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 \"client_id\" TEXT NOT NULL UNIQUE,\n \"redirect_uris\" TEXT,\n \"allowed_scopes\" TEXT,\n \"token_endpoint_auth_method\" TEXT DEFAULT 'none',\n \"secret_hash\" TEXT,\n \"allowed_resources\" TEXT\n);",
@@ -2405,6 +2477,12 @@
2405
2477
  "extendsTypeArg": "UsersOAuthAuthorizationCode",
2406
2478
  "exportName": "UsersOAuthAuthorizationCodeCollection",
2407
2479
  "collectionExportName": "UsersOAuthAuthorizationCodeCollectionCollection",
2480
+ "collectionOf": "@happyvertical/smrt-users:UsersOAuthAuthorizationCode",
2481
+ "inheritedExposure": [
2482
+ "api",
2483
+ "mcp",
2484
+ "cli"
2485
+ ],
2408
2486
  "schema": {
2409
2487
  "tableName": "users_oauth_authorization_codes",
2410
2488
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_oauth_authorization_codes\" (\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 \"authorization_id\" TEXT,\n \"code_hash\" TEXT NOT NULL UNIQUE,\n \"client_id\" TEXT,\n \"subject\" TEXT,\n \"tenant_id\" TEXT,\n \"claims\" TEXT,\n \"redirect_uri\" TEXT,\n \"scopes\" TEXT,\n \"resource\" TEXT,\n \"code_challenge\" TEXT,\n \"expires_at\" TIMESTAMP,\n \"consumed_at\" TIMESTAMP\n);",
@@ -2632,6 +2710,12 @@
2632
2710
  "extendsTypeArg": "UsersOAuthRefreshGrant",
2633
2711
  "exportName": "UsersOAuthRefreshGrantCollection",
2634
2712
  "collectionExportName": "UsersOAuthRefreshGrantCollectionCollection",
2713
+ "collectionOf": "@happyvertical/smrt-users:UsersOAuthRefreshGrant",
2714
+ "inheritedExposure": [
2715
+ "api",
2716
+ "mcp",
2717
+ "cli"
2718
+ ],
2635
2719
  "schema": {
2636
2720
  "tableName": "users_oauth_refresh_grants",
2637
2721
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_oauth_refresh_grants\" (\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 \"authorization_id\" TEXT,\n \"token_hash\" TEXT NOT NULL UNIQUE,\n \"family_id\" TEXT,\n \"client_id\" TEXT,\n \"subject\" TEXT,\n \"tenant_id\" TEXT,\n \"claims\" TEXT,\n \"scopes\" TEXT,\n \"resource\" TEXT,\n \"expires_at\" TIMESTAMP,\n \"consumed_at\" TIMESTAMP,\n \"revoked_at\" TIMESTAMP\n);",
@@ -2824,6 +2908,12 @@
2824
2908
  "extendsTypeArg": "UsersOAuthAccessTokenRevocation",
2825
2909
  "exportName": "UsersOAuthAccessTokenRevocationCollection",
2826
2910
  "collectionExportName": "UsersOAuthAccessTokenRevocationCollectionCollection",
2911
+ "collectionOf": "@happyvertical/smrt-users:UsersOAuthAccessTokenRevocation",
2912
+ "inheritedExposure": [
2913
+ "api",
2914
+ "mcp",
2915
+ "cli"
2916
+ ],
2827
2917
  "schema": {
2828
2918
  "tableName": "users_oauth_access_token_revocations",
2829
2919
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_oauth_access_token_revocations\" (\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 \"jti\" TEXT NOT NULL UNIQUE,\n \"expires_at\" TIMESTAMP\n);",
@@ -2914,6 +3004,12 @@
2914
3004
  "extendsTypeArg": "UsersOAuthAuthorization",
2915
3005
  "exportName": "UsersOAuthAuthorizationCollection",
2916
3006
  "collectionExportName": "UsersOAuthAuthorizationCollectionCollection",
3007
+ "collectionOf": "@happyvertical/smrt-users:UsersOAuthAuthorization",
3008
+ "inheritedExposure": [
3009
+ "api",
3010
+ "mcp",
3011
+ "cli"
3012
+ ],
2917
3013
  "schema": {
2918
3014
  "tableName": "users_oauth_authorizations",
2919
3015
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_oauth_authorizations\" (\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 \"subject\" TEXT,\n \"session_id\" TEXT,\n \"client_id\" TEXT,\n \"tenant_id\" TEXT,\n \"scopes\" TEXT,\n \"permission_ceiling\" TEXT,\n \"resource\" TEXT,\n \"revoked_at\" TIMESTAMP\n);",
@@ -3081,6 +3177,12 @@
3081
3177
  "extendsTypeArg": "UsersOAuthRefreshFamily",
3082
3178
  "exportName": "UsersOAuthRefreshFamilyCollection",
3083
3179
  "collectionExportName": "UsersOAuthRefreshFamilyCollectionCollection",
3180
+ "collectionOf": "@happyvertical/smrt-users:UsersOAuthRefreshFamily",
3181
+ "inheritedExposure": [
3182
+ "api",
3183
+ "mcp",
3184
+ "cli"
3185
+ ],
3084
3186
  "schema": {
3085
3187
  "tableName": "users_oauth_refresh_families",
3086
3188
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_oauth_refresh_families\" (\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 \"authorization_id\" TEXT,\n \"revoked_at\" TIMESTAMP\n);",
@@ -3208,6 +3310,12 @@
3208
3310
  "extendsTypeArg": "UsersPasskeyChallenge",
3209
3311
  "exportName": "UsersPasskeyChallengeCollection",
3210
3312
  "collectionExportName": "UsersPasskeyChallengeCollectionCollection",
3313
+ "collectionOf": "@happyvertical/smrt-users:UsersPasskeyChallenge",
3314
+ "inheritedExposure": [
3315
+ "api",
3316
+ "mcp",
3317
+ "cli"
3318
+ ],
3211
3319
  "schema": {
3212
3320
  "tableName": "users_passkey_challenges",
3213
3321
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_passkey_challenges\" (\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 \"challenge_hash\" TEXT NOT NULL UNIQUE,\n \"purpose\" TEXT NOT NULL,\n \"expires_at\" TIMESTAMP NOT NULL\n);",
@@ -3470,6 +3578,12 @@
3470
3578
  "extendsTypeArg": "UsersPasskeyCredential",
3471
3579
  "exportName": "UsersPasskeyCredentialCollection",
3472
3580
  "collectionExportName": "UsersPasskeyCredentialCollectionCollection",
3581
+ "collectionOf": "@happyvertical/smrt-users:UsersPasskeyCredential",
3582
+ "inheritedExposure": [
3583
+ "api",
3584
+ "mcp",
3585
+ "cli"
3586
+ ],
3473
3587
  "schema": {
3474
3588
  "tableName": "users_passkey_credentials",
3475
3589
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_passkey_credentials\" (\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 \"user_id\" UUID NOT NULL,\n \"credential_id\" TEXT NOT NULL UNIQUE,\n \"public_key\" TEXT NOT NULL,\n \"sign_count\" INTEGER NOT NULL DEFAULT 0,\n \"transports\" TEXT,\n \"name\" TEXT NOT NULL,\n \"aaguid\" TEXT,\n \"backed_up\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"device_type\" TEXT,\n \"last_used_at\" TIMESTAMP,\n \"created_by\" TEXT\n);",
@@ -3733,6 +3847,12 @@
3733
3847
  "extendsTypeArg": "UsersPasswordCredential",
3734
3848
  "exportName": "UsersPasswordCredentialCollection",
3735
3849
  "collectionExportName": "UsersPasswordCredentialCollectionCollection",
3850
+ "collectionOf": "@happyvertical/smrt-users:UsersPasswordCredential",
3851
+ "inheritedExposure": [
3852
+ "api",
3853
+ "mcp",
3854
+ "cli"
3855
+ ],
3736
3856
  "schema": {
3737
3857
  "tableName": "users_password_credentials",
3738
3858
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_password_credentials\" (\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 \"user_id\" UUID NOT NULL UNIQUE,\n \"password_hash\" TEXT NOT NULL,\n \"version\" INTEGER NOT NULL DEFAULT 1,\n \"must_change\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"rotated_at\" TIMESTAMP,\n \"rotated_by\" TEXT\n);",
@@ -3929,6 +4049,12 @@
3929
4049
  "extendsTypeArg": "Permission",
3930
4050
  "exportName": "PermissionCollection",
3931
4051
  "collectionExportName": "PermissionCollectionCollection",
4052
+ "collectionOf": "@happyvertical/smrt-users:Permission",
4053
+ "inheritedExposure": [
4054
+ "api",
4055
+ "mcp",
4056
+ "cli"
4057
+ ],
3932
4058
  "schema": {
3933
4059
  "tableName": "permissions",
3934
4060
  "ddl": "CREATE TABLE IF NOT EXISTS \"permissions\" (\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 \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"category\" TEXT DEFAULT ''\n);",
@@ -4064,6 +4190,12 @@
4064
4190
  "extendsTypeArg": "UsersPinCredential",
4065
4191
  "exportName": "UsersPinCredentialCollection",
4066
4192
  "collectionExportName": "UsersPinCredentialCollectionCollection",
4193
+ "collectionOf": "@happyvertical/smrt-users:UsersPinCredential",
4194
+ "inheritedExposure": [
4195
+ "api",
4196
+ "mcp",
4197
+ "cli"
4198
+ ],
4067
4199
  "schema": {
4068
4200
  "tableName": "users_pin_credentials",
4069
4201
  "ddl": "CREATE TABLE IF NOT EXISTS \"users_pin_credentials\" (\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 \"user_id\" UUID NOT NULL UNIQUE,\n \"pin_hash\" TEXT NOT NULL,\n \"version\" INTEGER NOT NULL DEFAULT 1,\n \"must_reset\" BOOLEAN NOT NULL DEFAULT FALSE,\n \"rotated_at\" TIMESTAMP,\n \"rotated_by\" TEXT\n);",
@@ -4224,6 +4356,12 @@
4224
4356
  "extendsTypeArg": "ResourceGrant",
4225
4357
  "exportName": "ResourceGrantCollection",
4226
4358
  "collectionExportName": "ResourceGrantCollectionCollection",
4359
+ "collectionOf": "@happyvertical/smrt-users:ResourceGrant",
4360
+ "inheritedExposure": [
4361
+ "api",
4362
+ "mcp",
4363
+ "cli"
4364
+ ],
4227
4365
  "schema": {
4228
4366
  "tableName": "resource_grants",
4229
4367
  "ddl": "CREATE TABLE IF NOT EXISTS \"resource_grants\" (\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 \"user_id\" UUID NOT NULL,\n \"resource_type\" TEXT,\n \"resource_id\" TEXT,\n \"permission\" TEXT,\n \"effect\" TEXT,\n \"can_delegate\" BOOLEAN DEFAULT FALSE,\n \"parent_grant_id\" UUID,\n \"revoked_at\" TEXT\n);",
@@ -4474,6 +4612,12 @@
4474
4612
  "extendsTypeArg": "Role",
4475
4613
  "exportName": "RoleCollection",
4476
4614
  "collectionExportName": "RoleCollectionCollection",
4615
+ "collectionOf": "@happyvertical/smrt-users:Role",
4616
+ "inheritedExposure": [
4617
+ "api",
4618
+ "mcp",
4619
+ "cli"
4620
+ ],
4477
4621
  "schema": {
4478
4622
  "tableName": "roles",
4479
4623
  "ddl": "CREATE TABLE IF NOT EXISTS \"roles\" (\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,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"is_system\" BOOLEAN DEFAULT FALSE,\n \"inherits_to_descendants\" BOOLEAN DEFAULT FALSE\n);",
@@ -4729,6 +4873,12 @@
4729
4873
  "extendsTypeArg": "RolePermission",
4730
4874
  "exportName": "RolePermissionCollection",
4731
4875
  "collectionExportName": "RolePermissionCollectionCollection",
4876
+ "collectionOf": "@happyvertical/smrt-users:RolePermission",
4877
+ "inheritedExposure": [
4878
+ "api",
4879
+ "mcp",
4880
+ "cli"
4881
+ ],
4732
4882
  "schema": {
4733
4883
  "tableName": "role_permissions",
4734
4884
  "ddl": "CREATE TABLE IF NOT EXISTS \"role_permissions\" (\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 \"role_id\" UUID NOT NULL,\n \"permission_id\" UUID NOT NULL\n);",
@@ -5123,6 +5273,12 @@
5123
5273
  "extendsTypeArg": "Session",
5124
5274
  "exportName": "SessionCollection",
5125
5275
  "collectionExportName": "SessionCollectionCollection",
5276
+ "collectionOf": "@happyvertical/smrt-users:Session",
5277
+ "inheritedExposure": [
5278
+ "api",
5279
+ "mcp",
5280
+ "cli"
5281
+ ],
5126
5282
  "schema": {
5127
5283
  "tableName": "sessions",
5128
5284
  "ddl": "CREATE TABLE IF NOT EXISTS \"sessions\" (\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 \"user_id\" UUID,\n \"tenant_id\" UUID,\n \"status\" TEXT,\n \"expires_at\" TIMESTAMP,\n \"user_agent\" TEXT DEFAULT '',\n \"ip_address\" TEXT DEFAULT '',\n \"last_accessed_at\" TIMESTAMP,\n \"data\" JSON DEFAULT '{}',\n \"auth_method\" TEXT,\n \"parent_session_id\" UUID\n);",
@@ -5639,6 +5795,12 @@
5639
5795
  "extendsTypeArg": "Tenant",
5640
5796
  "exportName": "TenantCollection",
5641
5797
  "collectionExportName": "TenantCollectionCollection",
5798
+ "collectionOf": "@happyvertical/smrt-users:Tenant",
5799
+ "inheritedExposure": [
5800
+ "api",
5801
+ "mcp",
5802
+ "cli"
5803
+ ],
5642
5804
  "schema": {
5643
5805
  "tableName": "tenants",
5644
5806
  "ddl": "CREATE TABLE IF NOT EXISTS \"tenants\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"name\" TEXT DEFAULT '',\n \"status\" TEXT,\n \"description\" TEXT DEFAULT '',\n \"parent_tenant_id\" UUID,\n \"hierarchy_level\" INTEGER DEFAULT 0,\n \"hierarchy_path\" TEXT DEFAULT '',\n \"cascade_permissions\" BOOLEAN DEFAULT TRUE,\n \"inherit_permissions\" BOOLEAN DEFAULT TRUE\n);",
@@ -5842,6 +6004,12 @@
5842
6004
  "extendsTypeArg": "TenantIntegration",
5843
6005
  "exportName": "TenantIntegrationCollection",
5844
6006
  "collectionExportName": "TenantIntegrationCollectionCollection",
6007
+ "collectionOf": "@happyvertical/smrt-users:TenantIntegration",
6008
+ "inheritedExposure": [
6009
+ "api",
6010
+ "mcp",
6011
+ "cli"
6012
+ ],
5845
6013
  "schema": {
5846
6014
  "tableName": "tenant_integrations",
5847
6015
  "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);",
@@ -6242,6 +6410,12 @@
6242
6410
  "extendsTypeArg": "TenantPermissionOverride",
6243
6411
  "exportName": "TenantPermissionOverrideCollection",
6244
6412
  "collectionExportName": "TenantPermissionOverrideCollectionCollection",
6413
+ "collectionOf": "@happyvertical/smrt-users:TenantPermissionOverride",
6414
+ "inheritedExposure": [
6415
+ "api",
6416
+ "mcp",
6417
+ "cli"
6418
+ ],
6245
6419
  "schema": {
6246
6420
  "tableName": "tenant_permission_overrides",
6247
6421
  "ddl": "CREATE TABLE IF NOT EXISTS \"tenant_permission_overrides\" (\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 \"permission_id\" UUID NOT NULL,\n \"effect\" TEXT\n);",
@@ -6511,6 +6685,12 @@
6511
6685
  "extendsTypeArg": "User",
6512
6686
  "exportName": "UserCollection",
6513
6687
  "collectionExportName": "UserCollectionCollection",
6688
+ "collectionOf": "@happyvertical/smrt-users:User",
6689
+ "inheritedExposure": [
6690
+ "api",
6691
+ "mcp",
6692
+ "cli"
6693
+ ],
6514
6694
  "schema": {
6515
6695
  "tableName": "users",
6516
6696
  "ddl": "CREATE TABLE IF NOT EXISTS \"users\" (\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 \"profile_id\" UUID UNIQUE,\n \"email\" TEXT DEFAULT '',\n \"email_key\" TEXT UNIQUE,\n \"username\" TEXT,\n \"username_key\" TEXT UNIQUE,\n \"status\" TEXT,\n \"last_login_at\" TIMESTAMP\n);",
@@ -8003,6 +8183,7 @@
8003
8183
  "extendsTypeArg": "MemberClass",
8004
8184
  "exportName": "MemberClassCollection",
8005
8185
  "collectionExportName": "MemberClassCollectionCollection",
8186
+ "collectionOf": "@happyvertical/smrt-users:MemberClass",
8006
8187
  "schema": {
8007
8188
  "tableName": "member_classes",
8008
8189
  "ddl": "CREATE TABLE IF NOT EXISTS \"member_classes\" (\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 \"key\" TEXT,\n \"name\" TEXT,\n \"description\" TEXT,\n \"policy_metadata\" JSON\n);",
@@ -8112,6 +8293,7 @@
8112
8293
  "extendsTypeArg": "LegalMember",
8113
8294
  "exportName": "LegalMemberCollection",
8114
8295
  "collectionExportName": "LegalMemberCollectionCollection",
8296
+ "collectionOf": "@happyvertical/smrt-users:LegalMember",
8115
8297
  "schema": {
8116
8298
  "tableName": "legal_members",
8117
8299
  "ddl": "CREATE TABLE IF NOT EXISTS \"legal_members\" (\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 \"member_class_id\" UUID,\n \"kind\" TEXT,\n \"display_name\" TEXT,\n \"user_id\" UUID,\n \"profile_id\" UUID,\n \"external_party_ref\" TEXT,\n \"joined_on\" TEXT,\n \"left_on\" TEXT,\n \"status\" TEXT\n);",
@@ -8286,6 +8468,7 @@
8286
8468
  "extendsTypeArg": "LegalMemberStatusHistory",
8287
8469
  "exportName": "LegalMemberStatusHistoryCollection",
8288
8470
  "collectionExportName": "LegalMemberStatusHistoryCollectionCollection",
8471
+ "collectionOf": "@happyvertical/smrt-users:LegalMemberStatusHistory",
8289
8472
  "schema": {
8290
8473
  "tableName": "legal_member_status_history",
8291
8474
  "ddl": "CREATE TABLE IF NOT EXISTS \"legal_member_status_history\" (\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 \"member_id\" UUID,\n \"status\" TEXT,\n \"effective_on\" TEXT,\n \"sequence\" INTEGER,\n \"reason\" TEXT,\n \"actor_ref\" TEXT\n);",
@@ -8418,6 +8601,7 @@
8418
8601
  "extendsTypeArg": "LegalMemberReference",
8419
8602
  "exportName": "LegalMemberReferenceCollection",
8420
8603
  "collectionExportName": "LegalMemberReferenceCollectionCollection",
8604
+ "collectionOf": "@happyvertical/smrt-users:LegalMemberReference",
8421
8605
  "schema": {
8422
8606
  "tableName": "legal_member_references",
8423
8607
  "ddl": "CREATE TABLE IF NOT EXISTS \"legal_member_references\" (\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 \"member_id\" UUID,\n \"kind\" TEXT,\n \"source_type\" TEXT,\n \"source_id\" TEXT,\n \"authoritative\" BOOLEAN,\n \"effective_from\" TEXT,\n \"effective_to\" TEXT,\n \"revokes_id\" UUID\n);",
@@ -8573,6 +8757,7 @@
8573
8757
  "extendsTypeArg": "MemberOfficerAppointment",
8574
8758
  "exportName": "MemberOfficerAppointmentCollection",
8575
8759
  "collectionExportName": "MemberOfficerAppointmentCollectionCollection",
8760
+ "collectionOf": "@happyvertical/smrt-users:MemberOfficerAppointment",
8576
8761
  "schema": {
8577
8762
  "tableName": "member_officer_appointments",
8578
8763
  "ddl": "CREATE TABLE IF NOT EXISTS \"member_officer_appointments\" (\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 \"member_id\" UUID,\n \"role\" TEXT,\n \"effective_from\" TEXT,\n \"effective_to\" TEXT,\n \"authority\" JSON\n);",
@@ -8700,6 +8885,7 @@
8700
8885
  "extendsTypeArg": "MemberEligibilitySnapshot",
8701
8886
  "exportName": "MemberEligibilitySnapshotCollection",
8702
8887
  "collectionExportName": "MemberEligibilitySnapshotCollectionCollection",
8888
+ "collectionOf": "@happyvertical/smrt-users:MemberEligibilitySnapshot",
8703
8889
  "schema": {
8704
8890
  "tableName": "member_eligibility_snapshots",
8705
8891
  "ddl": "CREATE TABLE IF NOT EXISTS \"member_eligibility_snapshots\" (\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 \"member_id\" UUID,\n \"record_date\" TEXT,\n \"eligible\" BOOLEAN,\n \"reason\" TEXT,\n \"evidence\" JSON\n);",
@@ -0,0 +1,47 @@
1
+ import type { SmrtClassOptions } from '@happyvertical/smrt-core';
2
+ import type { LoginAttemptLimiter } from './LoginAttemptLimiter.js';
3
+ import { type MailboxAuthenticationDelivery } from './MailboxAuthenticationService.js';
4
+ /** Caller transaction, trusted signing secret and independent root request budget. */
5
+ export interface MailboxEnrollmentServiceOptions extends SmrtClassOptions {
6
+ transaction: 'caller';
7
+ secret: string;
8
+ /** Required for request; independently persisted outside caller rollback. */
9
+ loginLimiter?: LoginAttemptLimiter;
10
+ }
11
+ /** Verified canonical active global identity. No membership or session is minted. */
12
+ export interface EnrolledMailbox {
13
+ userId: string;
14
+ profileId: string;
15
+ email: string;
16
+ }
17
+ /**
18
+ * Host recomputes binding from immutable authorized source data on both calls.
19
+ * Never accept a client-selected binding as authorization. Delivery must reject
20
+ * on failure; delivered proof from a rolled-back request cannot authenticate.
21
+ * Completion and all destination writes must share the caller transaction.
22
+ */
23
+ export declare class MailboxEnrollmentService {
24
+ private readonly options;
25
+ private readonly auth;
26
+ private constructor();
27
+ /** Bind an initialized caller executor; never opens a nested transaction. */
28
+ static create(options: MailboxEnrollmentServiceOptions): Promise<MailboxEnrollmentService>;
29
+ /** Mail a proof only; never creates a Person, User, membership or session. */
30
+ request(input: {
31
+ email: string;
32
+ binding: string;
33
+ sourceKey: string;
34
+ deliver: MailboxAuthenticationDelivery;
35
+ }): Promise<{
36
+ requested: true;
37
+ }>;
38
+ /** Verify exact source and actor, then consume and provision atomically. */
39
+ authenticate(input: {
40
+ token: string;
41
+ binding: string;
42
+ expectedUserId?: string;
43
+ sessionId?: string;
44
+ }): Promise<EnrolledMailbox>;
45
+ private links;
46
+ }
47
+ //# sourceMappingURL=MailboxEnrollmentService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MailboxEnrollmentService.d.ts","sourceRoot":"","sources":["../../src/services/MailboxEnrollmentService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAOjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,EAEL,KAAK,6BAA6B,EAEnC,MAAM,mCAAmC,CAAC;AAE3C,sFAAsF;AACtF,MAAM,WAAW,+BAAgC,SAAQ,gBAAgB;IACvE,WAAW,EAAE,QAAQ,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AACD,qFAAqF;AACrF,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;GAKG;AACH,qBAAa,wBAAwB;IAEjC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFvB,OAAO;IAQP,6EAA6E;WAChE,MAAM,CAAC,OAAO,EAAE,+BAA+B;IAe5D,8EAA8E;IACxE,OAAO,CAAC,KAAK,EAAE;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,6BAA6B,CAAC;KACxC,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,IAAI,CAAA;KAAE,CAAC;IAkBhC,4EAA4E;IACtE,YAAY,CAAC,KAAK,EAAE;QACxB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,eAAe,CAAC;YAgDd,KAAK;CAQpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"TenantInvitationService.d.ts","sourceRoot":"","sources":["../../src/services/TenantInvitationService.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"TenantInvitationService.d.ts","sourceRoot":"","sources":["../../src/services/TenantInvitationService.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,15 @@
1
+ import { type SmrtClassOptions } from '@happyvertical/smrt-core';
2
+ import { UserStatus } from '../types/index.js';
3
+ /** Never adopts a matching unowned Profile or revives an unavailable User. */
4
+ export declare function provisionCanonicalMailboxIdentity(options: SmrtClassOptions, input: {
5
+ email: string;
6
+ status: UserStatus.ACTIVE | UserStatus.PENDING;
7
+ allowPending: boolean;
8
+ lock?: boolean;
9
+ existingProfilePolicy?: 'canonical-global' | 'owned-person';
10
+ refuse: (message: string) => Error;
11
+ }): Promise<{
12
+ user: import("../index.js").User;
13
+ profileId: string;
14
+ }>;
15
+ //# sourceMappingURL=canonical-mailbox-identity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonical-mailbox-identity.d.ts","sourceRoot":"","sources":["../../src/services/canonical-mailbox-identity.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAC;AAYlC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,8EAA8E;AAC9E,wBAAsB,iCAAiC,CACrD,OAAO,EAAE,gBAAgB,EACzB,KAAK,EAAE;IACL,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qBAAqB,CAAC,EAAE,kBAAkB,GAAG,cAAc,CAAC;IAC5D,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,KAAK,CAAC;CACpC;;;GAkEF"}
@@ -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.57.45",
6
+ "packageVersion": "0.57.47",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "31d7d13688b8a9db85610c56817ca292c9677cdec825d5801f7208719cabccbe",
11
- "packageJson": "6dce62b087c7e223c7c210d51e377cf71138980fb16b7c40e05b9bffc63a6053",
10
+ "manifest": "04c9cdbd4563887aa3dab0c3d3603c01f27f576726931010caaa63862602c2ae",
11
+ "packageJson": "a170fba4281a5592c49ffa6bba32bd1bd89989ebac56a80128847403355e9f41",
12
12
  "agents": "0dd40a4fc4386d603822766cdcff52a922577ab5cb2af81d466a209b7564214b",
13
13
  "moduleDoc:agents/permissions.md": "02b2f03f0e057721369d9c693a624a6fdb3df4935401531a4373ff18229a64be",
14
14
  "moduleDoc:agents/oidc-provisioning.md": "b73f3fdaf61136720132a614c7e14237b7bd35f7bf5d43eabb29f565485803b9",
package/dist/sveltekit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as LoginRateLimitError, d as PasswordCredentialForbiddenError, f as PasswordCredentialService, g as SessionService, p as PasswordPolicyError, u as PasswordCredentialError } from "./chunks/PasswordCredentialService-DHJNKEeJ.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-CAA9Dtgd.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-BrYH0wjd.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.45",
3
+ "version": "0.57.47",
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.0",
55
- "@happyvertical/logger": "^0.111.0",
56
- "@happyvertical/smrt-config": "0.57.45",
57
- "@happyvertical/smrt-core": "0.57.45",
58
- "@happyvertical/smrt-mobile-contract": "0.57.45",
59
- "@happyvertical/smrt-profiles": "0.57.45",
60
- "@happyvertical/smrt-tenancy": "0.57.45",
61
- "@happyvertical/smrt-types": "0.57.45",
62
- "@happyvertical/smrt-ui": "0.57.45",
63
- "@happyvertical/sql": "^0.111.0",
54
+ "@happyvertical/auth": "^0.111.3",
55
+ "@happyvertical/logger": "^0.111.3",
56
+ "@happyvertical/smrt-config": "0.57.47",
57
+ "@happyvertical/smrt-core": "0.57.47",
58
+ "@happyvertical/smrt-mobile-contract": "0.57.47",
59
+ "@happyvertical/smrt-profiles": "0.57.47",
60
+ "@happyvertical/smrt-tenancy": "0.57.47",
61
+ "@happyvertical/smrt-types": "0.57.47",
62
+ "@happyvertical/smrt-ui": "0.57.47",
63
+ "@happyvertical/sql": "^0.111.3",
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.45",
69
+ "@happyvertical/smrt-vitest": "0.57.47",
70
70
  "@sveltejs/package": "^2.5.8",
71
71
  "@sveltejs/vite-plugin-svelte": "^7.3.0",
72
72
  "@types/node": "24.13.6",
@@ -103,7 +103,7 @@
103
103
  "clean": "rm -rf dist",
104
104
  "dev": "npm run build:watch",
105
105
  "test": "vitest run",
106
- "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 src/__tests__/family-invitation.test.ts src/__tests__/mailbox-request-reservation.test.ts",
106
+ "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 src/__tests__/family-invitation.test.ts src/__tests__/mailbox-request-reservation.test.ts src/__tests__/mailbox-enrollment.test.ts",
107
107
  "typecheck": "tsc --noEmit && node ../../scripts/svelte-check-a11y.mjs --tsconfig ./tsconfig.svelte.json",
108
108
  "check": "pnpm exec svelte-check --tsconfig ./tsconfig.svelte.json",
109
109
  "verify:pack": "node ../../scripts/verify-package-types-exports.js ."