@wildo-ai/saas-specifications 1.1.13 → 1.1.14
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/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +28 -5
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +4 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -0
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -0
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +2 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js +6 -2
- package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js +6 -5
- package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +2 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.js +136 -0
- package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +4 -2
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +6 -5
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js +2 -1
- package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +10 -7
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +1 -0
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +2 -2
- package/dist/esm/engine/users/resources/users.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -9
package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-subject-requests.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/data-subject-requests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AO,EAAE,yHAAyH,EAAE;iBACpJ;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,uFAAuF,EAAE,SAAS,EAAE,qCAAqC,EAAE;QACjK,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,SAAS,EAAE,yBAAyB,EAAE;QACxG,CAAC,8BAA8B,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,yGAAyG,EAAE,SAAS,EAAE,qFAAqF,EAAE;QAClQ,CAAC,8BAA8B,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,8EAA8E,EAAE,SAAS,EAAE,0DAA0D,EAAE;KAC5M;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `dataSubjectRequests` — Wildo SaaS engine specification (#2296), USER_SELF-scoped, with a preset.\n *\n * Inputs:\n * - Schema: engine/saas-models/src/compliance/privacy/data-subject-requests.shared.schemas.ts → `DataSubjectRequestSchema`\n * - Factory: engine/saas-models/src/compliance/privacy/data-subject-requests.shared.resources-config.schemas.ts\n * → `dataSubjectRequestsResourceConfiguration_InitializationFactory`\n * - Verbs: engine/saas-backend-lib/src/compliance/privacy/data-subject-request-custom-implementation.backend.service.ts\n * - Surface: `data-subject-requests.resource-presets.tsx` (Settings Hub destination `my-data-subject-requests`).\n *\n * The frontend block below documents the preset's structural slots: `validateStructuralSlotDescriptions` compares\n * them against the refs the merged layout declares and throws at import on a disagreement, so a section added to the\n * template owes an entry here.\n */\n\nimport { dataSubjectRequestsResourceUIBehavior as dataSubjectRequestsUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS,\n DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS,\n DATA_SUBJECT_REQUEST_DEADLINE_SAFETY_MARGIN_DAYS,\n DataSubjectRequestChannel,\n DataSubjectRequestKind,\n DataSubjectRequestRefusalCode,\n DataSubjectRequestSchema,\n DataSubjectRequestStatus,\n DataSubjectRequests_Operations,\n ResourcePrimaryScope,\n CoreUserNotificationTarget,\n dataSubjectRequestsResourceConfiguration_InitializationFactory as dataSubjectRequestsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n ResourceOperationScheduledExecutionVariantType,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof dataSubjectRequestsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst dataSubjectRequestsUIBehavior = dataSubjectRequestsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst SUBJECT_USER_ID = 'user_subject_01HX2EXAMPLE';\nconst OPERATOR_USER_ID = 'user_privacy_operator_01HX2EXAMPLE';\nconst REQUEST_ID = 'data_subject_request_01HX2EXAMPLE';\nconst RECEIVED_AT = '2026-08-18T09:00:00.000Z';\nconst RESPOND_BY = '2026-09-18T09:00:00.000Z';\nconst COMPLETED_AT = '2026-09-01T10:15:00.000Z';\n\nconst requestPathExample = { userId: SUBJECT_USER_ID, dataSubjectRequestId: REQUEST_ID };\nconst pageParametersExample = { userId: SUBJECT_USER_ID, page: 1, limit: 20, sort: 'createdAt:desc' };\nconst scheduledRequestExample = {\n _id: REQUEST_ID,\n userId: SUBJECT_USER_ID,\n kind: DataSubjectRequestKind.ERASURE,\n channel: DataSubjectRequestChannel.SELF,\n status: DataSubjectRequestStatus.SCHEDULED,\n receivedAt: RECEIVED_AT,\n respondBy: RESPOND_BY,\n createdAt: RECEIVED_AT,\n updatedAt: RECEIVED_AT,\n};\nconst completedRequestExample = {\n ...scheduledRequestExample,\n status: DataSubjectRequestStatus.COMPLETED,\n completedAt: COMPLETED_AT,\n outcome: 'subjectImpersonalized=true; 3/3 executing edges executed, 0 left in place by declaration; externalEffects=[]',\n updatedAt: COMPLETED_AT,\n};\nconst summaryExample = {\n _id: REQUEST_ID,\n userId: SUBJECT_USER_ID,\n kind: DataSubjectRequestKind.ERASURE,\n channel: DataSubjectRequestChannel.SELF,\n status: DataSubjectRequestStatus.SCHEDULED,\n receivedAt: RECEIVED_AT,\n respondBy: RESPOND_BY,\n createdAt: RECEIVED_AT,\n};\nconst availableExportExample = {\n ...scheduledRequestExample,\n kind: DataSubjectRequestKind.ACCESS_EXPORT,\n status: DataSubjectRequestStatus.AVAILABLE,\n completedAt: RECEIVED_AT,\n};\nconst downloadTicketExample = {\n requestId: REQUEST_ID,\n kind: DataSubjectRequestKind.ACCESS_EXPORT,\n filename: 'access_art_15-2026-08-18.zip',\n availableUntil: '2026-08-25T09:00:00.000Z',\n downloadPath: `/api/v1/privacy/data-subject-requests/${REQUEST_ID}/download`,\n};\nconst page = (data: readonly unknown[]) => ({ data, pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 } });\n\nexport const dataSubjectRequestsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(dataSubjectRequestsUIBehavior),\n resourceSpecification(\n dataSubjectRequestsFactory,\n DataSubjectRequestSchema,\n ({ schemaShape }) => ({\n purpose: 'Let a person, or an authorized privacy operator on their behalf, request that a data-protection right be carried out on the person\\'s account (a copy of their data, a portable archive of it, or its erasure), and follow that request until it is answered.',\n businessRole: 'The application\\'s authoritative record of when a data-subject request was received, the deadline it is answered by, whether it was withdrawn, and what was done — kept as the controller\\'s evidence after the person is erased.',\n lifecycleRole: `Filed by the person (after a fresh re-authentication) or recorded by an operator. An erasure is withdrawable while scheduled, carried out by the hourly sweep once its ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS}-day grace window ends or ${DATA_SUBJECT_REQUEST_DEADLINE_SAFETY_MARGIN_DAYS} days before its one-month deadline, whichever comes first, then completed or marked failed for an operator. An access export or portability archive is answered at once and downloadable for ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS} days, then marked expired by the sweep. Kept for the AUDIT_LOGS period counted from its creation, then deleted by the retention-class sweep.`,\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequestSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'dataSubjectRequestsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'DATA_SUBJECT_REQUESTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequests_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'No client CREATE, UPDATE or DELETE. `request` (self) and `record_operator_request` (operator) both write through one intake function with `createAsSystem`, which authors `channel`, `status`, `receivedAt`, `respondBy`, `requestedByUserId` and `justification`; a caller never can.',\n 'The terminal reading of an erasure is `classifyDataSubjectErasureOutcome` (saas-models), the one copy every request lane uses: it composes the engine\\'s own predicates over the `SubjectErasureReport`.',\n 'The `USERS → dataSubjectRequests` edge disables the teardown cascade, so a subject erasure RETAINS these rows (`retained_by_declaration`); `portabilityPolicy.defaultProvenance: OBSERVED` discloses them for Art. 15 access and leaves them out of the Art. 20 bundle.',\n 'Three people\\'s access exports can reach a request: its subject\\'s through `userId`, whole; the operator\\'s who recorded it through `requestedByUserId`, which `subjectExportOthersDataFieldsByForeignKey` narrows to the operator\\'s own act (`DATA_SUBJECT_REQUEST_OPERATOR_OWN_FIELDS`: that they recorded one, of which kind and when); and the operator\\'s who extended its deadline through `extensionOperatorUserId`, narrowed the same way (`DATA_SUBJECT_REQUEST_EXTENDING_OPERATOR_OWN_FIELDS`: that they extended one, of which kind, when and why). The subject\\'s id, the justification, the dates, the status and the receipt are withheld from an operator and listed as others\\' data.',\n 'Declares the application\\'s `subjectErasureLane`. The evidence door refuses an application in which two resources declare a lane, so an application uses this resource rather than its own.',\n 'The person is emailed about their own request by notices on the system CREATE (`received` for an erasure or a correction, `ready` for a copy) and UPDATE (`extended`, sent only by the write that records an Art. 12(3) extension): the intake verbs replace the whole pipeline, so the notices ride the system writes they go through. No m2mNotifications.',\n '`request` declares `requiresStepUpAuthentication` for every kind: a fresh single-use re-authentication proof, because an erasure is irreversible and an export hands over everything held about the person (GDPR Art. 12(6)).',\n 'A disclosure (ACCESS_EXPORT, PORTABILITY_ARCHIVE) is answered at intake: `fileDataSubjectRequest` writes it AVAILABLE with `completedAt` = now. Nothing is generated ahead: the manual route `GET /privacy/data-subject-requests/:requestId/download` (`DataSubjectRequestDeliveryBackendService`) assembles it through `exportSubjectAsSystem` and streams it as one zip through `writeSubjectExportArchive` on each download, records a `SUBJECT_DATA_EXPORT` audit row carrying `dataSubjectRequestId`, and refuses outside the window (`isDataSubjectExportDownloadable`).',\n 'The lane declaration carries `erasureMarker: { fieldName: \\'kind\\', erasureValue: ERASURE }`, so the subject-erasure evidence counts erasure requests only, never an export answered at intake.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Stable identifier of the request.', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Identifier of the person the request is about.',\n whyItMatters: 'A person can only file and see their own requests. An operator names a different person only through the operator command.',\n relationshipContext: 'References the user who is the subject of the request.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n kind: schemaShape.kind.enumSpec({\n meaning: 'Which data-protection right the request exercises.',\n whyItMatters: 'Decides how the request is answered: an erasure waits for the sweep, a copy of the data is answered at once. Only rights the application can carry out are offered.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequestKind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DataSubjectRequestKind.ERASURE]: { meaning: 'Erase the person\\'s account and the personal data reached through it (GDPR Art. 17).' },\n [DataSubjectRequestKind.ACCESS_EXPORT]: { meaning: 'Give the person a copy of everything held about them (GDPR Art. 15), as a downloadable archive.' },\n [DataSubjectRequestKind.RECTIFICATION]: { meaning: 'Correct inaccurate data the person cannot correct themselves on the application\\'s own screens (GDPR Art. 16); an operator acts on it.' },\n [DataSubjectRequestKind.PORTABILITY_ARCHIVE]: { meaning: 'Give the person the data they provided, with the files they uploaded, in a machine-readable archive they can take to another service (GDPR Art. 20).' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n channel: schemaShape.channel.enumSpec({\n meaning: 'Who raised the request.',\n whyItMatters: 'Distinguishes a request the person made themselves from one an authorized privacy operator recorded for them. The server sets it; callers never choose it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequestChannel',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DataSubjectRequestChannel.SELF]: { meaning: 'The signed-in person filed the request about their own account.' },\n [DataSubjectRequestChannel.OPERATOR]: { meaning: 'An authorized privacy operator recorded a verified request received outside the application.' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where the request sits in its lifecycle.',\n whyItMatters: 'Tells the person whether the request can still be withdrawn, was withdrawn, was carried out or needs an operator. The server owns every transition.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequestStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DataSubjectRequestStatus.SCHEDULED]: { meaning: 'Received and waiting for its grace window to end; still withdrawable.' },\n [DataSubjectRequestStatus.CANCELLED]: { meaning: 'Withdrawn while scheduled; the sweep skips it.' },\n [DataSubjectRequestStatus.COMPLETED]: { meaning: 'Carried out: every executing part ran and no external effect is incomplete.' },\n [DataSubjectRequestStatus.COMPLETES_AT_VENDOR]: { meaning: 'Everything the application can erase was erased, and a vendor deletes the rest on its own published schedule, by completesAtVendorBy. Needs no operator.' },\n [DataSubjectRequestStatus.EXTERNAL_WORK_OWED]: { meaning: 'Everything the application can do now was done, and work at an external system is owed and scheduled by the engine itself. Finishes without an operator; the engine alerts if it is still owed after 24 hours.' },\n [DataSubjectRequestStatus.FAILED]: { meaning: 'The request could not be carried out completely, for example because a legal hold keeps the person\\'s data, and needs an operator.' },\n [DataSubjectRequestStatus.AVAILABLE]: { meaning: `A copy of the person's data is ready: they can download it, signed in, for ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS} days after it was answered.` },\n [DataSubjectRequestStatus.EXPIRED]: { meaning: 'The download window of a copy ended; the person files a new request for a fresh one.' },\n [DataSubjectRequestStatus.RECEIVED]: { meaning: 'A correction request waiting for an operator to act on it; still withdrawable.' },\n [DataSubjectRequestStatus.DECLINED]: { meaning: 'A correction an operator did not make, with the reasons the person is told.' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n receivedAt: schemaShape.receivedAt.dateSpec({\n meaning: 'When the controller received the request: the moment the statutory deadline starts.',\n whyItMatters: 'An operator may record a request that arrived earlier, so the deadline runs from receipt rather than from recording.',\n temporalRole: 'creation',\n }),\n respondBy: schemaShape.respondBy.dateSpec({\n meaning: 'The statutory deadline: one calendar month after receipt.',\n whyItMatters: 'The sweep carries the request out before it, even inside the grace window, so the answer lands within the law\\'s one month.',\n temporalRole: 'deadline',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'On an operator-recorded request: the out-of-band request it records, and how the person was verified.',\n whyItMatters: 'Mandatory on the operator channel, so the record keeps the accountable reason. Absent on a request the person filed.',\n }),\n requestedByUserId: schemaShape.requestedByUserId.foreignKeySpec({\n meaning: 'The privacy operator who recorded the request; absent when the person filed it.',\n whyItMatters: 'Keeps the accountable operator distinct from the person the request is about.',\n relationshipContext: 'References the operator who recorded the request.',\n }),\n completedAt: schemaShape.completedAt.dateSpec({ meaning: `When the request was answered: an erasure's completed, completes-at-vendor, external-work-owed or failed outcome, or the moment a copy was made available, from which its ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS}-day download window runs.`, temporalRole: 'modified' }),\n completesAtVendorBy: schemaShape.completesAtVendorBy.dateSpec({\n meaning: 'On a request that completes at a vendor: the date by which every such vendor has deleted the person\\'s data, the latest of their declared windows.',\n whyItMatters: 'The date the controller can give the person for when the erasure is finished everywhere, taken from each vendor\\'s declared window.',\n temporalRole: 'deadline',\n }),\n outcome: schemaShape.outcome.stringSpec({ meaning: 'Server-owned receipt of what was done: local counts, every external effect status and step reference, legal-hold grounds and statutory restrictions; never provider prose.' }),\n originalRespondBy: schemaShape.originalRespondBy.dateSpec({\n meaning: 'On an extended request: the one-month deadline the law first set, before the extension.',\n whyItMatters: 'Keeps both what the law required and what the controller chose; its presence is what says the request was extended.',\n temporalRole: 'deadline',\n }),\n extensionReason: schemaShape.extensionReason.stringSpec({\n meaning: 'On an extended request: why the answer is delayed, in the words the person is told.',\n whyItMatters: 'The law requires the person to be told of an extension together with the reasons for the delay.',\n }),\n extendedAt: schemaShape.extendedAt.dateSpec({ meaning: 'On an extended request: when the extension was decided.', temporalRole: 'modified' }),\n extensionOperatorUserId: schemaShape.extensionOperatorUserId.foreignKeySpec({\n meaning: 'On an extended request: the privacy operator who extended it.',\n whyItMatters: 'Keeps the person who delayed the answer accountable for it.',\n relationshipContext: 'References the operator who extended the deadline.',\n }),\n rectificationDetails: schemaShape.rectificationDetails.stringSpec({\n meaning: 'On a correction request: what the person says is wrong and what it should say, in their own words.',\n whyItMatters: 'Most data a person corrects themselves on the application\\'s own screens; this records what they could not, for an operator to act on.',\n }),\n rectificationOutcome: schemaShape.rectificationOutcome.stringSpec({\n meaning: 'On a resolved correction request: what was corrected, or why it was not, in the words the person is told.',\n whyItMatters: 'A person must be told the reasons when their request is not acted on.',\n }),\n openRequestKey: schemaShape.openRequestKey.stringSpec({\n meaning: 'The person\\'s open slot for this kind of request, held while the request stands open; never shown.',\n whyItMatters: 'Unique in the store, so two requests of the same kind filed at the same instant cannot both be recorded.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: `When the request was recorded; its ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS}-day grace window starts here.`, temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the request last changed.', temporalRole: 'modified' }),\n },\n additionalFieldSpecs: [],\n operations: {\n [Op.READ]: {\n purpose: 'Open one of the caller\\'s own requests.',\n outcome: 'Its kind, standing, provenance, deadline and outcome.',\n whenToUse: 'Show where a request has got to, or whether it can still be withdrawn.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The request was found and returned.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id is visible to the signed-in person.' }],\n idempotent: true,\n examples: [{ title: 'Inspect a completed erasure request', request: requestPathExample, response: completedRequestExample, forStatus: HttpResponseStatusCode.OK_200 }],\n variants: {\n context: { examples: [{ title: 'Inspect a pending request with related user context', request: requestPathExample, response: { ...scheduledRequestExample, user: { _id: SUBJECT_USER_ID } }, forStatus: HttpResponseStatusCode.OK_200 }] },\n summary: { examples: [{ title: 'Inspect a compact pending-request summary', request: requestPathExample, response: summaryExample, forStatus: HttpResponseStatusCode.OK_200 }] },\n },\n },\n [Op.LIST]: {\n purpose: 'Enumerate the caller\\'s own requests.',\n outcome: 'A (possibly empty) page of the caller\\'s requests.',\n whenToUse: 'Show the person their requests and the one still waiting.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of the caller\\'s own requests.' }],\n idempotent: true,\n examples: [{ title: 'List recent requests', request: pageParametersExample, response: page([scheduledRequestExample, completedRequestExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n variants: {\n context: { examples: [{ title: 'List requests with related user context', request: pageParametersExample, response: page([{ ...scheduledRequestExample, user: { _id: SUBJECT_USER_ID } }]), forStatus: HttpResponseStatusCode.OK_200 }] },\n summary: { examples: [{ title: 'List compact request summaries', request: pageParametersExample, response: page([summaryExample]), forStatus: HttpResponseStatusCode.OK_200 }] },\n },\n },\n [Op.CREATE]: {\n purpose: 'System-only write of a new request (INTERNAL_CALL, no route): the door both intake verbs write through.',\n outcome: 'A request with its server-authored provenance and deadline; the person is told it was received, or that their copy is ready.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The request was stored (service tier only).' }],\n idempotent: false,\n communications: {\n email: {\n purpose: 'Tell the person a request about their own data was recorded, whoever filed it.',\n tone: 'Plain and reassuring: a receipt for a right the person exercised, naming what happens next and by when, with no legal citations.',\n useWhen: 'Every request recorded for a person, by them or by the privacy team on their behalf.',\n avoidWhen: 'Never suppressed: a person who did not make the request learns of it here.',\n textSlots: { subject: { purpose: 'Say that a request about the reader\\'s data was received, or that their copy is ready.' } },\n eventData: { purpose: 'Carry what was asked, when it was received, and the date it is answered by or the copy can be downloaded until.' },\n deliveries: [\n {\n audience: 'The person the request is about.',\n targetRef: CoreUserNotificationTarget.USERS_CUSTOM,\n customDeliveryRef: 'received',\n purposeOverride: 'For an erasure or a correction: what was asked, when, the date it is answered by, that it can be withdrawn while waiting, and what to do if they did not ask.',\n },\n {\n audience: 'The person the request is about.',\n targetRef: CoreUserNotificationTarget.USERS_CUSTOM,\n customDeliveryRef: 'ready',\n purposeOverride: 'For a copy of their data: that it is ready, until when it can be downloaded, and that it is fetched signed in, never attached.',\n },\n ],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'System-only write of a request\\'s state (INTERNAL_CALL, no route): the sweep\\'s terminal status, an extension, a correction\\'s answer, a released slot.',\n outcome: 'The sweep records the terminal status, `completedAt`, `completesAtVendorBy` where a vendor finishes the erasure, and the `outcome` receipt; an extension records the new deadline and its reason, and the person is told.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The request was updated (service tier only).' }],\n idempotent: true,\n communications: {\n email: {\n purpose: 'Tell the person their request will be answered later, with the new date and the reason (GDPR Art. 12(3)).',\n tone: 'Plain and reassuring: a receipt for a right the person exercised, naming what happens next and by when, with no legal citations.',\n useWhen: 'Only the write that records an extension.',\n avoidWhen: 'Every other update: a terminal status, a withdrawal, a released slot.',\n textSlots: { subject: { purpose: 'Say that the answer to the reader\\'s request will take longer.' } },\n eventData: { purpose: 'Carry what was asked, the original and the new deadline, and the reason in the privacy team\\'s words.' },\n deliveries: [\n {\n audience: 'The person the request is about.',\n targetRef: CoreUserNotificationTarget.USERS_CUSTOM,\n customDeliveryRef: 'extended',\n purposeOverride: 'The notice the law requires within the first month: the new date and the reasons for the delay.',\n },\n ],\n },\n },\n },\n [Op.DELETE_MANY]: {\n purpose: 'Remove requests past the `AUDIT_LOGS` period: the door of the retention-class sweep.',\n outcome: 'A handled request stops naming the person who raised it once its evidence period ends.',\n whenToUse: 'Never a public surface. INTERNAL_CALL registers no route, and only the sweep calls it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The matched requests were deleted.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A legal hold covers a matched request; the sweep keeps it.' }],\n idempotent: true,\n },\n [DataSubjectRequests_Operations.REQUEST]: {\n operationId: DataSubjectRequests_Operations.REQUEST,\n purpose: 'File a request about the caller\\'s own account, after a fresh re-authentication.',\n outcome: `An erasure is returned scheduled with its one-month deadline, and its ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS}-day grace window starts now. An access export or portability archive is returned available: answered at once, downloadable for ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS} days. A correction request is returned received, waiting for an operator.`,\n whenToUse: 'After the signed-in person explicitly confirms which right they want exercised on their own account.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The request was filed: scheduled for an erasure, available for a copy of the data.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The userId in the URL does not identify the signed-in person, or the request carries no fresh re-authentication proof (`X-Reauth-Token`).' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.ALREADY_PENDING, when: 'The person already has a request of this kind waiting, or a copy they can still download; a second would record two demands where the person made one.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails validation, including a request that names no right.' },\n ],\n idempotent: false,\n examples: [\n { title: 'A person requests erasure of their own account', request: { userId: SUBJECT_USER_ID, kind: DataSubjectRequestKind.ERASURE }, response: scheduledRequestExample, forStatus: HttpResponseStatusCode.CREATED_201 },\n { title: 'A person asks for a copy of their data', request: { userId: SUBJECT_USER_ID, kind: DataSubjectRequestKind.ACCESS_EXPORT }, response: availableExportExample, forStatus: HttpResponseStatusCode.CREATED_201 },\n ],\n },\n [DataSubjectRequests_Operations.CANCEL]: {\n operationId: DataSubjectRequests_Operations.CANCEL,\n purpose: 'Withdraw one of the caller\\'s own requests while it is still scheduled.',\n outcome: 'The request moves to cancelled and is not carried out.',\n whenToUse: 'Only while the request is scheduled, when the person changed their mind or filed it in error.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The request was withdrawn and returned in cancelled state.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.NOT_WITHDRAWABLE, when: 'The request is already cancelled, completed or failed, so it can no longer be withdrawn.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id is visible to the signed-in person.' },\n ],\n idempotent: false,\n examples: [{ title: 'Withdraw a pending request', request: requestPathExample, response: { ...scheduledRequestExample, status: DataSubjectRequestStatus.CANCELLED, updatedAt: '2026-08-20T11:30:00.000Z' }, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [DataSubjectRequests_Operations.RECORD_OPERATOR_REQUEST]: {\n operationId: DataSubjectRequests_Operations.RECORD_OPERATOR_REQUEST,\n purpose: 'Record a verified request received outside the application, on another person\\'s behalf.',\n outcome: 'A scheduled operator-channel request, with the person, the accountable operator, the justification and the receipt date recorded separately.',\n whenToUse: 'When an authorized privacy operator has verified a request received through support, email or another approved channel.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The request was recorded for the person, in scheduled state on the operator channel, with requestedByUserId set to the acting operator.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold application super-administrator authority.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, errorCode: DataSubjectRequestRefusalCode.RECEIVED_IN_FUTURE, when: 'receivedAt is in the future, which would move the deadline past the law\\'s.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.ALREADY_PENDING, when: 'The person already has a request of this kind waiting.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Record an erasure request received by the privacy team',\n request: { userId: OPERATOR_USER_ID, subjectUserId: SUBJECT_USER_ID, kind: DataSubjectRequestKind.ERASURE, justification: 'Privacy request PR-2026-0042, identity verified by the support team.', receivedAt: RECEIVED_AT },\n response: { ...scheduledRequestExample, channel: DataSubjectRequestChannel.OPERATOR, requestedByUserId: OPERATOR_USER_ID, justification: 'Privacy request PR-2026-0042, identity verified by the support team.' },\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [DataSubjectRequests_Operations.EXTEND_DEADLINE]: {\n operationId: DataSubjectRequests_Operations.EXTEND_DEADLINE,\n purpose: 'Extend a waiting request\\'s deadline by one or two further months, with the reason the person is told.',\n outcome: 'The deadline moves by the months asked, counted from the original one-month deadline and moved off a non-working day; the original deadline, the reason, the time and the operator are kept, and the person is told.',\n whenToUse: 'Within the first month of a request, when its complexity or the number of the person\\'s requests means it cannot be answered in time.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The deadline was extended and the request is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold application super-administrator authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.NOT_EXTENDABLE, when: 'The request is no longer waiting, was already extended, or its one-month deadline has passed.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'More than two months, or no reason, was given.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Extend a request by two months',\n request: { userId: OPERATOR_USER_ID, requestId: REQUEST_ID, additionalMonths: 2, reason: 'Three linked requests about one account.' },\n response: { ...scheduledRequestExample, respondBy: '2026-11-18T09:00:00.000Z', originalRespondBy: RESPOND_BY, extensionReason: 'Three linked requests about one account.', extendedAt: '2026-08-25T10:00:00.000Z', extensionOperatorUserId: OPERATOR_USER_ID },\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [DataSubjectRequests_Operations.RESOLVE_RECTIFICATION]: {\n operationId: DataSubjectRequests_Operations.RESOLVE_RECTIFICATION,\n purpose: 'Record what was done with a correction request: the data corrected, or the correction declined with its reasons.',\n outcome: 'The request is completed or declined, with the outcome the person is told.',\n whenToUse: 'After an operator has corrected the data the person described, or decided not to and can say why.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The correction request was resolved and is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold application super-administrator authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.NOT_RESOLVABLE, when: 'The request is not a correction request still waiting for an operator.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Record a correction made',\n request: { userId: OPERATOR_USER_ID, requestId: REQUEST_ID, resolution: 'rectified', outcome: 'Your billing address now reads 12 Elm Street.' },\n response: { ...scheduledRequestExample, kind: DataSubjectRequestKind.RECTIFICATION, status: DataSubjectRequestStatus.COMPLETED, rectificationDetails: 'My billing address is wrong.', rectificationOutcome: 'Your billing address now reads 12 Elm Street.', completedAt: COMPLETED_AT },\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [DataSubjectRequests_Operations.OPERATOR_QUEUE]: {\n operationId: DataSubjectRequests_Operations.OPERATOR_QUEUE,\n purpose: 'List every person\\'s requests the application still owes an answer to, or that need an operator, soonest deadline first.',\n outcome: 'A page of waiting erasures, waiting corrections and failed requests, ordered by the date each must be answered by.',\n whenToUse: 'When a privacy operator works through what is due; open an access window first, which a second administrator approves.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of requests, soonest deadline first.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold application super-administrator authority, or holds no access window a second administrator approved.' },\n ],\n idempotent: true,\n examples: [{ title: 'Read the queue', request: { userId: OPERATOR_USER_ID, page: 1, limit: 20 }, response: page([scheduledRequestExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [DataSubjectRequests_Operations.DOWNLOAD]: {\n operationId: DataSubjectRequests_Operations.DOWNLOAD,\n purpose: 'Tell the signed-in person whether, until when and from where they can download the copy one of their own requests answers.',\n outcome: 'The request id, its kind, the file name, the end of the download window, and the path of the route that streams the archive.',\n whenToUse: 'Before offering a download, or from an integration that fetches the archive itself. The archive is streamed by `GET /privacy/data-subject-requests/:requestId/download`, which makes the same decision.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The request can be downloaded now.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id belongs to the signed-in person.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.NOT_DOWNLOADABLE, when: 'The request is not a copy of the person\\'s data, or its download window ended.' },\n ],\n idempotent: true,\n examples: [{ title: 'Where to download an access export', request: requestPathExample, response: downloadTicketExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [DataSubjectRequests_Operations.SWEEP_DUE_REQUESTS]: {\n operationId: DataSubjectRequests_Operations.SWEEP_DUE_REQUESTS,\n purpose: 'Carry out every due erasure through the engine\\'s system-level subject-erasure door and record what happened, and mark expired every copy whose download window ended.',\n outcome: 'Each due request is attempted and marked COMPLETED, COMPLETES_AT_VENDOR, EXTERNAL_WORK_OWED or FAILED with a receipt; a legal hold, an unexecuted edge, an incomplete external effect, an unconfirmed severance, a session that did not end or a thrown erasure makes it FAILED for an operator.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The run\\'s counters; every due request was attempted and requests not yet due were left scheduled.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.INTERNAL_SERVER_ERROR_500, when: 'The sweep could not list scheduled requests or acquire system access. A failed erasure is caught and recorded as FAILED; a failed receipt write is logged and leaves the request scheduled.' }],\n idempotent: true,\n scheduledExecution: {\n variantType: ResourceOperationScheduledExecutionVariantType.NATIVE_CRON_JOB,\n purpose: 'Answer every data-subject request within its deadline, after its grace window, without anyone having to act.',\n outcome: 'Due requests are attempted through `eraseSubjectAsSystem`; the retained receipt distinguishes a completed answer from work needing an operator.',\n cronExpression: '0 * * * *',\n useWhen: 'the application is live and must answer data-subject requests automatically.',\n avoidWhen: 'an operator is holding execution to investigate a suspected erroneous request — suppressing this cron pauses execution without losing the pending requests.',\n businessConstraints: [\n `Due when SCHEDULED and either ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS} days have passed since createdAt or respondBy is within ${DATA_SUBJECT_REQUEST_DEADLINE_SAFETY_MARGIN_DAYS} days (\\`isDataSubjectErasureRequestDue\\`): the grace window never outranks the deadline.`,\n 'FAILED requests are never retried by the sweep; an operator reconciles the receipt before any deliberate new request. A crash before the receipt write re-executes the request on the next run, under the erasure door\\'s idempotent re-execution contract.',\n ],\n codeHandling: {\n notes: [\n 'Declared directly on the operation (`ResourceOperationVariantType.CRON_JOB`, `cronExpression: \\'0 * * * *\\'`); no custom batch wrapper, so `customBatchRef` is unset.',\n 'Reads SCHEDULED requests page by page through `listAsSystem`, records outcomes through `updateAsSystem`, reaches the person through `eraseSubjectAsSystem(USERS, userId)`.',\n ],\n },\n },\n },\n },\n businessConstraints: [\n 'A signed-in person can file, read, list and withdraw only their own requests; the operator command is restricted to application super-administrators.',\n `Every erasure request has the same ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS}-day grace window and a one-calendar-month deadline from receipt; clients choose neither.`,\n 'A deadline that falls on a day the application\\'s business calendar does not work moves to the next working day.',\n 'An operator may extend a waiting request\\'s deadline once, by at most two further months counted from the original deadline, and only within the first month; the person is told, with the reason.',\n `A copy of the person's data is downloadable only by that person, signed in, for ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS} days after it was answered; it is assembled on each download, never stored, and every download is recorded.`,\n 'Filing any request asks for a fresh re-authentication.',\n 'A correction request points the person to the screens where they correct their own data, and records only what they could not correct; an operator then corrects it or declines with reasons.',\n 'An operator reads every person\\'s waiting requests only through a time-limited access window a second administrator approved, and every such read is recorded.',\n 'A person has at most one waiting request, or one downloadable copy, of each kind; the store enforces it, so two requests filed at the same instant cannot both be recorded.',\n 'Erasing the person does not delete the request; it stays as evidence for the AUDIT_LOGS period counted from its creation.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n label: {\n purpose: 'Name a request by the day it was received, in the reader\\'s date format: a person has one request, rarely two.',\n },\n layout: {\n purpose: 'Show a person where their request has got to: which stage it is at, what each stage means for them, and the deadline it is answered by.',\n displayPurpose: 'The header names the request by the day it was received and states what was asked (kind), its standing (status) and who raised it (channel); none is repeated below. The body is the request\\'s STAGES, bound to its `status`: asked for, waiting, outcome. Earlier stages read as reached and the request\\'s own stage as current, every stage with the sentence saying what it means for the person, and no buttons. A STEPPER was withdrawn because it opened a completed request on its first stage; a TIMELINE says when things happened, where the reader needs which stage is now.',\n summaryPurpose: 'What was asked, its standing and the deadline on one line, because a list of requests is read for which ones are still waiting and by when.',\n sections: {\n request: {\n purpose: 'The stage in which the request was made: whose account it is about and when the controller received it. Always reached.',\n textSlots: {\n title: { purpose: 'Label the stage in which the request was made, as a stage (\"Requested\"), never the words \"data request\", which name the whole record and head the page.' },\n description: { purpose: 'Explain that a request may be filed by the person or recorded by an operator on their behalf, and that both are answered the same way.' },\n },\n },\n waiting: {\n purpose: 'The grace window a scheduled request waits out, with the date it is answered by (and, when it was extended, the original deadline and the reason), who raised it on the person\\'s behalf and any justification.',\n textSlots: {\n title: { purpose: 'Label the stage in which the request waits to be carried out.' },\n description: { purpose: 'Explain that a scheduled request can still be withdrawn, that it is carried out automatically once the grace window ends, and always before the deadline shown.' },\n },\n },\n outcome: {\n purpose: 'What happened once the request left the waiting stage: withdrawn, completed, completing at a vendor, external work still owed, failed, a copy available to download, or a copy whose window ended. The status badge names which; this stage holds when and what was done, and the download button while a copy is available.',\n textSlots: {\n title: { purpose: 'Label the stage holding how the request ended and its result.' },\n description: { purpose: 'Explain that this is the record of what was done with the request, kept as evidence after the account itself is erased.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'The person\\'s own requests, from the `my-data-subject-requests` settings destination.', whenToUse: 'Settings → Account → Data requests.' },\n [Op.READ]: { purpose: 'One request, its stages and its receipt.', whenToUse: 'Drill-in from the list.' },\n [DataSubjectRequests_Operations.REQUEST]: { purpose: 'File a request from the collection toolbar; the person chooses only which right, then re-authenticates.', whenToUse: 'A person asking for a copy of their data, a portable archive of it, or its erasure.' },\n [DataSubjectRequests_Operations.CANCEL]: { purpose: 'Withdraw a scheduled request from its row; shown only while it is scheduled.', whenToUse: 'A person who changed their mind inside the grace window.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"data-subject-requests.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/data-subject-requests.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,qCAAqC,IAAI,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AAC5H,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,sCAAsC,EACtC,qCAAqC,EACrC,gDAAgD,EAChD,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,2BAA2B,EAC3B,oBAAoB,EACpB,0BAA0B,EAC1B,8DAA8D,IAAI,0BAA0B,GAC7F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,8CAA8C,EA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ACjK,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,SAAS,EAAE,yBAAyB,EAAE;QACxG,CAAC,8BAA8B,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,yGAAyG,EAAE,SAAS,EAAE,qFAAqF,EAAE;QAClQ,CAAC,8BAA8B,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,8EAA8E,EAAE,SAAS,EAAE,0DAA0D,EAAE;KAC5M;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `dataSubjectRequests` — Wildo SaaS engine specification (#2296), USER_SELF-scoped, with a preset.\n *\n * Inputs:\n * - Schema: engine/saas-models/src/compliance/privacy/data-subject-requests.shared.schemas.ts → `DataSubjectRequestSchema`\n * - Factory: engine/saas-models/src/compliance/privacy/data-subject-requests.shared.resources-config.schemas.ts\n * → `dataSubjectRequestsResourceConfiguration_InitializationFactory`\n * - Verbs: engine/saas-backend-lib/src/compliance/privacy/data-subject-request-custom-implementation.backend.service.ts\n * - Surface: `data-subject-requests.resource-presets.tsx` (Settings Hub destination `my-data-subject-requests`).\n *\n * The frontend block below documents the preset's structural slots: `validateStructuralSlotDescriptions` compares\n * them against the refs the merged layout declares and throws at import on a disagreement, so a section added to the\n * template owes an entry here.\n */\n\nimport { dataSubjectRequestsResourceUIBehavior as dataSubjectRequestsUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS,\n DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS,\n DATA_SUBJECT_REQUEST_DEADLINE_SAFETY_MARGIN_DAYS,\n DataSubjectRequestChannel,\n DataSubjectRequestKind,\n DataSubjectRequestRefusalCode,\n DataSubjectRequestSchema,\n DataSubjectRequestStatus,\n DataSubjectRequests_Operations,\n ErrorCustomMessageReference,\n ResourcePrimaryScope,\n CoreUserNotificationTarget,\n dataSubjectRequestsResourceConfiguration_InitializationFactory as dataSubjectRequestsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n ResourceOperationScheduledExecutionVariantType,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof dataSubjectRequestsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst dataSubjectRequestsUIBehavior = dataSubjectRequestsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst SUBJECT_USER_ID = 'user_subject_01HX2EXAMPLE';\nconst OPERATOR_USER_ID = 'user_privacy_operator_01HX2EXAMPLE';\nconst REQUEST_ID = 'data_subject_request_01HX2EXAMPLE';\nconst RECEIVED_AT = '2026-08-18T09:00:00.000Z';\nconst RESPOND_BY = '2026-09-18T09:00:00.000Z';\nconst COMPLETED_AT = '2026-09-01T10:15:00.000Z';\n\nconst requestPathExample = { userId: SUBJECT_USER_ID, dataSubjectRequestId: REQUEST_ID };\nconst pageParametersExample = { userId: SUBJECT_USER_ID, page: 1, limit: 20, sort: 'createdAt:desc' };\nconst scheduledRequestExample = {\n _id: REQUEST_ID,\n userId: SUBJECT_USER_ID,\n kind: DataSubjectRequestKind.ERASURE,\n channel: DataSubjectRequestChannel.SELF,\n status: DataSubjectRequestStatus.SCHEDULED,\n receivedAt: RECEIVED_AT,\n respondBy: RESPOND_BY,\n createdAt: RECEIVED_AT,\n updatedAt: RECEIVED_AT,\n};\nconst completedRequestExample = {\n ...scheduledRequestExample,\n status: DataSubjectRequestStatus.COMPLETED,\n completedAt: COMPLETED_AT,\n outcome: 'subjectImpersonalized=true; 3/3 executing edges executed, 0 left in place by declaration; externalEffects=[]',\n updatedAt: COMPLETED_AT,\n};\nconst summaryExample = {\n _id: REQUEST_ID,\n userId: SUBJECT_USER_ID,\n kind: DataSubjectRequestKind.ERASURE,\n channel: DataSubjectRequestChannel.SELF,\n status: DataSubjectRequestStatus.SCHEDULED,\n receivedAt: RECEIVED_AT,\n respondBy: RESPOND_BY,\n createdAt: RECEIVED_AT,\n};\nconst availableExportExample = {\n ...scheduledRequestExample,\n kind: DataSubjectRequestKind.ACCESS_EXPORT,\n status: DataSubjectRequestStatus.AVAILABLE,\n completedAt: RECEIVED_AT,\n};\nconst downloadTicketExample = {\n requestId: REQUEST_ID,\n kind: DataSubjectRequestKind.ACCESS_EXPORT,\n filename: 'access_art_15-2026-08-18.zip',\n availableUntil: '2026-08-25T09:00:00.000Z',\n downloadPath: `/api/v1/privacy/data-subject-requests/${REQUEST_ID}/download`,\n};\nconst page = (data: readonly unknown[]) => ({ data, pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 } });\n\nexport const dataSubjectRequestsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(dataSubjectRequestsUIBehavior),\n resourceSpecification(\n dataSubjectRequestsFactory,\n DataSubjectRequestSchema,\n ({ schemaShape }) => ({\n purpose: 'Let a person, or an authorized privacy operator on their behalf, request that a data-protection right be carried out on the person\\'s account (a copy of their data, a portable archive of it, or its erasure), and follow that request until it is answered.',\n businessRole: 'The application\\'s authoritative record of when a data-subject request was received, the deadline it is answered by, whether it was withdrawn, and what was done — kept as the controller\\'s evidence after the person is erased.',\n lifecycleRole: `Filed by the person (after a fresh re-authentication) or recorded by an operator. An erasure is withdrawable while scheduled, carried out by the hourly sweep once its ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS}-day grace window ends or ${DATA_SUBJECT_REQUEST_DEADLINE_SAFETY_MARGIN_DAYS} days before its one-month deadline, whichever comes first, then completed or marked failed for an operator. An access export or portability archive is answered at once and downloadable for ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS} days, then marked expired by the sweep. Kept for the AUDIT_LOGS period counted from its creation, then deleted by the retention-class sweep.`,\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequestSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'dataSubjectRequestsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'DATA_SUBJECT_REQUESTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequests_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'No client CREATE, UPDATE or DELETE. `request` (self) and `record_operator_request` (operator) both write through one intake function with `createAsSystem`, which authors `channel`, `status`, `receivedAt`, `respondBy`, `requestedByUserId` and `justification`; a caller never can.',\n 'The terminal reading of an erasure is `classifyDataSubjectErasureOutcome` (saas-models), the one copy every request lane uses: it composes the engine\\'s own predicates over the `SubjectErasureReport`.',\n 'The `USERS → dataSubjectRequests` edge disables the teardown cascade, so a subject erasure RETAINS these rows (`retained_by_declaration`); `portabilityPolicy.defaultProvenance: OBSERVED` discloses them for Art. 15 access and leaves them out of the Art. 20 bundle.',\n 'Three people\\'s access exports can reach a request: its subject\\'s through `userId`, whole; the operator\\'s who recorded it through `requestedByUserId`, which `subjectExportOthersDataFieldsByForeignKey` narrows to the operator\\'s own act (`DATA_SUBJECT_REQUEST_OPERATOR_OWN_FIELDS`: that they recorded one, of which kind and when); and the operator\\'s who extended its deadline through `extensionOperatorUserId`, narrowed the same way (`DATA_SUBJECT_REQUEST_EXTENDING_OPERATOR_OWN_FIELDS`: that they extended one, of which kind, when and why). The subject\\'s id, the justification, the dates, the status and the receipt are withheld from an operator and listed as others\\' data.',\n 'Declares the application\\'s `subjectErasureLane`. The evidence door refuses an application in which two resources declare a lane, so an application uses this resource rather than its own.',\n 'The person is emailed about their own request by notices on the system CREATE (`received` for an erasure or a correction, `ready` for a copy) and UPDATE (`extended`, sent only by the write that records an Art. 12(3) extension): the intake verbs replace the whole pipeline, so the notices ride the system writes they go through. No m2mNotifications.',\n '`request` declares `requiresStepUpAuthentication` for every kind: a fresh single-use re-authentication proof, because an erasure is irreversible and an export hands over everything held about the person (GDPR Art. 12(6)).',\n 'A disclosure (ACCESS_EXPORT, PORTABILITY_ARCHIVE) is answered at intake: `fileDataSubjectRequest` writes it AVAILABLE with `completedAt` = now. Nothing is generated ahead: the manual route `GET /privacy/data-subject-requests/:requestId/download` (`DataSubjectRequestDeliveryBackendService`) assembles it through `exportSubjectAsSystem` and streams it as one zip through `writeSubjectExportArchive` on each download, records a `SUBJECT_DATA_EXPORT` audit row carrying `dataSubjectRequestId`, and refuses outside the window (`isDataSubjectExportDownloadable`).',\n 'The lane declaration carries `erasureMarker: { fieldName: \\'kind\\', erasureValue: ERASURE }`, so the subject-erasure evidence counts erasure requests only, never an export answered at intake.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Stable identifier of the request.', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Identifier of the person the request is about.',\n whyItMatters: 'A person can only file and see their own requests. An operator names a different person only through the operator command.',\n relationshipContext: 'References the user who is the subject of the request.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n kind: schemaShape.kind.enumSpec({\n meaning: 'Which data-protection right the request exercises.',\n whyItMatters: 'Decides how the request is answered: an erasure waits for the sweep, a copy of the data is answered at once. Only rights the application can carry out are offered.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequestKind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DataSubjectRequestKind.ERASURE]: { meaning: 'Erase the person\\'s account and the personal data reached through it (GDPR Art. 17).' },\n [DataSubjectRequestKind.ACCESS_EXPORT]: { meaning: 'Give the person a copy of everything held about them (GDPR Art. 15), as a downloadable archive.' },\n [DataSubjectRequestKind.RECTIFICATION]: { meaning: 'Correct inaccurate data the person cannot correct themselves on the application\\'s own screens (GDPR Art. 16); an operator acts on it.' },\n [DataSubjectRequestKind.PORTABILITY_ARCHIVE]: { meaning: 'Give the person the data they provided, with the files they uploaded, in a machine-readable archive they can take to another service (GDPR Art. 20).' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n channel: schemaShape.channel.enumSpec({\n meaning: 'Who raised the request.',\n whyItMatters: 'Distinguishes a request the person made themselves from one an authorized privacy operator recorded for them. The server sets it; callers never choose it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequestChannel',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DataSubjectRequestChannel.SELF]: { meaning: 'The signed-in person filed the request about their own account.' },\n [DataSubjectRequestChannel.OPERATOR]: { meaning: 'An authorized privacy operator recorded a verified request received outside the application.' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where the request sits in its lifecycle.',\n whyItMatters: 'Tells the person whether the request can still be withdrawn, was withdrawn, was carried out or needs an operator. The server owns every transition.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'DataSubjectRequestStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DataSubjectRequestStatus.SCHEDULED]: { meaning: 'Received and waiting for its grace window to end; still withdrawable.' },\n [DataSubjectRequestStatus.CANCELLED]: { meaning: 'Withdrawn while scheduled; the sweep skips it.' },\n [DataSubjectRequestStatus.COMPLETED]: { meaning: 'Carried out: every executing part ran and no external effect is incomplete.' },\n [DataSubjectRequestStatus.COMPLETES_AT_VENDOR]: { meaning: 'Everything the application can erase was erased, and a vendor deletes the rest on its own published schedule, by completesAtVendorBy. Needs no operator.' },\n [DataSubjectRequestStatus.EXTERNAL_WORK_OWED]: { meaning: 'Everything the application can do now was done, and work at an external system is owed and scheduled by the engine itself. Finishes without an operator; the engine alerts if it is still owed after 24 hours.' },\n [DataSubjectRequestStatus.FAILED]: { meaning: 'The request could not be carried out completely, for example because a legal hold keeps the person\\'s data, and needs an operator.' },\n [DataSubjectRequestStatus.AVAILABLE]: { meaning: `A copy of the person's data is ready: they can download it, signed in, for ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS} days after it was answered.` },\n [DataSubjectRequestStatus.EXPIRED]: { meaning: 'The download window of a copy ended; the person files a new request for a fresh one.' },\n [DataSubjectRequestStatus.RECEIVED]: { meaning: 'A correction request waiting for an operator to act on it; still withdrawable.' },\n [DataSubjectRequestStatus.DECLINED]: { meaning: 'A correction an operator did not make, with the reasons the person is told.' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n receivedAt: schemaShape.receivedAt.dateSpec({\n meaning: 'When the controller received the request: the moment the statutory deadline starts.',\n whyItMatters: 'An operator may record a request that arrived earlier, so the deadline runs from receipt rather than from recording.',\n temporalRole: 'creation',\n }),\n respondBy: schemaShape.respondBy.dateSpec({\n meaning: 'The statutory deadline: one calendar month after receipt.',\n whyItMatters: 'The sweep carries the request out before it, even inside the grace window, so the answer lands within the law\\'s one month.',\n temporalRole: 'deadline',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'On an operator-recorded request: the out-of-band request it records, and how the person was verified.',\n whyItMatters: 'Mandatory on the operator channel, so the record keeps the accountable reason. Absent on a request the person filed.',\n }),\n requestedByUserId: schemaShape.requestedByUserId.foreignKeySpec({\n meaning: 'The privacy operator who recorded the request; absent when the person filed it.',\n whyItMatters: 'Keeps the accountable operator distinct from the person the request is about.',\n relationshipContext: 'References the operator who recorded the request.',\n }),\n completedAt: schemaShape.completedAt.dateSpec({ meaning: `When the request was answered: an erasure's completed, completes-at-vendor, external-work-owed or failed outcome, or the moment a copy was made available, from which its ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS}-day download window runs.`, temporalRole: 'modified' }),\n completesAtVendorBy: schemaShape.completesAtVendorBy.dateSpec({\n meaning: 'On a request that completes at a vendor: the date by which every such vendor has deleted the person\\'s data, the latest of their declared windows.',\n whyItMatters: 'The date the controller can give the person for when the erasure is finished everywhere, taken from each vendor\\'s declared window.',\n temporalRole: 'deadline',\n }),\n outcome: schemaShape.outcome.stringSpec({ meaning: 'Server-owned receipt of what was done: local counts, every external effect status and step reference, legal-hold grounds and statutory restrictions; never provider prose.' }),\n originalRespondBy: schemaShape.originalRespondBy.dateSpec({\n meaning: 'On an extended request: the one-month deadline the law first set, before the extension.',\n whyItMatters: 'Keeps both what the law required and what the controller chose; its presence is what says the request was extended.',\n temporalRole: 'deadline',\n }),\n extensionReason: schemaShape.extensionReason.stringSpec({\n meaning: 'On an extended request: why the answer is delayed, in the words the person is told.',\n whyItMatters: 'The law requires the person to be told of an extension together with the reasons for the delay.',\n }),\n extendedAt: schemaShape.extendedAt.dateSpec({ meaning: 'On an extended request: when the extension was decided.', temporalRole: 'modified' }),\n extensionOperatorUserId: schemaShape.extensionOperatorUserId.foreignKeySpec({\n meaning: 'On an extended request: the privacy operator who extended it.',\n whyItMatters: 'Keeps the person who delayed the answer accountable for it.',\n relationshipContext: 'References the operator who extended the deadline.',\n }),\n rectificationDetails: schemaShape.rectificationDetails.stringSpec({\n meaning: 'On a correction request: what the person says is wrong and what it should say, in their own words.',\n whyItMatters: 'Most data a person corrects themselves on the application\\'s own screens; this records what they could not, for an operator to act on.',\n }),\n rectificationOutcome: schemaShape.rectificationOutcome.stringSpec({\n meaning: 'On a resolved correction request: what was corrected, or why it was not, in the words the person is told.',\n whyItMatters: 'A person must be told the reasons when their request is not acted on.',\n }),\n openRequestKey: schemaShape.openRequestKey.stringSpec({\n meaning: 'The person\\'s open slot for this kind of request, held while the request stands open; never shown.',\n whyItMatters: 'Unique in the store, so two requests of the same kind filed at the same instant cannot both be recorded.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: `When the request was recorded; its ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS}-day grace window starts here.`, temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the request last changed.', temporalRole: 'modified' }),\n },\n additionalFieldSpecs: [],\n operations: {\n [Op.READ]: {\n purpose: 'Open one of the caller\\'s own requests.',\n outcome: 'Its kind, standing, provenance, deadline and outcome.',\n whenToUse: 'Show where a request has got to, or whether it can still be withdrawn.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The request was found and returned.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id is visible to the signed-in person.' }],\n idempotent: true,\n examples: [{ title: 'Inspect a completed erasure request', request: requestPathExample, response: completedRequestExample, forStatus: HttpResponseStatusCode.OK_200 }],\n variants: {\n context: { examples: [{ title: 'Inspect a pending request with related user context', request: requestPathExample, response: { ...scheduledRequestExample, user: { _id: SUBJECT_USER_ID } }, forStatus: HttpResponseStatusCode.OK_200 }] },\n summary: { examples: [{ title: 'Inspect a compact pending-request summary', request: requestPathExample, response: summaryExample, forStatus: HttpResponseStatusCode.OK_200 }] },\n },\n },\n [Op.LIST]: {\n purpose: 'Enumerate the caller\\'s own requests.',\n outcome: 'A (possibly empty) page of the caller\\'s requests.',\n whenToUse: 'Show the person their requests and the one still waiting.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of the caller\\'s own requests.' }],\n idempotent: true,\n examples: [{ title: 'List recent requests', request: pageParametersExample, response: page([scheduledRequestExample, completedRequestExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n variants: {\n context: { examples: [{ title: 'List requests with related user context', request: pageParametersExample, response: page([{ ...scheduledRequestExample, user: { _id: SUBJECT_USER_ID } }]), forStatus: HttpResponseStatusCode.OK_200 }] },\n summary: { examples: [{ title: 'List compact request summaries', request: pageParametersExample, response: page([summaryExample]), forStatus: HttpResponseStatusCode.OK_200 }] },\n },\n },\n [Op.CREATE]: {\n purpose: 'System-only write of a new request (INTERNAL_CALL, no route): the door both intake verbs write through.',\n outcome: 'A request with its server-authored provenance and deadline; the person is told it was received, or that their copy is ready.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The request was stored (service tier only).' }],\n idempotent: false,\n communications: {\n email: {\n purpose: 'Tell the person a request about their own data was recorded, whoever filed it.',\n tone: 'Plain and reassuring: a receipt for a right the person exercised, naming what happens next and by when, with no legal citations.',\n useWhen: 'Every request recorded for a person, by them or by the privacy team on their behalf.',\n avoidWhen: 'Never suppressed: a person who did not make the request learns of it here.',\n textSlots: { subject: { purpose: 'Say that a request about the reader\\'s data was received, or that their copy is ready.' } },\n eventData: { purpose: 'Carry what was asked, when it was received, and the date it is answered by or the copy can be downloaded until.' },\n deliveries: [\n {\n audience: 'The person the request is about.',\n targetRef: CoreUserNotificationTarget.USERS_CUSTOM,\n customDeliveryRef: 'received',\n purposeOverride: 'For an erasure or a correction: what was asked, when, the date it is answered by, that it can be withdrawn while waiting, and what to do if they did not ask.',\n },\n {\n audience: 'The person the request is about.',\n targetRef: CoreUserNotificationTarget.USERS_CUSTOM,\n customDeliveryRef: 'ready',\n purposeOverride: 'For a copy of their data: that it is ready, until when it can be downloaded, and that it is fetched signed in, never attached.',\n },\n ],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'System-only write of a request\\'s state (INTERNAL_CALL, no route): the sweep\\'s terminal status, an extension, a correction\\'s answer, a released slot.',\n outcome: 'The sweep records the terminal status, `completedAt`, `completesAtVendorBy` where a vendor finishes the erasure, and the `outcome` receipt; an extension records the new deadline and its reason, and the person is told.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The request was updated (service tier only).' }],\n idempotent: true,\n communications: {\n email: {\n purpose: 'Tell the person their request will be answered later, with the new date and the reason (GDPR Art. 12(3)).',\n tone: 'Plain and reassuring: a receipt for a right the person exercised, naming what happens next and by when, with no legal citations.',\n useWhen: 'Only the write that records an extension.',\n avoidWhen: 'Every other update: a terminal status, a withdrawal, a released slot.',\n textSlots: { subject: { purpose: 'Say that the answer to the reader\\'s request will take longer.' } },\n eventData: { purpose: 'Carry what was asked, the original and the new deadline, and the reason in the privacy team\\'s words.' },\n deliveries: [\n {\n audience: 'The person the request is about.',\n targetRef: CoreUserNotificationTarget.USERS_CUSTOM,\n customDeliveryRef: 'extended',\n purposeOverride: 'The notice the law requires within the first month: the new date and the reasons for the delay.',\n },\n ],\n },\n },\n },\n [Op.DELETE_MANY]: {\n purpose: 'Remove requests past the `AUDIT_LOGS` period: the door of the retention-class sweep.',\n outcome: 'A handled request stops naming the person who raised it once its evidence period ends.',\n whenToUse: 'Never a public surface. INTERNAL_CALL registers no route, and only the sweep calls it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The matched requests were deleted.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A legal hold covers a matched request; the sweep keeps it.' }],\n idempotent: true,\n },\n [DataSubjectRequests_Operations.REQUEST]: {\n operationId: DataSubjectRequests_Operations.REQUEST,\n purpose: 'File a request about the caller\\'s own account, after a fresh re-authentication.',\n outcome: `An erasure is returned scheduled with its one-month deadline, and its ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS}-day grace window starts now. An access export or portability archive is returned available: answered at once, downloadable for ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS} days. A correction request is returned received, waiting for an operator.`,\n whenToUse: 'After the signed-in person explicitly confirms which right they want exercised on their own account.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The request was filed: scheduled for an erasure, available for a copy of the data.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The userId in the URL does not identify the signed-in person, or the request carries no fresh re-authentication proof (`X-Reauth-Token`).' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.ALREADY_PENDING, when: 'The person already has a request of this kind waiting, or a copy they can still download; a second would record two demands where the person made one.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails validation, including a request that names no right.' },\n ],\n idempotent: false,\n examples: [\n { title: 'A person requests erasure of their own account', request: { userId: SUBJECT_USER_ID, kind: DataSubjectRequestKind.ERASURE }, response: scheduledRequestExample, forStatus: HttpResponseStatusCode.CREATED_201 },\n { title: 'A person asks for a copy of their data', request: { userId: SUBJECT_USER_ID, kind: DataSubjectRequestKind.ACCESS_EXPORT }, response: availableExportExample, forStatus: HttpResponseStatusCode.CREATED_201 },\n ],\n },\n [DataSubjectRequests_Operations.CANCEL]: {\n operationId: DataSubjectRequests_Operations.CANCEL,\n purpose: 'Withdraw one of the caller\\'s own requests while it is still scheduled.',\n outcome: 'The request moves to cancelled and is not carried out.',\n whenToUse: 'Only while the request is scheduled, when the person changed their mind or filed it in error.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The request was withdrawn and returned in cancelled state.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer waiting to be carried out (it is not scheduled or received): the engine refuses on the operation\\'s condition before it runs.', customMessageReference: ErrorCustomMessageReference.SERVICE_RESOURCE_OPERATION_DISABLED },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request moved after this one was admitted (another withdrawal, or the sweep carried it out), so nothing was written. Read it again.', customMessageReference: ErrorCustomMessageReference.VERSION_CONFLICT },\n // Re-checked on the row the condition judged, so a client normally meets the two rows above, never this code.\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.NOT_WITHDRAWABLE, when: 'The request is already cancelled, completed or failed, so it can no longer be withdrawn.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id is visible to the signed-in person.' },\n ],\n idempotent: false,\n examples: [{ title: 'Withdraw a pending request', request: requestPathExample, response: { ...scheduledRequestExample, status: DataSubjectRequestStatus.CANCELLED, updatedAt: '2026-08-20T11:30:00.000Z' }, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [DataSubjectRequests_Operations.RECORD_OPERATOR_REQUEST]: {\n operationId: DataSubjectRequests_Operations.RECORD_OPERATOR_REQUEST,\n purpose: 'Record a verified request received outside the application, on another person\\'s behalf.',\n outcome: 'A scheduled operator-channel request, with the person, the accountable operator, the justification and the receipt date recorded separately.',\n whenToUse: 'When an authorized privacy operator has verified a request received through support, email or another approved channel.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The request was recorded for the person, in scheduled state on the operator channel, with requestedByUserId set to the acting operator.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold application super-administrator authority.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, errorCode: DataSubjectRequestRefusalCode.RECEIVED_IN_FUTURE, when: 'receivedAt is in the future, which would move the deadline past the law\\'s.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.ALREADY_PENDING, when: 'The person already has a request of this kind waiting.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Record an erasure request received by the privacy team',\n request: { userId: OPERATOR_USER_ID, subjectUserId: SUBJECT_USER_ID, kind: DataSubjectRequestKind.ERASURE, justification: 'Privacy request PR-2026-0042, identity verified by the support team.', receivedAt: RECEIVED_AT },\n response: { ...scheduledRequestExample, channel: DataSubjectRequestChannel.OPERATOR, requestedByUserId: OPERATOR_USER_ID, justification: 'Privacy request PR-2026-0042, identity verified by the support team.' },\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [DataSubjectRequests_Operations.EXTEND_DEADLINE]: {\n operationId: DataSubjectRequests_Operations.EXTEND_DEADLINE,\n purpose: 'Extend a waiting request\\'s deadline by one or two further months, with the reason the person is told.',\n outcome: 'The deadline moves by the months asked, counted from the original one-month deadline and moved off a non-working day; the original deadline, the reason, the time and the operator are kept, and the person is told.',\n whenToUse: 'Within the first month of a request, when its complexity or the number of the person\\'s requests means it cannot be answered in time.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The deadline was extended and the request is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold application super-administrator authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.NOT_EXTENDABLE, when: 'The request is no longer waiting, was already extended, or its one-month deadline has passed.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'More than two months, or no reason, was given.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Extend a request by two months',\n request: { userId: OPERATOR_USER_ID, requestId: REQUEST_ID, additionalMonths: 2, reason: 'Three linked requests about one account.' },\n response: { ...scheduledRequestExample, respondBy: '2026-11-18T09:00:00.000Z', originalRespondBy: RESPOND_BY, extensionReason: 'Three linked requests about one account.', extendedAt: '2026-08-25T10:00:00.000Z', extensionOperatorUserId: OPERATOR_USER_ID },\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [DataSubjectRequests_Operations.RESOLVE_RECTIFICATION]: {\n operationId: DataSubjectRequests_Operations.RESOLVE_RECTIFICATION,\n purpose: 'Record what was done with a correction request: the data corrected, or the correction declined with its reasons.',\n outcome: 'The request is completed or declined, with the outcome the person is told.',\n whenToUse: 'After an operator has corrected the data the person described, or decided not to and can say why.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The correction request was resolved and is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold application super-administrator authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id.' },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.NOT_RESOLVABLE, when: 'The request is not a correction request still waiting for an operator.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Record a correction made',\n request: { userId: OPERATOR_USER_ID, requestId: REQUEST_ID, resolution: 'rectified', outcome: 'Your billing address now reads 12 Elm Street.' },\n response: { ...scheduledRequestExample, kind: DataSubjectRequestKind.RECTIFICATION, status: DataSubjectRequestStatus.COMPLETED, rectificationDetails: 'My billing address is wrong.', rectificationOutcome: 'Your billing address now reads 12 Elm Street.', completedAt: COMPLETED_AT },\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [DataSubjectRequests_Operations.OPERATOR_QUEUE]: {\n operationId: DataSubjectRequests_Operations.OPERATOR_QUEUE,\n purpose: 'List every person\\'s requests the application still owes an answer to, or that need an operator, soonest deadline first.',\n outcome: 'A page of waiting erasures, waiting corrections and failed requests, ordered by the date each must be answered by.',\n whenToUse: 'When a privacy operator works through what is due; open an access window first, which a second administrator approves.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of requests, soonest deadline first.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold application super-administrator authority, or holds no access window a second administrator approved.' },\n ],\n idempotent: true,\n examples: [{ title: 'Read the queue', request: { userId: OPERATOR_USER_ID, page: 1, limit: 20 }, response: page([scheduledRequestExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [DataSubjectRequests_Operations.DOWNLOAD]: {\n operationId: DataSubjectRequests_Operations.DOWNLOAD,\n purpose: 'Tell the signed-in person whether, until when and from where they can download the copy one of their own requests answers.',\n outcome: 'The request id, its kind, the file name, the end of the download window, and the path of the route that streams the archive.',\n whenToUse: 'Before offering a download, or from an integration that fetches the archive itself. The archive is streamed by `GET /privacy/data-subject-requests/:requestId/download`, which makes the same decision.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The request can be downloaded now.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with that id belongs to the signed-in person.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is not an export available for download (still being prepared, expired, or not an export at all): the engine refuses on the operation\\'s condition before it runs. NOT_DOWNLOADABLE arrives instead for a copy whose download window ended before the sweep withdrew it, and always from the streaming route, which the condition does not guard.', customMessageReference: ErrorCustomMessageReference.SERVICE_RESOURCE_OPERATION_DISABLED },\n { code: HttpResponseStatusCode.CONFLICT_409, errorCode: DataSubjectRequestRefusalCode.NOT_DOWNLOADABLE, when: 'The request is not a copy of the person\\'s data, or its download window ended.' },\n ],\n idempotent: true,\n examples: [{ title: 'Where to download an access export', request: requestPathExample, response: downloadTicketExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [DataSubjectRequests_Operations.SWEEP_DUE_REQUESTS]: {\n operationId: DataSubjectRequests_Operations.SWEEP_DUE_REQUESTS,\n purpose: 'Carry out every due erasure through the engine\\'s system-level subject-erasure door and record what happened, and mark expired every copy whose download window ended.',\n outcome: 'Each due request is attempted and marked COMPLETED, COMPLETES_AT_VENDOR, EXTERNAL_WORK_OWED or FAILED with a receipt; a legal hold, an unexecuted edge, an incomplete external effect, an unconfirmed severance, a session that did not end or a thrown erasure makes it FAILED for an operator. An organization the person owned and was the only member of goes with them (#3786): it is marked for deletion before the erasure, the purge removes it at the end of the tenant retention window, and the receipt names it with that date. An organization someone else still belongs to keeps the owner-floor refusal (`LAST_ORGANIZATION_OWNER`), recorded as FAILED until another owner is appointed.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The run\\'s counters; every due request was attempted and requests not yet due were left scheduled.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.INTERNAL_SERVER_ERROR_500, when: 'The sweep could not list scheduled requests or acquire system access. A failed erasure is caught and recorded as FAILED; a failed receipt write is logged and leaves the request scheduled.' }],\n idempotent: true,\n scheduledExecution: {\n variantType: ResourceOperationScheduledExecutionVariantType.NATIVE_CRON_JOB,\n purpose: 'Answer every data-subject request within its deadline, after its grace window, without anyone having to act.',\n outcome: 'Due requests are attempted through `eraseSubjectAsSystem`; the retained receipt distinguishes a completed answer from work needing an operator.',\n cronExpression: '0 * * * *',\n useWhen: 'the application is live and must answer data-subject requests automatically.',\n avoidWhen: 'an operator is holding execution to investigate a suspected erroneous request — suppressing this cron pauses execution without losing the pending requests.',\n businessConstraints: [\n `Due when SCHEDULED and either ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS} days have passed since createdAt or respondBy is within ${DATA_SUBJECT_REQUEST_DEADLINE_SAFETY_MARGIN_DAYS} days (\\`isDataSubjectErasureRequestDue\\`): the grace window never outranks the deadline.`,\n 'FAILED requests are never retried by the sweep; an operator reconciles the receipt before any deliberate new request. A crash before the receipt write re-executes the request on the next run, under the erasure door\\'s idempotent re-execution contract.',\n ],\n codeHandling: {\n notes: [\n 'Declared directly on the operation (`ResourceOperationVariantType.CRON_JOB`, `cronExpression: \\'0 * * * *\\'`); no custom batch wrapper, so `customBatchRef` is unset.',\n 'Reads SCHEDULED requests page by page through `listAsSystem`, records outcomes through `updateAsSystem`, reaches the person through `eraseSubjectAsSystem(USERS, userId)`.',\n ],\n },\n },\n },\n },\n businessConstraints: [\n 'A signed-in person can file, read, list and withdraw only their own requests; the operator command is restricted to application super-administrators.',\n `Every erasure request has the same ${DATA_SUBJECT_ERASURE_GRACE_WINDOW_DAYS}-day grace window and a one-calendar-month deadline from receipt; clients choose neither.`,\n 'A deadline that falls on a day the application\\'s business calendar does not work moves to the next working day.',\n 'An operator may extend a waiting request\\'s deadline once, by at most two further months counted from the original deadline, and only within the first month; the person is told, with the reason.',\n `A copy of the person's data is downloadable only by that person, signed in, for ${DATA_SUBJECT_EXPORT_AVAILABILITY_DAYS} days after it was answered; it is assembled on each download, never stored, and every download is recorded.`,\n 'Filing any request asks for a fresh re-authentication.',\n 'A correction request points the person to the screens where they correct their own data, and records only what they could not correct; an operator then corrects it or declines with reasons.',\n 'An operator reads every person\\'s waiting requests only through a time-limited access window a second administrator approved, and every such read is recorded.',\n 'A person has at most one waiting request, or one downloadable copy, of each kind; the store enforces it, so two requests filed at the same instant cannot both be recorded.',\n 'Erasing the person does not delete the request; it stays as evidence for the AUDIT_LOGS period counted from its creation.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n label: {\n purpose: 'Name a request by the day it was received, in the reader\\'s date format: a person has one request, rarely two.',\n },\n layout: {\n purpose: 'Show a person where their request has got to: which stage it is at, what each stage means for them, and the deadline it is answered by.',\n displayPurpose: 'The header names the request by the day it was received and states what was asked (kind), its standing (status) and who raised it (channel); none is repeated below. The body is the request\\'s STAGES, bound to its `status`: asked for, waiting, outcome. Earlier stages read as reached and the request\\'s own stage as current, every stage with the sentence saying what it means for the person, and no buttons. A STEPPER was withdrawn because it opened a completed request on its first stage; a TIMELINE says when things happened, where the reader needs which stage is now.',\n summaryPurpose: 'What was asked, its standing and the deadline on one line, because a list of requests is read for which ones are still waiting and by when.',\n sections: {\n request: {\n purpose: 'The stage in which the request was made: whose account it is about and when the controller received it. Always reached.',\n textSlots: {\n title: { purpose: 'Label the stage in which the request was made, as a stage (\"Requested\"), never the words \"data request\", which name the whole record and head the page.' },\n description: { purpose: 'Explain that a request may be filed by the person or recorded by an operator on their behalf, and that both are answered the same way.' },\n },\n },\n waiting: {\n purpose: 'The grace window a scheduled request waits out, with the date it is answered by (and, when it was extended, the original deadline and the reason), who raised it on the person\\'s behalf and any justification.',\n textSlots: {\n title: { purpose: 'Label the stage in which the request waits to be carried out.' },\n description: { purpose: 'Explain that a scheduled request can still be withdrawn, that it is carried out automatically once the grace window ends, and always before the deadline shown.' },\n },\n },\n outcome: {\n purpose: 'What happened once the request left the waiting stage: withdrawn, completed, completing at a vendor, external work still owed, failed, a copy available to download, or a copy whose window ended. The status badge names which; this stage holds when and what was done, and the download button while a copy is available.',\n textSlots: {\n title: { purpose: 'Label the stage holding how the request ended and its result.' },\n description: { purpose: 'Explain that this is the record of what was done with the request, kept as evidence after the account itself is erased.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'The person\\'s own requests, from the `my-data-subject-requests` settings destination.', whenToUse: 'Settings → Account → Data requests.' },\n [Op.READ]: { purpose: 'One request, its stages and its receipt.', whenToUse: 'Drill-in from the list.' },\n [DataSubjectRequests_Operations.REQUEST]: { purpose: 'File a request from the collection toolbar; the person chooses only which right, then re-authenticates.', whenToUse: 'A person asking for a copy of their data, a portable archive of it, or its erasure.' },\n [DataSubjectRequests_Operations.CANCEL]: { purpose: 'Withdraw a scheduled request from its row; shown only while it is scheduled.', whenToUse: 'A person who changed their mind inside the grace window.' },\n },\n }),\n);\n"]}
|
package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siem-delivery-dlq.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/siem-delivery-dlq.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM3B,0BAA0B,EAE1B,qBAAqB,EAEtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAOL,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"siem-delivery-dlq.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/siem-delivery-dlq.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM3B,0BAA0B,EAE1B,qBAAqB,EAEtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAOL,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AA4crC,eAAO,MAAM,gDAAgD;;;;;;;;;;;iCAG5D,CAAC;AACF,eAAO,MAAM,+CAA+C;;;;;;;;;;;iCAG3D,CAAC"}
|
|
@@ -291,8 +291,8 @@ function buildBase(rt, member) {
|
|
|
291
291
|
idempotent: true,
|
|
292
292
|
},
|
|
293
293
|
[Op.DELETE_MANY]: {
|
|
294
|
-
purpose: 'Bulk twin of `DELETE` — the repository write path behind
|
|
295
|
-
outcome: '
|
|
294
|
+
purpose: 'Bulk twin of `DELETE` — the repository write path behind the delete-on-requeue tail of `RETRY_SINGLE`/`RETRY_ALL`, and, through its route-less INTERNAL_CALL variant, the door of the retention-class sweep and of `PURGE_ALL`, which removes the scope through it a page of at most 100 rows at a time (#2297).',
|
|
295
|
+
outcome: 'Retry-cleanup is one bulk delete instead of N per-row deletes, and every page a purge or the sweep removes is its own transaction with its own audit row, kept through a crash; DLQ rows are inert (no worker owns them, no retry sweep touches them) so any status is safe to drop.',
|
|
296
296
|
whenToUse: 'Never a public HTTP surface. Operators clear or drain via the `PURGE_ALL` / `RETRY_*` custom operations, which own request validation and the summary response; the sweep removes rows past the `OPERATIONAL_LOGS` period.',
|
|
297
297
|
responseStatuses: [
|
|
298
298
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The matched records were bulk-deleted; the body carries `deletedIds` and `deletedCount`, and the invoking custom operation reports the count in its own summary response.' },
|
|
@@ -370,13 +370,14 @@ function buildBase(rt, member) {
|
|
|
370
370
|
},
|
|
371
371
|
[SiemDeliveryDlq_Operations.PURGE_ALL]: {
|
|
372
372
|
operationId: SiemDeliveryDlq_Operations.PURGE_ALL,
|
|
373
|
-
purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope.',
|
|
374
|
-
outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed.',
|
|
373
|
+
purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope, except an entry an active legal hold keeps.',
|
|
374
|
+
outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed. They are removed a page of at most 100 at a time, and each page records its own audit row, so a crash never loses the record of a removal (#2297). When whether a legal hold covers an entry cannot be read, the purge stops with `legal_hold_state_unverifiable`: the pages already removed stay removed and recorded, and running it again finishes the rest.',
|
|
375
375
|
responseStatuses: [
|
|
376
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter record in the scope was permanently removed; a count of purged records is returned.' },
|
|
376
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter record in the scope was permanently removed, except those an active legal hold keeps (the message counts them); a count of purged records is returned.' },
|
|
377
377
|
],
|
|
378
378
|
errorScenarios: [
|
|
379
379
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the CRITICAL-risk operator role required for an irreversible scope-wide purge.' },
|
|
380
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A legal hold was placed on an entry between the purge reading its page and removing it (`legal_hold_active`): that page is refused whole, the pages before it stay removed and recorded, and running the purge again keeps the held entry and removes the rest.' },
|
|
380
381
|
],
|
|
381
382
|
idempotent: false,
|
|
382
383
|
examples: [{
|
package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siem-delivery-dlq.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/siem-delivery-dlq.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,2BAA2B,EAC3B,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,mCAAmC,GACpC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EAErB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAW3E,SAAS,CAAC,CAAC,MAAwC,EAAE,EAAS,EAAE,IAAY;IAC1E,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAkB,CAAC;IACtC,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,QAAQ,IAAI,GAAG,CAAC,CAAC;IACvD,OAAO,CAAC,CAAC;AACX,CAAC;AAED,MAAM,KAAK,GAAwC;IACjD,CAAC,gBAAgB,CAAC,8BAA8B,CAAC,EAAE,oBAAoB,CAAC,aAAa;IACrF,CAAC,gBAAgB,CAAC,6BAA6B,CAAC,EAAE,oBAAoB,CAAC,WAAW;CACnF,CAAC;AAEF,SAAS,mBAAmB,CAAC,IAAwB;IACnD,OAAO;QACL,IAAI;QACJ,UAAU,EAAE;YACV,IAAI,EAAE,CAAC;YACP,K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iBACF;aACF;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iVAAiV,EAAE,SAAS,EAAE,oGAAoG,EAAE;YAC1d,CAAC,0BAA0B,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,EAAE,kKAAkK,EAAE,SAAS,EAAE,sEAAsE,EAAE;YAC7S,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,2LAA2L,EAAE,SAAS,EAAE,oDAAoD,EAAE;YACjT,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,+LAA+L,EAAE,SAAS,EAAE,yFAAyF,EAAE;SAC3V;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gDAAgD,GAAG,KAAK,CACnE,gBAAgB,CAAC,8BAA8B,EAC/C,gCAAgC,CACjC,CAAC;AACF,MAAM,CAAC,MAAM,+CAA+C,GAAG,KAAK,CAClE,gBAAgB,CAAC,6BAA6B,EAC9C,+BAA+B,CAChC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ErrorCustomMessageReference,\n ErrorSeverity,\n ErrorType,\n ResourcePrimaryScope,\n SiemDeliveryDlq_Operations,\n SiemDeliveryDlqBaseSchema,\n SiemDeliveryDlqStatus,\n siemDeliveryDlqPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n type CoreResourceTypeMemberName,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ | CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\ntype RMember = CoreResourceTypeMemberName<RType>;\n\ntype Cfg = ReturnType<(typeof siemDeliveryDlqPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof SiemDeliveryDlqBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\n\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.APPLICATION,\n};\n\nfunction siemDeliveryDlqPage(data: readonly unknown[]) {\n return {\n data,\n pagination: {\n page: 1,\n limit: 20,\n total: data.length,\n totalPages: data.length === 0 ? 0 : 1,\n },\n };\n}\n\nfunction createSiemDeliveryDlqReferenceExamples(resourceType: RType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const scopeIdentity = { [scopeField]: scopeId };\n const pendingEntry = {\n _id: 'siemdlq_pending_01HX2EXAMPLE',\n eventId: 'audit_evt_login_failed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authentication.login.failed',\n occurredAt: '2026-08-18T13:34:58.000Z',\n actor: { type: 'user', id: 'user_01HX2EXAMPLE' },\n outcome: 'failure',\n correlationId: 'corr_01HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint timed out after 10 seconds.',\n failureCount: 2,\n lastAttemptAt: '2026-08-18T13:35:10.000Z',\n nextRetryAt: '2026-08-18T13:40:10.000Z',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n createdAt: '2026-08-18T13:30:00.000Z',\n updatedAt: '2026-08-18T13:35:10.000Z',\n ...scopeIdentity,\n };\n const exhaustedEntry = {\n _id: 'siemdlq_exhausted_01HX2EXAMPLE',\n eventId: 'audit_evt_access_denied_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.access.denied',\n occurredAt: '2026-08-18T12:05:00.000Z',\n actor: { type: 'service', id: 'integration_01HX2EXAMPLE' },\n outcome: 'denied',\n correlationId: 'corr_02HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint returned HTTP 503 for every configured retry.',\n failureCount: 4,\n lastAttemptAt: '2026-08-18T12:20:00.000Z',\n status: SiemDeliveryDlqStatus.EXHAUSTED,\n createdAt: '2026-08-18T12:05:02.000Z',\n updatedAt: '2026-08-18T12:20:00.000Z',\n ...scopeIdentity,\n };\n const deliveredEntry = {\n _id: 'siemdlq_delivered_01HX2EXAMPLE',\n eventId: 'audit_evt_role_changed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.role.changed',\n occurredAt: '2026-08-18T11:15:00.000Z',\n actor: { type: 'user', id: 'admin_01HX2EXAMPLE' },\n outcome: 'success',\n correlationId: 'corr_03HX2EXAMPLE',\n },\n failureReason: 'The first delivery failed, but a later attempt succeeded.',\n failureCount: 1,\n lastAttemptAt: '2026-08-18T11:20:00.000Z',\n status: SiemDeliveryDlqStatus.DELIVERED,\n createdAt: '2026-08-18T11:15:02.000Z',\n updatedAt: '2026-08-18T11:20:00.000Z',\n ...scopeIdentity,\n };\n const listRequest = {\n ...scopeIdentity,\n createdAt: {\n startDate: '2026-08-18T00:00:00.000Z',\n endDate: '2026-08-18T23:59:59.999Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n };\n const visibleEntries = isApplication ? [] : [pendingEntry, exhaustedEntry, deliveredEntry];\n /*\n * The context page does not embed the owning organization in every application: the reference run of #3204 published it\n * without one, and the API reference refused an example naming it. A response example may show part of a response, so the\n * entries are shown without the embedded parent, which is true everywhere.\n */\n const contextEntries = visibleEntries.map((entry) => ({ ...entry }));\n const summaryEntries = visibleEntries.map((entry) => ({\n _id: entry._id,\n failureReason: entry.failureReason,\n status: entry.status,\n createdAt: entry.createdAt,\n }));\n\n return {\n isApplication,\n scopeIdentity,\n pendingEntry,\n listRequest,\n listPage: siemDeliveryDlqPage(visibleEntries),\n contextPage: siemDeliveryDlqPage(contextEntries),\n summaryPage: siemDeliveryDlqPage(summaryEntries),\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const reference = createSiemDeliveryDlqReferenceExamples(rt);\n return resourceSpecification<Custom, Core, Main>(\n siemDeliveryDlqPolymorphicFactories[rt],\n SiemDeliveryDlqBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM delivery dead-letter entry: one record per failed (or re-queued) webhook delivery attempt, retaining payload for retry, inspection, and purge.',\n businessRole: 'Operator-facing queue for data that could not be pushed to a customer’s SIEM endpoint in time, with a clear failure reason and retry state.',\n lifecycleRole: 'Progresses from pending retry to exhausted or eventually delivered; an integrity failure is quarantined instead. Custom ops requeue or clear entries in bulk.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemDeliveryDlqBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'siemDeliveryDlqPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: rt,\n },\n resourceType: {\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n memberName: member,\n },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'SiemDeliveryDlq_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n notes: [\n '`eventPayload` is `z.unknown()` in the schema — the companion may describe it generically; this spec file omits a typed field spec until a dedicated `unknown`/`json` *Spec is standardized.',\n ],\n },\n fields: {\n status: schemaShape.status.enumSpec({\n meaning: 'DLQ lifecycle: awaiting retry, exhausted, already delivered to SIEM on a later attempt, or quarantined after failing its integrity check.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'SiemDeliveryDlqStatus', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [SiemDeliveryDlqStatus.PENDING_RETRY]: { meaning: 'May be retried automatically or by an operator while policy allows.' },\n [SiemDeliveryDlqStatus.EXHAUSTED]: { meaning: 'Retries are exhausted; manual inspection and purge or policy-driven cleanup apply.' },\n [SiemDeliveryDlqStatus.DELIVERED]: { meaning: 'A later attempt succeeded; record may be retained for an audit window.' },\n [SiemDeliveryDlqStatus.QUARANTINED]: {\n meaning: 'The delivery job failed its integrity check (its MAC was missing or did not cover the event, scope and destination), so the stored event and the scope it is filed under are untrusted (#2959). A retry never re-sends it: it re-derives the event from the audit log by `eventId`, for an organization the audit log records the event as routed to, and otherwise leaves the row quarantined for inspection or purge.',\n },\n },\n }),\n failureReason: schemaShape.failureReason.stringSpec({\n meaning: 'Default list label in presets: `<reason>: <detail>`, where the reason is a `SiemDeliveryFailureKind` (`hmac_verification_failed`, `circuit_breaker_open`, `retry_schedule_failed`, `credential_unopenable`, `retries_exhausted`) and the detail is what the failing step reported. The reason decides the row\\'s status.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({ meaning: 'Correlation id to the source audit/transport event behind this failed delivery.' }),\n failureCount: schemaShape.failureCount.numberSpec({ meaning: 'How many times delivery failed for this chain.' }),\n lastAttemptAt: schemaShape.lastAttemptAt.dateSpec({ meaning: 'Last delivery attempt from Wildo to the customer webhook.' }),\n nextRetryAt: schemaShape.nextRetryAt.dateSpec({ meaning: 'When the next automatic retry is scheduled, if any.' }),\n },\n // `eventPayload` is `z.unknown()`, which carries no spec decorators, so its meaning is declared\n // through the escape hatch rather than dropped.\n additionalFieldSpecs: [\n {\n fieldName: 'eventPayload',\n specDecorator: 'objectSpec',\n params: {\n meaning: 'The security audit event that could not be delivered, stored exactly as it was built. A retry re-sends this same event, with the same `eventId` — except on a quarantined row, where this payload is untrusted and the retry re-derives the event from the audit log instead.',\n whyItMatters: 'Its structure depends on the event type, and it can name the people and systems involved in the event.',\n },\n },\n ],\n operations: {\n [Op.READ]: {\n purpose: 'Repository read of a single DLQ row (internal and admin diagnostics, not a broad end-user read).',\n outcome: 'Inspect error metadata and the opaque payload for support.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The DLQ record was found and its failure metadata plus opaque payload snapshot are returned for diagnostics.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role required to inspect a dead-letter row (the payload may contain customer PII).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id in the caller’s scope (already purged or re-delivered and removed).' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: reference.isApplication\n ? 'List application-scoped SIEM delivery failures. This framework version has no application-scoped SIEM event producer, so the queue is expected to remain empty.'\n : 'List organization SIEM delivery failures for an incident window, filtered by retry status and ordered for investigation.',\n outcome: reference.isApplication\n ? 'A paginated empty queue confirms that no application-scoped SIEM delivery stream is active.'\n : 'Administrators receive the failed event envelope, failure reason, attempt history and current retry state for each delivery.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of dead-letter records for the scope, ordered for the queue browser.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role that gates the SIEM dead-letter queue for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM queue is empty'\n : 'Investigate current SIEM delivery states',\n request: reference.listRequest,\n response: reference.listPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM context queue is empty'\n : 'Investigate SIEM failures with organization context',\n request: reference.listRequest,\n response: reference.contextPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM summary queue is empty'\n : 'Review compact SIEM failure summaries',\n request: reference.listRequest,\n response: reference.summaryPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Internal append of DLQ rows on delivery failure (REPOSITORY_ONLY in the factory).',\n outcome: 'A new retryable or terminal document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter record was appended for a failed SIEM delivery and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The failure record fails schema validation (e.g. an unknown `status` or a missing `eventId`/`failureReason`).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the internal delivery pipeline; this is a REPOSITORY_ONLY append path, not a self-serve create.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Append a dead-letter row for a failed SIEM delivery',\n request: {\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n response: {\n _id: 'siemdlq_01HX2…',\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Remove one row after a successful re-delivery or explicit row-level purge; REPOSITORY_ONLY in the factory for safety.',\n outcome: 'Entry removed from the DLQ collection; separate audit may still cover the original event stream.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The dead-letter record was removed from the queue; the body carries its `id`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to drop a dead-letter row.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id (already removed by a prior purge or re-delivery).' },\n ],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of `DELETE` — the repository write path behind `PURGE_ALL` (whole-scope clear) and the delete-on-requeue tail of `RETRY_SINGLE`/`RETRY_ALL`, and the retention-class sweep\\'s door through its route-less INTERNAL_CALL variant: one round trip drops every matched row.',\n outcome: 'Purge and retry-cleanup scale with a single bulk delete instead of N per-row deletes; DLQ rows are inert (no worker owns them, no retry sweep touches them) so any status is safe to drop.',\n whenToUse: 'Never a public HTTP surface. Operators clear or drain via the `PURGE_ALL` / `RETRY_*` custom operations, which own request validation and the summary response; the sweep removes rows past the `OPERATIONAL_LOGS` period.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The matched records were bulk-deleted; the body carries `deletedIds` and `deletedCount`, and the invoking custom operation reports the count in its own summary response.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts the repository-only bulk delete directly; UI/API flows must use `PURGE_ALL` / `RETRY_*`.' },\n ],\n idempotent: true,\n },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_SINGLE,\n purpose: reference.isApplication\n ? 'Request a retry for one application-scoped queue entry by `entryId`; this version normally has no such entries because the application SIEM producer is unavailable.'\n : 'Request a new delivery attempt for one organization queue entry identified by `entryId` in the request body.',\n outcome: 'The response acknowledges the selected queue entry. If the new delivery also fails, its failure is visible in the queue again.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The targeted dead-letter entry was re-queued for delivery; a `{ message, entryId }` acknowledgement is returned (not the DLQ record).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to replay SIEM deliveries, or the organization does not hold the security-event export entitlement (`FEATURE_NOT_AVAILABLE`): a replay exports again (#3162).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied `entryId` in the caller’s scope — it was already cleared or successfully re-delivered.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The entry is already `delivered` (a later attempt succeeded), so there is nothing to retry. `pending_retry` and `exhausted` entries re-send their stored event; a `quarantined` one is re-derived from the audit log.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The scope has no SIEM webhook URL configured, so there is no destination to re-deliver to; configure SIEM export before retrying.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The entry is `quarantined` and cannot be re-derived: the audit log holds no event under its `eventId`, does not record that event as routed to this scope, the scope\\'s SIEM export filter excludes it, or the scope is an application. The entry stays quarantined; its stored payload is never re-sent.' },\n ],\n idempotent: false,\n examples: reference.isApplication\n ? [{\n title: 'Retry an unavailable application-scoped queue entry',\n request: { ...reference.scopeIdentity, entryId: 'siemdlq_missing_01HX2EXAMPLE' },\n response: {\n error: {\n type: ErrorType.NOT_FOUND,\n severity: ErrorSeverity.LOW,\n message: 'Requested resource not found',\n customMessage: 'The SIEM delivery queue entry could not be found.',\n customMessageReference: ErrorCustomMessageReference.NOT_FOUND,\n timestamp: '2026-08-18T13:45:00.000Z',\n },\n },\n forStatus: HttpResponseStatusCode.NOT_FOUND_404,\n }]\n : [{\n title: 'Retry one failed organization SIEM delivery',\n request: { ...reference.scopeIdentity, entryId: reference.pendingEntry._id },\n response: {\n message: 'SIEM DLQ entry re-queued for delivery.',\n entryId: reference.pendingEntry._id,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_ALL,\n purpose: 'Retry every pending, exhausted or quarantined SIEM delivery entry in the current scope. A quarantined entry is re-derived from the audit log rather than re-sent, and stays quarantined (counted as skipped) when it cannot be.',\n outcome: 'The response reports how many entries were accepted for another attempt and how many could not be retried.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Eligible dead-letter entries in the scope were re-queued and removed; a `{ retriedCount, skippedCount, message }` summary is returned (not the records). When SIEM export has no webhook URL configured, all entries are reported as skipped.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to trigger a scope-wide SIEM replay, or the organization does not hold the security-event export entitlement (`FEATURE_NOT_AVAILABLE`): a replay exports again (#3162).' },\n ],\n idempotent: false,\n rateLimitNote: 'Bulk replay fans out one outbound delivery attempt per eligible row (no artificial batch cap — the DLQ is a bounded failure queue); the SIEM delivery worker’s own per-scope circuit breaker and retry/backoff protect the customer endpoint.',\n examples: [{\n title: reference.isApplication\n ? 'Retry the empty application SIEM queue'\n : 'Retry all eligible organization SIEM deliveries',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { retriedCount: 0, skippedCount: 0, message: 'The SIEM dead-letter queue is empty for this scope.' }\n : { retriedCount: 2, skippedCount: 1, message: 'Re-queued 2 of 3 SIEM dead-letter entries for this organization; skipped 1.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: {\n operationId: SiemDeliveryDlq_Operations.PURGE_ALL,\n purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope.',\n outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter record in the scope was permanently removed; a count of purged records is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the CRITICAL-risk operator role required for an irreversible scope-wide purge.' },\n ],\n idempotent: false,\n examples: [{\n title: reference.isApplication\n ? 'Purge the empty application SIEM queue'\n : 'Purge all organization SIEM delivery failures',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { purgedCount: 0, message: 'Purged 0 SIEM dead-letter entries for this application.' }\n : { purgedCount: 3, message: 'Purged 3 SIEM dead-letter entries for this organization.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Purge and bulk retry are governed by the factory’s risk tiers: companion should never describe them as low-impact maintenance.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM delivery is reserved in this framework version: no application event producer populates this queue, so retry and purge normally operate on an empty collection.']\n : []),\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const b = buildBase(rt, member);\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n b,\n () => ({\n label: {\n purpose: 'List rows and summaries are labeled from `failureReason` in the merged `security` preset — surface a concise operator-readable reason, not the entire payload.',\n },\n layout: {\n purpose: 'A header that names the failed delivery by its `failureReason` and carries its status badge, then `delivery` (attempt metadata) and `payload` (opaque snapshot). There is no `overview` section: it held exactly the reason and the status, which the header already shows.',\n displayPurpose: 'Settings rows on read with no section descriptions; `nextRetryAt` is hidden once the row is terminal; the payload card renders the data without a label. A list card is the failure reason and its status badge.',\n sections: {\n delivery: {\n purpose: 'The event id, the failure count, the last attempt and the next retry — enough to judge whether automatic retries can still help.',\n whenToUse: 'Understanding whether automatic retries can still help vs exhausted state.',\n textSlots: {\n title: { purpose: 'Label the delivery and retry block.' },\n },\n },\n payload: {\n purpose: 'The opaque `eventPayload` blob — rendering may truncate or redact; structure is not fixed across event types. The data carries no label: the card heading names it.',\n whenToUse: 'Deep debugging after the delivery record is understood; export paths may also reference this data.',\n textSlots: {\n title: { purpose: 'Label the payload/technical view.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary addressable queue surface in merged presets for org and app security operators — dashboard-style: `status` quick-filter tab strip (All / Pending retry / Exhausted / Delivered) + `createdAt` day-bucket grouping via `collectionDisplayConfig` (backend-validated: `status` + `createdAt` are the LIST op\\'s declared `filterFields`).', whenToUse: 'SIEM health and retry workflows under security settings; the Failed tab is the triage entry point.' },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: { purpose: 'Single-row retry surfaced as a per-row action (not URL-addressable); executes in place on the clicked row, whose id is injected into the request body `entryId`.', whenToUse: 'Replaying one known-bad event after a customer fixes their endpoint.' },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: { purpose: 'Whole-scope requeue (borrows the collection verb `UPDATE_MANY` for an id-less collection route); surfaced once in the list collection-action bar, confirms (HIGH) then executes in place.', whenToUse: 'Outage recovery after a shared infrastructure fix.' },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: { purpose: 'Whole-scope clear (borrows the collection verb `DELETE_MANY` for an id-less collection route); surfaced in the list collection-action bar, type-to-confirm (CRITICAL) then executes in place.', whenToUse: 'Compliance or disk-pressure teardown when retention policy allows purging the DLQ only.' },\n },\n }),\n );\n}\n\nexport const organizationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ,\n 'ORGANIZATION_SIEM_DELIVERY_DLQ',\n);\nexport const applicationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ,\n 'APPLICATION_SIEM_DELIVERY_DLQ',\n);\n"]}
|
|
1
|
+
{"version":3,"file":"siem-delivery-dlq.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/compliance/resources/siem-delivery-dlq.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,2BAA2B,EAC3B,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,mCAAmC,GACpC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EAErB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAW3E,SAAS,CAAC,CAAC,MAAwC,EAAE,EAAS,EAAE,IAAY;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cesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ErrorCustomMessageReference,\n ErrorSeverity,\n ErrorType,\n ResourcePrimaryScope,\n SiemDeliveryDlq_Operations,\n SiemDeliveryDlqBaseSchema,\n SiemDeliveryDlqStatus,\n siemDeliveryDlqPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n type CoreResourceTypeMemberName,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ | CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\ntype RMember = CoreResourceTypeMemberName<RType>;\n\ntype Cfg = ReturnType<(typeof siemDeliveryDlqPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof SiemDeliveryDlqBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\n\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.APPLICATION,\n};\n\nfunction siemDeliveryDlqPage(data: readonly unknown[]) {\n return {\n data,\n pagination: {\n page: 1,\n limit: 20,\n total: data.length,\n totalPages: data.length === 0 ? 0 : 1,\n },\n };\n}\n\nfunction createSiemDeliveryDlqReferenceExamples(resourceType: RType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const scopeIdentity = { [scopeField]: scopeId };\n const pendingEntry = {\n _id: 'siemdlq_pending_01HX2EXAMPLE',\n eventId: 'audit_evt_login_failed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authentication.login.failed',\n occurredAt: '2026-08-18T13:34:58.000Z',\n actor: { type: 'user', id: 'user_01HX2EXAMPLE' },\n outcome: 'failure',\n correlationId: 'corr_01HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint timed out after 10 seconds.',\n failureCount: 2,\n lastAttemptAt: '2026-08-18T13:35:10.000Z',\n nextRetryAt: '2026-08-18T13:40:10.000Z',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n createdAt: '2026-08-18T13:30:00.000Z',\n updatedAt: '2026-08-18T13:35:10.000Z',\n ...scopeIdentity,\n };\n const exhaustedEntry = {\n _id: 'siemdlq_exhausted_01HX2EXAMPLE',\n eventId: 'audit_evt_access_denied_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.access.denied',\n occurredAt: '2026-08-18T12:05:00.000Z',\n actor: { type: 'service', id: 'integration_01HX2EXAMPLE' },\n outcome: 'denied',\n correlationId: 'corr_02HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint returned HTTP 503 for every configured retry.',\n failureCount: 4,\n lastAttemptAt: '2026-08-18T12:20:00.000Z',\n status: SiemDeliveryDlqStatus.EXHAUSTED,\n createdAt: '2026-08-18T12:05:02.000Z',\n updatedAt: '2026-08-18T12:20:00.000Z',\n ...scopeIdentity,\n };\n const deliveredEntry = {\n _id: 'siemdlq_delivered_01HX2EXAMPLE',\n eventId: 'audit_evt_role_changed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.role.changed',\n occurredAt: '2026-08-18T11:15:00.000Z',\n actor: { type: 'user', id: 'admin_01HX2EXAMPLE' },\n outcome: 'success',\n correlationId: 'corr_03HX2EXAMPLE',\n },\n failureReason: 'The first delivery failed, but a later attempt succeeded.',\n failureCount: 1,\n lastAttemptAt: '2026-08-18T11:20:00.000Z',\n status: SiemDeliveryDlqStatus.DELIVERED,\n createdAt: '2026-08-18T11:15:02.000Z',\n updatedAt: '2026-08-18T11:20:00.000Z',\n ...scopeIdentity,\n };\n const listRequest = {\n ...scopeIdentity,\n createdAt: {\n startDate: '2026-08-18T00:00:00.000Z',\n endDate: '2026-08-18T23:59:59.999Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n };\n const visibleEntries = isApplication ? [] : [pendingEntry, exhaustedEntry, deliveredEntry];\n /*\n * The context page does not embed the owning organization in every application: the reference run of #3204 published it\n * without one, and the API reference refused an example naming it. A response example may show part of a response, so the\n * entries are shown without the embedded parent, which is true everywhere.\n */\n const contextEntries = visibleEntries.map((entry) => ({ ...entry }));\n const summaryEntries = visibleEntries.map((entry) => ({\n _id: entry._id,\n failureReason: entry.failureReason,\n status: entry.status,\n createdAt: entry.createdAt,\n }));\n\n return {\n isApplication,\n scopeIdentity,\n pendingEntry,\n listRequest,\n listPage: siemDeliveryDlqPage(visibleEntries),\n contextPage: siemDeliveryDlqPage(contextEntries),\n summaryPage: siemDeliveryDlqPage(summaryEntries),\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const reference = createSiemDeliveryDlqReferenceExamples(rt);\n return resourceSpecification<Custom, Core, Main>(\n siemDeliveryDlqPolymorphicFactories[rt],\n SiemDeliveryDlqBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM delivery dead-letter entry: one record per failed (or re-queued) webhook delivery attempt, retaining payload for retry, inspection, and purge.',\n businessRole: 'Operator-facing queue for data that could not be pushed to a customer’s SIEM endpoint in time, with a clear failure reason and retry state.',\n lifecycleRole: 'Progresses from pending retry to exhausted or eventually delivered; an integrity failure is quarantined instead. Custom ops requeue or clear entries in bulk.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.COMPLIANCE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemDeliveryDlqBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'siemDeliveryDlqPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: rt,\n },\n resourceType: {\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n memberName: member,\n },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'SiemDeliveryDlq_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n notes: [\n '`eventPayload` is `z.unknown()` in the schema — the companion may describe it generically; this spec file omits a typed field spec until a dedicated `unknown`/`json` *Spec is standardized.',\n ],\n },\n fields: {\n status: schemaShape.status.enumSpec({\n meaning: 'DLQ lifecycle: awaiting retry, exhausted, already delivered to SIEM on a later attempt, or quarantined after failing its integrity check.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'SiemDeliveryDlqStatus', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [SiemDeliveryDlqStatus.PENDING_RETRY]: { meaning: 'May be retried automatically or by an operator while policy allows.' },\n [SiemDeliveryDlqStatus.EXHAUSTED]: { meaning: 'Retries are exhausted; manual inspection and purge or policy-driven cleanup apply.' },\n [SiemDeliveryDlqStatus.DELIVERED]: { meaning: 'A later attempt succeeded; record may be retained for an audit window.' },\n [SiemDeliveryDlqStatus.QUARANTINED]: {\n meaning: 'The delivery job failed its integrity check (its MAC was missing or did not cover the event, scope and destination), so the stored event and the scope it is filed under are untrusted (#2959). A retry never re-sends it: it re-derives the event from the audit log by `eventId`, for an organization the audit log records the event as routed to, and otherwise leaves the row quarantined for inspection or purge.',\n },\n },\n }),\n failureReason: schemaShape.failureReason.stringSpec({\n meaning: 'Default list label in presets: `<reason>: <detail>`, where the reason is a `SiemDeliveryFailureKind` (`hmac_verification_failed`, `circuit_breaker_open`, `retry_schedule_failed`, `credential_unopenable`, `retries_exhausted`) and the detail is what the failing step reported. The reason decides the row\\'s status.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({ meaning: 'Correlation id to the source audit/transport event behind this failed delivery.' }),\n failureCount: schemaShape.failureCount.numberSpec({ meaning: 'How many times delivery failed for this chain.' }),\n lastAttemptAt: schemaShape.lastAttemptAt.dateSpec({ meaning: 'Last delivery attempt from Wildo to the customer webhook.' }),\n nextRetryAt: schemaShape.nextRetryAt.dateSpec({ meaning: 'When the next automatic retry is scheduled, if any.' }),\n },\n // `eventPayload` is `z.unknown()`, which carries no spec decorators, so its meaning is declared\n // through the escape hatch rather than dropped.\n additionalFieldSpecs: [\n {\n fieldName: 'eventPayload',\n specDecorator: 'objectSpec',\n params: {\n meaning: 'The security audit event that could not be delivered, stored exactly as it was built. A retry re-sends this same event, with the same `eventId` — except on a quarantined row, where this payload is untrusted and the retry re-derives the event from the audit log instead.',\n whyItMatters: 'Its structure depends on the event type, and it can name the people and systems involved in the event.',\n },\n },\n ],\n operations: {\n [Op.READ]: {\n purpose: 'Repository read of a single DLQ row (internal and admin diagnostics, not a broad end-user read).',\n outcome: 'Inspect error metadata and the opaque payload for support.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The DLQ record was found and its failure metadata plus opaque payload snapshot are returned for diagnostics.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role required to inspect a dead-letter row (the payload may contain customer PII).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id in the caller’s scope (already purged or re-delivered and removed).' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: reference.isApplication\n ? 'List application-scoped SIEM delivery failures. This framework version has no application-scoped SIEM event producer, so the queue is expected to remain empty.'\n : 'List organization SIEM delivery failures for an incident window, filtered by retry status and ordered for investigation.',\n outcome: reference.isApplication\n ? 'A paginated empty queue confirms that no application-scoped SIEM delivery stream is active.'\n : 'Administrators receive the failed event envelope, failure reason, attempt history and current retry state for each delivery.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of dead-letter records for the scope, ordered for the queue browser.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role that gates the SIEM dead-letter queue for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM queue is empty'\n : 'Investigate current SIEM delivery states',\n request: reference.listRequest,\n response: reference.listPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM context queue is empty'\n : 'Investigate SIEM failures with organization context',\n request: reference.listRequest,\n response: reference.contextPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM summary queue is empty'\n : 'Review compact SIEM failure summaries',\n request: reference.listRequest,\n response: reference.summaryPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Internal append of DLQ rows on delivery failure (REPOSITORY_ONLY in the factory).',\n outcome: 'A new retryable or terminal document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter record was appended for a failed SIEM delivery and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The failure record fails schema validation (e.g. an unknown `status` or a missing `eventId`/`failureReason`).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the internal delivery pipeline; this is a REPOSITORY_ONLY append path, not a self-serve create.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Append a dead-letter row for a failed SIEM delivery',\n request: {\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n response: {\n _id: 'siemdlq_01HX2…',\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Remove one row after a successful re-delivery or explicit row-level purge; REPOSITORY_ONLY in the factory for safety.',\n outcome: 'Entry removed from the DLQ collection; separate audit may still cover the original event stream.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The dead-letter record was removed from the queue; the body carries its `id`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to drop a dead-letter row.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id (already removed by a prior purge or re-delivery).' },\n ],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of `DELETE` — the repository write path behind the delete-on-requeue tail of `RETRY_SINGLE`/`RETRY_ALL`, and, through its route-less INTERNAL_CALL variant, the door of the retention-class sweep and of `PURGE_ALL`, which removes the scope through it a page of at most 100 rows at a time (#2297).',\n outcome: 'Retry-cleanup is one bulk delete instead of N per-row deletes, and every page a purge or the sweep removes is its own transaction with its own audit row, kept through a crash; DLQ rows are inert (no worker owns them, no retry sweep touches them) so any status is safe to drop.',\n whenToUse: 'Never a public HTTP surface. Operators clear or drain via the `PURGE_ALL` / `RETRY_*` custom operations, which own request validation and the summary response; the sweep removes rows past the `OPERATIONAL_LOGS` period.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The matched records were bulk-deleted; the body carries `deletedIds` and `deletedCount`, and the invoking custom operation reports the count in its own summary response.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts the repository-only bulk delete directly; UI/API flows must use `PURGE_ALL` / `RETRY_*`.' },\n ],\n idempotent: true,\n },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_SINGLE,\n purpose: reference.isApplication\n ? 'Request a retry for one application-scoped queue entry by `entryId`; this version normally has no such entries because the application SIEM producer is unavailable.'\n : 'Request a new delivery attempt for one organization queue entry identified by `entryId` in the request body.',\n outcome: 'The response acknowledges the selected queue entry. If the new delivery also fails, its failure is visible in the queue again.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The targeted dead-letter entry was re-queued for delivery; a `{ message, entryId }` acknowledgement is returned (not the DLQ record).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to replay SIEM deliveries, or the organization does not hold the security-event export entitlement (`FEATURE_NOT_AVAILABLE`): a replay exports again (#3162).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied `entryId` in the caller’s scope — it was already cleared or successfully re-delivered.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The entry is already `delivered` (a later attempt succeeded), so there is nothing to retry. `pending_retry` and `exhausted` entries re-send their stored event; a `quarantined` one is re-derived from the audit log.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The scope has no SIEM webhook URL configured, so there is no destination to re-deliver to; configure SIEM export before retrying.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The entry is `quarantined` and cannot be re-derived: the audit log holds no event under its `eventId`, does not record that event as routed to this scope, the scope\\'s SIEM export filter excludes it, or the scope is an application. The entry stays quarantined; its stored payload is never re-sent.' },\n ],\n idempotent: false,\n examples: reference.isApplication\n ? [{\n title: 'Retry an unavailable application-scoped queue entry',\n request: { ...reference.scopeIdentity, entryId: 'siemdlq_missing_01HX2EXAMPLE' },\n response: {\n error: {\n type: ErrorType.NOT_FOUND,\n severity: ErrorSeverity.LOW,\n message: 'Requested resource not found',\n customMessage: 'The SIEM delivery queue entry could not be found.',\n customMessageReference: ErrorCustomMessageReference.NOT_FOUND,\n timestamp: '2026-08-18T13:45:00.000Z',\n },\n },\n forStatus: HttpResponseStatusCode.NOT_FOUND_404,\n }]\n : [{\n title: 'Retry one failed organization SIEM delivery',\n request: { ...reference.scopeIdentity, entryId: reference.pendingEntry._id },\n response: {\n message: 'SIEM DLQ entry re-queued for delivery.',\n entryId: reference.pendingEntry._id,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_ALL,\n purpose: 'Retry every pending, exhausted or quarantined SIEM delivery entry in the current scope. A quarantined entry is re-derived from the audit log rather than re-sent, and stays quarantined (counted as skipped) when it cannot be.',\n outcome: 'The response reports how many entries were accepted for another attempt and how many could not be retried.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Eligible dead-letter entries in the scope were re-queued and removed; a `{ retriedCount, skippedCount, message }` summary is returned (not the records). When SIEM export has no webhook URL configured, all entries are reported as skipped.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to trigger a scope-wide SIEM replay, or the organization does not hold the security-event export entitlement (`FEATURE_NOT_AVAILABLE`): a replay exports again (#3162).' },\n ],\n idempotent: false,\n rateLimitNote: 'Bulk replay fans out one outbound delivery attempt per eligible row (no artificial batch cap — the DLQ is a bounded failure queue); the SIEM delivery worker’s own per-scope circuit breaker and retry/backoff protect the customer endpoint.',\n examples: [{\n title: reference.isApplication\n ? 'Retry the empty application SIEM queue'\n : 'Retry all eligible organization SIEM deliveries',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { retriedCount: 0, skippedCount: 0, message: 'The SIEM dead-letter queue is empty for this scope.' }\n : { retriedCount: 2, skippedCount: 1, message: 'Re-queued 2 of 3 SIEM dead-letter entries for this organization; skipped 1.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: {\n operationId: SiemDeliveryDlq_Operations.PURGE_ALL,\n purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope, except an entry an active legal hold keeps.',\n outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed. They are removed a page of at most 100 at a time, and each page records its own audit row, so a crash never loses the record of a removal (#2297). When whether a legal hold covers an entry cannot be read, the purge stops with `legal_hold_state_unverifiable`: the pages already removed stay removed and recorded, and running it again finishes the rest.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter record in the scope was permanently removed, except those an active legal hold keeps (the message counts them); a count of purged records is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the CRITICAL-risk operator role required for an irreversible scope-wide purge.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A legal hold was placed on an entry between the purge reading its page and removing it (`legal_hold_active`): that page is refused whole, the pages before it stay removed and recorded, and running the purge again keeps the held entry and removes the rest.' },\n ],\n idempotent: false,\n examples: [{\n title: reference.isApplication\n ? 'Purge the empty application SIEM queue'\n : 'Purge all organization SIEM delivery failures',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { purgedCount: 0, message: 'Purged 0 SIEM dead-letter entries for this application.' }\n : { purgedCount: 3, message: 'Purged 3 SIEM dead-letter entries for this organization.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Purge and bulk retry are governed by the factory’s risk tiers: companion should never describe them as low-impact maintenance.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM delivery is reserved in this framework version: no application event producer populates this queue, so retry and purge normally operate on an empty collection.']\n : []),\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const b = buildBase(rt, member);\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n b,\n () => ({\n label: {\n purpose: 'List rows and summaries are labeled from `failureReason` in the merged `security` preset — surface a concise operator-readable reason, not the entire payload.',\n },\n layout: {\n purpose: 'A header that names the failed delivery by its `failureReason` and carries its status badge, then `delivery` (attempt metadata) and `payload` (opaque snapshot). There is no `overview` section: it held exactly the reason and the status, which the header already shows.',\n displayPurpose: 'Settings rows on read with no section descriptions; `nextRetryAt` is hidden once the row is terminal; the payload card renders the data without a label. A list card is the failure reason and its status badge.',\n sections: {\n delivery: {\n purpose: 'The event id, the failure count, the last attempt and the next retry — enough to judge whether automatic retries can still help.',\n whenToUse: 'Understanding whether automatic retries can still help vs exhausted state.',\n textSlots: {\n title: { purpose: 'Label the delivery and retry block.' },\n },\n },\n payload: {\n purpose: 'The opaque `eventPayload` blob — rendering may truncate or redact; structure is not fixed across event types. The data carries no label: the card heading names it.',\n whenToUse: 'Deep debugging after the delivery record is understood; export paths may also reference this data.',\n textSlots: {\n title: { purpose: 'Label the payload/technical view.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary addressable queue surface in merged presets for org and app security operators — dashboard-style: `status` quick-filter tab strip (All / Pending retry / Exhausted / Delivered) + `createdAt` day-bucket grouping via `collectionDisplayConfig` (backend-validated: `status` + `createdAt` are the LIST op\\'s declared `filterFields`).', whenToUse: 'SIEM health and retry workflows under security settings; the Failed tab is the triage entry point.' },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: { purpose: 'Single-row retry surfaced as a per-row action (not URL-addressable); executes in place on the clicked row, whose id is injected into the request body `entryId`.', whenToUse: 'Replaying one known-bad event after a customer fixes their endpoint.' },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: { purpose: 'Whole-scope requeue (borrows the collection verb `UPDATE_MANY` for an id-less collection route); surfaced once in the list collection-action bar, confirms (HIGH) then executes in place.', whenToUse: 'Outage recovery after a shared infrastructure fix.' },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: { purpose: 'Whole-scope clear (borrows the collection verb `DELETE_MANY` for an id-less collection route); surfaced in the list collection-action bar, type-to-confirm (CRITICAL) then executes in place.', whenToUse: 'Compliance or disk-pressure teardown when retention policy allows purging the DLQ only.' },\n },\n }),\n );\n}\n\nexport const organizationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ,\n 'ORGANIZATION_SIEM_DELIVERY_DLQ',\n);\nexport const applicationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ,\n 'APPLICATION_SIEM_DELIVERY_DLQ',\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine-resource-specifications.registry.d.ts","sourceRoot":"","sources":["../../../src/engine/engine-resource-specifications.registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAIH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"engine-resource-specifications.registry.d.ts","sourceRoot":"","sources":["../../../src/engine/engine-resource-specifications.registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAIH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AA0OzE;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC,EAAE,qBA6MhD,CAAC"}
|