feat(core-shared): add subject-linkage types and extend PII defaults

Introduces SubjectLinkKind, SubjectLink, and CollectionSubject types to
packages/core-shared/src/payload/subject-linkage-types.ts, establishes the
ambient CollectionCustom.subject declaration (parallel to custom.pii / custom.retention
from Epic A), and extends PAYLOAD_AUTH_PII_DEFAULTS with processingRestrictedAt and
consentState as DSR-managed excluded fields. Applies the first canonical usage of
custom.subject = { kind: "self", field: "id" } on the auth users collection.
This commit is contained in:
2026-05-19 10:11:09 +00:00
parent 5abf7fe623
commit f8bb2f4094
8 changed files with 125 additions and 24 deletions

View File

@@ -15,6 +15,7 @@ export const users: CollectionConfig = {
action: "hard-delete",
},
},
subject: { kind: "self", field: "id" },
},
fields: [
{