@wildo-ai/saas-specifications 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +178 -2
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +115 -9
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.registry.js +60 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
- package/dist/esm/_core/family-aspects.schemas.js +15 -0
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
- package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +3 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +3 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/market/market.family-aspects.js +227 -0
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +4 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
- package/dist/esm/_core/provider-specification.schemas.js +144 -0
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
- package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
- package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +193 -38
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +157 -57
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +101 -85
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +171 -86
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +11 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +11 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +999 -2
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2127 -61
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +26 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
- package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +78 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +562 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +148 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js +385 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
- package/dist/esm/assurance/assurance-program.schemas.d.ts +474 -14
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +319 -8
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +2 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +2 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +26 -8
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.js +3 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +15 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +4 -2
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +17 -3
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +12 -10
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -2
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +3 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +15 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +17 -3
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +6 -4
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +4 -2
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +8 -6
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +11 -9
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +8 -6
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +106 -10
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -6
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +6 -3
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +4 -2
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -3
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +16 -12
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +10 -8
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +8 -3
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +13 -9
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +30 -11
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +10 -8
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +11 -2
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts +83 -0
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
- package/dist/esm/engine/engine-resource-sub-domain.js +153 -0
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +44 -1
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +5 -3
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +5 -3
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +5 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +12 -10
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +22 -10
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -4
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +4 -2
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
- package/dist/esm/engine/frontend-components/index.d.ts +0 -2
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +4 -6
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +15 -12
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +12 -9
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +9 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +9 -6
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/index.d.ts +2 -0
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js +2 -0
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +19 -17
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -7
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +10 -8
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +12 -5
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -15
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +14 -10
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +31 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +11 -9
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -3
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +6 -4
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -2
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +3 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +9 -7
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.js +30 -0
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +34 -0
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +23 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -0
- package/dist/esm/engine/providers/index.js +37 -0
- package/dist/esm/engine/providers/index.js.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +9 -7
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +11 -9
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +4 -2
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +10 -8
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +5 -5
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +6 -4
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +4 -2
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +5 -5
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +15 -11
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +3 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +11 -9
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +95 -0
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +451 -25
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +37 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +8 -8
- package/dist/esm/.builder.pid +0 -9
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
- package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scim-tokens.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-tokens.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,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OA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AC,wBAAwB,EAAE,0BAA0B,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, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n ScimTokens_Operations,\n ScimTokenBaseSchema,\n scimTokensPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\n\ntype RType = CoreResourceType.ORGANIZATION_SCIM_TOKENS;\ntype RMember = 'ORGANIZATION_SCIM_TOKENS';\ntype Cfg = ReturnType<(typeof scimTokensPolymorphicFactories)[CoreResourceType.ORGANIZATION_SCIM_TOKENS]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof ScimTokenBaseSchema;\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_SCIM_TOKENS]: ResourcePrimaryScope.ORGANIZATIONS,\n};\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const scopeId = 'organization_01HX2EXAMPLE';\n const tokenId = 'scim_token_org_01HX2EXAMPLE';\n const scopeOwnership = { organizationId: scopeId } as const;\n const scopeRelationship = { organization: { _id: scopeId } } as const;\n const pagination = { page: 1, limit: 20, total: 1, totalPages: 1 } as const;\n const tokenRecordExample = {\n _id: tokenId,\n displayName: 'Production identity provider',\n createdByUserId: 'user_security_admin_01HX2EXAMPLE',\n lastUsedAt: '2026-08-17T15:30:00.000Z',\n expiresAt: '2099-01-01T00:00:00.000Z',\n isActive: true,\n createdAt: '2026-08-01T10:00:00.000Z',\n updatedAt: '2026-08-17T15:30:00.000Z',\n ...scopeOwnership,\n } as const;\n const tokenSummaryExample = {\n _id: tokenRecordExample._id,\n displayName: tokenRecordExample.displayName,\n isActive: tokenRecordExample.isActive,\n } as const;\n const tokenPageExample = { data: [tokenRecordExample], pagination } as const;\n const tokenContextPageExample = {\n data: [{ data: [tokenRecordExample], pagination, ...scopeRelationship }],\n pagination,\n } as const;\n const tokenSummaryPageExample = { data: [tokenSummaryExample], pagination } as const;\n\n return resourceSpecification<Custom, Core, Main>(\n scimTokensPolymorphicFactories[rt],\n ScimTokenBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SCIM bearer credentials used by the organization’s identity provider to provision and deactivate users through the SCIM API.',\n businessRole: 'Long-lived or expiring credentials dedicated to directory synchronization, with issuance, inventory, revocation, and immediate-cutover rotation distinct from general platform API keys.',\n lifecycleRole: 'Generate a credential, monitor its use and expiry, then revoke or rotate it. Rotation cuts over immediately, so update the identity provider with the returned token before making another SCIM request.',\n audience: LabelAudience.DEVELOPER,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ScimTokenBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'scimTokensPolymorphicFactories', 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: 'ScimTokens_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 notes: [\n '`tokenHash` is backend-only: UI shows labels and last-use — never a recoverable token from READ in secure deployments.',\n ],\n },\n fields: {\n tokenHash: schemaShape.tokenHash.stringSpec({\n meaning: 'Persisted SHA-256 lookup hash returned as `tokenHash` only by GENERATE_TOKEN for creation correlation. ROTATE_TOKEN names its acknowledgement field `newTokenHash`; inventory never returns either hash. A hash is not a bearer credential.',\n }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Admin-given name for the token in UI (what “Prod IdP” vs “Staging”).', importance: FieldSemanticImportance.PRIMARY }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether this token should still authenticate SCIM traffic when not expired or revoked in implementation.' }),\n createdByUserId: schemaShape.createdByUserId.stringSpec({ meaning: 'Administrator who minted the token row, retained for support and audit accountability.' }),\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({ meaning: 'Last SCIM request that passed bearer, status, expiry, rate-limit, and feature checks before dispatch.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional end time after which the token must be rotated or a new one issued even if not revoked early.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Internal-call (service-transport, no HTTP surface) read in factory defaults; the SCIM bearer-auth middleware resolves an inbound token by `tokenHash` on every /scim/v2/* request via a system-context read, so READ opts into `systemAccessPolicy.read = ALLOWED`. Not a member fetch.',\n outcome: 'Detail templates show display name, active flag, and lifecycle without raw secret or hash.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token row’s metadata (display name, active flag, lifecycle) is returned without the secret or hash.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to inspect SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'List the organization’s SCIM credentials and their current status, expiry, and last-use metadata.',\n outcome: 'A paginated credential inventory suitable for security review and rotation planning.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of SCIM credentials, labeled by `displayName`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to view the SCIM token inventory for this scope.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Browse organization SCIM tokens',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Browse organization SCIM tokens with scope context',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenContextPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Browse compact organization SCIM token summaries',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenSummaryPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Row creation path for a new token record (REPOSITORY_ONLY in factory, HIGH risk).',\n outcome: 'A new id; any plaintext handshake follows factory DTOs for the generate custom op, not this bare create in typical UX.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM token row was created; the bare create returns the row id, not plaintext bearer material (see GENERATE_TOKEN for the secret handshake).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The token payload fails schema validation (e.g. missing `displayName` or a malformed `expiresAt`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk REPOSITORY_ONLY create.' },\n ],\n idempotent: false,\n rateLimitNote: 'Creating SCIM credential rows is a credential-management path and may be rate-limited per scope.',\n },\n [Op.UPDATE]: {\n purpose: 'Internal-call (service-transport, no HTTP surface) metadata update; the SCIM bearer-auth middleware stamps `lastUsedAt` on the resolved token on every /scim/v2/* request via a system-context write. Operators rotate/revoke via the dedicated custom ops, not this bare update.',\n outcome: 'The token row’s `lastUsedAt` (and other non-secret metadata) is refreshed; the secret/hash are never mutated here.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token row’s metadata was updated (e.g. `lastUsedAt`).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to mutate SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: false,\n },\n [Op.DELETE]: {\n purpose: 'Remove a token document when a credential should disappear entirely; REPOSITORY_ONLY in factory, HIGH risk.',\n outcome: 'The IdP can no longer authenticate SCIM with that id when enforcement is live.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The SCIM token row was deleted; the IdP can no longer authenticate SCIM with it. No body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to purge SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n },\n [ScimTokens_Operations.GENERATE_TOKEN]: {\n operationId: ScimTokens_Operations.GENERATE_TOKEN,\n purpose: 'Generate a new SCIM bearer credential for an identity-provider connection.',\n outcome: 'The plaintext token is returned exactly once together with its metadata. Store it securely and configure it in the identity provider before dismissing the response.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The credential was created; the response includes its metadata and the one-time plaintext `token`, which cannot be retrieved again.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The generate payload fails schema validation (e.g. missing `displayName` or an invalid `expiresAt`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to mint SCIM bearer credentials.' },\n ],\n idempotent: false,\n rateLimitNote: 'Bearer-token issuance is a credential-minting path and may be rate-limited per scope to slow credential sprawl.',\n examples: [\n {\n title: 'Generate an organization SCIM bearer token',\n request: {\n displayName: tokenRecordExample.displayName,\n expiresAt: tokenRecordExample.expiresAt,\n },\n response: {\n _id: tokenRecordExample._id,\n displayName: tokenRecordExample.displayName,\n createdByUserId: tokenRecordExample.createdByUserId,\n expiresAt: tokenRecordExample.expiresAt,\n isActive: tokenRecordExample.isActive,\n createdAt: tokenRecordExample.createdAt,\n updatedAt: tokenRecordExample.updatedAt,\n tokenHash: '29a6c2c70d069455f9e439e3cf0eb3755e221cabd6cfa4403ae340b9a5c42db5',\n token: '5c6cc59416d664aaab4b3a79e977e8ac19de2cd0518753107080c6af310f72c2',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [ScimTokens_Operations.REVOKE_TOKEN]: {\n operationId: ScimTokens_Operations.REVOKE_TOKEN,\n purpose: 'Revoke an active SCIM token without deleting its administrative history.',\n outcome: 'SCIM requests using the revoked token fail authentication, while its metadata remains available for audit and incident review.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The token is invalidated; subsequent SCIM calls presenting it fail authentication, while the row is retained for audit.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; revocation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to revoke SCIM credentials.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is already revoked or inactive, so there is nothing to invalidate.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Revoke a compromised SCIM token while retaining its audit history',\n request: {},\n response: {\n isActive: false,\n revokedAt: '2026-08-18T10:45:00.000Z',\n message: 'Token revoked',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [ScimTokens_Operations.ROTATE_TOKEN]: {\n operationId: ScimTokens_Operations.ROTATE_TOKEN,\n purpose: 'Replace the token’s bearer secret with immediate cutover. The request body must be an empty JSON object.',\n outcome: 'A new plaintext bearer is returned once and immediately authenticates; the prior material stops authenticating at once.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A new bearer secret is issued and returned once; it authenticates immediately and the prior material is invalidated at once.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; immediate-cutover rotation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to rotate SCIM credentials.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is revoked/expired and cannot be rotated, so issuing a new period is an illegal transition.' },\n ],\n idempotent: false,\n rateLimitNote: 'Rotation issues fresh bearer material and may be rate-limited to prevent rapid churn of live SCIM credentials.',\n examples: [\n {\n title: 'Rotate a SCIM token with immediate cutover',\n request: {},\n response: {\n newToken: '2770f399e8eeb9dc16a8e4d44e39b1097ae02cd397814007c30b80d34a334f41',\n newTokenId: tokenRecordExample._id,\n newTokenHash: 'e2b223c12b1f3e249e5f4cc332654423822613579113218de8e6bdc491fa6e6f',\n message: 'Token rotated',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'Do not conflate with `ORG_API_KEYS` / `APPLICATION_API_KEYS` — these tokens are for SCIM HTTP endpoints, not general platform API use.',\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 label: { purpose: 'Preset `getFrontendResourceLabel` returns `displayName` — the primary list/title for a SCIM token card.' },\n layout: {\n purpose: 'Sections `overview` (name, active, creator) and `lifecycle` (last use, expiry, timestamps) in the SCIM token templates.',\n displayPurpose: 'Display layout mirrors list semantics: compact name + status in summary, full lifecycle in the detail read template.',\n sections: {\n overview: { purpose: 'Identity and active flag for a SCIM token without exposing the secret or hash.', whenToUse: 'Any card or panel listing tokens.', textSlots: { title: { purpose: 'Token name.' }, description: { purpose: 'Tie the label to a single IdP or environment, not a user.' } } },\n lifecycle: { purpose: 'Last used, created, expiry, and support-oriented timestamps to drive rotation and cleanup.', whenToUse: 'Security review of stale tokens and expiring windows.', textSlots: { title: { purpose: 'Lifecycle and usage.' }, description: { purpose: 'Mention that “never used” may mean network path blocked, not a bug by itself.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Addressable organization-token inventory and primary navigation in the tenant SCIM security UI.', whenToUse: 'Administrators see all SCIM credentials for the tenant in one table.' },\n [ScimTokens_Operations.GENERATE_TOKEN]: { purpose: 'Create-with-secret custom op; not addressable in the default `views` array, invoked as an action from an empty/CTA state.', whenToUse: 'Onboarding a new IdP or rotating after compromise without deleting history rows immediately.' },\n [ScimTokens_Operations.REVOKE_TOKEN]: { purpose: 'Revocation action; not addressable in the default `views` array from row kebab/inline when wired in product.', whenToUse: 'Kill a single compromised token with audit trail of revocation time.' },\n [ScimTokens_Operations.ROTATE_TOKEN]: { purpose: 'Immediate-cutover rotation that re-mints the secret in place from a strict-empty request with no grace window; not addressable in the default `views` array, triggered from a rotation modal.', whenToUse: 'Planned key rotation when the IdP can be updated atomically.' },\n },\n }),\n );\n}\n\nexport const organizationScimTokensResourceSpecification = build(CoreResourceType.ORGANIZATION_SCIM_TOKENS, 'ORGANIZATION_SCIM_TOKENS');\n"]}
|
|
1
|
+
{"version":3,"file":"scim-tokens.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-tokens.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,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,8BAA8B,GAC/B,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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AAE,OAAO,EAAE,yGAAyG,EAAE;QAC7H,MAAM,EAAE;YACN,OAAO,EAAE,yHAAyH;YAClI,cAAc,EAAE,sHAAsH;YACtI,QAAQ,EAAE;gBACR,QAAQ,EAAE,EAAE,OAAO,EAAE,gFAAgF,EAAE,SAAS,EAAE,mCAAmC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,2DAA2D,EAAE,EAAE,EAAE;gBAChS,SAAS,EAAE,EAAE,OAAO,EAAE,4FAA4F,EAAE,SAAS,EAAE,uDAAuD,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,+EAA+E,EAAE,EAAE,EAAE;aAC/V;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE,SAAS,EAAE,sEAAsE,EAAE;YAC5M,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,2HAA2H,EAAE,SAAS,EAAE,8FAA8F,EAAE;YAC3R,CAAC,qBAAqB,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,EAAE,8GAA8G,EAAE,SAAS,EAAE,sEAAsE,EAAE;YACpP,CAAC,qBAAqB,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,EAAE,+LAA+L,EAAE,SAAS,EAAE,8DAA8D,EAAE;SAC9T;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,2CAA2C,GAAG,KAAK,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,0BAA0B,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, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n ScimTokens_Operations,\n ScimTokenBaseSchema,\n scimTokensPolymorphicFactories,\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_SCIM_TOKENS;\ntype RMember = 'ORGANIZATION_SCIM_TOKENS';\ntype Cfg = ReturnType<(typeof scimTokensPolymorphicFactories)[CoreResourceType.ORGANIZATION_SCIM_TOKENS]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof ScimTokenBaseSchema;\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_SCIM_TOKENS]: ResourcePrimaryScope.ORGANIZATIONS,\n};\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const scopeId = 'organization_01HX2EXAMPLE';\n const tokenId = 'scim_token_org_01HX2EXAMPLE';\n const scopeOwnership = { organizationId: scopeId } as const;\n const scopeRelationship = { organization: { _id: scopeId } } as const;\n const pagination = { page: 1, limit: 20, total: 1, totalPages: 1 } as const;\n const tokenRecordExample = {\n _id: tokenId,\n displayName: 'Production identity provider',\n createdByUserId: 'user_security_admin_01HX2EXAMPLE',\n lastUsedAt: '2026-08-17T15:30:00.000Z',\n expiresAt: '2099-01-01T00:00:00.000Z',\n isActive: true,\n createdAt: '2026-08-01T10:00:00.000Z',\n updatedAt: '2026-08-17T15:30:00.000Z',\n ...scopeOwnership,\n } as const;\n const tokenSummaryExample = {\n _id: tokenRecordExample._id,\n displayName: tokenRecordExample.displayName,\n isActive: tokenRecordExample.isActive,\n } as const;\n const tokenPageExample = { data: [tokenRecordExample], pagination } as const;\n const tokenContextPageExample = {\n data: [{ data: [tokenRecordExample], pagination, ...scopeRelationship }],\n pagination,\n } as const;\n const tokenSummaryPageExample = { data: [tokenSummaryExample], pagination } as const;\n\n return resourceSpecification<Custom, Core, Main>(\n scimTokensPolymorphicFactories[rt],\n ScimTokenBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SCIM bearer credentials used by the organization’s identity provider to provision and deactivate users through the SCIM API.',\n businessRole: 'Long-lived or expiring credentials dedicated to directory synchronization, with issuance, inventory, revocation, and immediate-cutover rotation distinct from general platform API keys.',\n lifecycleRole: 'Generate a credential, monitor its use and expiry, then revoke or rotate it. Rotation cuts over immediately, so update the identity provider with the returned token before making another SCIM request.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ScimTokenBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'scimTokensPolymorphicFactories', 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: 'ScimTokens_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 notes: [\n '`tokenHash` is backend-only: UI shows labels and last-use — never a recoverable token from READ in secure deployments.',\n ],\n },\n fields: {\n tokenHash: schemaShape.tokenHash.stringSpec({\n meaning: 'Persisted SHA-256 lookup hash returned as `tokenHash` only by GENERATE_TOKEN for creation correlation. ROTATE_TOKEN names its acknowledgement field `newTokenHash`; inventory never returns either hash. A hash is not a bearer credential.',\n }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Admin-given name for the token in UI (what “Prod IdP” vs “Staging”).', importance: FieldSemanticImportance.PRIMARY }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether this token should still authenticate SCIM traffic when not expired or revoked in implementation.' }),\n createdByUserId: schemaShape.createdByUserId.stringSpec({ meaning: 'Administrator who minted the token record, retained for support and audit accountability.' }),\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({ meaning: 'Last SCIM request that passed bearer, status, expiry, rate-limit, and feature checks before dispatch.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional end time after which the token must be rotated or a new one issued even if not revoked early.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Internal-call (service-transport, no HTTP surface) read in factory defaults; the SCIM bearer-auth middleware resolves an inbound token by `tokenHash` on every /scim/v2/* request via a system-context read, so READ opts into `systemAccessPolicy.read = ALLOWED`. Not a member fetch.',\n outcome: 'Detail templates show display name, active flag, and lifecycle without raw secret or hash.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token record’s metadata (display name, active flag, lifecycle) is returned without the secret or hash.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to inspect SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'List the organization’s SCIM credentials and their current status, expiry, and last-use metadata.',\n outcome: 'A paginated credential inventory suitable for security review and rotation planning.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of SCIM credentials, labeled by `displayName`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to view the SCIM token inventory for this scope.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Browse organization SCIM tokens',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Browse organization SCIM tokens with scope context',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenContextPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Browse compact organization SCIM token summaries',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenSummaryPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Row creation path for a new token record (REPOSITORY_ONLY in factory, HIGH risk).',\n outcome: 'A new id; any plaintext handshake follows factory DTOs for the generate custom op, not this bare create in typical UX.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM token record was created; the bare create returns the record id, not plaintext bearer material (see GENERATE_TOKEN for the secret handshake).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The token payload fails schema validation (e.g. missing `displayName` or a malformed `expiresAt`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk REPOSITORY_ONLY create.' },\n ],\n idempotent: false,\n rateLimitNote: 'Creating SCIM credential rows is a credential-management path and may be rate-limited per scope.',\n },\n [Op.UPDATE]: {\n purpose: 'Internal-call (service-transport, no HTTP surface) metadata update; the SCIM bearer-auth middleware stamps `lastUsedAt` on the resolved token on every /scim/v2/* request via a system-context write. Operators rotate/revoke via the dedicated custom ops, not this bare update.',\n outcome: 'The token row’s `lastUsedAt` (and other non-secret metadata) is refreshed; the secret/hash are never mutated here.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token record’s metadata was updated (e.g. `lastUsedAt`).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to mutate SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: false,\n },\n [Op.DELETE]: {\n purpose: 'Remove a token document when a credential should disappear entirely; REPOSITORY_ONLY in factory, HIGH risk.',\n outcome: 'The IdP can no longer authenticate SCIM with that id when enforcement is live.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The SCIM token record was deleted; the IdP can no longer authenticate SCIM with it. No body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to purge SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n },\n [ScimTokens_Operations.GENERATE_TOKEN]: {\n operationId: ScimTokens_Operations.GENERATE_TOKEN,\n purpose: 'Generate a new SCIM bearer credential for an identity-provider connection.',\n outcome: 'The plaintext token is returned exactly once together with its metadata. Store it securely and configure it in the identity provider before dismissing the response.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The credential was created; the response includes its metadata and the one-time plaintext `token`, which cannot be retrieved again.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The generate payload fails schema validation (e.g. missing `displayName` or an invalid `expiresAt`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to mint SCIM bearer credentials.' },\n ],\n idempotent: false,\n rateLimitNote: 'Bearer-token issuance is a credential-minting path and may be rate-limited per scope to slow credential sprawl.',\n examples: [\n {\n title: 'Generate an organization SCIM bearer token',\n request: {\n displayName: tokenRecordExample.displayName,\n expiresAt: tokenRecordExample.expiresAt,\n },\n response: {\n _id: tokenRecordExample._id,\n displayName: tokenRecordExample.displayName,\n createdByUserId: tokenRecordExample.createdByUserId,\n expiresAt: tokenRecordExample.expiresAt,\n isActive: tokenRecordExample.isActive,\n createdAt: tokenRecordExample.createdAt,\n updatedAt: tokenRecordExample.updatedAt,\n tokenHash: '29a6c2c70d069455f9e439e3cf0eb3755e221cabd6cfa4403ae340b9a5c42db5',\n token: '5c6cc59416d664aaab4b3a79e977e8ac19de2cd0518753107080c6af310f72c2',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [ScimTokens_Operations.REVOKE_TOKEN]: {\n operationId: ScimTokens_Operations.REVOKE_TOKEN,\n purpose: 'Revoke an active SCIM token without deleting its administrative history.',\n outcome: 'SCIM requests using the revoked token fail authentication, while its metadata remains available for audit and incident review.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The token is invalidated; subsequent SCIM calls presenting it fail authentication, while the record is retained for audit.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; revocation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to revoke SCIM credentials.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is already revoked or inactive, so there is nothing to invalidate.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Revoke a compromised SCIM token while retaining its audit history',\n request: {},\n response: {\n isActive: false,\n revokedAt: '2026-08-18T10:45:00.000Z',\n message: 'Token revoked',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [ScimTokens_Operations.ROTATE_TOKEN]: {\n operationId: ScimTokens_Operations.ROTATE_TOKEN,\n purpose: 'Replace the token’s bearer secret with immediate cutover. The request body must be an empty JSON object.',\n outcome: 'A new plaintext bearer is returned once and immediately authenticates; the prior material stops authenticating at once.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A new bearer secret is issued and returned once; it authenticates immediately and the prior material is invalidated at once.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; immediate-cutover rotation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to rotate SCIM credentials.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is revoked/expired and cannot be rotated, so issuing a new period is an illegal transition.' },\n ],\n idempotent: false,\n rateLimitNote: 'Rotation issues fresh bearer material and may be rate-limited to prevent rapid churn of live SCIM credentials.',\n examples: [\n {\n title: 'Rotate a SCIM token with immediate cutover',\n request: {},\n response: {\n newToken: '2770f399e8eeb9dc16a8e4d44e39b1097ae02cd397814007c30b80d34a334f41',\n newTokenId: tokenRecordExample._id,\n newTokenHash: 'e2b223c12b1f3e249e5f4cc332654423822613579113218de8e6bdc491fa6e6f',\n message: 'Token rotated',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'Do not conflate with `ORG_API_KEYS` / `APPLICATION_API_KEYS` — these tokens are for SCIM HTTP endpoints, not general platform API use.',\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 label: { purpose: 'Preset `getFrontendResourceLabel` returns `displayName` — the primary list/title for a SCIM token card.' },\n layout: {\n purpose: 'Sections `overview` (name, active, creator) and `lifecycle` (last use, expiry, timestamps) in the SCIM token templates.',\n displayPurpose: 'Display layout mirrors list semantics: compact name + status in summary, full lifecycle in the detail read template.',\n sections: {\n overview: { purpose: 'Identity and active flag for a SCIM token without exposing the secret or hash.', whenToUse: 'Any card or panel listing tokens.', textSlots: { title: { purpose: 'Token name.' }, description: { purpose: 'Tie the label to a single IdP or environment, not a user.' } } },\n lifecycle: { purpose: 'Last used, created, expiry, and support-oriented timestamps to drive rotation and cleanup.', whenToUse: 'Security review of stale tokens and expiring windows.', textSlots: { title: { purpose: 'Lifecycle and usage.' }, description: { purpose: 'Mention that “never used” may mean network path blocked, not a bug by itself.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Addressable organization-token inventory and primary navigation in the tenant SCIM security UI.', whenToUse: 'Administrators see all SCIM credentials for the tenant in one table.' },\n [ScimTokens_Operations.GENERATE_TOKEN]: { purpose: 'Create-with-secret custom op; not addressable in the default `views` array, invoked as an action from an empty/CTA state.', whenToUse: 'Onboarding a new IdP or rotating after compromise without deleting history rows immediately.' },\n [ScimTokens_Operations.REVOKE_TOKEN]: { purpose: 'Revocation action; not addressable in the default `views` array from row kebab/inline when wired in product.', whenToUse: 'Kill a single compromised token with audit trail of revocation time.' },\n [ScimTokens_Operations.ROTATE_TOKEN]: { purpose: 'Immediate-cutover rotation that re-mints the secret in place from a strict-empty request with no grace window; not addressable in the default `views` array, triggered from a rotation modal.', whenToUse: 'Planned key rotation when the IdP can be updated atomically.' },\n },\n }),\n );\n}\n\nexport const organizationScimTokensResourceSpecification = build(CoreResourceType.ORGANIZATION_SCIM_TOKENS, 'ORGANIZATION_SCIM_TOKENS');\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siem-delivery-dlq.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-delivery-dlq.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM3B,0BAA0B,EAI3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"siem-delivery-dlq.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-delivery-dlq.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM3B,0BAA0B,EAI3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAocrC,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;iCAG5D,CAAC;AACF,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;iCAG3D,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
|
3
3
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
|
|
4
4
|
import { CoreResourceOperation as Op, CoreResourceType, ErrorCustomMessageReference, ErrorSeverity, ErrorType, ResourcePrimaryScope, SiemDeliveryDlq_Operations, SiemDeliveryDlqBaseSchema, SiemDeliveryDlqStatus, siemDeliveryDlqPolymorphicFactories, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
6
7
|
function r(source, rt, name) {
|
|
7
8
|
const u = source[rt];
|
|
8
9
|
if (!u)
|
|
@@ -123,6 +124,7 @@ function buildBase(rt, member) {
|
|
|
123
124
|
businessRole: 'Operator-facing queue for data that could not be pushed to a customer’s SIEM endpoint in time, with a clear failure reason and retry state.',
|
|
124
125
|
lifecycleRole: 'Progresses from pending retry to exhausted or eventually delivered; custom ops requeue or clear entries in bulk.',
|
|
125
126
|
audience: LabelAudience.DEVELOPER,
|
|
127
|
+
subDomain: EngineResourceSubDomain.AUTH,
|
|
126
128
|
codeHandling: {
|
|
127
129
|
mainSchema: {
|
|
128
130
|
packageName: '@wildo-ai/saas-models',
|
|
@@ -159,7 +161,7 @@ function buildBase(rt, member) {
|
|
|
159
161
|
values: {
|
|
160
162
|
[SiemDeliveryDlqStatus.PENDING_RETRY]: { meaning: 'May be retried automatically or by an operator while policy allows.' },
|
|
161
163
|
[SiemDeliveryDlqStatus.EXHAUSTED]: { meaning: 'Retries are exhausted; manual inspection and purge or policy-driven cleanup apply.' },
|
|
162
|
-
[SiemDeliveryDlqStatus.DELIVERED]: { meaning: 'A later attempt succeeded;
|
|
164
|
+
[SiemDeliveryDlqStatus.DELIVERED]: { meaning: 'A later attempt succeeded; record may be retained for an audit window.' },
|
|
163
165
|
},
|
|
164
166
|
}),
|
|
165
167
|
failureReason: schemaShape.failureReason.stringSpec({
|
|
@@ -176,7 +178,7 @@ function buildBase(rt, member) {
|
|
|
176
178
|
purpose: 'Repository read of a single DLQ row (internal and admin diagnostics, not a broad end-user read).',
|
|
177
179
|
outcome: 'Inspect error metadata and the opaque payload for support.',
|
|
178
180
|
responseStatuses: [
|
|
179
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The DLQ
|
|
181
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The DLQ record was found and its failure metadata plus opaque payload snapshot are returned for diagnostics.' },
|
|
180
182
|
],
|
|
181
183
|
errorScenarios: [
|
|
182
184
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role required to inspect a dead-letter row (the payload may contain customer PII).' },
|
|
@@ -192,7 +194,7 @@ function buildBase(rt, member) {
|
|
|
192
194
|
? 'A paginated empty queue confirms that no application-scoped SIEM delivery stream is active.'
|
|
193
195
|
: 'Administrators receive the failed event envelope, failure reason, attempt history and current retry state for each delivery.',
|
|
194
196
|
responseStatuses: [
|
|
195
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of dead-letter
|
|
197
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of dead-letter records for the scope, ordered for the queue browser.' },
|
|
196
198
|
],
|
|
197
199
|
errorScenarios: [
|
|
198
200
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role that gates the SIEM dead-letter queue for this scope.' },
|
|
@@ -233,7 +235,7 @@ function buildBase(rt, member) {
|
|
|
233
235
|
purpose: 'Internal append of DLQ rows on delivery failure (REPOSITORY_ONLY in the factory).',
|
|
234
236
|
outcome: 'A new retryable or terminal document.',
|
|
235
237
|
responseStatuses: [
|
|
236
|
-
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter
|
|
238
|
+
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter record was appended for a failed SIEM delivery and is returned with its server-assigned id.' },
|
|
237
239
|
],
|
|
238
240
|
errorScenarios: [
|
|
239
241
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The failure record fails schema validation (e.g. an unknown `status` or a missing `eventId`/`failureReason`).', errorCode: 'VALIDATION_FAILED' },
|
|
@@ -264,7 +266,7 @@ function buildBase(rt, member) {
|
|
|
264
266
|
purpose: 'Remove one row after a successful re-delivery or explicit row-level purge; REPOSITORY_ONLY in the factory for safety.',
|
|
265
267
|
outcome: 'Entry removed from the DLQ collection; separate audit may still cover the original event stream.',
|
|
266
268
|
responseStatuses: [
|
|
267
|
-
{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The dead-letter
|
|
269
|
+
{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The dead-letter record was removed from the queue; no body is returned.' },
|
|
268
270
|
],
|
|
269
271
|
errorScenarios: [
|
|
270
272
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to drop a dead-letter row.' },
|
|
@@ -277,7 +279,7 @@ function buildBase(rt, member) {
|
|
|
277
279
|
outcome: 'Purge and retry-cleanup scale with a single bulk delete instead of N per-row deletes; DLQ rows are inert (no worker owns them, no retry sweep touches them) so any status is safe to drop.',
|
|
278
280
|
whenToUse: 'Repository-only — never a public HTTP surface. Operators clear or drain via the `PURGE_ALL` / `RETRY_*` custom operations, which own request validation and the summary response.',
|
|
279
281
|
responseStatuses: [
|
|
280
|
-
{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The matched
|
|
282
|
+
{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The matched records were bulk-deleted; the invoking custom operation reports the count in its own summary response.' },
|
|
281
283
|
],
|
|
282
284
|
errorScenarios: [
|
|
283
285
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts the repository-only bulk delete directly; UI/API flows must use `PURGE_ALL` / `RETRY_*`.' },
|
|
@@ -291,7 +293,7 @@ function buildBase(rt, member) {
|
|
|
291
293
|
: 'Request a new delivery attempt for one organization queue entry identified by `entryId` in the request body.',
|
|
292
294
|
outcome: 'The response acknowledges the selected queue entry. If the new delivery also fails, its failure is visible in the queue again.',
|
|
293
295
|
responseStatuses: [
|
|
294
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The targeted dead-letter entry was re-queued for delivery; a `{ message, entryId }` acknowledgement is returned (not the DLQ
|
|
296
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The targeted dead-letter entry was re-queued for delivery; a `{ message, entryId }` acknowledgement is returned (not the DLQ record).' },
|
|
295
297
|
],
|
|
296
298
|
errorScenarios: [
|
|
297
299
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to replay SIEM deliveries.' },
|
|
@@ -331,7 +333,7 @@ function buildBase(rt, member) {
|
|
|
331
333
|
purpose: 'Retry every pending or exhausted SIEM delivery entry in the current scope.',
|
|
332
334
|
outcome: 'The response reports how many entries were accepted for another attempt and how many could not be retried.',
|
|
333
335
|
responseStatuses: [
|
|
334
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'Eligible dead-letter entries in the scope were re-queued and removed; a `{ retriedCount, skippedCount, message }` summary is returned (not the
|
|
336
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'Eligible dead-letter entries in the scope were re-queued and removed; a `{ retriedCount, skippedCount, message }` summary is returned (not the records). When SIEM export has no webhook URL configured, all entries are reported as skipped.' },
|
|
335
337
|
],
|
|
336
338
|
errorScenarios: [
|
|
337
339
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to trigger a scope-wide SIEM replay.' },
|
|
@@ -354,7 +356,7 @@ function buildBase(rt, member) {
|
|
|
354
356
|
purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope.',
|
|
355
357
|
outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed.',
|
|
356
358
|
responseStatuses: [
|
|
357
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter
|
|
359
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter record in the scope was permanently removed; a count of purged records is returned.' },
|
|
358
360
|
],
|
|
359
361
|
errorScenarios: [
|
|
360
362
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the CRITICAL-risk operator role required for an irreversible scope-wide purge.' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siem-delivery-dlq.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-delivery-dlq.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,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,2BAA2B,EAC3B,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,mCAAmC,GACpC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AAWrC,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;AAED,MAAM,KAAK,GAAwC;IACjD,CAAC,gBAAgB,CAAC,8BAA8B,CAAC,EAAE,oBAAoB,CAAC,aAAa;IACrF,CAAC,gBAAgB,CAAC,6BAA6B,CAAC,EAAE,oBAAoB,CAAC,WAAW;CACnF,CA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ACP,OAAO,EAAE,+GAA+G;oBACxH,SAAS,EAAE,mGAAmG;oBAC9G,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE;wBACvD,WAAW,EAAE,EAAE,OAAO,EAAE,wGAAwG,EAAE;qBACnI;iBACF;aACF;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iVAAiV,EAAE,SAAS,EAAE,oGAAoG,EAAE;YAC1d,CAAC,0BAA0B,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,EAAE,kKAAkK,EAAE,SAAS,EAAE,sEAAsE,EAAE;YAC7S,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,2LAA2L,EAAE,SAAS,EAAE,oDAAoD,EAAE;YACjT,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,+LAA+L,EAAE,SAAS,EAAE,yFAAyF,EAAE;SAC3V;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gDAAgD,GAAG,KAAK,CACnE,gBAAgB,CAAC,8BAA8B,EAC/C,gCAAgC,CACjC,CAAC;AACF,MAAM,CAAC,MAAM,+CAA+C,GAAG,KAAK,CAClE,gBAAgB,CAAC,6BAA6B,EAC9C,+BAA+B,CAChC,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 {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ErrorCustomMessageReference,\n ErrorSeverity,\n ErrorType,\n ResourcePrimaryScope,\n SiemDeliveryDlq_Operations,\n SiemDeliveryDlqBaseSchema,\n SiemDeliveryDlqStatus,\n siemDeliveryDlqPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\n\ntype RType = CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ | CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\ntype RMember = 'ORGANIZATION_SIEM_DELIVERY_DLQ' | 'APPLICATION_SIEM_DELIVERY_DLQ';\n\ntype Cfg = ReturnType<(typeof siemDeliveryDlqPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof SiemDeliveryDlqBaseSchema;\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}\n\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.APPLICATION,\n};\n\nfunction siemDeliveryDlqPage(data: readonly unknown[]) {\n return {\n data,\n pagination: {\n page: 1,\n limit: 20,\n total: data.length,\n totalPages: data.length === 0 ? 0 : 1,\n },\n };\n}\n\nfunction createSiemDeliveryDlqReferenceExamples(resourceType: RType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const relationshipField = isApplication ? 'application' : 'organization';\n const scopeIdentity = { [scopeField]: scopeId };\n const pendingEntry = {\n _id: 'siemdlq_pending_01HX2EXAMPLE',\n eventId: 'audit_evt_login_failed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authentication.login.failed',\n occurredAt: '2026-08-18T13:34:58.000Z',\n actor: { type: 'user', id: 'user_01HX2EXAMPLE' },\n outcome: 'failure',\n correlationId: 'corr_01HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint timed out after 10 seconds.',\n failureCount: 2,\n lastAttemptAt: '2026-08-18T13:35:10.000Z',\n nextRetryAt: '2026-08-18T13:40:10.000Z',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n createdAt: '2026-08-18T13:30:00.000Z',\n updatedAt: '2026-08-18T13:35:10.000Z',\n ...scopeIdentity,\n };\n const exhaustedEntry = {\n _id: 'siemdlq_exhausted_01HX2EXAMPLE',\n eventId: 'audit_evt_access_denied_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.access.denied',\n occurredAt: '2026-08-18T12:05:00.000Z',\n actor: { type: 'service', id: 'integration_01HX2EXAMPLE' },\n outcome: 'denied',\n correlationId: 'corr_02HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint returned HTTP 503 for every configured retry.',\n failureCount: 4,\n lastAttemptAt: '2026-08-18T12:20:00.000Z',\n status: SiemDeliveryDlqStatus.EXHAUSTED,\n createdAt: '2026-08-18T12:05:02.000Z',\n updatedAt: '2026-08-18T12:20:00.000Z',\n ...scopeIdentity,\n };\n const deliveredEntry = {\n _id: 'siemdlq_delivered_01HX2EXAMPLE',\n eventId: 'audit_evt_role_changed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.role.changed',\n occurredAt: '2026-08-18T11:15:00.000Z',\n actor: { type: 'user', id: 'admin_01HX2EXAMPLE' },\n outcome: 'success',\n correlationId: 'corr_03HX2EXAMPLE',\n },\n failureReason: 'The first delivery failed, but a later attempt succeeded.',\n failureCount: 1,\n lastAttemptAt: '2026-08-18T11:20:00.000Z',\n status: SiemDeliveryDlqStatus.DELIVERED,\n createdAt: '2026-08-18T11:15:02.000Z',\n updatedAt: '2026-08-18T11:20:00.000Z',\n ...scopeIdentity,\n };\n const listRequest = {\n ...scopeIdentity,\n createdAt: {\n startDate: '2026-08-18T00:00:00.000Z',\n endDate: '2026-08-18T23:59:59.999Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n };\n const visibleEntries = isApplication ? [] : [pendingEntry, exhaustedEntry, deliveredEntry];\n const contextEntries = visibleEntries.map((entry) => ({\n ...entry,\n [relationshipField]: { _id: scopeId },\n }));\n const summaryEntries = visibleEntries.map((entry) => ({\n _id: entry._id,\n failureReason: entry.failureReason,\n status: entry.status,\n createdAt: entry.createdAt,\n }));\n\n return {\n isApplication,\n scopeIdentity,\n pendingEntry,\n listRequest,\n listPage: siemDeliveryDlqPage(visibleEntries),\n contextPage: siemDeliveryDlqPage(contextEntries),\n summaryPage: siemDeliveryDlqPage(summaryEntries),\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const reference = createSiemDeliveryDlqReferenceExamples(rt);\n return resourceSpecification<Custom, Core, Main>(\n siemDeliveryDlqPolymorphicFactories[rt],\n SiemDeliveryDlqBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM delivery dead-letter entry: one record per failed (or re-queued) webhook delivery attempt, retaining payload for retry, inspection, and purge.',\n businessRole: 'Operator-facing queue for data that could not be pushed to a customer’s SIEM endpoint in time, with a clear failure reason and retry state.',\n lifecycleRole: 'Progresses from pending retry to exhausted or eventually delivered; custom ops requeue or clear entries in bulk.',\n audience: LabelAudience.DEVELOPER,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemDeliveryDlqBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'siemDeliveryDlqPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: rt,\n },\n resourceType: {\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n memberName: member,\n },\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: 'SiemDeliveryDlq_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 notes: [\n '`eventPayload` is `z.unknown()` in the schema — the companion may describe it generically; this spec file omits a typed field spec until a dedicated `unknown`/`json` *Spec is standardized.',\n ],\n },\n fields: {\n status: schemaShape.status.enumSpec({\n meaning: 'DLQ lifecycle: awaiting retry, exhausted, or already delivered to SIEM on a later attempt.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'SiemDeliveryDlqStatus', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.CONST_OBJECT },\n values: {\n [SiemDeliveryDlqStatus.PENDING_RETRY]: { meaning: 'May be retried automatically or by an operator while policy allows.' },\n [SiemDeliveryDlqStatus.EXHAUSTED]: { meaning: 'Retries are exhausted; manual inspection and purge or policy-driven cleanup apply.' },\n [SiemDeliveryDlqStatus.DELIVERED]: { meaning: 'A later attempt succeeded; row may be retained for an audit window.' },\n },\n }),\n failureReason: schemaShape.failureReason.stringSpec({\n meaning: 'Default list label in presets: human- or system-authored reason for the last failure path.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({ meaning: 'Correlation id to the source audit/transport event behind this failed delivery.' }),\n failureCount: schemaShape.failureCount.numberSpec({ meaning: 'How many times delivery failed for this chain.' }),\n lastAttemptAt: schemaShape.lastAttemptAt.dateSpec({ meaning: 'Last delivery attempt from Wildo to the customer webhook.' }),\n nextRetryAt: schemaShape.nextRetryAt.dateSpec({ meaning: 'When the next automatic retry is scheduled, if any.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Repository read of a single DLQ row (internal and admin diagnostics, not a broad end-user read).',\n outcome: 'Inspect error metadata and the opaque payload for support.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The DLQ row was found and its failure metadata plus opaque payload snapshot are returned for diagnostics.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role required to inspect a dead-letter row (the payload may contain customer PII).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id in the caller’s scope (already purged or re-delivered and removed).' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: reference.isApplication\n ? 'List application-scoped SIEM delivery failures. This framework version has no application-scoped SIEM event producer, so the queue is expected to remain empty.'\n : 'List organization SIEM delivery failures for an incident window, filtered by retry status and ordered for investigation.',\n outcome: reference.isApplication\n ? 'A paginated empty queue confirms that no application-scoped SIEM delivery stream is active.'\n : 'Administrators receive the failed event envelope, failure reason, attempt history and current retry state for each delivery.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of dead-letter rows for the scope, ordered for the queue browser.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role that gates the SIEM dead-letter queue for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM queue is empty'\n : 'Investigate current SIEM delivery states',\n request: reference.listRequest,\n response: reference.listPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM context queue is empty'\n : 'Investigate SIEM failures with organization context',\n request: reference.listRequest,\n response: reference.contextPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM summary queue is empty'\n : 'Review compact SIEM failure summaries',\n request: reference.listRequest,\n response: reference.summaryPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Internal append of DLQ rows on delivery failure (REPOSITORY_ONLY in the factory).',\n outcome: 'A new retryable or terminal document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter row was appended for a failed SIEM delivery and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The failure record fails schema validation (e.g. an unknown `status` or a missing `eventId`/`failureReason`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the internal delivery pipeline; this is a REPOSITORY_ONLY append path, not a self-serve create.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Append a dead-letter row for a failed SIEM delivery',\n request: {\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n response: {\n _id: 'siemdlq_01HX2…',\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Remove one row after a successful re-delivery or explicit row-level purge; REPOSITORY_ONLY in the factory for safety.',\n outcome: 'Entry removed from the DLQ collection; separate audit may still cover the original event stream.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The dead-letter row was removed from the queue; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to drop a dead-letter row.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id (already removed by a prior purge or re-delivery).' },\n ],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of `DELETE` — the repository write path behind `PURGE_ALL` (whole-scope clear) and the delete-on-requeue tail of `RETRY_SINGLE`/`RETRY_ALL`: one round trip drops every matched row.',\n outcome: 'Purge and retry-cleanup scale with a single bulk delete instead of N per-row deletes; DLQ rows are inert (no worker owns them, no retry sweep touches them) so any status is safe to drop.',\n whenToUse: 'Repository-only — never a public HTTP surface. Operators clear or drain via the `PURGE_ALL` / `RETRY_*` custom operations, which own request validation and the summary response.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The matched rows were bulk-deleted; the invoking custom operation reports the count in its own summary response.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts the repository-only bulk delete directly; UI/API flows must use `PURGE_ALL` / `RETRY_*`.' },\n ],\n idempotent: true,\n },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_SINGLE,\n purpose: reference.isApplication\n ? 'Request a retry for one application-scoped queue entry by `entryId`; this version normally has no such entries because the application SIEM producer is unavailable.'\n : 'Request a new delivery attempt for one organization queue entry identified by `entryId` in the request body.',\n outcome: 'The response acknowledges the selected queue entry. If the new delivery also fails, its failure is visible in the queue again.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The targeted dead-letter entry was re-queued for delivery; a `{ message, entryId }` acknowledgement is returned (not the DLQ row).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to replay SIEM deliveries.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied `entryId` in the caller’s scope — it was already cleared or successfully re-delivered.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The entry is already `DELIVERED` (a later attempt succeeded), so there is nothing to retry. `PENDING_RETRY` and `EXHAUSTED` entries are both retryable.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The scope has no SIEM webhook URL configured, so there is no destination to re-deliver to; configure SIEM export before retrying.' },\n ],\n idempotent: false,\n examples: reference.isApplication\n ? [{\n title: 'Retry an unavailable application-scoped queue entry',\n request: { ...reference.scopeIdentity, entryId: 'siemdlq_missing_01HX2EXAMPLE' },\n response: {\n error: {\n type: ErrorType.NOT_FOUND,\n severity: ErrorSeverity.LOW,\n message: 'Requested resource not found',\n customMessage: 'The SIEM delivery queue entry could not be found.',\n customMessageReference: ErrorCustomMessageReference.NOT_FOUND,\n timestamp: '2026-08-18T13:45:00.000Z',\n },\n },\n forStatus: HttpResponseStatusCode.NOT_FOUND_404,\n }]\n : [{\n title: 'Retry one failed organization SIEM delivery',\n request: { ...reference.scopeIdentity, entryId: reference.pendingEntry._id },\n response: {\n message: 'SIEM DLQ entry re-queued for delivery.',\n entryId: reference.pendingEntry._id,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_ALL,\n purpose: 'Retry every pending or exhausted SIEM delivery entry in the current scope.',\n outcome: 'The response reports how many entries were accepted for another attempt and how many could not be retried.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Eligible dead-letter entries in the scope were re-queued and removed; a `{ retriedCount, skippedCount, message }` summary is returned (not the rows). When SIEM export has no webhook URL configured, all entries are reported as skipped.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to trigger a scope-wide SIEM replay.' },\n ],\n idempotent: false,\n rateLimitNote: 'Bulk replay fans out one outbound delivery attempt per eligible row (no artificial batch cap — the DLQ is a bounded failure queue); the SIEM delivery worker’s own per-scope circuit breaker and retry/backoff protect the customer endpoint.',\n examples: [{\n title: reference.isApplication\n ? 'Retry the empty application SIEM queue'\n : 'Retry all eligible organization SIEM deliveries',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { retriedCount: 0, skippedCount: 0, message: 'The SIEM dead-letter queue is empty for this scope.' }\n : { retriedCount: 2, skippedCount: 1, message: 'Re-queued 2 of 3 SIEM dead-letter entries for this organization; skipped 1.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: {\n operationId: SiemDeliveryDlq_Operations.PURGE_ALL,\n purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope.',\n outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter row in the scope was permanently removed; a count of purged rows is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the CRITICAL-risk operator role required for an irreversible scope-wide purge.' },\n ],\n idempotent: false,\n examples: [{\n title: reference.isApplication\n ? 'Purge the empty application SIEM queue'\n : 'Purge all organization SIEM delivery failures',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { purgedCount: 0, message: 'Purged 0 SIEM dead-letter entries for this application.' }\n : { purgedCount: 3, message: 'Purged 3 SIEM dead-letter entries for this organization.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Purge and bulk retry are governed by the factory’s risk tiers: companion should never describe them as low-impact maintenance.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM delivery is reserved in this framework version: no application event producer populates this queue, so retry and purge normally operate on an empty collection.']\n : []),\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const b = buildBase(rt, member);\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 b,\n () => ({\n label: {\n purpose: 'List rows and summaries are labeled from `failureReason` in the merged `security` preset — surface a concise operator-readable reason, not the entire payload.',\n },\n layout: {\n purpose: 'DLQ display in `security` uses section refs `overview` (context), `delivery` (attempt metadata), and `payload` (opaque snapshot).',\n displayPurpose: 'Template JSX for DLQ is defined alongside `layout.refs` in the preset to keep list rows compact; detail chrome expands the three blocks.',\n sections: {\n overview: {\n purpose: 'Status badge, `eventId`, and failure count so the operator orients to which stream failed before opening payload text.',\n whenToUse: 'All read layouts for a DLQ row in security consoles.',\n textSlots: {\n title: { purpose: 'Name the current DLQ item with status-first framing.' },\n description: { purpose: 'Mention that payload may contain PII; treat the screen as operator-only.' },\n },\n },\n delivery: {\n purpose: 'Attempt timestamps and next retry, plus a human-readable `failureReason` for triage.',\n whenToUse: 'Understanding whether automatic retries can still help vs exhausted state.',\n textSlots: {\n title: { purpose: 'Label the delivery and retry block.' },\n description: { purpose: 'Clarify that `nextRetryAt` can be empty when the row is terminal.' },\n },\n },\n payload: {\n purpose: 'The opaque `eventPayload` blob — rendering may truncate or redact; structure is not fixed across event types.',\n whenToUse: 'Deep debugging after overview/delivery are understood; export paths may also reference this data.',\n textSlots: {\n title: { purpose: 'Label the payload/technical view.' },\n description: { purpose: 'Avoid claiming a stable JSON contract — the schema stores `z.unknown()` for flexibility at write time.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary addressable queue surface in merged presets for org and app security operators — dashboard-style: `status` quick-filter tab strip (All / Pending retry / Exhausted / Delivered) + `createdAt` day-bucket grouping via `collectionDisplayConfig` (backend-validated: `status` + `createdAt` are the LIST op\\'s declared `filterFields`).', whenToUse: 'SIEM health and retry workflows under security settings; the Failed tab is the triage entry point.' },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: { purpose: 'Single-row retry surfaced as a per-row action (not URL-addressable); executes in place on the clicked row, whose id is injected into the request body `entryId`.', whenToUse: 'Replaying one known-bad event after a customer fixes their endpoint.' },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: { purpose: 'Whole-scope requeue (borrows the collection verb `UPDATE_MANY` for an id-less collection route); surfaced once in the list collection-action bar, confirms (HIGH) then executes in place.', whenToUse: 'Outage recovery after a shared infrastructure fix.' },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: { purpose: 'Whole-scope clear (borrows the collection verb `DELETE_MANY` for an id-less collection route); surfaced in the list collection-action bar, type-to-confirm (CRITICAL) then executes in place.', whenToUse: 'Compliance or disk-pressure teardown when retention policy allows purging the DLQ only.' },\n },\n }),\n );\n}\n\nexport const organizationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ,\n 'ORGANIZATION_SIEM_DELIVERY_DLQ',\n);\nexport const applicationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ,\n 'APPLICATION_SIEM_DELIVERY_DLQ',\n);\n"]}
|
|
1
|
+
{"version":3,"file":"siem-delivery-dlq.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-delivery-dlq.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,EAC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,OAAO,EAAE,kKAAkK,EAAE,SAAS,EAAE,sEAAsE,EAAE;YAC7S,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,2LAA2L,EAAE,SAAS,EAAE,oDAAoD,EAAE;YACjT,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,+LAA+L,EAAE,SAAS,EAAE,yFAAyF,EAAE;SAC3V;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gDAAgD,GAAG,KAAK,CACnE,gBAAgB,CAAC,8BAA8B,EAC/C,gCAAgC,CACjC,CAAC;AACF,MAAM,CAAC,MAAM,+CAA+C,GAAG,KAAK,CAClE,gBAAgB,CAAC,6BAA6B,EAC9C,+BAA+B,CAChC,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 {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ErrorCustomMessageReference,\n ErrorSeverity,\n ErrorType,\n ResourcePrimaryScope,\n SiemDeliveryDlq_Operations,\n SiemDeliveryDlqBaseSchema,\n SiemDeliveryDlqStatus,\n siemDeliveryDlqPolymorphicFactories,\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_SIEM_DELIVERY_DLQ | CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\ntype RMember = 'ORGANIZATION_SIEM_DELIVERY_DLQ' | 'APPLICATION_SIEM_DELIVERY_DLQ';\n\ntype Cfg = ReturnType<(typeof siemDeliveryDlqPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof SiemDeliveryDlqBaseSchema;\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}\n\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.APPLICATION,\n};\n\nfunction siemDeliveryDlqPage(data: readonly unknown[]) {\n return {\n data,\n pagination: {\n page: 1,\n limit: 20,\n total: data.length,\n totalPages: data.length === 0 ? 0 : 1,\n },\n };\n}\n\nfunction createSiemDeliveryDlqReferenceExamples(resourceType: RType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const relationshipField = isApplication ? 'application' : 'organization';\n const scopeIdentity = { [scopeField]: scopeId };\n const pendingEntry = {\n _id: 'siemdlq_pending_01HX2EXAMPLE',\n eventId: 'audit_evt_login_failed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authentication.login.failed',\n occurredAt: '2026-08-18T13:34:58.000Z',\n actor: { type: 'user', id: 'user_01HX2EXAMPLE' },\n outcome: 'failure',\n correlationId: 'corr_01HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint timed out after 10 seconds.',\n failureCount: 2,\n lastAttemptAt: '2026-08-18T13:35:10.000Z',\n nextRetryAt: '2026-08-18T13:40:10.000Z',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n createdAt: '2026-08-18T13:30:00.000Z',\n updatedAt: '2026-08-18T13:35:10.000Z',\n ...scopeIdentity,\n };\n const exhaustedEntry = {\n _id: 'siemdlq_exhausted_01HX2EXAMPLE',\n eventId: 'audit_evt_access_denied_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.access.denied',\n occurredAt: '2026-08-18T12:05:00.000Z',\n actor: { type: 'service', id: 'integration_01HX2EXAMPLE' },\n outcome: 'denied',\n correlationId: 'corr_02HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint returned HTTP 503 for every configured retry.',\n failureCount: 4,\n lastAttemptAt: '2026-08-18T12:20:00.000Z',\n status: SiemDeliveryDlqStatus.EXHAUSTED,\n createdAt: '2026-08-18T12:05:02.000Z',\n updatedAt: '2026-08-18T12:20:00.000Z',\n ...scopeIdentity,\n };\n const deliveredEntry = {\n _id: 'siemdlq_delivered_01HX2EXAMPLE',\n eventId: 'audit_evt_role_changed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.role.changed',\n occurredAt: '2026-08-18T11:15:00.000Z',\n actor: { type: 'user', id: 'admin_01HX2EXAMPLE' },\n outcome: 'success',\n correlationId: 'corr_03HX2EXAMPLE',\n },\n failureReason: 'The first delivery failed, but a later attempt succeeded.',\n failureCount: 1,\n lastAttemptAt: '2026-08-18T11:20:00.000Z',\n status: SiemDeliveryDlqStatus.DELIVERED,\n createdAt: '2026-08-18T11:15:02.000Z',\n updatedAt: '2026-08-18T11:20:00.000Z',\n ...scopeIdentity,\n };\n const listRequest = {\n ...scopeIdentity,\n createdAt: {\n startDate: '2026-08-18T00:00:00.000Z',\n endDate: '2026-08-18T23:59:59.999Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n };\n const visibleEntries = isApplication ? [] : [pendingEntry, exhaustedEntry, deliveredEntry];\n const contextEntries = visibleEntries.map((entry) => ({\n ...entry,\n [relationshipField]: { _id: scopeId },\n }));\n const summaryEntries = visibleEntries.map((entry) => ({\n _id: entry._id,\n failureReason: entry.failureReason,\n status: entry.status,\n createdAt: entry.createdAt,\n }));\n\n return {\n isApplication,\n scopeIdentity,\n pendingEntry,\n listRequest,\n listPage: siemDeliveryDlqPage(visibleEntries),\n contextPage: siemDeliveryDlqPage(contextEntries),\n summaryPage: siemDeliveryDlqPage(summaryEntries),\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const reference = createSiemDeliveryDlqReferenceExamples(rt);\n return resourceSpecification<Custom, Core, Main>(\n siemDeliveryDlqPolymorphicFactories[rt],\n SiemDeliveryDlqBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM delivery dead-letter entry: one record per failed (or re-queued) webhook delivery attempt, retaining payload for retry, inspection, and purge.',\n businessRole: 'Operator-facing queue for data that could not be pushed to a customer’s SIEM endpoint in time, with a clear failure reason and retry state.',\n lifecycleRole: 'Progresses from pending retry to exhausted or eventually delivered; custom ops requeue or clear entries in bulk.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemDeliveryDlqBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'siemDeliveryDlqPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: rt,\n },\n resourceType: {\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n memberName: member,\n },\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: 'SiemDeliveryDlq_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 notes: [\n '`eventPayload` is `z.unknown()` in the schema — the companion may describe it generically; this spec file omits a typed field spec until a dedicated `unknown`/`json` *Spec is standardized.',\n ],\n },\n fields: {\n status: schemaShape.status.enumSpec({\n meaning: 'DLQ lifecycle: awaiting retry, exhausted, or already delivered to SIEM on a later attempt.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'SiemDeliveryDlqStatus', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.CONST_OBJECT },\n values: {\n [SiemDeliveryDlqStatus.PENDING_RETRY]: { meaning: 'May be retried automatically or by an operator while policy allows.' },\n [SiemDeliveryDlqStatus.EXHAUSTED]: { meaning: 'Retries are exhausted; manual inspection and purge or policy-driven cleanup apply.' },\n [SiemDeliveryDlqStatus.DELIVERED]: { meaning: 'A later attempt succeeded; record may be retained for an audit window.' },\n },\n }),\n failureReason: schemaShape.failureReason.stringSpec({\n meaning: 'Default list label in presets: human- or system-authored reason for the last failure path.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({ meaning: 'Correlation id to the source audit/transport event behind this failed delivery.' }),\n failureCount: schemaShape.failureCount.numberSpec({ meaning: 'How many times delivery failed for this chain.' }),\n lastAttemptAt: schemaShape.lastAttemptAt.dateSpec({ meaning: 'Last delivery attempt from Wildo to the customer webhook.' }),\n nextRetryAt: schemaShape.nextRetryAt.dateSpec({ meaning: 'When the next automatic retry is scheduled, if any.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Repository read of a single DLQ row (internal and admin diagnostics, not a broad end-user read).',\n outcome: 'Inspect error metadata and the opaque payload for support.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The DLQ record was found and its failure metadata plus opaque payload snapshot are returned for diagnostics.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role required to inspect a dead-letter row (the payload may contain customer PII).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id in the caller’s scope (already purged or re-delivered and removed).' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: reference.isApplication\n ? 'List application-scoped SIEM delivery failures. This framework version has no application-scoped SIEM event producer, so the queue is expected to remain empty.'\n : 'List organization SIEM delivery failures for an incident window, filtered by retry status and ordered for investigation.',\n outcome: reference.isApplication\n ? 'A paginated empty queue confirms that no application-scoped SIEM delivery stream is active.'\n : 'Administrators receive the failed event envelope, failure reason, attempt history and current retry state for each delivery.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of dead-letter records for the scope, ordered for the queue browser.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role that gates the SIEM dead-letter queue for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM queue is empty'\n : 'Investigate current SIEM delivery states',\n request: reference.listRequest,\n response: reference.listPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM context queue is empty'\n : 'Investigate SIEM failures with organization context',\n request: reference.listRequest,\n response: reference.contextPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM summary queue is empty'\n : 'Review compact SIEM failure summaries',\n request: reference.listRequest,\n response: reference.summaryPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Internal append of DLQ rows on delivery failure (REPOSITORY_ONLY in the factory).',\n outcome: 'A new retryable or terminal document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter record was appended for a failed SIEM delivery and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The failure record fails schema validation (e.g. an unknown `status` or a missing `eventId`/`failureReason`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the internal delivery pipeline; this is a REPOSITORY_ONLY append path, not a self-serve create.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Append a dead-letter row for a failed SIEM delivery',\n request: {\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n response: {\n _id: 'siemdlq_01HX2…',\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Remove one row after a successful re-delivery or explicit row-level purge; REPOSITORY_ONLY in the factory for safety.',\n outcome: 'Entry removed from the DLQ collection; separate audit may still cover the original event stream.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The dead-letter record was removed from the queue; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to drop a dead-letter row.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id (already removed by a prior purge or re-delivery).' },\n ],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of `DELETE` — the repository write path behind `PURGE_ALL` (whole-scope clear) and the delete-on-requeue tail of `RETRY_SINGLE`/`RETRY_ALL`: one round trip drops every matched row.',\n outcome: 'Purge and retry-cleanup scale with a single bulk delete instead of N per-row deletes; DLQ rows are inert (no worker owns them, no retry sweep touches them) so any status is safe to drop.',\n whenToUse: 'Repository-only — never a public HTTP surface. Operators clear or drain via the `PURGE_ALL` / `RETRY_*` custom operations, which own request validation and the summary response.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The matched records were bulk-deleted; the invoking custom operation reports the count in its own summary response.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts the repository-only bulk delete directly; UI/API flows must use `PURGE_ALL` / `RETRY_*`.' },\n ],\n idempotent: true,\n },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_SINGLE,\n purpose: reference.isApplication\n ? 'Request a retry for one application-scoped queue entry by `entryId`; this version normally has no such entries because the application SIEM producer is unavailable.'\n : 'Request a new delivery attempt for one organization queue entry identified by `entryId` in the request body.',\n outcome: 'The response acknowledges the selected queue entry. If the new delivery also fails, its failure is visible in the queue again.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The targeted dead-letter entry was re-queued for delivery; a `{ message, entryId }` acknowledgement is returned (not the DLQ record).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to replay SIEM deliveries.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied `entryId` in the caller’s scope — it was already cleared or successfully re-delivered.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The entry is already `DELIVERED` (a later attempt succeeded), so there is nothing to retry. `PENDING_RETRY` and `EXHAUSTED` entries are both retryable.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The scope has no SIEM webhook URL configured, so there is no destination to re-deliver to; configure SIEM export before retrying.' },\n ],\n idempotent: false,\n examples: reference.isApplication\n ? [{\n title: 'Retry an unavailable application-scoped queue entry',\n request: { ...reference.scopeIdentity, entryId: 'siemdlq_missing_01HX2EXAMPLE' },\n response: {\n error: {\n type: ErrorType.NOT_FOUND,\n severity: ErrorSeverity.LOW,\n message: 'Requested resource not found',\n customMessage: 'The SIEM delivery queue entry could not be found.',\n customMessageReference: ErrorCustomMessageReference.NOT_FOUND,\n timestamp: '2026-08-18T13:45:00.000Z',\n },\n },\n forStatus: HttpResponseStatusCode.NOT_FOUND_404,\n }]\n : [{\n title: 'Retry one failed organization SIEM delivery',\n request: { ...reference.scopeIdentity, entryId: reference.pendingEntry._id },\n response: {\n message: 'SIEM DLQ entry re-queued for delivery.',\n entryId: reference.pendingEntry._id,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_ALL,\n purpose: 'Retry every pending or exhausted SIEM delivery entry in the current scope.',\n outcome: 'The response reports how many entries were accepted for another attempt and how many could not be retried.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Eligible dead-letter entries in the scope were re-queued and removed; a `{ retriedCount, skippedCount, message }` summary is returned (not the records). When SIEM export has no webhook URL configured, all entries are reported as skipped.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to trigger a scope-wide SIEM replay.' },\n ],\n idempotent: false,\n rateLimitNote: 'Bulk replay fans out one outbound delivery attempt per eligible row (no artificial batch cap — the DLQ is a bounded failure queue); the SIEM delivery worker’s own per-scope circuit breaker and retry/backoff protect the customer endpoint.',\n examples: [{\n title: reference.isApplication\n ? 'Retry the empty application SIEM queue'\n : 'Retry all eligible organization SIEM deliveries',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { retriedCount: 0, skippedCount: 0, message: 'The SIEM dead-letter queue is empty for this scope.' }\n : { retriedCount: 2, skippedCount: 1, message: 'Re-queued 2 of 3 SIEM dead-letter entries for this organization; skipped 1.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: {\n operationId: SiemDeliveryDlq_Operations.PURGE_ALL,\n purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope.',\n outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter record in the scope was permanently removed; a count of purged records is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the CRITICAL-risk operator role required for an irreversible scope-wide purge.' },\n ],\n idempotent: false,\n examples: [{\n title: reference.isApplication\n ? 'Purge the empty application SIEM queue'\n : 'Purge all organization SIEM delivery failures',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { purgedCount: 0, message: 'Purged 0 SIEM dead-letter entries for this application.' }\n : { purgedCount: 3, message: 'Purged 3 SIEM dead-letter entries for this organization.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Purge and bulk retry are governed by the factory’s risk tiers: companion should never describe them as low-impact maintenance.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM delivery is reserved in this framework version: no application event producer populates this queue, so retry and purge normally operate on an empty collection.']\n : []),\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const b = buildBase(rt, member);\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 b,\n () => ({\n label: {\n purpose: 'List rows and summaries are labeled from `failureReason` in the merged `security` preset — surface a concise operator-readable reason, not the entire payload.',\n },\n layout: {\n purpose: 'DLQ display in `security` uses section refs `overview` (context), `delivery` (attempt metadata), and `payload` (opaque snapshot).',\n displayPurpose: 'Template JSX for DLQ is defined alongside `layout.refs` in the preset to keep list rows compact; detail chrome expands the three blocks.',\n sections: {\n overview: {\n purpose: 'Status badge, `eventId`, and failure count so the operator orients to which stream failed before opening payload text.',\n whenToUse: 'All read layouts for a DLQ row in security consoles.',\n textSlots: {\n title: { purpose: 'Name the current DLQ item with status-first framing.' },\n description: { purpose: 'Mention that payload may contain PII; treat the screen as operator-only.' },\n },\n },\n delivery: {\n purpose: 'Attempt timestamps and next retry, plus a human-readable `failureReason` for triage.',\n whenToUse: 'Understanding whether automatic retries can still help vs exhausted state.',\n textSlots: {\n title: { purpose: 'Label the delivery and retry block.' },\n description: { purpose: 'Clarify that `nextRetryAt` can be empty when the row is terminal.' },\n },\n },\n payload: {\n purpose: 'The opaque `eventPayload` blob — rendering may truncate or redact; structure is not fixed across event types.',\n whenToUse: 'Deep debugging after overview/delivery are understood; export paths may also reference this data.',\n textSlots: {\n title: { purpose: 'Label the payload/technical view.' },\n description: { purpose: 'Avoid claiming a stable JSON contract — the schema stores `z.unknown()` for flexibility at write time.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary addressable queue surface in merged presets for org and app security operators — dashboard-style: `status` quick-filter tab strip (All / Pending retry / Exhausted / Delivered) + `createdAt` day-bucket grouping via `collectionDisplayConfig` (backend-validated: `status` + `createdAt` are the LIST op\\'s declared `filterFields`).', whenToUse: 'SIEM health and retry workflows under security settings; the Failed tab is the triage entry point.' },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: { purpose: 'Single-row retry surfaced as a per-row action (not URL-addressable); executes in place on the clicked row, whose id is injected into the request body `entryId`.', whenToUse: 'Replaying one known-bad event after a customer fixes their endpoint.' },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: { purpose: 'Whole-scope requeue (borrows the collection verb `UPDATE_MANY` for an id-less collection route); surfaced once in the list collection-action bar, confirms (HIGH) then executes in place.', whenToUse: 'Outage recovery after a shared infrastructure fix.' },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: { purpose: 'Whole-scope clear (borrows the collection verb `DELETE_MANY` for an id-less collection route); surfaced in the list collection-action bar, type-to-confirm (CRITICAL) then executes in place.', whenToUse: 'Compliance or disk-pressure teardown when retention policy allows purging the DLQ only.' },\n },\n }),\n );\n}\n\nexport const organizationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ,\n 'ORGANIZATION_SIEM_DELIVERY_DLQ',\n);\nexport const applicationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ,\n 'APPLICATION_SIEM_DELIVERY_DLQ',\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"siem-export-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-export-config.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAU5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"siem-export-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-export-config.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAU5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AA4YrC,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG7D,CAAC;AACF,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG5D,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
|
3
3
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
|
|
4
4
|
import { CoreResourceOperation as Op, CoreResourceType, ResourcePrimaryScope, SIEMEventCategory, SIEMEventFormat, SIEMFilterSeverity, SIEMAuthMethod, SiemExportConfigBaseSchema, WildoHeaderKeys, siemExportConfigPolymorphicFactories, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
6
7
|
function resolveSiemExportUI(source, resourceType, sourceName) {
|
|
7
8
|
const ui = source[resourceType];
|
|
8
9
|
if (!ui) {
|
|
@@ -73,6 +74,7 @@ function buildSiemExportBase(resourceType, memberName) {
|
|
|
73
74
|
businessRole: 'The outbound integration point that turns internal audit events into a customer SIEM or log pipeline.',
|
|
74
75
|
lifecycleRole: 'Seeded per scope, enabled or disabled through the administration configuration flow, and edited for destinations, credentials, filtering, and delivery policy.',
|
|
75
76
|
audience: LabelAudience.DEVELOPER,
|
|
77
|
+
subDomain: EngineResourceSubDomain.AUTH,
|
|
76
78
|
codeHandling: {
|
|
77
79
|
mainSchema: {
|
|
78
80
|
packageName: '@wildo-ai/saas-models',
|
|
@@ -137,9 +139,9 @@ function buildSiemExportBase(resourceType, memberName) {
|
|
|
137
139
|
},
|
|
138
140
|
values: {
|
|
139
141
|
[SIEMAuthMethod.NONE]: { meaning: 'No client authentication (rare; usually dev-only).' },
|
|
140
|
-
[SIEMAuthMethod.BEARER_TOKEN]: { meaning: 'Bearer token in the Authorization header
|
|
141
|
-
[SIEMAuthMethod.API_KEY_HEADER]: { meaning: 'API key in a
|
|
142
|
-
[SIEMAuthMethod.HMAC_SHA256]: { meaning: '
|
|
142
|
+
[SIEMAuthMethod.BEARER_TOKEN]: { meaning: 'Bearer token in the Authorization header. You supply the token when you save the configuration; reading it back returns `••••••••` rather than the value.' },
|
|
143
|
+
[SIEMAuthMethod.API_KEY_HEADER]: { meaning: 'API key in a header you name. When you do not name one, the default is `x-api-key`.' },
|
|
144
|
+
[SIEMAuthMethod.HMAC_SHA256]: { meaning: 'The payload is signed with a shared secret your receiver verifies. You supply the secret when you save the configuration; reading it back returns `••••••••` rather than the value.' },
|
|
143
145
|
},
|
|
144
146
|
}),
|
|
145
147
|
authCredential: schemaShape.authCredential.stringSpec({
|
|
@@ -242,7 +244,7 @@ function buildSiemExportBase(resourceType, memberName) {
|
|
|
242
244
|
purpose: 'Create the per-scope SIEM config row; internal-only (INTERNAL_CALL) variant in the factory — no public HTTP create route. Materialised by the framework default-seed (repository tier) or, when that was bypassed, a system-context lazy-create.',
|
|
243
245
|
outcome: 'The scope gains a new SIEM export document.',
|
|
244
246
|
responseStatuses: [
|
|
245
|
-
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A SIEM export configuration
|
|
247
|
+
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A SIEM export configuration record was created for the scope and returned with its server-assigned id.' },
|
|
246
248
|
],
|
|
247
249
|
errorScenarios: [
|
|
248
250
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The configuration fails schema validation (e.g. a non-HTTPS `webhookUrl`, an unknown `eventFormat`, or an `authMethod` missing its required credential).', errorCode: 'VALIDATION_FAILED' },
|
|
@@ -287,14 +289,14 @@ function buildSiemExportBase(resourceType, memberName) {
|
|
|
287
289
|
purpose: 'Repository-only teardown of the SIEM export config row when its owning org/app is deleted (composition `onParentDelete` cascade).',
|
|
288
290
|
outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',
|
|
289
291
|
responseStatuses: [
|
|
290
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: 'The SIEM export config
|
|
292
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The SIEM export config record was deleted as part of the deletion cascade of its owning scope.' },
|
|
291
293
|
],
|
|
292
294
|
// 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.
|
|
293
295
|
idempotent: true,
|
|
294
296
|
},
|
|
295
297
|
},
|
|
296
298
|
businessConstraints: [
|
|
297
|
-
'
|
|
299
|
+
'Credentials are write-only: `authCredential` and any HMAC secret are supplied when the configuration is saved and are never returned by a read, which answers `••••••••` instead. There is no list or search over these rows, so a credential cannot be recovered from the configuration once it is stored.',
|
|
298
300
|
'Event payload shapes are a separate concern from this row: `eventFilter` and `eventFormat` do not re-specify the full audit log schema, only the export fan-out contract.',
|
|
299
301
|
...(reference.isApplication
|
|
300
302
|
? ['Application-scoped SIEM export is reserved in this framework version: no application event producer feeds this configuration or its delivery queue. Consumers must not treat `enabled: true` as evidence that application-scoped events are being exported.']
|