@objectstack/platform-objects 7.2.0 → 7.2.1
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/apps/index.d.mts +12 -0
- package/dist/apps/index.d.ts +12 -0
- package/dist/apps/index.js +48 -19
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/index.mjs +48 -19
- package/dist/apps/index.mjs.map +1 -1
- package/dist/audit/index.d.mts +96 -0
- package/dist/audit/index.d.ts +96 -0
- package/dist/identity/index.d.mts +205 -2
- package/dist/identity/index.d.ts +205 -2
- package/dist/identity/index.js +134 -3
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/index.mjs +134 -3
- package/dist/identity/index.mjs.map +1 -1
- package/dist/index.js +196 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +196 -22
- package/dist/index.mjs.map +1 -1
- package/dist/integration/index.d.mts +6 -0
- package/dist/integration/index.d.ts +6 -0
- package/dist/metadata/index.d.mts +18 -0
- package/dist/metadata/index.d.ts +18 -0
- package/dist/security/index.d.mts +52 -0
- package/dist/security/index.d.ts +52 -0
- package/dist/security/index.js +14 -0
- package/dist/security/index.js.map +1 -1
- package/dist/security/index.mjs +14 -0
- package/dist/security/index.mjs.map +1 -1
- package/dist/system/index.d.mts +18 -0
- package/dist/system/index.d.ts +18 -0
- package/package.json +2 -2
package/dist/identity/index.mjs
CHANGED
|
@@ -8,9 +8,12 @@ var SysUser = ObjectSchema.create({
|
|
|
8
8
|
icon: "user",
|
|
9
9
|
isSystem: true,
|
|
10
10
|
managedBy: "better-auth",
|
|
11
|
-
// ADR-0010 — identity table is managed by better-auth
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
// ADR-0010 §3.7 — identity table is managed by better-auth; schema must not drift.
|
|
12
|
+
protection: {
|
|
13
|
+
lock: "full",
|
|
14
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
15
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
16
|
+
},
|
|
14
17
|
description: "User accounts for authentication",
|
|
15
18
|
displayNameField: "name",
|
|
16
19
|
titleFormat: "{name}",
|
|
@@ -423,6 +426,14 @@ var SysSession = ObjectSchema.create({
|
|
|
423
426
|
icon: "key",
|
|
424
427
|
isSystem: true,
|
|
425
428
|
managedBy: "better-auth",
|
|
429
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
430
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
431
|
+
// forbid sys_metadata overlays entirely.
|
|
432
|
+
protection: {
|
|
433
|
+
lock: "full",
|
|
434
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
435
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
436
|
+
},
|
|
426
437
|
description: "Active user sessions",
|
|
427
438
|
displayNameField: "user_id",
|
|
428
439
|
titleFormat: "Session \u2014 {user_id}",
|
|
@@ -578,6 +589,14 @@ var SysAccount = ObjectSchema.create({
|
|
|
578
589
|
icon: "link",
|
|
579
590
|
isSystem: true,
|
|
580
591
|
managedBy: "better-auth",
|
|
592
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
593
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
594
|
+
// forbid sys_metadata overlays entirely.
|
|
595
|
+
protection: {
|
|
596
|
+
lock: "full",
|
|
597
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
598
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
599
|
+
},
|
|
581
600
|
description: "OAuth and authentication provider accounts",
|
|
582
601
|
titleFormat: "{provider_id} - {account_id}",
|
|
583
602
|
compactLayout: ["provider_id", "user_id", "account_id"],
|
|
@@ -751,6 +770,14 @@ var SysVerification = ObjectSchema.create({
|
|
|
751
770
|
icon: "shield-check",
|
|
752
771
|
isSystem: true,
|
|
753
772
|
managedBy: "better-auth",
|
|
773
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
774
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
775
|
+
// forbid sys_metadata overlays entirely.
|
|
776
|
+
protection: {
|
|
777
|
+
lock: "full",
|
|
778
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
779
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
780
|
+
},
|
|
754
781
|
description: "Email and phone verification tokens",
|
|
755
782
|
titleFormat: "Verification for {identifier}",
|
|
756
783
|
compactLayout: ["identifier", "expires_at", "created_at"],
|
|
@@ -806,6 +833,14 @@ var SysOrganization = ObjectSchema.create({
|
|
|
806
833
|
icon: "building-2",
|
|
807
834
|
isSystem: true,
|
|
808
835
|
managedBy: "better-auth",
|
|
836
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
837
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
838
|
+
// forbid sys_metadata overlays entirely.
|
|
839
|
+
protection: {
|
|
840
|
+
lock: "full",
|
|
841
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
842
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
843
|
+
},
|
|
809
844
|
description: "Organizations for multi-tenant grouping",
|
|
810
845
|
displayNameField: "name",
|
|
811
846
|
titleFormat: "{name}",
|
|
@@ -1008,6 +1043,14 @@ var SysMember = ObjectSchema.create({
|
|
|
1008
1043
|
icon: "user-check",
|
|
1009
1044
|
isSystem: true,
|
|
1010
1045
|
managedBy: "better-auth",
|
|
1046
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
1047
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
1048
|
+
// forbid sys_metadata overlays entirely.
|
|
1049
|
+
protection: {
|
|
1050
|
+
lock: "full",
|
|
1051
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
1052
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
1053
|
+
},
|
|
1011
1054
|
description: "Organization membership records",
|
|
1012
1055
|
titleFormat: "{user_id} in {organization_id}",
|
|
1013
1056
|
compactLayout: ["user_id", "organization_id", "role"],
|
|
@@ -1157,6 +1200,14 @@ var SysInvitation = ObjectSchema.create({
|
|
|
1157
1200
|
icon: "mail",
|
|
1158
1201
|
isSystem: true,
|
|
1159
1202
|
managedBy: "better-auth",
|
|
1203
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
1204
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
1205
|
+
// forbid sys_metadata overlays entirely.
|
|
1206
|
+
protection: {
|
|
1207
|
+
lock: "full",
|
|
1208
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
1209
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
1210
|
+
},
|
|
1160
1211
|
description: "Organization invitations for user onboarding",
|
|
1161
1212
|
titleFormat: "Invitation to {organization_id}",
|
|
1162
1213
|
compactLayout: ["email", "organization_id", "status"],
|
|
@@ -1357,6 +1408,14 @@ var SysTeam = ObjectSchema.create({
|
|
|
1357
1408
|
icon: "users",
|
|
1358
1409
|
isSystem: true,
|
|
1359
1410
|
managedBy: "better-auth",
|
|
1411
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
1412
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
1413
|
+
// forbid sys_metadata overlays entirely.
|
|
1414
|
+
protection: {
|
|
1415
|
+
lock: "full",
|
|
1416
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
1417
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
1418
|
+
},
|
|
1360
1419
|
description: "Teams within organizations for fine-grained grouping",
|
|
1361
1420
|
displayNameField: "name",
|
|
1362
1421
|
titleFormat: "{name}",
|
|
@@ -1494,6 +1553,14 @@ var SysTeamMember = ObjectSchema.create({
|
|
|
1494
1553
|
icon: "user-plus",
|
|
1495
1554
|
isSystem: true,
|
|
1496
1555
|
managedBy: "better-auth",
|
|
1556
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
1557
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
1558
|
+
// forbid sys_metadata overlays entirely.
|
|
1559
|
+
protection: {
|
|
1560
|
+
lock: "full",
|
|
1561
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
1562
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
1563
|
+
},
|
|
1497
1564
|
description: "Team membership records linking users to teams",
|
|
1498
1565
|
titleFormat: "{user_id} in {team_id}",
|
|
1499
1566
|
compactLayout: ["user_id", "team_id", "created_at"],
|
|
@@ -1821,6 +1888,14 @@ var SysApiKey = ObjectSchema.create({
|
|
|
1821
1888
|
icon: "key-round",
|
|
1822
1889
|
isSystem: true,
|
|
1823
1890
|
managedBy: "better-auth",
|
|
1891
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
1892
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
1893
|
+
// forbid sys_metadata overlays entirely.
|
|
1894
|
+
protection: {
|
|
1895
|
+
lock: "full",
|
|
1896
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
1897
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
1898
|
+
},
|
|
1824
1899
|
description: "API keys for programmatic access",
|
|
1825
1900
|
displayNameField: "name",
|
|
1826
1901
|
titleFormat: "{name}",
|
|
@@ -2003,6 +2078,14 @@ var SysTwoFactor = ObjectSchema.create({
|
|
|
2003
2078
|
icon: "smartphone",
|
|
2004
2079
|
isSystem: true,
|
|
2005
2080
|
managedBy: "better-auth",
|
|
2081
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
2082
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
2083
|
+
// forbid sys_metadata overlays entirely.
|
|
2084
|
+
protection: {
|
|
2085
|
+
lock: "full",
|
|
2086
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
2087
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
2088
|
+
},
|
|
2006
2089
|
description: "Two-factor authentication credentials",
|
|
2007
2090
|
titleFormat: "Two-factor for {user_id}",
|
|
2008
2091
|
compactLayout: ["user_id", "created_at"],
|
|
@@ -2149,6 +2232,14 @@ var SysDeviceCode = ObjectSchema.create({
|
|
|
2149
2232
|
icon: "key-round",
|
|
2150
2233
|
isSystem: true,
|
|
2151
2234
|
managedBy: "better-auth",
|
|
2235
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
2236
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
2237
|
+
// forbid sys_metadata overlays entirely.
|
|
2238
|
+
protection: {
|
|
2239
|
+
lock: "full",
|
|
2240
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
2241
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
2242
|
+
},
|
|
2152
2243
|
description: "OAuth 2.0 Device Authorization Grant (RFC 8628) pending requests",
|
|
2153
2244
|
titleFormat: "{user_code}",
|
|
2154
2245
|
compactLayout: ["user_code", "status", "client_id", "expires_at"],
|
|
@@ -2328,6 +2419,14 @@ var SysOauthApplication = ObjectSchema.create({
|
|
|
2328
2419
|
icon: "key-round",
|
|
2329
2420
|
isSystem: true,
|
|
2330
2421
|
managedBy: "better-auth",
|
|
2422
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
2423
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
2424
|
+
// forbid sys_metadata overlays entirely.
|
|
2425
|
+
protection: {
|
|
2426
|
+
lock: "full",
|
|
2427
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
2428
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
2429
|
+
},
|
|
2331
2430
|
description: "Registered OAuth/OIDC client applications",
|
|
2332
2431
|
displayNameField: "name",
|
|
2333
2432
|
titleFormat: "{name}",
|
|
@@ -2722,6 +2821,14 @@ var SysOauthAccessToken = ObjectSchema.create({
|
|
|
2722
2821
|
icon: "ticket",
|
|
2723
2822
|
isSystem: true,
|
|
2724
2823
|
managedBy: "better-auth",
|
|
2824
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
2825
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
2826
|
+
// forbid sys_metadata overlays entirely.
|
|
2827
|
+
protection: {
|
|
2828
|
+
lock: "full",
|
|
2829
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
2830
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
2831
|
+
},
|
|
2725
2832
|
description: "Opaque OAuth access tokens issued to client applications",
|
|
2726
2833
|
compactLayout: ["client_id", "user_id", "expires_at"],
|
|
2727
2834
|
fields: {
|
|
@@ -2800,6 +2907,14 @@ var SysOauthRefreshToken = ObjectSchema.create({
|
|
|
2800
2907
|
icon: "refresh-cw",
|
|
2801
2908
|
isSystem: true,
|
|
2802
2909
|
managedBy: "better-auth",
|
|
2910
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
2911
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
2912
|
+
// forbid sys_metadata overlays entirely.
|
|
2913
|
+
protection: {
|
|
2914
|
+
lock: "full",
|
|
2915
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
2916
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
2917
|
+
},
|
|
2803
2918
|
description: "Opaque OAuth refresh tokens (linked to a session)",
|
|
2804
2919
|
compactLayout: ["client_id", "user_id", "expires_at"],
|
|
2805
2920
|
fields: {
|
|
@@ -2882,6 +2997,14 @@ var SysOauthConsent = ObjectSchema.create({
|
|
|
2882
2997
|
icon: "shield-check",
|
|
2883
2998
|
isSystem: true,
|
|
2884
2999
|
managedBy: "better-auth",
|
|
3000
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
3001
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
3002
|
+
// forbid sys_metadata overlays entirely.
|
|
3003
|
+
protection: {
|
|
3004
|
+
lock: "full",
|
|
3005
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
3006
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
3007
|
+
},
|
|
2885
3008
|
description: "User consent records for OAuth client applications",
|
|
2886
3009
|
compactLayout: ["client_id", "user_id", "scopes"],
|
|
2887
3010
|
fields: {
|
|
@@ -2942,6 +3065,14 @@ var SysJwks = ObjectSchema.create({
|
|
|
2942
3065
|
icon: "key",
|
|
2943
3066
|
isSystem: true,
|
|
2944
3067
|
managedBy: "better-auth",
|
|
3068
|
+
// ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
|
|
3069
|
+
// but may add overlay row-level config. Use `no-overlay` if you need to
|
|
3070
|
+
// forbid sys_metadata overlays entirely.
|
|
3071
|
+
protection: {
|
|
3072
|
+
lock: "full",
|
|
3073
|
+
reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
|
|
3074
|
+
docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
|
|
3075
|
+
},
|
|
2945
3076
|
description: "Asymmetric key pairs used to sign and verify issued JWTs",
|
|
2946
3077
|
compactLayout: ["id", "created_at", "expires_at"],
|
|
2947
3078
|
fields: {
|