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

@@ -1,18 +1,18 @@
{
"generatedAt": "2026-05-18T20:21:48.917Z",
"commit": "188625b",
"generatedAt": "2026-05-19T10:10:24.367Z",
"commit": "5abf7fe",
"repo": {
"statements": 96.47,
"branches": 91.71,
"functions": 96.81,
"lines": 96.47,
"statements": 96.48,
"branches": 91.72,
"functions": 96.83,
"lines": 96.48,
"counts": {
"lf": 4254,
"lh": 4104,
"brf": 808,
"brh": 741,
"fnf": 251,
"fnh": 243
"lf": 4264,
"lh": 4114,
"brf": 809,
"brh": 742,
"fnf": 252,
"fnh": 244
}
},
"byPackage": {
@@ -59,17 +59,17 @@
}
},
"@repo/core-shared": {
"statements": 97.98,
"branches": 95.79,
"functions": 91.92,
"lines": 97.98,
"statements": 98,
"branches": 95.81,
"functions": 92,
"lines": 98,
"counts": {
"lf": 1040,
"lh": 1019,
"brf": 309,
"brh": 296,
"fnf": 99,
"fnh": 91
"lf": 1050,
"lh": 1029,
"brf": 310,
"brh": 297,
"fnf": 100,
"fnh": 92
}
},
"@repo/marketing-pages": {