@wildo-ai/saas-specifications 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.js +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +11 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +11 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-choice.d.ts +72 -10
- package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-choice.js +144 -24
- package/dist/esm/_core/brand/brand-name-choice.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +41 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +19 -3
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +7 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.js +24 -3
- package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts +61 -9
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-view.js +42 -1
- package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +130 -2
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening.schemas.js +165 -3
- package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +25 -7
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
- package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +76 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +7 -2
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +21 -3
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +411 -13
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +281 -8
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +4 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +3 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +6 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +20 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +1 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +1 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +7 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +4 -3
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +55 -5
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +66 -2
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +42 -2
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +174 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +15 -0
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +15 -0
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.js +5 -1
- package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +32 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +41 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +33 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +134 -9
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +117 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +118 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +22 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +17 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +21 -5
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +7 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.js +39 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +31 -5
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +81 -9
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +88 -7
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +13 -6
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.registry.js +2 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +24 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js +20 -0
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +6 -6
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +6 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +6 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +26 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +21 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.js +13 -1
- package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -12
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +4 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +15 -3
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +6 -3
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +56 -3
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +9 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +83 -0
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +102 -2
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +3 -2
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -2
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +2 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts +41 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.js +63 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-references.schemas.d.ts +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.js +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +16 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +12 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +13 -2
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js +32 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +65 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +53 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js +2 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +56 -15
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js +73 -13
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +1 -16
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +1 -1
- package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
- package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-derivation.js +410 -0
- package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +86 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.js +28 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
- package/dist/esm/_core/service-method/service-method-validation.d.ts +35 -0
- package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-validation.js +75 -0
- package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
- package/dist/esm/_core/service-method/service-method.schemas.d.ts +385 -0
- package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method.schemas.js +372 -0
- package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +37 -5
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts +29 -3
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-validation.js +97 -5
- package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js +6 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +521 -15
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.js +703 -23
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +78 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +92 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +26 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +14 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +21 -5
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +119 -10
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +140 -7
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts +7 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js +7 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +103 -15
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +151 -21
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +7 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +7 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +36 -2
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.js +52 -4
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
- package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
- package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
- package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +608 -9
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2962 -1078
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +15 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +138 -19
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +65 -0
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +81 -6
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +68 -7
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1631 -70
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +327 -3
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +403 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +825 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +83 -8
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +167 -20
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +234 -35
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +255 -14
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +259 -18
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +216 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +110 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +356 -5
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
- package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
- package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
- package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
- package/dist/esm/assurance/governed-document-release.d.ts +15 -1
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +3 -1
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/assurance.exports.d.ts +4 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +4 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +9 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +33 -5
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +9 -12
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +60 -6
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +2 -2
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +12 -4
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +46 -10
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +3 -2
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +40 -11
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +44 -3
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +7 -3
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +40 -8
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +14 -8
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +72 -19
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +2 -2
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +6 -6
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +14 -13
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +68 -12
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +75 -19
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +3 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +11 -7
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +4 -2
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +8 -7
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +6 -6
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +4 -0
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +4 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +9 -5
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +16 -8
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +73 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +192 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +5 -3
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +19 -13
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +11 -6
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +14 -3
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +1 -1
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +55 -11
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +300 -5
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
- package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/index.d.ts +4 -2
- package/dist/esm/engine/features/index.d.ts.map +1 -1
- package/dist/esm/engine/features/index.js +6 -4
- package/dist/esm/engine/features/index.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -2
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +34 -15
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts +4 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +24 -3
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +31 -3
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -6
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +92 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +73 -31
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +118 -18
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -4
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +230 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +6 -0
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +7 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +29 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js +110 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +21 -4
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +3 -3
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +5 -5
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +38 -10
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +181 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +3 -3
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +7 -7
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +31 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +33 -7
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +16 -14
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +56 -53
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -2
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -4
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +2 -2
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +2 -0
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +3 -3
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.js +1 -3
- package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.js +1 -2
- package/dist/esm/engine/organizations/resources/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +5 -4
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +114 -51
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +11 -10
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/{service-provider-relationships.resource.specification.d.ts → organization-relationships.resource.specification.d.ts} +73 -56
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +643 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +6 -4
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +4 -4
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +93 -43
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +8 -5
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.js +39 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +2 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -1
- package/dist/esm/engine/providers/index.js +5 -1
- package/dist/esm/engine/providers/index.js.map +1 -1
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +39 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +2 -2
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +8 -6
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
- package/dist/esm/engine/roles/index.d.ts +2 -2
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +5 -5
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
- package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
- package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +1 -0
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -0
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -0
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +6 -2
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +33 -0
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +2 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +10 -4
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +17 -15
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/package.json +8 -8
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
- package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
- package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
import { CORE_ORG_ROLES, EngineCapability, HumanDecision_RouteKind } from '@wildo-ai/saas-models';
|
|
2
|
+
import { BuildPlanTaskProductKind, serviceMethodElementRef, } from '../build-plan/build-plan-task-graph.schemas.js';
|
|
3
|
+
import { projectDomainPlanResources } from '../domain-plan/domain-plan.family-aspects.js';
|
|
4
|
+
import { ServiceMethodPricing, ServiceMethodQualificationHolder, ServiceMethodStepPerformer } from './service-method.schemas.js';
|
|
5
|
+
const CORE_ORG_ROLE_NAMES = new Set(Object.values(CORE_ORG_ROLES));
|
|
6
|
+
/**
|
|
7
|
+
* What the families derived from a firm's method leave out of it (#2305 S4), one kind per element the method declares.
|
|
8
|
+
*
|
|
9
|
+
* The method is the one place the firm's work is written down; the domain plan and the build plan realize it. These are
|
|
10
|
+
* the elements a realization can miss, each named by the method's own ref, so a gap says which part of the firm's work
|
|
11
|
+
* the application would be built without.
|
|
12
|
+
*/
|
|
13
|
+
export var ServiceMethodDerivationGapKind;
|
|
14
|
+
(function (ServiceMethodDerivationGapKind) {
|
|
15
|
+
/** A service's case names a resource the domain plan does not declare: the cases would have nowhere to live. */
|
|
16
|
+
ServiceMethodDerivationGapKind["CASE_WITHOUT_RESOURCE"] = "CASE_WITHOUT_RESOURCE";
|
|
17
|
+
/** A case resource no build task marks as the work unit, so no model call is costed to a case. */
|
|
18
|
+
ServiceMethodDerivationGapKind["CASE_WITHOUT_WORK_UNIT"] = "CASE_WITHOUT_WORK_UNIT";
|
|
19
|
+
/** An AGENT step no agent product carries. */
|
|
20
|
+
ServiceMethodDerivationGapKind["AGENT_STEP_WITHOUT_AGENT"] = "AGENT_STEP_WITHOUT_AGENT";
|
|
21
|
+
/** An agent product carries an AGENT step but runs in another shape than the step declares. */
|
|
22
|
+
ServiceMethodDerivationGapKind["AGENT_SHAPE_DIFFERS"] = "AGENT_SHAPE_DIFFERS";
|
|
23
|
+
/**
|
|
24
|
+
* A product names a method element the method does not declare: a step or decision (or a step no agent performs), the
|
|
25
|
+
* service a usage recording bills, or the deliverable a document generates. A DANGLING finding: the dangling-reference
|
|
26
|
+
* refusal owns it.
|
|
27
|
+
*/
|
|
28
|
+
ServiceMethodDerivationGapKind["UNKNOWN_METHOD_ELEMENT"] = "UNKNOWN_METHOD_ELEMENT";
|
|
29
|
+
/** A decision point neither an approval gate nor an agent's review question realizes. */
|
|
30
|
+
ServiceMethodDerivationGapKind["DECISION_WITHOUT_GATE"] = "DECISION_WITHOUT_GATE";
|
|
31
|
+
/** A decision point realized BOTH by a gate and by an agent's review question: a review question is the review, and its tool carries no gate. */
|
|
32
|
+
ServiceMethodDerivationGapKind["DECISION_REALIZED_TWICE"] = "DECISION_REALIZED_TWICE";
|
|
33
|
+
/** A gate realizes a decision point with another route, role or qualification set than the method declares. */
|
|
34
|
+
ServiceMethodDerivationGapKind["GATE_DIFFERS"] = "GATE_DIFFERS";
|
|
35
|
+
/** A qualification names a role that is neither the engine's nor one a build task declares. */
|
|
36
|
+
ServiceMethodDerivationGapKind["QUALIFICATION_ROLE_UNDECLARED"] = "QUALIFICATION_ROLE_UNDECLARED";
|
|
37
|
+
/** A service priced PER CASE whose case no operation records as metered usage (#2305 S5): its cases would never be billed. */
|
|
38
|
+
ServiceMethodDerivationGapKind["CASE_PRICE_NOT_RECORDED"] = "CASE_PRICE_NOT_RECORDED";
|
|
39
|
+
/**
|
|
40
|
+
* A usage recording billing a service's cases records on another resource than the case, counts every run rather than
|
|
41
|
+
* once per case, records a product the plan does not sell, or bills a service not priced per case.
|
|
42
|
+
*/
|
|
43
|
+
ServiceMethodDerivationGapKind["CASE_PRICE_RECORDING_DIFFERS"] = "CASE_PRICE_RECORDING_DIFFERS";
|
|
44
|
+
/** A case resource with more than one stage that has no lifecycle in the domain plan (#2305 S6). The domain plan's to fix. */
|
|
45
|
+
ServiceMethodDerivationGapKind["CASE_WITHOUT_LIFECYCLE"] = "CASE_WITHOUT_LIFECYCLE";
|
|
46
|
+
/** A stage of a case that is not a state of its resource's lifecycle, in upper snake case (#2305 S6). The domain plan's. */
|
|
47
|
+
ServiceMethodDerivationGapKind["STAGE_NOT_A_STATE"] = "STAGE_NOT_A_STATE";
|
|
48
|
+
/** A deliverable produced from a resource the domain plan does not declare (#2305 S6). The domain plan's. */
|
|
49
|
+
ServiceMethodDerivationGapKind["DELIVERABLE_RESOURCE_UNDECLARED"] = "DELIVERABLE_RESOURCE_UNDECLARED";
|
|
50
|
+
/** A deliverable no document realizes: no `PDF_TEMPLATE` product names it (#2305 S6). */
|
|
51
|
+
ServiceMethodDerivationGapKind["DELIVERABLE_WITHOUT_DOCUMENT"] = "DELIVERABLE_WITHOUT_DOCUMENT";
|
|
52
|
+
/** A document realizing a deliverable is generated from another resource than the deliverable's (#2305 S6). */
|
|
53
|
+
ServiceMethodDerivationGapKind["DELIVERABLE_DIFFERS"] = "DELIVERABLE_DIFFERS";
|
|
54
|
+
/** A resource holding a case's evidence (the case, a deliverable's resource) with no retention binding (#2305 S6). */
|
|
55
|
+
ServiceMethodDerivationGapKind["EVIDENCE_RETENTION_NOT_BOUND"] = "EVIDENCE_RETENTION_NOT_BOUND";
|
|
56
|
+
/** A resource holding a case's evidence bound to another retention class than the service's (#2305 S6). */
|
|
57
|
+
ServiceMethodDerivationGapKind["EVIDENCE_RETENTION_DIFFERS"] = "EVIDENCE_RETENTION_DIFFERS";
|
|
58
|
+
/**
|
|
59
|
+
* A qualification the firm's people hold for the client (`heldBy: FIRM`) whose role no relationship confers (#2305 S6):
|
|
60
|
+
* they could never hold it for a client, so the decisions requiring it would reach nobody.
|
|
61
|
+
*/
|
|
62
|
+
ServiceMethodDerivationGapKind["QUALIFICATION_ROLE_NOT_CONFERRED"] = "QUALIFICATION_ROLE_NOT_CONFERRED";
|
|
63
|
+
/**
|
|
64
|
+
* A service priced PER CASE on an application whose line has no billing at all (an internal tool, #2305 review): its
|
|
65
|
+
* cases can never be billed, and no usage recording can be built for them. The method's to fix (`BILLED_OUTSIDE`).
|
|
66
|
+
*/
|
|
67
|
+
ServiceMethodDerivationGapKind["PER_CASE_WITHOUT_BILLING"] = "PER_CASE_WITHOUT_BILLING";
|
|
68
|
+
})(ServiceMethodDerivationGapKind || (ServiceMethodDerivationGapKind = {}));
|
|
69
|
+
/**
|
|
70
|
+
* The gaps the DOMAIN PLAN must fix (#2305 S4, S6): each names an element no build task can realize while the domain plan
|
|
71
|
+
* lacks it (a build product's `resourceRef` is an edge to the domain plan). They route back to the conception through the
|
|
72
|
+
* coherence report and `conception-buildable`, and a candidate build plan is never refused for them: refusing would leave
|
|
73
|
+
* no build plan that passes.
|
|
74
|
+
*/
|
|
75
|
+
export const DOMAIN_PLAN_SERVICE_METHOD_GAP_KINDS = new Set([
|
|
76
|
+
ServiceMethodDerivationGapKind.CASE_WITHOUT_RESOURCE,
|
|
77
|
+
ServiceMethodDerivationGapKind.CASE_WITHOUT_LIFECYCLE,
|
|
78
|
+
ServiceMethodDerivationGapKind.STAGE_NOT_A_STATE,
|
|
79
|
+
ServiceMethodDerivationGapKind.DELIVERABLE_RESOURCE_UNDECLARED,
|
|
80
|
+
]);
|
|
81
|
+
/**
|
|
82
|
+
* The gaps the METHOD itself must fix (#2305 review), for the same reason as {@link DOMAIN_PLAN_SERVICE_METHOD_GAP_KINDS}:
|
|
83
|
+
* no build plan can realize them, so a candidate is never refused for them, and they route back to the method.
|
|
84
|
+
*/
|
|
85
|
+
export const METHOD_SERVICE_METHOD_GAP_KINDS = new Set([
|
|
86
|
+
ServiceMethodDerivationGapKind.PER_CASE_WITHOUT_BILLING,
|
|
87
|
+
]);
|
|
88
|
+
/** A stage ref as the domain plan's lifecycle state spells it: `in-reconciliation` → `IN_RECONCILIATION`. */
|
|
89
|
+
export function serviceMethodStageState(stageRef) {
|
|
90
|
+
return stageRef.toUpperCase().replaceAll('-', '_');
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Every element of the firm's method the domain plan or the build plan does not realize (#2305 S4). Pure, and TOTAL
|
|
94
|
+
* over the method, so a decision point added to it tomorrow is reported by every existing plan.
|
|
95
|
+
*
|
|
96
|
+
* ## What counts
|
|
97
|
+
*
|
|
98
|
+
* - a service's case is a resource the domain plan declares, and the build plan marks it as the work unit
|
|
99
|
+
* (`WORK_UNIT_RESOURCE`);
|
|
100
|
+
* - every AGENT step is carried by an `APPLICATION_AGENT` product naming it in `serviceMethodStepRefs`, in the step's
|
|
101
|
+
* `agentShape`;
|
|
102
|
+
* - every decision point is realized, ONE way: by an `AGENT_APPROVAL_GATE` naming it in `serviceMethodDecisionRef`, with
|
|
103
|
+
* the decision's route, its qualification's role as `eligibleRole`, and exactly its qualification's professional
|
|
104
|
+
* kind as `requiredQualificationKinds` (none when the qualification names none); or by an agent that asks it as a
|
|
105
|
+
* review question (`serviceMethodAskedDecisionRefs`), whose route its code builds at suspension and is not compared;
|
|
106
|
+
* - every qualification's role is an engine role or one an `APPLICATION_ROLE` product declares;
|
|
107
|
+
* - every service priced `PER_CASE` is billed (#2305 S5): a `METERED_USAGE_RECORDING` product naming it in
|
|
108
|
+
* `serviceMethodServiceRef` records, ONCE PER ROW, on the service's case resource, a product an
|
|
109
|
+
* `APPLICATION_BILLING_PRODUCT` of the plan sells. A recording naming a service priced otherwise is reported too: a
|
|
110
|
+
* case billed per case while the method says the plan includes it, or the firm bills it outside, charges twice;
|
|
111
|
+
* - every case resource with more than one stage has a lifecycle in the domain plan whose states include each stage, in
|
|
112
|
+
* upper snake case (#2305 S6);
|
|
113
|
+
* - every deliverable is produced from a resource the domain plan declares, and a `PDF_TEMPLATE` product naming it in
|
|
114
|
+
* `serviceMethodDeliverableRef` generates it from that resource;
|
|
115
|
+
* - every resource holding a case's evidence (the case resource and each deliverable's resource) has a
|
|
116
|
+
* `RESOURCE_RETENTION_BINDING` product in the service's `evidenceRetention.retentionClass`;
|
|
117
|
+
* - every qualification the firm's people hold for the client (`heldBy: FIRM`) has a `RELATIONSHIP_CONFERRED_ROLE`
|
|
118
|
+
* product for its role, unless the role is `ORG_REPRESENTATIVE`, which the service relationship confers by default.
|
|
119
|
+
*
|
|
120
|
+
* Either plan may be absent: the elements only it can realize are then not judged, and nothing is reported for them.
|
|
121
|
+
* When the domain plan is given and does not declare a case's (or a deliverable's) resource, it is reported once
|
|
122
|
+
* (`CASE_WITHOUT_RESOURCE`, `DELIVERABLE_RESOURCE_UNDECLARED`) and NOT also held to what the build plan does with it (a
|
|
123
|
+
* work unit, a recording, a document, a retention binding): no build task could name a resource the domain plan does
|
|
124
|
+
* not declare (its `resourceRef` is an edge to the domain plan), so the fix is the domain plan's, not the build plan's.
|
|
125
|
+
* Those kinds are {@link DOMAIN_PLAN_SERVICE_METHOD_GAP_KINDS}.
|
|
126
|
+
*
|
|
127
|
+
* Every product claiming an element is compared, not only one, so the result does not depend on product order: a
|
|
128
|
+
* second gate on the wrong role beside a correct one is still reported.
|
|
129
|
+
* A plan that is the method's realization is COMPLETE, so a missing element is a gap even when a task for it was
|
|
130
|
+
* built earlier: the build plan keeps every task it built.
|
|
131
|
+
*
|
|
132
|
+
* Known limits: a decision's deadline is not compared. The gate product carries no deadline, so the method's
|
|
133
|
+
* `decisionDeadline` reaches the gate task through its objective and the coding agent's tool declaration. Which
|
|
134
|
+
* operation closes a case is not compared either: the method says when a case closes in the creator's words
|
|
135
|
+
* (`closesWhen`), so the recording's operation is the build plan's reading of it. And the billed product being METERED
|
|
136
|
+
* is not visible in the plan (a billing product names only its key); a usage recording against a product that is not
|
|
137
|
+
* metered records nothing at runtime, and warns.
|
|
138
|
+
*/
|
|
139
|
+
export function findServiceMethodDerivationGaps(input) {
|
|
140
|
+
const { method, domainPlan, buildPlan } = input;
|
|
141
|
+
const billingExcluded = input.excludedEngineCapabilities?.has(EngineCapability.BILLING) === true;
|
|
142
|
+
const gaps = [];
|
|
143
|
+
const undeclaredResources = new Set();
|
|
144
|
+
if (domainPlan !== undefined) {
|
|
145
|
+
const resources = new Set(projectDomainPlanResources(domainPlan.modules).map((resource) => resource.resourceRef));
|
|
146
|
+
const lifecycles = new Map((domainPlan.lifecycles ?? []).map((lifecycle) => [lifecycle.resourceRef, lifecycle]));
|
|
147
|
+
for (const service of method.services) {
|
|
148
|
+
const caseRef = service.case.caseRef;
|
|
149
|
+
if (!resources.has(caseRef)) {
|
|
150
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_WITHOUT_RESOURCE, ref: caseRef });
|
|
151
|
+
undeclaredResources.add(caseRef);
|
|
152
|
+
}
|
|
153
|
+
else if (service.stages.length > 1) {
|
|
154
|
+
// A one-stage case moves through no states, and a lifecycle needs two.
|
|
155
|
+
const lifecycle = lifecycles.get(caseRef);
|
|
156
|
+
if (lifecycle === undefined) {
|
|
157
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_WITHOUT_LIFECYCLE, ref: caseRef });
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
for (const stage of service.stages.filter((candidate) => !lifecycle.states.includes(serviceMethodStageState(candidate.stageRef)))) {
|
|
161
|
+
gaps.push({
|
|
162
|
+
kind: ServiceMethodDerivationGapKind.STAGE_NOT_A_STATE,
|
|
163
|
+
ref: serviceMethodElementRef(service.serviceRef, stage.stageRef),
|
|
164
|
+
detail: `${caseRef}'s lifecycle has no state ${serviceMethodStageState(stage.stageRef)}`,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
for (const deliverable of service.deliverables.filter((candidate) => !resources.has(candidate.fromResourceRef))) {
|
|
170
|
+
gaps.push({
|
|
171
|
+
kind: ServiceMethodDerivationGapKind.DELIVERABLE_RESOURCE_UNDECLARED,
|
|
172
|
+
ref: serviceMethodElementRef(service.serviceRef, deliverable.deliverableRef),
|
|
173
|
+
detail: deliverable.fromResourceRef,
|
|
174
|
+
});
|
|
175
|
+
undeclaredResources.add(deliverable.fromResourceRef);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
// A price per case on a line with no billing is the method's own contradiction, whatever a build plan says (#2305 review).
|
|
180
|
+
if (billingExcluded) {
|
|
181
|
+
for (const service of method.services) {
|
|
182
|
+
if (service.pricing === ServiceMethodPricing.PER_CASE)
|
|
183
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.PER_CASE_WITHOUT_BILLING, ref: service.serviceRef });
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (buildPlan === undefined)
|
|
187
|
+
return gaps;
|
|
188
|
+
const casesWithoutResource = undeclaredResources;
|
|
189
|
+
const products = buildPlan.tasks.flatMap((task) => task.produces);
|
|
190
|
+
const workUnits = new Set(products.flatMap((product) => (product.kind === BuildPlanTaskProductKind.WORK_UNIT_RESOURCE ? [product.resourceRef] : [])));
|
|
191
|
+
const agentsByStep = new Map();
|
|
192
|
+
const gatesByDecision = new Map();
|
|
193
|
+
const askedDecisions = new Set();
|
|
194
|
+
const declaredRoles = new Set();
|
|
195
|
+
const recordingsByService = new Map();
|
|
196
|
+
const soldProductKeys = new Set();
|
|
197
|
+
const documentsByDeliverable = new Map();
|
|
198
|
+
const retentionByResource = new Map();
|
|
199
|
+
const conferredRoles = new Set();
|
|
200
|
+
const claim = (map, ref, value) => { map.set(ref, [...(map.get(ref) ?? []), value]); };
|
|
201
|
+
for (const product of products) {
|
|
202
|
+
if (product.kind === BuildPlanTaskProductKind.APPLICATION_AGENT) {
|
|
203
|
+
for (const stepRef of product.serviceMethodStepRefs ?? [])
|
|
204
|
+
claim(agentsByStep, stepRef, { agentRef: product.agentRef, shape: product.shape });
|
|
205
|
+
for (const decisionRef of product.serviceMethodAskedDecisionRefs ?? [])
|
|
206
|
+
askedDecisions.add(decisionRef);
|
|
207
|
+
}
|
|
208
|
+
else if (product.kind === BuildPlanTaskProductKind.AGENT_APPROVAL_GATE && product.serviceMethodDecisionRef !== undefined) {
|
|
209
|
+
claim(gatesByDecision, product.serviceMethodDecisionRef, product);
|
|
210
|
+
}
|
|
211
|
+
else if (product.kind === BuildPlanTaskProductKind.APPLICATION_ROLE) {
|
|
212
|
+
declaredRoles.add(product.roleRef);
|
|
213
|
+
}
|
|
214
|
+
else if (product.kind === BuildPlanTaskProductKind.METERED_USAGE_RECORDING && product.serviceMethodServiceRef !== undefined) {
|
|
215
|
+
claim(recordingsByService, product.serviceMethodServiceRef, product);
|
|
216
|
+
}
|
|
217
|
+
else if (product.kind === BuildPlanTaskProductKind.APPLICATION_BILLING_PRODUCT) {
|
|
218
|
+
soldProductKeys.add(product.productKey);
|
|
219
|
+
}
|
|
220
|
+
else if (product.kind === BuildPlanTaskProductKind.PDF_TEMPLATE && product.serviceMethodDeliverableRef !== undefined) {
|
|
221
|
+
claim(documentsByDeliverable, product.serviceMethodDeliverableRef, product);
|
|
222
|
+
}
|
|
223
|
+
else if (product.kind === BuildPlanTaskProductKind.RESOURCE_RETENTION_BINDING) {
|
|
224
|
+
claim(retentionByResource, product.resourceRef, product.retentionClass);
|
|
225
|
+
}
|
|
226
|
+
else if (product.kind === BuildPlanTaskProductKind.RELATIONSHIP_CONFERRED_ROLE) {
|
|
227
|
+
conferredRoles.add(product.roleRef);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
const qualifications = new Map((method.qualifications ?? []).map((qualification) => [qualification.qualificationRef, qualification]));
|
|
231
|
+
const agentSteps = new Set();
|
|
232
|
+
const decisions = new Set();
|
|
233
|
+
const deliverables = new Set();
|
|
234
|
+
for (const service of method.services) {
|
|
235
|
+
if (!casesWithoutResource.has(service.case.caseRef) && !workUnits.has(service.case.caseRef)) {
|
|
236
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_WITHOUT_WORK_UNIT, ref: service.case.caseRef });
|
|
237
|
+
}
|
|
238
|
+
const recordings = recordingsByService.get(service.serviceRef) ?? [];
|
|
239
|
+
const perCase = service.pricing === ServiceMethodPricing.PER_CASE;
|
|
240
|
+
// On a line with no billing a price per case is the method's gap (reported above), and owing a recording no build
|
|
241
|
+
// can make would refuse every build plan (#2305 review).
|
|
242
|
+
if (perCase && !billingExcluded && recordings.length === 0 && !casesWithoutResource.has(service.case.caseRef)) {
|
|
243
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_PRICE_NOT_RECORDED, ref: service.serviceRef });
|
|
244
|
+
}
|
|
245
|
+
for (const recording of recordings) {
|
|
246
|
+
const differences = perCase
|
|
247
|
+
? [
|
|
248
|
+
recording.resourceRef === service.case.caseRef ? undefined : `records on ${recording.resourceRef}, the case is ${service.case.caseRef}`,
|
|
249
|
+
recording.oncePerRecord ? undefined : 'counts every run, a price per case counts each case once (`oncePerRecord`)',
|
|
250
|
+
soldProductKeys.has(recording.productKey) ? undefined : `records the product ${recording.productKey}, which no APPLICATION_BILLING_PRODUCT of the plan sells`,
|
|
251
|
+
].filter((difference) => difference !== undefined)
|
|
252
|
+
: [`the service is priced ${service.pricing}, not per case`];
|
|
253
|
+
if (differences.length > 0) {
|
|
254
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_PRICE_RECORDING_DIFFERS, ref: service.serviceRef, detail: `${recording.resourceRef}.${recording.operationRef}: ${differences.join('; ')}` });
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
for (const deliverable of service.deliverables) {
|
|
258
|
+
const ref = serviceMethodElementRef(service.serviceRef, deliverable.deliverableRef);
|
|
259
|
+
deliverables.add(ref);
|
|
260
|
+
if (undeclaredResources.has(deliverable.fromResourceRef))
|
|
261
|
+
continue;
|
|
262
|
+
const documents = documentsByDeliverable.get(ref) ?? [];
|
|
263
|
+
if (documents.length === 0)
|
|
264
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.DELIVERABLE_WITHOUT_DOCUMENT, ref });
|
|
265
|
+
for (const document of documents.filter((candidate) => candidate.resourceRef !== deliverable.fromResourceRef)) {
|
|
266
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.DELIVERABLE_DIFFERS, ref, detail: `${document.templateRef} is generated from ${document.resourceRef}, the deliverable from ${deliverable.fromResourceRef}` });
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
for (const step of service.steps) {
|
|
270
|
+
if (step.performedBy !== ServiceMethodStepPerformer.AGENT)
|
|
271
|
+
continue;
|
|
272
|
+
const ref = serviceMethodElementRef(service.serviceRef, step.stepRef);
|
|
273
|
+
agentSteps.add(ref);
|
|
274
|
+
const agents = agentsByStep.get(ref) ?? [];
|
|
275
|
+
if (agents.length === 0)
|
|
276
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.AGENT_STEP_WITHOUT_AGENT, ref });
|
|
277
|
+
for (const agent of agents.filter((candidate) => candidate.shape !== step.agentShape)) {
|
|
278
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.AGENT_SHAPE_DIFFERS, ref, detail: `${agent.agentRef} runs ${agent.shape}, the step declares ${String(step.agentShape)}` });
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
for (const decision of service.decisionPoints) {
|
|
282
|
+
const ref = serviceMethodElementRef(service.serviceRef, decision.decisionRef);
|
|
283
|
+
decisions.add(ref);
|
|
284
|
+
const gates = gatesByDecision.get(ref) ?? [];
|
|
285
|
+
const asked = askedDecisions.has(ref);
|
|
286
|
+
if (gates.length === 0 && !asked)
|
|
287
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.DECISION_WITHOUT_GATE, ref });
|
|
288
|
+
if (gates.length > 0 && asked)
|
|
289
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.DECISION_REALIZED_TWICE, ref });
|
|
290
|
+
const qualification = decision.qualificationRef === undefined ? undefined : qualifications.get(decision.qualificationRef);
|
|
291
|
+
const expectedKinds = qualification?.professionalQualificationKind === undefined ? [] : [qualification.professionalQualificationKind];
|
|
292
|
+
for (const gate of gates) {
|
|
293
|
+
const gateKinds = [...(gate.requiredQualificationKinds ?? [])].sort();
|
|
294
|
+
const differences = [
|
|
295
|
+
gate.route === decision.route ? undefined : `route ${gate.route}, the method declares ${decision.route}`,
|
|
296
|
+
decision.route === HumanDecision_RouteKind.OWNER || gate.eligibleRole === qualification?.role
|
|
297
|
+
? undefined
|
|
298
|
+
: `role ${gate.eligibleRole ?? 'none'}, the qualification names ${qualification?.role ?? 'none'}`,
|
|
299
|
+
JSON.stringify(gateKinds) === JSON.stringify(expectedKinds)
|
|
300
|
+
? undefined
|
|
301
|
+
: `qualifications [${gateKinds.join(', ')}], the method requires [${expectedKinds.join(', ')}]`,
|
|
302
|
+
].filter((difference) => difference !== undefined);
|
|
303
|
+
if (differences.length > 0)
|
|
304
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.GATE_DIFFERS, ref, detail: `${gate.functionRef}: ${differences.join('; ')}` });
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
for (const stepRef of agentsByStep.keys()) {
|
|
309
|
+
if (!agentSteps.has(stepRef))
|
|
310
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT, ref: stepRef, detail: 'no AGENT step of the method has this ref' });
|
|
311
|
+
}
|
|
312
|
+
for (const decisionRef of new Set([...gatesByDecision.keys(), ...askedDecisions])) {
|
|
313
|
+
if (!decisions.has(decisionRef))
|
|
314
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT, ref: decisionRef, detail: 'no decision point of the method has this ref' });
|
|
315
|
+
}
|
|
316
|
+
/*
|
|
317
|
+
* #2305 S6: each resource holding a case's evidence is judged ONCE, against the class its services keep it in (the
|
|
318
|
+
* method's validation refuses two services keeping one resource in different classes, so the first one names it).
|
|
319
|
+
*/
|
|
320
|
+
const evidence = new Map();
|
|
321
|
+
for (const service of method.services) {
|
|
322
|
+
for (const resourceRef of [service.case.caseRef, ...service.deliverables.map((deliverable) => deliverable.fromResourceRef)]) {
|
|
323
|
+
if (!undeclaredResources.has(resourceRef) && !evidence.has(resourceRef)) {
|
|
324
|
+
evidence.set(resourceRef, { serviceRef: service.serviceRef, retentionClass: service.evidenceRetention.retentionClass });
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
for (const [resourceRef, expected] of evidence) {
|
|
329
|
+
const classes = retentionByResource.get(resourceRef) ?? [];
|
|
330
|
+
if (classes.length === 0) {
|
|
331
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.EVIDENCE_RETENTION_NOT_BOUND, ref: resourceRef, detail: `${expected.serviceRef} keeps its evidence as ${expected.retentionClass}` });
|
|
332
|
+
}
|
|
333
|
+
for (const retentionClass of classes.filter((candidate) => candidate !== expected.retentionClass)) {
|
|
334
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.EVIDENCE_RETENTION_DIFFERS, ref: resourceRef, detail: `bound to ${retentionClass}, ${expected.serviceRef} keeps its evidence as ${expected.retentionClass}` });
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
const services = new Set(method.services.map((service) => service.serviceRef));
|
|
338
|
+
for (const serviceRef of recordingsByService.keys()) {
|
|
339
|
+
if (!services.has(serviceRef))
|
|
340
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT, ref: serviceRef, detail: 'no service of the method has this ref' });
|
|
341
|
+
}
|
|
342
|
+
for (const deliverableRef of documentsByDeliverable.keys()) {
|
|
343
|
+
if (!deliverables.has(deliverableRef))
|
|
344
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT, ref: deliverableRef, detail: 'no deliverable of the method has this ref' });
|
|
345
|
+
}
|
|
346
|
+
// Only the qualifications a decision routes to (#2305 review): an unused one is the method's mark
|
|
347
|
+
// (`QUALIFICATION_UNUSED`), and holding it to a role declaration and a conferral would build a role nothing uses.
|
|
348
|
+
const usedQualificationRefs = new Set(method.services.flatMap((service) => service.decisionPoints
|
|
349
|
+
.map((decision) => decision.qualificationRef).filter((ref) => ref !== undefined)));
|
|
350
|
+
for (const qualification of (method.qualifications ?? []).filter((candidate) => usedQualificationRefs.has(candidate.qualificationRef))) {
|
|
351
|
+
// An organization role: a core one, or one the application declares. An application role is refused by the method's
|
|
352
|
+
// own refinement, so it is not counted as declared here either (#2305 review C2).
|
|
353
|
+
if (!CORE_ORG_ROLE_NAMES.has(qualification.role) && !declaredRoles.has(qualification.role)) {
|
|
354
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.QUALIFICATION_ROLE_UNDECLARED, ref: qualification.qualificationRef, detail: qualification.role });
|
|
355
|
+
}
|
|
356
|
+
// A role the FIRM's people hold for the client reaches them only through a relationship that confers it, except
|
|
357
|
+
// `ORG_REPRESENTATIVE`, which the service relationship confers by default. The client's own staff need nothing conferred.
|
|
358
|
+
if (qualification.heldBy === ServiceMethodQualificationHolder.FIRM && qualification.role !== CORE_ORG_ROLES.ORG_REPRESENTATIVE
|
|
359
|
+
&& !conferredRoles.has(qualification.role)) {
|
|
360
|
+
gaps.push({ kind: ServiceMethodDerivationGapKind.QUALIFICATION_ROLE_NOT_CONFERRED, ref: qualification.qualificationRef, detail: qualification.role });
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return gaps;
|
|
364
|
+
}
|
|
365
|
+
/** One line per gap, in the words a model or a person acts on. */
|
|
366
|
+
export function describeServiceMethodDerivationGap(gap) {
|
|
367
|
+
switch (gap.kind) {
|
|
368
|
+
case ServiceMethodDerivationGapKind.CASE_WITHOUT_RESOURCE:
|
|
369
|
+
return `the case resource \`${gap.ref}\` is not a resource of the domain plan`;
|
|
370
|
+
case ServiceMethodDerivationGapKind.CASE_WITHOUT_WORK_UNIT:
|
|
371
|
+
return `the case resource \`${gap.ref}\` has no WORK_UNIT_RESOURCE product`;
|
|
372
|
+
case ServiceMethodDerivationGapKind.AGENT_STEP_WITHOUT_AGENT:
|
|
373
|
+
return `the agent step \`${gap.ref}\` is carried by no APPLICATION_AGENT product (name it in \`serviceMethodStepRefs\`)`;
|
|
374
|
+
case ServiceMethodDerivationGapKind.AGENT_SHAPE_DIFFERS:
|
|
375
|
+
return `the agent step \`${gap.ref}\`: ${gap.detail}`;
|
|
376
|
+
case ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT:
|
|
377
|
+
return `\`${gap.ref}\`: ${gap.detail}`;
|
|
378
|
+
case ServiceMethodDerivationGapKind.DECISION_WITHOUT_GATE:
|
|
379
|
+
return `the decision point \`${gap.ref}\` is realized neither by an AGENT_APPROVAL_GATE product (\`serviceMethodDecisionRef\`) nor by an agent that asks it as a review question (\`serviceMethodAskedDecisionRefs\`)`;
|
|
380
|
+
case ServiceMethodDerivationGapKind.DECISION_REALIZED_TWICE:
|
|
381
|
+
return `the decision point \`${gap.ref}\` is realized both by a gate and by an agent's review question; keep one`;
|
|
382
|
+
case ServiceMethodDerivationGapKind.GATE_DIFFERS:
|
|
383
|
+
return `the decision point \`${gap.ref}\`: ${gap.detail}`;
|
|
384
|
+
case ServiceMethodDerivationGapKind.QUALIFICATION_ROLE_UNDECLARED:
|
|
385
|
+
return `the qualification \`${gap.ref}\` needs the role \`${gap.detail}\`, which is not an engine role and no APPLICATION_ROLE product declares it`;
|
|
386
|
+
case ServiceMethodDerivationGapKind.CASE_PRICE_NOT_RECORDED:
|
|
387
|
+
return `the service \`${gap.ref}\` is priced per case and no METERED_USAGE_RECORDING product records its case (name it in \`serviceMethodServiceRef\`, once per record, on the operation that closes the case)`;
|
|
388
|
+
case ServiceMethodDerivationGapKind.CASE_PRICE_RECORDING_DIFFERS:
|
|
389
|
+
return `the service \`${gap.ref}\`'s price per case: ${gap.detail}`;
|
|
390
|
+
case ServiceMethodDerivationGapKind.CASE_WITHOUT_LIFECYCLE:
|
|
391
|
+
return `the case resource \`${gap.ref}\` has no lifecycle in the domain plan (its stages are its states)`;
|
|
392
|
+
case ServiceMethodDerivationGapKind.STAGE_NOT_A_STATE:
|
|
393
|
+
return `the stage \`${gap.ref}\`: ${gap.detail}`;
|
|
394
|
+
case ServiceMethodDerivationGapKind.DELIVERABLE_RESOURCE_UNDECLARED:
|
|
395
|
+
return `the deliverable \`${gap.ref}\` is produced from \`${gap.detail}\`, which is not a resource of the domain plan`;
|
|
396
|
+
case ServiceMethodDerivationGapKind.DELIVERABLE_WITHOUT_DOCUMENT:
|
|
397
|
+
return `the deliverable \`${gap.ref}\` is generated by no PDF_TEMPLATE product (name it in \`serviceMethodDeliverableRef\`)`;
|
|
398
|
+
case ServiceMethodDerivationGapKind.DELIVERABLE_DIFFERS:
|
|
399
|
+
return `the deliverable \`${gap.ref}\`: ${gap.detail}`;
|
|
400
|
+
case ServiceMethodDerivationGapKind.EVIDENCE_RETENTION_NOT_BOUND:
|
|
401
|
+
return `the resource \`${gap.ref}\` holds a case's evidence and has no RESOURCE_RETENTION_BINDING product (${gap.detail})`;
|
|
402
|
+
case ServiceMethodDerivationGapKind.EVIDENCE_RETENTION_DIFFERS:
|
|
403
|
+
return `the resource \`${gap.ref}\` is ${gap.detail}`;
|
|
404
|
+
case ServiceMethodDerivationGapKind.QUALIFICATION_ROLE_NOT_CONFERRED:
|
|
405
|
+
return `the qualification \`${gap.ref}\` is held by the firm's people for the client and needs the role \`${gap.detail}\`, which no RELATIONSHIP_CONFERRED_ROLE product confers`;
|
|
406
|
+
case ServiceMethodDerivationGapKind.PER_CASE_WITHOUT_BILLING:
|
|
407
|
+
return `the service \`${gap.ref}\` is priced per case, and this application's line has no billing: price it \`BILLED_OUTSIDE\` in the method`;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
//# sourceMappingURL=service-method-derivation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-method-derivation.js","sourceRoot":"","sources":["../../../../../src/_core/service-method/service-method-derivation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,gBAAgB,E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B,GAAG,CAAC,GAAG,oEAAoE,CAAC;QAC5G,KAAK,8BAA8B,CAAC,iBAAiB;YACnD,OAAO,eAAe,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,MAAM,EAAE,CAAC;QACnD,KAAK,8BAA8B,CAAC,+BAA+B;YACjE,OAAO,qBAAqB,GAAG,CAAC,GAAG,yBAAyB,GAAG,CAAC,MAAM,gDAAgD,CAAC;QACzH,KAAK,8BAA8B,CAAC,4BAA4B;YAC9D,OAAO,qBAAqB,GAAG,CAAC,GAAG,yFAAyF,CAAC;QAC/H,KAAK,8BAA8B,CAAC,mBAAmB;YACrD,OAAO,qBAAqB,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,MAAM,EAAE,CAAC;QACzD,KAAK,8BAA8B,CAAC,4BAA4B;YAC9D,OAAO,kBAAkB,GAAG,CAAC,GAAG,6EAA6E,GAAG,CAAC,MAAM,GAAG,CAAC;QAC7H,KAAK,8BAA8B,CAAC,0BAA0B;YAC5D,OAAO,kBAAkB,GAAG,CAAC,GAAG,SAAS,GAAG,CAAC,MAAM,EAAE,CAAC;QACxD,KAAK,8BAA8B,CAAC,gCAAgC;YAClE,OAAO,uBAAuB,GAAG,CAAC,GAAG,uEAAuE,GAAG,CAAC,MAAM,0DAA0D,CAAC;QACnL,KAAK,8BAA8B,CAAC,wBAAwB;YAC1D,OAAO,iBAAiB,GAAG,CAAC,GAAG,8GAA8G,CAAC;IAClJ,CAAC;AACH,CAAC","sourcesContent":["import { CORE_ORG_ROLES, EngineCapability, HumanDecision_RouteKind } from '@wildo-ai/saas-models';\n\nimport {\n BuildPlanTaskProductKind,\n serviceMethodElementRef,\n type BuildPlanTaskGraph,\n} from '../build-plan/build-plan-task-graph.schemas';\nimport type { DomainPlanOutputSet } from '../domain-plan/domain-plan-output-set.schemas';\nimport { projectDomainPlanResources } from '../domain-plan/domain-plan.family-aspects';\nimport { ServiceMethodPricing, ServiceMethodQualificationHolder, ServiceMethodStepPerformer, type ServiceMethod } from './service-method.schemas';\n\nconst CORE_ORG_ROLE_NAMES: ReadonlySet<string> = new Set<string>(Object.values(CORE_ORG_ROLES));\n\n/**\n * What the families derived from a firm's method leave out of it (#2305 S4), one kind per element the method declares.\n *\n * The method is the one place the firm's work is written down; the domain plan and the build plan realize it. These are\n * the elements a realization can miss, each named by the method's own ref, so a gap says which part of the firm's work\n * the application would be built without.\n */\nexport enum ServiceMethodDerivationGapKind {\n /** A service's case names a resource the domain plan does not declare: the cases would have nowhere to live. */\n CASE_WITHOUT_RESOURCE = 'CASE_WITHOUT_RESOURCE',\n /** A case resource no build task marks as the work unit, so no model call is costed to a case. */\n CASE_WITHOUT_WORK_UNIT = 'CASE_WITHOUT_WORK_UNIT',\n /** An AGENT step no agent product carries. */\n AGENT_STEP_WITHOUT_AGENT = 'AGENT_STEP_WITHOUT_AGENT',\n /** An agent product carries an AGENT step but runs in another shape than the step declares. */\n AGENT_SHAPE_DIFFERS = 'AGENT_SHAPE_DIFFERS',\n /**\n * A product names a method element the method does not declare: a step or decision (or a step no agent performs), the\n * service a usage recording bills, or the deliverable a document generates. A DANGLING finding: the dangling-reference\n * refusal owns it.\n */\n UNKNOWN_METHOD_ELEMENT = 'UNKNOWN_METHOD_ELEMENT',\n /** A decision point neither an approval gate nor an agent's review question realizes. */\n DECISION_WITHOUT_GATE = 'DECISION_WITHOUT_GATE',\n /** A decision point realized BOTH by a gate and by an agent's review question: a review question is the review, and its tool carries no gate. */\n DECISION_REALIZED_TWICE = 'DECISION_REALIZED_TWICE',\n /** A gate realizes a decision point with another route, role or qualification set than the method declares. */\n GATE_DIFFERS = 'GATE_DIFFERS',\n /** A qualification names a role that is neither the engine's nor one a build task declares. */\n QUALIFICATION_ROLE_UNDECLARED = 'QUALIFICATION_ROLE_UNDECLARED',\n /** A service priced PER CASE whose case no operation records as metered usage (#2305 S5): its cases would never be billed. */\n CASE_PRICE_NOT_RECORDED = 'CASE_PRICE_NOT_RECORDED',\n /**\n * A usage recording billing a service's cases records on another resource than the case, counts every run rather than\n * once per case, records a product the plan does not sell, or bills a service not priced per case.\n */\n CASE_PRICE_RECORDING_DIFFERS = 'CASE_PRICE_RECORDING_DIFFERS',\n /** A case resource with more than one stage that has no lifecycle in the domain plan (#2305 S6). The domain plan's to fix. */\n CASE_WITHOUT_LIFECYCLE = 'CASE_WITHOUT_LIFECYCLE',\n /** A stage of a case that is not a state of its resource's lifecycle, in upper snake case (#2305 S6). The domain plan's. */\n STAGE_NOT_A_STATE = 'STAGE_NOT_A_STATE',\n /** A deliverable produced from a resource the domain plan does not declare (#2305 S6). The domain plan's. */\n DELIVERABLE_RESOURCE_UNDECLARED = 'DELIVERABLE_RESOURCE_UNDECLARED',\n /** A deliverable no document realizes: no `PDF_TEMPLATE` product names it (#2305 S6). */\n DELIVERABLE_WITHOUT_DOCUMENT = 'DELIVERABLE_WITHOUT_DOCUMENT',\n /** A document realizing a deliverable is generated from another resource than the deliverable's (#2305 S6). */\n DELIVERABLE_DIFFERS = 'DELIVERABLE_DIFFERS',\n /** A resource holding a case's evidence (the case, a deliverable's resource) with no retention binding (#2305 S6). */\n EVIDENCE_RETENTION_NOT_BOUND = 'EVIDENCE_RETENTION_NOT_BOUND',\n /** A resource holding a case's evidence bound to another retention class than the service's (#2305 S6). */\n EVIDENCE_RETENTION_DIFFERS = 'EVIDENCE_RETENTION_DIFFERS',\n /**\n * A qualification the firm's people hold for the client (`heldBy: FIRM`) whose role no relationship confers (#2305 S6):\n * they could never hold it for a client, so the decisions requiring it would reach nobody.\n */\n QUALIFICATION_ROLE_NOT_CONFERRED = 'QUALIFICATION_ROLE_NOT_CONFERRED',\n /**\n * A service priced PER CASE on an application whose line has no billing at all (an internal tool, #2305 review): its\n * cases can never be billed, and no usage recording can be built for them. The method's to fix (`BILLED_OUTSIDE`).\n */\n PER_CASE_WITHOUT_BILLING = 'PER_CASE_WITHOUT_BILLING',\n}\n\n/**\n * The gaps the DOMAIN PLAN must fix (#2305 S4, S6): each names an element no build task can realize while the domain plan\n * lacks it (a build product's `resourceRef` is an edge to the domain plan). They route back to the conception through the\n * coherence report and `conception-buildable`, and a candidate build plan is never refused for them: refusing would leave\n * no build plan that passes.\n */\nexport const DOMAIN_PLAN_SERVICE_METHOD_GAP_KINDS: ReadonlySet<ServiceMethodDerivationGapKind> = new Set([\n ServiceMethodDerivationGapKind.CASE_WITHOUT_RESOURCE,\n ServiceMethodDerivationGapKind.CASE_WITHOUT_LIFECYCLE,\n ServiceMethodDerivationGapKind.STAGE_NOT_A_STATE,\n ServiceMethodDerivationGapKind.DELIVERABLE_RESOURCE_UNDECLARED,\n]);\n\n/**\n * The gaps the METHOD itself must fix (#2305 review), for the same reason as {@link DOMAIN_PLAN_SERVICE_METHOD_GAP_KINDS}:\n * no build plan can realize them, so a candidate is never refused for them, and they route back to the method.\n */\nexport const METHOD_SERVICE_METHOD_GAP_KINDS: ReadonlySet<ServiceMethodDerivationGapKind> = new Set([\n ServiceMethodDerivationGapKind.PER_CASE_WITHOUT_BILLING,\n]);\n\n/** A stage ref as the domain plan's lifecycle state spells it: `in-reconciliation` → `IN_RECONCILIATION`. */\nexport function serviceMethodStageState(stageRef: string): string {\n return stageRef.toUpperCase().replaceAll('-', '_');\n}\n\n/** One element of the method a derived family leaves out, named by the method's own ref. */\nexport interface ServiceMethodDerivationGap {\n readonly kind: ServiceMethodDerivationGapKind;\n /**\n * `<serviceRef>/<stepRef, decisionRef, stageRef or deliverableRef>`, a case's or evidence resource's ref, a qualification\n * ref, or a service ref (pricing).\n */\n readonly ref: string;\n /**\n * What the gap's message needs beyond the ref: what differs, for the kinds that compare (`AGENT_SHAPE_DIFFERS`,\n * `GATE_DIFFERS`, `CASE_PRICE_RECORDING_DIFFERS`, `DELIVERABLE_DIFFERS`, `EVIDENCE_RETENTION_DIFFERS`), the role for\n * `QUALIFICATION_ROLE_UNDECLARED` and `QUALIFICATION_ROLE_NOT_CONFERRED`, why the ref names nothing for\n * `UNKNOWN_METHOD_ELEMENT`, the resource for `DELIVERABLE_RESOURCE_UNDECLARED`, the service and class expected for\n * `EVIDENCE_RETENTION_NOT_BOUND`, and the stage for `STAGE_NOT_A_STATE`. A kind whose message prints it must set it:\n * `describeServiceMethodDerivationGap` is the list.\n */\n readonly detail?: string;\n}\n\n/**\n * Every element of the firm's method the domain plan or the build plan does not realize (#2305 S4). Pure, and TOTAL\n * over the method, so a decision point added to it tomorrow is reported by every existing plan.\n *\n * ## What counts\n *\n * - a service's case is a resource the domain plan declares, and the build plan marks it as the work unit\n * (`WORK_UNIT_RESOURCE`);\n * - every AGENT step is carried by an `APPLICATION_AGENT` product naming it in `serviceMethodStepRefs`, in the step's\n * `agentShape`;\n * - every decision point is realized, ONE way: by an `AGENT_APPROVAL_GATE` naming it in `serviceMethodDecisionRef`, with\n * the decision's route, its qualification's role as `eligibleRole`, and exactly its qualification's professional\n * kind as `requiredQualificationKinds` (none when the qualification names none); or by an agent that asks it as a\n * review question (`serviceMethodAskedDecisionRefs`), whose route its code builds at suspension and is not compared;\n * - every qualification's role is an engine role or one an `APPLICATION_ROLE` product declares;\n * - every service priced `PER_CASE` is billed (#2305 S5): a `METERED_USAGE_RECORDING` product naming it in\n * `serviceMethodServiceRef` records, ONCE PER ROW, on the service's case resource, a product an\n * `APPLICATION_BILLING_PRODUCT` of the plan sells. A recording naming a service priced otherwise is reported too: a\n * case billed per case while the method says the plan includes it, or the firm bills it outside, charges twice;\n * - every case resource with more than one stage has a lifecycle in the domain plan whose states include each stage, in\n * upper snake case (#2305 S6);\n * - every deliverable is produced from a resource the domain plan declares, and a `PDF_TEMPLATE` product naming it in\n * `serviceMethodDeliverableRef` generates it from that resource;\n * - every resource holding a case's evidence (the case resource and each deliverable's resource) has a\n * `RESOURCE_RETENTION_BINDING` product in the service's `evidenceRetention.retentionClass`;\n * - every qualification the firm's people hold for the client (`heldBy: FIRM`) has a `RELATIONSHIP_CONFERRED_ROLE`\n * product for its role, unless the role is `ORG_REPRESENTATIVE`, which the service relationship confers by default.\n *\n * Either plan may be absent: the elements only it can realize are then not judged, and nothing is reported for them.\n * When the domain plan is given and does not declare a case's (or a deliverable's) resource, it is reported once\n * (`CASE_WITHOUT_RESOURCE`, `DELIVERABLE_RESOURCE_UNDECLARED`) and NOT also held to what the build plan does with it (a\n * work unit, a recording, a document, a retention binding): no build task could name a resource the domain plan does\n * not declare (its `resourceRef` is an edge to the domain plan), so the fix is the domain plan's, not the build plan's.\n * Those kinds are {@link DOMAIN_PLAN_SERVICE_METHOD_GAP_KINDS}.\n *\n * Every product claiming an element is compared, not only one, so the result does not depend on product order: a\n * second gate on the wrong role beside a correct one is still reported.\n * A plan that is the method's realization is COMPLETE, so a missing element is a gap even when a task for it was\n * built earlier: the build plan keeps every task it built.\n *\n * Known limits: a decision's deadline is not compared. The gate product carries no deadline, so the method's\n * `decisionDeadline` reaches the gate task through its objective and the coding agent's tool declaration. Which\n * operation closes a case is not compared either: the method says when a case closes in the creator's words\n * (`closesWhen`), so the recording's operation is the build plan's reading of it. And the billed product being METERED\n * is not visible in the plan (a billing product names only its key); a usage recording against a product that is not\n * metered records nothing at runtime, and warns.\n */\nexport function findServiceMethodDerivationGaps(input: {\n readonly method: ServiceMethod;\n readonly domainPlan?: Pick<DomainPlanOutputSet, 'modules' | 'lifecycles'>;\n readonly buildPlan?: BuildPlanTaskGraph;\n /** The engine capabilities the application's line excludes (`resolveExcludedEngineCapabilities`); none when unknown. */\n readonly excludedEngineCapabilities?: ReadonlySet<EngineCapability>;\n}): readonly ServiceMethodDerivationGap[] {\n const { method, domainPlan, buildPlan } = input;\n const billingExcluded = input.excludedEngineCapabilities?.has(EngineCapability.BILLING) === true;\n const gaps: ServiceMethodDerivationGap[] = [];\n\n const undeclaredResources = new Set<string>();\n if (domainPlan !== undefined) {\n const resources = new Set(projectDomainPlanResources(domainPlan.modules).map((resource) => resource.resourceRef));\n const lifecycles = new Map((domainPlan.lifecycles ?? []).map((lifecycle) => [lifecycle.resourceRef, lifecycle]));\n for (const service of method.services) {\n const caseRef = service.case.caseRef;\n if (!resources.has(caseRef)) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_WITHOUT_RESOURCE, ref: caseRef });\n undeclaredResources.add(caseRef);\n } else if (service.stages.length > 1) {\n // A one-stage case moves through no states, and a lifecycle needs two.\n const lifecycle = lifecycles.get(caseRef);\n if (lifecycle === undefined) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_WITHOUT_LIFECYCLE, ref: caseRef });\n } else {\n for (const stage of service.stages.filter((candidate) => !lifecycle.states.includes(serviceMethodStageState(candidate.stageRef)))) {\n gaps.push({\n kind: ServiceMethodDerivationGapKind.STAGE_NOT_A_STATE,\n ref: serviceMethodElementRef(service.serviceRef, stage.stageRef),\n detail: `${caseRef}'s lifecycle has no state ${serviceMethodStageState(stage.stageRef)}`,\n });\n }\n }\n }\n for (const deliverable of service.deliverables.filter((candidate) => !resources.has(candidate.fromResourceRef))) {\n gaps.push({\n kind: ServiceMethodDerivationGapKind.DELIVERABLE_RESOURCE_UNDECLARED,\n ref: serviceMethodElementRef(service.serviceRef, deliverable.deliverableRef),\n detail: deliverable.fromResourceRef,\n });\n undeclaredResources.add(deliverable.fromResourceRef);\n }\n }\n }\n // A price per case on a line with no billing is the method's own contradiction, whatever a build plan says (#2305 review).\n if (billingExcluded) {\n for (const service of method.services) {\n if (service.pricing === ServiceMethodPricing.PER_CASE) gaps.push({ kind: ServiceMethodDerivationGapKind.PER_CASE_WITHOUT_BILLING, ref: service.serviceRef });\n }\n }\n if (buildPlan === undefined) return gaps;\n const casesWithoutResource = undeclaredResources;\n\n const products = buildPlan.tasks.flatMap((task) => task.produces);\n const workUnits = new Set(products.flatMap((product) => (product.kind === BuildPlanTaskProductKind.WORK_UNIT_RESOURCE ? [product.resourceRef] : [])));\n type Gate = Extract<(typeof products)[number], { kind: BuildPlanTaskProductKind.AGENT_APPROVAL_GATE }>;\n const agentsByStep = new Map<string, { readonly agentRef: string; readonly shape: string }[]>();\n const gatesByDecision = new Map<string, Gate[]>();\n const askedDecisions = new Set<string>();\n const declaredRoles = new Set<string>();\n type UsageRecording = Extract<(typeof products)[number], { kind: BuildPlanTaskProductKind.METERED_USAGE_RECORDING }>;\n const recordingsByService = new Map<string, UsageRecording[]>();\n const soldProductKeys = new Set<string>();\n type Document = Extract<(typeof products)[number], { kind: BuildPlanTaskProductKind.PDF_TEMPLATE }>;\n const documentsByDeliverable = new Map<string, Document[]>();\n const retentionByResource = new Map<string, string[]>();\n const conferredRoles = new Set<string>();\n const claim = <T>(map: Map<string, T[]>, ref: string, value: T): void => { map.set(ref, [...(map.get(ref) ?? []), value]); };\n for (const product of products) {\n if (product.kind === BuildPlanTaskProductKind.APPLICATION_AGENT) {\n for (const stepRef of product.serviceMethodStepRefs ?? []) claim(agentsByStep, stepRef, { agentRef: product.agentRef, shape: product.shape });\n for (const decisionRef of product.serviceMethodAskedDecisionRefs ?? []) askedDecisions.add(decisionRef);\n } else if (product.kind === BuildPlanTaskProductKind.AGENT_APPROVAL_GATE && product.serviceMethodDecisionRef !== undefined) {\n claim(gatesByDecision, product.serviceMethodDecisionRef, product);\n } else if (product.kind === BuildPlanTaskProductKind.APPLICATION_ROLE) {\n declaredRoles.add(product.roleRef);\n } else if (product.kind === BuildPlanTaskProductKind.METERED_USAGE_RECORDING && product.serviceMethodServiceRef !== undefined) {\n claim(recordingsByService, product.serviceMethodServiceRef, product);\n } else if (product.kind === BuildPlanTaskProductKind.APPLICATION_BILLING_PRODUCT) {\n soldProductKeys.add(product.productKey);\n } else if (product.kind === BuildPlanTaskProductKind.PDF_TEMPLATE && product.serviceMethodDeliverableRef !== undefined) {\n claim(documentsByDeliverable, product.serviceMethodDeliverableRef, product);\n } else if (product.kind === BuildPlanTaskProductKind.RESOURCE_RETENTION_BINDING) {\n claim(retentionByResource, product.resourceRef, product.retentionClass);\n } else if (product.kind === BuildPlanTaskProductKind.RELATIONSHIP_CONFERRED_ROLE) {\n conferredRoles.add(product.roleRef);\n }\n }\n\n const qualifications = new Map((method.qualifications ?? []).map((qualification) => [qualification.qualificationRef, qualification]));\n const agentSteps = new Set<string>();\n const decisions = new Set<string>();\n const deliverables = new Set<string>();\n for (const service of method.services) {\n if (!casesWithoutResource.has(service.case.caseRef) && !workUnits.has(service.case.caseRef)) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_WITHOUT_WORK_UNIT, ref: service.case.caseRef });\n }\n const recordings = recordingsByService.get(service.serviceRef) ?? [];\n const perCase = service.pricing === ServiceMethodPricing.PER_CASE;\n // On a line with no billing a price per case is the method's gap (reported above), and owing a recording no build\n // can make would refuse every build plan (#2305 review).\n if (perCase && !billingExcluded && recordings.length === 0 && !casesWithoutResource.has(service.case.caseRef)) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_PRICE_NOT_RECORDED, ref: service.serviceRef });\n }\n for (const recording of recordings) {\n const differences = perCase\n ? [\n recording.resourceRef === service.case.caseRef ? undefined : `records on ${recording.resourceRef}, the case is ${service.case.caseRef}`,\n recording.oncePerRecord ? undefined : 'counts every run, a price per case counts each case once (`oncePerRecord`)',\n soldProductKeys.has(recording.productKey) ? undefined : `records the product ${recording.productKey}, which no APPLICATION_BILLING_PRODUCT of the plan sells`,\n ].filter((difference): difference is string => difference !== undefined)\n : [`the service is priced ${service.pricing}, not per case`];\n if (differences.length > 0) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.CASE_PRICE_RECORDING_DIFFERS, ref: service.serviceRef, detail: `${recording.resourceRef}.${recording.operationRef}: ${differences.join('; ')}` });\n }\n }\n for (const deliverable of service.deliverables) {\n const ref = serviceMethodElementRef(service.serviceRef, deliverable.deliverableRef);\n deliverables.add(ref);\n if (undeclaredResources.has(deliverable.fromResourceRef)) continue;\n const documents = documentsByDeliverable.get(ref) ?? [];\n if (documents.length === 0) gaps.push({ kind: ServiceMethodDerivationGapKind.DELIVERABLE_WITHOUT_DOCUMENT, ref });\n for (const document of documents.filter((candidate) => candidate.resourceRef !== deliverable.fromResourceRef)) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.DELIVERABLE_DIFFERS, ref, detail: `${document.templateRef} is generated from ${document.resourceRef}, the deliverable from ${deliverable.fromResourceRef}` });\n }\n }\n for (const step of service.steps) {\n if (step.performedBy !== ServiceMethodStepPerformer.AGENT) continue;\n const ref = serviceMethodElementRef(service.serviceRef, step.stepRef);\n agentSteps.add(ref);\n const agents = agentsByStep.get(ref) ?? [];\n if (agents.length === 0) gaps.push({ kind: ServiceMethodDerivationGapKind.AGENT_STEP_WITHOUT_AGENT, ref });\n for (const agent of agents.filter((candidate) => candidate.shape !== step.agentShape)) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.AGENT_SHAPE_DIFFERS, ref, detail: `${agent.agentRef} runs ${agent.shape}, the step declares ${String(step.agentShape)}` });\n }\n }\n for (const decision of service.decisionPoints) {\n const ref = serviceMethodElementRef(service.serviceRef, decision.decisionRef);\n decisions.add(ref);\n const gates = gatesByDecision.get(ref) ?? [];\n const asked = askedDecisions.has(ref);\n if (gates.length === 0 && !asked) gaps.push({ kind: ServiceMethodDerivationGapKind.DECISION_WITHOUT_GATE, ref });\n if (gates.length > 0 && asked) gaps.push({ kind: ServiceMethodDerivationGapKind.DECISION_REALIZED_TWICE, ref });\n const qualification = decision.qualificationRef === undefined ? undefined : qualifications.get(decision.qualificationRef);\n const expectedKinds = qualification?.professionalQualificationKind === undefined ? [] : [qualification.professionalQualificationKind];\n for (const gate of gates) {\n const gateKinds = [...(gate.requiredQualificationKinds ?? [])].sort();\n const differences = [\n gate.route === decision.route ? undefined : `route ${gate.route}, the method declares ${decision.route}`,\n decision.route === HumanDecision_RouteKind.OWNER || gate.eligibleRole === qualification?.role\n ? undefined\n : `role ${gate.eligibleRole ?? 'none'}, the qualification names ${qualification?.role ?? 'none'}`,\n JSON.stringify(gateKinds) === JSON.stringify(expectedKinds)\n ? undefined\n : `qualifications [${gateKinds.join(', ')}], the method requires [${expectedKinds.join(', ')}]`,\n ].filter((difference): difference is string => difference !== undefined);\n if (differences.length > 0) gaps.push({ kind: ServiceMethodDerivationGapKind.GATE_DIFFERS, ref, detail: `${gate.functionRef}: ${differences.join('; ')}` });\n }\n }\n }\n\n for (const stepRef of agentsByStep.keys()) {\n if (!agentSteps.has(stepRef)) gaps.push({ kind: ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT, ref: stepRef, detail: 'no AGENT step of the method has this ref' });\n }\n for (const decisionRef of new Set([...gatesByDecision.keys(), ...askedDecisions])) {\n if (!decisions.has(decisionRef)) gaps.push({ kind: ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT, ref: decisionRef, detail: 'no decision point of the method has this ref' });\n }\n /*\n * #2305 S6: each resource holding a case's evidence is judged ONCE, against the class its services keep it in (the\n * method's validation refuses two services keeping one resource in different classes, so the first one names it).\n */\n const evidence = new Map<string, { readonly serviceRef: string; readonly retentionClass: string }>();\n for (const service of method.services) {\n for (const resourceRef of [service.case.caseRef, ...service.deliverables.map((deliverable) => deliverable.fromResourceRef)]) {\n if (!undeclaredResources.has(resourceRef) && !evidence.has(resourceRef)) {\n evidence.set(resourceRef, { serviceRef: service.serviceRef, retentionClass: service.evidenceRetention.retentionClass });\n }\n }\n }\n for (const [resourceRef, expected] of evidence) {\n const classes = retentionByResource.get(resourceRef) ?? [];\n if (classes.length === 0) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.EVIDENCE_RETENTION_NOT_BOUND, ref: resourceRef, detail: `${expected.serviceRef} keeps its evidence as ${expected.retentionClass}` });\n }\n for (const retentionClass of classes.filter((candidate) => candidate !== expected.retentionClass)) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.EVIDENCE_RETENTION_DIFFERS, ref: resourceRef, detail: `bound to ${retentionClass}, ${expected.serviceRef} keeps its evidence as ${expected.retentionClass}` });\n }\n }\n\n const services = new Set(method.services.map((service) => service.serviceRef));\n for (const serviceRef of recordingsByService.keys()) {\n if (!services.has(serviceRef)) gaps.push({ kind: ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT, ref: serviceRef, detail: 'no service of the method has this ref' });\n }\n for (const deliverableRef of documentsByDeliverable.keys()) {\n if (!deliverables.has(deliverableRef)) gaps.push({ kind: ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT, ref: deliverableRef, detail: 'no deliverable of the method has this ref' });\n }\n // Only the qualifications a decision routes to (#2305 review): an unused one is the method's mark\n // (`QUALIFICATION_UNUSED`), and holding it to a role declaration and a conferral would build a role nothing uses.\n const usedQualificationRefs = new Set(method.services.flatMap((service) => service.decisionPoints\n .map((decision) => decision.qualificationRef).filter((ref): ref is string => ref !== undefined)));\n for (const qualification of (method.qualifications ?? []).filter((candidate) => usedQualificationRefs.has(candidate.qualificationRef))) {\n // An organization role: a core one, or one the application declares. An application role is refused by the method's\n // own refinement, so it is not counted as declared here either (#2305 review C2).\n if (!CORE_ORG_ROLE_NAMES.has(qualification.role) && !declaredRoles.has(qualification.role)) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.QUALIFICATION_ROLE_UNDECLARED, ref: qualification.qualificationRef, detail: qualification.role });\n }\n // A role the FIRM's people hold for the client reaches them only through a relationship that confers it, except\n // `ORG_REPRESENTATIVE`, which the service relationship confers by default. The client's own staff need nothing conferred.\n if (qualification.heldBy === ServiceMethodQualificationHolder.FIRM && qualification.role !== CORE_ORG_ROLES.ORG_REPRESENTATIVE\n && !conferredRoles.has(qualification.role)) {\n gaps.push({ kind: ServiceMethodDerivationGapKind.QUALIFICATION_ROLE_NOT_CONFERRED, ref: qualification.qualificationRef, detail: qualification.role });\n }\n }\n return gaps;\n}\n\n/** One line per gap, in the words a model or a person acts on. */\nexport function describeServiceMethodDerivationGap(gap: ServiceMethodDerivationGap): string {\n switch (gap.kind) {\n case ServiceMethodDerivationGapKind.CASE_WITHOUT_RESOURCE:\n return `the case resource \\`${gap.ref}\\` is not a resource of the domain plan`;\n case ServiceMethodDerivationGapKind.CASE_WITHOUT_WORK_UNIT:\n return `the case resource \\`${gap.ref}\\` has no WORK_UNIT_RESOURCE product`;\n case ServiceMethodDerivationGapKind.AGENT_STEP_WITHOUT_AGENT:\n return `the agent step \\`${gap.ref}\\` is carried by no APPLICATION_AGENT product (name it in \\`serviceMethodStepRefs\\`)`;\n case ServiceMethodDerivationGapKind.AGENT_SHAPE_DIFFERS:\n return `the agent step \\`${gap.ref}\\`: ${gap.detail}`;\n case ServiceMethodDerivationGapKind.UNKNOWN_METHOD_ELEMENT:\n return `\\`${gap.ref}\\`: ${gap.detail}`;\n case ServiceMethodDerivationGapKind.DECISION_WITHOUT_GATE:\n return `the decision point \\`${gap.ref}\\` is realized neither by an AGENT_APPROVAL_GATE product (\\`serviceMethodDecisionRef\\`) nor by an agent that asks it as a review question (\\`serviceMethodAskedDecisionRefs\\`)`;\n case ServiceMethodDerivationGapKind.DECISION_REALIZED_TWICE:\n return `the decision point \\`${gap.ref}\\` is realized both by a gate and by an agent's review question; keep one`;\n case ServiceMethodDerivationGapKind.GATE_DIFFERS:\n return `the decision point \\`${gap.ref}\\`: ${gap.detail}`;\n case ServiceMethodDerivationGapKind.QUALIFICATION_ROLE_UNDECLARED:\n return `the qualification \\`${gap.ref}\\` needs the role \\`${gap.detail}\\`, which is not an engine role and no APPLICATION_ROLE product declares it`;\n case ServiceMethodDerivationGapKind.CASE_PRICE_NOT_RECORDED:\n return `the service \\`${gap.ref}\\` is priced per case and no METERED_USAGE_RECORDING product records its case (name it in \\`serviceMethodServiceRef\\`, once per record, on the operation that closes the case)`;\n case ServiceMethodDerivationGapKind.CASE_PRICE_RECORDING_DIFFERS:\n return `the service \\`${gap.ref}\\`'s price per case: ${gap.detail}`;\n case ServiceMethodDerivationGapKind.CASE_WITHOUT_LIFECYCLE:\n return `the case resource \\`${gap.ref}\\` has no lifecycle in the domain plan (its stages are its states)`;\n case ServiceMethodDerivationGapKind.STAGE_NOT_A_STATE:\n return `the stage \\`${gap.ref}\\`: ${gap.detail}`;\n case ServiceMethodDerivationGapKind.DELIVERABLE_RESOURCE_UNDECLARED:\n return `the deliverable \\`${gap.ref}\\` is produced from \\`${gap.detail}\\`, which is not a resource of the domain plan`;\n case ServiceMethodDerivationGapKind.DELIVERABLE_WITHOUT_DOCUMENT:\n return `the deliverable \\`${gap.ref}\\` is generated by no PDF_TEMPLATE product (name it in \\`serviceMethodDeliverableRef\\`)`;\n case ServiceMethodDerivationGapKind.DELIVERABLE_DIFFERS:\n return `the deliverable \\`${gap.ref}\\`: ${gap.detail}`;\n case ServiceMethodDerivationGapKind.EVIDENCE_RETENTION_NOT_BOUND:\n return `the resource \\`${gap.ref}\\` holds a case's evidence and has no RESOURCE_RETENTION_BINDING product (${gap.detail})`;\n case ServiceMethodDerivationGapKind.EVIDENCE_RETENTION_DIFFERS:\n return `the resource \\`${gap.ref}\\` is ${gap.detail}`;\n case ServiceMethodDerivationGapKind.QUALIFICATION_ROLE_NOT_CONFERRED:\n return `the qualification \\`${gap.ref}\\` is held by the firm's people for the client and needs the role \\`${gap.detail}\\`, which no RELATIONSHIP_CONFERRED_ROLE product confers`;\n case ServiceMethodDerivationGapKind.PER_CASE_WITHOUT_BILLING:\n return `the service \\`${gap.ref}\\` is priced per case, and this application's line has no billing: price it \\`BILLED_OUTSIDE\\` in the method`;\n }\n}\n"]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type ServiceMethod } from './service-method.schemas';
|
|
3
|
+
/**
|
|
4
|
+
* One complete provider response for the service-method family: the method without its version, which the trusted
|
|
5
|
+
* runtime stamps. Every ref is a semantic slug the provider chooses (`month-end-close`, `qualified-accountant`); none is
|
|
6
|
+
* prefixed, because the refs are what the creator reads and what the domain plan carries forward as resource names.
|
|
7
|
+
*
|
|
8
|
+
* Strict, and checked with the same structural issues the persisted family refuses (`serviceMethodIssues`), so a
|
|
9
|
+
* provider's dangling step or an OWNER decision naming a qualification is sent back to the model with that sentence
|
|
10
|
+
* rather than surfacing later as a parse failure.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ServiceMethodGenerationSchema: z.ZodObject<{
|
|
13
|
+
services: z.ZodArray<z.ZodObject<{
|
|
14
|
+
serviceRef: z.ZodString;
|
|
15
|
+
label: z.ZodString;
|
|
16
|
+
purpose: z.ZodString;
|
|
17
|
+
case: z.ZodObject<{
|
|
18
|
+
caseRef: z.ZodString;
|
|
19
|
+
label: z.ZodString;
|
|
20
|
+
opensWhen: z.ZodString;
|
|
21
|
+
closesWhen: z.ZodString;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
stages: z.ZodArray<z.ZodObject<{
|
|
24
|
+
stageRef: z.ZodString;
|
|
25
|
+
label: z.ZodString;
|
|
26
|
+
meaning: z.ZodString;
|
|
27
|
+
}, z.core.$strict>>;
|
|
28
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
29
|
+
stepRef: z.ZodString;
|
|
30
|
+
stageRef: z.ZodString;
|
|
31
|
+
does: z.ZodString;
|
|
32
|
+
performedBy: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("./service-method.schemas").ServiceMethodStepPerformer>>;
|
|
33
|
+
agentShape: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("..").BuildPlanAgentShape>>>;
|
|
34
|
+
readsRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
35
|
+
producesRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
36
|
+
}, z.core.$strict>>;
|
|
37
|
+
decisionPoints: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
38
|
+
decisionRef: z.ZodString;
|
|
39
|
+
stepRef: z.ZodString;
|
|
40
|
+
decides: z.ZodString;
|
|
41
|
+
route: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").HumanDecision_RouteKind>>;
|
|
42
|
+
qualificationRef: z.ZodOptional<z.ZodString>;
|
|
43
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
44
|
+
decisionDeadline: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
at: z.ZodString;
|
|
46
|
+
basis: z.ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewClockBasis>>>;
|
|
47
|
+
}, z.core.$strict>>;
|
|
48
|
+
}, z.core.$strict>>>;
|
|
49
|
+
deliverables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
50
|
+
deliverableRef: z.ZodString;
|
|
51
|
+
label: z.ZodString;
|
|
52
|
+
stageRef: z.ZodString;
|
|
53
|
+
fromResourceRef: z.ZodString;
|
|
54
|
+
}, z.core.$strict>>>;
|
|
55
|
+
evidenceRetention: z.ZodObject<{
|
|
56
|
+
retentionClass: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").DataRetentionClass>>;
|
|
57
|
+
ground: z.ZodString;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
pricing: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("./service-method.schemas").ServiceMethodPricing>>;
|
|
60
|
+
}, z.core.$strict>>;
|
|
61
|
+
qualifications: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
62
|
+
qualificationRef: z.ZodString;
|
|
63
|
+
label: z.ZodString;
|
|
64
|
+
role: z.ZodString;
|
|
65
|
+
heldBy: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("./service-method.schemas").ServiceMethodQualificationHolder>>;
|
|
66
|
+
professionalQualificationKind: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strict>>>;
|
|
68
|
+
clientParticipation: z.ZodString;
|
|
69
|
+
reviewCalendar: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
timeZone: z.ZodString;
|
|
71
|
+
workingDays: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("@wildo-ai/saas-models").CalendarWeekday>>>;
|
|
72
|
+
workingHours: z.ZodDefault<z.ZodObject<{
|
|
73
|
+
start: z.ZodString;
|
|
74
|
+
end: z.ZodString;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
holidays: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
correctionReasons: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
79
|
+
reasonCode: z.ZodString;
|
|
80
|
+
label: z.ZodString;
|
|
81
|
+
}, z.core.$strict>>>;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
export type ServiceMethodGeneration = z.infer<typeof ServiceMethodGenerationSchema>;
|
|
84
|
+
/** Normalize strict provider output into the persisted family (stamping the version). */
|
|
85
|
+
export declare function parseServiceMethodGeneration(input: unknown): ServiceMethod;
|
|
86
|
+
//# sourceMappingURL=service-method-generation.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-method-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/service-method/service-method-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAOL,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;GAQG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,yFAAyF;AACzF,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAG1E"}
|