@objectstack/platform-objects 11.1.0 → 11.2.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.
@@ -323,6 +323,7 @@ declare const SysUser: Omit<{
323
323
  summary: string;
324
324
  type?: string | undefined;
325
325
  }[] | undefined;
326
+ nameField?: string | undefined;
326
327
  displayNameField?: string | undefined;
327
328
  recordName?: {
328
329
  type: "text" | "autonumber";
@@ -803,6 +804,7 @@ declare const SysUser: Omit<{
803
804
  };
804
805
  readonly description: "User accounts for authentication";
805
806
  readonly displayNameField: "name";
807
+ readonly nameField: "name";
806
808
  readonly titleFormat: "{name}";
807
809
  readonly compactLayout: ["name", "email", "email_verified"];
808
810
  readonly actions: [{
@@ -4991,6 +4993,7 @@ declare const SysSession: Omit<{
4991
4993
  summary: string;
4992
4994
  type?: string | undefined;
4993
4995
  }[] | undefined;
4996
+ nameField?: string | undefined;
4994
4997
  displayNameField?: string | undefined;
4995
4998
  recordName?: {
4996
4999
  type: "text" | "autonumber";
@@ -5471,6 +5474,7 @@ declare const SysSession: Omit<{
5471
5474
  };
5472
5475
  readonly description: "Active user sessions";
5473
5476
  readonly displayNameField: "user_id";
5477
+ readonly nameField: "user_id";
5474
5478
  readonly titleFormat: "Session — {user_id}";
5475
5479
  readonly compactLayout: ["user_id", "ip_address", "expires_at"];
5476
5480
  readonly actions: [{
@@ -8319,6 +8323,7 @@ declare const SysAccount: Omit<{
8319
8323
  summary: string;
8320
8324
  type?: string | undefined;
8321
8325
  }[] | undefined;
8326
+ nameField?: string | undefined;
8322
8327
  displayNameField?: string | undefined;
8323
8328
  recordName?: {
8324
8329
  type: "text" | "autonumber";
@@ -11704,6 +11709,7 @@ declare const SysVerification: Omit<{
11704
11709
  summary: string;
11705
11710
  type?: string | undefined;
11706
11711
  }[] | undefined;
11712
+ nameField?: string | undefined;
11707
11713
  displayNameField?: string | undefined;
11708
11714
  recordName?: {
11709
11715
  type: "text" | "autonumber";
@@ -13571,6 +13577,7 @@ declare const SysOrganization: Omit<{
13571
13577
  summary: string;
13572
13578
  type?: string | undefined;
13573
13579
  }[] | undefined;
13580
+ nameField?: string | undefined;
13574
13581
  displayNameField?: string | undefined;
13575
13582
  recordName?: {
13576
13583
  type: "text" | "autonumber";
@@ -14051,6 +14058,7 @@ declare const SysOrganization: Omit<{
14051
14058
  };
14052
14059
  readonly description: "Organizations for multi-tenant grouping";
14053
14060
  readonly displayNameField: "name";
14061
+ readonly nameField: "name";
14054
14062
  readonly titleFormat: "{name}";
14055
14063
  readonly compactLayout: ["name", "slug"];
14056
14064
  readonly actions: [{
@@ -15910,6 +15918,7 @@ declare const SysMember: Omit<{
15910
15918
  summary: string;
15911
15919
  type?: string | undefined;
15912
15920
  }[] | undefined;
15921
+ nameField?: string | undefined;
15913
15922
  displayNameField?: string | undefined;
15914
15923
  recordName?: {
15915
15924
  type: "text" | "autonumber";
@@ -17698,6 +17707,7 @@ declare const SysInvitation: Omit<{
17698
17707
  summary: string;
17699
17708
  type?: string | undefined;
17700
17709
  }[] | undefined;
17710
+ nameField?: string | undefined;
17701
17711
  displayNameField?: string | undefined;
17702
17712
  recordName?: {
17703
17713
  type: "text" | "autonumber";
@@ -20250,6 +20260,7 @@ declare const SysTeam: Omit<{
20250
20260
  summary: string;
20251
20261
  type?: string | undefined;
20252
20262
  }[] | undefined;
20263
+ nameField?: string | undefined;
20253
20264
  displayNameField?: string | undefined;
20254
20265
  recordName?: {
20255
20266
  type: "text" | "autonumber";
@@ -20730,6 +20741,7 @@ declare const SysTeam: Omit<{
20730
20741
  };
20731
20742
  readonly description: "Teams within organizations for fine-grained grouping";
20732
20743
  readonly displayNameField: "name";
20744
+ readonly nameField: "name";
20733
20745
  readonly titleFormat: "{name}";
20734
20746
  readonly compactLayout: ["name", "organization_id"];
20735
20747
  readonly actions: [{
@@ -22039,6 +22051,7 @@ declare const SysTeamMember: Omit<{
22039
22051
  summary: string;
22040
22052
  type?: string | undefined;
22041
22053
  }[] | undefined;
22054
+ nameField?: string | undefined;
22042
22055
  displayNameField?: string | undefined;
22043
22056
  recordName?: {
22044
22057
  type: "text" | "autonumber";
@@ -23609,6 +23622,7 @@ declare const SysBusinessUnit: Omit<{
23609
23622
  summary: string;
23610
23623
  type?: string | undefined;
23611
23624
  }[] | undefined;
23625
+ nameField?: string | undefined;
23612
23626
  displayNameField?: string | undefined;
23613
23627
  recordName?: {
23614
23628
  type: "text" | "autonumber";
@@ -24084,6 +24098,7 @@ declare const SysBusinessUnit: Omit<{
24084
24098
  readonly managedBy: "platform";
24085
24099
  readonly description: "Canonical Business Unit tree — hierarchical org/data-partition node (company / division / department / region / office). ADR-0057 D2.";
24086
24100
  readonly displayNameField: "name";
24101
+ readonly nameField: "name";
24087
24102
  readonly titleFormat: "{name}";
24088
24103
  readonly compactLayout: ["name", "kind", "parent_business_unit_id", "manager_user_id"];
24089
24104
  readonly listViews: {
@@ -26804,6 +26819,7 @@ declare const SysBusinessUnitMember: Omit<{
26804
26819
  summary: string;
26805
26820
  type?: string | undefined;
26806
26821
  }[] | undefined;
26822
+ nameField?: string | undefined;
26807
26823
  displayNameField?: string | undefined;
26808
26824
  recordName?: {
26809
26825
  type: "text" | "autonumber";
@@ -29189,6 +29205,7 @@ declare const SysApiKey: Omit<{
29189
29205
  summary: string;
29190
29206
  type?: string | undefined;
29191
29207
  }[] | undefined;
29208
+ nameField?: string | undefined;
29192
29209
  displayNameField?: string | undefined;
29193
29210
  recordName?: {
29194
29211
  type: "text" | "autonumber";
@@ -29669,6 +29686,7 @@ declare const SysApiKey: Omit<{
29669
29686
  };
29670
29687
  readonly description: "API keys for programmatic access";
29671
29688
  readonly displayNameField: "name";
29689
+ readonly nameField: "name";
29672
29690
  readonly titleFormat: "{name}";
29673
29691
  readonly compactLayout: ["name", "prefix", "user_id", "expires_at", "revoked"];
29674
29692
  readonly actions: [{
@@ -32045,6 +32063,7 @@ declare const SysTwoFactor: Omit<{
32045
32063
  summary: string;
32046
32064
  type?: string | undefined;
32047
32065
  }[] | undefined;
32066
+ nameField?: string | undefined;
32048
32067
  displayNameField?: string | undefined;
32049
32068
  recordName?: {
32050
32069
  type: "text" | "autonumber";
@@ -34203,6 +34222,7 @@ declare const SysDeviceCode: Omit<{
34203
34222
  summary: string;
34204
34223
  type?: string | undefined;
34205
34224
  }[] | undefined;
34225
+ nameField?: string | undefined;
34206
34226
  displayNameField?: string | undefined;
34207
34227
  recordName?: {
34208
34228
  type: "text" | "autonumber";
@@ -34682,6 +34702,7 @@ declare const SysDeviceCode: Omit<{
34682
34702
  readonly docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection";
34683
34703
  };
34684
34704
  readonly description: "OAuth 2.0 Device Authorization Grant (RFC 8628) pending requests";
34705
+ readonly nameField: "user_code";
34685
34706
  readonly titleFormat: "{user_code}";
34686
34707
  readonly compactLayout: ["user_code", "status", "client_id", "expires_at"];
34687
34708
  readonly fields: {
@@ -37124,6 +37145,7 @@ declare const SysUserPreference: Omit<{
37124
37145
  summary: string;
37125
37146
  type?: string | undefined;
37126
37147
  }[] | undefined;
37148
+ nameField?: string | undefined;
37127
37149
  displayNameField?: string | undefined;
37128
37150
  recordName?: {
37129
37151
  type: "text" | "autonumber";
@@ -37598,6 +37620,7 @@ declare const SysUserPreference: Omit<{
37598
37620
  readonly isSystem: true;
37599
37621
  readonly managedBy: "system";
37600
37622
  readonly description: "Per-user key-value preferences (theme, locale, etc.)";
37623
+ readonly nameField: "key";
37601
37624
  readonly titleFormat: "{key}";
37602
37625
  readonly compactLayout: ["user_id", "key"];
37603
37626
  readonly listViews: {
@@ -39058,6 +39081,7 @@ declare const SysOauthApplication: Omit<{
39058
39081
  summary: string;
39059
39082
  type?: string | undefined;
39060
39083
  }[] | undefined;
39084
+ nameField?: string | undefined;
39061
39085
  displayNameField?: string | undefined;
39062
39086
  recordName?: {
39063
39087
  type: "text" | "autonumber";
@@ -39538,6 +39562,7 @@ declare const SysOauthApplication: Omit<{
39538
39562
  };
39539
39563
  readonly description: "Registered OAuth/OIDC client applications";
39540
39564
  readonly displayNameField: "name";
39565
+ readonly nameField: "name";
39541
39566
  readonly titleFormat: "{name}";
39542
39567
  readonly compactLayout: ["name", "client_id", "type", "disabled"];
39543
39568
  readonly actions: [{
@@ -45340,6 +45365,7 @@ declare const SysOauthAccessToken: Omit<{
45340
45365
  summary: string;
45341
45366
  type?: string | undefined;
45342
45367
  }[] | undefined;
45368
+ nameField?: string | undefined;
45343
45369
  displayNameField?: string | undefined;
45344
45370
  recordName?: {
45345
45371
  type: "text" | "autonumber";
@@ -47908,6 +47934,7 @@ declare const SysOauthRefreshToken: Omit<{
47908
47934
  summary: string;
47909
47935
  type?: string | undefined;
47910
47936
  }[] | undefined;
47937
+ nameField?: string | undefined;
47911
47938
  displayNameField?: string | undefined;
47912
47939
  recordName?: {
47913
47940
  type: "text" | "autonumber";
@@ -50650,6 +50677,7 @@ declare const SysOauthConsent: Omit<{
50650
50677
  summary: string;
50651
50678
  type?: string | undefined;
50652
50679
  }[] | undefined;
50680
+ nameField?: string | undefined;
50653
50681
  displayNameField?: string | undefined;
50654
50682
  recordName?: {
50655
50683
  type: "text" | "autonumber";
@@ -52689,6 +52717,7 @@ declare const SysJwks: Omit<{
52689
52717
  summary: string;
52690
52718
  type?: string | undefined;
52691
52719
  }[] | undefined;
52720
+ nameField?: string | undefined;
52692
52721
  displayNameField?: string | undefined;
52693
52722
  recordName?: {
52694
52723
  type: "text" | "autonumber";
@@ -54385,6 +54414,7 @@ declare const SysSsoProvider: Omit<{
54385
54414
  summary: string;
54386
54415
  type?: string | undefined;
54387
54416
  }[] | undefined;
54417
+ nameField?: string | undefined;
54388
54418
  displayNameField?: string | undefined;
54389
54419
  recordName?: {
54390
54420
  type: "text" | "autonumber";
@@ -54870,6 +54900,7 @@ declare const SysSsoProvider: Omit<{
54870
54900
  };
54871
54901
  readonly description: "External SSO identity providers (OIDC / SAML) this environment federates login to";
54872
54902
  readonly displayNameField: "provider_id";
54903
+ readonly nameField: "provider_id";
54873
54904
  readonly titleFormat: "{provider_id}";
54874
54905
  readonly compactLayout: ["provider_id", "issuer", "domain"];
54875
54906
  readonly actions: [{
@@ -57366,6 +57397,7 @@ declare const SysScimProvider: Omit<{
57366
57397
  summary: string;
57367
57398
  type?: string | undefined;
57368
57399
  }[] | undefined;
57400
+ nameField?: string | undefined;
57369
57401
  displayNameField?: string | undefined;
57370
57402
  recordName?: {
57371
57403
  type: "text" | "autonumber";
@@ -57846,6 +57878,7 @@ declare const SysScimProvider: Omit<{
57846
57878
  };
57847
57879
  readonly description: "SCIM 2.0 connections (bearer tokens) external IdPs use to provision/deprovision this environment's users";
57848
57880
  readonly displayNameField: "provider_id";
57881
+ readonly nameField: "provider_id";
57849
57882
  readonly titleFormat: "{provider_id}";
57850
57883
  readonly compactLayout: ["provider_id", "organization_id"];
57851
57884
  readonly listViews: {
@@ -18,6 +18,8 @@ var SysUser = data.ObjectSchema.create({
18
18
  },
19
19
  description: "User accounts for authentication",
20
20
  displayNameField: "name",
21
+ nameField: "name",
22
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
21
23
  titleFormat: "{name}",
22
24
  compactLayout: ["name", "email", "email_verified"],
23
25
  // Custom actions — generic CRUD is suppressed because user accounts are
@@ -542,6 +544,8 @@ var SysSession = data.ObjectSchema.create({
542
544
  },
543
545
  description: "Active user sessions",
544
546
  displayNameField: "user_id",
547
+ nameField: "user_id",
548
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
545
549
  titleFormat: "Session \u2014 {user_id}",
546
550
  compactLayout: ["user_id", "ip_address", "expires_at"],
547
551
  // Custom actions — sessions are managed by better-auth (generic CRUD
@@ -988,6 +992,8 @@ var SysOrganization = data.ObjectSchema.create({
988
992
  },
989
993
  description: "Organizations for multi-tenant grouping",
990
994
  displayNameField: "name",
995
+ nameField: "name",
996
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
991
997
  titleFormat: "{name}",
992
998
  compactLayout: ["name", "slug"],
993
999
  // Custom actions — generic CRUD is suppressed (better-auth-managed),
@@ -1610,6 +1616,8 @@ var SysTeam = data.ObjectSchema.create({
1610
1616
  },
1611
1617
  description: "Teams within organizations for fine-grained grouping",
1612
1618
  displayNameField: "name",
1619
+ nameField: "name",
1620
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
1613
1621
  titleFormat: "{name}",
1614
1622
  compactLayout: ["name", "organization_id"],
1615
1623
  // Custom actions calling better-auth's team endpoints. Generic CRUD is
@@ -1856,6 +1864,8 @@ var SysBusinessUnit = data.ObjectSchema.create({
1856
1864
  managedBy: "platform",
1857
1865
  description: "Canonical Business Unit tree \u2014 hierarchical org/data-partition node (company / division / department / region / office). ADR-0057 D2.",
1858
1866
  displayNameField: "name",
1867
+ nameField: "name",
1868
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
1859
1869
  titleFormat: "{name}",
1860
1870
  compactLayout: ["name", "kind", "parent_business_unit_id", "manager_user_id"],
1861
1871
  listViews: {
@@ -2129,6 +2139,8 @@ var SysApiKey = data.ObjectSchema.create({
2129
2139
  },
2130
2140
  description: "API keys for programmatic access",
2131
2141
  displayNameField: "name",
2142
+ nameField: "name",
2143
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
2132
2144
  titleFormat: "{name}",
2133
2145
  compactLayout: ["name", "prefix", "user_id", "expires_at", "revoked"],
2134
2146
  // Custom actions — sys_api_key is managed-by 'better-auth' but the
@@ -2472,6 +2484,8 @@ var SysDeviceCode = data.ObjectSchema.create({
2472
2484
  docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
2473
2485
  },
2474
2486
  description: "OAuth 2.0 Device Authorization Grant (RFC 8628) pending requests",
2487
+ nameField: "user_code",
2488
+ // [ADR-0079] canonical primary-title pointer (single-field titleFormat)
2475
2489
  titleFormat: "{user_code}",
2476
2490
  compactLayout: ["user_code", "status", "client_id", "expires_at"],
2477
2491
  fields: {
@@ -2565,6 +2579,8 @@ var SysUserPreference = data.ObjectSchema.create({
2565
2579
  // surface in Setup is a support/diagnostic view only.
2566
2580
  managedBy: "system",
2567
2581
  description: "Per-user key-value preferences (theme, locale, etc.)",
2582
+ nameField: "key",
2583
+ // [ADR-0079] canonical primary-title pointer (single-field titleFormat)
2568
2584
  titleFormat: "{key}",
2569
2585
  compactLayout: ["user_id", "key"],
2570
2586
  listViews: {
@@ -2660,6 +2676,8 @@ var SysOauthApplication = data.ObjectSchema.create({
2660
2676
  },
2661
2677
  description: "Registered OAuth/OIDC client applications",
2662
2678
  displayNameField: "name",
2679
+ nameField: "name",
2680
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
2663
2681
  titleFormat: "{name}",
2664
2682
  compactLayout: ["name", "client_id", "type", "disabled"],
2665
2683
  // Custom actions — all OAuth-application mutations are routed through
@@ -3375,6 +3393,8 @@ var SysSsoProvider = data.ObjectSchema.create({
3375
3393
  },
3376
3394
  description: "External SSO identity providers (OIDC / SAML) this environment federates login to",
3377
3395
  displayNameField: "provider_id",
3396
+ nameField: "provider_id",
3397
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
3378
3398
  titleFormat: "{provider_id}",
3379
3399
  compactLayout: ["provider_id", "issuer", "domain"],
3380
3400
  // All mutations go through @better-auth/sso's endpoints under
@@ -3615,6 +3635,8 @@ var SysScimProvider = data.ObjectSchema.create({
3615
3635
  },
3616
3636
  description: "SCIM 2.0 connections (bearer tokens) external IdPs use to provision/deprovision this environment's users",
3617
3637
  displayNameField: "provider_id",
3638
+ nameField: "provider_id",
3639
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
3618
3640
  titleFormat: "{provider_id}",
3619
3641
  compactLayout: ["provider_id", "organization_id"],
3620
3642
  listViews: {