@wildo-ai/saas-specifications 1.1.3 → 1.1.5
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/assurance/external-framework-mapping.json +1228 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +34 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js +66 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts +3 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +48 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +201 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +306 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +304 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js +314 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -0
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +2 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js +4 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +5 -4
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.js +4 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +5 -4
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +7 -4
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-audience.schemas.d.ts +31 -0
- package/dist/esm/_core/brand/brand-audience.schemas.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-audience.schemas.js +29 -0
- package/dist/esm/_core/brand/brand-audience.schemas.js.map +1 -0
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +4 -4
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +12 -9
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-logo-direction.schemas.js +12 -7
- package/dist/esm/_core/brand/brand-logo-direction.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot-validation.js +1 -8
- package/dist/esm/_core/brand/brand-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -12
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +7 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.js +12 -1
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +252 -2
- 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 +19 -1
- 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 +121 -1
- 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 +215 -2
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +703 -14
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +536 -7
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +82 -2
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +3 -3
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +4 -3
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +4 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +36 -0
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js +52 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +22 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +89 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts +3 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js +26 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +141 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +147 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +160 -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 +124 -4
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +95 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js +85 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +743 -14
- 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 +699 -22
- 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 +98 -6
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +197 -8
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +64 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +283 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.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 +30 -1
- 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.js +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +220 -4
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +149 -2
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +70 -3
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +75 -3
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +14 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js +13 -0
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.d.ts +6 -4
- package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.js +7 -5
- package/dist/esm/_core/cross-registry-assertions.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +5 -4
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +5 -2
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +30 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +99 -6
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +58 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +71 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +37 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.js +83 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +78 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +285 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +293 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -0
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +9 -2
- 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 +7 -0
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts +18 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js +21 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js.map +1 -0
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +19 -0
- 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 +23 -0
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.registry.js +22 -1
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +64 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +27 -27
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +6 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -15
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +12 -11
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +16 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +16 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +52 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +50 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts +27 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.js +63 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +52 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +168 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +170 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -0
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts +6 -5
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.js +5 -2
- package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.js +4 -1
- package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +11 -9
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.js +13 -10
- package/dist/esm/_core/market/market-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js +4 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-channel.schemas.d.ts +6 -5
- package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.js +6 -3
- package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.js +4 -1
- package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts +12 -11
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +12 -9
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.js +4 -1
- package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.js +5 -2
- package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.js +4 -1
- package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.js +4 -1
- package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.js +5 -2
- package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-proof.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.js +4 -1
- package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +54 -54
- package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js +4 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.js +4 -1
- package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +25 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +27 -22
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -12
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +21 -21
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +30 -16
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +34 -12
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +24 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +78 -47
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +62 -24
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +19 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.js +0 -20
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -2
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -4
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js +3 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +8 -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-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +2 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +5 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js +1 -8
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +2 -2
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.js +4 -2
- package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
- package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision.family-aspects.js +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +45 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +55 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts +37 -0
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-validation.js +77 -0
- package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js +35 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +194 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.js +193 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -0
- package/dist/esm/_core/zod-core-nameability.d.ts +47 -0
- package/dist/esm/_core/zod-core-nameability.d.ts.map +1 -0
- package/dist/esm/_core/zod-core-nameability.js +1 -0
- package/dist/esm/_core/zod-core-nameability.js.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +86 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +96 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +139 -34
- 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 +182 -11
- 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 +71 -2
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +88 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts +14 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.js +17 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.js +25 -1
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +14 -48
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +52 -52
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +209 -495
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +257 -534
- 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 +10 -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 +10 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +73 -8
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +103 -8
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +24 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +1 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +24 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -0
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +49 -0
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +51 -0
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/application-document-release-set.schemas.d.ts +161 -0
- package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/application-document-release-set.schemas.js +138 -0
- package/dist/esm/assurance/application-document-release-set.schemas.js.map +1 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.d.ts +28 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.js +58 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.js.map +1 -0
- package/dist/esm/assurance/application-risk-register.schemas.d.ts +172 -0
- package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-register.schemas.js +192 -0
- package/dist/esm/assurance/application-risk-register.schemas.js.map +1 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +177 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-signals.derivations.js +229 -0
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +257 -13
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +836 -69
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +99 -33
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js +38 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +99 -8
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +133 -41
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +60 -11
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +470 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +451 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +0 -33
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +3339 -159
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +21 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +21 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +32 -2
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +148 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +257 -14
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +588 -45
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +32 -8
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js +288 -10
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +1182 -333
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +460 -68
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +70 -2
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +17 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +17 -0
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +205 -3
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.js +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -1
- package/dist/esm/assurance/document-release-set.family-aspects.d.ts +11 -0
- package/dist/esm/assurance/document-release-set.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-release-set.family-aspects.js +36 -0
- package/dist/esm/assurance/document-release-set.family-aspects.js.map +1 -0
- package/dist/esm/assurance/governed-document-release.d.ts +211 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -0
- package/dist/esm/assurance/governed-document-release.js +314 -0
- package/dist/esm/assurance/governed-document-release.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +5 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +5 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +135 -11
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.d.ts +1 -1
- package/dist/esm/engine/_bootstrap.js +1 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +0 -23
- 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 +110 -28
- 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 +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +57 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +412 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/index.d.ts +2 -0
- package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/index.js +2 -0
- package/dist/esm/engine/auth/resources/index.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +4 -4
- 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 +57 -6
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts +9 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js +141 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +4 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +10 -6
- package/dist/esm/engine/auth/resources/organization-provider-credentials.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 +5 -4
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts +4 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js +129 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts +19 -7
- 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 +24 -13
- 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 +0 -40
- 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 +14 -27
- 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 +8 -2
- 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 +16 -3
- 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 +5 -2
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +10 -16
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +15 -5
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts +9 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js +164 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts +14 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +124 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js +123 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts +11 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js +172 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/index.d.ts +4 -0
- package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/index.js +4 -0
- package/dist/esm/engine/billing/resources/index.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +3 -3
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +3 -3
- package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +92 -36
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +77 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +375 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +1 -1
- package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +2 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +16 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +183 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -0
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +28 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +123 -19
- package/dist/esm/engine/errors/error-messages.specification.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 +2 -1
- 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 +1 -0
- 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 +4 -1
- 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 +15 -3
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -0
- 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 +1 -1
- 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/provider-call-records.resource.specification.d.ts +14 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +184 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js +18 -0
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js +21 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +82 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +6 -5
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.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 +4 -2
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +21 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js +20 -2
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js +177 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js +10 -2
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js +166 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js +122 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js +152 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js +13 -0
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js +92 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +29 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +12 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +40 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts +25 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js +16 -2
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts +9 -0
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js +91 -7
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js +9 -3
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js +41 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js +19 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +21 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +2 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +48 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +3 -2
- 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 +77 -3
- 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 +11 -3
- 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 +26 -1
- 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 +17 -8
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +49 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +293 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +5 -5
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +6 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +3 -3
- package/dist/esm/engine/notifications/system-emails/security.system-emails.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-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +3 -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 +27 -5
- 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 +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 +31 -12
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js +12 -1
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +12 -1
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.js +12 -1
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js +22 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +10 -1
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/index.d.ts +4 -3
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +6 -4
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +5 -3
- 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 +2 -2
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +2 -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 +2 -2
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -0
- 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 +8 -3
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +2 -2
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -2
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/index.d.ts +39 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +39 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +134 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +142 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +35 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js +45 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts +33 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.js +77 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts +3 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js +40 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +122 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +138 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -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 +7 -15
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +14 -0
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +16 -3
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/esm/technical-documentation.exports.d.ts +4 -0
- package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
- package/dist/esm/technical-documentation.exports.js +24 -0
- package/dist/esm/technical-documentation.exports.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -13
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -103
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +0 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js +0 -76
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js.map +0 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +0 -108
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +0 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +0 -119
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +0 -1
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts +0 -3
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +0 -1
- package/dist/esm/application-creation-playbook-runtime.exports.js +0 -3
- package/dist/esm/application-creation-playbook-runtime.exports.js.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anonymous-users.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/anonymous-users.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,qCAAqC,IAAI,2CAA2C,EACpF,oCAAoC,IAAI,0CAA0C,GACnF,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,gCAAgC,EAChC,yDAAyD,IAAI,qBAAqB,EAClF,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,GACrB,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;AAM3E,MAAM,oCAAoC,GAAG,0CAI5C,CAAC;AAEF,MAAM,qCAAqC,GAAG,2CAI7C,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,8CAA8C,CAC/F,mCAAmC,CACjC,6BAA6B,CAAC,oCAAoC,CAAC,EACnE,6BAA6B,CAAC,qCAAqC,CAAC,CACrE,EACD,qBAAqB,CACnB,qBAAqB,EACrB,mBAAmB,EACnB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CA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iBACzF;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,oEAAoE;YAC7E,SAAS,EAAE,sFAAsF;SAClG;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,sEAAsE;YAC/E,SAAS,EAAE,kEAAkE;SAC9E;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `anonymous_users` — Wildo SaaS engine specification (mixed).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/users/anonymous-users.shared.schema.ts → `AnonymousUserSchema`\n * - Factory: engine/saas-models/src/users/anonymous-users.shared.resources-config.schemas.ts\n * - Custom operations: none (core CRUD only)\n * - Presets: `anonymousUsersMainResourceUIBehavior` + `anonymousUsersAdminResourceUIBehavior` from\n * `engine/presets-components/src/config/resources/identity.resource-presets.tsx`\n */\n\nimport {\n anonymousUsersAdminResourceUIBehavior as anonymousUsersAdminResourceUIBehaviorSource,\n anonymousUsersMainResourceUIBehavior as anonymousUsersMainResourceUIBehaviorSource,\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 {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AnonymousUserSchema,\n AnonymousUserTranspositionStatus,\n anonymousUsersResourceConfiguration_InitializationFactory as anonymousUsersFactory,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\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 AnonymousUsersConfig = ReturnType<typeof anonymousUsersFactory>;\ntype AnonymousUsersCoreOp = AnonymousUsersConfig['coreOperations'][number];\ntype AnonymousUsersSchema = AnonymousUsersConfig['mainSchema'];\n\nconst anonymousUsersMainResourceUIBehavior = anonymousUsersMainResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n undefined,\n AnonymousUsersCoreOp,\n AnonymousUsersSchema\n>;\n\nconst anonymousUsersAdminResourceUIBehavior = anonymousUsersAdminResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n undefined,\n AnonymousUsersCoreOp,\n AnonymousUsersSchema\n>;\n\nexport const anonymousUsersResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(anonymousUsersMainResourceUIBehavior),\n resourceFrontendConfiguration(anonymousUsersAdminResourceUIBehavior),\n ),\n resourceSpecification(\n anonymousUsersFactory,\n AnonymousUserSchema,\n ({ schemaShape }) => ({\n purpose: 'Anchor pre-authentication marketing sessions: privacy posture, first-touch metadata, and transposition into a real user.',\n businessRole: 'The anonymous side of the identity graph — every visitor gets a row before sign-up, tied to rate limits, inbound leads, and UTM context.',\n lifecycleRole: 'Created at session start, updated as privacy or transposition state changes, retained for audit unless compliance demands erasure.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AnonymousUserSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'anonymousUsersResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ANONYMOUS_USERS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'anonymousUsersMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'anonymousUsersAdminResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: [\n 'No `userNotifications[]` on any operation — the runtime has no comms fan-out; do not add communications.* blocks (DF-1).',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Server-minted MongoDB storage id (ObjectId). Internal only — the anonymous user’s relational identity is `uuidRef`, not this. Child FKs and the session JWT never carry `_id`.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n uuidRef: schemaShape.uuidRef.stringSpec({\n meaning: 'Client-generated session UUID — the anonymous user’s relational identity. The `anonymousUserId` FK on child resources, the session JWT, and the `/anonymous-users/{uuidRef}/…` nested routes all key off this, never `_id`.',\n whyItMatters: 'Carries the same anonymous identity across origins (marketing site → app, which have separate localStorage) and across page reload / 24h JWT expiry; being an unguessable random UUID it can be safely presented at init to re-adopt an existing session.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'Per-session marketing and processing consent for anonymous browsing.',\n whyItMatters: 'Demonstrates the visitor agreed to the anonymous data policy before personalization or lead capture.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userAgent: schemaShape.userAgent.stringSpec({\n meaning: 'Optional browser or client fingerprint string captured for fraud and support triage.',\n }),\n\n ipHash: schemaShape.ipHash.stringSpec({\n meaning: 'One-way hash of the client IP for rate limiting without storing raw PII in hot paths.',\n semanticRole: 'code',\n }),\n\n marketingMetadata: schemaShape.marketingMetadata.objectSpec({\n meaning: 'First-touch UTM, campaign, and path attribution — backend-only, joined server-side to leads.',\n whyItMatters: 'Powers “how did you hear about us” without duplicating the payload on `InboundContact` rows.',\n }),\n\n convertedToUserId: schemaShape.convertedToUserId.stringSpec({\n meaning: 'Wildo `users` id once the same anonymous session completes signup or login transposition.',\n semanticRole: 'identifier',\n }),\n\n transpositionStatus: schemaShape.transpositionStatus.enumSpec({\n meaning: 'Whether the anonymous record has been fully linked to a user account, partially, or is still pending.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AnonymousUserTranspositionStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AnonymousUserTranspositionStatus.PENDING]: { meaning: 'Session exists but no successful ownership transfer yet.' },\n [AnonymousUserTranspositionStatus.PARTIAL]: { meaning: 'Some linkage (e.g. lead record) without a full user account.' },\n [AnonymousUserTranspositionStatus.COMPLETE]: { meaning: 'The visitor became an authenticated `users` record and FKs are coherent.' },\n },\n }),\n\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the anonymous anchor record was first created (session start).',\n temporalRole: 'creation',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Internal provisioning of a new anonymous anchor when a session is minted.',\n outcome: 'The platform can attach rate limits, lead rows, and marketing metadata to a stable id.',\n whenToUse: 'Repository or system services — not a public unauthenticated CRUD in production.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new anonymous anchor record is minted with a stable id that rate limits, leads, and marketing metadata can attach to.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The provisioning payload (privacy posture, forensic fields) fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Mint an anonymous session anchor',\n request: {\n uuidRef: '550e8400-e29b-41d4-a716-446655440000',\n privacy: { dataProcessingConsent: 'basic' },\n userAgent: 'Mozilla/5.0 (…)',\n },\n response: {\n _id: '507f1f77bcf86cd799439011',\n uuidRef: '550e8400-e29b-41d4-a716-446655440000',\n transpositionStatus: AnonymousUserTranspositionStatus.PENDING,\n createdAt: '2026-06-15T10:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.READ]: {\n purpose: 'Super-admin inspection of an anonymous anchor row by its `_id`.',\n outcome: 'Operators can verify transposition, privacy, and forensic fields during investigations.',\n whenToUse: 'Super-admin investigation only. NOT an anonymous self-read: the session reaches its owned data via the nested `/anonymous-users/{uuidRef}/…` routes and validates via the JWT; a direct read resolves by `_id`, which is a server ObjectId, not the session `uuidRef`.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The anonymous anchor record was found and its transposition/privacy/forensic fields are returned (marketing metadata stays backend-only).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No anonymous anchor exists for the supplied `_id` (the session expired, was purged, or never existed).' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Administrative directory of recent anonymous visitors for support and anti-abuse review.',\n outcome: 'Operators can page session anchors in recency order within admin consoles.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of recent anonymous session anchors in recency order.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a super-admin; the global anonymous-visitor directory is never exposed to org-level operators (see businessConstraints).' },\n ],\n idempotent: true,\n },\n [Op.UPDATE]: {\n purpose: 'Internal mutation of transposition, privacy, or metadata during session upgrades.',\n outcome: 'The record reflects the latest ownership and compliance state after backend flows.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The anonymous record’s transposition/privacy/metadata was updated and the latest state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The mutated fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No anonymous anchor exists for the supplied id.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A transposition mutation conflicts with existing ownership — e.g. `convertedToUserId` is already set to a different user, so re-binding the session to another identity is rejected.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Remove an anonymous row under compliance or when sessions are purged after retention policy.',\n outcome: 'The visitor anchor no longer exists — downstream FKs (e.g. leads) must already be nullified or re-bound.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The anonymous anchor was deleted under retention/compliance; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the super-admin / compliance role required to purge an anonymous anchor.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No anonymous anchor exists for the supplied id (or it was already purged).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Dependent rows (e.g. `InboundContact` leads) still reference this anchor and must be nullified or re-bound before the anchor can be removed.' },\n ],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Marketing metadata is backend-only at rest — it never ships to the generic READ DTO; companion prompts must not assume client-visible UTM without checking runtime serialization.',\n 'LIST is super-admin only in the main runtime variants — do not expose unfiltered global anonymous lists to org-level operators.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ANONYMOUS },\n ),\n () => ({\n layout: {\n purpose: 'Group anonymous-visitor inspection into session health, compliance, and forensic slices.',\n displayPurpose: 'Let admins review state without exposing more PII than the preset sections already surface.',\n summaryPurpose: 'Show transposition and creation time in compact list rows.',\n sections: {\n overview: {\n purpose: 'Surface transposition and lifecycle timestamps for triage at a glance.',\n whenToUse: 'First panel when opening an anonymous visitor detail.',\n textSlots: {\n title: { purpose: 'Label the “session overview” card.' },\n description: { purpose: 'Explain that this block shows conversion progress and when the row was created.' },\n },\n },\n privacy: {\n purpose: 'Show consent captured for the anonymous relationship.',\n whenToUse: 'When validating GDPR/marketing opt-in for the session.',\n textSlots: {\n title: { purpose: 'Label the privacy and consent area.' },\n description: { purpose: 'Clarify that this is the anonymous visitor’s policy posture, not the post-signup `users` privacy document.' },\n },\n },\n context: {\n purpose: 'Optional forensic context (user agent, IP hash) for support and abuse investigations.',\n whenToUse: 'When correlating a session with WAF or rate-limit logs.',\n textSlots: {\n title: { purpose: 'Label the forensic / technical context section.' },\n description: { purpose: 'State that these fields may be redacted in some deployments.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: {\n purpose: 'Read-only anonymous session inspection in the super-admin context.',\n whenToUse: 'When a platform operator inspects a specific anonymous anchor during investigations.',\n },\n [Op.LIST]: {\n purpose: 'Admin-only list of anonymous session anchors for operational review.',\n whenToUse: 'When a platform operator triages sign-up funnel issues or fraud.',\n },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"anonymous-users.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/anonymous-users.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,qCAAqC,IAAI,2CAA2C,EACpF,oCAAoC,IAAI,0CAA0C,GACnF,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,gCAAgC,EAChC,yDAAyD,IAAI,qBAAqB,EAClF,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,GACrB,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;AAM3E,MAAM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AAE,EAAE,OAAO,EAAE,qCAAqC,EAAE;oBACzD,WAAW,EAAE,EAAE,OAAO,EAAE,4GAA4G,EAAE;iBACvI;aACF;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,uFAAuF;gBAChG,SAAS,EAAE,yDAAyD;gBACpE,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,iDAAiD,EAAE;oBACrE,WAAW,EAAE,EAAE,OAAO,EAAE,8DAA8D,EAAE;iBACzF;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,oEAAoE;YAC7E,SAAS,EAAE,sFAAsF;SAClG;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,sEAAsE;YAC/E,SAAS,EAAE,kEAAkE;SAC9E;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `anonymous_users` — Wildo SaaS engine specification (mixed).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/users/anonymous-users.shared.schema.ts → `AnonymousUserSchema`\n * - Factory: engine/saas-models/src/users/anonymous-users.shared.resources-config.schemas.ts\n * - Custom operations: none (core CRUD only)\n * - Presets: `anonymousUsersMainResourceUIBehavior` + `anonymousUsersAdminResourceUIBehavior` from\n * `engine/presets-components/src/config/resources/identity.resource-presets.tsx`\n */\n\nimport {\n anonymousUsersAdminResourceUIBehavior as anonymousUsersAdminResourceUIBehaviorSource,\n anonymousUsersMainResourceUIBehavior as anonymousUsersMainResourceUIBehaviorSource,\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 {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AnonymousUserSchema,\n AnonymousUserTranspositionStatus,\n anonymousUsersResourceConfiguration_InitializationFactory as anonymousUsersFactory,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\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 AnonymousUsersConfig = ReturnType<typeof anonymousUsersFactory>;\ntype AnonymousUsersCoreOp = AnonymousUsersConfig['coreOperations'][number];\ntype AnonymousUsersSchema = AnonymousUsersConfig['mainSchema'];\n\nconst anonymousUsersMainResourceUIBehavior = anonymousUsersMainResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n undefined,\n AnonymousUsersCoreOp,\n AnonymousUsersSchema\n>;\n\nconst anonymousUsersAdminResourceUIBehavior = anonymousUsersAdminResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n undefined,\n AnonymousUsersCoreOp,\n AnonymousUsersSchema\n>;\n\nexport const anonymousUsersResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(anonymousUsersMainResourceUIBehavior),\n resourceFrontendConfiguration(anonymousUsersAdminResourceUIBehavior),\n ),\n resourceSpecification(\n anonymousUsersFactory,\n AnonymousUserSchema,\n ({ schemaShape }) => ({\n purpose: 'Anchor pre-authentication marketing sessions: privacy posture, first-touch metadata, and transposition into a real user.',\n businessRole: 'The anonymous side of the identity graph — every visitor gets a row before sign-up, tied to rate limits, inbound leads, and UTM context.',\n lifecycleRole: 'Created at session start, updated as privacy or transposition state changes, retained for audit unless compliance demands erasure.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AnonymousUserSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'anonymousUsersResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ANONYMOUS_USERS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'anonymousUsersMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'anonymousUsersAdminResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: [\n 'No `userNotifications[]` on any operation — the runtime has no comms fan-out; do not add communications.* blocks (DF-1).',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Server-minted MongoDB storage id (ObjectId). Internal only — the anonymous user’s relational identity is `uuidRef`, not this. Child FKs and the session JWT never carry `_id`.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n uuidRef: schemaShape.uuidRef.stringSpec({\n meaning: 'Client-generated session UUID — the anonymous user’s relational identity. The `anonymousUserId` FK on child resources, the session JWT, and the `/anonymous-users/{uuidRef}/…` nested routes all key off this, never `_id`.',\n whyItMatters: 'Carries the same anonymous identity across origins (marketing site → app, which have separate localStorage) and across page reload / 24h JWT expiry; being an unguessable random UUID it can be safely presented at init to re-adopt an existing session.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'The optional purposes this anonymous visitor granted, as a set, and when they decided — empty and undecided until they choose.',\n whyItMatters: 'Demonstrates the visitor agreed to the anonymous data policy before personalization or lead capture.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userAgent: schemaShape.userAgent.stringSpec({\n meaning: 'Optional browser or client fingerprint string captured for fraud and support triage.',\n }),\n\n ipHash: schemaShape.ipHash.stringSpec({\n meaning: 'One-way hash of the client IP for rate limiting without storing raw PII in hot paths.',\n semanticRole: 'code',\n }),\n\n marketingMetadata: schemaShape.marketingMetadata.objectSpec({\n meaning: 'First-touch UTM, campaign, and path attribution — backend-only, joined server-side to leads.',\n whyItMatters: 'Powers “how did you hear about us” without duplicating the payload on `InboundContact` rows.',\n }),\n\n convertedToUserId: schemaShape.convertedToUserId.stringSpec({\n meaning: 'Wildo `users` id once the same anonymous session completes signup or login transposition.',\n semanticRole: 'identifier',\n }),\n\n transpositionStatus: schemaShape.transpositionStatus.enumSpec({\n meaning: 'Whether the anonymous record has been fully linked to a user account, partially, or is still pending.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AnonymousUserTranspositionStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AnonymousUserTranspositionStatus.PENDING]: { meaning: 'Session exists but no successful ownership transfer yet.' },\n [AnonymousUserTranspositionStatus.PARTIAL]: { meaning: 'Some linkage (e.g. lead record) without a full user account.' },\n [AnonymousUserTranspositionStatus.COMPLETE]: { meaning: 'The visitor became an authenticated `users` record and FKs are coherent.' },\n },\n }),\n\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the anonymous anchor record was first created (session start).',\n temporalRole: 'creation',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Internal provisioning of a new anonymous anchor when a session is minted.',\n outcome: 'The platform can attach rate limits, lead rows, and marketing metadata to a stable id.',\n whenToUse: 'Repository or system services — not a public unauthenticated CRUD in production.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new anonymous anchor record is minted with a stable id that rate limits, leads, and marketing metadata can attach to.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The provisioning payload (privacy posture, forensic fields) fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Mint an anonymous session anchor',\n request: {\n uuidRef: '550e8400-e29b-41d4-a716-446655440000',\n privacy: { consentedPurposes: [] },\n userAgent: 'Mozilla/5.0 (…)',\n },\n response: {\n _id: '507f1f77bcf86cd799439011',\n uuidRef: '550e8400-e29b-41d4-a716-446655440000',\n transpositionStatus: AnonymousUserTranspositionStatus.PENDING,\n createdAt: '2026-06-15T10:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.READ]: {\n purpose: 'Super-admin inspection of an anonymous anchor row by its `_id`.',\n outcome: 'Operators can verify transposition, privacy, and forensic fields during investigations.',\n whenToUse: 'Super-admin investigation only. NOT an anonymous self-read: the session reaches its owned data via the nested `/anonymous-users/{uuidRef}/…` routes and validates via the JWT; a direct read resolves by `_id`, which is a server ObjectId, not the session `uuidRef`.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The anonymous anchor record was found and its transposition/privacy/forensic fields are returned (marketing metadata stays backend-only).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No anonymous anchor exists for the supplied `_id` (the session expired, was purged, or never existed).' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Administrative directory of recent anonymous visitors for support and anti-abuse review.',\n outcome: 'Operators can page session anchors in recency order within admin consoles.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of recent anonymous session anchors in recency order.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a super-admin; the global anonymous-visitor directory is never exposed to org-level operators (see businessConstraints).' },\n ],\n idempotent: true,\n },\n [Op.UPDATE]: {\n purpose: 'Internal mutation of transposition, privacy, or metadata during session upgrades.',\n outcome: 'The record reflects the latest ownership and compliance state after backend flows.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The anonymous record’s transposition/privacy/metadata was updated and the latest state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The mutated fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No anonymous anchor exists for the supplied id.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A transposition mutation conflicts with existing ownership — e.g. `convertedToUserId` is already set to a different user, so re-binding the session to another identity is rejected.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Remove an anonymous row under compliance or when sessions are purged after retention policy.',\n outcome: 'The visitor anchor no longer exists — downstream FKs (e.g. leads) must already be nullified or re-bound.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The anonymous anchor was deleted under retention/compliance; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the super-admin / compliance role required to purge an anonymous anchor.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No anonymous anchor exists for the supplied id (or it was already purged).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Dependent rows (e.g. `InboundContact` leads) still reference this anchor and must be nullified or re-bound before the anchor can be removed.' },\n ],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Marketing metadata is backend-only at rest — it never ships to the generic READ DTO; companion prompts must not assume client-visible UTM without checking runtime serialization.',\n 'LIST is super-admin only in the main runtime variants — do not expose unfiltered global anonymous lists to org-level operators.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ANONYMOUS },\n ),\n () => ({\n layout: {\n purpose: 'Group anonymous-visitor inspection into session health, compliance, and forensic slices.',\n displayPurpose: 'Let admins review state without exposing more PII than the preset sections already surface.',\n summaryPurpose: 'Show transposition and creation time in compact list rows.',\n sections: {\n overview: {\n purpose: 'Surface transposition and lifecycle timestamps for triage at a glance.',\n whenToUse: 'First panel when opening an anonymous visitor detail.',\n textSlots: {\n title: { purpose: 'Label the “session overview” card.' },\n description: { purpose: 'Explain that this block shows conversion progress and when the row was created.' },\n },\n },\n privacy: {\n purpose: 'Show consent captured for the anonymous relationship.',\n whenToUse: 'When validating GDPR/marketing opt-in for the session.',\n textSlots: {\n title: { purpose: 'Label the privacy and consent area.' },\n description: { purpose: 'Clarify that this is the anonymous visitor’s policy posture, not the post-signup `users` privacy document.' },\n },\n },\n context: {\n purpose: 'Optional forensic context (user agent, IP hash) for support and abuse investigations.',\n whenToUse: 'When correlating a session with WAF or rate-limit logs.',\n textSlots: {\n title: { purpose: 'Label the forensic / technical context section.' },\n description: { purpose: 'State that these fields may be redacted in some deployments.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: {\n purpose: 'Read-only anonymous session inspection in the super-admin context.',\n whenToUse: 'When a platform operator inspects a specific anonymous anchor during investigations.',\n },\n [Op.LIST]: {\n purpose: 'Admin-only list of anonymous session anchors for operational review.',\n whenToUse: 'When a platform operator triages sign-up funnel issues or fraud.',\n },\n },\n }),\n);\n"]}
|
|
@@ -22,7 +22,8 @@ export declare const inboundContactsResourceSpecification: import("../../../_cor
|
|
|
22
22
|
createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>>;
|
|
23
23
|
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>;
|
|
24
24
|
privacy: import("zod").ZodObject<{
|
|
25
|
-
|
|
25
|
+
consentedPurposes: import("zod").ZodDefault<import("zod").ZodArray<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ConsentPurpose>>>>;
|
|
26
|
+
consentDecidedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
26
27
|
}, import("zod/v4/core").$strip>;
|
|
27
28
|
}, import("zod/v4/core").$strip>>;
|
|
28
29
|
//# sourceMappingURL=inbound-contacts.resource.specification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-contacts.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/inbound-contacts.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,4BAA4B,EAI7B,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"inbound-contacts.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/inbound-contacts.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,4BAA4B,EAI7B,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;iCAqPhD,CAAC"}
|
|
@@ -116,7 +116,7 @@ export const inboundContactsResourceSpecification = resourceSpecification(inboun
|
|
|
116
116
|
temporalRole: 'modified',
|
|
117
117
|
}),
|
|
118
118
|
privacy: schemaShape.privacy.objectSpec({
|
|
119
|
-
meaning: '
|
|
119
|
+
meaning: 'The optional purposes this lead granted — for example marketing, when they tick the opt-in — as a set, and when they decided. Legal document acceptance is a separate governed-document record, never stored here.',
|
|
120
120
|
whyItMatters: 'Demonstrates the visitor accepted marketing and processing terms, distinct from the platform-wide `users` privacy record.',
|
|
121
121
|
importance: FieldSemanticImportance.PRIMARY,
|
|
122
122
|
}),
|
|
@@ -143,7 +143,7 @@ export const inboundContactsResourceSpecification = resourceSpecification(inboun
|
|
|
143
143
|
email: 'jordan@example.com',
|
|
144
144
|
firstName: 'Jordan',
|
|
145
145
|
lastName: 'Lee',
|
|
146
|
-
privacy: {
|
|
146
|
+
privacy: { consentedPurposes: ['marketing'], consentDecidedAt: '2026-09-01T09:00:00.000Z' },
|
|
147
147
|
},
|
|
148
148
|
response: {
|
|
149
149
|
_id: 'inboundcontact_01HX2…',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbound-contacts.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/inbound-contacts.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,4BAA4B,EAC5B,oBAAoB,EACpB,0DAA0D,EAC1D,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,CAAC,MAAM,oCAAoC,GAAG,qBAAqB,CACvE,0DAA0D,EAC1D,oBAAoB,EACpB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,sKAAsK;IAC/K,YAAY,EAAE,yJAAyJ;IACvK,aAAa,EAAE,0IAA0I;IACzJ,QAAQ,EAAE,aAAa,CAAC,KAAK;IAC7B,SAAS,EAAE,uBAAuB,CAAC,KAAK;IACxC,YAAY,EAAE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ACjB;KACF;IAED,mBAAmB,EAAE;QACnB,4JAA4J;QAC5J,iNAAiN;KAClN;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `inboundContacts` — Wildo SaaS engine specification (backend-only).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/users/inbound-contacts.shared.schemas.ts → `InboundContactSchema`\n * - Factory: engine/saas-models/src/users/inbound-contacts.shared.resources-config.schemas.ts\n * → `inboundContactsResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (read surfaces live in a marketing / admin app; no `resourceUIBehavior` in presets-components for this type).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n InboundContactEmailUserMatch,\n InboundContactSchema,\n inboundContactsResourceConfiguration_InitializationFactory,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nexport const inboundContactsResourceSpecification = resourceSpecification(\n inboundContactsResourceConfiguration_InitializationFactory,\n InboundContactSchema,\n ({ schemaShape }) => ({\n purpose: 'Capture public marketing leads (contact forms) as first-class records tied to an anonymous session and later transposed to a user account when the visitor signs up.',\n businessRole: 'The APPLICATION-scoped lead log that powers marketing follow-up, CRM sync, and privacy consent tracking without mixing attribution into the row itself.',\n lifecycleRole: 'Created anonymously, optionally linked to a `users` id after conversion, and rarely deleted except by compliance or super-admin cleanup.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'InboundContactSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'inboundContactsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'INBOUND_CONTACTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'Attribution (UTM, landing path) intentionally lives on `AnonymousUser` — this row only stores lead identity and privacy consent.',\n 'CREATE declares no `userNotifications`: the `INBOUND_CONTACT` target has no email-by-target implementation in the dispatcher (it is wired only for the WEBSOCKET channel), so this spec asserts no email delivery on create.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary id for a single inbound lead record.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n email: schemaShape.email.stringSpec({\n meaning: 'Email address the visitor submitted (validated at the schema layer as an email).',\n whyItMatters: 'Primary business contact channel and dedup candidate for the marketing org.',\n importance: FieldSemanticImportance.PRIMARY,\n semanticRole: 'identifier',\n }),\n\n firstName: schemaShape.firstName.stringSpec({\n meaning: 'Optional given name for personalization in follow-up comms.',\n }),\n\n lastName: schemaShape.lastName.stringSpec({\n meaning: 'Optional family name for CRM exports and personalized outreach.',\n }),\n\n phone: schemaShape.phone.stringSpec({\n meaning: 'Optional phone capture when the public form includes it — policy-dependent.',\n semanticRole: 'identifier',\n }),\n\n anonymousUserId: schemaShape.anonymousUserId.foreignKeySpec({\n meaning: 'Foreign key to the `AnonymousUser` (pre-auth session) that submitted this lead, carrying first-touch marketing attribution (UTM, referrer, landing path) on the session side.',\n whyItMatters:\n 'Join key to the `AnonymousUser` record for campaign attribution — that context stays on the session row, not duplicated on the lead. Nullable and cleared to `null` by the transposition hook once the visitor converts and `userId` is set; `excludeFromCreate` in the Zod layer, so the controller injects it from the execution context, never the client.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the authenticated Wildo `users` record after the same anonymous visitor converts — auto-set by anonymous-session transposition. `null` for leads that never converted; distinct from the manually-linked `relatedUserId`.',\n whyItMatters: 'Records the resolved authenticated identity for a converted lead, populated by `AnonymousSessionBackendService` transposition rather than on the initial anonymous CREATE — the durable link from lead capture to a real user account.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n relatedUserId: schemaShape.relatedUserId.stringSpec({\n meaning: 'Manually associated existing customer when sales/support links a lead to another profile.',\n whyItMatters: 'Not the auto-transpose path — it encodes a human CRM decision and may differ from `userId`. `excludeFromCreate` in the Zod layer: set ONLY post-create by a sales/support admin via a privileged update, never on the public anonymous CREATE — otherwise an unauthenticated visitor could forge a lead’s association to an arbitrary user.',\n semanticRole: 'identifier',\n }),\n\n emailUserMatch: schemaShape.emailUserMatch.enumSpec({\n meaning: 'Capture-time triage signal: did the lead email already belong to an existing user, and was that user active? A hint for sales dedup/prioritisation — NOT an ownership link (never sets userId).',\n whyItMatters: 'Backend-only (`isBackendOnly`) precisely so it is never returned to the anonymous submitter — exposing it would make lead capture an account-enumeration oracle. Only admin/analytics (internal DTO) surfaces read it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'InboundContactEmailUserMatch',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [InboundContactEmailUserMatch.NONE]: { meaning: 'No existing user carried this email at capture time.' },\n [InboundContactEmailUserMatch.ACTIVE_USER]: { meaning: 'Email matched an existing user whose lifecycle status is ACTIVE.' },\n [InboundContactEmailUserMatch.INACTIVE_USER]: { meaning: 'Email matched an existing but non-active user (inactive / suspended / pending / deleted).' },\n },\n }),\n\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'Creation timestamp for dedup windows and list ordering. Persisted as a `Date` (`z.date()`); serialized ISO-8601 on the wire.',\n temporalRole: 'creation',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'Last mutation time for the lead record (transposition, support edits, etc.).',\n temporalRole: 'modified',\n }),\n\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'Per-record consent to data processing and legal approvals required for the marketing use-case in the host jurisdiction.',\n whyItMatters: 'Demonstrates the visitor accepted marketing and processing terms, distinct from the platform-wide `users` privacy record.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Create a new inbound lead from the public site while an anonymous session is active.',\n outcome: 'A lead row is persisted and marketing can follow up from the admin console.',\n whenToUse: 'Call from the rate-limited anonymous public endpoint after validating captcha/anti-spam as required by the host app.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The lead was captured and persisted with a server-assigned id; marketing follow-up can proceed.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The submitted email is malformed/missing, or the public form payload otherwise fails schema validation or anti-spam pre-checks.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.TOO_MANY_REQUESTS_429, when: 'The anonymous session or source IP exceeded the per-window submission cap declared on the CREATE variant; the public form must back off and retry later.' },\n ],\n idempotent: false,\n rateLimitNote: 'Public, unauthenticated lead capture is rate-limited per anonymous session / source IP (cap declared on the CREATE variant in saas-models) to absorb form-spam and scripted abuse.',\n examples: [\n {\n title: 'Capture a public contact-form lead',\n request: {\n email: 'jordan@example.com',\n firstName: 'Jordan',\n lastName: 'Lee',\n privacy: { dataProcessingConsent: 'marketing' },\n },\n response: {\n _id: 'inboundcontact_01HX2…',\n email: 'jordan@example.com',\n firstName: 'Jordan',\n lastName: 'Lee',\n anonymousUserId: 'anon_01HX2…',\n createdAt: '2026-06-15T10:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n\n [Op.READ]: {\n purpose: 'Read one lead row in the admin marketing console.',\n outcome: 'Editors can inspect the submitted profile, state flags, and privacy consents for follow-up calls.',\n whenToUse: 'Use when a marketing operator opens a lead detail from search results.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The lead record was found and its DTO (profile, state flags, privacy consents) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the marketing-editor / admin role; lead detail is an operator console surface, not a public read.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No inbound-contact row exists for the supplied id in the application scope.' },\n ],\n idempotent: true,\n },\n\n [Op.LIST]: {\n purpose: 'Paginate the lead inbox with default recency sort.',\n outcome: 'Operators can triage a queue of new inbound contacts within the application.',\n whenToUse: 'Use in dashboard views bound to the marketing editor role surface.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of inbound-contact records in recency order.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the marketing-editor / admin role required to browse the lead inbox.' },\n ],\n idempotent: true,\n },\n\n [Op.SEARCH]: {\n purpose: 'Filter leads by free-text, email, or time windows depending on the runtime searchable fields.',\n outcome: 'Operators can narrow the population for campaigns or support investigations without exporting raw data.',\n whenToUse: 'Use when a human already knows a fragment of a lead’s identity and needs a targeted match set.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of inbound-contact records matching the search/filter query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the marketing-editor / admin role required to query the lead population.' },\n ],\n idempotent: true,\n },\n\n [Op.UPDATE]: {\n purpose: 'Internal-only transposition and manual fixes — `INTERNAL_CALL` (not a public “edit my lead” API).',\n outcome: 'The row’s `userId` / `anonymousUserId` transition or operator corrections are persisted for audit.',\n whenToUse: 'Use in `AnonymousSessionBackendService` when ownership transposes, or in maintenance scripts under super-admin control.',\n notes: [\n 'The runtime does not surface a public marketing “edit my submission” experience — keep updates rare and system-driven.',\n ],\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The lead record was patched (transposition FK move or operator correction) and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a trusted internal service / super-admin; this op is `INTERNAL_CALL`, never a public edit path.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No inbound-contact row exists for the supplied id in the application scope.' },\n ],\n idempotent: true,\n },\n\n [Op.DELETE]: {\n purpose: 'Permanently remove a lead when a super-admin or compliance workflow demands erasure.',\n outcome: 'The marketing database no longer holds the PII for that id.',\n whenToUse: 'Use only for GDPR/DSR workflows or when duplicative junk rows must be purged with audit approval.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The lead record was permanently erased; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the super-admin / compliance role required to erase a lead row.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No inbound-contact row exists for the supplied id (or it was already erased).' },\n ],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Rate limiting on CREATE is declared on the resource variant in saas-models — respect those limits in any new controller path that triggers this operation.',\n 'Because scope is `APPLICATION`, org membership alone does not partition leads — the application must add app-specific filters (campaign id, org id on host object, etc.) if multi-tenant marketing is required.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"inbound-contacts.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/inbound-contacts.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,4BAA4B,EAC5B,oBAAoB,EACpB,0DAA0D,EAC1D,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,CAAC,MAAM,oCAAoC,GAAG,qBAAqB,CACvE,0DAA0D,EAC1D,oBAAoB,EACpB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,sKAAsK;IAC/K,YAAY,EAAE,yJAAyJ;IACvK,aAAa,EAAE,0IAA0I;IACzJ,QAAQ,EAAE,aAAa,CAAC,KAAK;IAC7B,SAAS,EAAE,uBAAuB,CAAC,KAAK;IACxC,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE,cAAc,CAAC,MAAM;YACjC,eAAe,EAAE,mBAAmB,CAAC,UAAU;SAChD;QACD,eAAe,EAAE;YACf,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,4DAA4D;YACxE,UAAU,EAAE,cAAc,CAAC,OAAO;YAClC,eAAe,EAAE,mBAAmB,CAAC,QAAQ;SAC9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AAE,yHAAyH;YACpI,KAAK,EAAE;gBACL,wHAAwH;aACzH;YACD,UAAU,EAAE,uBAAuB,CAAC,OAAO;YAC3C,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,gHAAgH,EAAE;aACnK;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,eAAe,EAAE,IAAI,EAAE,4CAA4C,EAAE,SAAS,EAAE,mBAAmB,EAAE;gBACpI,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,mHAAmH,EAAE;gBACzK,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,6EAA6E,EAAE;aACpI;YACD,UAAU,EAAE,IAAI;SACjB;QAED,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,sFAAsF;YAC/F,OAAO,EAAE,6DAA6D;YACtE,SAAS,EAAE,mGAAmG;YAC9G,UAAU,EAAE,uBAAuB,CAAC,OAAO;YAC3C,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,cAAc,EAAE,OAAO,EAAE,8DAA8D,EAAE;aACzH;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,kFAAkF,EAAE;gBACxI,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,+EAA+E,EAAE;aACtI;YACD,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,4JAA4J;QAC5J,iNAAiN;KAClN;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `inboundContacts` — Wildo SaaS engine specification (backend-only).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/users/inbound-contacts.shared.schemas.ts → `InboundContactSchema`\n * - Factory: engine/saas-models/src/users/inbound-contacts.shared.resources-config.schemas.ts\n * → `inboundContactsResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (read surfaces live in a marketing / admin app; no `resourceUIBehavior` in presets-components for this type).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n InboundContactEmailUserMatch,\n InboundContactSchema,\n inboundContactsResourceConfiguration_InitializationFactory,\n ResourcePrimaryScope,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nexport const inboundContactsResourceSpecification = resourceSpecification(\n inboundContactsResourceConfiguration_InitializationFactory,\n InboundContactSchema,\n ({ schemaShape }) => ({\n purpose: 'Capture public marketing leads (contact forms) as first-class records tied to an anonymous session and later transposed to a user account when the visitor signs up.',\n businessRole: 'The APPLICATION-scoped lead log that powers marketing follow-up, CRM sync, and privacy consent tracking without mixing attribution into the row itself.',\n lifecycleRole: 'Created anonymously, optionally linked to a `users` id after conversion, and rarely deleted except by compliance or super-admin cleanup.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'InboundContactSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'inboundContactsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'INBOUND_CONTACTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'Attribution (UTM, landing path) intentionally lives on `AnonymousUser` — this row only stores lead identity and privacy consent.',\n 'CREATE declares no `userNotifications`: the `INBOUND_CONTACT` target has no email-by-target implementation in the dispatcher (it is wired only for the WEBSOCKET channel), so this spec asserts no email delivery on create.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary id for a single inbound lead record.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n email: schemaShape.email.stringSpec({\n meaning: 'Email address the visitor submitted (validated at the schema layer as an email).',\n whyItMatters: 'Primary business contact channel and dedup candidate for the marketing org.',\n importance: FieldSemanticImportance.PRIMARY,\n semanticRole: 'identifier',\n }),\n\n firstName: schemaShape.firstName.stringSpec({\n meaning: 'Optional given name for personalization in follow-up comms.',\n }),\n\n lastName: schemaShape.lastName.stringSpec({\n meaning: 'Optional family name for CRM exports and personalized outreach.',\n }),\n\n phone: schemaShape.phone.stringSpec({\n meaning: 'Optional phone capture when the public form includes it — policy-dependent.',\n semanticRole: 'identifier',\n }),\n\n anonymousUserId: schemaShape.anonymousUserId.foreignKeySpec({\n meaning: 'Foreign key to the `AnonymousUser` (pre-auth session) that submitted this lead, carrying first-touch marketing attribution (UTM, referrer, landing path) on the session side.',\n whyItMatters:\n 'Join key to the `AnonymousUser` record for campaign attribution — that context stays on the session row, not duplicated on the lead. Nullable and cleared to `null` by the transposition hook once the visitor converts and `userId` is set; `excludeFromCreate` in the Zod layer, so the controller injects it from the execution context, never the client.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the authenticated Wildo `users` record after the same anonymous visitor converts — auto-set by anonymous-session transposition. `null` for leads that never converted; distinct from the manually-linked `relatedUserId`.',\n whyItMatters: 'Records the resolved authenticated identity for a converted lead, populated by `AnonymousSessionBackendService` transposition rather than on the initial anonymous CREATE — the durable link from lead capture to a real user account.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n relatedUserId: schemaShape.relatedUserId.stringSpec({\n meaning: 'Manually associated existing customer when sales/support links a lead to another profile.',\n whyItMatters: 'Not the auto-transpose path — it encodes a human CRM decision and may differ from `userId`. `excludeFromCreate` in the Zod layer: set ONLY post-create by a sales/support admin via a privileged update, never on the public anonymous CREATE — otherwise an unauthenticated visitor could forge a lead’s association to an arbitrary user.',\n semanticRole: 'identifier',\n }),\n\n emailUserMatch: schemaShape.emailUserMatch.enumSpec({\n meaning: 'Capture-time triage signal: did the lead email already belong to an existing user, and was that user active? A hint for sales dedup/prioritisation — NOT an ownership link (never sets userId).',\n whyItMatters: 'Backend-only (`isBackendOnly`) precisely so it is never returned to the anonymous submitter — exposing it would make lead capture an account-enumeration oracle. Only admin/analytics (internal DTO) surfaces read it.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'InboundContactEmailUserMatch',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [InboundContactEmailUserMatch.NONE]: { meaning: 'No existing user carried this email at capture time.' },\n [InboundContactEmailUserMatch.ACTIVE_USER]: { meaning: 'Email matched an existing user whose lifecycle status is ACTIVE.' },\n [InboundContactEmailUserMatch.INACTIVE_USER]: { meaning: 'Email matched an existing but non-active user (inactive / suspended / pending / deleted).' },\n },\n }),\n\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'Creation timestamp for dedup windows and list ordering. Persisted as a `Date` (`z.date()`); serialized ISO-8601 on the wire.',\n temporalRole: 'creation',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'Last mutation time for the lead record (transposition, support edits, etc.).',\n temporalRole: 'modified',\n }),\n\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'The optional purposes this lead granted — for example marketing, when they tick the opt-in — as a set, and when they decided. Legal document acceptance is a separate governed-document record, never stored here.',\n whyItMatters: 'Demonstrates the visitor accepted marketing and processing terms, distinct from the platform-wide `users` privacy record.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Create a new inbound lead from the public site while an anonymous session is active.',\n outcome: 'A lead row is persisted and marketing can follow up from the admin console.',\n whenToUse: 'Call from the rate-limited anonymous public endpoint after validating captcha/anti-spam as required by the host app.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The lead was captured and persisted with a server-assigned id; marketing follow-up can proceed.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The submitted email is malformed/missing, or the public form payload otherwise fails schema validation or anti-spam pre-checks.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.TOO_MANY_REQUESTS_429, when: 'The anonymous session or source IP exceeded the per-window submission cap declared on the CREATE variant; the public form must back off and retry later.' },\n ],\n idempotent: false,\n rateLimitNote: 'Public, unauthenticated lead capture is rate-limited per anonymous session / source IP (cap declared on the CREATE variant in saas-models) to absorb form-spam and scripted abuse.',\n examples: [\n {\n title: 'Capture a public contact-form lead',\n request: {\n email: 'jordan@example.com',\n firstName: 'Jordan',\n lastName: 'Lee',\n privacy: { consentedPurposes: ['marketing'], consentDecidedAt: '2026-09-01T09:00:00.000Z' },\n },\n response: {\n _id: 'inboundcontact_01HX2…',\n email: 'jordan@example.com',\n firstName: 'Jordan',\n lastName: 'Lee',\n anonymousUserId: 'anon_01HX2…',\n createdAt: '2026-06-15T10:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n\n [Op.READ]: {\n purpose: 'Read one lead row in the admin marketing console.',\n outcome: 'Editors can inspect the submitted profile, state flags, and privacy consents for follow-up calls.',\n whenToUse: 'Use when a marketing operator opens a lead detail from search results.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The lead record was found and its DTO (profile, state flags, privacy consents) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the marketing-editor / admin role; lead detail is an operator console surface, not a public read.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No inbound-contact row exists for the supplied id in the application scope.' },\n ],\n idempotent: true,\n },\n\n [Op.LIST]: {\n purpose: 'Paginate the lead inbox with default recency sort.',\n outcome: 'Operators can triage a queue of new inbound contacts within the application.',\n whenToUse: 'Use in dashboard views bound to the marketing editor role surface.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of inbound-contact records in recency order.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the marketing-editor / admin role required to browse the lead inbox.' },\n ],\n idempotent: true,\n },\n\n [Op.SEARCH]: {\n purpose: 'Filter leads by free-text, email, or time windows depending on the runtime searchable fields.',\n outcome: 'Operators can narrow the population for campaigns or support investigations without exporting raw data.',\n whenToUse: 'Use when a human already knows a fragment of a lead’s identity and needs a targeted match set.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of inbound-contact records matching the search/filter query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the marketing-editor / admin role required to query the lead population.' },\n ],\n idempotent: true,\n },\n\n [Op.UPDATE]: {\n purpose: 'Internal-only transposition and manual fixes — `INTERNAL_CALL` (not a public “edit my lead” API).',\n outcome: 'The row’s `userId` / `anonymousUserId` transition or operator corrections are persisted for audit.',\n whenToUse: 'Use in `AnonymousSessionBackendService` when ownership transposes, or in maintenance scripts under super-admin control.',\n notes: [\n 'The runtime does not surface a public marketing “edit my submission” experience — keep updates rare and system-driven.',\n ],\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The lead record was patched (transposition FK move or operator correction) and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a trusted internal service / super-admin; this op is `INTERNAL_CALL`, never a public edit path.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No inbound-contact row exists for the supplied id in the application scope.' },\n ],\n idempotent: true,\n },\n\n [Op.DELETE]: {\n purpose: 'Permanently remove a lead when a super-admin or compliance workflow demands erasure.',\n outcome: 'The marketing database no longer holds the PII for that id.',\n whenToUse: 'Use only for GDPR/DSR workflows or when duplicative junk rows must be purged with audit approval.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The lead record was permanently erased; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the super-admin / compliance role required to erase a lead row.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No inbound-contact row exists for the supplied id (or it was already erased).' },\n ],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Rate limiting on CREATE is declared on the resource variant in saas-models — respect those limits in any new controller path that triggers this operation.',\n 'Because scope is `APPLICATION`, org membership alone does not partition leads — the application must add app-specific filters (campaign id, org id on host object, etc.) if multi-tenant marketing is required.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
@@ -20,6 +20,7 @@ export declare const userIdentityLinksResourceSpecification: import("../../../_c
|
|
|
20
20
|
providerDisplayName: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
21
21
|
providerAvatarUrl: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
22
22
|
providerRawProfile: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>>;
|
|
23
|
+
scimExternalId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
23
24
|
scopeType: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodEnum<typeof AuthScopeType>>>;
|
|
24
25
|
organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
25
26
|
applicationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity-links.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-identity-links.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,EACL,aAAa,EACb,qBAAqB,IAAI,EAAE,EAC3B,sBAAsB,EAEtB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"user-identity-links.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-identity-links.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,EACL,aAAa,EACb,qBAAqB,IAAI,EAAE,EAC3B,sBAAsB,EAEtB,iBAAiB,EAGlB,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;kCA4QlD,CAAC"}
|
|
@@ -17,7 +17,7 @@ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
|
17
17
|
export const userIdentityLinksResourceSpecification = resourceSpecification(userIdentityLinksResourceConfiguration_InitializationFactory, UserIdentityLinkSchema, ({ schemaShape }) => ({
|
|
18
18
|
purpose: 'Persist the OAuth/OIDC/SSO identity links that connect each managed user to their external provider identities (social or enterprise).',
|
|
19
19
|
businessRole: 'The per-user system-of-record for which IdP subjects map to a Wildo `users` row during login, provisioning, and SCIM flows.',
|
|
20
|
-
lifecycleRole: 'Rows are created on first link, updated when provider fields refresh, and timestamped for last use on every successful sign-in with that link.',
|
|
20
|
+
lifecycleRole: 'Rows are created on first link, updated when provider fields refresh, and timestamped for last use on every successful sign-in with that link. A row is removed with its user, with its SSO connection when that connection is deleted on its own, and, for an organization-scoped enterprise link, when its organization is purged; a link must never outlive the tenant it binds to, or the cross-organization SSO guard reads it as a live membership.',
|
|
21
21
|
audience: LabelAudience.END_USER,
|
|
22
22
|
subDomain: EngineResourceSubDomain.USERS,
|
|
23
23
|
codeHandling: {
|
|
@@ -93,6 +93,11 @@ export const userIdentityLinksResourceSpecification = resourceSpecification(user
|
|
|
93
93
|
whyItMatters: 'The lookup anchor when reconciling a returning login with the same external account.',
|
|
94
94
|
importance: FieldSemanticImportance.PRIMARY,
|
|
95
95
|
}),
|
|
96
|
+
scimExternalId: schemaShape.scimExternalId.stringSpec({
|
|
97
|
+
meaning: 'The identity directory’s own identifier for this person, as the SCIM `externalId` it sends. Present only on a link a directory maintains; absent on social and interactive sign-in links.',
|
|
98
|
+
whyItMatters: 'Deliberately SEPARATE from `providerUserId`, which is the authentication key a returning login is resolved by. RFC 7643 §3.1 makes `externalId` the client’s identifier for the service provider to store, while the provider’s own identifier is `id` — and directories derive it from mutable attributes (Microsoft Entra maps it from `mailNickname` by default), so storing it in the lookup anchor would re-key a live identity whenever an administrator renamed someone. It is a value to hand back to the directory, never one to resolve by.',
|
|
99
|
+
semanticRole: 'identifier',
|
|
100
|
+
}),
|
|
96
101
|
providerEmail: schemaShape.providerEmail.stringSpec({
|
|
97
102
|
meaning: 'Email the IdP attests for the user at link time, used for UI display and support correlation.',
|
|
98
103
|
whyItMatters: 'Often the human-readable handle operators see; may diverge from the Wildo account email in edge cases.',
|
|
@@ -127,7 +132,7 @@ export const userIdentityLinksResourceSpecification = resourceSpecification(user
|
|
|
127
132
|
}),
|
|
128
133
|
organizationId: schemaShape.organizationId.stringSpec({
|
|
129
134
|
meaning: 'The owning organization for an organization-scoped enterprise identity link.',
|
|
130
|
-
whyItMatters: 'Binds the identity to the same organization that owns membership and organization-type grants. Forbidden for social and application-scoped links.',
|
|
135
|
+
whyItMatters: 'Binds the identity to the same organization that owns membership and organization-type grants, and ties the link\'s life to that organization: purging it removes the link. Forbidden for social and application-scoped links.',
|
|
131
136
|
semanticRole: 'identifier',
|
|
132
137
|
}),
|
|
133
138
|
applicationId: schemaShape.applicationId.stringSpec({
|
|
@@ -173,7 +178,7 @@ export const userIdentityLinksResourceSpecification = resourceSpecification(user
|
|
|
173
178
|
[Op.READ]: {
|
|
174
179
|
purpose: 'Fetch one specific identity link row, typically through internal service calls when reconciling a provider subject.',
|
|
175
180
|
outcome: 'The caller can inspect the stored provider email, type, and connector metadata to finish auth or audit.',
|
|
176
|
-
whenToUse: 'Use when a backend flow already has the object id. The user-facing “list my links” door is `GET /auth/identity-links`, served by the authentication-method management controller, not a generic public READ
|
|
181
|
+
whenToUse: 'Use when a backend flow already has the object id. The user-facing “list my links” door is `GET /auth/identity-links`, served by the authentication-method management controller, not a generic public READ. Self-service unlinking uses the separate authenticated DELETE /auth/identity-links/:linkId door, which owns removal policy, reauthentication and the transactional remaining-first-factor check; a generic resource route does not carry those safeguards.',
|
|
177
182
|
importance: FieldSemanticImportance.PRIMARY,
|
|
178
183
|
responseStatuses: [
|
|
179
184
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The identity-link record was found and its provider metadata (email, type, connector ids) is returned.' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity-links.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-identity-links.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,qBAAqB,IAAI,EAAE,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,4DAA4D,GAC7D,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,CAAC,MAAM,sCAAsC,GAAG,qBAAqB,CACzE,4DAA4D,EAC5D,sBAAsB,EACtB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,wIAAwI;IACjJ,YAAY,EAAE,6HAA6H;IAC3I,aAAa,EAAE,gJAAgJ;IAC/J,QAAQ,EAAE,aAAa,CAAC,QAAQ;IAChC,SAAS,EAAE,uBAAuB,CAAC,KAAK;IACxC,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,wBAAwB;YACpC,UAAU,EAAE,cAAc,CAAC,MAAM;YACjC,eAAe,EAAE,mBAAmB,CAAC,UAAU;SAChD;QACD,eAAe,EAAE;YACf,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,8DAA8D;YAC1E,UAAU,EAAE,cAAc,CAAC,OAAO;YAClC,eAAe,EAAE,mBAAmB,CAAC,QAAQ;SAC9C;QACD,YAAY,EA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,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,kHAAkH;YAC3H,OAAO,EAAE,8FAA8F;YACvG,SAAS,EAAE,mGAAmG;YAC9G,UAAU,EAAE,uBAAuB,CAAC,OAAO;YAC3C,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,cAAc,EAAE,OAAO,EAAE,mJAAmJ,EAAE;aAC9M;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sHAAsH,EAAE;gBAC5K,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,2GAA2G,EAAE;aAClK;YACD,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,iMAAiM;QACjM,4PAA4P;KAC7P;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,CAAC","sourcesContent":["/**\n * Resource: `userIdentityLinks` — Wildo SaaS engine specification (backend-only).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/users/user-identity-links.shared.schemas.ts → `UserIdentityLinkSchema`\n * - Factory: engine/saas-models/src/users/user-identity-links.shared.resources-config.schemas.ts\n * → `userIdentityLinksResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (a dedicated read path exists for GET /auth/identity-links at the app layer, but no\n * engine `resourceUIBehavior` preset is registered in presets-components for this type).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AuthScopeType,\n CoreResourceOperation as Op,\n ExternalIdentitySource,\n ResourcePrimaryScope,\n SsoConnectionType,\n UserIdentityLinkSchema,\n userIdentityLinksResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nexport const userIdentityLinksResourceSpecification = resourceSpecification(\n userIdentityLinksResourceConfiguration_InitializationFactory,\n UserIdentityLinkSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the OAuth/OIDC/SSO identity links that connect each managed user to their external provider identities (social or enterprise).',\n businessRole: 'The per-user system-of-record for which IdP subjects map to a Wildo `users` row during login, provisioning, and SCIM flows.',\n lifecycleRole: 'Rows are created on first link, updated when provider fields refresh, and timestamped for last use on every successful sign-in with that link.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserIdentityLinkSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userIdentityLinksResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'USER_IDENTITY_LINKS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'All operations are `INTERNAL_CALL` in the resource config — the supported external read surface is the auth controller, not a generic CRUD controller.',\n 'No `userNotifications` / `m2mNotifications` on this resource; do not add communications.* blocks (invitation/alert emails are owned by adjacent services).',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for a single (user, provider, connection-type) link record stored in the identity-links collection.',\n whyItMatters: 'Deduplicates the identity-link upsert key used during JIT provisioning and IdP re-login.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The Wildo user that owns this external identity link.',\n whyItMatters: 'Drives the fan-out to “which app user is logging in from which IdP account”.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n connectionType: schemaShape.connectionType.enumSpec({\n meaning: 'Whether this link is a lightweight social sign-in or a stricter enterprise connector.',\n whyItMatters: 'Changes validation rules, admin UX, and whether an explicit enterprise scope is permitted.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoConnectionType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [SsoConnectionType.SOCIAL]: { meaning: 'Consumer or workspace-social IdP (no tenant-specific enterprise contract).' },\n [SsoConnectionType.ENTERPRISE]: { meaning: 'SAML/enterprise contract bound to exactly one organization or application scope.' },\n },\n }),\n\n providerRef: schemaShape.providerRef.stringSpec({\n meaning: 'Stable connector string for the provider family (e.g. google, microsoft, oidc, github).',\n whyItMatters: 'Picks the correct OIDC/SAML client configuration and certificate trust chain during login.',\n semanticRole: 'code',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n providerUserId: schemaShape.providerUserId.stringSpec({\n meaning: 'The end-user’s stable subject at the provider (IdP `sub` or directory object id, depending on IdP).',\n whyItMatters: 'The lookup anchor when reconciling a returning login with the same external account.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n providerEmail: schemaShape.providerEmail.stringSpec({\n meaning: 'Email the IdP attests for the user at link time, used for UI display and support correlation.',\n whyItMatters: 'Often the human-readable handle operators see; may diverge from the Wildo account email in edge cases.',\n semanticRole: 'identifier',\n }),\n\n providerDisplayName: schemaShape.providerDisplayName.stringSpec({\n meaning: 'Display name the IdP returned on last profile refresh, if any.',\n whyItMatters: 'Powers friendly UI in device/session lists and admin tooling when available.',\n }),\n\n providerAvatarUrl: schemaShape.providerAvatarUrl.stringSpec({\n meaning: 'Profile picture URL from the provider when the IdP includes one in claims.',\n whyItMatters: 'Improves UX without re-uploading a separate app avatar, when permitted by policy.',\n semanticRole: 'uri',\n }),\n\n providerRawProfile: schemaShape.providerRawProfile.objectSpec({\n meaning: 'Opaque provider claims map (`string` keys → `unknown` values) retained for support and debugging — not shown to the end user.',\n whyItMatters: 'Gives the auth team enough raw context to diagnose mapping bugs without a second data fetch; treated as operator-only and excluded from public APIs.',\n }),\n\n scopeType: schemaShape.scopeType.enumSpec({\n meaning: 'The exact tenant kind that owns an enterprise identity link; omitted for social links.',\n whyItMatters: 'Prevents application identifiers from being interpreted as organization identifiers by membership, grant, and audit logic.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuthScopeType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuthScopeType.ORGANIZATION]: { meaning: 'The link belongs to an organization-scoped enterprise connection.' },\n [AuthScopeType.APPLICATION]: { meaning: 'The link belongs to an application-scoped enterprise connection.' },\n },\n }),\n\n organizationId: schemaShape.organizationId.stringSpec({\n meaning: 'The owning organization for an organization-scoped enterprise identity link.',\n whyItMatters:\n 'Binds the identity to the same organization that owns membership and organization-type grants. Forbidden for social and application-scoped links.',\n semanticRole: 'identifier',\n }),\n\n applicationId: schemaShape.applicationId.stringSpec({\n meaning: 'The owning application for an application-scoped enterprise identity link.',\n whyItMatters:\n 'Preserves application tenancy without manufacturing an organization membership or overloading `organizationId`.',\n semanticRole: 'identifier',\n }),\n\n connectionId: schemaShape.connectionId.stringSpec({\n meaning: 'Enterprise connector record identifier inside the owning organization or application scope.',\n whyItMatters:\n 'Distinguishes multiple enterprise connectors in one scope and is required for enterprise links; social links omit it.',\n semanticRole: 'identifier',\n }),\n\n source: schemaShape.source.enumSpec({\n meaning: 'How this record was first established (OIDC, SAML, SCIM, …).',\n whyItMatters: 'Distinguishes interactive JIT links from service-driven SCIM or migration imports when auditing the graph.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ExternalIdentitySource',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ExternalIdentitySource.OAUTH2]: { meaning: 'Created through an OAuth 2.0 interactive flow that does not provide OpenID Connect identity semantics.' },\n [ExternalIdentitySource.OIDC]: { meaning: 'Created through an OpenID Connect interactive flow.' },\n [ExternalIdentitySource.SAML]: { meaning: 'Created through a SAML-based enterprise sign-in or assertion exchange.' },\n [ExternalIdentitySource.SCIM]: { meaning: 'Provisioned or reconciled from directory SCIM sync rather than a browser sign-in only.' },\n },\n }),\n\n linkedAt: schemaShape.linkedAt.dateSpec({\n meaning: 'When the provider first bound this `providerUserId` to the Wildo user (insert-time timestamp).',\n whyItMatters: 'Ordering field for “account linking history” views and compliance exports.',\n temporalRole: 'creation',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({\n meaning: 'The last successful sign-in (or link refresh) that used this exact identity link.',\n whyItMatters: 'Idle-link cleanup policies and support triage can rely on inactivity heuristics from this value.',\n temporalRole: 'occurred',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Fetch one specific identity link row, typically through internal service calls when reconciling a provider subject.',\n outcome: 'The caller can inspect the stored provider email, type, and connector metadata to finish auth or audit.',\n whenToUse: 'Use when a backend flow already has the object id. The user-facing “list my links” door is `GET /auth/identity-links`, served by the authentication-method management controller, not a generic public READ — that door is where the last-method guard and the re-authentication requirement live, which a resource route would not carry.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The identity-link record was found and its provider metadata (email, type, connector ids) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the owning user nor a trusted auth/admin service permitted to read another user’s provider bindings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id.' },\n ],\n idempotent: true,\n },\n\n [Op.LIST]: {\n purpose: 'List identity links (usually filtered by `userId`) to render settings pages or to audit provider coverage.',\n outcome: 'Operators or services receive the full set of provider bindings for a user in one query plan.',\n whenToUse: 'Use when the auth controller or admin service enumerates a user’s connected accounts. A person reading back their OWN links reaches `GET /auth/identity-links`, and removes one through `DELETE /auth/identity-links/:linkId`; both are already routed, so this operation is the persistence beneath them rather than a screen an application still has to build.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) set of the target user’s provider bindings is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller tries to enumerate another user’s links without the auth-controller / admin role; a user may only list their own connected accounts.' },\n ],\n idempotent: true,\n },\n\n [Op.CREATE]: {\n purpose: 'Insert a new identity link when a first-time OIDC or SAML sign-in or SCIM import introduces a new provider subject.',\n outcome: 'The Wildo user record gains a new stable mapping row that future sign-ins can hit without a migration.',\n whenToUse: 'Use in JIT account linking — never from untrusted public callers without a verified IdP attestation first.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new identity-link record binds the provider subject to the Wildo user; future sign-ins resolve through it without re-provisioning.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The link payload fails schema validation (e.g. missing provider subject fields, an incompatible connection/source pair, or enterprise scope coordinates that do not match `scopeType`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is an untrusted/public actor with no verified IdP attestation; JIT linking is gated to the auth service.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced `users` row does not exist, so there is no identity to bind the provider subject to.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This provider subject is already linked for the same connection type, provider, external subject, and exact enterprise scope/connection coordinates, so a second binding is rejected.' },\n ],\n idempotent: false,\n },\n\n [Op.UPDATE]: {\n purpose: 'Refresh profile metadata (email, name, raw claims) or move ownership fields after transposition/merge events.',\n outcome: 'The next login sees up-to-date provider data without re-creating a new link row id.',\n whenToUse: 'Use when a provider re-issues a subject change or when a manual data-fix adjusts enterprise connector ids.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The link’s provider metadata (or ownership fields after a merge) was refreshed and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The refreshed fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the auth-service / admin role required to mutate this identity link.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id.' },\n ],\n idempotent: true,\n },\n\n [Op.DELETE]: {\n purpose: 'Remove an identity link when a user explicitly disconnects a provider or an admin unlinks a compromised binding.',\n outcome: 'That provider can no longer authenticate into this Wildo user until a fresh link is created.',\n whenToUse: 'Use when policy demands removing a specific IdP mapping without deleting the entire user account.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The identity link was removed; that provider subject can no longer authenticate into the user until a fresh link is created. No body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the owning user disconnecting their own provider nor an admin unlinking a compromised binding.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id (the provider was never linked, or was already unlinked).' },\n ],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'The unique constraint at the data layer is `(userId, providerRef, connectionType)`; schema-level prose defers to the engine migration index because link-uniqueness is a database truth source.',\n 'Enterprise fields (`organizationId`, `connectionId`) are optional in the shared schema: social connections omit them while enterprise ones rely on them for tenant scoping — authors must not flatten those semantics in AI prompts into “always present”.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"user-identity-links.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-identity-links.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,qBAAqB,IAAI,EAAE,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,4DAA4D,GAC7D,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,CAAC,MAAM,sCAAsC,GAAG,qBAAqB,CACzE,4DAA4D,EAC5D,sBAAsB,EACtB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,wIAAwI;IACjJ,YAAY,EAAE,6HAA6H;IAC3I,aAAa,EAAE,2bAA2b;IAC1c,QAAQ,EAAE,aAAa,CAAC,QAAQ;IAChC,SAAS,EAAE,uBAAuB,CAAC,KAAK;IACxC,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,wBAAwB;YACpC,UAAU,EAAE,cAAc,CAAC,MAAM;YACjC,eAAe,EAAE,mBAAmB,CAAC,UAAU;SAChD;QACD,eAAe,EAAE;YACf,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,8DAA8D;YAC1E,UAAU,EAAE,cAAc,CAAC,OAAO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AAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,uFAAuF,EAAE;gBAC7I,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,kDAAkD,EAAE;aACzG;YACD,UAAU,EAAE,IAAI;SACjB;QAED,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,kHAAkH;YAC3H,OAAO,EAAE,8FAA8F;YACvG,SAAS,EAAE,mGAAmG;YAC9G,UAAU,EAAE,uBAAuB,CAAC,OAAO;YAC3C,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,cAAc,EAAE,OAAO,EAAE,mJAAmJ,EAAE;aAC9M;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sHAAsH,EAAE;gBAC5K,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,2GAA2G,EAAE;aAClK;YACD,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,iMAAiM;QACjM,4PAA4P;KAC7P;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,CAAC","sourcesContent":["/**\n * Resource: `userIdentityLinks` — Wildo SaaS engine specification (backend-only).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/users/user-identity-links.shared.schemas.ts → `UserIdentityLinkSchema`\n * - Factory: engine/saas-models/src/users/user-identity-links.shared.resources-config.schemas.ts\n * → `userIdentityLinksResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (a dedicated read path exists for GET /auth/identity-links at the app layer, but no\n * engine `resourceUIBehavior` preset is registered in presets-components for this type).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AuthScopeType,\n CoreResourceOperation as Op,\n ExternalIdentitySource,\n ResourcePrimaryScope,\n SsoConnectionType,\n UserIdentityLinkSchema,\n userIdentityLinksResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nexport const userIdentityLinksResourceSpecification = resourceSpecification(\n userIdentityLinksResourceConfiguration_InitializationFactory,\n UserIdentityLinkSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the OAuth/OIDC/SSO identity links that connect each managed user to their external provider identities (social or enterprise).',\n businessRole: 'The per-user system-of-record for which IdP subjects map to a Wildo `users` row during login, provisioning, and SCIM flows.',\n lifecycleRole: 'Rows are created on first link, updated when provider fields refresh, and timestamped for last use on every successful sign-in with that link. A row is removed with its user, with its SSO connection when that connection is deleted on its own, and, for an organization-scoped enterprise link, when its organization is purged; a link must never outlive the tenant it binds to, or the cross-organization SSO guard reads it as a live membership.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserIdentityLinkSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userIdentityLinksResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'USER_IDENTITY_LINKS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'All operations are `INTERNAL_CALL` in the resource config — the supported external read surface is the auth controller, not a generic CRUD controller.',\n 'No `userNotifications` / `m2mNotifications` on this resource; do not add communications.* blocks (invitation/alert emails are owned by adjacent services).',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for a single (user, provider, connection-type) link record stored in the identity-links collection.',\n whyItMatters: 'Deduplicates the identity-link upsert key used during JIT provisioning and IdP re-login.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The Wildo user that owns this external identity link.',\n whyItMatters: 'Drives the fan-out to “which app user is logging in from which IdP account”.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n connectionType: schemaShape.connectionType.enumSpec({\n meaning: 'Whether this link is a lightweight social sign-in or a stricter enterprise connector.',\n whyItMatters: 'Changes validation rules, admin UX, and whether an explicit enterprise scope is permitted.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoConnectionType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [SsoConnectionType.SOCIAL]: { meaning: 'Consumer or workspace-social IdP (no tenant-specific enterprise contract).' },\n [SsoConnectionType.ENTERPRISE]: { meaning: 'SAML/enterprise contract bound to exactly one organization or application scope.' },\n },\n }),\n\n providerRef: schemaShape.providerRef.stringSpec({\n meaning: 'Stable connector string for the provider family (e.g. google, microsoft, oidc, github).',\n whyItMatters: 'Picks the correct OIDC/SAML client configuration and certificate trust chain during login.',\n semanticRole: 'code',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n providerUserId: schemaShape.providerUserId.stringSpec({\n meaning: 'The end-user’s stable subject at the provider (IdP `sub` or directory object id, depending on IdP).',\n whyItMatters: 'The lookup anchor when reconciling a returning login with the same external account.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n scimExternalId: schemaShape.scimExternalId.stringSpec({\n meaning: 'The identity directory’s own identifier for this person, as the SCIM `externalId` it sends. Present only on a link a directory maintains; absent on social and interactive sign-in links.',\n whyItMatters: 'Deliberately SEPARATE from `providerUserId`, which is the authentication key a returning login is resolved by. RFC 7643 §3.1 makes `externalId` the client’s identifier for the service provider to store, while the provider’s own identifier is `id` — and directories derive it from mutable attributes (Microsoft Entra maps it from `mailNickname` by default), so storing it in the lookup anchor would re-key a live identity whenever an administrator renamed someone. It is a value to hand back to the directory, never one to resolve by.',\n semanticRole: 'identifier',\n }),\n\n providerEmail: schemaShape.providerEmail.stringSpec({\n meaning: 'Email the IdP attests for the user at link time, used for UI display and support correlation.',\n whyItMatters: 'Often the human-readable handle operators see; may diverge from the Wildo account email in edge cases.',\n semanticRole: 'identifier',\n }),\n\n providerDisplayName: schemaShape.providerDisplayName.stringSpec({\n meaning: 'Display name the IdP returned on last profile refresh, if any.',\n whyItMatters: 'Powers friendly UI in device/session lists and admin tooling when available.',\n }),\n\n providerAvatarUrl: schemaShape.providerAvatarUrl.stringSpec({\n meaning: 'Profile picture URL from the provider when the IdP includes one in claims.',\n whyItMatters: 'Improves UX without re-uploading a separate app avatar, when permitted by policy.',\n semanticRole: 'uri',\n }),\n\n providerRawProfile: schemaShape.providerRawProfile.objectSpec({\n meaning: 'Opaque provider claims map (`string` keys → `unknown` values) retained for support and debugging — not shown to the end user.',\n whyItMatters: 'Gives the auth team enough raw context to diagnose mapping bugs without a second data fetch; treated as operator-only and excluded from public APIs.',\n }),\n\n scopeType: schemaShape.scopeType.enumSpec({\n meaning: 'The exact tenant kind that owns an enterprise identity link; omitted for social links.',\n whyItMatters: 'Prevents application identifiers from being interpreted as organization identifiers by membership, grant, and audit logic.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuthScopeType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuthScopeType.ORGANIZATION]: { meaning: 'The link belongs to an organization-scoped enterprise connection.' },\n [AuthScopeType.APPLICATION]: { meaning: 'The link belongs to an application-scoped enterprise connection.' },\n },\n }),\n\n organizationId: schemaShape.organizationId.stringSpec({\n meaning: 'The owning organization for an organization-scoped enterprise identity link.',\n whyItMatters:\n 'Binds the identity to the same organization that owns membership and organization-type grants, and ties the link\\'s life to that organization: purging it removes the link. Forbidden for social and application-scoped links.',\n semanticRole: 'identifier',\n }),\n\n applicationId: schemaShape.applicationId.stringSpec({\n meaning: 'The owning application for an application-scoped enterprise identity link.',\n whyItMatters:\n 'Preserves application tenancy without manufacturing an organization membership or overloading `organizationId`.',\n semanticRole: 'identifier',\n }),\n\n connectionId: schemaShape.connectionId.stringSpec({\n meaning: 'Enterprise connector record identifier inside the owning organization or application scope.',\n whyItMatters:\n 'Distinguishes multiple enterprise connectors in one scope and is required for enterprise links; social links omit it.',\n semanticRole: 'identifier',\n }),\n\n source: schemaShape.source.enumSpec({\n meaning: 'How this record was first established (OIDC, SAML, SCIM, …).',\n whyItMatters: 'Distinguishes interactive JIT links from service-driven SCIM or migration imports when auditing the graph.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ExternalIdentitySource',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ExternalIdentitySource.OAUTH2]: { meaning: 'Created through an OAuth 2.0 interactive flow that does not provide OpenID Connect identity semantics.' },\n [ExternalIdentitySource.OIDC]: { meaning: 'Created through an OpenID Connect interactive flow.' },\n [ExternalIdentitySource.SAML]: { meaning: 'Created through a SAML-based enterprise sign-in or assertion exchange.' },\n [ExternalIdentitySource.SCIM]: { meaning: 'Provisioned or reconciled from directory SCIM sync rather than a browser sign-in only.' },\n },\n }),\n\n linkedAt: schemaShape.linkedAt.dateSpec({\n meaning: 'When the provider first bound this `providerUserId` to the Wildo user (insert-time timestamp).',\n whyItMatters: 'Ordering field for “account linking history” views and compliance exports.',\n temporalRole: 'creation',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({\n meaning: 'The last successful sign-in (or link refresh) that used this exact identity link.',\n whyItMatters: 'Idle-link cleanup policies and support triage can rely on inactivity heuristics from this value.',\n temporalRole: 'occurred',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Fetch one specific identity link row, typically through internal service calls when reconciling a provider subject.',\n outcome: 'The caller can inspect the stored provider email, type, and connector metadata to finish auth or audit.',\n whenToUse: 'Use when a backend flow already has the object id. The user-facing “list my links” door is `GET /auth/identity-links`, served by the authentication-method management controller, not a generic public READ. Self-service unlinking uses the separate authenticated DELETE /auth/identity-links/:linkId door, which owns removal policy, reauthentication and the transactional remaining-first-factor check; a generic resource route does not carry those safeguards.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The identity-link record was found and its provider metadata (email, type, connector ids) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the owning user nor a trusted auth/admin service permitted to read another user’s provider bindings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id.' },\n ],\n idempotent: true,\n },\n\n [Op.LIST]: {\n purpose: 'List identity links (usually filtered by `userId`) to render settings pages or to audit provider coverage.',\n outcome: 'Operators or services receive the full set of provider bindings for a user in one query plan.',\n whenToUse: 'Use when the auth controller or admin service enumerates a user’s connected accounts. A person reading back their OWN links reaches `GET /auth/identity-links`, and removes one through `DELETE /auth/identity-links/:linkId`; both are already routed, so this operation is the persistence beneath them rather than a screen an application still has to build.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) set of the target user’s provider bindings is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller tries to enumerate another user’s links without the auth-controller / admin role; a user may only list their own connected accounts.' },\n ],\n idempotent: true,\n },\n\n [Op.CREATE]: {\n purpose: 'Insert a new identity link when a first-time OIDC or SAML sign-in or SCIM import introduces a new provider subject.',\n outcome: 'The Wildo user record gains a new stable mapping row that future sign-ins can hit without a migration.',\n whenToUse: 'Use in JIT account linking — never from untrusted public callers without a verified IdP attestation first.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new identity-link record binds the provider subject to the Wildo user; future sign-ins resolve through it without re-provisioning.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The link payload fails schema validation (e.g. missing provider subject fields, an incompatible connection/source pair, or enterprise scope coordinates that do not match `scopeType`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is an untrusted/public actor with no verified IdP attestation; JIT linking is gated to the auth service.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced `users` row does not exist, so there is no identity to bind the provider subject to.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This provider subject is already linked for the same connection type, provider, external subject, and exact enterprise scope/connection coordinates, so a second binding is rejected.' },\n ],\n idempotent: false,\n },\n\n [Op.UPDATE]: {\n purpose: 'Refresh profile metadata (email, name, raw claims) or move ownership fields after transposition/merge events.',\n outcome: 'The next login sees up-to-date provider data without re-creating a new link row id.',\n whenToUse: 'Use when a provider re-issues a subject change or when a manual data-fix adjusts enterprise connector ids.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The link’s provider metadata (or ownership fields after a merge) was refreshed and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The refreshed fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the auth-service / admin role required to mutate this identity link.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id.' },\n ],\n idempotent: true,\n },\n\n [Op.DELETE]: {\n purpose: 'Remove an identity link when a user explicitly disconnects a provider or an admin unlinks a compromised binding.',\n outcome: 'That provider can no longer authenticate into this Wildo user until a fresh link is created.',\n whenToUse: 'Use when policy demands removing a specific IdP mapping without deleting the entire user account.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The identity link was removed; that provider subject can no longer authenticate into the user until a fresh link is created. No body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the owning user disconnecting their own provider nor an admin unlinking a compromised binding.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id (the provider was never linked, or was already unlinked).' },\n ],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'The unique constraint at the data layer is `(userId, providerRef, connectionType)`; schema-level prose defers to the engine migration index because link-uniqueness is a database truth source.',\n 'Enterprise fields (`organizationId`, `connectionId`) are optional in the shared schema: social connections omit them while enterprise ones rely on them for tenant scoping — authors must not flatten those semantics in AI prompts into “always present”.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n"]}
|
|
@@ -18,8 +18,8 @@ export const userPreferencesApiReferenceExample = {
|
|
|
18
18
|
inApp: true,
|
|
19
19
|
},
|
|
20
20
|
privacy: {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
consentedPurposes: ['analytics'],
|
|
22
|
+
consentDecidedAt: '2026-09-01T09:00:00.000Z',
|
|
23
23
|
},
|
|
24
24
|
ui: {
|
|
25
25
|
theme: 'AUTO',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-preferences-api-reference.examples.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-preferences-api-reference.examples.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,mBAAmB,CAAC;AACpE,MAAM,CAAC,MAAM,2BAA2B,GAAG,+BAA+B,CAAC;AAE3E,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,GAAG,EAAE,2BAA2B;IAChC,MAAM,EAAE,gCAAgC;IACxC,aAAa,EAAE;QACb,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,IAAI;KACZ;IACD,OAAO,EAAE;QACP,
|
|
1
|
+
{"version":3,"file":"user-preferences-api-reference.examples.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-preferences-api-reference.examples.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,mBAAmB,CAAC;AACpE,MAAM,CAAC,MAAM,2BAA2B,GAAG,+BAA+B,CAAC;AAE3E,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,GAAG,EAAE,2BAA2B;IAChC,MAAM,EAAE,gCAAgC;IACxC,aAAa,EAAE;QACb,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,IAAI;KACZ;IACD,OAAO,EAAE;QACP,iBAAiB,EAAE,CAAC,WAAW,CAAC;QAChC,gBAAgB,EAAE,0BAA0B;KAC7C;IACD,EAAE,EAAE;QACF,KAAK,EAAE,MAAM;KACd;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,cAAc;QACxB,UAAU,EAAE,YAAY;QACxB,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE,IAAI;KACb;IACD,mBAAmB,EAAE;QACnB,eAAe,EAAE,IAAI;QACrB,iBAAiB,EAAE,CAAC,IAAI,CAAC;QACzB,UAAU,EAAE,IAAI;QAChB,sBAAsB,EAAE,KAAK;KAC9B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,sCAAsC,GAAG;IACpD,MAAM,EAAE,gCAAgC;CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,GAAG,EAAE,kCAAkC,CAAC,GAAG;IAC3C,MAAM,EAAE,kCAAkC,CAAC,MAAM;IACjD,EAAE,EAAE,kCAAkC,CAAC,EAAE;IACzC,QAAQ,EAAE,kCAAkC,CAAC,QAAQ;IACrD,mBAAmB,EAAE,kCAAkC,CAAC,mBAAmB;CAC5E,CAAC","sourcesContent":["/**\n * Canonical wire examples for the two API doors onto the shared user-preferences rows.\n *\n * `USER_SELF_PREFERENCES` owns subject-facing read/update/reset operations and\n * `USER_PREFERENCES` owns administrator-addressed read/update operations. Both resolve to the\n * same persistence collection and the same `UserPreferencesSchema`, so duplicating payloads in\n * their specifications would let the published contracts drift while the runtime data does not.\n */\n\nexport const USER_PREFERENCES_EXAMPLE_USER_ID = 'user_01HX2EXAMPLE';\nexport const USER_PREFERENCES_EXAMPLE_ID = 'user_preferences_01HX2EXAMPLE';\n\nexport const userPreferencesApiReferenceExample = {\n _id: USER_PREFERENCES_EXAMPLE_ID,\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n notifications: {\n email: true,\n push: true,\n sms: false,\n inApp: true,\n },\n privacy: {\n consentedPurposes: ['analytics'],\n consentDecidedAt: '2026-09-01T09:00:00.000Z',\n },\n ui: {\n theme: 'AUTO',\n },\n regional: {\n timezone: 'Europe/Paris',\n dateFormat: 'DD/MM/YYYY',\n timeFormat: '24h',\n locale: 'fr',\n },\n languagePreferences: {\n primaryLanguage: 'fr',\n fallbackLanguages: ['en'],\n autoDetect: true,\n useOrganizationDefault: false,\n },\n};\n\nexport const userPreferencesApiReferencePathExample = {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n};\n\nexport const userPreferencesApiReferenceSummaryExample = {\n _id: userPreferencesApiReferenceExample._id,\n userId: userPreferencesApiReferenceExample.userId,\n ui: userPreferencesApiReferenceExample.ui,\n regional: userPreferencesApiReferenceExample.regional,\n languagePreferences: userPreferencesApiReferenceExample.languagePreferences,\n};\n"]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Schema: `UserPreferencesSchema` (same document shape as `userSelfPreferences`).
|
|
4
4
|
*/
|
|
5
5
|
import { CoreResourceOperation as Op } from '@wildo-ai/saas-models';
|
|
6
|
-
export declare const userPreferencesResourceSpecification: import("../../../_core").ResourceSpecificationConfig<
|
|
6
|
+
export declare const userPreferencesResourceSpecification: import("../../../_core").ResourceSpecificationConfig<typeof import("@wildo-ai/saas-models").UserPreferences_Operations, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.CREATE | Op.LIST, import("zod").ZodObject<{
|
|
7
7
|
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
8
8
|
userId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>>;
|
|
9
9
|
notifications: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
@@ -12,10 +12,10 @@ export declare const userPreferencesResourceSpecification: import("../../../_cor
|
|
|
12
12
|
sms: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
13
13
|
inApp: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
14
14
|
}, import("zod/v4/core").$strip>>>;
|
|
15
|
-
privacy: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, import("zod/v4/core").$strip
|
|
15
|
+
privacy: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
16
|
+
consentedPurposes: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").ConsentPurpose>>>>>;
|
|
17
|
+
consentDecidedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
18
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
19
19
|
ui: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
20
20
|
theme: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").UserTheme>>>;
|
|
21
21
|
}, import("zod/v4/core").$strip>>>;
|
|
@@ -124,7 +124,7 @@ export const userPreferencesResourceSpecification = resourceSpecificationFromFro
|
|
|
124
124
|
idempotent: false,
|
|
125
125
|
},
|
|
126
126
|
[Op.UPDATE]: {
|
|
127
|
-
purpose: 'Correct selected preference blocks for an addressed user through the application-administration API. This cross-subject operation requires `APP_ADMIN_SUPER_ADMIN`; ordinary user changes use `USER_SELF_PREFERENCES`.',
|
|
127
|
+
purpose: 'Correct selected preference blocks for an addressed user through the application-administration API. This cross-subject operation requires `APP_ADMIN_SUPER_ADMIN`; ordinary user changes use `USER_SELF_PREFERENCES`. Successful updates emit an audit event even below the automatic risk floor; marked privacy decision fields carry before/after values.',
|
|
128
128
|
outcome: 'The selected blocks are replaced on the same preference document used by the self-service API, and the addressed user receives the updated state.',
|
|
129
129
|
responseStatuses: [
|
|
130
130
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The addressed user’s preference document was updated and is returned.' },
|