@objectstack/platform-objects 7.2.0 → 7.3.0

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.
@@ -10,9 +10,12 @@ var SysUser = data.ObjectSchema.create({
10
10
  icon: "user",
11
11
  isSystem: true,
12
12
  managedBy: "better-auth",
13
- // ADR-0010 — identity table is managed by better-auth, schema must not drift.
14
- _lock: "full",
15
- _lockReason: "Identity table managed by better-auth \u2014 see ADR-0010.",
13
+ // ADR-0010 §3.7 — identity table is managed by better-auth; schema must not drift.
14
+ protection: {
15
+ lock: "full",
16
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
17
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
18
+ },
16
19
  description: "User accounts for authentication",
17
20
  displayNameField: "name",
18
21
  titleFormat: "{name}",
@@ -425,6 +428,14 @@ var SysSession = data.ObjectSchema.create({
425
428
  icon: "key",
426
429
  isSystem: true,
427
430
  managedBy: "better-auth",
431
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
432
+ // but may add overlay row-level config. Use `no-overlay` if you need to
433
+ // forbid sys_metadata overlays entirely.
434
+ protection: {
435
+ lock: "full",
436
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
437
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
438
+ },
428
439
  description: "Active user sessions",
429
440
  displayNameField: "user_id",
430
441
  titleFormat: "Session \u2014 {user_id}",
@@ -580,6 +591,14 @@ var SysAccount = data.ObjectSchema.create({
580
591
  icon: "link",
581
592
  isSystem: true,
582
593
  managedBy: "better-auth",
594
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
595
+ // but may add overlay row-level config. Use `no-overlay` if you need to
596
+ // forbid sys_metadata overlays entirely.
597
+ protection: {
598
+ lock: "full",
599
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
600
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
601
+ },
583
602
  description: "OAuth and authentication provider accounts",
584
603
  titleFormat: "{provider_id} - {account_id}",
585
604
  compactLayout: ["provider_id", "user_id", "account_id"],
@@ -753,6 +772,14 @@ var SysVerification = data.ObjectSchema.create({
753
772
  icon: "shield-check",
754
773
  isSystem: true,
755
774
  managedBy: "better-auth",
775
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
776
+ // but may add overlay row-level config. Use `no-overlay` if you need to
777
+ // forbid sys_metadata overlays entirely.
778
+ protection: {
779
+ lock: "full",
780
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
781
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
782
+ },
756
783
  description: "Email and phone verification tokens",
757
784
  titleFormat: "Verification for {identifier}",
758
785
  compactLayout: ["identifier", "expires_at", "created_at"],
@@ -808,6 +835,14 @@ var SysOrganization = data.ObjectSchema.create({
808
835
  icon: "building-2",
809
836
  isSystem: true,
810
837
  managedBy: "better-auth",
838
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
839
+ // but may add overlay row-level config. Use `no-overlay` if you need to
840
+ // forbid sys_metadata overlays entirely.
841
+ protection: {
842
+ lock: "full",
843
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
844
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
845
+ },
811
846
  description: "Organizations for multi-tenant grouping",
812
847
  displayNameField: "name",
813
848
  titleFormat: "{name}",
@@ -1010,6 +1045,14 @@ var SysMember = data.ObjectSchema.create({
1010
1045
  icon: "user-check",
1011
1046
  isSystem: true,
1012
1047
  managedBy: "better-auth",
1048
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
1049
+ // but may add overlay row-level config. Use `no-overlay` if you need to
1050
+ // forbid sys_metadata overlays entirely.
1051
+ protection: {
1052
+ lock: "full",
1053
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
1054
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
1055
+ },
1013
1056
  description: "Organization membership records",
1014
1057
  titleFormat: "{user_id} in {organization_id}",
1015
1058
  compactLayout: ["user_id", "organization_id", "role"],
@@ -1159,6 +1202,14 @@ var SysInvitation = data.ObjectSchema.create({
1159
1202
  icon: "mail",
1160
1203
  isSystem: true,
1161
1204
  managedBy: "better-auth",
1205
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
1206
+ // but may add overlay row-level config. Use `no-overlay` if you need to
1207
+ // forbid sys_metadata overlays entirely.
1208
+ protection: {
1209
+ lock: "full",
1210
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
1211
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
1212
+ },
1162
1213
  description: "Organization invitations for user onboarding",
1163
1214
  titleFormat: "Invitation to {organization_id}",
1164
1215
  compactLayout: ["email", "organization_id", "status"],
@@ -1359,6 +1410,14 @@ var SysTeam = data.ObjectSchema.create({
1359
1410
  icon: "users",
1360
1411
  isSystem: true,
1361
1412
  managedBy: "better-auth",
1413
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
1414
+ // but may add overlay row-level config. Use `no-overlay` if you need to
1415
+ // forbid sys_metadata overlays entirely.
1416
+ protection: {
1417
+ lock: "full",
1418
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
1419
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
1420
+ },
1362
1421
  description: "Teams within organizations for fine-grained grouping",
1363
1422
  displayNameField: "name",
1364
1423
  titleFormat: "{name}",
@@ -1496,6 +1555,14 @@ var SysTeamMember = data.ObjectSchema.create({
1496
1555
  icon: "user-plus",
1497
1556
  isSystem: true,
1498
1557
  managedBy: "better-auth",
1558
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
1559
+ // but may add overlay row-level config. Use `no-overlay` if you need to
1560
+ // forbid sys_metadata overlays entirely.
1561
+ protection: {
1562
+ lock: "full",
1563
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
1564
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
1565
+ },
1499
1566
  description: "Team membership records linking users to teams",
1500
1567
  titleFormat: "{user_id} in {team_id}",
1501
1568
  compactLayout: ["user_id", "team_id", "created_at"],
@@ -1823,6 +1890,14 @@ var SysApiKey = data.ObjectSchema.create({
1823
1890
  icon: "key-round",
1824
1891
  isSystem: true,
1825
1892
  managedBy: "better-auth",
1893
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
1894
+ // but may add overlay row-level config. Use `no-overlay` if you need to
1895
+ // forbid sys_metadata overlays entirely.
1896
+ protection: {
1897
+ lock: "full",
1898
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
1899
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
1900
+ },
1826
1901
  description: "API keys for programmatic access",
1827
1902
  displayNameField: "name",
1828
1903
  titleFormat: "{name}",
@@ -2005,6 +2080,14 @@ var SysTwoFactor = data.ObjectSchema.create({
2005
2080
  icon: "smartphone",
2006
2081
  isSystem: true,
2007
2082
  managedBy: "better-auth",
2083
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
2084
+ // but may add overlay row-level config. Use `no-overlay` if you need to
2085
+ // forbid sys_metadata overlays entirely.
2086
+ protection: {
2087
+ lock: "full",
2088
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
2089
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
2090
+ },
2008
2091
  description: "Two-factor authentication credentials",
2009
2092
  titleFormat: "Two-factor for {user_id}",
2010
2093
  compactLayout: ["user_id", "created_at"],
@@ -2151,6 +2234,14 @@ var SysDeviceCode = data.ObjectSchema.create({
2151
2234
  icon: "key-round",
2152
2235
  isSystem: true,
2153
2236
  managedBy: "better-auth",
2237
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
2238
+ // but may add overlay row-level config. Use `no-overlay` if you need to
2239
+ // forbid sys_metadata overlays entirely.
2240
+ protection: {
2241
+ lock: "full",
2242
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
2243
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
2244
+ },
2154
2245
  description: "OAuth 2.0 Device Authorization Grant (RFC 8628) pending requests",
2155
2246
  titleFormat: "{user_code}",
2156
2247
  compactLayout: ["user_code", "status", "client_id", "expires_at"],
@@ -2330,6 +2421,14 @@ var SysOauthApplication = data.ObjectSchema.create({
2330
2421
  icon: "key-round",
2331
2422
  isSystem: true,
2332
2423
  managedBy: "better-auth",
2424
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
2425
+ // but may add overlay row-level config. Use `no-overlay` if you need to
2426
+ // forbid sys_metadata overlays entirely.
2427
+ protection: {
2428
+ lock: "full",
2429
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
2430
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
2431
+ },
2333
2432
  description: "Registered OAuth/OIDC client applications",
2334
2433
  displayNameField: "name",
2335
2434
  titleFormat: "{name}",
@@ -2724,6 +2823,14 @@ var SysOauthAccessToken = data.ObjectSchema.create({
2724
2823
  icon: "ticket",
2725
2824
  isSystem: true,
2726
2825
  managedBy: "better-auth",
2826
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
2827
+ // but may add overlay row-level config. Use `no-overlay` if you need to
2828
+ // forbid sys_metadata overlays entirely.
2829
+ protection: {
2830
+ lock: "full",
2831
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
2832
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
2833
+ },
2727
2834
  description: "Opaque OAuth access tokens issued to client applications",
2728
2835
  compactLayout: ["client_id", "user_id", "expires_at"],
2729
2836
  fields: {
@@ -2802,6 +2909,14 @@ var SysOauthRefreshToken = data.ObjectSchema.create({
2802
2909
  icon: "refresh-cw",
2803
2910
  isSystem: true,
2804
2911
  managedBy: "better-auth",
2912
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
2913
+ // but may add overlay row-level config. Use `no-overlay` if you need to
2914
+ // forbid sys_metadata overlays entirely.
2915
+ protection: {
2916
+ lock: "full",
2917
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
2918
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
2919
+ },
2805
2920
  description: "Opaque OAuth refresh tokens (linked to a session)",
2806
2921
  compactLayout: ["client_id", "user_id", "expires_at"],
2807
2922
  fields: {
@@ -2884,6 +2999,14 @@ var SysOauthConsent = data.ObjectSchema.create({
2884
2999
  icon: "shield-check",
2885
3000
  isSystem: true,
2886
3001
  managedBy: "better-auth",
3002
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
3003
+ // but may add overlay row-level config. Use `no-overlay` if you need to
3004
+ // forbid sys_metadata overlays entirely.
3005
+ protection: {
3006
+ lock: "full",
3007
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
3008
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
3009
+ },
2887
3010
  description: "User consent records for OAuth client applications",
2888
3011
  compactLayout: ["client_id", "user_id", "scopes"],
2889
3012
  fields: {
@@ -2944,6 +3067,14 @@ var SysJwks = data.ObjectSchema.create({
2944
3067
  icon: "key",
2945
3068
  isSystem: true,
2946
3069
  managedBy: "better-auth",
3070
+ // ADR-0010 §3.7 — managed by better-auth; tenants may not edit schema,
3071
+ // but may add overlay row-level config. Use `no-overlay` if you need to
3072
+ // forbid sys_metadata overlays entirely.
3073
+ protection: {
3074
+ lock: "full",
3075
+ reason: "Identity table managed by better-auth \u2014 see ADR-0010.",
3076
+ docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
3077
+ },
2947
3078
  description: "Asymmetric key pairs used to sign and verify issued JWTs",
2948
3079
  compactLayout: ["id", "created_at", "expires_at"],
2949
3080
  fields: {