@wildo-ai/saas-specifications 1.1.5 → 1.1.7
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 +2 -2
- 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":"user-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACtH,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,iBAAiB,EACjB,uBAAuB,EACvB,uDAAuD,IAAI,mBAAmB,GAC/E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,sCAAsC,GACvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,8BAA8B,GAAG,oCAItC,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,sCAAsC,CAAC,CAAC,CAAC,CAAC;AAEvE,MAAM,oBAAoB,GAAG;IAC3B,GAAG,EAAE,yBAAyB;IAC9B,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE;QACN,MAAM,EAAE,wBAAwB;QAChC,SAAS,EAAE,0BAA0B;KACtC;IACD,GAAG,EAAE,mEAAmE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;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userProfiles` — Wildo SaaS engine specification (mixed, admin-leaning).\n * Same `UserProfileSchema` as `userSelfProfiles` but `CoreResourceType.USER_PROFILES` with org/admin variants.\n */\n\nimport { userProfilesResourceUIBehavior as userProfilesResourceUIBehaviorSource } 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 ResourcePrimaryScope,\n UserProfileSchema,\n UserProfiles_Operations,\n userProfilesResourceConfiguration_InitializationFactory as userProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport {\n selfServiceFrontEndSuccessNotification,\n} from './self-service-user-notifications.shared';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userProfilesResourceUIBehavior = userProfilesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nconst USER_PROFILE_EXAMPLE = {\n _id: 'user_profile_01JEXAMPLE',\n userId: 'user_01JEXAMPLE',\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada Lovelace',\n avatar: {\n fileId: 'file_avatar_01JEXAMPLE',\n updatedAt: '2026-08-20T10:30:00.000Z',\n },\n bio: 'Leads platform integration architecture and developer enablement.',\n phoneNumber: '+352621123456',\n title: 'Staff Engineer',\n _version: 7,\n} as const;\n\nconst USER_PROFILE_CONTEXT_EXAMPLE = {\n ...USER_PROFILE_EXAMPLE,\n user: { _id: USER_PROFILE_EXAMPLE.userId },\n} as const;\n\nconst USER_PROFILE_SUMMARY_EXAMPLE = {\n _id: USER_PROFILE_EXAMPLE._id,\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n _version: USER_PROFILE_EXAMPLE._version,\n} as const;\n\nconst USER_PROFILE_PAGE = {\n data: [USER_PROFILE_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nexport const userProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userProfilesResourceUIBehavior),\n resourceSpecification(\n userProfilesFactory,\n UserProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'The addressed user’s profile and contact card: name, display name, avatar, biography, phone number, and professional title.',\n businessRole: 'Use the normal API for a user’s own profile and the application-administration API to inspect or maintain another user’s profile.',\n lifecycleRole: 'One profile is created for each user, changes as their public or contact information changes, and is removed with that user or by an authorized administrator.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userProfilesResourceConfiguration_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: 'USER_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: 'UserProfiles_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userProfilesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Stable identifier of this profile document.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record this profile document describes — immutable after create; profiles are keyed one-per-user.',\n whyItMatters: 'Binds the profile to one user so self-service and authorized administration address the same record without crossing tenant boundaries.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n firstName: schemaShape.firstName.stringSpec({ meaning: 'The user’s given name.', importance: FieldSemanticImportance.PRIMARY }),\n lastName: schemaShape.lastName.stringSpec({ meaning: 'The user’s family name.', importance: FieldSemanticImportance.PRIMARY }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Optional name shown instead of composing the given and family names.' }),\n avatar: schemaShape.avatar.fileSpec({ meaning: 'Uploaded square profile image, represented by its managed file reference. External image URLs are not accepted.' }),\n bio: schemaShape.bio.stringSpec({ meaning: 'Optional short biography shown on the user’s profile.' }),\n phoneNumber: schemaShape.phoneNumber.stringSpec({ meaning: 'Optional contact number in E.164 international format. Storing it does not by itself prove possession of the number.', semanticRole: 'identifier' }),\n title: schemaShape.title.stringSpec({ meaning: 'Optional professional title shown in people and profile surfaces.' }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read the profile belonging to the user identified in the route. The normal variant is self-scoped; the administration variant can address another user.',\n outcome: 'The user’s profile fields and current resource version are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile document was found and returned with the field visibility of the active API variant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks application profile-viewing authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read your complete profile',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read your profile with its user relationship',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read your compact profile identity',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n admin: {\n examples: [{\n title: 'Inspect another user’s complete profile',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Search profiles by name. The administration variant additionally matches phone numbers and permits a larger page size.',\n outcome: 'A paginated page of matching profile records is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of profile records matching the name search for the active API variant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks access to search profiles through the selected normal or administration variant.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find a profile by name',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n q: 'Ada',\n page: 1,\n limit: 20,\n sort: 'lastName:asc',\n },\n response: USER_PROFILE_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n admin: {\n examples: [{\n title: 'Find a profile by contact number as an administrator',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n q: '+352621123456',\n page: 1,\n limit: 100,\n sort: 'lastName:asc',\n },\n response: {\n ...USER_PROFILE_PAGE,\n pagination: { ...USER_PROFILE_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the addressed user’s profile. The normal variant creates the caller’s own profile; the administration variant provisions one for another existing user.',\n outcome: 'The new profile is returned with its server-assigned id and initial resource version.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A profile document was created for the subject user and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation (for example, a required name is missing or `phoneNumber` is malformed).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-provisioning authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced owning `userId` does not resolve to a known user.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the supplied `userId` (profiles are keyed one-per-user).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Create your own profile',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n bio: USER_PROFILE_EXAMPLE.bio,\n phoneNumber: USER_PROFILE_EXAMPLE.phoneNumber,\n title: USER_PROFILE_EXAMPLE.title,\n },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n variants: {\n admin: {\n examples: [{\n title: 'Provision a profile for an existing user',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n title: USER_PROFILE_EXAMPLE.title,\n },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n },\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is created.') },\n },\n [Op.UPDATE]: {\n purpose: 'Replace one or more editable profile fields. The normal variant edits the caller’s profile; the administration variant edits another user’s profile.',\n outcome: 'The updated profile and its incremented resource version are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile document was patched and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-editing authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Update your display name and biography',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n displayName: 'Ada L.',\n bio: 'Builds reliable application integrations and developer platforms.',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n displayName: 'Ada L.',\n bio: 'Builds reliable application integrations and developer platforms.',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n admin: {\n examples: [{\n title: 'Correct another user’s professional title',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n title: 'Principal Engineer',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n title: 'Principal Engineer',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is updated.') },\n },\n [Op.DELETE]: {\n purpose: 'Delete the addressed profile. The normal variant removes the caller’s own profile; the administration variant removes another user’s profile.',\n outcome: 'The profile is removed and subsequent reads return 404 until a new profile is created.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The profile document was deleted; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-deletion authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is deleted.') },\n },\n [UserProfiles_Operations.UPDATE_AVATAR]: {\n operationId: UserProfiles_Operations.UPDATE_AVATAR,\n purpose: 'Replace the caller’s avatar with an uploaded, application-managed image file.',\n outcome: 'The managed file reference is stored and the refreshed profile is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The avatar file reference was updated and the refreshed profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The avatar is missing, is not a valid managed file reference, or violates the profile image constraints.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to change this profile’s avatar.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Use an uploaded image as your avatar',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n avatar: {\n fileId: 'file_avatar_01JNEW',\n updatedAt: '2026-08-21T09:00:00.000Z',\n },\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n avatar: {\n fileId: 'file_avatar_01JNEW',\n updatedAt: '2026-08-21T09:00:00.000Z',\n },\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: { notification: toast('The profile owner receives an in-app confirmation after the avatar is updated.') },\n },\n [UserProfiles_Operations.REMOVE_AVATAR]: {\n operationId: UserProfiles_Operations.REMOVE_AVATAR,\n purpose: 'Reserved avatar-removal operation. It is not published as an application-consumer API capability while managed-file release is unimplemented.',\n outcome: 'Runtime requests fail closed; no profile or file reference is changed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.INTERNAL_SERVER_ERROR_500, meaning: 'The acknowledged implementation gap refuses the request instead of reporting a successful no-op.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to clear this profile’s avatar.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n },\n [UserProfiles_Operations.UPDATE_CONTACT_INFO]: {\n operationId: UserProfiles_Operations.UPDATE_CONTACT_INFO,\n purpose: 'Replace the caller’s profile contact number with a valid E.164 international number.',\n outcome: 'The new number is stored and the refreshed profile is returned. Number verification remains a separate authentication flow.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The contact fields were updated and the refreshed profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The supplied phone number is not a valid E.164 value or the contact payload fails validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to change this profile’s contact data.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Update your contact number',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n phoneNumber: '+352621654321',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n phoneNumber: '+352621654321',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: { notification: toast('The profile owner receives an in-app confirmation after the contact number is updated.') },\n },\n },\n\n businessConstraints: [\n 'Registry scope resolves through the `USERS` composition edge — the spec’s `resourcePrimaryScope` is `USER_SELF` to match the self-anchor, even though the product copy talks about “org directory”.',\n 'Core operations in the factory register both a default `APP_USER` API variant and an `admin` API variant; the identity `userProfilesResourceUIBehavior` UI preset only hosts the `admin` operation keys in `views`, so `frontend.views` documents `admin` only. End-user “my profile” UI is covered by `USER_SELF_PROFILES`, not a `default` view row on this resource type.',\n 'Custom operations (`update_avatar` … `update_contact_info`) are `APP_USER`-only in the factory (no `admin` variant). They appear in `base.operations` for API and DF-1; the admin UI preset does not add view hosts for them (see `identity.resource-presets.tsx`).',\n 'Phone-number possession is NOT proved on this resource. There is no `verify_phone` custom operation: the challenge/response against an issued code is fully implemented in the auth subsystem by `AuthPhoneVerificationBackendService` (`PHONE_VERIFICATION` consumable tokens — single-use, 10-minute expiry — a constant-time code comparison, audit events on both the success and failure paths, and the verified state persisted through `setVerifiedPhone`), with `AuthMethod.SMS_OTP` covering the same proof as a first-or-second auth factor. `USER_SELF_PROFILES` dropped its equivalent op for the same reason, and an admin-directory resource is the wrong place regardless — an SMS code proves possession by the phone’s owner, not by the admin submitting it. `update_contact_info` changes the number; it does not attest it.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n // Admin `USER_PROFILES` reuses the self-profile layout verbatim\n // (`layout: main[USER_SELF_PROFILES].layout`), which is now a flat,\n // sectionless field list. `sections` must stay empty to match — the\n // structural-slot validator compares this against the SHARED merged layout\n // refs, so a documented section here would crash-loop the companion.\n purpose: 'Reuse the flat self-profile layout for admin/end-user parity — no section grouping.',\n displayPurpose: 'Directory detail drawer (admin) or people search result expansion.',\n summaryPurpose: 'Name and title in compact list rows.',\n sections: {},\n },\n views: {\n [Op.READ]: {\n variants: {\n admin: {\n purpose: 'Admin and elevated directory read — the identity preset only surfaces the `admin` operation variant for USER_PROFILES.',\n whenToUse: 'User management console, directory admin, and support workflows using `USER_PROFILES` (not the self `USER_SELF_PROFILES` type).',\n },\n },\n },\n [Op.SEARCH]: {\n variants: {\n admin: {\n purpose: 'Admin search with expanded searchable fields from the runtime config.',\n whenToUse: 'Compliance lookup and back-office people search.',\n },\n },\n },\n [Op.CREATE]: {\n variants: {\n admin: {\n purpose: 'Admin-provisioned profile creation (imports, support).',\n whenToUse: 'When operators create profile rows on behalf of users — the merged preset only exposes the `admin` variant.',\n },\n },\n },\n [Op.UPDATE]: {\n variants: {\n admin: {\n purpose: 'Admin update path for a user’s profile document.',\n whenToUse: 'Support edits and data-fix flows under super-admin or equivalent roles.',\n },\n },\n },\n [Op.DELETE]: {\n variants: {\n admin: {\n purpose: 'Admin deletion of a profile for compliance or offboarding support.',\n whenToUse: 'DSR, abuse, or org teardown — the preset surfaces only the `admin` delete variant here.',\n },\n },\n },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"user-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACtH,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,iBAAiB,EACjB,uBAAuB,EACvB,uDAAuD,IAAI,mBAAmB,GAC/E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,sCAAsC,GACvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,8BAA8B,GAAG,oCAItC,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,sCAAsC,CAAC,CAAC,CAAC,CAAC;AAEvE,M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AC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,oEAAoE;oBAC7E,SAAS,EAAE,yFAAyF;iBACrG;aACF;SACF;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userProfiles` — Wildo SaaS engine specification (mixed, admin-leaning).\n * Same `UserProfileSchema` as `userSelfProfiles` but `CoreResourceType.USER_PROFILES` with org/admin variants.\n */\n\nimport { userProfilesResourceUIBehavior as userProfilesResourceUIBehaviorSource } 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 ResourcePrimaryScope,\n UserProfileSchema,\n UserProfiles_Operations,\n userProfilesResourceConfiguration_InitializationFactory as userProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport {\n selfServiceFrontEndSuccessNotification,\n} from './self-service-user-notifications.shared';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userProfilesResourceUIBehavior = userProfilesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nconst USER_PROFILE_EXAMPLE = {\n _id: 'user_profile_01JEXAMPLE',\n userId: 'user_01JEXAMPLE',\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada Lovelace',\n avatar: {\n fileId: 'file_avatar_01JEXAMPLE',\n updatedAt: '2026-08-20T10:30:00.000Z',\n },\n bio: 'Leads platform integration architecture and developer enablement.',\n phoneNumber: '+352621123456',\n title: 'Staff Engineer',\n _version: 7,\n} as const;\n\nconst USER_PROFILE_CONTEXT_EXAMPLE = {\n ...USER_PROFILE_EXAMPLE,\n user: { _id: USER_PROFILE_EXAMPLE.userId },\n} as const;\n\nconst USER_PROFILE_SUMMARY_EXAMPLE = {\n _id: USER_PROFILE_EXAMPLE._id,\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n _version: USER_PROFILE_EXAMPLE._version,\n} as const;\n\nconst USER_PROFILE_PAGE = {\n data: [USER_PROFILE_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nexport const userProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userProfilesResourceUIBehavior),\n resourceSpecification(\n userProfilesFactory,\n UserProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'The addressed user’s profile and contact card: name, display name, avatar, biography, phone number, and professional title.',\n businessRole: 'Use the normal API for a user’s own profile and the application-administration API to inspect or maintain another user’s profile.',\n lifecycleRole: 'One profile is created for each user, changes as their public or contact information changes, and is removed with that user or by an authorized administrator.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userProfilesResourceConfiguration_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: 'USER_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: 'UserProfiles_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userProfilesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Stable identifier of this profile document.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record this profile document describes — immutable after create; profiles are keyed one-per-user.',\n whyItMatters: 'Binds the profile to one user so self-service and authorized administration address the same record without crossing tenant boundaries.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n firstName: schemaShape.firstName.stringSpec({ meaning: 'The user’s given name.', importance: FieldSemanticImportance.PRIMARY }),\n lastName: schemaShape.lastName.stringSpec({ meaning: 'The user’s family name.', importance: FieldSemanticImportance.PRIMARY }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Optional name shown instead of composing the given and family names.' }),\n avatar: schemaShape.avatar.fileSpec({ meaning: 'Uploaded square profile image, represented by its managed file reference. External image URLs are not accepted.' }),\n bio: schemaShape.bio.stringSpec({ meaning: 'Optional short biography shown on the user’s profile.' }),\n phoneNumber: schemaShape.phoneNumber.stringSpec({ meaning: 'Optional contact number in E.164 international format. Storing it does not by itself prove possession of the number.', semanticRole: 'identifier' }),\n title: schemaShape.title.stringSpec({ meaning: 'Optional professional title shown in people and profile surfaces.' }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read the profile belonging to the user identified in the route. The normal variant is self-scoped; the administration variant can address another user.',\n outcome: 'The user’s profile fields and current resource version are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile document was found and returned with the field visibility of the active API variant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks application profile-viewing authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read your complete profile',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read your profile with its user relationship',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read your compact profile identity',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n admin: {\n examples: [{\n title: 'Inspect another user’s complete profile',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Search profiles by name. The administration variant additionally matches phone numbers and permits a larger page size.',\n outcome: 'A paginated page of matching profile records is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of profile records matching the name search for the active API variant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks access to search profiles through the selected normal or administration variant.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find a profile by name',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n q: 'Ada',\n page: 1,\n limit: 20,\n sort: 'lastName:asc',\n },\n response: USER_PROFILE_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n admin: {\n examples: [{\n title: 'Find a profile by contact number as an administrator',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n q: '+352621123456',\n page: 1,\n limit: 100,\n sort: 'lastName:asc',\n },\n response: {\n ...USER_PROFILE_PAGE,\n pagination: { ...USER_PROFILE_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the addressed user’s profile. The normal variant creates the caller’s own profile; the administration variant provisions one for another existing user.',\n outcome: 'The new profile is returned with its server-assigned id and initial resource version.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A profile document was created for the subject user and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation (for example, a required name is missing or `phoneNumber` is malformed).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-provisioning authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced owning `userId` does not resolve to a known user.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the supplied `userId` (profiles are keyed one-per-user).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Create your own profile',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n bio: USER_PROFILE_EXAMPLE.bio,\n phoneNumber: USER_PROFILE_EXAMPLE.phoneNumber,\n title: USER_PROFILE_EXAMPLE.title,\n },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n variants: {\n admin: {\n examples: [{\n title: 'Provision a profile for an existing user',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n title: USER_PROFILE_EXAMPLE.title,\n },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n },\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is created.') },\n },\n [Op.UPDATE]: {\n purpose: 'Replace one or more editable profile fields. The normal variant edits the caller’s profile; the administration variant edits another user’s profile.',\n outcome: 'The updated profile and its incremented resource version are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile document was patched and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-editing authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Update your display name and biography',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n displayName: 'Ada L.',\n bio: 'Builds reliable application integrations and developer platforms.',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n displayName: 'Ada L.',\n bio: 'Builds reliable application integrations and developer platforms.',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n admin: {\n examples: [{\n title: 'Correct another user’s professional title',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n title: 'Principal Engineer',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n title: 'Principal Engineer',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is updated.') },\n },\n [Op.DELETE]: {\n purpose: 'Delete the addressed profile. The normal variant removes the caller’s own profile; the administration variant removes another user’s profile.',\n outcome: 'The profile is removed and subsequent reads return 404 until a new profile is created.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The profile document was deleted; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-deletion authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is deleted.') },\n },\n [UserProfiles_Operations.UPDATE_AVATAR]: {\n operationId: UserProfiles_Operations.UPDATE_AVATAR,\n purpose: 'Replace the caller’s avatar with an uploaded, application-managed image file.',\n outcome: 'The managed file reference is stored and the refreshed profile is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The avatar file reference was updated and the refreshed profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The avatar is missing, is not a valid managed file reference, or violates the profile image constraints.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to change this profile’s avatar.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Use an uploaded image as your avatar',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n avatar: {\n fileId: 'file_avatar_01JNEW',\n updatedAt: '2026-08-21T09:00:00.000Z',\n },\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n avatar: {\n fileId: 'file_avatar_01JNEW',\n updatedAt: '2026-08-21T09:00:00.000Z',\n },\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: { notification: toast('The profile owner receives an in-app confirmation after the avatar is updated.') },\n },\n [UserProfiles_Operations.REMOVE_AVATAR]: {\n operationId: UserProfiles_Operations.REMOVE_AVATAR,\n purpose: 'Reserved avatar-removal operation. It is not published as an application-consumer API capability while managed-file release is unimplemented.',\n outcome: 'Runtime requests fail closed; no profile or file reference is changed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.INTERNAL_SERVER_ERROR_500, meaning: 'The acknowledged implementation gap refuses the request instead of reporting a successful no-op.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to clear this profile’s avatar.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n },\n [UserProfiles_Operations.UPDATE_CONTACT_INFO]: {\n operationId: UserProfiles_Operations.UPDATE_CONTACT_INFO,\n purpose: 'Replace the caller’s profile contact number with a valid E.164 international number.',\n outcome: 'The new number is stored and the refreshed profile is returned. Number verification remains a separate authentication flow.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The contact fields were updated and the refreshed profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The supplied phone number is not a valid E.164 value or the contact payload fails validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to change this profile’s contact data.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Update your contact number',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n phoneNumber: '+352621654321',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n phoneNumber: '+352621654321',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: { notification: toast('The profile owner receives an in-app confirmation after the contact number is updated.') },\n },\n },\n\n businessConstraints: [\n 'Registry scope resolves through the `USERS` composition edge — the spec’s `resourcePrimaryScope` is `USER_SELF` to match the self-anchor, even though the product copy talks about “org directory”.',\n 'Core operations in the factory register both a default `APP_USER` API variant and an `admin` API variant; the identity `userProfilesResourceUIBehavior` UI preset only hosts the `admin` operation keys in `views`, so `frontend.views` documents `admin` only. End-user “my profile” UI is covered by `USER_SELF_PROFILES`, not a `default` view row on this resource type.',\n 'Custom operations (`update_avatar` … `update_contact_info`) are `APP_USER`-only in the factory (no `admin` variant). They appear in `base.operations` for API and DF-1; the admin UI preset does not add view hosts for them (see `identity.resource-presets.tsx`).',\n 'Phone-number possession is NOT proved on this resource. There is no `verify_phone` custom operation: the challenge/response against an issued code is fully implemented in the auth subsystem by `AuthPhoneVerificationBackendService` (`PHONE_VERIFICATION` consumable tokens — single-use, 10-minute expiry — a constant-time code comparison, audit events on both the success and failure paths, and the verified state persisted through `setVerifiedPhone`), with `AuthMethod.SMS_OTP` covering the same proof as a first-or-second auth factor. `USER_SELF_PROFILES` dropped its equivalent op for the same reason, and an admin-directory resource is the wrong place regardless — an SMS code proves possession by the phone’s owner, not by the admin submitting it. `update_contact_info` changes the number; it does not attest it.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n // Admin `USER_PROFILES` reuses the self-profile layout verbatim\n // (`layout: main[USER_SELF_PROFILES].layout`), which is now a flat,\n // sectionless field list. `sections` must stay empty to match — the\n // structural-slot validator compares this against the SHARED merged layout\n // refs, so a documented section here would crash-loop the companion.\n purpose: 'Reuse the flat self-profile layout for admin/end-user parity — no section grouping.',\n displayPurpose: 'Directory detail drawer (admin) or people search result expansion.',\n summaryPurpose: 'The person’s resolved name (display name, else first + last) with their job title as a bare value, shared with the self-profile layout.',\n sections: {},\n },\n views: {\n [Op.READ]: {\n variants: {\n admin: {\n purpose: 'Admin and elevated directory read — the identity preset only surfaces the `admin` operation variant for USER_PROFILES.',\n whenToUse: 'User management console, directory admin, and support workflows using `USER_PROFILES` (not the self `USER_SELF_PROFILES` type).',\n },\n },\n },\n [Op.SEARCH]: {\n variants: {\n admin: {\n purpose: 'Admin search with expanded searchable fields from the runtime config.',\n whenToUse: 'Compliance lookup and back-office people search.',\n },\n },\n },\n [Op.CREATE]: {\n variants: {\n admin: {\n purpose: 'Admin-provisioned profile creation (imports, support).',\n whenToUse: 'When operators create profile rows on behalf of users — the merged preset only exposes the `admin` variant.',\n },\n },\n },\n [Op.UPDATE]: {\n variants: {\n admin: {\n purpose: 'Admin update path for a user’s profile document.',\n whenToUse: 'Support edits and data-fix flows under super-admin or equivalent roles.',\n },\n },\n },\n [Op.DELETE]: {\n variants: {\n admin: {\n purpose: 'Admin deletion of a profile for compliance or offboarding support.',\n whenToUse: 'DSR, abuse, or org teardown — the preset surfaces only the `admin` delete variant here.',\n },\n },\n },\n },\n }),\n);\n"]}
|
|
@@ -8,8 +8,6 @@ export declare const userSelfPreferencesResourceSpecification: import("../../../
|
|
|
8
8
|
userId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>>;
|
|
9
9
|
notifications: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
10
10
|
email: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
11
|
-
push: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
12
|
-
sms: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
13
11
|
inApp: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
14
12
|
}, import("zod/v4/core").$strip>>>;
|
|
15
13
|
privacy: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
@@ -28,7 +26,6 @@ export declare const userSelfPreferencesResourceSpecification: import("../../../
|
|
|
28
26
|
languagePreferences: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
29
27
|
primaryLanguage: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").AvailableLanguage>>>>;
|
|
30
28
|
fallbackLanguages: import("zod").ZodDefault<import("zod").ZodArray<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").AvailableLanguage>>>>>;
|
|
31
|
-
autoDetect: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
32
29
|
useOrganizationDefault: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
33
30
|
}, import("zod/v4/core").$strip>>>>;
|
|
34
31
|
}, import("zod/v4/core").$strip>>;
|
package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-self-preferences.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,8BAA8B,EAE/B,MAAM,uBAAuB,CAAC;AA8B/B,eAAO,MAAM,wCAAwC
|
|
1
|
+
{"version":3,"file":"user-self-preferences.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,8BAA8B,EAE/B,MAAM,uBAAuB,CAAC;AA8B/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;iCA0QpD,CAAC"}
|
|
@@ -74,7 +74,7 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
74
74
|
importance: FieldSemanticImportance.PRIMARY,
|
|
75
75
|
}),
|
|
76
76
|
notifications: schemaShape.notifications.objectSpec({
|
|
77
|
-
meaning: 'Channel toggles
|
|
77
|
+
meaning: 'Channel toggles for notifications about the person\u2019s own affairs: `email` for notification emails, `inApp` for the pop-ups and notification centre. There is no SMS or push switch because the application sends neither.',
|
|
78
78
|
importance: FieldSemanticImportance.PRIMARY,
|
|
79
79
|
}),
|
|
80
80
|
privacy: schemaShape.privacy.objectSpec({
|
|
@@ -90,7 +90,7 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
90
90
|
importance: FieldSemanticImportance.PRIMARY,
|
|
91
91
|
}),
|
|
92
92
|
languagePreferences: schemaShape.languagePreferences.objectSpec({
|
|
93
|
-
meaning: '
|
|
93
|
+
meaning: 'The language the person reads in (`primaryLanguage`), the languages to use in order when that one is not offered (`fallbackLanguages`, used by the interface and by the emails sent to them), and whether to follow the organization\u2019s language instead.',
|
|
94
94
|
importance: FieldSemanticImportance.PRIMARY,
|
|
95
95
|
}),
|
|
96
96
|
},
|
|
@@ -145,14 +145,14 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
145
145
|
},
|
|
146
146
|
[Op.UPDATE]: {
|
|
147
147
|
purpose: 'Change any subset of the preference groups in one save. The `userId` path value must identify the authenticated caller. Also published as an MCP tool to an agent acting on the user’s behalf, never to a machine identity — see the read operation; the write always targets the consenting user’s own preferences. Successful updates emit an audit event even below the automatic risk floor; marked privacy decision fields carry before/after values. A write to `privacy.consentedPurposes` is a consent decision: the server stamps `privacy.consentDecidedAt` with its own clock when the set changes or the caller claims a new decision, and ignores a caller-supplied instant.',
|
|
148
|
-
outcome: '
|
|
148
|
+
outcome: 'The user edits their own preferences and every changed group is saved at once; an agent acting for the user can change their preferences over MCP.',
|
|
149
149
|
responseStatuses: [
|
|
150
150
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The supplied preference sub-objects were merged and the new state is returned.' },
|
|
151
151
|
],
|
|
152
152
|
errorScenarios: [
|
|
153
153
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },
|
|
154
154
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },
|
|
155
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'One of the edited preference sub-objects fails schema validation.'
|
|
155
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'One of the edited preference sub-objects fails schema validation.' },
|
|
156
156
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },
|
|
157
157
|
],
|
|
158
158
|
idempotent: true,
|
|
@@ -170,7 +170,6 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
170
170
|
languagePreferences: {
|
|
171
171
|
primaryLanguage: 'fr',
|
|
172
172
|
fallbackLanguages: ['en'],
|
|
173
|
-
autoDetect: true,
|
|
174
173
|
useOrganizationDefault: false,
|
|
175
174
|
},
|
|
176
175
|
},
|
|
@@ -190,7 +189,7 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
190
189
|
errorScenarios: [
|
|
191
190
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },
|
|
192
191
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },
|
|
193
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`groups` is absent or empty, or names a block outside the vocabulary. A request naming nothing is rejected rather than answered with an empty write.'
|
|
192
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`groups` is absent or empty, or names a block outside the vocabulary. A request naming nothing is rejected rather than answered with an empty write.' },
|
|
194
193
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },
|
|
195
194
|
],
|
|
196
195
|
idempotent: true,
|
|
@@ -205,8 +204,6 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
205
204
|
...userPreferencesApiReferenceExample,
|
|
206
205
|
notifications: {
|
|
207
206
|
email: true,
|
|
208
|
-
push: true,
|
|
209
|
-
sms: false,
|
|
210
207
|
inApp: true,
|
|
211
208
|
},
|
|
212
209
|
// Resetting the regional group clears it to EMPTY rather than writing four values,
|
|
@@ -230,16 +227,15 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
230
227
|
],
|
|
231
228
|
}), { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF }), () => ({
|
|
232
229
|
layout: {
|
|
233
|
-
purpose: 'Mirror the preset’s four settings sections: notifications, privacy, regional, and language. UI theme is intentionally NOT a section here — `ui.theme` is
|
|
234
|
-
displayPurpose: 'End-user
|
|
235
|
-
summaryPurpose: '
|
|
230
|
+
purpose: 'Mirror the preset’s four settings sections: notifications, privacy, regional, and language. UI theme is intentionally NOT a section here — `ui.theme` is shown and edited only on the dedicated Appearance Settings-Hub panel (`AppPage_AppearanceSettings`); the editable duplicate was removed from this page (mirrors the preset’s omission note). Do not re-add an `appearance` section unless the preset reintroduces the ref. Each section is a titled card with NO description, on read and on edit: the titles name their contents, and a description under them only restated the title.',
|
|
231
|
+
displayPurpose: 'End-user Settings Hub → Preferences pane, edited in place: four titled cards of label-left / value-right rows. An unset value reads "No value" rather than disappearing, because on this pane "not chosen yet" is the information. Nested `ObjectScope` names in the preset must stay aligned with these section keys.',
|
|
232
|
+
summaryPurpose: 'A card of two bare values that need no label: the time zone and the primary interface language. The theme and the formatting locale are left out rather than labelled — a bare theme value names nothing, and the locale usually repeats the language word.',
|
|
236
233
|
sections: {
|
|
237
234
|
notifications: {
|
|
238
|
-
purpose: '
|
|
235
|
+
purpose: 'The two notification channels a person can switch off for their own affairs: email and in-app.',
|
|
239
236
|
whenToUse: 'Notification center onboarding and digest controls.',
|
|
240
237
|
textSlots: {
|
|
241
238
|
title: { purpose: 'Label the notifications section card.' },
|
|
242
|
-
description: { purpose: 'Explain binding to actual delivery channels in the worker layer.' },
|
|
243
239
|
},
|
|
244
240
|
},
|
|
245
241
|
privacy: {
|
|
@@ -247,7 +243,6 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
247
243
|
whenToUse: 'GDPR/CCPA style self-service privacy center.',
|
|
248
244
|
textSlots: {
|
|
249
245
|
title: { purpose: 'Label the privacy block.' },
|
|
250
|
-
description: { purpose: 'Cross-link to org-level policies when the deployment requires it.' },
|
|
251
246
|
},
|
|
252
247
|
},
|
|
253
248
|
regional: {
|
|
@@ -255,22 +250,20 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
|
|
|
255
250
|
whenToUse: 'First-day setup or travel scenarios.',
|
|
256
251
|
textSlots: {
|
|
257
252
|
title: { purpose: 'Label regional settings.' },
|
|
258
|
-
description: { purpose: 'State that changes affect formatting, not historical stored instant fields.' },
|
|
259
253
|
},
|
|
260
254
|
},
|
|
261
255
|
language: {
|
|
262
|
-
purpose: '
|
|
256
|
+
purpose: 'The primary language, the fallbacks used when it is not offered, and following the organization\u2019s language.',
|
|
263
257
|
whenToUse: 'Internationalized products and accessibility requirements.',
|
|
264
258
|
textSlots: {
|
|
265
259
|
title: { purpose: 'Label language preferences.' },
|
|
266
|
-
description: { purpose: 'Note interaction with org default language when `useOrganizationDefault` is true.' },
|
|
267
260
|
},
|
|
268
261
|
},
|
|
269
262
|
},
|
|
270
263
|
},
|
|
271
264
|
views: {
|
|
272
265
|
[Op.READ]: { purpose: 'Load self preferences for any settings surface.', whenToUse: 'Initial settings fetch.' },
|
|
273
|
-
[Op.UPDATE]: { purpose: '
|
|
266
|
+
[Op.UPDATE]: { purpose: 'Edit your own preferences. The view is named after what is being edited, like the admin and organization preference edits ("Update preferences"); the save button is the form\'s own. Every group changed is sent in one request.', whenToUse: 'The user changes settings in one or several groups and saves once.' },
|
|
274
267
|
[UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: { purpose: 'Danger-zone reset: the form is a multi-select over the preference blocks, and being CRITICAL it gates its submit behind type-to-confirm.', whenToUse: '“Restore defaults” CTA in advanced settings.' },
|
|
275
268
|
},
|
|
276
269
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-self-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qCAAqC,IAAI,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AACpI,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,mBAAmB,EACnB,qBAAqB,EACrB,8BAA8B,EAC9B,8DAA8D,IAAI,0BAA0B,GAC7F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,sCAAsC,EACtC,yCAAyC,GAC1C,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,qCAAqC,GAAG,2CAI7C,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,sCAAsC,CA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**\n * Resource: `userSelfPreferences` — Wildo SaaS engine specification (mixed).\n * Runtime: `user-self-preferences.shared.resources-config.schemas.ts`, schema `UserPreferencesSchema`.\n */\n\nimport { userSelfPreferencesResourceUIBehavior as userSelfPreferencesResourceUIBehaviorSource } 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 ResourcePrimaryScope,\n UserPreferenceGroup,\n UserPreferencesSchema,\n UserSelfPreferences_Operations,\n userSelfPreferencesResourceConfiguration_InitializationFactory as userSelfPreferencesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport { selfServiceFrontEndSuccessNotification } from './self-service-user-notifications.shared';\nimport {\n USER_PREFERENCES_EXAMPLE_USER_ID,\n userPreferencesApiReferenceExample,\n userPreferencesApiReferencePathExample,\n userPreferencesApiReferenceSummaryExample,\n} from './user-preferences-api-reference.examples';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userSelfPreferencesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userSelfPreferencesResourceUIBehavior = userSelfPreferencesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nexport const userSelfPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userSelfPreferencesResourceUIBehavior),\n resourceSpecification(\n userSelfPreferencesFactory,\n UserPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the signed-in user’s notification, privacy, UI, regional, and language preferences as a single document.',\n businessRole: 'Self-scoped preference store — same shape as org-admin `USER_PREFERENCES` but only `APP_USER` may call it here.',\n lifecycleRole:\n 'Seeded with product defaults when the user account is created, then updated by the signed-in user through the generic update or selective reset operations.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserPreferencesSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userSelfPreferencesResourceConfiguration_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: 'USER_SELF_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 customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserSelfPreferences_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userSelfPreferencesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary key for the preferences document.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record that owns this self-preference document — immutable after create.',\n whyItMatters: 'Scopes every self-serve read/write to the signed-in identity through the user-self access strategy, so a caller can only ever load or mutate their own preferences.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n notifications: schemaShape.notifications.objectSpec({\n meaning: 'Channel toggles (email, push, SMS, in-app) for notification fan-out.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'The person’s own privacy decisions: the optional purposes they granted (a set, each independent), when they last decided, and how much the application may collect. Writing `consentedPurposes` is a consent decision whose instant the server stamps; it is what the service consent gate and the consent prompt record.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n ui: schemaShape.ui.objectSpec({\n meaning: 'UI theme selection (light/dark/system) and related presentation defaults.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n regional: schemaShape.regional.objectSpec({\n meaning: 'Timezone, locale, and date/time presentation formats — every field OPTIONAL, because an absent one is not a gap but an inheritance. Formatting resolves member, then the organization\\u2019s own regional settings, then the framework floor, one field at a time, so a member who sets only a timezone still follows the tenant on date format. Omitting a field is therefore how a member says \\u201cwhatever my organization uses\\u201d, and sending a value is how they override it.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({\n meaning: 'Primary/fallback languages and auto-detect behavior for i18n.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.READ]: {\n // Seeded with the user, so a first read never 404s. That is why the caller never has to\n // create preferences, and it is the only part of the mechanism a reader needs.\n purpose: 'Return the signed-in user’s own preferences, ready for a settings screen to bind to. The `userId` path value must identify the authenticated caller; it is not an administrator-addressable user selector. Also published as an MCP tool to an agent acting on the user’s behalf — never to a machine identity, which carries no user and is therefore never offered this operation; the read always resolves the consenting user’s own preferences.',\n outcome: 'Client forms can bind to every subsection in one fetch; an agent acting for the user can read their preferences (locale/timezone/theme/notifications) over MCP.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own preferences document is returned with every subsection.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Load my notification, privacy and regional choices',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Load my preferences with their owning user context',\n request: userPreferencesApiReferencePathExample,\n response: {\n ...userPreferencesApiReferenceExample,\n user: { _id: USER_PREFERENCES_EXAMPLE_USER_ID },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Load the compact locale and appearance summary',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Change any subset of the preference groups in one save. The `userId` path value must identify the authenticated caller. Also published as an MCP tool to an agent acting on the user’s behalf, never to a machine identity — see the read operation; the write always targets the consenting user’s own preferences. Successful updates emit an audit event even below the automatic risk floor; marked privacy decision fields carry before/after values. A write to `privacy.consentedPurposes` is a consent decision: the server stamps `privacy.consentDecidedAt` with its own clock when the set changes or the caller claims a new decision, and ignores a caller-supplied instant.',\n outcome: 'A “Save settings” button can send every changed group at once; an agent acting for the user can change their preferences over MCP.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The supplied preference sub-objects were merged and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'One of the edited preference sub-objects fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Use French formats in the Europe/Paris timezone',\n request: {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n regional: {\n timezone: 'Europe/Paris',\n dateFormat: 'DD/MM/YYYY',\n timeFormat: '24h',\n locale: 'fr',\n },\n languagePreferences: {\n primaryLanguage: 'fr',\n fallbackLanguages: ['en'],\n autoDetect: true,\n useOrganizationDefault: false,\n },\n },\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS after generic UPDATE on self preferences.') },\n },\n [UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: {\n operationId: UserSelfPreferences_Operations.RESET_TO_DEFAULTS,\n purpose: 'Return the named preference blocks to product defaults. The request carries `groups` — one or more members of the closed `UserPreferenceGroup` vocabulary, whose values are the persisted block names — and a \"reset everything\" is expressed by naming every block, not by a separate flag.',\n outcome: 'Each named block is replaced by its schema defaults; a block the request does not name is left exactly as it was. Resetting `privacy` withdraws every granted purpose (the empty set), clears the decision instant so a consent surface asks again, and restores the default collection level. Governed notice, contract, and consent interactions are separate immutable release-bound records, are not members of this resource, and are never modified by a preferences reset.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The named preference blocks were reset to product defaults and the refreshed preferences are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`groups` is absent or empty, or names a block outside the vocabulary. A request naming nothing is rejected rather than answered with an empty write.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Restore notification and regional defaults without changing privacy or language',\n request: {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n groups: [UserPreferenceGroup.NOTIFICATIONS, UserPreferenceGroup.REGIONAL],\n },\n response: {\n ...userPreferencesApiReferenceExample,\n notifications: {\n email: true,\n push: true,\n sms: false,\n inApp: true,\n },\n // Resetting the regional group clears it to EMPTY rather than writing four values,\n // and that is what \"default\" means here: every regional field is optional, so an\n // absent one is inherited from the organization's own regional record and only then\n // from the framework floor. Writing `UTC`/`en` back would be the opposite — it would\n // record a fresh explicit choice that the tenant can never override again.\n regional: {},\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS after reset operation completes.') },\n },\n },\n businessConstraints: [\n 'A preferences row is created eagerly from schema defaults when the user account is created. There is no public self-service CREATE operation; a missing row is a provisioning failure, not a normal client lifecycle state.',\n 'The `userId` URL segment identifies the authenticated user-self scope. Supplying another user id never turns this API into an administrative preferences API.',\n 'UPDATE accepts selected preference blocks, but a supplied block is validated as that block’s complete object. Send all fields of each block you change.',\n 'RESET_TO_DEFAULTS is selective: only groups named in the request are replaced. It does not alter separate governed-document interaction records.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n purpose: 'Mirror the preset’s four settings sections: notifications, privacy, regional, and language. UI theme is intentionally NOT a section here — `ui.theme` is read-only in the summary projection and is edited via the dedicated Appearance Settings-Hub panel (`AppPage_AppearanceSettings`); the editable duplicate was removed from this page (mirrors the preset’s omission note). Do not re-add an `appearance` section unless the preset reintroduces the ref.',\n displayPurpose: 'End-user settings tabs; nested `ObjectScope` names in the preset must stay aligned with these section keys.',\n summaryPurpose: 'Condensed summary with theme + timezone + primary language.',\n sections: {\n notifications: {\n purpose: 'Channel-level opt-in matrix for email/push/SMS/in-app.',\n whenToUse: 'Notification center onboarding and digest controls.',\n textSlots: {\n title: { purpose: 'Label the notifications section card.' },\n description: { purpose: 'Explain binding to actual delivery channels in the worker layer.' },\n },\n },\n privacy: {\n purpose: 'Consent and data-processing toggles that affect compliance posture.',\n whenToUse: 'GDPR/CCPA style self-service privacy center.',\n textSlots: {\n title: { purpose: 'Label the privacy block.' },\n description: { purpose: 'Cross-link to org-level policies when the deployment requires it.' },\n },\n },\n regional: {\n purpose: 'Timezone and format preferences for scheduling and numbers.',\n whenToUse: 'First-day setup or travel scenarios.',\n textSlots: {\n title: { purpose: 'Label regional settings.' },\n description: { purpose: 'State that changes affect formatting, not historical stored instant fields.' },\n },\n },\n language: {\n purpose: 'Primary and fallback languages with auto-detect options.',\n whenToUse: 'Internationalized products and accessibility requirements.',\n textSlots: {\n title: { purpose: 'Label language preferences.' },\n description: { purpose: 'Note interaction with org default language when `useOrganizationDefault` is true.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Load self preferences for any settings surface.', whenToUse: 'Initial settings fetch.' },\n [Op.UPDATE]: { purpose: 'Save all tabs in one DTO.', whenToUse: '“Save” with multi-section dirty state.' },\n [UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: { purpose: 'Danger-zone reset: the form is a multi-select over the preference blocks, and being CRITICAL it gates its submit behind type-to-confirm.', whenToUse: '“Restore defaults” CTA in advanced settings.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"user-self-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qCAAqC,IAAI,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AACpI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAA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AS,EAAE,yBAAyB,EAAE;QAC/G,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,mOAAmO,EAAE,SAAS,EAAE,oEAAoE,EAAE;QAC9U,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,EAAE,EAAE,OAAO,EAAE,0IAA0I,EAAE,SAAS,EAAE,8CAA8C,EAAE;KACvQ;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userSelfPreferences` — Wildo SaaS engine specification (mixed).\n * Runtime: `user-self-preferences.shared.resources-config.schemas.ts`, schema `UserPreferencesSchema`.\n */\n\nimport { userSelfPreferencesResourceUIBehavior as userSelfPreferencesResourceUIBehaviorSource } 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 ResourcePrimaryScope,\n UserPreferenceGroup,\n UserPreferencesSchema,\n UserSelfPreferences_Operations,\n userSelfPreferencesResourceConfiguration_InitializationFactory as userSelfPreferencesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport { selfServiceFrontEndSuccessNotification } from './self-service-user-notifications.shared';\nimport {\n USER_PREFERENCES_EXAMPLE_USER_ID,\n userPreferencesApiReferenceExample,\n userPreferencesApiReferencePathExample,\n userPreferencesApiReferenceSummaryExample,\n} from './user-preferences-api-reference.examples';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userSelfPreferencesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userSelfPreferencesResourceUIBehavior = userSelfPreferencesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nexport const userSelfPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userSelfPreferencesResourceUIBehavior),\n resourceSpecification(\n userSelfPreferencesFactory,\n UserPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the signed-in user’s notification, privacy, UI, regional, and language preferences as a single document.',\n businessRole: 'Self-scoped preference store — same shape as org-admin `USER_PREFERENCES` but only `APP_USER` may call it here.',\n lifecycleRole:\n 'Seeded with product defaults when the user account is created, then updated by the signed-in user through the generic update or selective reset operations.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserPreferencesSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userSelfPreferencesResourceConfiguration_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: 'USER_SELF_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 customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserSelfPreferences_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userSelfPreferencesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary key for the preferences document.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record that owns this self-preference document — immutable after create.',\n whyItMatters: 'Scopes every self-serve read/write to the signed-in identity through the user-self access strategy, so a caller can only ever load or mutate their own preferences.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n notifications: schemaShape.notifications.objectSpec({\n meaning: 'Channel toggles for notifications about the person\\u2019s own affairs: `email` for notification emails, `inApp` for the pop-ups and notification centre. There is no SMS or push switch because the application sends neither.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'The person’s own privacy decisions: the optional purposes they granted (a set, each independent), when they last decided, and how much the application may collect. Writing `consentedPurposes` is a consent decision whose instant the server stamps; it is what the service consent gate and the consent prompt record.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n ui: schemaShape.ui.objectSpec({\n meaning: 'UI theme selection (light/dark/system) and related presentation defaults.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n regional: schemaShape.regional.objectSpec({\n meaning: 'Timezone, locale, and date/time presentation formats — every field OPTIONAL, because an absent one is not a gap but an inheritance. Formatting resolves member, then the organization\\u2019s own regional settings, then the framework floor, one field at a time, so a member who sets only a timezone still follows the tenant on date format. Omitting a field is therefore how a member says \\u201cwhatever my organization uses\\u201d, and sending a value is how they override it.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({\n meaning: 'The language the person reads in (`primaryLanguage`), the languages to use in order when that one is not offered (`fallbackLanguages`, used by the interface and by the emails sent to them), and whether to follow the organization\\u2019s language instead.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.READ]: {\n // Seeded with the user, so a first read never 404s. That is why the caller never has to\n // create preferences, and it is the only part of the mechanism a reader needs.\n purpose: 'Return the signed-in user’s own preferences, ready for a settings screen to bind to. The `userId` path value must identify the authenticated caller; it is not an administrator-addressable user selector. Also published as an MCP tool to an agent acting on the user’s behalf — never to a machine identity, which carries no user and is therefore never offered this operation; the read always resolves the consenting user’s own preferences.',\n outcome: 'Client forms can bind to every subsection in one fetch; an agent acting for the user can read their preferences (locale/timezone/theme/notifications) over MCP.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own preferences document is returned with every subsection.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Load my notification, privacy and regional choices',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Load my preferences with their owning user context',\n request: userPreferencesApiReferencePathExample,\n response: {\n ...userPreferencesApiReferenceExample,\n user: { _id: USER_PREFERENCES_EXAMPLE_USER_ID },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Load the compact locale and appearance summary',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Change any subset of the preference groups in one save. The `userId` path value must identify the authenticated caller. Also published as an MCP tool to an agent acting on the user’s behalf, never to a machine identity — see the read operation; the write always targets the consenting user’s own preferences. Successful updates emit an audit event even below the automatic risk floor; marked privacy decision fields carry before/after values. A write to `privacy.consentedPurposes` is a consent decision: the server stamps `privacy.consentDecidedAt` with its own clock when the set changes or the caller claims a new decision, and ignores a caller-supplied instant.',\n outcome: 'The user edits their own preferences and every changed group is saved at once; an agent acting for the user can change their preferences over MCP.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The supplied preference sub-objects were merged and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'One of the edited preference sub-objects fails schema validation.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Use French formats in the Europe/Paris timezone',\n request: {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n regional: {\n timezone: 'Europe/Paris',\n dateFormat: 'DD/MM/YYYY',\n timeFormat: '24h',\n locale: 'fr',\n },\n languagePreferences: {\n primaryLanguage: 'fr',\n fallbackLanguages: ['en'],\n useOrganizationDefault: false,\n },\n },\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS after generic UPDATE on self preferences.') },\n },\n [UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: {\n operationId: UserSelfPreferences_Operations.RESET_TO_DEFAULTS,\n purpose: 'Return the named preference blocks to product defaults. The request carries `groups` — one or more members of the closed `UserPreferenceGroup` vocabulary, whose values are the persisted block names — and a \"reset everything\" is expressed by naming every block, not by a separate flag.',\n outcome: 'Each named block is replaced by its schema defaults; a block the request does not name is left exactly as it was. Resetting `privacy` withdraws every granted purpose (the empty set), clears the decision instant so a consent surface asks again, and restores the default collection level. Governed notice, contract, and consent interactions are separate immutable release-bound records, are not members of this resource, and are never modified by a preferences reset.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The named preference blocks were reset to product defaults and the refreshed preferences are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`groups` is absent or empty, or names a block outside the vocabulary. A request naming nothing is rejected rather than answered with an empty write.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Restore notification and regional defaults without changing privacy or language',\n request: {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n groups: [UserPreferenceGroup.NOTIFICATIONS, UserPreferenceGroup.REGIONAL],\n },\n response: {\n ...userPreferencesApiReferenceExample,\n notifications: {\n email: true,\n inApp: true,\n },\n // Resetting the regional group clears it to EMPTY rather than writing four values,\n // and that is what \"default\" means here: every regional field is optional, so an\n // absent one is inherited from the organization's own regional record and only then\n // from the framework floor. Writing `UTC`/`en` back would be the opposite — it would\n // record a fresh explicit choice that the tenant can never override again.\n regional: {},\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS after reset operation completes.') },\n },\n },\n businessConstraints: [\n 'A preferences row is created eagerly from schema defaults when the user account is created. There is no public self-service CREATE operation; a missing row is a provisioning failure, not a normal client lifecycle state.',\n 'The `userId` URL segment identifies the authenticated user-self scope. Supplying another user id never turns this API into an administrative preferences API.',\n 'UPDATE accepts selected preference blocks, but a supplied block is validated as that block’s complete object. Send all fields of each block you change.',\n 'RESET_TO_DEFAULTS is selective: only groups named in the request are replaced. It does not alter separate governed-document interaction records.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n purpose: 'Mirror the preset’s four settings sections: notifications, privacy, regional, and language. UI theme is intentionally NOT a section here — `ui.theme` is shown and edited only on the dedicated Appearance Settings-Hub panel (`AppPage_AppearanceSettings`); the editable duplicate was removed from this page (mirrors the preset’s omission note). Do not re-add an `appearance` section unless the preset reintroduces the ref. Each section is a titled card with NO description, on read and on edit: the titles name their contents, and a description under them only restated the title.',\n displayPurpose: 'End-user Settings Hub → Preferences pane, edited in place: four titled cards of label-left / value-right rows. An unset value reads \"No value\" rather than disappearing, because on this pane \"not chosen yet\" is the information. Nested `ObjectScope` names in the preset must stay aligned with these section keys.',\n summaryPurpose: 'A card of two bare values that need no label: the time zone and the primary interface language. The theme and the formatting locale are left out rather than labelled — a bare theme value names nothing, and the locale usually repeats the language word.',\n sections: {\n notifications: {\n purpose: 'The two notification channels a person can switch off for their own affairs: email and in-app.',\n whenToUse: 'Notification center onboarding and digest controls.',\n textSlots: {\n title: { purpose: 'Label the notifications section card.' },\n },\n },\n privacy: {\n purpose: 'Consent and data-processing toggles that affect compliance posture.',\n whenToUse: 'GDPR/CCPA style self-service privacy center.',\n textSlots: {\n title: { purpose: 'Label the privacy block.' },\n },\n },\n regional: {\n purpose: 'Timezone and format preferences for scheduling and numbers.',\n whenToUse: 'First-day setup or travel scenarios.',\n textSlots: {\n title: { purpose: 'Label regional settings.' },\n },\n },\n language: {\n purpose: 'The primary language, the fallbacks used when it is not offered, and following the organization\\u2019s language.',\n whenToUse: 'Internationalized products and accessibility requirements.',\n textSlots: {\n title: { purpose: 'Label language preferences.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Load self preferences for any settings surface.', whenToUse: 'Initial settings fetch.' },\n [Op.UPDATE]: { purpose: 'Edit your own preferences. The view is named after what is being edited, like the admin and organization preference edits (\"Update preferences\"); the save button is the form\\'s own. Every group changed is sent in one request.', whenToUse: 'The user changes settings in one or several groups and saves once.' },\n [UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: { purpose: 'Danger-zone reset: the form is a multi-select over the preference blocks, and being CRITICAL it gates its submit behind type-to-confirm.', whenToUse: '“Restore defaults” CTA in advanced settings.' },\n },\n }),\n);\n"]}
|
|
@@ -80,14 +80,14 @@ export const userSelfProfilesResourceSpecification = resourceSpecificationFromFr
|
|
|
80
80
|
meaning: 'Profile avatar — a single uploaded square image (≤ 2 MB, ≤ 1024px) stored as the standard file reference and rendered as a square avatar. Upload-only via the `z_file()` image pipeline; no external-URL branch.',
|
|
81
81
|
}),
|
|
82
82
|
bio: schemaShape.bio.stringSpec({
|
|
83
|
-
meaning: 'Long-form biography. Authored as markdown (source textarea on edit) and rendered as rich markdown on the read view.
|
|
83
|
+
meaning: 'Long-form biography. Authored as markdown (source textarea on edit) and rendered as rich markdown on the read view. When unset, the settings pane shows its row as "No value" so it can be filled in place.',
|
|
84
84
|
}),
|
|
85
85
|
phoneNumber: schemaShape.phoneNumber.stringSpec({
|
|
86
86
|
meaning: 'E.164 phone used for contact and verification flows. Edited via the international phone input (country selector + national number); displayed in formatted international style.',
|
|
87
87
|
semanticRole: 'identifier',
|
|
88
88
|
}),
|
|
89
89
|
title: schemaShape.title.stringSpec({
|
|
90
|
-
meaning: 'Professional title or role label for org directory cards
|
|
90
|
+
meaning: 'Professional title or role label for org directory cards, shown bare under the person’s name on a card and omitted there when unset. On the settings pane an unset title shows as "No value" so it can be filled in place.',
|
|
91
91
|
}),
|
|
92
92
|
},
|
|
93
93
|
operations: {
|
|
@@ -111,7 +111,7 @@ export const userSelfProfilesResourceSpecification = resourceSpecificationFromFr
|
|
|
111
111
|
],
|
|
112
112
|
errorScenarios: [
|
|
113
113
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },
|
|
114
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation.'
|
|
114
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation.' },
|
|
115
115
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the signed-in user (profiles are one-per-user; use UPDATE instead).' },
|
|
116
116
|
],
|
|
117
117
|
idempotent: false,
|
|
@@ -145,7 +145,7 @@ export const userSelfProfilesResourceSpecification = resourceSpecificationFromFr
|
|
|
145
145
|
],
|
|
146
146
|
errorScenarios: [
|
|
147
147
|
{ code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },
|
|
148
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.'
|
|
148
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.' },
|
|
149
149
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has no profile document to update yet (materialize it with CREATE first).' },
|
|
150
150
|
],
|
|
151
151
|
idempotent: true,
|
|
@@ -165,8 +165,8 @@ export const userSelfProfilesResourceSpecification = resourceSpecificationFromFr
|
|
|
165
165
|
// do NOT re-document identity/contact/profile here unless the preset
|
|
166
166
|
// reintroduces the refs (the structural-slot validator fails otherwise).
|
|
167
167
|
purpose: 'Single flat settings-row list for the self profile — no section grouping.',
|
|
168
|
-
displayPurpose: 'End-user “Profile” settings
|
|
169
|
-
summaryPurpose: '
|
|
168
|
+
displayPurpose: 'End-user “Profile” settings, edited in place: a flat label-left / value-right row list in the same order as the form (first name, last name, display name, job title, picture, phone, bio). Unset rows read "No value" rather than disappearing, so each can be filled in place.',
|
|
169
|
+
summaryPurpose: 'A card naming the person — the display name, else first + last name — with their job title beneath it as a bare value (omitted when unset). The name parts are not repeated as rows.',
|
|
170
170
|
sections: {},
|
|
171
171
|
},
|
|
172
172
|
views: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-self-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GA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AAE,CAAC,CAAC;IACL,MAAM,EAAE;QACN,6DAA6D;QAC7D,kEAAkE;QAClE,yEAAyE;QACzE,qEAAqE;QACrE,yEAAyE;QACzE,OAAO,EAAE,2EAA2E;QACpF,cAAc,EAAE,wEAAwE;QACxF,cAAc,EAAE,uDAAuD;QACvE,QAAQ,EAAE,EAAE;KACb;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,SAAS,EAAE,sBAAsB,EAAE;QACzG,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,SAAS,EAAE,wBAAwB,EAAE;QACjH,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,SAAS,EAAE,+CAA+C,EAAE;KACxH;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userSelfProfiles` — Wildo SaaS engine specification (mixed).\n * Runtime: `user-self-profiles.shared.resources-config.schemas.ts`, schema `UserProfileSchema`.\n */\n\nimport { userSelfProfilesResourceUIBehavior as userSelfProfilesResourceUIBehaviorSource } 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 ResourcePrimaryScope,\n UserProfileSchema,\n userSelfProfilesResourceConfiguration_InitializationFactory as userSelfProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport {\n selfServiceFrontEndSuccessNotification,\n} from './self-service-user-notifications.shared';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userSelfProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userSelfProfilesResourceUIBehavior = userSelfProfilesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nexport const userSelfProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userSelfProfilesResourceUIBehavior),\n resourceSpecification(\n userSelfProfilesFactory,\n UserProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the end user’s own profile card: name, avatar, bio, and contact details separate from org-admin `USER_PROFILES`.',\n businessRole: 'Self-scoped profile storage that still follows the same document shape as admin-managed profiles for merging in `UserContext`.',\n lifecycleRole: 'Created on first self-provision, updated through self-service operations, deleted with the user aggregate.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userSelfProfilesResourceConfiguration_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: 'USER_SELF_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 },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userSelfProfilesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary key for the user’s profile document.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record that owns this self profile document — immutable after create in self-service flows.',\n whyItMatters: 'Scopes profile reads/writes to the signed-in identity so a caller can only self-provision and edit their own profile card, never another user’s.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n firstName: schemaShape.firstName.stringSpec({\n meaning: 'Legal or preferred given name shown across the product.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n lastName: schemaShape.lastName.stringSpec({\n meaning: 'Family name for sorting, directory, and exports.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n displayName: schemaShape.displayName.stringSpec({\n meaning: 'Optional friendly label overriding `firstName`+`lastName` in UI when set.',\n }),\n avatar: schemaShape.avatar.fileSpec({\n meaning: 'Profile avatar — a single uploaded square image (≤ 2 MB, ≤ 1024px) stored as the standard file reference and rendered as a square avatar. Upload-only via the `z_file()` image pipeline; no external-URL branch.',\n }),\n bio: schemaShape.bio.stringSpec({\n meaning: 'Long-form biography. Authored as markdown (source textarea on edit) and rendered as rich markdown on the read view. Hidden on display when empty.',\n }),\n phoneNumber: schemaShape.phoneNumber.stringSpec({\n meaning: 'E.164 phone used for contact and verification flows. Edited via the international phone input (country selector + national number); displayed in formatted international style.',\n semanticRole: 'identifier',\n }),\n title: schemaShape.title.stringSpec({\n meaning: 'Professional title or role label for org directory cards. Hidden on the read view when empty.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Load the caller’s profile row for settings and people pickers.',\n outcome: 'Clients receive the structured profile used in avatars, mentions, and HR-style views.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own profile document is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has not yet materialized a profile document (none exists until first CREATE).' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'First-time materialization of the self profile after signup when the row does not yet exist.',\n outcome: 'The user has a persisted profile document bound to their `userId`.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A profile document was materialized for the signed-in user and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the signed-in user (profiles are one-per-user; use UPDATE instead).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Materialize my own profile after signup',\n request: {\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada',\n },\n response: {\n _id: 'userprofile_01HX2…',\n userId: 'user_01HX2…',\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n communications: {\n notification: selfServiceFrontEndSuccessNotification('Acknowledge first profile creation in FRONT_END_SUCCESS toast channel (runtime).'),\n },\n },\n [Op.UPDATE]: {\n purpose: 'Patch profile fields the user is allowed to edit directly.',\n outcome: 'Names, titles, and bio text update without an administrator.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has no profile document to update yet (materialize it with CREATE first).' },\n ],\n idempotent: true,\n communications: {\n notification: selfServiceFrontEndSuccessNotification('Acknowledge a generic profile UPDATE via FRONT_END_SUCCESS.'),\n },\n },\n },\n\n businessConstraints: [\n 'The admin counterpart `USER_PROFILES` reuses the same `UserProfileSchema` but with APP_ADMIN roles — do not conflate RLS or audit semantics between the two types.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n // Flat, sectionless layout (2026-07): the preset dropped the\n // identity/contact/profile section grouping in favour of a single\n // settings-row field list. `sections` is therefore intentionally empty —\n // do NOT re-document identity/contact/profile here unless the preset\n // reintroduces the refs (the structural-slot validator fails otherwise).\n purpose: 'Single flat settings-row list for the self profile — no section grouping.',\n displayPurpose: 'End-user “Profile” settings; a flat label-left / value-right row list.',\n summaryPurpose: 'Compact name + title line for self-profile summaries.',\n sections: {},\n },\n views: {\n [Op.READ]: { purpose: 'Read self profile in settings or onboarding.', whenToUse: 'Default profile tab.' },\n [Op.CREATE]: { purpose: 'Initial profile create wizard / empty state CTA.', whenToUse: 'First-run experiences.' },\n [Op.UPDATE]: { purpose: 'Generic profile edit form host.', whenToUse: 'When multiple fields change in a single save.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"user-self-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kCAAkC,IAAI,wCAAwC,EAAE,MAAM,8BAA8B,CAAC;AAC9H,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,iBAAiB,EACjB,2DAA2D,IAAI,uBAAuB,GACvF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB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E,SAAS,EAAE,wBAAwB,EAAE;QACjH,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,SAAS,EAAE,+CAA+C,EAAE;KACxH;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userSelfProfiles` — Wildo SaaS engine specification (mixed).\n * Runtime: `user-self-profiles.shared.resources-config.schemas.ts`, schema `UserProfileSchema`.\n */\n\nimport { userSelfProfilesResourceUIBehavior as userSelfProfilesResourceUIBehaviorSource } 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 ResourcePrimaryScope,\n UserProfileSchema,\n userSelfProfilesResourceConfiguration_InitializationFactory as userSelfProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport {\n selfServiceFrontEndSuccessNotification,\n} from './self-service-user-notifications.shared';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userSelfProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userSelfProfilesResourceUIBehavior = userSelfProfilesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nexport const userSelfProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userSelfProfilesResourceUIBehavior),\n resourceSpecification(\n userSelfProfilesFactory,\n UserProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the end user’s own profile card: name, avatar, bio, and contact details separate from org-admin `USER_PROFILES`.',\n businessRole: 'Self-scoped profile storage that still follows the same document shape as admin-managed profiles for merging in `UserContext`.',\n lifecycleRole: 'Created on first self-provision, updated through self-service operations, deleted with the user aggregate.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userSelfProfilesResourceConfiguration_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: 'USER_SELF_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 },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userSelfProfilesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary key for the user’s profile document.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record that owns this self profile document — immutable after create in self-service flows.',\n whyItMatters: 'Scopes profile reads/writes to the signed-in identity so a caller can only self-provision and edit their own profile card, never another user’s.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n firstName: schemaShape.firstName.stringSpec({\n meaning: 'Legal or preferred given name shown across the product.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n lastName: schemaShape.lastName.stringSpec({\n meaning: 'Family name for sorting, directory, and exports.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n displayName: schemaShape.displayName.stringSpec({\n meaning: 'Optional friendly label overriding `firstName`+`lastName` in UI when set.',\n }),\n avatar: schemaShape.avatar.fileSpec({\n meaning: 'Profile avatar — a single uploaded square image (≤ 2 MB, ≤ 1024px) stored as the standard file reference and rendered as a square avatar. Upload-only via the `z_file()` image pipeline; no external-URL branch.',\n }),\n bio: schemaShape.bio.stringSpec({\n meaning: 'Long-form biography. Authored as markdown (source textarea on edit) and rendered as rich markdown on the read view. When unset, the settings pane shows its row as \"No value\" so it can be filled in place.',\n }),\n phoneNumber: schemaShape.phoneNumber.stringSpec({\n meaning: 'E.164 phone used for contact and verification flows. Edited via the international phone input (country selector + national number); displayed in formatted international style.',\n semanticRole: 'identifier',\n }),\n title: schemaShape.title.stringSpec({\n meaning: 'Professional title or role label for org directory cards, shown bare under the person’s name on a card and omitted there when unset. On the settings pane an unset title shows as \"No value\" so it can be filled in place.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Load the caller’s profile row for settings and people pickers.',\n outcome: 'Clients receive the structured profile used in avatars, mentions, and HR-style views.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own profile document is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has not yet materialized a profile document (none exists until first CREATE).' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'First-time materialization of the self profile after signup when the row does not yet exist.',\n outcome: 'The user has a persisted profile document bound to their `userId`.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A profile document was materialized for the signed-in user and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the signed-in user (profiles are one-per-user; use UPDATE instead).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Materialize my own profile after signup',\n request: {\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada',\n },\n response: {\n _id: 'userprofile_01HX2…',\n userId: 'user_01HX2…',\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n communications: {\n notification: selfServiceFrontEndSuccessNotification('Acknowledge first profile creation in FRONT_END_SUCCESS toast channel (runtime).'),\n },\n },\n [Op.UPDATE]: {\n purpose: 'Patch profile fields the user is allowed to edit directly.',\n outcome: 'Names, titles, and bio text update without an administrator.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has no profile document to update yet (materialize it with CREATE first).' },\n ],\n idempotent: true,\n communications: {\n notification: selfServiceFrontEndSuccessNotification('Acknowledge a generic profile UPDATE via FRONT_END_SUCCESS.'),\n },\n },\n },\n\n businessConstraints: [\n 'The admin counterpart `USER_PROFILES` reuses the same `UserProfileSchema` but with APP_ADMIN roles — do not conflate RLS or audit semantics between the two types.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n // Flat, sectionless layout (2026-07): the preset dropped the\n // identity/contact/profile section grouping in favour of a single\n // settings-row field list. `sections` is therefore intentionally empty —\n // do NOT re-document identity/contact/profile here unless the preset\n // reintroduces the refs (the structural-slot validator fails otherwise).\n purpose: 'Single flat settings-row list for the self profile — no section grouping.',\n displayPurpose: 'End-user “Profile” settings, edited in place: a flat label-left / value-right row list in the same order as the form (first name, last name, display name, job title, picture, phone, bio). Unset rows read \"No value\" rather than disappearing, so each can be filled in place.',\n summaryPurpose: 'A card naming the person — the display name, else first + last name — with their job title beneath it as a bare value (omitted when unset). The name parts are not repeated as rows.',\n sections: {},\n },\n views: {\n [Op.READ]: { purpose: 'Read self profile in settings or onboarding.', whenToUse: 'Default profile tab.' },\n [Op.CREATE]: { purpose: 'Initial profile create wizard / empty state CTA.', whenToUse: 'First-run experiences.' },\n [Op.UPDATE]: { purpose: 'Generic profile edit form host.', whenToUse: 'When multiple fields change in a single save.' },\n },\n }),\n);\n"]}
|