@wildo-ai/saas-specifications 1.1.2 → 1.1.3
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/_core/brand/brand-asset.schemas.d.ts +4 -6
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
- 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 +85 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +10 -0
- 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 +17 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +1 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +1 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -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 +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
- package/dist/esm/_core/provider-specification.schemas.js +144 -0
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
- package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +7 -7
- 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 +6 -7
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +2 -2
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +2 -2
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +8 -23
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +57 -27
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +72 -49
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +161 -60
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +25 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +14 -7
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +24 -7
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +8 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +10 -2
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +447 -11
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +293 -5
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/companion-exports.d.ts +7 -6
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.js +3 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +13 -1
- 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.js +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
- 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 +14 -2
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +9 -9
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +3 -3
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +1 -1
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +13 -1
- 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 +2 -0
- 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 +14 -2
- 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 +32 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +4 -4
- 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.js +2 -2
- 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.js +6 -6
- 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.js +9 -9
- 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.js +2 -2
- 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 +9 -25
- 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 +104 -10
- 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 -6
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -3
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -2
- 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 +3 -3
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +7 -7
- 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 +14 -12
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +6 -3
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +7 -3
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +28 -11
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +8 -8
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +6 -2
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +20 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.js +66 -0
- package/dist/esm/engine/engine-resource-sub-domain.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 +14 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- 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.js +10 -10
- 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.js +11 -11
- 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 +4 -4
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -2
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/index.d.ts +0 -2
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +4 -6
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +12 -12
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +9 -9
- 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 +8 -0
- 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 +6 -6
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +1 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +1 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +17 -17
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +7 -7
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +8 -8
- 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 +7 -2
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +10 -5
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- 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 -15
- 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 +11 -10
- 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.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +29 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +9 -9
- 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 +3 -3
- 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 +4 -4
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.js +30 -0
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +34 -0
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +23 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -0
- package/dist/esm/engine/providers/index.js +37 -0
- package/dist/esm/engine/providers/index.js.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -7
- 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 +9 -9
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +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 +8 -8
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +4 -4
- 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 +2 -2
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
- 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 +13 -11
- 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 +1 -1
- 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.js +8 -8
- 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.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +93 -0
- 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 +95 -45
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +36 -0
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/assurance/external-framework-mapping.json +0 -980
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { applyFamilyRefPrefix, assertDistinctFamilyRefs } from '../utils/family-ref-stamping.js';
|
|
2
3
|
import { FeatureBenefitConfigSchema } from './feature-benefit.schemas.js';
|
|
3
4
|
import { MarketAlternativeConfigSchema } from './market-alternative.schemas.js';
|
|
4
5
|
import { MarketBuyingJourneyConfigSchema } from './market-buying-journey.schemas.js';
|
|
@@ -112,49 +113,13 @@ export function parseMarketSnapshotGeneration(input) {
|
|
|
112
113
|
});
|
|
113
114
|
for (const [family, collection] of Object.entries(snapshot)) {
|
|
114
115
|
if (Array.isArray(collection))
|
|
115
|
-
|
|
116
|
+
assertDistinctFamilyRefs(collection, family);
|
|
116
117
|
}
|
|
117
118
|
return snapshot;
|
|
118
119
|
}
|
|
119
120
|
function stampRef(entry, prefix) {
|
|
120
121
|
const { slug, ...semanticContent } = entry;
|
|
121
|
-
return { ...semanticContent, ref:
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Prefix a slug with its family, ONCE.
|
|
125
|
-
*
|
|
126
|
-
* The contract asks for a bare slug, and the model obliges inconsistently: measured across four live
|
|
127
|
-
* generations, one attempt emitted 42 of 47 slugs already carrying their family prefix and another
|
|
128
|
-
* emitted 0 of 43. Blind concatenation turned the first into `icp-icp-small-remote-product-teams-nam`,
|
|
129
|
-
* which then rides into the accepted artifact and everything generated from it.
|
|
130
|
-
*
|
|
131
|
-
* Idempotence matters for more than tidiness: an entity and the references to it are stamped by separate
|
|
132
|
-
* code paths, so a model that prefixes one and not the other would produce two different strings for the
|
|
133
|
-
* same thing and orphan the edge. Normalising both to the same canonical form removes that whole class.
|
|
134
|
-
*
|
|
135
|
-
* The one hazard it introduces is a collision -- `foo` and `icp-foo` both authored -- which
|
|
136
|
-
* `assertDistinctMarketRefs` catches loudly rather than letting two entities silently share a ref.
|
|
137
|
-
*/
|
|
138
|
-
function applyMarketFamilyPrefix(slug, prefix) {
|
|
139
|
-
return slug.startsWith(prefix) ? slug : `${prefix}${slug}`;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Refuse a snapshot whose entities do not have distinct refs.
|
|
143
|
-
*
|
|
144
|
-
* Slug uniqueness is checked on the authored form; this checks the STAMPED form, which idempotent
|
|
145
|
-
* prefixing makes a genuinely different question: `foo` and `icp-foo` are two distinct slugs that both
|
|
146
|
-
* stamp to `icp-foo`. Two entities sharing a ref would make every reference to it ambiguous, so this
|
|
147
|
-
* fails closed at normalization rather than producing a graph whose edges cannot be resolved.
|
|
148
|
-
*/
|
|
149
|
-
function assertDistinctMarketRefs(collection, family) {
|
|
150
|
-
const seen = new Set();
|
|
151
|
-
for (const entry of collection) {
|
|
152
|
-
if (seen.has(entry.ref)) {
|
|
153
|
-
throw new Error(`Market snapshot ${family} contains two entries that normalize to the same ref "${entry.ref}"; `
|
|
154
|
-
+ 'author slugs that stay distinct once their family prefix is applied.');
|
|
155
|
-
}
|
|
156
|
-
seen.add(entry.ref);
|
|
157
|
-
}
|
|
122
|
+
return { ...semanticContent, ref: applyFamilyRefPrefix(slug, prefix) };
|
|
158
123
|
}
|
|
159
124
|
/**
|
|
160
125
|
* Which entity family each CROSS-REFERENCE field points at.
|
|
@@ -229,11 +194,11 @@ function stampInternalReferences(value) {
|
|
|
229
194
|
for (const [key, entry] of Object.entries(value)) {
|
|
230
195
|
const prefix = MARKET_EXTERNAL_REFERENCE_FIELDS.has(key) ? undefined : MARKET_REFERENCE_TARGET_PREFIX[key];
|
|
231
196
|
if (prefix !== undefined && typeof entry === 'string') {
|
|
232
|
-
stamped[key] =
|
|
197
|
+
stamped[key] = applyFamilyRefPrefix(entry, prefix);
|
|
233
198
|
continue;
|
|
234
199
|
}
|
|
235
200
|
if (prefix !== undefined && Array.isArray(entry) && entry.every((item) => typeof item === 'string')) {
|
|
236
|
-
stamped[key] = entry.map((item) =>
|
|
201
|
+
stamped[key] = entry.map((item) => applyFamilyRefPrefix(item, prefix));
|
|
237
202
|
continue;
|
|
238
203
|
}
|
|
239
204
|
stamped[key] = stampInternalReferences(entry);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-snapshot-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-snapshot-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,C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AAE,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,4BAA4B,KAAK,GAAG,EAAE,CAAC,CAAC;IACnH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { FeatureBenefitConfigSchema } from './feature-benefit.schemas';\nimport { MarketAlternativeConfigSchema } from './market-alternative.schemas';\nimport { MarketBuyingJourneyConfigSchema } from './market-buying-journey.schemas';\nimport { MarketCategoryConfigSchema } from './market-category.schemas';\nimport { MarketChannelConfigSchema } from './market-channel.schemas';\nimport { MarketGainConfigSchema } from './market-gain.schemas';\nimport { MarketICPConfigSchema } from './market-icp.schemas';\nimport { MarketJobConfigSchema } from './market-job.schemas';\nimport { MarketMessageTemplateConfigSchema } from './market-message-template.schemas';\nimport { MarketObjectionConfigSchema } from './market-objection.schemas';\nimport { MarketPainConfigSchema } from './market-pain.schemas';\nimport { MarketPersonaConfigSchema } from './market-persona.schemas';\nimport { MarketPositioningConfigSchema } from './market-positioning.schemas';\nimport { MarketProofConfigSchema } from './market-proof.schemas';\nimport {\n MarketSnapshotSchema,\n MarketSnapshotVersion,\n type MarketSnapshot,\n} from './market-snapshot.schemas';\nimport { ToneOfVoiceConfigSchema } from './market-tone-of-voice.schemas';\nimport { MarketTriggerConfigSchema } from './market-trigger.schemas';\n\nconst SemanticSlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\nconst marketEntityGenerationSchema = <Shape extends z.ZodRawShape>(shape: Shape) => z.strictObject({\n slug: SemanticSlugSchema,\n ...shape,\n});\n\nexport const MarketCategoryGenerationSchema = marketEntityGenerationSchema(\n MarketCategoryConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nconst {\n ref: _persistedIcpRef,\n authored: _persistedIcpAuthored,\n ...MarketICPGenerationShape\n} = MarketICPConfigSchema.shape;\nexport const MarketICPGenerationSchema = marketEntityGenerationSchema(\n MarketICPGenerationShape,\n);\nexport const MarketPersonaGenerationSchema = marketEntityGenerationSchema(\n MarketPersonaConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketJobGenerationSchema = marketEntityGenerationSchema(\n MarketJobConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketPainGenerationSchema = marketEntityGenerationSchema(\n MarketPainConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketGainGenerationSchema = marketEntityGenerationSchema(\n MarketGainConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const ToneOfVoiceGenerationSchema = marketEntityGenerationSchema(\n ToneOfVoiceConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const FeatureBenefitGenerationSchema = marketEntityGenerationSchema(\n FeatureBenefitConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketPositioningGenerationSchema = marketEntityGenerationSchema(\n MarketPositioningConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketChannelGenerationSchema = marketEntityGenerationSchema(\n MarketChannelConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketAlternativeGenerationSchema = marketEntityGenerationSchema(\n MarketAlternativeConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketTriggerGenerationSchema = marketEntityGenerationSchema(\n MarketTriggerConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketBuyingJourneyGenerationSchema = marketEntityGenerationSchema(\n MarketBuyingJourneyConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketProofGenerationSchema = marketEntityGenerationSchema(\n MarketProofConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketObjectionGenerationSchema = marketEntityGenerationSchema(\n MarketObjectionConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketMessageTemplateGenerationSchema = marketEntityGenerationSchema(\n MarketMessageTemplateConfigSchema.omit({ ref: true, authored: true }).shape,\n);\n\n/**\n * Strict provider-facing market aggregate.\n *\n * All collections are explicit, entity objects reject unknown top-level\n * members, and the provider supplies semantic slugs instead of persisted refs.\n * Cross-entity edges remain exact canonical refs so the existing pure market\n * validator can reject dangling or contradictory graph structure after the\n * trusted normalizer stamps entity refs and the current snapshot version.\n */\nexport const MarketSnapshotGenerationSchema = z.strictObject({\n category: MarketCategoryGenerationSchema,\n icps: z.array(MarketICPGenerationSchema).min(1),\n personas: z.array(MarketPersonaGenerationSchema),\n jobs: z.array(MarketJobGenerationSchema),\n pains: z.array(MarketPainGenerationSchema),\n gains: z.array(MarketGainGenerationSchema),\n tonesOfVoice: z.array(ToneOfVoiceGenerationSchema),\n benefits: z.array(FeatureBenefitGenerationSchema),\n positionings: z.array(MarketPositioningGenerationSchema),\n channels: z.array(MarketChannelGenerationSchema),\n alternatives: z.array(MarketAlternativeGenerationSchema),\n triggers: z.array(MarketTriggerGenerationSchema),\n buyingJourneys: z.array(MarketBuyingJourneyGenerationSchema),\n proofs: z.array(MarketProofGenerationSchema),\n objections: z.array(MarketObjectionGenerationSchema),\n messageTemplates: z.array(MarketMessageTemplateGenerationSchema),\n}).superRefine((generated, context) => {\n const collections = [\n ['icps', generated.icps],\n ['personas', generated.personas],\n ['jobs', generated.jobs],\n ['pains', generated.pains],\n ['gains', generated.gains],\n ['tonesOfVoice', generated.tonesOfVoice],\n ['benefits', generated.benefits],\n ['positionings', generated.positionings],\n ['channels', generated.channels],\n ['alternatives', generated.alternatives],\n ['triggers', generated.triggers],\n ['buyingJourneys', generated.buyingJourneys],\n ['proofs', generated.proofs],\n ['objections', generated.objections],\n ['messageTemplates', generated.messageTemplates],\n ] as const;\n for (const [path, entries] of collections) {\n reportDuplicateSlugs(entries.map(entry => entry.slug), path, context);\n }\n});\nexport type MarketSnapshotGeneration = z.infer<typeof MarketSnapshotGenerationSchema>;\n\n/** Normalize strict provider output into canonical persisted application truth. */\nexport function parseMarketSnapshotGeneration(input: unknown): MarketSnapshot {\n const parsed = MarketSnapshotGenerationSchema.parse(input);\n // References first, identities second: both sides of every edge end up carrying the same family prefix.\n const generated = stampInternalReferences(parsed);\n const snapshot = MarketSnapshotSchema.parse({\n version: MarketSnapshotVersion.V2,\n category: stampRef(generated.category, 'category-'),\n icps: generated.icps.map(entry => stampRef(entry, 'icp-')),\n personas: generated.personas.map(entry => stampRef(entry, 'persona-')),\n jobs: generated.jobs.map(entry => stampRef(entry, 'job-')),\n pains: generated.pains.map(entry => stampRef(entry, 'pain-')),\n gains: generated.gains.map(entry => stampRef(entry, 'gain-')),\n tonesOfVoice: generated.tonesOfVoice.map(entry => stampRef(entry, 'voice-')),\n benefits: generated.benefits.map(entry => stampRef(entry, 'benefit-')),\n positionings: generated.positionings.map(entry => stampRef(entry, 'positioning-')),\n channels: generated.channels.map(entry => stampRef(entry, 'channel-')),\n alternatives: generated.alternatives.map(entry => stampRef(entry, 'alternative-')),\n triggers: generated.triggers.map(entry => stampRef(entry, 'trigger-')),\n buyingJourneys: generated.buyingJourneys.map(entry => stampRef(entry, 'journey-')),\n proofs: generated.proofs.map(entry => stampRef(entry, 'proof-')),\n objections: generated.objections.map(entry => stampRef(entry, 'objection-')),\n messageTemplates: generated.messageTemplates.map(entry => stampRef(entry, 'tmpl-')),\n });\n for (const [family, collection] of Object.entries(snapshot)) {\n if (Array.isArray(collection)) assertDistinctMarketRefs(collection as readonly { ref: string }[], family);\n }\n return snapshot;\n}\n\nfunction stampRef<Entry extends { slug: string }>(entry: Entry, prefix: string): Omit<Entry, 'slug'> & { ref: string } {\n const { slug, ...semanticContent } = entry;\n return { ...semanticContent, ref: applyMarketFamilyPrefix(slug, prefix) };\n}\n\n/**\n * Prefix a slug with its family, ONCE.\n *\n * The contract asks for a bare slug, and the model obliges inconsistently: measured across four live\n * generations, one attempt emitted 42 of 47 slugs already carrying their family prefix and another\n * emitted 0 of 43. Blind concatenation turned the first into `icp-icp-small-remote-product-teams-nam`,\n * which then rides into the accepted artifact and everything generated from it.\n *\n * Idempotence matters for more than tidiness: an entity and the references to it are stamped by separate\n * code paths, so a model that prefixes one and not the other would produce two different strings for the\n * same thing and orphan the edge. Normalising both to the same canonical form removes that whole class.\n *\n * The one hazard it introduces is a collision -- `foo` and `icp-foo` both authored -- which\n * `assertDistinctMarketRefs` catches loudly rather than letting two entities silently share a ref.\n */\nfunction applyMarketFamilyPrefix(slug: string, prefix: string): string {\n return slug.startsWith(prefix) ? slug : `${prefix}${slug}`;\n}\n\n/**\n * Refuse a snapshot whose entities do not have distinct refs.\n *\n * Slug uniqueness is checked on the authored form; this checks the STAMPED form, which idempotent\n * prefixing makes a genuinely different question: `foo` and `icp-foo` are two distinct slugs that both\n * stamp to `icp-foo`. Two entities sharing a ref would make every reference to it ambiguous, so this\n * fails closed at normalization rather than producing a graph whose edges cannot be resolved.\n */\nfunction assertDistinctMarketRefs(collection: readonly { ref: string }[], family: string): void {\n const seen = new Set<string>();\n for (const entry of collection) {\n if (seen.has(entry.ref)) {\n throw new Error(\n `Market snapshot ${family} contains two entries that normalize to the same ref \"${entry.ref}\"; `\n + 'author slugs that stay distinct once their family prefix is applied.',\n );\n }\n seen.add(entry.ref);\n }\n}\n\n/**\n * Which entity family each CROSS-REFERENCE field points at.\n *\n * The generation contract asks the model to identify entities by a bare `slug` and to cross-reference\n * them by that same slug. Normalization then stamps each entity's identity with its family prefix\n * (`stampRef`), so a reference left as the raw slug can no longer resolve to anything. That is not a\n * cosmetic mismatch: `validateMarketSnapshot` reported **156 ORPHAN_REF errors** on a complete,\n * well-formed market graph, which made the whole family unacceptable EVERY time the model answered\n * correctly. A reference must therefore be stamped exactly like the identity it names.\n *\n * Keyed by field NAME because the name is the contract here — `jobRef` names a job wherever it appears,\n * at any depth, and there are 37 such fields spread across nested shapes. The exhaustiveness of this\n * table (together with {@link MARKET_EXTERNAL_REFERENCE_FIELDS}) is enforced by a test that walks the\n * generation schema and fails on any `*Ref`/`*Refs` field that is in neither, so a field added later\n * cannot silently go unstamped.\n */\nconst MARKET_REFERENCE_TARGET_PREFIX: Readonly<Record<string, string>> = Object.freeze({\n personaRef: 'persona-',\n raisedByPersonaRefs: 'persona-',\n icpRef: 'icp-',\n belongsToIcpRefs: 'icp-',\n affectedIcpRefs: 'icp-',\n raisedByIcpRefs: 'icp-',\n supportsIcpRefs: 'icp-',\n jobRef: 'job-',\n painRef: 'pain-',\n gainRef: 'gain-',\n preferredVoiceRef: 'voice-',\n channelRefs: 'channel-',\n recommendedChannelRefs: 'channel-',\n triggerRefs: 'trigger-',\n alternativeRef: 'alternative-',\n alternativeRefs: 'alternative-',\n proofRefs: 'proof-',\n objectionRefs: 'objection-',\n addressesObjectionRefs: 'objection-',\n backedByBenefitRefs: 'benefit-',\n relatedBenefitRefs: 'benefit-',\n supportsBenefitRefs: 'benefit-',\n});\n\n/**\n * Cross-family references, which must NOT be stamped.\n *\n * These name identifiers owned by OTHER specification families — application features and products — so\n * a market prefix would corrupt them. `validateMarketSnapshot` treats them the same way: it resolves\n * them only when the caller passes that family's key set, and skips them otherwise.\n */\nconst MARKET_EXTERNAL_REFERENCE_FIELDS: ReadonlySet<string> = new Set([\n 'deliveredByFeatureRefs',\n 'recommendedProductRefs',\n 'upsellPathProductRefs',\n]);\n\n/**\n * Rewrite every internal cross-reference so it names its target's stamped identity.\n *\n * Applied to the generated payload BEFORE entity identities are stamped, and deliberately depth-first\n * over the whole structure: reference fields appear nested inside `buyingGroup[]`, `relieves[]`,\n * `importanceByICP[]` and similar, not only at collection level.\n *\n * Unstamped by design: anything in {@link MARKET_EXTERNAL_REFERENCE_FIELDS}, and any field this table\n * does not classify — a silent guess about which family a reference points at would be worse than the\n * orphan it replaces, and the schema-walking test makes the omission loud instead.\n */\nfunction stampInternalReferences<Value>(value: Value): Value {\n if (Array.isArray(value)) {\n return value.map((entry) => stampInternalReferences(entry)) as unknown as Value;\n }\n if (value === null || typeof value !== 'object') return value;\n const stamped: Record<string, unknown> = {};\n for (const [key, entry] of Object.entries(value as Record<string, unknown>)) {\n const prefix = MARKET_EXTERNAL_REFERENCE_FIELDS.has(key) ? undefined : MARKET_REFERENCE_TARGET_PREFIX[key];\n if (prefix !== undefined && typeof entry === 'string') {\n stamped[key] = applyMarketFamilyPrefix(entry, prefix);\n continue;\n }\n if (prefix !== undefined && Array.isArray(entry) && entry.every((item) => typeof item === 'string')) {\n stamped[key] = entry.map((item) => applyMarketFamilyPrefix(item as string, prefix));\n continue;\n }\n stamped[key] = stampInternalReferences(entry);\n }\n return stamped as unknown as Value;\n}\n\nexport const MARKET_REFERENCE_TARGET_PREFIX_FOR_TESTS: Readonly<Record<string, string>> = MARKET_REFERENCE_TARGET_PREFIX;\nexport const MARKET_EXTERNAL_REFERENCE_FIELDS_FOR_TESTS: ReadonlySet<string> = MARKET_EXTERNAL_REFERENCE_FIELDS;\n\nfunction reportDuplicateSlugs(values: readonly string[], path: string, context: z.RefinementCtx): void {\n const seen = new Set<string>();\n values.forEach((value, index) => {\n if (!seen.has(value)) {\n seen.add(value);\n return;\n }\n context.addIssue({ code: 'custom', path: [path, index, 'slug'], message: `duplicate semantic slug \"${value}\"` });\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"market-snapshot-generation.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/market/market-snapshot-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D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C,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,EAAE,CAAC;YACpG,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAoB,CAAC,IAAc,EAAE,MAAM,CAAC,CAAC,CAAC;YACjF,SAAS;QACX,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IACD,OAAO,OAA2B,CAAC;AACrC,CAAC;AAED,MAAM,CAAC,MAAM,wCAAwC,GAAqC,8BAA8B,CAAC;AACzH,MAAM,CAAC,MAAM,0CAA0C,GAAwB,gCAAgC,CAAC;AAEhH,SAAS,oBAAoB,CAAC,MAAyB,EAAE,IAAY,EAAE,OAAwB;IAC7F,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAC9B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YACrB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAChB,OAAO;QACT,CAAC;QACD,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,4BAA4B,KAAK,GAAG,EAAE,CAAC,CAAC;IACnH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { applyFamilyRefPrefix, assertDistinctFamilyRefs } from '../utils/family-ref-stamping';\nimport { FeatureBenefitConfigSchema } from './feature-benefit.schemas';\nimport { MarketAlternativeConfigSchema } from './market-alternative.schemas';\nimport { MarketBuyingJourneyConfigSchema } from './market-buying-journey.schemas';\nimport { MarketCategoryConfigSchema } from './market-category.schemas';\nimport { MarketChannelConfigSchema } from './market-channel.schemas';\nimport { MarketGainConfigSchema } from './market-gain.schemas';\nimport { MarketICPConfigSchema } from './market-icp.schemas';\nimport { MarketJobConfigSchema } from './market-job.schemas';\nimport { MarketMessageTemplateConfigSchema } from './market-message-template.schemas';\nimport { MarketObjectionConfigSchema } from './market-objection.schemas';\nimport { MarketPainConfigSchema } from './market-pain.schemas';\nimport { MarketPersonaConfigSchema } from './market-persona.schemas';\nimport { MarketPositioningConfigSchema } from './market-positioning.schemas';\nimport { MarketProofConfigSchema } from './market-proof.schemas';\nimport {\n MarketSnapshotSchema,\n MarketSnapshotVersion,\n type MarketSnapshot,\n} from './market-snapshot.schemas';\nimport { ToneOfVoiceConfigSchema } from './market-tone-of-voice.schemas';\nimport { MarketTriggerConfigSchema } from './market-trigger.schemas';\n\nconst SemanticSlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\nconst marketEntityGenerationSchema = <Shape extends z.ZodRawShape>(shape: Shape) => z.strictObject({\n slug: SemanticSlugSchema,\n ...shape,\n});\n\nexport const MarketCategoryGenerationSchema = marketEntityGenerationSchema(\n MarketCategoryConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nconst {\n ref: _persistedIcpRef,\n authored: _persistedIcpAuthored,\n ...MarketICPGenerationShape\n} = MarketICPConfigSchema.shape;\nexport const MarketICPGenerationSchema = marketEntityGenerationSchema(\n MarketICPGenerationShape,\n);\nexport const MarketPersonaGenerationSchema = marketEntityGenerationSchema(\n MarketPersonaConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketJobGenerationSchema = marketEntityGenerationSchema(\n MarketJobConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketPainGenerationSchema = marketEntityGenerationSchema(\n MarketPainConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketGainGenerationSchema = marketEntityGenerationSchema(\n MarketGainConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const ToneOfVoiceGenerationSchema = marketEntityGenerationSchema(\n ToneOfVoiceConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const FeatureBenefitGenerationSchema = marketEntityGenerationSchema(\n FeatureBenefitConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketPositioningGenerationSchema = marketEntityGenerationSchema(\n MarketPositioningConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketChannelGenerationSchema = marketEntityGenerationSchema(\n MarketChannelConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketAlternativeGenerationSchema = marketEntityGenerationSchema(\n MarketAlternativeConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketTriggerGenerationSchema = marketEntityGenerationSchema(\n MarketTriggerConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketBuyingJourneyGenerationSchema = marketEntityGenerationSchema(\n MarketBuyingJourneyConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketProofGenerationSchema = marketEntityGenerationSchema(\n MarketProofConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketObjectionGenerationSchema = marketEntityGenerationSchema(\n MarketObjectionConfigSchema.omit({ ref: true, authored: true }).shape,\n);\nexport const MarketMessageTemplateGenerationSchema = marketEntityGenerationSchema(\n MarketMessageTemplateConfigSchema.omit({ ref: true, authored: true }).shape,\n);\n\n/**\n * Strict provider-facing market aggregate.\n *\n * All collections are explicit, entity objects reject unknown top-level\n * members, and the provider supplies semantic slugs instead of persisted refs.\n * Cross-entity edges remain exact canonical refs so the existing pure market\n * validator can reject dangling or contradictory graph structure after the\n * trusted normalizer stamps entity refs and the current snapshot version.\n */\nexport const MarketSnapshotGenerationSchema = z.strictObject({\n category: MarketCategoryGenerationSchema,\n icps: z.array(MarketICPGenerationSchema).min(1),\n personas: z.array(MarketPersonaGenerationSchema),\n jobs: z.array(MarketJobGenerationSchema),\n pains: z.array(MarketPainGenerationSchema),\n gains: z.array(MarketGainGenerationSchema),\n tonesOfVoice: z.array(ToneOfVoiceGenerationSchema),\n benefits: z.array(FeatureBenefitGenerationSchema),\n positionings: z.array(MarketPositioningGenerationSchema),\n channels: z.array(MarketChannelGenerationSchema),\n alternatives: z.array(MarketAlternativeGenerationSchema),\n triggers: z.array(MarketTriggerGenerationSchema),\n buyingJourneys: z.array(MarketBuyingJourneyGenerationSchema),\n proofs: z.array(MarketProofGenerationSchema),\n objections: z.array(MarketObjectionGenerationSchema),\n messageTemplates: z.array(MarketMessageTemplateGenerationSchema),\n}).superRefine((generated, context) => {\n const collections = [\n ['icps', generated.icps],\n ['personas', generated.personas],\n ['jobs', generated.jobs],\n ['pains', generated.pains],\n ['gains', generated.gains],\n ['tonesOfVoice', generated.tonesOfVoice],\n ['benefits', generated.benefits],\n ['positionings', generated.positionings],\n ['channels', generated.channels],\n ['alternatives', generated.alternatives],\n ['triggers', generated.triggers],\n ['buyingJourneys', generated.buyingJourneys],\n ['proofs', generated.proofs],\n ['objections', generated.objections],\n ['messageTemplates', generated.messageTemplates],\n ] as const;\n for (const [path, entries] of collections) {\n reportDuplicateSlugs(entries.map(entry => entry.slug), path, context);\n }\n});\nexport type MarketSnapshotGeneration = z.infer<typeof MarketSnapshotGenerationSchema>;\n\n/** Normalize strict provider output into canonical persisted application truth. */\nexport function parseMarketSnapshotGeneration(input: unknown): MarketSnapshot {\n const parsed = MarketSnapshotGenerationSchema.parse(input);\n // References first, identities second: both sides of every edge end up carrying the same family prefix.\n const generated = stampInternalReferences(parsed);\n const snapshot = MarketSnapshotSchema.parse({\n version: MarketSnapshotVersion.V2,\n category: stampRef(generated.category, 'category-'),\n icps: generated.icps.map(entry => stampRef(entry, 'icp-')),\n personas: generated.personas.map(entry => stampRef(entry, 'persona-')),\n jobs: generated.jobs.map(entry => stampRef(entry, 'job-')),\n pains: generated.pains.map(entry => stampRef(entry, 'pain-')),\n gains: generated.gains.map(entry => stampRef(entry, 'gain-')),\n tonesOfVoice: generated.tonesOfVoice.map(entry => stampRef(entry, 'voice-')),\n benefits: generated.benefits.map(entry => stampRef(entry, 'benefit-')),\n positionings: generated.positionings.map(entry => stampRef(entry, 'positioning-')),\n channels: generated.channels.map(entry => stampRef(entry, 'channel-')),\n alternatives: generated.alternatives.map(entry => stampRef(entry, 'alternative-')),\n triggers: generated.triggers.map(entry => stampRef(entry, 'trigger-')),\n buyingJourneys: generated.buyingJourneys.map(entry => stampRef(entry, 'journey-')),\n proofs: generated.proofs.map(entry => stampRef(entry, 'proof-')),\n objections: generated.objections.map(entry => stampRef(entry, 'objection-')),\n messageTemplates: generated.messageTemplates.map(entry => stampRef(entry, 'tmpl-')),\n });\n for (const [family, collection] of Object.entries(snapshot)) {\n if (Array.isArray(collection)) assertDistinctFamilyRefs(collection as readonly { ref: string }[], family);\n }\n return snapshot;\n}\n\nfunction stampRef<Entry extends { slug: string }>(entry: Entry, prefix: string): Omit<Entry, 'slug'> & { ref: string } {\n const { slug, ...semanticContent } = entry;\n return { ...semanticContent, ref: applyFamilyRefPrefix(slug, prefix) };\n}\n\n/**\n * Which entity family each CROSS-REFERENCE field points at.\n *\n * The generation contract asks the model to identify entities by a bare `slug` and to cross-reference\n * them by that same slug. Normalization then stamps each entity's identity with its family prefix\n * (`stampRef`), so a reference left as the raw slug can no longer resolve to anything. That is not a\n * cosmetic mismatch: `validateMarketSnapshot` reported **156 ORPHAN_REF errors** on a complete,\n * well-formed market graph, which made the whole family unacceptable EVERY time the model answered\n * correctly. A reference must therefore be stamped exactly like the identity it names.\n *\n * Keyed by field NAME because the name is the contract here — `jobRef` names a job wherever it appears,\n * at any depth, and there are 37 such fields spread across nested shapes. The exhaustiveness of this\n * table (together with {@link MARKET_EXTERNAL_REFERENCE_FIELDS}) is enforced by a test that walks the\n * generation schema and fails on any `*Ref`/`*Refs` field that is in neither, so a field added later\n * cannot silently go unstamped.\n */\nconst MARKET_REFERENCE_TARGET_PREFIX: Readonly<Record<string, string>> = Object.freeze({\n personaRef: 'persona-',\n raisedByPersonaRefs: 'persona-',\n icpRef: 'icp-',\n belongsToIcpRefs: 'icp-',\n affectedIcpRefs: 'icp-',\n raisedByIcpRefs: 'icp-',\n supportsIcpRefs: 'icp-',\n jobRef: 'job-',\n painRef: 'pain-',\n gainRef: 'gain-',\n preferredVoiceRef: 'voice-',\n channelRefs: 'channel-',\n recommendedChannelRefs: 'channel-',\n triggerRefs: 'trigger-',\n alternativeRef: 'alternative-',\n alternativeRefs: 'alternative-',\n proofRefs: 'proof-',\n objectionRefs: 'objection-',\n addressesObjectionRefs: 'objection-',\n backedByBenefitRefs: 'benefit-',\n relatedBenefitRefs: 'benefit-',\n supportsBenefitRefs: 'benefit-',\n});\n\n/**\n * Cross-family references, which must NOT be stamped.\n *\n * These name identifiers owned by OTHER specification families — application features and products — so\n * a market prefix would corrupt them. `validateMarketSnapshot` treats them the same way: it resolves\n * them only when the caller passes that family's key set, and skips them otherwise.\n */\nconst MARKET_EXTERNAL_REFERENCE_FIELDS: ReadonlySet<string> = new Set([\n 'deliveredByFeatureRefs',\n 'recommendedProductRefs',\n 'upsellPathProductRefs',\n]);\n\n/**\n * Rewrite every internal cross-reference so it names its target's stamped identity.\n *\n * Applied to the generated payload BEFORE entity identities are stamped, and deliberately depth-first\n * over the whole structure: reference fields appear nested inside `buyingGroup[]`, `relieves[]`,\n * `importanceByICP[]` and similar, not only at collection level.\n *\n * Unstamped by design: anything in {@link MARKET_EXTERNAL_REFERENCE_FIELDS}, and any field this table\n * does not classify — a silent guess about which family a reference points at would be worse than the\n * orphan it replaces, and the schema-walking test makes the omission loud instead.\n */\nfunction stampInternalReferences<Value>(value: Value): Value {\n if (Array.isArray(value)) {\n return value.map((entry) => stampInternalReferences(entry)) as unknown as Value;\n }\n if (value === null || typeof value !== 'object') return value;\n const stamped: Record<string, unknown> = {};\n for (const [key, entry] of Object.entries(value as Record<string, unknown>)) {\n const prefix = MARKET_EXTERNAL_REFERENCE_FIELDS.has(key) ? undefined : MARKET_REFERENCE_TARGET_PREFIX[key];\n if (prefix !== undefined && typeof entry === 'string') {\n stamped[key] = applyFamilyRefPrefix(entry, prefix);\n continue;\n }\n if (prefix !== undefined && Array.isArray(entry) && entry.every((item) => typeof item === 'string')) {\n stamped[key] = entry.map((item) => applyFamilyRefPrefix(item as string, prefix));\n continue;\n }\n stamped[key] = stampInternalReferences(entry);\n }\n return stamped as unknown as Value;\n}\n\nexport const MARKET_REFERENCE_TARGET_PREFIX_FOR_TESTS: Readonly<Record<string, string>> = MARKET_REFERENCE_TARGET_PREFIX;\nexport const MARKET_EXTERNAL_REFERENCE_FIELDS_FOR_TESTS: ReadonlySet<string> = MARKET_EXTERNAL_REFERENCE_FIELDS;\n\nfunction reportDuplicateSlugs(values: readonly string[], path: string, context: z.RefinementCtx): void {\n const seen = new Set<string>();\n values.forEach((value, index) => {\n if (!seen.has(value)) {\n seen.add(value);\n return;\n }\n context.addIssue({ code: 'custom', path: [path, index, 'slug'], message: `duplicate semantic slug \"${value}\"` });\n });\n}\n"]}
|
|
@@ -140,6 +140,21 @@ export interface MarketSnapshotValidationResult {
|
|
|
140
140
|
ok: boolean;
|
|
141
141
|
issues: MarketSnapshotIssue[];
|
|
142
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Options for this family validator.
|
|
145
|
+
*
|
|
146
|
+
* ## The cross-family sets are OPT-IN, and omitting one SKIPS its check
|
|
147
|
+
*
|
|
148
|
+
* A family validator sees one family. It cannot resolve a reference into another family's
|
|
149
|
+
* vocabulary unless you hand it that family's refs — so each `available*Refs` option is the caller
|
|
150
|
+
* saying "I have this context, use it". Omit one and the matching check does not run: no issue is
|
|
151
|
+
* reported, and the absence looks exactly like a snapshot with no such reference.
|
|
152
|
+
*
|
|
153
|
+
* That is deliberate — the families are decoupled on purpose — but it means a validator called with
|
|
154
|
+
* the snapshot alone is checking this family's INTERNAL consistency only. If you want dangling
|
|
155
|
+
* cross-family references caught, supply the sets; if you validate one family in isolation, expect
|
|
156
|
+
* them to be found later by whatever holds every family at once.
|
|
157
|
+
*/
|
|
143
158
|
export interface ValidateMarketSnapshotOptions {
|
|
144
159
|
/**
|
|
145
160
|
* Cross-family ref check for `FeatureBenefit.deliveredByFeatureRefs`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market-snapshot-validation.d.ts","sourceRoot":"","sources":["../../../../../src/_core/market/market-snapshot-validation.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,oBAAY,uBAAuB;IACjC,UAAU,eAAe;IACzB,+BAA+B,oCAAoC;IACnE;;;;;;;OAOG;IACH,6BAA6B,kCAAkC;IAC/D,0BAA0B,+BAA+B;IACzD,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;IACnC,2BAA2B,gCAAgC;IAC3D,cAAc,mBAAmB;IACjC;;;;;;;;;;;OAWG;IACH,yBAAyB,8BAA8B;IACvD,+BAA+B,oCAAoC;IACnE,qCAAqC,0CAA0C;IAC/E;;;;;OAKG;IACH,6BAA6B,kCAAkC;IAC/D,uGAAuG;IACvG,qBAAqB,0BAA0B;IAC/C;;;;;;;;OAQG;IACH,2BAA2B,gCAAgC;IAC3D,qFAAqF;IACrF,uBAAuB,4BAA4B;IACnD,8GAA8G;IAC9G,gCAAgC,qCAAqC;IACrE,wGAAwG;IACxG,gCAAgC,qCAAqC;IACrE;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,qCAAqC,0CAA0C;CAChF;AAED,MAAM,MAAM,2BAA2B,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,uBAAuB,CAAC;IAC9B,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,2BAA2B,CAAC;CACvC;AAED,MAAM,WAAW,8BAA8B;IAC7C,gDAAgD;IAChD,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,mBAAmB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3C;;;OAGG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3C,8FAA8F;IAC9F,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ;AAED,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,6BAA6B,GACtC,8BAA8B,CAwBhC;AA68BD,wDAAwD"}
|
|
1
|
+
{"version":3,"file":"market-snapshot-validation.d.ts","sourceRoot":"","sources":["../../../../../src/_core/market/market-snapshot-validation.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,oBAAY,uBAAuB;IACjC,UAAU,eAAe;IACzB,+BAA+B,oCAAoC;IACnE;;;;;;;OAOG;IACH,6BAA6B,kCAAkC;IAC/D,0BAA0B,+BAA+B;IACzD,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;IACnC,2BAA2B,gCAAgC;IAC3D,cAAc,mBAAmB;IACjC;;;;;;;;;;;OAWG;IACH,yBAAyB,8BAA8B;IACvD,+BAA+B,oCAAoC;IACnE,qCAAqC,0CAA0C;IAC/E;;;;;OAKG;IACH,6BAA6B,kCAAkC;IAC/D,uGAAuG;IACvG,qBAAqB,0BAA0B;IAC/C;;;;;;;;OAQG;IACH,2BAA2B,gCAAgC;IAC3D,qFAAqF;IACrF,uBAAuB,4BAA4B;IACnD,8GAA8G;IAC9G,gCAAgC,qCAAqC;IACrE,wGAAwG;IACxG,gCAAgC,qCAAqC;IACrE;;;;;;;;;;;;;;;;;;;;;;OAsBG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