@wildo-ai/saas-specifications 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +10 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +17 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +1 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +1 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
- package/dist/esm/_core/provider-specification.schemas.js +144 -0
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
- package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +7 -7
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +6 -7
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +2 -2
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +2 -2
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +8 -23
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +57 -27
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +72 -49
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +161 -60
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +25 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +14 -7
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +24 -7
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +8 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +10 -2
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +447 -11
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +293 -5
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/companion-exports.d.ts +7 -6
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.js +3 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +13 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +14 -2
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +9 -9
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +3 -3
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +13 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +14 -2
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +4 -4
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +6 -6
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +9 -9
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +104 -10
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -6
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -3
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -2
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +3 -3
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +14 -12
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -7
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +6 -3
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +7 -3
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +28 -11
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +8 -8
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +6 -2
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +20 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.js +66 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +14 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +10 -10
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +11 -11
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +4 -4
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -2
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/index.d.ts +0 -2
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +4 -6
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +12 -12
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +9 -9
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +8 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +6 -6
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +1 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +1 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +17 -17
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +7 -7
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +8 -8
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +10 -5
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -15
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +11 -10
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +29 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +9 -9
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +3 -3
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +4 -4
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.js +30 -0
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +34 -0
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +23 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -0
- package/dist/esm/engine/providers/index.js +37 -0
- package/dist/esm/engine/providers/index.js.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -7
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +9 -9
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -8
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +4 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +13 -11
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +8 -8
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +93 -0
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +95 -45
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +36 -0
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/assurance/external-framework-mapping.json +0 -980
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';
|
|
2
2
|
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
3
3
|
import { CodeDeclarationKind, CodeSymbolKind } from '@wildo-ai/zod-decorators';
|
|
4
|
-
import { CoreResourceOperation as Op, CoreResourceType, DomainVerificationStatus, ResourcePrimaryScope,
|
|
4
|
+
import { CoreResourceOperation as Op, CoreResourceType, DomainVerificationStatus, ResourcePrimaryScope, SsoConfig_Operations, SsoConfigBaseSchema, ssoConfigPolymorphicFactories, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
6
|
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
7
7
|
function r(source, rt, name) {
|
|
@@ -35,7 +35,6 @@ function createSsoConfigExamples(rt) {
|
|
|
35
35
|
enforcement: {
|
|
36
36
|
requireSSO: true,
|
|
37
37
|
allowPasswordFallback: false,
|
|
38
|
-
enforceForAdmins: true,
|
|
39
38
|
graceLoginAttempts: 1,
|
|
40
39
|
},
|
|
41
40
|
domains: {
|
|
@@ -70,10 +69,7 @@ function createSsoConfigExamples(rt) {
|
|
|
70
69
|
},
|
|
71
70
|
emergencyAccess: {
|
|
72
71
|
enabled: true,
|
|
73
|
-
breakGlassAccounts: [],
|
|
74
|
-
requireApproval: true,
|
|
75
|
-
maxDurationHours: 4,
|
|
76
|
-
auditLevel: SSOAuditLevel.VERBOSE,
|
|
72
|
+
breakGlassAccounts: ['breakglass@identity.example.com', 'breakglass-2@identity.example.com'],
|
|
77
73
|
},
|
|
78
74
|
oauth2ProviderRestrictions: {
|
|
79
75
|
allowedProviders: [],
|
|
@@ -99,7 +95,7 @@ function buildBase(rt, member) {
|
|
|
99
95
|
return resourceSpecification(ssoConfigPolymorphicFactories[rt], SsoConfigBaseSchema, ({ schemaShape }) => ({
|
|
100
96
|
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.',
|
|
101
97
|
businessRole: 'The customer-facing “how SSO works here” config separate from one provider’s OIDC/SAML row.',
|
|
102
|
-
lifecycleRole: 'Tightened or relaxed through framework-owned administrative policy services.
|
|
98
|
+
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`.',
|
|
103
99
|
audience: LabelAudience.DEVELOPER,
|
|
104
100
|
subDomain: EngineResourceSubDomain.AUTH,
|
|
105
101
|
codeHandling: {
|
|
@@ -108,6 +104,7 @@ function buildBase(rt, member) {
|
|
|
108
104
|
resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },
|
|
109
105
|
operationVocabulary: {
|
|
110
106
|
coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },
|
|
107
|
+
customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'SsoConfig_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },
|
|
111
108
|
},
|
|
112
109
|
frontendConfigurationSourceEntries: [
|
|
113
110
|
{ collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },
|
|
@@ -198,20 +195,114 @@ function buildBase(rt, member) {
|
|
|
198
195
|
],
|
|
199
196
|
idempotent: true,
|
|
200
197
|
},
|
|
198
|
+
[Op.LIST]: {
|
|
199
|
+
purpose: 'Internal-only enumeration (INTERNAL_CALL — no public HTTP route) whose single caller is the domain-exclusivity probe behind `claimDomain` / `verifyDomain`.',
|
|
200
|
+
outcome: 'The probe can answer whether any OTHER scope already holds a domain verified — the question that keeps sign-in routing deterministic.',
|
|
201
|
+
responseStatuses: [
|
|
202
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy rows visible to the system-context probe are returned.' },
|
|
203
|
+
],
|
|
204
|
+
// No public API_CALL variant exists: one tenant enumerating every other tenant's SSO
|
|
205
|
+
// policy is the opposite of what this resource is for, so no client-facing errors are
|
|
206
|
+
// documented.
|
|
207
|
+
idempotent: true,
|
|
208
|
+
},
|
|
201
209
|
[Op.DELETE]: {
|
|
202
210
|
purpose: 'Repository-only teardown of the SSO policy row when its owning org/app is deleted (composition `onParentDelete` cascade).',
|
|
203
211
|
outcome: 'The one-per-scope SSO policy row is removed together with its parent — the composition part does not outlive its whole.',
|
|
204
212
|
responseStatuses: [
|
|
205
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy
|
|
213
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The SSO policy record was deleted as part of the deletion cascade of its owning scope.' },
|
|
206
214
|
],
|
|
207
215
|
// 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.
|
|
208
216
|
idempotent: true,
|
|
209
217
|
},
|
|
218
|
+
[SsoConfig_Operations.CLAIM_DOMAIN]: {
|
|
219
|
+
operationId: SsoConfig_Operations.CLAIM_DOMAIN,
|
|
220
|
+
purpose: 'Claim an email domain for this scope and receive the DNS TXT record that proves ownership of it.',
|
|
221
|
+
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.',
|
|
222
|
+
responseStatuses: [
|
|
223
|
+
{ 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.' },
|
|
224
|
+
],
|
|
225
|
+
errorScenarios: [
|
|
226
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or is not a DNS hostname with at least two labels.', errorCode: 'VALIDATION_FAILED' },
|
|
227
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },
|
|
228
|
+
{ 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' },
|
|
229
|
+
],
|
|
230
|
+
idempotent: false,
|
|
231
|
+
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.',
|
|
232
|
+
examples: [
|
|
233
|
+
{
|
|
234
|
+
title: 'Claim a corporate email domain',
|
|
235
|
+
request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },
|
|
236
|
+
response: {
|
|
237
|
+
domain: SSO_CONFIG_DOMAIN_EXAMPLE,
|
|
238
|
+
status: DomainVerificationStatus.PENDING,
|
|
239
|
+
dnsName: `_wildo-verification.${SSO_CONFIG_DOMAIN_EXAMPLE}`,
|
|
240
|
+
dnsRecordValue: 'wildo-domain-verification=6f1c1d2e-2b5a-4f0e-9a3d-7c1b8e5a0d42',
|
|
241
|
+
},
|
|
242
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
},
|
|
246
|
+
[SsoConfig_Operations.VERIFY_DOMAIN]: {
|
|
247
|
+
operationId: SsoConfig_Operations.VERIFY_DOMAIN,
|
|
248
|
+
purpose: 'Resolve the DNS TXT challenge for a claimed domain and record the outcome.',
|
|
249
|
+
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.',
|
|
250
|
+
responseStatuses: [
|
|
251
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The challenge was resolved. `status` is `verified` or `failed`; a failed check is a result, not an error.' },
|
|
252
|
+
],
|
|
253
|
+
errorScenarios: [
|
|
254
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or malformed.', errorCode: 'VALIDATION_FAILED' },
|
|
255
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },
|
|
256
|
+
{ 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' },
|
|
257
|
+
],
|
|
258
|
+
idempotent: true,
|
|
259
|
+
examples: [
|
|
260
|
+
{
|
|
261
|
+
title: 'Verify a published DNS challenge',
|
|
262
|
+
request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },
|
|
263
|
+
response: {
|
|
264
|
+
domain: SSO_CONFIG_DOMAIN_EXAMPLE,
|
|
265
|
+
status: DomainVerificationStatus.VERIFIED,
|
|
266
|
+
dnsName: `_wildo-verification.${SSO_CONFIG_DOMAIN_EXAMPLE}`,
|
|
267
|
+
dnsRecordsFound: ['wildo-domain-verification=6f1c1d2e-2b5a-4f0e-9a3d-7c1b8e5a0d42'],
|
|
268
|
+
},
|
|
269
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
},
|
|
273
|
+
[SsoConfig_Operations.REVOKE_DOMAIN]: {
|
|
274
|
+
operationId: SsoConfig_Operations.REVOKE_DOMAIN,
|
|
275
|
+
purpose: 'Withdraw this scope’s claim on a domain, releasing it for another scope to verify.',
|
|
276
|
+
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.',
|
|
277
|
+
responseStatuses: [
|
|
278
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The scope now holds no claim, status or nonce for the domain.' },
|
|
279
|
+
],
|
|
280
|
+
errorScenarios: [
|
|
281
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or malformed.', errorCode: 'VALIDATION_FAILED' },
|
|
282
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },
|
|
283
|
+
{ 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' },
|
|
284
|
+
],
|
|
285
|
+
idempotent: false,
|
|
286
|
+
examples: [
|
|
287
|
+
{
|
|
288
|
+
title: 'Release a domain before handing it to another scope',
|
|
289
|
+
request: { domain: SSO_CONFIG_DOMAIN_EXAMPLE },
|
|
290
|
+
response: { domain: SSO_CONFIG_DOMAIN_EXAMPLE, revoked: true },
|
|
291
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
},
|
|
210
295
|
},
|
|
211
296
|
businessConstraints: [
|
|
212
297
|
'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.',
|
|
213
298
|
'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.',
|
|
214
|
-
'
|
|
299
|
+
'A domain grants nothing until it is VERIFIED. `claimDomain` records it as `pending` and mints a DNS-TXT challenge; every routing reader joins the claimed list against `domainVerificationStatus`, so a claim alone never reaches sign-in behavior.',
|
|
300
|
+
'A domain may be verified for at most ONE scope at a time. Both `claimDomain` and `verifyDomain` refuse with `SSO_DOMAIN_VERIFIED_ELSEWHERE` when another scope holds it — a domain routes sign-ins to exactly one identity provider, and two holders would make that routing depend on which configuration the lookup reached first. Handing a domain over therefore means the current holder revokes before the next one verifies.',
|
|
301
|
+
'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).',
|
|
302
|
+
'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.',
|
|
303
|
+
'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.',
|
|
304
|
+
'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.',
|
|
305
|
+
'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.',
|
|
215
306
|
],
|
|
216
307
|
}), { resourcePrimaryScope: scope[rt] });
|
|
217
308
|
}
|
|
@@ -226,12 +317,15 @@ function build(rt, member) {
|
|
|
226
317
|
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.' } } },
|
|
227
318
|
session: { purpose: 'SSO session duration, reauth, SLO, concurrent sessions — enterprise session hygiene.', whenToUse: 'Security and compliance review of idle vs absolute timeouts.', textSlots: { title: { purpose: 'Session settings.' }, description: { purpose: 'Note impact on `maxConcurrentSessions` and user-visible sign-out.' } } },
|
|
228
319
|
audit: { purpose: 'What SSO path actions are auditable, retention, and compliance reporting flags.', whenToUse: 'Customers needing provable sign-in and IdP event trails.', textSlots: { title: { purpose: 'SSO audit block.' }, description: { purpose: 'Tie to `AuditEvent` classifiers, not the raw SIEM stream.' } } },
|
|
229
|
-
emergency: { purpose: '
|
|
320
|
+
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.' } } },
|
|
230
321
|
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.' } } },
|
|
231
322
|
},
|
|
232
323
|
},
|
|
233
324
|
views: {
|
|
234
325
|
[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.' },
|
|
326
|
+
[SsoConfig_Operations.CLAIM_DOMAIN]: { purpose: 'Domain-claim action; not addressable in the default `views` array, invoked from the domains section so the returned DNS record can be copied immediately.', whenToUse: 'Onboarding a corporate email domain to enterprise SSO.' },
|
|
327
|
+
[SsoConfig_Operations.VERIFY_DOMAIN]: { purpose: 'Challenge-check action; not addressable in the default `views` array, invoked per claimed domain once its DNS record has propagated.', whenToUse: 'Completing an onboarding after publishing the TXT record, and re-checking after a failed attempt.' },
|
|
328
|
+
[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.' },
|
|
235
329
|
},
|
|
236
330
|
}));
|
|
237
331
|
}
|
|
@@ -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,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAU3E,SAAS,CAAC,CAAC,MAAwC,EAAE,EAAS,EAAE,IAAY;IAC1E,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAkB,CAAC;IACtC,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,QAAQ,IAAI,GAAG,CAAC,CAAC;IACvD,OAAO,CAAC,CAAC;AACX,CAAC;AACD,MAAM,KAAK,GAAwC;IACjD,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,EAAE,oBAAoB,CAAC,a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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';\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 = 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 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 },\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,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,GAC9B,MAAM,uBA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E,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;AAukBrC,eAAO,MAAM,+CAA+C
|
|
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"}
|
|
@@ -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"}
|