@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":"siem-export-config.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-export-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,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,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,0BAA0B,EAC1B,eAAe,EACf,oCAAoC,GACrC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAa3E,SAAS,mBAAmB,CAC1B,MAAwC,EACxC,YAA8B,EAC9B,UAAkB;IAElB,MAAM,EAAE,GAAG,MAAM,CAAC,YAAY,CAA6B,CAAC;IAC5D,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,MAAM,IAAI,KAAK,CAAC,YAAY,YAAY,oBAAoB,UAAU,GAAG,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,8BAA8B,GAAmD;IACr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Content":["import {\n securityAdminPresets,\n securityMainPresets,\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 CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n SIEMEventCategory,\n SIEMEventFormat,\n SIEMFilterSeverity,\n SIEMAuthMethod,\n SiemExportConfigBaseSchema,\n WildoHeaderKeys,\n siemExportConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype SiemResourceType =\n | CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG\n | CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG;\ntype SiemResourceTypeMemberName = 'ORGANIZATION_SIEM_EXPORT_CONFIG' | 'APPLICATION_SIEM_EXPORT_CONFIG';\n\ntype SiemConfig = ReturnType<(typeof siemExportConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG]>;\ntype SiemCustom = SiemConfig['customOperation'];\ntype SiemCore = SiemConfig['coreOperations'][number];\ntype SiemSchema = typeof SiemExportConfigBaseSchema;\ntype SiemFrontend = ResourceUIBehaviorConfig<SiemCustom, SiemCore, SiemSchema>;\n\nfunction resolveSiemExportUI(\n source: Partial<Record<string, unknown>>,\n resourceType: SiemResourceType,\n sourceName: string,\n): SiemFrontend {\n const ui = source[resourceType] as SiemFrontend | undefined;\n if (!ui) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return ui;\n}\n\nconst siemExportResourcePrimaryScope: Record<SiemResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SIEM_EXPORT_DELIVERY_EXAMPLE = {\n batchSize: 20,\n batchWindowSeconds: 10,\n retryAttempts: 3,\n retryBackoffSeconds: 30,\n timeoutSeconds: 10,\n} as const;\n\nfunction createSiemExportReferenceExamples(resourceType: SiemResourceType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const relationshipField = isApplication ? 'application' : 'organization';\n const scopeIdentity = { [scopeField]: scopeId };\n const record = {\n _id: isApplication ? 'app_siemcfg_01HX2EXAMPLE' : 'org_siemcfg_01HX2EXAMPLE',\n enabled: !isApplication,\n webhookUrl: isApplication ? '' : 'https://siem.example.com/v1/events',\n authMethod: isApplication ? SIEMAuthMethod.NONE : SIEMAuthMethod.BEARER_TOKEN,\n ...(!isApplication ? { authCredential: '••••••••' } : {}),\n authHeaderName: WildoHeaderKeys.API_KEY,\n eventFormat: SIEMEventFormat.OCSF,\n eventFilter: {\n categories: [\n SIEMEventCategory.AUTHENTICATION,\n SIEMEventCategory.AUTHORIZATION,\n SIEMEventCategory.USER_LIFECYCLE,\n ],\n severityMinimum: SIEMFilterSeverity.WARNING,\n specificEventTypes: ['authentication.login.failed', 'authorization.access.denied'],\n },\n delivery: SIEM_EXPORT_DELIVERY_EXAMPLE,\n customHeaders: { 'x-customer-tenant': isApplication ? 'wonder-todos' : 'northwind' },\n includeRawEventData: true,\n includeDeviceContext: true,\n createdAt: '2026-08-01T09:00:00.000Z',\n updatedAt: '2026-08-18T13:40:00.000Z',\n ...scopeIdentity,\n };\n\n return {\n isApplication,\n scopeIdentity,\n record,\n contextRecord: {\n ...record,\n [relationshipField]: { _id: scopeId },\n },\n summaryRecord: {\n _id: record._id,\n enabled: record.enabled,\n },\n };\n}\n\nfunction buildSiemExportBase(\n resourceType: SiemResourceType,\n memberName: SiemResourceTypeMemberName,\n): ResourceSpecificationConfig<SiemCustom, SiemCore, SiemSchema> {\n const reference = createSiemExportReferenceExamples(resourceType);\n return resourceSpecification<SiemCustom, SiemCore, SiemSchema>(\n siemExportConfigPolymorphicFactories[resourceType],\n SiemExportConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM export configuration: where audit/security events are delivered, how they are signed or authenticated, and how they are batched to an HTTPS webhook endpoint.',\n businessRole: 'The outbound integration point that turns internal audit events into a customer SIEM or log pipeline.',\n lifecycleRole: 'Seeded per scope, enabled or disabled through the administration configuration flow, and edited for destinations, credentials, filtering, and delivery policy.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemExportConfigBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'siemExportConfigPolymorphicFactories',\n symbolKind: CodeSymbolKind.FACTORY,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\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,\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 frontendConfigurationSourceEntries: [\n {\n collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n {\n collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n ],\n notes: [\n 'Application variant in main presets may override `views` to empty; merged admin may still provide addressable `READ` for super-admin flows — the spec’s frontend section reflects operations that exist in the factory regardless.',\n ],\n },\n fields: {\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'When true, the pipeline may emit configured events; when false, deliveries should be suppressed without deleting configuration.',\n }),\n webhookUrl: schemaShape.webhookUrl.stringSpec({ meaning: 'Destination HTTPS URL for JSON/CEF/LEEF payload posts.', importance: FieldSemanticImportance.PRIMARY }),\n authMethod: schemaShape.authMethod.enumSpec({\n meaning: 'How the outbound webhook authenticates to the customer endpoint.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SIEMAuthMethod',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n },\n values: {\n [SIEMAuthMethod.NONE]: { meaning: 'No client authentication (rare; usually dev-only).' },\n [SIEMAuthMethod.BEARER_TOKEN]: { meaning: 'Bearer token in the Authorization header. You supply the token when you save the configuration; reading it back returns `••••••••` rather than the value.' },\n [SIEMAuthMethod.API_KEY_HEADER]: { meaning: 'API key in a header you name. When you do not name one, the default is `x-api-key`.' },\n [SIEMAuthMethod.HMAC_SHA256]: { meaning: 'The payload is signed with a shared secret your receiver verifies. You supply the secret when you save the configuration; reading it back returns `••••••••` rather than the value.' },\n },\n }),\n authCredential: schemaShape.authCredential.stringSpec({\n meaning: 'Write-only credential used by the selected outbound authentication method. Reads return only the masked marker `••••••••`; sending that marker back preserves the existing secret, while sending another value replaces it.',\n }),\n authHeaderName: schemaShape.authHeaderName.stringSpec({\n meaning: 'Header name used only by `api_key_header`. The configured credential is sent as that header’s complete value; prefixes such as `Splunk ` or `ApiKey ` must therefore be included in the stored value when the receiver requires them.',\n }),\n eventFormat: schemaShape.eventFormat.enumSpec({\n meaning: 'Payload wire format the receiver expects (structured JSON, CEF, LEEF, or OCSF). '\n + 'The two text formats are delivered as `text/plain`; the two JSON formats as `application/json`.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SIEMEventFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n },\n values: {\n [SIEMEventFormat.JSON_STRUCTURED]: { meaning: 'Product-native JSON schema for structured log ingest. Carries every envelope field.' },\n [SIEMEventFormat.CEF]: {\n meaning: 'Common Event Format for legacy SIEM connectors. Reaches 20 of the 27 envelope fields — CEF publishes only six general-purpose '\n + '`csN` slots, and a minted custom extension is unreportable in ArcSight ESM, so the remainder are deliberately omitted rather than force-fitted.',\n },\n [SIEMEventFormat.LEEF]: {\n meaning: 'LEEF v2 for IBM QRadar. Reaches all 27 envelope fields, because a LEEF custom key stays searchable in QRadar where a CEF custom extension does not.',\n },\n [SIEMEventFormat.OCSF]: {\n meaning: 'Open Cybersecurity Schema Framework — the JSON-native security schema, delivered as `application/json`. A PEER of the text formats rather than '\n + 'a replacement: an audit event maps onto an OCSF CLASS natively (Authentication, User Management, API Activity, Entity Management) instead of being '\n + 'force-fit into a custom slot. The class is selected from the event category, and `type_uid` is derived, never authored.',\n },\n },\n }),\n eventFilter: schemaShape.eventFilter.objectSpec({\n meaning: 'Filter block: selected high-level event categories, minimum SIEM severity, and an optional exact allowlist of event-type identifiers. `specificEventTypes` uses exact string equality, not substring or wildcard matching.',\n }),\n delivery: schemaShape.delivery.objectSpec({\n meaning: 'Retry and timeout policy for each outbound event. `retryAttempts`, `retryBackoffSeconds` and `timeoutSeconds` are enforced. `batchSize` and `batchWindowSeconds` are accepted and stored but the current worker still posts one event per request; do not size a receiver on the assumption that batching occurs.',\n }),\n customHeaders: schemaShape.customHeaders.codeSpec({\n meaning: 'Additional static HTTP headers included with every delivery. The selected authentication method is applied afterward and overrides a custom header with the same name.',\n }),\n includeRawEventData: schemaShape.includeRawEventData.booleanSpec({\n meaning: 'Reserved configuration flag. It is currently accepted and stored but is not read by the event-envelope or delivery path; changing it does not remove `eventData` from emitted events.',\n }),\n includeDeviceContext: schemaShape.includeDeviceContext.booleanSpec({\n meaning: 'Reserved configuration flag. It is currently accepted and stored but is not read by the event-envelope or delivery path; changing it does not remove available IP address or user-agent context.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: reference.isApplication\n ? 'Inspect the application-scoped SIEM export configuration and its current activation state.'\n : 'Inspect the organization SIEM export destination, authentication, filtering and delivery policy.',\n outcome: reference.isApplication\n ? 'Application administrators can see the reserved configuration record. This framework version does not produce application-scoped SIEM events, so enabling this record does not start delivery.'\n : 'Organization administrators can verify the active destination and policy without receiving the stored credential value.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: reference.isApplication\n ? 'The reserved application-scoped configuration was returned. No application-scoped event producer is available in this framework version.'\n : 'The organization SIEM export configuration was returned, with any stored credential represented only by the redacted placeholder.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to read the SIEM export configuration.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SIEM export configuration has been provisioned for this scope yet.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Inspect the inactive application SIEM configuration'\n : 'Inspect the organization SIEM export configuration',\n request: reference.scopeIdentity,\n response: reference.record,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Inspect the application configuration with scope context'\n : 'Inspect the organization configuration with scope context',\n request: reference.scopeIdentity,\n response: reference.contextRecord,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Inspect the application SIEM activation summary'\n : 'Inspect the organization SIEM activation summary',\n request: reference.scopeIdentity,\n response: reference.summaryRecord,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the per-scope SIEM config row; internal-only (INTERNAL_CALL) variant in the factory — no public HTTP create route. Materialised by the framework default-seed (repository tier) or, when that was bypassed, a system-context lazy-create.',\n outcome: 'The scope gains a new SIEM export document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SIEM export configuration record was created for the scope and returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The configuration fails schema validation (e.g. a non-HTTPS `webhookUrl`, an unknown `eventFormat`, or an `authMethod` missing its required credential).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a security-admin/platform operator; this is an internal-only (INTERNAL_CALL) bootstrap path, not a self-serve create.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SIEM export configuration already exists for this scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision a SIEM export configuration for a scope',\n request: {\n enabled: true,\n webhookUrl: 'https://siem.example.com/ingest',\n authMethod: SIEMAuthMethod.BEARER_TOKEN,\n eventFormat: SIEMEventFormat.JSON_STRUCTURED,\n },\n response: {\n _id: 'siemcfg_01HX2…',\n enabled: true,\n webhookUrl: 'https://siem.example.com/ingest',\n authMethod: SIEMAuthMethod.BEARER_TOKEN,\n eventFormat: SIEMEventFormat.JSON_STRUCTURED,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Update webhook, format, event filter, or delivery block after validation (INTERNAL_CALL update — no public HTTP route; reached through `AuthOrganizationConfigurationService.saveSiemExportConfig` on the admin’s execution context, preserving admin audit attribution).',\n outcome: 'Downstream services pick up changes for subsequent deliveries.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SIEM export configuration was updated and the new settings (secrets redacted) are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited destination, format, filter, or delivery block fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to change SIEM export settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SIEM export configuration exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SIEM export config row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SIEM export config record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Credentials are write-only: `authCredential` and any HMAC secret are supplied when the configuration is saved and are never returned by a read, which answers `••••••••` instead. There is no list or search over these rows, so a credential cannot be recovered from the configuration once it is stored.',\n 'Event payload shapes are a separate concern from this row: `eventFilter` and `eventFormat` do not re-specify the full audit log schema, only the export fan-out contract.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM export is reserved in this framework version: no application event producer feeds this configuration or its delivery queue. Consumers must not treat `enabled: true` as evidence that application-scoped events are being exported.']\n : []),\n ],\n }),\n { resourcePrimaryScope: siemExportResourcePrimaryScope[resourceType] },\n );\n}\n\nfunction buildSiemExportSpec(\n resourceType: SiemResourceType,\n memberName: SiemResourceTypeMemberName,\n): ResourceSpecificationConfig<SiemCustom, SiemCore, SiemSchema> {\n const base = buildSiemExportBase(resourceType, memberName);\n const main = resolveSiemExportUI(securityMainPresets as Partial<Record<string, unknown>>, resourceType, 'securityMainPresets');\n const admin = resolveSiemExportUI(securityAdminPresets as Partial<Record<string, unknown>>, resourceType, 'securityAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n layout: {\n purpose: 'Field-edit layout in `security` uses section refs `status`, `destination`, `authentication`, `format`, and `advanced` (collapsible) with a settings-row edit chrome for most controls.',\n displayPurpose: 'Read template mirrors the same section ordering for a consistent admin walkthrough of SIEM settings.',\n sections: {\n status: {\n purpose: 'On/off and health posture for the SIEM integration.',\n whenToUse: 'First decision point: enable or pause exports without losing configuration.',\n textSlots: {\n title: { purpose: 'Name the “SIEM is active / paused” card.' },\n description: { purpose: 'Clarify that disabled mode stops new deliveries; existing DLQ may still be visible elsewhere.' },\n },\n },\n destination: {\n purpose: 'The HTTPS endpoint receiving exported events.',\n whenToUse: 'Initial setup and any rotation of the customer-side ingress URL.',\n textSlots: {\n title: { purpose: 'Label the webhook / destination block.' },\n description: { purpose: 'Mention that TLS and DNS must be valid from Wildo’s egress perspective.' },\n },\n },\n authentication: {\n purpose: 'Auth method, credential (stored server-side), and header naming for key-based methods.',\n whenToUse: 'When `authMethod` is not `NONE` or when the customer hardens their webhook.',\n textSlots: {\n title: { purpose: 'Label the authentication and secrets block.' },\n description: { purpose: 'Never echo raw secrets; reference rotation procedures instead.' },\n },\n },\n format: {\n purpose: 'Wire format and the event filter: categories, minimum severity, and allow-listed event type strings when used.',\n whenToUse: 'Tightening what is exported to match SIEM capacity and policy.',\n textSlots: {\n title: { purpose: 'Label the format and filter area.' },\n description: { purpose: 'Tie the filter to `eventType` strings produced by the audit pipeline, not arbitrary JSON paths.' },\n },\n },\n advanced: {\n purpose: 'Delivery tuning (batch size/window, retries, timeouts) and transport extras such as `customHeaders` and optional raw/device context flags.',\n whenToUse: 'After basic connectivity is proven and operators tune throughput and observability cost.',\n textSlots: {\n title: { purpose: 'Label the advanced and tuning section.' },\n description: { purpose: 'Clarify that bad tuning can delay or drop events; document incident procedures separately.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-oriented settings and status host in merged presets (addressable in main org/app SIEM UIs; admin merge may differ).', whenToUse: 'Navigating the SIEM configuration screen in security settings.' },\n },\n }),\n );\n}\n\nexport const organizationSiemExportConfigResourceSpecification = buildSiemExportSpec(\n CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG,\n 'ORGANIZATION_SIEM_EXPORT_CONFIG',\n);\nexport const applicationSiemExportConfigResourceSpecification = buildSiemExportSpec(\n CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG,\n 'APPLICATION_SIEM_EXPORT_CONFIG',\n);\n"]}
|
|
1
|
+
{"version":3,"file":"siem-export-config.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-export-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,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,yBAAyB,EACzB,8BAA8B,EAC9B,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,0BAA0B,EAC1B,eAAe,EACf,oCAAoC,GACrC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAa3E,SAAS,mBAAmB,CAC1B,MAAwC,EACxC,YAA8B,EAC9B,UAAkB;IAElB,MAAM,EAAE,GAAG,MAAM,CAAC,YAAY,CAA6B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O,EAAE,0HAA0H,EAAE,SAAS,EAAE,gEAAgE,EAAE;SAChO;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,iDAAiD,GAAG,mBAAmB,CAClF,gBAAgB,CAAC,+BAA+B,EAChD,iCAAiC,CAClC,CAAC;AACF,MAAM,CAAC,MAAM,gDAAgD,GAAG,mBAAmB,CACjF,gBAAgB,CAAC,8BAA8B,EAC/C,gCAAgC,CACjC,CAAC","sourcesContent":["import {\n securityAdminPresets,\n securityMainPresets,\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 AuditExportDisclosureTier,\n AuditExportEventDataDisclosure,\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n SIEMEventCategory,\n SIEMEventFormat,\n SIEMFilterSeverity,\n SIEMAuthMethod,\n SiemExportConfigBaseSchema,\n WildoHeaderKeys,\n siemExportConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype SiemResourceType =\n | CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG\n | CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG;\ntype SiemResourceTypeMemberName = 'ORGANIZATION_SIEM_EXPORT_CONFIG' | 'APPLICATION_SIEM_EXPORT_CONFIG';\n\ntype SiemConfig = ReturnType<(typeof siemExportConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG]>;\ntype SiemCustom = SiemConfig['customOperation'];\ntype SiemCore = SiemConfig['coreOperations'][number];\ntype SiemSchema = typeof SiemExportConfigBaseSchema;\ntype SiemFrontend = ResourceUIBehaviorConfig<SiemCustom, SiemCore, SiemSchema>;\n\nfunction resolveSiemExportUI(\n source: Partial<Record<string, unknown>>,\n resourceType: SiemResourceType,\n sourceName: string,\n): SiemFrontend {\n const ui = source[resourceType] as SiemFrontend | undefined;\n if (!ui) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return ui;\n}\n\nconst siemExportResourcePrimaryScope: Record<SiemResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SIEM_EXPORT_DELIVERY_EXAMPLE = {\n retryAttempts: 3,\n retryBackoffSeconds: 30,\n timeoutSeconds: 10,\n} as const;\n\nfunction createSiemExportReferenceExamples(resourceType: SiemResourceType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const relationshipField = isApplication ? 'application' : 'organization';\n const scopeIdentity = { [scopeField]: scopeId };\n const record = {\n _id: isApplication ? 'app_siemcfg_01HX2EXAMPLE' : 'org_siemcfg_01HX2EXAMPLE',\n enabled: !isApplication,\n webhookUrl: isApplication ? '' : 'https://siem.example.com/v1/events',\n authMethod: isApplication ? SIEMAuthMethod.NONE : SIEMAuthMethod.BEARER_TOKEN,\n ...(!isApplication ? { authCredential: '••••••••' } : {}),\n authHeaderName: WildoHeaderKeys.API_KEY,\n eventFormat: SIEMEventFormat.OCSF,\n eventFilter: {\n categories: [\n SIEMEventCategory.AUTHENTICATION,\n SIEMEventCategory.AUTHORIZATION,\n SIEMEventCategory.USER_LIFECYCLE,\n ],\n severityMinimum: SIEMFilterSeverity.WARNING,\n specificEventTypes: ['authentication.login.failed', 'authorization.access.denied'],\n },\n delivery: SIEM_EXPORT_DELIVERY_EXAMPLE,\n customHeaders: { 'x-customer-tenant': isApplication ? 'wonder-todos' : 'northwind' },\n /**\n * A destination whose agreement forbids exporting user identifiers: attribution withheld,\n * operational context kept, and only configuration-shaped detail bags. Shown NARROWED rather\n * than at the default, because the default is \"everything\" and an example that equals the\n * default teaches a reader nothing about what the field is for.\n */\n exportProjection: {\n disclosedTiers: [AuditExportDisclosureTier.CONTEXT, AuditExportDisclosureTier.DETAIL],\n disclosedEventDataClasses: [AuditExportEventDataDisclosure.ADMINISTRATIVE],\n },\n createdAt: '2026-08-01T09:00:00.000Z',\n updatedAt: '2026-08-18T13:40:00.000Z',\n ...scopeIdentity,\n };\n\n return {\n isApplication,\n scopeIdentity,\n record,\n contextRecord: {\n ...record,\n [relationshipField]: { _id: scopeId },\n },\n summaryRecord: {\n _id: record._id,\n enabled: record.enabled,\n },\n };\n}\n\nfunction buildSiemExportBase(\n resourceType: SiemResourceType,\n memberName: SiemResourceTypeMemberName,\n): ResourceSpecificationConfig<SiemCustom, SiemCore, SiemSchema> {\n const reference = createSiemExportReferenceExamples(resourceType);\n return resourceSpecification<SiemCustom, SiemCore, SiemSchema>(\n siemExportConfigPolymorphicFactories[resourceType],\n SiemExportConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM export configuration: where audit/security events are delivered, how they are signed or authenticated, and how they are batched to an HTTPS webhook endpoint.',\n businessRole: 'The outbound integration point that turns internal audit events into a customer SIEM or log pipeline.',\n lifecycleRole: 'Seeded per scope, enabled or disabled through the administration configuration flow, and edited for destinations, credentials, filtering, and delivery policy.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemExportConfigBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'siemExportConfigPolymorphicFactories',\n symbolKind: CodeSymbolKind.FACTORY,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\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,\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 frontendConfigurationSourceEntries: [\n {\n collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n {\n collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n ],\n notes: [\n 'Application variant in main presets may override `views` to empty; merged admin may still provide addressable `READ` for super-admin flows — the spec’s frontend section reflects operations that exist in the factory regardless.',\n ],\n },\n fields: {\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'When true, the pipeline may emit configured events; when false, deliveries should be suppressed without deleting configuration.',\n }),\n webhookUrl: schemaShape.webhookUrl.stringSpec({ meaning: 'Destination HTTPS URL for JSON/CEF/LEEF payload posts.', importance: FieldSemanticImportance.PRIMARY }),\n authMethod: schemaShape.authMethod.enumSpec({\n meaning: 'How the outbound webhook authenticates to the customer endpoint.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SIEMAuthMethod',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n },\n values: {\n [SIEMAuthMethod.NONE]: { meaning: 'No client authentication (rare; usually dev-only).' },\n [SIEMAuthMethod.BEARER_TOKEN]: { meaning: 'Bearer token in the Authorization header. You supply the token when you save the configuration; reading it back returns `••••••••` rather than the value.' },\n [SIEMAuthMethod.API_KEY_HEADER]: { meaning: 'API key in a header you name. When you do not name one, the default is `x-api-key`.' },\n [SIEMAuthMethod.HMAC_SHA256]: { meaning: 'The payload is signed with a shared secret your receiver verifies. You supply the secret when you save the configuration; reading it back returns `••••••••` rather than the value.' },\n },\n }),\n authCredential: schemaShape.authCredential.stringSpec({\n meaning: 'Write-only credential used by the selected outbound authentication method. Reads return only the masked marker `••••••••`; sending that marker back preserves the existing secret, while sending another value replaces it.',\n }),\n authHeaderName: schemaShape.authHeaderName.stringSpec({\n meaning: 'Header name used only by `api_key_header`. The configured credential is sent as that header’s complete value; prefixes such as `Splunk ` or `ApiKey ` must therefore be included in the stored value when the receiver requires them.',\n }),\n eventFormat: schemaShape.eventFormat.enumSpec({\n meaning: 'Payload wire format the receiver expects (structured JSON, CEF, LEEF, or OCSF). '\n + 'The two text formats are delivered as `text/plain`; the two JSON formats as `application/json`.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SIEMEventFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n },\n values: {\n [SIEMEventFormat.JSON_STRUCTURED]: { meaning: 'Product-native JSON schema for structured log ingest. Carries every envelope field.' },\n [SIEMEventFormat.CEF]: {\n meaning: 'Common Event Format for legacy SIEM connectors. Reaches 20 of the 27 envelope fields — CEF publishes only six general-purpose '\n + '`csN` slots, and a minted custom extension is unreportable in ArcSight ESM, so the remainder are deliberately omitted rather than force-fitted.',\n },\n [SIEMEventFormat.LEEF]: {\n meaning: 'LEEF v2 for IBM QRadar. Reaches all 27 envelope fields, because a LEEF custom key stays searchable in QRadar where a CEF custom extension does not.',\n },\n [SIEMEventFormat.OCSF]: {\n meaning: 'Open Cybersecurity Schema Framework — the JSON-native security schema, delivered as `application/json`. A PEER of the text formats rather than '\n + 'a replacement: an audit event maps onto an OCSF CLASS natively (Authentication, User Management, API Activity, Entity Management) instead of being '\n + 'force-fit into a custom slot. The class is selected from the event category, and `type_uid` is derived, never authored.',\n },\n },\n }),\n eventFilter: schemaShape.eventFilter.objectSpec({\n meaning: 'Filter block: selected high-level event categories, minimum SIEM severity, and an optional exact allowlist of event-type identifiers. `specificEventTypes` uses exact string equality, not substring or wildcard matching.',\n }),\n delivery: schemaShape.delivery.objectSpec({\n meaning: 'Retry and timeout policy for each outbound event: `retryAttempts` is the ceiling, `retryBackoffSeconds` the exponential base, `timeoutSeconds` the per-request deadline. All three are enforced by the delivery worker. `batchSize` and `batchWindowSeconds` used to sit here, accepted and stored and read by nothing, and were removed — the worker posts ONE event per HTTP request, and a stored number that does not change that is worse than its absence.',\n }),\n customHeaders: schemaShape.customHeaders.codeSpec({\n meaning: 'Additional static HTTP headers included with every delivery. The selected authentication method is applied afterward and overrides a custom header with the same name.',\n }),\n exportProjection: schemaShape.exportProjection.objectSpec({\n meaning: 'What this destination may RECEIVE — the data-minimisation control, and the only place an operator can limit an export before it leaves. '\n + '`disclosedTiers` names which classes of envelope field are admitted beyond the floor: `attribution` (user email, IP address, user agent, geolocation, client-install id), '\n + '`context` (correlation id, frontend surface, tenant and application names, authentication method and source) and `detail` (the per-event `eventData` bag AND the outcome reason, which is lifted out of that bag and so travels with it). '\n + '`disclosedEventDataClasses` then decides WHICH bags, by what the event type carries: `subject-detail` bags hold data about a person, `administrative` bags hold configuration or system state. '\n + 'Declaring `detail` without `administrative` only is the common mistake — an authentication event’s bag carries the email address that dropping `attribution` was meant to withhold. '\n + 'A FLOOR always survives whatever is declared: event id, type, category, severity, timestamp, organization, the actor’s user id, source service, source version, source environment and outcome. '\n + 'That is not a courtesy — the event id is the receiver’s de-duplication key, and the event type, severity and source version are header slots the CEF and LEEF grammars cannot omit without corrupting the record. '\n + 'The projection is applied once, before the event is signed and queued, so all four wire formats carry it identically and a withheld field is ABSENT rather than present and empty. '\n + 'Omitting the whole block means full disclosure, which is what every destination configured before this control existed receives.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: reference.isApplication\n ? 'Inspect the application-scoped SIEM export configuration and its current activation state.'\n : 'Inspect the organization SIEM export destination, authentication, filtering and delivery policy.',\n outcome: reference.isApplication\n ? 'Application administrators can see the reserved configuration record. This framework version does not produce application-scoped SIEM events, so enabling this record does not start delivery.'\n : 'Organization administrators can verify the active destination and policy without receiving the stored credential value.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: reference.isApplication\n ? 'The reserved application-scoped configuration was returned. No application-scoped event producer is available in this framework version.'\n : 'The organization SIEM export configuration was returned, with any stored credential represented only by the redacted placeholder.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to read the SIEM export configuration.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SIEM export configuration has been provisioned for this scope yet.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Inspect the inactive application SIEM configuration'\n : 'Inspect the organization SIEM export configuration',\n request: reference.scopeIdentity,\n response: reference.record,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Inspect the application configuration with scope context'\n : 'Inspect the organization configuration with scope context',\n request: reference.scopeIdentity,\n response: reference.contextRecord,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Inspect the application SIEM activation summary'\n : 'Inspect the organization SIEM activation summary',\n request: reference.scopeIdentity,\n response: reference.summaryRecord,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the per-scope SIEM config row; internal-only (INTERNAL_CALL) variant in the factory — no public HTTP create route. Materialised by the framework default-seed (repository tier) or, when that was bypassed, a system-context lazy-create.',\n outcome: 'The scope gains a new SIEM export document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SIEM export configuration record was created for the scope and returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The configuration fails schema validation (e.g. a non-HTTPS `webhookUrl`, an unknown `eventFormat`, or an `authMethod` missing its required credential).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a security-admin/platform operator; this is an internal-only (INTERNAL_CALL) bootstrap path, not a self-serve create.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SIEM export configuration already exists for this scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision a SIEM export configuration for a scope',\n request: {\n enabled: true,\n webhookUrl: 'https://siem.example.com/ingest',\n authMethod: SIEMAuthMethod.BEARER_TOKEN,\n eventFormat: SIEMEventFormat.JSON_STRUCTURED,\n },\n response: {\n _id: 'siemcfg_01HX2…',\n enabled: true,\n webhookUrl: 'https://siem.example.com/ingest',\n authMethod: SIEMAuthMethod.BEARER_TOKEN,\n eventFormat: SIEMEventFormat.JSON_STRUCTURED,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Update the destination, credential, format, event filter, or delivery block after validation. This is the administrator\\u2019s write door (API_CALL): an organization admin on the organization variant, an application super-administrator on the application variant, which is settable but delivers nothing until an application-scoped producer exists. `authCredential` is sealed to the scope before it is stored, and sending the write-only mask back keeps the stored credential. HIGH risk, so every edit is audited; on the organization variant the edit also emits `ORGANIZATION_SIEM_EXPORT_CONFIGURED` — or `ORGANIZATION_SIEM_EXPORT_DISABLED` (CRITICAL) when it turns export off and `ORGANIZATION_SIEM_EXPORT_DESTINATION_CHANGED` (WARNING) when it moves the destination, each delivered to the destination that stopped receiving events as its last event.',\n outcome: 'Downstream services pick up changes for subsequent deliveries.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SIEM export configuration was updated and the new settings (secrets redacted) are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited destination, format, filter, or delivery block fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin of this organization (organization variant) or an application super-administrator (application variant).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SIEM export configuration exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SIEM export config row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SIEM export config record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Credentials are write-only: `authCredential` and any HMAC secret are supplied when the configuration is saved and are never returned by a read, which answers `••••••••` instead. There is no list or search over these rows, so a credential cannot be recovered from the configuration once it is stored.',\n 'Event payload shapes are a separate concern from this row: `eventFilter` and `eventFormat` do not re-specify the full audit log schema, only the export fan-out contract.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM export is reserved in this framework version: no application event producer feeds this configuration or its delivery queue. Consumers must not treat `enabled: true` as evidence that application-scoped events are being exported.']\n : []),\n ],\n }),\n { resourcePrimaryScope: siemExportResourcePrimaryScope[resourceType] },\n );\n}\n\nfunction buildSiemExportSpec(\n resourceType: SiemResourceType,\n memberName: SiemResourceTypeMemberName,\n): ResourceSpecificationConfig<SiemCustom, SiemCore, SiemSchema> {\n const base = buildSiemExportBase(resourceType, memberName);\n const main = resolveSiemExportUI(securityMainPresets as Partial<Record<string, unknown>>, resourceType, 'securityMainPresets');\n const admin = resolveSiemExportUI(securityAdminPresets as Partial<Record<string, unknown>>, resourceType, 'securityAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n layout: {\n purpose: 'Field-edit layout in `security` uses section refs `status`, `destination`, `authentication`, `format`, and `advanced` (collapsible) with a settings-row edit chrome for most controls.',\n displayPurpose: 'Read template mirrors the same section ordering for a consistent admin walkthrough of SIEM settings.',\n sections: {\n status: {\n purpose: 'On/off and health posture for the SIEM integration.',\n whenToUse: 'First decision point: enable or pause exports without losing configuration.',\n textSlots: {\n title: { purpose: 'Name the “SIEM is active / paused” card.' },\n description: { purpose: 'Clarify that disabled mode stops new deliveries; existing DLQ may still be visible elsewhere.' },\n },\n },\n destination: {\n purpose: 'The HTTPS endpoint receiving exported events.',\n whenToUse: 'Initial setup and any rotation of the customer-side ingress URL.',\n textSlots: {\n title: { purpose: 'Label the webhook / destination block.' },\n description: { purpose: 'Mention that TLS and DNS must be valid from Wildo’s egress perspective.' },\n },\n },\n authentication: {\n purpose: 'Auth method, credential (stored server-side), and header naming for key-based methods.',\n whenToUse: 'When `authMethod` is not `NONE` or when the customer hardens their webhook.',\n textSlots: {\n title: { purpose: 'Label the authentication and secrets block.' },\n description: { purpose: 'Never echo raw secrets; reference rotation procedures instead.' },\n },\n },\n format: {\n purpose: 'Wire format and the event filter: categories, minimum severity, and allow-listed event type strings when used.',\n whenToUse: 'Tightening what is exported to match SIEM capacity and policy.',\n textSlots: {\n title: { purpose: 'Label the format and filter area.' },\n description: { purpose: 'Tie the filter to `eventType` strings produced by the audit pipeline, not arbitrary JSON paths.' },\n },\n },\n advanced: {\n purpose: 'Delivery tuning (batch size/window, retries, timeouts) and transport extras such as `customHeaders` and optional raw/device context flags.',\n whenToUse: 'After basic connectivity is proven and operators tune throughput and observability cost.',\n textSlots: {\n title: { purpose: 'Label the advanced and tuning section.' },\n description: { purpose: 'Clarify that bad tuning can delay or drop events; document incident procedures separately.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-oriented settings and status host in merged presets (addressable in main org/app SIEM UIs; admin merge may differ).', whenToUse: 'Navigating the SIEM configuration screen in security settings.' },\n },\n }),\n );\n}\n\nexport const organizationSiemExportConfigResourceSpecification = buildSiemExportSpec(\n CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG,\n 'ORGANIZATION_SIEM_EXPORT_CONFIG',\n);\nexport const applicationSiemExportConfigResourceSpecification = buildSiemExportSpec(\n CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG,\n 'APPLICATION_SIEM_EXPORT_CONFIG',\n);\n"]}
|
|
@@ -10,8 +10,6 @@ export declare const organizationSsoConfigResourceSpecification: ResourceSpecifi
|
|
|
10
10
|
domains: import("zod").ZodObject<{
|
|
11
11
|
verifiedDomains: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
12
12
|
ssoEnabledDomains: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
13
|
-
domainHinting: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
14
|
-
allowExternalDomains: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
15
13
|
domainVerificationStatus: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodEnum<{
|
|
16
14
|
readonly PENDING: "pending";
|
|
17
15
|
readonly VERIFIED: "verified";
|
|
@@ -20,26 +18,8 @@ export declare const organizationSsoConfigResourceSpecification: ResourceSpecifi
|
|
|
20
18
|
}>>>>;
|
|
21
19
|
domainVerificationTokens: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
|
|
22
20
|
}, import("zod/v4/core").$strip>;
|
|
23
|
-
provisioning: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
24
|
-
autoCreateUsers: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
25
|
-
autoUpdateUsers: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
26
|
-
autoDeactivateUsers: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
27
|
-
defaultRole: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
|
-
requiredAttributes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
29
|
-
syncFrequencyHours: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
30
|
-
}, import("zod/v4/core").$strip>>;
|
|
31
21
|
sessionSettings: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
32
|
-
ssoSessionDurationMinutes: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
33
|
-
requireReauthForSensitive: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
34
22
|
singleLogoutEnabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
35
|
-
maxConcurrentSessions: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
36
|
-
}, import("zod/v4/core").$strip>>;
|
|
37
|
-
auditConfig: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
38
|
-
logAllSSOEvents: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
39
|
-
logProviderSwitching: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
40
|
-
logRoleMapping: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
41
|
-
complianceReporting: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
42
|
-
retentionDays: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
43
23
|
}, import("zod/v4/core").$strip>>;
|
|
44
24
|
emergencyAccess: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
45
25
|
enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
@@ -70,8 +50,6 @@ export declare const applicationSsoConfigResourceSpecification: ResourceSpecific
|
|
|
70
50
|
domains: import("zod").ZodObject<{
|
|
71
51
|
verifiedDomains: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
72
52
|
ssoEnabledDomains: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
73
|
-
domainHinting: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
74
|
-
allowExternalDomains: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
75
53
|
domainVerificationStatus: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodEnum<{
|
|
76
54
|
readonly PENDING: "pending";
|
|
77
55
|
readonly VERIFIED: "verified";
|
|
@@ -80,26 +58,8 @@ export declare const applicationSsoConfigResourceSpecification: ResourceSpecific
|
|
|
80
58
|
}>>>>;
|
|
81
59
|
domainVerificationTokens: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
|
|
82
60
|
}, import("zod/v4/core").$strip>;
|
|
83
|
-
provisioning: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
84
|
-
autoCreateUsers: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
85
|
-
autoUpdateUsers: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
86
|
-
autoDeactivateUsers: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
87
|
-
defaultRole: import("zod").ZodOptional<import("zod").ZodString>;
|
|
88
|
-
requiredAttributes: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
89
|
-
syncFrequencyHours: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
90
|
-
}, import("zod/v4/core").$strip>>;
|
|
91
61
|
sessionSettings: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
92
|
-
ssoSessionDurationMinutes: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
93
|
-
requireReauthForSensitive: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
94
62
|
singleLogoutEnabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
95
|
-
maxConcurrentSessions: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
96
|
-
}, import("zod/v4/core").$strip>>;
|
|
97
|
-
auditConfig: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
98
|
-
logAllSSOEvents: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
99
|
-
logProviderSwitching: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
100
|
-
logRoleMapping: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
101
|
-
complianceReporting: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
102
|
-
retentionDays: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
103
63
|
}, import("zod/v4/core").$strip>>;
|
|
104
64
|
emergencyAccess: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
105
65
|
enabled: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-config.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,oBAAoB,EAGrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"sso-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-config.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,oBAAoB,EAGrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAqVrC,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA6E,CAAC;AACrI,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA2E,CAAC"}
|
|
@@ -40,32 +40,12 @@ function createSsoConfigExamples(rt) {
|
|
|
40
40
|
domains: {
|
|
41
41
|
verifiedDomains: [SSO_CONFIG_DOMAIN_EXAMPLE],
|
|
42
42
|
ssoEnabledDomains: [SSO_CONFIG_DOMAIN_EXAMPLE],
|
|
43
|
-
domainHinting: true,
|
|
44
|
-
allowExternalDomains: false,
|
|
45
43
|
domainVerificationStatus: {
|
|
46
44
|
[SSO_CONFIG_DOMAIN_EXAMPLE]: DomainVerificationStatus.VERIFIED,
|
|
47
45
|
},
|
|
48
46
|
},
|
|
49
|
-
provisioning: {
|
|
50
|
-
autoCreateUsers: true,
|
|
51
|
-
autoUpdateUsers: true,
|
|
52
|
-
autoDeactivateUsers: false,
|
|
53
|
-
defaultRole: 'organization-member',
|
|
54
|
-
requiredAttributes: ['email'],
|
|
55
|
-
syncFrequencyHours: 24,
|
|
56
|
-
},
|
|
57
47
|
sessionSettings: {
|
|
58
|
-
ssoSessionDurationMinutes: 480,
|
|
59
|
-
requireReauthForSensitive: true,
|
|
60
48
|
singleLogoutEnabled: true,
|
|
61
|
-
maxConcurrentSessions: 5,
|
|
62
|
-
},
|
|
63
|
-
auditConfig: {
|
|
64
|
-
logAllSSOEvents: true,
|
|
65
|
-
logProviderSwitching: true,
|
|
66
|
-
logRoleMapping: true,
|
|
67
|
-
complianceReporting: true,
|
|
68
|
-
retentionDays: 365,
|
|
69
49
|
},
|
|
70
50
|
emergencyAccess: {
|
|
71
51
|
enabled: true,
|
|
@@ -183,7 +163,7 @@ function buildBase(rt, member) {
|
|
|
183
163
|
],
|
|
184
164
|
},
|
|
185
165
|
[Op.UPDATE]: {
|
|
186
|
-
purpose: 'Patch nested blocks
|
|
166
|
+
purpose: 'Patch nested blocks of the SSO policy for a scope (API_CALL update — the administrator’s edit door, gated on the same org-admin / app-super-admin roles as the read; HIGH risk). Backend callers that hold no operation — `AuthOrganizationConfigurationService.saveSSOConfig`, `initiateDomainVerification`, `verifyDomainOwnership` — resolve this SAME default through `getServiceOperationPathDefault` on the admin’s execution context, preserving admin audit attribution. It was INTERNAL_CALL and route-less, which left the policy readable by an administrator and writable by nobody.',
|
|
187
167
|
outcome: 'Updated sign-in and routing behavior for subsequent sessions, subject to cache/propagation.',
|
|
188
168
|
responseStatuses: [
|
|
189
169
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy was updated and the new enforcement/routing posture for the scope is returned.' },
|
|
@@ -280,7 +260,15 @@ function buildBase(rt, member) {
|
|
|
280
260
|
errorScenarios: [
|
|
281
261
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or malformed.', errorCode: 'VALIDATION_FAILED' },
|
|
282
262
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },
|
|
283
|
-
|
|
263
|
+
/**
|
|
264
|
+
* 409, not 404 — corrected 2026-09-10 when the refusal was driven over HTTP for the
|
|
265
|
+
* first time. The sibling `verifyDomain` above documents the SAME `errorCode` at 409
|
|
266
|
+
* for the same condition, and only the CONFLICT form can actually carry that code to a
|
|
267
|
+
* client: `sanitizeErrorForClient` allow-lists a refusal's context for VALIDATION /
|
|
268
|
+
* CONFLICT / RATE_LIMIT and strips it whole otherwise, so the 404 form answered a bare
|
|
269
|
+
* `not_found` and this `errorCode` described something no caller could observe.
|
|
270
|
+
*/
|
|
271
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'This scope holds no claim on that domain, so there is nothing to revoke.', errorCode: 'SSO_DOMAIN_NOT_CLAIMED' },
|
|
284
272
|
],
|
|
285
273
|
idempotent: false,
|
|
286
274
|
examples: [
|
|
@@ -295,7 +283,7 @@ function buildBase(rt, member) {
|
|
|
295
283
|
},
|
|
296
284
|
businessConstraints: [
|
|
297
285
|
'This resource is the policy document for SSO behavior in-product; individual IdP connection rows (`SsoConnection`) remain the correct place to describe per-provider setup and `TEST_CONNECTION` flows.',
|
|
298
|
-
'
|
|
286
|
+
'Provisioning has exactly TWO authorities and this row is neither. An interactive sign-in reads the CONNECTION (`SsoConnection.{autoCreateUsers, autoVerifyEmail, defaultRole, roleMapping, groupMapping}`) — per connection, because two IdPs on one tenant may differ. A directory PUSH reads `ScimProvisioningConfig` — per organization, because there is one directory relationship. `SsoConfig.provisioning` was a third, org-wide copy that nothing read; it is gone. Say which of the two a question is about; never describe this resource as governing provisioning.',
|
|
299
287
|
'A domain grants nothing until it is VERIFIED. `claimDomain` records it as `pending` and mints a DNS-TXT challenge; every routing reader joins the claimed list against `domainVerificationStatus`, so a claim alone never reaches sign-in behavior.',
|
|
300
288
|
'A domain may be verified for at most ONE scope at a time. Both `claimDomain` and `verifyDomain` refuse with `SSO_DOMAIN_VERIFIED_ELSEWHERE` when another scope holds it — a domain routes sign-ins to exactly one identity provider, and two holders would make that routing depend on which configuration the lookup reached first. Handing a domain over therefore means the current holder revokes before the next one verifies.',
|
|
301
289
|
'Revocation withdraws routing, never sessions. A verified domain is a routing hint that decides where a NEW sign-in is sent; it is not a credential and confers no standing, so revoking it does not invalidate sessions established while it was verified. Ending those is a separate control (member suspension, user deactivation, the session fence).',
|
|
@@ -309,20 +297,19 @@ function buildBase(rt, member) {
|
|
|
309
297
|
function build(rt, member) {
|
|
310
298
|
return resourceSpecificationFromFrontendConfiguration(mergeResourceFrontendConfigurations(resourceFrontendConfiguration(r(securityMainPresets, rt, 'securityMainPresets')), resourceFrontendConfiguration(r(securityAdminPresets, rt, 'securityAdminPresets'))), buildBase(rt, member), () => ({
|
|
311
299
|
layout: {
|
|
312
|
-
purpose: '
|
|
300
|
+
purpose: 'Five section refs in `security` : `enforcement`, `domains`, `session`, `emergency`, `oauth` (provider restrictions and OAuth2 scopes). There is no `audit` section either: the five flags it rendered were inert, and audit behaviour is not configurable per SSO policy — emission follows the operation\u2019s risk level against `AUTOMATIC_AUDIT_RISK_FLOOR`, retention follows `ApplicationRetentionSchedule`. There is deliberately no `provisioning` section: the block it rendered decided nothing, and on an SSO pane it read as the summary of the two settings that DO decide — the connection\u2019s own flags and the SCIM provisioning row.',
|
|
313
301
|
displayPurpose: 'Long-form display layout mirrors edit sections for a guided admin walkthrough of SSO security posture.',
|
|
314
302
|
sections: {
|
|
315
303
|
enforcement: { purpose: 'When SSO is mandatory vs optional, and grace for password fallback.', whenToUse: 'First-time SSO hardening in tenant security.', textSlots: { title: { purpose: 'Enforcement heading.' }, description: { purpose: 'Tie to auth flows and any grace counters from factory-enabled checks.' } } },
|
|
316
304
|
domains: { purpose: 'Email-domain routing, verification, and allow lists.', whenToUse: 'Onboarding a new corporate email domain to SSO without opening all addresses globally.', textSlots: { title: { purpose: 'Domains block.' }, description: { purpose: 'DNS verification state is backend-owned; UI may show per-domain badges.' } } },
|
|
317
|
-
|
|
318
|
-
session: { purpose: 'SSO session duration, reauth, SLO, concurrent sessions — enterprise session hygiene.', whenToUse: 'Security and compliance review of idle vs absolute timeouts.', textSlots: { title: { purpose: 'Session settings.' }, description: { purpose: 'Note impact on `maxConcurrentSessions` and user-visible sign-out.' } } },
|
|
319
|
-
audit: { purpose: 'What SSO path actions are auditable, retention, and compliance reporting flags.', whenToUse: 'Customers needing provable sign-in and IdP event trails.', textSlots: { title: { purpose: 'SSO audit block.' }, description: { purpose: 'Tie to `AuditEvent` classifiers, not the raw SIEM stream.' } } },
|
|
305
|
+
session: { purpose: 'Federated logout — whether the SP advertises an SLO endpoint and honours logout in both directions. One row: session duration, step-up reauth and the concurrency limit were removed, each having decided nothing, and the concurrency limit having a live home at `userTypes.<type>.auth.maxConcurrentSessions`.', whenToUse: 'Deciding whether signing out of this application should sign the person out of the IdP.', textSlots: { title: { purpose: 'Session settings.' }, description: { purpose: 'State what SLO does to the IdP session, in both directions.' } } },
|
|
320
306
|
emergency: { purpose: 'The named accounts that may still sign in with a password when the identity provider cannot be reached.', whenToUse: 'Configuring break-glass before an outage, and reviewing who holds it afterwards.', textSlots: { title: { purpose: 'Emergency access.' }, description: { purpose: 'Keep the list small and reviewed: each entry is a standing password path into a tenant that otherwise requires SSO, and every use raises a CRITICAL audit event.' } } },
|
|
321
307
|
oauth: { purpose: 'OAuth2 provider allow/deny, scopes, and tenant restrictions to reduce token theft blast radius in OIDC-based SSO when configured.', whenToUse: 'Locking IdP tenants and scopes in highly regulated orgs.', textSlots: { title: { purpose: 'OAuth restrictions.' }, description: { purpose: 'Complement, not replace, the per-connection OIDC field-level settings in `SsoConnection` resources.' } } },
|
|
322
308
|
},
|
|
323
309
|
},
|
|
324
310
|
views: {
|
|
325
311
|
[Op.READ]: { purpose: 'Addressable read for org in merged main/admin where presets surface SSO policy; app-scoped may suppress views in `variantOverrides`—factory READ remains.', whenToUse: 'Security “SSO” settings in admin consoles.' },
|
|
312
|
+
[Op.UPDATE]: { purpose: 'The administrator’s edit of the policy, declared `notAddressable` so it opens from the READ view rather than adding a rail entry of its own.', whenToUse: 'Any change to enforcement, domains, session or OAuth policy from the Single sign-on settings pane.' },
|
|
326
313
|
[SsoConfig_Operations.CLAIM_DOMAIN]: { purpose: 'Domain-claim action; not addressable in the default `views` array, invoked from the domains section so the returned DNS record can be copied immediately.', whenToUse: 'Onboarding a corporate email domain to enterprise SSO.' },
|
|
327
314
|
[SsoConfig_Operations.VERIFY_DOMAIN]: { purpose: 'Challenge-check action; not addressable in the default `views` array, invoked per claimed domain once its DNS record has propagated.', whenToUse: 'Completing an onboarding after publishing the TXT record, and re-checking after a failed attempt.' },
|
|
328
315
|
[SsoConfig_Operations.REVOKE_DOMAIN]: { purpose: 'Claim-withdrawal action; not addressable in the default `views` array, invoked per claimed domain.', whenToUse: 'Retiring a domain, or releasing it so a different scope can verify it.' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso-config.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAU3E,SAAS,CAAC,CAAC,MAAwC,EAAE,EAAS,EAAE,IAAY;IAC1E,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAkB,CAAC;IACtC,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,QAAQ,IAAI,GAAG,CAAC,CAAC;IACvD,OAAO,CAAC,CAAC;AACX,C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AAoB,CAAC,aAAa,CAAC,EAAE,EAAE,OAAO,EAAE,oGAAoG,EAAE,SAAS,EAAE,wEAAwE,EAAE;SAC7O;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,0CAA0C,GAAG,KAAK,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,yBAAyB,CAAC,CAAC;AACrI,MAAM,CAAC,MAAM,yCAAyC,GAAG,KAAK,CAAC,gBAAgB,CAAC,sBAAsB,EAAE,wBAAwB,CAAC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n DomainVerificationStatus,\n ResourcePrimaryScope,\n SsoConfig_Operations,\n SsoConfigBaseSchema,\n ssoConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SSO_CONFIG | CoreResourceType.APPLICATION_SSO_CONFIG;\ntype RMember = 'ORGANIZATION_SSO_CONFIG' | 'APPLICATION_SSO_CONFIG';\ntype Cfg = ReturnType<(typeof ssoConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SSO_CONFIG]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof SsoConfigBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SSO_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SSO_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SSO_CONFIG_DOMAIN_EXAMPLE = 'identity.example.com';\n\n/**\n * Builds the three READ representation examples from one policy snapshot so\n * the source specification, generated OpenAPI, and native renderer cannot\n * teach contradictory SSO postures. Scope-specific ownership is injected here\n * rather than duplicated in the organization and application specifications.\n * Secrets and backend-only domain-verification tokens are deliberately absent.\n */\nfunction createSsoConfigExamples(rt: RType) {\n const scopeId = rt === CoreResourceType.ORGANIZATION_SSO_CONFIG ? 'org_01JSSOEXAMPLE' : 'app_01JSSOEXAMPLE';\n const scopeIdentifier = rt === CoreResourceType.ORGANIZATION_SSO_CONFIG\n ? { organizationId: scopeId }\n : { applicationId: scopeId };\n const scopeContext = rt === CoreResourceType.ORGANIZATION_SSO_CONFIG\n ? { organization: { _id: scopeId } }\n : { application: { _id: scopeId } };\n const response = {\n _id: 'ssocfg_01JSSOEXAMPLE',\n enforcement: {\n requireSSO: true,\n allowPasswordFallback: false,\n graceLoginAttempts: 1,\n },\n domains: {\n verifiedDomains: [SSO_CONFIG_DOMAIN_EXAMPLE],\n ssoEnabledDomains: [SSO_CONFIG_DOMAIN_EXAMPLE],\n domainHinting: true,\n allowExternalDomains: false,\n domainVerificationStatus: {\n [SSO_CONFIG_DOMAIN_EXAMPLE]: DomainVerificationStatus.VERIFIED,\n },\n },\n provisioning: {\n autoCreateUsers: true,\n autoUpdateUsers: true,\n autoDeactivateUsers: false,\n defaultRole: 'organization-member',\n requiredAttributes: ['email'],\n syncFrequencyHours: 24,\n },\n sessionSettings: {\n ssoSessionDurationMinutes: 480,\n requireReauthForSensitive: true,\n singleLogoutEnabled: true,\n maxConcurrentSessions: 5,\n },\n auditConfig: {\n logAllSSOEvents: true,\n logProviderSwitching: true,\n logRoleMapping: true,\n complianceReporting: true,\n retentionDays: 365,\n },\n emergencyAccess: {\n enabled: true,\n breakGlassAccounts: ['breakglass@identity.example.com', 'breakglass-2@identity.example.com'],\n },\n oauth2ProviderRestrictions: {\n allowedProviders: [],\n blockedProviders: [],\n requireEnterpriseSSOOnly: true,\n },\n socialCredentialOverrides: [],\n createdAt: '2026-08-20T08:00:00.000Z',\n updatedAt: '2026-08-20T08:15:00.000Z',\n ...scopeIdentifier,\n };\n\n return {\n response,\n contextResponse: { ...response, ...scopeContext },\n summaryResponse: {\n _id: response._id,\n enforcement: response.enforcement,\n },\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const examples = createSsoConfigExamples(rt);\n\n return resourceSpecification<Custom, Core, Main>(\n ssoConfigPolymorphicFactories[rt],\n SsoConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SSO **policy and settings** for a scope: enforcement, email-domain routing, session and audit knobs, and emergency break-glass. Concrete IdP **connections** are `SsoConnection` resources.',\n businessRole: 'The customer-facing “how SSO works here” config separate from one provider’s OIDC/SAML row.',\n lifecycleRole: 'Tightened or relaxed through framework-owned administrative policy services. Email-domain ownership is the one publicly mutable part, through the DNS-challenge operations `claimDomain` / `verifyDomain` / `revokeDomain`.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'SsoConfigBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'ssoConfigPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY }, identifierField: 'collectionKey', identifierValue: rt },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'SsoConfig_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n },\n fields: {\n enforcement: schemaShape.enforcement.objectSpec({ meaning: 'Require-SSO, password fallback, admin-only enforcement, and grace attempts — the “hard vs soft” SSO posture for the scope.' }),\n domains: schemaShape.domains.objectSpec({ meaning: 'Email-domain allow and verification state maps, plus whether external domains and hinting are allowed — drives login routing UX.' }),\n sessionSettings: schemaShape.sessionSettings.objectSpec({ meaning: 'SSO session duration, reauth for sensitive, SLO, and concurrent session caps for enterprise expectations.' }),\n socialCredentialOverrides: schemaShape.socialCredentialOverrides.arraySpec({\n meaning: 'Per-scope social-provider OAuth2 credential overrides: when set, this org/app uses its own registered OAuth2 app (client id/secret, plus signed-JWT team/key ids for Apple-style secrets) instead of the platform-level social credentials from AppConfiguration.',\n elementMeaning: 'One provider override — the target `providerRef` plus its scope-owned client credentials. `clientSecret` is a write-only secret (operator-writable, returned to the client masked as `••••••••`); `signedJwtKeyId`/`signedJwtTeamId` are backend-only (never returned). All three are re-injected from the existing record on save when the client sends the mask or omits them.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the current SSO policy for org/app admins.',\n outcome: 'Security settings and enforcement preview UIs can hydrate from this op.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy document for the scope was found and its enforcement, domains, and session blocks are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role required to read the SSO policy.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO policy has been provisioned for this scope yet.' },\n ],\n examples: [{\n title: 'Read the complete SSO policy',\n response: examples.response,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read the SSO policy with its owning scope context',\n response: examples.contextResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read the SSO enforcement summary',\n response: examples.summaryResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Bootstrap a policy row (INTERNAL_CALL create in the factory — no public HTTP route; seed / system-context lazy-create only; HIGH risk).',\n outcome: 'First-time SSO policy for a scope in migration or greenfield flows.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'An SSO policy document was provisioned for the scope and returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The enforcement/domains/session blocks fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/migration operator; this is a HIGH-risk internal-only (INTERNAL_CALL) bootstrap, not a self-serve create.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'An SSO policy already exists for this scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision an SSO policy for a scope',\n request: {\n enforcement: { requireSSO: false, allowPasswordFallback: true },\n domains: { allowExternalDomains: false },\n },\n response: {\n _id: 'ssocfg_01HX2…',\n enforcement: { requireSSO: false, allowPasswordFallback: true },\n domains: { allowExternalDomains: false },\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Patch nested blocks through the internal administrative policy service (INTERNAL_CALL update — no public HTTP route; reached through `AuthOrganizationConfigurationService.saveSSOConfig` on the admin’s execution context, preserving admin audit attribution; HIGH risk).',\n outcome: 'Updated sign-in and routing behavior for subsequent sessions, subject to cache/propagation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy was updated and the new enforcement/routing posture for the scope is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched enforcement, domains, or session block fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to rewrite the SSO policy.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO policy exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Internal-only enumeration (INTERNAL_CALL — no public HTTP route) whose single caller is the domain-exclusivity probe behind `claimDomain` / `verifyDomain`.',\n outcome: 'The probe can answer whether any OTHER scope already holds a domain verified — the question that keeps sign-in routing deterministic.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy rows visible to the system-context probe are returned.' },\n ],\n // No public API_CALL variant exists: one tenant enumerating every other tenant's SSO\n // policy is the opposite of what this resource is for, so no client-facing errors are\n // documented.\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SSO policy row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope SSO policy row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n [SsoConfig_Operations.CLAIM_DOMAIN]: {\n operationId: SsoConfig_Operations.CLAIM_DOMAIN,\n purpose: 'Claim an email domain for this scope and receive the DNS TXT record that proves ownership of it.',\n outcome: 'The domain is recorded as `pending` and a challenge nonce is minted. Publish the returned record at the returned name, then call `verifyDomain`. The claim itself changes no sign-in behavior.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The claim was recorded as `pending` and the response carries the DNS name and the exact TXT value to publish. The value is shown once and cannot be read back.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or is not a DNS hostname with at least two labels.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another scope already holds this domain verified. It must be revoked there first; the holder is deliberately not named.', errorCode: 'SSO_DOMAIN_VERIFIED_ELSEWHERE' },\n ],\n idempotent: false,\n rateLimitNote: 'Each call mints a fresh nonce and invalidates the previous one, so a claim repeated while an operator is mid-publish resets the challenge.',\n examples: [\n {\n title: 'Claim a corporate email domain',\n request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },\n response: {\n domain: SSO_CONFIG_DOMAIN_EXAMPLE,\n status: DomainVerificationStatus.PENDING,\n dnsName: `_wildo-verification.${SSO_CONFIG_DOMAIN_EXAMPLE}`,\n dnsRecordValue: 'wildo-domain-verification=6f1c1d2e-2b5a-4f0e-9a3d-7c1b8e5a0d42',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [SsoConfig_Operations.VERIFY_DOMAIN]: {\n operationId: SsoConfig_Operations.VERIFY_DOMAIN,\n purpose: 'Resolve the DNS TXT challenge for a claimed domain and record the outcome.',\n outcome: 'On a match the domain becomes `verified` and sign-ins at it route to this scope’s identity provider. On a miss it becomes `failed` and the response lists the TXT records that were found, so the mismatch is diagnosable without a second tool.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The challenge was resolved. `status` is `verified` or `failed`; a failed check is a result, not an error.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or malformed.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'No challenge exists for this domain in this scope (claim it first), or another scope verified it while this claim was pending.', errorCode: 'SSO_DOMAIN_NOT_CLAIMED' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Verify a published DNS challenge',\n request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },\n response: {\n domain: SSO_CONFIG_DOMAIN_EXAMPLE,\n status: DomainVerificationStatus.VERIFIED,\n dnsName: `_wildo-verification.${SSO_CONFIG_DOMAIN_EXAMPLE}`,\n dnsRecordsFound: ['wildo-domain-verification=6f1c1d2e-2b5a-4f0e-9a3d-7c1b8e5a0d42'],\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [SsoConfig_Operations.REVOKE_DOMAIN]: {\n operationId: SsoConfig_Operations.REVOKE_DOMAIN,\n purpose: 'Withdraw this scope’s claim on a domain, releasing it for another scope to verify.',\n outcome: 'The domain leaves the claimed list, its status and its nonce, and its `ssoEnabledDomains` entry. New sign-ins at the domain stop routing to this scope; sessions already established are unaffected.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The scope now holds no claim, status or nonce for the domain.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or malformed.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'This scope holds no claim on that domain, so there is nothing to revoke.', errorCode: 'SSO_DOMAIN_NOT_CLAIMED' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Release a domain before handing it to another scope',\n request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },\n response: { domain: SSO_CONFIG_DOMAIN_EXAMPLE, revoked: true },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'This resource is the policy document for SSO behavior in-product; individual IdP connection rows (`SsoConnection`) remain the correct place to describe per-provider setup and `TEST_CONNECTION` flows.',\n 'SCIM user provisioning (token resources and `ScimProvisioningConfig`) is a separate channel from `SsoConfig.provisioning` JIT in schema notes — avoid conflating them in end-user help.',\n 'A domain grants nothing until it is VERIFIED. `claimDomain` records it as `pending` and mints a DNS-TXT challenge; every routing reader joins the claimed list against `domainVerificationStatus`, so a claim alone never reaches sign-in behavior.',\n 'A domain may be verified for at most ONE scope at a time. Both `claimDomain` and `verifyDomain` refuse with `SSO_DOMAIN_VERIFIED_ELSEWHERE` when another scope holds it — a domain routes sign-ins to exactly one identity provider, and two holders would make that routing depend on which configuration the lookup reached first. Handing a domain over therefore means the current holder revokes before the next one verifies.',\n 'Revocation withdraws routing, never sessions. A verified domain is a routing hint that decides where a NEW sign-in is sent; it is not a credential and confers no standing, so revoking it does not invalidate sessions established while it was verified. Ending those is a separate control (member suspension, user deactivation, the session fence).',\n 'The verification nonce is disclosed exactly once, in the `claimDomain` response. It is backend-only in storage and never returned by a read; an operator who loses it claims again, which mints a new nonce and invalidates the old one.',\n 'A named `emergencyAccess.breakGlassAccounts` entry may sign in with a password past this scope\\'s own SSO requirement, including past an exhausted grace allowance, and is exempt from nothing else — same password, same lockout counters, same rate limits. Every use raises `EMERGENCY_ACCESS_USED` at CRITICAL.',\n 'While that list is non-empty the WHOLE scope keeps a password field on its sign-in page, even under `allowPasswordFallback: false`. Offering it only to the listed accounts would make the sign-in response an oracle for who they are; everyone else is instead refused after presenting a correct credential.',\n 'Break-glass works at organization and application scope alike, and each use is recorded under the scope whose policy granted it — never under an organization an application-scope policy does not have.',\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n buildBase(rt, member),\n () => ({\n layout: {\n purpose: 'Seven section refs in `security` : `enforcement`, `domains`, `provisioning` (IdP push/JIT, distinct from SCIM), `session`, `audit`, `emergency`, `oauth` (provider restrictions and OAuth2 scopes).',\n displayPurpose: 'Long-form display layout mirrors edit sections for a guided admin walkthrough of SSO security posture.',\n sections: {\n enforcement: { purpose: 'When SSO is mandatory vs optional, and grace for password fallback.', whenToUse: 'First-time SSO hardening in tenant security.', textSlots: { title: { purpose: 'Enforcement heading.' }, description: { purpose: 'Tie to auth flows and any grace counters from factory-enabled checks.' } } },\n domains: { purpose: 'Email-domain routing, verification, and allow lists.', whenToUse: 'Onboarding a new corporate email domain to SSO without opening all addresses globally.', textSlots: { title: { purpose: 'Domains block.' }, description: { purpose: 'DNS verification state is backend-owned; UI may show per-domain badges.' } } },\n provisioning: { purpose: 'IdP-provisioned user lifecycle in the **SSO/SCIM** sense as modeled in the schema (not the SCIM token resource).', whenToUse: 'When enterprises expect IdP to drive user create/update in Wildo for SSO, subject to product wiring.', textSlots: { title: { purpose: 'Provisioning (SSO) heading.' }, description: { purpose: 'Clarify difference vs SCIM push channel configured elsewhere.' } } },\n session: { purpose: 'SSO session duration, reauth, SLO, concurrent sessions — enterprise session hygiene.', whenToUse: 'Security and compliance review of idle vs absolute timeouts.', textSlots: { title: { purpose: 'Session settings.' }, description: { purpose: 'Note impact on `maxConcurrentSessions` and user-visible sign-out.' } } },\n audit: { purpose: 'What SSO path actions are auditable, retention, and compliance reporting flags.', whenToUse: 'Customers needing provable sign-in and IdP event trails.', textSlots: { title: { purpose: 'SSO audit block.' }, description: { purpose: 'Tie to `AuditEvent` classifiers, not the raw SIEM stream.' } } },\n emergency: { purpose: 'The named accounts that may still sign in with a password when the identity provider cannot be reached.', whenToUse: 'Configuring break-glass before an outage, and reviewing who holds it afterwards.', textSlots: { title: { purpose: 'Emergency access.' }, description: { purpose: 'Keep the list small and reviewed: each entry is a standing password path into a tenant that otherwise requires SSO, and every use raises a CRITICAL audit event.' } } },\n oauth: { purpose: 'OAuth2 provider allow/deny, scopes, and tenant restrictions to reduce token theft blast radius in OIDC-based SSO when configured.', whenToUse: 'Locking IdP tenants and scopes in highly regulated orgs.', textSlots: { title: { purpose: 'OAuth restrictions.' }, description: { purpose: 'Complement, not replace, the per-connection OIDC field-level settings in `SsoConnection` resources.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Addressable read for org in merged main/admin where presets surface SSO policy; app-scoped may suppress views in `variantOverrides`—factory READ remains.', whenToUse: 'Security “SSO” settings in admin consoles.' },\n [SsoConfig_Operations.CLAIM_DOMAIN]: { purpose: 'Domain-claim action; not addressable in the default `views` array, invoked from the domains section so the returned DNS record can be copied immediately.', whenToUse: 'Onboarding a corporate email domain to enterprise SSO.' },\n [SsoConfig_Operations.VERIFY_DOMAIN]: { purpose: 'Challenge-check action; not addressable in the default `views` array, invoked per claimed domain once its DNS record has propagated.', whenToUse: 'Completing an onboarding after publishing the TXT record, and re-checking after a failed attempt.' },\n [SsoConfig_Operations.REVOKE_DOMAIN]: { purpose: 'Claim-withdrawal action; not addressable in the default `views` array, invoked per claimed domain.', whenToUse: 'Retiring a domain, or releasing it so a different scope can verify it.' },\n },\n }),\n );\n}\n\nexport const organizationSsoConfigResourceSpecification = build(CoreResourceType.ORGANIZATION_SSO_CONFIG, 'ORGANIZATION_SSO_CONFIG');\nexport const applicationSsoConfigResourceSpecification = build(CoreResourceType.APPLICATION_SSO_CONFIG, 'APPLICATION_SSO_CONFIG');\n"]}
|
|
1
|
+
{"version":3,"file":"sso-config.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAU3E,SAAS,CAAC,CAAC,MAAwC,EAAE,EAAS,EAAE,IAAY;IAC1E,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAkB,CAAC;IACtC,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,QAAQ,IAAI,GAAG,CAAC,CAAC;IACvD,OAAO,CAAC,CAAC;AACX,CAAC;AACD,MAAM,KAAK,GAAwC;IACjD,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,EAAE,oBAAoB,CAAC,aAAa;IAC9E,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,EAAE,oBAAoB,CAAC,WAAW;CAC5E,CAAC;AAEF,MAAM,yBAAyB,GAAG,sBAAsB,CAAC;AAEzD;;;;;;GAMG;AACH,SAAS,uBAAuB,CAAC,EAAS;IACxC,MAAM,OAAO,GAAG,EAAE,KAAK,gBAAgB,CAAC,uBAAuB,CAAC,CAAC,CAAC,mBAAm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AAwD,EAAE;YAClR,CAAC,oBAAoB,CAAC,aAAa,CAAC,EAAE,EAAE,OAAO,EAAE,sIAAsI,EAAE,SAAS,EAAE,mGAAmG,EAAE;YACzS,CAAC,oBAAoB,CAAC,aAAa,CAAC,EAAE,EAAE,OAAO,EAAE,oGAAoG,EAAE,SAAS,EAAE,wEAAwE,EAAE;SAC7O;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,0CAA0C,GAAG,KAAK,CAAC,gBAAgB,CAAC,uBAAuB,EAAE,yBAAyB,CAAC,CAAC;AACrI,MAAM,CAAC,MAAM,yCAAyC,GAAG,KAAK,CAAC,gBAAgB,CAAC,sBAAsB,EAAE,wBAAwB,CAAC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n DomainVerificationStatus,\n ResourcePrimaryScope,\n SsoConfig_Operations,\n SsoConfigBaseSchema,\n ssoConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SSO_CONFIG | CoreResourceType.APPLICATION_SSO_CONFIG;\ntype RMember = 'ORGANIZATION_SSO_CONFIG' | 'APPLICATION_SSO_CONFIG';\ntype Cfg = ReturnType<(typeof ssoConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SSO_CONFIG]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof SsoConfigBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SSO_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SSO_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SSO_CONFIG_DOMAIN_EXAMPLE = 'identity.example.com';\n\n/**\n * Builds the three READ representation examples from one policy snapshot so\n * the source specification, generated OpenAPI, and native renderer cannot\n * teach contradictory SSO postures. Scope-specific ownership is injected here\n * rather than duplicated in the organization and application specifications.\n * Secrets and backend-only domain-verification tokens are deliberately absent.\n */\nfunction createSsoConfigExamples(rt: RType) {\n const scopeId = rt === CoreResourceType.ORGANIZATION_SSO_CONFIG ? 'org_01JSSOEXAMPLE' : 'app_01JSSOEXAMPLE';\n const scopeIdentifier = rt === CoreResourceType.ORGANIZATION_SSO_CONFIG\n ? { organizationId: scopeId }\n : { applicationId: scopeId };\n const scopeContext = rt === CoreResourceType.ORGANIZATION_SSO_CONFIG\n ? { organization: { _id: scopeId } }\n : { application: { _id: scopeId } };\n const response = {\n _id: 'ssocfg_01JSSOEXAMPLE',\n enforcement: {\n requireSSO: true,\n allowPasswordFallback: false,\n graceLoginAttempts: 1,\n },\n domains: {\n verifiedDomains: [SSO_CONFIG_DOMAIN_EXAMPLE],\n ssoEnabledDomains: [SSO_CONFIG_DOMAIN_EXAMPLE],\n domainVerificationStatus: {\n [SSO_CONFIG_DOMAIN_EXAMPLE]: DomainVerificationStatus.VERIFIED,\n },\n },\n sessionSettings: {\n singleLogoutEnabled: true,\n },\n emergencyAccess: {\n enabled: true,\n breakGlassAccounts: ['breakglass@identity.example.com', 'breakglass-2@identity.example.com'],\n },\n oauth2ProviderRestrictions: {\n allowedProviders: [],\n blockedProviders: [],\n requireEnterpriseSSOOnly: true,\n },\n socialCredentialOverrides: [],\n createdAt: '2026-08-20T08:00:00.000Z',\n updatedAt: '2026-08-20T08:15:00.000Z',\n ...scopeIdentifier,\n };\n\n return {\n response,\n contextResponse: { ...response, ...scopeContext },\n summaryResponse: {\n _id: response._id,\n enforcement: response.enforcement,\n },\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const examples = createSsoConfigExamples(rt);\n\n return resourceSpecification<Custom, Core, Main>(\n ssoConfigPolymorphicFactories[rt],\n SsoConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SSO **policy and settings** for a scope: enforcement, email-domain routing, session and audit knobs, and emergency break-glass. Concrete IdP **connections** are `SsoConnection` resources.',\n businessRole: 'The customer-facing “how SSO works here” config separate from one provider’s OIDC/SAML row.',\n lifecycleRole: 'Tightened or relaxed through framework-owned administrative policy services. Email-domain ownership is the one publicly mutable part, through the DNS-challenge operations `claimDomain` / `verifyDomain` / `revokeDomain`.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'SsoConfigBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'ssoConfigPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY }, identifierField: 'collectionKey', identifierValue: rt },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'SsoConfig_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n },\n fields: {\n enforcement: schemaShape.enforcement.objectSpec({ meaning: 'Require-SSO, password fallback, admin-only enforcement, and grace attempts — the “hard vs soft” SSO posture for the scope.' }),\n domains: schemaShape.domains.objectSpec({ meaning: 'Email-domain allow and verification state maps, plus whether external domains and hinting are allowed — drives login routing UX.' }),\n sessionSettings: schemaShape.sessionSettings.objectSpec({ meaning: 'SSO session duration, reauth for sensitive, SLO, and concurrent session caps for enterprise expectations.' }),\n socialCredentialOverrides: schemaShape.socialCredentialOverrides.arraySpec({\n meaning: 'Per-scope social-provider OAuth2 credential overrides: when set, this org/app uses its own registered OAuth2 app (client id/secret, plus signed-JWT team/key ids for Apple-style secrets) instead of the platform-level social credentials from AppConfiguration.',\n elementMeaning: 'One provider override — the target `providerRef` plus its scope-owned client credentials. `clientSecret` is a write-only secret (operator-writable, returned to the client masked as `••••••••`); `signedJwtKeyId`/`signedJwtTeamId` are backend-only (never returned). All three are re-injected from the existing record on save when the client sends the mask or omits them.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the current SSO policy for org/app admins.',\n outcome: 'Security settings and enforcement preview UIs can hydrate from this op.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy document for the scope was found and its enforcement, domains, and session blocks are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role required to read the SSO policy.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO policy has been provisioned for this scope yet.' },\n ],\n examples: [{\n title: 'Read the complete SSO policy',\n response: examples.response,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read the SSO policy with its owning scope context',\n response: examples.contextResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read the SSO enforcement summary',\n response: examples.summaryResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Bootstrap a policy row (INTERNAL_CALL create in the factory — no public HTTP route; seed / system-context lazy-create only; HIGH risk).',\n outcome: 'First-time SSO policy for a scope in migration or greenfield flows.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'An SSO policy document was provisioned for the scope and returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The enforcement/domains/session blocks fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/migration operator; this is a HIGH-risk internal-only (INTERNAL_CALL) bootstrap, not a self-serve create.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'An SSO policy already exists for this scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision an SSO policy for a scope',\n request: {\n enforcement: { requireSSO: false, allowPasswordFallback: true },\n domains: { allowExternalDomains: false },\n },\n response: {\n _id: 'ssocfg_01HX2…',\n enforcement: { requireSSO: false, allowPasswordFallback: true },\n domains: { allowExternalDomains: false },\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Patch nested blocks of the SSO policy for a scope (API_CALL update — the administrator’s edit door, gated on the same org-admin / app-super-admin roles as the read; HIGH risk). Backend callers that hold no operation — `AuthOrganizationConfigurationService.saveSSOConfig`, `initiateDomainVerification`, `verifyDomainOwnership` — resolve this SAME default through `getServiceOperationPathDefault` on the admin’s execution context, preserving admin audit attribution. It was INTERNAL_CALL and route-less, which left the policy readable by an administrator and writable by nobody.',\n outcome: 'Updated sign-in and routing behavior for subsequent sessions, subject to cache/propagation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy was updated and the new enforcement/routing posture for the scope is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched enforcement, domains, or session block fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to rewrite the SSO policy.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO policy exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Internal-only enumeration (INTERNAL_CALL — no public HTTP route) whose single caller is the domain-exclusivity probe behind `claimDomain` / `verifyDomain`.',\n outcome: 'The probe can answer whether any OTHER scope already holds a domain verified — the question that keeps sign-in routing deterministic.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy rows visible to the system-context probe are returned.' },\n ],\n // No public API_CALL variant exists: one tenant enumerating every other tenant's SSO\n // policy is the opposite of what this resource is for, so no client-facing errors are\n // documented.\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SSO policy row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope SSO policy row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n [SsoConfig_Operations.CLAIM_DOMAIN]: {\n operationId: SsoConfig_Operations.CLAIM_DOMAIN,\n purpose: 'Claim an email domain for this scope and receive the DNS TXT record that proves ownership of it.',\n outcome: 'The domain is recorded as `pending` and a challenge nonce is minted. Publish the returned record at the returned name, then call `verifyDomain`. The claim itself changes no sign-in behavior.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The claim was recorded as `pending` and the response carries the DNS name and the exact TXT value to publish. The value is shown once and cannot be read back.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or is not a DNS hostname with at least two labels.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Another scope already holds this domain verified. It must be revoked there first; the holder is deliberately not named.', errorCode: 'SSO_DOMAIN_VERIFIED_ELSEWHERE' },\n ],\n idempotent: false,\n rateLimitNote: 'Each call mints a fresh nonce and invalidates the previous one, so a claim repeated while an operator is mid-publish resets the challenge.',\n examples: [\n {\n title: 'Claim a corporate email domain',\n request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },\n response: {\n domain: SSO_CONFIG_DOMAIN_EXAMPLE,\n status: DomainVerificationStatus.PENDING,\n dnsName: `_wildo-verification.${SSO_CONFIG_DOMAIN_EXAMPLE}`,\n dnsRecordValue: 'wildo-domain-verification=6f1c1d2e-2b5a-4f0e-9a3d-7c1b8e5a0d42',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [SsoConfig_Operations.VERIFY_DOMAIN]: {\n operationId: SsoConfig_Operations.VERIFY_DOMAIN,\n purpose: 'Resolve the DNS TXT challenge for a claimed domain and record the outcome.',\n outcome: 'On a match the domain becomes `verified` and sign-ins at it route to this scope’s identity provider. On a miss it becomes `failed` and the response lists the TXT records that were found, so the mismatch is diagnosable without a second tool.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The challenge was resolved. `status` is `verified` or `failed`; a failed check is a result, not an error.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or malformed.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'No challenge exists for this domain in this scope (claim it first), or another scope verified it while this claim was pending.', errorCode: 'SSO_DOMAIN_NOT_CLAIMED' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Verify a published DNS challenge',\n request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },\n response: {\n domain: SSO_CONFIG_DOMAIN_EXAMPLE,\n status: DomainVerificationStatus.VERIFIED,\n dnsName: `_wildo-verification.${SSO_CONFIG_DOMAIN_EXAMPLE}`,\n dnsRecordsFound: ['wildo-domain-verification=6f1c1d2e-2b5a-4f0e-9a3d-7c1b8e5a0d42'],\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [SsoConfig_Operations.REVOKE_DOMAIN]: {\n operationId: SsoConfig_Operations.REVOKE_DOMAIN,\n purpose: 'Withdraw this scope’s claim on a domain, releasing it for another scope to verify.',\n outcome: 'The domain leaves the claimed list, its status and its nonce, and its `ssoEnabledDomains` entry. New sign-ins at the domain stop routing to this scope; sessions already established are unaffected.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The scope now holds no claim, status or nonce for the domain.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or malformed.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },\n /**\n * 409, not 404 — corrected 2026-09-10 when the refusal was driven over HTTP for the\n * first time. The sibling `verifyDomain` above documents the SAME `errorCode` at 409\n * for the same condition, and only the CONFLICT form can actually carry that code to a\n * client: `sanitizeErrorForClient` allow-lists a refusal's context for VALIDATION /\n * CONFLICT / RATE_LIMIT and strips it whole otherwise, so the 404 form answered a bare\n * `not_found` and this `errorCode` described something no caller could observe.\n */\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This scope holds no claim on that domain, so there is nothing to revoke.', errorCode: 'SSO_DOMAIN_NOT_CLAIMED' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Release a domain before handing it to another scope',\n request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },\n response: { domain: SSO_CONFIG_DOMAIN_EXAMPLE, revoked: true },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'This resource is the policy document for SSO behavior in-product; individual IdP connection rows (`SsoConnection`) remain the correct place to describe per-provider setup and `TEST_CONNECTION` flows.',\n 'Provisioning has exactly TWO authorities and this row is neither. An interactive sign-in reads the CONNECTION (`SsoConnection.{autoCreateUsers, autoVerifyEmail, defaultRole, roleMapping, groupMapping}`) — per connection, because two IdPs on one tenant may differ. A directory PUSH reads `ScimProvisioningConfig` — per organization, because there is one directory relationship. `SsoConfig.provisioning` was a third, org-wide copy that nothing read; it is gone. Say which of the two a question is about; never describe this resource as governing provisioning.',\n 'A domain grants nothing until it is VERIFIED. `claimDomain` records it as `pending` and mints a DNS-TXT challenge; every routing reader joins the claimed list against `domainVerificationStatus`, so a claim alone never reaches sign-in behavior.',\n 'A domain may be verified for at most ONE scope at a time. Both `claimDomain` and `verifyDomain` refuse with `SSO_DOMAIN_VERIFIED_ELSEWHERE` when another scope holds it — a domain routes sign-ins to exactly one identity provider, and two holders would make that routing depend on which configuration the lookup reached first. Handing a domain over therefore means the current holder revokes before the next one verifies.',\n 'Revocation withdraws routing, never sessions. A verified domain is a routing hint that decides where a NEW sign-in is sent; it is not a credential and confers no standing, so revoking it does not invalidate sessions established while it was verified. Ending those is a separate control (member suspension, user deactivation, the session fence).',\n 'The verification nonce is disclosed exactly once, in the `claimDomain` response. It is backend-only in storage and never returned by a read; an operator who loses it claims again, which mints a new nonce and invalidates the old one.',\n 'A named `emergencyAccess.breakGlassAccounts` entry may sign in with a password past this scope\\'s own SSO requirement, including past an exhausted grace allowance, and is exempt from nothing else — same password, same lockout counters, same rate limits. Every use raises `EMERGENCY_ACCESS_USED` at CRITICAL.',\n 'While that list is non-empty the WHOLE scope keeps a password field on its sign-in page, even under `allowPasswordFallback: false`. Offering it only to the listed accounts would make the sign-in response an oracle for who they are; everyone else is instead refused after presenting a correct credential.',\n 'Break-glass works at organization and application scope alike, and each use is recorded under the scope whose policy granted it — never under an organization an application-scope policy does not have.',\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n buildBase(rt, member),\n () => ({\n layout: {\n purpose: 'Five section refs in `security` : `enforcement`, `domains`, `session`, `emergency`, `oauth` (provider restrictions and OAuth2 scopes). There is no `audit` section either: the five flags it rendered were inert, and audit behaviour is not configurable per SSO policy — emission follows the operation\\u2019s risk level against `AUTOMATIC_AUDIT_RISK_FLOOR`, retention follows `ApplicationRetentionSchedule`. There is deliberately no `provisioning` section: the block it rendered decided nothing, and on an SSO pane it read as the summary of the two settings that DO decide — the connection\\u2019s own flags and the SCIM provisioning row.',\n displayPurpose: 'Long-form display layout mirrors edit sections for a guided admin walkthrough of SSO security posture.',\n sections: {\n enforcement: { purpose: 'When SSO is mandatory vs optional, and grace for password fallback.', whenToUse: 'First-time SSO hardening in tenant security.', textSlots: { title: { purpose: 'Enforcement heading.' }, description: { purpose: 'Tie to auth flows and any grace counters from factory-enabled checks.' } } },\n domains: { purpose: 'Email-domain routing, verification, and allow lists.', whenToUse: 'Onboarding a new corporate email domain to SSO without opening all addresses globally.', textSlots: { title: { purpose: 'Domains block.' }, description: { purpose: 'DNS verification state is backend-owned; UI may show per-domain badges.' } } },\n session: { purpose: 'Federated logout — whether the SP advertises an SLO endpoint and honours logout in both directions. One row: session duration, step-up reauth and the concurrency limit were removed, each having decided nothing, and the concurrency limit having a live home at `userTypes.<type>.auth.maxConcurrentSessions`.', whenToUse: 'Deciding whether signing out of this application should sign the person out of the IdP.', textSlots: { title: { purpose: 'Session settings.' }, description: { purpose: 'State what SLO does to the IdP session, in both directions.' } } },\n emergency: { purpose: 'The named accounts that may still sign in with a password when the identity provider cannot be reached.', whenToUse: 'Configuring break-glass before an outage, and reviewing who holds it afterwards.', textSlots: { title: { purpose: 'Emergency access.' }, description: { purpose: 'Keep the list small and reviewed: each entry is a standing password path into a tenant that otherwise requires SSO, and every use raises a CRITICAL audit event.' } } },\n oauth: { purpose: 'OAuth2 provider allow/deny, scopes, and tenant restrictions to reduce token theft blast radius in OIDC-based SSO when configured.', whenToUse: 'Locking IdP tenants and scopes in highly regulated orgs.', textSlots: { title: { purpose: 'OAuth restrictions.' }, description: { purpose: 'Complement, not replace, the per-connection OIDC field-level settings in `SsoConnection` resources.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Addressable read for org in merged main/admin where presets surface SSO policy; app-scoped may suppress views in `variantOverrides`—factory READ remains.', whenToUse: 'Security “SSO” settings in admin consoles.' },\n [Op.UPDATE]: { purpose: 'The administrator’s edit of the policy, declared `notAddressable` so it opens from the READ view rather than adding a rail entry of its own.', whenToUse: 'Any change to enforcement, domains, session or OAuth policy from the Single sign-on settings pane.' },\n [SsoConfig_Operations.CLAIM_DOMAIN]: { purpose: 'Domain-claim action; not addressable in the default `views` array, invoked from the domains section so the returned DNS record can be copied immediately.', whenToUse: 'Onboarding a corporate email domain to enterprise SSO.' },\n [SsoConfig_Operations.VERIFY_DOMAIN]: { purpose: 'Challenge-check action; not addressable in the default `views` array, invoked per claimed domain once its DNS record has propagated.', whenToUse: 'Completing an onboarding after publishing the TXT record, and re-checking after a failed attempt.' },\n [SsoConfig_Operations.REVOKE_DOMAIN]: { purpose: 'Claim-withdrawal action; not addressable in the default `views` array, invoked per claimed domain.', whenToUse: 'Retiring a domain, or releasing it so a different scope can verify it.' },\n },\n }),\n );\n}\n\nexport const organizationSsoConfigResourceSpecification = build(CoreResourceType.ORGANIZATION_SSO_CONFIG, 'ORGANIZATION_SSO_CONFIG');\nexport const applicationSsoConfigResourceSpecification = build(CoreResourceType.APPLICATION_SSO_CONFIG, 'APPLICATION_SSO_CONFIG');\n"]}
|