@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProviderDeploymentModel, SubjectDataRecipientReach, SubjectDataRecipientsDeclarationSchema, establishedProviderComplianceProfile, HttpApiErasureStance, } from "@wildo-ai/saas-models";
|
|
1
|
+
import { ProviderDeploymentModel, SubjectDataRecipientKind, SubjectDataRecipientReach, SubjectDataRecipientsDeclarationSchema, establishedProviderComplianceProfile, HttpApiErasureStance, } from "@wildo-ai/saas-models";
|
|
2
2
|
import { ProcessorRegisterEntryKind } from "./processor-register.schemas.js";
|
|
3
3
|
import { RecipientPopulationClass, RecipientPopulationMemberKind } from "./recipient-population.schemas.js";
|
|
4
4
|
/**
|
|
@@ -10,16 +10,24 @@ import { RecipientPopulationClass, RecipientPopulationMemberKind } from "./recip
|
|
|
10
10
|
* compliance statement. This function only JOINS them into the shape the backend reads — so the recipients a privacy
|
|
11
11
|
* notice names, the recipients an evidence collector counts and the recipients a subject export lists are one list.
|
|
12
12
|
*
|
|
13
|
-
* - **Who**: every
|
|
14
|
-
* declared-without-data-path member receives nothing and is
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
13
|
+
* - **Who**: every member the disclosures name — operator sub-processors and tenant recipients, providers and
|
|
14
|
+
* vendor-hosted systems of record alike. An operator-run or a declared-without-data-path member receives nothing and is
|
|
15
|
+
* not a recipient.
|
|
16
|
+
* - **Systems of record (#2585).** A self-hosted instance (a `SELF_HOSTED` choice) is the controller's own system and is
|
|
17
|
+
* never a recipient: the population makes it operator-run, so it reaches no disclosure, and
|
|
18
|
+
* {@link excludeOperatorRunSystemsOfRecord} keeps that true here. A vendor-hosted one IS (its vendor is a processor,
|
|
19
|
+
* Art. 4(9)), and Art. 15 asks for the actual recipients, so it is listed, as a
|
|
20
|
+
* {@link SubjectDataRecipientKind.SYSTEM_OF_RECORD}. It carries no erasure stance, vendor window or subject references:
|
|
21
|
+
* its one erasure answer is the system of record's (the HTTP_API effects', else HANDLED_AT_SOURCE), so an operator
|
|
22
|
+
* choice declaring one of those for it is refused by name. A provider and a system-of-record instance sharing one ref is
|
|
23
|
+
* refused too, self-hosted instances included: the erasure attributes each effect to a recipient by its ref, and every
|
|
24
|
+
* HTTP_API effect names its binding's system, so the two could not each keep one answer.
|
|
19
25
|
* - **Identity**: the LEGAL entity and regions the operator's register adopted, for an operator-account recipient. A
|
|
20
26
|
* recipient the register has no entry for carries `null`, never the provider module's suggestion (Paul, 2026-09-25:
|
|
21
27
|
* vendor legal facts are suggestions adopted only by an operator commit). A tenant's own vendor is the tenant's to
|
|
22
|
-
* identify, so it carries `null` too.
|
|
28
|
+
* identify, so it carries `null` too. A system of record's vendor is entered the same way, as a `CONFIGURED_PROVIDER`
|
|
29
|
+
* entry keyed by its instance name: that is the entry the register join (`joinRecipientPopulationToRegister`) already
|
|
30
|
+
* requires for every operator sub-processor, instances included.
|
|
23
31
|
* - **Erasure stance**: the vendor's declared stance on its compliance profile; otherwise the operator's acknowledged
|
|
24
32
|
* non-erasure on its compliance choice; otherwise `null` (the erasure reports UNMEASURED). A self-hosted choice does
|
|
25
33
|
* not reach here: it makes the member operator-run.
|
|
@@ -34,13 +42,18 @@ export function deriveSubjectDataRecipients(inputs) {
|
|
|
34
42
|
const membersByRef = new Map(inputs.population.members.map((member) => [member.ref, member]));
|
|
35
43
|
const registerByProviderRef = new Map((inputs.register?.processors ?? [])
|
|
36
44
|
.flatMap((processor) => (processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER ? [[processor.providerRef, processor]] : [])));
|
|
37
|
-
|
|
45
|
+
refuseRefNamingProviderAndSystemOfRecord(inputs.population);
|
|
46
|
+
const disclosures = excludeOperatorRunSystemsOfRecord(inputs.disclosures);
|
|
47
|
+
const recipients = disclosures.map((disclosure) => {
|
|
48
|
+
const kind = subjectDataRecipientKindOf(disclosure.kind);
|
|
38
49
|
const reach = disclosure.populationClass === RecipientPopulationClass.TENANT_RECIPIENT
|
|
39
50
|
? SubjectDataRecipientReach.TENANT_ACCOUNT
|
|
40
51
|
: SubjectDataRecipientReach.OPERATOR_ACCOUNT;
|
|
41
52
|
const registered = reach === SubjectDataRecipientReach.OPERATOR_ACCOUNT ? registerByProviderRef.get(disclosure.ref) : undefined;
|
|
53
|
+
const profile = membersByRef.get(disclosure.ref)?.complianceProfile ?? null;
|
|
42
54
|
return {
|
|
43
55
|
ref: disclosure.ref,
|
|
56
|
+
kind,
|
|
44
57
|
legalEntityName: registered?.legalEntityName ?? null,
|
|
45
58
|
processingRegions: [...(registered?.processingRegions ?? [])],
|
|
46
59
|
reach,
|
|
@@ -48,18 +61,121 @@ export function deriveSubjectDataRecipients(inputs) {
|
|
|
48
61
|
categoriesNotDerivable: [...disclosure.categoriesNotDerivable],
|
|
49
62
|
categoriesAreAFloor: disclosure.categoriesAreAFloor,
|
|
50
63
|
derivedFrom: [...disclosure.derivedFrom],
|
|
51
|
-
|
|
64
|
+
...(kind === SubjectDataRecipientKind.SYSTEM_OF_RECORD
|
|
65
|
+
? systemOfRecordErasureAnswer(disclosure.ref, inputs.providerComplianceChoices)
|
|
66
|
+
: {
|
|
67
|
+
erasureStance: erasureStanceOf(disclosure.ref, profile, inputs.providerComplianceChoices),
|
|
68
|
+
vendorScheduledDeletion: vendorScheduledDeletionOf(disclosure.ref, profile, inputs.providerComplianceChoices),
|
|
69
|
+
subjectReferences: subjectReferencesOf(disclosure.ref, profile, inputs.providerComplianceChoices),
|
|
70
|
+
}),
|
|
52
71
|
};
|
|
53
72
|
}).sort((left, right) => left.ref.localeCompare(right.ref));
|
|
54
73
|
const roleAllocations = (inputs.roleAllocations ?? []).flatMap((allocation) => (allocation.resourceTypes === undefined ? [] : [{ role: allocation.role, resourceTypes: [...allocation.resourceTypes].sort() }]));
|
|
55
74
|
return SubjectDataRecipientsDeclarationSchema.parse({ recipients, roleAllocations });
|
|
56
75
|
}
|
|
57
76
|
/**
|
|
58
|
-
* The guard that keeps
|
|
59
|
-
*
|
|
77
|
+
* The guard that keeps a self-hosted system of record out of the subject-data recipient list (#2585): only an instance
|
|
78
|
+
* the population classes as an operator SUB-PROCESSOR (a vendor hosts it) is a recipient. The population already makes a
|
|
79
|
+
* self-hosted instance operator-run, which reaches no disclosure; this holds the rule where the list is built, so a
|
|
80
|
+
* disclosure list from anywhere else cannot make the controller's own system a recipient. Exported so it is pinned
|
|
81
|
+
* directly.
|
|
60
82
|
*/
|
|
61
|
-
export function
|
|
62
|
-
return disclosures.filter((disclosure) => disclosure.kind !== RecipientPopulationMemberKind.SYSTEM_OF_RECORD
|
|
83
|
+
export function excludeOperatorRunSystemsOfRecord(disclosures) {
|
|
84
|
+
return disclosures.filter((disclosure) => disclosure.kind !== RecipientPopulationMemberKind.SYSTEM_OF_RECORD
|
|
85
|
+
|| disclosure.populationClass === RecipientPopulationClass.OPERATOR_SUB_PROCESSOR);
|
|
86
|
+
}
|
|
87
|
+
/** The recipient kind a population member kind makes. Exhaustive, so a new member kind is a compile error here. */
|
|
88
|
+
function subjectDataRecipientKindOf(kind) {
|
|
89
|
+
switch (kind) {
|
|
90
|
+
case RecipientPopulationMemberKind.CONFIGURED_PROVIDER:
|
|
91
|
+
return SubjectDataRecipientKind.CONFIGURED_PROVIDER;
|
|
92
|
+
case RecipientPopulationMemberKind.SYSTEM_OF_RECORD:
|
|
93
|
+
return SubjectDataRecipientKind.SYSTEM_OF_RECORD;
|
|
94
|
+
default: {
|
|
95
|
+
const unhandled = kind;
|
|
96
|
+
throw new Error(`subject data recipients: unhandled population member kind ${String(unhandled)}`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Refused, by name: a provider and a system-of-record instance under one ref, whatever either one's class. The erasure
|
|
102
|
+
* attributes each effect to the recipient whose ref it names, and every HTTP_API effect names its binding's system, self-
|
|
103
|
+
* hosted or not. So a provider sharing an instance's name would take the system of record's answer (or the other way
|
|
104
|
+
* round), and a provider shipping its own erasure effect would be refused at boot as a second answer for that name.
|
|
105
|
+
* Checked over the whole population rather than the recipients, so a self-hosted instance (no recipient) is covered too.
|
|
106
|
+
*/
|
|
107
|
+
function refuseRefNamingProviderAndSystemOfRecord(population) {
|
|
108
|
+
const systemOfRecordRefs = new Set(population.members.filter((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD).map((member) => member.ref));
|
|
109
|
+
const shared = [...new Set(population.members
|
|
110
|
+
.filter((member) => member.kind !== RecipientPopulationMemberKind.SYSTEM_OF_RECORD && systemOfRecordRefs.has(member.ref))
|
|
111
|
+
.map((member) => member.ref))].sort();
|
|
112
|
+
if (shared.length > 0) {
|
|
113
|
+
throw new Error(`subject data recipients: ${shared.map((ref) => `"${ref}"`).join(', ')} names both a provider and a system-of-record instance. `
|
|
114
|
+
+ 'An erasure attributes each effect to one recipient by this name, so rename the systemsOfRecord instance.');
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A vendor-hosted system of record's erasure fields: none (#2585). Its one answer is the system of record's (the HTTP_API
|
|
119
|
+
* effects' when one applies, HANDLED_AT_SOURCE otherwise), so an operator choice that declares an erasure answer for the
|
|
120
|
+
* instance is refused by name rather than dropped: dropping it would leave a declaration that reaches nothing.
|
|
121
|
+
*/
|
|
122
|
+
function systemOfRecordErasureAnswer(ref, choices) {
|
|
123
|
+
const choice = choices?.[ref];
|
|
124
|
+
const declared = [
|
|
125
|
+
...(choice?.subjectErasureAcknowledgement === undefined ? [] : ['subjectErasureAcknowledgement']),
|
|
126
|
+
...(choice?.vendorScheduledDeletion === undefined ? [] : ['vendorScheduledDeletion']),
|
|
127
|
+
...(choice?.subjectReferences === undefined ? [] : ['subjectReferences']),
|
|
128
|
+
];
|
|
129
|
+
if (declared.length > 0) {
|
|
130
|
+
throw new Error(`subject data recipients: providerComplianceChoices.${ref} declares ${declared.join(', ')}, but "${ref}" is a system of record, `
|
|
131
|
+
+ 'which answers requests about its own records: an erasure reports its HTTP_API resources\' subject-rights posture. Remove '
|
|
132
|
+
+ `${declared.length === 1 ? 'it' : 'them'}, and declare the posture on the resources' bindings (subjectRights) instead.`);
|
|
133
|
+
}
|
|
134
|
+
return { erasureStance: null, vendorScheduledDeletion: null, subjectReferences: [] };
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* The vendor deletion window the operator declared for this recipient (#2074), or `null`.
|
|
138
|
+
*
|
|
139
|
+
* Refused, by name, when the provider module ITSELF declares `NO_SUBJECT_DATA`: a vendor that states it keeps no
|
|
140
|
+
* subject data has already answered the erasure question, and a second answer from the operator would leave the
|
|
141
|
+
* recipient with two. The choice schema refuses the operator-side pairs (an acknowledgement, or subject references,
|
|
142
|
+
* beside a window) for the same reason.
|
|
143
|
+
*
|
|
144
|
+
* Admitted beside `EXTERNAL_ERASURE_OPERATION` (#2181). That stance says the vendor OFFERS a deletion an effect can
|
|
145
|
+
* call; a provider package's effect runs only once the operator arms it with `subjectReferences` and the credential it
|
|
146
|
+
* needs. An operator who has not armed it has no effect answering for the recipient, and the vendor's own published
|
|
147
|
+
* schedule is then the true answer, where refusing it would leave the recipient NOT_REGISTERED and every erasure
|
|
148
|
+
* FAILED. Arming it and keeping the window is the pair the choice schema refuses, so the recipient still has one answer.
|
|
149
|
+
*/
|
|
150
|
+
function vendorScheduledDeletionOf(ref, profile, choices) {
|
|
151
|
+
const choice = choices?.[ref];
|
|
152
|
+
if (choice?.vendorScheduledDeletion === undefined || choice.deploymentModel === ProviderDeploymentModel.SELF_HOSTED)
|
|
153
|
+
return null;
|
|
154
|
+
const declared = establishedProviderComplianceProfile(profile)?.subjectErasure?.stance;
|
|
155
|
+
if (declared !== undefined && declared !== HttpApiErasureStance.EXTERNAL_ERASURE_OPERATION) {
|
|
156
|
+
throw new Error(`subject data recipients: providerComplianceChoices.${ref}.vendorScheduledDeletion contradicts the provider's own erasure stance "${declared}" — remove one of the two`);
|
|
157
|
+
}
|
|
158
|
+
return { retentionDays: choice.vendorScheduledDeletion.retentionDays };
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Where the application keeps the person's identifier at this vendor (#2006), as the operator declared it, or empty.
|
|
162
|
+
*
|
|
163
|
+
* Refused, by name, unless the provider module ITSELF declares `EXTERNAL_ERASURE_OPERATION`: references locate what the
|
|
164
|
+
* provider's erasure effect deletes, so on any other stance they would be a declaration that reaches nothing. An
|
|
165
|
+
* acknowledged non-erasure or a deletion window beside them is refused earlier, by the choice schema.
|
|
166
|
+
*/
|
|
167
|
+
function subjectReferencesOf(ref, profile, choices) {
|
|
168
|
+
const declaredReferences = choices?.[ref]?.subjectReferences;
|
|
169
|
+
if (declaredReferences === undefined)
|
|
170
|
+
return [];
|
|
171
|
+
const declared = establishedProviderComplianceProfile(profile)?.subjectErasure?.stance;
|
|
172
|
+
if (declared !== HttpApiErasureStance.EXTERNAL_ERASURE_OPERATION) {
|
|
173
|
+
throw new Error(`subject data recipients: providerComplianceChoices.${ref}.subjectReferences locate what the provider's erasure effect deletes, `
|
|
174
|
+
+ `but the provider declares ${declared === undefined ? 'no erasure stance' : `the erasure stance "${declared}"`}, `
|
|
175
|
+
+ `not "${HttpApiErasureStance.EXTERNAL_ERASURE_OPERATION}". If the provider's module does declare it, its companion contribution is missing the `
|
|
176
|
+
+ 'copy of `complianceProfile` that discovery reads: fix the package. Otherwise remove the references, or install a provider version that erases at the vendor');
|
|
177
|
+
}
|
|
178
|
+
return declaredReferences.map((reference) => ({ ...reference }));
|
|
63
179
|
}
|
|
64
180
|
function erasureStanceOf(ref, profile, choices) {
|
|
65
181
|
const declared = establishedProviderComplianceProfile(profile)?.subjectErasure?.stance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject-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,\n SubjectDataRecipientsDeclarationSchema,\n establishedProviderComplianceProfile,\n type ApplicationProviderComplianceChoices,\n type OperatorRoleAllocation,\n type ProviderComplianceProfile,\n type SubjectDataRecipient,\n type SubjectDataRecipientsDeclaration,\n HttpApiErasureStance,\n} from \"@wildo-ai/saas-models\";\n\nimport { ProcessorRegisterEntryKind, type ApplicationProcessorRegister } from \"./processor-register.schemas\";\nimport type { RecipientDisclosure } from \"./recipient-disclosures.schemas\";\nimport { RecipientPopulationClass, RecipientPopulationMemberKind, type RecipientPopulation } from \"./recipient-population.schemas\";\n\n/**\n * **The recipient list a running application states to a data subject** — derived here, once, from the application's\n * committed declarations, and projected into the runtime by `wildo config subject-data-recipients` (#1710).\n *\n * Every input already exists and is already read by the companion and the evidence collector through these same\n * functions: the recipient population (#1707), the #1709 disclosures, the processor register and the operator's\n * compliance statement. This function only JOINS them into the shape the backend reads — so the recipients a privacy\n * notice names, the recipients an evidence collector counts and the recipients a subject export lists are one list.\n *\n * - **Who**: every PROVIDER the disclosures name — operator sub-processors and tenant recipients. An operator-run or a\n * declared-without-data-path member receives nothing and is not a recipient.\n * - **Never a system of record.** A `systemsOfRecord` instance is maintained on its own lane: its erasure is accounted\n * per bound resource by the HTTP_API erasure effects under the binding's declared D6 stance, and what it holds and\n * supplies is the systems-of-record population's to state. Listing it here too would make two mechanisms answer for\n * one system, maintained separately and free to disagree. {@link excludeSystemsOfRecord} is the guard.\n * - **Identity**: the LEGAL entity and regions the operator's register adopted, for an operator-account recipient. A\n * recipient the register has no entry for carries `null`, never the provider module's suggestion (Paul, 2026-09-25:\n * vendor legal facts are suggestions adopted only by an operator commit). A tenant's own vendor is the tenant's to\n * identify, so it carries `null` too.\n * - **Erasure stance**: the vendor's declared stance on its compliance profile; otherwise the operator's acknowledged\n * non-erasure on its compliance choice; otherwise `null` (the erasure reports UNMEASURED). A self-hosted choice does\n * not reach here: it makes the member operator-run.\n * - **Roles**: the operator's role allocations that name their resource types.\n *\n * Pure and report-only: it never refuses, and the output is validated against the runtime schema so a projection the\n * backend would reject is caught where it is generated.\n *\n * @wildo_source:part:start saas.specifications.subject-data-recipients facet:layer:shared facet:audience:app-developer\n */\nexport function deriveSubjectDataRecipients(inputs: {\n readonly population: RecipientPopulation;\n readonly disclosures: readonly RecipientDisclosure[];\n readonly register: ApplicationProcessorRegister | undefined;\n readonly providerComplianceChoices: ApplicationProviderComplianceChoices | undefined;\n readonly roleAllocations: readonly OperatorRoleAllocation[] | undefined;\n}): SubjectDataRecipientsDeclaration {\n const membersByRef = new Map(inputs.population.members.map((member) => [member.ref, member] as const));\n const registerByProviderRef = new Map((inputs.register?.processors ?? [])\n .flatMap((processor) => (processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER ? [[processor.providerRef, processor] as const] : [])));\n\n const recipients = excludeSystemsOfRecord(inputs.disclosures).map((disclosure): SubjectDataRecipient => {\n const reach = disclosure.populationClass === RecipientPopulationClass.TENANT_RECIPIENT\n ? SubjectDataRecipientReach.TENANT_ACCOUNT\n : SubjectDataRecipientReach.OPERATOR_ACCOUNT;\n const registered = reach === SubjectDataRecipientReach.OPERATOR_ACCOUNT ? registerByProviderRef.get(disclosure.ref) : undefined;\n return {\n ref: disclosure.ref,\n legalEntityName: registered?.legalEntityName ?? null,\n processingRegions: [...(registered?.processingRegions ?? [])],\n reach,\n categories: [...disclosure.categories],\n categoriesNotDerivable: [...disclosure.categoriesNotDerivable],\n categoriesAreAFloor: disclosure.categoriesAreAFloor,\n derivedFrom: [...disclosure.derivedFrom],\n erasureStance: erasureStanceOf(disclosure.ref, membersByRef.get(disclosure.ref)?.complianceProfile ?? null, inputs.providerComplianceChoices),\n };\n }).sort((left, right) => left.ref.localeCompare(right.ref));\n\n const roleAllocations = (inputs.roleAllocations ?? []).flatMap((allocation) => (\n allocation.resourceTypes === undefined ? [] : [{ role: allocation.role, resourceTypes: [...allocation.resourceTypes].sort() }]\n ));\n\n return SubjectDataRecipientsDeclarationSchema.parse({ recipients, roleAllocations });\n}\n\n/**\n * The guard that keeps systems of record out of the subject-data recipient list (see the function above). Exported so\n * its one rule is pinned directly: a system-of-record member never becomes a recipient here, whatever it discloses.\n */\nexport function excludeSystemsOfRecord(disclosures: readonly RecipientDisclosure[]): readonly RecipientDisclosure[] {\n return disclosures.filter((disclosure) => disclosure.kind !== RecipientPopulationMemberKind.SYSTEM_OF_RECORD);\n}\n\nfunction erasureStanceOf(\n ref: string,\n profile: ProviderComplianceProfile | null,\n choices: ApplicationProviderComplianceChoices | undefined,\n): HttpApiErasureStance | null {\n const declared = establishedProviderComplianceProfile(profile)?.subjectErasure?.stance;\n if (declared !== undefined) return declared;\n const choice = choices?.[ref];\n // A self-hosted choice makes the member operator-run, which never reaches here; the guard keeps that true by construction.\n if (choice?.subjectErasureAcknowledgement !== undefined && choice.deploymentModel !== ProviderDeploymentModel.SELF_HOSTED) {\n return HttpApiErasureStance.CONTROLLER_ACKNOWLEDGED_NON_ERASURE;\n }\n return null;\n}\n\n/** Where the generated module lands in an application, relative to its root. */\nexport const SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH = \"backend-api/src/subject-data-recipients.generated.ts\";\n\n/** The constant the application's `saas-config.backend.ts` assigns to `compliance.subjectDataRecipients`. */\nexport const SUBJECT_DATA_RECIPIENTS_GENERATED_CONSTANT = \"generatedSubjectDataRecipients\";\n\n/**\n * Render the committed generated module. Pure, so it is pinned directly. The value is parsed at load, so a hand edit\n * that breaks the runtime schema fails at startup instead of reaching an export as a recipient nobody declared.\n */\nexport function renderSubjectDataRecipientsModule(declaration: SubjectDataRecipientsDeclaration): string {\n return [\n \"import { SubjectDataRecipientsDeclarationSchema, type SubjectDataRecipientsDeclaration } from '@wildo-ai/saas-models';\",\n \"\",\n \"/**\",\n \" * GENERATED by `wildo config subject-data-recipients`. DO NOT EDIT BY HAND — re-run it to regenerate.\",\n \" *\",\n \" * Who else holds a data subject's personal data (#1710): derived from the recipient population, the processor\",\n \" * register, the declared flows and the operator's compliance statement. Composed into\",\n \" * `compliance.subjectDataRecipients` by `saas-config.backend.ts`; a subject export lists these recipients and a\",\n \" * subject erasure reports an outcome for each.\",\n \" */\",\n `export const ${SUBJECT_DATA_RECIPIENTS_GENERATED_CONSTANT}: SubjectDataRecipientsDeclaration = SubjectDataRecipientsDeclarationSchema.parse(${JSON.stringify(declaration, null, 2)});`,\n \"\",\n ].join(\"\\n\");\n}\n/** @wildo_source:part:end saas.specifications.subject-data-recipients */\n"]}
|
|
1
|
+
{"version":3,"file":"subject-data-recipients.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/subject-data-recipients.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EACzB,sCAAsC,EACtC,oCAAoC,EAOpC,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,0BAA0B,EAAqC,MAAM,8BAA8B,CAAC;AAE7G,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAA4B,MAAM,gCAAgC,CAAC;AAEnI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,UAAU,2BAA2B,CAAC,MAM3C;IACC,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAU,CAAC,CAAC,CAAC;IACvG,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,UAAU,IAAI,EAAE,CAAC;SACtE,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,KAAK,0BAA0B,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC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AO,QAAQ,CAAC;IAC5C,MAAM,MAAM,GAAG,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;IAC9B,2HAA2H;IAC3H,IAAI,MAAM,EAAE,6BAA6B,KAAK,SAAS,IAAI,MAAM,CAAC,eAAe,KAAK,uBAAuB,CAAC,WAAW,EAAE,CAAC;QAC1H,OAAO,oBAAoB,CAAC,mCAAmC,CAAC;IAClE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,gFAAgF;AAChF,MAAM,CAAC,MAAM,+CAA+C,GAAG,sDAAsD,CAAC;AAEtH,6GAA6G;AAC7G,MAAM,CAAC,MAAM,0CAA0C,GAAG,gCAAgC,CAAC;AAE3F;;;GAGG;AACH,MAAM,UAAU,iCAAiC,CAAC,WAA6C;IAC7F,OAAO;QACL,wHAAwH;QACxH,EAAE;QACF,KAAK;QACL,wGAAwG;QACxG,IAAI;QACJ,gHAAgH;QAChH,wFAAwF;QACxF,kHAAkH;QAClH,iDAAiD;QACjD,KAAK;QACL,gBAAgB,0CAA0C,qFAAqF,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI;QACvL,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AACD,yEAAyE","sourcesContent":["import {\n ProviderDeploymentModel,\n SubjectDataRecipientKind,\n SubjectDataRecipientReach,\n SubjectDataRecipientsDeclarationSchema,\n establishedProviderComplianceProfile,\n type ApplicationProviderComplianceChoices,\n type OperatorRoleAllocation,\n type ProviderComplianceProfile,\n type ProviderSubjectReference,\n type SubjectDataRecipient,\n type SubjectDataRecipientsDeclaration,\n HttpApiErasureStance,\n} from \"@wildo-ai/saas-models\";\n\nimport { ProcessorRegisterEntryKind, type ApplicationProcessorRegister } from \"./processor-register.schemas\";\nimport type { RecipientDisclosure } from \"./recipient-disclosures.schemas\";\nimport { RecipientPopulationClass, RecipientPopulationMemberKind, type RecipientPopulation } from \"./recipient-population.schemas\";\n\n/**\n * **The recipient list a running application states to a data subject** — derived here, once, from the application's\n * committed declarations, and projected into the runtime by `wildo config subject-data-recipients` (#1710).\n *\n * Every input already exists and is already read by the companion and the evidence collector through these same\n * functions: the recipient population (#1707), the #1709 disclosures, the processor register and the operator's\n * compliance statement. This function only JOINS them into the shape the backend reads — so the recipients a privacy\n * notice names, the recipients an evidence collector counts and the recipients a subject export lists are one list.\n *\n * - **Who**: every member the disclosures name — operator sub-processors and tenant recipients, providers and\n * vendor-hosted systems of record alike. An operator-run or a declared-without-data-path member receives nothing and is\n * not a recipient.\n * - **Systems of record (#2585).** A self-hosted instance (a `SELF_HOSTED` choice) is the controller's own system and is\n * never a recipient: the population makes it operator-run, so it reaches no disclosure, and\n * {@link excludeOperatorRunSystemsOfRecord} keeps that true here. A vendor-hosted one IS (its vendor is a processor,\n * Art. 4(9)), and Art. 15 asks for the actual recipients, so it is listed, as a\n * {@link SubjectDataRecipientKind.SYSTEM_OF_RECORD}. It carries no erasure stance, vendor window or subject references:\n * its one erasure answer is the system of record's (the HTTP_API effects', else HANDLED_AT_SOURCE), so an operator\n * choice declaring one of those for it is refused by name. A provider and a system-of-record instance sharing one ref is\n * refused too, self-hosted instances included: the erasure attributes each effect to a recipient by its ref, and every\n * HTTP_API effect names its binding's system, so the two could not each keep one answer.\n * - **Identity**: the LEGAL entity and regions the operator's register adopted, for an operator-account recipient. A\n * recipient the register has no entry for carries `null`, never the provider module's suggestion (Paul, 2026-09-25:\n * vendor legal facts are suggestions adopted only by an operator commit). A tenant's own vendor is the tenant's to\n * identify, so it carries `null` too. A system of record's vendor is entered the same way, as a `CONFIGURED_PROVIDER`\n * entry keyed by its instance name: that is the entry the register join (`joinRecipientPopulationToRegister`) already\n * requires for every operator sub-processor, instances included.\n * - **Erasure stance**: the vendor's declared stance on its compliance profile; otherwise the operator's acknowledged\n * non-erasure on its compliance choice; otherwise `null` (the erasure reports UNMEASURED). A self-hosted choice does\n * not reach here: it makes the member operator-run.\n * - **Roles**: the operator's role allocations that name their resource types.\n *\n * Pure and report-only: it never refuses, and the output is validated against the runtime schema so a projection the\n * backend would reject is caught where it is generated.\n *\n * @wildo_source:part:start saas.specifications.subject-data-recipients facet:layer:shared facet:audience:app-developer\n */\nexport function deriveSubjectDataRecipients(inputs: {\n readonly population: RecipientPopulation;\n readonly disclosures: readonly RecipientDisclosure[];\n readonly register: ApplicationProcessorRegister | undefined;\n readonly providerComplianceChoices: ApplicationProviderComplianceChoices | undefined;\n readonly roleAllocations: readonly OperatorRoleAllocation[] | undefined;\n}): SubjectDataRecipientsDeclaration {\n const membersByRef = new Map(inputs.population.members.map((member) => [member.ref, member] as const));\n const registerByProviderRef = new Map((inputs.register?.processors ?? [])\n .flatMap((processor) => (processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER ? [[processor.providerRef, processor] as const] : [])));\n\n refuseRefNamingProviderAndSystemOfRecord(inputs.population);\n const disclosures = excludeOperatorRunSystemsOfRecord(inputs.disclosures);\n const recipients = disclosures.map((disclosure): SubjectDataRecipient => {\n const kind = subjectDataRecipientKindOf(disclosure.kind);\n const reach = disclosure.populationClass === RecipientPopulationClass.TENANT_RECIPIENT\n ? SubjectDataRecipientReach.TENANT_ACCOUNT\n : SubjectDataRecipientReach.OPERATOR_ACCOUNT;\n const registered = reach === SubjectDataRecipientReach.OPERATOR_ACCOUNT ? registerByProviderRef.get(disclosure.ref) : undefined;\n const profile = membersByRef.get(disclosure.ref)?.complianceProfile ?? null;\n return {\n ref: disclosure.ref,\n kind,\n legalEntityName: registered?.legalEntityName ?? null,\n processingRegions: [...(registered?.processingRegions ?? [])],\n reach,\n categories: [...disclosure.categories],\n categoriesNotDerivable: [...disclosure.categoriesNotDerivable],\n categoriesAreAFloor: disclosure.categoriesAreAFloor,\n derivedFrom: [...disclosure.derivedFrom],\n ...(kind === SubjectDataRecipientKind.SYSTEM_OF_RECORD\n ? systemOfRecordErasureAnswer(disclosure.ref, inputs.providerComplianceChoices)\n : {\n erasureStance: erasureStanceOf(disclosure.ref, profile, inputs.providerComplianceChoices),\n vendorScheduledDeletion: vendorScheduledDeletionOf(disclosure.ref, profile, inputs.providerComplianceChoices),\n subjectReferences: subjectReferencesOf(disclosure.ref, profile, inputs.providerComplianceChoices),\n }),\n };\n }).sort((left, right) => left.ref.localeCompare(right.ref));\n\n const roleAllocations = (inputs.roleAllocations ?? []).flatMap((allocation) => (\n allocation.resourceTypes === undefined ? [] : [{ role: allocation.role, resourceTypes: [...allocation.resourceTypes].sort() }]\n ));\n\n return SubjectDataRecipientsDeclarationSchema.parse({ recipients, roleAllocations });\n}\n\n/**\n * The guard that keeps a self-hosted system of record out of the subject-data recipient list (#2585): only an instance\n * the population classes as an operator SUB-PROCESSOR (a vendor hosts it) is a recipient. The population already makes a\n * self-hosted instance operator-run, which reaches no disclosure; this holds the rule where the list is built, so a\n * disclosure list from anywhere else cannot make the controller's own system a recipient. Exported so it is pinned\n * directly.\n */\nexport function excludeOperatorRunSystemsOfRecord(disclosures: readonly RecipientDisclosure[]): readonly RecipientDisclosure[] {\n return disclosures.filter((disclosure) => disclosure.kind !== RecipientPopulationMemberKind.SYSTEM_OF_RECORD\n || disclosure.populationClass === RecipientPopulationClass.OPERATOR_SUB_PROCESSOR);\n}\n\n/** The recipient kind a population member kind makes. Exhaustive, so a new member kind is a compile error here. */\nfunction subjectDataRecipientKindOf(kind: RecipientPopulationMemberKind): SubjectDataRecipientKind {\n switch (kind) {\n case RecipientPopulationMemberKind.CONFIGURED_PROVIDER:\n return SubjectDataRecipientKind.CONFIGURED_PROVIDER;\n case RecipientPopulationMemberKind.SYSTEM_OF_RECORD:\n return SubjectDataRecipientKind.SYSTEM_OF_RECORD;\n default: {\n const unhandled: never = kind;\n throw new Error(`subject data recipients: unhandled population member kind ${String(unhandled)}`);\n }\n }\n}\n\n/**\n * Refused, by name: a provider and a system-of-record instance under one ref, whatever either one's class. The erasure\n * attributes each effect to the recipient whose ref it names, and every HTTP_API effect names its binding's system, self-\n * hosted or not. So a provider sharing an instance's name would take the system of record's answer (or the other way\n * round), and a provider shipping its own erasure effect would be refused at boot as a second answer for that name.\n * Checked over the whole population rather than the recipients, so a self-hosted instance (no recipient) is covered too.\n */\nfunction refuseRefNamingProviderAndSystemOfRecord(population: RecipientPopulation): void {\n const systemOfRecordRefs = new Set(population.members.filter((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD).map((member) => member.ref));\n const shared = [...new Set(population.members\n .filter((member) => member.kind !== RecipientPopulationMemberKind.SYSTEM_OF_RECORD && systemOfRecordRefs.has(member.ref))\n .map((member) => member.ref))].sort();\n if (shared.length > 0) {\n throw new Error(\n `subject data recipients: ${shared.map((ref) => `\"${ref}\"`).join(', ')} names both a provider and a system-of-record instance. `\n + 'An erasure attributes each effect to one recipient by this name, so rename the systemsOfRecord instance.',\n );\n }\n}\n\n/**\n * A vendor-hosted system of record's erasure fields: none (#2585). Its one answer is the system of record's (the HTTP_API\n * effects' when one applies, HANDLED_AT_SOURCE otherwise), so an operator choice that declares an erasure answer for the\n * instance is refused by name rather than dropped: dropping it would leave a declaration that reaches nothing.\n */\nfunction systemOfRecordErasureAnswer(\n ref: string,\n choices: ApplicationProviderComplianceChoices | undefined,\n): Pick<SubjectDataRecipient, 'erasureStance' | 'vendorScheduledDeletion' | 'subjectReferences'> {\n const choice = choices?.[ref];\n const declared = [\n ...(choice?.subjectErasureAcknowledgement === undefined ? [] : ['subjectErasureAcknowledgement']),\n ...(choice?.vendorScheduledDeletion === undefined ? [] : ['vendorScheduledDeletion']),\n ...(choice?.subjectReferences === undefined ? [] : ['subjectReferences']),\n ];\n if (declared.length > 0) {\n throw new Error(\n `subject data recipients: providerComplianceChoices.${ref} declares ${declared.join(', ')}, but \"${ref}\" is a system of record, `\n + 'which answers requests about its own records: an erasure reports its HTTP_API resources\\' subject-rights posture. Remove '\n + `${declared.length === 1 ? 'it' : 'them'}, and declare the posture on the resources' bindings (subjectRights) instead.`,\n );\n }\n return { erasureStance: null, vendorScheduledDeletion: null, subjectReferences: [] };\n}\n\n/**\n * The vendor deletion window the operator declared for this recipient (#2074), or `null`.\n *\n * Refused, by name, when the provider module ITSELF declares `NO_SUBJECT_DATA`: a vendor that states it keeps no\n * subject data has already answered the erasure question, and a second answer from the operator would leave the\n * recipient with two. The choice schema refuses the operator-side pairs (an acknowledgement, or subject references,\n * beside a window) for the same reason.\n *\n * Admitted beside `EXTERNAL_ERASURE_OPERATION` (#2181). That stance says the vendor OFFERS a deletion an effect can\n * call; a provider package's effect runs only once the operator arms it with `subjectReferences` and the credential it\n * needs. An operator who has not armed it has no effect answering for the recipient, and the vendor's own published\n * schedule is then the true answer, where refusing it would leave the recipient NOT_REGISTERED and every erasure\n * FAILED. Arming it and keeping the window is the pair the choice schema refuses, so the recipient still has one answer.\n */\nfunction vendorScheduledDeletionOf(\n ref: string,\n profile: ProviderComplianceProfile | null,\n choices: ApplicationProviderComplianceChoices | undefined,\n): { retentionDays: number } | null {\n const choice = choices?.[ref];\n if (choice?.vendorScheduledDeletion === undefined || choice.deploymentModel === ProviderDeploymentModel.SELF_HOSTED) return null;\n const declared = establishedProviderComplianceProfile(profile)?.subjectErasure?.stance;\n if (declared !== undefined && declared !== HttpApiErasureStance.EXTERNAL_ERASURE_OPERATION) {\n throw new Error(\n `subject data recipients: providerComplianceChoices.${ref}.vendorScheduledDeletion contradicts the provider's own erasure stance \"${declared}\" — remove one of the two`,\n );\n }\n return { retentionDays: choice.vendorScheduledDeletion.retentionDays };\n}\n\n/**\n * Where the application keeps the person's identifier at this vendor (#2006), as the operator declared it, or empty.\n *\n * Refused, by name, unless the provider module ITSELF declares `EXTERNAL_ERASURE_OPERATION`: references locate what the\n * provider's erasure effect deletes, so on any other stance they would be a declaration that reaches nothing. An\n * acknowledged non-erasure or a deletion window beside them is refused earlier, by the choice schema.\n */\nfunction subjectReferencesOf(\n ref: string,\n profile: ProviderComplianceProfile | null,\n choices: ApplicationProviderComplianceChoices | undefined,\n): ProviderSubjectReference[] {\n const declaredReferences = choices?.[ref]?.subjectReferences;\n if (declaredReferences === undefined) return [];\n const declared = establishedProviderComplianceProfile(profile)?.subjectErasure?.stance;\n if (declared !== HttpApiErasureStance.EXTERNAL_ERASURE_OPERATION) {\n throw new Error(\n `subject data recipients: providerComplianceChoices.${ref}.subjectReferences locate what the provider's erasure effect deletes, `\n + `but the provider declares ${declared === undefined ? 'no erasure stance' : `the erasure stance \"${declared}\"`}, `\n + `not \"${HttpApiErasureStance.EXTERNAL_ERASURE_OPERATION}\". If the provider's module does declare it, its companion contribution is missing the `\n + 'copy of `complianceProfile` that discovery reads: fix the package. Otherwise remove the references, or install a provider version that erases at the vendor',\n );\n }\n return declaredReferences.map((reference) => ({ ...reference }));\n}\n\nfunction erasureStanceOf(\n ref: string,\n profile: ProviderComplianceProfile | null,\n choices: ApplicationProviderComplianceChoices | undefined,\n): HttpApiErasureStance | null {\n const declared = establishedProviderComplianceProfile(profile)?.subjectErasure?.stance;\n if (declared !== undefined) return declared;\n const choice = choices?.[ref];\n // A self-hosted choice makes the member operator-run, which never reaches here; the guard keeps that true by construction.\n if (choice?.subjectErasureAcknowledgement !== undefined && choice.deploymentModel !== ProviderDeploymentModel.SELF_HOSTED) {\n return HttpApiErasureStance.CONTROLLER_ACKNOWLEDGED_NON_ERASURE;\n }\n return null;\n}\n\n/** Where the generated module lands in an application, relative to its root. */\nexport const SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH = \"backend-api/src/subject-data-recipients.generated.ts\";\n\n/** The constant the application's `saas-config.backend.ts` assigns to `compliance.subjectDataRecipients`. */\nexport const SUBJECT_DATA_RECIPIENTS_GENERATED_CONSTANT = \"generatedSubjectDataRecipients\";\n\n/**\n * Render the committed generated module. Pure, so it is pinned directly. The value is parsed at load, so a hand edit\n * that breaks the runtime schema fails at startup instead of reaching an export as a recipient nobody declared.\n */\nexport function renderSubjectDataRecipientsModule(declaration: SubjectDataRecipientsDeclaration): string {\n return [\n \"import { SubjectDataRecipientsDeclarationSchema, type SubjectDataRecipientsDeclaration } from '@wildo-ai/saas-models';\",\n \"\",\n \"/**\",\n \" * GENERATED by `wildo config subject-data-recipients`. DO NOT EDIT BY HAND — re-run it to regenerate.\",\n \" *\",\n \" * Who else holds a data subject's personal data (#1710): derived from the recipient population, the processor\",\n \" * register, the declared flows and the operator's compliance statement. Composed into\",\n \" * `compliance.subjectDataRecipients` by `saas-config.backend.ts`; a subject export lists these recipients and a\",\n \" * subject erasure reports an outcome for each.\",\n \" */\",\n `export const ${SUBJECT_DATA_RECIPIENTS_GENERATED_CONSTANT}: SubjectDataRecipientsDeclaration = SubjectDataRecipientsDeclarationSchema.parse(${JSON.stringify(declaration, null, 2)});`,\n \"\",\n ].join(\"\\n\");\n}\n/** @wildo_source:part:end saas.specifications.subject-data-recipients */\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-seed-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/data-seed-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,wBAAwB,
|
|
1
|
+
{"version":3,"file":"data-seed-specification.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/data-seed-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,wBAAwB,EAIxB,KAAK,eAAe,EACrB,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAE7F;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAMH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ,CAAC;IACpE,8CAA8C;IAC9C,mBAAmB,CAAC,EAAE,MAA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SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IAEpC,qDAAqD;IACrD,YAAY,CAAC,EAAE,iCAAiC,CAAC;CAClD;AAED,0BAA0B;AAC1B,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;AAMhF;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,2BAA2B,GACzC,2BAA2B,CAG7B;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,GAAG,cAAc,EAAE,2BAA2B,EAAE,GAC/C,qBAAqB,CAiBvB;AAMD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,6BAA6B,CAC3C,aAAa,EAAE,2BAA2B,GACzC,IAAI,CAkHN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSeedMode, DataSeedTriggerKind, validateDataSeedTriggerModeCombination, } from '@wildo-ai/saas-backend-lib/data-seeding-models';
|
|
1
|
+
import { DataSeedMode, DataSeedTriggerKind, isAuthorableDataSeedOrphanPolicy, validateDataSeedTriggerModeCombination, } from '@wildo-ai/saas-backend-lib/data-seeding-models';
|
|
2
2
|
// ---------------------------------------------------------------------------
|
|
3
3
|
// Factory + map builder
|
|
4
4
|
// ---------------------------------------------------------------------------
|
|
@@ -116,6 +116,10 @@ export function validateDataSeedSpecification(specification) {
|
|
|
116
116
|
if (specification.mode === DataSeedMode.SYNC && specification.onOrphan === undefined) {
|
|
117
117
|
throw new Error(`${errorPrefix} mode=SYNC requires an explicit \`onOrphan\` policy (D3).`);
|
|
118
118
|
}
|
|
119
|
+
// #2117 review F5: the same predicate as the authoring factory, so a specification cannot describe a seed the factory refuses.
|
|
120
|
+
if (specification.onOrphan !== undefined && !isAuthorableDataSeedOrphanPolicy(specification.onOrphan)) {
|
|
121
|
+
throw new Error(`${errorPrefix} \`onOrphan: ${specification.onOrphan}\` runs only through an external-data pipeline's scrub door; an authored seed cannot declare it.`);
|
|
122
|
+
}
|
|
119
123
|
// Absent and `[]` are the same statement ("owns nothing"), and both are
|
|
120
124
|
// invalid for UPGRADE — so the guard collapses them rather than treating an
|
|
121
125
|
// omission as a pass. Fail-closed: omitting the field cannot smuggle an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-seed-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/data-seed-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,mBAAmB,EACnB,sCAAsC,GAEvC,MAAM,gDAAgD,CAAC;AAkMxD,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,aAA0C;IAE1C,6BAA6B,CAAC,aAAa,CAAC,CAAC;IAC7C,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC3C,GAAG,cAA6C;IAEhD,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,IAAI,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;YAC5D,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;QACJ,CAAC;QACD,6BAA6B,CAAC,aAAa,CAAC,CAAC;QAC7C,IAAI,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CACb,uDAAuD,aAAa,CAAC,OAAO,IAAI,CACjF,CAAC;QACJ,CAAC;QACD,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC;IAChD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,8EAA8E;AAC9E,8CAA8C;AAC9C,8EAA8E;AAE9E;;;;;;;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rphanPolicy,\n DataSeedTriggerKind,\n validateDataSeedTriggerModeCombination,\n type DataSeedTrigger,\n} from '@wildo-ai/saas-backend-lib/data-seeding-models';\nimport type { CodeSymbolRef } from '@wildo-ai/zod-decorators';\n\nimport type { SpecificationOwnerRef } from './definition-specification.schemas';\nimport type { TranslationSlotSpecification } from './translation-slot-specification.schemas';\n\n/**\n * Data-seeding specification slice — semantic overlay for the dev companion /\n * AI knowledge pipeline.\n *\n * Two-layer separation (mirrors `system-email-template-specification.schemas.ts`):\n * - **Runtime**: `DataSeedDefinition` in `@wildo-ai/saas-backend-lib`\n * (factory: `createDataSeedDefinition`, exposed via the focused subpath\n * `@wildo-ai/saas-backend-lib/data-seeding-models` so this spec package\n * doesn't pull in the full backend runtime) — what the dispatcher executes.\n * - **Specification (this file)**: `DataSeedSpecificationConfig` — what the\n * companion / framework-knowledge pipeline reads to answer questions like\n * *\"what data exists in a freshly initialized application?\"* or\n * *\"which fields of this email template are framework-managed vs\n * user-editable?\"*.\n *\n * Both layers consult the same §3.6 trigger × mode matrix\n * (`validateDataSeedTriggerModeCombination` from\n * `@wildo-ai/saas-backend-lib/data-seeding-models`) so a forbidden combination\n * never sneaks past one layer and lands in the other. Audit findings M-7,\n * I-1 keep this banner aligned with the Phase 2.G relocation.\n *\n * **Phase 1 = no behavior change**: the spec slice is authored, exported, and\n * validated, but no engine seed yet ships against it. The companion-export\n * surface exposes it as **optional** (Phase 2 introduces the\n * `DataSeedRegistry` and engine-shipped seeds).\n */\n\n// ---------------------------------------------------------------------------\n// Structural mirror types (no hard dependency on full runtime types)\n// ---------------------------------------------------------------------------\n\n/**\n * Structural mirror of `DataSeedScopeRef`. We accept the discriminated shape\n * directly — no point in re-deriving since both layers share the same\n * authored value.\n */\nexport interface DataSeedSpecificationScopeRef {\n kind: 'global' | 'application' | 'organization' | 'user' | 'custom';\n /** Required only when `kind === 'custom'`. */\n relatedResourceType?: string;\n}\n\n/**\n * Structural mirror of `DataSeedTrigger`. Spec authors declare triggers in the\n * same shape as runtime declarations so we can run the same matrix validator\n * over both. Re-exporting the runtime type would create a circular concern;\n * we duplicate the structural shape and rely on the matrix validator for\n * cross-layer enforcement.\n *\n * Note on LAZY seeds (Phase 5 audit F-2/F-12/F-18): Authors do **not** declare\n * `LAZY_ACCESS` triggers explicitly. They author a single\n * {@link DataSeedSpecificationLazyAccessConfig} block under\n * `lazyAccess`, mirroring the runtime contract — see\n * {@link DataSeedSpecificationConfig}.\n */\nexport type DataSeedSpecificationTrigger = DataSeedTrigger;\n\n/**\n * Structural mirror of `DataSeedLazyAccessConfig`. Single source of truth for\n * the resource + operation a LAZY seed reacts to. The scope kind comes from\n * `DataSeedSpecificationConfig.scope.kind`.\n *\n * No `matchScope` field — see Phase 5 audit findings F-2/F-12/F-18.\n */\nexport interface DataSeedSpecificationLazyAccessConfig {\n /** Resource type whose access guards trigger LAZY initialization. */\n onResource: string;\n /** Operation type (`READ`, `LIST`, etc.) that gates the lazy run. */\n onOperation: string;\n}\n\n// ---------------------------------------------------------------------------\n// Code-handling overlay (companion grounding)\n// ---------------------------------------------------------------------------\n\n/**\n * Import-oriented metadata so companion / transposer prompts can point at the\n * real runtime declarations of a seed. Mirrors\n * {@link SystemEmailTemplateSpecificationCodeHandling} but adapted to seeds:\n * the transposer needs the seed factory call, the resource type, and any\n * auxiliary helpers (migrators, computed-entry functions).\n */\nexport interface DataSeedSpecificationCodeHandling {\n /** Module/application owner that authored the runtime seed declaration. */\n definitionOwner?: SpecificationOwnerRef;\n /** Public symbol of the `createDataSeedDefinition(...)` call site. */\n seedDefinitionSymbol?: CodeSymbolRef;\n /** Public symbol of the resource type identifier the seed targets. */\n resourceTypeDeclaration?: CodeSymbolRef;\n /** Public symbols for migrator functions referenced by `migrators.fromVersion`. */\n migratorSymbols?: CodeSymbolRef[];\n /** Public symbol of the computed-entry function (Level B seeds). */\n computedEntrySymbol?: CodeSymbolRef;\n /** Companion/transposer caveats that should survive serialization. */\n notes?: string[];\n}\n\n// ---------------------------------------------------------------------------\n// Specification config\n// ---------------------------------------------------------------------------\n\n/**\n * Authored semantic overlay for one data seed.\n *\n * Required fields are the **minimum** companion grounding: identity (`seedKey`,\n * `resourceType`, `scope`), runtime classification (`mode`, `triggers`,\n * `version`, `managedFields`), and human prose (`purpose`,\n * `entriesAuthoringSummary`).\n *\n * `purpose` and `entriesAuthoringSummary` are non-empty trimmed strings so the\n * companion never serializes `Purpose: .` (mirrors the system-email overlay's\n * `purpose`/`tone` non-emptiness contract).\n */\nexport interface DataSeedSpecificationConfig {\n /** Stable seed identifier (matches `DataSeedDefinition.seedKey`). */\n seedKey: string;\n /** The target resource the seed produces / updates. */\n resourceType: string;\n /** Where the seed materializes. */\n scope: DataSeedSpecificationScopeRef;\n /**\n * At least one trigger; the §3.6 matrix is enforced by the validator.\n *\n * **Required** for non-LAZY modes (`ADDITIVE`, `UPGRADE`, `SYNC`).\n * **Forbidden** for `LAZY` mode — declare {@link lazyAccess} instead and the\n * `LAZY_ACCESS` trigger is auto-derived (Phase 5 audit F-2/F-12/F-18).\n */\n triggers?: DataSeedSpecificationTrigger[];\n /**\n * LAZY mode access-guard config. **Required** for `mode === LAZY`,\n * **forbidden** otherwise. Sole source of truth for the resource +\n * operation that gates a lazy run; the scope kind comes from\n * {@link scope}`.kind` (Phase 5 audit F-2/F-12/F-18).\n */\n lazyAccess?: DataSeedSpecificationLazyAccessConfig;\n /** Reconciliation mode. */\n mode: DataSeedMode;\n /** Per-seed monotonic version (D5). */\n version: number;\n /**\n * Dotted-path field names the seed owns.\n *\n * Optional, and absent means \"owns nothing\" — identical in meaning to `[]`.\n * Declare it when `mode in {UPGRADE, SYNC}`; `UPGRADE` rejects an empty or\n * absent list, since an upgrade with nothing to re-apply is a no-op. OMIT it\n * for `ADDITIVE` and `LAZY`, which never consult the list.\n *\n * Deliberately NOT normalized to `[]` on the way in. Unlike the runtime\n * authoring contract — where `createDataSeedDefinition` parses through Zod and\n * a `.default([])` materializes before any consumer sees the value — this spec\n * layer has no parse step: `dataSeedSpecification` returns its input verbatim,\n * and `buildDataSeedSpecificationMap` accepts hand-built configs that never\n * pass through the factory at all. Faking a guarantee in one of those two\n * entry points would leave the other producing `undefined`, so the optionality\n * is surfaced honestly and readers treat absent as empty.\n */\n managedFields?: string[];\n\n /** Why this seed exists and what it gives the user. */\n purpose: string;\n /**\n * Human summary of the entries (or the entry-generation logic) so companion\n * prompts can describe \"what data this seed plants\" without inspecting the\n * runtime declaration.\n */\n entriesAuthoringSummary: string;\n\n /**\n * Translatable description for app-level surfaces that show seeded content\n * provenance (e.g. an admin back-office \"About this template\" panel).\n */\n description?: TranslationSlotSpecification;\n /** Designer rationale: why this seed shape over an alternative. */\n rationale?: string;\n\n /**\n * Required when `mode === SYNC` (D3 — destructive semantics must be\n * declared explicitly here too, not just at the runtime layer).\n */\n onOrphan?: DataSeedSyncOrphanPolicy;\n\n /** Import-oriented coding/transposition metadata. */\n codeHandling?: DataSeedSpecificationCodeHandling;\n}\n\n/** Keyed by `seedKey`. */\nexport type DataSeedSpecification = Record<string, DataSeedSpecificationConfig>;\n\n// ---------------------------------------------------------------------------\n// Factory + map builder\n// ---------------------------------------------------------------------------\n\n/**\n * Author a {@link DataSeedSpecificationConfig}. Runs\n * {@link validateDataSeedSpecification} and returns the input verbatim.\n *\n * Shape mirrors `systemEmailTemplateSpecificationFromRegistryEntry` minus the\n * runtime registry stamping — data seeds do not yet have a runtime registry\n * (Phase 2 adds `DataSeedRegistry`).\n */\nexport function dataSeedSpecification(\n specification: DataSeedSpecificationConfig,\n): DataSeedSpecificationConfig {\n validateDataSeedSpecification(specification);\n return specification;\n}\n\n/**\n * Assemble a keyed {@link DataSeedSpecification} map from authored\n * specifications. Throws on duplicate `seedKey` and re-runs\n * {@link validateDataSeedSpecification} per entry so the same fail-closed\n * contract applies to factory-built and hand-built configs alike.\n */\nexport function buildDataSeedSpecificationMap(\n ...specifications: DataSeedSpecificationConfig[]\n): DataSeedSpecification {\n const result: DataSeedSpecification = {};\n for (const specification of specifications) {\n if (!specification.seedKey || !specification.seedKey.trim()) {\n throw new Error(\n 'buildDataSeedSpecificationMap(): received a specification with an empty `seedKey`.',\n );\n }\n validateDataSeedSpecification(specification);\n if (result[specification.seedKey]) {\n throw new Error(\n `buildDataSeedSpecificationMap(): duplicate seedKey \"${specification.seedKey}\".`,\n );\n }\n result[specification.seedKey] = specification;\n }\n return result;\n}\n\n// ---------------------------------------------------------------------------\n// Validator (fail-closed structural contract)\n// ---------------------------------------------------------------------------\n\n/**\n * Fail-closed structural contract for one data-seed specification.\n *\n * Covers:\n * - Identity strings non-empty trimmed (`seedKey`, `resourceType`,\n * `purpose`, `entriesAuthoringSummary`).\n * - At least one trigger.\n * - The §3.6 trigger × mode matrix (per trigger) — same source of truth as\n * `createDataSeedDefinition`.\n * - `mode === SYNC` ⇒ `onOrphan` provided (D3).\n * - `mode === UPGRADE` ⇒ `managedFields` non-empty (absent counts as empty).\n * - `mode === LAZY` ⇒ exactly one trigger of kind `lazyAccess`.\n * - `scope.kind === 'custom'` ⇒ `relatedResourceType` provided.\n * - When `description` is authored its `purpose` is non-empty trimmed.\n *\n * NOT a duplicate of the runtime factory's check — the factory enforces the\n * same rules on the runtime authoring shape; this enforces them on the spec\n * authoring shape (no `entries`/`entry`/`migrators`/`renames` to validate\n * here, only the semantic overlay).\n */\nexport function validateDataSeedSpecification(\n specification: DataSeedSpecificationConfig,\n): void {\n if (!specification.seedKey || !specification.seedKey.trim()) {\n throw new Error('data-seed specification: `seedKey` must be a non-empty trimmed string.');\n }\n const errorPrefix = `data-seed specification \"${specification.seedKey}\":`;\n\n if (!specification.resourceType || !specification.resourceType.trim()) {\n throw new Error(`${errorPrefix} \\`resourceType\\` must be a non-empty trimmed string.`);\n }\n if (!specification.purpose || !specification.purpose.trim()) {\n throw new Error(`${errorPrefix} \\`purpose\\` must be a non-empty trimmed prose slot.`);\n }\n if (!specification.entriesAuthoringSummary || !specification.entriesAuthoringSummary.trim()) {\n throw new Error(\n `${errorPrefix} \\`entriesAuthoringSummary\\` must be a non-empty trimmed prose slot — companion prompts depend on it for grounding.`,\n );\n }\n // Trigger / lazyAccess mutual exclusivity (Phase 5 audit F-2/F-12/F-18).\n if (specification.mode === DataSeedMode.LAZY) {\n if (specification.triggers !== undefined) {\n throw new Error(\n `${errorPrefix} mode=LAZY must not declare \\`triggers\\` — author a single \\`lazyAccess\\` block instead; the \\`LAZY_ACCESS\\` trigger is auto-derived from it (Phase 5 audit F-2/F-12/F-18).`,\n );\n }\n if (!specification.lazyAccess) {\n throw new Error(\n `${errorPrefix} mode=LAZY requires a \\`lazyAccess\\` block (\\`onResource\\` + \\`onOperation\\`).`,\n );\n }\n if (!specification.lazyAccess.onResource || !specification.lazyAccess.onResource.trim()) {\n throw new Error(\n `${errorPrefix} \\`lazyAccess.onResource\\` must be a non-empty trimmed string.`,\n );\n }\n if (!specification.lazyAccess.onOperation || !specification.lazyAccess.onOperation.trim()) {\n throw new Error(\n `${errorPrefix} \\`lazyAccess.onOperation\\` must be a non-empty trimmed string.`,\n );\n }\n } else {\n if (specification.lazyAccess !== undefined) {\n throw new Error(\n `${errorPrefix} \\`lazyAccess\\` is only valid for mode=LAZY (received mode=${specification.mode}).`,\n );\n }\n if (!specification.triggers || specification.triggers.length === 0) {\n throw new Error(`${errorPrefix} at least one trigger is required for non-LAZY modes.`);\n }\n }\n\n // §3.6 matrix — single source of truth. For LAZY seeds we synthesize the\n // auto-derived trigger so the matrix validator still runs against it.\n const triggersForMatrix: DataSeedTrigger[] =\n specification.mode === DataSeedMode.LAZY\n ? [\n {\n triggerKind: DataSeedTriggerKind.LAZY_ACCESS,\n resourceType: specification.lazyAccess!.onResource,\n operation: specification.lazyAccess!.onOperation,\n },\n ]\n : specification.triggers!;\n for (const trigger of triggersForMatrix) {\n validateDataSeedTriggerModeCombination({\n seedKey: specification.seedKey,\n mode: specification.mode,\n trigger,\n });\n }\n\n // Mode-specific extras.\n if (specification.mode === DataSeedMode.SYNC && specification.onOrphan === undefined) {\n throw new Error(\n `${errorPrefix} mode=SYNC requires an explicit \\`onOrphan\\` policy (D3).`,\n );\n }\n // Absent and `[]` are the same statement (\"owns nothing\"), and both are\n // invalid for UPGRADE — so the guard collapses them rather than treating an\n // omission as a pass. Fail-closed: omitting the field cannot smuggle an\n // UPGRADE spec past the check.\n if (specification.mode === DataSeedMode.UPGRADE && (specification.managedFields ?? []).length === 0) {\n throw new Error(\n `${errorPrefix} mode=UPGRADE requires a non-empty \\`managedFields\\` list.`,\n );\n }\n if (specification.scope.kind === 'custom' && !specification.scope.relatedResourceType) {\n throw new Error(\n `${errorPrefix} scope.kind='custom' requires \\`scope.relatedResourceType\\`.`,\n );\n }\n\n if (specification.description !== undefined) {\n if (!specification.description.purpose || !specification.description.purpose.trim()) {\n throw new Error(\n `${errorPrefix} \\`description.purpose\\` must be a non-empty trimmed prose slot when authored (omit \\`description\\` entirely instead of declaring an empty purpose).`,\n );\n }\n }\n\n if (specification.codeHandling?.notes) {\n for (const [index, value] of specification.codeHandling.notes.entries()) {\n if (typeof value !== 'string' || !value.trim()) {\n throw new Error(\n `${errorPrefix} \\`codeHandling.notes[${index}]\\` must be a non-empty trimmed string.`,\n );\n }\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"data-seed-specification.schemas.js","sourceRoot":"","sources":["../../../../src/_core/data-seed-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAEZ,mBAAmB,EACnB,gCAAgC,EAChC,sCAAsC,GAEvC,MAAM,gDAAgD,CAAC;AAkMxD,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,aAA0C;IAE1C,6BAA6B,CAAC,aAAa,CAAC,CAAC;IAC7C,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC3C,GAAG,cAA6C;IAEhD,MAAM,MAAM,GAA0B,EAAE,CAAC;IACz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AK,CAAC,mBAAmB,EAAE,CAAC;QACtF,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,8DAA8D,CAC7E,CAAC;IACJ,CAAC;IAED,IAAI,aAAa,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QAC5C,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;YACpF,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,sJAAsJ,CACrK,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,aAAa,CAAC,YAAY,EAAE,KAAK,EAAE,CAAC;QACtC,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;YACxE,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;gBAC/C,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,yBAAyB,KAAK,yCAAyC,CACtF,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC","sourcesContent":["import {\n DataSeedMode,\n DataSeedSyncOrphanPolicy,\n DataSeedTriggerKind,\n isAuthorableDataSeedOrphanPolicy,\n validateDataSeedTriggerModeCombination,\n type DataSeedTrigger,\n} from '@wildo-ai/saas-backend-lib/data-seeding-models';\nimport type { CodeSymbolRef } from '@wildo-ai/zod-decorators';\n\nimport type { SpecificationOwnerRef } from './definition-specification.schemas';\nimport type { TranslationSlotSpecification } from './translation-slot-specification.schemas';\n\n/**\n * Data-seeding specification slice — semantic overlay for the dev companion /\n * AI knowledge pipeline.\n *\n * Two-layer separation (mirrors `system-email-template-specification.schemas.ts`):\n * - **Runtime**: `DataSeedDefinition` in `@wildo-ai/saas-backend-lib`\n * (factory: `createDataSeedDefinition`, exposed via the focused subpath\n * `@wildo-ai/saas-backend-lib/data-seeding-models` so this spec package\n * doesn't pull in the full backend runtime) — what the dispatcher executes.\n * - **Specification (this file)**: `DataSeedSpecificationConfig` — what the\n * companion / framework-knowledge pipeline reads to answer questions like\n * *\"what data exists in a freshly initialized application?\"* or\n * *\"which fields of this email template are framework-managed vs\n * user-editable?\"*.\n *\n * Both layers consult the same §3.6 trigger × mode matrix\n * (`validateDataSeedTriggerModeCombination` from\n * `@wildo-ai/saas-backend-lib/data-seeding-models`) so a forbidden combination\n * never sneaks past one layer and lands in the other. Audit findings M-7,\n * I-1 keep this banner aligned with the Phase 2.G relocation.\n *\n * **Phase 1 = no behavior change**: the spec slice is authored, exported, and\n * validated, but no engine seed yet ships against it. The companion-export\n * surface exposes it as **optional** (Phase 2 introduces the\n * `DataSeedRegistry` and engine-shipped seeds).\n */\n\n// ---------------------------------------------------------------------------\n// Structural mirror types (no hard dependency on full runtime types)\n// ---------------------------------------------------------------------------\n\n/**\n * Structural mirror of `DataSeedScopeRef`. We accept the discriminated shape\n * directly — no point in re-deriving since both layers share the same\n * authored value.\n */\nexport interface DataSeedSpecificationScopeRef {\n kind: 'global' | 'application' | 'organization' | 'user' | 'custom';\n /** Required only when `kind === 'custom'`. */\n relatedResourceType?: string;\n}\n\n/**\n * Structural mirror of `DataSeedTrigger`. Spec authors declare triggers in the\n * same shape as runtime declarations so we can run the same matrix validator\n * over both. Re-exporting the runtime type would create a circular concern;\n * we duplicate the structural shape and rely on the matrix validator for\n * cross-layer enforcement.\n *\n * Note on LAZY seeds (Phase 5 audit F-2/F-12/F-18): Authors do **not** declare\n * `LAZY_ACCESS` triggers explicitly. They author a single\n * {@link DataSeedSpecificationLazyAccessConfig} block under\n * `lazyAccess`, mirroring the runtime contract — see\n * {@link DataSeedSpecificationConfig}.\n */\nexport type DataSeedSpecificationTrigger = DataSeedTrigger;\n\n/**\n * Structural mirror of `DataSeedLazyAccessConfig`. Single source of truth for\n * the resource + operation a LAZY seed reacts to. The scope kind comes from\n * `DataSeedSpecificationConfig.scope.kind`.\n *\n * No `matchScope` field — see Phase 5 audit findings F-2/F-12/F-18.\n */\nexport interface DataSeedSpecificationLazyAccessConfig {\n /** Resource type whose access guards trigger LAZY initialization. */\n onResource: string;\n /** Operation type (`READ`, `LIST`, etc.) that gates the lazy run. */\n onOperation: string;\n}\n\n// ---------------------------------------------------------------------------\n// Code-handling overlay (companion grounding)\n// ---------------------------------------------------------------------------\n\n/**\n * Import-oriented metadata so companion / transposer prompts can point at the\n * real runtime declarations of a seed. Mirrors\n * {@link SystemEmailTemplateSpecificationCodeHandling} but adapted to seeds:\n * the transposer needs the seed factory call, the resource type, and any\n * auxiliary helpers (migrators, computed-entry functions).\n */\nexport interface DataSeedSpecificationCodeHandling {\n /** Module/application owner that authored the runtime seed declaration. */\n definitionOwner?: SpecificationOwnerRef;\n /** Public symbol of the `createDataSeedDefinition(...)` call site. */\n seedDefinitionSymbol?: CodeSymbolRef;\n /** Public symbol of the resource type identifier the seed targets. */\n resourceTypeDeclaration?: CodeSymbolRef;\n /** Public symbols for migrator functions referenced by `migrators.fromVersion`. */\n migratorSymbols?: CodeSymbolRef[];\n /** Public symbol of the computed-entry function (Level B seeds). */\n computedEntrySymbol?: CodeSymbolRef;\n /** Companion/transposer caveats that should survive serialization. */\n notes?: string[];\n}\n\n// ---------------------------------------------------------------------------\n// Specification config\n// ---------------------------------------------------------------------------\n\n/**\n * Authored semantic overlay for one data seed.\n *\n * Required fields are the **minimum** companion grounding: identity (`seedKey`,\n * `resourceType`, `scope`), runtime classification (`mode`, `triggers`,\n * `version`, `managedFields`), and human prose (`purpose`,\n * `entriesAuthoringSummary`).\n *\n * `purpose` and `entriesAuthoringSummary` are non-empty trimmed strings so the\n * companion never serializes `Purpose: .` (mirrors the system-email overlay's\n * `purpose`/`tone` non-emptiness contract).\n */\nexport interface DataSeedSpecificationConfig {\n /** Stable seed identifier (matches `DataSeedDefinition.seedKey`). */\n seedKey: string;\n /** The target resource the seed produces / updates. */\n resourceType: string;\n /** Where the seed materializes. */\n scope: DataSeedSpecificationScopeRef;\n /**\n * At least one trigger; the §3.6 matrix is enforced by the validator.\n *\n * **Required** for non-LAZY modes (`ADDITIVE`, `UPGRADE`, `SYNC`).\n * **Forbidden** for `LAZY` mode — declare {@link lazyAccess} instead and the\n * `LAZY_ACCESS` trigger is auto-derived (Phase 5 audit F-2/F-12/F-18).\n */\n triggers?: DataSeedSpecificationTrigger[];\n /**\n * LAZY mode access-guard config. **Required** for `mode === LAZY`,\n * **forbidden** otherwise. Sole source of truth for the resource +\n * operation that gates a lazy run; the scope kind comes from\n * {@link scope}`.kind` (Phase 5 audit F-2/F-12/F-18).\n */\n lazyAccess?: DataSeedSpecificationLazyAccessConfig;\n /** Reconciliation mode. */\n mode: DataSeedMode;\n /** Per-seed monotonic version (D5). */\n version: number;\n /**\n * Dotted-path field names the seed owns.\n *\n * Optional, and absent means \"owns nothing\" — identical in meaning to `[]`.\n * Declare it when `mode in {UPGRADE, SYNC}`; `UPGRADE` rejects an empty or\n * absent list, since an upgrade with nothing to re-apply is a no-op. OMIT it\n * for `ADDITIVE` and `LAZY`, which never consult the list.\n *\n * Deliberately NOT normalized to `[]` on the way in. Unlike the runtime\n * authoring contract — where `createDataSeedDefinition` parses through Zod and\n * a `.default([])` materializes before any consumer sees the value — this spec\n * layer has no parse step: `dataSeedSpecification` returns its input verbatim,\n * and `buildDataSeedSpecificationMap` accepts hand-built configs that never\n * pass through the factory at all. Faking a guarantee in one of those two\n * entry points would leave the other producing `undefined`, so the optionality\n * is surfaced honestly and readers treat absent as empty.\n */\n managedFields?: string[];\n\n /** Why this seed exists and what it gives the user. */\n purpose: string;\n /**\n * Human summary of the entries (or the entry-generation logic) so companion\n * prompts can describe \"what data this seed plants\" without inspecting the\n * runtime declaration.\n */\n entriesAuthoringSummary: string;\n\n /**\n * Translatable description for app-level surfaces that show seeded content\n * provenance (e.g. an admin back-office \"About this template\" panel).\n */\n description?: TranslationSlotSpecification;\n /** Designer rationale: why this seed shape over an alternative. */\n rationale?: string;\n\n /**\n * Required when `mode === SYNC` (D3 — destructive semantics must be\n * declared explicitly here too, not just at the runtime layer).\n */\n onOrphan?: DataSeedSyncOrphanPolicy;\n\n /** Import-oriented coding/transposition metadata. */\n codeHandling?: DataSeedSpecificationCodeHandling;\n}\n\n/** Keyed by `seedKey`. */\nexport type DataSeedSpecification = Record<string, DataSeedSpecificationConfig>;\n\n// ---------------------------------------------------------------------------\n// Factory + map builder\n// ---------------------------------------------------------------------------\n\n/**\n * Author a {@link DataSeedSpecificationConfig}. Runs\n * {@link validateDataSeedSpecification} and returns the input verbatim.\n *\n * Shape mirrors `systemEmailTemplateSpecificationFromRegistryEntry` minus the\n * runtime registry stamping — data seeds do not yet have a runtime registry\n * (Phase 2 adds `DataSeedRegistry`).\n */\nexport function dataSeedSpecification(\n specification: DataSeedSpecificationConfig,\n): DataSeedSpecificationConfig {\n validateDataSeedSpecification(specification);\n return specification;\n}\n\n/**\n * Assemble a keyed {@link DataSeedSpecification} map from authored\n * specifications. Throws on duplicate `seedKey` and re-runs\n * {@link validateDataSeedSpecification} per entry so the same fail-closed\n * contract applies to factory-built and hand-built configs alike.\n */\nexport function buildDataSeedSpecificationMap(\n ...specifications: DataSeedSpecificationConfig[]\n): DataSeedSpecification {\n const result: DataSeedSpecification = {};\n for (const specification of specifications) {\n if (!specification.seedKey || !specification.seedKey.trim()) {\n throw new Error(\n 'buildDataSeedSpecificationMap(): received a specification with an empty `seedKey`.',\n );\n }\n validateDataSeedSpecification(specification);\n if (result[specification.seedKey]) {\n throw new Error(\n `buildDataSeedSpecificationMap(): duplicate seedKey \"${specification.seedKey}\".`,\n );\n }\n result[specification.seedKey] = specification;\n }\n return result;\n}\n\n// ---------------------------------------------------------------------------\n// Validator (fail-closed structural contract)\n// ---------------------------------------------------------------------------\n\n/**\n * Fail-closed structural contract for one data-seed specification.\n *\n * Covers:\n * - Identity strings non-empty trimmed (`seedKey`, `resourceType`,\n * `purpose`, `entriesAuthoringSummary`).\n * - At least one trigger.\n * - The §3.6 trigger × mode matrix (per trigger) — same source of truth as\n * `createDataSeedDefinition`.\n * - `mode === SYNC` ⇒ `onOrphan` provided (D3).\n * - `mode === UPGRADE` ⇒ `managedFields` non-empty (absent counts as empty).\n * - `mode === LAZY` ⇒ exactly one trigger of kind `lazyAccess`.\n * - `scope.kind === 'custom'` ⇒ `relatedResourceType` provided.\n * - When `description` is authored its `purpose` is non-empty trimmed.\n *\n * NOT a duplicate of the runtime factory's check — the factory enforces the\n * same rules on the runtime authoring shape; this enforces them on the spec\n * authoring shape (no `entries`/`entry`/`migrators`/`renames` to validate\n * here, only the semantic overlay).\n */\nexport function validateDataSeedSpecification(\n specification: DataSeedSpecificationConfig,\n): void {\n if (!specification.seedKey || !specification.seedKey.trim()) {\n throw new Error('data-seed specification: `seedKey` must be a non-empty trimmed string.');\n }\n const errorPrefix = `data-seed specification \"${specification.seedKey}\":`;\n\n if (!specification.resourceType || !specification.resourceType.trim()) {\n throw new Error(`${errorPrefix} \\`resourceType\\` must be a non-empty trimmed string.`);\n }\n if (!specification.purpose || !specification.purpose.trim()) {\n throw new Error(`${errorPrefix} \\`purpose\\` must be a non-empty trimmed prose slot.`);\n }\n if (!specification.entriesAuthoringSummary || !specification.entriesAuthoringSummary.trim()) {\n throw new Error(\n `${errorPrefix} \\`entriesAuthoringSummary\\` must be a non-empty trimmed prose slot — companion prompts depend on it for grounding.`,\n );\n }\n // Trigger / lazyAccess mutual exclusivity (Phase 5 audit F-2/F-12/F-18).\n if (specification.mode === DataSeedMode.LAZY) {\n if (specification.triggers !== undefined) {\n throw new Error(\n `${errorPrefix} mode=LAZY must not declare \\`triggers\\` — author a single \\`lazyAccess\\` block instead; the \\`LAZY_ACCESS\\` trigger is auto-derived from it (Phase 5 audit F-2/F-12/F-18).`,\n );\n }\n if (!specification.lazyAccess) {\n throw new Error(\n `${errorPrefix} mode=LAZY requires a \\`lazyAccess\\` block (\\`onResource\\` + \\`onOperation\\`).`,\n );\n }\n if (!specification.lazyAccess.onResource || !specification.lazyAccess.onResource.trim()) {\n throw new Error(\n `${errorPrefix} \\`lazyAccess.onResource\\` must be a non-empty trimmed string.`,\n );\n }\n if (!specification.lazyAccess.onOperation || !specification.lazyAccess.onOperation.trim()) {\n throw new Error(\n `${errorPrefix} \\`lazyAccess.onOperation\\` must be a non-empty trimmed string.`,\n );\n }\n } else {\n if (specification.lazyAccess !== undefined) {\n throw new Error(\n `${errorPrefix} \\`lazyAccess\\` is only valid for mode=LAZY (received mode=${specification.mode}).`,\n );\n }\n if (!specification.triggers || specification.triggers.length === 0) {\n throw new Error(`${errorPrefix} at least one trigger is required for non-LAZY modes.`);\n }\n }\n\n // §3.6 matrix — single source of truth. For LAZY seeds we synthesize the\n // auto-derived trigger so the matrix validator still runs against it.\n const triggersForMatrix: DataSeedTrigger[] =\n specification.mode === DataSeedMode.LAZY\n ? [\n {\n triggerKind: DataSeedTriggerKind.LAZY_ACCESS,\n resourceType: specification.lazyAccess!.onResource,\n operation: specification.lazyAccess!.onOperation,\n },\n ]\n : specification.triggers!;\n for (const trigger of triggersForMatrix) {\n validateDataSeedTriggerModeCombination({\n seedKey: specification.seedKey,\n mode: specification.mode,\n trigger,\n });\n }\n\n // Mode-specific extras.\n if (specification.mode === DataSeedMode.SYNC && specification.onOrphan === undefined) {\n throw new Error(\n `${errorPrefix} mode=SYNC requires an explicit \\`onOrphan\\` policy (D3).`,\n );\n }\n // #2117 review F5: the same predicate as the authoring factory, so a specification cannot describe a seed the factory refuses.\n if (specification.onOrphan !== undefined && !isAuthorableDataSeedOrphanPolicy(specification.onOrphan)) {\n throw new Error(\n `${errorPrefix} \\`onOrphan: ${specification.onOrphan}\\` runs only through an external-data pipeline's scrub door; an authored seed cannot declare it.`,\n );\n }\n // Absent and `[]` are the same statement (\"owns nothing\"), and both are\n // invalid for UPGRADE — so the guard collapses them rather than treating an\n // omission as a pass. Fail-closed: omitting the field cannot smuggle an\n // UPGRADE spec past the check.\n if (specification.mode === DataSeedMode.UPGRADE && (specification.managedFields ?? []).length === 0) {\n throw new Error(\n `${errorPrefix} mode=UPGRADE requires a non-empty \\`managedFields\\` list.`,\n );\n }\n if (specification.scope.kind === 'custom' && !specification.scope.relatedResourceType) {\n throw new Error(\n `${errorPrefix} scope.kind='custom' requires \\`scope.relatedResourceType\\`.`,\n );\n }\n\n if (specification.description !== undefined) {\n if (!specification.description.purpose || !specification.description.purpose.trim()) {\n throw new Error(\n `${errorPrefix} \\`description.purpose\\` must be a non-empty trimmed prose slot when authored (omit \\`description\\` entirely instead of declaring an empty purpose).`,\n );\n }\n }\n\n if (specification.codeHandling?.notes) {\n for (const [index, value] of specification.codeHandling.notes.entries()) {\n if (typeof value !== 'string' || !value.trim()) {\n throw new Error(\n `${errorPrefix} \\`codeHandling.notes[${index}]\\` must be a non-empty trimmed string.`,\n );\n }\n }\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { DomainPlanTenancyModel, DomainRelationshipCardinalityIntent, DomainRelationshipOwnershipIntent, type DomainPlanOutputSet } from './domain-plan-output-set.schemas';
|
|
2
|
+
import { DomainPlanEngineRealization, DomainPlanTenancyModel, DomainRelationshipCardinalityIntent, DomainRelationshipOwnershipIntent, type DomainPlanOutputSet } from './domain-plan-output-set.schemas';
|
|
3
3
|
/** Strict provider-facing module shape: every field must be emitted explicitly. */
|
|
4
4
|
export declare const DomainPlanGeneratedModuleSchema: z.ZodObject<{
|
|
5
5
|
relatedModuleId: z.ZodString;
|
|
@@ -32,6 +32,37 @@ export declare const DomainPlanOutputSetGenerationSchema: z.ZodObject<{
|
|
|
32
32
|
* decision, and what lets `bottom_up.foundation` stop re-asking a question the plan already answered.
|
|
33
33
|
*/
|
|
34
34
|
tenancy: z.ZodEnum<typeof DomainPlanTenancyModel>;
|
|
35
|
+
/**
|
|
36
|
+
* REQUIRED here, and an empty list is an answer (#2492): the requirements met by what the engine
|
|
37
|
+
* provides rather than by a module. Required for the same reason as `tenancy` — a plan that never says
|
|
38
|
+
* a role requirement is the engine's has silently decided it is a module's, which is how an access-role
|
|
39
|
+
* resource nothing reads came to be planned.
|
|
40
|
+
*/
|
|
41
|
+
engineRealizedRequirements: z.ZodArray<z.ZodObject<{
|
|
42
|
+
requirementRef: z.ZodString;
|
|
43
|
+
realization: z.ZodEnum<typeof DomainPlanEngineRealization>;
|
|
44
|
+
rationale: z.ZodString;
|
|
45
|
+
}, z.core.$strict>>;
|
|
46
|
+
/**
|
|
47
|
+
* REQUIRED (#2491): the lifecycle of every resource that moves through states. An empty list is an
|
|
48
|
+
* answer — that no resource does — and a plan that leaves it out has decided, silently, that every status
|
|
49
|
+
* is a field users edit.
|
|
50
|
+
*/
|
|
51
|
+
lifecycles: z.ZodArray<z.ZodObject<{
|
|
52
|
+
resourceRef: z.ZodString;
|
|
53
|
+
states: z.ZodArray<z.ZodString>;
|
|
54
|
+
initialState: z.ZodString;
|
|
55
|
+
transitions: z.ZodArray<z.ZodObject<{
|
|
56
|
+
transitionRef: z.ZodString;
|
|
57
|
+
from: z.ZodArray<z.ZodString>;
|
|
58
|
+
to: z.ZodString;
|
|
59
|
+
performedBy: z.ZodString;
|
|
60
|
+
createsResourceRef: z.ZodNullable<z.ZodString>;
|
|
61
|
+
stampsField: z.ZodNullable<z.ZodString>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
lockedStates: z.ZodArray<z.ZodString>;
|
|
64
|
+
finalStates: z.ZodArray<z.ZodString>;
|
|
65
|
+
}, z.core.$strict>>;
|
|
35
66
|
modules: z.ZodArray<z.ZodObject<{
|
|
36
67
|
relatedModuleId: z.ZodString;
|
|
37
68
|
purpose: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-plan-output-set-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/domain-plan/domain-plan-output-set-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,
|
|
1
|
+
{"version":3,"file":"domain-plan-output-set-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/domain-plan/domain-plan-output-set-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,2BAA2B,EAE3B,sBAAsB,EACtB,mCAAmC,EACnC,iCAAiC,EAGjC,KAAK,mBAAmB,EACzB,MAAM,kCAAkC,CAAC;AAI1C,mFAAmF;AACnF,eAAO,MAAM,+BAA+B;;;;;;;;;kBAS1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,gFAAgF;AAChF,eAAO,MAAM,uCAAuC;;;;;;;kBAOlD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAExG,uEAAuE;AACvE,eAAO,MAAM,mCAAmC;;IAE9C;;;;;OAKG;;IAEH;;;;;OAKG;;;;;;IAMH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkBH,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,mFAAmF;AACnF,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB,CAoBtF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { DomainPlanOutputSetSchema, DomainPlanTenancyModel, DomainRelationshipCardinalityIntent, DomainRelationshipOwnershipIntent, } from './domain-plan-output-set.schemas.js';
|
|
2
|
+
import { DomainPlanEngineRealization, DomainPlanOutputSetSchema, DomainPlanTenancyModel, DomainRelationshipCardinalityIntent, DomainRelationshipOwnershipIntent, DomainTransitionRefSchema, DomainTransitionStampsFieldSchema, } from './domain-plan-output-set.schemas.js';
|
|
3
3
|
const NonEmptyStringSchema = z.string().trim().min(1);
|
|
4
4
|
/** Strict provider-facing module shape: every field must be emitted explicitly. */
|
|
5
5
|
export const DomainPlanGeneratedModuleSchema = z.strictObject({
|
|
@@ -31,6 +31,37 @@ export const DomainPlanOutputSetGenerationSchema = z.strictObject({
|
|
|
31
31
|
* decision, and what lets `bottom_up.foundation` stop re-asking a question the plan already answered.
|
|
32
32
|
*/
|
|
33
33
|
tenancy: z.enum(DomainPlanTenancyModel),
|
|
34
|
+
/**
|
|
35
|
+
* REQUIRED here, and an empty list is an answer (#2492): the requirements met by what the engine
|
|
36
|
+
* provides rather than by a module. Required for the same reason as `tenancy` — a plan that never says
|
|
37
|
+
* a role requirement is the engine's has silently decided it is a module's, which is how an access-role
|
|
38
|
+
* resource nothing reads came to be planned.
|
|
39
|
+
*/
|
|
40
|
+
engineRealizedRequirements: z.array(z.strictObject({
|
|
41
|
+
requirementRef: NonEmptyStringSchema,
|
|
42
|
+
realization: z.enum(DomainPlanEngineRealization),
|
|
43
|
+
rationale: NonEmptyStringSchema,
|
|
44
|
+
})),
|
|
45
|
+
/**
|
|
46
|
+
* REQUIRED (#2491): the lifecycle of every resource that moves through states. An empty list is an
|
|
47
|
+
* answer — that no resource does — and a plan that leaves it out has decided, silently, that every status
|
|
48
|
+
* is a field users edit.
|
|
49
|
+
*/
|
|
50
|
+
lifecycles: z.array(z.strictObject({
|
|
51
|
+
resourceRef: NonEmptyStringSchema,
|
|
52
|
+
states: z.array(NonEmptyStringSchema).min(2),
|
|
53
|
+
initialState: NonEmptyStringSchema,
|
|
54
|
+
transitions: z.array(z.strictObject({
|
|
55
|
+
transitionRef: DomainTransitionRefSchema,
|
|
56
|
+
from: z.array(NonEmptyStringSchema).min(1),
|
|
57
|
+
to: NonEmptyStringSchema,
|
|
58
|
+
performedBy: NonEmptyStringSchema,
|
|
59
|
+
createsResourceRef: NonEmptyStringSchema.nullable(),
|
|
60
|
+
stampsField: DomainTransitionStampsFieldSchema.nullable(),
|
|
61
|
+
})).min(1),
|
|
62
|
+
lockedStates: z.array(NonEmptyStringSchema),
|
|
63
|
+
finalStates: z.array(NonEmptyStringSchema),
|
|
64
|
+
})),
|
|
34
65
|
modules: z.array(DomainPlanGeneratedModuleSchema).min(1),
|
|
35
66
|
relationships: z.array(DomainRelationshipDraftGenerationSchema),
|
|
36
67
|
});
|
|
@@ -40,6 +71,15 @@ export function parseDomainPlanOutputSetGeneration(input) {
|
|
|
40
71
|
return DomainPlanOutputSetSchema.parse({
|
|
41
72
|
schemaVersion: generated.schemaVersion,
|
|
42
73
|
tenancy: generated.tenancy,
|
|
74
|
+
engineRealizedRequirements: generated.engineRealizedRequirements,
|
|
75
|
+
lifecycles: generated.lifecycles.map((lifecycle) => ({
|
|
76
|
+
...lifecycle,
|
|
77
|
+
transitions: lifecycle.transitions.map(({ createsResourceRef, stampsField, ...transition }) => ({
|
|
78
|
+
...transition,
|
|
79
|
+
...(createsResourceRef === null ? {} : { createsResourceRef }),
|
|
80
|
+
...(stampsField === null ? {} : { stampsField }),
|
|
81
|
+
})),
|
|
82
|
+
})),
|
|
43
83
|
modules: generated.modules.map(({ businessDomain, ...module }) => ({
|
|
44
84
|
...module,
|
|
45
85
|
...(businessDomain === null ? {} : { businessDomain }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain-plan-output-set-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/domain-plan/domain-plan-output-set-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,mCAAmC,EACnC,iCAAiC,GAElC,MAAM,kCAAkC,CAAC;AAE1C,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEtD,mFAAmF;AACnF,MAAM,CAAC,MA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AAC;IACnE,OAAO,yBAAyB,CAAC,KAAK,CAAC;QACrC,aAAa,EAAE,SAAS,CAAC,aAAa;QACtC,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;YACjE,GAAG,MAAM;YACT,GAAG,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC;SACvD,CAAC,CAAC;QACH,aAAa,EAAE,SAAS,CAAC,aAAa;KACvC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport {\n DomainPlanOutputSetSchema,\n DomainPlanTenancyModel,\n DomainRelationshipCardinalityIntent,\n DomainRelationshipOwnershipIntent,\n type DomainPlanOutputSet,\n} from './domain-plan-output-set.schemas';\n\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/** Strict provider-facing module shape: every field must be emitted explicitly. */\nexport const DomainPlanGeneratedModuleSchema = z.strictObject({\n relatedModuleId: NonEmptyStringSchema,\n purpose: NonEmptyStringSchema,\n businessCapability: NonEmptyStringSchema,\n businessDomain: NonEmptyStringSchema.nullable(),\n primaryActors: z.array(NonEmptyStringSchema),\n mainResources: z.array(NonEmptyStringSchema),\n supportingResources: z.array(NonEmptyStringSchema),\n integrationSurfaces: z.array(NonEmptyStringSchema),\n});\nexport type DomainPlanGeneratedModule = z.infer<typeof DomainPlanGeneratedModuleSchema>;\n\n/** Strict provider-facing relationship shape used before permissive staging. */\nexport const DomainRelationshipDraftGenerationSchema = z.strictObject({\n relationshipRef: NonEmptyStringSchema,\n sourceResourceRef: NonEmptyStringSchema,\n targetResourceRef: NonEmptyStringSchema,\n cardinalityIntent: z.enum(DomainRelationshipCardinalityIntent),\n ownershipIntent: z.enum(DomainRelationshipOwnershipIntent),\n rationale: NonEmptyStringSchema,\n});\nexport type DomainRelationshipDraftGeneration = z.infer<typeof DomainRelationshipDraftGenerationSchema>;\n\n/** One indivisible provider response for both destination families. */\nexport const DomainPlanOutputSetGenerationSchema = z.strictObject({\n schemaVersion: z.literal(1),\n /**\n * REQUIRED here though optional on the family schema. A derivation that does not state its\n * tenancy has made the decision silently — and it does make one: wonder-crm's plan modelled a\n * workspace and a membership without ever being asked. Stating it is what lets a reviewer see the\n * decision, and what lets `bottom_up.foundation` stop re-asking a question the plan already answered.\n */\n tenancy: z.enum(DomainPlanTenancyModel),\n modules: z.array(DomainPlanGeneratedModuleSchema).min(1),\n relationships: z.array(DomainRelationshipDraftGenerationSchema),\n});\nexport type DomainPlanOutputSetGeneration = z.infer<typeof DomainPlanOutputSetGenerationSchema>;\n\n/** Normalize a strict provider response into the permissive persisted contract. */\nexport function parseDomainPlanOutputSetGeneration(input: unknown): DomainPlanOutputSet {\n const generated = DomainPlanOutputSetGenerationSchema.parse(input);\n return DomainPlanOutputSetSchema.parse({\n schemaVersion: generated.schemaVersion,\n tenancy: generated.tenancy,\n modules: generated.modules.map(({ businessDomain, ...module }) => ({\n ...module,\n ...(businessDomain === null ? {} : { businessDomain }),\n })),\n relationships: generated.relationships,\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"domain-plan-output-set-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/domain-plan/domain-plan-output-set-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,sBAAsB,EACtB,mCAAmC,EACnC,iCAAiC,EACjC,yBAAyB,EACzB,iCAAiC,GAElC,MAAM,kCAAkC,CAAC;AAE1C,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEtD,mFAAmF;AACnF,MAAM,CAAC,MAAM,+BAA+B,GAAG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AAG,CAAC,CAAC,EAAE,kBAAkB,EAAE,WAAW,EAAE,GAAG,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;gBAC9F,GAAG,UAAU;gBACb,GAAG,CAAC,kBAAkB,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,CAAC;gBAC9D,GAAG,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC;aACjD,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;YACjE,GAAG,MAAM;YACT,GAAG,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC;SACvD,CAAC,CAAC;QACH,aAAa,EAAE,SAAS,CAAC,aAAa;KACvC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport {\n DomainPlanEngineRealization,\n DomainPlanOutputSetSchema,\n DomainPlanTenancyModel,\n DomainRelationshipCardinalityIntent,\n DomainRelationshipOwnershipIntent,\n DomainTransitionRefSchema,\n DomainTransitionStampsFieldSchema,\n type DomainPlanOutputSet,\n} from './domain-plan-output-set.schemas';\n\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/** Strict provider-facing module shape: every field must be emitted explicitly. */\nexport const DomainPlanGeneratedModuleSchema = z.strictObject({\n relatedModuleId: NonEmptyStringSchema,\n purpose: NonEmptyStringSchema,\n businessCapability: NonEmptyStringSchema,\n businessDomain: NonEmptyStringSchema.nullable(),\n primaryActors: z.array(NonEmptyStringSchema),\n mainResources: z.array(NonEmptyStringSchema),\n supportingResources: z.array(NonEmptyStringSchema),\n integrationSurfaces: z.array(NonEmptyStringSchema),\n});\nexport type DomainPlanGeneratedModule = z.infer<typeof DomainPlanGeneratedModuleSchema>;\n\n/** Strict provider-facing relationship shape used before permissive staging. */\nexport const DomainRelationshipDraftGenerationSchema = z.strictObject({\n relationshipRef: NonEmptyStringSchema,\n sourceResourceRef: NonEmptyStringSchema,\n targetResourceRef: NonEmptyStringSchema,\n cardinalityIntent: z.enum(DomainRelationshipCardinalityIntent),\n ownershipIntent: z.enum(DomainRelationshipOwnershipIntent),\n rationale: NonEmptyStringSchema,\n});\nexport type DomainRelationshipDraftGeneration = z.infer<typeof DomainRelationshipDraftGenerationSchema>;\n\n/** One indivisible provider response for both destination families. */\nexport const DomainPlanOutputSetGenerationSchema = z.strictObject({\n schemaVersion: z.literal(1),\n /**\n * REQUIRED here though optional on the family schema. A derivation that does not state its\n * tenancy has made the decision silently — and it does make one: wonder-crm's plan modelled a\n * workspace and a membership without ever being asked. Stating it is what lets a reviewer see the\n * decision, and what lets `bottom_up.foundation` stop re-asking a question the plan already answered.\n */\n tenancy: z.enum(DomainPlanTenancyModel),\n /**\n * REQUIRED here, and an empty list is an answer (#2492): the requirements met by what the engine\n * provides rather than by a module. Required for the same reason as `tenancy` — a plan that never says\n * a role requirement is the engine's has silently decided it is a module's, which is how an access-role\n * resource nothing reads came to be planned.\n */\n engineRealizedRequirements: z.array(z.strictObject({\n requirementRef: NonEmptyStringSchema,\n realization: z.enum(DomainPlanEngineRealization),\n rationale: NonEmptyStringSchema,\n })),\n /**\n * REQUIRED (#2491): the lifecycle of every resource that moves through states. An empty list is an\n * answer — that no resource does — and a plan that leaves it out has decided, silently, that every status\n * is a field users edit.\n */\n lifecycles: z.array(z.strictObject({\n resourceRef: NonEmptyStringSchema,\n states: z.array(NonEmptyStringSchema).min(2),\n initialState: NonEmptyStringSchema,\n transitions: z.array(z.strictObject({\n transitionRef: DomainTransitionRefSchema,\n from: z.array(NonEmptyStringSchema).min(1),\n to: NonEmptyStringSchema,\n performedBy: NonEmptyStringSchema,\n createsResourceRef: NonEmptyStringSchema.nullable(),\n stampsField: DomainTransitionStampsFieldSchema.nullable(),\n })).min(1),\n lockedStates: z.array(NonEmptyStringSchema),\n finalStates: z.array(NonEmptyStringSchema),\n })),\n modules: z.array(DomainPlanGeneratedModuleSchema).min(1),\n relationships: z.array(DomainRelationshipDraftGenerationSchema),\n});\nexport type DomainPlanOutputSetGeneration = z.infer<typeof DomainPlanOutputSetGenerationSchema>;\n\n/** Normalize a strict provider response into the permissive persisted contract. */\nexport function parseDomainPlanOutputSetGeneration(input: unknown): DomainPlanOutputSet {\n const generated = DomainPlanOutputSetGenerationSchema.parse(input);\n return DomainPlanOutputSetSchema.parse({\n schemaVersion: generated.schemaVersion,\n tenancy: generated.tenancy,\n engineRealizedRequirements: generated.engineRealizedRequirements,\n lifecycles: generated.lifecycles.map((lifecycle) => ({\n ...lifecycle,\n transitions: lifecycle.transitions.map(({ createsResourceRef, stampsField, ...transition }) => ({\n ...transition,\n ...(createsResourceRef === null ? {} : { createsResourceRef }),\n ...(stampsField === null ? {} : { stampsField }),\n })),\n })),\n modules: generated.modules.map(({ businessDomain, ...module }) => ({\n ...module,\n ...(businessDomain === null ? {} : { businessDomain }),\n })),\n relationships: generated.relationships,\n });\n}\n"]}
|
|
@@ -21,7 +21,39 @@ export declare enum DomainPlanValidationIssueCode {
|
|
|
21
21
|
* intents cannot both be true. Refused here rather than left to the semantic judge, which used to
|
|
22
22
|
* catch it as a GAP after the model had already spent its turn.
|
|
23
23
|
*/
|
|
24
|
-
RELATIONSHIP_OWNERSHIP_CONTRADICTS_CARDINALITY = "relationship-ownership-contradicts-cardinality"
|
|
24
|
+
RELATIONSHIP_OWNERSHIP_CONTRADICTS_CARDINALITY = "relationship-ownership-contradicts-cardinality",
|
|
25
|
+
/** The same requirement left to the same engine concern twice (#2492): one of the entries says nothing. */
|
|
26
|
+
DUPLICATE_ENGINE_REALIZED_REQUIREMENT = "duplicate-engine-realized-requirement",
|
|
27
|
+
/** #2491 — a lifecycle for a resource no module inventories: the build has nothing to attach it to. */
|
|
28
|
+
LIFECYCLE_RESOURCE_NOT_INVENTORIED = "lifecycle-resource-not-inventoried",
|
|
29
|
+
/** Two lifecycles for one resource: a resource has one set of states. */
|
|
30
|
+
DUPLICATE_LIFECYCLE = "duplicate-lifecycle",
|
|
31
|
+
/** A state named by `initialState`, a transition, `lockedStates` or `finalStates` that `states` does not declare. */
|
|
32
|
+
LIFECYCLE_STATE_UNDECLARED = "lifecycle-state-undeclared",
|
|
33
|
+
/** One state listed twice in a lifecycle's `states`. */
|
|
34
|
+
DUPLICATE_LIFECYCLE_STATE = "duplicate-lifecycle-state",
|
|
35
|
+
/**
|
|
36
|
+
* A transition that starts from a FINAL state (#2491 review F3). A final state is TERMINAL, so a plan that also
|
|
37
|
+
* moves the record out contradicts itself. Refused: the artifact would be untrue, whichever half was meant. A
|
|
38
|
+
* state that only stops EDITS (an issued invoice later marked paid) is a locked state, which a transition may
|
|
39
|
+
* leave.
|
|
40
|
+
*/
|
|
41
|
+
LIFECYCLE_TRANSITION_FROM_FINAL_STATE = "lifecycle-transition-from-final-state",
|
|
42
|
+
/**
|
|
43
|
+
* A transition named after a core operation (`update`, `delete`, …). The build turns a transition into an
|
|
44
|
+
* operation of that name, which would collide with the core operation the resource already has and read as
|
|
45
|
+
* built before anything ran (#2491 review). Name the business verb instead (`archive`, not `delete`).
|
|
46
|
+
*/
|
|
47
|
+
LIFECYCLE_TRANSITION_NAMES_A_CORE_OPERATION = "lifecycle-transition-names-a-core-operation",
|
|
48
|
+
/**
|
|
49
|
+
* A state listed as both locked and final. A WARNING: final already implies locked, so nothing is untrue, but
|
|
50
|
+
* the list says less than it should about whether the record still moves on.
|
|
51
|
+
*/
|
|
52
|
+
LIFECYCLE_STATE_LOCKED_AND_FINAL = "lifecycle-state-locked-and-final",
|
|
53
|
+
/** One verb declared twice on a lifecycle: it becomes ONE operation. */
|
|
54
|
+
DUPLICATE_LIFECYCLE_TRANSITION = "duplicate-lifecycle-transition",
|
|
55
|
+
/** A conversion that creates a resource no module inventories. */
|
|
56
|
+
LIFECYCLE_CONVERSION_TARGET_NOT_INVENTORIED = "lifecycle-conversion-target-not-inventoried"
|
|
25
57
|
}
|
|
26
58
|
export declare const DomainPlanValidationIssueSchema: z.ZodObject<{
|
|
27
59
|
code: z.ZodEnum<typeof DomainPlanValidationIssueCode>;
|