@objectstack/platform-objects 11.9.0 → 12.0.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
@@ -445,6 +445,25 @@ var SysUser = data.ObjectSchema.create({
445
445
  group: "Admin",
446
446
  description: "When enforced MFA first applied to this user (grace-period clock). Backs mfa_required; system-managed."
447
447
  }),
448
+ // ADR-0069 D7 — login audit. Stamped on every successful `/sign-in/email`
449
+ // by the auth manager's after-hook (independent of lockout config). Backs
450
+ // the admin "last seen" surface + anomaly review; system-managed, read-only.
451
+ last_login_at: data.Field.datetime({
452
+ label: "Last Login At",
453
+ required: false,
454
+ readonly: true,
455
+ group: "Admin",
456
+ description: "Timestamp of the last successful sign-in. Stamped by the auth manager; system-managed."
457
+ }),
458
+ last_login_ip: data.Field.text({
459
+ label: "Last Login IP",
460
+ required: false,
461
+ readonly: true,
462
+ maxLength: 45,
463
+ // IPv6 max textual length
464
+ group: "Admin",
465
+ description: "Client IP of the last successful sign-in (from the trusted proxy forwarded header). System-managed."
466
+ }),
448
467
  ai_access: data.Field.boolean({
449
468
  label: "AI Access",
450
469
  defaultValue: false,