@objectstack/platform-objects 7.1.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.
@@ -10,6 +10,12 @@ var SysUser = data.ObjectSchema.create({
10
10
  icon: "user",
11
11
  isSystem: true,
12
12
  managedBy: "better-auth",
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
+ },
13
19
  description: "User accounts for authentication",
14
20
  displayNameField: "name",
15
21
  titleFormat: "{name}",
@@ -422,6 +428,14 @@ var SysSession = data.ObjectSchema.create({
422
428
  icon: "key",
423
429
  isSystem: true,
424
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
+ },
425
439
  description: "Active user sessions",
426
440
  displayNameField: "user_id",
427
441
  titleFormat: "Session \u2014 {user_id}",
@@ -577,6 +591,14 @@ var SysAccount = data.ObjectSchema.create({
577
591
  icon: "link",
578
592
  isSystem: true,
579
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
+ },
580
602
  description: "OAuth and authentication provider accounts",
581
603
  titleFormat: "{provider_id} - {account_id}",
582
604
  compactLayout: ["provider_id", "user_id", "account_id"],
@@ -601,7 +623,7 @@ var SysAccount = data.ObjectSchema.create({
601
623
  mode: "create",
602
624
  locations: ["list_toolbar"],
603
625
  type: "url",
604
- target: "/api/v1/auth/sign-in/social?provider=${param.provider}&callbackURL=${ctx.origin}/apps/account/sys_account",
626
+ target: "/api/v1/auth/sign-in/social?provider=${param.provider}&callbackURL=${ctx.origin}/_console/apps/account/sys_account",
605
627
  params: [
606
628
  {
607
629
  name: "provider",
@@ -750,6 +772,14 @@ var SysVerification = data.ObjectSchema.create({
750
772
  icon: "shield-check",
751
773
  isSystem: true,
752
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
+ },
753
783
  description: "Email and phone verification tokens",
754
784
  titleFormat: "Verification for {identifier}",
755
785
  compactLayout: ["identifier", "expires_at", "created_at"],
@@ -805,6 +835,14 @@ var SysOrganization = data.ObjectSchema.create({
805
835
  icon: "building-2",
806
836
  isSystem: true,
807
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
+ },
808
846
  description: "Organizations for multi-tenant grouping",
809
847
  displayNameField: "name",
810
848
  titleFormat: "{name}",
@@ -1007,6 +1045,14 @@ var SysMember = data.ObjectSchema.create({
1007
1045
  icon: "user-check",
1008
1046
  isSystem: true,
1009
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
+ },
1010
1056
  description: "Organization membership records",
1011
1057
  titleFormat: "{user_id} in {organization_id}",
1012
1058
  compactLayout: ["user_id", "organization_id", "role"],
@@ -1156,6 +1202,14 @@ var SysInvitation = data.ObjectSchema.create({
1156
1202
  icon: "mail",
1157
1203
  isSystem: true,
1158
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
+ },
1159
1213
  description: "Organization invitations for user onboarding",
1160
1214
  titleFormat: "Invitation to {organization_id}",
1161
1215
  compactLayout: ["email", "organization_id", "status"],
@@ -1356,6 +1410,14 @@ var SysTeam = data.ObjectSchema.create({
1356
1410
  icon: "users",
1357
1411
  isSystem: true,
1358
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
+ },
1359
1421
  description: "Teams within organizations for fine-grained grouping",
1360
1422
  displayNameField: "name",
1361
1423
  titleFormat: "{name}",
@@ -1493,6 +1555,14 @@ var SysTeamMember = data.ObjectSchema.create({
1493
1555
  icon: "user-plus",
1494
1556
  isSystem: true,
1495
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
+ },
1496
1566
  description: "Team membership records linking users to teams",
1497
1567
  titleFormat: "{user_id} in {team_id}",
1498
1568
  compactLayout: ["user_id", "team_id", "created_at"],
@@ -1820,6 +1890,14 @@ var SysApiKey = data.ObjectSchema.create({
1820
1890
  icon: "key-round",
1821
1891
  isSystem: true,
1822
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
+ },
1823
1901
  description: "API keys for programmatic access",
1824
1902
  displayNameField: "name",
1825
1903
  titleFormat: "{name}",
@@ -2002,6 +2080,14 @@ var SysTwoFactor = data.ObjectSchema.create({
2002
2080
  icon: "smartphone",
2003
2081
  isSystem: true,
2004
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
+ },
2005
2091
  description: "Two-factor authentication credentials",
2006
2092
  titleFormat: "Two-factor for {user_id}",
2007
2093
  compactLayout: ["user_id", "created_at"],
@@ -2148,6 +2234,14 @@ var SysDeviceCode = data.ObjectSchema.create({
2148
2234
  icon: "key-round",
2149
2235
  isSystem: true,
2150
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
+ },
2151
2245
  description: "OAuth 2.0 Device Authorization Grant (RFC 8628) pending requests",
2152
2246
  titleFormat: "{user_code}",
2153
2247
  compactLayout: ["user_code", "status", "client_id", "expires_at"],
@@ -2327,6 +2421,14 @@ var SysOauthApplication = data.ObjectSchema.create({
2327
2421
  icon: "key-round",
2328
2422
  isSystem: true,
2329
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
+ },
2330
2432
  description: "Registered OAuth/OIDC client applications",
2331
2433
  displayNameField: "name",
2332
2434
  titleFormat: "{name}",
@@ -2721,6 +2823,14 @@ var SysOauthAccessToken = data.ObjectSchema.create({
2721
2823
  icon: "ticket",
2722
2824
  isSystem: true,
2723
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
+ },
2724
2834
  description: "Opaque OAuth access tokens issued to client applications",
2725
2835
  compactLayout: ["client_id", "user_id", "expires_at"],
2726
2836
  fields: {
@@ -2799,6 +2909,14 @@ var SysOauthRefreshToken = data.ObjectSchema.create({
2799
2909
  icon: "refresh-cw",
2800
2910
  isSystem: true,
2801
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
+ },
2802
2920
  description: "Opaque OAuth refresh tokens (linked to a session)",
2803
2921
  compactLayout: ["client_id", "user_id", "expires_at"],
2804
2922
  fields: {
@@ -2881,6 +2999,14 @@ var SysOauthConsent = data.ObjectSchema.create({
2881
2999
  icon: "shield-check",
2882
3000
  isSystem: true,
2883
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
+ },
2884
3010
  description: "User consent records for OAuth client applications",
2885
3011
  compactLayout: ["client_id", "user_id", "scopes"],
2886
3012
  fields: {
@@ -2941,6 +3067,14 @@ var SysJwks = data.ObjectSchema.create({
2941
3067
  icon: "key",
2942
3068
  isSystem: true,
2943
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
+ },
2944
3078
  description: "Asymmetric key pairs used to sign and verify issued JWTs",
2945
3079
  compactLayout: ["id", "created_at", "expires_at"],
2946
3080
  fields: {