@wildo-ai/saas-specifications 1.1.9 → 1.1.11
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/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.js +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +11 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +11 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-choice.d.ts +72 -10
- package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-choice.js +144 -24
- package/dist/esm/_core/brand/brand-name-choice.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +41 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +19 -3
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +7 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.js +24 -3
- package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts +61 -9
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-view.js +42 -1
- package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +130 -2
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening.schemas.js +165 -3
- package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +25 -7
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
- package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +76 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +7 -2
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +21 -3
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +411 -13
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +281 -8
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +4 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +3 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +6 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +20 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +1 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +1 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +7 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +4 -3
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +55 -5
- 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 +66 -2
- 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 +42 -2
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +174 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -1
- 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 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +15 -0
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +15 -0
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.js +5 -1
- package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +32 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +41 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +33 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +134 -9
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +117 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +118 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +22 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +17 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +21 -5
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +7 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.js +39 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +31 -5
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +81 -9
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +88 -7
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +13 -6
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.registry.js +2 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +24 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js +20 -0
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +6 -6
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +6 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +6 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +26 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +21 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.js +13 -1
- package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -12
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +4 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +15 -3
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +6 -3
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +56 -3
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +9 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +83 -0
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +102 -2
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +3 -2
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -2
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +1 -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 +2 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts +41 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.js +63 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-references.schemas.d.ts +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.js +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +16 -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 +12 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +13 -2
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js +32 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +65 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +53 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js +2 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +56 -15
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js +73 -13
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +1 -16
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +1 -1
- package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
- package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-derivation.js +410 -0
- package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +86 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.js +28 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
- package/dist/esm/_core/service-method/service-method-validation.d.ts +35 -0
- package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-validation.js +75 -0
- package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
- package/dist/esm/_core/service-method/service-method.schemas.d.ts +385 -0
- package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method.schemas.js +372 -0
- package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +37 -5
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts +29 -3
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-validation.js +97 -5
- package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js +6 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +521 -15
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.js +703 -23
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +78 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +92 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +26 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +14 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +21 -5
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +119 -10
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +140 -7
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts +7 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js +7 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +103 -15
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +151 -21
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +7 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +7 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +36 -2
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.js +52 -4
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
- package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
- package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
- package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +608 -9
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2962 -1078
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +15 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +138 -19
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +65 -0
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +81 -6
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +68 -7
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1631 -70
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +327 -3
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +403 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +825 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +83 -8
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +167 -20
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +234 -35
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +255 -14
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +259 -18
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +216 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +110 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +356 -5
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
- package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
- package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
- package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
- package/dist/esm/assurance/governed-document-release.d.ts +15 -1
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +3 -1
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/assurance.exports.d.ts +4 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +4 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +9 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +33 -5
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +9 -12
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +60 -6
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.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 +2 -2
- 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 +12 -4
- 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 +46 -10
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +3 -2
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +40 -11
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +44 -3
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +7 -3
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +40 -8
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +14 -8
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +72 -19
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +2 -2
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +6 -6
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +14 -13
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +68 -12
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +75 -19
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +3 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +11 -7
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +4 -2
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +8 -7
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +6 -6
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +4 -0
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +4 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +9 -5
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +16 -8
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +73 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +192 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +5 -3
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +19 -13
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +11 -6
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +14 -3
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +1 -1
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.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 +55 -11
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +300 -5
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
- package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/index.d.ts +4 -2
- package/dist/esm/engine/features/index.d.ts.map +1 -1
- package/dist/esm/engine/features/index.js +6 -4
- package/dist/esm/engine/features/index.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -2
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +34 -15
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts +4 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +24 -3
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +31 -3
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -6
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +92 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +73 -31
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +118 -18
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -4
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +230 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +6 -0
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.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/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +7 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +29 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js +110 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +21 -4
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +3 -3
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +5 -5
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +38 -10
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +181 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +3 -3
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +7 -7
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +31 -1
- 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 +33 -7
- 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 +16 -14
- 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 +56 -53
- 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 +6 -2
- 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 +22 -4
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +2 -2
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +2 -0
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +3 -3
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.js +1 -3
- package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.js +1 -2
- package/dist/esm/engine/organizations/resources/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +5 -4
- 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 +114 -51
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +11 -10
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/{service-provider-relationships.resource.specification.d.ts → organization-relationships.resource.specification.d.ts} +73 -56
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +643 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +6 -4
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +4 -4
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +93 -43
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +8 -5
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.js +39 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +2 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -1
- package/dist/esm/engine/providers/index.js +5 -1
- package/dist/esm/engine/providers/index.js.map +1 -1
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +39 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +2 -2
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +8 -6
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
- package/dist/esm/engine/roles/index.d.ts +2 -2
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +5 -5
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
- package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
- package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +1 -0
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -0
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -0
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +6 -2
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +33 -0
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +2 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +10 -4
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +17 -15
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/package.json +8 -8
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
- package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
- package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ export declare const conversationThreadsResourceSpecification: import("../../../
|
|
|
23
23
|
threadKey: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
24
24
|
counterpartAddress: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
25
25
|
subject: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodString>>>;
|
|
26
|
-
linkedResource: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
26
|
+
linkedResource: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
27
27
|
resourceType: import("zod").ZodString;
|
|
28
28
|
resourceId: import("zod").ZodString;
|
|
29
|
-
}, import("zod/v4/core").$strict
|
|
29
|
+
}, import("zod/v4/core").$strict>>>>;
|
|
30
30
|
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ConversationThreadStatus>>>>>;
|
|
31
31
|
lastMessageAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>;
|
|
32
32
|
closedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>>>;
|
|
@@ -41,7 +41,7 @@ export declare const conversationMessagesResourceSpecification: import("../../..
|
|
|
41
41
|
rfcMessageId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
42
42
|
fromAddress: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
43
43
|
toAddresses: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
44
|
-
subject: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodString
|
|
44
|
+
subject: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
45
45
|
textPreview: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodString>>;
|
|
46
46
|
occurredAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>;
|
|
47
47
|
inboundDeliveryId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js
CHANGED
|
@@ -147,13 +147,13 @@ export const conversationThreadsResourceSpecification = resourceSpecification(co
|
|
|
147
147
|
[Op.DELETE]: {
|
|
148
148
|
purpose: 'The retention sweep\'s door: an internal, route-less call. Takes the thread\'s reply tokens with it, never its messages.',
|
|
149
149
|
outcome: 'A thread leaves only when its RESOURCE_DATA period since closure has passed, or with its organization.',
|
|
150
|
-
responseStatuses: [{ code: HttpResponseStatusCode.
|
|
150
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],
|
|
151
151
|
idempotent: true,
|
|
152
152
|
},
|
|
153
153
|
[Op.DELETE_MANY]: {
|
|
154
154
|
purpose: 'Bulk twin of DELETE for the retention sweep (internal, route-less).',
|
|
155
155
|
outcome: 'Closed threads whose period has ended are removed together with their reply tokens.',
|
|
156
|
-
responseStatuses: [{ code: HttpResponseStatusCode.
|
|
156
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],
|
|
157
157
|
idempotent: true,
|
|
158
158
|
},
|
|
159
159
|
[ConversationThreads_Operations.CLOSE]: {
|
|
@@ -326,13 +326,13 @@ export const conversationMessagesResourceSpecification = resourceSpecification(c
|
|
|
326
326
|
[Op.DELETE]: {
|
|
327
327
|
purpose: 'The retention sweep\'s door (internal, route-less).',
|
|
328
328
|
outcome: 'A message leaves when its BUSINESS_RECORDS period, counted from the end of its calendar year, has passed, or with its organization.',
|
|
329
|
-
responseStatuses: [{ code: HttpResponseStatusCode.
|
|
329
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],
|
|
330
330
|
idempotent: true,
|
|
331
331
|
},
|
|
332
332
|
[Op.DELETE_MANY]: {
|
|
333
333
|
purpose: 'Bulk twin of DELETE for the retention sweep (internal, route-less).',
|
|
334
334
|
outcome: 'Messages whose statutory period has ended are removed together.',
|
|
335
|
-
responseStatuses: [{ code: HttpResponseStatusCode.
|
|
335
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],
|
|
336
336
|
idempotent: true,
|
|
337
337
|
},
|
|
338
338
|
},
|
|
@@ -365,7 +365,7 @@ export const conversationReplyTokensResourceSpecification = resourceSpecificatio
|
|
|
365
365
|
organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization that issued the address.', whyItMatters: 'A token resolves only inside this organization.', importance: FieldSemanticImportance.PRIMARY }),
|
|
366
366
|
threadId: schemaShape.threadId.foreignKeySpec({ meaning: 'The thread the address binds replies to.', importance: FieldSemanticImportance.PRIMARY }),
|
|
367
367
|
recipientAddress: schemaShape.recipientAddress.stringSpec({ meaning: 'The address the reply address was issued to.', whyItMatters: 'A reply from any other address is downgraded, and audited. Masked on erasure.' }),
|
|
368
|
-
recipientMemberUserId: schemaShape.recipientMemberUserId.foreignKeySpec({ meaning: 'When the recipient is a member of the organization, that member.', whyItMatters: 'Re-checked when the token is used: once they stop being a member, the token binds nothing.' }),
|
|
368
|
+
recipientMemberUserId: schemaShape.recipientMemberUserId.foreignKeySpec({ meaning: 'When the recipient is a member of the organization, that member.', whyItMatters: 'Re-checked when the token is used: once they stop being a member, the token binds nothing. When that member is erased, the token is revoked, this is cleared and the address is masked.' }),
|
|
369
369
|
tokenHash: schemaShape.tokenHash.stringSpec({ meaning: 'SHA-256 of the secret, hex.', whyItMatters: 'The only stored form of the secret; backend-only and never returned.', semanticRole: 'code' }),
|
|
370
370
|
issuedAt: schemaShape.issuedAt.dateSpec({ meaning: 'When the address was issued.', temporalRole: 'occurred' }),
|
|
371
371
|
revokedAt: schemaShape.revokedAt.dateSpec({ meaning: 'When the address stopped binding.', temporalRole: 'occurred' }),
|
|
@@ -418,13 +418,13 @@ export const conversationReplyTokensResourceSpecification = resourceSpecificatio
|
|
|
418
418
|
[Op.DELETE]: {
|
|
419
419
|
purpose: 'Remove a token with its thread (internal, route-less).',
|
|
420
420
|
outcome: 'Tokens never outlive their thread.',
|
|
421
|
-
responseStatuses: [{ code: HttpResponseStatusCode.
|
|
421
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],
|
|
422
422
|
idempotent: true,
|
|
423
423
|
},
|
|
424
424
|
[Op.DELETE_MANY]: {
|
|
425
425
|
purpose: 'Bulk twin of DELETE, for a thread\'s cascade (internal, route-less).',
|
|
426
426
|
outcome: 'A deleted thread takes every token issued on it.',
|
|
427
|
-
responseStatuses: [{ code: HttpResponseStatusCode.
|
|
427
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],
|
|
428
428
|
idempotent: true,
|
|
429
429
|
},
|
|
430
430
|
},
|
package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-threads.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/conversation-threads.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,8BAA8B,EAC9B,qBAAqB,IAAI,EAAE,EAC3B,kBAAkB,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,+DAA+D,EAC/D,kEAAkE,EAClE,8DAA8D,GAC/D,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,uBAAuB,GAAG,gCAAgC,CAAC;AACjE,MAAM,iBAAiB,GAAG,0BAA0B,CAAC;AAC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— Wildo SaaS engine\n * specifications (organization-scoped, engine-written). #1630.\n *\n * Inputs:\n * - Schemas: `ConversationThreadSchema`, `ConversationMessageSchema`, `ConversationReplyTokenSchema`\n * (`inbound/conversation-threads.shared.schemas.ts`)\n * - Factories: `conversation{Threads,Messages,ReplyTokens}ResourceConfiguration_InitializationFactory`\n * (`inbound/conversation-threads.shared.resources-config.schemas.ts`)\n * - Custom operation: `ConversationThreads_Operations.CLOSE`, implemented by\n * `conversation-thread-close.custom-impl.backend.service.ts` (saas-backend-lib).\n * - Writers: the channel intake opens threads and records received messages, `ctx.reply` records replies\n * and the reply worker settles them, the reply-token service issues and revokes tokens.\n *\n * Why `ORGANIZATIONS` scope: a thread is the organization's own correspondence about its own cases. The\n * registry relationships ORGANIZATIONS → each resource carry `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 ConversationMessageDirection,\n ConversationMessageSchema,\n ConversationOutboundStatus,\n ConversationReplyTokenSchema,\n ConversationThreadSchema,\n ConversationThreadStatus,\n ConversationThreads_Operations,\n CoreResourceOperation as Op,\n InboundChannelKind,\n ReplyTokenRevocationReason,\n ResourcePrimaryScope,\n conversationMessagesResourceConfiguration_InitializationFactory,\n conversationReplyTokensResourceConfiguration_InitializationFactory,\n conversationThreadsResourceConfiguration_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_THREAD_ID = '66f6a1c2e3d4b5a697887766';\nconst EXAMPLE_MESSAGE_ID = '66f6a1c2e3d4b5a697887767';\nconst EXAMPLE_REPLY_ID = '66f6a1c2e3d4b5a697887768';\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.' };\n\nconst ENGINE_ONLY_NOTE = 'CREATE and UPDATE are REPOSITORY_ONLY and UPDATE_MANY / DELETE / DELETE_MANY are INTERNAL_CALL: the engine is the only writer, so no request can invent a message, backdate a closure or delete correspondence.';\n\n// ── conversationThreads ─────────────────────────────────────────────────────\n\nconst openThreadExample = {\n _id: EXAMPLE_THREAD_ID,\n organizationId: EXAMPLE_ORGANIZATION_ID,\n channel: InboundChannelKind.EMAIL,\n threadKey: '<CAF7x2kLq9@mail.client.example>',\n counterpartAddress: 'anna@client.example',\n subject: 'Matter 2026-17 — signed engagement letter',\n linkedResource: { resourceType: 'matters', resourceId: '66f6a1c2e3d4b5a697880001' },\n status: ConversationThreadStatus.OPEN,\n lastMessageAt: '2026-09-27T09:12:00.000Z',\n closedAt: null,\n createdAt: '2026-09-27T09:10:00.000Z',\n updatedAt: '2026-09-27T09:12:00.000Z',\n};\n\nconst closedThreadExample = { ...openThreadExample, status: ConversationThreadStatus.CLOSED, closedAt: '2026-10-02T16:00:00.000Z', updatedAt: '2026-10-02T16:00:00.000Z' };\n\nexport const conversationThreadsResourceSpecification = resourceSpecification(\n conversationThreadsResourceConfiguration_InitializationFactory,\n ConversationThreadSchema,\n ({ schemaShape }) => ({\n purpose: 'Group the messages exchanged with one counterpart on one channel into a conversation the organization can follow, link to its own work and close.',\n businessRole: 'What makes inbound correspondence traceable: every message received and every reply sent lands in a thread, so the organization can see what a client sent about a case and what it answered.',\n lifecycleRole: 'Opened OPEN by the channel intake when a message starts a new exchange; moved forward by every message in either direction; CLOSED by an organization administrator, which revokes the thread\\'s reply addresses. Deleted by the retention sweep once the application\\'s RESOURCE_DATA period has passed since it closed; an open thread never expires.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ConversationThreadSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'conversationThreadsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'CONVERSATION_THREADS' },\n operationVocabulary: operationVocabulary('ConversationThreads_Operations'),\n notes: [\n ENGINE_ONLY_NOTE,\n 'A thread is correlation, not the record: its messages are the business letters and carry their own statutory retention. Deleting a thread takes its reply tokens (COMPOSITION) but never its messages (REFERENCE).',\n '`linkedResource` is set only through the channel handler\\'s `ctx.thread.link`, and only to a row that handler can READ with its own declared roles — never by a message.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one conversation.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization whose correspondence this is.', whyItMatters: 'The scope anchor: a thread, its messages and its reply addresses never reach another organization.', importance: FieldSemanticImportance.PRIMARY }),\n channel: schemaShape.channel.enumSpec({\n meaning: 'The channel the conversation happens on.',\n enumDeclaration: enumDeclaration('InboundChannelKind'),\n values: {\n [InboundChannelKind.EMAIL]: { meaning: 'Email: messages received for the application\\'s addresses and replies sent from them.' },\n [InboundChannelKind.WEBHOOK]: { meaning: 'Not used for threads: a signed webhook delivery is not a conversation.' },\n },\n }),\n threadKey: schemaShape.threadKey.stringSpec({ meaning: 'The channel\\'s own identity of the exchange — for email, the Message-ID of the message that started it.', whyItMatters: 'Unique per organization and channel, so two messages of one exchange can never open two threads.', semanticRole: 'code' }),\n counterpartAddress: schemaShape.counterpartAddress.stringSpec({ meaning: 'The address of the party the organization is corresponding with.', whyItMatters: 'Header correlation only admits a reply from this party\\'s domain, and a change of counterpart revokes the previous one\\'s reply addresses. Masked on erasure.', importance: FieldSemanticImportance.PRIMARY }),\n subject: schemaShape.subject.stringSpec({ meaning: 'The subject of the exchange, as the first message stated it.', importance: FieldSemanticImportance.PRIMARY }),\n linkedResource: schemaShape.linkedResource.objectSpec({ meaning: 'The case, matter or other record of the organization this conversation is about, when the handler linked one.', whyItMatters: 'What lets the organization read the correspondence from the record it concerns.' }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the exchange is still open.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('ConversationThreadStatus'),\n values: {\n [ConversationThreadStatus.OPEN]: { meaning: 'Messages still join the thread and its reply addresses still bind.' },\n [ConversationThreadStatus.CLOSED]: { meaning: 'Closed by an administrator: its reply addresses are revoked and its retention period runs.' },\n },\n }),\n lastMessageAt: schemaShape.lastMessageAt.dateSpec({ meaning: 'When the latest message, in either direction, was recorded.', temporalRole: 'occurred' }),\n closedAt: schemaShape.closedAt.dateSpec({ meaning: 'When the thread was closed.', whyItMatters: 'The start of the thread\\'s RESOURCE_DATA retention period. Absent while open, so an open thread never expires.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the thread was opened.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the thread last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one conversation of your organization.',\n outcome: 'The thread, with its counterpart, subject, linked record and status.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The thread is returned.' }],\n errorScenarios: [MEMBER_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No thread with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read an open email thread', request: { organizationId: EXAMPLE_ORGANIZATION_ID, conversationThreadId: EXAMPLE_THREAD_ID }, response: openThreadExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List the organization\\'s conversations — typically those linked to one record, by filtering on `linkedResource.resourceType` and `linkedResource.resourceId`.',\n outcome: 'A page of threads, newest first; sorting by `lastMessageAt` puts the most recently active first.',\n whenToUse: 'A record\\'s page shows its conversations with `EmbedLinkedConversations`, which pins both linked-resource filters to that record.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of threads.' }],\n errorScenarios: [MEMBER_FORBIDDEN],\n idempotent: true,\n examples: [{\n title: 'List the conversations linked to one matter',\n request: { organizationId: EXAMPLE_ORGANIZATION_ID, 'linkedResource.resourceType': 'matters', 'linkedResource.resourceId': '66f6a1c2e3d4b5a697880001', sort: 'lastMessageAt:desc' },\n response: page([openThreadExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Open a thread. Written only by the channel intake, when a message starts a new exchange.',\n outcome: 'The exchange has a thread its messages join.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The thread was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A thread with the same key already exists for the organization and channel.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Advance a thread (latest message, linked record, counterpart). Written only by the engine.',\n outcome: 'The thread reflects its latest message.',\n whenToUse: 'Repository-only: never an HTTP surface — administrators act through CLOSE.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The thread was updated. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No thread with this id exists.' }],\n idempotent: false,\n },\n [Op.UPDATE_MANY]: {\n purpose: 'The erasure writer\\'s door: masks counterpart addresses and subjects in bulk. Internal, route-less.',\n outcome: 'A data subject\\'s address and words leave the threads while the structure 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: an internal, route-less call. Takes the thread\\'s reply tokens with it, never its messages.',\n outcome: 'A thread leaves only when its RESOURCE_DATA period since closure has passed, or with its organization.',\n responseStatuses: [{ code: HttpResponseStatusCode.NO_CONTENT_204, 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: 'Closed threads whose period has ended are removed together with their reply tokens.',\n responseStatuses: [{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'Internal retention delete completed.' }],\n idempotent: true,\n },\n [ConversationThreads_Operations.CLOSE]: {\n operationId: ConversationThreads_Operations.CLOSE,\n purpose: 'Close a conversation: end the exchange and revoke every reply address issued on it.',\n outcome: 'The thread is CLOSED with `closedAt` set, its live reply tokens are revoked (a reply to it no longer binds to the thread), and its retention period starts. The revocation is written to the audit trail.',\n whenToUse: 'The case the conversation was about is finished, or its reply address may have leaked.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The thread is closed; the updated thread is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No thread with this id exists in the organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The thread is already closed.' },\n ],\n idempotent: false,\n examples: [{ title: 'Close a finished matter\\'s thread', request: { organizationId: EXAMPLE_ORGANIZATION_ID, conversationThreadId: EXAMPLE_THREAD_ID }, response: closedThreadExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n },\n businessConstraints: [\n 'A thread holds one counterpart on one channel; a new exchange is a new thread.',\n 'What a message causes is decided by the channel handler with its own declared roles. How well the sender is known decides only whether the handler runs, never what it may do.',\n 'Closing revokes every reply address of the thread, and a closed thread is never joined again: a later message opens a new thread.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── conversationMessages ────────────────────────────────────────────────────\n\nconst inboundMessageExample = {\n _id: EXAMPLE_MESSAGE_ID,\n organizationId: EXAMPLE_ORGANIZATION_ID,\n threadId: EXAMPLE_THREAD_ID,\n direction: ConversationMessageDirection.INBOUND,\n rfcMessageId: '<CAF7x2kLq9@mail.client.example>',\n fromAddress: 'anna@client.example',\n toAddresses: ['matters@firm.example'],\n subject: 'Matter 2026-17 — signed engagement letter',\n textPreview: 'Please find the signed engagement letter attached.',\n occurredAt: '2026-09-27T09:10:00.000Z',\n inboundDeliveryId: '5f1c2e9b8a7d6c5b4a392817',\n channelRecordRef: { resourceType: 'inboundEmails', resourceId: '66f6a1c2e3d4b5a697889900' },\n outboundStatus: null,\n templateRef: null,\n templateVariables: null,\n locale: null,\n replyToAddress: null,\n threading: null,\n providerMessageIds: [],\n failureCode: null,\n settledAt: null,\n createdAt: '2026-09-27T09:10:00.000Z',\n updatedAt: '2026-09-27T09:10:00.000Z',\n};\n\nconst replyMessageExample = {\n ...inboundMessageExample,\n _id: EXAMPLE_REPLY_ID,\n direction: ConversationMessageDirection.OUTBOUND,\n rfcMessageId: '<3b1f9a2c7d6e5f40a1b2c3d4e5f60718@firm.example>',\n fromAddress: 'matters@firm.example',\n toAddresses: ['anna@client.example'],\n subject: 'Re: Matter 2026-17 — signed engagement letter',\n textPreview: '',\n occurredAt: '2026-09-27T09:12:00.000Z',\n inboundDeliveryId: '5f1c2e9b8a7d6c5b4a392817',\n channelRecordRef: null,\n outboundStatus: ConversationOutboundStatus.ACCEPTED_BY_PROVIDER,\n templateRef: 'matters.document-received',\n locale: 'en',\n replyToAddress: null,\n threading: { inReplyTo: '<CAF7x2kLq9@mail.client.example>', references: ['<CAF7x2kLq9@mail.client.example>'] },\n providerMessageIds: ['re_7mX2p9Lk'],\n settledAt: '2026-09-27T09:12:03.000Z',\n updatedAt: '2026-09-27T09:12:03.000Z',\n};\n\nexport const conversationMessagesResourceSpecification = resourceSpecification(\n conversationMessagesResourceConfiguration_InitializationFactory,\n ConversationMessageSchema,\n ({ schemaShape }) => ({\n purpose: 'Keep every message received on a channel and every reply the application sent, in its thread, as the organization\\'s correspondence.',\n businessRole: 'The business letters themselves: what a client sent and what the organization answered. Commercial and tax law require them kept, so they outlive the thread that grouped them.',\n lifecycleRole: 'An inbound message is recorded when the channel intake admits it; a reply is recorded QUEUED when a handler answers and settled ACCEPTED_BY_PROVIDER or FAILED by the reply worker. Deleted by the retention sweep once the application\\'s BUSINESS_RECORDS period, counted from the end of the calendar year of the message, has passed; an erasure inside that period restricts the message instead of scrubbing it.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ConversationMessageSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'conversationMessagesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'CONVERSATION_MESSAGES' },\n operationVocabulary: operationVocabulary(),\n notes: [\n ENGINE_ONLY_NOTE,\n 'The message row carries a preview, never the body or the attachments: those stay in the channel\\'s own record (`channelRecordRef`), which the erasure of the channel record governs.',\n '`submissionId` makes a reply idempotent: a handler that runs twice for one delivery queues one reply, and the provider receives one send.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one message. For an inbound message it is the id of the delivery that carried it.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization whose correspondence this is.', importance: FieldSemanticImportance.PRIMARY }),\n threadId: schemaShape.threadId.foreignKeySpec({ meaning: 'The thread the message belongs to.', whyItMatters: 'A plain reference, not ownership: the message outlives its thread for its statutory period.', importance: FieldSemanticImportance.PRIMARY }),\n direction: schemaShape.direction.enumSpec({\n meaning: 'Whether the message was received or sent.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('ConversationMessageDirection'),\n values: {\n [ConversationMessageDirection.INBOUND]: { meaning: 'Received on the channel and admitted by the intake.' },\n [ConversationMessageDirection.OUTBOUND]: { meaning: 'A reply the application sent through a handler\\'s `ctx.reply`.' },\n },\n }),\n rfcMessageId: schemaShape.rfcMessageId.stringSpec({ meaning: 'The message\\'s Message-ID: the sender\\'s for a received message, the application\\'s own for a reply.', whyItMatters: 'What later messages cite in In-Reply-To and References to join this thread.', semanticRole: 'code' }),\n fromAddress: schemaShape.fromAddress.stringSpec({ meaning: 'Who sent the message.', whyItMatters: 'Masked on erasure.' }),\n toAddresses: schemaShape.toAddresses.arraySpec({ meaning: 'Who the message was addressed to.', elementMeaning: 'One recipient address.', whyItMatters: 'Emptied on erasure.' }),\n subject: schemaShape.subject.stringSpec({ meaning: 'The subject line.', importance: FieldSemanticImportance.PRIMARY }),\n textPreview: schemaShape.textPreview.stringSpec({ meaning: 'The first 500 characters of the text, for the thread view. Empty for a reply, whose words live in its template.', whyItMatters: 'Masked on erasure.' }),\n occurredAt: schemaShape.occurredAt.dateSpec({ meaning: 'When the message was received, or queued to send.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n inboundDeliveryId: schemaShape.inboundDeliveryId.stringSpec({ meaning: 'The inbound delivery that carried a received message, or that the reply answers.', semanticRole: 'identifier' }),\n channelRecordRef: schemaShape.channelRecordRef.objectSpec({ meaning: 'Where the channel\\'s full record of a received message lives (for email, the stored message with its body and attachments).' }),\n submissionId: schemaShape.submissionId.stringSpec({ meaning: 'For a reply: the idempotency key derived from the delivery answered and the template chosen.', whyItMatters: 'Unique, so one delivery queues one reply per template however often its handler runs.', semanticRole: 'code' }),\n outboundStatus: schemaShape.outboundStatus.enumSpec({\n meaning: 'For a reply: whether it has left the application.',\n enumDeclaration: enumDeclaration('ConversationOutboundStatus'),\n values: {\n [ConversationOutboundStatus.QUEUED]: { meaning: 'Recorded and waiting for the reply worker.' },\n [ConversationOutboundStatus.ACCEPTED_BY_PROVIDER]: { meaning: 'The email provider accepted it for delivery. Delivery to the inbox is the provider\\'s to report.' },\n [ConversationOutboundStatus.FAILED]: { meaning: 'Refused by the provider, or out of retries. `failureCode` says why.' },\n },\n }),\n templateRef: schemaShape.templateRef.stringSpec({ meaning: 'For a reply: the email template the handler chose.', semanticRole: 'code' }),\n templateVariables: schemaShape.templateVariables.objectSpec({ meaning: 'For a reply: the values the template was rendered with.', whyItMatters: 'Reset on erasure: they may name the data subject.' }),\n locale: schemaShape.locale.stringSpec({ meaning: 'For a reply: the language the template was rendered in.', semanticRole: 'code' }),\n replyToAddress: schemaShape.replyToAddress.stringSpec({ meaning: 'For a reply still QUEUED: the reply address its send composed, which binds an answer to this thread and recipient.', whyItMatters: 'It carries the reply token in plaintext, so it is backend-only and cleared when the reply settles — kept only so a retried send carries the same address.' }),\n threading: schemaShape.threading.objectSpec({ meaning: 'For a reply: the In-Reply-To and References it was sent with, so the recipient\\'s mail client files it in the same conversation.' }),\n providerMessageIds: schemaShape.providerMessageIds.arraySpec({ meaning: 'For a reply: the ids the email provider returned.', elementMeaning: 'One provider message id.' }),\n failureCode: schemaShape.failureCode.stringSpec({ meaning: 'For a failed reply: the classified reason. Never an error message.', semanticRole: 'code' }),\n settledAt: schemaShape.settledAt.dateSpec({ meaning: 'For a reply: when it was accepted or finally failed.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the message was recorded.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the message row last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one message of your organization\\'s correspondence.',\n outcome: 'The message, with its direction, sender, recipients, preview and, for a reply, its delivery state.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The message is returned.' }],\n errorScenarios: [MEMBER_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No message with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a received message', request: { organizationId: EXAMPLE_ORGANIZATION_ID, conversationMessageId: EXAMPLE_MESSAGE_ID }, response: inboundMessageExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List messages, typically those of one thread (`threadId`), optionally one direction.',\n outcome: 'A page of messages.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of messages.' }],\n errorScenarios: [MEMBER_FORBIDDEN],\n idempotent: true,\n examples: [{ title: 'List a thread\\'s messages', request: { organizationId: EXAMPLE_ORGANIZATION_ID, threadId: EXAMPLE_THREAD_ID, sort: 'occurredAt:asc' }, response: page([inboundMessageExample, replyMessageExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.CREATE]: {\n purpose: 'Record a message. Written only by the channel intake (received) and by `ctx.reply` (sent).',\n outcome: 'The message is part of its thread.',\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 delivery or reply submission is already recorded.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Settle a reply (accepted or failed). Written only by the reply worker.',\n outcome: 'The reply\\'s delivery state is recorded once.',\n whenToUse: 'Repository-only: never an HTTP surface.',\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): scrubs addresses, subjects, previews and template variables once no statutory period restricts it.',\n outcome: 'A data subject\\'s words and addresses leave the correspondence while the record that a message existed 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).',\n outcome: 'A message leaves when its BUSINESS_RECORDS period, counted from the end of its calendar year, has passed, or with its organization.',\n responseStatuses: [{ code: HttpResponseStatusCode.NO_CONTENT_204, 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.NO_CONTENT_204, meaning: 'Internal retention delete completed.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'A reply leaves only through the application\\'s email service, with exactly the Message-ID, In-Reply-To and References headers; a handler cannot set any other header.',\n 'One delivery queues at most one reply per template, however often its handler runs.',\n 'Received and sent messages are business correspondence: an erasure inside their statutory period restricts them instead of deleting them.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── conversationReplyTokens ─────────────────────────────────────────────────\n\nexport const conversationReplyTokensResourceSpecification = resourceSpecification(\n conversationReplyTokensResourceConfiguration_InitializationFactory,\n ConversationReplyTokenSchema,\n ({ schemaShape }) => ({\n purpose: 'Record the reply addresses issued on a thread, by the hash of their secret, so an answer to one binds to its thread and to the recipient it was issued to.',\n businessRole: 'The strongest proof of who is replying that email offers: a reply address is a bearer secret issued to one recipient on one thread, so a reply to it from that recipient\\'s aligned domain is THREAD_TOKEN_BOUND.',\n lifecycleRole: 'Issued when a reply is sent to a recipient; a new issue to the same recipient on the same thread rotates the previous one. Revoked when the thread closes, when its counterpart changes, and — detected when it is next used — when a member recipient stops being a member. Deleted with its thread.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ConversationReplyTokenSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'conversationReplyTokensResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'CONVERSATION_REPLY_TOKENS' },\n operationVocabulary: operationVocabulary(),\n notes: [\n 'No HTTP surface at all: READ and LIST are INTERNAL_CALL. A reply address is a bearer secret, and which ones exist is nobody\\'s business but the engine\\'s.',\n 'The token is 128 bits from a CSPRNG and only its SHA-256 is stored; the plaintext exists only in the address the reply carried.',\n 'A token of another organization, presented at this organization\\'s address, makes the message UNROUTABLE rather than merely unbound.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one issued reply address, derived from its hash.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization that issued the address.', whyItMatters: 'A token resolves only inside this organization.', importance: FieldSemanticImportance.PRIMARY }),\n threadId: schemaShape.threadId.foreignKeySpec({ meaning: 'The thread the address binds replies to.', importance: FieldSemanticImportance.PRIMARY }),\n recipientAddress: schemaShape.recipientAddress.stringSpec({ meaning: 'The address the reply address was issued to.', whyItMatters: 'A reply from any other address is downgraded, and audited. Masked on erasure.' }),\n recipientMemberUserId: schemaShape.recipientMemberUserId.foreignKeySpec({ meaning: 'When the recipient is a member of the organization, that member.', whyItMatters: 'Re-checked when the token is used: once they stop being a member, the token binds nothing.' }),\n tokenHash: schemaShape.tokenHash.stringSpec({ meaning: 'SHA-256 of the secret, hex.', whyItMatters: 'The only stored form of the secret; backend-only and never returned.', semanticRole: 'code' }),\n issuedAt: schemaShape.issuedAt.dateSpec({ meaning: 'When the address was issued.', temporalRole: 'occurred' }),\n revokedAt: schemaShape.revokedAt.dateSpec({ meaning: 'When the address stopped binding.', temporalRole: 'occurred' }),\n revocationReason: schemaShape.revocationReason.enumSpec({\n meaning: 'Why the address stopped binding.',\n enumDeclaration: enumDeclaration('ReplyTokenRevocationReason'),\n values: {\n [ReplyTokenRevocationReason.THREAD_CLOSED]: { meaning: 'Its thread was closed.' },\n [ReplyTokenRevocationReason.COUNTERPART_CHANGED]: { meaning: 'The thread\\'s counterpart changed, so the previous counterpart\\'s addresses were revoked.' },\n [ReplyTokenRevocationReason.MEMBER_REMOVED]: { meaning: 'Its member recipient is no longer an active member.' },\n [ReplyTokenRevocationReason.ROTATED]: { meaning: 'A newer address was issued to the same recipient on the same thread.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the row last changed — its revocation.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Resolve a presented reply address by its hash. Internal, route-less.',\n outcome: 'The token service learns which thread and recipient the address binds, and whether it still does.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal read.' }],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Find the live addresses of a thread or recipient, to rotate or revoke them. Internal, route-less.',\n outcome: 'The token service revokes exactly the addresses it means to.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal read.' }],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Issue a reply address. Written only by the token service.',\n outcome: 'A reply to the address binds to its thread and recipient.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The token was stored. Internal write path.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Revoke a reply address, once, with its reason. Written only by the token service.',\n outcome: 'The address binds nothing from that instant.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The token was revoked. Internal write path.' }],\n idempotent: false,\n },\n [Op.UPDATE_MANY]: {\n purpose: 'The erasure writer\\'s door (internal, route-less): masks recipient addresses.',\n outcome: 'A data subject\\'s address leaves the tokens.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal scrub completed.' }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Remove a token with its thread (internal, route-less).',\n outcome: 'Tokens never outlive their thread.',\n responseStatuses: [{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of DELETE, for a thread\\'s cascade (internal, route-less).',\n outcome: 'A deleted thread takes every token issued on it.',\n responseStatuses: [{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'At most one live address per recipient per thread.',\n 'A token binds only in the organization that issued it, only while it is live, and only for a reply from the recipient\\'s address on an aligned domain.',\n 'The plaintext secret is never stored and never returned.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"conversation-threads.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/conversation-threads.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MA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4BAA4B,EAAE,CAAC;YAClG,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE;YAChB,OAAO,EAAE,sEAAsE;YAC/E,OAAO,EAAE,kDAAkD;YAC3D,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;YAClG,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,oDAAoD;QACpD,wJAAwJ;QACxJ,0DAA0D;KAC3D;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resources: `conversationThreads`, `conversationMessages`, `conversationReplyTokens` — Wildo SaaS engine\n * specifications (organization-scoped, engine-written). #1630.\n *\n * Inputs:\n * - Schemas: `ConversationThreadSchema`, `ConversationMessageSchema`, `ConversationReplyTokenSchema`\n * (`inbound/conversation-threads.shared.schemas.ts`)\n * - Factories: `conversation{Threads,Messages,ReplyTokens}ResourceConfiguration_InitializationFactory`\n * (`inbound/conversation-threads.shared.resources-config.schemas.ts`)\n * - Custom operation: `ConversationThreads_Operations.CLOSE`, implemented by\n * `conversation-thread-close.custom-impl.backend.service.ts` (saas-backend-lib).\n * - Writers: the channel intake opens threads and records received messages, `ctx.reply` records replies\n * and the reply worker settles them, the reply-token service issues and revokes tokens.\n *\n * Why `ORGANIZATIONS` scope: a thread is the organization's own correspondence about its own cases. The\n * registry relationships ORGANIZATIONS → each resource carry `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 ConversationMessageDirection,\n ConversationMessageSchema,\n ConversationOutboundStatus,\n ConversationReplyTokenSchema,\n ConversationThreadSchema,\n ConversationThreadStatus,\n ConversationThreads_Operations,\n CoreResourceOperation as Op,\n InboundChannelKind,\n ReplyTokenRevocationReason,\n ResourcePrimaryScope,\n conversationMessagesResourceConfiguration_InitializationFactory,\n conversationReplyTokensResourceConfiguration_InitializationFactory,\n conversationThreadsResourceConfiguration_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_THREAD_ID = '66f6a1c2e3d4b5a697887766';\nconst EXAMPLE_MESSAGE_ID = '66f6a1c2e3d4b5a697887767';\nconst EXAMPLE_REPLY_ID = '66f6a1c2e3d4b5a697887768';\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.' };\n\nconst ENGINE_ONLY_NOTE = 'CREATE and UPDATE are REPOSITORY_ONLY and UPDATE_MANY / DELETE / DELETE_MANY are INTERNAL_CALL: the engine is the only writer, so no request can invent a message, backdate a closure or delete correspondence.';\n\n// ── conversationThreads ─────────────────────────────────────────────────────\n\nconst openThreadExample = {\n _id: EXAMPLE_THREAD_ID,\n organizationId: EXAMPLE_ORGANIZATION_ID,\n channel: InboundChannelKind.EMAIL,\n threadKey: '<CAF7x2kLq9@mail.client.example>',\n counterpartAddress: 'anna@client.example',\n subject: 'Matter 2026-17 — signed engagement letter',\n linkedResource: { resourceType: 'matters', resourceId: '66f6a1c2e3d4b5a697880001' },\n status: ConversationThreadStatus.OPEN,\n lastMessageAt: '2026-09-27T09:12:00.000Z',\n closedAt: null,\n createdAt: '2026-09-27T09:10:00.000Z',\n updatedAt: '2026-09-27T09:12:00.000Z',\n};\n\nconst closedThreadExample = { ...openThreadExample, status: ConversationThreadStatus.CLOSED, closedAt: '2026-10-02T16:00:00.000Z', updatedAt: '2026-10-02T16:00:00.000Z' };\n\nexport const conversationThreadsResourceSpecification = resourceSpecification(\n conversationThreadsResourceConfiguration_InitializationFactory,\n ConversationThreadSchema,\n ({ schemaShape }) => ({\n purpose: 'Group the messages exchanged with one counterpart on one channel into a conversation the organization can follow, link to its own work and close.',\n businessRole: 'What makes inbound correspondence traceable: every message received and every reply sent lands in a thread, so the organization can see what a client sent about a case and what it answered.',\n lifecycleRole: 'Opened OPEN by the channel intake when a message starts a new exchange; moved forward by every message in either direction; CLOSED by an organization administrator, which revokes the thread\\'s reply addresses. Deleted by the retention sweep once the application\\'s RESOURCE_DATA period has passed since it closed; an open thread never expires.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ConversationThreadSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'conversationThreadsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'CONVERSATION_THREADS' },\n operationVocabulary: operationVocabulary('ConversationThreads_Operations'),\n notes: [\n ENGINE_ONLY_NOTE,\n 'A thread is correlation, not the record: its messages are the business letters and carry their own statutory retention. Deleting a thread takes its reply tokens (COMPOSITION) but never its messages (REFERENCE).',\n '`linkedResource` is set only through the channel handler\\'s `ctx.thread.link`, and only to a row that handler can READ with its own declared roles — never by a message.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one conversation.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization whose correspondence this is.', whyItMatters: 'The scope anchor: a thread, its messages and its reply addresses never reach another organization.', importance: FieldSemanticImportance.PRIMARY }),\n channel: schemaShape.channel.enumSpec({\n meaning: 'The channel the conversation happens on.',\n enumDeclaration: enumDeclaration('InboundChannelKind'),\n values: {\n [InboundChannelKind.EMAIL]: { meaning: 'Email: messages received for the application\\'s addresses and replies sent from them.' },\n [InboundChannelKind.WEBHOOK]: { meaning: 'Not used for threads: a signed webhook delivery is not a conversation.' },\n },\n }),\n threadKey: schemaShape.threadKey.stringSpec({ meaning: 'The channel\\'s own identity of the exchange — for email, the Message-ID of the message that started it.', whyItMatters: 'Unique per organization and channel, so two messages of one exchange can never open two threads.', semanticRole: 'code' }),\n counterpartAddress: schemaShape.counterpartAddress.stringSpec({ meaning: 'The address of the party the organization is corresponding with.', whyItMatters: 'Header correlation only admits a reply from this party\\'s domain, and a change of counterpart revokes the previous one\\'s reply addresses. Masked on erasure.', importance: FieldSemanticImportance.PRIMARY }),\n subject: schemaShape.subject.stringSpec({ meaning: 'The subject of the exchange, as the first message stated it.', importance: FieldSemanticImportance.PRIMARY }),\n linkedResource: schemaShape.linkedResource.objectSpec({ meaning: 'The case, matter or other record of the organization this conversation is about, when the handler linked one.', whyItMatters: 'What lets the organization read the correspondence from the record it concerns.' }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the exchange is still open.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('ConversationThreadStatus'),\n values: {\n [ConversationThreadStatus.OPEN]: { meaning: 'Messages still join the thread and its reply addresses still bind.' },\n [ConversationThreadStatus.CLOSED]: { meaning: 'Closed by an administrator: its reply addresses are revoked and its retention period runs.' },\n },\n }),\n lastMessageAt: schemaShape.lastMessageAt.dateSpec({ meaning: 'When the latest message, in either direction, was recorded.', temporalRole: 'occurred' }),\n closedAt: schemaShape.closedAt.dateSpec({ meaning: 'When the thread was closed.', whyItMatters: 'The start of the thread\\'s RESOURCE_DATA retention period. Absent while open, so an open thread never expires.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the thread was opened.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the thread last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one conversation of your organization.',\n outcome: 'The thread, with its counterpart, subject, linked record and status.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The thread is returned.' }],\n errorScenarios: [MEMBER_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No thread with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read an open email thread', request: { organizationId: EXAMPLE_ORGANIZATION_ID, conversationThreadId: EXAMPLE_THREAD_ID }, response: openThreadExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List the organization\\'s conversations — typically those linked to one record, by filtering on `linkedResource.resourceType` and `linkedResource.resourceId`.',\n outcome: 'A page of threads, newest first; sorting by `lastMessageAt` puts the most recently active first.',\n whenToUse: 'A record\\'s page shows its conversations with `EmbedLinkedConversations`, which pins both linked-resource filters to that record.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of threads.' }],\n errorScenarios: [MEMBER_FORBIDDEN],\n idempotent: true,\n examples: [{\n title: 'List the conversations linked to one matter',\n request: { organizationId: EXAMPLE_ORGANIZATION_ID, 'linkedResource.resourceType': 'matters', 'linkedResource.resourceId': '66f6a1c2e3d4b5a697880001', sort: 'lastMessageAt:desc' },\n response: page([openThreadExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Open a thread. Written only by the channel intake, when a message starts a new exchange.',\n outcome: 'The exchange has a thread its messages join.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The thread was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A thread with the same key already exists for the organization and channel.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Advance a thread (latest message, linked record, counterpart). Written only by the engine.',\n outcome: 'The thread reflects its latest message.',\n whenToUse: 'Repository-only: never an HTTP surface — administrators act through CLOSE.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The thread was updated. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No thread with this id exists.' }],\n idempotent: false,\n },\n [Op.UPDATE_MANY]: {\n purpose: 'The erasure writer\\'s door: masks counterpart addresses and subjects in bulk. Internal, route-less.',\n outcome: 'A data subject\\'s address and words leave the threads while the structure 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: an internal, route-less call. Takes the thread\\'s reply tokens with it, never its messages.',\n outcome: 'A thread leaves only when its RESOURCE_DATA period since closure has passed, or with its organization.',\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: 'Closed threads whose period has ended are removed together with their reply tokens.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],\n idempotent: true,\n },\n [ConversationThreads_Operations.CLOSE]: {\n operationId: ConversationThreads_Operations.CLOSE,\n purpose: 'Close a conversation: end the exchange and revoke every reply address issued on it.',\n outcome: 'The thread is CLOSED with `closedAt` set, its live reply tokens are revoked (a reply to it no longer binds to the thread), and its retention period starts. The revocation is written to the audit trail.',\n whenToUse: 'The case the conversation was about is finished, or its reply address may have leaked.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The thread is closed; the updated thread is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No thread with this id exists in the organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The thread is already closed.' },\n ],\n idempotent: false,\n examples: [{ title: 'Close a finished matter\\'s thread', request: { organizationId: EXAMPLE_ORGANIZATION_ID, conversationThreadId: EXAMPLE_THREAD_ID }, response: closedThreadExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n },\n businessConstraints: [\n 'A thread holds one counterpart on one channel; a new exchange is a new thread.',\n 'What a message causes is decided by the channel handler with its own declared roles. How well the sender is known decides only whether the handler runs, never what it may do.',\n 'Closing revokes every reply address of the thread, and a closed thread is never joined again: a later message opens a new thread.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── conversationMessages ────────────────────────────────────────────────────\n\nconst inboundMessageExample = {\n _id: EXAMPLE_MESSAGE_ID,\n organizationId: EXAMPLE_ORGANIZATION_ID,\n threadId: EXAMPLE_THREAD_ID,\n direction: ConversationMessageDirection.INBOUND,\n rfcMessageId: '<CAF7x2kLq9@mail.client.example>',\n fromAddress: 'anna@client.example',\n toAddresses: ['matters@firm.example'],\n subject: 'Matter 2026-17 — signed engagement letter',\n textPreview: 'Please find the signed engagement letter attached.',\n occurredAt: '2026-09-27T09:10:00.000Z',\n inboundDeliveryId: '5f1c2e9b8a7d6c5b4a392817',\n channelRecordRef: { resourceType: 'inboundEmails', resourceId: '66f6a1c2e3d4b5a697889900' },\n outboundStatus: null,\n templateRef: null,\n templateVariables: null,\n locale: null,\n replyToAddress: null,\n threading: null,\n providerMessageIds: [],\n failureCode: null,\n settledAt: null,\n createdAt: '2026-09-27T09:10:00.000Z',\n updatedAt: '2026-09-27T09:10:00.000Z',\n};\n\nconst replyMessageExample = {\n ...inboundMessageExample,\n _id: EXAMPLE_REPLY_ID,\n direction: ConversationMessageDirection.OUTBOUND,\n rfcMessageId: '<3b1f9a2c7d6e5f40a1b2c3d4e5f60718@firm.example>',\n fromAddress: 'matters@firm.example',\n toAddresses: ['anna@client.example'],\n subject: 'Re: Matter 2026-17 — signed engagement letter',\n textPreview: '',\n occurredAt: '2026-09-27T09:12:00.000Z',\n inboundDeliveryId: '5f1c2e9b8a7d6c5b4a392817',\n channelRecordRef: null,\n outboundStatus: ConversationOutboundStatus.ACCEPTED_BY_PROVIDER,\n templateRef: 'matters.document-received',\n locale: 'en',\n replyToAddress: null,\n threading: { inReplyTo: '<CAF7x2kLq9@mail.client.example>', references: ['<CAF7x2kLq9@mail.client.example>'] },\n providerMessageIds: ['re_7mX2p9Lk'],\n settledAt: '2026-09-27T09:12:03.000Z',\n updatedAt: '2026-09-27T09:12:03.000Z',\n};\n\nexport const conversationMessagesResourceSpecification = resourceSpecification(\n conversationMessagesResourceConfiguration_InitializationFactory,\n ConversationMessageSchema,\n ({ schemaShape }) => ({\n purpose: 'Keep every message received on a channel and every reply the application sent, in its thread, as the organization\\'s correspondence.',\n businessRole: 'The business letters themselves: what a client sent and what the organization answered. Commercial and tax law require them kept, so they outlive the thread that grouped them.',\n lifecycleRole: 'An inbound message is recorded when the channel intake admits it; a reply is recorded QUEUED when a handler answers and settled ACCEPTED_BY_PROVIDER or FAILED by the reply worker. Deleted by the retention sweep once the application\\'s BUSINESS_RECORDS period, counted from the end of the calendar year of the message, has passed; an erasure inside that period restricts the message instead of scrubbing it.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ConversationMessageSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'conversationMessagesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'CONVERSATION_MESSAGES' },\n operationVocabulary: operationVocabulary(),\n notes: [\n ENGINE_ONLY_NOTE,\n 'The message row carries a preview, never the body or the attachments: those stay in the channel\\'s own record (`channelRecordRef`), which the erasure of the channel record governs.',\n '`submissionId` makes a reply idempotent: a handler that runs twice for one delivery queues one reply, and the provider receives one send.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one message. For an inbound message it is the id of the delivery that carried it.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization whose correspondence this is.', importance: FieldSemanticImportance.PRIMARY }),\n threadId: schemaShape.threadId.foreignKeySpec({ meaning: 'The thread the message belongs to.', whyItMatters: 'A plain reference, not ownership: the message outlives its thread for its statutory period.', importance: FieldSemanticImportance.PRIMARY }),\n direction: schemaShape.direction.enumSpec({\n meaning: 'Whether the message was received or sent.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('ConversationMessageDirection'),\n values: {\n [ConversationMessageDirection.INBOUND]: { meaning: 'Received on the channel and admitted by the intake.' },\n [ConversationMessageDirection.OUTBOUND]: { meaning: 'A reply the application sent through a handler\\'s `ctx.reply`.' },\n },\n }),\n rfcMessageId: schemaShape.rfcMessageId.stringSpec({ meaning: 'The message\\'s Message-ID: the sender\\'s for a received message, the application\\'s own for a reply.', whyItMatters: 'What later messages cite in In-Reply-To and References to join this thread.', semanticRole: 'code' }),\n fromAddress: schemaShape.fromAddress.stringSpec({ meaning: 'Who sent the message.', whyItMatters: 'Masked on erasure.' }),\n toAddresses: schemaShape.toAddresses.arraySpec({ meaning: 'Who the message was addressed to.', elementMeaning: 'One recipient address.', whyItMatters: 'Emptied on erasure.' }),\n subject: schemaShape.subject.stringSpec({ meaning: 'The subject line.', importance: FieldSemanticImportance.PRIMARY }),\n textPreview: schemaShape.textPreview.stringSpec({ meaning: 'The first 500 characters of the text, for the thread view. Empty for a reply, whose words live in its template.', whyItMatters: 'Masked on erasure.' }),\n occurredAt: schemaShape.occurredAt.dateSpec({ meaning: 'When the message was received, or queued to send.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),\n inboundDeliveryId: schemaShape.inboundDeliveryId.stringSpec({ meaning: 'The inbound delivery that carried a received message, or that the reply answers.', semanticRole: 'identifier' }),\n channelRecordRef: schemaShape.channelRecordRef.objectSpec({ meaning: 'Where the channel\\'s full record of a received message lives (for email, the stored message with its body and attachments).' }),\n submissionId: schemaShape.submissionId.stringSpec({ meaning: 'For a reply: the idempotency key derived from the delivery answered and the template chosen.', whyItMatters: 'Unique, so one delivery queues one reply per template however often its handler runs.', semanticRole: 'code' }),\n outboundStatus: schemaShape.outboundStatus.enumSpec({\n meaning: 'For a reply: whether it has left the application.',\n enumDeclaration: enumDeclaration('ConversationOutboundStatus'),\n values: {\n [ConversationOutboundStatus.QUEUED]: { meaning: 'Recorded and waiting for the reply worker.' },\n [ConversationOutboundStatus.ACCEPTED_BY_PROVIDER]: { meaning: 'The email provider accepted it for delivery. Delivery to the inbox is the provider\\'s to report.' },\n [ConversationOutboundStatus.FAILED]: { meaning: 'Refused by the provider, or out of retries. `failureCode` says why.' },\n },\n }),\n templateRef: schemaShape.templateRef.stringSpec({ meaning: 'For a reply: the email template the handler chose.', semanticRole: 'code' }),\n templateVariables: schemaShape.templateVariables.objectSpec({ meaning: 'For a reply: the values the template was rendered with.', whyItMatters: 'Reset on erasure: they may name the data subject.' }),\n locale: schemaShape.locale.stringSpec({ meaning: 'For a reply: the language the template was rendered in.', semanticRole: 'code' }),\n replyToAddress: schemaShape.replyToAddress.stringSpec({ meaning: 'For a reply still QUEUED: the reply address its send composed, which binds an answer to this thread and recipient.', whyItMatters: 'It carries the reply token in plaintext, so it is backend-only and cleared when the reply settles — kept only so a retried send carries the same address.' }),\n threading: schemaShape.threading.objectSpec({ meaning: 'For a reply: the In-Reply-To and References it was sent with, so the recipient\\'s mail client files it in the same conversation.' }),\n providerMessageIds: schemaShape.providerMessageIds.arraySpec({ meaning: 'For a reply: the ids the email provider returned.', elementMeaning: 'One provider message id.' }),\n failureCode: schemaShape.failureCode.stringSpec({ meaning: 'For a failed reply: the classified reason. Never an error message.', semanticRole: 'code' }),\n settledAt: schemaShape.settledAt.dateSpec({ meaning: 'For a reply: when it was accepted or finally failed.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the message was recorded.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the message row last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one message of your organization\\'s correspondence.',\n outcome: 'The message, with its direction, sender, recipients, preview and, for a reply, its delivery state.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The message is returned.' }],\n errorScenarios: [MEMBER_FORBIDDEN, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No message with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a received message', request: { organizationId: EXAMPLE_ORGANIZATION_ID, conversationMessageId: EXAMPLE_MESSAGE_ID }, response: inboundMessageExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List messages, typically those of one thread (`threadId`), optionally one direction.',\n outcome: 'A page of messages.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of messages.' }],\n errorScenarios: [MEMBER_FORBIDDEN],\n idempotent: true,\n examples: [{ title: 'List a thread\\'s messages', request: { organizationId: EXAMPLE_ORGANIZATION_ID, threadId: EXAMPLE_THREAD_ID, sort: 'occurredAt:asc' }, response: page([inboundMessageExample, replyMessageExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.CREATE]: {\n purpose: 'Record a message. Written only by the channel intake (received) and by `ctx.reply` (sent).',\n outcome: 'The message is part of its thread.',\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 delivery or reply submission is already recorded.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Settle a reply (accepted or failed). Written only by the reply worker.',\n outcome: 'The reply\\'s delivery state is recorded once.',\n whenToUse: 'Repository-only: never an HTTP surface.',\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): scrubs addresses, subjects, previews and template variables once no statutory period restricts it.',\n outcome: 'A data subject\\'s words and addresses leave the correspondence while the record that a message existed 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).',\n outcome: 'A message leaves when its BUSINESS_RECORDS period, counted from the end of its calendar year, has passed, or with its organization.',\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 'A reply leaves only through the application\\'s email service, with exactly the Message-ID, In-Reply-To and References headers; a handler cannot set any other header.',\n 'One delivery queues at most one reply per template, however often its handler runs.',\n 'Received and sent messages are business correspondence: an erasure inside their statutory period restricts them instead of deleting them.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\n// ── conversationReplyTokens ─────────────────────────────────────────────────\n\nexport const conversationReplyTokensResourceSpecification = resourceSpecification(\n conversationReplyTokensResourceConfiguration_InitializationFactory,\n ConversationReplyTokenSchema,\n ({ schemaShape }) => ({\n purpose: 'Record the reply addresses issued on a thread, by the hash of their secret, so an answer to one binds to its thread and to the recipient it was issued to.',\n businessRole: 'The strongest proof of who is replying that email offers: a reply address is a bearer secret issued to one recipient on one thread, so a reply to it from that recipient\\'s aligned domain is THREAD_TOKEN_BOUND.',\n lifecycleRole: 'Issued when a reply is sent to a recipient; a new issue to the same recipient on the same thread rotates the previous one. Revoked when the thread closes, when its counterpart changes, and — detected when it is next used — when a member recipient stops being a member. Deleted with its thread.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ConversationReplyTokenSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'conversationReplyTokensResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'CONVERSATION_REPLY_TOKENS' },\n operationVocabulary: operationVocabulary(),\n notes: [\n 'No HTTP surface at all: READ and LIST are INTERNAL_CALL. A reply address is a bearer secret, and which ones exist is nobody\\'s business but the engine\\'s.',\n 'The token is 128 bits from a CSPRNG and only its SHA-256 is stored; the plaintext exists only in the address the reply carried.',\n 'A token of another organization, presented at this organization\\'s address, makes the message UNROUTABLE rather than merely unbound.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one issued reply address, derived from its hash.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization that issued the address.', whyItMatters: 'A token resolves only inside this organization.', importance: FieldSemanticImportance.PRIMARY }),\n threadId: schemaShape.threadId.foreignKeySpec({ meaning: 'The thread the address binds replies to.', importance: FieldSemanticImportance.PRIMARY }),\n recipientAddress: schemaShape.recipientAddress.stringSpec({ meaning: 'The address the reply address was issued to.', whyItMatters: 'A reply from any other address is downgraded, and audited. Masked on erasure.' }),\n recipientMemberUserId: schemaShape.recipientMemberUserId.foreignKeySpec({ meaning: 'When the recipient is a member of the organization, that member.', whyItMatters: 'Re-checked when the token is used: once they stop being a member, the token binds nothing. When that member is erased, the token is revoked, this is cleared and the address is masked.' }),\n tokenHash: schemaShape.tokenHash.stringSpec({ meaning: 'SHA-256 of the secret, hex.', whyItMatters: 'The only stored form of the secret; backend-only and never returned.', semanticRole: 'code' }),\n issuedAt: schemaShape.issuedAt.dateSpec({ meaning: 'When the address was issued.', temporalRole: 'occurred' }),\n revokedAt: schemaShape.revokedAt.dateSpec({ meaning: 'When the address stopped binding.', temporalRole: 'occurred' }),\n revocationReason: schemaShape.revocationReason.enumSpec({\n meaning: 'Why the address stopped binding.',\n enumDeclaration: enumDeclaration('ReplyTokenRevocationReason'),\n values: {\n [ReplyTokenRevocationReason.THREAD_CLOSED]: { meaning: 'Its thread was closed.' },\n [ReplyTokenRevocationReason.COUNTERPART_CHANGED]: { meaning: 'The thread\\'s counterpart changed, so the previous counterpart\\'s addresses were revoked.' },\n [ReplyTokenRevocationReason.MEMBER_REMOVED]: { meaning: 'Its member recipient is no longer an active member.' },\n [ReplyTokenRevocationReason.ROTATED]: { meaning: 'A newer address was issued to the same recipient on the same thread.' },\n },\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the row was written.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the row last changed — its revocation.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Resolve a presented reply address by its hash. Internal, route-less.',\n outcome: 'The token service learns which thread and recipient the address binds, and whether it still does.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal read.' }],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Find the live addresses of a thread or recipient, to rotate or revoke them. Internal, route-less.',\n outcome: 'The token service revokes exactly the addresses it means to.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal read.' }],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Issue a reply address. Written only by the token service.',\n outcome: 'A reply to the address binds to its thread and recipient.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The token was stored. Internal write path.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Revoke a reply address, once, with its reason. Written only by the token service.',\n outcome: 'The address binds nothing from that instant.',\n whenToUse: 'Repository-only: never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The token was revoked. Internal write path.' }],\n idempotent: false,\n },\n [Op.UPDATE_MANY]: {\n purpose: 'The erasure writer\\'s door (internal, route-less): masks recipient addresses.',\n outcome: 'A data subject\\'s address leaves the tokens.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal scrub completed.' }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Remove a token with its thread (internal, route-less).',\n outcome: 'Tokens never outlive their thread.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of DELETE, for a thread\\'s cascade (internal, route-less).',\n outcome: 'A deleted thread takes every token issued on it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'At most one live address per recipient per thread.',\n 'A token binds only in the organization that issued it, only while it is live, and only for a reply from the recipient\\'s address on an aligned domain.',\n 'The plaintext secret is never stored and never returned.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
|
package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* - Runtime: the inbound receiver writes rows, the dispatch worker drives the status machine, REPLAY is
|
|
12
12
|
* `inbound-delivery-replay.custom-impl.backend.service.ts` (saas-backend-lib).
|
|
13
13
|
*/
|
|
14
|
-
import { CoreResourceOperation as Op, InboundDelivery_Operations, InboundChannelKind, InboundDeliveryStatus, InboundResolvedScopeKind, InboundSenderAssurance, InboundSourceKind } from '@wildo-ai/saas-models';
|
|
14
|
+
import { CoreResourceOperation as Op, InboundDelivery_Operations, InboundDeliveryBodyRedaction, InboundChannelKind, InboundChatInputKind, InboundDeliveryStatus, InboundResolvedScopeKind, InboundSenderAssurance, InboundSourceKind } from '@wildo-ai/saas-models';
|
|
15
15
|
import { type ResourceSpecificationConfig } from '../../../_core';
|
|
16
16
|
type InboundCoreOp = Op.READ | Op.LIST | Op.SEARCH | Op.CREATE | Op.UPDATE | Op.DELETE | Op.DELETE_MANY;
|
|
17
17
|
export declare const organizationInboundDeliveriesResourceSpecification: ResourceSpecificationConfig<typeof InboundDelivery_Operations, InboundCoreOp, import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
@@ -26,6 +26,20 @@ export declare const organizationInboundDeliveriesResourceSpecification: Resourc
|
|
|
26
26
|
receivedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>;
|
|
27
27
|
rawBody: import("zod").ZodString;
|
|
28
28
|
headers: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
29
|
+
chatInput: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof InboundChatInputKind>>>>;
|
|
30
|
+
commandRunStartedAt: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
31
|
+
commandRunResult: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
32
|
+
outcome: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ChatCommandOutcomeKind>>;
|
|
33
|
+
refusal: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ChatCommandRefusalKind>>>>;
|
|
34
|
+
resourceType: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
35
|
+
operationRef: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
36
|
+
recordId: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
37
|
+
resultCount: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
38
|
+
}, import("zod/v4/core").$strict>>>;
|
|
39
|
+
commandRunAuditedAt: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
40
|
+
bodyRedactedAt: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
41
|
+
bodyRedaction: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof InboundDeliveryBodyRedaction>>>>;
|
|
42
|
+
bodyHeldByExecutionId: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
29
43
|
resolvedScope: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
30
44
|
kind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodLiteral<InboundResolvedScopeKind.ORGANIZATION>>;
|
|
31
45
|
organizationId: import("zod").ZodString;
|
|
@@ -49,6 +63,7 @@ export declare const organizationInboundDeliveriesResourceSpecification: Resourc
|
|
|
49
63
|
errorCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
64
|
}, import("zod/v4/core").$strict>>>;
|
|
51
65
|
nextAttemptAt: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>;
|
|
66
|
+
notBefore: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
52
67
|
leaseExpiresAt: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>;
|
|
53
68
|
budgetStartedAt: import("zod").ZodDate;
|
|
54
69
|
budgetBaseAttemptCount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
@@ -73,6 +88,20 @@ export declare const applicationInboundDeliveriesResourceSpecification: Resource
|
|
|
73
88
|
receivedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>;
|
|
74
89
|
rawBody: import("zod").ZodString;
|
|
75
90
|
headers: import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
91
|
+
chatInput: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof InboundChatInputKind>>>>;
|
|
92
|
+
commandRunStartedAt: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
93
|
+
commandRunResult: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
94
|
+
outcome: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ChatCommandOutcomeKind>>;
|
|
95
|
+
refusal: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ChatCommandRefusalKind>>>>;
|
|
96
|
+
resourceType: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
97
|
+
operationRef: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
98
|
+
recordId: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
99
|
+
resultCount: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
100
|
+
}, import("zod/v4/core").$strict>>>;
|
|
101
|
+
commandRunAuditedAt: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
102
|
+
bodyRedactedAt: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
103
|
+
bodyRedaction: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof InboundDeliveryBodyRedaction>>>>;
|
|
104
|
+
bodyHeldByExecutionId: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
76
105
|
resolvedScope: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
77
106
|
kind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodLiteral<InboundResolvedScopeKind.ORGANIZATION>>;
|
|
78
107
|
organizationId: import("zod").ZodString;
|
|
@@ -96,6 +125,7 @@ export declare const applicationInboundDeliveriesResourceSpecification: Resource
|
|
|
96
125
|
errorCode: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
126
|
}, import("zod/v4/core").$strict>>>;
|
|
98
127
|
nextAttemptAt: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>;
|
|
128
|
+
notBefore: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>;
|
|
99
129
|
leaseExpiresAt: import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>;
|
|
100
130
|
budgetStartedAt: import("zod").ZodDate;
|
|
101
131
|
budgetBaseAttemptCount: import("zod").ZodDefault<import("zod").ZodNumber>;
|
package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-deliveries.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/inbound-deliveries.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAE3B,0BAA0B,EAE1B,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAiD,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAqB9H,KAAK,aAAa,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"inbound-deliveries.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/inbound-deliveries.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAE3B,0BAA0B,EAE1B,4BAA4B,EAC5B,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAiD,KAAK,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAqB9H,KAAK,aAAa,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,WAAW,CAAC;AAsSxG,eAAO,MAAM,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAwF,CAAC;AAExJ,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAAuF,CAAC"}
|
package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
15
15
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
|
|
16
|
-
import { CoreResourceOperation as Op, CoreResourceType, InboundDelivery_Operations, InboundDeliveryBaseSchema, InboundChannelKind, InboundDeliveryStatus, InboundResolvedScopeKind, InboundSenderAssurance, InboundSourceKind, ResourcePrimaryScope, inboundDeliveryPolymorphicFactories, } from '@wildo-ai/saas-models';
|
|
16
|
+
import { CoreResourceOperation as Op, CoreResourceType, InboundDelivery_Operations, InboundDeliveryBaseSchema, InboundDeliveryBodyRedaction, InboundChannelKind, InboundChatInputKind, InboundDeliveryStatus, InboundResolvedScopeKind, InboundSenderAssurance, InboundSourceKind, ResourcePrimaryScope, inboundDeliveryPolymorphicFactories, } from '@wildo-ai/saas-models';
|
|
17
17
|
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
18
18
|
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
19
19
|
/** The `CoreResourceType` member name of a variant, read off the enum rather than restated. */
|
|
@@ -112,7 +112,8 @@ function buildInboundDeliveriesSpecification(resourceType) {
|
|
|
112
112
|
'The polymorphism engine injects `organizationId` (ORG variant) or `applicationId` (APP variant). A delivery that resolved to an organization lives in that organization’s variant and is erased with it; application-scope, person-scope and unroutable deliveries live in the application variant, where the application’s operators administer them.',
|
|
113
113
|
'The row id is derived from `(sourceKey, dedupKey)`, so the primary key is the dedup collision on both adapters.',
|
|
114
114
|
'An UNROUTABLE delivery naming an organization that exists but confers no authority (suspended, or marked for deletion) is stored in the APPLICATION variant, because it never ran in that organization. So it does not leave with that organization’s purge; it leaves at the end of its `OPERATIONAL_LOGS` retention period, counted from the moment it was stored.',
|
|
115
|
-
'LIST and SEARCH never return `rawBody`: their per-variant response (`polymorphicCustomResponseDto`) omits it while keeping the scope key. The store still reads the column; only the response drops it. READ returns it, for one delivery an operator chose to open.',
|
|
115
|
+
'LIST and SEARCH never return `rawBody`: their per-variant response (`polymorphicCustomResponseDto`) omits it while keeping the scope key. The store still reads the column; only the response drops it. READ returns it, for one delivery an operator chose to open, except on a delivery carrying what a person wrote to the application’s bot (`chatInput`: a conversation message, or a chat command): a conversation message is read only through its conversation’s transcript, and a command’s text is kept nowhere (a record the command made holds what its operation made of the argument, not what the person wrote), so READ withholds it, and REPLAY answers the replayed row the same way (a dead conversation message keeps its body so it can be re-run, and the operator who re-runs it still does not read it); both responses make `rawBody` optional. The decision reads the row’s own marker, never the live handler registry, so removing a handler cannot open its rows.',
|
|
116
|
+
'A delivery carrying what a person wrote to the bot (a conversation message, or a chat command) keeps its body only while it may still run. When it settles PROCESSED the body is emptied in the same write (`bodyRedactedAt`, `bodyRedaction`), as it is when a conversation turn starts from a message (the transcript then holds it, `bodyHeldByExecutionId`). A command’s body is never held anywhere: it is emptied as not kept. One that reached no organization is stored without its body, since nothing can run, replay or read it. A delivery that dies keeps its body for the replay that is its only remedy, except a chat command: it is emptied as not kept when it dies, because it can no longer run once a command may no longer wait, and the person can type it again.',
|
|
116
117
|
'`resolvedScope` is a union on `InboundResolvedScopeKind`: `{ kind: organization, organizationId }`, `{ kind: application }`, `{ kind: user, userId }` (one person’s own data, for a handler that declares user roles), or `{ kind: unroutable, reason }` (`InboundDeliveryUnroutableReason`). It is never a fallback: a delivery whose handler requires an organization and resolves none, or that resolves to a scope its handler holds no roles in, is unroutable, not application-scoped.',
|
|
117
118
|
],
|
|
118
119
|
},
|
|
@@ -134,7 +135,28 @@ function buildInboundDeliveriesSpecification(resourceType) {
|
|
|
134
135
|
providerDeliveryId: schemaShape.providerDeliveryId.stringSpec({ meaning: 'The id the sender signed, when its scheme carries one.', semanticRole: 'code' }),
|
|
135
136
|
signedAt: schemaShape.signedAt.dateSpec({ meaning: 'When the sender says it signed the message, when the scheme carries a timestamp.', temporalRole: 'occurred' }),
|
|
136
137
|
receivedAt: schemaShape.receivedAt.dateSpec({ meaning: 'When the application received and verified the message.', temporalRole: 'occurred', importance: FieldSemanticImportance.PRIMARY }),
|
|
137
|
-
rawBody: schemaShape.rawBody.stringSpec({ meaning: 'The exact verified bytes, base64-encoded — what a replay re-runs. Carries the sender’s data, routinely personal data.' }),
|
|
138
|
+
rawBody: schemaShape.rawBody.stringSpec({ meaning: 'The exact verified bytes, base64-encoded — what a replay re-runs. Carries the sender’s data, routinely personal data. Empty once the body of a delivery carrying what a person wrote to the bot (a conversation message or a chat command) has been emptied, and never returned by READ for such a delivery.' }),
|
|
139
|
+
chatInput: schemaShape.chatInput.enumSpec({
|
|
140
|
+
meaning: 'What a person wrote to the application’s bot that the delivery carries, decided at receipt: READ withholds the body of such a row, and its body is emptied when it settles. Empty for any other delivery.',
|
|
141
|
+
enumDeclaration: enumDeclaration('InboundChatInputKind'),
|
|
142
|
+
values: {
|
|
143
|
+
[InboundChatInputKind.CONVERSATION_MESSAGE]: { meaning: 'An event of a chat-conversation endpoint: a message to the bot, or another event that carries what a person wrote.' },
|
|
144
|
+
[InboundChatInputKind.COMMAND]: { meaning: 'A chat command: a Slack slash command or a submitted Teams message-extension form, run as the member. Also any other request to a command endpoint whose command could not be read: it carries what a person typed all the same.' },
|
|
145
|
+
},
|
|
146
|
+
}),
|
|
147
|
+
commandRunStartedAt: schemaShape.commandRunStartedAt.dateSpec({ meaning: 'When a chat command’s write started. A retry that finds it with no outcome says the write may have run, and never runs it again unless the operation takes the delivery as its idempotency key.', temporalRole: 'occurred' }),
|
|
148
|
+
commandRunResult: schemaShape.commandRunResult.objectSpec({ meaning: 'What a chat command did once it reached its operation: the record a write made, the refusal or the uncertainty that followed its start, or how many records a read found. A refusal decided before anything ran is not recorded.' }),
|
|
149
|
+
commandRunAuditedAt: schemaShape.commandRunAuditedAt.dateSpec({ meaning: 'When the chat command’s audit row was written, so a retry writes it if a crash came between the outcome and the row.', temporalRole: 'occurred' }),
|
|
150
|
+
bodyRedactedAt: schemaShape.bodyRedactedAt.dateSpec({ meaning: 'When the body of a delivery carrying a person’s message or chat command was emptied. A redacted delivery is settled without running its handler again and cannot be replayed.', temporalRole: 'occurred' }),
|
|
151
|
+
bodyRedaction: schemaShape.bodyRedaction.enumSpec({
|
|
152
|
+
meaning: 'Why the body was emptied: one copy of a chat message is kept, by its conversation, or none; a chat command’s is never kept.',
|
|
153
|
+
enumDeclaration: enumDeclaration('InboundDeliveryBodyRedaction'),
|
|
154
|
+
values: {
|
|
155
|
+
[InboundDeliveryBodyRedaction.HELD_BY_CONVERSATION]: { meaning: 'The conversation’s transcript holds the message (`bodyHeldByExecutionId`), under its own retention and erasure.' },
|
|
156
|
+
[InboundDeliveryBodyRedaction.NOT_KEPT]: { meaning: 'Kept nowhere: the message was answered without a turn (no agent, an account to link, a decision waiting, a refusal), or it was a chat command. Every chat command ends here, whether it ran (the record it made holds what the operation kept, never the message) or died.' },
|
|
157
|
+
},
|
|
158
|
+
}),
|
|
159
|
+
bodyHeldByExecutionId: schemaShape.bodyHeldByExecutionId.stringSpec({ meaning: 'The conversation whose transcript holds the message, when `bodyRedaction` says it is held there.', semanticRole: 'identifier' }),
|
|
138
160
|
headers: schemaShape.headers.objectSpec({ meaning: 'Only the headers the verification scheme and the handler need; never cookies or credentials.' }),
|
|
139
161
|
status: schemaShape.status.enumSpec({
|
|
140
162
|
meaning: 'Where the delivery is in its lifecycle.',
|
|
@@ -152,6 +174,7 @@ function buildInboundDeliveriesSpecification(resourceType) {
|
|
|
152
174
|
attemptCount: schemaShape.attemptCount.numberSpec({ meaning: 'Attempts started, ever. Also the fencing token a worker settles against.', unit: 'count' }),
|
|
153
175
|
attempts: schemaShape.attempts.arraySpec({ meaning: 'Every attempt to run the handler, oldest first.', elementMeaning: 'One attempt: when it ended, whether it processed or failed, and for a failure its classified error code (never an error message).' }),
|
|
154
176
|
nextAttemptAt: schemaShape.nextAttemptAt.dateSpec({ meaning: 'When the next attempt may start, while RECEIVED or RETRY_SCHEDULED.', temporalRole: 'scheduled' }),
|
|
177
|
+
notBefore: schemaShape.notBefore.dateSpec({ meaning: 'The earliest instant the delivery may start, however it is made due. Set only on a re-read trigger\'s delivery held for the next coalescing window; empty otherwise.', temporalRole: 'scheduled' }),
|
|
155
178
|
leaseExpiresAt: schemaShape.leaseExpiresAt.dateSpec({ meaning: 'While PROCESSING: when a worker that stopped answering loses the row to the sweep.', temporalRole: 'scheduled' }),
|
|
156
179
|
budgetStartedAt: schemaShape.budgetStartedAt.dateSpec({ meaning: 'Start of the current retry budget — receipt, or the last replay.', temporalRole: 'occurred' }),
|
|
157
180
|
budgetBaseAttemptCount: schemaShape.budgetBaseAttemptCount.numberSpec({ meaning: '`attemptCount` when the current budget started.', unit: 'count' }),
|
|
@@ -194,7 +217,7 @@ function buildInboundDeliveriesSpecification(resourceType) {
|
|
|
194
217
|
],
|
|
195
218
|
operations: {
|
|
196
219
|
[Op.READ]: {
|
|
197
|
-
purpose: `Inspect one delivery: its source, handler, scope, status and attempts. The stored body comes back whole — treat it as the sender’s data.`,
|
|
220
|
+
purpose: `Inspect one delivery: its source, handler, scope, status and attempts. The stored body comes back whole — treat it as the sender’s data — except on a delivery carrying what a person wrote to the bot (a conversation message or a chat command), whose body is withheld.`,
|
|
198
221
|
outcome: 'An operator can see why a delivery failed and whether it can be replayed.',
|
|
199
222
|
importance: FieldSemanticImportance.PRIMARY,
|
|
200
223
|
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The delivery is returned.' }],
|
|
@@ -242,14 +265,14 @@ function buildInboundDeliveriesSpecification(resourceType) {
|
|
|
242
265
|
[Op.DELETE]: {
|
|
243
266
|
purpose: 'The retention sweep’s door: an internal, route-less call. No API deletes a delivery, so the operator’s log cannot be edited.',
|
|
244
267
|
outcome: 'Deliveries leave only through the OPERATIONAL_LOGS retention period, counted from terminalAt, or with their organization.',
|
|
245
|
-
responseStatuses: [{ code: HttpResponseStatusCode.
|
|
268
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],
|
|
246
269
|
errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Any caller other than the engine.' }],
|
|
247
270
|
idempotent: true,
|
|
248
271
|
},
|
|
249
272
|
[Op.DELETE_MANY]: {
|
|
250
273
|
purpose: 'Bulk twin of DELETE, the retention sweep’s preferred door (internal, route-less).',
|
|
251
274
|
outcome: 'Terminal deliveries whose OPERATIONAL_LOGS period, counted from terminalAt, has ended are removed in one statement. A delivery that is not terminal has no terminalAt and never expires.',
|
|
252
|
-
responseStatuses: [{ code: HttpResponseStatusCode.
|
|
275
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal retention delete completed.' }],
|
|
253
276
|
errorScenarios: [{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Any caller other than the engine.' }],
|
|
254
277
|
idempotent: true,
|
|
255
278
|
},
|
|
@@ -259,12 +282,13 @@ function buildInboundDeliveriesSpecification(resourceType) {
|
|
|
259
282
|
outcome: 'After a handler is fixed, the work the sender was told was received gets done — once.',
|
|
260
283
|
whenToUse: 'Use after fixing whatever made the handler fail. The justification is stored on the row and on the audit trail.',
|
|
261
284
|
importance: FieldSemanticImportance.PRIMARY,
|
|
262
|
-
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The delivery is RECEIVED again and will be dispatched; the updated row is returned.' }],
|
|
285
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The delivery is RECEIVED again and will be dispatched; the updated row is returned, without the body of a delivery carrying a person’s message or chat command.' }],
|
|
263
286
|
errorScenarios: [
|
|
264
287
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'No justification was given.' },
|
|
265
288
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No delivery with this id exists in this scope.' },
|
|
266
289
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: `The caller is not the ${adminRole}.` },
|
|
267
290
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The delivery is not DEAD — a processed delivery must not run twice and an unroutable one has no scope to run in.' },
|
|
291
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The delivery is a chat message or a chat command whose body was emptied: a message’s conversation already ran it, the message was answered and not kept, or the command died and was not kept (the person types it again).' },
|
|
268
292
|
],
|
|
269
293
|
idempotent: false,
|
|
270
294
|
examples: [{
|
|
@@ -279,6 +303,8 @@ function buildInboundDeliveriesSpecification(resourceType) {
|
|
|
279
303
|
'A delivery is stored at most once per `(sourceKey, dedupKey)`; a provider retry answers 200 and runs nothing.',
|
|
280
304
|
'The handler runs under an `INBOUND_DELIVERY` context holding only its declared roles in the resolved scope — never the super-administrator role, never another organization.',
|
|
281
305
|
'`rawBody` is the sender’s data. Reads are limited to the administrator of the scope, and an organization’s deliveries are erased with it.',
|
|
306
|
+
'A message a person wrote to the application’s bot has one readable copy: its conversation’s transcript. Its delivery’s body is never returned by READ, and it is emptied once the delivery settles or its conversation takes the message.',
|
|
307
|
+
'A chat command a person sent has no readable copy once its delivery settles: the body is never returned by READ and is emptied when the delivery settles. A record the command made holds what its operation made of the argument, not what the person wrote, so an erasure request is not answered by pointing at it.',
|
|
282
308
|
],
|
|
283
309
|
}), { resourcePrimaryScope: inboundDeliveriesPrimaryScope[resourceType] });
|
|
284
310
|
}
|