@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
|
@@ -8,6 +8,11 @@ export var AssuranceSourceTier;
|
|
|
8
8
|
(function (AssuranceSourceTier) {
|
|
9
9
|
AssuranceSourceTier["AUTHORITATIVE_OPEN_PUBLIC"] = "AUTHORITATIVE_OPEN_PUBLIC";
|
|
10
10
|
AssuranceSourceTier["PUBLIC_ADVISORY_MAPPING"] = "PUBLIC_ADVISORY_MAPPING";
|
|
11
|
+
/**
|
|
12
|
+
* Openly published guidance that no government or standards body issued: OWASP's and MITRE's (#2837). It is
|
|
13
|
+
* advisory, never authoritative, and it may be cited as what the field asks, never as what binds anyone.
|
|
14
|
+
*/
|
|
15
|
+
AssuranceSourceTier["OPEN_COMMUNITY"] = "OPEN_COMMUNITY";
|
|
11
16
|
AssuranceSourceTier["RESTRICTED_PROPRIETARY"] = "RESTRICTED_PROPRIETARY";
|
|
12
17
|
AssuranceSourceTier["PRIVATE_CUSTOMER"] = "PRIVATE_CUSTOMER";
|
|
13
18
|
})(AssuranceSourceTier || (AssuranceSourceTier = {}));
|
|
@@ -17,6 +22,12 @@ export var AssuranceSourceAuthorityKind;
|
|
|
17
22
|
AssuranceSourceAuthorityKind["GOVERNMENT_GUIDANCE"] = "GOVERNMENT_GUIDANCE";
|
|
18
23
|
AssuranceSourceAuthorityKind["LAW_OR_REGULATION"] = "LAW_OR_REGULATION";
|
|
19
24
|
AssuranceSourceAuthorityKind["COMMUNITY_MAPPING"] = "COMMUNITY_MAPPING";
|
|
25
|
+
/**
|
|
26
|
+
* Guidance written by an open community project rather than a government (OWASP's AI guidance, MITRE ATLAS,
|
|
27
|
+
* #2837). Distinct from a {@link AssuranceSourceAuthorityKind.COMMUNITY_MAPPING}, which crosswalks other
|
|
28
|
+
* sources: this states requirements of its own. Usually non-territorial ({@link AssuranceSourceTerritoriality}).
|
|
29
|
+
*/
|
|
30
|
+
AssuranceSourceAuthorityKind["COMMUNITY_GUIDANCE"] = "COMMUNITY_GUIDANCE";
|
|
20
31
|
AssuranceSourceAuthorityKind["PROPRIETARY_STANDARD"] = "PROPRIETARY_STANDARD";
|
|
21
32
|
AssuranceSourceAuthorityKind["PRIVATE_OBLIGATION_SET"] = "PRIVATE_OBLIGATION_SET";
|
|
22
33
|
})(AssuranceSourceAuthorityKind || (AssuranceSourceAuthorityKind = {}));
|
|
@@ -44,6 +55,26 @@ export var AssuranceSourceLifecycleStatus;
|
|
|
44
55
|
/** No longer an authority at all; also withdraws the rights review, so a return means re-reviewing. */
|
|
45
56
|
AssuranceSourceLifecycleStatus["WITHDRAWN"] = "WITHDRAWN";
|
|
46
57
|
})(AssuranceSourceLifecycleStatus || (AssuranceSourceLifecycleStatus = {}));
|
|
58
|
+
/**
|
|
59
|
+
* Whether a source speaks for a territory at all (#2837).
|
|
60
|
+
*
|
|
61
|
+
* A law, a regulator's guidance and a government publication are each issued by a jurisdiction, and
|
|
62
|
+
* `jurisdictionalReach` names it. Community guidance such as OWASP's or MITRE's is issued by no
|
|
63
|
+
* jurisdiction, and the reach field cannot be honest about it: any slug would be a placeholder, and
|
|
64
|
+
* `assessAssuranceJurisdictionCoverage` would then report that place as covered by a source that never
|
|
65
|
+
* claimed it. So a non-territorial source states that it is one, and its reach is empty.
|
|
66
|
+
*
|
|
67
|
+
* Coverage ignores such a source (it reaches nowhere), and territorial applicability
|
|
68
|
+
* (`deriveObjectiveJurisdictionApplicability`) treats it as guidance, which never scopes an objective.
|
|
69
|
+
* A law cannot be non-territorial: the schema refuses the pair.
|
|
70
|
+
*/
|
|
71
|
+
export var AssuranceSourceTerritoriality;
|
|
72
|
+
(function (AssuranceSourceTerritoriality) {
|
|
73
|
+
/** Issued by a jurisdiction; `jurisdictionalReach` names at least one. Every law and government source. */
|
|
74
|
+
AssuranceSourceTerritoriality["TERRITORIAL"] = "TERRITORIAL";
|
|
75
|
+
/** Issued by no jurisdiction (community or industry guidance); `jurisdictionalReach` is empty. */
|
|
76
|
+
AssuranceSourceTerritoriality["NON_TERRITORIAL"] = "NON_TERRITORIAL";
|
|
77
|
+
})(AssuranceSourceTerritoriality || (AssuranceSourceTerritoriality = {}));
|
|
47
78
|
export var AssuranceSourceContentHandling;
|
|
48
79
|
(function (AssuranceSourceContentHandling) {
|
|
49
80
|
AssuranceSourceContentHandling["REFERENCE_ONLY"] = "REFERENCE_ONLY";
|
|
@@ -146,11 +177,25 @@ export const AssuranceSourceRecordSchema = z
|
|
|
146
177
|
* REQUIRED, because a source that states no reach cannot answer the coverage question at all, and
|
|
147
178
|
* an optional field here would silently make every uncovered jurisdiction look considered. This is
|
|
148
179
|
* a curated registry authored in one file — there is no migration cost to requiring it.
|
|
180
|
+
*
|
|
181
|
+
* At least one slug for a TERRITORIAL source and none for a NON_TERRITORIAL one
|
|
182
|
+
* ({@link AssuranceSourceTerritoriality}); an empty reach is never a default.
|
|
149
183
|
*/
|
|
150
|
-
jurisdictionalReach: z.array(JurisdictionSlugSchema)
|
|
184
|
+
jurisdictionalReach: z.array(JurisdictionSlugSchema),
|
|
185
|
+
/** Whether the source is issued by a jurisdiction. Only community guidance is NON_TERRITORIAL. */
|
|
186
|
+
territoriality: z.enum(AssuranceSourceTerritoriality).default(AssuranceSourceTerritoriality.TERRITORIAL),
|
|
151
187
|
scopeLimitations: z.array(z.string().min(1)),
|
|
152
188
|
})
|
|
153
189
|
.superRefine((source, context) => {
|
|
190
|
+
if (source.territoriality === AssuranceSourceTerritoriality.TERRITORIAL && source.jurisdictionalReach.length === 0) {
|
|
191
|
+
context.addIssue({ code: "custom", message: "a territorial source must name at least one jurisdiction it reaches", path: ["jurisdictionalReach"] });
|
|
192
|
+
}
|
|
193
|
+
if (source.territoriality === AssuranceSourceTerritoriality.NON_TERRITORIAL) {
|
|
194
|
+
if (source.jurisdictionalReach.length > 0)
|
|
195
|
+
context.addIssue({ code: "custom", message: "a non-territorial source reaches no jurisdiction; leave jurisdictionalReach empty", path: ["jurisdictionalReach"] });
|
|
196
|
+
if (source.authorityKind === AssuranceSourceAuthorityKind.LAW_OR_REGULATION)
|
|
197
|
+
context.addIssue({ code: "custom", message: "a law is issued by a jurisdiction and cannot be non-territorial", path: ["territoriality"] });
|
|
198
|
+
}
|
|
154
199
|
if (source.contentHandling === AssuranceSourceContentHandling.REFERENCE_ONLY && source.retrievedArtifact) {
|
|
155
200
|
context.addIssue({ code: "custom", message: "reference-only sources cannot claim a retrieved artifact", path: ["retrievedArtifact"] });
|
|
156
201
|
}
|
|
@@ -207,6 +252,71 @@ export const AssuranceSourceRegistrySchema = z
|
|
|
207
252
|
}
|
|
208
253
|
});
|
|
209
254
|
});
|
|
255
|
+
/**
|
|
256
|
+
* One TOP-LEVEL entry of a source, held whether or not any objective answers it (#2837).
|
|
257
|
+
*
|
|
258
|
+
* A source-requirement row of the authority basis exists only where a requirement was reviewed against an
|
|
259
|
+
* objective, so a requirement nothing answers cannot be represented there, and a coverage report built from those
|
|
260
|
+
* rows can only list what Wildo covers, never what it does not. The inventory is the denominator: a source's
|
|
261
|
+
* top-level entries (the AI RMF categories, the UK Code's principles, the OWASP AI Exchange's top-level areas, the
|
|
262
|
+
* AI Act articles a coverage pack lists), each named by a Wildo slug and located in the source. It carries no
|
|
263
|
+
* normative text and no objective. Sub-controls are not inventoried.
|
|
264
|
+
*/
|
|
265
|
+
/**
|
|
266
|
+
* Whether an inventory entry is within what Wildo builds today (#2837).
|
|
267
|
+
*
|
|
268
|
+
* A coverage pack must say "not supported yet" for an entry outside that scope, which is a different answer from "not
|
|
269
|
+
* covered": nothing is missing from a supported scope, the scope itself is not offered. The AI Act's high-risk
|
|
270
|
+
* obligations are the case (#2851): the epic decided a high-risk use is MARKED as not supported, never refused.
|
|
271
|
+
*/
|
|
272
|
+
export var AssuranceSourceRequirementInventoryStanding;
|
|
273
|
+
(function (AssuranceSourceRequirementInventoryStanding) {
|
|
274
|
+
/** Within what Wildo supports: an entry no reviewed row answers is a coverage gap. */
|
|
275
|
+
AssuranceSourceRequirementInventoryStanding["WITHIN_SUPPORTED_SCOPE"] = "WITHIN_SUPPORTED_SCOPE";
|
|
276
|
+
/** Outside what Wildo supports yet; `standingReason` names the scope and its issue. Never answered by a row. */
|
|
277
|
+
AssuranceSourceRequirementInventoryStanding["OUTSIDE_SUPPORTED_SCOPE"] = "OUTSIDE_SUPPORTED_SCOPE";
|
|
278
|
+
})(AssuranceSourceRequirementInventoryStanding || (AssuranceSourceRequirementInventoryStanding = {}));
|
|
279
|
+
export const AssuranceSourceRequirementInventoryEntrySchema = z
|
|
280
|
+
.strictObject({
|
|
281
|
+
source: AssuranceSourceIdentitySchema,
|
|
282
|
+
/** A Wildo descriptive slug, `source-requirement:<…>`, never the source's own control identifier. */
|
|
283
|
+
requirementRef: AssuranceNamespacedRefSchema.refine((ref) => ref.startsWith("source-requirement:"), "an inventory entry is named source-requirement:<slug>"),
|
|
284
|
+
/** Where the entry is in the source: its section, article or principle number, or a URL with its anchor. */
|
|
285
|
+
locator: z.string().trim().min(1),
|
|
286
|
+
/** What the entry is about, in Wildo's words. */
|
|
287
|
+
subject: z.string().trim().min(1),
|
|
288
|
+
standing: z.enum(AssuranceSourceRequirementInventoryStanding).default(AssuranceSourceRequirementInventoryStanding.WITHIN_SUPPORTED_SCOPE),
|
|
289
|
+
/** Why an entry is outside the supported scope, naming the issue that would bring it in. */
|
|
290
|
+
standingReason: z.string().trim().min(1).optional(),
|
|
291
|
+
/**
|
|
292
|
+
* The reviewed source-requirement rows of the same source that sit under this entry (a subcategory, provision or
|
|
293
|
+
* article point of it): the mechanical join from the denominator to what Wildo answers. Empty means no reviewed row
|
|
294
|
+
* answers the entry. Sorted; a test holds every reviewed row of an inventoried source under exactly one entry.
|
|
295
|
+
*/
|
|
296
|
+
answeredBy: z.array(AssuranceNamespacedRefSchema).default([]),
|
|
297
|
+
})
|
|
298
|
+
.superRefine((entry, context) => {
|
|
299
|
+
const outside = entry.standing === AssuranceSourceRequirementInventoryStanding.OUTSIDE_SUPPORTED_SCOPE;
|
|
300
|
+
if (outside && entry.standingReason === undefined)
|
|
301
|
+
context.addIssue({ code: "custom", message: "an entry outside the supported scope says why", path: ["standingReason"] });
|
|
302
|
+
if (!outside && entry.standingReason !== undefined)
|
|
303
|
+
context.addIssue({ code: "custom", message: "only an entry outside the supported scope carries a standing reason", path: ["standingReason"] });
|
|
304
|
+
if (outside && entry.answeredBy.length > 0)
|
|
305
|
+
context.addIssue({ code: "custom", message: "an entry outside the supported scope is answered by no row", path: ["answeredBy"] });
|
|
306
|
+
if (!uniqueValues(entry.answeredBy) || !lexicallySorted(entry.answeredBy))
|
|
307
|
+
context.addIssue({ code: "custom", message: "answeredBy must be unique and sorted", path: ["answeredBy"] });
|
|
308
|
+
});
|
|
309
|
+
export const AssuranceSourceRequirementInventorySchema = z
|
|
310
|
+
.strictObject({
|
|
311
|
+
schemaVersion: z.literal(1),
|
|
312
|
+
entries: z.array(AssuranceSourceRequirementInventoryEntrySchema).min(1),
|
|
313
|
+
})
|
|
314
|
+
.superRefine((inventory, context) => {
|
|
315
|
+
const keys = inventory.entries.map((entry) => `${entry.source.sourceRef}@${entry.source.sourceVersion} ${entry.requirementRef}`);
|
|
316
|
+
if (!uniqueValues(keys) || !lexicallySorted(keys)) {
|
|
317
|
+
context.addIssue({ code: "custom", message: "inventory entries must be unique and sorted by source identity, then requirement", path: ["entries"] });
|
|
318
|
+
}
|
|
319
|
+
});
|
|
210
320
|
export var AssuranceRightsAuthorizationReason;
|
|
211
321
|
(function (AssuranceRightsAuthorizationReason) {
|
|
212
322
|
AssuranceRightsAuthorizationReason["RIGHTS_WITHDRAWN"] = "RIGHTS_WITHDRAWN";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assurance-sources.schemas.js","sourceRoot":"","sources":["../../../../src/assurance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QAAQ,CAAC,MAAM,KAAK,CAAC;gBAC3B,CAAC,CAAC,mCAAmC,CAAC,WAAW;gBACjD,CAAC,CAAC,MAAM;oBACN,CAAC,CAAC,mCAAmC,CAAC,cAAc;oBACpD,CAAC,CAAC,mCAAmC,CAAC,aAAa;YACvD,kBAAkB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE;SAC/E,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AACvC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { JurisdictionSlugSchema, jurisdictionReachCovers } from \"@wildo-ai/saas-models\";\n\nimport { AssuranceIsoDateSchema, AssuranceIsoDateTimeSchema, AssuranceNamespacedRefSchema } from \"./assurance-foundation.schemas\";\n\nconst uniqueValues = (values: readonly string[]): boolean => new Set(values).size === values.length;\nconst compareCanonicalText = (left: string, right: string): number => (left < right ? -1 : left > right ? 1 : 0);\nconst lexicallySorted = (values: readonly string[]): boolean =>\n values.every((value, index) => index === 0 || compareCanonicalText(values[index - 1]!, value) <= 0);\n\nexport enum AssuranceSourceTier {\n AUTHORITATIVE_OPEN_PUBLIC = \"AUTHORITATIVE_OPEN_PUBLIC\",\n PUBLIC_ADVISORY_MAPPING = \"PUBLIC_ADVISORY_MAPPING\",\n RESTRICTED_PROPRIETARY = \"RESTRICTED_PROPRIETARY\",\n PRIVATE_CUSTOMER = \"PRIVATE_CUSTOMER\",\n}\n\nexport enum AssuranceSourceAuthorityKind {\n GOVERNMENT_PUBLICATION = \"GOVERNMENT_PUBLICATION\",\n GOVERNMENT_GUIDANCE = \"GOVERNMENT_GUIDANCE\",\n LAW_OR_REGULATION = \"LAW_OR_REGULATION\",\n COMMUNITY_MAPPING = \"COMMUNITY_MAPPING\",\n PROPRIETARY_STANDARD = \"PROPRIETARY_STANDARD\",\n PRIVATE_OBLIGATION_SET = \"PRIVATE_OBLIGATION_SET\",\n}\n\n/**\n * Where one registered source stands as an AUTHORITY — distinct from its rights review, which says what\n * may be done with it.\n */\nexport enum AssuranceSourceLifecycleStatus {\n /**\n * An authority in use: requirement authorities or document definitions cite it, and it answers for\n * the jurisdictions it reaches. An ACTIVE source that nothing cites buys nothing for its rights\n * review, and the source-coverage guard in the authority-basis tests refuses one (#452).\n */\n ACTIVE = \"ACTIVE\",\n /**\n * Registered and rights-reviewed, but NOT admitted as an authority: nothing may cite it, it answers\n * for no jurisdiction, and a programme cannot hold it applicable. The state for a source that is\n * kept on purpose while the model lacks what would make it citable — say why at the record, so the\n * reason travels with it. Returning to ACTIVE needs no fresh rights review.\n */\n DRAFT = \"DRAFT\",\n /** Replaced by a newer edition; requires `supersededBy`, which must resolve inside the same registry. */\n SUPERSEDED = \"SUPERSEDED\",\n /** No longer an authority at all; also withdraws the rights review, so a return means re-reviewing. */\n WITHDRAWN = \"WITHDRAWN\",\n}\n\nexport enum AssuranceSourceContentHandling {\n REFERENCE_ONLY = \"REFERENCE_ONLY\",\n RETRIEVED_ARTIFACT = \"RETRIEVED_ARTIFACT\",\n}\n\nexport enum AssuranceSourceUse {\n STORE_METADATA = \"STORE_METADATA\",\n STORE_CONTENT = \"STORE_CONTENT\",\n EXTRACT_CONTENT = \"EXTRACT_CONTENT\",\n MODIFY_OR_DERIVE = \"MODIFY_OR_DERIVE\",\n MODEL_INPUT = \"MODEL_INPUT\",\n GENERATE_PROJECTION = \"GENERATE_PROJECTION\",\n REDISTRIBUTE = \"REDISTRIBUTE\",\n COMMERCIAL_USE = \"COMMERCIAL_USE\",\n EXPORT = \"EXPORT\",\n}\n\nexport enum AssuranceSourceUsePermission {\n ALLOWED = \"ALLOWED\",\n PROHIBITED = \"PROHIBITED\",\n REQUIRES_ADDITIONAL_RIGHTS = \"REQUIRES_ADDITIONAL_RIGHTS\",\n UNKNOWN = \"UNKNOWN\",\n}\n\nexport enum AssuranceRightsReviewStatus {\n REVIEWED = \"REVIEWED\",\n WITHDRAWN = \"WITHDRAWN\",\n}\n\nexport const AssuranceSourceIdentitySchema = z.strictObject({\n sourceRef: AssuranceNamespacedRefSchema,\n sourceVersion: z.number().int().positive(),\n});\nexport type AssuranceSourceIdentity = z.infer<typeof AssuranceSourceIdentitySchema>;\n\nexport const AssuranceSourceUseDecisionSchema = z.strictObject({\n use: z.enum(AssuranceSourceUse),\n permission: z.enum(AssuranceSourceUsePermission),\n conditions: z.array(z.string().min(1)),\n});\nexport type AssuranceSourceUseDecision = z.infer<typeof AssuranceSourceUseDecisionSchema>;\n\n/**\n * A complete, reviewed decision matrix. The schema requires one decision for every operation so adding a new operation makes existing records fail closed until reviewed.\n */\nexport const AssuranceSourceRightsSchema = z\n .strictObject({\n rightsRef: AssuranceNamespacedRefSchema,\n rightsVersion: z.number().int().positive(),\n reviewStatus: z.enum(AssuranceRightsReviewStatus),\n basisUrl: z.url(),\n basisSummary: z.string().min(1),\n attributionNotice: z.string().min(1),\n reviewedByRef: AssuranceNamespacedRefSchema,\n reviewedAt: AssuranceIsoDateTimeSchema,\n validUntil: AssuranceIsoDateTimeSchema.optional(),\n useDecisions: z.array(AssuranceSourceUseDecisionSchema),\n })\n .superRefine((rights, context) => {\n const actualUses = rights.useDecisions.map((decision) => decision.use);\n const expectedUses = Object.values(AssuranceSourceUse);\n if (!uniqueValues(actualUses) || actualUses.length !== expectedUses.length || expectedUses.some((use) => !actualUses.includes(use))) {\n context.addIssue({ code: \"custom\", message: \"useDecisions must contain exactly one decision for every AssuranceSourceUse\", path: [\"useDecisions\"] });\n }\n });\nexport type AssuranceSourceRights = z.infer<typeof AssuranceSourceRightsSchema>;\n\n/**\n * Provenance of one retrieval of an external source document.\n *\n * Carries no content digest: an external standard is identified by its EDITION, which is immutable\n * by publication (NIST SP 800-53 Rev 5 is one document forever), so `edition` + `publishedOn` +\n * `canonicalLocator` + `retrievedAt` already say exactly which bytes were read. Hashing the fetch\n * added a step to every source record and answered a question the edition had already answered.\n */\nexport const AssuranceRetrievedSourceArtifactSchema = z.strictObject({\n retrievedAt: AssuranceIsoDateTimeSchema,\n mediaType: z.string().min(1),\n retrievalLocator: z.url(),\n});\nexport type AssuranceRetrievedSourceArtifact = z.infer<typeof AssuranceRetrievedSourceArtifactSchema>;\n\nexport const AssuranceSourceRecordSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n identity: AssuranceSourceIdentitySchema,\n canonicalTitle: z.string().min(1),\n authorityKind: z.enum(AssuranceSourceAuthorityKind),\n tier: z.enum(AssuranceSourceTier),\n edition: z.string().min(1),\n publishedOn: AssuranceIsoDateSchema,\n effectiveOn: AssuranceIsoDateSchema.optional(),\n lifecycleStatus: z.enum(AssuranceSourceLifecycleStatus),\n canonicalLocator: z.url(),\n authorityName: z.string().min(1),\n contentHandling: z.enum(AssuranceSourceContentHandling),\n retrievedArtifact: AssuranceRetrievedSourceArtifactSchema.optional(),\n rights: AssuranceSourceRightsSchema,\n supersededBy: AssuranceSourceIdentitySchema.optional(),\n /**\n * Which jurisdictions' requirements this source STATES (issue #229).\n *\n * The question this answers is \"whose law or guidance is this\", not \"whom does it bind\". GDPR\n * reaches `[\"eu\"]` even though Art. 3(2) binds operators established anywhere: an operator in\n * Brazil serving EU subjects is answered by the EU entry, and adding every country GDPR can bind\n * would make the field useless for the one question it exists for. Do not \"correct\" it that way.\n *\n * REQUIRED, because a source that states no reach cannot answer the coverage question at all, and\n * an optional field here would silently make every uncovered jurisdiction look considered. This is\n * a curated registry authored in one file — there is no migration cost to requiring it.\n */\n jurisdictionalReach: z.array(JurisdictionSlugSchema).min(1),\n scopeLimitations: z.array(z.string().min(1)),\n })\n .superRefine((source, context) => {\n if (source.contentHandling === AssuranceSourceContentHandling.REFERENCE_ONLY && source.retrievedArtifact) {\n context.addIssue({ code: \"custom\", message: \"reference-only sources cannot claim a retrieved artifact\", path: [\"retrievedArtifact\"] });\n }\n if (source.contentHandling === AssuranceSourceContentHandling.RETRIEVED_ARTIFACT && !source.retrievedArtifact) {\n context.addIssue({ code: \"custom\", message: \"retrieved-artifact sources require exact retrieval provenance\", path: [\"retrievedArtifact\"] });\n }\n if (source.lifecycleStatus === AssuranceSourceLifecycleStatus.SUPERSEDED && !source.supersededBy) {\n context.addIssue({ code: \"custom\", message: \"superseded sources require a successor identity\", path: [\"supersededBy\"] });\n }\n if (source.lifecycleStatus !== AssuranceSourceLifecycleStatus.SUPERSEDED && source.supersededBy)\n context.addIssue({ code: \"custom\", message: \"only superseded sources can name a successor identity\", path: [\"supersededBy\"] });\n const rightsAreWithdrawn = source.rights.reviewStatus === AssuranceRightsReviewStatus.WITHDRAWN;\n if (source.lifecycleStatus === AssuranceSourceLifecycleStatus.WITHDRAWN && !rightsAreWithdrawn)\n context.addIssue({ code: \"custom\", message: \"a withdrawn source must also withdraw its rights authorization\", path: [\"rights\", \"reviewStatus\"] });\n });\nexport type AssuranceSourceRecord = z.infer<typeof AssuranceSourceRecordSchema>;\n\nexport const AssuranceSourceRegistrySchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n registryVersion: z.number().int().positive(),\n verifiedAt: AssuranceIsoDateTimeSchema,\n sources: z.array(AssuranceSourceRecordSchema).min(1),\n })\n .superRefine((registry, context) => {\n const identities = registry.sources.map((source) => `${source.identity.sourceRef}@${source.identity.sourceVersion}`);\n if (!uniqueValues(identities) || !lexicallySorted(identities)) {\n context.addIssue({ code: \"custom\", message: \"sources must be unique and lexically sorted by versioned identity\", path: [\"sources\"] });\n }\n const knownIdentities = new Set(identities);\n registry.sources.forEach((source, index) => {\n if (!source.supersededBy) return;\n const sourceKey = `${source.identity.sourceRef}@${source.identity.sourceVersion}`;\n const successorKey = `${source.supersededBy.sourceRef}@${source.supersededBy.sourceVersion}`;\n if (successorKey === sourceKey)\n context.addIssue({ code: \"custom\", message: \"a source cannot supersede itself\", path: [\"sources\", index, \"supersededBy\"] });\n else if (!knownIdentities.has(successorKey))\n context.addIssue({ code: \"custom\", message: \"a successor identity must resolve inside the same registry snapshot\", path: [\"sources\", index, \"supersededBy\"] });\n });\n registry.sources.forEach((source, index) => {\n const visited = new Set<string>();\n let current = source;\n while (current.supersededBy) {\n const currentKey = `${current.identity.sourceRef}@${current.identity.sourceVersion}`;\n if (visited.has(currentKey)) {\n context.addIssue({ code: \"custom\", message: \"source supersession graph cannot contain a cycle\", path: [\"sources\", index, \"supersededBy\"] });\n break;\n }\n visited.add(currentKey);\n const nextKey = `${current.supersededBy.sourceRef}@${current.supersededBy.sourceVersion}`;\n const next = registry.sources.find((candidate) => `${candidate.identity.sourceRef}@${candidate.identity.sourceVersion}` === nextKey);\n if (!next) break;\n current = next;\n }\n });\n });\nexport type AssuranceSourceRegistry = z.infer<typeof AssuranceSourceRegistrySchema>;\n\nexport enum AssuranceRightsAuthorizationReason {\n RIGHTS_WITHDRAWN = \"RIGHTS_WITHDRAWN\",\n RIGHTS_EXPIRED = \"RIGHTS_EXPIRED\",\n USE_DECISION_MISSING = \"USE_DECISION_MISSING\",\n USE_NOT_ALLOWED = \"USE_NOT_ALLOWED\",\n}\n\nexport const AssuranceRightsAuthorizationSchema = z.strictObject({\n authorized: z.boolean(),\n requestedUses: z.array(z.enum(AssuranceSourceUse)).min(1),\n reasons: z.array(z.enum(AssuranceRightsAuthorizationReason)),\n});\nexport type AssuranceRightsAuthorization = z.infer<typeof AssuranceRightsAuthorizationSchema>;\n\n/** Fail-closed authorization for source or mapping-pack operations. Only an unexpired explicit ALLOWED decision authorizes a requested use. */\nexport const deriveAssuranceRightsAuthorization = (\n rights: AssuranceSourceRights,\n requestedUses: readonly AssuranceSourceUse[],\n evaluatedAt: string,\n): AssuranceRightsAuthorization => {\n const parsedRights = AssuranceSourceRightsSchema.parse(rights);\n const parsedRequestedUses = z\n .array(z.enum(AssuranceSourceUse))\n .min(1)\n .parse([...new Set(requestedUses)].sort());\n const parsedEvaluatedAt = AssuranceIsoDateTimeSchema.parse(evaluatedAt);\n const reasons = new Set<AssuranceRightsAuthorizationReason>();\n if (parsedRights.reviewStatus === AssuranceRightsReviewStatus.WITHDRAWN) reasons.add(AssuranceRightsAuthorizationReason.RIGHTS_WITHDRAWN);\n if (parsedRights.validUntil && Date.parse(parsedRights.validUntil) < Date.parse(parsedEvaluatedAt))\n reasons.add(AssuranceRightsAuthorizationReason.RIGHTS_EXPIRED);\n\n parsedRequestedUses.forEach((requestedUse) => {\n const decision = parsedRights.useDecisions.find((candidate) => candidate.use === requestedUse);\n if (!decision) reasons.add(AssuranceRightsAuthorizationReason.USE_DECISION_MISSING);\n else if (decision.permission !== AssuranceSourceUsePermission.ALLOWED) reasons.add(AssuranceRightsAuthorizationReason.USE_NOT_ALLOWED);\n });\n\n return AssuranceRightsAuthorizationSchema.parse({\n authorized: reasons.size === 0,\n requestedUses: parsedRequestedUses,\n reasons: [...reasons].sort(),\n });\n};\n\n/**\n * How well the registry can speak to one jurisdiction an application declared (issue #229).\n *\n * Three members rather than a boolean, because \"we know nothing about this place\" and \"we hold\n * guidance but no law for it\" are different things to tell an operator, and collapsing them would\n * report a product covered by a voluntary framework as covered by law.\n */\nexport enum AssuranceJurisdictionCoverageStatus {\n /** At least one ACTIVE `LAW_OR_REGULATION` source states this jurisdiction's requirements. */\n COVERED_BY_LAW = \"COVERED_BY_LAW\",\n /** Sources reach it, but none is law — guidance and frameworks only, which is not the same claim. */\n GUIDANCE_ONLY = \"GUIDANCE_ONLY\",\n /** Nothing in the registry reaches it. A KNOWN UNKNOWN, and the case this whole report exists for. */\n NOT_COVERED = \"NOT_COVERED\",\n}\n\nexport interface AssuranceJurisdictionCoverage {\n readonly jurisdictionSlug: string;\n readonly status: AssuranceJurisdictionCoverageStatus;\n /** The sources that reach it, so a reader can check the verdict rather than trust it. */\n readonly reachingSourceRefs: readonly string[];\n}\n\n/**\n * `NOT_DECLARED` is a distinct answer and never an empty assessment.\n *\n * An application that declared no jurisdictions has not been asked, and an assessment listing zero\n * uncovered jurisdictions is what \"everything is fine\" looks like. Conflating them turns a wiring gap\n * into a clean bill of health — the failure direction `negative-results-require-a-positive-probe.md`\n * exists to prevent — so callers are forced to branch.\n */\nexport type AssuranceJurisdictionCoverageReport =\n | { readonly kind: \"NOT_DECLARED\" }\n | { readonly kind: \"ASSESSED\"; readonly entries: readonly AssuranceJurisdictionCoverage[] };\n\n/**\n * Which of an application's declared jurisdictions the source registry can actually speak to.\n *\n * A pure function of two declarations, so it merges: two branches may declare different jurisdictions\n * and each branch's answer is about its own tree (`.claude/rules/one-source-of-truth.md` Rule 0).\n *\n * Only ACTIVE sources count. A SUPERSEDED or WITHDRAWN source reaching a jurisdiction is not coverage\n * — treating it as such would let a repealed instrument answer for a place, and the whole point of the\n * report is that silence about an unknown jurisdiction is indistinguishable from a claim of coverage.\n */\nexport function assessAssuranceJurisdictionCoverage(\n declared: { readonly jurisdictions: readonly { readonly jurisdictionSlug: string }[] } | undefined,\n sources: readonly AssuranceSourceRecord[],\n): AssuranceJurisdictionCoverageReport {\n if (declared === undefined) return { kind: \"NOT_DECLARED\" };\n\n const activeSources = sources.filter((source) => source.lifecycleStatus === AssuranceSourceLifecycleStatus.ACTIVE);\n\n const entries = declared.jurisdictions.map((entry) => {\n const reaching = activeSources.filter((source) =>\n source.jurisdictionalReach.some((reach) => jurisdictionReachCovers(reach, entry.jurisdictionSlug)));\n const hasLaw = reaching.some((source) => source.authorityKind === AssuranceSourceAuthorityKind.LAW_OR_REGULATION);\n return {\n jurisdictionSlug: entry.jurisdictionSlug,\n status: reaching.length === 0\n ? AssuranceJurisdictionCoverageStatus.NOT_COVERED\n : hasLaw\n ? AssuranceJurisdictionCoverageStatus.COVERED_BY_LAW\n : AssuranceJurisdictionCoverageStatus.GUIDANCE_ONLY,\n reachingSourceRefs: reaching.map((source) => source.identity.sourceRef).sort(),\n };\n });\n\n return { kind: \"ASSESSED\", entries };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"assurance-sources.schemas.js","sourceRoot":"","sources":["../../../../src/assurance/assurance-sources.schemas.ts"],"names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,KAAK,4BAA4B,CAAC,iBAAiB,CAAC,CAAC;QAClH,OAAO;YACL,gBAAgB,EAAE,KAAK,CAAC,gBAAgB;YACxC,MAAM,EAAE,QAAQ,CAAC,MAAM,KAAK,CAAC;gBAC3B,CAAC,CAAC,mCAAmC,CAAC,WAAW;gBACjD,CAAC,CAAC,MAAM;oBACN,CAAC,CAAC,mCAAmC,CAAC,cAAc;oBACpD,CAAC,CAAC,mCAAmC,CAAC,aAAa;YACvD,kBAAkB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE;SAC/E,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AACvC,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { JurisdictionSlugSchema, jurisdictionReachCovers } from \"@wildo-ai/saas-models\";\n\nimport { AssuranceIsoDateSchema, AssuranceIsoDateTimeSchema, AssuranceNamespacedRefSchema } from \"./assurance-foundation.schemas\";\n\nconst uniqueValues = (values: readonly string[]): boolean => new Set(values).size === values.length;\nconst compareCanonicalText = (left: string, right: string): number => (left < right ? -1 : left > right ? 1 : 0);\nconst lexicallySorted = (values: readonly string[]): boolean =>\n values.every((value, index) => index === 0 || compareCanonicalText(values[index - 1]!, value) <= 0);\n\nexport enum AssuranceSourceTier {\n AUTHORITATIVE_OPEN_PUBLIC = \"AUTHORITATIVE_OPEN_PUBLIC\",\n PUBLIC_ADVISORY_MAPPING = \"PUBLIC_ADVISORY_MAPPING\",\n /**\n * Openly published guidance that no government or standards body issued: OWASP's and MITRE's (#2837). It is\n * advisory, never authoritative, and it may be cited as what the field asks, never as what binds anyone.\n */\n OPEN_COMMUNITY = \"OPEN_COMMUNITY\",\n RESTRICTED_PROPRIETARY = \"RESTRICTED_PROPRIETARY\",\n PRIVATE_CUSTOMER = \"PRIVATE_CUSTOMER\",\n}\n\nexport enum AssuranceSourceAuthorityKind {\n GOVERNMENT_PUBLICATION = \"GOVERNMENT_PUBLICATION\",\n GOVERNMENT_GUIDANCE = \"GOVERNMENT_GUIDANCE\",\n LAW_OR_REGULATION = \"LAW_OR_REGULATION\",\n COMMUNITY_MAPPING = \"COMMUNITY_MAPPING\",\n /**\n * Guidance written by an open community project rather than a government (OWASP's AI guidance, MITRE ATLAS,\n * #2837). Distinct from a {@link AssuranceSourceAuthorityKind.COMMUNITY_MAPPING}, which crosswalks other\n * sources: this states requirements of its own. Usually non-territorial ({@link AssuranceSourceTerritoriality}).\n */\n COMMUNITY_GUIDANCE = \"COMMUNITY_GUIDANCE\",\n PROPRIETARY_STANDARD = \"PROPRIETARY_STANDARD\",\n PRIVATE_OBLIGATION_SET = \"PRIVATE_OBLIGATION_SET\",\n}\n\n/**\n * Where one registered source stands as an AUTHORITY — distinct from its rights review, which says what\n * may be done with it.\n */\nexport enum AssuranceSourceLifecycleStatus {\n /**\n * An authority in use: requirement authorities or document definitions cite it, and it answers for\n * the jurisdictions it reaches. An ACTIVE source that nothing cites buys nothing for its rights\n * review, and the source-coverage guard in the authority-basis tests refuses one (#452).\n */\n ACTIVE = \"ACTIVE\",\n /**\n * Registered and rights-reviewed, but NOT admitted as an authority: nothing may cite it, it answers\n * for no jurisdiction, and a programme cannot hold it applicable. The state for a source that is\n * kept on purpose while the model lacks what would make it citable — say why at the record, so the\n * reason travels with it. Returning to ACTIVE needs no fresh rights review.\n */\n DRAFT = \"DRAFT\",\n /** Replaced by a newer edition; requires `supersededBy`, which must resolve inside the same registry. */\n SUPERSEDED = \"SUPERSEDED\",\n /** No longer an authority at all; also withdraws the rights review, so a return means re-reviewing. */\n WITHDRAWN = \"WITHDRAWN\",\n}\n\n/**\n * Whether a source speaks for a territory at all (#2837).\n *\n * A law, a regulator's guidance and a government publication are each issued by a jurisdiction, and\n * `jurisdictionalReach` names it. Community guidance such as OWASP's or MITRE's is issued by no\n * jurisdiction, and the reach field cannot be honest about it: any slug would be a placeholder, and\n * `assessAssuranceJurisdictionCoverage` would then report that place as covered by a source that never\n * claimed it. So a non-territorial source states that it is one, and its reach is empty.\n *\n * Coverage ignores such a source (it reaches nowhere), and territorial applicability\n * (`deriveObjectiveJurisdictionApplicability`) treats it as guidance, which never scopes an objective.\n * A law cannot be non-territorial: the schema refuses the pair.\n */\nexport enum AssuranceSourceTerritoriality {\n /** Issued by a jurisdiction; `jurisdictionalReach` names at least one. Every law and government source. */\n TERRITORIAL = \"TERRITORIAL\",\n /** Issued by no jurisdiction (community or industry guidance); `jurisdictionalReach` is empty. */\n NON_TERRITORIAL = \"NON_TERRITORIAL\",\n}\n\nexport enum AssuranceSourceContentHandling {\n REFERENCE_ONLY = \"REFERENCE_ONLY\",\n RETRIEVED_ARTIFACT = \"RETRIEVED_ARTIFACT\",\n}\n\nexport enum AssuranceSourceUse {\n STORE_METADATA = \"STORE_METADATA\",\n STORE_CONTENT = \"STORE_CONTENT\",\n EXTRACT_CONTENT = \"EXTRACT_CONTENT\",\n MODIFY_OR_DERIVE = \"MODIFY_OR_DERIVE\",\n MODEL_INPUT = \"MODEL_INPUT\",\n GENERATE_PROJECTION = \"GENERATE_PROJECTION\",\n REDISTRIBUTE = \"REDISTRIBUTE\",\n COMMERCIAL_USE = \"COMMERCIAL_USE\",\n EXPORT = \"EXPORT\",\n}\n\nexport enum AssuranceSourceUsePermission {\n ALLOWED = \"ALLOWED\",\n PROHIBITED = \"PROHIBITED\",\n REQUIRES_ADDITIONAL_RIGHTS = \"REQUIRES_ADDITIONAL_RIGHTS\",\n UNKNOWN = \"UNKNOWN\",\n}\n\nexport enum AssuranceRightsReviewStatus {\n REVIEWED = \"REVIEWED\",\n WITHDRAWN = \"WITHDRAWN\",\n}\n\nexport const AssuranceSourceIdentitySchema = z.strictObject({\n sourceRef: AssuranceNamespacedRefSchema,\n sourceVersion: z.number().int().positive(),\n});\nexport type AssuranceSourceIdentity = z.infer<typeof AssuranceSourceIdentitySchema>;\n\nexport const AssuranceSourceUseDecisionSchema = z.strictObject({\n use: z.enum(AssuranceSourceUse),\n permission: z.enum(AssuranceSourceUsePermission),\n conditions: z.array(z.string().min(1)),\n});\nexport type AssuranceSourceUseDecision = z.infer<typeof AssuranceSourceUseDecisionSchema>;\n\n/**\n * A complete, reviewed decision matrix. The schema requires one decision for every operation so adding a new operation makes existing records fail closed until reviewed.\n */\nexport const AssuranceSourceRightsSchema = z\n .strictObject({\n rightsRef: AssuranceNamespacedRefSchema,\n rightsVersion: z.number().int().positive(),\n reviewStatus: z.enum(AssuranceRightsReviewStatus),\n basisUrl: z.url(),\n basisSummary: z.string().min(1),\n attributionNotice: z.string().min(1),\n reviewedByRef: AssuranceNamespacedRefSchema,\n reviewedAt: AssuranceIsoDateTimeSchema,\n validUntil: AssuranceIsoDateTimeSchema.optional(),\n useDecisions: z.array(AssuranceSourceUseDecisionSchema),\n })\n .superRefine((rights, context) => {\n const actualUses = rights.useDecisions.map((decision) => decision.use);\n const expectedUses = Object.values(AssuranceSourceUse);\n if (!uniqueValues(actualUses) || actualUses.length !== expectedUses.length || expectedUses.some((use) => !actualUses.includes(use))) {\n context.addIssue({ code: \"custom\", message: \"useDecisions must contain exactly one decision for every AssuranceSourceUse\", path: [\"useDecisions\"] });\n }\n });\nexport type AssuranceSourceRights = z.infer<typeof AssuranceSourceRightsSchema>;\n\n/**\n * Provenance of one retrieval of an external source document.\n *\n * Carries no content digest: an external standard is identified by its EDITION, which is immutable\n * by publication (NIST SP 800-53 Rev 5 is one document forever), so `edition` + `publishedOn` +\n * `canonicalLocator` + `retrievedAt` already say exactly which bytes were read. Hashing the fetch\n * added a step to every source record and answered a question the edition had already answered.\n */\nexport const AssuranceRetrievedSourceArtifactSchema = z.strictObject({\n retrievedAt: AssuranceIsoDateTimeSchema,\n mediaType: z.string().min(1),\n retrievalLocator: z.url(),\n});\nexport type AssuranceRetrievedSourceArtifact = z.infer<typeof AssuranceRetrievedSourceArtifactSchema>;\n\nexport const AssuranceSourceRecordSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n identity: AssuranceSourceIdentitySchema,\n canonicalTitle: z.string().min(1),\n authorityKind: z.enum(AssuranceSourceAuthorityKind),\n tier: z.enum(AssuranceSourceTier),\n edition: z.string().min(1),\n publishedOn: AssuranceIsoDateSchema,\n effectiveOn: AssuranceIsoDateSchema.optional(),\n lifecycleStatus: z.enum(AssuranceSourceLifecycleStatus),\n canonicalLocator: z.url(),\n authorityName: z.string().min(1),\n contentHandling: z.enum(AssuranceSourceContentHandling),\n retrievedArtifact: AssuranceRetrievedSourceArtifactSchema.optional(),\n rights: AssuranceSourceRightsSchema,\n supersededBy: AssuranceSourceIdentitySchema.optional(),\n /**\n * Which jurisdictions' requirements this source STATES (issue #229).\n *\n * The question this answers is \"whose law or guidance is this\", not \"whom does it bind\". GDPR\n * reaches `[\"eu\"]` even though Art. 3(2) binds operators established anywhere: an operator in\n * Brazil serving EU subjects is answered by the EU entry, and adding every country GDPR can bind\n * would make the field useless for the one question it exists for. Do not \"correct\" it that way.\n *\n * REQUIRED, because a source that states no reach cannot answer the coverage question at all, and\n * an optional field here would silently make every uncovered jurisdiction look considered. This is\n * a curated registry authored in one file — there is no migration cost to requiring it.\n *\n * At least one slug for a TERRITORIAL source and none for a NON_TERRITORIAL one\n * ({@link AssuranceSourceTerritoriality}); an empty reach is never a default.\n */\n jurisdictionalReach: z.array(JurisdictionSlugSchema),\n /** Whether the source is issued by a jurisdiction. Only community guidance is NON_TERRITORIAL. */\n territoriality: z.enum(AssuranceSourceTerritoriality).default(AssuranceSourceTerritoriality.TERRITORIAL),\n scopeLimitations: z.array(z.string().min(1)),\n })\n .superRefine((source, context) => {\n if (source.territoriality === AssuranceSourceTerritoriality.TERRITORIAL && source.jurisdictionalReach.length === 0) {\n context.addIssue({ code: \"custom\", message: \"a territorial source must name at least one jurisdiction it reaches\", path: [\"jurisdictionalReach\"] });\n }\n if (source.territoriality === AssuranceSourceTerritoriality.NON_TERRITORIAL) {\n if (source.jurisdictionalReach.length > 0)\n context.addIssue({ code: \"custom\", message: \"a non-territorial source reaches no jurisdiction; leave jurisdictionalReach empty\", path: [\"jurisdictionalReach\"] });\n if (source.authorityKind === AssuranceSourceAuthorityKind.LAW_OR_REGULATION)\n context.addIssue({ code: \"custom\", message: \"a law is issued by a jurisdiction and cannot be non-territorial\", path: [\"territoriality\"] });\n }\n if (source.contentHandling === AssuranceSourceContentHandling.REFERENCE_ONLY && source.retrievedArtifact) {\n context.addIssue({ code: \"custom\", message: \"reference-only sources cannot claim a retrieved artifact\", path: [\"retrievedArtifact\"] });\n }\n if (source.contentHandling === AssuranceSourceContentHandling.RETRIEVED_ARTIFACT && !source.retrievedArtifact) {\n context.addIssue({ code: \"custom\", message: \"retrieved-artifact sources require exact retrieval provenance\", path: [\"retrievedArtifact\"] });\n }\n if (source.lifecycleStatus === AssuranceSourceLifecycleStatus.SUPERSEDED && !source.supersededBy) {\n context.addIssue({ code: \"custom\", message: \"superseded sources require a successor identity\", path: [\"supersededBy\"] });\n }\n if (source.lifecycleStatus !== AssuranceSourceLifecycleStatus.SUPERSEDED && source.supersededBy)\n context.addIssue({ code: \"custom\", message: \"only superseded sources can name a successor identity\", path: [\"supersededBy\"] });\n const rightsAreWithdrawn = source.rights.reviewStatus === AssuranceRightsReviewStatus.WITHDRAWN;\n if (source.lifecycleStatus === AssuranceSourceLifecycleStatus.WITHDRAWN && !rightsAreWithdrawn)\n context.addIssue({ code: \"custom\", message: \"a withdrawn source must also withdraw its rights authorization\", path: [\"rights\", \"reviewStatus\"] });\n });\nexport type AssuranceSourceRecord = z.infer<typeof AssuranceSourceRecordSchema>;\n\nexport const AssuranceSourceRegistrySchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n registryVersion: z.number().int().positive(),\n verifiedAt: AssuranceIsoDateTimeSchema,\n sources: z.array(AssuranceSourceRecordSchema).min(1),\n })\n .superRefine((registry, context) => {\n const identities = registry.sources.map((source) => `${source.identity.sourceRef}@${source.identity.sourceVersion}`);\n if (!uniqueValues(identities) || !lexicallySorted(identities)) {\n context.addIssue({ code: \"custom\", message: \"sources must be unique and lexically sorted by versioned identity\", path: [\"sources\"] });\n }\n const knownIdentities = new Set(identities);\n registry.sources.forEach((source, index) => {\n if (!source.supersededBy) return;\n const sourceKey = `${source.identity.sourceRef}@${source.identity.sourceVersion}`;\n const successorKey = `${source.supersededBy.sourceRef}@${source.supersededBy.sourceVersion}`;\n if (successorKey === sourceKey)\n context.addIssue({ code: \"custom\", message: \"a source cannot supersede itself\", path: [\"sources\", index, \"supersededBy\"] });\n else if (!knownIdentities.has(successorKey))\n context.addIssue({ code: \"custom\", message: \"a successor identity must resolve inside the same registry snapshot\", path: [\"sources\", index, \"supersededBy\"] });\n });\n registry.sources.forEach((source, index) => {\n const visited = new Set<string>();\n let current = source;\n while (current.supersededBy) {\n const currentKey = `${current.identity.sourceRef}@${current.identity.sourceVersion}`;\n if (visited.has(currentKey)) {\n context.addIssue({ code: \"custom\", message: \"source supersession graph cannot contain a cycle\", path: [\"sources\", index, \"supersededBy\"] });\n break;\n }\n visited.add(currentKey);\n const nextKey = `${current.supersededBy.sourceRef}@${current.supersededBy.sourceVersion}`;\n const next = registry.sources.find((candidate) => `${candidate.identity.sourceRef}@${candidate.identity.sourceVersion}` === nextKey);\n if (!next) break;\n current = next;\n }\n });\n });\nexport type AssuranceSourceRegistry = z.infer<typeof AssuranceSourceRegistrySchema>;\n\n/**\n * One TOP-LEVEL entry of a source, held whether or not any objective answers it (#2837).\n *\n * A source-requirement row of the authority basis exists only where a requirement was reviewed against an\n * objective, so a requirement nothing answers cannot be represented there, and a coverage report built from those\n * rows can only list what Wildo covers, never what it does not. The inventory is the denominator: a source's\n * top-level entries (the AI RMF categories, the UK Code's principles, the OWASP AI Exchange's top-level areas, the\n * AI Act articles a coverage pack lists), each named by a Wildo slug and located in the source. It carries no\n * normative text and no objective. Sub-controls are not inventoried.\n */\n/**\n * Whether an inventory entry is within what Wildo builds today (#2837).\n *\n * A coverage pack must say \"not supported yet\" for an entry outside that scope, which is a different answer from \"not\n * covered\": nothing is missing from a supported scope, the scope itself is not offered. The AI Act's high-risk\n * obligations are the case (#2851): the epic decided a high-risk use is MARKED as not supported, never refused.\n */\nexport enum AssuranceSourceRequirementInventoryStanding {\n /** Within what Wildo supports: an entry no reviewed row answers is a coverage gap. */\n WITHIN_SUPPORTED_SCOPE = \"WITHIN_SUPPORTED_SCOPE\",\n /** Outside what Wildo supports yet; `standingReason` names the scope and its issue. Never answered by a row. */\n OUTSIDE_SUPPORTED_SCOPE = \"OUTSIDE_SUPPORTED_SCOPE\",\n}\n\nexport const AssuranceSourceRequirementInventoryEntrySchema = z\n .strictObject({\n source: AssuranceSourceIdentitySchema,\n /** A Wildo descriptive slug, `source-requirement:<…>`, never the source's own control identifier. */\n requirementRef: AssuranceNamespacedRefSchema.refine((ref) => ref.startsWith(\"source-requirement:\"), \"an inventory entry is named source-requirement:<slug>\"),\n /** Where the entry is in the source: its section, article or principle number, or a URL with its anchor. */\n locator: z.string().trim().min(1),\n /** What the entry is about, in Wildo's words. */\n subject: z.string().trim().min(1),\n standing: z.enum(AssuranceSourceRequirementInventoryStanding).default(AssuranceSourceRequirementInventoryStanding.WITHIN_SUPPORTED_SCOPE),\n /** Why an entry is outside the supported scope, naming the issue that would bring it in. */\n standingReason: z.string().trim().min(1).optional(),\n /**\n * The reviewed source-requirement rows of the same source that sit under this entry (a subcategory, provision or\n * article point of it): the mechanical join from the denominator to what Wildo answers. Empty means no reviewed row\n * answers the entry. Sorted; a test holds every reviewed row of an inventoried source under exactly one entry.\n */\n answeredBy: z.array(AssuranceNamespacedRefSchema).default([]),\n })\n .superRefine((entry, context) => {\n const outside = entry.standing === AssuranceSourceRequirementInventoryStanding.OUTSIDE_SUPPORTED_SCOPE;\n if (outside && entry.standingReason === undefined)\n context.addIssue({ code: \"custom\", message: \"an entry outside the supported scope says why\", path: [\"standingReason\"] });\n if (!outside && entry.standingReason !== undefined)\n context.addIssue({ code: \"custom\", message: \"only an entry outside the supported scope carries a standing reason\", path: [\"standingReason\"] });\n if (outside && entry.answeredBy.length > 0)\n context.addIssue({ code: \"custom\", message: \"an entry outside the supported scope is answered by no row\", path: [\"answeredBy\"] });\n if (!uniqueValues(entry.answeredBy) || !lexicallySorted(entry.answeredBy))\n context.addIssue({ code: \"custom\", message: \"answeredBy must be unique and sorted\", path: [\"answeredBy\"] });\n });\nexport type AssuranceSourceRequirementInventoryEntry = z.infer<typeof AssuranceSourceRequirementInventoryEntrySchema>;\n\nexport const AssuranceSourceRequirementInventorySchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n entries: z.array(AssuranceSourceRequirementInventoryEntrySchema).min(1),\n })\n .superRefine((inventory, context) => {\n const keys = inventory.entries.map((entry) => `${entry.source.sourceRef}@${entry.source.sourceVersion} ${entry.requirementRef}`);\n if (!uniqueValues(keys) || !lexicallySorted(keys)) {\n context.addIssue({ code: \"custom\", message: \"inventory entries must be unique and sorted by source identity, then requirement\", path: [\"entries\"] });\n }\n });\nexport type AssuranceSourceRequirementInventory = z.infer<typeof AssuranceSourceRequirementInventorySchema>;\n\nexport enum AssuranceRightsAuthorizationReason {\n RIGHTS_WITHDRAWN = \"RIGHTS_WITHDRAWN\",\n RIGHTS_EXPIRED = \"RIGHTS_EXPIRED\",\n USE_DECISION_MISSING = \"USE_DECISION_MISSING\",\n USE_NOT_ALLOWED = \"USE_NOT_ALLOWED\",\n}\n\nexport const AssuranceRightsAuthorizationSchema = z.strictObject({\n authorized: z.boolean(),\n requestedUses: z.array(z.enum(AssuranceSourceUse)).min(1),\n reasons: z.array(z.enum(AssuranceRightsAuthorizationReason)),\n});\nexport type AssuranceRightsAuthorization = z.infer<typeof AssuranceRightsAuthorizationSchema>;\n\n/** Fail-closed authorization for source or mapping-pack operations. Only an unexpired explicit ALLOWED decision authorizes a requested use. */\nexport const deriveAssuranceRightsAuthorization = (\n rights: AssuranceSourceRights,\n requestedUses: readonly AssuranceSourceUse[],\n evaluatedAt: string,\n): AssuranceRightsAuthorization => {\n const parsedRights = AssuranceSourceRightsSchema.parse(rights);\n const parsedRequestedUses = z\n .array(z.enum(AssuranceSourceUse))\n .min(1)\n .parse([...new Set(requestedUses)].sort());\n const parsedEvaluatedAt = AssuranceIsoDateTimeSchema.parse(evaluatedAt);\n const reasons = new Set<AssuranceRightsAuthorizationReason>();\n if (parsedRights.reviewStatus === AssuranceRightsReviewStatus.WITHDRAWN) reasons.add(AssuranceRightsAuthorizationReason.RIGHTS_WITHDRAWN);\n if (parsedRights.validUntil && Date.parse(parsedRights.validUntil) < Date.parse(parsedEvaluatedAt))\n reasons.add(AssuranceRightsAuthorizationReason.RIGHTS_EXPIRED);\n\n parsedRequestedUses.forEach((requestedUse) => {\n const decision = parsedRights.useDecisions.find((candidate) => candidate.use === requestedUse);\n if (!decision) reasons.add(AssuranceRightsAuthorizationReason.USE_DECISION_MISSING);\n else if (decision.permission !== AssuranceSourceUsePermission.ALLOWED) reasons.add(AssuranceRightsAuthorizationReason.USE_NOT_ALLOWED);\n });\n\n return AssuranceRightsAuthorizationSchema.parse({\n authorized: reasons.size === 0,\n requestedUses: parsedRequestedUses,\n reasons: [...reasons].sort(),\n });\n};\n\n/**\n * How well the registry can speak to one jurisdiction an application declared (issue #229).\n *\n * Three members rather than a boolean, because \"we know nothing about this place\" and \"we hold\n * guidance but no law for it\" are different things to tell an operator, and collapsing them would\n * report a product covered by a voluntary framework as covered by law.\n */\nexport enum AssuranceJurisdictionCoverageStatus {\n /** At least one ACTIVE `LAW_OR_REGULATION` source states this jurisdiction's requirements. */\n COVERED_BY_LAW = \"COVERED_BY_LAW\",\n /** Sources reach it, but none is law — guidance and frameworks only, which is not the same claim. */\n GUIDANCE_ONLY = \"GUIDANCE_ONLY\",\n /** Nothing in the registry reaches it. A KNOWN UNKNOWN, and the case this whole report exists for. */\n NOT_COVERED = \"NOT_COVERED\",\n}\n\nexport interface AssuranceJurisdictionCoverage {\n readonly jurisdictionSlug: string;\n readonly status: AssuranceJurisdictionCoverageStatus;\n /** The sources that reach it, so a reader can check the verdict rather than trust it. */\n readonly reachingSourceRefs: readonly string[];\n}\n\n/**\n * `NOT_DECLARED` is a distinct answer and never an empty assessment.\n *\n * An application that declared no jurisdictions has not been asked, and an assessment listing zero\n * uncovered jurisdictions is what \"everything is fine\" looks like. Conflating them turns a wiring gap\n * into a clean bill of health — the failure direction `negative-results-require-a-positive-probe.md`\n * exists to prevent — so callers are forced to branch.\n */\nexport type AssuranceJurisdictionCoverageReport =\n | { readonly kind: \"NOT_DECLARED\" }\n | { readonly kind: \"ASSESSED\"; readonly entries: readonly AssuranceJurisdictionCoverage[] };\n\n/**\n * Which of an application's declared jurisdictions the source registry can actually speak to.\n *\n * A pure function of two declarations, so it merges: two branches may declare different jurisdictions\n * and each branch's answer is about its own tree (`.claude/rules/one-source-of-truth.md` Rule 0).\n *\n * Only ACTIVE sources count. A SUPERSEDED or WITHDRAWN source reaching a jurisdiction is not coverage\n * — treating it as such would let a repealed instrument answer for a place, and the whole point of the\n * report is that silence about an unknown jurisdiction is indistinguishable from a claim of coverage.\n */\nexport function assessAssuranceJurisdictionCoverage(\n declared: { readonly jurisdictions: readonly { readonly jurisdictionSlug: string }[] } | undefined,\n sources: readonly AssuranceSourceRecord[],\n): AssuranceJurisdictionCoverageReport {\n if (declared === undefined) return { kind: \"NOT_DECLARED\" };\n\n const activeSources = sources.filter((source) => source.lifecycleStatus === AssuranceSourceLifecycleStatus.ACTIVE);\n\n const entries = declared.jurisdictions.map((entry) => {\n const reaching = activeSources.filter((source) =>\n source.jurisdictionalReach.some((reach) => jurisdictionReachCovers(reach, entry.jurisdictionSlug)));\n const hasLaw = reaching.some((source) => source.authorityKind === AssuranceSourceAuthorityKind.LAW_OR_REGULATION);\n return {\n jurisdictionSlug: entry.jurisdictionSlug,\n status: reaching.length === 0\n ? AssuranceJurisdictionCoverageStatus.NOT_COVERED\n : hasLaw\n ? AssuranceJurisdictionCoverageStatus.COVERED_BY_LAW\n : AssuranceJurisdictionCoverageStatus.GUIDANCE_ONLY,\n reachingSourceRefs: reaching.map((source) => source.identity.sourceRef).sort(),\n };\n });\n\n return { kind: \"ASSESSED\", entries };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assurance-verification-requirement-bodies.definitions.d.ts","sourceRoot":"","sources":["../../../../src/assurance/assurance-verification-requirement-bodies.definitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,yCAAyC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oCAAoC,CAAC,
|
|
1
|
+
{"version":3,"file":"assurance-verification-requirement-bodies.definitions.d.ts","sourceRoot":"","sources":["../../../../src/assurance/assurance-verification-requirement-bodies.definitions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,yCAAyC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,oCAAoC,CAAC,CAkxDpH,CAAC"}
|