@wildo-ai/saas-specifications 1.1.5 → 1.1.6
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 +8 -8
- 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
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { ExternalDataMappingEntryKind } from "@wildo-ai/saas-models/external-data";
|
|
2
|
+
import { personalDataDisclosedThroughCapabilities, PersonalDataCategory, RecipientCategoriesNotDerivableReason, RECIPIENT_CAPABILITY_FLOW_TOKEN_KIND, resolveResourcePersonalDataCategories, sortPersonalDataCategories, } from "@wildo-ai/saas-models";
|
|
3
|
+
import { RecipientDataPathKind, RecipientPopulationClass, } from "./recipient-population.schemas.js";
|
|
4
|
+
/**
|
|
5
|
+
* **What each recipient RECEIVES, and for which purpose** — derived from the flows the application declares (#1709).
|
|
6
|
+
*
|
|
7
|
+
* A record of processing states the categories of personal data and the categories of recipients (GDPR Art.
|
|
8
|
+
* 30(1)(c) and (d)), and a notice names the recipients (Art. 13(1)(e)). The law asks for the two lists, not for a
|
|
9
|
+
* cross-reference between them; saying which categories reach which recipient is the practice that keeps the two
|
|
10
|
+
* lists consistent, and it is what an operator needs to answer a data subject's "who has my data". Until this
|
|
11
|
+
* existed, it rested on free text an operator typed.
|
|
12
|
+
* spec-cite: GDPR Art. 30, https://gdpr-info.eu/art-30-gdpr/ — "(c) a description of the categories of data subjects
|
|
13
|
+
* and of the categories of personal data; (d) the categories of recipients to whom the personal data have been or
|
|
14
|
+
* will be disclosed".
|
|
15
|
+
*
|
|
16
|
+
* ## Derived from DECLARED FLOWS only, and a flow nobody declared is a marked gap
|
|
17
|
+
*
|
|
18
|
+
* Three kinds of flow say which data reaches a vendor, and each is read where it is declared:
|
|
19
|
+
*
|
|
20
|
+
* - an ENGINE CAPABILITY (or a capability ROLE the engine wires): the engine composes the call, so the categories are
|
|
21
|
+
* the engine's own statement, `PROVIDER_CAPABILITY_DISCLOSURES` in `@wildo-ai/saas-models`;
|
|
22
|
+
* - a SYSTEM OF RECORD: every resource bound to the instance (a read-through binding) or piped from it, with the
|
|
23
|
+
* `.dataCategories()` of the fields that flow — {@link SystemOfRecordDataFlow}, read off the materialized resources;
|
|
24
|
+
* - anything else — a generated typed client, a browser operation, code the scan could not read — carries no static
|
|
25
|
+
* field-to-input map, so its categories are NOT DERIVABLE. That is reported per recipient, never as an empty answer
|
|
26
|
+
* and never as a guess.
|
|
27
|
+
*
|
|
28
|
+
* ## A pipeline is a SOURCE today, and it is counted as what the instance holds
|
|
29
|
+
*
|
|
30
|
+
* `ExternalDataPipelineDirection` has one member, INBOUND: a pipeline copies rows FROM the system of record. Its
|
|
31
|
+
* mapped categories are therefore data the instance HOLDS and the application receives from it, not data disclosed to
|
|
32
|
+
* it. They are counted on the instance anyway, because the instance is the application's processor for those rows
|
|
33
|
+
* (it holds them on the operator's account) and a processor's record must name them. When an OUTBOUND direction
|
|
34
|
+
* exists, this is where source and recipient part ways.
|
|
35
|
+
*
|
|
36
|
+
* ## Purposes are LINKED, never inferred
|
|
37
|
+
*
|
|
38
|
+
* A recipient serves the purposes its compliance choice names (`providerComplianceChoices.<ref>.purposeRefs`), each a
|
|
39
|
+
* `purposeRef` of `operatorComplianceIdentity.lawfulBases`. A system of record ALSO serves the purposes its bindings
|
|
40
|
+
* and pipelines link (`binding.purposeRefs`, #1745): the flow is where the purpose of a copy is declared, per resource.
|
|
41
|
+
* A recipient that names none is reported as such; a ref naming no declared purpose is reported as a broken link.
|
|
42
|
+
* Nothing here decides a purpose on the operator's behalf.
|
|
43
|
+
*
|
|
44
|
+
* Report-only, like the population it reads: it never refuses (`application-creation-directive.md`).
|
|
45
|
+
*/
|
|
46
|
+
/** @wildo_source:part:start saas.specifications.recipient-disclosures facet:layer:shared facet:audience:app-developer */
|
|
47
|
+
/** How a resource exchanges data with a system-of-record instance. */
|
|
48
|
+
export var SystemOfRecordDataFlowKind;
|
|
49
|
+
(function (SystemOfRecordDataFlowKind) {
|
|
50
|
+
/** A read-through binding: the resource's rows live in the system of record, every field maps by name or by map. */
|
|
51
|
+
SystemOfRecordDataFlowKind["READ_THROUGH_BINDING"] = "read-through-binding";
|
|
52
|
+
/** A pipeline copies the mapped fields between the system of record and a local resource. */
|
|
53
|
+
SystemOfRecordDataFlowKind["PIPELINE"] = "pipeline";
|
|
54
|
+
})(SystemOfRecordDataFlowKind || (SystemOfRecordDataFlowKind = {}));
|
|
55
|
+
/** @wildo_source:part:end saas.specifications.recipient-disclosures */
|
|
56
|
+
/**
|
|
57
|
+
* The system-of-record flows one resource declares, read off its materialized configuration — the one function the
|
|
58
|
+
* companion's facts and the evidence collector both call, so they cannot disagree about what flows.
|
|
59
|
+
*
|
|
60
|
+
* - A read-through binding (`httpApiBinding`) keeps the resource's rows IN the system of record: every field maps to
|
|
61
|
+
* a remote field (by name, or through `fieldMappings`), so the vendor holds every category the resource declares.
|
|
62
|
+
* - A pipeline (`externalDataPipeline`) moves only its MAPPED fields: the categories of the local fields its remote
|
|
63
|
+
* field, remote reference and declared-expression entries (#1685) write. A constant entry carries no remote data and
|
|
64
|
+
* does not count.
|
|
65
|
+
*
|
|
66
|
+
* Structural input, so a configuration of any generic instantiation passes without this module taking a view on it.
|
|
67
|
+
*/
|
|
68
|
+
export function systemOfRecordFlowsOfResource(resourceType, configuration) {
|
|
69
|
+
const flows = [];
|
|
70
|
+
if (configuration.httpApiBinding === undefined && configuration.externalDataPipeline === undefined)
|
|
71
|
+
return flows;
|
|
72
|
+
const profile = resolveResourcePersonalDataCategories(configuration.mainSchema);
|
|
73
|
+
if (configuration.httpApiBinding !== undefined) {
|
|
74
|
+
flows.push({
|
|
75
|
+
system: configuration.httpApiBinding.system,
|
|
76
|
+
resourceType,
|
|
77
|
+
kind: SystemOfRecordDataFlowKind.READ_THROUGH_BINDING,
|
|
78
|
+
categories: [...profile.categories],
|
|
79
|
+
uncategorizedPersonalFields: profile.uncategorizedPersonalFields.map((field) => field.fieldName).sort(),
|
|
80
|
+
purposeRefs: [...new Set(configuration.httpApiBinding.purposeRefs ?? [])].sort(),
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
const pipeline = configuration.externalDataPipeline;
|
|
84
|
+
if (pipeline !== undefined) {
|
|
85
|
+
// Every local field whose value comes FROM the system of record: a copied field, a reference, and each declared
|
|
86
|
+
// expression (#1685), whose output is derived from remote values. Only a CONSTANT reads nothing and so discloses
|
|
87
|
+
// nothing — which is why this excludes the one kind rather than listing the others, so a kind added later counts.
|
|
88
|
+
const mapped = new Set(pipeline.mapping
|
|
89
|
+
.filter((entry) => entry.kind !== ExternalDataMappingEntryKind.CONSTANT)
|
|
90
|
+
.map((entry) => entry.localField));
|
|
91
|
+
const categories = profile.declaredFields.filter((field) => mapped.has(field.fieldName)).flatMap((field) => field.categories);
|
|
92
|
+
flows.push({
|
|
93
|
+
system: pipeline.binding.system,
|
|
94
|
+
resourceType,
|
|
95
|
+
kind: SystemOfRecordDataFlowKind.PIPELINE,
|
|
96
|
+
categories: sortPersonalDataCategories(categories),
|
|
97
|
+
uncategorizedPersonalFields: profile.uncategorizedPersonalFields.filter((field) => mapped.has(field.fieldName)).map((field) => field.fieldName).sort(),
|
|
98
|
+
purposeRefs: [...new Set(pipeline.binding.purposeRefs ?? [])].sort(),
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return flows;
|
|
102
|
+
}
|
|
103
|
+
/** Every recipient's disclosure — operator sub-processors and tenant recipients — sorted by ref. */
|
|
104
|
+
export function deriveRecipientDisclosures(inputs) {
|
|
105
|
+
const recipients = inputs.population.members.filter((member) => member.populationClass === RecipientPopulationClass.OPERATOR_SUB_PROCESSOR || member.populationClass === RecipientPopulationClass.TENANT_RECIPIENT);
|
|
106
|
+
const order = Object.values(PersonalDataCategory);
|
|
107
|
+
const basesByRef = new Map((inputs.lawfulBases ?? []).flatMap((entry) => (entry.purposeRef === undefined ? [] : [[entry.purposeRef, entry]])));
|
|
108
|
+
return recipients.map((member) => {
|
|
109
|
+
const found = new Set();
|
|
110
|
+
/** The purposes the member's flows link (#1745) — only a system of record's flows carry any. */
|
|
111
|
+
const flowPurposeRefs = [];
|
|
112
|
+
const derivedFrom = [];
|
|
113
|
+
const notDerivable = new Set();
|
|
114
|
+
for (const path of member.dataPaths) {
|
|
115
|
+
switch (path.kind) {
|
|
116
|
+
case RecipientDataPathKind.ENGINE_CAPABILITY:
|
|
117
|
+
case RecipientDataPathKind.PROVIDER_CAPABILITY: {
|
|
118
|
+
const disclosed = personalDataDisclosedThroughCapabilities(path.detail);
|
|
119
|
+
disclosed.categories.forEach((category) => found.add(category));
|
|
120
|
+
derivedFrom.push(...path.detail.filter((token) => !disclosed.undeclared.includes(token)).map((token) => `${RECIPIENT_CAPABILITY_FLOW_TOKEN_KIND}:${token}`));
|
|
121
|
+
if (disclosed.undeclared.length > 0)
|
|
122
|
+
notDerivable.add(RecipientCategoriesNotDerivableReason.FLOW_UNDECLARED);
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
case RecipientDataPathKind.SYSTEM_OF_RECORD_INSTANCE: {
|
|
126
|
+
if (inputs.systemOfRecordFlows === undefined) {
|
|
127
|
+
notDerivable.add(RecipientCategoriesNotDerivableReason.FLOWS_NOT_READ);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
const flows = inputs.systemOfRecordFlows.filter((flow) => flow.system === member.ref);
|
|
131
|
+
if (flows.length === 0)
|
|
132
|
+
notDerivable.add(RecipientCategoriesNotDerivableReason.NO_RESOURCE_FLOW);
|
|
133
|
+
for (const flow of flows) {
|
|
134
|
+
flow.categories.forEach((category) => found.add(category));
|
|
135
|
+
derivedFrom.push(`${flow.kind}:${flow.resourceType}`);
|
|
136
|
+
if (flow.uncategorizedPersonalFields.length > 0)
|
|
137
|
+
notDerivable.add(RecipientCategoriesNotDerivableReason.UNCATEGORIZED_PERSONAL_FIELDS);
|
|
138
|
+
flowPurposeRefs.push(...flow.purposeRefs);
|
|
139
|
+
}
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
case RecipientDataPathKind.BROWSER_OPERATION:
|
|
143
|
+
case RecipientDataPathKind.TYPED_CLIENT:
|
|
144
|
+
case RecipientDataPathKind.UNSCANNED_CODE:
|
|
145
|
+
notDerivable.add(RecipientCategoriesNotDerivableReason.FLOW_UNDECLARED);
|
|
146
|
+
break;
|
|
147
|
+
default: {
|
|
148
|
+
// A new path kind is a compile error here until someone says whether it declares its fields.
|
|
149
|
+
const unhandled = path.kind;
|
|
150
|
+
throw new Error(`recipient disclosures: unhandled data path kind ${String(unhandled)}`);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const purposeRefs = [...new Set([...(inputs.providerComplianceChoices?.[member.ref]?.purposeRefs ?? []), ...flowPurposeRefs])].sort();
|
|
155
|
+
const categories = order.filter((category) => found.has(category));
|
|
156
|
+
return {
|
|
157
|
+
ref: member.ref,
|
|
158
|
+
kind: member.kind,
|
|
159
|
+
populationClass: member.populationClass,
|
|
160
|
+
categories,
|
|
161
|
+
categoriesNotDerivable: [...notDerivable].sort(),
|
|
162
|
+
categoriesAreAFloor: categories.includes(PersonalDataCategory.USER_CONTENT),
|
|
163
|
+
derivedFrom: [...new Set(derivedFrom)].sort(),
|
|
164
|
+
purposes: purposeRefs.flatMap((purposeRef) => {
|
|
165
|
+
const basis = basesByRef.get(purposeRef);
|
|
166
|
+
return basis === undefined ? [] : [{ purposeRef, purpose: basis.purpose, basis: basis.basis }];
|
|
167
|
+
}),
|
|
168
|
+
purposeRefsNamingNoPurpose: purposeRefs.filter((purposeRef) => !basesByRef.has(purposeRef)),
|
|
169
|
+
};
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=recipient-disclosures.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipient-disclosures.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/recipient-disclosures.schemas.ts"],"names":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QAAQ,CAAC,oBAAoB,CAAC,YAAY,CAAC;YAC3E,WAAW,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE;YAC7C,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;gBAC3C,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;gBACzC,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;YACjG,CAAC,CAAC;YACF,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;SAC5F,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { ExternalDataMappingEntryKind } from \"@wildo-ai/saas-models/external-data\";\nimport {\n personalDataDisclosedThroughCapabilities,\n PersonalDataCategory,\n RecipientCategoriesNotDerivableReason,\n RECIPIENT_CAPABILITY_FLOW_TOKEN_KIND,\n resolveResourcePersonalDataCategories,\n sortPersonalDataCategories,\n type ApplicationProviderComplianceChoices,\n type LawfulBasis,\n type OperatorLawfulBasis,\n} from \"@wildo-ai/saas-models\";\n\nimport {\n RecipientDataPathKind,\n RecipientPopulationClass,\n RecipientPopulationMemberKind,\n type RecipientPopulation,\n} from \"./recipient-population.schemas\";\n\n/**\n * **What each recipient RECEIVES, and for which purpose** — derived from the flows the application declares (#1709).\n *\n * A record of processing states the categories of personal data and the categories of recipients (GDPR Art.\n * 30(1)(c) and (d)), and a notice names the recipients (Art. 13(1)(e)). The law asks for the two lists, not for a\n * cross-reference between them; saying which categories reach which recipient is the practice that keeps the two\n * lists consistent, and it is what an operator needs to answer a data subject's \"who has my data\". Until this\n * existed, it rested on free text an operator typed.\n * spec-cite: GDPR Art. 30, https://gdpr-info.eu/art-30-gdpr/ — \"(c) a description of the categories of data subjects\n * and of the categories of personal data; (d) the categories of recipients to whom the personal data have been or\n * will be disclosed\".\n *\n * ## Derived from DECLARED FLOWS only, and a flow nobody declared is a marked gap\n *\n * Three kinds of flow say which data reaches a vendor, and each is read where it is declared:\n *\n * - an ENGINE CAPABILITY (or a capability ROLE the engine wires): the engine composes the call, so the categories are\n * the engine's own statement, `PROVIDER_CAPABILITY_DISCLOSURES` in `@wildo-ai/saas-models`;\n * - a SYSTEM OF RECORD: every resource bound to the instance (a read-through binding) or piped from it, with the\n * `.dataCategories()` of the fields that flow — {@link SystemOfRecordDataFlow}, read off the materialized resources;\n * - anything else — a generated typed client, a browser operation, code the scan could not read — carries no static\n * field-to-input map, so its categories are NOT DERIVABLE. That is reported per recipient, never as an empty answer\n * and never as a guess.\n *\n * ## A pipeline is a SOURCE today, and it is counted as what the instance holds\n *\n * `ExternalDataPipelineDirection` has one member, INBOUND: a pipeline copies rows FROM the system of record. Its\n * mapped categories are therefore data the instance HOLDS and the application receives from it, not data disclosed to\n * it. They are counted on the instance anyway, because the instance is the application's processor for those rows\n * (it holds them on the operator's account) and a processor's record must name them. When an OUTBOUND direction\n * exists, this is where source and recipient part ways.\n *\n * ## Purposes are LINKED, never inferred\n *\n * A recipient serves the purposes its compliance choice names (`providerComplianceChoices.<ref>.purposeRefs`), each a\n * `purposeRef` of `operatorComplianceIdentity.lawfulBases`. A system of record ALSO serves the purposes its bindings\n * and pipelines link (`binding.purposeRefs`, #1745): the flow is where the purpose of a copy is declared, per resource.\n * A recipient that names none is reported as such; a ref naming no declared purpose is reported as a broken link.\n * Nothing here decides a purpose on the operator's behalf.\n *\n * Report-only, like the population it reads: it never refuses (`application-creation-directive.md`).\n */\n\n/** @wildo_source:part:start saas.specifications.recipient-disclosures facet:layer:shared facet:audience:app-developer */\n\n/** How a resource exchanges data with a system-of-record instance. */\nexport enum SystemOfRecordDataFlowKind {\n /** A read-through binding: the resource's rows live in the system of record, every field maps by name or by map. */\n READ_THROUGH_BINDING = \"read-through-binding\",\n /** A pipeline copies the mapped fields between the system of record and a local resource. */\n PIPELINE = \"pipeline\",\n}\n\n/** One resource's declared exchange with a system-of-record instance, with the categories of the fields that flow. */\nexport interface SystemOfRecordDataFlow {\n /** The `systemsOfRecord.<name>` instance. */\n readonly system: string;\n readonly resourceType: string;\n readonly kind: SystemOfRecordDataFlowKind;\n /** The `.dataCategories()` of the fields that flow, in enum order. Empty when none of them declares one. */\n readonly categories: readonly PersonalDataCategory[];\n /**\n * Flowing fields the application already declares personal (a scrub treatment, a provenance) with NO category: they\n * reach the instance and name no category, so the instance's categories are incomplete. Empty when there are none.\n */\n readonly uncategorizedPersonalFields: readonly string[];\n /**\n * The processing purposes the binding links this flow to (`binding.purposeRefs`, #1745), sorted and deduplicated.\n * Empty when it links none — which is reported where the purposes are read, never filled in.\n */\n readonly purposeRefs: readonly string[];\n}\n\n/*\n * Why a recipient's categories are not all derivable: `RecipientCategoriesNotDerivableReason`, in `@wildo-ai/saas-models`\n * since #1710 — the running application states the same reason to a data subject, so the vocabulary lives where both halves\n * can import it.\n */\n\n/** What one recipient receives, and for which purposes. */\nexport interface RecipientDisclosure {\n readonly ref: string;\n readonly kind: RecipientPopulationMemberKind;\n readonly populationClass: RecipientPopulationClass;\n /** The categories the declared flows carry to it, in enum order. */\n readonly categories: readonly PersonalDataCategory[];\n /**\n * Every reason the categories are not all known — some path declares no field map, a flowing field has no category.\n * `categories` is then what the DECLARED paths carry, and a notice must say the rest is not established. Empty when\n * the declared flows account for everything.\n */\n readonly categoriesNotDerivable: readonly RecipientCategoriesNotDerivableReason[];\n /**\n * True when `categories` includes free text a person wrote (`USER_CONTENT`), which can carry any other category — so\n * the list is a FLOOR of what reaches the vendor, and a notice must not conclude nothing else does.\n */\n readonly categoriesAreAFloor: boolean;\n /** The declared flows the categories come from — `capability:EMAIL_TRANSACTIONAL`, `pipeline:contacts`, … */\n readonly derivedFrom: readonly string[];\n /** The purposes the recipient's compliance choice links to, resolved against the declared lawful bases. */\n readonly purposes: readonly { readonly purposeRef: string; readonly purpose: string; readonly basis: LawfulBasis }[];\n /** `purposeRefs` the choice names that no lawful basis carries — a broken link, reported. */\n readonly purposeRefsNamingNoPurpose: readonly string[];\n}\n\n/** @wildo_source:part:end saas.specifications.recipient-disclosures */\n\n/**\n * The system-of-record flows one resource declares, read off its materialized configuration — the one function the\n * companion's facts and the evidence collector both call, so they cannot disagree about what flows.\n *\n * - A read-through binding (`httpApiBinding`) keeps the resource's rows IN the system of record: every field maps to\n * a remote field (by name, or through `fieldMappings`), so the vendor holds every category the resource declares.\n * - A pipeline (`externalDataPipeline`) moves only its MAPPED fields: the categories of the local fields its remote\n * field, remote reference and declared-expression entries (#1685) write. A constant entry carries no remote data and\n * does not count.\n *\n * Structural input, so a configuration of any generic instantiation passes without this module taking a view on it.\n */\nexport function systemOfRecordFlowsOfResource(\n resourceType: string,\n configuration: {\n readonly mainSchema?: unknown;\n readonly httpApiBinding?: { readonly system: string; readonly purposeRefs?: readonly string[] };\n readonly externalDataPipeline?: {\n readonly binding: { readonly system: string; readonly purposeRefs?: readonly string[] };\n readonly mapping: readonly { readonly kind: string; readonly localField: string }[];\n };\n },\n): readonly SystemOfRecordDataFlow[] {\n const flows: SystemOfRecordDataFlow[] = [];\n if (configuration.httpApiBinding === undefined && configuration.externalDataPipeline === undefined) return flows;\n const profile = resolveResourcePersonalDataCategories(configuration.mainSchema);\n if (configuration.httpApiBinding !== undefined) {\n flows.push({\n system: configuration.httpApiBinding.system,\n resourceType,\n kind: SystemOfRecordDataFlowKind.READ_THROUGH_BINDING,\n categories: [...profile.categories],\n uncategorizedPersonalFields: profile.uncategorizedPersonalFields.map((field) => field.fieldName).sort(),\n purposeRefs: [...new Set(configuration.httpApiBinding.purposeRefs ?? [])].sort(),\n });\n }\n const pipeline = configuration.externalDataPipeline;\n if (pipeline !== undefined) {\n // Every local field whose value comes FROM the system of record: a copied field, a reference, and each declared\n // expression (#1685), whose output is derived from remote values. Only a CONSTANT reads nothing and so discloses\n // nothing — which is why this excludes the one kind rather than listing the others, so a kind added later counts.\n const mapped = new Set(pipeline.mapping\n .filter((entry) => entry.kind !== ExternalDataMappingEntryKind.CONSTANT)\n .map((entry) => entry.localField));\n const categories = profile.declaredFields.filter((field) => mapped.has(field.fieldName)).flatMap((field) => field.categories);\n flows.push({\n system: pipeline.binding.system,\n resourceType,\n kind: SystemOfRecordDataFlowKind.PIPELINE,\n categories: sortPersonalDataCategories(categories),\n uncategorizedPersonalFields: profile.uncategorizedPersonalFields.filter((field) => mapped.has(field.fieldName)).map((field) => field.fieldName).sort(),\n purposeRefs: [...new Set(pipeline.binding.purposeRefs ?? [])].sort(),\n });\n }\n return flows;\n}\n\n/** Every recipient's disclosure — operator sub-processors and tenant recipients — sorted by ref. */\nexport function deriveRecipientDisclosures(inputs: {\n readonly population: RecipientPopulation;\n /** `undefined` when the resource configurations could not be read, which every system-of-record member reports. */\n readonly systemOfRecordFlows: readonly SystemOfRecordDataFlow[] | undefined;\n readonly providerComplianceChoices: ApplicationProviderComplianceChoices | undefined;\n readonly lawfulBases: readonly OperatorLawfulBasis[] | undefined;\n}): readonly RecipientDisclosure[] {\n const recipients = inputs.population.members.filter((member) =>\n member.populationClass === RecipientPopulationClass.OPERATOR_SUB_PROCESSOR || member.populationClass === RecipientPopulationClass.TENANT_RECIPIENT);\n const order = Object.values(PersonalDataCategory);\n const basesByRef = new Map((inputs.lawfulBases ?? []).flatMap((entry) => (entry.purposeRef === undefined ? [] : [[entry.purposeRef, entry] as const])));\n\n return recipients.map((member) => {\n const found = new Set<PersonalDataCategory>();\n /** The purposes the member's flows link (#1745) — only a system of record's flows carry any. */\n const flowPurposeRefs: string[] = [];\n const derivedFrom: string[] = [];\n const notDerivable = new Set<RecipientCategoriesNotDerivableReason>();\n for (const path of member.dataPaths) {\n switch (path.kind) {\n case RecipientDataPathKind.ENGINE_CAPABILITY:\n case RecipientDataPathKind.PROVIDER_CAPABILITY: {\n const disclosed = personalDataDisclosedThroughCapabilities(path.detail);\n disclosed.categories.forEach((category) => found.add(category));\n derivedFrom.push(...path.detail.filter((token) => !disclosed.undeclared.includes(token)).map((token) => `${RECIPIENT_CAPABILITY_FLOW_TOKEN_KIND}:${token}`));\n if (disclosed.undeclared.length > 0) notDerivable.add(RecipientCategoriesNotDerivableReason.FLOW_UNDECLARED);\n break;\n }\n case RecipientDataPathKind.SYSTEM_OF_RECORD_INSTANCE: {\n if (inputs.systemOfRecordFlows === undefined) {\n notDerivable.add(RecipientCategoriesNotDerivableReason.FLOWS_NOT_READ);\n break;\n }\n const flows = inputs.systemOfRecordFlows.filter((flow) => flow.system === member.ref);\n if (flows.length === 0) notDerivable.add(RecipientCategoriesNotDerivableReason.NO_RESOURCE_FLOW);\n for (const flow of flows) {\n flow.categories.forEach((category) => found.add(category));\n derivedFrom.push(`${flow.kind}:${flow.resourceType}`);\n if (flow.uncategorizedPersonalFields.length > 0) notDerivable.add(RecipientCategoriesNotDerivableReason.UNCATEGORIZED_PERSONAL_FIELDS);\n flowPurposeRefs.push(...flow.purposeRefs);\n }\n break;\n }\n case RecipientDataPathKind.BROWSER_OPERATION:\n case RecipientDataPathKind.TYPED_CLIENT:\n case RecipientDataPathKind.UNSCANNED_CODE:\n notDerivable.add(RecipientCategoriesNotDerivableReason.FLOW_UNDECLARED);\n break;\n default: {\n // A new path kind is a compile error here until someone says whether it declares its fields.\n const unhandled: never = path.kind;\n throw new Error(`recipient disclosures: unhandled data path kind ${String(unhandled)}`);\n }\n }\n }\n const purposeRefs = [...new Set([...(inputs.providerComplianceChoices?.[member.ref]?.purposeRefs ?? []), ...flowPurposeRefs])].sort();\n const categories = order.filter((category) => found.has(category));\n return {\n ref: member.ref,\n kind: member.kind,\n populationClass: member.populationClass,\n categories,\n categoriesNotDerivable: [...notDerivable].sort(),\n categoriesAreAFloor: categories.includes(PersonalDataCategory.USER_CONTENT),\n derivedFrom: [...new Set(derivedFrom)].sort(),\n purposes: purposeRefs.flatMap((purposeRef) => {\n const basis = basesByRef.get(purposeRef);\n return basis === undefined ? [] : [{ purposeRef, purpose: basis.purpose, basis: basis.basis }];\n }),\n purposeRefsNamingNoPurpose: purposeRefs.filter((purposeRef) => !basesByRef.has(purposeRef)),\n };\n });\n}\n"]}
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { ExternalProvider_Connection_OwnerScope } from "@wildo-ai/external-connectors-models";
|
|
2
|
+
import { ProviderDeploymentModel, SystemOfRecordPersonalDataOrigin, type ApplicationProviderComplianceChoices, type ProviderComplianceChoiceAssessment, type ProviderComplianceChoiceAssessmentEntry, type ProviderComplianceProfile } from "@wildo-ai/saas-models";
|
|
3
|
+
import { type ApplicationProcessorRegister } from "./processor-register.schemas";
|
|
4
|
+
/**
|
|
5
|
+
* **Who, of everything an application declares, actually RECEIVES personal data — and on whose account.**
|
|
6
|
+
*
|
|
7
|
+
* One population function, read by every surface that states or checks the application's recipients: the
|
|
8
|
+
* evidence collector (`scripts/assurance/collect-declared-evidence.mjs`), the computed
|
|
9
|
+
* `recipients-and-processors` / `international-transfers` document facts, and the companion's drafting brief.
|
|
10
|
+
* Before it existed (#1707) the three answered with different populations and none of them was right:
|
|
11
|
+
*
|
|
12
|
+
* - the collector counted only providers carrying an `engineCapabilities` entry, so Wonder CRM's twenty
|
|
13
|
+
* catalogue vendors were invisible and its register read complete;
|
|
14
|
+
* - the brief and the computed facts counted every provider under a runtime scope's TOP level, so a provider
|
|
15
|
+
* under `frontendServices.<service>`, `minions.<minion>` or `workers.<worker>` was invisible there instead;
|
|
16
|
+
* - neither saw a `systemsOfRecord` instance at all, because an instance is not a provider.
|
|
17
|
+
*
|
|
18
|
+
* ## Two axes, because a flat list states something false either way
|
|
19
|
+
*
|
|
20
|
+
* **Whether any data path reaches the member.** A declared provider that nothing calls receives nothing.
|
|
21
|
+
* Publishing it as a recipient is the stale-recipient error `processorRefsNotConfigured` exists to catch, so a
|
|
22
|
+
* member with no path is its own class, reported as a finding and never a recipient. The paths are the ones
|
|
23
|
+
* the product can actually take: an engine capability it serves, a provider capability role the engine wires
|
|
24
|
+
* (single sign-on, a captcha, a file picker), a browser operation `providers.browserOperations` opens, a
|
|
25
|
+
* typed client application code imports, and a system-of-record instance.
|
|
26
|
+
*
|
|
27
|
+
* **Whose account the vendor is reached with.** A vendor reached with an APPLICATION-owned credential is
|
|
28
|
+
* engaged by the operator, so it is the operator's sub-processor and belongs in the operator's register. A
|
|
29
|
+
* vendor reachable only through a tenant's or a person's connected account is the tenant's own vendor, reached
|
|
30
|
+
* at the tenant's instruction. For an operator that is a PROCESSOR for that data, listing it as its own
|
|
31
|
+
* sub-processor would be a false statement.
|
|
32
|
+
* spec-cite: GDPR Art. 28(2), https://gdpr-info.eu/art-28-gdpr/ — "The processor shall not engage another
|
|
33
|
+
* processor without prior specific or general written authorisation of the controller."
|
|
34
|
+
*
|
|
35
|
+
* ## What is DERIVED rather than asked
|
|
36
|
+
*
|
|
37
|
+
* Everything here is read from the committed configuration plus one scan of the application's own source for
|
|
38
|
+
* typed-client imports. Nothing asks a person (`.claude/rules/derive-before-you-ask.md`), and nothing refuses:
|
|
39
|
+
* every class is a report, never a gate (`application-creation-directive.md`, compliance marks and never blocks).
|
|
40
|
+
*
|
|
41
|
+
* ## Limits, stated where the answer is computed
|
|
42
|
+
*
|
|
43
|
+
* - An application calling the executor with a provider ref as a string (`execute('slack', …)`) rather than
|
|
44
|
+
* through the generated client is not seen by the scan.
|
|
45
|
+
* - A typed-client call names its connection at RUNTIME, so its owner scope is not statically known; it is taken
|
|
46
|
+
* as every owner scope the application admits for that provider (`providers.connections`). Every catalogue
|
|
47
|
+
* decision measured on 2026-09-26 (98 of 98) and the unjudged floor admit an APPLICATION-owned connection, so
|
|
48
|
+
* the vendor-side admission is not read here.
|
|
49
|
+
* - A system-of-record instance is taken as reached by its declaration: declaring the block is what ENABLES the
|
|
50
|
+
* external-data lane, and every instance is read with the application's own service identity. An instance no
|
|
51
|
+
* resource binds is not distinguished.
|
|
52
|
+
* - **A provider's compliance PROFILE is an input, and it never changes a member's class (#1708).** Discovery
|
|
53
|
+
* carries every declared provider's profile — a backend module's, and a frontend facet's (#1743) — and
|
|
54
|
+
* {@link RecipientPopulationInputs.providerComplianceProfiles} hands them in. Each member then carries its
|
|
55
|
+
* profile and the operator's choice assessed against it. The CLASS stays the operator's answer: a profile states
|
|
56
|
+
* POSSIBILITIES, and a provider offering both deployment models is not established as either until the operator
|
|
57
|
+
* chooses. So a browser-only provider that runs nothing of a vendor's still reads as an operator sub-processor
|
|
58
|
+
* with no choice until the operator answers — the choice schema's rule that the answer is required even when the
|
|
59
|
+
* provider offers one model.
|
|
60
|
+
*/
|
|
61
|
+
/** @wildo_source:part:start saas.specifications.recipient-population facet:layer:shared facet:audience:app-developer */
|
|
62
|
+
/**
|
|
63
|
+
* The KEYS of `providers.scopes` in the SaaS config.
|
|
64
|
+
*
|
|
65
|
+
* Named because one of them decides whether a provider can be a recipient at all: `COMPANION` is the scope of
|
|
66
|
+
* the tool that BUILDS the application, which reaches its source and specifications and never a user's data.
|
|
67
|
+
* The other four are runtimes. Three of them group several runtimes (`frontendServices.<service>`,
|
|
68
|
+
* `minions.<minion>`, `workers.<worker>`), which is why a walk that read only `scopes.<key>.providers` missed
|
|
69
|
+
* every provider under them.
|
|
70
|
+
*/
|
|
71
|
+
export declare enum ProviderScopeKey {
|
|
72
|
+
BACKEND = "backend",
|
|
73
|
+
COMPANION = "companion",
|
|
74
|
+
FRONTEND_SERVICES = "frontendServices",
|
|
75
|
+
MINIONS = "minions",
|
|
76
|
+
WORKERS = "workers"
|
|
77
|
+
}
|
|
78
|
+
/** What a population member is: a configured provider, or a declared system-of-record instance. */
|
|
79
|
+
export declare enum RecipientPopulationMemberKind {
|
|
80
|
+
CONFIGURED_PROVIDER = "configured-provider",
|
|
81
|
+
SYSTEM_OF_RECORD = "system-of-record"
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The four answers the population gives about a member.
|
|
85
|
+
*
|
|
86
|
+
* Mutually exclusive and total: every runtime member lands in exactly one, decided in this order.
|
|
87
|
+
*/
|
|
88
|
+
export declare enum RecipientPopulationClass {
|
|
89
|
+
/** An explicit `SELF_HOSTED` compliance choice. The operator runs it; no third party receives anything. */
|
|
90
|
+
OPERATOR_RUN = "operator-run",
|
|
91
|
+
/**
|
|
92
|
+
* Reached with an APPLICATION-owned credential through at least one data path. The operator engaged this
|
|
93
|
+
* vendor, so it belongs in the operator's processor register.
|
|
94
|
+
*/
|
|
95
|
+
OPERATOR_SUB_PROCESSOR = "operator-sub-processor",
|
|
96
|
+
/**
|
|
97
|
+
* Reached ONLY through a tenant's or a person's connected account. The tenant's own vendor, reached at the
|
|
98
|
+
* tenant's instruction: reported separately, and never required in — nor admissible to — the operator's
|
|
99
|
+
* register.
|
|
100
|
+
*/
|
|
101
|
+
TENANT_RECIPIENT = "tenant-recipient",
|
|
102
|
+
/**
|
|
103
|
+
* Declared and loaded, with no data path that reaches it. It receives nothing, so it is a finding to resolve
|
|
104
|
+
* (remove the declaration, or build the path it was declared for) and is never published as a recipient.
|
|
105
|
+
*/
|
|
106
|
+
DECLARED_WITHOUT_DATA_PATH = "declared-without-data-path"
|
|
107
|
+
}
|
|
108
|
+
/** HOW data can reach a member. Each kind names the mechanism, so a reader can check the claim at its site. */
|
|
109
|
+
export declare enum RecipientDataPathKind {
|
|
110
|
+
/** The provider serves an engine capability this application may resolve (email, billing, an LLM, …). */
|
|
111
|
+
ENGINE_CAPABILITY = "engine-capability",
|
|
112
|
+
/** The provider declares a capability ROLE the engine wires without an engine capability (SSO, captcha, a file picker). */
|
|
113
|
+
PROVIDER_CAPABILITY = "provider-capability",
|
|
114
|
+
/** `providers.browserOperations` opens an operation to a signed-in browser. */
|
|
115
|
+
BROWSER_OPERATION = "browser-operation",
|
|
116
|
+
/**
|
|
117
|
+
* Application source imports the provider's typed client from a provider package the application owns
|
|
118
|
+
* (`<scope>/provider-<ref>`, installed from the module registry; #2018). Until #2019 it was also a subpath of the
|
|
119
|
+
* generated catalogue package, which is archived.
|
|
120
|
+
*/
|
|
121
|
+
TYPED_CLIENT = "typed-client",
|
|
122
|
+
/**
|
|
123
|
+
* The application's source was NOT scanned for typed clients, so a code path cannot be ruled out. Carried as
|
|
124
|
+
* a path rather than assumed absent: calling a vendor "reached by nothing" because nobody looked would hide a
|
|
125
|
+
* recipient, which is the direction a notice must never err in.
|
|
126
|
+
*/
|
|
127
|
+
UNSCANNED_CODE = "unscanned-code",
|
|
128
|
+
/** A declared `systemsOfRecord` instance, read with the application's own service identity. */
|
|
129
|
+
SYSTEM_OF_RECORD_INSTANCE = "system-of-record-instance"
|
|
130
|
+
}
|
|
131
|
+
/** One place application source imports a provider's typed client. */
|
|
132
|
+
export interface ProviderTypedClientSite {
|
|
133
|
+
readonly providerRef: string;
|
|
134
|
+
/** `path:line`, relative to the application root. */
|
|
135
|
+
readonly site: string;
|
|
136
|
+
}
|
|
137
|
+
/** One way data can reach a member, and whose accounts that way can spend. */
|
|
138
|
+
export interface RecipientDataPath {
|
|
139
|
+
readonly kind: RecipientDataPathKind;
|
|
140
|
+
readonly ownerScopes: readonly ExternalProvider_Connection_OwnerScope[];
|
|
141
|
+
/** The capabilities, operation ids or source sites behind the path, so the claim can be checked. */
|
|
142
|
+
readonly detail: readonly string[];
|
|
143
|
+
}
|
|
144
|
+
/** One member of the recipient population. */
|
|
145
|
+
export interface RecipientPopulationMember {
|
|
146
|
+
readonly kind: RecipientPopulationMemberKind;
|
|
147
|
+
/** The provider ref, or the system-of-record instance name. The register joins on it. */
|
|
148
|
+
readonly ref: string;
|
|
149
|
+
/** Where it is declared: `backend`, `frontendServices.app`, `systemsOfRecord`, … */
|
|
150
|
+
readonly declaredIn: readonly string[];
|
|
151
|
+
readonly populationClass: RecipientPopulationClass;
|
|
152
|
+
readonly dataPaths: readonly RecipientDataPath[];
|
|
153
|
+
/** The owner scopes some data path can spend, after the application's `providers.connections` narrowing. */
|
|
154
|
+
readonly reachableOwnerScopes: readonly ExternalProvider_Connection_OwnerScope[];
|
|
155
|
+
/** The operator's `providerComplianceChoices` entry for it, or `null` when nobody has answered. */
|
|
156
|
+
readonly deploymentModel: ProviderDeploymentModel | null;
|
|
157
|
+
/**
|
|
158
|
+
* What the provider's package declares about who runs it and where (#1708) — ESTABLISHED or UNDETERMINED — or
|
|
159
|
+
* `null` when it declares none, when the profiles were not read, or for a system-of-record instance (whose
|
|
160
|
+
* vendor is not a provider ref).
|
|
161
|
+
*/
|
|
162
|
+
readonly complianceProfile: ProviderComplianceProfile | null;
|
|
163
|
+
/** The operator's choice assessed against that profile, or `null` when there is no choice or no profiles were read. */
|
|
164
|
+
readonly complianceChoiceAssessment: ProviderComplianceChoiceAssessment | null;
|
|
165
|
+
}
|
|
166
|
+
/** The whole population, and the lists every reader needs from it. Every list is sorted. */
|
|
167
|
+
export interface RecipientPopulation {
|
|
168
|
+
readonly members: readonly RecipientPopulationMember[];
|
|
169
|
+
readonly operatorRunRefs: readonly string[];
|
|
170
|
+
readonly operatorSubProcessorRefs: readonly string[];
|
|
171
|
+
readonly tenantRecipientRefs: readonly string[];
|
|
172
|
+
readonly declaredWithoutDataPathRefs: readonly string[];
|
|
173
|
+
/**
|
|
174
|
+
* Operator sub-processors with NO compliance choice: in use, reached with the operator's own account, and
|
|
175
|
+
* nobody has said who runs them or where. A tenant recipient is not listed, because who runs the tenant's own
|
|
176
|
+
* vendor is the tenant's answer, not the operator's.
|
|
177
|
+
*/
|
|
178
|
+
readonly operatorSubProcessorsWithoutComplianceChoice: readonly string[];
|
|
179
|
+
/** Providers declared ONLY under the build-time companion scope. Outside the population, named so they are never lost. */
|
|
180
|
+
readonly authoringScopeProviderRefs: readonly string[];
|
|
181
|
+
/** Compliance choices keyed by a ref no runtime member or authoring provider carries: stale answers. */
|
|
182
|
+
readonly complianceChoicesNamingNoMember: readonly string[];
|
|
183
|
+
/**
|
|
184
|
+
* Whether the providers' compliance profiles were supplied (#1708). `false` means the three lists below say
|
|
185
|
+
* nothing — the profiles were not read — which a reader must report as NOT RUN, never as "no gap".
|
|
186
|
+
*/
|
|
187
|
+
readonly complianceProfilesRead: boolean;
|
|
188
|
+
/** Every choice naming a provider member, assessed against what that provider declares possible. Empty when profiles were not read. */
|
|
189
|
+
readonly complianceChoiceAssessments: readonly ProviderComplianceChoiceAssessmentEntry[];
|
|
190
|
+
/** Operator sub-processors whose profile is UNDETERMINED: in use, and nobody has researched who runs them or where. */
|
|
191
|
+
readonly operatorSubProcessorsWithUndeterminedProfile: readonly string[];
|
|
192
|
+
/** Operator sub-processors whose provider declares no profile at all: a module that states nothing. */
|
|
193
|
+
readonly operatorSubProcessorsWithoutProfile: readonly string[];
|
|
194
|
+
}
|
|
195
|
+
/** The inputs, read from the SaaS config and one source scan. Structural on purpose: every reader holds the raw config. */
|
|
196
|
+
export interface RecipientPopulationInputs {
|
|
197
|
+
/** The SaaS config's `providers` block (`scopes`, `connections`, `browserOperations`). */
|
|
198
|
+
readonly providers: unknown;
|
|
199
|
+
/** The SaaS config's `systemsOfRecord` block. */
|
|
200
|
+
readonly systemsOfRecord: unknown;
|
|
201
|
+
readonly providerComplianceChoices: ApplicationProviderComplianceChoices | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* Where application source imports a typed client. `undefined` means the source was NOT scanned,
|
|
204
|
+
* which is carried as {@link RecipientDataPathKind.UNSCANNED_CODE}; an empty list means it was, and found none.
|
|
205
|
+
*/
|
|
206
|
+
readonly typedClientSites: readonly ProviderTypedClientSite[] | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* What each provider's package declares about who runs it and where it processes, keyed by provider ref (#1708),
|
|
209
|
+
* read from discovery (`resolveProviderComplianceProfiles` in `@wildo-ai/platform-config-lib`). A ref absent from
|
|
210
|
+
* the map declares none. `undefined` means the profiles were NOT read, which the population carries as
|
|
211
|
+
* `complianceProfilesRead: false` rather than as "no provider declares one".
|
|
212
|
+
*/
|
|
213
|
+
readonly providerComplianceProfiles?: Readonly<Record<string, ProviderComplianceProfile>>;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Whether a file (path relative to the application root) is RUNTIME source a typed-client import could run
|
|
217
|
+
* from. Tests, the companion tree, specifications and build output are not.
|
|
218
|
+
*/
|
|
219
|
+
export declare function isRecipientRuntimeSourcePath(path: string): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Where an application's OWN provider packages live (#2018, epic #2012): one workspace package per facet at
|
|
222
|
+
* `providers/<ref>/<facet>/`, installed from the module registry and owned by the application. A pathspec, for
|
|
223
|
+
* the readers' `git ls-files`.
|
|
224
|
+
*/
|
|
225
|
+
export declare const APPLICATION_PROVIDER_PACKAGE_MANIFEST_PATHSPEC = "providers/*/*/package.json";
|
|
226
|
+
/**
|
|
227
|
+
* Package name → provider ref, for every provider package the application owns, from its manifests.
|
|
228
|
+
*
|
|
229
|
+
* A provider copied into the application (#2012) is imported by ITS package name (`@<app>/provider-<ref>` for
|
|
230
|
+
* the backend facet, `@<app>/provider-<ref>-frontend` for the browser facet). The ref is read from the directory
|
|
231
|
+
* the package lives in, because parsing it out of the name would read `provider-asana-frontend` as a provider called `asana-frontend`. Both facets map to
|
|
232
|
+
* the ref: a browser facet reaches the vendor too.
|
|
233
|
+
*
|
|
234
|
+
* `manifests` are `{ path, content }` with paths relative to the application root; a path outside the layout,
|
|
235
|
+
* or a manifest with no readable `name`, contributes nothing.
|
|
236
|
+
*/
|
|
237
|
+
export declare function applicationProviderPackagesFromManifests(manifests: ReadonlyArray<{
|
|
238
|
+
path: string;
|
|
239
|
+
content: string;
|
|
240
|
+
}>): ReadonlyMap<string, string>;
|
|
241
|
+
/**
|
|
242
|
+
* The fixed strings a reader's `git grep -F` must search for: each provider package the application owns (#2018).
|
|
243
|
+
*
|
|
244
|
+
* EMPTY when the application owns none, and a reader must then record a scan that found nothing rather than run
|
|
245
|
+
* `git grep` with no `-e`: `git grep -n -F -- .` reads the pathspec `.` as the PATTERN and answers every line
|
|
246
|
+
* holding a dot, a whole-tree dump for an application that provably has no typed client to import. Since #2019 archived the
|
|
247
|
+
* generated catalogue, an owned provider package is the only place a typed client comes from.
|
|
248
|
+
*/
|
|
249
|
+
export declare function typedClientSearchNeedles(applicationProviderPackages?: ReadonlyMap<string, string>): readonly string[];
|
|
250
|
+
/**
|
|
251
|
+
* The provider refs an import in one line of source names: any provider package the application owns
|
|
252
|
+
* (`applicationProviderPackages`, name → ref), by its name or a subpath of it.
|
|
253
|
+
*
|
|
254
|
+
* Matches an import SPECIFIER (`from '…'`, `import '…'`, `import('…')`, `require('…')`), never a bare mention,
|
|
255
|
+
* so a comment naming the package is not read as a path.
|
|
256
|
+
*/
|
|
257
|
+
export declare function providerRefsImportedByTypedClient(sourceLine: string, applicationProviderPackages?: ReadonlyMap<string, string>): readonly string[];
|
|
258
|
+
/**
|
|
259
|
+
* Typed-client sites from `git grep -n` output lines (`path:line:content`), paths relative to the application
|
|
260
|
+
* root. Every reader feeds its own grep here so they cannot disagree about what a line means; the collector
|
|
261
|
+
* greps the committed HEAD and the companion and the CLI the working tree, which is the only difference.
|
|
262
|
+
*/
|
|
263
|
+
export declare function typedClientSitesFromGrepLines(lines: readonly string[], applicationProviderPackages?: ReadonlyMap<string, string>): readonly ProviderTypedClientSite[];
|
|
264
|
+
/**
|
|
265
|
+
* Classify every runtime-scoped provider and every system-of-record instance. See the module documentation for
|
|
266
|
+
* the axes and the limits; the class order is: operator-run, then no data path, then operator sub-processor
|
|
267
|
+
* (some path spends an application-owned account), then tenant recipient.
|
|
268
|
+
*/
|
|
269
|
+
export declare function computeRecipientPopulation(inputs: RecipientPopulationInputs): RecipientPopulation;
|
|
270
|
+
/** The population joined to the operator's processor register. Every list is sorted. */
|
|
271
|
+
export interface RecipientRegisterJoin {
|
|
272
|
+
/** Operator sub-processors the register does not establish: in use, identity not established. */
|
|
273
|
+
readonly undeclaredProviderRefs: readonly string[];
|
|
274
|
+
/** Register entries naming a ref that is no operator sub-processor and no tenant recipient: they receive nothing from this operator. */
|
|
275
|
+
readonly staleProviderRefs: readonly string[];
|
|
276
|
+
/**
|
|
277
|
+
* Register entries naming a TENANT recipient. The operator did not engage that vendor, so listing it as the
|
|
278
|
+
* operator's sub-processor is a false statement.
|
|
279
|
+
*/
|
|
280
|
+
readonly registeredTenantRecipientRefs: readonly string[];
|
|
281
|
+
readonly operatorRunProviderRefs: readonly string[];
|
|
282
|
+
readonly tenantRecipientRefs: readonly string[];
|
|
283
|
+
readonly declaredWithoutDataPathRefs: readonly string[];
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Join the population to the register, in both directions.
|
|
287
|
+
*
|
|
288
|
+
* Only the register's CONFIGURED-PROVIDER arm joins: an authored entry (the operator's hosting company) is by
|
|
289
|
+
* construction absent from every configuration, so reading it as stale would drown the real gaps.
|
|
290
|
+
*/
|
|
291
|
+
export declare function joinRecipientPopulationToRegister(population: RecipientPopulation, register: ApplicationProcessorRegister | undefined): RecipientRegisterJoin;
|
|
292
|
+
/** @wildo_source:part:end saas.specifications.recipient-population */
|
|
293
|
+
/**
|
|
294
|
+
* The declared vendor of every system-of-record instance (`systemsOfRecord.<name>.vendor`), keyed by instance name
|
|
295
|
+
* (#1745). Structural, like the population: every reader holds the raw config. An instance with no string vendor is
|
|
296
|
+
* left out, so a reader states it with no vendor rather than a guessed one.
|
|
297
|
+
*/
|
|
298
|
+
export declare function systemOfRecordVendorsOf(systemsOfRecord: unknown): Readonly<Record<string, string>>;
|
|
299
|
+
/**
|
|
300
|
+
* The declared personal-data origin of every system-of-record instance (`systemsOfRecord.<name>.personalDataOrigin`),
|
|
301
|
+
* keyed by instance name (#1745) — the half of GDPR Art. 14(2)(f) only the operator can state. Structural, like
|
|
302
|
+
* {@link systemOfRecordVendorsOf}. An instance declaring none, or a value outside the vocabulary, is left out, so a
|
|
303
|
+
* reader marks the statement owed rather than assuming an answer.
|
|
304
|
+
*/
|
|
305
|
+
export declare function systemOfRecordPersonalDataOriginsOf(systemsOfRecord: unknown): Readonly<Record<string, SystemOfRecordPersonalDataOrigin>>;
|
|
306
|
+
//# sourceMappingURL=recipient-population.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipient-population.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/recipient-population.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,sCAAsC,CAAC;AAC9F,OAAO,EAGL,uBAAuB,EACvB,gCAAgC,EAGhC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,uCAAuC,EAC5C,KAAK,yBAAyB,EAC/B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAEL,KAAK,4BAA4B,EAClC,MAAM,8BAA8B,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAEH,wHAAwH;AAExH;;;;;;;;GAQG;AACH,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,iBAAiB,qBAAqB;IACtC,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,mGAAmG;AACnG,oBAAY,6BAA6B;IACvC,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;CACtC;AAED;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC,2GAA2G;IAC3G,YAAY,iBAAiB;IAC7B;;;OAGG;IACH,sBAAsB,2BAA2B;IACjD;;;;OAIG;IACH,gBAAgB,qBAAqB;IACrC;;;OAGG;IACH,0BAA0B,+BAA+B;CAC1D;AAED,+GAA+G;AAC/G,oBAAY,qBAAqB;IAC/B,yGAAyG;IACzG,iBAAiB,sBAAsB;IACvC,2HAA2H;IAC3H,mBAAmB,wBAAwB;IAC3C,+EAA+E;IAC/E,iBAAiB,sBAAsB;IACvC;;;;OAIG;IACH,YAAY,iBA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