@wildo-ai/saas-specifications 1.1.5 → 1.1.7
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 +10 -8
- 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 +14 -13
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
- package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.js +34 -13
- package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -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 +39 -13
- 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 +43 -13
- 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 +90 -2
- 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 +70 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
- 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 +285 -30
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
- 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 +3 -2
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +3 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +3 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.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 +12 -2
- 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 +30 -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 +32 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
- package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
- package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
- package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.js +2 -2
- package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.js +2 -2
- package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.js +2 -2
- package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +2 -2
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.js +2 -2
- package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
- package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.js +2 -2
- package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.js +2 -2
- package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.js +2 -2
- package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
- package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.js +2 -2
- package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.js +6 -0
- package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
- package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +1 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js +110 -24
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
- 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 +148 -14
- 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 +70 -10
- 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 +98 -11
- 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 +215 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
- package/dist/esm/application-creation/playbooks.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/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
- package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
- package/dist/esm/assurance/assurance-document-system.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 +295 -31
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +107 -14
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.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 +23 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/governed-document-release.d.ts +7 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +11 -2
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +6 -5
- 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 -0
- 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 +35 -33
- 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 +6 -2
- 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.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
- 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.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
- 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.js +2 -2
- 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 -0
- 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 +45 -32
- 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 -23
- 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 +185 -31
- 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 +2 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -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 +11 -7
- 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 +18 -16
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
- 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 +0 -24
- 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 +76 -16
- 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 +2 -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 +28 -6
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
- 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 +15 -2
- 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 +45 -10
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
- 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 +52 -12
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +1 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +69 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
- 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 +5 -5
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
- 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 +16 -4
- 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 +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
- 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 +150 -4
- 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.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
- 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 +16 -9
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
- 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/decision/ai-approval-request.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
- 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 +5 -4
- 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 +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
- 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/billing/billing-pricing-table.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.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 +1 -1
- 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/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +1 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +3 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
- 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-run-records.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
- 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 +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +2 -2
- 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/system-of-record-partition-assignments.resource.specification.js +4 -4
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
- package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/index.js +1 -0
- package/dist/esm/engine/notifications/resources/index.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
- 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 +20 -5
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
- 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 +8 -11
- 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 +4 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
- package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.js +4 -2
- package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.js +2 -0
- package/dist/esm/engine/organizations/resources/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
- 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 +40 -12
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
- 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 +4 -6
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +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 +7 -3
- 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.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
- 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 +3 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
- package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +1 -1
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
- 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.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/index.d.ts +13 -5
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +19 -6
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
- 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.js +2 -2
- 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 +0 -4
- 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 +0 -3
- 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 +0 -3
- 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 +7 -7
- 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 +5 -5
- 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 +0 -3
- 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 +11 -18
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- 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 +5 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
- 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 +29 -10
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/assurance/external-framework-mapping.json +0 -1228
package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { ApplicationSpecificationFamily } from "../_core/application-specification-family-identity.schemas.js";
|
|
3
|
+
import { PlaybookInstanceKeySchema, playbookInstanceId } from "./playbook-instance.application-creation.schemas.js";
|
|
2
4
|
/**
|
|
3
5
|
* THE DOSSIER's committed half: what the creator answered, question by question (#1454, Step 5).
|
|
4
6
|
*
|
|
@@ -34,6 +36,12 @@ export const ApplicationCreatorInputAnswerSchema = z.strictObject({
|
|
|
34
36
|
playbookRef: z.string().trim().min(1),
|
|
35
37
|
/** The question's own `ref` inside that playbook's `method.elicitation.questions`. */
|
|
36
38
|
questionRef: z.string().trim().min(1),
|
|
39
|
+
/**
|
|
40
|
+
* The playbook INSTANCE this answer belongs to (#1609); absent for the default instance. An instance
|
|
41
|
+
* reads its own answer first and falls back to the default instance's, so company-level answers are
|
|
42
|
+
* given once and a feature line answers only what differs for it.
|
|
43
|
+
*/
|
|
44
|
+
instanceKey: PlaybookInstanceKeySchema.optional(),
|
|
37
45
|
/** The answer, as the interview's validation admitted it. Never empty: an unanswered question has no entry. */
|
|
38
46
|
value: z.string().trim().min(1),
|
|
39
47
|
/** When this answer was given, ISO 8601. The instant a playbook's outputs are measured against. */
|
|
@@ -41,13 +49,112 @@ export const ApplicationCreatorInputAnswerSchema = z.strictObject({
|
|
|
41
49
|
/** Who answered — a user ref of the workbench session that recorded it. Provenance, never authority. */
|
|
42
50
|
answeredByRef: z.string().trim().min(1),
|
|
43
51
|
});
|
|
52
|
+
/**
|
|
53
|
+
* One playbook INSTANCE the creator opened (#1609, carried from #1607): the non-derivable act the dossier
|
|
54
|
+
* records beside the line.
|
|
55
|
+
*
|
|
56
|
+
* Only what cannot be derived. Which playbooks the line runs is derived (`describeApplicationActiveSet`);
|
|
57
|
+
* when and by whom this was opened is the commit that recorded it (author, time, and the purpose and actor
|
|
58
|
+
* trailers). So an activation is its identity and its purpose, nothing else.
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* How an instance ENDED (#1608, #1609 R10). An instance is closed rather than deleted: what it contributed
|
|
62
|
+
* stays, with its provenance, and its record says it no longer runs.
|
|
63
|
+
*/
|
|
64
|
+
export var ApplicationPlaybookInstanceClosureKind;
|
|
65
|
+
(function (ApplicationPlaybookInstanceClosureKind) {
|
|
66
|
+
/** Its work is done, e.g. the feature it was opened for is built. */
|
|
67
|
+
ApplicationPlaybookInstanceClosureKind["COMPLETED"] = "completed";
|
|
68
|
+
/**
|
|
69
|
+
* Stopped before it was done. Its contributions stay, marked with it; its waiting runs are cancelled and its
|
|
70
|
+
* interrupted progress is consumed, so nothing resumes it.
|
|
71
|
+
*/
|
|
72
|
+
ApplicationPlaybookInstanceClosureKind["ABANDONED"] = "abandoned";
|
|
73
|
+
})(ApplicationPlaybookInstanceClosureKind || (ApplicationPlaybookInstanceClosureKind = {}));
|
|
74
|
+
export const ApplicationPlaybookInstanceClosureSchema = z.strictObject({
|
|
75
|
+
kind: z.enum(ApplicationPlaybookInstanceClosureKind),
|
|
76
|
+
/** Why, in the words of whoever closed it. When and by whom is the commit that recorded it. */
|
|
77
|
+
reason: z.string().trim().min(1).optional(),
|
|
78
|
+
});
|
|
79
|
+
export const ApplicationPlaybookActivationSchema = z.strictObject({
|
|
80
|
+
playbookRef: z.string().trim().min(1),
|
|
81
|
+
instanceKey: PlaybookInstanceKeySchema,
|
|
82
|
+
/** What this instance is for, in the creator's terms ("the enterprise segment", "the invoicing feature"). */
|
|
83
|
+
purpose: z.string().trim().min(1),
|
|
84
|
+
/** Present once the instance is closed: it no longer runs, and a secondary line no longer counts as open. */
|
|
85
|
+
closure: ApplicationPlaybookInstanceClosureSchema.optional(),
|
|
86
|
+
/**
|
|
87
|
+
* Families a SECONDARY LINE needs although the main line declares them not applicable (#1608): an internal
|
|
88
|
+
* tool adding a public website as a feature needs the website plan, and the market snapshot the plan's
|
|
89
|
+
* sections draw on. While the line is not abandoned they apply to the application, so the playbooks that
|
|
90
|
+
* produce them run again and their files are read. Sorted and unique; absent when the line needs nothing
|
|
91
|
+
* the main line excludes.
|
|
92
|
+
*
|
|
93
|
+
* The creator's decision, taken when the line is opened. The assistant may PROPOSE it from what the person
|
|
94
|
+
* asked for ("add a public website"), and the approval card names the families, so what is recorded is what
|
|
95
|
+
* the person approved; it is never inferred silently from the purpose, which would record a guess as a
|
|
96
|
+
* decision. Only an instance of a secondary line's entry carries it; the landing refuses it on any other
|
|
97
|
+
* instance.
|
|
98
|
+
*/
|
|
99
|
+
neededFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1).optional(),
|
|
100
|
+
/**
|
|
101
|
+
* The families a REFINEMENT line re-derives (#1608): what the creator asked to refine, e.g. the requirements
|
|
102
|
+
* or the experience plan. Required on a refinement line and refused on any other instance. Each is a family
|
|
103
|
+
* the application already holds and a producer of it re-derives from its own prior output, so the line
|
|
104
|
+
* refines what exists instead of re-authoring it. Sorted and unique.
|
|
105
|
+
*
|
|
106
|
+
* The creator's decision, like `neededFamilies`: the assistant may propose it from what the person asked,
|
|
107
|
+
* and the approval card names it, so what is recorded is what the person approved.
|
|
108
|
+
*/
|
|
109
|
+
refinedFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1).optional(),
|
|
110
|
+
});
|
|
44
111
|
export const ApplicationCreatorInputsSchema = z.strictObject({
|
|
45
112
|
schemaVersion: z.literal(1),
|
|
46
113
|
answers: z.array(ApplicationCreatorInputAnswerSchema),
|
|
114
|
+
/**
|
|
115
|
+
* The playbook instances the creator opened, keyed by instance id (`<ref>@<key>`), in SORTED key order
|
|
116
|
+
* (#1609). Absent until the first one: a fresh application records no activation, and a run that lands
|
|
117
|
+
* never writes here.
|
|
118
|
+
*
|
|
119
|
+
* A keyed object rather than a list, one entry per block, kept sorted by {@link withPlaybookActivation}:
|
|
120
|
+
* two branches that each open an instance then touch different lines, so they merge without a textual
|
|
121
|
+
* conflict unless the two keys are adjacent in sort order, in which case the conflict is a one-line
|
|
122
|
+
* choice. A list appended at the tail would conflict on every concurrent addition.
|
|
123
|
+
*/
|
|
124
|
+
activations: z.record(z.string(), ApplicationPlaybookActivationSchema).optional(),
|
|
47
125
|
});
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
126
|
+
/**
|
|
127
|
+
* The one key an answer is addressed by. `playbookRef` and `questionRef` are refs, never free text, so `#`
|
|
128
|
+
* cannot occur in either. The default instance keeps the key it always had (`<ref>#<question>`); an
|
|
129
|
+
* instance's answer is `<ref>@<key>#<question>` (#1609).
|
|
130
|
+
*/
|
|
131
|
+
export function creatorInputAnswerKey(playbookRef, questionRef, instanceKey) {
|
|
132
|
+
return `${playbookInstanceId(playbookRef, instanceKey)}#${questionRef}`;
|
|
133
|
+
}
|
|
134
|
+
/** The dossier with one more activation, or one reworded, keyed by instance id and kept in sorted order. */
|
|
135
|
+
export function withPlaybookActivation(inputs, activation) {
|
|
136
|
+
const merged = { ...(inputs?.activations ?? {}), [playbookInstanceId(activation.playbookRef, activation.instanceKey)]: activation };
|
|
137
|
+
return {
|
|
138
|
+
schemaVersion: 1,
|
|
139
|
+
answers: inputs?.answers ?? [],
|
|
140
|
+
activations: Object.fromEntries(Object.entries(merged).sort(([left], [right]) => left.localeCompare(right))),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
/** Whether this activation is still open: opened and not closed. */
|
|
144
|
+
export function isPlaybookInstanceOpen(activation) {
|
|
145
|
+
return activation !== undefined && activation.closure === undefined;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The dossier with one instance closed (#1608). Refused for an instance nobody opened, and for one already
|
|
149
|
+
* closed: closing is a decision taken once, and a second closure would overwrite the first one's reason.
|
|
150
|
+
*/
|
|
151
|
+
export function withPlaybookInstanceClosure(inputs, instanceId, closure) {
|
|
152
|
+
const activation = inputs?.activations?.[instanceId];
|
|
153
|
+
if (activation === undefined)
|
|
154
|
+
throw new Error(`"${instanceId}" was never opened, so it cannot be closed.`);
|
|
155
|
+
if (activation.closure !== undefined)
|
|
156
|
+
throw new Error(`"${instanceId}" is already ${activation.closure.kind}.`);
|
|
157
|
+
return withPlaybookActivation(inputs, { ...activation, closure });
|
|
51
158
|
}
|
|
52
159
|
/**
|
|
53
160
|
* The family validator — FINDINGS, each an error: a dossier holding two answers to one question
|
|
@@ -61,36 +168,63 @@ export function validateApplicationCreatorInputs(inputs) {
|
|
|
61
168
|
const findings = [];
|
|
62
169
|
const seen = new Set();
|
|
63
170
|
for (const answer of inputs.answers) {
|
|
64
|
-
const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef);
|
|
171
|
+
const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey);
|
|
65
172
|
if (seen.has(key))
|
|
66
|
-
findings.push(`question "${answer.questionRef}" of "${answer.playbookRef}" is answered more than once`);
|
|
173
|
+
findings.push(`question "${answer.questionRef}" of "${playbookInstanceId(answer.playbookRef, answer.instanceKey)}" is answered more than once`);
|
|
67
174
|
seen.add(key);
|
|
68
175
|
}
|
|
176
|
+
// An activation is addressed by its own identity; a key that says another would be read as the wrong instance.
|
|
177
|
+
for (const [key, activation] of Object.entries(inputs.activations ?? {})) {
|
|
178
|
+
const expected = playbookInstanceId(activation.playbookRef, activation.instanceKey);
|
|
179
|
+
if (key !== expected)
|
|
180
|
+
findings.push(`activation "${key}" records the instance "${expected}"`);
|
|
181
|
+
}
|
|
182
|
+
// An answer to an instance nobody opened would be read by no run; keeping it unreported would hide a typo.
|
|
183
|
+
for (const answer of inputs.answers) {
|
|
184
|
+
if (answer.instanceKey === undefined)
|
|
185
|
+
continue;
|
|
186
|
+
const id = playbookInstanceId(answer.playbookRef, answer.instanceKey);
|
|
187
|
+
if (!inputs.activations || !(id in inputs.activations))
|
|
188
|
+
findings.push(`question "${answer.questionRef}" is answered for "${id}", an instance that was never opened`);
|
|
189
|
+
}
|
|
69
190
|
return findings;
|
|
70
191
|
}
|
|
71
192
|
/**
|
|
72
193
|
* The answers one playbook's interview reads, in the `{ questionRef, answer }` shape the run route
|
|
73
194
|
* already accepts. A dossier with nothing for this playbook yields `[]`, which the run treats as
|
|
74
195
|
* "not interviewed yet", never as a refusal.
|
|
196
|
+
*
|
|
197
|
+
* For an INSTANCE (#1609), its own answer wins per question and the default instance's fills the rest:
|
|
198
|
+
* what the company answered once is shared, and the instance answers only what differs for it.
|
|
75
199
|
*/
|
|
76
|
-
export function readCreatorInputAnswersForPlaybook(inputs, playbookRef) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
200
|
+
export function readCreatorInputAnswersForPlaybook(inputs, playbookRef, instanceKey) {
|
|
201
|
+
const byQuestion = new Map();
|
|
202
|
+
for (const answer of inputs?.answers ?? []) {
|
|
203
|
+
if (answer.playbookRef === playbookRef && answer.instanceKey === undefined)
|
|
204
|
+
byQuestion.set(answer.questionRef, answer.value);
|
|
205
|
+
}
|
|
206
|
+
if (instanceKey !== undefined) {
|
|
207
|
+
for (const answer of inputs?.answers ?? []) {
|
|
208
|
+
if (answer.playbookRef === playbookRef && answer.instanceKey === instanceKey)
|
|
209
|
+
byQuestion.set(answer.questionRef, answer.value);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return [...byQuestion].map(([questionRef, answer]) => ({ questionRef, answer }));
|
|
80
213
|
}
|
|
81
214
|
/**
|
|
82
215
|
* The dossier after one more answer, or after one answer changed — REPLACE by key, keep the rest,
|
|
83
216
|
* keep the file's order for the entries that were already there so a diff shows only the change.
|
|
84
217
|
*/
|
|
85
218
|
export function withCreatorInputAnswer(inputs, answer) {
|
|
86
|
-
const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef);
|
|
219
|
+
const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey);
|
|
87
220
|
const existing = inputs?.answers ?? [];
|
|
88
|
-
const
|
|
221
|
+
const keyOf = (candidate) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef, candidate.instanceKey);
|
|
222
|
+
const replaced = existing.some((candidate) => keyOf(candidate) === key);
|
|
89
223
|
return {
|
|
90
224
|
schemaVersion: 1,
|
|
91
|
-
answers: replaced
|
|
92
|
-
|
|
93
|
-
|
|
225
|
+
answers: replaced ? existing.map((candidate) => (keyOf(candidate) === key ? answer : candidate)) : [...existing, answer],
|
|
226
|
+
// The activations are a separate record: an answer never adds, drops or reorders one.
|
|
227
|
+
...(inputs?.activations ? { activations: inputs.activations } : {}),
|
|
94
228
|
};
|
|
95
229
|
}
|
|
96
230
|
//# sourceMappingURL=application-creator-inputs.application-creation.schemas.js.map
|
package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-creator-inputs.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-creator-inputs.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,iGAAiG;IACjG,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,sFAAsF;IACtF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,+GAA+G;IAC/G,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,mGAAmG;IACnG,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AAK,WAAW,CAAC;SACtD,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAClF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAA4C,EAC5C,MAAqC;IAErC,MAAM,GAAG,GAAG,qBAAqB,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAC1E,MAAM,QAAQ,GAAG,MAAM,EAAE,OAAO,IAAI,EAAE,CAAC;IACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,qBAAqB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,CAAC;IAC3H,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,QAAQ;YACf,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,qBAAqB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YACjI,CAAC,CAAC,CAAC,GAAG,QAAQ,EAAE,MAAM,CAAC;KAC1B,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\n\n/**\n * THE DOSSIER's committed half: what the creator answered, question by question (#1454, Step 5).\n *\n * ## What one entry is\n *\n * One answer to one question a playbook DECLARES in its `method.elicitation`. The keys are the\n * playbook's own `ref` and the question's own `ref`, so nothing here invents a vocabulary: a\n * question that no playbook asks cannot be answered, and a playbook run that needs an answer finds\n * it under the ref it declared. The value is kept exactly as the interview's validation admitted\n * it — a CONFIRM answer canonically (`yes` / `no`), a CHOICE answer as one of its declared options,\n * free text trimmed.\n *\n * ## Why ONE file for every playbook, rather than one file per playbook\n *\n * The design note proposed a file per source. The family machinery lands one file per family and\n * reads it through one companion-exports slot, so a per-playbook split would need a second layout\n * and a second reader for no gain in truth: `answeredAt` on every entry already carries the\n * instant a per-file git history would have carried, and it carries it per ANSWER, which is finer\n * than per file. Freshness of a playbook's outputs against its answers is derived from that instant\n * (Step 8), not from a file's commit.\n *\n * ## What it deliberately is not\n *\n * Not a form. A creator answers through the conversation or the dossier, one question at a time,\n * and each answer lands here as a working edit that a commit accepts\n * (`.claude/rules/one-source-of-truth.md`, rules 2 and 3). Not a product declaration either: a\n * question whose answer is a typed config key (the operating entity, the jurisdictions) is answered\n * here and WRITTEN into `wildo.saas.config.ts` by the run that reads it — the dossier is the\n * interview's memory, the config stays the declaration.\n */\nexport const ApplicationCreatorInputAnswerSchema = z.strictObject({\n /** The playbook that asks this question — its compiled `ref` (`top_down.vision-elicitation`). */\n playbookRef: z.string().trim().min(1),\n /** The question's own `ref` inside that playbook's `method.elicitation.questions`. */\n questionRef: z.string().trim().min(1),\n /** The answer, as the interview's validation admitted it. Never empty: an unanswered question has no entry. */\n value: z.string().trim().min(1),\n /** When this answer was given, ISO 8601. The instant a playbook's outputs are measured against. */\n answeredAt: z.iso.datetime(),\n /** Who answered — a user ref of the workbench session that recorded it. Provenance, never authority. */\n answeredByRef: z.string().trim().min(1),\n});\nexport type ApplicationCreatorInputAnswer = z.infer<typeof ApplicationCreatorInputAnswerSchema>;\n\nexport const ApplicationCreatorInputsSchema = z.strictObject({\n schemaVersion: z.literal(1),\n answers: z.array(ApplicationCreatorInputAnswerSchema),\n});\nexport type ApplicationCreatorInputs = z.infer<typeof ApplicationCreatorInputsSchema>;\n\n/** The one key an answer is addressed by. `playbookRef` and `questionRef` are refs, never free text, so `#` cannot occur in either. */\nexport function creatorInputAnswerKey(playbookRef: string, questionRef: string): string {\n return `${playbookRef}#${questionRef}`;\n}\n\n/**\n * The family validator — FINDINGS, each an error: a dossier holding two answers to one question\n * cannot be read, because a run would have to pick one and nothing says which.\n *\n * Whether an answer names a question its playbook actually asks is NOT checked here: the family\n * schema does not know the catalog, and an answer to a question a later catalog renamed is a\n * stale answer to report, never a corrupt file. The dossier projection reports those as orphaned.\n */\nexport function validateApplicationCreatorInputs(inputs: ApplicationCreatorInputs): readonly string[] {\n const findings: string[] = [];\n const seen = new Set<string>();\n for (const answer of inputs.answers) {\n const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef);\n if (seen.has(key)) findings.push(`question \"${answer.questionRef}\" of \"${answer.playbookRef}\" is answered more than once`);\n seen.add(key);\n }\n return findings;\n}\n\n/**\n * The answers one playbook's interview reads, in the `{ questionRef, answer }` shape the run route\n * already accepts. A dossier with nothing for this playbook yields `[]`, which the run treats as\n * \"not interviewed yet\", never as a refusal.\n */\nexport function readCreatorInputAnswersForPlaybook(\n inputs: ApplicationCreatorInputs | undefined,\n playbookRef: string,\n): readonly { readonly questionRef: string; readonly answer: string }[] {\n return (inputs?.answers ?? [])\n .filter((answer) => answer.playbookRef === playbookRef)\n .map((answer) => ({ questionRef: answer.questionRef, answer: answer.value }));\n}\n\n/**\n * The dossier after one more answer, or after one answer changed — REPLACE by key, keep the rest,\n * keep the file's order for the entries that were already there so a diff shows only the change.\n */\nexport function withCreatorInputAnswer(\n inputs: ApplicationCreatorInputs | undefined,\n answer: ApplicationCreatorInputAnswer,\n): ApplicationCreatorInputs {\n const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef);\n const existing = inputs?.answers ?? [];\n const replaced = existing.some((candidate) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef) === key);\n return {\n schemaVersion: 1,\n answers: replaced\n ? existing.map((candidate) => (creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef) === key ? answer : candidate))\n : [...existing, answer],\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"application-creator-inputs.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-creator-inputs.application-creation.schemas.ts"],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AAO,IAAI,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,CAAC,SAAwC,EAAE,EAAE,CAAC,qBAAqB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACvJ,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC;IACxE,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,EAAE,MAAM,CAAC;QACxH,sFAAsF;QACtF,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACpE,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { ApplicationSpecificationFamily } from \"../_core/application-specification-family-identity.schemas\";\nimport { PlaybookInstanceKeySchema, playbookInstanceId } from \"./playbook-instance.application-creation.schemas\";\n\n/**\n * THE DOSSIER's committed half: what the creator answered, question by question (#1454, Step 5).\n *\n * ## What one entry is\n *\n * One answer to one question a playbook DECLARES in its `method.elicitation`. The keys are the\n * playbook's own `ref` and the question's own `ref`, so nothing here invents a vocabulary: a\n * question that no playbook asks cannot be answered, and a playbook run that needs an answer finds\n * it under the ref it declared. The value is kept exactly as the interview's validation admitted\n * it — a CONFIRM answer canonically (`yes` / `no`), a CHOICE answer as one of its declared options,\n * free text trimmed.\n *\n * ## Why ONE file for every playbook, rather than one file per playbook\n *\n * The design note proposed a file per source. The family machinery lands one file per family and\n * reads it through one companion-exports slot, so a per-playbook split would need a second layout\n * and a second reader for no gain in truth: `answeredAt` on every entry already carries the\n * instant a per-file git history would have carried, and it carries it per ANSWER, which is finer\n * than per file. Freshness of a playbook's outputs against its answers is derived from that instant\n * (Step 8), not from a file's commit.\n *\n * ## What it deliberately is not\n *\n * Not a form. A creator answers through the conversation or the dossier, one question at a time,\n * and each answer lands here as a working edit that a commit accepts\n * (`.claude/rules/one-source-of-truth.md`, rules 2 and 3). Not a product declaration either: a\n * question whose answer is a typed config key (the operating entity, the jurisdictions) is answered\n * here and WRITTEN into `wildo.saas.config.ts` by the run that reads it — the dossier is the\n * interview's memory, the config stays the declaration.\n */\nexport const ApplicationCreatorInputAnswerSchema = z.strictObject({\n /** The playbook that asks this question — its compiled `ref` (`top_down.vision-elicitation`). */\n playbookRef: z.string().trim().min(1),\n /** The question's own `ref` inside that playbook's `method.elicitation.questions`. */\n questionRef: z.string().trim().min(1),\n /**\n * The playbook INSTANCE this answer belongs to (#1609); absent for the default instance. An instance\n * reads its own answer first and falls back to the default instance's, so company-level answers are\n * given once and a feature line answers only what differs for it.\n */\n instanceKey: PlaybookInstanceKeySchema.optional(),\n /** The answer, as the interview's validation admitted it. Never empty: an unanswered question has no entry. */\n value: z.string().trim().min(1),\n /** When this answer was given, ISO 8601. The instant a playbook's outputs are measured against. */\n answeredAt: z.iso.datetime(),\n /** Who answered — a user ref of the workbench session that recorded it. Provenance, never authority. */\n answeredByRef: z.string().trim().min(1),\n});\nexport type ApplicationCreatorInputAnswer = z.infer<typeof ApplicationCreatorInputAnswerSchema>;\n\n/**\n * One playbook INSTANCE the creator opened (#1609, carried from #1607): the non-derivable act the dossier\n * records beside the line.\n *\n * Only what cannot be derived. Which playbooks the line runs is derived (`describeApplicationActiveSet`);\n * when and by whom this was opened is the commit that recorded it (author, time, and the purpose and actor\n * trailers). So an activation is its identity and its purpose, nothing else.\n */\n/**\n * How an instance ENDED (#1608, #1609 R10). An instance is closed rather than deleted: what it contributed\n * stays, with its provenance, and its record says it no longer runs.\n */\nexport enum ApplicationPlaybookInstanceClosureKind {\n /** Its work is done, e.g. the feature it was opened for is built. */\n COMPLETED = \"completed\",\n /**\n * Stopped before it was done. Its contributions stay, marked with it; its waiting runs are cancelled and its\n * interrupted progress is consumed, so nothing resumes it.\n */\n ABANDONED = \"abandoned\",\n}\n\nexport const ApplicationPlaybookInstanceClosureSchema = z.strictObject({\n kind: z.enum(ApplicationPlaybookInstanceClosureKind),\n /** Why, in the words of whoever closed it. When and by whom is the commit that recorded it. */\n reason: z.string().trim().min(1).optional(),\n});\nexport type ApplicationPlaybookInstanceClosure = z.infer<typeof ApplicationPlaybookInstanceClosureSchema>;\n\nexport const ApplicationPlaybookActivationSchema = z.strictObject({\n playbookRef: z.string().trim().min(1),\n instanceKey: PlaybookInstanceKeySchema,\n /** What this instance is for, in the creator's terms (\"the enterprise segment\", \"the invoicing feature\"). */\n purpose: z.string().trim().min(1),\n /** Present once the instance is closed: it no longer runs, and a secondary line no longer counts as open. */\n closure: ApplicationPlaybookInstanceClosureSchema.optional(),\n /**\n * Families a SECONDARY LINE needs although the main line declares them not applicable (#1608): an internal\n * tool adding a public website as a feature needs the website plan, and the market snapshot the plan's\n * sections draw on. While the line is not abandoned they apply to the application, so the playbooks that\n * produce them run again and their files are read. Sorted and unique; absent when the line needs nothing\n * the main line excludes.\n *\n * The creator's decision, taken when the line is opened. The assistant may PROPOSE it from what the person\n * asked for (\"add a public website\"), and the approval card names the families, so what is recorded is what\n * the person approved; it is never inferred silently from the purpose, which would record a guess as a\n * decision. Only an instance of a secondary line's entry carries it; the landing refuses it on any other\n * instance.\n */\n neededFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1).optional(),\n /**\n * The families a REFINEMENT line re-derives (#1608): what the creator asked to refine, e.g. the requirements\n * or the experience plan. Required on a refinement line and refused on any other instance. Each is a family\n * the application already holds and a producer of it re-derives from its own prior output, so the line\n * refines what exists instead of re-authoring it. Sorted and unique.\n *\n * The creator's decision, like `neededFamilies`: the assistant may propose it from what the person asked,\n * and the approval card names it, so what is recorded is what the person approved.\n */\n refinedFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1).optional(),\n});\nexport type ApplicationPlaybookActivation = z.infer<typeof ApplicationPlaybookActivationSchema>;\n\nexport const ApplicationCreatorInputsSchema = z.strictObject({\n schemaVersion: z.literal(1),\n answers: z.array(ApplicationCreatorInputAnswerSchema),\n /**\n * The playbook instances the creator opened, keyed by instance id (`<ref>@<key>`), in SORTED key order\n * (#1609). Absent until the first one: a fresh application records no activation, and a run that lands\n * never writes here.\n *\n * A keyed object rather than a list, one entry per block, kept sorted by {@link withPlaybookActivation}:\n * two branches that each open an instance then touch different lines, so they merge without a textual\n * conflict unless the two keys are adjacent in sort order, in which case the conflict is a one-line\n * choice. A list appended at the tail would conflict on every concurrent addition.\n */\n activations: z.record(z.string(), ApplicationPlaybookActivationSchema).optional(),\n});\nexport type ApplicationCreatorInputs = z.infer<typeof ApplicationCreatorInputsSchema>;\n\n/**\n * The one key an answer is addressed by. `playbookRef` and `questionRef` are refs, never free text, so `#`\n * cannot occur in either. The default instance keeps the key it always had (`<ref>#<question>`); an\n * instance's answer is `<ref>@<key>#<question>` (#1609).\n */\nexport function creatorInputAnswerKey(playbookRef: string, questionRef: string, instanceKey?: string): string {\n return `${playbookInstanceId(playbookRef, instanceKey)}#${questionRef}`;\n}\n\n/** The dossier with one more activation, or one reworded, keyed by instance id and kept in sorted order. */\nexport function withPlaybookActivation(\n inputs: ApplicationCreatorInputs | undefined,\n activation: ApplicationPlaybookActivation,\n): ApplicationCreatorInputs {\n const merged = { ...(inputs?.activations ?? {}), [playbookInstanceId(activation.playbookRef, activation.instanceKey)]: activation };\n return {\n schemaVersion: 1,\n answers: inputs?.answers ?? [],\n activations: Object.fromEntries(Object.entries(merged).sort(([left], [right]) => left.localeCompare(right))),\n };\n}\n\n/** Whether this activation is still open: opened and not closed. */\nexport function isPlaybookInstanceOpen(activation: ApplicationPlaybookActivation | undefined): boolean {\n return activation !== undefined && activation.closure === undefined;\n}\n\n/**\n * The dossier with one instance closed (#1608). Refused for an instance nobody opened, and for one already\n * closed: closing is a decision taken once, and a second closure would overwrite the first one's reason.\n */\nexport function withPlaybookInstanceClosure(\n inputs: ApplicationCreatorInputs | undefined,\n instanceId: string,\n closure: ApplicationPlaybookInstanceClosure,\n): ApplicationCreatorInputs {\n const activation = inputs?.activations?.[instanceId];\n if (activation === undefined) throw new Error(`\"${instanceId}\" was never opened, so it cannot be closed.`);\n if (activation.closure !== undefined) throw new Error(`\"${instanceId}\" is already ${activation.closure.kind}.`);\n return withPlaybookActivation(inputs, { ...activation, closure });\n}\n\n/**\n * The family validator — FINDINGS, each an error: a dossier holding two answers to one question\n * cannot be read, because a run would have to pick one and nothing says which.\n *\n * Whether an answer names a question its playbook actually asks is NOT checked here: the family\n * schema does not know the catalog, and an answer to a question a later catalog renamed is a\n * stale answer to report, never a corrupt file. The dossier projection reports those as orphaned.\n */\nexport function validateApplicationCreatorInputs(inputs: ApplicationCreatorInputs): readonly string[] {\n const findings: string[] = [];\n const seen = new Set<string>();\n for (const answer of inputs.answers) {\n const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey);\n if (seen.has(key)) findings.push(`question \"${answer.questionRef}\" of \"${playbookInstanceId(answer.playbookRef, answer.instanceKey)}\" is answered more than once`);\n seen.add(key);\n }\n // An activation is addressed by its own identity; a key that says another would be read as the wrong instance.\n for (const [key, activation] of Object.entries(inputs.activations ?? {})) {\n const expected = playbookInstanceId(activation.playbookRef, activation.instanceKey);\n if (key !== expected) findings.push(`activation \"${key}\" records the instance \"${expected}\"`);\n }\n // An answer to an instance nobody opened would be read by no run; keeping it unreported would hide a typo.\n for (const answer of inputs.answers) {\n if (answer.instanceKey === undefined) continue;\n const id = playbookInstanceId(answer.playbookRef, answer.instanceKey);\n if (!inputs.activations || !(id in inputs.activations)) findings.push(`question \"${answer.questionRef}\" is answered for \"${id}\", an instance that was never opened`);\n }\n return findings;\n}\n\n/**\n * The answers one playbook's interview reads, in the `{ questionRef, answer }` shape the run route\n * already accepts. A dossier with nothing for this playbook yields `[]`, which the run treats as\n * \"not interviewed yet\", never as a refusal.\n *\n * For an INSTANCE (#1609), its own answer wins per question and the default instance's fills the rest:\n * what the company answered once is shared, and the instance answers only what differs for it.\n */\nexport function readCreatorInputAnswersForPlaybook(\n inputs: ApplicationCreatorInputs | undefined,\n playbookRef: string,\n instanceKey?: string,\n): readonly { readonly questionRef: string; readonly answer: string }[] {\n const byQuestion = new Map<string, string>();\n for (const answer of inputs?.answers ?? []) {\n if (answer.playbookRef === playbookRef && answer.instanceKey === undefined) byQuestion.set(answer.questionRef, answer.value);\n }\n if (instanceKey !== undefined) {\n for (const answer of inputs?.answers ?? []) {\n if (answer.playbookRef === playbookRef && answer.instanceKey === instanceKey) byQuestion.set(answer.questionRef, answer.value);\n }\n }\n return [...byQuestion].map(([questionRef, answer]) => ({ questionRef, answer }));\n}\n\n/**\n * The dossier after one more answer, or after one answer changed — REPLACE by key, keep the rest,\n * keep the file's order for the entries that were already there so a diff shows only the change.\n */\nexport function withCreatorInputAnswer(\n inputs: ApplicationCreatorInputs | undefined,\n answer: ApplicationCreatorInputAnswer,\n): ApplicationCreatorInputs {\n const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey);\n const existing = inputs?.answers ?? [];\n const keyOf = (candidate: ApplicationCreatorInputAnswer) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef, candidate.instanceKey);\n const replaced = existing.some((candidate) => keyOf(candidate) === key);\n return {\n schemaVersion: 1,\n answers: replaced ? existing.map((candidate) => (keyOf(candidate) === key ? answer : candidate)) : [...existing, answer],\n // The activations are a separate record: an answer never adds, drops or reorders one.\n ...(inputs?.activations ? { activations: inputs.activations } : {}),\n };\n}\n"]}
|
|
@@ -52,6 +52,11 @@ export declare const ApplicationDocumentFactDeclarationAuthoritySchema: z.ZodDis
|
|
|
52
52
|
reviewerQualificationRefs: z.ZodArray<z.ZodString>;
|
|
53
53
|
independenceDisclosure: z.ZodString;
|
|
54
54
|
decidedAt: z.ZodISODateTime;
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
+
authorityRef: z.ZodString;
|
|
57
|
+
authorityVersion: z.ZodNumber;
|
|
58
|
+
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
|
|
59
|
+
observedAt: z.ZodISODateTime;
|
|
55
60
|
}, z.core.$strict>], "factAuthorityKind">;
|
|
56
61
|
export type ApplicationDocumentFactDeclarationAuthority = z.infer<typeof ApplicationDocumentFactDeclarationAuthoritySchema>;
|
|
57
62
|
/**
|
|
@@ -67,7 +72,10 @@ export type ApplicationDocumentFactDeclarationAuthority = z.infer<typeof Applica
|
|
|
67
72
|
/**
|
|
68
73
|
* A DERIVED declaration — `document-facts`, the family a producer writes.
|
|
69
74
|
*
|
|
70
|
-
* Its authority
|
|
75
|
+
* Its authority is `APPLICATION_SPECIFICATION`, plus `RUNTIME_EVIDENCE` for the one purpose the refinement
|
|
76
|
+
* admits it: a fact the runtime computes from records, laid over the file in the read view and never stored
|
|
77
|
+
* (#1636). A PRODUCER therefore still has exactly one authority it can land, and that is the point of the
|
|
78
|
+
* split (#192): the
|
|
71
79
|
* `refinement.document-facts` producer regenerates this whole file, so a human decision left in it is
|
|
72
80
|
* silently overwritten on the next run. Narrowing the TYPE is what makes "a generator may never write a
|
|
73
81
|
* `CREATOR_DECISION`" structural instead of a rule somebody has to remember — the generation contract
|
|
@@ -89,11 +97,16 @@ export declare const ApplicationDerivedDocumentFactDeclarationSchema: z.ZodDiscr
|
|
|
89
97
|
}, z.core.$strict>;
|
|
90
98
|
sensitivityRef: z.ZodString;
|
|
91
99
|
validUntil: z.ZodOptional<z.ZodISODateTime>;
|
|
92
|
-
authority: z.ZodObject<{
|
|
100
|
+
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
101
|
authorityRef: z.ZodString;
|
|
94
102
|
authorityVersion: z.ZodNumber;
|
|
95
103
|
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION>>;
|
|
96
|
-
}, z.core.$strict
|
|
104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
105
|
+
authorityRef: z.ZodString;
|
|
106
|
+
authorityVersion: z.ZodNumber;
|
|
107
|
+
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
|
|
108
|
+
observedAt: z.ZodISODateTime;
|
|
109
|
+
}, z.core.$strict>], "factAuthorityKind">;
|
|
97
110
|
resolutionKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN>>;
|
|
98
111
|
value: z.ZodJSONSchema;
|
|
99
112
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -111,11 +124,16 @@ export declare const ApplicationDerivedDocumentFactDeclarationSchema: z.ZodDiscr
|
|
|
111
124
|
}, z.core.$strict>;
|
|
112
125
|
sensitivityRef: z.ZodString;
|
|
113
126
|
validUntil: z.ZodOptional<z.ZodISODateTime>;
|
|
114
|
-
authority: z.ZodObject<{
|
|
127
|
+
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
115
128
|
authorityRef: z.ZodString;
|
|
116
129
|
authorityVersion: z.ZodNumber;
|
|
117
130
|
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION>>;
|
|
118
|
-
}, z.core.$strict
|
|
131
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
132
|
+
authorityRef: z.ZodString;
|
|
133
|
+
authorityVersion: z.ZodNumber;
|
|
134
|
+
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
|
|
135
|
+
observedAt: z.ZodISODateTime;
|
|
136
|
+
}, z.core.$strict>], "factAuthorityKind">;
|
|
119
137
|
resolutionKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE>>;
|
|
120
138
|
reason: z.ZodString;
|
|
121
139
|
}, z.core.$strict>], "resolutionKind">;
|
|
@@ -262,11 +280,16 @@ export declare const ApplicationDocumentFactSpecificationSchema: z.ZodObject<{
|
|
|
262
280
|
}, z.core.$strict>;
|
|
263
281
|
sensitivityRef: z.ZodString;
|
|
264
282
|
validUntil: z.ZodOptional<z.ZodISODateTime>;
|
|
265
|
-
authority: z.ZodObject<{
|
|
283
|
+
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
266
284
|
authorityRef: z.ZodString;
|
|
267
285
|
authorityVersion: z.ZodNumber;
|
|
268
286
|
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION>>;
|
|
269
|
-
}, z.core.$strict
|
|
287
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
288
|
+
authorityRef: z.ZodString;
|
|
289
|
+
authorityVersion: z.ZodNumber;
|
|
290
|
+
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
|
|
291
|
+
observedAt: z.ZodISODateTime;
|
|
292
|
+
}, z.core.$strict>], "factAuthorityKind">;
|
|
270
293
|
resolutionKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN>>;
|
|
271
294
|
value: z.ZodJSONSchema;
|
|
272
295
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -284,11 +307,16 @@ export declare const ApplicationDocumentFactSpecificationSchema: z.ZodObject<{
|
|
|
284
307
|
}, z.core.$strict>;
|
|
285
308
|
sensitivityRef: z.ZodString;
|
|
286
309
|
validUntil: z.ZodOptional<z.ZodISODateTime>;
|
|
287
|
-
authority: z.ZodObject<{
|
|
310
|
+
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
288
311
|
authorityRef: z.ZodString;
|
|
289
312
|
authorityVersion: z.ZodNumber;
|
|
290
313
|
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION>>;
|
|
291
|
-
}, z.core.$strict
|
|
314
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
315
|
+
authorityRef: z.ZodString;
|
|
316
|
+
authorityVersion: z.ZodNumber;
|
|
317
|
+
factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
|
|
318
|
+
observedAt: z.ZodISODateTime;
|
|
319
|
+
}, z.core.$strict>], "factAuthorityKind">;
|
|
292
320
|
resolutionKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE>>;
|
|
293
321
|
reason: z.ZodString;
|
|
294
322
|
}, z.core.$strict>], "resolutionKind">>;
|
|
@@ -437,6 +465,14 @@ export declare function resolveBlueprintAssignedFactAuthorityKinds(factRef: stri
|
|
|
437
465
|
* `rights-and-complaint-route` once the verification procedure had `subjectRequestIdentityVerification`. When a member's inputs are absent, its
|
|
438
466
|
* computation answers NOTHING: the fact stays absent and every clause resting on it is marked as owed,
|
|
439
467
|
* which is the honest state of "nobody has declared this".
|
|
468
|
+
*
|
|
469
|
+
* ## The runtime member
|
|
470
|
+
*
|
|
471
|
+
* One member is computed from what the application DID rather than from what it declares:
|
|
472
|
+
* `retention-enforcement` reads the retention-enforcement records the sweep writes (#1636), and so carries
|
|
473
|
+
* `RUNTIME_EVIDENCE` authority rather than `APPLICATION_SPECIFICATION` — see
|
|
474
|
+
* {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}. Its whole answer is still a FUNCTION, of records and
|
|
475
|
+
* declarations together, which is what membership requires; nobody decides it.
|
|
440
476
|
*/
|
|
441
477
|
export declare enum ComputedDocumentFact {
|
|
442
478
|
/** From `operatorComplianceIdentity`: the legal entity, its privacy contact route, and its role per population of data. */
|
|
@@ -469,8 +505,32 @@ export declare enum ComputedDocumentFact {
|
|
|
469
505
|
* `privacyContact` (the channel), `subjectRequestIdentityVerification` (the one procedure the operator
|
|
470
506
|
* decides) and `roleAllocations` (who answers each population's requests) (#454).
|
|
471
507
|
*/
|
|
472
|
-
RIGHTS_AND_COMPLAINT_ROUTE = "rights-and-complaint-route"
|
|
508
|
+
RIGHTS_AND_COMPLAINT_ROUTE = "rights-and-complaint-route",
|
|
509
|
+
/**
|
|
510
|
+
* From the retention-enforcement records the retention-class sweep writes, read against `dataRetention` and
|
|
511
|
+
* each resource's `retentionBinding`: per declared class, whether the period was ENFORCED, is only DECLARED,
|
|
512
|
+
* or is FAILING (#1636). The first `RUNTIME_EVIDENCE` fact — a notice says a period is enforced only when
|
|
513
|
+
* the product has shown it. Absent when the records could not be read, which is not "nothing enforced".
|
|
514
|
+
*/
|
|
515
|
+
RETENTION_ENFORCEMENT = "retention-enforcement",
|
|
516
|
+
/**
|
|
517
|
+
* From the resources bound to, or piped from, a declared system of record (#1745): per flow, the instance and its
|
|
518
|
+
* vendor, the local resource, the `.dataCategories()` of the fields that come from it, the purposes the binding links
|
|
519
|
+
* and whether the rows are kept until erased. The SOURCE a notice owes for data not collected from the person (GDPR
|
|
520
|
+
* Art. 14(2)(f)), with the purpose and basis for obtaining it (Art. 14(1)(c)). The PROXIMATE source only: whether
|
|
521
|
+
* the data originated from a publicly accessible source is not declared anywhere, so it is not stated. Distinct from
|
|
522
|
+
* `data-categories-and-sources`, a stored fact covering every collection source: a computed fact replaces any stored
|
|
523
|
+
* fact under its own reference, so sharing one would discard what that fact states about every other source.
|
|
524
|
+
*/
|
|
525
|
+
SYSTEM_OF_RECORD_SOURCES = "system-of-record-sources"
|
|
473
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
* The authority each computed fact carries — ONE table, so the overlay stamps it and the schema admits it
|
|
529
|
+
* from the same source. `RUNTIME_EVIDENCE` only where the value is computed from records (invariant: a fact
|
|
530
|
+
* is never labelled with a tier its computation did not earn; `.claude/rules/compliance-is-derived-from-the-product.md`
|
|
531
|
+
* rule 7).
|
|
532
|
+
*/
|
|
533
|
+
export declare const COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS: Readonly<Record<ComputedDocumentFact, AssuranceDocumentFactAuthorityKind>>;
|
|
474
534
|
/** The computed fact a ref names, or `undefined` when the fact is declared rather than computed. */
|
|
475
535
|
export declare function computedDocumentFactOf(factRef: string): ComputedDocumentFact | undefined;
|
|
476
536
|
export declare enum ApplicationDocumentFactSpecificationIssueSeverity {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application-document-fact-specification.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAA6C,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAElC,OAAO,EACL,kCAAkC,EAInC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"application-document-fact-specification.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.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