@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.
package/dist/index.mjs CHANGED
@@ -18,6 +18,8 @@ var SysUser = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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: {
@@ -3689,6 +3711,8 @@ var SysNotification = ObjectSchema.create({
3689
3711
  managedBy: "system",
3690
3712
  description: "Notification events \u2014 one row per emit() (ADR-0030 Layer 2 ingress)",
3691
3713
  displayNameField: "topic",
3714
+ nameField: "topic",
3715
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
3692
3716
  titleFormat: "{topic}",
3693
3717
  compactLayout: ["topic", "severity", "source_object", "created_at"],
3694
3718
  listViews: {
@@ -3915,6 +3939,8 @@ var SysEmail = ObjectSchema.create({
3915
3939
  managedBy: "append-only",
3916
3940
  description: "Outbound email delivery log",
3917
3941
  displayNameField: "subject",
3942
+ nameField: "subject",
3943
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
3918
3944
  titleFormat: "{subject}",
3919
3945
  compactLayout: ["subject", "to", "status", "sent_at"],
3920
3946
  fields: {
@@ -4063,6 +4089,8 @@ var SysEmailTemplate = ObjectSchema.create({
4063
4089
  managedBy: "config",
4064
4090
  description: "Outbound email template (subject + body + variables) resolved by name+locale",
4065
4091
  displayNameField: "label",
4092
+ nameField: "label",
4093
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4066
4094
  titleFormat: "{label}",
4067
4095
  compactLayout: ["name", "label", "category", "locale", "active"],
4068
4096
  fields: {
@@ -4199,6 +4227,8 @@ var SysSavedReport = ObjectSchema.create({
4199
4227
  managedBy: "platform",
4200
4228
  description: "Persisted ObjectQL report definition \u2014 re-runnable and schedulable",
4201
4229
  displayNameField: "name",
4230
+ nameField: "name",
4231
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4202
4232
  titleFormat: "{name}",
4203
4233
  compactLayout: ["name", "object_name", "format", "owner_id", "updated_at"],
4204
4234
  fields: {
@@ -4417,6 +4447,8 @@ var SysJob = ObjectSchema.create({
4417
4447
  managedBy: "system",
4418
4448
  description: "Catalogue of registered background jobs",
4419
4449
  displayNameField: "name",
4450
+ nameField: "name",
4451
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4420
4452
  titleFormat: "{name}",
4421
4453
  compactLayout: ["name", "schedule_type", "active", "last_run_at", "last_status"],
4422
4454
  fields: {
@@ -4485,6 +4517,8 @@ var SysJobRun = ObjectSchema.create({
4485
4517
  managedBy: "append-only",
4486
4518
  description: "Background job execution audit trail",
4487
4519
  displayNameField: "job_name",
4520
+ nameField: "job_name",
4521
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4488
4522
  titleFormat: "{job_name} @ {started_at}",
4489
4523
  compactLayout: ["job_name", "status", "started_at", "duration_ms", "attempt"],
4490
4524
  fields: {
@@ -4537,6 +4571,8 @@ var SysJobQueue = ObjectSchema.create({
4537
4571
  managedBy: "system",
4538
4572
  description: "Durable job/message queue including dead letters",
4539
4573
  displayNameField: "queue",
4574
+ nameField: "queue",
4575
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4540
4576
  titleFormat: "{queue} #{id}",
4541
4577
  compactLayout: ["queue", "status", "attempts", "scheduled_for", "last_error"],
4542
4578
  fields: {
@@ -4647,6 +4683,8 @@ var SysSetting = ObjectSchema.create({
4647
4683
  managedBy: "system",
4648
4684
  description: "Generic K/V store backing the SettingsManifest contract.",
4649
4685
  displayNameField: "key",
4686
+ nameField: "key",
4687
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4650
4688
  titleFormat: "{namespace}.{key}",
4651
4689
  compactLayout: ["namespace", "key", "scope", "updated_at"],
4652
4690
  listViews: {