@wildo-ai/saas-specifications 1.1.1 → 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/brand/brand.family-aspects.d.ts +3 -0
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -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-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/build-plan/build-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +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/business-model-lite/business-model.family-aspects.d.ts +3 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +178 -2
- 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 +115 -9
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -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 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.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/family-aspects.registry.d.ts +18 -0
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.registry.js +60 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.js +15 -0
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
- 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/flows-actors-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
- package/dist/esm/_core/guidance-flow-specification.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/market/market-snapshot-generation.schemas.d.ts +22 -22
- 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/market/market.family-aspects.d.ts +9 -0
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/market/market.family-aspects.js +227 -0
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.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.family-aspects.d.ts +3 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
- 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/requirements/requirements.family-aspects.d.ts +9 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-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/roadmap/roadmap.family-aspects.d.ts +3 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
- 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/_core/vision/vision.family-aspects.d.ts +11 -0
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
- 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 +193 -38
- 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 +157 -57
- 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 +38 -4
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
- 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 +101 -85
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +171 -86
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +11 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +11 -0
- package/dist/esm/application-creation.exports.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 +999 -2
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2127 -61
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +26 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.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 +18 -3
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.js.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-external-framework-mapping.d.ts +90 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.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 +78 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +562 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +148 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js +385 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
- package/dist/esm/assurance/assurance-program.schemas.d.ts +474 -14
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +319 -8
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
- package/dist/esm/assurance/assurance-sources.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/assurance/document-publication.family-aspects.d.ts +29 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +2 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +2 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +26 -8
- 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 +15 -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.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +4 -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 +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 +17 -3
- 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 +12 -10
- 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 -2
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +3 -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 +15 -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 +17 -3
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +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.d.ts +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 +6 -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.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +4 -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.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +8 -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.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +11 -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.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +8 -6
- 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 +106 -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/sso-connections.resource.specification.js +2 -0
- 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 +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 +2 -2
- 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 +6 -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.d.ts +8 -8
- 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 +4 -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.d.ts +2 -2
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -3
- 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 +10 -8
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +10 -8
- 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 +16 -12
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +8 -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 +13 -9
- 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 +30 -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.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +10 -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 +11 -2
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +83 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
- package/dist/esm/engine/engine-resource-sub-domain.js +153 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +44 -1
- 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.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +5 -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.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +5 -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.d.ts +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +5 -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 +12 -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.d.ts +3 -3
- 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 +22 -10
- 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.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -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.d.ts +3 -3
- 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 +4 -2
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.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/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- 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.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +15 -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.d.ts +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 +12 -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 +9 -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 +9 -6
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +2 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +2 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +19 -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.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -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.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +10 -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 +12 -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 +22 -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 +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 +14 -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 +31 -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.d.ts +1 -1
- 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 +11 -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.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -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.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +6 -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.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -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.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +3 -1
- 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 +2 -0
- 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.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +9 -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.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +9 -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.d.ts +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +11 -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.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +4 -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.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +10 -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 +5 -5
- 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 +6 -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.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +4 -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 +5 -5
- 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 +15 -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.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +3 -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.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +11 -9
- 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 +95 -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 +5 -0
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +451 -25
- 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 +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +8 -8
- package/dist/esm/.builder.pid +0 -9
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoreResourceOperation as Op } from '@wildo-ai/saas-models';
|
|
2
|
-
export declare const userGuidanceStateResourceSpecification: import("../../../_core").ResourceSpecificationConfig<Record<string, never>, Op.READ | Op.UPDATE | Op.DELETE | Op.CREATE | Op.SEARCH, import("zod").ZodObject<{
|
|
2
|
+
export declare const userGuidanceStateResourceSpecification: import("../../../_core").ResourceSpecificationConfig<Record<string, never>, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.CREATE | Op.LIST | Op.SEARCH, import("zod").ZodObject<{
|
|
3
3
|
flows: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
4
4
|
status: import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").OnboardingStatus>;
|
|
5
5
|
startedAt: import("zod").ZodOptional<import("zod").ZodCoercedDate<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guidance-state.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/guidance-state.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM5B,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"guidance-state.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/guidance-state.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM5B,MAAM,uBAAuB,CAAC;AA4O/B,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;iCA0BlD,CAAC;AAEF,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;iCAyB1D,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
|
3
3
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
4
4
|
import { CoreResourceOperation as Op, OrganizationGuidanceStateSchema, ResourcePrimaryScope, UserGuidanceStateSchema, organizationGuidanceStateResourceConfiguration_InitializationFactory as organizationGuidanceStateFactory, userGuidanceStateResourceConfiguration_InitializationFactory as userGuidanceStateFactory, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
6
7
|
const userGuidanceUI = userGuidancePlatformSource;
|
|
7
8
|
const orgGuidancePlatformUI = orgGuidancePlatformSource;
|
|
8
9
|
const orgGuidanceAdminUI = orgGuidanceAdminSource;
|
|
@@ -11,6 +12,7 @@ const userGuidanceBase = resourceSpecification(userGuidanceStateFactory, UserGui
|
|
|
11
12
|
businessRole: 'The persisted progress map the companion and in-app coach use to avoid repeating finished tours and to resume partial flows.',
|
|
12
13
|
lifecycleRole: 'App user upserts rows as the guidance engine or admin tooling advances flow state; not a public directory resource.',
|
|
13
14
|
audience: LabelAudience.END_USER,
|
|
15
|
+
subDomain: EngineResourceSubDomain.GUIDANCE,
|
|
14
16
|
codeHandling: {
|
|
15
17
|
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserGuidanceStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
16
18
|
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userGuidanceStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
@@ -32,7 +34,7 @@ const userGuidanceBase = resourceSpecification(userGuidanceStateFactory, UserGui
|
|
|
32
34
|
outcome: 'Flow and element status hydrate UI and the companion.',
|
|
33
35
|
responseStatuses: [
|
|
34
36
|
// Self-state read lazily materializes: when no row exists yet the runtime returns a default state rather than 404, so 404 is intentionally NOT documented.
|
|
35
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The caller’s guidance state is returned; if no
|
|
37
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The caller’s guidance state is returned; if no record has been materialized yet a default empty-flows state is returned rather than a 404.' },
|
|
36
38
|
],
|
|
37
39
|
errorScenarios: [
|
|
38
40
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session, so the per-user guidance state cannot be resolved.' },
|
|
@@ -43,7 +45,7 @@ const userGuidanceBase = resourceSpecification(userGuidanceStateFactory, UserGui
|
|
|
43
45
|
purpose: 'Initialize guidance state for a user (first run).',
|
|
44
46
|
outcome: 'Empty or seeded `flows` map for subsequent updates.',
|
|
45
47
|
responseStatuses: [
|
|
46
|
-
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A guidance state
|
|
48
|
+
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A guidance state record was created for the caller with the seeded `flows` map.' },
|
|
47
49
|
],
|
|
48
50
|
errorScenarios: [
|
|
49
51
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded `flows` payload fails `GuidanceStateSchema` validation.', errorCode: 'VALIDATION_FAILED' },
|
|
@@ -68,8 +70,8 @@ const userGuidanceBase = resourceSpecification(userGuidanceStateFactory, UserGui
|
|
|
68
70
|
],
|
|
69
71
|
},
|
|
70
72
|
[Op.UPDATE]: {
|
|
71
|
-
purpose: 'Patch flow
|
|
72
|
-
outcome: '
|
|
73
|
+
purpose: 'Patch flow and element state as a user progresses; send only the parts that changed.',
|
|
74
|
+
outcome: 'The application merges the supplied parts into the stored state; untouched parts are left alone.',
|
|
73
75
|
responseStatuses: [
|
|
74
76
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The partial flow/element patch was merged into the caller’s guidance state and the result is returned.' },
|
|
75
77
|
],
|
|
@@ -81,10 +83,10 @@ const userGuidanceBase = resourceSpecification(userGuidanceStateFactory, UserGui
|
|
|
81
83
|
idempotent: true,
|
|
82
84
|
},
|
|
83
85
|
[Op.SEARCH]: {
|
|
84
|
-
purpose: '
|
|
85
|
-
outcome: '
|
|
86
|
+
purpose: 'Search stored guidance state.',
|
|
87
|
+
outcome: 'Administrative and support tooling can find guidance state; an end-user surface rarely needs it.',
|
|
86
88
|
responseStatuses: [
|
|
87
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of guidance state
|
|
89
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of guidance state records; search metadata is intentionally minimal for this resource.' },
|
|
88
90
|
],
|
|
89
91
|
errorScenarios: [
|
|
90
92
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the guidance search context.' },
|
|
@@ -95,7 +97,7 @@ const userGuidanceBase = resourceSpecification(userGuidanceStateFactory, UserGui
|
|
|
95
97
|
purpose: 'Repository-only teardown of the user guidance state row when its owning user is deleted (composition `onParentDelete` cascade).',
|
|
96
98
|
outcome: 'The singleton state row is removed together with the user — the composition part does not outlive its whole.',
|
|
97
99
|
responseStatuses: [
|
|
98
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The user guidance state
|
|
100
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The user guidance state record was deleted as part of the owning user’s deletion cascade.' },
|
|
99
101
|
],
|
|
100
102
|
// REPOSITORY_ONLY variant (super-admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.
|
|
101
103
|
idempotent: true,
|
|
@@ -110,6 +112,7 @@ const organizationGuidanceBase = resourceSpecification(organizationGuidanceState
|
|
|
110
112
|
businessRole: 'Holds which org-level flows are active, completed, or dismissed so admins and the engine can coordinate org rollout.',
|
|
111
113
|
lifecycleRole: 'Created/updated by org admins, super-admins, or automation when org guidance policies change; member reads may be allowed in factory for transparency.',
|
|
112
114
|
audience: LabelAudience.END_USER,
|
|
115
|
+
subDomain: EngineResourceSubDomain.GUIDANCE,
|
|
113
116
|
codeHandling: {
|
|
114
117
|
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationGuidanceStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
115
118
|
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationGuidanceStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
@@ -134,7 +137,7 @@ const organizationGuidanceBase = resourceSpecification(organizationGuidanceState
|
|
|
134
137
|
outcome: 'Flow map for in-product coach tied to a tenant.',
|
|
135
138
|
responseStatuses: [
|
|
136
139
|
// Scoped-state read lazily materializes: an org with no row yet gets a default state rather than 404, so 404 is intentionally NOT documented.
|
|
137
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s guidance state is returned; if no
|
|
140
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s guidance state is returned; if no record has been materialized yet a default empty-flows state is returned rather than a 404.' },
|
|
138
141
|
],
|
|
139
142
|
errorScenarios: [
|
|
140
143
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the tenant guidance state.' },
|
|
@@ -145,7 +148,7 @@ const organizationGuidanceBase = resourceSpecification(organizationGuidanceState
|
|
|
145
148
|
purpose: 'Initialize org guidance when first org-wide flows activate.',
|
|
146
149
|
outcome: 'Baseline row the engine can update.',
|
|
147
150
|
responseStatuses: [
|
|
148
|
-
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'An org-level guidance state
|
|
151
|
+
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'An org-level guidance state record was created with the seeded `flows` map.' },
|
|
149
152
|
],
|
|
150
153
|
errorScenarios: [
|
|
151
154
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded `flows` payload fails `GuidanceStateSchema` validation.', errorCode: 'VALIDATION_FAILED' },
|
|
@@ -186,7 +189,7 @@ const organizationGuidanceBase = resourceSpecification(organizationGuidanceState
|
|
|
186
189
|
purpose: 'Factory search hook; merged admin bundle removes the SEARCH view — still describe the op for backend truth.',
|
|
187
190
|
outcome: 'Not surfaced as a navigable list in merged presets for this resource.',
|
|
188
191
|
responseStatuses: [
|
|
189
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org guidance state
|
|
192
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org guidance state records; not surfaced as a navigable list in merged presets.' },
|
|
190
193
|
],
|
|
191
194
|
errorScenarios: [
|
|
192
195
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the guidance search context.' },
|
|
@@ -197,7 +200,7 @@ const organizationGuidanceBase = resourceSpecification(organizationGuidanceState
|
|
|
197
200
|
purpose: 'Repository-only teardown of the organization guidance state row when its owning organization is deleted (composition `onParentDelete` cascade).',
|
|
198
201
|
outcome: 'The singleton state row is removed together with the organization — the composition part does not outlive its whole.',
|
|
199
202
|
responseStatuses: [
|
|
200
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The organization guidance state
|
|
203
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The organization guidance state record was deleted as part of the owning organization’s deletion cascade.' },
|
|
201
204
|
],
|
|
202
205
|
// REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.
|
|
203
206
|
idempotent: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guidance-state.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/guidance-state.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gDAAgD,IAAI,sBAAsB,EAC1E,mDAAmD,IAAI,yBAAyB,EAChF,2CAA2C,IAAI,0BAA0B,GAC1E,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,+BAA+B,EAC/B,oBAAoB,EACpB,uBAAuB,EACvB,oEAAoE,IAAI,gCAAgC,EACxG,4DAA4D,IAAI,wBAAwB,GACzF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAKrC,MAAM,cAAc,GAAG,0BAA8F,CAA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EAAE,6BAA6B,CAAC,kBAAkB,CAAC,CAAC,EAC5I,wBAAwB,EACxB,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE,EAAE,OAAO,EAAE,sHAAsH,EAAE;IAC1I,MAAM,EAAE;QACN,OAAO,EAAE,wIAAwI;QACjJ,cAAc,EAAE,gHAAgH;QAChI,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,OAAO,EAAE,iDAAiD;gBAC1D,SAAS,EAAE,iEAAiE;gBAC5E,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE;oBACjE,WAAW,EAAE,EAAE,OAAO,EAAE,qHAAqH,EAAE;iBAChJ;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,oGAAoG,EAAE,SAAS,EAAE,+DAA+D,EAAE;QACxM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,yEAAyE,EAAE,SAAS,EAAE,mDAAmD,EAAE;QACnK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,wEAAwE,EAAE,SAAS,EAAE,mEAAmE,EAAE;KACnL;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n organizationGuidanceStateAdminResourceUIBehavior as orgGuidanceAdminSource,\n organizationGuidanceStatePlatformResourceUIBehavior as orgGuidancePlatformSource,\n userGuidanceStatePlatformResourceUIBehavior as userGuidancePlatformSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationGuidanceStateSchema,\n ResourcePrimaryScope,\n UserGuidanceStateSchema,\n organizationGuidanceStateResourceConfiguration_InitializationFactory as organizationGuidanceStateFactory,\n userGuidanceStateResourceConfiguration_InitializationFactory as userGuidanceStateFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\ntype UCfg = ReturnType<typeof userGuidanceStateFactory>;\ntype UCore = UCfg['coreOperations'][number];\ntype UserMain = UCfg['mainSchema'];\nconst userGuidanceUI = userGuidancePlatformSource as ResourceUIBehaviorConfig<Record<string, never>, UCore, UserMain>;\n\ntype OCfg = ReturnType<typeof organizationGuidanceStateFactory>;\ntype OCore = OCfg['coreOperations'][number];\ntype OrgMain = OCfg['mainSchema'];\nconst orgGuidancePlatformUI = orgGuidancePlatformSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OrgMain>;\nconst orgGuidanceAdminUI = orgGuidanceAdminSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OrgMain>;\n\nconst userGuidanceBase = resourceSpecification<Record<string, never>, UCore, UserMain>(\n userGuidanceStateFactory,\n UserGuidanceStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-user guidance engine state: which onboarding/guidance flows are started, completed, or dismissed, plus per-element progress.',\n businessRole: 'The persisted progress map the companion and in-app coach use to avoid repeating finished tours and to resume partial flows.',\n lifecycleRole: 'App user upserts rows as the guidance engine or admin tooling advances flow state; not a public directory resource.',\n audience: LabelAudience.END_USER,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserGuidanceStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userGuidanceStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'USER_GUIDANCE_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [{ packageName: '@wildo-ai/presets-components', exportName: 'userGuidanceStatePlatformResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR }],\n },\n fields: {\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Owning user for the guidance state document; immutable after create.',\n whyItMatters: 'Scopes READ/UPDATE through the user-self access strategy so a user can never read another user’s guidance progress.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n flows: schemaShape.flows.objectSpec({ meaning: 'Map of `flowRef` to flow-level status, element map, and trigger counts for the guidance engine.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the current user guidance state for coach surfaces.',\n outcome: 'Flow and element status hydrate UI and the companion.',\n responseStatuses: [\n // Self-state read lazily materializes: when no row exists yet the runtime returns a default state rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller’s guidance state is returned; if no row has been materialized yet a default empty-flows state is returned rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session, so the per-user guidance state cannot be resolved.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Initialize guidance state for a user (first run).',\n outcome: 'Empty or seeded `flows` map for subsequent updates.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A guidance state row was created for the caller with the seeded `flows` map.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded `flows` payload fails `GuidanceStateSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session to own the new guidance state row.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Initialize a user guidance state',\n request: {\n flows: {\n onboarding_tour: { status: 'IN_PROGRESS', elements: {}, triggerCount: 1 },\n },\n },\n response: {\n flows: {\n onboarding_tour: { status: 'IN_PROGRESS', elements: {}, triggerCount: 1 },\n },\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Patch flow/element state as users progress (partial `GuidanceStateSchema`).',\n outcome: 'Server merges into the document per request DTO in factory config.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The partial flow/element patch was merged into the caller’s guidance state and the result is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The partial `GuidanceStateSchema` patch fails validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the guidance state being patched.' },\n ],\n // Convergent: completing/dismissing a flow merges to the same end state, so re-applying the same patch is side-effect-free.\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Repository-backed search entry (factory has non-searchable API variant for compatibility).',\n outcome: 'Typically unused in end-user UIs; platform presets keep it non-addressable in routes.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of guidance state rows; search metadata is intentionally minimal for this resource.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the guidance search context.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the user guidance state row when its owning user is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the user — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The user guidance state row was deleted as part of the owning user’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (super-admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Platform presets intentionally keep routes non-addressable; companion copy should not claim a public “guidance list” for end users unless product wiring changes.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n\nconst organizationGuidanceBase = resourceSpecification<Record<string, never>, OCore, OrgMain>(\n organizationGuidanceStateFactory,\n OrganizationGuidanceStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-organization guidance state: shared coach progress for org-wide onboarding and education flows (parallel shape to the user document).',\n businessRole: 'Holds which org-level flows are active, completed, or dismissed so admins and the engine can coordinate org rollout.',\n lifecycleRole: 'Created/updated by org admins, super-admins, or automation when org guidance policies change; member reads may be allowed in factory for transparency.',\n audience: LabelAudience.END_USER,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationGuidanceStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationGuidanceStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'ORGANIZATION_GUIDANCE_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationGuidanceStatePlatformResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationGuidanceStateAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'Owning organization for the guidance state document; immutable after create.',\n whyItMatters: 'Scopes READ/UPDATE through the org access strategy so a tenant can never read another tenant’s guidance progress.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n flows: schemaShape.flows.objectSpec({ meaning: 'Same flow/element state shape as the user variant, stored at org scope for shared journeys.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Fetch org-level guidance state for security/billing org consoles.',\n outcome: 'Flow map for in-product coach tied to a tenant.',\n responseStatuses: [\n // Scoped-state read lazily materializes: an org with no row yet gets a default state rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s guidance state is returned; if no row has been materialized yet a default empty-flows state is returned rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the tenant guidance state.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Initialize org guidance when first org-wide flows activate.',\n outcome: 'Baseline row the engine can update.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'An org-level guidance state row was created with the seeded `flows` map.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded `flows` payload fails `GuidanceStateSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin or super-admin; org guidance state is initialized by admins only.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Initialize an organization guidance state',\n request: {\n flows: {\n org_rollout_tour: { status: 'IN_PROGRESS', elements: {}, triggerCount: 1 },\n },\n },\n response: {\n flows: {\n org_rollout_tour: { status: 'IN_PROGRESS', elements: {}, triggerCount: 1 },\n },\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Patch org state when admins advance or reset flows (admin/super-admin roles in factory).',\n outcome: 'Updated tour visibility and element completion for members when policies allow.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The org guidance state patch was merged and the result is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The partial `GuidanceStateSchema` patch fails validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin or super-admin; advancing/resetting org flows is admin-gated.' },\n ],\n // Convergent: advancing/dismissing org flows merges to the same end state, so re-applying the same patch is side-effect-free.\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Factory search hook; merged admin bundle removes the SEARCH view — still describe the op for backend truth.',\n outcome: 'Not surfaced as a navigable list in merged presets for this resource.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org guidance state rows; not surfaced as a navigable list in merged presets.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the guidance search context.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization guidance state row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization guidance state row was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Merged `guidance` admin preset removes SEARCH from the org guidance bundle; companion must not require a public org guidance directory route.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nexport const userGuidanceStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userGuidanceUI),\n userGuidanceBase,\n () => ({\n label: { purpose: 'Presets build a short label from flow count: “User guidance · N flows” when any flow exists, else “User guidance”.' },\n layout: {\n purpose: 'Single `overview` section rendering the `flows` map in platform presets — inline display/summary/edit share one card for engine-owned JSON.',\n displayPurpose: 'Not a CRUD form for arbitrary JSON; the edit template exists for administrative tooling, not self-serve in typical apps.',\n sections: {\n overview: {\n purpose: 'The entire guidance tree (flows, elements, status) in one place.',\n whenToUse: 'Any screen that must debug or show raw guidance progress in platform builds.',\n textSlots: {\n title: { purpose: 'Name the current guidance state record.' },\n description: { purpose: 'Clarify that flow keys map to `guidance-flow` definition refs in the product catalog, not ad-hoc strings.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-only host for the guidance JSON in platform presets; non-addressable in default `views` wiring.', whenToUse: 'When product routes expose read access for diagnostics.' },\n [Op.CREATE]: { purpose: 'First-write initialization path when no row yet exists; non-addressable in default `views` wiring.', whenToUse: 'Onboarding of the guidance state row during user bootstrap.' },\n [Op.UPDATE]: { purpose: 'Patch-level updates as flows progress; non-addressable in default `views` wiring.', whenToUse: 'Engine callbacks after each coach step.' },\n [Op.SEARCH]: { purpose: 'Factory exposes SEARCH for service compatibility; not addressable in platform preset list for this type.', whenToUse: 'Internal or future admin discovery tools only.' },\n },\n }),\n);\n\nexport const organizationGuidanceStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(orgGuidancePlatformUI), resourceFrontendConfiguration(orgGuidanceAdminUI)),\n organizationGuidanceBase,\n () => ({\n label: { purpose: '“Organization guidance · N flows” from flow map size in merged presets, matching the `guidanceLabel` helper pattern.' },\n layout: {\n purpose: 'Same single-section `overview` as the user platform preset; merged admin only removes the SEARCH view entry — layout chrome is shared.',\n displayPurpose: 'Admin merge keeps display/edit templates from the platform block so org and platform consoles stay consistent.',\n sections: {\n overview: {\n purpose: 'Flow map for the organization’s guidance state.',\n whenToUse: 'Org admin and super-admin org drill-downs for rollout tracking.',\n textSlots: {\n title: { purpose: 'Label the org-level guidance state surface.' },\n description: { purpose: 'Distinguish from per-user `USER_GUIDANCE_STATE` which tracks individual progress instead of the org rollout bucket.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read org guidance for merged platform+admin; non-addressable in default `views` wiring in presets.', whenToUse: 'When org admin routes surface the coach state for the tenant.' },\n [Op.CREATE]: { purpose: 'Create org state when missing; same non-addressable pattern in presets.', whenToUse: 'First activation of an org with guidance enabled.' },\n [Op.UPDATE]: { purpose: 'Admin and super-admin updates; non-addressable in default preset list.', whenToUse: 'When flows are advanced, dismissed, or reset in operator tooling.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"guidance-state.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/guidance-state.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gDAAgD,IAAI,sBAAsB,EAC1E,mDAAmD,IAAI,yBAAyB,EAChF,2CAA2C,IAAI,0BAA0B,GAC1E,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,+BAA+B,EAC/B,oBAAoB,EACpB,uBAAuB,EACvB,oEAAoE,IAAI,gCAAgC,EACxG,4DAA4D,IAAI,wBAAwB,GACzF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAK3E,MAAM,cAAc,GAAG,0BAA8F,CAAC;AAKtH,MAAM,qBAAqB,GAAG,yBAA4F,CAAC;AAC3H,MAAM,kBAAkB,GAAG,sBAAyF,CAAC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EAAE,6BAA6B,CAAC,kBAAkB,CAAC,CAAC,EAC5I,wBAAwB,EACxB,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE,EAAE,OAAO,EAAE,sHAAsH,EAAE;IAC1I,MAAM,EAAE;QACN,OAAO,EAAE,wIAAwI;QACjJ,cAAc,EAAE,gHAAgH;QAChI,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,OAAO,EAAE,iDAAiD;gBAC1D,SAAS,EAAE,iEAAiE;gBAC5E,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE;oBACjE,WAAW,EAAE,EAAE,OAAO,EAAE,qHAAqH,EAAE;iBAChJ;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,oGAAoG,EAAE,SAAS,EAAE,+DAA+D,EAAE;QACxM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,yEAAyE,EAAE,SAAS,EAAE,mDAAmD,EAAE;QACnK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,wEAAwE,EAAE,SAAS,EAAE,mEAAmE,EAAE;KACnL;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n organizationGuidanceStateAdminResourceUIBehavior as orgGuidanceAdminSource,\n organizationGuidanceStatePlatformResourceUIBehavior as orgGuidancePlatformSource,\n userGuidanceStatePlatformResourceUIBehavior as userGuidancePlatformSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationGuidanceStateSchema,\n ResourcePrimaryScope,\n UserGuidanceStateSchema,\n organizationGuidanceStateResourceConfiguration_InitializationFactory as organizationGuidanceStateFactory,\n userGuidanceStateResourceConfiguration_InitializationFactory as userGuidanceStateFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype UCfg = ReturnType<typeof userGuidanceStateFactory>;\ntype UCore = UCfg['coreOperations'][number];\ntype UserMain = UCfg['mainSchema'];\nconst userGuidanceUI = userGuidancePlatformSource as ResourceUIBehaviorConfig<Record<string, never>, UCore, UserMain>;\n\ntype OCfg = ReturnType<typeof organizationGuidanceStateFactory>;\ntype OCore = OCfg['coreOperations'][number];\ntype OrgMain = OCfg['mainSchema'];\nconst orgGuidancePlatformUI = orgGuidancePlatformSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OrgMain>;\nconst orgGuidanceAdminUI = orgGuidanceAdminSource as ResourceUIBehaviorConfig<Record<string, never>, OCore, OrgMain>;\n\nconst userGuidanceBase = resourceSpecification<Record<string, never>, UCore, UserMain>(\n userGuidanceStateFactory,\n UserGuidanceStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-user guidance engine state: which onboarding/guidance flows are started, completed, or dismissed, plus per-element progress.',\n businessRole: 'The persisted progress map the companion and in-app coach use to avoid repeating finished tours and to resume partial flows.',\n lifecycleRole: 'App user upserts rows as the guidance engine or admin tooling advances flow state; not a public directory resource.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.GUIDANCE,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserGuidanceStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userGuidanceStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'USER_GUIDANCE_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [{ packageName: '@wildo-ai/presets-components', exportName: 'userGuidanceStatePlatformResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR }],\n },\n fields: {\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Owning user for the guidance state document; immutable after create.',\n whyItMatters: 'Scopes READ/UPDATE through the user-self access strategy so a user can never read another user’s guidance progress.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n flows: schemaShape.flows.objectSpec({ meaning: 'Map of `flowRef` to flow-level status, element map, and trigger counts for the guidance engine.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the current user guidance state for coach surfaces.',\n outcome: 'Flow and element status hydrate UI and the companion.',\n responseStatuses: [\n // Self-state read lazily materializes: when no row exists yet the runtime returns a default state rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller’s guidance state is returned; if no record has been materialized yet a default empty-flows state is returned rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session, so the per-user guidance state cannot be resolved.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Initialize guidance state for a user (first run).',\n outcome: 'Empty or seeded `flows` map for subsequent updates.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A guidance state record was created for the caller with the seeded `flows` map.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded `flows` payload fails `GuidanceStateSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session to own the new guidance state row.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Initialize a user guidance state',\n request: {\n flows: {\n onboarding_tour: { status: 'IN_PROGRESS', elements: {}, triggerCount: 1 },\n },\n },\n response: {\n flows: {\n onboarding_tour: { status: 'IN_PROGRESS', elements: {}, triggerCount: 1 },\n },\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Patch flow and element state as a user progresses; send only the parts that changed.',\n outcome: 'The application merges the supplied parts into the stored state; untouched parts are left alone.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The partial flow/element patch was merged into the caller’s guidance state and the result is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The partial `GuidanceStateSchema` patch fails validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the guidance state being patched.' },\n ],\n // Convergent: completing/dismissing a flow merges to the same end state, so re-applying the same patch is side-effect-free.\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Search stored guidance state.',\n outcome: 'Administrative and support tooling can find guidance state; an end-user surface rarely needs it.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of guidance state records; search metadata is intentionally minimal for this resource.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the guidance search context.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the user guidance state row when its owning user is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the user — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The user guidance state record was deleted as part of the owning user’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (super-admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Platform presets intentionally keep routes non-addressable; companion copy should not claim a public “guidance list” for end users unless product wiring changes.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n\nconst organizationGuidanceBase = resourceSpecification<Record<string, never>, OCore, OrgMain>(\n organizationGuidanceStateFactory,\n OrganizationGuidanceStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Per-organization guidance state: shared coach progress for org-wide onboarding and education flows (parallel shape to the user document).',\n businessRole: 'Holds which org-level flows are active, completed, or dismissed so admins and the engine can coordinate org rollout.',\n lifecycleRole: 'Created/updated by org admins, super-admins, or automation when org guidance policies change; member reads may be allowed in factory for transparency.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.GUIDANCE,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationGuidanceStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationGuidanceStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'ORGANIZATION_GUIDANCE_STATE' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationGuidanceStatePlatformResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'organizationGuidanceStateAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'Owning organization for the guidance state document; immutable after create.',\n whyItMatters: 'Scopes READ/UPDATE through the org access strategy so a tenant can never read another tenant’s guidance progress.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n flows: schemaShape.flows.objectSpec({ meaning: 'Same flow/element state shape as the user variant, stored at org scope for shared journeys.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Fetch org-level guidance state for security/billing org consoles.',\n outcome: 'Flow map for in-product coach tied to a tenant.',\n responseStatuses: [\n // Scoped-state read lazily materializes: an org with no row yet gets a default state rather than 404, so 404 is intentionally NOT documented.\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s guidance state is returned; if no record has been materialized yet a default empty-flows state is returned rather than a 404.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the tenant guidance state.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Initialize org guidance when first org-wide flows activate.',\n outcome: 'Baseline row the engine can update.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'An org-level guidance state record was created with the seeded `flows` map.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded `flows` payload fails `GuidanceStateSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin or super-admin; org guidance state is initialized by admins only.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Initialize an organization guidance state',\n request: {\n flows: {\n org_rollout_tour: { status: 'IN_PROGRESS', elements: {}, triggerCount: 1 },\n },\n },\n response: {\n flows: {\n org_rollout_tour: { status: 'IN_PROGRESS', elements: {}, triggerCount: 1 },\n },\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Patch org state when admins advance or reset flows (admin/super-admin roles in factory).',\n outcome: 'Updated tour visibility and element completion for members when policies allow.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The org guidance state patch was merged and the result is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The partial `GuidanceStateSchema` patch fails validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin or super-admin; advancing/resetting org flows is admin-gated.' },\n ],\n // Convergent: advancing/dismissing org flows merges to the same end state, so re-applying the same patch is side-effect-free.\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Factory search hook; merged admin bundle removes the SEARCH view — still describe the op for backend truth.',\n outcome: 'Not surfaced as a navigable list in merged presets for this resource.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org guidance state records; not surfaced as a navigable list in merged presets.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the guidance search context.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization guidance state row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The singleton state row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization guidance state record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Merged `guidance` admin preset removes SEARCH from the org guidance bundle; companion must not require a public org guidance directory route.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nexport const userGuidanceStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userGuidanceUI),\n userGuidanceBase,\n () => ({\n label: { purpose: 'Presets build a short label from flow count: “User guidance · N flows” when any flow exists, else “User guidance”.' },\n layout: {\n purpose: 'Single `overview` section rendering the `flows` map in platform presets — inline display/summary/edit share one card for engine-owned JSON.',\n displayPurpose: 'Not a CRUD form for arbitrary JSON; the edit template exists for administrative tooling, not self-serve in typical apps.',\n sections: {\n overview: {\n purpose: 'The entire guidance tree (flows, elements, status) in one place.',\n whenToUse: 'Any screen that must debug or show raw guidance progress in platform builds.',\n textSlots: {\n title: { purpose: 'Name the current guidance state record.' },\n description: { purpose: 'Clarify that flow keys map to `guidance-flow` definition refs in the product catalog, not ad-hoc strings.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-only host for the guidance JSON in platform presets; non-addressable in default `views` wiring.', whenToUse: 'When product routes expose read access for diagnostics.' },\n [Op.CREATE]: { purpose: 'First-write initialization path when no row yet exists; non-addressable in default `views` wiring.', whenToUse: 'Onboarding of the guidance state row during user bootstrap.' },\n [Op.UPDATE]: { purpose: 'Patch-level updates as flows progress; non-addressable in default `views` wiring.', whenToUse: 'Engine callbacks after each coach step.' },\n [Op.SEARCH]: { purpose: 'Factory exposes SEARCH for service compatibility; not addressable in platform preset list for this type.', whenToUse: 'Internal or future admin discovery tools only.' },\n },\n }),\n);\n\nexport const organizationGuidanceStateResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(orgGuidancePlatformUI), resourceFrontendConfiguration(orgGuidanceAdminUI)),\n organizationGuidanceBase,\n () => ({\n label: { purpose: '“Organization guidance · N flows” from flow map size in merged presets, matching the `guidanceLabel` helper pattern.' },\n layout: {\n purpose: 'Same single-section `overview` as the user platform preset; merged admin only removes the SEARCH view entry — layout chrome is shared.',\n displayPurpose: 'Admin merge keeps display/edit templates from the platform block so org and platform consoles stay consistent.',\n sections: {\n overview: {\n purpose: 'Flow map for the organization’s guidance state.',\n whenToUse: 'Org admin and super-admin org drill-downs for rollout tracking.',\n textSlots: {\n title: { purpose: 'Label the org-level guidance state surface.' },\n description: { purpose: 'Distinguish from per-user `USER_GUIDANCE_STATE` which tracks individual progress instead of the org rollout bucket.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read org guidance for merged platform+admin; non-addressable in default `views` wiring in presets.', whenToUse: 'When org admin routes surface the coach state for the tenant.' },\n [Op.CREATE]: { purpose: 'Create org state when missing; same non-addressable pattern in presets.', whenToUse: 'First activation of an org with guidance enabled.' },\n [Op.UPDATE]: { purpose: 'Admin and super-admin updates; non-addressable in default preset list.', whenToUse: 'When flows are advanced, dismissed, or reset in operator tooling.' },\n },\n }),\n);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoreResourceOperation as Op, LifecycleStage } from '@wildo-ai/saas-models';
|
|
2
|
-
export declare const userLifecycleStateResourceSpecification: import("../../../_core").ResourceSpecificationConfig<Record<string, never>, Op.READ | Op.UPDATE | Op.DELETE | Op.CREATE | Op.SEARCH, import("zod").ZodObject<{
|
|
2
|
+
export declare const userLifecycleStateResourceSpecification: import("../../../_core").ResourceSpecificationConfig<Record<string, never>, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.CREATE | Op.LIST | Op.SEARCH, import("zod").ZodObject<{
|
|
3
3
|
currentStage: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodEnum<typeof LifecycleStage>>>>;
|
|
4
4
|
stageEnteredAt: import("zod").ZodDefault<import("zod").ZodCoercedDate<unknown>>;
|
|
5
5
|
stageHistory: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle-state.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/lifecycle-state.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,cAAc,EAMf,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"lifecycle-state.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/guidance/resources/lifecycle-state.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,cAAc,EAMf,MAAM,uBAAuB,CAAC;AAkY/B,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;iCAmBnD,CAAC;AAEF,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;iCAkB3D,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
|
3
3
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
4
4
|
import { CoreResourceOperation as Op, LifecycleStage, OrganizationLifecycleStateSchema, ResourcePrimaryScope, UserLifecycleStateSchema, organizationLifecycleStateResourceConfiguration_InitializationFactory as organizationLifecycleStateFactory, userLifecycleStateResourceConfiguration_InitializationFactory as userLifecycleStateFactory, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
6
7
|
const userLcUI = userLcPlatformSource;
|
|
7
8
|
const orgLcMainUI = orgLcMainSource;
|
|
8
9
|
const orgLcAdminUI = orgLcAdminSource;
|
|
@@ -77,6 +78,7 @@ const userLifecycleBase = resourceSpecification(userLifecycleStateFactory, UserL
|
|
|
77
78
|
businessRole: 'Drives “activation”, “dormant”, and churn messaging independent of billing state — a product-semantic lifecycle layer.',
|
|
78
79
|
lifecycleRole: 'The state begins automatically at sign-up, evolves from application-defined activity, and remains readable as the user moves through activation, engagement, dormancy and reactivation.',
|
|
79
80
|
audience: LabelAudience.ADMIN,
|
|
81
|
+
subDomain: EngineResourceSubDomain.GUIDANCE,
|
|
80
82
|
codeHandling: {
|
|
81
83
|
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'UserLifecycleStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
82
84
|
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'userLifecycleStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
@@ -113,7 +115,7 @@ const userLifecycleBase = resourceSpecification(userLifecycleStateFactory, UserL
|
|
|
113
115
|
elementType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },
|
|
114
116
|
}),
|
|
115
117
|
userId: schemaShape.userId.foreignKeySpec({
|
|
116
|
-
meaning: 'The owning user this lifecycle state
|
|
118
|
+
meaning: 'The owning user this lifecycle state record tracks; immutable after create.',
|
|
117
119
|
whyItMatters: 'Scopes READ/SEARCH through the user-self access strategy so a user can never read another user’s lifecycle state.',
|
|
118
120
|
importance: FieldSemanticImportance.PRIMARY,
|
|
119
121
|
}),
|
|
@@ -167,7 +169,7 @@ const userLifecycleBase = resourceSpecification(userLifecycleStateFactory, UserL
|
|
|
167
169
|
purpose: 'Internal system creation of the first lifecycle row (INTERNAL_CALL, isDefault): eager-seeded via the USERS → USER_LIFECYCLE_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by lifecycle jobs via the repository tier. Not a member-facing route.',
|
|
168
170
|
outcome: 'Initial stage row for subsequent transitions.',
|
|
169
171
|
responseStatuses: [
|
|
170
|
-
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The first lifecycle state
|
|
172
|
+
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The first lifecycle state record was materialized for the user.' },
|
|
171
173
|
],
|
|
172
174
|
// INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by lifecycle jobs via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.
|
|
173
175
|
idempotent: false,
|
|
@@ -186,7 +188,7 @@ const userLifecycleBase = resourceSpecification(userLifecycleStateFactory, UserL
|
|
|
186
188
|
outcome: 'The caller receives a paginated collection containing the user’s lifecycle row when it has been materialized.',
|
|
187
189
|
whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',
|
|
188
190
|
responseStatuses: [
|
|
189
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of user lifecycle
|
|
191
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of user lifecycle records for analytics/triage when a route wires search.' },
|
|
190
192
|
],
|
|
191
193
|
errorScenarios: [
|
|
192
194
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated user session for the lifecycle search context.' },
|
|
@@ -203,7 +205,7 @@ const userLifecycleBase = resourceSpecification(userLifecycleStateFactory, UserL
|
|
|
203
205
|
purpose: 'Repository-only teardown of the user lifecycle state row when its owning user is deleted (composition `onParentDelete` cascade).',
|
|
204
206
|
outcome: 'The singleton state row is removed together with the user — the composition part does not outlive its whole.',
|
|
205
207
|
responseStatuses: [
|
|
206
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The user lifecycle state
|
|
208
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The user lifecycle state record was deleted as part of the owning user’s deletion cascade.' },
|
|
207
209
|
],
|
|
208
210
|
// REPOSITORY_ONLY variant (super-admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.
|
|
209
211
|
idempotent: true,
|
|
@@ -218,6 +220,7 @@ const organizationLifecycleBase = resourceSpecification(organizationLifecycleSta
|
|
|
218
220
|
businessRole: 'Org-wide cohorts for CSM, marketing automation, and success dashboards — not the same as `ORGANIZATION` subscription status in billing.',
|
|
219
221
|
lifecycleRole: 'The state begins automatically when the organization is created, evolves from organization activity, and remains readable as the tenant moves through activation, engagement, dormancy and reactivation.',
|
|
220
222
|
audience: LabelAudience.ADMIN,
|
|
223
|
+
subDomain: EngineResourceSubDomain.GUIDANCE,
|
|
221
224
|
codeHandling: {
|
|
222
225
|
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationLifecycleStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
223
226
|
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationLifecycleStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
@@ -240,7 +243,7 @@ const organizationLifecycleBase = resourceSpecification(organizationLifecycleSta
|
|
|
240
243
|
[LifecycleStage.ENGAGED]: { meaning: 'Healthy ongoing usage in line with the model.' },
|
|
241
244
|
[LifecycleStage.DORMANT]: { meaning: 'Low recent usage — candidate for reactivation or downgrade discussions.' },
|
|
242
245
|
[LifecycleStage.REACTIVATED]: { meaning: 'Returned to engagement after a dormant period.' },
|
|
243
|
-
[LifecycleStage.CHURNED]: { meaning: 'Churned or lapsed in lifecycle terms even if a billing
|
|
246
|
+
[LifecycleStage.CHURNED]: { meaning: 'Churned or lapsed in lifecycle terms even if a billing record still exists in edge cases.' },
|
|
244
247
|
[LifecycleStage.OFFBOARDED]: { meaning: 'Explicitly closed or deprovisioned in lifecycle terms.' },
|
|
245
248
|
},
|
|
246
249
|
}),
|
|
@@ -254,7 +257,7 @@ const organizationLifecycleBase = resourceSpecification(organizationLifecycleSta
|
|
|
254
257
|
elementType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'LifecycleStage', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },
|
|
255
258
|
}),
|
|
256
259
|
organizationId: schemaShape.organizationId.foreignKeySpec({
|
|
257
|
-
meaning: 'The owning organization this lifecycle state
|
|
260
|
+
meaning: 'The owning organization this lifecycle state record tracks; immutable after create.',
|
|
258
261
|
whyItMatters: 'Scopes READ/SEARCH through the org access strategy so a tenant can never read another tenant’s lifecycle state.',
|
|
259
262
|
importance: FieldSemanticImportance.PRIMARY,
|
|
260
263
|
}),
|
|
@@ -308,7 +311,7 @@ const organizationLifecycleBase = resourceSpecification(organizationLifecycleSta
|
|
|
308
311
|
purpose: 'Internal system creation of the first org lifecycle row (INTERNAL_CALL, isDefault): eager-seeded via the ORGANIZATIONS → ORGANIZATION_LIFECYCLE_STATE `onParentCreate` composition lifecycle (createAsSystem), and created on demand by lifecycle services via the repository tier. Not a member-facing route.',
|
|
309
312
|
outcome: 'Initial stage in `SIGNED_UP` or configured default in implementation.',
|
|
310
313
|
responseStatuses: [
|
|
311
|
-
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The first lifecycle state
|
|
314
|
+
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The first lifecycle state record was materialized for the org (default `SIGNED_UP` or configured initial stage).' },
|
|
312
315
|
],
|
|
313
316
|
// INTERNAL_CALL variant (isDefault) — the service tier createAsSystem resolves for the onParentCreate seed; also created by lifecycle services via the variant-agnostic repository tier. Not a public HTTP endpoint, so no client-facing 400/403/404 are documented.
|
|
314
317
|
idempotent: false,
|
|
@@ -327,7 +330,7 @@ const organizationLifecycleBase = resourceSpecification(organizationLifecycleSta
|
|
|
327
330
|
outcome: 'The caller receives a paginated collection containing the organization’s lifecycle row when it has been materialized.',
|
|
328
331
|
whenToUse: 'Use only when a collection envelope is more convenient than the singleton READ representation. This operation has no free-text searchable fields.',
|
|
329
332
|
responseStatuses: [
|
|
330
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org lifecycle
|
|
333
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of org lifecycle records for admin discovery when a route wires search.' },
|
|
331
334
|
],
|
|
332
335
|
errorScenarios: [
|
|
333
336
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no authenticated org-member session for the lifecycle search context.' },
|
|
@@ -344,7 +347,7 @@ const organizationLifecycleBase = resourceSpecification(organizationLifecycleSta
|
|
|
344
347
|
purpose: 'Repository-only teardown of the organization lifecycle state row when its owning organization is deleted (composition `onParentDelete` cascade).',
|
|
345
348
|
outcome: 'The singleton state row is removed together with the organization — the composition part does not outlive its whole.',
|
|
346
349
|
responseStatuses: [
|
|
347
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The organization lifecycle state
|
|
350
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The organization lifecycle state record was deleted as part of the owning organization’s deletion cascade.' },
|
|
348
351
|
],
|
|
349
352
|
// REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.
|
|
350
353
|
idempotent: true,
|