@objectstack/platform-objects 7.5.0 → 7.7.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
@@ -1,4 +1,5 @@
1
1
  import { ObjectSchema, Field } from '@objectstack/spec/data';
2
+ export { SysMetadata, SysMetadataAuditObject, SysMetadataHistoryObject, SysMetadataObject, SysViewDefinitionObject } from '@objectstack/metadata-core';
2
3
  import { Dashboard } from '@objectstack/spec/ui';
3
4
 
4
5
  // src/identity/sys-user.object.ts
@@ -408,17 +409,11 @@ var SysUser = ObjectSchema.create({
408
409
  apiMethods: ["get", "list", "create", "update", "delete"],
409
410
  trash: true,
410
411
  mru: true
411
- },
412
- validations: [
413
- {
414
- name: "email_unique",
415
- type: "unique",
416
- severity: "error",
417
- message: "Email must be unique",
418
- fields: ["email"],
419
- caseSensitive: false
420
- }
421
- ]
412
+ }
413
+ // Email uniqueness is enforced by the unique index above (and better-auth's
414
+ // managed user table). A declarative `unique` validation rule is intentionally
415
+ // not used — uniqueness needs a DB lookup, not a synchronous validation, so it
416
+ // is not one of the declarable validation-rule types.
422
417
  });
423
418
  var SysSession = ObjectSchema.create({
424
419
  name: "sys_session",
@@ -4072,590 +4067,6 @@ var SysJobQueue = ObjectSchema.create({
4072
4067
  { fields: ["status"] }
4073
4068
  ]
4074
4069
  });
4075
- var SysMetadataObject = ObjectSchema.create({
4076
- name: "sys_metadata",
4077
- label: "System Metadata",
4078
- pluralLabel: "System Metadata",
4079
- icon: "settings",
4080
- isSystem: true,
4081
- // managedBy: 'system' — the metadata table backs every other config
4082
- // object. Writing rows directly here bypasses the typed Zod APIs and
4083
- // would let an admin inject malformed payloads. The "All Metadata"
4084
- // menu is therefore a read-only debug surface (Export only); typed
4085
- // edits flow through the dedicated per-type pages (Approval Process,
4086
- // Sharing Rule, etc.).
4087
- managedBy: "system",
4088
- description: "Stores platform and user-scope metadata records (objects, views, flows, etc.)",
4089
- fields: {
4090
- /** Primary Key (UUID) */
4091
- id: Field.text({
4092
- label: "ID",
4093
- required: true,
4094
- readonly: true
4095
- }),
4096
- /** Machine name — unique identifier used in code references */
4097
- name: Field.text({
4098
- label: "Name",
4099
- required: true,
4100
- searchable: true,
4101
- maxLength: 255
4102
- }),
4103
- /** Metadata type (e.g. "object", "view", "flow") */
4104
- type: Field.text({
4105
- label: "Metadata Type",
4106
- required: true,
4107
- searchable: true,
4108
- maxLength: 100
4109
- }),
4110
- /** Namespace / module grouping (e.g. "crm", "core") */
4111
- namespace: Field.text({
4112
- label: "Namespace",
4113
- required: false,
4114
- defaultValue: "default",
4115
- maxLength: 100
4116
- }),
4117
- /** Package that owns/delivered this metadata (legacy string identifier, kept for compat) */
4118
- package_id: Field.text({
4119
- label: "Package ID",
4120
- required: false,
4121
- maxLength: 255,
4122
- description: "Legacy package manifest ID string. Use package_version_id for new records."
4123
- }),
4124
- /**
4125
- * FK → sys_package_version (UUID). Set for metadata that belongs to a specific
4126
- * package release snapshot. NULL = platform-built-in or environment override.
4127
- */
4128
- package_version_id: Field.lookup("sys_package_version", {
4129
- label: "Package Version",
4130
- required: false,
4131
- description: "Foreign key to sys_package_version (UUID). Null = platform-built-in or env-level override."
4132
- }),
4133
- /** Who manages this record: package, platform, or user */
4134
- managed_by: Field.select(["package", "platform", "user"], {
4135
- label: "Managed By",
4136
- required: false
4137
- }),
4138
- /** Scope: system (code), platform (admin DB), user (personal DB) */
4139
- scope: Field.select(["system", "platform", "user"], {
4140
- label: "Scope",
4141
- required: true,
4142
- defaultValue: "platform"
4143
- }),
4144
- /** JSON payload — the actual metadata configuration */
4145
- metadata: Field.textarea({
4146
- label: "Metadata",
4147
- required: true,
4148
- description: "JSON-serialized metadata payload"
4149
- }),
4150
- /** Parent metadata name for extension/override */
4151
- extends: Field.text({
4152
- label: "Extends",
4153
- required: false,
4154
- maxLength: 255
4155
- }),
4156
- /** Merge strategy when extending parent metadata */
4157
- strategy: Field.select(["merge", "replace"], {
4158
- label: "Strategy",
4159
- required: false,
4160
- defaultValue: "merge"
4161
- }),
4162
- /** Owner user ID (for user-scope items) */
4163
- owner: Field.text({
4164
- label: "Owner",
4165
- required: false,
4166
- maxLength: 255
4167
- }),
4168
- /** Lifecycle state */
4169
- state: Field.select(["draft", "active", "archived", "deprecated"], {
4170
- label: "State",
4171
- required: false,
4172
- defaultValue: "active"
4173
- }),
4174
- /** Organization ID for multi-tenant isolation */
4175
- organization_id: Field.lookup("sys_organization", {
4176
- label: "Organization",
4177
- required: false,
4178
- description: "Organization for multi-tenant isolation."
4179
- }),
4180
- /**
4181
- * @deprecated ADR-0005 (revised 2026-05): per-env DBs replace per-project
4182
- * isolation. `environment_id` is no longer written by saveMetaItem and not
4183
- * consulted by overlay reads. Kept for legacy rows; new writes leave it
4184
- * NULL. Will be dropped in a future schema migration.
4185
- */
4186
- environment_id: Field.lookup("sys_environment", {
4187
- label: "Environment (deprecated)",
4188
- required: false,
4189
- description: "DEPRECATED. Use organization_id for tenant isolation."
4190
- }),
4191
- /** Version number for optimistic concurrency */
4192
- version: Field.number({
4193
- label: "Version",
4194
- required: false,
4195
- defaultValue: 1
4196
- }),
4197
- /** Content checksum for change detection (e.g. `sha256:<64 hex>` = 71 chars) */
4198
- checksum: Field.text({
4199
- label: "Checksum",
4200
- required: false,
4201
- maxLength: 71
4202
- }),
4203
- /** Origin of this metadata record */
4204
- source: Field.select(["filesystem", "database", "api", "migration"], {
4205
- label: "Source",
4206
- required: false
4207
- }),
4208
- /** Classification tags (JSON array) */
4209
- tags: Field.textarea({
4210
- label: "Tags",
4211
- required: false,
4212
- description: "JSON-serialized array of classification tags"
4213
- }),
4214
- /** Audit fields */
4215
- created_by: Field.lookup("sys_user", {
4216
- label: "Created By",
4217
- required: false,
4218
- readonly: true
4219
- }),
4220
- created_at: Field.datetime({
4221
- label: "Created At",
4222
- required: false,
4223
- readonly: true
4224
- }),
4225
- updated_by: Field.lookup("sys_user", {
4226
- label: "Updated By",
4227
- required: false
4228
- }),
4229
- updated_at: Field.datetime({
4230
- label: "Updated At",
4231
- required: false
4232
- })
4233
- },
4234
- indexes: [
4235
- // ADR-0005 (revised 2026-05): overlay uniqueness is scoped by
4236
- // (type, name, organization_id), restricted to active rows so resets
4237
- // / archived versions don't collide. environment_id is deprecated and
4238
- // not part of the discriminator. The runtime layer (protocol.ts
4239
- // ensureOverlayIndex) issues a DROP-then-CREATE migration to
4240
- // replace any pre-existing legacy composite index in-place.
4241
- {
4242
- name: "idx_sys_metadata_overlay_active",
4243
- fields: ["type", "name", "organization_id"],
4244
- unique: true,
4245
- partial: "state = 'active'"
4246
- },
4247
- { name: "idx_sys_metadata_org_type", fields: ["organization_id", "type"] },
4248
- { fields: ["type", "scope"] },
4249
- { fields: ["package_version_id"] },
4250
- { fields: ["state"] },
4251
- { fields: ["namespace"] }
4252
- ],
4253
- enable: {
4254
- trackHistory: true,
4255
- searchable: false,
4256
- apiEnabled: true,
4257
- apiMethods: ["get", "list", "create", "update", "delete"],
4258
- trash: false
4259
- },
4260
- // Named list views — power the Setup App "Data Model" group so admins
4261
- // can browse object/field metadata in a typed grid instead of the raw
4262
- // `All Metadata` debug surface. Each entry pre-filters by `type` and
4263
- // shows the columns that matter for that type. The dedicated visual
4264
- // designer (objectui's <ObjectManager> / <FieldDesigner>) deep-links
4265
- // from the row's `Edit in Designer` action; the grid stays useful for
4266
- // search, audit (state / updated_at) and triage.
4267
- listViews: {
4268
- only_objects: {
4269
- type: "grid",
4270
- name: "only_objects",
4271
- label: "Objects",
4272
- data: { provider: "object", object: "sys_metadata" },
4273
- columns: ["name", "namespace", "scope", "managed_by", "state", "updated_at"],
4274
- filter: [{ field: "type", operator: "equals", value: "object" }],
4275
- sort: [{ field: "name", order: "asc" }],
4276
- pagination: { pageSize: 50 }
4277
- },
4278
- only_fields: {
4279
- type: "grid",
4280
- name: "only_fields",
4281
- label: "Fields",
4282
- data: { provider: "object", object: "sys_metadata" },
4283
- columns: ["name", "namespace", "scope", "managed_by", "state", "updated_at"],
4284
- filter: [{ field: "type", operator: "equals", value: "field" }],
4285
- sort: [{ field: "name", order: "asc" }],
4286
- pagination: { pageSize: 50 }
4287
- },
4288
- all_metadata: {
4289
- type: "grid",
4290
- name: "all_metadata",
4291
- label: "All",
4292
- data: { provider: "object", object: "sys_metadata" },
4293
- columns: ["name", "type", "namespace", "scope", "state", "updated_at"],
4294
- sort: [{ field: "updated_at", order: "desc" }],
4295
- pagination: { pageSize: 50 }
4296
- }
4297
- }
4298
- });
4299
- var SysMetadataHistoryObject = ObjectSchema.create({
4300
- name: "sys_metadata_history",
4301
- label: "Metadata History",
4302
- pluralLabel: "Metadata History",
4303
- icon: "history",
4304
- isSystem: true,
4305
- managedBy: "system",
4306
- description: "Durable event log of metadata overlay changes (per-org, append-only)",
4307
- fields: {
4308
- /** Primary Key (UUID) */
4309
- id: Field.text({
4310
- label: "ID",
4311
- required: true,
4312
- readonly: true
4313
- }),
4314
- /** Per-org monotonic event sequence (durable cursor for replay). */
4315
- event_seq: Field.number({
4316
- label: "Event Seq",
4317
- required: true,
4318
- readonly: true,
4319
- description: "Per-organization monotonic event log cursor."
4320
- }),
4321
- /** Machine name (denormalized for easier querying) */
4322
- name: Field.text({
4323
- label: "Name",
4324
- required: true,
4325
- searchable: true,
4326
- readonly: true,
4327
- maxLength: 255
4328
- }),
4329
- /** Metadata type (denormalized for easier querying) */
4330
- type: Field.text({
4331
- label: "Metadata Type",
4332
- required: true,
4333
- searchable: true,
4334
- readonly: true,
4335
- maxLength: 100
4336
- }),
4337
- /** Per-(org,type,name) lineage counter at this snapshot. */
4338
- version: Field.number({
4339
- label: "Version",
4340
- required: true,
4341
- readonly: true
4342
- }),
4343
- /** Type of operation that created this history entry */
4344
- operation_type: Field.select(["create", "update", "publish", "revert", "delete"], {
4345
- label: "Operation Type",
4346
- required: true,
4347
- readonly: true
4348
- }),
4349
- /**
4350
- * Historical metadata snapshot (JSON payload).
4351
- * Null for `operation_type = 'delete'` — the row carries no body.
4352
- */
4353
- metadata: Field.textarea({
4354
- label: "Metadata",
4355
- required: false,
4356
- readonly: true,
4357
- description: "JSON-serialized metadata snapshot at this version (null for deletes)."
4358
- }),
4359
- /** SHA-256 checksum of metadata content (null for deletes). */
4360
- checksum: Field.text({
4361
- label: "Checksum",
4362
- required: false,
4363
- readonly: true,
4364
- maxLength: 80
4365
- }),
4366
- /** Checksum of the previous version (null for the first event). */
4367
- previous_checksum: Field.text({
4368
- label: "Previous Checksum",
4369
- required: false,
4370
- readonly: true,
4371
- maxLength: 80
4372
- }),
4373
- /** Human-readable description of changes (= MetadataEvent.message). */
4374
- change_note: Field.textarea({
4375
- label: "Change Note",
4376
- required: false,
4377
- readonly: true,
4378
- description: "Description of what changed in this version."
4379
- }),
4380
- /**
4381
- * Producer of the event ('sys-metadata-repo', 'fs', 'studio',
4382
- * 'api', …). Defaults to 'sys-metadata-repo' on the canonical
4383
- * write path; preserved on history() reads as MetadataEvent.source.
4384
- */
4385
- source: Field.text({
4386
- label: "Source",
4387
- required: false,
4388
- readonly: true,
4389
- maxLength: 64
4390
- }),
4391
- /** Organization ID for multi-tenant isolation */
4392
- organization_id: Field.lookup("sys_organization", {
4393
- label: "Organization",
4394
- required: false,
4395
- readonly: true,
4396
- description: "Organization for multi-tenant isolation."
4397
- }),
4398
- /** User who made this change (= MetadataEvent.actor). */
4399
- recorded_by: Field.lookup("sys_user", {
4400
- label: "Recorded By",
4401
- required: false,
4402
- readonly: true
4403
- }),
4404
- /** When was this version recorded */
4405
- recorded_at: Field.datetime({
4406
- label: "Recorded At",
4407
- required: true,
4408
- readonly: true
4409
- })
4410
- },
4411
- indexes: [
4412
- { fields: ["organization_id", "event_seq"], unique: true },
4413
- { fields: ["organization_id", "type", "name", "version"], unique: true },
4414
- { fields: ["organization_id", "type", "name", "recorded_at"] },
4415
- // ADR-0009: getByHash() lookup — execution-pinned types resolve a
4416
- // historical body by content hash via this index.
4417
- { fields: ["organization_id", "type", "name", "checksum"] },
4418
- { fields: ["type", "name"] },
4419
- { fields: ["recorded_at"] },
4420
- { fields: ["operation_type"] }
4421
- ],
4422
- enable: {
4423
- trackHistory: false,
4424
- searchable: false,
4425
- apiEnabled: true,
4426
- apiMethods: ["get", "list"],
4427
- trash: false
4428
- }
4429
- });
4430
- var SysMetadataAuditObject = ObjectSchema.create({
4431
- name: "sys_metadata_audit",
4432
- label: "Metadata Audit",
4433
- pluralLabel: "Metadata Audit",
4434
- icon: "shield-check",
4435
- isSystem: true,
4436
- managedBy: "append-only",
4437
- description: "Append-only audit trail of metadata write decisions (ADR-0010).",
4438
- fields: {
4439
- /** Primary Key (UUID) */
4440
- id: Field.text({
4441
- label: "ID",
4442
- required: true,
4443
- readonly: true
4444
- }),
4445
- /** When the decision was made (ISO-8601 UTC). */
4446
- occurred_at: Field.datetime({
4447
- label: "Occurred At",
4448
- required: true,
4449
- readonly: true
4450
- }),
4451
- /** Acting principal (user id, system id, or 'system'). */
4452
- actor: Field.text({
4453
- label: "Actor",
4454
- required: true,
4455
- readonly: true,
4456
- maxLength: 255,
4457
- description: 'Acting principal \u2014 user id, system id, or "system".'
4458
- }),
4459
- /** Code path that produced the decision (e.g. `protocol.saveMetaItem`). */
4460
- source: Field.text({
4461
- label: "Source",
4462
- required: false,
4463
- readonly: true,
4464
- maxLength: 128
4465
- }),
4466
- /** Metadata type (singular, e.g. `app`, `object`, `view`). */
4467
- type: Field.text({
4468
- label: "Metadata Type",
4469
- required: true,
4470
- readonly: true,
4471
- searchable: true,
4472
- maxLength: 100
4473
- }),
4474
- /** Item machine name. */
4475
- name: Field.text({
4476
- label: "Name",
4477
- required: true,
4478
- readonly: true,
4479
- searchable: true,
4480
- maxLength: 255
4481
- }),
4482
- /** Organization for multi-tenant filtering. NULL for env-wide writes. */
4483
- organization_id: Field.lookup("sys_organization", {
4484
- label: "Organization",
4485
- required: false,
4486
- readonly: true
4487
- }),
4488
- /** Operation kind. */
4489
- operation: Field.select(["save", "publish", "rollback", "delete", "reset"], {
4490
- label: "Operation",
4491
- required: true,
4492
- readonly: true
4493
- }),
4494
- /** Decision outcome — allowed, denied (refused), or forced (bypassed via override). */
4495
- outcome: Field.select(["allowed", "denied", "forced"], {
4496
- label: "Outcome",
4497
- required: true,
4498
- readonly: true
4499
- }),
4500
- /**
4501
- * Machine-readable code for the decision:
4502
- * - on `allowed`: `'ok'`
4503
- * - on `denied`: `'not_overridable'` | `'not_creatable'` |
4504
- * `'item_locked'` | `'invalid_metadata'` | `'destructive_change'` |
4505
- * `'metadata_conflict'`
4506
- * - on `forced`: `'lock_override'` (Phase 3)
4507
- */
4508
- code: Field.text({
4509
- label: "Code",
4510
- required: true,
4511
- readonly: true,
4512
- maxLength: 64
4513
- }),
4514
- /**
4515
- * Lock state observed at the time of the decision (`none` if the
4516
- * item carried no `_lock`). Captured even on `allowed` rows so
4517
- * later compliance queries can see "what was the lock state when
4518
- * this write succeeded".
4519
- */
4520
- lock_state: Field.select(["none", "no-overlay", "no-delete", "full"], {
4521
- label: "Lock State",
4522
- required: false,
4523
- readonly: true
4524
- }),
4525
- /** True when the write succeeded by bypassing a lock (Phase 3). */
4526
- lock_overridden: Field.boolean({
4527
- label: "Lock Overridden",
4528
- required: false,
4529
- readonly: true
4530
- }),
4531
- /** Optional request correlation id for tracing. */
4532
- request_id: Field.text({
4533
- label: "Request ID",
4534
- required: false,
4535
- readonly: true,
4536
- maxLength: 128
4537
- }),
4538
- /** Optional free-form context (e.g. brief diff summary). */
4539
- note: Field.textarea({
4540
- label: "Note",
4541
- required: false,
4542
- readonly: true
4543
- })
4544
- },
4545
- indexes: [
4546
- { fields: ["organization_id", "occurred_at"] },
4547
- { fields: ["type", "name", "occurred_at"] },
4548
- { fields: ["actor", "occurred_at"] },
4549
- { fields: ["outcome"] }
4550
- ],
4551
- enable: {
4552
- trackHistory: false,
4553
- searchable: false,
4554
- apiEnabled: true,
4555
- apiMethods: ["get", "list"],
4556
- trash: false
4557
- }
4558
- });
4559
- var SysViewDefinitionObject = ObjectSchema.create({
4560
- name: "sys_view_definition",
4561
- label: "View Definition",
4562
- pluralLabel: "View Definitions",
4563
- icon: "layout-grid",
4564
- isSystem: true,
4565
- description: "Runtime-authored view definitions (shared / personal layers). The package layer ships from source.",
4566
- fields: {
4567
- /** Primary Key (UUID) */
4568
- id: Field.text({ label: "ID", required: true, readonly: true }),
4569
- /**
4570
- * Globally-unique qualified view id, `<object>.<viewKey>`, matching the
4571
- * spec `ViewItemSchema.name`. For personal views the runtime may suffix
4572
- * to keep it unique per owner.
4573
- */
4574
- name: Field.text({
4575
- label: "Name",
4576
- required: true,
4577
- searchable: true,
4578
- maxLength: 255
4579
- }),
4580
- /** Bound object — the foreign key used to aggregate views for the switcher. */
4581
- object: Field.text({
4582
- label: "Object",
4583
- required: true,
4584
- searchable: true,
4585
- maxLength: 255
4586
- }),
4587
- /** Whether `config` is a ListView (list family) or a FormView. */
4588
- view_kind: Field.select(["list", "form"], {
4589
- label: "View Kind",
4590
- required: true,
4591
- defaultValue: "list"
4592
- }),
4593
- /** Display label (plain string; i18n keys also accepted). */
4594
- label: Field.text({ label: "Label", required: false, maxLength: 255 }),
4595
- /** Whether this is the object's default view in the switcher. */
4596
- is_default: Field.boolean({ label: "Is Default", required: false, defaultValue: false }),
4597
- /** Sort order within the object's switcher / left rail. */
4598
- view_order: Field.number({ label: "Order", required: false, defaultValue: 0 }),
4599
- /**
4600
- * Identity layer. Only `shared` and `personal` are stored at runtime;
4601
- * `package` views come from source.
4602
- */
4603
- scope: Field.select(["shared", "personal"], {
4604
- label: "Scope",
4605
- required: true,
4606
- defaultValue: "personal"
4607
- }),
4608
- /** Owner user id — set when scope = personal; null for shared. */
4609
- owner: Field.text({ label: "Owner", required: false, maxLength: 255 }),
4610
- /** Hidden from the switcher (per-user / per-org declutter). */
4611
- hidden: Field.boolean({ label: "Hidden", required: false, defaultValue: false }),
4612
- /** The ListView / FormView configuration payload. */
4613
- config: Field.json({
4614
- label: "Config",
4615
- required: true,
4616
- description: "ListView or FormView configuration (matches spec ViewItem.config)."
4617
- }),
4618
- /** Organization for multi-tenant isolation. */
4619
- organization_id: Field.lookup("sys_organization", {
4620
- label: "Organization",
4621
- required: false,
4622
- description: "Organization for multi-tenant isolation."
4623
- }),
4624
- /** Lifecycle state. */
4625
- state: Field.select(["draft", "active", "archived"], {
4626
- label: "State",
4627
- required: false,
4628
- defaultValue: "active"
4629
- }),
4630
- /** Audit fields. */
4631
- created_by: Field.lookup("sys_user", { label: "Created By", required: false, readonly: true }),
4632
- created_at: Field.datetime({ label: "Created At", required: false, readonly: true }),
4633
- updated_by: Field.lookup("sys_user", { label: "Updated By", required: false }),
4634
- updated_at: Field.datetime({ label: "Updated At", required: false })
4635
- },
4636
- indexes: [
4637
- // A given view name is unique per (organization, owner) among active rows —
4638
- // a shared view (owner NULL) and each user's personal views don't collide.
4639
- {
4640
- name: "idx_sys_view_def_active",
4641
- fields: ["name", "organization_id", "owner"],
4642
- unique: true,
4643
- partial: "state = 'active'"
4644
- },
4645
- // The switcher query: views for one object within a tenant.
4646
- { name: "idx_sys_view_def_object", fields: ["organization_id", "object"] },
4647
- { fields: ["scope"] },
4648
- { fields: ["owner"] },
4649
- { fields: ["state"] }
4650
- ],
4651
- enable: {
4652
- trackHistory: true,
4653
- searchable: false,
4654
- apiEnabled: true,
4655
- apiMethods: ["get", "list", "create", "update", "delete"],
4656
- trash: false
4657
- }
4658
- });
4659
4070
  var SysSetting = ObjectSchema.create({
4660
4071
  name: "sys_setting",
4661
4072
  label: "Setting",
@@ -4816,12 +4227,10 @@ var SysSecret = ObjectSchema.create({
4816
4227
  isSystem: true,
4817
4228
  managedBy: "system",
4818
4229
  description: "Cipher store referenced by sys_setting handles. Never holds plaintext.",
4819
- scope: "tenant",
4820
4230
  compactLayout: ["namespace", "key", "kms_key_id", "version", "rotated_at"],
4821
- defaultViewName: "all",
4822
- views: {
4231
+ listViews: {
4823
4232
  all: {
4824
- type: "list",
4233
+ type: "grid",
4825
4234
  name: "all",
4826
4235
  label: "All Secrets",
4827
4236
  columns: ["namespace", "key", "kms_key_id", "version", "rotated_at", "created_at"]
@@ -4909,12 +4318,10 @@ var SysSettingAudit = ObjectSchema.create({
4909
4318
  isSystem: true,
4910
4319
  managedBy: "system",
4911
4320
  description: "Append-only audit trail for SettingsService mutations.",
4912
- scope: "tenant",
4913
4321
  compactLayout: ["namespace", "key", "scope", "action", "actor_id", "created_at"],
4914
- defaultViewName: "recent",
4915
- views: {
4322
+ listViews: {
4916
4323
  recent: {
4917
- type: "list",
4324
+ type: "grid",
4918
4325
  name: "recent",
4919
4326
  label: "Recent",
4920
4327
  columns: ["created_at", "namespace", "key", "scope", "action", "actor_id", "source"],
@@ -21897,6 +21304,6 @@ function createPlatformObjectsPlugin() {
21897
21304
  return new PlatformObjectsPlugin();
21898
21305
  }
21899
21306
 
21900
- export { ACCOUNT_APP, MetadataFormsTranslations, PlatformObjectsPlugin, SETUP_APP, SETUP_NAV_CONTRIBUTIONS, STUDIO_APP, SetupAppTranslations, SysAccount, SysApiKey, SysAttachment, SysDepartment, SysDepartmentMember, SysDeviceCode, SysEmail, SysEmailTemplate, SysInvitation, SysJob, SysJobQueue, SysJobRun, SysJwks, SysMember, SysMetadataObject as SysMetadata, SysMetadataAuditObject, SysMetadataHistoryObject, SysMetadataObject, SysNotification, SysOauthAccessToken, SysOauthApplication, SysOauthConsent, SysOauthRefreshToken, SysOrganization, SysOrganizationDetailPage, SysReportSchedule, SysSavedReport, SysSecret, SysSession, SysSetting, SysSettingAudit, SysTeam, SysTeamMember, SysTwoFactor, SysUser, SysUserDetailPage, SysUserPreference, SysVerification, SysViewDefinitionObject, SystemOverviewDashboard, createPlatformObjectsPlugin, en, esES, jaJP, zhCN };
21307
+ export { ACCOUNT_APP, MetadataFormsTranslations, PlatformObjectsPlugin, SETUP_APP, SETUP_NAV_CONTRIBUTIONS, STUDIO_APP, SetupAppTranslations, SysAccount, SysApiKey, SysAttachment, SysDepartment, SysDepartmentMember, SysDeviceCode, SysEmail, SysEmailTemplate, SysInvitation, SysJob, SysJobQueue, SysJobRun, SysJwks, SysMember, SysNotification, SysOauthAccessToken, SysOauthApplication, SysOauthConsent, SysOauthRefreshToken, SysOrganization, SysOrganizationDetailPage, SysReportSchedule, SysSavedReport, SysSecret, SysSession, SysSetting, SysSettingAudit, SysTeam, SysTeamMember, SysTwoFactor, SysUser, SysUserDetailPage, SysUserPreference, SysVerification, SystemOverviewDashboard, createPlatformObjectsPlugin, en, esES, jaJP, zhCN };
21901
21308
  //# sourceMappingURL=index.mjs.map
21902
21309
  //# sourceMappingURL=index.mjs.map