@wildo-ai/saas-specifications 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +178 -2
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +115 -9
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.registry.js +60 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.js +15 -0
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +3 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +3 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/market/market.family-aspects.js +227 -0
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
- package/dist/esm/_core/provider-specification.schemas.js +144 -0
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
- package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
- package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +193 -38
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +157 -57
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +101 -85
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +171 -86
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +11 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +11 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +999 -2
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2127 -61
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +26 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +78 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +562 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +148 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js +385 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
- package/dist/esm/assurance/assurance-program.schemas.d.ts +474 -14
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +319 -8
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +2 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +2 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +26 -8
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.js +3 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +15 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +4 -2
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +17 -3
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +12 -10
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -2
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +3 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +15 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +17 -3
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +6 -4
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +4 -2
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +8 -6
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +11 -9
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +8 -6
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +106 -10
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -6
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +6 -3
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +4 -2
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -3
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +16 -12
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +8 -3
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +13 -9
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +30 -11
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +10 -8
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +11 -2
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +83 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
- package/dist/esm/engine/engine-resource-sub-domain.js +153 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +44 -1
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +5 -3
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +5 -3
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +5 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +12 -10
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +22 -10
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -4
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +4 -2
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/index.d.ts +0 -2
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +4 -6
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +15 -12
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +12 -9
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +9 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +9 -6
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +2 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +2 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +19 -17
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -7
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +10 -8
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +12 -5
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -15
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +14 -10
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +31 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +11 -9
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -3
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +6 -4
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +3 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +9 -7
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.js +30 -0
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +34 -0
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +23 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -0
- package/dist/esm/engine/providers/index.js +37 -0
- package/dist/esm/engine/providers/index.js.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +9 -7
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +11 -9
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +4 -2
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +10 -8
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +6 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +4 -2
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +5 -5
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +15 -11
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +3 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +11 -9
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +95 -0
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +451 -25
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +8 -8
- package/dist/esm/.builder.pid +0 -9
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
|
@@ -1 +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,aAAa,EACb,mBAAmB,EACnB,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL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EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,2DAA2D,EAAE,EAAE,EAAE;gBAC1T,SAAS,EAAE,EAAE,OAAO,EAAE,+FAA+F,EAAE,SAAS,EAAE,oEAAoE,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,sFAAsF,EAAE,EAAE,EAAE;gBAClX,KAAK,EAAE,EAAE,OAAO,EAAE,mIAAmI,EAAE,SAAS,EAAE,0DAA0D,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,qGAAqG,EAAE,EAAE,EAAE;aAC1Z;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2JAA2J,EAAE,SAAS,EAAE,4CAA4C,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 SSOAuditLevel,\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';\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 = undefined;\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 enforceForAdmins: true,\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: [],\n requireApproval: true,\n maxDurationHours: 4,\n auditLevel: SSOAuditLevel.VERBOSE,\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. Domain mutation is not publicly exposed until a real ownership-verification workflow is integrated.',\n audience: LabelAudience.DEVELOPER,\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 },\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.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 row 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 '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 'Domain add, ownership verification, and removal are not public operations until the runtime is integrated with domain-verification services. Placeholder acknowledgements must not be exposed as successful API behavior.',\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: 'Break-glass, approvals, and duration of elevated access in SSO outage scenarios when enabled.', whenToUse: 'Disaster recovery and controlled password fallback in emergencies.', textSlots: { title: { purpose: 'Emergency access.' }, description: { purpose: 'Human approval and short TTL are typical — align with `SSOAuditLevel` in the schema.' } } },\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 },\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,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AAE,OAAO,EAAE,yGAAyG,EAAE,SAAS,EAAE,kFAAkF,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,kKAAkK,EAAE,EAAE,EAAE;gBACtd,KAAK,EAAE,EAAE,OAAO,EAAE,mIAAmI,EAAE,SAAS,EAAE,0DAA0D,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,qGAAqG,EAAE,EAAE,EAAE;aAC1Z;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2JAA2J,EAAE,SAAS,EAAE,4CAA4C,EAAE;YAC5O,CAAC,oBAAoB,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,EAAE,2JAA2J,EAAE,SAAS,EAAE,wDAAwD,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 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"]}
|
|
@@ -77,9 +77,6 @@ export declare const organizationSsoConnectionsResourceSpecification: ResourceSp
|
|
|
77
77
|
employeeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
78
|
groups: import("zod").ZodOptional<import("zod").ZodString>;
|
|
79
79
|
}, import("zod/v4/core").$strip>;
|
|
80
|
-
validateIssuer: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
81
|
-
validateAudience: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
82
|
-
clockTolerance: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNumber>>;
|
|
83
80
|
acrValues: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
84
81
|
maxAge: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
85
82
|
prompt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -187,9 +184,6 @@ export declare const applicationSsoConnectionsResourceSpecification: ResourceSpe
|
|
|
187
184
|
employeeId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
188
185
|
groups: import("zod").ZodOptional<import("zod").ZodString>;
|
|
189
186
|
}, import("zod/v4/core").$strip>;
|
|
190
|
-
validateIssuer: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
191
|
-
validateAudience: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>;
|
|
192
|
-
clockTolerance: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNumber>>;
|
|
193
187
|
acrValues: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
194
188
|
maxAge: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
195
189
|
prompt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso-connections.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-connections.resource.specification.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,wBAAwB,EAKxB,WAAW,EAEZ,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"sso-connections.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-connections.resource.specification.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,wBAAwB,EAKxB,WAAW,EAEZ,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAukBrC,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG3D,CAAC;AAEF,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG1D,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { securityAdminPresets, securityMainPresets, } from '@wildo-ai/presets-co
|
|
|
3
3
|
import { CoreResourceOperation as Op, CoreResourceType, ResourcePrimaryScope, SsoConnection_Operations, SsoConnectionDiscoverySource, SsoConnectionTestOverallStatus, SsoConnectionBaseSchema, SamlNameIdFormat, SsoProtocol, ssoConnectionPolymorphicFactories, } from '@wildo-ai/saas-models';
|
|
4
4
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
6
7
|
function resolveSsoConnectionUIBehavior(source, resourceType, sourceName) {
|
|
7
8
|
const uiBehavior = source[resourceType];
|
|
8
9
|
if (!uiBehavior) {
|
|
@@ -95,6 +96,7 @@ function buildSsoConnectionsBaseSpecification(resourceType, resourceTypeMemberNa
|
|
|
95
96
|
businessRole: 'Administrative authentication-connection record that binds one auth scope to a concrete OIDC or SAML provider setup.',
|
|
96
97
|
lifecycleRole: 'Moves from draft/provider setup through validation and eventual activation, rotation, or retirement under admin control.',
|
|
97
98
|
audience: LabelAudience.DEVELOPER,
|
|
99
|
+
subDomain: EngineResourceSubDomain.AUTH,
|
|
98
100
|
codeHandling: {
|
|
99
101
|
mainSchema: {
|
|
100
102
|
packageName: '@wildo-ai/saas-models',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso-connections.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-connections.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,8BAA8B,EAC9B,aAAa,GACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,EACvB,gBAAgB,EAChB,WAAW,EACX,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AAsBrC,SAAS,8BAA8B,CACrC,MAAwC,EACxC,YAAuC,EACvC,UAAkB;IAElB,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAmD,CAAC;IAC1F,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,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AA6B,CAC9B,CAAC","sourcesContent":["import {\n CorePresetNames,\n CorePreset_ResourceLayout_Read,\n LabelAudience,\n} from '@wildo-ai/presets-components-models';\nimport {\n securityAdminPresets,\n securityMainPresets,\n} from '@wildo-ai/presets-components';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n SsoConnection_Operations,\n SsoConnectionDiscoverySource,\n SsoConnectionTestOverallStatus,\n SsoConnectionBaseSchema,\n SamlNameIdFormat,\n SsoProtocol,\n ssoConnectionPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\n\ntype SsoConnectionResourceType =\n | CoreResourceType.ORGANIZATION_SSO_CONNECTIONS\n | CoreResourceType.APPLICATION_SSO_CONNECTIONS;\n\ntype SsoConnectionResourceTypeMemberName =\n | 'ORGANIZATION_SSO_CONNECTIONS'\n | 'APPLICATION_SSO_CONNECTIONS';\n\ntype SsoConnectionResourceConfiguration = ReturnType<\n (typeof ssoConnectionPolymorphicFactories)[CoreResourceType.ORGANIZATION_SSO_CONNECTIONS]\n>;\ntype SsoConnectionCustomOperation = NonNullable<SsoConnectionResourceConfiguration['customOperation']>;\ntype SsoConnectionCoreOperation = SsoConnectionResourceConfiguration['coreOperations'][number];\ntype SsoConnectionMainSchema = typeof SsoConnectionBaseSchema;\ntype SsoConnectionFrontendConfiguration = ResourceUIBehaviorConfig<\n SsoConnectionCustomOperation,\n SsoConnectionCoreOperation,\n SsoConnectionMainSchema\n>;\n\nfunction resolveSsoConnectionUIBehavior(\n source: Partial<Record<string, unknown>>,\n resourceType: SsoConnectionResourceType,\n sourceName: string,\n): SsoConnectionFrontendConfiguration {\n const uiBehavior = source[resourceType] as SsoConnectionFrontendConfiguration | undefined;\n if (!uiBehavior) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return uiBehavior;\n}\n\n/**\n * Map each polymorphic SSO-connection resource type to its declared\n * `resourcePrimaryScope` (Phase 4.5 Step 2 — F-1). The polymorphic\n * factory derives the same value from the resource's relationships\n * (`AUTH_SCOPE_VARIANTS` carries `isPrimaryScope: true` for both the\n * `ORGANIZATIONS` and `APPLICATION` parents, so\n * `createPolymorphicScopeRelationships` emits scope edges for both\n * variants). Adding a new SSO-connection variant requires explicitly\n * extending this map (TypeScript-enforced via the\n * `Record<SsoConnectionResourceType, ...>` type), preventing a silent\n * scope-default regression on the new variant.\n *\n * The cross-check that the declared value here matches the registry-\n * assembled scope is the responsibility of the post-factory check\n * tracked as Phase 4.5 Step 2.5 — the spec layer cannot perform it\n * because it never sees the real cross-resource `ResourceRelationship[]`.\n */\nconst ssoConnectionResourcePrimaryScopeByResourceType: Record<\n SsoConnectionResourceType,\n ResourcePrimaryScope\n> = {\n [CoreResourceType.ORGANIZATION_SSO_CONNECTIONS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SSO_CONNECTIONS]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SSO_CONNECTION_LIST_REQUEST_EXAMPLE = { page: 1, limit: 20, sort: 'displayName:asc' } as const;\n\nfunction createSsoConnectionExamples(resourceType: SsoConnectionResourceType) {\n const scopeIdentity = resourceType === CoreResourceType.ORGANIZATION_SSO_CONNECTIONS\n ? { organizationId: 'organization_01HX2EXAMPLE' }\n : { applicationId: 'application_01HX2EXAMPLE' };\n const record = {\n _id: resourceType === CoreResourceType.ORGANIZATION_SSO_CONNECTIONS ? 'sso_org_01HX2EXAMPLE' : 'sso_app_01HX2EXAMPLE',\n protocol: SsoProtocol.SAML,\n displayName: 'Corporate workforce SAML',\n enabled: true,\n isDefault: true,\n saml: {\n entityId: 'https://idp.example.com/saml',\n ssoUrl: 'https://idp.example.com/saml/sso',\n sloUrl: 'https://idp.example.com/saml/slo',\n x509Certificates: ['MIIBEXAMPLECERTIFICATE'],\n attributeMapping: {\n email: 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',\n firstName: 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname',\n lastName: 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname',\n },\n signRequests: true,\n wantAssertionsSigned: true,\n allowedClockDrift: 30,\n forceAuthn: false,\n nameIdFormat: SamlNameIdFormat.EMAIL_ADDRESS,\n allowIdpInitiated: false,\n auditSettings: {\n logAuthAttempts: true,\n logAttributeMapping: true,\n retentionDays: 90,\n },\n },\n autoCreateUsers: true,\n autoVerifyEmail: true,\n bypassAppMFA: false,\n defaultRole: 'member',\n allowedDomains: ['example.com'],\n createdAt: '2026-08-01T09:00:00.000Z',\n updatedAt: '2026-08-20T08:30:00.000Z',\n ...scopeIdentity,\n };\n const page = {\n data: [record],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n };\n const summaryPage = {\n data: [{\n _id: record._id,\n protocol: record.protocol,\n displayName: record.displayName,\n enabled: record.enabled,\n }],\n pagination: page.pagination,\n };\n\n return { page, summaryPage };\n}\n\nfunction buildSsoConnectionsBaseSpecification(\n resourceType: SsoConnectionResourceType,\n resourceTypeMemberName: SsoConnectionResourceTypeMemberName,\n): ResourceSpecificationConfig<\n SsoConnectionCustomOperation,\n SsoConnectionCoreOperation,\n SsoConnectionMainSchema\n> {\n const examples = createSsoConnectionExamples(resourceType);\n return resourceSpecification<\n SsoConnectionCustomOperation,\n SsoConnectionCoreOperation,\n SsoConnectionMainSchema\n >(\n ssoConnectionPolymorphicFactories[resourceType],\n SsoConnectionBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Represent one configured SSO provider connection that governs how an organization or application accepts external identity-provider sign-ins.',\n businessRole: 'Administrative authentication-connection record that binds one auth scope to a concrete OIDC or SAML provider setup.',\n lifecycleRole: 'Moves from draft/provider setup through validation and eventual activation, rotation, or retirement under admin control.',\n audience: LabelAudience.DEVELOPER,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoConnectionBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ssoConnectionPolymorphicFactories',\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: resourceTypeMemberName,\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 customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoConnection_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSourceEntries: [\n {\n collectionSymbol: {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityMainPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n {\n collectionSymbol: {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityAdminPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n ],\n notes: [\n 'These resources are polymorphic: import the shared collection exports and select the entry keyed by the concrete resource type.',\n ],\n },\n fields: {\n protocol: schemaShape.protocol.enumSpec({\n meaning: 'Chooses which external authentication protocol contract this connection follows.',\n whyItMatters: 'It changes which nested configuration block is meaningful, which validation UI applies, and which custom admin views can surface.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoProtocol',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [SsoProtocol.OIDC]: { meaning: 'OIDC provider configuration with discovery/token endpoints and OAuth-style settings.' },\n [SsoProtocol.SAML]: { meaning: 'SAML identity-provider configuration with metadata, certificates, and assertion settings.' },\n },\n }),\n displayName: schemaShape.displayName.stringSpec({\n meaning: 'Human-facing name administrators use to recognize this SSO connection in settings and support flows.',\n whyItMatters: 'It anchors the connection in admin UX and makes protocol/test results intelligible during troubleshooting.',\n semanticRole: 'label',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'Indicates whether the connection may actively participate in authentication flows.',\n whyItMatters: 'Disabled connections remain configured for audit or later reuse, but should not be offered for live sign-in attempts.',\n }),\n allowedDomains: schemaShape.allowedDomains.arraySpec({\n meaning: 'Restricts which email/identity domains are accepted through this SSO connection.',\n whyItMatters: 'It is the primary admin-controlled allow-list that prevents unintended tenants or users from authenticating through this connection — a security-critical setting.',\n elementMeaning: 'One DNS-style domain that an authenticating identity must match (e.g. acme.com).',\n elementType: {\n notes: [\n 'Element schema is a free-form string — domain values are application-declared and validated at the backend service layer rather than via a fixed enum.',\n ],\n },\n }),\n },\n operations: {\n [Op.LIST]: {\n purpose: 'List the SSO connections configured for the current organization or application authentication scope.',\n outcome: 'Administrators receive each configured provider connection with its protocol, enabled state, and configuration summary so they can select one to inspect, test, or maintain.',\n whenToUse: 'Use to build the authentication settings inventory or to locate a connection before a configuration or diagnostics action.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO connections visible in the caller’s authentication scope are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to inspect SSO connection configuration.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse configured SSO connections',\n request: SSO_CONNECTION_LIST_REQUEST_EXAMPLE,\n response: examples.page,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Browse SSO connections through the context representation',\n request: SSO_CONNECTION_LIST_REQUEST_EXAMPLE,\n response: examples.page,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Browse compact SSO connection summaries',\n request: SSO_CONNECTION_LIST_REQUEST_EXAMPLE,\n response: examples.summaryPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.READ]: {\n purpose: 'Retrieve the current configuration and status of one SSO connection.',\n outcome: 'Administrators can inspect how the connection is wired and whether it is ready to support sign-in flows.',\n whenToUse: 'Use when the goal is configuration review, troubleshooting, or pre-change verification.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO connection was found and its protocol configuration, allowed domains, and enabled state are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to inspect SSO connection configuration.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO connection exists for the supplied id in the caller’s auth scope.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Create a new SSO connection for the current auth scope. INTERNAL_CALL service transport — there is no public HTTP CREATE route (only API_CALL variants register routes); administrators reach this through the DISCOVER_ENDPOINTS wizard and internal/system callers through `createAsSystem`. The statuses below describe the service-operation outcome, not a client-facing endpoint.',\n outcome: 'The organization or application gains a newly authored external identity-provider connection.',\n whenToUse: 'Use when onboarding a new enterprise identity provider or adding another auth route.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new SSO connection was created for the auth scope and returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The connection fails schema validation (e.g. a missing `protocol`, an empty `displayName`, or protocol settings that do not match the selected `protocol`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to author SSO connections for the scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A connection with the same provider identity (e.g. duplicate `displayName` or issuer) already exists in this auth scope.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Create an OIDC SSO connection',\n request: {\n protocol: SsoProtocol.OIDC,\n displayName: 'Acme Okta',\n enabled: false,\n allowedDomains: ['acme.com'],\n },\n response: {\n _id: 'ssoconn_01HX2…',\n protocol: SsoProtocol.OIDC,\n displayName: 'Acme Okta',\n enabled: false,\n allowedDomains: ['acme.com'],\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Adjust the configuration of an existing SSO connection. INTERNAL_CALL service transport — no public HTTP UPDATE route; the statuses below describe the service-operation outcome, not a client-facing endpoint. The write-only `oidc.clientSecret` is preserved when the caller round-trips the masked value.',\n outcome: 'The connection stays the same logical identity-provider entry but with updated settings or lifecycle posture.',\n whenToUse: 'Use when rotating metadata, changing mapping rules, or enabling/disabling the provider.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO connection was updated and its new configuration/lifecycle state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited protocol settings, domains, or display name fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to modify SSO connections.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO connection exists for the supplied id in the caller’s auth scope.' },\n ],\n idempotent: true,\n },\n [SsoConnection_Operations.TEST_CONNECTION]: {\n operationId: SsoConnection_Operations.TEST_CONNECTION,\n purpose: 'Evaluate the stored SSO connection without accepting a second connection identity in the request. SAML returns concrete certificate, endpoint, and service-provider metadata diagnostics; OIDC explicitly reports that its test flow is not implemented.',\n outcome: 'Administrators receive a protocol-discriminated result with `supported` always present, so a real SAML diagnostic cannot be confused with an unavailable OIDC test.',\n whenToUse: 'Use after configuring a SAML connection and before enabling it for production sign-in. For OIDC, use the response only to detect that this diagnostic capability is currently unavailable.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A protocol-discriminated result is returned. SAML validation failures use `overallStatus: fail`; OIDC returns `supported: false` and performs no provider handshake.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to run an SSO connection test.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO connection exists for the supplied id to test.' },\n ],\n idempotent: false,\n rateLimitNote: 'A supported SAML test checks provider endpoints; throttle repeated calls to avoid tripping identity-provider limits while an administrator iterates.',\n examples: [\n {\n title: 'SAML connection passes diagnostics',\n response: {\n protocol: SsoProtocol.SAML,\n supported: true,\n entityIdConfigured: true,\n ssoUrlReachable: true,\n ssoUrlStatus: 200,\n certificates: [{\n index: 0,\n valid: true,\n expiresAt: '2027-08-18T00:00:00.000Z',\n daysRemaining: 365,\n algorithm: 'sha256WithRSAEncryption',\n fingerprint: 'AA:BB:CC:DD:EE:FF',\n warnings: [],\n }],\n sloUrlReachable: true,\n sloUrlStatus: 200,\n spMetadataValid: true,\n overallStatus: SsoConnectionTestOverallStatus.PASS,\n errors: [],\n warnings: [],\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'SAML connection fails diagnostics',\n response: {\n protocol: SsoProtocol.SAML,\n supported: true,\n entityIdConfigured: true,\n ssoUrlReachable: false,\n certificates: [],\n spMetadataValid: true,\n overallStatus: SsoConnectionTestOverallStatus.FAIL,\n errors: ['SSO URL is not reachable: request timed out', 'No X.509 certificates configured'],\n warnings: [],\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'OIDC diagnostics are unavailable',\n response: {\n protocol: SsoProtocol.OIDC,\n supported: false,\n message: 'OIDC connection testing is not implemented; no provider handshake was attempted.',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [SsoConnection_Operations.DISCOVER_ENDPOINTS]: {\n operationId: SsoConnection_Operations.DISCOVER_ENDPOINTS,\n purpose: 'Read provider endpoint metadata without creating or mutating an SSO connection. SAML metadata discovery is implemented; OIDC issuer discovery returns an explicit unsupported result.',\n outcome: 'The response contains discovered SAML metadata for the caller to review and apply separately, or an OIDC `supported: false` result. This operation never persists the returned values.',\n whenToUse: 'Use a `metadataUrl` while preparing SAML configuration. Supplying an `issuerUrl` currently provides only a machine-readable indication that OIDC discovery is unavailable.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A protocol-discriminated discovery result is returned. SAML contains parsed provider metadata; OIDC returns `supported: false` without fetching issuer metadata.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'Neither source is supplied, a URL is malformed or unreachable, or the SAML endpoint returns oversized, non-XML, or unparseable metadata.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to run endpoint discovery.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Discover SAML identity-provider endpoints',\n request: { metadataUrl: 'https://idp.example.com/saml/metadata' },\n response: {\n protocol: SsoProtocol.SAML,\n supported: true,\n entityId: 'https://idp.example.com/saml',\n ssoUrl: 'https://idp.example.com/saml/sso',\n sloUrl: 'https://idp.example.com/saml/slo',\n x509Certificates: ['-----BEGIN CERTIFICATE-----\\nMIIBEXAMPLE\\n-----END CERTIFICATE-----'],\n nameIdFormat: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',\n source: SsoConnectionDiscoverySource.SAML_METADATA,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'OIDC discovery is unavailable',\n request: { issuerUrl: 'https://idp.example.com/oauth2/default' },\n response: {\n protocol: SsoProtocol.OIDC,\n supported: false,\n message: 'OIDC endpoint discovery is not implemented; issuer metadata was not fetched.',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'Protocol-specific nested settings are only meaningful when the matching `protocol` is selected; do not flatten SAML and OIDC concerns into one generic prose bucket.',\n 'These resources describe authentication-provider wiring, not end-user identity records or access-policy outcomes directly.',\n ],\n }),\n {\n // Phase 4.5 Step 2 (F-1): scope is parameterised per polymorphic\n // resource type via `ssoConnectionResourcePrimaryScopeByResourceType`\n // — the map is `Record<SsoConnectionResourceType, ...>` so adding a\n // new variant is a TypeScript error until the scope is declared.\n resourcePrimaryScope: ssoConnectionResourcePrimaryScopeByResourceType[resourceType],\n },\n );\n}\n\nfunction buildSsoConnectionsResourceSpecification(\n resourceType: SsoConnectionResourceType,\n resourceTypeMemberName: SsoConnectionResourceTypeMemberName,\n): ResourceSpecificationConfig<\n SsoConnectionCustomOperation,\n SsoConnectionCoreOperation,\n SsoConnectionMainSchema\n> {\n const baseSpecification = buildSsoConnectionsBaseSpecification(resourceType, resourceTypeMemberName);\n const mainUIBehavior = resolveSsoConnectionUIBehavior(\n securityMainPresets as Partial<Record<string, unknown>>,\n resourceType,\n 'securityMainPresets',\n );\n const adminUIBehavior = resolveSsoConnectionUIBehavior(\n securityAdminPresets as Partial<Record<string, unknown>>,\n resourceType,\n 'securityAdminPresets',\n );\n const mergedFrontendConfiguration = mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(mainUIBehavior),\n resourceFrontendConfiguration(adminUIBehavior),\n );\n\n return resourceSpecificationFromFrontendConfiguration(\n mergedFrontendConfiguration,\n baseSpecification,\n () => ({\n label: {\n purpose: 'Use the connection display name as the primary admin label so protocol diagnostics and provider-specific actions stay easy to map to the right external identity provider.',\n },\n views: {\n [SsoConnection_Operations.TEST_CONNECTION]: {\n purpose: 'Surface an admin-facing validation flow for the configured provider connection.',\n views: {\n default: {\n customView: {\n purpose: 'Augment the standard read shell with SAML-specific diagnostic and metadata sections while keeping the surrounding resource context intact.',\n whenToUse: 'Use when the operation behaves like a read-oriented diagnostics screen rather than a plain preset swap.',\n textSlots: {\n title: {\n purpose: 'Name this custom diagnostics host as the SSO connection test surface users are currently in.',\n },\n description: {\n purpose: 'Explain that this host focuses on validation and protocol diagnostics for the selected SSO connection.',\n },\n },\n basedOnPreset: CorePreset_ResourceLayout_Read.DEFAULT,\n implementationSymbol: {\n packageName: '@wildo-ai/saas-frontend-lib',\n exportName: 'ResourceLayoutPreset_Read_SsoSaml',\n symbolKind: CodeSymbolKind.COMPONENT,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n declarationSymbols: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityMainPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityAdminPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: [\n 'This is resource-owned operation metadata, not an injectable framework component preset.',\n ],\n },\n },\n },\n },\n [SsoConnection_Operations.DISCOVER_ENDPOINTS]: {\n purpose: 'Surface a metadata-discovery workflow that behaves like a guided create/setup flow for SSO connections.',\n views: {\n default: {\n customView: {\n purpose: 'Replace the generic create host with the SAML discovery wizard when the administrator needs provider-derived endpoint setup.',\n whenToUse: 'Use when the operation should drive guided discovery rather than the default create form shell.',\n textSlots: {\n title: {\n purpose: 'Name this custom setup host as the SSO endpoint-discovery workflow users are currently in.',\n },\n description: {\n purpose: 'Explain that this host guides administrators through metadata-driven SSO endpoint discovery rather than generic manual creation.',\n },\n },\n basedOnPreset: CorePresetNames.DEFAULT,\n implementationSymbol: {\n packageName: '@wildo-ai/saas-frontend-lib',\n exportName: 'ResourceLayoutPreset_Create_SamlWizard',\n symbolKind: CodeSymbolKind.COMPONENT,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n declarationSymbols: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityMainPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityAdminPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n },\n },\n },\n },\n }),\n );\n}\n\nexport const organizationSsoConnectionsResourceSpecification = buildSsoConnectionsResourceSpecification(\n CoreResourceType.ORGANIZATION_SSO_CONNECTIONS,\n 'ORGANIZATION_SSO_CONNECTIONS',\n);\n\nexport const applicationSsoConnectionsResourceSpecification = buildSsoConnectionsResourceSpecification(\n CoreResourceType.APPLICATION_SSO_CONNECTIONS,\n 'APPLICATION_SSO_CONNECTIONS',\n);\n"]}
|
|
1
|
+
{"version":3,"file":"sso-connections.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-connections.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,8BAA8B,EAC9B,aAAa,GACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,EACvB,gBAAgB,EAChB,WAAW,EACX,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EAC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AClC,UAAU,EAAE,cAAc,CAAC,WAAW;iCACvC;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,+CAA+C,GAAG,wCAAwC,CACrG,gBAAgB,CAAC,4BAA4B,EAC7C,8BAA8B,CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,8CAA8C,GAAG,wCAAwC,CACpG,gBAAgB,CAAC,2BAA2B,EAC5C,6BAA6B,CAC9B,CAAC","sourcesContent":["import {\n CorePresetNames,\n CorePreset_ResourceLayout_Read,\n LabelAudience,\n} from '@wildo-ai/presets-components-models';\nimport {\n securityAdminPresets,\n securityMainPresets,\n} from '@wildo-ai/presets-components';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n SsoConnection_Operations,\n SsoConnectionDiscoverySource,\n SsoConnectionTestOverallStatus,\n SsoConnectionBaseSchema,\n SamlNameIdFormat,\n SsoProtocol,\n ssoConnectionPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\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 SsoConnectionResourceType =\n | CoreResourceType.ORGANIZATION_SSO_CONNECTIONS\n | CoreResourceType.APPLICATION_SSO_CONNECTIONS;\n\ntype SsoConnectionResourceTypeMemberName =\n | 'ORGANIZATION_SSO_CONNECTIONS'\n | 'APPLICATION_SSO_CONNECTIONS';\n\ntype SsoConnectionResourceConfiguration = ReturnType<\n (typeof ssoConnectionPolymorphicFactories)[CoreResourceType.ORGANIZATION_SSO_CONNECTIONS]\n>;\ntype SsoConnectionCustomOperation = NonNullable<SsoConnectionResourceConfiguration['customOperation']>;\ntype SsoConnectionCoreOperation = SsoConnectionResourceConfiguration['coreOperations'][number];\ntype SsoConnectionMainSchema = typeof SsoConnectionBaseSchema;\ntype SsoConnectionFrontendConfiguration = ResourceUIBehaviorConfig<\n SsoConnectionCustomOperation,\n SsoConnectionCoreOperation,\n SsoConnectionMainSchema\n>;\n\nfunction resolveSsoConnectionUIBehavior(\n source: Partial<Record<string, unknown>>,\n resourceType: SsoConnectionResourceType,\n sourceName: string,\n): SsoConnectionFrontendConfiguration {\n const uiBehavior = source[resourceType] as SsoConnectionFrontendConfiguration | undefined;\n if (!uiBehavior) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return uiBehavior;\n}\n\n/**\n * Map each polymorphic SSO-connection resource type to its declared\n * `resourcePrimaryScope` (Phase 4.5 Step 2 — F-1). The polymorphic\n * factory derives the same value from the resource's relationships\n * (`AUTH_SCOPE_VARIANTS` carries `isPrimaryScope: true` for both the\n * `ORGANIZATIONS` and `APPLICATION` parents, so\n * `createPolymorphicScopeRelationships` emits scope edges for both\n * variants). Adding a new SSO-connection variant requires explicitly\n * extending this map (TypeScript-enforced via the\n * `Record<SsoConnectionResourceType, ...>` type), preventing a silent\n * scope-default regression on the new variant.\n *\n * The cross-check that the declared value here matches the registry-\n * assembled scope is the responsibility of the post-factory check\n * tracked as Phase 4.5 Step 2.5 — the spec layer cannot perform it\n * because it never sees the real cross-resource `ResourceRelationship[]`.\n */\nconst ssoConnectionResourcePrimaryScopeByResourceType: Record<\n SsoConnectionResourceType,\n ResourcePrimaryScope\n> = {\n [CoreResourceType.ORGANIZATION_SSO_CONNECTIONS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SSO_CONNECTIONS]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SSO_CONNECTION_LIST_REQUEST_EXAMPLE = { page: 1, limit: 20, sort: 'displayName:asc' } as const;\n\nfunction createSsoConnectionExamples(resourceType: SsoConnectionResourceType) {\n const scopeIdentity = resourceType === CoreResourceType.ORGANIZATION_SSO_CONNECTIONS\n ? { organizationId: 'organization_01HX2EXAMPLE' }\n : { applicationId: 'application_01HX2EXAMPLE' };\n const record = {\n _id: resourceType === CoreResourceType.ORGANIZATION_SSO_CONNECTIONS ? 'sso_org_01HX2EXAMPLE' : 'sso_app_01HX2EXAMPLE',\n protocol: SsoProtocol.SAML,\n displayName: 'Corporate workforce SAML',\n enabled: true,\n isDefault: true,\n saml: {\n entityId: 'https://idp.example.com/saml',\n ssoUrl: 'https://idp.example.com/saml/sso',\n sloUrl: 'https://idp.example.com/saml/slo',\n x509Certificates: ['MIIBEXAMPLECERTIFICATE'],\n attributeMapping: {\n email: 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',\n firstName: 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname',\n lastName: 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname',\n },\n signRequests: true,\n wantAssertionsSigned: true,\n allowedClockDrift: 30,\n forceAuthn: false,\n nameIdFormat: SamlNameIdFormat.EMAIL_ADDRESS,\n allowIdpInitiated: false,\n auditSettings: {\n logAuthAttempts: true,\n logAttributeMapping: true,\n retentionDays: 90,\n },\n },\n autoCreateUsers: true,\n autoVerifyEmail: true,\n bypassAppMFA: false,\n defaultRole: 'member',\n allowedDomains: ['example.com'],\n createdAt: '2026-08-01T09:00:00.000Z',\n updatedAt: '2026-08-20T08:30:00.000Z',\n ...scopeIdentity,\n };\n const page = {\n data: [record],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n };\n const summaryPage = {\n data: [{\n _id: record._id,\n protocol: record.protocol,\n displayName: record.displayName,\n enabled: record.enabled,\n }],\n pagination: page.pagination,\n };\n\n return { page, summaryPage };\n}\n\nfunction buildSsoConnectionsBaseSpecification(\n resourceType: SsoConnectionResourceType,\n resourceTypeMemberName: SsoConnectionResourceTypeMemberName,\n): ResourceSpecificationConfig<\n SsoConnectionCustomOperation,\n SsoConnectionCoreOperation,\n SsoConnectionMainSchema\n> {\n const examples = createSsoConnectionExamples(resourceType);\n return resourceSpecification<\n SsoConnectionCustomOperation,\n SsoConnectionCoreOperation,\n SsoConnectionMainSchema\n >(\n ssoConnectionPolymorphicFactories[resourceType],\n SsoConnectionBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Represent one configured SSO provider connection that governs how an organization or application accepts external identity-provider sign-ins.',\n businessRole: 'Administrative authentication-connection record that binds one auth scope to a concrete OIDC or SAML provider setup.',\n lifecycleRole: 'Moves from draft/provider setup through validation and eventual activation, rotation, or retirement under admin control.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoConnectionBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ssoConnectionPolymorphicFactories',\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: resourceTypeMemberName,\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 customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoConnection_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSourceEntries: [\n {\n collectionSymbol: {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityMainPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n {\n collectionSymbol: {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityAdminPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n ],\n notes: [\n 'These resources are polymorphic: import the shared collection exports and select the entry keyed by the concrete resource type.',\n ],\n },\n fields: {\n protocol: schemaShape.protocol.enumSpec({\n meaning: 'Chooses which external authentication protocol contract this connection follows.',\n whyItMatters: 'It changes which nested configuration block is meaningful, which validation UI applies, and which custom admin views can surface.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoProtocol',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [SsoProtocol.OIDC]: { meaning: 'OIDC provider configuration with discovery/token endpoints and OAuth-style settings.' },\n [SsoProtocol.SAML]: { meaning: 'SAML identity-provider configuration with metadata, certificates, and assertion settings.' },\n },\n }),\n displayName: schemaShape.displayName.stringSpec({\n meaning: 'Human-facing name administrators use to recognize this SSO connection in settings and support flows.',\n whyItMatters: 'It anchors the connection in admin UX and makes protocol/test results intelligible during troubleshooting.',\n semanticRole: 'label',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'Indicates whether the connection may actively participate in authentication flows.',\n whyItMatters: 'Disabled connections remain configured for audit or later reuse, but should not be offered for live sign-in attempts.',\n }),\n allowedDomains: schemaShape.allowedDomains.arraySpec({\n meaning: 'Restricts which email/identity domains are accepted through this SSO connection.',\n whyItMatters: 'It is the primary admin-controlled allow-list that prevents unintended tenants or users from authenticating through this connection — a security-critical setting.',\n elementMeaning: 'One DNS-style domain that an authenticating identity must match (e.g. acme.com).',\n elementType: {\n notes: [\n 'Element schema is a free-form string — domain values are application-declared and validated at the backend service layer rather than via a fixed enum.',\n ],\n },\n }),\n },\n operations: {\n [Op.LIST]: {\n purpose: 'List the SSO connections configured for the current organization or application authentication scope.',\n outcome: 'Administrators receive each configured provider connection with its protocol, enabled state, and configuration summary so they can select one to inspect, test, or maintain.',\n whenToUse: 'Use to build the authentication settings inventory or to locate a connection before a configuration or diagnostics action.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO connections visible in the caller’s authentication scope are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to inspect SSO connection configuration.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse configured SSO connections',\n request: SSO_CONNECTION_LIST_REQUEST_EXAMPLE,\n response: examples.page,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Browse SSO connections through the context representation',\n request: SSO_CONNECTION_LIST_REQUEST_EXAMPLE,\n response: examples.page,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Browse compact SSO connection summaries',\n request: SSO_CONNECTION_LIST_REQUEST_EXAMPLE,\n response: examples.summaryPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.READ]: {\n purpose: 'Retrieve the current configuration and status of one SSO connection.',\n outcome: 'Administrators can inspect how the connection is wired and whether it is ready to support sign-in flows.',\n whenToUse: 'Use when the goal is configuration review, troubleshooting, or pre-change verification.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO connection was found and its protocol configuration, allowed domains, and enabled state are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to inspect SSO connection configuration.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO connection exists for the supplied id in the caller’s auth scope.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Create a new SSO connection for the current auth scope. INTERNAL_CALL service transport — there is no public HTTP CREATE route (only API_CALL variants register routes); administrators reach this through the DISCOVER_ENDPOINTS wizard and internal/system callers through `createAsSystem`. The statuses below describe the service-operation outcome, not a client-facing endpoint.',\n outcome: 'The organization or application gains a newly authored external identity-provider connection.',\n whenToUse: 'Use when onboarding a new enterprise identity provider or adding another auth route.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new SSO connection was created for the auth scope and returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The connection fails schema validation (e.g. a missing `protocol`, an empty `displayName`, or protocol settings that do not match the selected `protocol`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to author SSO connections for the scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A connection with the same provider identity (e.g. duplicate `displayName` or issuer) already exists in this auth scope.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Create an OIDC SSO connection',\n request: {\n protocol: SsoProtocol.OIDC,\n displayName: 'Acme Okta',\n enabled: false,\n allowedDomains: ['acme.com'],\n },\n response: {\n _id: 'ssoconn_01HX2…',\n protocol: SsoProtocol.OIDC,\n displayName: 'Acme Okta',\n enabled: false,\n allowedDomains: ['acme.com'],\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Adjust the configuration of an existing SSO connection. INTERNAL_CALL service transport — no public HTTP UPDATE route; the statuses below describe the service-operation outcome, not a client-facing endpoint. The write-only `oidc.clientSecret` is preserved when the caller round-trips the masked value.',\n outcome: 'The connection stays the same logical identity-provider entry but with updated settings or lifecycle posture.',\n whenToUse: 'Use when rotating metadata, changing mapping rules, or enabling/disabling the provider.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SSO connection was updated and its new configuration/lifecycle state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited protocol settings, domains, or display name fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to modify SSO connections.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO connection exists for the supplied id in the caller’s auth scope.' },\n ],\n idempotent: true,\n },\n [SsoConnection_Operations.TEST_CONNECTION]: {\n operationId: SsoConnection_Operations.TEST_CONNECTION,\n purpose: 'Evaluate the stored SSO connection without accepting a second connection identity in the request. SAML returns concrete certificate, endpoint, and service-provider metadata diagnostics; OIDC explicitly reports that its test flow is not implemented.',\n outcome: 'Administrators receive a protocol-discriminated result with `supported` always present, so a real SAML diagnostic cannot be confused with an unavailable OIDC test.',\n whenToUse: 'Use after configuring a SAML connection and before enabling it for production sign-in. For OIDC, use the response only to detect that this diagnostic capability is currently unavailable.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A protocol-discriminated result is returned. SAML validation failures use `overallStatus: fail`; OIDC returns `supported: false` and performs no provider handshake.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to run an SSO connection test.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SSO connection exists for the supplied id to test.' },\n ],\n idempotent: false,\n rateLimitNote: 'A supported SAML test checks provider endpoints; throttle repeated calls to avoid tripping identity-provider limits while an administrator iterates.',\n examples: [\n {\n title: 'SAML connection passes diagnostics',\n response: {\n protocol: SsoProtocol.SAML,\n supported: true,\n entityIdConfigured: true,\n ssoUrlReachable: true,\n ssoUrlStatus: 200,\n certificates: [{\n index: 0,\n valid: true,\n expiresAt: '2027-08-18T00:00:00.000Z',\n daysRemaining: 365,\n algorithm: 'sha256WithRSAEncryption',\n fingerprint: 'AA:BB:CC:DD:EE:FF',\n warnings: [],\n }],\n sloUrlReachable: true,\n sloUrlStatus: 200,\n spMetadataValid: true,\n overallStatus: SsoConnectionTestOverallStatus.PASS,\n errors: [],\n warnings: [],\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'SAML connection fails diagnostics',\n response: {\n protocol: SsoProtocol.SAML,\n supported: true,\n entityIdConfigured: true,\n ssoUrlReachable: false,\n certificates: [],\n spMetadataValid: true,\n overallStatus: SsoConnectionTestOverallStatus.FAIL,\n errors: ['SSO URL is not reachable: request timed out', 'No X.509 certificates configured'],\n warnings: [],\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'OIDC diagnostics are unavailable',\n response: {\n protocol: SsoProtocol.OIDC,\n supported: false,\n message: 'OIDC connection testing is not implemented; no provider handshake was attempted.',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [SsoConnection_Operations.DISCOVER_ENDPOINTS]: {\n operationId: SsoConnection_Operations.DISCOVER_ENDPOINTS,\n purpose: 'Read provider endpoint metadata without creating or mutating an SSO connection. SAML metadata discovery is implemented; OIDC issuer discovery returns an explicit unsupported result.',\n outcome: 'The response contains discovered SAML metadata for the caller to review and apply separately, or an OIDC `supported: false` result. This operation never persists the returned values.',\n whenToUse: 'Use a `metadataUrl` while preparing SAML configuration. Supplying an `issuerUrl` currently provides only a machine-readable indication that OIDC discovery is unavailable.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A protocol-discriminated discovery result is returned. SAML contains parsed provider metadata; OIDC returns `supported: false` without fetching issuer metadata.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'Neither source is supplied, a URL is malformed or unreachable, or the SAML endpoint returns oversized, non-XML, or unparseable metadata.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to run endpoint discovery.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Discover SAML identity-provider endpoints',\n request: { metadataUrl: 'https://idp.example.com/saml/metadata' },\n response: {\n protocol: SsoProtocol.SAML,\n supported: true,\n entityId: 'https://idp.example.com/saml',\n ssoUrl: 'https://idp.example.com/saml/sso',\n sloUrl: 'https://idp.example.com/saml/slo',\n x509Certificates: ['-----BEGIN CERTIFICATE-----\\nMIIBEXAMPLE\\n-----END CERTIFICATE-----'],\n nameIdFormat: 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',\n source: SsoConnectionDiscoverySource.SAML_METADATA,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n {\n title: 'OIDC discovery is unavailable',\n request: { issuerUrl: 'https://idp.example.com/oauth2/default' },\n response: {\n protocol: SsoProtocol.OIDC,\n supported: false,\n message: 'OIDC endpoint discovery is not implemented; issuer metadata was not fetched.',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'Protocol-specific nested settings are only meaningful when the matching `protocol` is selected; do not flatten SAML and OIDC concerns into one generic prose bucket.',\n 'These resources describe authentication-provider wiring, not end-user identity records or access-policy outcomes directly.',\n ],\n }),\n {\n // Phase 4.5 Step 2 (F-1): scope is parameterised per polymorphic\n // resource type via `ssoConnectionResourcePrimaryScopeByResourceType`\n // — the map is `Record<SsoConnectionResourceType, ...>` so adding a\n // new variant is a TypeScript error until the scope is declared.\n resourcePrimaryScope: ssoConnectionResourcePrimaryScopeByResourceType[resourceType],\n },\n );\n}\n\nfunction buildSsoConnectionsResourceSpecification(\n resourceType: SsoConnectionResourceType,\n resourceTypeMemberName: SsoConnectionResourceTypeMemberName,\n): ResourceSpecificationConfig<\n SsoConnectionCustomOperation,\n SsoConnectionCoreOperation,\n SsoConnectionMainSchema\n> {\n const baseSpecification = buildSsoConnectionsBaseSpecification(resourceType, resourceTypeMemberName);\n const mainUIBehavior = resolveSsoConnectionUIBehavior(\n securityMainPresets as Partial<Record<string, unknown>>,\n resourceType,\n 'securityMainPresets',\n );\n const adminUIBehavior = resolveSsoConnectionUIBehavior(\n securityAdminPresets as Partial<Record<string, unknown>>,\n resourceType,\n 'securityAdminPresets',\n );\n const mergedFrontendConfiguration = mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(mainUIBehavior),\n resourceFrontendConfiguration(adminUIBehavior),\n );\n\n return resourceSpecificationFromFrontendConfiguration(\n mergedFrontendConfiguration,\n baseSpecification,\n () => ({\n label: {\n purpose: 'Use the connection display name as the primary admin label so protocol diagnostics and provider-specific actions stay easy to map to the right external identity provider.',\n },\n views: {\n [SsoConnection_Operations.TEST_CONNECTION]: {\n purpose: 'Surface an admin-facing validation flow for the configured provider connection.',\n views: {\n default: {\n customView: {\n purpose: 'Augment the standard read shell with SAML-specific diagnostic and metadata sections while keeping the surrounding resource context intact.',\n whenToUse: 'Use when the operation behaves like a read-oriented diagnostics screen rather than a plain preset swap.',\n textSlots: {\n title: {\n purpose: 'Name this custom diagnostics host as the SSO connection test surface users are currently in.',\n },\n description: {\n purpose: 'Explain that this host focuses on validation and protocol diagnostics for the selected SSO connection.',\n },\n },\n basedOnPreset: CorePreset_ResourceLayout_Read.DEFAULT,\n implementationSymbol: {\n packageName: '@wildo-ai/saas-frontend-lib',\n exportName: 'ResourceLayoutPreset_Read_SsoSaml',\n symbolKind: CodeSymbolKind.COMPONENT,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n declarationSymbols: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityMainPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityAdminPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: [\n 'This is resource-owned operation metadata, not an injectable framework component preset.',\n ],\n },\n },\n },\n },\n [SsoConnection_Operations.DISCOVER_ENDPOINTS]: {\n purpose: 'Surface a metadata-discovery workflow that behaves like a guided create/setup flow for SSO connections.',\n views: {\n default: {\n customView: {\n purpose: 'Replace the generic create host with the SAML discovery wizard when the administrator needs provider-derived endpoint setup.',\n whenToUse: 'Use when the operation should drive guided discovery rather than the default create form shell.',\n textSlots: {\n title: {\n purpose: 'Name this custom setup host as the SSO endpoint-discovery workflow users are currently in.',\n },\n description: {\n purpose: 'Explain that this host guides administrators through metadata-driven SSO endpoint discovery rather than generic manual creation.',\n },\n },\n basedOnPreset: CorePresetNames.DEFAULT,\n implementationSymbol: {\n packageName: '@wildo-ai/saas-frontend-lib',\n exportName: 'ResourceLayoutPreset_Create_SamlWizard',\n symbolKind: CodeSymbolKind.COMPONENT,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n declarationSymbols: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityMainPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'securityAdminPresets',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n },\n },\n },\n },\n }),\n );\n}\n\nexport const organizationSsoConnectionsResourceSpecification = buildSsoConnectionsResourceSpecification(\n CoreResourceType.ORGANIZATION_SSO_CONNECTIONS,\n 'ORGANIZATION_SSO_CONNECTIONS',\n);\n\nexport const applicationSsoConnectionsResourceSpecification = buildSsoConnectionsResourceSpecification(\n CoreResourceType.APPLICATION_SSO_CONNECTIONS,\n 'APPLICATION_SSO_CONNECTIONS',\n);\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `userProviderCredentials` — Wildo SaaS engine specification
|
|
3
|
+
* (user-self-scoped, backend-managed secret).
|
|
4
|
+
*
|
|
5
|
+
* Inputs:
|
|
6
|
+
* - Schema: engine/saas-models/src/security/connected-accounts/provider-credentials.shared.schemas.ts
|
|
7
|
+
* → `UserProviderCredentialSchema`
|
|
8
|
+
* - Factory: engine/saas-models/src/security/connected-accounts/provider-credentials-user.shared.resources-config.schemas.ts
|
|
9
|
+
* → `userProviderCredentialsResourceConfiguration_InitializationFactory`
|
|
10
|
+
* - Custom operations: none
|
|
11
|
+
* - UI presets: `engine/presets-components/src/config/resources/security.resource-presets.tsx`
|
|
12
|
+
* → `USER_PROVIDER_CREDENTIALS`, reached through the `my-provider-credentials` settings destination.
|
|
13
|
+
*/
|
|
14
|
+
import { CoreResourceOperation as Op, ProviderCredentialValidationState } from '@wildo-ai/saas-models';
|
|
15
|
+
export declare const userProviderCredentialsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<undefined, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.CREATE | Op.LIST, import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
16
|
+
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
17
|
+
userId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
18
|
+
providerRef: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
19
|
+
secretSlug: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
20
|
+
secretValue: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>;
|
|
21
|
+
enabled: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>>;
|
|
22
|
+
validationState: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodEnum<typeof ProviderCredentialValidationState>>>>;
|
|
23
|
+
validationError: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>;
|
|
24
|
+
lastValidatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodDate>>>;
|
|
25
|
+
lastUsedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodDate>>>>;
|
|
26
|
+
secretSetAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodDate>>>;
|
|
27
|
+
connectionParameters: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>>;
|
|
28
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>>;
|
|
30
|
+
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
|
|
31
|
+
}, import("zod/v4/core").$strip>>>;
|
|
32
|
+
//# sourceMappingURL=user-provider-credentials.resource.specification.d.ts.map
|
package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-provider-credentials.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/user-provider-credentials.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,iCAAiC,EAIlC,MAAM,uBAAuB,CAAC;AAoC/B,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;kCA4QxD,CAAC"}
|