@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.js CHANGED
@@ -20,6 +20,8 @@ var SysUser = data.ObjectSchema.create({
20
20
  },
21
21
  description: "User accounts for authentication",
22
22
  displayNameField: "name",
23
+ nameField: "name",
24
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
23
25
  titleFormat: "{name}",
24
26
  compactLayout: ["name", "email", "email_verified"],
25
27
  // Custom actions — generic CRUD is suppressed because user accounts are
@@ -544,6 +546,8 @@ var SysSession = data.ObjectSchema.create({
544
546
  },
545
547
  description: "Active user sessions",
546
548
  displayNameField: "user_id",
549
+ nameField: "user_id",
550
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
547
551
  titleFormat: "Session \u2014 {user_id}",
548
552
  compactLayout: ["user_id", "ip_address", "expires_at"],
549
553
  // Custom actions — sessions are managed by better-auth (generic CRUD
@@ -990,6 +994,8 @@ var SysOrganization = data.ObjectSchema.create({
990
994
  },
991
995
  description: "Organizations for multi-tenant grouping",
992
996
  displayNameField: "name",
997
+ nameField: "name",
998
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
993
999
  titleFormat: "{name}",
994
1000
  compactLayout: ["name", "slug"],
995
1001
  // Custom actions — generic CRUD is suppressed (better-auth-managed),
@@ -1612,6 +1618,8 @@ var SysTeam = data.ObjectSchema.create({
1612
1618
  },
1613
1619
  description: "Teams within organizations for fine-grained grouping",
1614
1620
  displayNameField: "name",
1621
+ nameField: "name",
1622
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
1615
1623
  titleFormat: "{name}",
1616
1624
  compactLayout: ["name", "organization_id"],
1617
1625
  // Custom actions calling better-auth's team endpoints. Generic CRUD is
@@ -1858,6 +1866,8 @@ var SysBusinessUnit = data.ObjectSchema.create({
1858
1866
  managedBy: "platform",
1859
1867
  description: "Canonical Business Unit tree \u2014 hierarchical org/data-partition node (company / division / department / region / office). ADR-0057 D2.",
1860
1868
  displayNameField: "name",
1869
+ nameField: "name",
1870
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
1861
1871
  titleFormat: "{name}",
1862
1872
  compactLayout: ["name", "kind", "parent_business_unit_id", "manager_user_id"],
1863
1873
  listViews: {
@@ -2131,6 +2141,8 @@ var SysApiKey = data.ObjectSchema.create({
2131
2141
  },
2132
2142
  description: "API keys for programmatic access",
2133
2143
  displayNameField: "name",
2144
+ nameField: "name",
2145
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
2134
2146
  titleFormat: "{name}",
2135
2147
  compactLayout: ["name", "prefix", "user_id", "expires_at", "revoked"],
2136
2148
  // Custom actions — sys_api_key is managed-by 'better-auth' but the
@@ -2474,6 +2486,8 @@ var SysDeviceCode = data.ObjectSchema.create({
2474
2486
  docsUrl: "https://docs.objectstack.ai/adr/0010-metadata-protection"
2475
2487
  },
2476
2488
  description: "OAuth 2.0 Device Authorization Grant (RFC 8628) pending requests",
2489
+ nameField: "user_code",
2490
+ // [ADR-0079] canonical primary-title pointer (single-field titleFormat)
2477
2491
  titleFormat: "{user_code}",
2478
2492
  compactLayout: ["user_code", "status", "client_id", "expires_at"],
2479
2493
  fields: {
@@ -2567,6 +2581,8 @@ var SysUserPreference = data.ObjectSchema.create({
2567
2581
  // surface in Setup is a support/diagnostic view only.
2568
2582
  managedBy: "system",
2569
2583
  description: "Per-user key-value preferences (theme, locale, etc.)",
2584
+ nameField: "key",
2585
+ // [ADR-0079] canonical primary-title pointer (single-field titleFormat)
2570
2586
  titleFormat: "{key}",
2571
2587
  compactLayout: ["user_id", "key"],
2572
2588
  listViews: {
@@ -2662,6 +2678,8 @@ var SysOauthApplication = data.ObjectSchema.create({
2662
2678
  },
2663
2679
  description: "Registered OAuth/OIDC client applications",
2664
2680
  displayNameField: "name",
2681
+ nameField: "name",
2682
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
2665
2683
  titleFormat: "{name}",
2666
2684
  compactLayout: ["name", "client_id", "type", "disabled"],
2667
2685
  // Custom actions — all OAuth-application mutations are routed through
@@ -3377,6 +3395,8 @@ var SysSsoProvider = data.ObjectSchema.create({
3377
3395
  },
3378
3396
  description: "External SSO identity providers (OIDC / SAML) this environment federates login to",
3379
3397
  displayNameField: "provider_id",
3398
+ nameField: "provider_id",
3399
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
3380
3400
  titleFormat: "{provider_id}",
3381
3401
  compactLayout: ["provider_id", "issuer", "domain"],
3382
3402
  // All mutations go through @better-auth/sso's endpoints under
@@ -3617,6 +3637,8 @@ var SysScimProvider = data.ObjectSchema.create({
3617
3637
  },
3618
3638
  description: "SCIM 2.0 connections (bearer tokens) external IdPs use to provision/deprovision this environment's users",
3619
3639
  displayNameField: "provider_id",
3640
+ nameField: "provider_id",
3641
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
3620
3642
  titleFormat: "{provider_id}",
3621
3643
  compactLayout: ["provider_id", "organization_id"],
3622
3644
  listViews: {
@@ -3691,6 +3713,8 @@ var SysNotification = data.ObjectSchema.create({
3691
3713
  managedBy: "system",
3692
3714
  description: "Notification events \u2014 one row per emit() (ADR-0030 Layer 2 ingress)",
3693
3715
  displayNameField: "topic",
3716
+ nameField: "topic",
3717
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
3694
3718
  titleFormat: "{topic}",
3695
3719
  compactLayout: ["topic", "severity", "source_object", "created_at"],
3696
3720
  listViews: {
@@ -3917,6 +3941,8 @@ var SysEmail = data.ObjectSchema.create({
3917
3941
  managedBy: "append-only",
3918
3942
  description: "Outbound email delivery log",
3919
3943
  displayNameField: "subject",
3944
+ nameField: "subject",
3945
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
3920
3946
  titleFormat: "{subject}",
3921
3947
  compactLayout: ["subject", "to", "status", "sent_at"],
3922
3948
  fields: {
@@ -4065,6 +4091,8 @@ var SysEmailTemplate = data.ObjectSchema.create({
4065
4091
  managedBy: "config",
4066
4092
  description: "Outbound email template (subject + body + variables) resolved by name+locale",
4067
4093
  displayNameField: "label",
4094
+ nameField: "label",
4095
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4068
4096
  titleFormat: "{label}",
4069
4097
  compactLayout: ["name", "label", "category", "locale", "active"],
4070
4098
  fields: {
@@ -4201,6 +4229,8 @@ var SysSavedReport = data.ObjectSchema.create({
4201
4229
  managedBy: "platform",
4202
4230
  description: "Persisted ObjectQL report definition \u2014 re-runnable and schedulable",
4203
4231
  displayNameField: "name",
4232
+ nameField: "name",
4233
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4204
4234
  titleFormat: "{name}",
4205
4235
  compactLayout: ["name", "object_name", "format", "owner_id", "updated_at"],
4206
4236
  fields: {
@@ -4419,6 +4449,8 @@ var SysJob = data.ObjectSchema.create({
4419
4449
  managedBy: "system",
4420
4450
  description: "Catalogue of registered background jobs",
4421
4451
  displayNameField: "name",
4452
+ nameField: "name",
4453
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4422
4454
  titleFormat: "{name}",
4423
4455
  compactLayout: ["name", "schedule_type", "active", "last_run_at", "last_status"],
4424
4456
  fields: {
@@ -4487,6 +4519,8 @@ var SysJobRun = data.ObjectSchema.create({
4487
4519
  managedBy: "append-only",
4488
4520
  description: "Background job execution audit trail",
4489
4521
  displayNameField: "job_name",
4522
+ nameField: "job_name",
4523
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4490
4524
  titleFormat: "{job_name} @ {started_at}",
4491
4525
  compactLayout: ["job_name", "status", "started_at", "duration_ms", "attempt"],
4492
4526
  fields: {
@@ -4539,6 +4573,8 @@ var SysJobQueue = data.ObjectSchema.create({
4539
4573
  managedBy: "system",
4540
4574
  description: "Durable job/message queue including dead letters",
4541
4575
  displayNameField: "queue",
4576
+ nameField: "queue",
4577
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4542
4578
  titleFormat: "{queue} #{id}",
4543
4579
  compactLayout: ["queue", "status", "attempts", "scheduled_for", "last_error"],
4544
4580
  fields: {
@@ -4649,6 +4685,8 @@ var SysSetting = data.ObjectSchema.create({
4649
4685
  managedBy: "system",
4650
4686
  description: "Generic K/V store backing the SettingsManifest contract.",
4651
4687
  displayNameField: "key",
4688
+ nameField: "key",
4689
+ // [ADR-0079] canonical primary-title pointer (mirrors deprecated displayNameField)
4652
4690
  titleFormat: "{namespace}.{key}",
4653
4691
  compactLayout: ["namespace", "key", "scope", "updated_at"],
4654
4692
  listViews: {