@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.
@@ -8,6 +8,12 @@ var SysUser = ObjectSchema.create({
8
8
  icon: "user",
9
9
  isSystem: true,
10
10
  managedBy: "better-auth",
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
+ },
11
17
  description: "User accounts for authentication",
12
18
  displayNameField: "name",
13
19
  titleFormat: "{name}",
@@ -420,6 +426,14 @@ var SysSession = ObjectSchema.create({
420
426
  icon: "key",
421
427
  isSystem: true,
422
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
+ },
423
437
  description: "Active user sessions",
424
438
  displayNameField: "user_id",
425
439
  titleFormat: "Session \u2014 {user_id}",
@@ -575,6 +589,14 @@ var SysAccount = ObjectSchema.create({
575
589
  icon: "link",
576
590
  isSystem: true,
577
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
+ },
578
600
  description: "OAuth and authentication provider accounts",
579
601
  titleFormat: "{provider_id} - {account_id}",
580
602
  compactLayout: ["provider_id", "user_id", "account_id"],
@@ -599,7 +621,7 @@ var SysAccount = ObjectSchema.create({
599
621
  mode: "create",
600
622
  locations: ["list_toolbar"],
601
623
  type: "url",
602
- target: "/api/v1/auth/sign-in/social?provider=${param.provider}&callbackURL=${ctx.origin}/apps/account/sys_account",
624
+ target: "/api/v1/auth/sign-in/social?provider=${param.provider}&callbackURL=${ctx.origin}/_console/apps/account/sys_account",
603
625
  params: [
604
626
  {
605
627
  name: "provider",
@@ -748,6 +770,14 @@ var SysVerification = ObjectSchema.create({
748
770
  icon: "shield-check",
749
771
  isSystem: true,
750
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
+ },
751
781
  description: "Email and phone verification tokens",
752
782
  titleFormat: "Verification for {identifier}",
753
783
  compactLayout: ["identifier", "expires_at", "created_at"],
@@ -803,6 +833,14 @@ var SysOrganization = ObjectSchema.create({
803
833
  icon: "building-2",
804
834
  isSystem: true,
805
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
+ },
806
844
  description: "Organizations for multi-tenant grouping",
807
845
  displayNameField: "name",
808
846
  titleFormat: "{name}",
@@ -1005,6 +1043,14 @@ var SysMember = ObjectSchema.create({
1005
1043
  icon: "user-check",
1006
1044
  isSystem: true,
1007
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
+ },
1008
1054
  description: "Organization membership records",
1009
1055
  titleFormat: "{user_id} in {organization_id}",
1010
1056
  compactLayout: ["user_id", "organization_id", "role"],
@@ -1154,6 +1200,14 @@ var SysInvitation = ObjectSchema.create({
1154
1200
  icon: "mail",
1155
1201
  isSystem: true,
1156
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
+ },
1157
1211
  description: "Organization invitations for user onboarding",
1158
1212
  titleFormat: "Invitation to {organization_id}",
1159
1213
  compactLayout: ["email", "organization_id", "status"],
@@ -1354,6 +1408,14 @@ var SysTeam = ObjectSchema.create({
1354
1408
  icon: "users",
1355
1409
  isSystem: true,
1356
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
+ },
1357
1419
  description: "Teams within organizations for fine-grained grouping",
1358
1420
  displayNameField: "name",
1359
1421
  titleFormat: "{name}",
@@ -1491,6 +1553,14 @@ var SysTeamMember = ObjectSchema.create({
1491
1553
  icon: "user-plus",
1492
1554
  isSystem: true,
1493
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
+ },
1494
1564
  description: "Team membership records linking users to teams",
1495
1565
  titleFormat: "{user_id} in {team_id}",
1496
1566
  compactLayout: ["user_id", "team_id", "created_at"],
@@ -1818,6 +1888,14 @@ var SysApiKey = ObjectSchema.create({
1818
1888
  icon: "key-round",
1819
1889
  isSystem: true,
1820
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
+ },
1821
1899
  description: "API keys for programmatic access",
1822
1900
  displayNameField: "name",
1823
1901
  titleFormat: "{name}",
@@ -2000,6 +2078,14 @@ var SysTwoFactor = ObjectSchema.create({
2000
2078
  icon: "smartphone",
2001
2079
  isSystem: true,
2002
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
+ },
2003
2089
  description: "Two-factor authentication credentials",
2004
2090
  titleFormat: "Two-factor for {user_id}",
2005
2091
  compactLayout: ["user_id", "created_at"],
@@ -2146,6 +2232,14 @@ var SysDeviceCode = ObjectSchema.create({
2146
2232
  icon: "key-round",
2147
2233
  isSystem: true,
2148
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
+ },
2149
2243
  description: "OAuth 2.0 Device Authorization Grant (RFC 8628) pending requests",
2150
2244
  titleFormat: "{user_code}",
2151
2245
  compactLayout: ["user_code", "status", "client_id", "expires_at"],
@@ -2325,6 +2419,14 @@ var SysOauthApplication = ObjectSchema.create({
2325
2419
  icon: "key-round",
2326
2420
  isSystem: true,
2327
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
+ },
2328
2430
  description: "Registered OAuth/OIDC client applications",
2329
2431
  displayNameField: "name",
2330
2432
  titleFormat: "{name}",
@@ -2719,6 +2821,14 @@ var SysOauthAccessToken = ObjectSchema.create({
2719
2821
  icon: "ticket",
2720
2822
  isSystem: true,
2721
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
+ },
2722
2832
  description: "Opaque OAuth access tokens issued to client applications",
2723
2833
  compactLayout: ["client_id", "user_id", "expires_at"],
2724
2834
  fields: {
@@ -2797,6 +2907,14 @@ var SysOauthRefreshToken = ObjectSchema.create({
2797
2907
  icon: "refresh-cw",
2798
2908
  isSystem: true,
2799
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
+ },
2800
2918
  description: "Opaque OAuth refresh tokens (linked to a session)",
2801
2919
  compactLayout: ["client_id", "user_id", "expires_at"],
2802
2920
  fields: {
@@ -2879,6 +2997,14 @@ var SysOauthConsent = ObjectSchema.create({
2879
2997
  icon: "shield-check",
2880
2998
  isSystem: true,
2881
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
+ },
2882
3008
  description: "User consent records for OAuth client applications",
2883
3009
  compactLayout: ["client_id", "user_id", "scopes"],
2884
3010
  fields: {
@@ -2939,6 +3065,14 @@ var SysJwks = ObjectSchema.create({
2939
3065
  icon: "key",
2940
3066
  isSystem: true,
2941
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
+ },
2942
3076
  description: "Asymmetric key pairs used to sign and verify issued JWTs",
2943
3077
  compactLayout: ["id", "created_at", "expires_at"],
2944
3078
  fields: {