@wildo-ai/saas-specifications 1.1.3 → 1.1.5
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/assurance/external-framework-mapping.json +1228 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +34 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js +66 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts +3 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +48 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +201 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +306 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +304 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js +314 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -0
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +2 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js +4 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +5 -4
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.js +4 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +5 -4
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +7 -4
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-audience.schemas.d.ts +31 -0
- package/dist/esm/_core/brand/brand-audience.schemas.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-audience.schemas.js +29 -0
- package/dist/esm/_core/brand/brand-audience.schemas.js.map +1 -0
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +4 -4
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +12 -9
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-logo-direction.schemas.js +12 -7
- package/dist/esm/_core/brand/brand-logo-direction.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot-validation.js +1 -8
- package/dist/esm/_core/brand/brand-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -12
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +7 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.js +12 -1
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +252 -2
- 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-generation.schemas.js +19 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +121 -1
- 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 +215 -2
- 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 +703 -14
- 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 +536 -7
- 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.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +82 -2
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +3 -3
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +4 -3
- 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 +4 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +36 -0
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js +52 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +22 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +89 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts +3 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js +26 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +141 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +147 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +160 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +124 -4
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +95 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js +85 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +743 -14
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +699 -22
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +98 -6
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +197 -8
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +64 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +283 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +30 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +220 -4
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +149 -2
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +70 -3
- 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 +75 -3
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +14 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js +13 -0
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.d.ts +6 -4
- package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.js +7 -5
- package/dist/esm/_core/cross-registry-assertions.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +5 -4
- 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 +5 -2
- 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 +30 -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 +99 -6
- 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 +58 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +71 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +37 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.js +83 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +78 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +285 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +293 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -0
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +9 -2
- 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 +7 -0
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts +18 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js +21 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js.map +1 -0
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +19 -0
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +23 -0
- package/dist/esm/_core/expert-personas/expert-role-template.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 +22 -1
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +64 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- 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 +27 -27
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +6 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -15
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +12 -11
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +16 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +16 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +52 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +50 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts +27 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.js +63 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +52 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +168 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +170 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -0
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts +6 -5
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.js +5 -2
- package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.js +4 -1
- package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +11 -9
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.js +13 -10
- package/dist/esm/_core/market/market-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js +4 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-channel.schemas.d.ts +6 -5
- package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.js +6 -3
- package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.js +4 -1
- package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts +12 -11
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +12 -9
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.js +4 -1
- package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.js +5 -2
- package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.js +4 -1
- package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.js +4 -1
- package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.js +5 -2
- package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-proof.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.js +4 -1
- package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +54 -54
- package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js +4 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.js +4 -1
- package/dist/esm/_core/market/market-trigger.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 +25 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +27 -22
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -12
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +21 -21
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +30 -16
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +34 -12
- 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 +24 -1
- 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 +78 -47
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +62 -24
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +19 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.js +0 -20
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -2
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -4
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js +3 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +8 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +2 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +5 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js +1 -8
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +2 -2
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.js +4 -2
- package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
- package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision.family-aspects.js +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +45 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +55 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts +37 -0
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-validation.js +77 -0
- package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js +35 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +194 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.js +193 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -0
- package/dist/esm/_core/zod-core-nameability.d.ts +47 -0
- package/dist/esm/_core/zod-core-nameability.d.ts.map +1 -0
- package/dist/esm/_core/zod-core-nameability.js +1 -0
- package/dist/esm/_core/zod-core-nameability.js.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +86 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +96 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +139 -34
- 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 +182 -11
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +71 -2
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +88 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts +14 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.js +17 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.js +25 -1
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +14 -48
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +52 -52
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +209 -495
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +257 -534
- 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 +10 -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 +10 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +73 -8
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +103 -8
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +24 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +1 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +24 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -0
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +49 -0
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +51 -0
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/application-document-release-set.schemas.d.ts +161 -0
- package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/application-document-release-set.schemas.js +138 -0
- package/dist/esm/assurance/application-document-release-set.schemas.js.map +1 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.d.ts +28 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.js +58 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.js.map +1 -0
- package/dist/esm/assurance/application-risk-register.schemas.d.ts +172 -0
- package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-register.schemas.js +192 -0
- package/dist/esm/assurance/application-risk-register.schemas.js.map +1 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +177 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-signals.derivations.js +229 -0
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +257 -13
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +836 -69
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +99 -33
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js +38 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +99 -8
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +133 -41
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +60 -11
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +470 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +451 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +0 -33
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +3339 -159
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +21 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +21 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +32 -2
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +148 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +257 -14
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +588 -45
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +32 -8
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js +288 -10
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +1182 -333
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +460 -68
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +70 -2
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +17 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +17 -0
- 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 +205 -3
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.js +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -1
- package/dist/esm/assurance/document-release-set.family-aspects.d.ts +11 -0
- package/dist/esm/assurance/document-release-set.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-release-set.family-aspects.js +36 -0
- package/dist/esm/assurance/document-release-set.family-aspects.js.map +1 -0
- package/dist/esm/assurance/governed-document-release.d.ts +211 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -0
- package/dist/esm/assurance/governed-document-release.js +314 -0
- package/dist/esm/assurance/governed-document-release.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +5 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +5 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +135 -11
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.d.ts +1 -1
- package/dist/esm/engine/_bootstrap.js +1 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
- 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 +0 -23
- 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 +110 -28
- 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.d.ts +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +1 -1
- 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/auth/resources/application-access-grants.resource.specification.d.ts +57 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +412 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/index.d.ts +2 -0
- package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/index.js +2 -0
- package/dist/esm/engine/auth/resources/index.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +4 -4
- 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 +57 -6
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts +9 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js +141 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +4 -1
- 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 +10 -6
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
- 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 +5 -4
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts +4 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js +129 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts +19 -7
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +24 -13
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +0 -40
- 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 +14 -27
- 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 +8 -2
- 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 +16 -3
- 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 +5 -2
- 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 +10 -16
- 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.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +15 -5
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts +9 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js +164 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts +14 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +124 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js +123 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts +11 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js +172 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/index.d.ts +4 -0
- package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/index.js +4 -0
- package/dist/esm/engine/billing/resources/index.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +3 -3
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +3 -3
- 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/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +92 -36
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +77 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +375 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +1 -1
- package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +2 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +16 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +183 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -0
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +28 -0
- 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 +123 -19
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -1
- 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 +1 -0
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -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 +15 -3
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -0
- 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 +1 -1
- 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 -3
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +14 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +184 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js +18 -0
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js +21 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +82 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-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 +6 -5
- 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-consent-gate.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.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 +4 -2
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +1 -1
- 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-register.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +21 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js +20 -2
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js +177 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js +10 -2
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js +166 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js +122 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js +152 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js +13 -0
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.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/form/controls/string/inline-edit-text.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js +92 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +29 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +12 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +40 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts +25 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js +16 -2
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts +9 -0
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js +91 -7
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js +9 -3
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js +41 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js +19 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js.map +1 -1
- 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 +21 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +2 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +48 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -0
- 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 +3 -2
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +77 -3
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +11 -3
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +26 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +17 -8
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +49 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +293 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +5 -5
- 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 +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +6 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +3 -3
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +3 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +27 -5
- 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 +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +31 -12
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js +12 -1
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +12 -1
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.js +12 -1
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js +22 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
- package/dist/esm/engine/providers/perplexity.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 +10 -1
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/index.d.ts +4 -3
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +6 -4
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +5 -3
- 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 +2 -2
- 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 +2 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -0
- 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 +8 -3
- 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 +2 -2
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -2
- 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 +5 -5
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +3 -3
- 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 +1 -1
- 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 +1 -0
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/index.d.ts +39 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +39 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +134 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +142 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +35 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js +45 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts +33 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.js +77 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts +3 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js +40 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +122 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +138 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -0
- 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 +7 -15
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +14 -0
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +16 -3
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/esm/technical-documentation.exports.d.ts +4 -0
- package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
- package/dist/esm/technical-documentation.exports.js +24 -0
- package/dist/esm/technical-documentation.exports.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -13
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -103
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +0 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js +0 -76
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js.map +0 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +0 -108
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +0 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +0 -119
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +0 -1
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts +0 -3
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +0 -1
- package/dist/esm/application-creation-playbook-runtime.exports.js +0 -3
- package/dist/esm/application-creation-playbook-runtime.exports.js.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capability-composition.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/capability-composition/capability-composition.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAN,IAAY,4BAEX;AAFD,WAAY,4BAA4B;IACtC,yCAAS,CAAA;AACX,CAAC,EAFW,4BAA4B,KAA5B,4BAA4B,QAEvC;AAED;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,sBAeX;AAfD,WAAY,sBAAsB;IAChC,mDAAyB,CAAA;IACzB,uDAA6B,CAAA;IAC7B,uEAA6C,CAAA;IAC7C,qDAA2B,CAAA;IAC3B,qEAA2C,CAAA;IAC3C,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;IACvC,mDAAyB,CAAA;IACzB,6DAAmC,CAAA;IACnC,6DAAmC,CAAA;IACnC,uDAA6B,CAAA;IAC7B,+EAAqD,CAAA;IACrD,6DAAmC,CAAA;IACnC,mDAAyB,CAAA;AAC3B,CAAC,EAfW,sBAAsB,KAAtB,sBAAsB,QAejC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,oEAAoE;IACpE,2CAAiB,CAAA;IACjB,wGAAwG;IACxG,+CAAqB,CAAA;IACrB,wFAAwF;IACxF,yEAA+C,CAAA;AACjD,CAAC,E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;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC,EAAE,CAAC;IACtF;;;;;;;;;;OAUG;IACH,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7D,CAAC,CAAC;AAEH,2DAA2D","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\n/**\n * @wildo_source:part:start capability-composition.config facet:layer:specification facet:family:capability-composition\n *\n * WHICH composition scenarios this application needs — the typed declaration the foundation\n * executor applies (#1491).\n *\n * ## Why a family, and why it is DERIVED\n *\n * `templates/saas/scenarios/` ships fourteen composition scenarios and the journey applied two of\n * them (`add-module`, `add-resource`), both read off the domain plan. Nothing decided whether an\n * application has a website, a documentation portal, a worker, a minion, a second locale or\n * another environment, so twelve scenarios were reachable only by a human typing `wildo compose`.\n *\n * This family is that decision, recorded — and it is DERIVED, never asked. Every disposition below\n * names the declaration it was read from (a market channel, a brand brief, a pricing plan, an ICP\n * archetype) or names the typed declaration that would decide it and does not exist yet. A question\n * to the creator is not among the bases, by construction: `derive-before-you-ask.md` asks what\n * already decides a value, and for every scenario here something does — or nothing does, and the\n * honest record is DECLINED with the missing declaration named, not a form field.\n *\n * TOTAL over {@link CompositionScenarioRef}: a composition holds exactly one decision per scenario,\n * so a scenario added to the framework tomorrow is reported as undecided by every existing\n * application rather than silently omitted (the `undeclaredRetentionClasses` pattern).\n */\nexport enum CapabilityCompositionVersion {\n V1 = 'v1',\n}\n\n/**\n * The composition scenarios the framework ships — one member per folder under\n * `templates/saas/scenarios/`, in the value the `wildo compose <ref>` command takes.\n *\n * Closed on purpose: a scenario ref is the address of a template the composition engine loads, and a\n * ref this vocabulary does not name is one no application can be composed with.\n */\nexport enum CompositionScenarioRef {\n ADD_MODULE = 'add-module',\n ADD_RESOURCE = 'add-resource',\n ADD_CUSTOM_OPERATION = 'add-custom-operation',\n ADD_WEBSITE = 'add-website',\n ADD_WEBSITE_SECTION = 'add-website-section',\n ADD_MARKETING_PAGE = 'add-marketing-page',\n ADD_TECHNICAL_DOC = 'add-technical-doc',\n ADD_MINION = 'add-minion',\n ADD_WORKER_NODE = 'add-worker-node',\n ADD_WORKER_RUST = 'add-worker-rust',\n ADD_PROVIDER = 'add-provider',\n ADD_FILE_PICKER_PROVIDER = 'add-file-picker-provider',\n ADD_ENVIRONMENT = 'add-environment',\n ADD_LOCALE = 'add-locale',\n}\n\n/**\n * What the composition says about one scenario.\n *\n * Three members, and the third is the one that keeps the record honest: several scenarios are\n * applied by a DIFFERENT step (the domain composition applies `add-module`, a build task applies\n * `add-website-section`, the provider decision applies `add-provider`). Recording them as DECLINED\n * would read as \"this application has no modules\"; omitting them would break totality. So the\n * record says who owns them instead.\n */\nexport enum CompositionDisposition {\n /** The application needs it; the foundation executor applies it. */\n NEEDED = 'NEEDED',\n /** Nothing the application declares implies it, or no declaration exists that could — see the basis. */\n DECLINED = 'DECLINED',\n /** Another step applies this scenario, named in `ownedBy`; this record only says so. */\n OWNED_BY_ANOTHER_STEP = 'OWNED_BY_ANOTHER_STEP',\n}\n\n/**\n * WHAT decided a disposition — a closed vocabulary, because a composition decision is a statement\n * about the product and a free-text reason cannot be checked. Every member names a DERIVATION from\n * a declaration the application already carries, or names the absence of one.\n */\nexport enum CompositionBasis {\n /** The market snapshot declares an inbound web channel (organic or paid search, content, owned or paid social) — traffic that lands on a website. */\n MARKET_DECLARES_INBOUND_WEB_CHANNEL = 'MARKET_DECLARES_INBOUND_WEB_CHANNEL',\n /** A brand brief has landed: the product has a public identity to present. */\n BRAND_BRIEF_LANDED = 'BRAND_BRIEF_LANDED',\n /** The business model declares pricing plans, which a public pricing page presents. */\n BUSINESS_MODEL_DECLARES_PRICING_PLANS = 'BUSINESS_MODEL_DECLARES_PRICING_PLANS',\n /** The market snapshot targets legal entities (a CORE or EXPANSION ICP of archetype LEGAL_ENTITY): an organisation's buyers expect administrator and integration documentation. */\n MARKET_TARGETS_LEGAL_ENTITIES = 'MARKET_TARGETS_LEGAL_ENTITIES',\n /** The requirements declare a PORTABILITY non-functional requirement: data leaves through documented interfaces. */\n REQUIREMENTS_DECLARE_PORTABILITY = 'REQUIREMENTS_DECLARE_PORTABILITY',\n /** The domain plan owns modules and resources; the foundation's domain composition applies them. */\n DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES = 'DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES',\n /** A per-artifact scenario (an operation, a page, a section) is applied by the build task that produces the artifact. */\n BUILD_TASKS_OWN_PER_ARTIFACT_SCENARIOS = 'BUILD_TASKS_OWN_PER_ARTIFACT_SCENARIOS',\n /** Which provider serves a capability is the foundation's provider decision, not a composition question. */\n PROVIDER_DECISION_OWNS_PROVIDERS = 'PROVIDER_DECISION_OWNS_PROVIDERS',\n /** A deployment environment is an operator's act, taken when the application is deployed. */\n DEPLOYMENT_OWNS_ENVIRONMENTS = 'DEPLOYMENT_OWNS_ENVIRONMENTS',\n /**\n * The integration plan owns the workers and minions; the foundation composes one scenario per\n * surface it declares (#1495). The application-level twin of\n * {@link CompositionBasis.DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES}.\n */\n INTEGRATION_PLAN_OWNS_WORKERS_AND_MINIONS = 'INTEGRATION_PLAN_OWNS_WORKERS_AND_MINIONS',\n /** The declarations that could imply it are present and do not — measured, not assumed. */\n NO_DECLARATION_IMPLIES_IT = 'NO_DECLARATION_IMPLIES_IT',\n /** No typed declaration exists yet that could decide it; `missingDeclaration` names the one that would. */\n NO_DECLARATION_DECIDES_IT = 'NO_DECLARATION_DECIDES_IT',\n}\n\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/** One scenario's decision, with the declaration it was read from. */\nexport const CompositionDecisionSchema = z.strictObject({\n scenarioRef: z.enum(CompositionScenarioRef).systemEnum('CompositionScenarioRef'),\n disposition: z.enum(CompositionDisposition).systemEnum('CompositionDisposition'),\n basis: z.enum(CompositionBasis).systemEnum('CompositionBasis'),\n /** The derivation in one sentence — which entries decided it, so a reader can check the claim against the family it names. */\n detail: NonEmptyStringSchema,\n /** For OWNED_BY_ANOTHER_STEP: the step that applies it. */\n ownedBy: NonEmptyStringSchema.optional(),\n /** For NO_DECLARATION_DECIDES_IT: the typed declaration that would decide it, so the gap is a named field rather than a question. */\n missingDeclaration: NonEmptyStringSchema.optional(),\n});\nexport type CompositionDecision = z.infer<typeof CompositionDecisionSchema>;\n\n/**\n * THE capability-composition payload — one decision per scenario the framework ships.\n *\n * **Artifact-family id: `capability-composition`.** Produced by `bottom_up.capability-composition`\n * (a runner-owned derivation, never a model), consumed by `bottom_up.foundation`, which applies the\n * NEEDED scenarios and records each applied and each declined one with its basis.\n */\nexport const CapabilityCompositionSchema = z.object({\n version: z.enum(CapabilityCompositionVersion).default(CapabilityCompositionVersion.V1),\n /*\n * `scenarioDecisions`, not `decisions`, and the reason is not style.\n *\n * The workbench's field words are ONE namespace keyed by the COLLECTION name — `tasks.objective`,\n * `decisions.disposition` — shared across every family, because a field name declared by five\n * aspects means the same thing in all five. The placement plan already owns `decisions`, and its\n * `disposition` is `PLACED | DECLINED` while this one's is `NEEDED | DECLINED |\n * OWNED_BY_ANOTHER_STEP`. Two different vocabularies under one key is exactly the merge this\n * repository calls a trick, and the collision would have been silent: one family's words would\n * simply have won.\n */\n scenarioDecisions: z.array(CompositionDecisionSchema).min(1),\n});\nexport type CapabilityComposition = z.infer<typeof CapabilityCompositionSchema>;\n/** @wildo_source:part:end capability-composition.config */\n"]}
|
package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts
CHANGED
|
@@ -5,6 +5,19 @@ import { ComplianceConcern } from "./compliance-completeness-statement.schemas";
|
|
|
5
5
|
export declare const ComplianceStatementIncompletenessGenerationSchema: z.ZodObject<{
|
|
6
6
|
needs: z.ZodString;
|
|
7
7
|
closedBy: z.ZodString;
|
|
8
|
+
/**
|
|
9
|
+
* The declared facts whose arrival would close this gap — `null` when no fact family models it.
|
|
10
|
+
*
|
|
11
|
+
* Required-and-nullable, like every other deferrable field here and for the same reason: an omitted key
|
|
12
|
+
* and a considered "no fact models this" are different answers, and this is the field whose ABSENCE is
|
|
13
|
+
* the residual. A drafter that may simply drop it turns the residual from a stated bound into an
|
|
14
|
+
* unmeasurable one.
|
|
15
|
+
*
|
|
16
|
+
* See the family schema for what it buys: a clause asserting that something is not declared is reported
|
|
17
|
+
* STALE the moment the application declares it, instead of going on saying something untrue for as long
|
|
18
|
+
* as nobody re-reads it.
|
|
19
|
+
*/
|
|
20
|
+
awaitingFactRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
8
21
|
}, z.core.$strict>;
|
|
9
22
|
export declare const ComplianceDocumentCandidateClauseGenerationSchema: z.ZodObject<{
|
|
10
23
|
clauseRef: z.ZodString;
|
|
@@ -16,7 +29,30 @@ export declare const ComplianceDocumentCandidateClauseGenerationSchema: z.ZodObj
|
|
|
16
29
|
incompleteness: z.ZodNullable<z.ZodObject<{
|
|
17
30
|
needs: z.ZodString;
|
|
18
31
|
closedBy: z.ZodString;
|
|
32
|
+
/**
|
|
33
|
+
* The declared facts whose arrival would close this gap — `null` when no fact family models it.
|
|
34
|
+
*
|
|
35
|
+
* Required-and-nullable, like every other deferrable field here and for the same reason: an omitted key
|
|
36
|
+
* and a considered "no fact models this" are different answers, and this is the field whose ABSENCE is
|
|
37
|
+
* the residual. A drafter that may simply drop it turns the residual from a stated bound into an
|
|
38
|
+
* unmeasurable one.
|
|
39
|
+
*
|
|
40
|
+
* See the family schema for what it buys: a clause asserting that something is not declared is reported
|
|
41
|
+
* STALE the moment the application declares it, instead of going on saying something untrue for as long
|
|
42
|
+
* as nobody re-reads it.
|
|
43
|
+
*/
|
|
44
|
+
awaitingFactRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
19
45
|
}, z.core.$strict>>;
|
|
46
|
+
/**
|
|
47
|
+
* The document facts this clause asserts. Every ref must be one the application HAS declared.
|
|
48
|
+
*
|
|
49
|
+
* An empty list is valid and is the right shape for a clause that asserts no fact — including a
|
|
50
|
+
* clause marked incomplete, which names what it is waiting for in `incompleteness.needs` rather
|
|
51
|
+
* than by citing a fact that does not exist. Documented here, at the surface the drafting model
|
|
52
|
+
* reads, because until 2026-09-09 a marked clause's citations were never checked and three refs
|
|
53
|
+
* resolving to nothing landed in a real notice; the check now reports them
|
|
54
|
+
* (`UNRESOLVED_MARKED_CLAUSE_FACT`), so a draft that cites a non-existent ref costs an attempt.
|
|
55
|
+
*/
|
|
20
56
|
factRefs: z.ZodArray<z.ZodString>;
|
|
21
57
|
/**
|
|
22
58
|
* Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.
|
|
@@ -29,8 +65,34 @@ export declare const ComplianceDocumentCandidateClauseGenerationSchema: z.ZodObj
|
|
|
29
65
|
* Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.
|
|
30
66
|
*/
|
|
31
67
|
satisfiesClauseRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
68
|
+
/**
|
|
69
|
+
* The application POLICY AREAS the clause is sourced from — `policy:*` only, and legitimately EMPTY.
|
|
70
|
+
*
|
|
71
|
+
* `.min(1)` was removed 2026-09-09 and the namespace rule added, both stated at the family schema
|
|
72
|
+
* with the measurement behind them. The short version for whoever reads this contract: the
|
|
73
|
+
* constraint demanded a second naming from a clause that had already named its facts, and the only
|
|
74
|
+
* material available was those facts — so Wonder CRM's notice carried 32 invented
|
|
75
|
+
* `document-fact-authority:` slugs, none of which resolved to anything.
|
|
76
|
+
*
|
|
77
|
+
* Checked HERE as well as on the family schema, for the reason the completeness pairing is: this
|
|
78
|
+
* message goes back to the MODEL as a retry finding and names the clause and the offending ref.
|
|
79
|
+
*/
|
|
32
80
|
sourcePolicyRefs: z.ZodArray<z.ZodString>;
|
|
33
81
|
claimGuardRefs: z.ZodArray<z.ZodString>;
|
|
82
|
+
/**
|
|
83
|
+
* The judged runs from this application's assurance repository the clause rests on — `assurance-run:*`
|
|
84
|
+
* only, and `null` when it rests on none, which is the ordinary case (#297).
|
|
85
|
+
*
|
|
86
|
+
* Required-and-nullable rather than optional, like every other nullable key on this contract: a model
|
|
87
|
+
* permitted to OMIT a key answers by omission, and omission is indistinguishable from "I had nothing
|
|
88
|
+
* to cite" — the distinction this field exists to make. Writing `null` is a statement; leaving the key
|
|
89
|
+
* out is a gap in the answer.
|
|
90
|
+
*
|
|
91
|
+
* A model may only cite what the brief gave it. The runs reach a drafter through the declared
|
|
92
|
+
* assurance-evidence context section, and a ref that resolves to no committed run is refused by the
|
|
93
|
+
* binding validator, which can read the repository this contract cannot.
|
|
94
|
+
*/
|
|
95
|
+
evidenceRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
34
96
|
}, z.core.$strict>;
|
|
35
97
|
export declare const ComplianceDocumentCandidateSectionGenerationSchema: z.ZodObject<{
|
|
36
98
|
sectionRef: z.ZodString;
|
|
@@ -90,7 +152,30 @@ export declare const ComplianceDocumentCandidateSectionGenerationSchema: z.ZodOb
|
|
|
90
152
|
incompleteness: z.ZodNullable<z.ZodObject<{
|
|
91
153
|
needs: z.ZodString;
|
|
92
154
|
closedBy: z.ZodString;
|
|
155
|
+
/**
|
|
156
|
+
* The declared facts whose arrival would close this gap — `null` when no fact family models it.
|
|
157
|
+
*
|
|
158
|
+
* Required-and-nullable, like every other deferrable field here and for the same reason: an omitted key
|
|
159
|
+
* and a considered "no fact models this" are different answers, and this is the field whose ABSENCE is
|
|
160
|
+
* the residual. A drafter that may simply drop it turns the residual from a stated bound into an
|
|
161
|
+
* unmeasurable one.
|
|
162
|
+
*
|
|
163
|
+
* See the family schema for what it buys: a clause asserting that something is not declared is reported
|
|
164
|
+
* STALE the moment the application declares it, instead of going on saying something untrue for as long
|
|
165
|
+
* as nobody re-reads it.
|
|
166
|
+
*/
|
|
167
|
+
awaitingFactRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
93
168
|
}, z.core.$strict>>;
|
|
169
|
+
/**
|
|
170
|
+
* The document facts this clause asserts. Every ref must be one the application HAS declared.
|
|
171
|
+
*
|
|
172
|
+
* An empty list is valid and is the right shape for a clause that asserts no fact — including a
|
|
173
|
+
* clause marked incomplete, which names what it is waiting for in `incompleteness.needs` rather
|
|
174
|
+
* than by citing a fact that does not exist. Documented here, at the surface the drafting model
|
|
175
|
+
* reads, because until 2026-09-09 a marked clause's citations were never checked and three refs
|
|
176
|
+
* resolving to nothing landed in a real notice; the check now reports them
|
|
177
|
+
* (`UNRESOLVED_MARKED_CLAUSE_FACT`), so a draft that cites a non-existent ref costs an attempt.
|
|
178
|
+
*/
|
|
94
179
|
factRefs: z.ZodArray<z.ZodString>;
|
|
95
180
|
/**
|
|
96
181
|
* Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.
|
|
@@ -103,8 +188,34 @@ export declare const ComplianceDocumentCandidateSectionGenerationSchema: z.ZodOb
|
|
|
103
188
|
* Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.
|
|
104
189
|
*/
|
|
105
190
|
satisfiesClauseRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
191
|
+
/**
|
|
192
|
+
* The application POLICY AREAS the clause is sourced from — `policy:*` only, and legitimately EMPTY.
|
|
193
|
+
*
|
|
194
|
+
* `.min(1)` was removed 2026-09-09 and the namespace rule added, both stated at the family schema
|
|
195
|
+
* with the measurement behind them. The short version for whoever reads this contract: the
|
|
196
|
+
* constraint demanded a second naming from a clause that had already named its facts, and the only
|
|
197
|
+
* material available was those facts — so Wonder CRM's notice carried 32 invented
|
|
198
|
+
* `document-fact-authority:` slugs, none of which resolved to anything.
|
|
199
|
+
*
|
|
200
|
+
* Checked HERE as well as on the family schema, for the reason the completeness pairing is: this
|
|
201
|
+
* message goes back to the MODEL as a retry finding and names the clause and the offending ref.
|
|
202
|
+
*/
|
|
106
203
|
sourcePolicyRefs: z.ZodArray<z.ZodString>;
|
|
107
204
|
claimGuardRefs: z.ZodArray<z.ZodString>;
|
|
205
|
+
/**
|
|
206
|
+
* The judged runs from this application's assurance repository the clause rests on — `assurance-run:*`
|
|
207
|
+
* only, and `null` when it rests on none, which is the ordinary case (#297).
|
|
208
|
+
*
|
|
209
|
+
* Required-and-nullable rather than optional, like every other nullable key on this contract: a model
|
|
210
|
+
* permitted to OMIT a key answers by omission, and omission is indistinguishable from "I had nothing
|
|
211
|
+
* to cite" — the distinction this field exists to make. Writing `null` is a statement; leaving the key
|
|
212
|
+
* out is a gap in the answer.
|
|
213
|
+
*
|
|
214
|
+
* A model may only cite what the brief gave it. The runs reach a drafter through the declared
|
|
215
|
+
* assurance-evidence context section, and a ref that resolves to no committed run is refused by the
|
|
216
|
+
* binding validator, which can read the repository this contract cannot.
|
|
217
|
+
*/
|
|
218
|
+
evidenceRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
108
219
|
}, z.core.$strict>>;
|
|
109
220
|
}, z.core.$strict>;
|
|
110
221
|
export declare const ComplianceDocumentCandidateVariantSelectionGenerationSchema: z.ZodObject<{
|
|
@@ -211,7 +322,30 @@ export declare const ComplianceDocumentCandidateGenerationSchema: z.ZodObject<{
|
|
|
211
322
|
incompleteness: z.ZodNullable<z.ZodObject<{
|
|
212
323
|
needs: z.ZodString;
|
|
213
324
|
closedBy: z.ZodString;
|
|
325
|
+
/**
|
|
326
|
+
* The declared facts whose arrival would close this gap — `null` when no fact family models it.
|
|
327
|
+
*
|
|
328
|
+
* Required-and-nullable, like every other deferrable field here and for the same reason: an omitted key
|
|
329
|
+
* and a considered "no fact models this" are different answers, and this is the field whose ABSENCE is
|
|
330
|
+
* the residual. A drafter that may simply drop it turns the residual from a stated bound into an
|
|
331
|
+
* unmeasurable one.
|
|
332
|
+
*
|
|
333
|
+
* See the family schema for what it buys: a clause asserting that something is not declared is reported
|
|
334
|
+
* STALE the moment the application declares it, instead of going on saying something untrue for as long
|
|
335
|
+
* as nobody re-reads it.
|
|
336
|
+
*/
|
|
337
|
+
awaitingFactRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
214
338
|
}, z.core.$strict>>;
|
|
339
|
+
/**
|
|
340
|
+
* The document facts this clause asserts. Every ref must be one the application HAS declared.
|
|
341
|
+
*
|
|
342
|
+
* An empty list is valid and is the right shape for a clause that asserts no fact — including a
|
|
343
|
+
* clause marked incomplete, which names what it is waiting for in `incompleteness.needs` rather
|
|
344
|
+
* than by citing a fact that does not exist. Documented here, at the surface the drafting model
|
|
345
|
+
* reads, because until 2026-09-09 a marked clause's citations were never checked and three refs
|
|
346
|
+
* resolving to nothing landed in a real notice; the check now reports them
|
|
347
|
+
* (`UNRESOLVED_MARKED_CLAUSE_FACT`), so a draft that cites a non-existent ref costs an attempt.
|
|
348
|
+
*/
|
|
215
349
|
factRefs: z.ZodArray<z.ZodString>;
|
|
216
350
|
/**
|
|
217
351
|
* Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.
|
|
@@ -224,8 +358,34 @@ export declare const ComplianceDocumentCandidateGenerationSchema: z.ZodObject<{
|
|
|
224
358
|
* Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.
|
|
225
359
|
*/
|
|
226
360
|
satisfiesClauseRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
361
|
+
/**
|
|
362
|
+
* The application POLICY AREAS the clause is sourced from — `policy:*` only, and legitimately EMPTY.
|
|
363
|
+
*
|
|
364
|
+
* `.min(1)` was removed 2026-09-09 and the namespace rule added, both stated at the family schema
|
|
365
|
+
* with the measurement behind them. The short version for whoever reads this contract: the
|
|
366
|
+
* constraint demanded a second naming from a clause that had already named its facts, and the only
|
|
367
|
+
* material available was those facts — so Wonder CRM's notice carried 32 invented
|
|
368
|
+
* `document-fact-authority:` slugs, none of which resolved to anything.
|
|
369
|
+
*
|
|
370
|
+
* Checked HERE as well as on the family schema, for the reason the completeness pairing is: this
|
|
371
|
+
* message goes back to the MODEL as a retry finding and names the clause and the offending ref.
|
|
372
|
+
*/
|
|
227
373
|
sourcePolicyRefs: z.ZodArray<z.ZodString>;
|
|
228
374
|
claimGuardRefs: z.ZodArray<z.ZodString>;
|
|
375
|
+
/**
|
|
376
|
+
* The judged runs from this application's assurance repository the clause rests on — `assurance-run:*`
|
|
377
|
+
* only, and `null` when it rests on none, which is the ordinary case (#297).
|
|
378
|
+
*
|
|
379
|
+
* Required-and-nullable rather than optional, like every other nullable key on this contract: a model
|
|
380
|
+
* permitted to OMIT a key answers by omission, and omission is indistinguishable from "I had nothing
|
|
381
|
+
* to cite" — the distinction this field exists to make. Writing `null` is a statement; leaving the key
|
|
382
|
+
* out is a gap in the answer.
|
|
383
|
+
*
|
|
384
|
+
* A model may only cite what the brief gave it. The runs reach a drafter through the declared
|
|
385
|
+
* assurance-evidence context section, and a ref that resolves to no committed run is refused by the
|
|
386
|
+
* binding validator, which can read the repository this contract cannot.
|
|
387
|
+
*/
|
|
388
|
+
evidenceRefs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
229
389
|
}, z.core.$strict>>;
|
|
230
390
|
}, z.core.$strict>>;
|
|
231
391
|
reviewChecklistRefs: z.ZodArray<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compliance-document-candidate-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-document-candidate-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAIL,+BAA+B,
|
|
1
|
+
{"version":3,"file":"compliance-document-candidate-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-document-candidate-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAA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AC;AAwBhH,iHAAiH;AACjH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,OAAO,GAAG,2BAA2B,CAuDtG"}
|
package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ComplianceDocumentCandidateSchema, ComplianceDocumentCandidateVersion, ComplianceDocumentNamespacedRefSchema, ComplianceStatementCompleteness, } from "./compliance-document-candidate.schemas.js";
|
|
2
|
+
import { ComplianceDocumentCandidateSchema, ComplianceDocumentCandidateVersion, ComplianceDocumentNamespacedRefSchema, ComplianceStatementCompleteness, clauseNamesNoSourceMessage, evidenceNamespaceMessage, nonAssuranceRunEvidenceRefs, nonPolicySourceRefs, sourcePolicyNamespaceMessage, } from "./compliance-document-candidate.schemas.js";
|
|
3
3
|
import { ComplianceConcern } from "./compliance-completeness-statement.schemas.js";
|
|
4
4
|
import { KNOWN_DOCUMENT_REFS_BY_NAME } from "./required-document-set.schemas.js";
|
|
5
|
+
import { selectAssuranceDocumentBlueprintForDocumentRef } from "../../assurance/assurance-document-blueprint-selection.js";
|
|
6
|
+
import { createInitialAssuranceDocumentAuthorityCatalog } from "../../assurance/assurance-document-system.definitions.js";
|
|
7
|
+
/*
|
|
8
|
+
* entrypoint-closure-waiver: MEASURED SAFE 2026-09-24 by the root-only probe. The two imports above
|
|
9
|
+
* come from modules only the `assurance` subpath publishes, and this file is root-exported. A consumer
|
|
10
|
+
* resolving ONLY `@wildo-ai/saas-specifications`, deriving from `ComplianceDocumentCandidateGenerationSchema`,
|
|
11
|
+
* its `.shape` and the return of `parseComplianceDocumentCandidateGeneration(...)` with `declaration: true`,
|
|
12
|
+
* emitted with no error. Every named type resolved through the root (`ComplianceConcern`,
|
|
13
|
+
* `ComplianceStatementCompleteness`, `ComplianceDocumentCandidateVersion`), with no `node_modules` path.
|
|
14
|
+
* It holds because both imports are FUNCTIONS called inside `parseComplianceDocumentCandidateGeneration`'s
|
|
15
|
+
* body, whose return type is annotated. No exported declaration's type mentions either module.
|
|
16
|
+
* Exporting a value whose inferred type comes from them would invalidate the waiver; re-run the probe.
|
|
17
|
+
*/
|
|
5
18
|
/**
|
|
6
19
|
* The STRICT contract a provider answers for the `compliance-document-candidate` family.
|
|
7
20
|
*
|
|
@@ -48,6 +61,19 @@ const ProseSchema = z.string().trim().min(1);
|
|
|
48
61
|
export const ComplianceStatementIncompletenessGenerationSchema = z.strictObject({
|
|
49
62
|
needs: ProseSchema,
|
|
50
63
|
closedBy: ProseSchema,
|
|
64
|
+
/**
|
|
65
|
+
* The declared facts whose arrival would close this gap — `null` when no fact family models it.
|
|
66
|
+
*
|
|
67
|
+
* Required-and-nullable, like every other deferrable field here and for the same reason: an omitted key
|
|
68
|
+
* and a considered "no fact models this" are different answers, and this is the field whose ABSENCE is
|
|
69
|
+
* the residual. A drafter that may simply drop it turns the residual from a stated bound into an
|
|
70
|
+
* unmeasurable one.
|
|
71
|
+
*
|
|
72
|
+
* See the family schema for what it buys: a clause asserting that something is not declared is reported
|
|
73
|
+
* STALE the moment the application declares it, instead of going on saying something untrue for as long
|
|
74
|
+
* as nobody re-reads it.
|
|
75
|
+
*/
|
|
76
|
+
awaitingFactRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),
|
|
51
77
|
});
|
|
52
78
|
export const ComplianceDocumentCandidateClauseGenerationSchema = z
|
|
53
79
|
.strictObject({
|
|
@@ -58,6 +84,16 @@ export const ComplianceDocumentCandidateClauseGenerationSchema = z
|
|
|
58
84
|
completeness: z.enum(ComplianceStatementCompleteness),
|
|
59
85
|
/** `null` for a DERIVED clause; the pairing is enforced below exactly as the family schema enforces it. */
|
|
60
86
|
incompleteness: ComplianceStatementIncompletenessGenerationSchema.nullable(),
|
|
87
|
+
/**
|
|
88
|
+
* The document facts this clause asserts. Every ref must be one the application HAS declared.
|
|
89
|
+
*
|
|
90
|
+
* An empty list is valid and is the right shape for a clause that asserts no fact — including a
|
|
91
|
+
* clause marked incomplete, which names what it is waiting for in `incompleteness.needs` rather
|
|
92
|
+
* than by citing a fact that does not exist. Documented here, at the surface the drafting model
|
|
93
|
+
* reads, because until 2026-09-09 a marked clause's citations were never checked and three refs
|
|
94
|
+
* resolving to nothing landed in a real notice; the check now reports them
|
|
95
|
+
* (`UNRESOLVED_MARKED_CLAUSE_FACT`), so a draft that cites a non-existent ref costs an attempt.
|
|
96
|
+
*/
|
|
61
97
|
factRefs: z.array(ComplianceDocumentNamespacedRefSchema),
|
|
62
98
|
/**
|
|
63
99
|
* Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.
|
|
@@ -70,8 +106,34 @@ export const ComplianceDocumentCandidateClauseGenerationSchema = z
|
|
|
70
106
|
* Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.
|
|
71
107
|
*/
|
|
72
108
|
satisfiesClauseRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),
|
|
73
|
-
|
|
109
|
+
/**
|
|
110
|
+
* The application POLICY AREAS the clause is sourced from — `policy:*` only, and legitimately EMPTY.
|
|
111
|
+
*
|
|
112
|
+
* `.min(1)` was removed 2026-09-09 and the namespace rule added, both stated at the family schema
|
|
113
|
+
* with the measurement behind them. The short version for whoever reads this contract: the
|
|
114
|
+
* constraint demanded a second naming from a clause that had already named its facts, and the only
|
|
115
|
+
* material available was those facts — so Wonder CRM's notice carried 32 invented
|
|
116
|
+
* `document-fact-authority:` slugs, none of which resolved to anything.
|
|
117
|
+
*
|
|
118
|
+
* Checked HERE as well as on the family schema, for the reason the completeness pairing is: this
|
|
119
|
+
* message goes back to the MODEL as a retry finding and names the clause and the offending ref.
|
|
120
|
+
*/
|
|
121
|
+
sourcePolicyRefs: z.array(ComplianceDocumentNamespacedRefSchema),
|
|
74
122
|
claimGuardRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),
|
|
123
|
+
/**
|
|
124
|
+
* The judged runs from this application's assurance repository the clause rests on — `assurance-run:*`
|
|
125
|
+
* only, and `null` when it rests on none, which is the ordinary case (#297).
|
|
126
|
+
*
|
|
127
|
+
* Required-and-nullable rather than optional, like every other nullable key on this contract: a model
|
|
128
|
+
* permitted to OMIT a key answers by omission, and omission is indistinguishable from "I had nothing
|
|
129
|
+
* to cite" — the distinction this field exists to make. Writing `null` is a statement; leaving the key
|
|
130
|
+
* out is a gap in the answer.
|
|
131
|
+
*
|
|
132
|
+
* A model may only cite what the brief gave it. The runs reach a drafter through the declared
|
|
133
|
+
* assurance-evidence context section, and a ref that resolves to no committed run is refused by the
|
|
134
|
+
* binding validator, which can read the repository this contract cannot.
|
|
135
|
+
*/
|
|
136
|
+
evidenceRefs: z.array(z.string().trim().min(1)).min(1).nullable(),
|
|
75
137
|
})
|
|
76
138
|
.superRefine((clause, context) => {
|
|
77
139
|
const marked = clause.completeness !== ComplianceStatementCompleteness.DERIVED;
|
|
@@ -95,6 +157,22 @@ export const ComplianceDocumentCandidateClauseGenerationSchema = z
|
|
|
95
157
|
message: `clause "${clause.clauseRef}" is DERIVED, so it is established and cannot also declare what it is missing`,
|
|
96
158
|
});
|
|
97
159
|
}
|
|
160
|
+
/*
|
|
161
|
+
* The same two source rules the family schema applies, through the SAME helpers — one definition,
|
|
162
|
+
* two call sites. Duplicating the predicate here is what would let generation accept a draft the
|
|
163
|
+
* family parse then rejects, which is the one failure this contract exists to prevent.
|
|
164
|
+
*/
|
|
165
|
+
const nonPolicy = nonPolicySourceRefs(clause.sourcePolicyRefs);
|
|
166
|
+
if (nonPolicy.length > 0) {
|
|
167
|
+
context.addIssue({ code: "custom", path: ["sourcePolicyRefs"], message: sourcePolicyNamespaceMessage(clause.clauseRef, nonPolicy) });
|
|
168
|
+
}
|
|
169
|
+
if (clause.factRefs.length === 0 && clause.sourcePolicyRefs.length === 0) {
|
|
170
|
+
context.addIssue({ code: "custom", path: ["sourcePolicyRefs"], message: clauseNamesNoSourceMessage(clause.clauseRef) });
|
|
171
|
+
}
|
|
172
|
+
const nonRun = nonAssuranceRunEvidenceRefs(clause.evidenceRefs ?? []);
|
|
173
|
+
if (nonRun.length > 0) {
|
|
174
|
+
context.addIssue({ code: "custom", path: ["evidenceRefs"], message: evidenceNamespaceMessage(clause.clauseRef, nonRun) });
|
|
175
|
+
}
|
|
98
176
|
});
|
|
99
177
|
export const ComplianceDocumentCandidateSectionGenerationSchema = z.strictObject({
|
|
100
178
|
sectionRef: ComplianceDocumentNamespacedRefSchema,
|
|
@@ -186,9 +264,31 @@ export const ComplianceDocumentCandidateGenerationSchema = z.strictObject({
|
|
|
186
264
|
/** What the draft does NOT cover, stated by the drafter rather than discovered by the reader. */
|
|
187
265
|
limitationRefs: z.array(ComplianceDocumentNamespacedRefSchema),
|
|
188
266
|
});
|
|
267
|
+
/**
|
|
268
|
+
* The catalog claim guards of the blueprint clauses a drafted clause claims to satisfy (#1452).
|
|
269
|
+
*
|
|
270
|
+
* A clause's `claimGuardRefs` is documented as "the claim guards a reviewer checks this clause against",
|
|
271
|
+
* and until 2026-09-21 it held only what the drafter wrote — its own self-restrictions
|
|
272
|
+
* (`claim-guard:known-fact-only`, `claim-guard:no-certification-claim`…). The guard the catalog actually
|
|
273
|
+
* declares for that material (`document-claim-guard:public-privacy-notice`, with its prohibited claims, its
|
|
274
|
+
* required facts and its reviewer instruction) never reached the candidate, so a reviewer following the
|
|
275
|
+
* field would check every drafter restriction and never the one the catalog imposes.
|
|
276
|
+
*
|
|
277
|
+
* DERIVED rather than asked of the drafter, deliberately: the blueprint brief keeps guards out of the drafting
|
|
278
|
+
* prompt on purpose (a drafter answering reviewer questions nobody asked), and every blueprint clause already
|
|
279
|
+
* names its guard, so the only input needed is `satisfiesClauseRefs` — which the drafter states anyway. A
|
|
280
|
+
* clause that claims no blueprint clause, or one the catalog does not know, derives nothing; refusing that is
|
|
281
|
+
* the coverage validators' job, not this normalization's.
|
|
282
|
+
*/
|
|
283
|
+
function deriveCatalogClaimGuardRefs(documentRef) {
|
|
284
|
+
const selection = selectAssuranceDocumentBlueprintForDocumentRef(createInitialAssuranceDocumentAuthorityCatalog(), documentRef);
|
|
285
|
+
const guardsByClause = new Map((selection?.blueprint.clauses ?? []).map((clause) => [String(clause.clauseRef), clause.claimGuardRefs.map(String)]));
|
|
286
|
+
return (satisfiesClauseRefs) => [...new Set(satisfiesClauseRefs.flatMap((clauseRef) => guardsByClause.get(clauseRef) ?? []))];
|
|
287
|
+
}
|
|
189
288
|
/** Normalize strict provider output into the canonical family value: `null` → absent, plus the version stamp. */
|
|
190
289
|
export function parseComplianceDocumentCandidateGeneration(input) {
|
|
191
290
|
const generated = ComplianceDocumentCandidateGenerationSchema.parse(input);
|
|
291
|
+
const catalogGuardsFor = deriveCatalogClaimGuardRefs(generated.documentRef);
|
|
192
292
|
return ComplianceDocumentCandidateSchema.parse({
|
|
193
293
|
version: ComplianceDocumentCandidateVersion.V1,
|
|
194
294
|
documentRef: generated.documentRef,
|
|
@@ -211,11 +311,31 @@ export function parseComplianceDocumentCandidateGeneration(input) {
|
|
|
211
311
|
completeness: clause.completeness,
|
|
212
312
|
// Absence, not `undefined`: the family schema forbids the key on a DERIVED clause, and a
|
|
213
313
|
// strictObject carrying an explicit `undefined` is not the same as one omitting the key.
|
|
214
|
-
|
|
314
|
+
/*
|
|
315
|
+
* `awaitingFactRefs` takes the same null → absence treatment ONE LEVEL DEEPER, and it has to be
|
|
316
|
+
* spelled out rather than carried by the spread: `incompleteness` is a strictObject on the family
|
|
317
|
+
* side too, so passing the generated object through whole would hand it an explicit
|
|
318
|
+
* `awaitingFactRefs: null`, which a strictObject rejects. Same trap the sibling fields above
|
|
319
|
+
* document, one nesting level down, where the spread hides it.
|
|
320
|
+
*/
|
|
321
|
+
...(clause.incompleteness === null
|
|
322
|
+
? {}
|
|
323
|
+
: {
|
|
324
|
+
incompleteness: {
|
|
325
|
+
needs: clause.incompleteness.needs,
|
|
326
|
+
closedBy: clause.incompleteness.closedBy,
|
|
327
|
+
...(clause.incompleteness.awaitingFactRefs === null ? {} : { awaitingFactRefs: clause.incompleteness.awaitingFactRefs }),
|
|
328
|
+
},
|
|
329
|
+
}),
|
|
215
330
|
factRefs: clause.factRefs,
|
|
216
331
|
...(clause.satisfiesClauseRefs === null ? {} : { satisfiesClauseRefs: clause.satisfiesClauseRefs }),
|
|
217
332
|
sourcePolicyRefs: clause.sourcePolicyRefs,
|
|
218
|
-
|
|
333
|
+
// `null` is the model saying it cites no run; the family schema's field is OPTIONAL, so the
|
|
334
|
+
// normalized clause omits the key entirely rather than carrying an empty array that would read
|
|
335
|
+
// as "cited nothing" beside a clause that never had anything to cite.
|
|
336
|
+
...(clause.evidenceRefs && clause.evidenceRefs.length > 0 ? { evidenceRefs: clause.evidenceRefs } : {}),
|
|
337
|
+
// The drafter's own restrictions first, in its order, then the catalog guards of what it satisfies.
|
|
338
|
+
claimGuardRefs: [...new Set([...clause.claimGuardRefs, ...catalogGuardsFor(clause.satisfiesClauseRefs ?? [])])],
|
|
219
339
|
})),
|
|
220
340
|
})),
|
|
221
341
|
reviewChecklistRefs: generated.reviewChecklistRefs,
|
package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compliance-document-candidate-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-document-candidate-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,iCAAiC,EACjC,kCAAkC,EAClC,qCAAqC,EACrC,+BAA+B,GAEhC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,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,MAAM,CAAC,cAAc;aACtC,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;QAClD,cAAc,EAAE,SAAS,CAAC,cAAc;KACzC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport {\n ComplianceDocumentCandidateSchema,\n ComplianceDocumentCandidateVersion,\n ComplianceDocumentNamespacedRefSchema,\n ComplianceStatementCompleteness,\n type ComplianceDocumentCandidate,\n} from \"./compliance-document-candidate.schemas\";\nimport { ComplianceConcern } from \"./compliance-completeness-statement.schemas\";\nimport { KNOWN_DOCUMENT_REFS_BY_NAME } from \"./required-document-set.schemas\";\n\n/**\n * The STRICT contract a provider answers for the `compliance-document-candidate` family.\n *\n * ## Why the family schema is not this contract\n *\n * The family schema is what a HAND-AUTHORED file is parsed against, so it is permissive where a human\n * would reasonably leave a key out: `completeness` defaults, `incompleteness` is optional, `locale` and\n * `jurisdictionRefs` are optional, `variantSelections` and `limitationRefs` default to empty. Every one\n * of those defaults is right for a human and wrong for a provider, for the reason three families in a\n * row shipped a broken lane in 2026-08: a model handed the permissive schema satisfies it by OMISSION,\n * and an omission is indistinguishable from a considered answer.\n *\n * ## The one that is not merely untidy\n *\n * `completeness` defaults to {@link ComplianceStatementCompleteness.DERIVED}, the STRICT state — a\n * clause claiming to be established from what the application is, whose every cited fact must be\n * declared. That default is correct for a hand-authored clause, where the cost of being wrong is a\n * refusal a human can answer.\n *\n * Given to a MODEL it inverts: a drafter that simply never emits the key produces a document of\n * silently-`DERIVED` clauses, and the fact-binding check — the one guard standing between a draft and\n * an unfounded legal claim — is exactly the thing that then rejects it. So the model is either blocked\n * by a rule it was never told about, or, on the clauses whose facts happen to exist, asserts as\n * established things it could not establish. **This is the single direction that readmits invention**,\n * which is why `completeness` is required-and-explicit here.\n *\n * ## Nullable-and-required, not optional\n *\n * Every deferrable field is `.nullable()` and required, matching every sibling generation contract\n * (`BusinessModelLiteSnapshotGenerationSchema`, `ApplicationDocumentFactSpecificationGenerationSchema`).\n * An omitted key and a considered \"there is none\" are different answers, and a provider that may drop a\n * key gives no way to tell them apart. The normalizer turns `null` back into absence, which is what the\n * family schema means by an unanswered second-step question.\n *\n * ## What the runtime stamps, and what it deliberately does not\n *\n * Only `version` — the family's schema discriminator, which is not content. Unlike the fact\n * specification, this contract does NOT stamp refs: a `clauseRef`, `sectionRef` and `documentRef` are\n * things the DOCUMENT says about its own structure, authored by the drafter, and inventing them in the\n * runtime would be the runtime writing part of the document.\n */\n\nconst ProseSchema = z.string().trim().min(1);\n\n/** What a marked statement needs and who supplies it — required whenever completeness is not DERIVED. */\nexport const ComplianceStatementIncompletenessGenerationSchema = z.strictObject({\n needs: ProseSchema,\n closedBy: ProseSchema,\n});\n\nexport const ComplianceDocumentCandidateClauseGenerationSchema = z\n .strictObject({\n clauseRef: ComplianceDocumentNamespacedRefSchema,\n order: z.number().int().positive(),\n bodyMarkdown: ProseSchema,\n /** Required, never defaulted — see the file header. This is the invention boundary. */\n completeness: z.enum(ComplianceStatementCompleteness),\n /** `null` for a DERIVED clause; the pairing is enforced below exactly as the family schema enforces it. */\n incompleteness: ComplianceStatementIncompletenessGenerationSchema.nullable(),\n factRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n /**\n * Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.\n *\n * The clause half of issue #244, and it was found through the method's own prose rather than by\n * looking: the drafting guidance says \"**Clauses carry the same claim**, as `satisfiesClauseRefs`\"\n * while this `strictObject` had no such key, so the instruction was unfollowable at both levels.\n * One claim, two call sites — see `.claude/rules/invariant-call-site-enumeration.md`.\n *\n * Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.\n */\n satisfiesClauseRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n sourcePolicyRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n claimGuardRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n })\n .superRefine((clause, context) => {\n const marked = clause.completeness !== ComplianceStatementCompleteness.DERIVED;\n /*\n * Checked HERE as well as on the family schema, and the duplication earns its keep: a generation\n * rejection's message goes back to the MODEL as a retry finding, naming the clause it must fix. The\n * family schema would catch the same violation after normalization, as a Zod path index — correct,\n * and useless as a repair instruction.\n */\n if (marked && clause.incompleteness === null) {\n context.addIssue({\n code: \"custom\",\n path: [\"incompleteness\"],\n message: `clause \"${clause.clauseRef}\" is marked ${clause.completeness}, so it must state what it needs and who closes it`,\n });\n }\n if (!marked && clause.incompleteness !== null) {\n context.addIssue({\n code: \"custom\",\n path: [\"incompleteness\"],\n message: `clause \"${clause.clauseRef}\" is DERIVED, so it is established and cannot also declare what it is missing`,\n });\n }\n });\n\nexport const ComplianceDocumentCandidateSectionGenerationSchema = z.strictObject({\n sectionRef: ComplianceDocumentNamespacedRefSchema,\n order: z.number().int().positive(),\n title: ProseSchema,\n /**\n * Which compliance concern this section answers — `null` for a section that answers none (a\n * preamble, a contact block).\n *\n * Required-and-nullable rather than optional, like every other deferrable field here: the drafter is\n * told to write one section per concern from the composition reference, so omitting the key is not a\n * considered \"this answers no concern\" — it is a section whose concern nobody recorded, and the\n * completeness statement projected from it would silently under-count what the document covers.\n *\n * CONSTRAINED to {@link ComplianceConcern} since 2026-08-29, and the reason is measured rather than\n * tidiness. As a free string it was answerable with `null`, and the first document produced live\n * answered `null` for all four of its sections — so `projectComplianceCompletenessStatement`, which\n * groups clauses BY CONCERN, saw nothing to group and returned an empty statement. The completeness\n * projection was correct code with no reachable input. A free-form concern name would have been no\n * better: the projection matches against the enum's values, so `\"retention\"` and\n * `\"retention-and-deletion\"` are a silent miss and a reported gap that is not one.\n */\n concernRef: z.enum(ComplianceConcern).nullable(),\n /**\n * Which of the document blueprint's REQUIRED sections this section satisfies — `null` for a section\n * that satisfies none (a preamble, a contact block).\n *\n * ## The measured defect this closes (issue #244)\n *\n * The field exists on the family schema and was ABSENT here, and this contract is a `strictObject`,\n * so the drafter could not emit it however clearly its method asked. Every landed document therefore\n * claimed nothing, and the coherence report's `compliance-document-required-section-not-covered`\n * check reported EVERY required section uncovered on EVERY run — permanently, for every application.\n *\n * Measured on the first live service-terms candidate (wonder-crm, 2026-09-02): \"11 of 11 section(s)\n * this document's definition requires are claimed by no section of the draft\", on a draft whose\n * eleven sections corresponded to the blueprint's eleven one for one. The content was there; only\n * the claim was missing. A coverage check that is wrong in the alarming direction on the legal\n * surface is worse than one that is absent — it is the finding a reader learns to skip, and it masks\n * the run where a section genuinely IS missing.\n *\n * Required-and-nullable rather than optional, for the same reason as {@link concernRef} above: the\n * drafter is told to write against the blueprint's required set, so omitting the key is not a\n * considered \"this satisfies nothing\" — it is a section whose coverage nobody recorded, and the\n * coverage check cannot tell that apart from a genuine gap.\n *\n * `.min(1)` when present, because an empty array and `null` would be two spellings of one state.\n */\n satisfiesSectionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n clauses: z.array(ComplianceDocumentCandidateClauseGenerationSchema).min(1),\n});\n\nexport const ComplianceDocumentCandidateVariantSelectionGenerationSchema = z.strictObject({\n axisRef: ComplianceDocumentNamespacedRefSchema,\n optionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n supportingFactRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n});\n\nexport const ComplianceDocumentCandidateGenerationSchema = z.strictObject({\n /**\n * WHICH governed document this is, from the closed set the framework knows how to measure.\n *\n * Constrained 2026-08-29. As a free namespaced ref, the first live run named\n * `compliance-document-candidate:wonder-crm-data-handling-notice` — a well-formed ref for a document\n * that exists nowhere: `CONCERNS_BY_DOCUMENT` has no entry for it, so the completeness statement had\n * no concern set to measure against, and `validateComplianceDocumentIsRequired` could not say whether\n * the application needs it. The draft was schema-valid, readable, and unmeasurable.\n *\n * A document the framework cannot name is a document it cannot state the gaps in, and stating the\n * gaps is this whole capability's purpose (D4: completeness is measured against FULL compliance).\n * Naming a NEW document is a framework change — a concern composition and a required-set rule — not\n * something a drafter decides mid-draft.\n */\n documentRef: z.enum(KNOWN_DOCUMENT_REFS_BY_NAME),\n title: ProseSchema,\n /**\n * `null` when the locale decision has not been taken — a second-step question that must never gate\n * drafting. Required-and-nullable so \"not yet decided\" is something the drafter STATES rather than\n * something a missing key implies.\n */\n locale: z.string().trim().min(2).nullable(),\n /** `null` when the jurisdiction decision is still open, for the same reason as `locale`. */\n jurisdictionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n /**\n * Publication-axis decisions. Empty is the honest answer for a first draft — a variant selection is a\n * DECISION the document makes, and there is no \"undecided\" selection: an undecided axis is omitted.\n */\n variantSelections: z.array(ComplianceDocumentCandidateVariantSelectionGenerationSchema),\n sections: z.array(ComplianceDocumentCandidateSectionGenerationSchema).min(1),\n reviewChecklistRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n /** What the draft does NOT cover, stated by the drafter rather than discovered by the reader. */\n limitationRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n});\nexport type ComplianceDocumentCandidateGeneration = z.infer<typeof ComplianceDocumentCandidateGenerationSchema>;\n\n/** Normalize strict provider output into the canonical family value: `null` → absent, plus the version stamp. */\nexport function parseComplianceDocumentCandidateGeneration(input: unknown): ComplianceDocumentCandidate {\n const generated = ComplianceDocumentCandidateGenerationSchema.parse(input);\n return ComplianceDocumentCandidateSchema.parse({\n version: ComplianceDocumentCandidateVersion.V1,\n documentRef: generated.documentRef,\n title: generated.title,\n ...(generated.locale === null ? {} : { locale: generated.locale }),\n ...(generated.jurisdictionRefs === null ? {} : { jurisdictionRefs: generated.jurisdictionRefs }),\n variantSelections: generated.variantSelections,\n sections: generated.sections.map((section) => ({\n sectionRef: section.sectionRef,\n order: section.order,\n title: section.title,\n ...(section.concernRef === null ? {} : { concernRef: section.concernRef }),\n // Absence, not `undefined`, exactly as the clause fields below: the family schema declares this\n // optional, and a strictObject carrying an explicit `undefined` is not the same as omitting it.\n ...(section.satisfiesSectionRefs === null ? {} : { satisfiesSectionRefs: section.satisfiesSectionRefs }),\n clauses: section.clauses.map((clause) => ({\n clauseRef: clause.clauseRef,\n order: clause.order,\n bodyMarkdown: clause.bodyMarkdown,\n completeness: clause.completeness,\n // Absence, not `undefined`: the family schema forbids the key on a DERIVED clause, and a\n // strictObject carrying an explicit `undefined` is not the same as one omitting the key.\n ...(clause.incompleteness === null ? {} : { incompleteness: clause.incompleteness }),\n factRefs: clause.factRefs,\n ...(clause.satisfiesClauseRefs === null ? {} : { satisfiesClauseRefs: clause.satisfiesClauseRefs }),\n sourcePolicyRefs: clause.sourcePolicyRefs,\n claimGuardRefs: clause.claimGuardRefs,\n })),\n })),\n reviewChecklistRefs: generated.reviewChecklistRefs,\n limitationRefs: generated.limitationRefs,\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"compliance-document-candidate-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/compliance-document-candidate-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,iCAAiC,EACjC,kCAAkC,EAClC,qCAAqC,EACrC,+BAA+B,EAC/B,0BAA0B,EAC1B,wBAAwB,EACxB,2BAA2B,EAC3B,mBAAmB,EACnB,4BAA4B,GAE7B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,8CAA8C,EAAE,MAAM,wDAAwD,CAAC;AACxH,OAAO,EAAE,8CAA8C,EAAE,MAAM,uDAAuD,CAAC;AAEvH;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE7C,yGAAyG;AACzG,MAAM,CAAC,M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AAG,CAAC,CAAC,GAAG,MAAM,CAAC,cAAc,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;aAChH,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,mBAAmB,EAAE,SAAS,CAAC,mBAAmB;QAClD,cAAc,EAAE,SAAS,CAAC,cAAc;KACzC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport {\n ComplianceDocumentCandidateSchema,\n ComplianceDocumentCandidateVersion,\n ComplianceDocumentNamespacedRefSchema,\n ComplianceStatementCompleteness,\n clauseNamesNoSourceMessage,\n evidenceNamespaceMessage,\n nonAssuranceRunEvidenceRefs,\n nonPolicySourceRefs,\n sourcePolicyNamespaceMessage,\n type ComplianceDocumentCandidate,\n} from \"./compliance-document-candidate.schemas\";\nimport { ComplianceConcern } from \"./compliance-completeness-statement.schemas\";\nimport { KNOWN_DOCUMENT_REFS_BY_NAME } from \"./required-document-set.schemas\";\nimport { selectAssuranceDocumentBlueprintForDocumentRef } from \"../../assurance/assurance-document-blueprint-selection\";\nimport { createInitialAssuranceDocumentAuthorityCatalog } from \"../../assurance/assurance-document-system.definitions\";\n\n/*\n * entrypoint-closure-waiver: MEASURED SAFE 2026-09-24 by the root-only probe. The two imports above\n * come from modules only the `assurance` subpath publishes, and this file is root-exported. A consumer\n * resolving ONLY `@wildo-ai/saas-specifications`, deriving from `ComplianceDocumentCandidateGenerationSchema`,\n * its `.shape` and the return of `parseComplianceDocumentCandidateGeneration(...)` with `declaration: true`,\n * emitted with no error. Every named type resolved through the root (`ComplianceConcern`,\n * `ComplianceStatementCompleteness`, `ComplianceDocumentCandidateVersion`), with no `node_modules` path.\n * It holds because both imports are FUNCTIONS called inside `parseComplianceDocumentCandidateGeneration`'s\n * body, whose return type is annotated. No exported declaration's type mentions either module.\n * Exporting a value whose inferred type comes from them would invalidate the waiver; re-run the probe.\n */\n\n/**\n * The STRICT contract a provider answers for the `compliance-document-candidate` family.\n *\n * ## Why the family schema is not this contract\n *\n * The family schema is what a HAND-AUTHORED file is parsed against, so it is permissive where a human\n * would reasonably leave a key out: `completeness` defaults, `incompleteness` is optional, `locale` and\n * `jurisdictionRefs` are optional, `variantSelections` and `limitationRefs` default to empty. Every one\n * of those defaults is right for a human and wrong for a provider, for the reason three families in a\n * row shipped a broken lane in 2026-08: a model handed the permissive schema satisfies it by OMISSION,\n * and an omission is indistinguishable from a considered answer.\n *\n * ## The one that is not merely untidy\n *\n * `completeness` defaults to {@link ComplianceStatementCompleteness.DERIVED}, the STRICT state — a\n * clause claiming to be established from what the application is, whose every cited fact must be\n * declared. That default is correct for a hand-authored clause, where the cost of being wrong is a\n * refusal a human can answer.\n *\n * Given to a MODEL it inverts: a drafter that simply never emits the key produces a document of\n * silently-`DERIVED` clauses, and the fact-binding check — the one guard standing between a draft and\n * an unfounded legal claim — is exactly the thing that then rejects it. So the model is either blocked\n * by a rule it was never told about, or, on the clauses whose facts happen to exist, asserts as\n * established things it could not establish. **This is the single direction that readmits invention**,\n * which is why `completeness` is required-and-explicit here.\n *\n * ## Nullable-and-required, not optional\n *\n * Every deferrable field is `.nullable()` and required, matching every sibling generation contract\n * (`BusinessModelLiteSnapshotGenerationSchema`, `ApplicationDocumentFactSpecificationGenerationSchema`).\n * An omitted key and a considered \"there is none\" are different answers, and a provider that may drop a\n * key gives no way to tell them apart. The normalizer turns `null` back into absence, which is what the\n * family schema means by an unanswered second-step question.\n *\n * ## What the runtime stamps, and what it deliberately does not\n *\n * Only `version` — the family's schema discriminator, which is not content. Unlike the fact\n * specification, this contract does NOT stamp refs: a `clauseRef`, `sectionRef` and `documentRef` are\n * things the DOCUMENT says about its own structure, authored by the drafter, and inventing them in the\n * runtime would be the runtime writing part of the document.\n */\n\nconst ProseSchema = z.string().trim().min(1);\n\n/** What a marked statement needs and who supplies it — required whenever completeness is not DERIVED. */\nexport const ComplianceStatementIncompletenessGenerationSchema = z.strictObject({\n needs: ProseSchema,\n closedBy: ProseSchema,\n /**\n * The declared facts whose arrival would close this gap — `null` when no fact family models it.\n *\n * Required-and-nullable, like every other deferrable field here and for the same reason: an omitted key\n * and a considered \"no fact models this\" are different answers, and this is the field whose ABSENCE is\n * the residual. A drafter that may simply drop it turns the residual from a stated bound into an\n * unmeasurable one.\n *\n * See the family schema for what it buys: a clause asserting that something is not declared is reported\n * STALE the moment the application declares it, instead of going on saying something untrue for as long\n * as nobody re-reads it.\n */\n awaitingFactRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n});\n\nexport const ComplianceDocumentCandidateClauseGenerationSchema = z\n .strictObject({\n clauseRef: ComplianceDocumentNamespacedRefSchema,\n order: z.number().int().positive(),\n bodyMarkdown: ProseSchema,\n /** Required, never defaulted — see the file header. This is the invention boundary. */\n completeness: z.enum(ComplianceStatementCompleteness),\n /** `null` for a DERIVED clause; the pairing is enforced below exactly as the family schema enforces it. */\n incompleteness: ComplianceStatementIncompletenessGenerationSchema.nullable(),\n /**\n * The document facts this clause asserts. Every ref must be one the application HAS declared.\n *\n * An empty list is valid and is the right shape for a clause that asserts no fact — including a\n * clause marked incomplete, which names what it is waiting for in `incompleteness.needs` rather\n * than by citing a fact that does not exist. Documented here, at the surface the drafting model\n * reads, because until 2026-09-09 a marked clause's citations were never checked and three refs\n * resolving to nothing landed in a real notice; the check now reports them\n * (`UNRESOLVED_MARKED_CLAUSE_FACT`), so a draft that cites a non-existent ref costs an attempt.\n */\n factRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n /**\n * Which of the blueprint's clauses THIS clause supplies — `null` when it supplies none.\n *\n * The clause half of issue #244, and it was found through the method's own prose rather than by\n * looking: the drafting guidance says \"**Clauses carry the same claim**, as `satisfiesClauseRefs`\"\n * while this `strictObject` had no such key, so the instruction was unfollowable at both levels.\n * One claim, two call sites — see `.claude/rules/invariant-call-site-enumeration.md`.\n *\n * Required-and-nullable and `.min(1)` when present, for the reasons given on the section field.\n */\n satisfiesClauseRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n /**\n * The application POLICY AREAS the clause is sourced from — `policy:*` only, and legitimately EMPTY.\n *\n * `.min(1)` was removed 2026-09-09 and the namespace rule added, both stated at the family schema\n * with the measurement behind them. The short version for whoever reads this contract: the\n * constraint demanded a second naming from a clause that had already named its facts, and the only\n * material available was those facts — so Wonder CRM's notice carried 32 invented\n * `document-fact-authority:` slugs, none of which resolved to anything.\n *\n * Checked HERE as well as on the family schema, for the reason the completeness pairing is: this\n * message goes back to the MODEL as a retry finding and names the clause and the offending ref.\n */\n sourcePolicyRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n claimGuardRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n /**\n * The judged runs from this application's assurance repository the clause rests on — `assurance-run:*`\n * only, and `null` when it rests on none, which is the ordinary case (#297).\n *\n * Required-and-nullable rather than optional, like every other nullable key on this contract: a model\n * permitted to OMIT a key answers by omission, and omission is indistinguishable from \"I had nothing\n * to cite\" — the distinction this field exists to make. Writing `null` is a statement; leaving the key\n * out is a gap in the answer.\n *\n * A model may only cite what the brief gave it. The runs reach a drafter through the declared\n * assurance-evidence context section, and a ref that resolves to no committed run is refused by the\n * binding validator, which can read the repository this contract cannot.\n */\n evidenceRefs: z.array(z.string().trim().min(1)).min(1).nullable(),\n })\n .superRefine((clause, context) => {\n const marked = clause.completeness !== ComplianceStatementCompleteness.DERIVED;\n /*\n * Checked HERE as well as on the family schema, and the duplication earns its keep: a generation\n * rejection's message goes back to the MODEL as a retry finding, naming the clause it must fix. The\n * family schema would catch the same violation after normalization, as a Zod path index — correct,\n * and useless as a repair instruction.\n */\n if (marked && clause.incompleteness === null) {\n context.addIssue({\n code: \"custom\",\n path: [\"incompleteness\"],\n message: `clause \"${clause.clauseRef}\" is marked ${clause.completeness}, so it must state what it needs and who closes it`,\n });\n }\n if (!marked && clause.incompleteness !== null) {\n context.addIssue({\n code: \"custom\",\n path: [\"incompleteness\"],\n message: `clause \"${clause.clauseRef}\" is DERIVED, so it is established and cannot also declare what it is missing`,\n });\n }\n /*\n * The same two source rules the family schema applies, through the SAME helpers — one definition,\n * two call sites. Duplicating the predicate here is what would let generation accept a draft the\n * family parse then rejects, which is the one failure this contract exists to prevent.\n */\n const nonPolicy = nonPolicySourceRefs(clause.sourcePolicyRefs);\n if (nonPolicy.length > 0) {\n context.addIssue({ code: \"custom\", path: [\"sourcePolicyRefs\"], message: sourcePolicyNamespaceMessage(clause.clauseRef, nonPolicy) });\n }\n if (clause.factRefs.length === 0 && clause.sourcePolicyRefs.length === 0) {\n context.addIssue({ code: \"custom\", path: [\"sourcePolicyRefs\"], message: clauseNamesNoSourceMessage(clause.clauseRef) });\n }\n const nonRun = nonAssuranceRunEvidenceRefs(clause.evidenceRefs ?? []);\n if (nonRun.length > 0) {\n context.addIssue({ code: \"custom\", path: [\"evidenceRefs\"], message: evidenceNamespaceMessage(clause.clauseRef, nonRun) });\n }\n });\n\nexport const ComplianceDocumentCandidateSectionGenerationSchema = z.strictObject({\n sectionRef: ComplianceDocumentNamespacedRefSchema,\n order: z.number().int().positive(),\n title: ProseSchema,\n /**\n * Which compliance concern this section answers — `null` for a section that answers none (a\n * preamble, a contact block).\n *\n * Required-and-nullable rather than optional, like every other deferrable field here: the drafter is\n * told to write one section per concern from the composition reference, so omitting the key is not a\n * considered \"this answers no concern\" — it is a section whose concern nobody recorded, and the\n * completeness statement projected from it would silently under-count what the document covers.\n *\n * CONSTRAINED to {@link ComplianceConcern} since 2026-08-29, and the reason is measured rather than\n * tidiness. As a free string it was answerable with `null`, and the first document produced live\n * answered `null` for all four of its sections — so `projectComplianceCompletenessStatement`, which\n * groups clauses BY CONCERN, saw nothing to group and returned an empty statement. The completeness\n * projection was correct code with no reachable input. A free-form concern name would have been no\n * better: the projection matches against the enum's values, so `\"retention\"` and\n * `\"retention-and-deletion\"` are a silent miss and a reported gap that is not one.\n */\n concernRef: z.enum(ComplianceConcern).nullable(),\n /**\n * Which of the document blueprint's REQUIRED sections this section satisfies — `null` for a section\n * that satisfies none (a preamble, a contact block).\n *\n * ## The measured defect this closes (issue #244)\n *\n * The field exists on the family schema and was ABSENT here, and this contract is a `strictObject`,\n * so the drafter could not emit it however clearly its method asked. Every landed document therefore\n * claimed nothing, and the coherence report's `compliance-document-required-section-not-covered`\n * check reported EVERY required section uncovered on EVERY run — permanently, for every application.\n *\n * Measured on the first live service-terms candidate (wonder-crm, 2026-09-02): \"11 of 11 section(s)\n * this document's definition requires are claimed by no section of the draft\", on a draft whose\n * eleven sections corresponded to the blueprint's eleven one for one. The content was there; only\n * the claim was missing. A coverage check that is wrong in the alarming direction on the legal\n * surface is worse than one that is absent — it is the finding a reader learns to skip, and it masks\n * the run where a section genuinely IS missing.\n *\n * Required-and-nullable rather than optional, for the same reason as {@link concernRef} above: the\n * drafter is told to write against the blueprint's required set, so omitting the key is not a\n * considered \"this satisfies nothing\" — it is a section whose coverage nobody recorded, and the\n * coverage check cannot tell that apart from a genuine gap.\n *\n * `.min(1)` when present, because an empty array and `null` would be two spellings of one state.\n */\n satisfiesSectionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n clauses: z.array(ComplianceDocumentCandidateClauseGenerationSchema).min(1),\n});\n\nexport const ComplianceDocumentCandidateVariantSelectionGenerationSchema = z.strictObject({\n axisRef: ComplianceDocumentNamespacedRefSchema,\n optionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n supportingFactRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n});\n\nexport const ComplianceDocumentCandidateGenerationSchema = z.strictObject({\n /**\n * WHICH governed document this is, from the closed set the framework knows how to measure.\n *\n * Constrained 2026-08-29. As a free namespaced ref, the first live run named\n * `compliance-document-candidate:wonder-crm-data-handling-notice` — a well-formed ref for a document\n * that exists nowhere: `CONCERNS_BY_DOCUMENT` has no entry for it, so the completeness statement had\n * no concern set to measure against, and `validateComplianceDocumentIsRequired` could not say whether\n * the application needs it. The draft was schema-valid, readable, and unmeasurable.\n *\n * A document the framework cannot name is a document it cannot state the gaps in, and stating the\n * gaps is this whole capability's purpose (D4: completeness is measured against FULL compliance).\n * Naming a NEW document is a framework change — a concern composition and a required-set rule — not\n * something a drafter decides mid-draft.\n */\n documentRef: z.enum(KNOWN_DOCUMENT_REFS_BY_NAME),\n title: ProseSchema,\n /**\n * `null` when the locale decision has not been taken — a second-step question that must never gate\n * drafting. Required-and-nullable so \"not yet decided\" is something the drafter STATES rather than\n * something a missing key implies.\n */\n locale: z.string().trim().min(2).nullable(),\n /** `null` when the jurisdiction decision is still open, for the same reason as `locale`. */\n jurisdictionRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1).nullable(),\n /**\n * Publication-axis decisions. Empty is the honest answer for a first draft — a variant selection is a\n * DECISION the document makes, and there is no \"undecided\" selection: an undecided axis is omitted.\n */\n variantSelections: z.array(ComplianceDocumentCandidateVariantSelectionGenerationSchema),\n sections: z.array(ComplianceDocumentCandidateSectionGenerationSchema).min(1),\n reviewChecklistRefs: z.array(ComplianceDocumentNamespacedRefSchema).min(1),\n /** What the draft does NOT cover, stated by the drafter rather than discovered by the reader. */\n limitationRefs: z.array(ComplianceDocumentNamespacedRefSchema),\n});\nexport type ComplianceDocumentCandidateGeneration = z.infer<typeof ComplianceDocumentCandidateGenerationSchema>;\n\n/**\n * The catalog claim guards of the blueprint clauses a drafted clause claims to satisfy (#1452).\n *\n * A clause's `claimGuardRefs` is documented as \"the claim guards a reviewer checks this clause against\",\n * and until 2026-09-21 it held only what the drafter wrote — its own self-restrictions\n * (`claim-guard:known-fact-only`, `claim-guard:no-certification-claim`…). The guard the catalog actually\n * declares for that material (`document-claim-guard:public-privacy-notice`, with its prohibited claims, its\n * required facts and its reviewer instruction) never reached the candidate, so a reviewer following the\n * field would check every drafter restriction and never the one the catalog imposes.\n *\n * DERIVED rather than asked of the drafter, deliberately: the blueprint brief keeps guards out of the drafting\n * prompt on purpose (a drafter answering reviewer questions nobody asked), and every blueprint clause already\n * names its guard, so the only input needed is `satisfiesClauseRefs` — which the drafter states anyway. A\n * clause that claims no blueprint clause, or one the catalog does not know, derives nothing; refusing that is\n * the coverage validators' job, not this normalization's.\n */\nfunction deriveCatalogClaimGuardRefs(documentRef: string): (satisfiesClauseRefs: readonly string[]) => readonly string[] {\n const selection = selectAssuranceDocumentBlueprintForDocumentRef(createInitialAssuranceDocumentAuthorityCatalog(), documentRef);\n const guardsByClause = new Map((selection?.blueprint.clauses ?? []).map((clause) => [String(clause.clauseRef), clause.claimGuardRefs.map(String)]));\n return (satisfiesClauseRefs) => [...new Set(satisfiesClauseRefs.flatMap((clauseRef) => guardsByClause.get(clauseRef) ?? []))];\n}\n\n/** Normalize strict provider output into the canonical family value: `null` → absent, plus the version stamp. */\nexport function parseComplianceDocumentCandidateGeneration(input: unknown): ComplianceDocumentCandidate {\n const generated = ComplianceDocumentCandidateGenerationSchema.parse(input);\n const catalogGuardsFor = deriveCatalogClaimGuardRefs(generated.documentRef);\n return ComplianceDocumentCandidateSchema.parse({\n version: ComplianceDocumentCandidateVersion.V1,\n documentRef: generated.documentRef,\n title: generated.title,\n ...(generated.locale === null ? {} : { locale: generated.locale }),\n ...(generated.jurisdictionRefs === null ? {} : { jurisdictionRefs: generated.jurisdictionRefs }),\n variantSelections: generated.variantSelections,\n sections: generated.sections.map((section) => ({\n sectionRef: section.sectionRef,\n order: section.order,\n title: section.title,\n ...(section.concernRef === null ? {} : { concernRef: section.concernRef }),\n // Absence, not `undefined`, exactly as the clause fields below: the family schema declares this\n // optional, and a strictObject carrying an explicit `undefined` is not the same as omitting it.\n ...(section.satisfiesSectionRefs === null ? {} : { satisfiesSectionRefs: section.satisfiesSectionRefs }),\n clauses: section.clauses.map((clause) => ({\n clauseRef: clause.clauseRef,\n order: clause.order,\n bodyMarkdown: clause.bodyMarkdown,\n completeness: clause.completeness,\n // Absence, not `undefined`: the family schema forbids the key on a DERIVED clause, and a\n // strictObject carrying an explicit `undefined` is not the same as one omitting the key.\n /*\n * `awaitingFactRefs` takes the same null → absence treatment ONE LEVEL DEEPER, and it has to be\n * spelled out rather than carried by the spread: `incompleteness` is a strictObject on the family\n * side too, so passing the generated object through whole would hand it an explicit\n * `awaitingFactRefs: null`, which a strictObject rejects. Same trap the sibling fields above\n * document, one nesting level down, where the spread hides it.\n */\n ...(clause.incompleteness === null\n ? {}\n : {\n incompleteness: {\n needs: clause.incompleteness.needs,\n closedBy: clause.incompleteness.closedBy,\n ...(clause.incompleteness.awaitingFactRefs === null ? {} : { awaitingFactRefs: clause.incompleteness.awaitingFactRefs }),\n },\n }),\n factRefs: clause.factRefs,\n ...(clause.satisfiesClauseRefs === null ? {} : { satisfiesClauseRefs: clause.satisfiesClauseRefs }),\n sourcePolicyRefs: clause.sourcePolicyRefs,\n // `null` is the model saying it cites no run; the family schema's field is OPTIONAL, so the\n // normalized clause omits the key entirely rather than carrying an empty array that would read\n // as \"cited nothing\" beside a clause that never had anything to cite.\n ...(clause.evidenceRefs && clause.evidenceRefs.length > 0 ? { evidenceRefs: clause.evidenceRefs } : {}),\n // The drafter's own restrictions first, in its order, then the catalog guards of what it satisfies.\n claimGuardRefs: [...new Set([...clause.claimGuardRefs, ...catalogGuardsFor(clause.satisfiesClauseRefs ?? [])])],\n })),\n })),\n reviewChecklistRefs: generated.reviewChecklistRefs,\n limitationRefs: generated.limitationRefs,\n });\n}\n"]}
|