@wildo-ai/saas-specifications 1.1.5 → 1.1.6
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/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +14 -13
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
- package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.js +34 -13
- package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -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-validation.d.ts +39 -13
- 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 +43 -13
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
- 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 +70 -3
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.js +8 -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 -2
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.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/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
- package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
- package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
- package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.js +2 -2
- package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.js +2 -2
- package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.js +2 -2
- package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +2 -2
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.js +2 -2
- package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
- package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.js +2 -2
- package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.js +2 -2
- package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.js +2 -2
- package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
- package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.js +2 -2
- package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.js +6 -0
- package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
- package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +1 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -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 +6 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js +110 -24
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
- 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 +98 -11
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +7 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +7 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
- package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +107 -14
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/governed-document-release.d.ts +7 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +11 -2
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +6 -5
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
- 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 +35 -33
- 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 +6 -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.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
- 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 +26 -2
- 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 -4
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
- 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 +1 -0
- 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 +45 -32
- 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 +1 -23
- 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 +185 -31
- 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 +2 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +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 +7 -1
- 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 +9 -6
- 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 +1 -0
- 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 +11 -7
- 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 +18 -16
- 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 +9 -11
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
- 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 -24
- 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 +76 -16
- 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 +2 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
- 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 +13 -12
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
- 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 +12 -9
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
- 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 +13 -10
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
- 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 +52 -12
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +1 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +69 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
- 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 +9 -10
- 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 +5 -5
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
- 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 +5 -5
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
- 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.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
- 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 +150 -4
- 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.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +1 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +3 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
- 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.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
- 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.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
- 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 +2 -2
- 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 +8 -8
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
- package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/index.js +1 -0
- package/dist/esm/engine/notifications/resources/index.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
- 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 +6 -6
- 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 +8 -11
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
- package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.js +4 -2
- package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.js +2 -0
- package/dist/esm/engine/organizations/resources/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
- 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 +40 -12
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
- 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 +0 -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 -6
- 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 +7 -3
- 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 +15 -8
- 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 +3 -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 +36 -21
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
- package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +1 -1
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/index.d.ts +2 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -1
- package/dist/esm/engine/providers/index.js +5 -1
- package/dist/esm/engine/providers/index.js.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/index.d.ts +13 -5
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +19 -6
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
- 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 +7 -7
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
- 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 +0 -3
- 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 +11 -18
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
- 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 +5 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/assurance/external-framework-mapping.json +0 -1228
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-notifications.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-notifications.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,IAAI,yCAAyC,EAAE,MAAM,8BAA8B,CAAC;AAC5I,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAC3B,+BAA+B,EAC/B,oBAAoB,EACpB,oEAAoE,IAAI,gCAAgC,GACzG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAM3E,MAAM,2CAA2C,GAAG,yCAInD,CAAC;AAEF,MAAM,kCAAkC,GAAG;IACzC,GAAG,EAAE,uCAAuC;IAC5C,cAAc,EAAE,gBAAgB;IAChC,kBAAkB,EAAE;QAClB,mBAAmB,EAAE,yBAAyB;QAC9C,cAAc,EAAE,sBAAsB;QACtC,eAAe,EAAE,uBAAuB;QACxC,qBAAqB,EAAE,6BAA6B;QACpD,sBAAsB,EAAE,uBAAuB;QAC/C,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE,IAAI;QACd,eAAe,EAAE,KAAK;KACvB;IACD,SAAS,EAAE,0BAA0B;IACrC,SAAS,EAAE,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AAE;oBACZ,OAAO,EAAE,2EAA2E;oBACpF,IAAI,EAAE,+FAA+F;oBACrG,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,4DAA4D,EAAE,EAAE;oBAC/F,UAAU,EAAE,CAAC;4BACX,QAAQ,EAAE,oEAAoE;4BAC9E,SAAS,EAAE,0BAA0B,CAAC,SAAS;4BAC/C,UAAU,EAAE,2BAA2B,CAAC,iBAAiB;yBAC1D,CAAC;iBACH;aACF;YACD,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,uJAAuJ;YAChK,OAAO,EAAE,qIAAqI;YAC9I,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,iHAAiH,EAAE;aACpK;YACD,2JAA2J;YAC3J,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,+LAA+L;KAChM;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,gFAAgF;IAChF,6EAA6E;IAC7E,4EAA4E;IAC5E,8EAA8E;IAC9E,gFAAgF;IAChF,oEAAoE;IACpE,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC5H,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,SAAS,EAAE,oDAAoD,EAAE;KAClJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationNotificationsMainResourceUIBehavior as organizationNotificationsUIBehaviorSource } 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 CoreUserNotificationChannel,\n CoreUserNotificationTarget,\n CoreResourceOperation as Op,\n OrganizationNotificationsSchema,\n ResourcePrimaryScope,\n organizationNotificationsResourceConfiguration_InitializationFactory as organizationNotificationsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationNotificationsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationNotificationsResourceUIBehavior = organizationNotificationsUIBehaviorSource as ResourceUIBehaviorConfig<\n Record<string, never>,\n Core,\n Main\n>;\n\nconst ORGANIZATION_NOTIFICATIONS_EXAMPLE = {\n _id: 'organization_notifications_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n emailNotifications: {\n defaultEmailAddress: 'operations@acme.example',\n billingAddress: 'billing@acme.example',\n securityAddress: 'security@acme.example',\n administrativeAddress: 'administration@acme.example',\n usersManagementAddress: 'identity@acme.example',\n billing: true,\n administrative: true,\n security: true,\n usersManagement: false,\n },\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 3,\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n organization: { _id: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_NOTIFICATIONS_EXAMPLE._id,\n organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId,\n emailNotifications: ORGANIZATION_NOTIFICATIONS_EXAMPLE.emailNotifications,\n _version: ORGANIZATION_NOTIFICATIONS_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE = {\n emailNotifications: {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE.emailNotifications,\n defaultEmailAddress: 'service-operations@acme.example',\n usersManagement: true,\n },\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n ...ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T10:35:00.000Z',\n _version: 4,\n} as const;\n\nexport const organizationNotificationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationNotificationsResourceUIBehavior),\n resourceSpecification(\n organizationNotificationsFactory,\n OrganizationNotificationsSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization email destinations and enablement switches for billing, security, administration, and user-management notices.',\n businessRole: 'Keeps operational notices routed to the teams responsible for each category, independently of individual member preferences.',\n lifecycleRole: 'Changes when category ownership moves to another mailbox or the organization enables or disables a notice category.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationNotificationsSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationNotificationsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ORGANIZATION_NOTIFICATIONS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationNotificationsMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: ['No custom operations. READ/UPDATE are the member-facing surface; CREATE is INTERNAL_CALL (seeds the row via the ORGANIZATIONS → ORGANIZATION_NOTIFICATIONS `onParentCreate` composition lifecycle — INTERNAL_CALL because `createAsSystem` resolves the seed op through the service tier, which rejects REPOSITORY_ONLY) and DELETE is REPOSITORY_ONLY (tears it down via the paired `onParentDelete` cascade, which runs at the repository tier), neither an addressable route.'],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization notification-routing record.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose notification-routing table this record configures.',\n whyItMatters: 'Scopes the routing map to one tenant so billing/security/admin notices for an org resolve to that org’s configured addresses and never leak across tenants.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n emailNotifications: schemaShape.emailNotifications.objectSpec({\n meaning: 'Per-category email addresses and enablement switches for billing, administration, security, and user-management notices.',\n whyItMatters: 'A category-specific address takes precedence for that category; the default address provides the general destination when a dedicated one is not configured.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization notification-routing record was created.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any routing address or category switch last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization’s email routing addresses and category switches.',\n outcome: 'The caller can determine the configured destination and enabled state for billing, administrative, security, and user-management notices.',\n whenToUse: 'Use this operation when showing notification settings or checking where an organization-level notice will be routed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s notification routing map (per-category addresses and opt-ins) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the addressed organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Read organization notification routing',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the complete routing record with its organization relationship context.',\n outcome: 'The routing configuration and related organization identifier are returned together.',\n examples: [{\n title: 'Read notification routing with organization context',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact notification-routing representation.',\n outcome: 'The record identity, organization, complete category-routing block, and resource version are returned.',\n examples: [{\n title: 'Read compact organization notification routing',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'System-seed the org notification-routing row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_NOTIFICATIONS `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',\n outcome: 'A defaults-filled routing table exists for the tenant so downstream email fan-out resolves per-category opt-ins without a missing-row fallback.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A notification-routing record was created for the organization with its `emailNotifications` block defaulted (category opt-ins on, addresses unset).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded routing payload fails `OrganizationNotificationsSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A notification-routing row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Replace the organization’s category addresses and notification switches.',\n outcome: 'Subsequent organization notices use the updated routing configuration.',\n whenToUse: 'Use this operation when responsibility for billing, security, administration, or user management moves to a different mailbox, or when a category is enabled or disabled.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The notification routing map was updated and the new effective configuration is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A routing address is malformed or a category toggle fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to change notification routing.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Update organization notification destinations',\n request: {\n organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId,\n ...ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_NOTIFICATIONS_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: {\n notification: {\n purpose: 'Confirm in-product that the notification-routing configuration was saved.',\n tone: 'Brief and operational; the confirmation should avoid repeating email addresses unnecessarily.',\n textSlots: { title: { purpose: 'Short success headline for the saved-routing confirmation.' } },\n deliveries: [{\n audience: 'The signed-in organization administrator who performed the update.',\n targetRef: CoreUserNotificationTarget.USER_SELF,\n channelRef: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }],\n },\n },\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization notification-routing row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton routing row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization notification-routing record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'The routing record configures destinations; updating it emits only an in-product success confirmation and does not itself send a billing, security, administrative, or user-management email.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n // `views` documents FRONTEND operation semantics — only ops the merged frontend\n // configuration surfaces belong here. CREATE is an INTERNAL_CALL system-seed\n // (see config `variantType: INTERNAL_CALL` + the operations[CREATE] backend\n // semantics below), so it is NOT surfaced to the frontend and must not appear\n // in `views` — `validateFrontendSpecificationAgainstConfiguration` fails closed\n // on a views-documented op that no merged frontend config surfaces.\n views: {\n [Op.READ]: { purpose: 'Read-only org notification routing panel.', whenToUse: 'Org admin settings and compliance reviews.' },\n [Op.UPDATE]: { purpose: 'Editable org notification routing when roles permit.', whenToUse: 'Hand-offs between finance, IT, and security teams.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"organization-notifications.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-notifications.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,IAAI,yCAAyC,EAAE,MAAM,8BAA8B,CAAC;AAC5I,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAC3B,+BAA+B,EAC/B,oBAAoB,EACpB,oEAAoE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AAC,aAAa,EAAE,CAC7D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,gFAAgF;IAChF,6EAA6E;IAC7E,4EAA4E;IAC5E,8EAA8E;IAC9E,gFAAgF;IAChF,oEAAoE;IACpE,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC5H,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,SAAS,EAAE,oDAAoD,EAAE;KAClJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationNotificationsMainResourceUIBehavior as organizationNotificationsUIBehaviorSource } 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 CoreUserNotificationChannel,\n CoreUserNotificationTarget,\n CoreResourceOperation as Op,\n OrganizationNotificationsSchema,\n ResourcePrimaryScope,\n organizationNotificationsResourceConfiguration_InitializationFactory as organizationNotificationsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationNotificationsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationNotificationsResourceUIBehavior = organizationNotificationsUIBehaviorSource as ResourceUIBehaviorConfig<\n Record<string, never>,\n Core,\n Main\n>;\n\nconst ORGANIZATION_NOTIFICATIONS_EXAMPLE = {\n _id: 'organization_notifications_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n emailNotifications: {\n defaultEmailAddress: 'operations@acme.example',\n billingAddress: 'billing@acme.example',\n securityAddress: 'security@acme.example',\n administrativeAddress: 'administration@acme.example',\n usersManagementAddress: 'identity@acme.example',\n billing: true,\n administrative: true,\n security: true,\n usersManagement: false,\n },\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 3,\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n organization: { _id: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_NOTIFICATIONS_EXAMPLE._id,\n organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId,\n emailNotifications: ORGANIZATION_NOTIFICATIONS_EXAMPLE.emailNotifications,\n _version: ORGANIZATION_NOTIFICATIONS_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE = {\n emailNotifications: {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE.emailNotifications,\n defaultEmailAddress: 'service-operations@acme.example',\n usersManagement: true,\n },\n} as const;\n\nconst ORGANIZATION_NOTIFICATIONS_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n ...ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T10:35:00.000Z',\n _version: 4,\n} as const;\n\nexport const organizationNotificationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationNotificationsResourceUIBehavior),\n resourceSpecification(\n organizationNotificationsFactory,\n OrganizationNotificationsSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization email destinations and enablement switches for billing, security, administration, and user-management notices.',\n businessRole: 'Keeps operational notices routed to the teams responsible for each category, independently of individual member preferences.',\n lifecycleRole: 'Changes when category ownership moves to another mailbox or the organization enables or disables a notice category.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationNotificationsSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationNotificationsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ORGANIZATION_NOTIFICATIONS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationNotificationsMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n notes: ['No custom operations. READ/UPDATE are the member-facing surface; CREATE is INTERNAL_CALL (seeds the row via the ORGANIZATIONS → ORGANIZATION_NOTIFICATIONS `onParentCreate` composition lifecycle — INTERNAL_CALL because `createAsSystem` resolves the seed op through the service tier, which rejects REPOSITORY_ONLY) and DELETE is REPOSITORY_ONLY (tears it down via the paired `onParentDelete` cascade, which runs at the repository tier), neither an addressable route.'],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization notification-routing record.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose notification-routing table this record configures.',\n whyItMatters: 'Scopes the routing map to one tenant so billing/security/admin notices for an org resolve to that org’s configured addresses and never leak across tenants.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n emailNotifications: schemaShape.emailNotifications.objectSpec({\n meaning: 'Per-category email addresses and enablement switches for billing, administration, security, and user-management notices.',\n whyItMatters: 'A category-specific address takes precedence for that category; the default address provides the general destination when a dedicated one is not configured.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization notification-routing record was created.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any routing address or category switch last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization’s email routing addresses and category switches.',\n outcome: 'The caller can determine the configured destination and enabled state for billing, administrative, security, and user-management notices.',\n whenToUse: 'Use this operation when showing notification settings or checking where an organization-level notice will be routed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s notification routing map (per-category addresses and opt-ins) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the addressed organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Read organization notification routing',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the complete routing record with its organization relationship context.',\n outcome: 'The routing configuration and related organization identifier are returned together.',\n examples: [{\n title: 'Read notification routing with organization context',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact notification-routing representation.',\n outcome: 'The record identity, organization, complete category-routing block, and resource version are returned.',\n examples: [{\n title: 'Read compact organization notification routing',\n request: { organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId },\n response: ORGANIZATION_NOTIFICATIONS_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'System-seed the org notification-routing row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_NOTIFICATIONS `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',\n outcome: 'A defaults-filled routing table exists for the tenant so downstream email fan-out resolves per-category opt-ins without a missing-row fallback.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A notification-routing record was created for the organization with its `emailNotifications` block defaulted (category opt-ins on, addresses unset).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded routing payload fails `OrganizationNotificationsSchema` validation.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A notification-routing row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Replace the organization’s category addresses and notification switches.',\n outcome: 'Subsequent organization notices use the updated routing configuration.',\n whenToUse: 'Use this operation when responsibility for billing, security, administration, or user management moves to a different mailbox, or when a category is enabled or disabled.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The notification routing map was updated and the new effective configuration is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A routing address is malformed or a category toggle fails schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to change notification routing.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No notification-routing record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Update organization notification destinations',\n request: {\n organizationId: ORGANIZATION_NOTIFICATIONS_EXAMPLE.organizationId,\n ...ORGANIZATION_NOTIFICATIONS_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_NOTIFICATIONS_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: {\n notification: {\n purpose: 'Confirm in-product that the notification-routing configuration was saved.',\n tone: 'Brief and operational; the confirmation should avoid repeating email addresses unnecessarily.',\n textSlots: { title: { purpose: 'Short success headline for the saved-routing confirmation.' } },\n deliveries: [{\n audience: 'The signed-in organization administrator who performed the update.',\n targetRef: CoreUserNotificationTarget.USER_SELF,\n channelRef: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }],\n },\n },\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization notification-routing row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton routing row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization notification-routing record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'The routing record configures destinations; updating it emits only an in-product success confirmation and does not itself send a billing, security, administrative, or user-management email.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n // `views` documents FRONTEND operation semantics — only ops the merged frontend\n // configuration surfaces belong here. CREATE is an INTERNAL_CALL system-seed\n // (see config `variantType: INTERNAL_CALL` + the operations[CREATE] backend\n // semantics below), so it is NOT surfaced to the frontend and must not appear\n // in `views` — `validateFrontendSpecificationAgainstConfiguration` fails closed\n // on a views-documented op that no merged frontend config surfaces.\n views: {\n [Op.READ]: { purpose: 'Read-only org notification routing panel.', whenToUse: 'Org admin settings and compliance reviews.' },\n [Op.UPDATE]: { purpose: 'Editable org notification routing when roles permit.', whenToUse: 'Hand-offs between finance, IT, and security teams.' },\n },\n }),\n);\n"]}
|
package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js
CHANGED
|
@@ -282,7 +282,7 @@ export const organizationPreferencesResourceSpecification = resourceSpecificatio
|
|
|
282
282
|
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A preferences record was created for the organization with schema defaults (timezone, locale, supported languages, override policy).' },
|
|
283
283
|
],
|
|
284
284
|
errorScenarios: [
|
|
285
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded preferences payload fails `OrganizationPreferencesSchema` validation.'
|
|
285
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded preferences payload fails `OrganizationPreferencesSchema` validation.' },
|
|
286
286
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A preferences row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },
|
|
287
287
|
],
|
|
288
288
|
idempotent: false,
|
|
@@ -295,7 +295,7 @@ export const organizationPreferencesResourceSpecification = resourceSpecificatio
|
|
|
295
295
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The regional defaults and enforcement flags were updated and the new effective configuration is returned.' },
|
|
296
296
|
],
|
|
297
297
|
errorScenarios: [
|
|
298
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The timezone, locale, or supported-language list fails schema validation.'
|
|
298
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The timezone, locale, or supported-language list fails schema validation.' },
|
|
299
299
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required to change organization-wide preferences.' },
|
|
300
300
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },
|
|
301
301
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6CAA6C,IAAI,uCAAuC,EAAE,MAAM,8BAA8B,CAAC;AACxI,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAE/G,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,kEAAkE,IAAI,8BAA8B,GACrG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAM3E,MAAM,yCAAyC,GAAG,uCAIjD,CAAC;AAEF,MAAM,gCAAgC,GAAG;IACvC,GAAG,EAAE,qCAAqC;IAC1C,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,mBAAmB;IAC7B,MAAM,EAAE,iBAAiB,CAAC,KAAK;IAC/B,UAAU,EAAE,UAAU,CAAC,OAAO;IAC9B,UAAU,EAAE,UAAU,CAAC,gBAAgB;IACvC,mBAAmB,EAAE;QACnB,eAAe,EAAE,iBAAiB,CAAC,KAAK;QACxC,kBAAkB,EAAE,CAAC,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,CAAC,EAAE,EAAE,iBAAiB,CAAC,EAAE,CAAC;QACzF,iBAAiB,EAAE,IAAI;QACvB,oBAAoB,EAAE,KAAK;KAC5B;IACD,wBAAwB,EAAE,KAAK;IAC/B,SAAS,EAAE,0BAA0B;IACrC,SAAS,EAAE,0BAA0B;IACrC,QAAQ,EAAE,CAAC;CACH,CAAC;AAEX,MAAM,w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BACzC,CAAC;YACF,cAAc,EAAE;gBACd,YAAY,EAAE;oBACZ,OAAO,EAAE,kEAAkE;oBAC3E,IAAI,EAAE,qFAAqF;oBAC3F,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,gEAAgE,EAAE,EAAE;oBACnG,UAAU,EAAE,CAAC;4BACX,QAAQ,EAAE,8DAA8D;4BACxE,SAAS,EAAE,0BAA0B,CAAC,SAAS;4BAC/C,UAAU,EAAE,2BAA2B,CAAC,iBAAiB;yBAC1D,CAAC;iBACH;aACF;YACD,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,8IAA8I;YACvJ,OAAO,EAAE,yIAAyI;YAClJ,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,wGAAwG,EAAE;aAC3J;YACD,2JAA2J;YAC3J,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,mJAAmJ;KACpJ;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,+EAA+E;IAC/E,+EAA+E;IAC/E,6EAA6E;IAC7E,0DAA0D;IAC1D,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,SAAS,EAAE,6DAA6D,EAAE;QACvI,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,6DAA6D,EAAE;KACjJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationPreferencesMainResourceUIBehavior as organizationPreferencesUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { AvailableLanguage, DateFormat, LabelAudience, TimeFormat } 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 CoreUserNotificationChannel,\n CoreUserNotificationTarget,\n CoreResourceOperation as Op,\n OrganizationPreferencesSchema,\n ResourcePrimaryScope,\n organizationPreferencesResourceConfiguration_InitializationFactory as organizationPreferencesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationPreferencesFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationPreferencesResourceUIBehavior = organizationPreferencesUIBehaviorSource as ResourceUIBehaviorConfig<\n Record<string, never>,\n Core,\n Main\n>;\n\nconst ORGANIZATION_PREFERENCES_EXAMPLE = {\n _id: 'organization_preferences_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n timezone: 'Europe/Luxembourg',\n locale: AvailableLanguage.EN_GB,\n dateFormat: DateFormat.EU_LONG,\n timeFormat: TimeFormat.TWENTY_FOUR_HOUR,\n languagePreferences: {\n primaryLanguage: AvailableLanguage.EN_GB,\n supportedLanguages: [AvailableLanguage.EN_GB, AvailableLanguage.FR, AvailableLanguage.DE],\n allowUserOverride: true,\n enforceForAllMembers: false,\n },\n allowMemberEmailOverride: false,\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 4,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_PREFERENCES_EXAMPLE,\n organization: { _id: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_PREFERENCES_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_PREFERENCES_EXAMPLE._id,\n organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId,\n timezone: ORGANIZATION_PREFERENCES_EXAMPLE.timezone,\n locale: ORGANIZATION_PREFERENCES_EXAMPLE.locale,\n languagePreferences: ORGANIZATION_PREFERENCES_EXAMPLE.languagePreferences,\n _version: ORGANIZATION_PREFERENCES_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE = {\n timezone: 'Europe/Paris',\n locale: AvailableLanguage.FR,\n dateFormat: DateFormat.EU_SHORT,\n timeFormat: TimeFormat.TWENTY_FOUR_HOUR,\n languagePreferences: {\n primaryLanguage: AvailableLanguage.FR,\n supportedLanguages: [AvailableLanguage.FR, AvailableLanguage.EN_GB, AvailableLanguage.DE],\n allowUserOverride: true,\n enforceForAllMembers: false,\n },\n allowMemberEmailOverride: true,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PREFERENCES_EXAMPLE,\n ...ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T10:15:00.000Z',\n _version: 5,\n} as const;\n\nexport const organizationPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationPreferencesResourceUIBehavior),\n resourceSpecification(\n organizationPreferencesFactory,\n OrganizationPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization-wide regional and language defaults, formatting conventions, and member override policy.',\n businessRole: 'Gives members and integrations one consistent locale, timezone, language, and email-preference policy for the organization.',\n lifecycleRole: 'Changes when the organization enters a new region, supports another language, or revises its member override policy.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationPreferencesSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationPreferencesResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ORGANIZATION_PREFERENCES',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationPreferencesMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization-preferences record.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose regional defaults and language policy this record holds.',\n whyItMatters: 'Anchors the preferences to one tenant so locale/date/time defaults and member-override policy resolve per organization and never bleed across tenants.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n timezone: schemaShape.timezone.stringSpec({ meaning: 'The organization\\u2019s timezone: org-wide scheduling surfaces use it, and it is the DEFAULT every member sees rendered dates and times in until they set one of their own. Together with `locale`, `dateFormat` and `timeFormat` it forms the layer between a member\\u2019s own regional choices and the framework floor, resolved one field at a time \\u2014 so a member who overrode only the date format still reads times in the organization\\u2019s zone.' }),\n locale: schemaShape.locale.enumSpec({\n meaning: 'Default product locale for the organization — drives copy selection and formatting when a member has not overridden it.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'AvailableLanguage',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AvailableLanguage.EN]: { meaning: 'English (United States).' },\n [AvailableLanguage.EN_GB]: { meaning: 'English (United Kingdom).' },\n [AvailableLanguage.EN_CA]: { meaning: 'English (Canada).' },\n [AvailableLanguage.EN_AU]: { meaning: 'English (Australia).' },\n [AvailableLanguage.ES]: { meaning: 'Spanish (Spain).' },\n [AvailableLanguage.ES_MX]: { meaning: 'Spanish (Mexico).' },\n [AvailableLanguage.ES_AR]: { meaning: 'Spanish (Argentina).' },\n [AvailableLanguage.ES_CO]: { meaning: 'Spanish (Colombia).' },\n [AvailableLanguage.FR]: { meaning: 'French (France).' },\n [AvailableLanguage.FR_CA]: { meaning: 'French (Canada).' },\n [AvailableLanguage.DE]: { meaning: 'German.' },\n [AvailableLanguage.DE_AT]: { meaning: 'German (Austria).' },\n [AvailableLanguage.DE_CH]: { meaning: 'German (Switzerland).' },\n [AvailableLanguage.PT]: { meaning: 'Portuguese (Portugal).' },\n [AvailableLanguage.PT_BR]: { meaning: 'Portuguese (Brazil).' },\n [AvailableLanguage.IT]: { meaning: 'Italian.' },\n [AvailableLanguage.NL]: { meaning: 'Dutch.' },\n [AvailableLanguage.RU]: { meaning: 'Russian.' },\n [AvailableLanguage.ZH]: { meaning: 'Chinese (Simplified).' },\n [AvailableLanguage.ZH_CN]: { meaning: 'Chinese (Simplified, China).' },\n [AvailableLanguage.ZH_TW]: { meaning: 'Chinese (Traditional, Taiwan).' },\n [AvailableLanguage.ZH_HK]: { meaning: 'Chinese (Traditional, Hong Kong).' },\n [AvailableLanguage.JA]: { meaning: 'Japanese.' },\n [AvailableLanguage.KO]: { meaning: 'Korean.' },\n [AvailableLanguage.AR]: { meaning: 'Arabic.' },\n [AvailableLanguage.HI]: { meaning: 'Hindi.' },\n [AvailableLanguage.SV]: { meaning: 'Swedish.' },\n [AvailableLanguage.NO]: { meaning: 'Norwegian.' },\n [AvailableLanguage.DA]: { meaning: 'Danish.' },\n [AvailableLanguage.FI]: { meaning: 'Finnish.' },\n [AvailableLanguage.PL]: { meaning: 'Polish.' },\n [AvailableLanguage.CS]: { meaning: 'Czech.' },\n [AvailableLanguage.HU]: { meaning: 'Hungarian.' },\n [AvailableLanguage.RO]: { meaning: 'Romanian.' },\n [AvailableLanguage.BG]: { meaning: 'Bulgarian.' },\n [AvailableLanguage.HR]: { meaning: 'Croatian.' },\n [AvailableLanguage.SK]: { meaning: 'Slovak.' },\n [AvailableLanguage.SL]: { meaning: 'Slovenian.' },\n [AvailableLanguage.LT]: { meaning: 'Lithuanian.' },\n [AvailableLanguage.LV]: { meaning: 'Latvian.' },\n [AvailableLanguage.ET]: { meaning: 'Estonian.' },\n [AvailableLanguage.EL]: { meaning: 'Greek.' },\n [AvailableLanguage.TR]: { meaning: 'Turkish.' },\n [AvailableLanguage.TH]: { meaning: 'Thai.' },\n [AvailableLanguage.VI]: { meaning: 'Vietnamese.' },\n [AvailableLanguage.ID]: { meaning: 'Indonesian.' },\n [AvailableLanguage.MS]: { meaning: 'Malay.' },\n [AvailableLanguage.TA]: { meaning: 'Tamil.' },\n [AvailableLanguage.BN]: { meaning: 'Bengali.' },\n [AvailableLanguage.UR]: { meaning: 'Urdu.' },\n [AvailableLanguage.FA]: { meaning: 'Persian / Farsi.' },\n [AvailableLanguage.HE]: { meaning: 'Hebrew.' },\n [AvailableLanguage.SW]: { meaning: 'Swahili.' },\n [AvailableLanguage.AF]: { meaning: 'Afrikaans.' },\n [AvailableLanguage.AM]: { meaning: 'Amharic.' },\n [AvailableLanguage.IS]: { meaning: 'Icelandic.' },\n [AvailableLanguage.MT]: { meaning: 'Maltese.' },\n [AvailableLanguage.GA]: { meaning: 'Irish.' },\n [AvailableLanguage.CY]: { meaning: 'Welsh.' },\n [AvailableLanguage.EU]: { meaning: 'Basque.' },\n [AvailableLanguage.CA]: { meaning: 'Catalan.' },\n [AvailableLanguage.GL]: { meaning: 'Galician.' },\n },\n }),\n dateFormat: schemaShape.dateFormat.enumSpec({\n meaning: 'Default date-rendering pattern applied across org-wide surfaces.',\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'DateFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DateFormat.LOCALE_DEFAULT]: { meaning: 'Locale-driven medium date rendered by `Intl.DateTimeFormat` in the viewer\\'s resolved locale (e.g. `Aug 18, 2026` / `18 août 2026`); the engine fallback when no preference is expressed.' },\n [DateFormat.ISO_8601]: { meaning: 'ISO 8601 date, `YYYY-MM-DD`.' },\n [DateFormat.ISO_DATETIME]: { meaning: 'ISO 8601 date-time, `YYYY-MM-DD HH:mm:ss`.' },\n [DateFormat.US_SHORT]: { meaning: 'US short, `MM/DD/YYYY`.' },\n [DateFormat.US_LONG]: { meaning: 'US long, `MMMM DD, YYYY`.' },\n [DateFormat.US_MEDIUM]: { meaning: 'US medium, `MMM DD, YYYY`.' },\n [DateFormat.EU_SHORT]: { meaning: 'European short, `DD/MM/YYYY`.' },\n [DateFormat.EU_LONG]: { meaning: 'European long, `DD MMMM YYYY`.' },\n [DateFormat.EU_MEDIUM]: { meaning: 'European medium, `DD MMM YYYY`.' },\n [DateFormat.DOT_SEPARATED]: { meaning: 'Dot-separated, `DD.MM.YYYY`.' },\n [DateFormat.DASH_SEPARATED]: { meaning: 'Dash-separated, `DD-MM-YYYY`.' },\n [DateFormat.REVERSE_SLASH]: { meaning: 'Reverse slash, `YYYY/MM/DD`.' },\n [DateFormat.COMPACT_US]: { meaning: 'Compact US, `M/D/YY`.' },\n [DateFormat.COMPACT_EU]: { meaning: 'Compact European, `D/M/YY`.' },\n [DateFormat.COMPACT_ISO]: { meaning: 'Compact ISO, `YY-MM-DD`.' },\n },\n }),\n timeFormat: schemaShape.timeFormat.enumSpec({\n meaning: 'Default clock convention (12- vs 24-hour) applied across org-wide surfaces.',\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'TimeFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [TimeFormat.TWELVE_HOUR]: { meaning: '12-hour clock with AM/PM.' },\n [TimeFormat.TWENTY_FOUR_HOUR]: { meaning: '24-hour clock.' },\n },\n }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({\n meaning: 'Organization language policy: primary language, supported language set, and whether members may choose a different language.',\n whyItMatters: 'Clients use this policy to offer only supported languages and to decide whether a member-level selection is allowed.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n allowMemberEmailOverride: schemaShape.allowMemberEmailOverride.booleanSpec({\n meaning: 'Whether members may choose email-delivery preferences that differ from the organization default.',\n whyItMatters: 'When false, clients should present organization policy as enforced rather than offering an ineffective member override.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization-preferences record was created.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored organization preference last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization’s effective regional and language defaults.',\n outcome: 'The caller receives the timezone, locale, formatting rules, supported-language policy, and member email-override policy.',\n whenToUse: 'Use this operation before formatting organization-wide dates and times or presenting member language and email-preference controls.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s regional defaults (timezone, locale, supported languages, override policy) are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the addressed organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Read organization regional and language preferences',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the complete preferences record with its organization relationship context.',\n outcome: 'The preferences and the related organization identifier are returned together.',\n examples: [{\n title: 'Read organization preferences with context',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact regional and language-policy representation.',\n outcome: 'The record identity, organization, timezone, locale, language policy, and resource version are returned.',\n examples: [{\n title: 'Read compact organization preferences',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'System-seed the org preferences row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_PREFERENCES `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',\n outcome: 'A defaults-filled preferences row exists for the tenant so regional/locale reads resolve without a lazy fallback.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A preferences record was created for the organization with schema defaults (timezone, locale, supported languages, override policy).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded preferences payload fails `OrganizationPreferencesSchema` validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A preferences row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Update the organization’s regional, language, and member email-override defaults.',\n outcome: 'The updated preferences become the organization defaults for clients and new member sessions.',\n whenToUse: 'Use this operation when the organization changes operating region, supported languages, formatting conventions, or member override policy.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The regional defaults and enforcement flags were updated and the new effective configuration is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The timezone, locale, or supported-language list fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required to change organization-wide preferences.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Change organization locale and language policy',\n request: {\n organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId,\n ...ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PREFERENCES_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: {\n notification: {\n purpose: 'Confirm in-product that the organization preferences were saved.',\n tone: 'Brief and operational; the confirmation should not restate the full policy payload.',\n textSlots: { title: { purpose: 'Short success headline for the saved-preferences confirmation.' } },\n deliveries: [{\n audience: 'The signed-in organization manager who performed the update.',\n targetRef: CoreUserNotificationTarget.USER_SELF,\n channelRef: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }],\n },\n },\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization preferences row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton preferences row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization preferences record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Organization preferences supply defaults. A member preference may replace them only where the organization policy explicitly permits an override.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n // CREATE is an INTERNAL_CALL system-seed (not surfaced to the frontend), so it\n // must not appear in the `views` (frontend semantics) slice — see the same fix\n // and rationale in organization-notifications.resource.specification.ts. Its\n // backend semantics live in the `operations` block above.\n views: {\n [Op.READ]: { purpose: 'Org regional settings read surface.', whenToUse: 'Check effective defaults before support tickets and audits.' },\n [Op.UPDATE]: { purpose: 'Org admin controlled regional stack edits.', whenToUse: 'New market launches and contract-mandated language support.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"organization-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6CAA6C,IAAI,uCAAuC,EAAE,MAAM,8BAA8B,CAAC;AACxI,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAE/G,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,IAAI,EAAE,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,kEAAkE,IAAI,8BAA8B,GACrG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAM3E,MAAM,yCAAyC,GAAG,uCAIjD,CAAC;AAEF,MAAM,gCAAgC,GAAG;IACvC,GAAG,EAAE,qCAAqC;IAC1C,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,mBAAmB;IAC7B,MAAM,EAAE,iBAAiB,CAAC,KAAK;IAC/B,UAAU,EAAE,UAAU,CAAC,OAAO;IAC9B,UAAU,EAAE,UAAU,CAAC,gBAAgB;IACvC,mBAAmB,EAAE;QACnB,eAAe,EAAE,iBAAiB,CAAC,KAAK;QACxC,kBAAkB,EAAE,CAAC,iBAAiB,C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,6DAA6D,EAAE;KACjJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationPreferencesMainResourceUIBehavior as organizationPreferencesUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { AvailableLanguage, DateFormat, LabelAudience, TimeFormat } 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 CoreUserNotificationChannel,\n CoreUserNotificationTarget,\n CoreResourceOperation as Op,\n OrganizationPreferencesSchema,\n ResourcePrimaryScope,\n organizationPreferencesResourceConfiguration_InitializationFactory as organizationPreferencesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationPreferencesFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationPreferencesResourceUIBehavior = organizationPreferencesUIBehaviorSource as ResourceUIBehaviorConfig<\n Record<string, never>,\n Core,\n Main\n>;\n\nconst ORGANIZATION_PREFERENCES_EXAMPLE = {\n _id: 'organization_preferences_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n timezone: 'Europe/Luxembourg',\n locale: AvailableLanguage.EN_GB,\n dateFormat: DateFormat.EU_LONG,\n timeFormat: TimeFormat.TWENTY_FOUR_HOUR,\n languagePreferences: {\n primaryLanguage: AvailableLanguage.EN_GB,\n supportedLanguages: [AvailableLanguage.EN_GB, AvailableLanguage.FR, AvailableLanguage.DE],\n allowUserOverride: true,\n enforceForAllMembers: false,\n },\n allowMemberEmailOverride: false,\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 4,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_PREFERENCES_EXAMPLE,\n organization: { _id: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_PREFERENCES_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_PREFERENCES_EXAMPLE._id,\n organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId,\n timezone: ORGANIZATION_PREFERENCES_EXAMPLE.timezone,\n locale: ORGANIZATION_PREFERENCES_EXAMPLE.locale,\n languagePreferences: ORGANIZATION_PREFERENCES_EXAMPLE.languagePreferences,\n _version: ORGANIZATION_PREFERENCES_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE = {\n timezone: 'Europe/Paris',\n locale: AvailableLanguage.FR,\n dateFormat: DateFormat.EU_SHORT,\n timeFormat: TimeFormat.TWENTY_FOUR_HOUR,\n languagePreferences: {\n primaryLanguage: AvailableLanguage.FR,\n supportedLanguages: [AvailableLanguage.FR, AvailableLanguage.EN_GB, AvailableLanguage.DE],\n allowUserOverride: true,\n enforceForAllMembers: false,\n },\n allowMemberEmailOverride: true,\n} as const;\n\nconst ORGANIZATION_PREFERENCES_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PREFERENCES_EXAMPLE,\n ...ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T10:15:00.000Z',\n _version: 5,\n} as const;\n\nexport const organizationPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationPreferencesResourceUIBehavior),\n resourceSpecification(\n organizationPreferencesFactory,\n OrganizationPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Organization-wide regional and language defaults, formatting conventions, and member override policy.',\n businessRole: 'Gives members and integrations one consistent locale, timezone, language, and email-preference policy for the organization.',\n lifecycleRole: 'Changes when the organization enters a new region, supports another language, or revises its member override policy.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationPreferencesSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationPreferencesResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ORGANIZATION_PREFERENCES',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationPreferencesMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization-preferences record.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose regional defaults and language policy this record holds.',\n whyItMatters: 'Anchors the preferences to one tenant so locale/date/time defaults and member-override policy resolve per organization and never bleed across tenants.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n timezone: schemaShape.timezone.stringSpec({ meaning: 'The organization\\u2019s timezone: org-wide scheduling surfaces use it, and it is the DEFAULT every member sees rendered dates and times in until they set one of their own. Together with `locale`, `dateFormat` and `timeFormat` it forms the layer between a member\\u2019s own regional choices and the framework floor, resolved one field at a time \\u2014 so a member who overrode only the date format still reads times in the organization\\u2019s zone.' }),\n locale: schemaShape.locale.enumSpec({\n meaning: 'Default product locale for the organization — drives copy selection and formatting when a member has not overridden it.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'AvailableLanguage',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AvailableLanguage.EN]: { meaning: 'English (United States).' },\n [AvailableLanguage.EN_GB]: { meaning: 'English (United Kingdom).' },\n [AvailableLanguage.EN_CA]: { meaning: 'English (Canada).' },\n [AvailableLanguage.EN_AU]: { meaning: 'English (Australia).' },\n [AvailableLanguage.ES]: { meaning: 'Spanish (Spain).' },\n [AvailableLanguage.ES_MX]: { meaning: 'Spanish (Mexico).' },\n [AvailableLanguage.ES_AR]: { meaning: 'Spanish (Argentina).' },\n [AvailableLanguage.ES_CO]: { meaning: 'Spanish (Colombia).' },\n [AvailableLanguage.FR]: { meaning: 'French (France).' },\n [AvailableLanguage.FR_CA]: { meaning: 'French (Canada).' },\n [AvailableLanguage.DE]: { meaning: 'German.' },\n [AvailableLanguage.DE_AT]: { meaning: 'German (Austria).' },\n [AvailableLanguage.DE_CH]: { meaning: 'German (Switzerland).' },\n [AvailableLanguage.PT]: { meaning: 'Portuguese (Portugal).' },\n [AvailableLanguage.PT_BR]: { meaning: 'Portuguese (Brazil).' },\n [AvailableLanguage.IT]: { meaning: 'Italian.' },\n [AvailableLanguage.NL]: { meaning: 'Dutch.' },\n [AvailableLanguage.RU]: { meaning: 'Russian.' },\n [AvailableLanguage.ZH]: { meaning: 'Chinese (Simplified).' },\n [AvailableLanguage.ZH_CN]: { meaning: 'Chinese (Simplified, China).' },\n [AvailableLanguage.ZH_TW]: { meaning: 'Chinese (Traditional, Taiwan).' },\n [AvailableLanguage.ZH_HK]: { meaning: 'Chinese (Traditional, Hong Kong).' },\n [AvailableLanguage.JA]: { meaning: 'Japanese.' },\n [AvailableLanguage.KO]: { meaning: 'Korean.' },\n [AvailableLanguage.AR]: { meaning: 'Arabic.' },\n [AvailableLanguage.HI]: { meaning: 'Hindi.' },\n [AvailableLanguage.SV]: { meaning: 'Swedish.' },\n [AvailableLanguage.NO]: { meaning: 'Norwegian.' },\n [AvailableLanguage.DA]: { meaning: 'Danish.' },\n [AvailableLanguage.FI]: { meaning: 'Finnish.' },\n [AvailableLanguage.PL]: { meaning: 'Polish.' },\n [AvailableLanguage.CS]: { meaning: 'Czech.' },\n [AvailableLanguage.HU]: { meaning: 'Hungarian.' },\n [AvailableLanguage.RO]: { meaning: 'Romanian.' },\n [AvailableLanguage.BG]: { meaning: 'Bulgarian.' },\n [AvailableLanguage.HR]: { meaning: 'Croatian.' },\n [AvailableLanguage.SK]: { meaning: 'Slovak.' },\n [AvailableLanguage.SL]: { meaning: 'Slovenian.' },\n [AvailableLanguage.LT]: { meaning: 'Lithuanian.' },\n [AvailableLanguage.LV]: { meaning: 'Latvian.' },\n [AvailableLanguage.ET]: { meaning: 'Estonian.' },\n [AvailableLanguage.EL]: { meaning: 'Greek.' },\n [AvailableLanguage.TR]: { meaning: 'Turkish.' },\n [AvailableLanguage.TH]: { meaning: 'Thai.' },\n [AvailableLanguage.VI]: { meaning: 'Vietnamese.' },\n [AvailableLanguage.ID]: { meaning: 'Indonesian.' },\n [AvailableLanguage.MS]: { meaning: 'Malay.' },\n [AvailableLanguage.TA]: { meaning: 'Tamil.' },\n [AvailableLanguage.BN]: { meaning: 'Bengali.' },\n [AvailableLanguage.UR]: { meaning: 'Urdu.' },\n [AvailableLanguage.FA]: { meaning: 'Persian / Farsi.' },\n [AvailableLanguage.HE]: { meaning: 'Hebrew.' },\n [AvailableLanguage.SW]: { meaning: 'Swahili.' },\n [AvailableLanguage.AF]: { meaning: 'Afrikaans.' },\n [AvailableLanguage.AM]: { meaning: 'Amharic.' },\n [AvailableLanguage.IS]: { meaning: 'Icelandic.' },\n [AvailableLanguage.MT]: { meaning: 'Maltese.' },\n [AvailableLanguage.GA]: { meaning: 'Irish.' },\n [AvailableLanguage.CY]: { meaning: 'Welsh.' },\n [AvailableLanguage.EU]: { meaning: 'Basque.' },\n [AvailableLanguage.CA]: { meaning: 'Catalan.' },\n [AvailableLanguage.GL]: { meaning: 'Galician.' },\n },\n }),\n dateFormat: schemaShape.dateFormat.enumSpec({\n meaning: 'Default date-rendering pattern applied across org-wide surfaces.',\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'DateFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [DateFormat.LOCALE_DEFAULT]: { meaning: 'Locale-driven medium date rendered by `Intl.DateTimeFormat` in the viewer\\'s resolved locale (e.g. `Aug 18, 2026` / `18 août 2026`); the engine fallback when no preference is expressed.' },\n [DateFormat.ISO_8601]: { meaning: 'ISO 8601 date, `YYYY-MM-DD`.' },\n [DateFormat.ISO_DATETIME]: { meaning: 'ISO 8601 date-time, `YYYY-MM-DD HH:mm:ss`.' },\n [DateFormat.US_SHORT]: { meaning: 'US short, `MM/DD/YYYY`.' },\n [DateFormat.US_LONG]: { meaning: 'US long, `MMMM DD, YYYY`.' },\n [DateFormat.US_MEDIUM]: { meaning: 'US medium, `MMM DD, YYYY`.' },\n [DateFormat.EU_SHORT]: { meaning: 'European short, `DD/MM/YYYY`.' },\n [DateFormat.EU_LONG]: { meaning: 'European long, `DD MMMM YYYY`.' },\n [DateFormat.EU_MEDIUM]: { meaning: 'European medium, `DD MMM YYYY`.' },\n [DateFormat.DOT_SEPARATED]: { meaning: 'Dot-separated, `DD.MM.YYYY`.' },\n [DateFormat.DASH_SEPARATED]: { meaning: 'Dash-separated, `DD-MM-YYYY`.' },\n [DateFormat.REVERSE_SLASH]: { meaning: 'Reverse slash, `YYYY/MM/DD`.' },\n [DateFormat.COMPACT_US]: { meaning: 'Compact US, `M/D/YY`.' },\n [DateFormat.COMPACT_EU]: { meaning: 'Compact European, `D/M/YY`.' },\n [DateFormat.COMPACT_ISO]: { meaning: 'Compact ISO, `YY-MM-DD`.' },\n },\n }),\n timeFormat: schemaShape.timeFormat.enumSpec({\n meaning: 'Default clock convention (12- vs 24-hour) applied across org-wide surfaces.',\n enumDeclaration: {\n packageName: '@wildo-ai/presets-components-models',\n exportName: 'TimeFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [TimeFormat.TWELVE_HOUR]: { meaning: '12-hour clock with AM/PM.' },\n [TimeFormat.TWENTY_FOUR_HOUR]: { meaning: '24-hour clock.' },\n },\n }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({\n meaning: 'Organization language policy: primary language, supported language set, and whether members may choose a different language.',\n whyItMatters: 'Clients use this policy to offer only supported languages and to decide whether a member-level selection is allowed.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n allowMemberEmailOverride: schemaShape.allowMemberEmailOverride.booleanSpec({\n meaning: 'Whether members may choose email-delivery preferences that differ from the organization default.',\n whyItMatters: 'When false, clients should present organization policy as enforced rather than offering an ineffective member override.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization-preferences record was created.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored organization preference last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization’s effective regional and language defaults.',\n outcome: 'The caller receives the timezone, locale, formatting rules, supported-language policy, and member email-override policy.',\n whenToUse: 'Use this operation before formatting organization-wide dates and times or presenting member language and email-preference controls.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization’s regional defaults (timezone, locale, supported languages, override policy) are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the addressed organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Read organization regional and language preferences',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the complete preferences record with its organization relationship context.',\n outcome: 'The preferences and the related organization identifier are returned together.',\n examples: [{\n title: 'Read organization preferences with context',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact regional and language-policy representation.',\n outcome: 'The record identity, organization, timezone, locale, language policy, and resource version are returned.',\n examples: [{\n title: 'Read compact organization preferences',\n request: { organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId },\n response: ORGANIZATION_PREFERENCES_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'System-seed the org preferences row (INTERNAL_CALL, isDefault — the service-tier internal transport `createAsSystem` resolves; REPOSITORY_ONLY is invisible to `getServiceOperationPathDefault`) — fired by the ORGANIZATIONS → ORGANIZATION_PREFERENCES `onParentCreate` composition lifecycle on organization creation, not a member-facing route.',\n outcome: 'A defaults-filled preferences row exists for the tenant so regional/locale reads resolve without a lazy fallback.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A preferences record was created for the organization with schema defaults (timezone, locale, supported languages, override policy).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The seeded preferences payload fails `OrganizationPreferencesSchema` validation.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A preferences row already exists for the organization; the per-org singleton (unique `organizationId`) rejects a second row, keeping the eager seed idempotent.' },\n ],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Update the organization’s regional, language, and member email-override defaults.',\n outcome: 'The updated preferences become the organization defaults for clients and new member sessions.',\n whenToUse: 'Use this operation when the organization changes operating region, supported languages, formatting conventions, or member override policy.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The regional defaults and enforcement flags were updated and the new effective configuration is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The timezone, locale, or supported-language list fails schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required to change organization-wide preferences.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences record exists for the addressed organization.' },\n ],\n examples: [{\n title: 'Change organization locale and language policy',\n request: {\n organizationId: ORGANIZATION_PREFERENCES_EXAMPLE.organizationId,\n ...ORGANIZATION_PREFERENCES_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PREFERENCES_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: {\n notification: {\n purpose: 'Confirm in-product that the organization preferences were saved.',\n tone: 'Brief and operational; the confirmation should not restate the full policy payload.',\n textSlots: { title: { purpose: 'Short success headline for the saved-preferences confirmation.' } },\n deliveries: [{\n audience: 'The signed-in organization manager who performed the update.',\n targetRef: CoreUserNotificationTarget.USER_SELF,\n channelRef: CoreUserNotificationChannel.FRONT_END_SUCCESS,\n }],\n },\n },\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization preferences row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton preferences row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization preferences record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Organization preferences supply defaults. A member preference may replace them only where the organization policy explicitly permits an override.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n // CREATE is an INTERNAL_CALL system-seed (not surfaced to the frontend), so it\n // must not appear in the `views` (frontend semantics) slice — see the same fix\n // and rationale in organization-notifications.resource.specification.ts. Its\n // backend semantics live in the `operations` block above.\n views: {\n [Op.READ]: { purpose: 'Org regional settings read surface.', whenToUse: 'Check effective defaults before support tickets and audits.' },\n [Op.UPDATE]: { purpose: 'Org admin controlled regional stack edits.', whenToUse: 'New market launches and contract-mandated language support.' },\n },\n }),\n);\n"]}
|
package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export declare const organizationProfilesResourceSpecification: import("../../..
|
|
|
24
24
|
favicon: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
25
25
|
primaryColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
26
|
secondaryColor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
27
|
-
customDomain: import("zod").ZodOptional<import("zod").ZodString>;
|
|
28
27
|
}, import("zod/v4/core").$strip>>;
|
|
29
28
|
socialLinks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
30
29
|
linkedin: import("zod").ZodOptional<import("zod").ZodURL>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-profiles.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-profiles.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EAEpB,8BAA8B,EAC9B,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"organization-profiles.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-profiles.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EAEpB,8BAA8B,EAC9B,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAwG/B,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAoOrD,CAAC"}
|
package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js
CHANGED
|
@@ -28,7 +28,6 @@ const ORGANIZATION_PROFILE_EXAMPLE = {
|
|
|
28
28
|
favicon: 'https://cdn.acme.example/brand/favicon.png',
|
|
29
29
|
primaryColor: '#635BFF',
|
|
30
30
|
secondaryColor: '#0A2540',
|
|
31
|
-
customDomain: 'workspace.acme.example',
|
|
32
31
|
},
|
|
33
32
|
socialLinks: {
|
|
34
33
|
linkedin: 'https://www.linkedin.com/company/acme-europe',
|
|
@@ -79,7 +78,6 @@ const ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE = {
|
|
|
79
78
|
favicon: 'https://cdn.acme.example/brand/favicon-2026.png',
|
|
80
79
|
primaryColor: '#4F46E5',
|
|
81
80
|
secondaryColor: '#111827',
|
|
82
|
-
customDomain: 'portal.acme.example',
|
|
83
81
|
},
|
|
84
82
|
};
|
|
85
83
|
const ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE = {
|
|
@@ -194,7 +192,7 @@ export const organizationProfilesResourceSpecification = resourceSpecificationFr
|
|
|
194
192
|
founded: schemaShape.founded.dateSpec({ meaning: 'Date associated with the organization’s founding for profile and directory presentation.' }),
|
|
195
193
|
address: schemaShape.address.objectSpec({ meaning: 'Primary organization address, including ISO two-letter country code and postal information.' }),
|
|
196
194
|
timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA timezone used when organization-facing surfaces need a local time context.' }),
|
|
197
|
-
branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon
|
|
195
|
+
branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon and colors. The logo, primary color and favicon are shown on the organization\u2019s sign-in card (the favicon in the browser tab while the card is on screen). A verified organization domain can supply login branding independently of enabled SSO connections. The identification name comes from the organization record. Fallback depends on the consuming surface: authentication identification can use the application logo, while an omitted tenant primary color remains absent; it does not use the email-brand palette.' }),
|
|
198
196
|
socialLinks: schemaShape.socialLinks.objectSpec({ meaning: 'Optional public profile URLs for the organization’s supported social and developer channels.' }),
|
|
199
197
|
createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When this profile record was created by the organization lifecycle.' }),
|
|
200
198
|
updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored profile field was last changed.' }),
|
|
@@ -248,7 +246,7 @@ export const organizationProfilesResourceSpecification = resourceSpecificationFr
|
|
|
248
246
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the updated profile is returned.' },
|
|
249
247
|
],
|
|
250
248
|
errorScenarios: [
|
|
251
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation (e.g. a malformed `website` URL).'
|
|
249
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation (e.g. a malformed `website` URL).' },
|
|
252
250
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required by this route.' },
|
|
253
251
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to update.' },
|
|
254
252
|
],
|
|
@@ -274,14 +272,14 @@ export const organizationProfilesResourceSpecification = resourceSpecificationFr
|
|
|
274
272
|
},
|
|
275
273
|
[OrganizationProfile_Operations.UPDATE_BRANDING]: {
|
|
276
274
|
operationId: OrganizationProfile_Operations.UPDATE_BRANDING,
|
|
277
|
-
purpose: 'Replace the organization-specific logo, favicon
|
|
275
|
+
purpose: 'Replace the organization-specific logo, favicon and colors as one brand kit.',
|
|
278
276
|
outcome: 'The brand kit is validated, stored, and returned inside the complete updated profile with its new resource version.',
|
|
279
277
|
whenToUse: 'Use this operation for a branding-only change that should not carry unrelated company-profile fields.',
|
|
280
278
|
responseStatuses: [
|
|
281
279
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The brand kit (colors, logo, favicon) was applied and the updated profile is returned.' },
|
|
282
280
|
],
|
|
283
281
|
errorScenarios: [
|
|
284
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The branding bundle fails validation (e.g. an invalid color token or an unsupported logo/favicon asset reference).'
|
|
282
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The branding bundle fails validation (e.g. an invalid color token or an unsupported logo/favicon asset reference).' },
|
|
285
283
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-admin authority required by this route.' },
|
|
286
284
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to apply branding to.' },
|
|
287
285
|
],
|
package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0CAA0C,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AAClI,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,oBAAoB,EACpB,yBAAyB,EACzB,8BAA8B,EAC9B,gBAAgB,EAChB,oBAAoB,EACpB,8DAA8D,IAAI,2BAA2B,GAC9F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,sCAAsC,GAAG,oCAAoF,CAAC;AAEp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AM,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,2DAA2D,EAAE;QAC9I,CAAC,8BAA8B,CAAC,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE,0DAA0D,EAAE,SAAS,EAAE,sCAAsC,EAAE;KAC7K;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationProfilesMainResourceUIBehavior as organizationProfilesUIBehaviorSource } 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 OrganizationIndustry,\n OrganizationProfileSchema,\n OrganizationProfile_Operations,\n OrganizationSize,\n ResourcePrimaryScope,\n organizationProfileResourceConfiguration_InitializationFactory as organizationProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationProfilesResourceUIBehavior = organizationProfilesUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst ORGANIZATION_PROFILE_EXAMPLE = {\n _id: 'organization_profile_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n displayName: 'Acme Europe',\n domain: 'acme.example',\n phone: '+352 26 00 00 00',\n website: 'https://www.acme.example',\n description: 'European operations and customer delivery hub for Acme.',\n industry: OrganizationIndustry.TECHNOLOGY,\n size: OrganizationSize.MEDIUM,\n founded: '2018-06-14T00:00:00.000Z',\n address: {\n line1: '12 Boulevard Royal',\n city: 'Luxembourg',\n country: 'LU',\n postalCode: 'L-2449',\n },\n timezone: 'Europe/Luxembourg',\n branding: {\n logo: 'https://cdn.acme.example/brand/logo.svg',\n favicon: 'https://cdn.acme.example/brand/favicon.png',\n primaryColor: '#635BFF',\n secondaryColor: '#0A2540',\n customDomain: 'workspace.acme.example',\n },\n socialLinks: {\n linkedin: 'https://www.linkedin.com/company/acme-europe',\n github: 'https://github.com/acme-europe',\n },\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 7,\n} as const;\n\nconst ORGANIZATION_PROFILE_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n organization: { _id: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_PROFILE_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_PROFILE_EXAMPLE._id,\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n displayName: ORGANIZATION_PROFILE_EXAMPLE.displayName,\n _version: ORGANIZATION_PROFILE_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE = {\n displayName: 'Acme Europe & Middle East',\n website: 'https://emea.acme.example',\n description: 'European and Middle East operations and customer delivery hub for Acme.',\n industry: OrganizationIndustry.TECHNOLOGY,\n size: OrganizationSize.LARGE,\n timezone: 'Europe/Luxembourg',\n address: {\n line1: '12 Boulevard Royal',\n line2: 'Floor 4',\n city: 'Luxembourg',\n country: 'LU',\n postalCode: 'L-2449',\n },\n socialLinks: {\n linkedin: 'https://www.linkedin.com/company/acme-emea',\n github: 'https://github.com/acme-emea',\n },\n} as const;\n\nconst ORGANIZATION_PROFILE_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n ...ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T08:45:00.000Z',\n _version: 8,\n} as const;\n\nconst ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE = {\n branding: {\n logo: 'https://cdn.acme.example/brand/logo-2026.svg',\n favicon: 'https://cdn.acme.example/brand/favicon-2026.png',\n primaryColor: '#4F46E5',\n secondaryColor: '#111827',\n customDomain: 'portal.acme.example',\n },\n} as const;\n\nconst ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n branding: ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE.branding,\n updatedAt: '2026-08-21T09:10:00.000Z',\n _version: 8,\n} as const;\n\nexport const organizationProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationProfilesResourceUIBehavior),\n resourceSpecification(\n organizationProfilesFactory,\n OrganizationProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'Business identity and presentation metadata for one organization: company facts, location, branding, and social links.',\n businessRole: 'Gives authorized members and integrations one consistent organization profile for product surfaces, directories, and connected systems.',\n lifecycleRole: 'The profile is created with its organization, evolves through company and brand changes, and is removed with the owning organization.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationProfileResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ORGANIZATION_PROFILES',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationProfile_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationProfilesMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization-profile record.',\n whyItMatters: 'Identifies this profile document independently from the organization id used to address the route.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization this public/directory profile describes.',\n whyItMatters: 'Ties branding and company facts to exactly one tenant so directory cards and connector metadata resolve per organization and cannot surface another tenant’s profile.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Customer-facing name when different from the canonical org `name`.' }),\n domain: schemaShape.domain.stringSpec({ meaning: 'Organization-owned internet domain used as profile and directory metadata; it is not an authentication-domain verification claim.' }),\n phone: schemaShape.phone.stringSpec({ meaning: 'Organization contact telephone number as entered by an authorized profile editor.' }),\n website: schemaShape.website.stringSpec({ meaning: 'Primary marketing or product URL for the tenant.' }),\n description: schemaShape.description.stringSpec({ meaning: 'Short organization description for about panels, directories, and connected systems.' }),\n industry: schemaShape.industry.enumSpec({\n meaning: 'Business sector classification for the tenant, used in directory facets and segmentation.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationIndustry',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationIndustry.TECHNOLOGY]: { meaning: 'Technology / software.' },\n [OrganizationIndustry.FINANCE]: { meaning: 'Finance, banking, or insurance.' },\n [OrganizationIndustry.HEALTHCARE]: { meaning: 'Healthcare and life sciences.' },\n [OrganizationIndustry.EDUCATION]: { meaning: 'Education and academia.' },\n [OrganizationIndustry.RETAIL]: { meaning: 'Retail and commerce.' },\n [OrganizationIndustry.MANUFACTURING]: { meaning: 'Manufacturing and industry.' },\n [OrganizationIndustry.CONSULTING]: { meaning: 'Professional services and consulting.' },\n [OrganizationIndustry.MEDIA]: { meaning: 'Media, entertainment, and publishing.' },\n [OrganizationIndustry.GOVERNMENT]: { meaning: 'Government and public sector.' },\n [OrganizationIndustry.NONPROFIT]: { meaning: 'Nonprofit and NGO.' },\n [OrganizationIndustry.OTHER]: { meaning: 'Any sector not covered by the named categories.' },\n },\n }),\n size: schemaShape.size.enumSpec({\n meaning: 'Employee-count band for the tenant, used for directory facets and plan/segment heuristics.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationSize',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationSize.STARTUP]: { meaning: 'Startup, roughly 1–10 employees.' },\n [OrganizationSize.SMALL]: { meaning: 'Small, roughly 11–50 employees.' },\n [OrganizationSize.MEDIUM]: { meaning: 'Medium, roughly 51–200 employees.' },\n [OrganizationSize.LARGE]: { meaning: 'Large, roughly 201–1000 employees.' },\n [OrganizationSize.ENTERPRISE]: { meaning: 'Enterprise, 1000+ employees.' },\n },\n }),\n founded: schemaShape.founded.dateSpec({ meaning: 'Date associated with the organization’s founding for profile and directory presentation.' }),\n address: schemaShape.address.objectSpec({ meaning: 'Primary organization address, including ISO two-letter country code and postal information.' }),\n timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA timezone used when organization-facing surfaces need a local time context.' }),\n branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon, colors, and custom-domain overrides. A verified organization domain can supply login branding independently of enabled SSO connections. The identification name comes from the organization record. Fallback depends on the consuming surface: authentication identification can use the application logo, while an omitted tenant primary color remains absent; it does not use the email-brand palette.' }),\n socialLinks: schemaShape.socialLinks.objectSpec({ meaning: 'Optional public profile URLs for the organization’s supported social and developer channels.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When this profile record was created by the organization lifecycle.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored profile field was last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the addressed organization’s complete profile.',\n outcome: 'The caller receives company facts, location, branding, social links, and the current resource version.',\n whenToUse: 'Use this representation when synchronizing a complete organization profile or rendering a full about/settings surface.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile was found and its directory/branding metadata is returned for the addressed organization.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record has been provisioned for the addressed organization in the caller’s scope.' },\n ],\n examples: [{\n title: 'Read the organization profile',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the organization profile with its configured relationship context.',\n outcome: 'The complete profile is returned with the related organization identifier when that relationship is available.',\n examples: [{\n title: 'Read the profile with organization context',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact organization-profile identity.',\n outcome: 'Only the profile id, organization id, display name, and current resource version are returned.',\n examples: [{\n title: 'Read the compact organization profile',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.UPDATE]: {\n purpose: 'Update one or more editable organization-profile fields.',\n outcome: 'The stored profile is changed and the complete updated representation, including its new resource version, is returned.',\n whenToUse: 'Use this operation for company, classification, location, social-link, or combined profile changes. Use the branding operation when the request changes only the brand kit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the updated profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation (e.g. a malformed `website` URL).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required by this route.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to update.' },\n ],\n examples: [{\n title: 'Update organization company and directory details',\n request: {\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n ...ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PROFILE_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization profile row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton profile row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization profile record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n [OrganizationProfile_Operations.UPDATE_BRANDING]: {\n operationId: OrganizationProfile_Operations.UPDATE_BRANDING,\n purpose: 'Replace the organization-specific logo, favicon, colors, and custom-domain overrides as one brand kit.',\n outcome: 'The brand kit is validated, stored, and returned inside the complete updated profile with its new resource version.',\n whenToUse: 'Use this operation for a branding-only change that should not carry unrelated company-profile fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The brand kit (colors, logo, favicon) was applied and the updated profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The branding bundle fails validation (e.g. an invalid color token or an unsupported logo/favicon asset reference).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-admin authority required by this route.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to apply branding to.' },\n ],\n examples: [{\n title: 'Replace the organization brand kit',\n request: {\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n ...ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Each organization owns one profile. The framework creates it with the organization and removes it when the organization is deleted.',\n 'Brand fallbacks depend on the consumer. Identification may supply the application logo; an omitted tenant color remains absent. The standard login card preserves application theme tokens and uses a supplied tenant primary color only as a decorative identity accent.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n views: {\n [Op.READ]: { purpose: 'Settings read for company/about panels.', whenToUse: 'Org profile in admin and member-visible about pages when exposed.' },\n [Op.UPDATE]: { purpose: 'General field edits in multi-section form.', whenToUse: 'IT and marketing co-own updates through governance roles.' },\n [OrganizationProfile_Operations.UPDATE_BRANDING]: { purpose: 'Branding wizard path separate from long-form text edits.', whenToUse: 'White-label and theme management UX.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"organization-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0CAA0C,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AAClI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,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AM;iBACzC,CAAC;YACF,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,qIAAqI;QACrI,2QAA2Q;KAC5Q;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,SAAS,EAAE,mEAAmE,EAAE;QACjJ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,4CAA4C,EAAE,SAAS,EAAE,2DAA2D,EAAE;QAC9I,CAAC,8BAA8B,CAAC,eAAe,CAAC,EAAE,EAAE,OAAO,EAAE,0DAA0D,EAAE,SAAS,EAAE,sCAAsC,EAAE;KAC7K;CACF,CAAC,CACH,CAAC","sourcesContent":["import { organizationProfilesMainResourceUIBehavior as organizationProfilesUIBehaviorSource } 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 OrganizationIndustry,\n OrganizationProfileSchema,\n OrganizationProfile_Operations,\n OrganizationSize,\n ResourcePrimaryScope,\n organizationProfileResourceConfiguration_InitializationFactory as organizationProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof organizationProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst organizationProfilesResourceUIBehavior = organizationProfilesUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst ORGANIZATION_PROFILE_EXAMPLE = {\n _id: 'organization_profile_01JEXAMPLE',\n organizationId: 'org_01JEXAMPLE',\n displayName: 'Acme Europe',\n domain: 'acme.example',\n phone: '+352 26 00 00 00',\n website: 'https://www.acme.example',\n description: 'European operations and customer delivery hub for Acme.',\n industry: OrganizationIndustry.TECHNOLOGY,\n size: OrganizationSize.MEDIUM,\n founded: '2018-06-14T00:00:00.000Z',\n address: {\n line1: '12 Boulevard Royal',\n city: 'Luxembourg',\n country: 'LU',\n postalCode: 'L-2449',\n },\n timezone: 'Europe/Luxembourg',\n branding: {\n logo: 'https://cdn.acme.example/brand/logo.svg',\n favicon: 'https://cdn.acme.example/brand/favicon.png',\n primaryColor: '#635BFF',\n secondaryColor: '#0A2540',\n },\n socialLinks: {\n linkedin: 'https://www.linkedin.com/company/acme-europe',\n github: 'https://github.com/acme-europe',\n },\n createdAt: '2026-01-12T09:00:00.000Z',\n updatedAt: '2026-08-20T16:30:00.000Z',\n _version: 7,\n} as const;\n\nconst ORGANIZATION_PROFILE_CONTEXT_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n organization: { _id: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n} as const;\n\nconst ORGANIZATION_PROFILE_SUMMARY_EXAMPLE = {\n _id: ORGANIZATION_PROFILE_EXAMPLE._id,\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n displayName: ORGANIZATION_PROFILE_EXAMPLE.displayName,\n _version: ORGANIZATION_PROFILE_EXAMPLE._version,\n} as const;\n\nconst ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE = {\n displayName: 'Acme Europe & Middle East',\n website: 'https://emea.acme.example',\n description: 'European and Middle East operations and customer delivery hub for Acme.',\n industry: OrganizationIndustry.TECHNOLOGY,\n size: OrganizationSize.LARGE,\n timezone: 'Europe/Luxembourg',\n address: {\n line1: '12 Boulevard Royal',\n line2: 'Floor 4',\n city: 'Luxembourg',\n country: 'LU',\n postalCode: 'L-2449',\n },\n socialLinks: {\n linkedin: 'https://www.linkedin.com/company/acme-emea',\n github: 'https://github.com/acme-emea',\n },\n} as const;\n\nconst ORGANIZATION_PROFILE_UPDATE_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n ...ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE,\n updatedAt: '2026-08-21T08:45:00.000Z',\n _version: 8,\n} as const;\n\nconst ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE = {\n branding: {\n logo: 'https://cdn.acme.example/brand/logo-2026.svg',\n favicon: 'https://cdn.acme.example/brand/favicon-2026.png',\n primaryColor: '#4F46E5',\n secondaryColor: '#111827',\n },\n} as const;\n\nconst ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE = {\n ...ORGANIZATION_PROFILE_EXAMPLE,\n branding: ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE.branding,\n updatedAt: '2026-08-21T09:10:00.000Z',\n _version: 8,\n} as const;\n\nexport const organizationProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(organizationProfilesResourceUIBehavior),\n resourceSpecification(\n organizationProfilesFactory,\n OrganizationProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'Business identity and presentation metadata for one organization: company facts, location, branding, and social links.',\n businessRole: 'Gives authorized members and integrations one consistent organization profile for product surfaces, directories, and connected systems.',\n lifecycleRole: 'The profile is created with its organization, evolves through company and brand changes, and is removed with the owning organization.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.ORGANIZATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'organizationProfileResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ORGANIZATION_PROFILES',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationProfile_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'organizationProfilesMainResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of the organization-profile record.',\n whyItMatters: 'Identifies this profile document independently from the organization id used to address the route.',\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization this public/directory profile describes.',\n whyItMatters: 'Ties branding and company facts to exactly one tenant so directory cards and connector metadata resolve per organization and cannot surface another tenant’s profile.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Customer-facing name when different from the canonical org `name`.' }),\n domain: schemaShape.domain.stringSpec({ meaning: 'Organization-owned internet domain used as profile and directory metadata; it is not an authentication-domain verification claim.' }),\n phone: schemaShape.phone.stringSpec({ meaning: 'Organization contact telephone number as entered by an authorized profile editor.' }),\n website: schemaShape.website.stringSpec({ meaning: 'Primary marketing or product URL for the tenant.' }),\n description: schemaShape.description.stringSpec({ meaning: 'Short organization description for about panels, directories, and connected systems.' }),\n industry: schemaShape.industry.enumSpec({\n meaning: 'Business sector classification for the tenant, used in directory facets and segmentation.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationIndustry',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationIndustry.TECHNOLOGY]: { meaning: 'Technology / software.' },\n [OrganizationIndustry.FINANCE]: { meaning: 'Finance, banking, or insurance.' },\n [OrganizationIndustry.HEALTHCARE]: { meaning: 'Healthcare and life sciences.' },\n [OrganizationIndustry.EDUCATION]: { meaning: 'Education and academia.' },\n [OrganizationIndustry.RETAIL]: { meaning: 'Retail and commerce.' },\n [OrganizationIndustry.MANUFACTURING]: { meaning: 'Manufacturing and industry.' },\n [OrganizationIndustry.CONSULTING]: { meaning: 'Professional services and consulting.' },\n [OrganizationIndustry.MEDIA]: { meaning: 'Media, entertainment, and publishing.' },\n [OrganizationIndustry.GOVERNMENT]: { meaning: 'Government and public sector.' },\n [OrganizationIndustry.NONPROFIT]: { meaning: 'Nonprofit and NGO.' },\n [OrganizationIndustry.OTHER]: { meaning: 'Any sector not covered by the named categories.' },\n },\n }),\n size: schemaShape.size.enumSpec({\n meaning: 'Employee-count band for the tenant, used for directory facets and plan/segment heuristics.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationSize',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OrganizationSize.STARTUP]: { meaning: 'Startup, roughly 1–10 employees.' },\n [OrganizationSize.SMALL]: { meaning: 'Small, roughly 11–50 employees.' },\n [OrganizationSize.MEDIUM]: { meaning: 'Medium, roughly 51–200 employees.' },\n [OrganizationSize.LARGE]: { meaning: 'Large, roughly 201–1000 employees.' },\n [OrganizationSize.ENTERPRISE]: { meaning: 'Enterprise, 1000+ employees.' },\n },\n }),\n founded: schemaShape.founded.dateSpec({ meaning: 'Date associated with the organization’s founding for profile and directory presentation.' }),\n address: schemaShape.address.objectSpec({ meaning: 'Primary organization address, including ISO two-letter country code and postal information.' }),\n timezone: schemaShape.timezone.stringSpec({ meaning: 'Default IANA timezone used when organization-facing surfaces need a local time context.' }),\n branding: schemaShape.branding.objectSpec({ meaning: 'Organization-specific logo, favicon and colors. The logo, primary color and favicon are shown on the organization\\u2019s sign-in card (the favicon in the browser tab while the card is on screen). A verified organization domain can supply login branding independently of enabled SSO connections. The identification name comes from the organization record. Fallback depends on the consuming surface: authentication identification can use the application logo, while an omitted tenant primary color remains absent; it does not use the email-brand palette.' }),\n socialLinks: schemaShape.socialLinks.objectSpec({ meaning: 'Optional public profile URLs for the organization’s supported social and developer channels.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When this profile record was created by the organization lifecycle.' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When any stored profile field was last changed.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the addressed organization’s complete profile.',\n outcome: 'The caller receives company facts, location, branding, social links, and the current resource version.',\n whenToUse: 'Use this representation when synchronizing a complete organization profile or rendering a full about/settings surface.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile was found and its directory/branding metadata is returned for the addressed organization.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record has been provisioned for the addressed organization in the caller’s scope.' },\n ],\n examples: [{\n title: 'Read the organization profile',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n purpose: 'Read the organization profile with its configured relationship context.',\n outcome: 'The complete profile is returned with the related organization identifier when that relationship is available.',\n examples: [{\n title: 'Read the profile with organization context',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n purpose: 'Read the compact organization-profile identity.',\n outcome: 'Only the profile id, organization id, display name, and current resource version are returned.',\n examples: [{\n title: 'Read the compact organization profile',\n request: { organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId },\n response: ORGANIZATION_PROFILE_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.UPDATE]: {\n purpose: 'Update one or more editable organization-profile fields.',\n outcome: 'The stored profile is changed and the complete updated representation, including its new resource version, is returned.',\n whenToUse: 'Use this operation for company, classification, location, social-link, or combined profile changes. Use the branding operation when the request changes only the brand kit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the updated profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation (e.g. a malformed `website` URL).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-manager authority required by this route.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to update.' },\n ],\n examples: [{\n title: 'Update organization company and directory details',\n request: {\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n ...ORGANIZATION_PROFILE_UPDATE_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PROFILE_UPDATE_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the organization profile row when its owning organization is deleted (composition `onParentDelete` cascade).',\n outcome: 'The eager-seeded singleton profile row is removed together with the organization — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The organization profile record was deleted as part of the owning organization’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n [OrganizationProfile_Operations.UPDATE_BRANDING]: {\n operationId: OrganizationProfile_Operations.UPDATE_BRANDING,\n purpose: 'Replace the organization-specific logo, favicon and colors as one brand kit.',\n outcome: 'The brand kit is validated, stored, and returned inside the complete updated profile with its new resource version.',\n whenToUse: 'Use this operation for a branding-only change that should not carry unrelated company-profile fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The brand kit (colors, logo, favicon) was applied and the updated profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The branding bundle fails validation (e.g. an invalid color token or an unsupported logo/favicon asset reference).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-admin authority required by this route.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile record exists for the addressed organization to apply branding to.' },\n ],\n examples: [{\n title: 'Replace the organization brand kit',\n request: {\n organizationId: ORGANIZATION_PROFILE_EXAMPLE.organizationId,\n ...ORGANIZATION_PROFILE_BRANDING_REQUEST_EXAMPLE,\n },\n response: ORGANIZATION_PROFILE_BRANDING_RESPONSE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Each organization owns one profile. The framework creates it with the organization and removes it when the organization is deleted.',\n 'Brand fallbacks depend on the consumer. Identification may supply the application logo; an omitted tenant color remains absent. The standard login card preserves application theme tokens and uses a supplied tenant primary color only as a decorative identity accent.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n ),\n () => ({\n views: {\n [Op.READ]: { purpose: 'Settings read for company/about panels.', whenToUse: 'Org profile in admin and member-visible about pages when exposed.' },\n [Op.UPDATE]: { purpose: 'General field edits in multi-section form.', whenToUse: 'IT and marketing co-own updates through governance roles.' },\n [OrganizationProfile_Operations.UPDATE_BRANDING]: { purpose: 'Branding wizard path separate from long-form text edits.', whenToUse: 'White-label and theme management UX.' },\n },\n }),\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-unit-members.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-unit-members.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,EACL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,4CAA4C;;;;;;;;
|
|
1
|
+
{"version":3,"file":"organization-unit-members.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/organizations/resources/organization-unit-members.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,EACL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,4CAA4C;;;;;;;;kCAiTxD,CAAC"}
|
package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js
CHANGED
|
@@ -79,7 +79,8 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
|
|
|
79
79
|
// (`z.string()`, `z.enum()`, `z.array()`) rather than on a union. The members resource hits the
|
|
80
80
|
// same limit and describes its element through `arraySpec` metadata for the same reason. The
|
|
81
81
|
// field's meaning, its ceiling governance and its immutability are documented in
|
|
82
|
-
// `businessConstraints` below instead of being silently dropped
|
|
82
|
+
// `businessConstraints` below instead of being silently dropped, and the API reference reads its
|
|
83
|
+
// description from the schema's `.describe()` (#1625).
|
|
83
84
|
},
|
|
84
85
|
operations: {
|
|
85
86
|
[Op.CREATE]: {
|
|
@@ -89,9 +90,10 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
|
|
|
89
90
|
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The assignment was created and is returned.' },
|
|
90
91
|
],
|
|
91
92
|
errorScenarios: [
|
|
92
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation, omits `organizationUnitId`, or names a unit that does not belong to the caller’s organization.'
|
|
93
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation, omits `organizationUnitId`, or names a unit that does not belong to the caller’s organization.' },
|
|
93
94
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin, OR the requested role exceeds the caller’s own organization-wide ceiling (a principal cannot grant authority it does not hold).' },
|
|
94
95
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The member already holds an assignment in that unit — the (membership, unit) pair is the business key.' },
|
|
96
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The membership is a service-provider membership (a firm\'s expert). Its unit scope belongs to its relationship, so a unit grant here would confer nothing; carries `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP` — change the scope through the relationship\'s `amendScope`.' },
|
|
95
97
|
],
|
|
96
98
|
idempotent: false,
|
|
97
99
|
examples: [
|
|
@@ -267,9 +269,10 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
|
|
|
267
269
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The assignment was updated and is returned.' },
|
|
268
270
|
],
|
|
269
271
|
errorScenarios: [
|
|
270
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation.'
|
|
272
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails schema validation.' },
|
|
271
273
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an organization admin, OR the requested role exceeds the caller’s own organization-wide ceiling.' },
|
|
272
274
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment exists for the supplied id in the caller’s organization.' },
|
|
275
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The assignment belongs to a service-provider membership, whose unit scope belongs to its relationship; carries `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.' },
|
|
273
276
|
],
|
|
274
277
|
idempotent: true,
|
|
275
278
|
examples: [
|
|
@@ -308,6 +311,7 @@ export const organizationUnitMembersResourceSpecification = resourceSpecificatio
|
|
|
308
311
|
'`role` is the only mutable field; `organizationUnitId` and `organizationMemberId` are immutable. An edit may change what an assignment GRANTS, never what it is ABOUT — which keeps the business key the whole identity of the row.',
|
|
309
312
|
'The (membership, unit) business key makes "one role per member per unit" a persisted invariant. The embedded array this resource replaced admitted duplicates with no defined winner.',
|
|
310
313
|
'Deleting the owning membership or the organization cascades these rows away, so an assignment cannot outlive the membership that justified it. Deleting a UNIT does NOT cascade: that delete is refused while assignments remain, so an operator decides where the affected people belong rather than having roles silently dropped behind a single-node delete.',
|
|
314
|
+
'A service-provider membership (a firm\'s expert, present through a relationship) takes no unit assignment: its unit scope is the relationship\'s `organizationUnitIds`, read by the per-request live filter, and a unit assignment on it would record a grant that confers nothing. CREATE and UPDATE refuse it with 409 `SERVICE_PROVIDER_MEMBERSHIP_ROLES_OWNED_BY_RELATIONSHIP`.',
|
|
311
315
|
'`role` IS an authorization axis as of 2026-08-01. Each assignment is emitted into the caller’s `initiatorRoles` as a NARROWED grant carrying its `organizationUnitId`, which every organization-wide consumer partitions out. On a resource that opted into unit narrowing, such a grant admits the member at the operation gate when no organization-wide role of theirs satisfies it, and then confines their reads and writes to that unit — plus its descendants where the unit declares downward inheritance. On every other resource the grant confers nothing at all, which is what stops one unit’s role from becoming tenant-wide authority. Governing these writes BEFORE the wiring landed was deliberate: it meant no above-ceiling role could be pre-planted and then silently become live on the day narrowing shipped.',
|
|
312
316
|
],
|
|
313
317
|
}), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
|