@wildo-ai/saas-specifications 1.1.12 → 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/application-maturity/application-maturity-open-items.d.ts +48 -0
- package/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity-open-items.js +69 -0
- package/dist/esm/_core/application-maturity/application-maturity-open-items.js.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +5 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity-validation.js +12 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +41 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +41 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
- 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.d.ts +28 -3
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +32 -2
- 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/_core/index.d.ts +2 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +2 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +12 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +12 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirement-engine-substance.schemas.d.ts +33 -0
- package/dist/esm/_core/requirements/requirement-engine-substance.schemas.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirement-engine-substance.schemas.js +34 -0
- package/dist/esm/_core/requirements/requirement-engine-substance.schemas.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +8 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -0
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +2 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +2 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +7 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +46 -25
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -1
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +30 -3
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.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 +4 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js +29 -0
- package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/index.d.ts +1 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +5 -0
- package/dist/esm/engine/frontend-components/index.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-deliveries.resource.specification.d.ts +10 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +10 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
- 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-dashboard-layouts.resource.specification.d.ts +30 -0
- package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.js +131 -0
- package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.js.map +1 -0
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-email.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/resources/inbound-email.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,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EAAE,wGAAwG;YACjH,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;YACtF,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,8CAA8C;YACvD,OAAO,EAAE,4DAA4D;YACrE,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;YACtF,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,+EAA+E;QAC/E,iDAAiD;KAClD;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resources: `inboundEmails`, `organizationEmailDomains`, `relationshipMailboxes`, `inboundAddressTombstones` — Wildo\n * SaaS engine specifications for receiving email (#1600).\n *\n * Inputs:\n * - Schemas: `InboundEmailSchema`, `OrganizationEmailDomainSchema`, `RelationshipMailboxSchema`,\n * `InboundAddressTombstoneSchema` (`notifications/inbound-email/inbound-email.shared.schemas.ts`)\n * - Factories: `{inboundEmails,organizationEmailDomains,relationshipMailboxes,inboundAddressTombstones}ResourceConfiguration_InitializationFactory`\n * (`notifications/inbound-email/inbound-email.shared.resources-config.schemas.ts`)\n * - Custom operations: `OrganizationEmailDomains_Operations` (`claim`, `verify_ownership`, `verify`, `remove`), and\n * the relationship-mailbox CREATE / DELETE, all OVERRIDE_ALL in `inbound-email.custom-impl.backend.service.ts`\n * (saas-backend-lib), driving `OrganizationEmailDomainsBackendService`.\n * - Writers: the email channel's stage 1 (`InboundEmailReceptionBackendService`) writes `inboundEmails`; the\n * `email-domain-recheck` batch (every fifteen minutes) suspends or settles domains; the organization DELETE\n * hook deletes the provider's domains and writes `inboundAddressTombstones`.\n *\n * Scopes: the three organization resources carry `isPrimaryScope: true` on their ORGANIZATIONS relationship (a\n * relationship mailbox belongs to the REPRESENTING organization that owns its domain, and routes mail into the granting\n * organization its relationship names);\n * the tombstones are application-wide (APPLICATION →\n * INBOUND_ADDRESS_TOMBSTONES carries `isPrimaryScope: true`).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n RelationshipMailboxSchema,\n CoreResourceOperation as Op,\n InboundAddressTombstoneSchema,\n InboundEmailLimit,\n InboundEmailSchema,\n InboundEmailStatus,\n InboundRouteKind,\n InboundSenderAssurance,\n OrganizationEmailDomainSchema,\n OrganizationEmailDomainStatus,\n OrganizationEmailDomains_Operations,\n ResourcePrimaryScope,\n relationshipMailboxesResourceConfiguration_InitializationFactory,\n inboundAddressTombstonesResourceConfiguration_InitializationFactory,\n inboundEmailsResourceConfiguration_InitializationFactory,\n organizationEmailDomainsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst EXAMPLE_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7V8W9XY';\nconst EXAMPLE_FIRM_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7FIRM01';\nconst EXAMPLE_INBOUND_EMAIL_ID = '66f6a1c2e3d4b5a697889900';\nconst EXAMPLE_DOMAIN_ID = '66f6a1c2e3d4b5a697881001';\nconst EXAMPLE_MAILBOX_ID = '66f6a1c2e3d4b5a697882001';\nconst EXAMPLE_RELATIONSHIP_ID = '66f6a1c2e3d4b5a697883001';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nconst operationVocabulary = (customEnum?: string) => ({\n coreEnum: enumDeclaration('CoreResourceOperation'),\n ...(customEnum ? { customEnum: enumDeclaration(customEnum) } : {}),\n});\n\nconst page = <T>(data: readonly T[]) => ({ data, pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 } });\n\nconst MEMBER_FORBIDDEN = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization.' };\nconst ADMIN_FORBIDDEN = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' };\n\n// ── inboundEmails ───────────────────────────────────────────────────────────\n\nconst dispatchedEmailExample = {\n _id: EXAMPLE_INBOUND_EMAIL_ID,\n organizationId: EXAMPLE_ORGANIZATION_ID,\n inboundDeliveryId: '5f1c2e9b8a7d6c5b4a392817',\n providerRef: 'resend',\n providerMessageId: 'em_8Qz2LkX7pW',\n messageId: '<CAF7x2kLq9@mail.client.example>',\n inReplyTo: null,\n references: [],\n threadId: '66f6a1c2e3d4b5a697887766',\n fromAddress: 'anna@client.example',\n fromName: 'Anna Keller',\n to: [{ address: 'matters+intake@firm.example' }],\n cc: [],\n replyTo: null,\n receivedFor: 'matters+intake@firm.example',\n routeKind: InboundRouteKind.ORGANIZATION_DOMAIN,\n routeTag: 'intake',\n subject: 'Matter 2026-17 — signed engagement letter',\n textBody: 'Please find the signed engagement letter attached.',\n htmlBody: null,\n strippedReply: null,\n headers: { 'message-id': '<CAF7x2kLq9@mail.client.example>', subject: 'Matter 2026-17 — signed engagement letter' },\n textTruncated: false,\n authentication: { spf: 'pass', dkim: 'pass', dmarc: 'pass', dmarcAligned: true },\n senderAssurance: InboundSenderAssurance.DOMAIN_ALIGNED,\n attachments: [{ fileId: '66f6a1c2e3d4b5a697889a01', filename: 'engagement-letter-signed.pdf', contentType: 'application/pdf', size: 182340, disposition: 'attachment' }],\n withheldAttachments: [],\n rawMime: { fileId: '66f6a1c2e3d4b5a697889a02', sha256: '9f2c4e1d7a3b6c5e8f0a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60', sizeBytes: 251904 },\n sizeBytes: 251904,\n receivedAt: '2026-09-27T09:10:00.000Z',\n status: InboundEmailStatus.DISPATCHED,\n limitExceeded: null,\n createdAt: '2026-09-27T09:10:02.000Z',\n updatedAt: '2026-09-27T09:10:05.000Z',\n};\n\nexport const inboundEmailsResourceSpecification = resourceSpecification(\n inboundEmailsResourceConfiguration_InitializationFactory,\n InboundEmailSchema,\n ({ schemaShape }) => ({\n purpose: 'Keep every email the application received, in the organization it was routed to, exactly as it arrived: sender, recipients, bodies, allow-listed headers, authentication results, attachments and the original bytes.',\n businessRole: 'The email channel\\'s own record of a received letter. Routing decided the organization from the envelope recipient — never from the sender — and the row is what the organization\\'s conversation messages point at for the full message and its attachments.',\n lifecycleRole: 'Written AWAITING_ATTACHMENT_SCAN by the channel\\'s stage 1 once the recipient routed; moved to DISPATCHED or STORED_BELOW_MINIMUM once every attachment has a scan verdict and the channel intake admitted it. A message over a limit is stored REJECTED_LIMIT as its envelope only. Nothing rewrites what was received. Deleted by the retention sweep once the application\\'s BUSINESS_RECORDS period, counted from the end of the calendar year it was received, has passed — its raw MIME and attachment files with it; an erasure inside that period impersonalizes the row instead: its text, addresses and attachment names are reset and its files erased.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'InboundEmailSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'inboundEmailsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'INBOUND_EMAILS' },\n operationVocabulary: operationVocabulary(),\n notes: [\n 'READ and LIST are the only HTTP surface (organization members). CREATE and UPDATE are REPOSITORY_ONLY and UPDATE_MANY / DELETE / DELETE_MANY are INTERNAL_CALL: no request can invent, rewrite or delete a received letter.',\n 'Every received field is `excludeFromUpdate`, and `status` / `limitExceeded` are excluded from both writes: the engine moves the disposition through a guarded mutation from AWAITING_ATTACHMENT_SCAN, once.',\n 'A message addressed to two organizations is one row in EACH; a row never names another tenant.',\n 'Retention: `RETAIN_AND_IMPERSONALIZE` under a LEGAL_OBLIGATION statutory ground (received business letters), bound to BUSINESS_RECORDS from the end of the calendar year. Each personal field declares what erasure writes over it (masked address and subject, reset names, recipients, bodies and headers).',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one received message in one organization.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization routing delivered the message to.', whyItMatters: 'Decided from the envelope recipient, never from the sender or a header the sender wrote, so nobody can write into a tenant by naming it.', importance: FieldSemanticImportance.PRIMARY }),\n inboundDeliveryId: schemaShape.inboundDeliveryId.stringSpec({ meaning: 'The stored inbound delivery of the provider\\'s notification that announced this message.', whyItMatters: 'Stage 1 runs as that delivery\\'s handler, so a crash or a scan wait is retried from it and the row is written once.', semanticRole: 'identifier' }),\n providerRef: schemaShape.providerRef.stringSpec({ meaning: 'The receiving provider that took the message.', semanticRole: 'code' }),\n providerMessageId: schemaShape.providerMessageId.stringSpec({ meaning: 'The provider\\'s id for the message.', whyItMatters: 'With the organization and provider it is the row\\'s business key: one message is stored once per organization.', semanticRole: 'identifier' }),\n messageId: schemaShape.messageId.stringSpec({ meaning: 'The Message-ID the message carried, angle brackets included, when it carried a well-formed one.', semanticRole: 'code' }),\n inReplyTo: schemaShape.inReplyTo.stringSpec({ meaning: 'The Message-ID this message answers.', whyItMatters: 'What joins a reply to an existing conversation thread.', semanticRole: 'code' }),\n references: schemaShape.references.arraySpec({ meaning: 'The Message-IDs of the thread before this message, oldest first.', elementMeaning: 'One earlier Message-ID.' }),\n threadId: schemaShape.threadId.stringSpec({ meaning: 'The conversation thread the message was recorded in, once it was dispatched.', whyItMatters: 'A plain id, set by the engine when the channel intake admitted the message; empty for a message never dispatched.', semanticRole: 'identifier' }),\n fromAddress: schemaShape.fromAddress.stringSpec({ meaning: 'The sender\\'s address, lower-cased.', whyItMatters: 'Indexed so a data subject\\'s erasure finds their letters; masked on erasure. Never used to route.', importance: FieldSemanticImportance.PRIMARY }),\n fromName: schemaShape.fromName.stringSpec({ meaning: 'The sender\\'s display name.', whyItMatters: 'Reset on erasure.' }),\n to: schemaShape.to.arraySpec({ meaning: 'The addresses in To, as the message named them.', elementMeaning: 'One address with its display name.', whyItMatters: 'Reset on erasure.' }),\n cc: schemaShape.cc.arraySpec({ meaning: 'The addresses in Cc.', elementMeaning: 'One address with its display name.', whyItMatters: 'Reset on erasure.' }),\n replyTo: schemaShape.replyTo.stringSpec({ meaning: 'The Reply-To address, when the message named one.', whyItMatters: 'Reset on erasure.' }),\n receivedFor: schemaShape.receivedFor.stringSpec({ meaning: 'The envelope recipient the message was delivered for, which routing read.', whyItMatters: 'The address on this organization\\'s route; it is what decided the organization.', importance: FieldSemanticImportance.PRIMARY }),\n routeKind: schemaShape.routeKind.enumSpec({\n meaning: 'How that address reached this organization.',\n enumDeclaration: enumDeclaration('InboundRouteKind'),\n values: {\n [InboundRouteKind.REPLY_TOKEN]: { meaning: 'A reply address (`{local}+r-{token}@{domain}`) issued on one of this organization\\'s threads.' },\n [InboundRouteKind.RELATIONSHIP_MAILBOX]: { meaning: 'An exact relationship mailbox on a representing organization\\'s verified domain, routed here because this organization is the granting organization its ACTIVE relationship names.' },\n [InboundRouteKind.ORGANIZATION_DOMAIN]: { meaning: 'Any address on a VERIFIED receiving domain of the organization.' },\n [InboundRouteKind.SHARED_DOMAIN]: { meaning: 'The organization\\'s zero-configuration address on the application\\'s shared domain (`{slug}@{sharedDomain}`).' },\n },\n }),\n routeTag: schemaShape.routeTag.stringSpec({ meaning: 'The tag the address carried (`cases+tag@…`).', whyItMatters: 'It selects which channel handler receives the message.', semanticRole: 'code' }),\n subject: schemaShape.subject.stringSpec({ meaning: 'The subject line.', whyItMatters: 'Masked on erasure.', importance: FieldSemanticImportance.PRIMARY }),\n textBody: schemaShape.textBody.stringSpec({ meaning: 'The plain-text body, cut at 1 MB.', whyItMatters: 'Reset on erasure.', semanticRole: 'content' }),\n htmlBody: schemaShape.htmlBody.stringSpec({ meaning: 'The HTML body exactly as received, cut at 1 MB.', whyItMatters: 'Never trusted as markup: it is rendered only in a sandboxed frame that runs no script and loads no remote content (a remote image would be a read receipt). Reset on erasure.', semanticRole: 'content' }),\n strippedReply: schemaShape.strippedReply.stringSpec({ meaning: 'The new part of a reply without its quoted history, when it could be separated.', whyItMatters: 'What a handler usually reads. Reset on erasure.', semanticRole: 'content' }),\n headers: schemaShape.headers.objectSpec({ meaning: 'The allow-listed headers the message carried.', whyItMatters: 'An allow-list, not a deny-list: a header not on it is not stored, because headers are correspondence metadata that can carry personal data. Reset on erasure.' }),\n textTruncated: schemaShape.textTruncated.booleanSpec({ meaning: 'Whether a body was cut at the 1 MB stored-text limit.' }),\n authentication: schemaShape.authentication.objectSpec({ meaning: 'The SPF, DKIM and DMARC results the receiving provider reported, and whether the From domain aligned with an authenticated identifier.', whyItMatters: 'What the sender assurance is derived from.' }),\n senderAssurance: schemaShape.senderAssurance.enumSpec({\n meaning: 'How well the sender is known, as the channel derived it; empty until the message was admitted.',\n whyItMatters: 'It decides only whether a handler runs, never what the handler may do.',\n enumDeclaration: enumDeclaration('InboundSenderAssurance'),\n values: {\n [InboundSenderAssurance.UNVERIFIED]: { meaning: 'Nothing about the sender is proven.' },\n [InboundSenderAssurance.SOURCE_SIGNED]: { meaning: 'Not used for email: a signed webhook delivery.' },\n [InboundSenderAssurance.DOMAIN_ALIGNED]: { meaning: 'DMARC passed aligned with the From domain: the domain is authenticated, not the mailbox.' },\n [InboundSenderAssurance.KNOWN_CONTACT]: { meaning: 'Domain-aligned, and the address is a member of the organization or a contact the application recognises.' },\n [InboundSenderAssurance.THREAD_TOKEN_BOUND]: { meaning: 'Domain-aligned, on a live reply address, from the recipient that address was issued to.' },\n [InboundSenderAssurance.VERIFIED_MEMBER_NUMBER]: { meaning: 'Not used for email: a text from a member\\'s verified phone number.' },\n },\n }),\n attachments: schemaShape.attachments.arraySpec({ meaning: 'The attachments that were stored, with what the sender declared about each.', elementMeaning: 'One stored file with its filename, content type, size and disposition.', whyItMatters: 'Nothing reaches a handler before every attachment has a verdict. Reset on erasure: filenames are the sender\\'s words.' }),\n attachmentFiles: schemaShape.attachmentFiles.fileSpec({ meaning: 'The CLEAN attachments, as files linked to the message.', whyItMatters: 'Linking keeps them for the message\\'s retention — an unlinked file is swept a day after its scan — and serves them to whoever may read the message. An infected or unscannable file is never linked, so never served. Removed, and its files erased, on erasure.' }),\n withheldAttachments: schemaShape.withheldAttachments.arraySpec({ meaning: 'The attachments that were not made available, and why.', elementMeaning: 'One withheld filename with its reason: INFECTED (quarantined, never served) or SCAN_FAILED (not proven clean).', whyItMatters: 'The message itself still reaches its handler; only the unproven file is held back, and each is audited.' }),\n rawMime: schemaShape.rawMime.objectSpec({ meaning: 'The SHA-256 and size of the original message bytes as captured, and the file they were stored in.', whyItMatters: 'Only the original bytes can be re-verified (DKIM is computed over them), and received letters must be reproducible as received. Empty when the application discards raw MIME, or for a message rejected over a limit.' }),\n rawMimeFile: schemaShape.rawMimeFile.fileSpec({ meaning: 'The original message, as a file linked to the message — set once its scan is clean.', whyItMatters: 'Kept for the message\\'s retention and served to whoever may read the message. Removed, and the file erased, on erasure: it holds everything the reset text fields held.' }),\n sizeBytes: schemaShape.sizeBytes.numberSpec({ meaning: 'The size of the message in bytes.' }),\n receivedAt: schemaShape.receivedAt.dateSpec({ meaning: 'When the provider received the message.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n status: schemaShape.status.enumSpec({\n meaning: 'What became of the message — its disposition only. Whether its handler ran is the inbound delivery\\'s status.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('InboundEmailStatus'),\n values: {\n [InboundEmailStatus.AWAITING_ATTACHMENT_SCAN]: { meaning: 'Stored; at least one attachment has no scan verdict yet, so nothing has reached a handler.' },\n [InboundEmailStatus.DISPATCHED]: { meaning: 'Handed to its channel handler through a stored delivery, and recorded in a conversation thread.' },\n [InboundEmailStatus.STORED_BELOW_MINIMUM]: { meaning: 'The sender is below the selected handler\\'s minimum assurance and no below-minimum handler is declared: kept as correspondence, audited, dispatched to nobody.' },\n [InboundEmailStatus.REJECTED_LIMIT]: { meaning: 'Over a limit: only the envelope is kept, without bodies or attachments. `limitExceeded` says which.' },\n },\n }),\n limitExceeded: schemaShape.limitExceeded.enumSpec({\n meaning: 'For a message rejected over a limit, which one.',\n enumDeclaration: enumDeclaration('InboundEmailLimit'),\n values: {\n [InboundEmailLimit.MESSAGE_SIZE]: { meaning: 'The whole message is larger than the application\\'s configured maximum.' },\n [InboundEmailLimit.ATTACHMENT_COUNT]: { meaning: 'More than twenty attachments.' },\n [InboundEmailLimit.ATTACHMENT_SIZE]: { meaning: 'One attachment is larger than the application\\'s maximum file size.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was stored.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the row last changed — its disposition.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one email your organization received, with its bodies, attachments and authentication results.',\n outcome: 'The stored message and its disposition.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The message is returned.' }],\n errorScenarios: [MEMBER_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No received message with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a dispatched message', request: { organizationId: EXAMPLE_ORGANIZATION_ID, inboundEmailId: EXAMPLE_INBOUND_EMAIL_ID }, response: dispatchedEmailExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List the organization\\'s received emails, filtered by `status`, `routeKind` or `threadId` and sorted by `receivedAt`.',\n outcome: 'A page of received messages.',\n whenToUse: 'Find what arrived for one thread, or what was stored below minimum and needs a person to look at it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of messages.' }],\n errorScenarios: [MEMBER_FORBIDDEN],\n idempotent: true,\n examples: [{\n title: 'List the messages stored below the handler\\'s minimum',\n request: { organizationId: EXAMPLE_ORGANIZATION_ID, status: InboundEmailStatus.STORED_BELOW_MINIMUM, sort: 'receivedAt:desc' },\n response: page([{ ...dispatchedEmailExample, threadId: null, status: InboundEmailStatus.STORED_BELOW_MINIMUM, senderAssurance: InboundSenderAssurance.UNVERIFIED }]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Store a routed message. Written only by the email channel\\'s stage 1.',\n outcome: 'The message exists in its organization, AWAITING_ATTACHMENT_SCAN (or REJECTED_LIMIT as an envelope).',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The message was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The same provider message is already stored for the organization.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Settle the message\\'s disposition and record its thread and sender assurance. Written only by the engine.',\n outcome: 'The message leaves AWAITING_ATTACHMENT_SCAN once, with its withheld attachments listed.',\n whenToUse: 'Repository-only: never an HTTP surface — nothing rewrites what was received.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The message was updated. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No message with this id exists.' }],\n idempotent: false,\n },\n [Op.UPDATE_MANY]: {\n purpose: 'The erasure writer\\'s door (internal, route-less, CRITICAL): impersonalizes a data subject\\'s letters once no statutory period restricts them.',\n outcome: 'Addresses and subjects are masked, names, recipients, bodies and headers reset, while the record that a letter arrived stays.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal scrub completed.' }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'The retention sweep\\'s door (internal, route-less, HIGH risk): deleting correspondence removes evidence of what a client sent.',\n outcome: 'A message leaves when its BUSINESS_RECORDS period, counted from the end of its calendar year, has passed — with its raw MIME and attachment files.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of DELETE for the retention sweep (internal, route-less).',\n outcome: 'Messages whose statutory period has ended are removed together.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'The organization a message lands in is chosen by routing from the envelope recipient, in a fixed order — reply token, relationship mailbox, verified organization domain, shared-domain slug — and anything else is UNROUTABLE, audited and not stored.',\n 'Nothing reaches a handler before every attachment has a scan verdict; an infected or unscanned attachment is withheld and listed, never served.',\n 'A received letter is kept for its statutory period; an erasure inside it restricts the row instead of deleting it.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── organizationEmailDomains ────────────────────────────────────────────────\n\nconst pendingDomainExample = {\n _id: EXAMPLE_DOMAIN_ID,\n organizationId: EXAMPLE_FIRM_ORGANIZATION_ID,\n domain: 'inbox.firm.example',\n capabilities: { sending: true, receiving: true },\n providerRef: null,\n providerDomainId: null,\n ownershipChallenge: { txtName: '_wildo-verification.inbox.firm.example', nonceHash: '3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b' },\n status: OrganizationEmailDomainStatus.OWNERSHIP_PENDING,\n dnsRecords: [],\n ownershipVerifiedAt: null,\n lastVerifiedAt: null,\n createdAt: '2026-09-27T08:00:00.000Z',\n updatedAt: '2026-09-27T08:00:00.000Z',\n};\n\nconst providerPendingDomainExample = {\n ...pendingDomainExample,\n providerRef: 'resend',\n providerDomainId: 'd_91f3c2a8',\n status: OrganizationEmailDomainStatus.PROVIDER_PENDING,\n dnsRecords: [\n { purpose: 'DKIM', type: 'TXT', name: 'resend._domainkey.inbox.firm.example', value: 'p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…', status: 'not_started' },\n { purpose: 'MX', type: 'MX', name: 'inbox.firm.example', value: 'inbound-smtp.eu-west-1.amazonaws.com', priority: 10, status: 'not_started' },\n ],\n ownershipVerifiedAt: '2026-09-27T08:20:00.000Z',\n updatedAt: '2026-09-27T08:20:00.000Z',\n};\n\nconst verifiedDomainExample = { ...providerPendingDomainExample, status: OrganizationEmailDomainStatus.VERIFIED, lastVerifiedAt: '2026-09-27T09:00:00.000Z', updatedAt: '2026-09-27T09:00:00.000Z' };\n\nexport const organizationEmailDomainsResourceSpecification = resourceSpecification(\n organizationEmailDomainsResourceConfiguration_InitializationFactory,\n OrganizationEmailDomainSchema,\n ({ schemaShape }) => ({\n purpose: 'Let an organization receive mail on, and send from, a domain of its own — once it has proven it controls that domain\\'s DNS.',\n businessRole: 'What lets an organization use a domain of its own, such as `inbox.firm.com`, instead of the application\\'s shared address. Every tenant shares one provider account, so ownership is proven per organization BEFORE anything is created at the provider: otherwise a squatter\\'s claim would verify the moment the real owner published its records.',\n lifecycleRole: '`claim` records OWNERSHIP_PENDING and returns the DNS TXT challenge once; `verify_ownership` resolves it and, for the first organization to prove it, creates the domain at the provider (PROVIDER_PENDING, or VERIFIED at once); `verify` asks the provider to verify its records (VERIFIED, FAILED or still PROVIDER_PENDING) and suspends a domain whose ownership record disappeared; the fifteen-minute re-check suspends a verified domain whose records vanished and settles a pending one. `remove`, and the deletion of the organization, delete the domain at the provider and then the row.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationEmailDomainSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationEmailDomainsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_EMAIL_DOMAINS' },\n operationVocabulary: operationVocabulary('OrganizationEmailDomains_Operations'),\n notes: [\n 'The four verbs are the whole write surface, each OVERRIDE_ALL and each audited under its own event. CREATE and UPDATE are REPOSITORY_ONLY and UPDATE_MANY / DELETE / DELETE_MANY are INTERNAL_CALL: a row that could be written directly could claim VERIFIED without proving anything.',\n 'Only the SHA-256 of the ownership challenge value is stored. The value (`wildo-email-domain-verification=<nonce>`, published at `_wildo-verification.{domain}`) is answered once by `claim`; claiming again while pending mints a fresh one and invalidates the old.',\n 'Refusals never name the organization that holds a domain: telling one tenant which tenant holds it would disclose a customer\\'s configuration.',\n '`retain_only` and FORBIDDEN from a subject export: a domain names an organization\\'s infrastructure, not a person.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one organization\\'s claim on one domain, derived from the organization and the domain.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization that claimed the domain.', whyItMatters: 'Once proven, the domain routes mail into and sends for this organization only.', importance: FieldSemanticImportance.PRIMARY }),\n domain: schemaShape.domain.stringSpec({ meaning: 'The lower-case DNS hostname, e.g. `inbox.firm.com`.', whyItMatters: 'Not unique: several organizations may hold pending claims on one domain. A subdomain keeps the organization\\'s existing mailbox untouched.', importance: FieldSemanticImportance.PRIMARY }),\n capabilities: schemaShape.capabilities.objectSpec({ meaning: 'Whether the organization sends from the domain, receives on it, or both.', whyItMatters: 'A claim for neither is refused; the provider domain is created with exactly these capabilities.' }),\n providerRef: schemaShape.providerRef.stringSpec({ meaning: 'The email provider the domain was created at, once ownership was proven.', semanticRole: 'code' }),\n providerDomainId: schemaShape.providerDomainId.stringSpec({ meaning: 'The provider\\'s id for the domain, once created there.', whyItMatters: 'What `verify`, the re-check and `remove` address at the provider.', semanticRole: 'identifier' }),\n ownershipChallenge: schemaShape.ownershipChallenge.objectSpec({ meaning: 'The DNS TXT ownership challenge: the name to publish it on, and the SHA-256 of the value.', whyItMatters: 'The organization proves control of the domain by publishing the value; the re-check keeps asking for it, and its disappearance suspends the domain.' }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where the domain stands. Only a verified domain routes and sends.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('OrganizationEmailDomainStatus'),\n values: {\n [OrganizationEmailDomainStatus.OWNERSHIP_PENDING]: { meaning: 'Claimed; the TXT challenge is not answered yet. Blocks nobody: several organizations may be here at once.' },\n [OrganizationEmailDomainStatus.PROVIDER_PENDING]: { meaning: 'Ownership proven and the domain created at the provider; its DNS records are not verified there yet.' },\n [OrganizationEmailDomainStatus.VERIFIED]: { meaning: 'Ownership proven and the provider verified the records: the domain routes mail (receiving) and sends (sending).' },\n [OrganizationEmailDomainStatus.FAILED]: { meaning: 'The provider could not verify the records. Fix the DNS and verify again.' },\n [OrganizationEmailDomainStatus.SUSPENDED]: { meaning: 'Was verified; the ownership record or the provider\\'s records disappeared. Routing and sending stop until it verifies again.' },\n },\n }),\n dnsRecords: schemaShape.dnsRecords.arraySpec({ meaning: 'The records the provider asks the organization to publish, as the provider reported them.', elementMeaning: 'One record: its purpose (DKIM, SPF, MX…), type, name, value, MX priority and the provider\\'s status for it.' }),\n ownershipVerifiedAt: schemaShape.ownershipVerifiedAt.dateSpec({ meaning: 'When the organization proved it owns the domain.', whyItMatters: 'From then on the domain is refused to every other organization.', temporalRole: 'occurred' }),\n lastVerifiedAt: schemaShape.lastVerifiedAt.dateSpec({ meaning: 'When the domain was last found verified.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the domain was claimed.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the claim last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one of your organization\\'s email domains, with its status and the DNS records to publish.',\n outcome: 'The domain claim.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The domain is returned.' }],\n errorScenarios: [ADMIN_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No domain with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a domain waiting for the provider', request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, organizationEmailDomainId: EXAMPLE_DOMAIN_ID }, response: providerPendingDomainExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List the organization\\'s email domains, filtered by `status` and sorted by `createdAt`.',\n outcome: 'A page of domain claims.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of domains.' }],\n errorScenarios: [ADMIN_FORBIDDEN],\n idempotent: true,\n examples: [{ title: 'List verified domains', request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, status: OrganizationEmailDomainStatus.VERIFIED }, response: page([verifiedDomainExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.CREATE]: {\n purpose: 'Store a claim. Written only by `claim`.',\n outcome: 'The claim exists OWNERSHIP_PENDING.',\n whenToUse: 'Repository-only: never an HTTP surface — organizations act through `claim`.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The claim was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization already holds a claim on this domain.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Move a claim through its lifecycle. Written only by the verbs and the re-check, through guarded mutations.',\n outcome: 'The claim reflects the latest ownership and provider verification.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The claim was updated. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No claim with this id exists.' }],\n idempotent: false,\n },\n [Op.UPDATE_MANY]: {\n purpose: 'Internal, route-less bulk update (CRITICAL). No personal field exists to scrub.',\n outcome: 'Reserved for engine maintenance.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal update completed.' }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Internal, route-less delete (HIGH risk): the tenant cascade\\'s door when the organization is deleted, after the provider\\'s copy was read for deletion.',\n outcome: 'The claim leaves with its organization.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of DELETE (internal, route-less).',\n outcome: 'An organization\\'s claims leave together.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n [OrganizationEmailDomains_Operations.CLAIM]: {\n operationId: OrganizationEmailDomains_Operations.CLAIM,\n purpose: 'Claim a domain for sending, receiving, or both, and receive the DNS TXT record that proves ownership.',\n outcome: 'The claim is OWNERSHIP_PENDING and the answer carries `txtName` (`_wildo-verification.{domain}`) and `txtValue` (`wildo-email-domain-verification=<nonce>`), shown this once. Nothing is created at the provider. Claiming again while pending mints a fresh value and invalidates the old one.',\n whenToUse: 'The organization wants to receive on, or send from, a domain it controls.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The claim and its one-time TXT record value are returned.' }],\n errorScenarios: [\n ADMIN_FORBIDDEN,\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The domain is not a DNS hostname with at least two labels, or the claim is for neither sending nor receiving.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another organization has already proven it owns the domain, or this organization already proved it (remove the domain to claim it again).' },\n ],\n idempotent: false,\n examples: [{\n title: 'Claim a receiving and sending subdomain',\n request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, domain: 'inbox.firm.example', capabilities: { sending: true, receiving: true } },\n response: { organizationEmailDomainId: EXAMPLE_DOMAIN_ID, domain: 'inbox.firm.example', status: OrganizationEmailDomainStatus.OWNERSHIP_PENDING, txtName: '_wildo-verification.inbox.firm.example', txtValue: 'wildo-email-domain-verification=Qm9vc3RlZC1ub25jZS12YWx1ZS0x' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrganizationEmailDomains_Operations.VERIFY_OWNERSHIP]: {\n operationId: OrganizationEmailDomains_Operations.VERIFY_OWNERSHIP,\n purpose: 'Prove ownership: resolve the published TXT record, and — for the first organization to prove it — create the domain at the email provider.',\n outcome: 'The domain is PROVIDER_PENDING (or VERIFIED) with `ownershipVerifiedAt`, the provider\\'s id and the DNS records to publish. From then on the domain is refused to every other organization.',\n whenToUse: 'After publishing the TXT record `claim` returned and letting DNS propagate. Only while OWNERSHIP_PENDING.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Ownership is proven; the updated domain is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization, or the domain is no longer OWNERSHIP_PENDING (the operation is disabled for it).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No domain with this id exists in the organization.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The TXT record was not found at `_wildo-verification.{domain}`.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another organization has already proven it owns the domain, or the claim changed while it was being verified.' },\n ],\n idempotent: false,\n examples: [{ title: 'Prove ownership of a claimed domain', request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, organizationEmailDomainId: EXAMPLE_DOMAIN_ID }, response: providerPendingDomainExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [OrganizationEmailDomains_Operations.VERIFY]: {\n operationId: OrganizationEmailDomains_Operations.VERIFY,\n purpose: 'Ask the provider to verify the domain\\'s DNS records now, and record what it answers.',\n outcome: 'The domain is VERIFIED, FAILED or still PROVIDER_PENDING (the provider verifies asynchronously), with the records as the provider reports them. A domain whose ownership record is no longer published is SUSPENDED instead.',\n whenToUse: 'After publishing the provider\\'s records, after fixing a FAILED domain, or to bring a SUSPENDED domain back once its records are published again.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The domain as verified now is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization, or the domain is still OWNERSHIP_PENDING (the operation is disabled for it).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No domain with this id exists in the organization.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The ownership TXT record is no longer published and the domain is already SUSPENDED.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Ownership of the domain has not been proven yet.' },\n ],\n idempotent: false,\n examples: [{ title: 'Verify a domain whose records are published', request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, organizationEmailDomainId: EXAMPLE_DOMAIN_ID }, response: verifiedDomainExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [OrganizationEmailDomains_Operations.REMOVE]: {\n operationId: OrganizationEmailDomains_Operations.REMOVE,\n purpose: 'Remove a domain: delete it at the email provider, then the claim.',\n outcome: 'Mail to the domain stops routing at once and nothing is sent from it. The answer says whether the provider held the domain and deleted it.',\n whenToUse: 'The organization no longer uses the domain, or wants to claim it again from the start.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The domain was removed.' }],\n errorScenarios: [ADMIN_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No domain with this id exists in the organization.' }],\n idempotent: false,\n examples: [{\n title: 'Remove a verified domain',\n request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, organizationEmailDomainId: EXAMPLE_DOMAIN_ID },\n response: { organizationEmailDomainId: EXAMPLE_DOMAIN_ID, domain: 'inbox.firm.example', providerDomainDeleted: true },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Nothing is created at the provider until THIS organization proved control of the domain\\'s DNS; the first organization to prove it wins, and pending claims block nobody.',\n 'Only a VERIFIED domain routes mail and sends; a verified domain whose ownership record or provider records disappear is SUSPENDED.',\n 'Removing a domain, or deleting its organization, deletes it at the provider too.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── relationshipMailboxes ─────────────────────────────────────────────────────────\n\nconst relationshipMailboxExample = {\n _id: EXAMPLE_MAILBOX_ID,\n organizationId: EXAMPLE_FIRM_ORGANIZATION_ID,\n address: 'acme@inbox.firm.example',\n emailDomainId: EXAMPLE_DOMAIN_ID,\n organizationRelationshipId: EXAMPLE_RELATIONSHIP_ID,\n grantingOrganizationId: EXAMPLE_ORGANIZATION_ID,\n createdAt: '2026-09-27T10:00:00.000Z',\n updatedAt: '2026-09-27T10:00:00.000Z',\n};\n\nexport const relationshipMailboxesResourceSpecification = resourceSpecification(\n relationshipMailboxesResourceConfiguration_InitializationFactory,\n RelationshipMailboxSchema,\n ({ schemaShape }) => ({\n purpose: 'Give a granting organization its own address on the domain of an organization representing it, so mail to `acme@inbox.firm.com` lands in the granting organization, where the case lives (a firm giving each client an address on its own domain, for example).',\n businessRole: 'How a representing organization receives a granting organization\\'s correspondence on its own domain without it landing in its own tenant: the mailbox belongs to the REPRESENTING organization that owns the domain — the domain owner decides what each of its addresses does — and routes into the granting organization the relationship names.',\n lifecycleRole: 'Created by the representing organization\\'s administrator on its own VERIFIED receiving domain for a granting organization it represents under an ACTIVE relationship; routes only while the domain stays verified and the relationship stays active — re-checked for every message; deleted by the representing organization\\'s administrator, or with the representing organization. The granting organization ends it by ending the relationship.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'RelationshipMailboxSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'relationshipMailboxesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'RELATIONSHIP_MAILBOXES' },\n operationVocabulary: operationVocabulary(),\n notes: [\n 'CREATE and DELETE are API_CALL for ORG_ADMIN and OVERRIDE_ALL, each audited; there is no UPDATE — a mailbox is replaced, never re-pointed. UPDATE_MANY and DELETE_MANY are INTERNAL_CALL.',\n 'CREATE re-checks the whole authority whoever calls: the domain is a VERIFIED receiving domain of THIS organization, the relationship is ACTIVE with this organization as its representing organization, and the address is a plain mailbox (no tag, no reply token) on that domain. A granting organization can create none: that let a granting organization take any address on the representing organization\\'s domain, its own intake included.',\n '`grantingOrganizationId` and `organizationRelationshipId` are plain ids, not navigable relationships: they name rows of ANOTHER tenant, and an edge across tenants is refused.',\n 'RELATIONSHIP_MAILBOX_CREATED / RELATIONSHIP_MAILBOX_REMOVED are written to both organizations\\' trails.',\n '`retain_only` and FORBIDDEN from a subject export: the address belongs to an organization, not a person.',\n 'Reach is by assignment (#2826): the organization\\'s administrators and owners read every mailbox; every other role reads only the mailboxes of the relationships it holds an ACTIVE representative assignment for (`ENGINE_ORGANIZATION_ASSIGNED_ROWS`, matched on `organizationRelationshipId`), as for the client relationships themselves. An address commonly names the client, so the whole list would tell every member who every client is.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one relationship mailbox, derived from its address.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The REPRESENTING organization — the organization that owns the domain and the mailbox.', whyItMatters: 'Only the domain owner decides what its addresses do: only its administrators create or delete one.', importance: FieldSemanticImportance.PRIMARY }),\n address: schemaShape.address.stringSpec({ meaning: 'The mailbox address, lower-cased, on the representing organization\\'s verified domain.', whyItMatters: 'Unique across the application: one address routes to one organization.', importance: FieldSemanticImportance.PRIMARY }),\n emailDomainId: schemaShape.emailDomainId.stringSpec({ meaning: 'The representing organization\\'s own email domain the address is on.', whyItMatters: 'The mailbox routes only while that domain is VERIFIED for receiving.', semanticRole: 'identifier' }),\n organizationRelationshipId: schemaShape.organizationRelationshipId.stringSpec({ meaning: 'The relationship between the granting and the representing organization that authorizes this mailbox.', whyItMatters: 'Re-checked for every message: once it is no longer ACTIVE, the address stops routing.', semanticRole: 'identifier' }),\n grantingOrganizationId: schemaShape.grantingOrganizationId.stringSpec({ meaning: 'The granting organization the mail lands in, as the relationship names it.', whyItMatters: 'Set by the engine from the relationship, never by the caller: routing delivers into exactly this organization.', semanticRole: 'identifier' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the mailbox was created.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the row last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one of your organization\\'s relationship mailboxes.',\n outcome: 'The mailbox, the domain it is on and the relationship behind it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The mailbox is returned.' }],\n errorScenarios: [MEMBER_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No mailbox with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a relationship mailbox', request: { organizationId: EXAMPLE_ORGANIZATION_ID, relationshipMailboxId: EXAMPLE_MAILBOX_ID }, response: relationshipMailboxExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List your organization\\'s relationship mailboxes — the addresses on its verified domains that route into the organizations it represents — sorted by `createdAt`. An administrator lists every one; any other role, the mailboxes of the clients it is assigned to; `organizationRelationshipId` narrows to one client\\'s.',\n outcome: 'A page of relationship mailboxes.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of mailboxes.' }],\n errorScenarios: [MEMBER_FORBIDDEN],\n idempotent: true,\n examples: [{ title: 'List the organization\\'s relationship mailboxes', request: { organizationId: EXAMPLE_ORGANIZATION_ID }, response: page([relationshipMailboxExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.CREATE]: {\n purpose: 'Create a mailbox on your organization\\'s verified domain that routes into an organization it represents.',\n outcome: 'Mail to the address lands in the granting organization the relationship names, while the domain stays verified and the relationship stays active. The creation is audited.',\n whenToUse: 'An organization yours represents wants its correspondence received on your domain and delivered into its own organization (a firm giving a client an address on the firm\\'s domain, for example).',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The mailbox was created.' }],\n errorScenarios: [\n ADMIN_FORBIDDEN,\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The relationship does not confer now with your organization as its representing side, the domain is not a verified receiving domain of your organization, or the address is not a plain mailbox on that domain.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The address is already a mailbox.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Create a mailbox on the representing organization\\'s domain',\n request: { organizationId: EXAMPLE_ORGANIZATION_ID, address: 'acme@inbox.firm.example', emailDomainId: EXAMPLE_DOMAIN_ID, organizationRelationshipId: EXAMPLE_RELATIONSHIP_ID },\n response: relationshipMailboxExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [Op.UPDATE_MANY]: {\n purpose: 'Internal, route-less bulk update (CRITICAL). No personal field exists to scrub.',\n outcome: 'Reserved for engine maintenance.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal update completed.' }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Delete one of your organization\\'s relationship mailboxes.',\n outcome: 'The address stops routing at once. The removal is audited.',\n whenToUse: 'The granting organization no longer wants mail on that address, or the relationship with it ended.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The mailbox was deleted; its id is returned.' }],\n errorScenarios: [ADMIN_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No mailbox with this id exists in the organization.' }],\n idempotent: false,\n examples: [{ title: 'Delete a relationship mailbox', request: { organizationId: EXAMPLE_ORGANIZATION_ID, relationshipMailboxId: EXAMPLE_MAILBOX_ID }, response: { id: EXAMPLE_MAILBOX_ID }, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk delete (internal, route-less, HIGH risk) — the tenant cascade when the representing organization that owns the mailboxes is deleted.',\n outcome: 'An organization\\'s mailboxes leave with it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'A mailbox routes only while its domain is VERIFIED and belongs to the relationship\\'s representing organization, and the relationship is ACTIVE between the two organizations — checked when it is created and again for every message.',\n 'One address routes to exactly one organization.',\n 'Only an administrator of the representing organization creates or deletes a mailbox; the granting organization stops one by ending the relationship, which routing re-checks for every message.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── inboundAddressTombstones ────────────────────────────────────────────────\n\nexport const inboundAddressTombstonesResourceSpecification = resourceSpecification(\n inboundAddressTombstonesResourceConfiguration_InitializationFactory,\n InboundAddressTombstoneSchema,\n ({ schemaShape }) => ({\n purpose: 'Remember the slug of every deleted organization, so its shared-domain address never routes mail to a later organization that takes the same slug.',\n businessRole: 'What keeps an old organization\\'s correspondents from writing into a stranger\\'s tenant: `{slug}@{sharedDomain}` of a deleted organization routes nowhere, and a later organization holding that slug answers at `{slug}.{shortOrgId}` instead.',\n lifecycleRole: 'Written once, after an organization\\'s deletion commits; read by routing and by address composition. Never updated and never deleted: kept for as long as the application exists.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'InboundAddressTombstoneSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'inboundAddressTombstonesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'INBOUND_ADDRESS_TOMBSTONES' },\n operationVocabulary: operationVocabulary(),\n notes: [\n 'No HTTP surface at all: CREATE is REPOSITORY_ONLY and READ / LIST are INTERNAL_CALL. There is no UPDATE and no DELETE.',\n 'No retention binding, deliberately: a tombstone that expired would route an old organization\\'s correspondents to whoever took its slug next — the one outcome it exists to prevent.',\n 'FORBIDDEN from a subject export and no `retentionPolicy`: a slug names a deleted organization, not a person.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one tombstone, derived from the slug.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n applicationId: schemaShape.applicationId.foreignKeySpec({ meaning: 'The application whose shared domain the slug is retired from.', importance: FieldSemanticImportance.PRIMARY }),\n slug: schemaShape.slug.stringSpec({ meaning: 'The slug of the deleted organization.', whyItMatters: 'Unique across the application: a slug is tombstoned once, and from then on `{slug}@{sharedDomain}` routes nowhere.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),\n tombstonedAt: schemaShape.tombstonedAt.dateSpec({ meaning: 'When the organization was deleted.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the tombstone was written.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the row was written; a tombstone never changes.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.CREATE]: {\n purpose: 'Tombstone a deleted organization\\'s slug. Written only by the organization-deletion hook, after the deletion commits.',\n outcome: 'The slug\\'s shared-domain address stops routing, for good.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The tombstone was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The slug is already tombstoned.' }],\n idempotent: false,\n },\n [Op.READ]: {\n purpose: 'Ask whether a slug is tombstoned. Internal, route-less.',\n outcome: 'Routing refuses a tombstoned slug, and address composition gives a later holder `{slug}.{shortOrgId}`.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal read.' }],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'List tombstoned slugs. Internal, route-less.',\n outcome: 'The engine sees which shared-domain addresses are retired.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal read.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'A deleted organization\\'s shared-domain address never routes to anyone again.',\n 'A tombstone never expires and is never removed.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"inbound-email.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/resources/inbound-email.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,qBAAqB,IAAI,EAAE,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,E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EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;YACtF,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,8CAA8C;YACvD,OAAO,EAAE,4DAA4D;YACrE,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC;YACtF,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,+EAA+E;QAC/E,iDAAiD;KAClD;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resources: `inboundEmails`, `organizationEmailDomains`, `relationshipMailboxes`, `inboundAddressTombstones` — Wildo\n * SaaS engine specifications for receiving email (#1600).\n *\n * Inputs:\n * - Schemas: `InboundEmailSchema`, `OrganizationEmailDomainSchema`, `RelationshipMailboxSchema`,\n * `InboundAddressTombstoneSchema` (`notifications/inbound-email/inbound-email.shared.schemas.ts`)\n * - Factories: `{inboundEmails,organizationEmailDomains,relationshipMailboxes,inboundAddressTombstones}ResourceConfiguration_InitializationFactory`\n * (`notifications/inbound-email/inbound-email.shared.resources-config.schemas.ts`)\n * - Custom operations: `OrganizationEmailDomains_Operations` (`claim`, `verify_ownership`, `verify`, `remove`), and\n * the relationship-mailbox CREATE / DELETE, all OVERRIDE_ALL in `inbound-email.custom-impl.backend.service.ts`\n * (saas-backend-lib), driving `OrganizationEmailDomainsBackendService`.\n * - Writers: the email channel's stage 1 (`InboundEmailReceptionBackendService`) writes `inboundEmails`; the\n * `email-domain-recheck` batch (every fifteen minutes) suspends or settles domains; the organization DELETE\n * hook deletes the provider's domains and writes `inboundAddressTombstones`.\n *\n * Scopes: the three organization resources carry `isPrimaryScope: true` on their ORGANIZATIONS relationship (a\n * relationship mailbox belongs to the REPRESENTING organization that owns its domain, and routes mail into the granting\n * organization its relationship names);\n * the tombstones are application-wide (APPLICATION →\n * INBOUND_ADDRESS_TOMBSTONES carries `isPrimaryScope: true`).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n RelationshipMailboxSchema,\n CoreResourceOperation as Op,\n InboundAddressTombstoneSchema,\n InboundEmailLimit,\n InboundEmailSchema,\n InboundEmailStatus,\n InboundRouteKind,\n InboundSenderAssurance,\n OrganizationEmailDomainSchema,\n OrganizationEmailDomainStatus,\n OrganizationEmailDomains_Operations,\n ResourcePrimaryScope,\n relationshipMailboxesResourceConfiguration_InitializationFactory,\n inboundAddressTombstonesResourceConfiguration_InitializationFactory,\n inboundEmailsResourceConfiguration_InitializationFactory,\n organizationEmailDomainsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst EXAMPLE_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7V8W9XY';\nconst EXAMPLE_FIRM_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7FIRM01';\nconst EXAMPLE_INBOUND_EMAIL_ID = '66f6a1c2e3d4b5a697889900';\nconst EXAMPLE_DOMAIN_ID = '66f6a1c2e3d4b5a697881001';\nconst EXAMPLE_MAILBOX_ID = '66f6a1c2e3d4b5a697882001';\nconst EXAMPLE_RELATIONSHIP_ID = '66f6a1c2e3d4b5a697883001';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nconst operationVocabulary = (customEnum?: string) => ({\n coreEnum: enumDeclaration('CoreResourceOperation'),\n ...(customEnum ? { customEnum: enumDeclaration(customEnum) } : {}),\n});\n\nconst page = <T>(data: readonly T[]) => ({ data, pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 } });\n\nconst MEMBER_FORBIDDEN = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization.' };\nconst ADMIN_FORBIDDEN = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' };\n\n// ── inboundEmails ───────────────────────────────────────────────────────────\n\nconst dispatchedEmailExample = {\n _id: EXAMPLE_INBOUND_EMAIL_ID,\n organizationId: EXAMPLE_ORGANIZATION_ID,\n inboundDeliveryId: '5f1c2e9b8a7d6c5b4a392817',\n providerRef: 'resend',\n providerMessageId: 'em_8Qz2LkX7pW',\n messageId: '<CAF7x2kLq9@mail.client.example>',\n inReplyTo: null,\n references: [],\n threadId: '66f6a1c2e3d4b5a697887766',\n fromAddress: 'anna@client.example',\n fromName: 'Anna Keller',\n to: [{ address: 'matters+intake@firm.example' }],\n cc: [],\n replyTo: null,\n receivedFor: 'matters+intake@firm.example',\n routeKind: InboundRouteKind.ORGANIZATION_DOMAIN,\n routeTag: 'intake',\n subject: 'Matter 2026-17 — signed engagement letter',\n textBody: 'Please find the signed engagement letter attached.',\n htmlBody: null,\n strippedReply: null,\n headers: { 'message-id': '<CAF7x2kLq9@mail.client.example>', subject: 'Matter 2026-17 — signed engagement letter' },\n textTruncated: false,\n authentication: { spf: 'pass', dkim: 'pass', dmarc: 'pass', dmarcAligned: true },\n senderAssurance: InboundSenderAssurance.DOMAIN_ALIGNED,\n attachments: [{ fileId: '66f6a1c2e3d4b5a697889a01', filename: 'engagement-letter-signed.pdf', contentType: 'application/pdf', size: 182340, disposition: 'attachment' }],\n withheldAttachments: [],\n rawMime: { fileId: '66f6a1c2e3d4b5a697889a02', sha256: '9f2c4e1d7a3b6c5e8f0a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60', sizeBytes: 251904 },\n sizeBytes: 251904,\n receivedAt: '2026-09-27T09:10:00.000Z',\n status: InboundEmailStatus.DISPATCHED,\n limitExceeded: null,\n createdAt: '2026-09-27T09:10:02.000Z',\n updatedAt: '2026-09-27T09:10:05.000Z',\n};\n\nexport const inboundEmailsResourceSpecification = resourceSpecification(\n inboundEmailsResourceConfiguration_InitializationFactory,\n InboundEmailSchema,\n ({ schemaShape }) => ({\n purpose: 'Keep every email the application received, in the organization it was routed to, exactly as it arrived: sender, recipients, bodies, allow-listed headers, authentication results, attachments and the original bytes.',\n businessRole: 'The email channel\\'s own record of a received letter. Routing decided the organization from the envelope recipient — never from the sender — and the row is what the organization\\'s conversation messages point at for the full message and its attachments.',\n lifecycleRole: 'Written AWAITING_ATTACHMENT_SCAN by the channel\\'s stage 1 once the recipient routed; moved to DISPATCHED or STORED_BELOW_MINIMUM once every attachment has a scan verdict and the channel intake admitted it. A message over a limit is stored REJECTED_LIMIT as its envelope only. Nothing rewrites what was received. Deleted by the retention sweep once the application\\'s BUSINESS_RECORDS period, counted from the end of the calendar year it was received, has passed — its raw MIME and attachment files with it; an erasure inside that period impersonalizes the row instead: its text, addresses and attachment names are reset and its files erased.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'InboundEmailSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'inboundEmailsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'INBOUND_EMAILS' },\n operationVocabulary: operationVocabulary(),\n notes: [\n 'READ and LIST are the only HTTP surface (organization members). CREATE and UPDATE are REPOSITORY_ONLY and UPDATE_MANY / DELETE / DELETE_MANY are INTERNAL_CALL: no request can invent, rewrite or delete a received letter.',\n 'Every received field is `excludeFromUpdate`, and `status` / `limitExceeded` are excluded from both writes: the engine moves the disposition through a guarded mutation from AWAITING_ATTACHMENT_SCAN, once.',\n 'A message addressed to two organizations is one row in EACH; a row never names another tenant.',\n 'Retention: `RETAIN_AND_IMPERSONALIZE` under a LEGAL_OBLIGATION statutory ground (received business letters), bound to BUSINESS_RECORDS from the end of the calendar year. Each personal field declares what erasure writes over it (masked address and subject, reset names, recipients, bodies and headers).',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one received message in one organization.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization routing delivered the message to.', whyItMatters: 'Decided from the envelope recipient, never from the sender or a header the sender wrote, so nobody can write into a tenant by naming it.', importance: FieldSemanticImportance.PRIMARY }),\n inboundDeliveryId: schemaShape.inboundDeliveryId.stringSpec({ meaning: 'The stored inbound delivery of the provider\\'s notification that announced this message.', whyItMatters: 'Stage 1 runs as that delivery\\'s handler, so a crash or a scan wait is retried from it and the row is written once.', semanticRole: 'identifier' }),\n providerRef: schemaShape.providerRef.stringSpec({ meaning: 'The receiving provider that took the message.', semanticRole: 'code' }),\n providerMessageId: schemaShape.providerMessageId.stringSpec({ meaning: 'The provider\\'s id for the message.', whyItMatters: 'With the organization and provider it is the row\\'s business key: one message is stored once per organization.', semanticRole: 'identifier' }),\n messageId: schemaShape.messageId.stringSpec({ meaning: 'The Message-ID the message carried, angle brackets included, when it carried a well-formed one.', semanticRole: 'code' }),\n inReplyTo: schemaShape.inReplyTo.stringSpec({ meaning: 'The Message-ID this message answers.', whyItMatters: 'What joins a reply to an existing conversation thread.', semanticRole: 'code' }),\n references: schemaShape.references.arraySpec({ meaning: 'The Message-IDs of the thread before this message, oldest first.', elementMeaning: 'One earlier Message-ID.' }),\n threadId: schemaShape.threadId.stringSpec({ meaning: 'The conversation thread the message was recorded in, once it was dispatched.', whyItMatters: 'A plain id, set by the engine when the channel intake admitted the message; empty for a message never dispatched.', semanticRole: 'identifier' }),\n fromAddress: schemaShape.fromAddress.stringSpec({ meaning: 'The sender\\'s address, lower-cased.', whyItMatters: 'Indexed so a data subject\\'s erasure finds their letters; masked on erasure. Never used to route.', importance: FieldSemanticImportance.PRIMARY }),\n fromName: schemaShape.fromName.stringSpec({ meaning: 'The sender\\'s display name.', whyItMatters: 'Reset on erasure.' }),\n to: schemaShape.to.arraySpec({ meaning: 'The addresses in To, as the message named them.', elementMeaning: 'One address with its display name.', whyItMatters: 'Reset on erasure.' }),\n cc: schemaShape.cc.arraySpec({ meaning: 'The addresses in Cc.', elementMeaning: 'One address with its display name.', whyItMatters: 'Reset on erasure.' }),\n replyTo: schemaShape.replyTo.stringSpec({ meaning: 'The Reply-To address, when the message named one.', whyItMatters: 'Reset on erasure.' }),\n receivedFor: schemaShape.receivedFor.stringSpec({ meaning: 'The envelope recipient the message was delivered for, which routing read.', whyItMatters: 'The address on this organization\\'s route; it is what decided the organization.', importance: FieldSemanticImportance.PRIMARY }),\n routeKind: schemaShape.routeKind.enumSpec({\n meaning: 'How that address reached this organization.',\n enumDeclaration: enumDeclaration('InboundRouteKind'),\n values: {\n [InboundRouteKind.REPLY_TOKEN]: { meaning: 'A reply address (`{local}+r-{token}@{domain}`) issued on one of this organization\\'s threads.' },\n [InboundRouteKind.RELATIONSHIP_MAILBOX]: { meaning: 'An exact relationship mailbox on a representing organization\\'s verified domain, routed here because this organization is the granting organization its ACTIVE relationship names.' },\n [InboundRouteKind.ORGANIZATION_DOMAIN]: { meaning: 'Any address on a VERIFIED receiving domain of the organization.' },\n [InboundRouteKind.SHARED_DOMAIN]: { meaning: 'The organization\\'s zero-configuration address on the application\\'s shared domain (`{slug}@{sharedDomain}`).' },\n },\n }),\n routeTag: schemaShape.routeTag.stringSpec({ meaning: 'The tag the address carried (`cases+tag@…`).', whyItMatters: 'It selects which channel handler receives the message.', semanticRole: 'code' }),\n subject: schemaShape.subject.stringSpec({ meaning: 'The subject line.', whyItMatters: 'Masked on erasure.', importance: FieldSemanticImportance.PRIMARY }),\n textBody: schemaShape.textBody.stringSpec({ meaning: 'The plain-text body, cut at 1 MB.', whyItMatters: 'Reset on erasure.', semanticRole: 'content' }),\n htmlBody: schemaShape.htmlBody.stringSpec({ meaning: 'The HTML body exactly as received, cut at 1 MB.', whyItMatters: 'Never trusted as markup: it is rendered only in a sandboxed frame that runs no script and loads no remote content (a remote image would be a read receipt). Reset on erasure.', semanticRole: 'content' }),\n strippedReply: schemaShape.strippedReply.stringSpec({ meaning: 'The new part of a reply without its quoted history, when it could be separated.', whyItMatters: 'What a handler usually reads. Reset on erasure.', semanticRole: 'content' }),\n headers: schemaShape.headers.objectSpec({ meaning: 'The allow-listed headers the message carried.', whyItMatters: 'An allow-list, not a deny-list: a header not on it is not stored, because headers are correspondence metadata that can carry personal data. Reset on erasure.' }),\n textTruncated: schemaShape.textTruncated.booleanSpec({ meaning: 'Whether a body was cut at the 1 MB stored-text limit.' }),\n authentication: schemaShape.authentication.objectSpec({ meaning: 'The SPF, DKIM and DMARC results the receiving provider reported, and whether the From domain aligned with an authenticated identifier.', whyItMatters: 'What the sender assurance is derived from.' }),\n senderAssurance: schemaShape.senderAssurance.enumSpec({\n meaning: 'How well the sender is known, as the channel derived it; empty until the message was admitted.',\n whyItMatters: 'It decides only whether a handler runs, never what the handler may do.',\n enumDeclaration: enumDeclaration('InboundSenderAssurance'),\n values: {\n [InboundSenderAssurance.UNVERIFIED]: { meaning: 'Nothing about the sender is proven.' },\n [InboundSenderAssurance.SOURCE_SIGNED]: { meaning: 'Not used for email: a signed webhook delivery.' },\n [InboundSenderAssurance.DOMAIN_ALIGNED]: { meaning: 'DMARC passed aligned with the From domain: the domain is authenticated, not the mailbox.' },\n [InboundSenderAssurance.KNOWN_CONTACT]: { meaning: 'Domain-aligned, and the address is a member of the organization or a contact the application recognises.' },\n [InboundSenderAssurance.THREAD_TOKEN_BOUND]: { meaning: 'Domain-aligned, on a live reply address, from the recipient that address was issued to.' },\n [InboundSenderAssurance.VERIFIED_MEMBER_NUMBER]: { meaning: 'Not used for email: a text from a member\\'s verified phone number.' },\n },\n }),\n attachments: schemaShape.attachments.arraySpec({ meaning: 'The attachments that were stored, with what the sender declared about each.', elementMeaning: 'One stored file with its filename, content type, size and disposition.', whyItMatters: 'Nothing reaches a handler before every attachment has a verdict. Reset on erasure: filenames are the sender\\'s words.' }),\n attachmentFiles: schemaShape.attachmentFiles.fileSpec({ meaning: 'The CLEAN attachments, as files linked to the message.', whyItMatters: 'Linking keeps them for the message\\'s retention — an unlinked file is swept a day after its scan — and serves them to whoever may read the message. An infected or unscannable file is never linked, so never served. Removed, and its files erased, on erasure.' }),\n withheldAttachments: schemaShape.withheldAttachments.arraySpec({ meaning: 'The attachments that were not made available, and why.', elementMeaning: 'One withheld filename with its reason: INFECTED (quarantined, never served) or SCAN_FAILED (not proven clean).', whyItMatters: 'The message itself still reaches its handler; only the unproven file is held back, and each is audited.' }),\n rawMime: schemaShape.rawMime.objectSpec({ meaning: 'The SHA-256 and size of the original message bytes as captured, and the file they were stored in.', whyItMatters: 'Only the original bytes can be re-verified (DKIM is computed over them), and received letters must be reproducible as received. Empty when the application discards raw MIME, or for a message rejected over a limit.' }),\n rawMimeFile: schemaShape.rawMimeFile.fileSpec({ meaning: 'The original message, as a file linked to the message — set once its scan is clean.', whyItMatters: 'Kept for the message\\'s retention and served to whoever may read the message. Removed, and the file erased, on erasure: it holds everything the reset text fields held.' }),\n sizeBytes: schemaShape.sizeBytes.numberSpec({ meaning: 'The size of the message in bytes.' }),\n receivedAt: schemaShape.receivedAt.dateSpec({ meaning: 'When the provider received the message.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n status: schemaShape.status.enumSpec({\n meaning: 'What became of the message — its disposition only. Whether its handler ran is the inbound delivery\\'s status.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('InboundEmailStatus'),\n values: {\n [InboundEmailStatus.AWAITING_ATTACHMENT_SCAN]: { meaning: 'Stored; at least one attachment has no scan verdict yet, so nothing has reached a handler.' },\n [InboundEmailStatus.DISPATCHED]: { meaning: 'Handed to its channel handler through a stored delivery, and recorded in a conversation thread.' },\n [InboundEmailStatus.STORED_BELOW_MINIMUM]: { meaning: 'The sender is below the selected handler\\'s minimum assurance and no below-minimum handler is declared: kept as correspondence, audited, dispatched to nobody.' },\n [InboundEmailStatus.REJECTED_LIMIT]: { meaning: 'Over a limit: only the envelope is kept, without bodies or attachments. `limitExceeded` says which.' },\n },\n }),\n limitExceeded: schemaShape.limitExceeded.enumSpec({\n meaning: 'For a message rejected over a limit, which one.',\n enumDeclaration: enumDeclaration('InboundEmailLimit'),\n values: {\n [InboundEmailLimit.MESSAGE_SIZE]: { meaning: 'The whole message is larger than the application\\'s configured maximum.' },\n [InboundEmailLimit.ATTACHMENT_COUNT]: { meaning: 'More than twenty attachments.' },\n [InboundEmailLimit.ATTACHMENT_SIZE]: { meaning: 'One attachment is larger than the application\\'s maximum file size.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was stored.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the row last changed — its disposition.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one email your organization received, with its bodies, attachments and authentication results.',\n outcome: 'The stored message and its disposition.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The message is returned.' }],\n errorScenarios: [MEMBER_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No received message with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a dispatched message', request: { organizationId: EXAMPLE_ORGANIZATION_ID, inboundEmailId: EXAMPLE_INBOUND_EMAIL_ID }, response: dispatchedEmailExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List the organization\\'s received emails, filtered by `status`, `routeKind` or `threadId` and sorted by `receivedAt`.',\n outcome: 'A page of received messages.',\n whenToUse: 'Find what arrived for one thread, or what was stored below minimum and needs a person to look at it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of messages.' }],\n errorScenarios: [MEMBER_FORBIDDEN],\n idempotent: true,\n examples: [{\n title: 'List the messages stored below the handler\\'s minimum',\n request: { organizationId: EXAMPLE_ORGANIZATION_ID, status: InboundEmailStatus.STORED_BELOW_MINIMUM, sort: 'receivedAt:desc' },\n response: page([{ ...dispatchedEmailExample, threadId: null, status: InboundEmailStatus.STORED_BELOW_MINIMUM, senderAssurance: InboundSenderAssurance.UNVERIFIED }]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Store a routed message. Written only by the email channel\\'s stage 1.',\n outcome: 'The message exists in its organization, AWAITING_ATTACHMENT_SCAN (or REJECTED_LIMIT as an envelope).',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The message was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The same provider message is already stored for the organization.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Settle the message\\'s disposition and record its thread and sender assurance. Written only by the engine.',\n outcome: 'The message leaves AWAITING_ATTACHMENT_SCAN once, with its withheld attachments listed.',\n whenToUse: 'Repository-only: never an HTTP surface — nothing rewrites what was received.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The message was updated. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No message with this id exists.' }],\n idempotent: false,\n },\n [Op.UPDATE_MANY]: {\n purpose: 'The erasure writer\\'s door (internal, route-less, CRITICAL): impersonalizes a data subject\\'s letters once no statutory period restricts them.',\n outcome: 'Addresses and subjects are masked, names, recipients, bodies and headers reset, while the record that a letter arrived stays.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal scrub completed.' }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'The retention sweep\\'s door (internal, route-less, HIGH risk): deleting correspondence removes evidence of what a client sent.',\n outcome: 'A message leaves when its BUSINESS_RECORDS period, counted from the end of its calendar year, has passed — with its raw MIME and attachment files.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of DELETE for the retention sweep (internal, route-less).',\n outcome: 'Messages whose statutory period has ended are removed together.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'The organization a message lands in is chosen by routing from the envelope recipient, in a fixed order — reply token, relationship mailbox, verified organization domain, shared-domain slug — and anything else is UNROUTABLE, audited and not stored.',\n 'Nothing reaches a handler before every attachment has a scan verdict; an infected or unscanned attachment is withheld and listed, never served.',\n 'A received letter is kept for its statutory period; an erasure inside it restricts the row instead of deleting it.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── organizationEmailDomains ────────────────────────────────────────────────\n\nconst pendingDomainExample = {\n _id: EXAMPLE_DOMAIN_ID,\n organizationId: EXAMPLE_FIRM_ORGANIZATION_ID,\n domain: 'inbox.firm.example',\n capabilities: { sending: true, receiving: true },\n providerRef: null,\n providerDomainId: null,\n ownershipChallenge: { txtName: '_wildo-verification.inbox.firm.example', nonceHash: '3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b' },\n status: OrganizationEmailDomainStatus.OWNERSHIP_PENDING,\n dnsRecords: [],\n ownershipVerifiedAt: null,\n lastVerifiedAt: null,\n createdAt: '2026-09-27T08:00:00.000Z',\n updatedAt: '2026-09-27T08:00:00.000Z',\n};\n\nconst providerPendingDomainExample = {\n ...pendingDomainExample,\n providerRef: 'resend',\n providerDomainId: 'd_91f3c2a8',\n status: OrganizationEmailDomainStatus.PROVIDER_PENDING,\n dnsRecords: [\n { purpose: 'DKIM', type: 'TXT', name: 'resend._domainkey.inbox.firm.example', value: 'p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…', status: 'not_started' },\n { purpose: 'MX', type: 'MX', name: 'inbox.firm.example', value: 'inbound-smtp.eu-west-1.amazonaws.com', priority: 10, status: 'not_started' },\n ],\n ownershipVerifiedAt: '2026-09-27T08:20:00.000Z',\n updatedAt: '2026-09-27T08:20:00.000Z',\n};\n\nconst verifiedDomainExample = { ...providerPendingDomainExample, status: OrganizationEmailDomainStatus.VERIFIED, lastVerifiedAt: '2026-09-27T09:00:00.000Z', updatedAt: '2026-09-27T09:00:00.000Z' };\n\nexport const organizationEmailDomainsResourceSpecification = resourceSpecification(\n organizationEmailDomainsResourceConfiguration_InitializationFactory,\n OrganizationEmailDomainSchema,\n ({ schemaShape }) => ({\n purpose: 'Let an organization receive mail on, and send from, a domain of its own — once it has proven it controls that domain\\'s DNS.',\n businessRole: 'What lets an organization use a domain of its own, such as `inbox.firm.com`, instead of the application\\'s shared address. Every tenant shares one provider account, so ownership is proven per organization BEFORE anything is created at the provider: otherwise a squatter\\'s claim would verify the moment the real owner published its records.',\n lifecycleRole: '`claim` records OWNERSHIP_PENDING and returns the DNS TXT challenge once; `verify_ownership` resolves it and, for the first organization to prove it, creates the domain at the provider (PROVIDER_PENDING, or VERIFIED at once); `verify` asks the provider to verify its records (VERIFIED, FAILED or still PROVIDER_PENDING) and suspends a domain whose ownership record disappeared; the fifteen-minute re-check suspends a verified domain whose records vanished and settles a pending one. `remove`, and the deletion of the organization, delete the domain at the provider and then the row.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationEmailDomainSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationEmailDomainsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_EMAIL_DOMAINS' },\n operationVocabulary: operationVocabulary('OrganizationEmailDomains_Operations'),\n notes: [\n 'The four verbs are the whole write surface, each OVERRIDE_ALL and each audited under its own event. CREATE and UPDATE are REPOSITORY_ONLY and UPDATE_MANY / DELETE / DELETE_MANY are INTERNAL_CALL: a row that could be written directly could claim VERIFIED without proving anything.',\n 'Only the SHA-256 of the ownership challenge value is stored. The value (`wildo-email-domain-verification=<nonce>`, published at `_wildo-verification.{domain}`) is answered once by `claim`; claiming again while pending mints a fresh one and invalidates the old.',\n 'Refusals never name the organization that holds a domain: telling one tenant which tenant holds it would disclose a customer\\'s configuration.',\n '`retain_only` and FORBIDDEN from a subject export: a domain names an organization\\'s infrastructure, not a person.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one organization\\'s claim on one domain, derived from the organization and the domain.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization that claimed the domain.', whyItMatters: 'Once proven, the domain routes mail into and sends for this organization only.', importance: FieldSemanticImportance.PRIMARY }),\n domain: schemaShape.domain.stringSpec({ meaning: 'The lower-case DNS hostname, e.g. `inbox.firm.com`.', whyItMatters: 'Not unique: several organizations may hold pending claims on one domain. A subdomain keeps the organization\\'s existing mailbox untouched.', importance: FieldSemanticImportance.PRIMARY }),\n capabilities: schemaShape.capabilities.objectSpec({ meaning: 'Whether the organization sends from the domain, receives on it, or both.', whyItMatters: 'A claim for neither is refused; the provider domain is created with exactly these capabilities.' }),\n providerRef: schemaShape.providerRef.stringSpec({ meaning: 'The email provider the domain was created at, once ownership was proven.', semanticRole: 'code' }),\n providerDomainId: schemaShape.providerDomainId.stringSpec({ meaning: 'The provider\\'s id for the domain, once created there.', whyItMatters: 'What `verify`, the re-check and `remove` address at the provider.', semanticRole: 'identifier' }),\n ownershipChallenge: schemaShape.ownershipChallenge.objectSpec({ meaning: 'The DNS TXT ownership challenge: the name to publish it on, and the SHA-256 of the value.', whyItMatters: 'The organization proves control of the domain by publishing the value; the re-check keeps asking for it, and its disappearance suspends the domain.' }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where the domain stands. Only a verified domain routes and sends.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('OrganizationEmailDomainStatus'),\n values: {\n [OrganizationEmailDomainStatus.OWNERSHIP_PENDING]: { meaning: 'Claimed; the TXT challenge is not answered yet. Blocks nobody: several organizations may be here at once.' },\n [OrganizationEmailDomainStatus.PROVIDER_PENDING]: { meaning: 'Ownership proven and the domain created at the provider; its DNS records are not verified there yet.' },\n [OrganizationEmailDomainStatus.VERIFIED]: { meaning: 'Ownership proven and the provider verified the records: the domain routes mail (receiving) and sends (sending).' },\n [OrganizationEmailDomainStatus.FAILED]: { meaning: 'The provider could not verify the records. Fix the DNS and verify again.' },\n [OrganizationEmailDomainStatus.SUSPENDED]: { meaning: 'Was verified; the ownership record or the provider\\'s records disappeared. Routing and sending stop until it verifies again.' },\n },\n }),\n dnsRecords: schemaShape.dnsRecords.arraySpec({ meaning: 'The records the provider asks the organization to publish, as the provider reported them.', elementMeaning: 'One record: its purpose (DKIM, SPF, MX…), type, name, value, MX priority and the provider\\'s status for it.' }),\n ownershipVerifiedAt: schemaShape.ownershipVerifiedAt.dateSpec({ meaning: 'When the organization proved it owns the domain.', whyItMatters: 'From then on the domain is refused to every other organization.', temporalRole: 'occurred' }),\n lastVerifiedAt: schemaShape.lastVerifiedAt.dateSpec({ meaning: 'When the domain was last found verified.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the domain was claimed.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the claim last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one of your organization\\'s email domains, with its status and the DNS records to publish.',\n outcome: 'The domain claim.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The domain is returned.' }],\n errorScenarios: [ADMIN_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No domain with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a domain waiting for the provider', request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, organizationEmailDomainId: EXAMPLE_DOMAIN_ID }, response: providerPendingDomainExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List the organization\\'s email domains, filtered by `status` and sorted by `createdAt`.',\n outcome: 'A page of domain claims.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of domains.' }],\n errorScenarios: [ADMIN_FORBIDDEN],\n idempotent: true,\n examples: [{ title: 'List verified domains', request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, status: OrganizationEmailDomainStatus.VERIFIED }, response: page([verifiedDomainExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.CREATE]: {\n purpose: 'Store a claim. Written only by `claim`.',\n outcome: 'The claim exists OWNERSHIP_PENDING.',\n whenToUse: 'Repository-only: never an HTTP surface — organizations act through `claim`.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The claim was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization already holds a claim on this domain.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Move a claim through its lifecycle. Written only by the verbs and the re-check, through guarded mutations.',\n outcome: 'The claim reflects the latest ownership and provider verification.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The claim was updated. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No claim with this id exists.' }],\n idempotent: false,\n },\n [Op.UPDATE_MANY]: {\n purpose: 'Internal, route-less bulk update (CRITICAL). No personal field exists to scrub.',\n outcome: 'Reserved for engine maintenance.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal update completed.' }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Internal, route-less delete (HIGH risk): the tenant cascade\\'s door when the organization is deleted, after the provider\\'s copy was read for deletion.',\n outcome: 'The claim leaves with its organization.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of DELETE (internal, route-less).',\n outcome: 'An organization\\'s claims leave together.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n [OrganizationEmailDomains_Operations.CLAIM]: {\n operationId: OrganizationEmailDomains_Operations.CLAIM,\n purpose: 'Claim a domain for sending, receiving, or both, and receive the DNS TXT record that proves ownership.',\n outcome: 'The claim is OWNERSHIP_PENDING and the answer carries `txtName` (`_wildo-verification.{domain}`) and `txtValue` (`wildo-email-domain-verification=<nonce>`), shown this once. Nothing is created at the provider. Claiming again while pending mints a fresh value and invalidates the old one.',\n whenToUse: 'The organization wants to receive on, or send from, a domain it controls.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The claim and its one-time TXT record value are returned.' }],\n errorScenarios: [\n ADMIN_FORBIDDEN,\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The domain is not a DNS hostname with at least two labels, or the claim is for neither sending nor receiving.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another organization has already proven it owns the domain, or this organization already proved it (remove the domain to claim it again).' },\n ],\n idempotent: false,\n examples: [{\n title: 'Claim a receiving and sending subdomain',\n request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, domain: 'inbox.firm.example', capabilities: { sending: true, receiving: true } },\n response: { organizationEmailDomainId: EXAMPLE_DOMAIN_ID, domain: 'inbox.firm.example', status: OrganizationEmailDomainStatus.OWNERSHIP_PENDING, txtName: '_wildo-verification.inbox.firm.example', txtValue: 'wildo-email-domain-verification=Qm9vc3RlZC1ub25jZS12YWx1ZS0x' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [OrganizationEmailDomains_Operations.VERIFY_OWNERSHIP]: {\n operationId: OrganizationEmailDomains_Operations.VERIFY_OWNERSHIP,\n purpose: 'Prove ownership: resolve the published TXT record, and — for the first organization to prove it — create the domain at the email provider.',\n outcome: 'The domain is PROVIDER_PENDING (or VERIFIED) with `ownershipVerifiedAt`, the provider\\'s id and the DNS records to publish. From then on the domain is refused to every other organization.',\n whenToUse: 'After publishing the TXT record `claim` returned and letting DNS propagate. Only while OWNERSHIP_PENDING.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Ownership is proven; the updated domain is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The domain is no longer OWNERSHIP_PENDING (the operation is disabled for it).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No domain with this id exists in the organization.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The TXT record was not found at `_wildo-verification.{domain}`.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another organization has already proven it owns the domain, or the claim changed while it was being verified.' },\n ],\n idempotent: false,\n examples: [{ title: 'Prove ownership of a claimed domain', request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, organizationEmailDomainId: EXAMPLE_DOMAIN_ID }, response: providerPendingDomainExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [OrganizationEmailDomains_Operations.VERIFY]: {\n operationId: OrganizationEmailDomains_Operations.VERIFY,\n purpose: 'Ask the provider to verify the domain\\'s DNS records now, and record what it answers.',\n outcome: 'The domain is VERIFIED, FAILED or still PROVIDER_PENDING (the provider verifies asynchronously), with the records as the provider reports them. A domain whose ownership record is no longer published is SUSPENDED instead.',\n whenToUse: 'After publishing the provider\\'s records, after fixing a FAILED domain, or to bring a SUSPENDED domain back once its records are published again.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The domain as verified now is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The domain is still OWNERSHIP_PENDING (the operation is disabled for it).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No domain with this id exists in the organization.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The ownership TXT record is no longer published and the domain is already SUSPENDED.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Ownership of the domain has not been proven yet.' },\n ],\n idempotent: false,\n examples: [{ title: 'Verify a domain whose records are published', request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, organizationEmailDomainId: EXAMPLE_DOMAIN_ID }, response: verifiedDomainExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [OrganizationEmailDomains_Operations.REMOVE]: {\n operationId: OrganizationEmailDomains_Operations.REMOVE,\n purpose: 'Remove a domain: delete it at the email provider, then the claim.',\n outcome: 'Mail to the domain stops routing at once and nothing is sent from it. The answer says whether the provider held the domain and deleted it.',\n whenToUse: 'The organization no longer uses the domain, or wants to claim it again from the start.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The domain was removed.' }],\n errorScenarios: [ADMIN_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No domain with this id exists in the organization.' }],\n idempotent: false,\n examples: [{\n title: 'Remove a verified domain',\n request: { organizationId: EXAMPLE_FIRM_ORGANIZATION_ID, organizationEmailDomainId: EXAMPLE_DOMAIN_ID },\n response: { organizationEmailDomainId: EXAMPLE_DOMAIN_ID, domain: 'inbox.firm.example', providerDomainDeleted: true },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Nothing is created at the provider until THIS organization proved control of the domain\\'s DNS; the first organization to prove it wins, and pending claims block nobody.',\n 'Only a VERIFIED domain routes mail and sends; a verified domain whose ownership record or provider records disappear is SUSPENDED.',\n 'Removing a domain, or deleting its organization, deletes it at the provider too.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── relationshipMailboxes ─────────────────────────────────────────────────────────\n\nconst relationshipMailboxExample = {\n _id: EXAMPLE_MAILBOX_ID,\n organizationId: EXAMPLE_FIRM_ORGANIZATION_ID,\n address: 'acme@inbox.firm.example',\n emailDomainId: EXAMPLE_DOMAIN_ID,\n organizationRelationshipId: EXAMPLE_RELATIONSHIP_ID,\n grantingOrganizationId: EXAMPLE_ORGANIZATION_ID,\n createdAt: '2026-09-27T10:00:00.000Z',\n updatedAt: '2026-09-27T10:00:00.000Z',\n};\n\nexport const relationshipMailboxesResourceSpecification = resourceSpecification(\n relationshipMailboxesResourceConfiguration_InitializationFactory,\n RelationshipMailboxSchema,\n ({ schemaShape }) => ({\n purpose: 'Give a granting organization its own address on the domain of an organization representing it, so mail to `acme@inbox.firm.com` lands in the granting organization, where the case lives (a firm giving each client an address on its own domain, for example).',\n businessRole: 'How a representing organization receives a granting organization\\'s correspondence on its own domain without it landing in its own tenant: the mailbox belongs to the REPRESENTING organization that owns the domain — the domain owner decides what each of its addresses does — and routes into the granting organization the relationship names.',\n lifecycleRole: 'Created by the representing organization\\'s administrator on its own VERIFIED receiving domain for a granting organization it represents under an ACTIVE relationship; routes only while the domain stays verified and the relationship stays active — re-checked for every message; deleted by the representing organization\\'s administrator, or with the representing organization. The granting organization ends it by ending the relationship.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'RelationshipMailboxSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'relationshipMailboxesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'RELATIONSHIP_MAILBOXES' },\n operationVocabulary: operationVocabulary(),\n notes: [\n 'CREATE and DELETE are API_CALL for ORG_ADMIN and OVERRIDE_ALL, each audited; there is no UPDATE — a mailbox is replaced, never re-pointed. UPDATE_MANY and DELETE_MANY are INTERNAL_CALL.',\n 'CREATE re-checks the whole authority whoever calls: the domain is a VERIFIED receiving domain of THIS organization, the relationship is ACTIVE with this organization as its representing organization, and the address is a plain mailbox (no tag, no reply token) on that domain. A granting organization can create none: that let a granting organization take any address on the representing organization\\'s domain, its own intake included.',\n '`grantingOrganizationId` and `organizationRelationshipId` are plain ids, not navigable relationships: they name rows of ANOTHER tenant, and an edge across tenants is refused.',\n 'RELATIONSHIP_MAILBOX_CREATED / RELATIONSHIP_MAILBOX_REMOVED are written to both organizations\\' trails.',\n '`retain_only` and FORBIDDEN from a subject export: the address belongs to an organization, not a person.',\n 'Reach is by assignment (#2826): the organization\\'s administrators and owners read every mailbox; every other role reads only the mailboxes of the relationships it holds an ACTIVE representative assignment for (`ENGINE_ORGANIZATION_ASSIGNED_ROWS`, matched on `organizationRelationshipId`), as for the client relationships themselves. An address commonly names the client, so the whole list would tell every member who every client is.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one relationship mailbox, derived from its address.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The REPRESENTING organization — the organization that owns the domain and the mailbox.', whyItMatters: 'Only the domain owner decides what its addresses do: only its administrators create or delete one.', importance: FieldSemanticImportance.PRIMARY }),\n address: schemaShape.address.stringSpec({ meaning: 'The mailbox address, lower-cased, on the representing organization\\'s verified domain.', whyItMatters: 'Unique across the application: one address routes to one organization.', importance: FieldSemanticImportance.PRIMARY }),\n emailDomainId: schemaShape.emailDomainId.stringSpec({ meaning: 'The representing organization\\'s own email domain the address is on.', whyItMatters: 'The mailbox routes only while that domain is VERIFIED for receiving.', semanticRole: 'identifier' }),\n organizationRelationshipId: schemaShape.organizationRelationshipId.stringSpec({ meaning: 'The relationship between the granting and the representing organization that authorizes this mailbox.', whyItMatters: 'Re-checked for every message: once it is no longer ACTIVE, the address stops routing.', semanticRole: 'identifier' }),\n grantingOrganizationId: schemaShape.grantingOrganizationId.stringSpec({ meaning: 'The granting organization the mail lands in, as the relationship names it.', whyItMatters: 'Set by the engine from the relationship, never by the caller: routing delivers into exactly this organization.', semanticRole: 'identifier' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the mailbox was created.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the row last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one of your organization\\'s relationship mailboxes.',\n outcome: 'The mailbox, the domain it is on and the relationship behind it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The mailbox is returned.' }],\n errorScenarios: [MEMBER_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No mailbox with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a relationship mailbox', request: { organizationId: EXAMPLE_ORGANIZATION_ID, relationshipMailboxId: EXAMPLE_MAILBOX_ID }, response: relationshipMailboxExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List your organization\\'s relationship mailboxes — the addresses on its verified domains that route into the organizations it represents — sorted by `createdAt`. An administrator lists every one; any other role, the mailboxes of the clients it is assigned to; `organizationRelationshipId` narrows to one client\\'s.',\n outcome: 'A page of relationship mailboxes.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of mailboxes.' }],\n errorScenarios: [MEMBER_FORBIDDEN],\n idempotent: true,\n examples: [{ title: 'List the organization\\'s relationship mailboxes', request: { organizationId: EXAMPLE_ORGANIZATION_ID }, response: page([relationshipMailboxExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.CREATE]: {\n purpose: 'Create a mailbox on your organization\\'s verified domain that routes into an organization it represents.',\n outcome: 'Mail to the address lands in the granting organization the relationship names, while the domain stays verified and the relationship stays active. The creation is audited.',\n whenToUse: 'An organization yours represents wants its correspondence received on your domain and delivered into its own organization (a firm giving a client an address on the firm\\'s domain, for example).',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The mailbox was created.' }],\n errorScenarios: [\n ADMIN_FORBIDDEN,\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The relationship does not confer now with your organization as its representing side, the domain is not a verified receiving domain of your organization, or the address is not a plain mailbox on that domain.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The address is already a mailbox.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Create a mailbox on the representing organization\\'s domain',\n request: { organizationId: EXAMPLE_ORGANIZATION_ID, address: 'acme@inbox.firm.example', emailDomainId: EXAMPLE_DOMAIN_ID, organizationRelationshipId: EXAMPLE_RELATIONSHIP_ID },\n response: relationshipMailboxExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [Op.UPDATE_MANY]: {\n purpose: 'Internal, route-less bulk update (CRITICAL). No personal field exists to scrub.',\n outcome: 'Reserved for engine maintenance.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal update completed.' }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Delete one of your organization\\'s relationship mailboxes.',\n outcome: 'The address stops routing at once. The removal is audited.',\n whenToUse: 'The granting organization no longer wants mail on that address, or the relationship with it ended.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The mailbox was deleted; its id is returned.' }],\n errorScenarios: [ADMIN_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No mailbox with this id exists in the organization.' }],\n idempotent: false,\n examples: [{ title: 'Delete a relationship mailbox', request: { organizationId: EXAMPLE_ORGANIZATION_ID, relationshipMailboxId: EXAMPLE_MAILBOX_ID }, response: { id: EXAMPLE_MAILBOX_ID }, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk delete (internal, route-less, HIGH risk) — the tenant cascade when the representing organization that owns the mailboxes is deleted.',\n outcome: 'An organization\\'s mailboxes leave with it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'A mailbox routes only while its domain is VERIFIED and belongs to the relationship\\'s representing organization, and the relationship is ACTIVE between the two organizations — checked when it is created and again for every message.',\n 'One address routes to exactly one organization.',\n 'Only an administrator of the representing organization creates or deletes a mailbox; the granting organization stops one by ending the relationship, which routing re-checks for every message.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── inboundAddressTombstones ────────────────────────────────────────────────\n\nexport const inboundAddressTombstonesResourceSpecification = resourceSpecification(\n inboundAddressTombstonesResourceConfiguration_InitializationFactory,\n InboundAddressTombstoneSchema,\n ({ schemaShape }) => ({\n purpose: 'Remember the slug of every deleted organization, so its shared-domain address never routes mail to a later organization that takes the same slug.',\n businessRole: 'What keeps an old organization\\'s correspondents from writing into a stranger\\'s tenant: `{slug}@{sharedDomain}` of a deleted organization routes nowhere, and a later organization holding that slug answers at `{slug}.{shortOrgId}` instead.',\n lifecycleRole: 'Written once, after an organization\\'s deletion commits; read by routing and by address composition. Never updated and never deleted: kept for as long as the application exists.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'InboundAddressTombstoneSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'inboundAddressTombstonesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'INBOUND_ADDRESS_TOMBSTONES' },\n operationVocabulary: operationVocabulary(),\n notes: [\n 'No HTTP surface at all: CREATE is REPOSITORY_ONLY and READ / LIST are INTERNAL_CALL. There is no UPDATE and no DELETE.',\n 'No retention binding, deliberately: a tombstone that expired would route an old organization\\'s correspondents to whoever took its slug next — the one outcome it exists to prevent.',\n 'FORBIDDEN from a subject export and no `retentionPolicy`: a slug names a deleted organization, not a person.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one tombstone, derived from the slug.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n applicationId: schemaShape.applicationId.foreignKeySpec({ meaning: 'The application whose shared domain the slug is retired from.', importance: FieldSemanticImportance.PRIMARY }),\n slug: schemaShape.slug.stringSpec({ meaning: 'The slug of the deleted organization.', whyItMatters: 'Unique across the application: a slug is tombstoned once, and from then on `{slug}@{sharedDomain}` routes nowhere.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),\n tombstonedAt: schemaShape.tombstonedAt.dateSpec({ meaning: 'When the organization was deleted.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the tombstone was written.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the row was written; a tombstone never changes.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.CREATE]: {\n purpose: 'Tombstone a deleted organization\\'s slug. Written only by the organization-deletion hook, after the deletion commits.',\n outcome: 'The slug\\'s shared-domain address stops routing, for good.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The tombstone was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The slug is already tombstoned.' }],\n idempotent: false,\n },\n [Op.READ]: {\n purpose: 'Ask whether a slug is tombstoned. Internal, route-less.',\n outcome: 'Routing refuses a tombstoned slug, and address composition gives a later holder `{slug}.{shortOrgId}`.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal read.' }],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'List tombstoned slugs. Internal, route-less.',\n outcome: 'The engine sees which shared-domain addresses are retired.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal read.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'A deleted organization\\'s shared-domain address never routes to anyone again.',\n 'A tombstone never expires and is never removed.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"m2m-webhook-delivery-log.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAQH,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAE3B,gCAAgC,EAGhC,mBAAmB,EAGpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAiD,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAoB9H,KAAK,iBAAiB,GAClB,EAAE,CAAC,IAAI,GACP,EAAE,CAAC,IAAI,GACP,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"m2m-webhook-delivery-log.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAQH,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAE3B,gCAAgC,EAGhC,mBAAmB,EAGpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAiD,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAoB9H,KAAK,iBAAiB,GAClB,EAAE,CAAC,IAAI,GACP,EAAE,CAAC,IAAI,GACP,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,MAAM,GACT,EAAE,CAAC,WAAW,CAAC;AAkanB,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAGlE,CAAC;AAEF,eAAO,MAAM,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAGjE,CAAC"}
|
package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js
CHANGED
|
@@ -367,8 +367,8 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
|
|
|
367
367
|
idempotent: true,
|
|
368
368
|
},
|
|
369
369
|
[Op.DELETE_MANY]: {
|
|
370
|
-
purpose: 'The bulk delete behind `purgeOld
|
|
371
|
-
outcome: 'Retention purges
|
|
370
|
+
purpose: 'The bulk delete behind `purgeOld` and the retention-class sweep, through its route-less INTERNAL_CALL variant: `purgeOld` removes terminal rows older than the requested window a page of at most 100 rows at a time (#2297), and the sweep removes any row untouched for the `OPERATIONAL_LOGS` period.',
|
|
371
|
+
outcome: 'Retention purges remove rows a page at a time, each page its own transaction with its own audit row, kept through a crash. `purgeOld` never touches a non-terminal row; the sweep reaches one only when no attempt has moved it for a whole period, which means the drain has abandoned it.',
|
|
372
372
|
whenToUse: 'Never a public HTTP surface. Admins purge via the `purgeOld` custom operation, which owns request validation and the purge summary response.',
|
|
373
373
|
responseStatuses: [
|
|
374
374
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The matched terminal records were bulk-deleted; the body carries `deletedIds` and `deletedCount`, and the `purgeOld` wrapper reports the count in its own summary response.' },
|
|
@@ -402,16 +402,17 @@ function buildM2mWebhookDeliveryLogSpecification(resourceType, memberName) {
|
|
|
402
402
|
},
|
|
403
403
|
[M2MWebhookDeliveryLog_Operations.PURGE_OLD]: {
|
|
404
404
|
operationId: M2MWebhookDeliveryLog_Operations.PURGE_OLD,
|
|
405
|
-
purpose: '
|
|
406
|
-
outcome: 'Tenants can comply with a data-retention policy without asking an operator to remove records by hand.',
|
|
405
|
+
purpose: 'Remove rows older than `N` days (delivered or failed) to bound storage in busy tenants, except a row an active legal hold keeps.',
|
|
406
|
+
outcome: 'Tenants can comply with a data-retention policy without asking an operator to remove records by hand. The rows are removed a page of at most 100 at a time, each page its own transaction with its own audit row (#2297), so a crash never loses the record of a removal; when a page fails, the pages before it stay removed and recorded, and running the purge again removes the rest.',
|
|
407
407
|
whenToUse: 'Use in scheduled admin jobs (or manual compliance runs) with explicit `olderThanDays` guardrails.',
|
|
408
408
|
importance: FieldSemanticImportance.PRIMARY,
|
|
409
409
|
responseStatuses: [
|
|
410
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'Records older than the supplied `olderThanDays` window were
|
|
410
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'Records older than the supplied `olderThanDays` window were removed, except those an active legal hold keeps (the message counts them), and a count of purged records is returned.' },
|
|
411
411
|
],
|
|
412
412
|
errorScenarios: [
|
|
413
413
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The `olderThanDays` guardrail is missing, non-numeric, or below the configured minimum retention floor.' },
|
|
414
414
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-admin / app-super-admin role required to run a bulk retention purge.' },
|
|
415
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A legal hold was placed on a row 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 row and removes the rest.' },
|
|
415
416
|
],
|
|
416
417
|
idempotent: false,
|
|
417
418
|
examples: [{
|