@wildo-ai/saas-specifications 1.1.3 → 1.1.4
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/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-rating.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/article.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/blog-posting.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/breadcrumb-list.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/faq-page.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/organization.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/review.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/website.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-completeness-statement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +118 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +65 -3
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +498 -7
- 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 +472 -19
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +2 -0
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +2 -0
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/error-message-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- 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 +9 -9
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-validation.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/inherit-from.d.ts.map +1 -1
- package/dist/esm/_core/market/is-benefit-available.d.ts.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-context-block.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-scoring.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -18
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +22 -16
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +17 -11
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +12 -8
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +12 -8
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +16 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.js +0 -20
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
- package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification-registry-alignment.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-type-member-name.types.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/system-email-template-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/translation-slot-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -1
- package/dist/esm/_core/utils/retention-marker-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/validate-field-shapes.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-idea.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-mission.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-problem.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +8 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +8 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/specification-content-validation-state.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +11 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +37 -4
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +2 -2
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
- 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.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +22 -9
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +2002 -29
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +30 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +40 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +30 -14
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +14 -6
- 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-sources.schemas.d.ts.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 +29 -0
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.d.ts.map +1 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/index.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.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.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.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.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.map +1 -1
- package/dist/esm/engine/applications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +47 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +355 -0
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/index.d.ts +1 -0
- package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/index.js +1 -0
- package/dist/esm/engine/auth/resources/index.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- 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.map +1 -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.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.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.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.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.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.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 +9 -1
- 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 +2 -0
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/index.d.ts.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.map +1 -1
- package/dist/esm/engine/billing/resources/billing-api-reference-examples.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.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.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js.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.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +69 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +316 -0
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
- 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.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/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +4 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +19 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/errors/index.d.ts.map +1 -1
- package/dist/esm/engine/features/_engine-feature-shared.d.ts.map +1 -1
- package/dist/esm/engine/features/advanced-analytics.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/directory-provisioning.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/index.d.ts.map +1 -1
- package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/security-event-export.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/single-sign-on.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/index.d.ts.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 +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/index.d.ts.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.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -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.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-code-block.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-image.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-web-preview.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-message.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-sources.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestions.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-decision-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-human-input-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-confirmation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-queue.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-task.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-tool.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-connection.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-controls.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-edge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-toolbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-capabilities.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-prompt-spec.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-context.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-model-selector.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-open-in-chat.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/shared/ai-loader.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/shared/ai-shimmer.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-checkpoint.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-inline-citation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-plan.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-reasoning.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.d.ts.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.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-home.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-router-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layouts-test-component.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-static-content-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-mfa-challenge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-consent.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logged-out.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logout-confirm.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-one-off-session.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-confirm-email.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-password-lost.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/avatar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-details.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-term.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/_display-field-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-duration.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-enum.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-audio.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-gallery.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-image.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-video.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.extra-props.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-phone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/notification-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/danger-zone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/empty-state.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/error-display.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-lock-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-prompt.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/loading-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/loading-spinner.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/operations-confirm-critical.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/progress.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/skeleton.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/toast.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-actor.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-agent-config.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.d.ts.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-artifact-browser.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-plan.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-stream.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-execution.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-detail.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-memory.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/_framework-layout-form-field-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/_low-level-preset-wrapper-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/autosave-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-content.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-description.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-error.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-title.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-control.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-description.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-field.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-message.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-root.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/checkbox.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/switch.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle-group-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/calendar-day-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/calendar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/radio-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/radio-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/file/file-upload.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/file/image-crop.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-addon.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-textarea.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/number/range-slider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/number/slider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/password-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-duration.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-phone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/form-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-announcement.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-banner.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-checklist-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-checklist.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-modal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-onboarding-view.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-survey.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-tooltip.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-tour.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/chart-echarts.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/chart-widget.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-composite.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-execution.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-full-custom.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-not-found.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/aspect-ratio.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/carousel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/divider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/resizable-panel-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/scroll-area.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-legend.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-overlay-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/activity-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/command-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/control-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/menubar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/notification-center.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/quick-action-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/quick-switcher.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/status-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/toolbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/breadcrumb.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/command.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/menu-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/navbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/sidebar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/alert-dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/alert.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/drawer.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/sheet.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/context-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/dropdown-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/hover-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/popover.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/tooltip.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-achievement-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/_framework-layout-resource-layout-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-action.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-breadcrumb.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-container-dialogs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-container-nested.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-create.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-danger-zone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list-table.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operation-bulk.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-pagination.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-expandable.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary-table-row.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-search-table.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-search.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-update.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit-search.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/pagination.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stacked-layout.frontend-component.specification.d.ts.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/table.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/heading.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/strong.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/subheading.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text-link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/full-custom-views/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/index.d.ts.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.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.map +1 -1
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/index.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.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.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/authentication.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.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.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js +10 -1
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +10 -1
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.js +10 -1
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/index.d.ts.map +1 -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 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +10 -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 +10 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/_engine-role-shared.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-billing-manager.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-marketing-editor.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-super-admin.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-viewer.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-anonymous.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-public.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-user.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-admin.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-guest.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-manager.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-member.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-owner.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/index.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.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 +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/index.d.ts.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.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-api-reference-targets.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-environment-identity.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
- package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity-links.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-identity-links.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,qBAAqB,IAAI,EAAE,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,4DAA4D,GAC7D,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,E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ACzD,CAAC","sourcesContent":["/**\n * Resource: `userIdentityLinks` — Wildo SaaS engine specification (backend-only).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/users/user-identity-links.shared.schemas.ts → `UserIdentityLinkSchema`\n * - Factory: engine/saas-models/src/users/user-identity-links.shared.resources-config.schemas.ts\n * → `userIdentityLinksResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (a dedicated read path exists for GET /auth/identity-links at the app layer, but no\n * engine `resourceUIBehavior` preset is registered in presets-components for this type).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AuthScopeType,\n CoreResourceOperation as Op,\n ExternalIdentitySource,\n ResourcePrimaryScope,\n SsoConnectionType,\n UserIdentityLinkSchema,\n userIdentityLinksResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nexport const userIdentityLinksResourceSpecification = resourceSpecification(\n userIdentityLinksResourceConfiguration_InitializationFactory,\n UserIdentityLinkSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the OAuth/OIDC/SSO identity links that connect each managed user to their external provider identities (social or enterprise).',\n businessRole: 'The per-user system-of-record for which IdP subjects map to a Wildo `users` row during login, provisioning, and SCIM flows.',\n lifecycleRole: 'Rows are created on first link, updated when provider fields refresh, and timestamped for last use on every successful sign-in with that link.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserIdentityLinkSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userIdentityLinksResourceConfiguration_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_IDENTITY_LINKS',\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 notes: [\n 'All operations are `INTERNAL_CALL` in the resource config — the supported external read surface is the auth controller, not a generic CRUD controller.',\n 'No `userNotifications` / `m2mNotifications` on this resource; do not add communications.* blocks (invitation/alert emails are owned by adjacent services).',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for a single (user, provider, connection-type) link record stored in the identity-links collection.',\n whyItMatters: 'Deduplicates the identity-link upsert key used during JIT provisioning and IdP re-login.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The Wildo user that owns this external identity link.',\n whyItMatters: 'Drives the fan-out to “which app user is logging in from which IdP account”.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n connectionType: schemaShape.connectionType.enumSpec({\n meaning: 'Whether this link is a lightweight social sign-in or a stricter enterprise connector.',\n whyItMatters: 'Changes validation rules, admin UX, and whether an explicit enterprise scope is permitted.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoConnectionType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [SsoConnectionType.SOCIAL]: { meaning: 'Consumer or workspace-social IdP (no tenant-specific enterprise contract).' },\n [SsoConnectionType.ENTERPRISE]: { meaning: 'SAML/enterprise contract bound to exactly one organization or application scope.' },\n },\n }),\n\n providerRef: schemaShape.providerRef.stringSpec({\n meaning: 'Stable connector string for the provider family (e.g. google, microsoft, oidc, github).',\n whyItMatters: 'Picks the correct OIDC/SAML client configuration and certificate trust chain during login.',\n semanticRole: 'code',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n providerUserId: schemaShape.providerUserId.stringSpec({\n meaning: 'The end-user’s stable subject at the provider (IdP `sub` or directory object id, depending on IdP).',\n whyItMatters: 'The lookup anchor when reconciling a returning login with the same external account.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n providerEmail: schemaShape.providerEmail.stringSpec({\n meaning: 'Email the IdP attests for the user at link time, used for UI display and support correlation.',\n whyItMatters: 'Often the human-readable handle operators see; may diverge from the Wildo account email in edge cases.',\n semanticRole: 'identifier',\n }),\n\n providerDisplayName: schemaShape.providerDisplayName.stringSpec({\n meaning: 'Display name the IdP returned on last profile refresh, if any.',\n whyItMatters: 'Powers friendly UI in device/session lists and admin tooling when available.',\n }),\n\n providerAvatarUrl: schemaShape.providerAvatarUrl.stringSpec({\n meaning: 'Profile picture URL from the provider when the IdP includes one in claims.',\n whyItMatters: 'Improves UX without re-uploading a separate app avatar, when permitted by policy.',\n semanticRole: 'uri',\n }),\n\n providerRawProfile: schemaShape.providerRawProfile.objectSpec({\n meaning: 'Opaque provider claims map (`string` keys → `unknown` values) retained for support and debugging — not shown to the end user.',\n whyItMatters: 'Gives the auth team enough raw context to diagnose mapping bugs without a second data fetch; treated as operator-only and excluded from public APIs.',\n }),\n\n scopeType: schemaShape.scopeType.enumSpec({\n meaning: 'The exact tenant kind that owns an enterprise identity link; omitted for social links.',\n whyItMatters: 'Prevents application identifiers from being interpreted as organization identifiers by membership, grant, and audit logic.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuthScopeType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuthScopeType.ORGANIZATION]: { meaning: 'The link belongs to an organization-scoped enterprise connection.' },\n [AuthScopeType.APPLICATION]: { meaning: 'The link belongs to an application-scoped enterprise connection.' },\n },\n }),\n\n organizationId: schemaShape.organizationId.stringSpec({\n meaning: 'The owning organization for an organization-scoped enterprise identity link.',\n whyItMatters:\n 'Binds the identity to the same organization that owns membership and organization-type grants. Forbidden for social and application-scoped links.',\n semanticRole: 'identifier',\n }),\n\n applicationId: schemaShape.applicationId.stringSpec({\n meaning: 'The owning application for an application-scoped enterprise identity link.',\n whyItMatters:\n 'Preserves application tenancy without manufacturing an organization membership or overloading `organizationId`.',\n semanticRole: 'identifier',\n }),\n\n connectionId: schemaShape.connectionId.stringSpec({\n meaning: 'Enterprise connector record identifier inside the owning organization or application scope.',\n whyItMatters:\n 'Distinguishes multiple enterprise connectors in one scope and is required for enterprise links; social links omit it.',\n semanticRole: 'identifier',\n }),\n\n source: schemaShape.source.enumSpec({\n meaning: 'How this record was first established (OIDC, SAML, SCIM, …).',\n whyItMatters: 'Distinguishes interactive JIT links from service-driven SCIM or migration imports when auditing the graph.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ExternalIdentitySource',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ExternalIdentitySource.OAUTH2]: { meaning: 'Created through an OAuth 2.0 interactive flow that does not provide OpenID Connect identity semantics.' },\n [ExternalIdentitySource.OIDC]: { meaning: 'Created through an OpenID Connect interactive flow.' },\n [ExternalIdentitySource.SAML]: { meaning: 'Created through a SAML-based enterprise sign-in or assertion exchange.' },\n [ExternalIdentitySource.SCIM]: { meaning: 'Provisioned or reconciled from directory SCIM sync rather than a browser sign-in only.' },\n },\n }),\n\n linkedAt: schemaShape.linkedAt.dateSpec({\n meaning: 'When the provider first bound this `providerUserId` to the Wildo user (insert-time timestamp).',\n whyItMatters: 'Ordering field for “account linking history” views and compliance exports.',\n temporalRole: 'creation',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({\n meaning: 'The last successful sign-in (or link refresh) that used this exact identity link.',\n whyItMatters: 'Idle-link cleanup policies and support triage can rely on inactivity heuristics from this value.',\n temporalRole: 'occurred',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Fetch one specific identity link row, typically through internal service calls when reconciling a provider subject.',\n outcome: 'The caller can inspect the stored provider email, type, and connector metadata to finish auth or audit.',\n whenToUse: 'Use when a backend flow already has the object id. The user-facing “list my links” door is `GET /auth/identity-links`, served by the authentication-method management controller, not a generic public READ — that door is where the last-method guard and the re-authentication requirement live, which a resource route would not carry.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The identity-link record was found and its provider metadata (email, type, connector ids) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the owning user nor a trusted auth/admin service permitted to read another user’s provider bindings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id.' },\n ],\n idempotent: true,\n },\n\n [Op.LIST]: {\n purpose: 'List identity links (usually filtered by `userId`) to render settings pages or to audit provider coverage.',\n outcome: 'Operators or services receive the full set of provider bindings for a user in one query plan.',\n whenToUse: 'Use when the auth controller or admin service enumerates a user’s connected accounts. A person reading back their OWN links reaches `GET /auth/identity-links`, and removes one through `DELETE /auth/identity-links/:linkId`; both are already routed, so this operation is the persistence beneath them rather than a screen an application still has to build.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) set of the target user’s provider bindings is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller tries to enumerate another user’s links without the auth-controller / admin role; a user may only list their own connected accounts.' },\n ],\n idempotent: true,\n },\n\n [Op.CREATE]: {\n purpose: 'Insert a new identity link when a first-time OIDC or SAML sign-in or SCIM import introduces a new provider subject.',\n outcome: 'The Wildo user record gains a new stable mapping row that future sign-ins can hit without a migration.',\n whenToUse: 'Use in JIT account linking — never from untrusted public callers without a verified IdP attestation first.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new identity-link record binds the provider subject to the Wildo user; future sign-ins resolve through it without re-provisioning.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The link payload fails schema validation (e.g. missing provider subject fields, an incompatible connection/source pair, or enterprise scope coordinates that do not match `scopeType`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is an untrusted/public actor with no verified IdP attestation; JIT linking is gated to the auth service.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced `users` row does not exist, so there is no identity to bind the provider subject to.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This provider subject is already linked for the same connection type, provider, external subject, and exact enterprise scope/connection coordinates, so a second binding is rejected.' },\n ],\n idempotent: false,\n },\n\n [Op.UPDATE]: {\n purpose: 'Refresh profile metadata (email, name, raw claims) or move ownership fields after transposition/merge events.',\n outcome: 'The next login sees up-to-date provider data without re-creating a new link row id.',\n whenToUse: 'Use when a provider re-issues a subject change or when a manual data-fix adjusts enterprise connector ids.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The link’s provider metadata (or ownership fields after a merge) was refreshed and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The refreshed fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the auth-service / admin role required to mutate this identity link.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id.' },\n ],\n idempotent: true,\n },\n\n [Op.DELETE]: {\n purpose: 'Remove an identity link when a user explicitly disconnects a provider or an admin unlinks a compromised binding.',\n outcome: 'That provider can no longer authenticate into this Wildo user until a fresh link is created.',\n whenToUse: 'Use when policy demands removing a specific IdP mapping without deleting the entire user account.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The identity link was removed; that provider subject can no longer authenticate into the user until a fresh link is created. No body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the owning user disconnecting their own provider nor an admin unlinking a compromised binding.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id (the provider was never linked, or was already unlinked).' },\n ],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'The unique constraint at the data layer is `(userId, providerRef, connectionType)`; schema-level prose defers to the engine migration index because link-uniqueness is a database truth source.',\n 'Enterprise fields (`organizationId`, `connectionId`) are optional in the shared schema: social connections omit them while enterprise ones rely on them for tenant scoping — authors must not flatten those semantics in AI prompts into “always present”.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"user-identity-links.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-identity-links.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,qBAAqB,IAAI,EAAE,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,4DAA4D,GAC7D,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qB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F,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,CAAC","sourcesContent":["/**\n * Resource: `userIdentityLinks` — Wildo SaaS engine specification (backend-only).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/users/user-identity-links.shared.schemas.ts → `UserIdentityLinkSchema`\n * - Factory: engine/saas-models/src/users/user-identity-links.shared.resources-config.schemas.ts\n * → `userIdentityLinksResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none (a dedicated read path exists for GET /auth/identity-links at the app layer, but no\n * engine `resourceUIBehavior` preset is registered in presets-components for this type).\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n AuthScopeType,\n CoreResourceOperation as Op,\n ExternalIdentitySource,\n ResourcePrimaryScope,\n SsoConnectionType,\n UserIdentityLinkSchema,\n userIdentityLinksResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nexport const userIdentityLinksResourceSpecification = resourceSpecification(\n userIdentityLinksResourceConfiguration_InitializationFactory,\n UserIdentityLinkSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the OAuth/OIDC/SSO identity links that connect each managed user to their external provider identities (social or enterprise).',\n businessRole: 'The per-user system-of-record for which IdP subjects map to a Wildo `users` row during login, provisioning, and SCIM flows.',\n lifecycleRole: 'Rows are created on first link, updated when provider fields refresh, and timestamped for last use on every successful sign-in with that link.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserIdentityLinkSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userIdentityLinksResourceConfiguration_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_IDENTITY_LINKS',\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 notes: [\n 'All operations are `INTERNAL_CALL` in the resource config — the supported external read surface is the auth controller, not a generic CRUD controller.',\n 'No `userNotifications` / `m2mNotifications` on this resource; do not add communications.* blocks (invitation/alert emails are owned by adjacent services).',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for a single (user, provider, connection-type) link record stored in the identity-links collection.',\n whyItMatters: 'Deduplicates the identity-link upsert key used during JIT provisioning and IdP re-login.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The Wildo user that owns this external identity link.',\n whyItMatters: 'Drives the fan-out to “which app user is logging in from which IdP account”.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n connectionType: schemaShape.connectionType.enumSpec({\n meaning: 'Whether this link is a lightweight social sign-in or a stricter enterprise connector.',\n whyItMatters: 'Changes validation rules, admin UX, and whether an explicit enterprise scope is permitted.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SsoConnectionType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [SsoConnectionType.SOCIAL]: { meaning: 'Consumer or workspace-social IdP (no tenant-specific enterprise contract).' },\n [SsoConnectionType.ENTERPRISE]: { meaning: 'SAML/enterprise contract bound to exactly one organization or application scope.' },\n },\n }),\n\n providerRef: schemaShape.providerRef.stringSpec({\n meaning: 'Stable connector string for the provider family (e.g. google, microsoft, oidc, github).',\n whyItMatters: 'Picks the correct OIDC/SAML client configuration and certificate trust chain during login.',\n semanticRole: 'code',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n providerUserId: schemaShape.providerUserId.stringSpec({\n meaning: 'The end-user’s stable subject at the provider (IdP `sub` or directory object id, depending on IdP).',\n whyItMatters: 'The lookup anchor when reconciling a returning login with the same external account.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n providerEmail: schemaShape.providerEmail.stringSpec({\n meaning: 'Email the IdP attests for the user at link time, used for UI display and support correlation.',\n whyItMatters: 'Often the human-readable handle operators see; may diverge from the Wildo account email in edge cases.',\n semanticRole: 'identifier',\n }),\n\n providerDisplayName: schemaShape.providerDisplayName.stringSpec({\n meaning: 'Display name the IdP returned on last profile refresh, if any.',\n whyItMatters: 'Powers friendly UI in device/session lists and admin tooling when available.',\n }),\n\n providerAvatarUrl: schemaShape.providerAvatarUrl.stringSpec({\n meaning: 'Profile picture URL from the provider when the IdP includes one in claims.',\n whyItMatters: 'Improves UX without re-uploading a separate app avatar, when permitted by policy.',\n semanticRole: 'uri',\n }),\n\n providerRawProfile: schemaShape.providerRawProfile.objectSpec({\n meaning: 'Opaque provider claims map (`string` keys → `unknown` values) retained for support and debugging — not shown to the end user.',\n whyItMatters: 'Gives the auth team enough raw context to diagnose mapping bugs without a second data fetch; treated as operator-only and excluded from public APIs.',\n }),\n\n scopeType: schemaShape.scopeType.enumSpec({\n meaning: 'The exact tenant kind that owns an enterprise identity link; omitted for social links.',\n whyItMatters: 'Prevents application identifiers from being interpreted as organization identifiers by membership, grant, and audit logic.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AuthScopeType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AuthScopeType.ORGANIZATION]: { meaning: 'The link belongs to an organization-scoped enterprise connection.' },\n [AuthScopeType.APPLICATION]: { meaning: 'The link belongs to an application-scoped enterprise connection.' },\n },\n }),\n\n organizationId: schemaShape.organizationId.stringSpec({\n meaning: 'The owning organization for an organization-scoped enterprise identity link.',\n whyItMatters:\n 'Binds the identity to the same organization that owns membership and organization-type grants. Forbidden for social and application-scoped links.',\n semanticRole: 'identifier',\n }),\n\n applicationId: schemaShape.applicationId.stringSpec({\n meaning: 'The owning application for an application-scoped enterprise identity link.',\n whyItMatters:\n 'Preserves application tenancy without manufacturing an organization membership or overloading `organizationId`.',\n semanticRole: 'identifier',\n }),\n\n connectionId: schemaShape.connectionId.stringSpec({\n meaning: 'Enterprise connector record identifier inside the owning organization or application scope.',\n whyItMatters:\n 'Distinguishes multiple enterprise connectors in one scope and is required for enterprise links; social links omit it.',\n semanticRole: 'identifier',\n }),\n\n source: schemaShape.source.enumSpec({\n meaning: 'How this record was first established (OIDC, SAML, SCIM, …).',\n whyItMatters: 'Distinguishes interactive JIT links from service-driven SCIM or migration imports when auditing the graph.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ExternalIdentitySource',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ExternalIdentitySource.OAUTH2]: { meaning: 'Created through an OAuth 2.0 interactive flow that does not provide OpenID Connect identity semantics.' },\n [ExternalIdentitySource.OIDC]: { meaning: 'Created through an OpenID Connect interactive flow.' },\n [ExternalIdentitySource.SAML]: { meaning: 'Created through a SAML-based enterprise sign-in or assertion exchange.' },\n [ExternalIdentitySource.SCIM]: { meaning: 'Provisioned or reconciled from directory SCIM sync rather than a browser sign-in only.' },\n },\n }),\n\n linkedAt: schemaShape.linkedAt.dateSpec({\n meaning: 'When the provider first bound this `providerUserId` to the Wildo user (insert-time timestamp).',\n whyItMatters: 'Ordering field for “account linking history” views and compliance exports.',\n temporalRole: 'creation',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({\n meaning: 'The last successful sign-in (or link refresh) that used this exact identity link.',\n whyItMatters: 'Idle-link cleanup policies and support triage can rely on inactivity heuristics from this value.',\n temporalRole: 'occurred',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Fetch one specific identity link row, typically through internal service calls when reconciling a provider subject.',\n outcome: 'The caller can inspect the stored provider email, type, and connector metadata to finish auth or audit.',\n whenToUse: 'Use when a backend flow already has the object id. The user-facing “list my links” door is `GET /auth/identity-links`, served by the authentication-method management controller, not a generic public READ — that door is where the last-method guard and the re-authentication requirement live, which a resource route would not carry.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The identity-link record was found and its provider metadata (email, type, connector ids) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the owning user nor a trusted auth/admin service permitted to read another user’s provider bindings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id.' },\n ],\n idempotent: true,\n },\n\n [Op.LIST]: {\n purpose: 'List identity links (usually filtered by `userId`) to render settings pages or to audit provider coverage.',\n outcome: 'Operators or services receive the full set of provider bindings for a user in one query plan.',\n whenToUse: 'Use when the auth controller or admin service enumerates a user’s connected accounts. A person reading back their OWN links reaches `GET /auth/identity-links`, and removes one through `DELETE /auth/identity-links/:linkId`; both are already routed, so this operation is the persistence beneath them rather than a screen an application still has to build.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) set of the target user’s provider bindings is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller tries to enumerate another user’s links without the auth-controller / admin role; a user may only list their own connected accounts.' },\n ],\n idempotent: true,\n },\n\n [Op.CREATE]: {\n purpose: 'Insert a new identity link when a first-time OIDC or SAML sign-in or SCIM import introduces a new provider subject.',\n outcome: 'The Wildo user record gains a new stable mapping row that future sign-ins can hit without a migration.',\n whenToUse: 'Use in JIT account linking — never from untrusted public callers without a verified IdP attestation first.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A new identity-link record binds the provider subject to the Wildo user; future sign-ins resolve through it without re-provisioning.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The link payload fails schema validation (e.g. missing provider subject fields, an incompatible connection/source pair, or enterprise scope coordinates that do not match `scopeType`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is an untrusted/public actor with no verified IdP attestation; JIT linking is gated to the auth service.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced `users` row does not exist, so there is no identity to bind the provider subject to.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This provider subject is already linked for the same connection type, provider, external subject, and exact enterprise scope/connection coordinates, so a second binding is rejected.' },\n ],\n idempotent: false,\n },\n\n [Op.UPDATE]: {\n purpose: 'Refresh profile metadata (email, name, raw claims) or move ownership fields after transposition/merge events.',\n outcome: 'The next login sees up-to-date provider data without re-creating a new link row id.',\n whenToUse: 'Use when a provider re-issues a subject change or when a manual data-fix adjusts enterprise connector ids.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The link’s provider metadata (or ownership fields after a merge) was refreshed and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The refreshed fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the auth-service / admin role required to mutate this identity link.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id.' },\n ],\n idempotent: true,\n },\n\n [Op.DELETE]: {\n purpose: 'Remove an identity link when a user explicitly disconnects a provider or an admin unlinks a compromised binding.',\n outcome: 'That provider can no longer authenticate into this Wildo user until a fresh link is created.',\n whenToUse: 'Use when policy demands removing a specific IdP mapping without deleting the entire user account.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The identity link was removed; that provider subject can no longer authenticate into the user until a fresh link is created. No body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither the owning user disconnecting their own provider nor an admin unlinking a compromised binding.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No identity-link row exists for the supplied id (the provider was never linked, or was already unlinked).' },\n ],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'The unique constraint at the data layer is `(userId, providerRef, connectionType)`; schema-level prose defers to the engine migration index because link-uniqueness is a database truth source.',\n 'Enterprise fields (`organizationId`, `connectionId`) are optional in the shared schema: social connections omit them while enterprise ones rely on them for tenant scoping — authors must not flatten those semantics in AI prompts into “always present”.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-preferences-api-reference.examples.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"user-preferences-api-reference.examples.d.ts","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-preferences-api-reference.examples.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,gCAAgC,sBAAsB,CAAC;AACpE,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAE3E,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B9C,CAAC;AAEF,eAAO,MAAM,sCAAsC;;CAElD,CAAC;AAEF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;CAMrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-preferences.resource.specification.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"user-preferences.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AA8B/B,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAuNhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iCAAiC,IAAI,uCAAuC,EAAE,MAAM,8BAA8B,CAAC;AAC5H,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,qBAAqB,EACrB,0DAA0D,IAAI,sBAAsB,GACrF,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,iCAAi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,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,gGAAgG;oBACzG,SAAS,EAAE,yEAAyE;iBACrF;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,mEAAmE;oBAC5E,SAAS,EAAE,gDAAgD;iBAC5D;aACF;SACF;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userPreferences` — Wildo SaaS engine specification (mixed, admin-leaning).\n * Schema: `UserPreferencesSchema` (same document shape as `userSelfPreferences`).\n */\n\nimport { userPreferencesResourceUIBehavior as userPreferencesResourceUIBehaviorSource } 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 UserPreferencesSchema,\n userPreferencesResourceConfiguration_InitializationFactory as userPreferencesFactory,\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 userPreferencesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userPreferencesResourceUIBehavior = userPreferencesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nexport const userPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userPreferencesResourceUIBehavior),\n resourceSpecification(\n userPreferencesFactory,\n UserPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Application-administration access to an addressed user’s preference document. Subject-facing access belongs exclusively to `USER_SELF_PREFERENCES`.',\n businessRole: 'Powers authorized support inspection and explicitly privileged preference corrections without republishing the self-service API under an addressable user route.',\n lifecycleRole: 'Created internally alongside the user and deleted internally with the user; administrators may read or update the existing row but cannot create or delete it over HTTP.',\n audience: LabelAudience.ADMIN,\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: 'userPreferencesResourceConfiguration_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_PREFERENCES',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userPreferencesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Preferences record id.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record that owns this preference document — immutable after create.',\n whyItMatters: 'Anchors the preference record to a single identity so admin/impersonation reads and self-serve writes always resolve one owner and never leak preferences across users.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n notifications: schemaShape.notifications.objectSpec({ meaning: 'Channel toggles.', importance: FieldSemanticImportance.PRIMARY }),\n privacy: schemaShape.privacy.objectSpec({ meaning: 'Privacy and consent data.', importance: FieldSemanticImportance.PRIMARY }),\n ui: schemaShape.ui.objectSpec({ meaning: 'Theme and presentation block.', importance: FieldSemanticImportance.PRIMARY }),\n regional: schemaShape.regional.objectSpec({ meaning: 'Timezone and format settings.', importance: FieldSemanticImportance.PRIMARY }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({ meaning: 'Language/locale block.', importance: FieldSemanticImportance.PRIMARY }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read the preference document of an addressed user through the application-administration API. This cross-subject operation requires `APP_ADMIN_VIEWER`; a user reading their own preferences uses `USER_SELF_PREFERENCES` instead.',\n outcome: 'Support and application administrators can inspect the exact preference state that the addressed user sees without impersonating that user.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The addressed user’s complete preference document 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 caller does not hold the application-administration viewer role.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The addressed user does not exist or has no preferences row because provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Inspect a user’s delivery, 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: 'Inspect 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: 'Inspect the compact locale and appearance summary',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the default preferences row from the trusted user-provisioning lifecycle.',\n outcome: 'Every newly created user starts with exactly one schema-default preferences row.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The internal provisioning hook created the preferences record.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The one-per-user preferences row already exists.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Correct selected preference blocks for an addressed user through the application-administration API. This cross-subject operation requires `APP_ADMIN_SUPER_ADMIN`; ordinary user changes use `USER_SELF_PREFERENCES`.',\n outcome: 'The selected blocks are replaced on the same preference document used by the self-service API, and the addressed user receives the updated state.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The addressed user’s preference document was updated and is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A supplied preference block fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the application super-administrator role.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The addressed user does not exist or has no preferences row because provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Correct the timezone used for a user’s scheduled work',\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 },\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS on UPDATE (runtime).') },\n },\n [Op.DELETE]: {\n purpose: 'Delete the preferences row as part of the trusted user-composition cascade.',\n outcome: 'The dependent preferences row is removed when its owning user is deleted.',\n responseStatuses: [{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The internal lifecycle cascade deleted the preferences record.' }],\n errorScenarios: [],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Registry `resourcePrimaryScope` is `USER_SELF` from the `USERS → USER_PREFERENCES` composition rel — the document is user-anchored even when operators edit it in admin UIs.',\n 'The only HTTP variants are administrator-addressed READ and UPDATE. CREATE exists solely for eager `createAsSystem` provisioning; DELETE exists solely for the USERS composition cascade.',\n '`USER_PREFERENCES` and `USER_SELF_PREFERENCES` resolve to the SAME collection. Subject-facing READ, UPDATE and RESET_TO_DEFAULTS belong only to the self resource; this resource never republishes them under `/users/{userId}`.',\n 'Both administrative variants explicitly admit cross-subject user administration and retain independent APP_ADMIN role gates. The path user id selects the subject only after that authorization succeeds.',\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 ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n purpose: 'Reuse the self-preference section structure (the admin preset sets its layout to the shared USER_SELF_PREFERENCES layout) so admin and user see identical field grouping: notifications/privacy/regional/language. UI theme is intentionally NOT a section here — the shared self-preferences layout omits it; theme is read-only in the summary and edited via the dedicated Appearance Settings-Hub panel. Do not re-add an appearance section unless the shared layout reintroduces the ref.',\n displayPurpose: 'Admin “Edit user preferences” or impersonation read-only view.',\n summaryPurpose: 'Theme, timezone, and language chips for list/table contexts.',\n sections: {\n notifications: {\n purpose: 'Per-channel opt-ins.',\n whenToUse: 'When support verifies notification storms or delivery issues.',\n textSlots: { title: { purpose: 'Notifications section label.' }, description: { purpose: 'Warn that admin edits may be audited in regulated tenants.' } },\n },\n privacy: {\n purpose: 'User privacy posture.',\n whenToUse: 'DSR and consent audits.',\n textSlots: { title: { purpose: 'Privacy section label.' }, description: { purpose: 'Tie to org default policies where applicable.' } },\n },\n regional: {\n purpose: 'Timezone and formats.',\n whenToUse: 'Scheduling support cases.',\n textSlots: { title: { purpose: 'Regional label.' }, description: { purpose: 'Remind that historical timestamps are not rewritten.' } },\n },\n language: {\n purpose: 'Language and fallback language stack.',\n whenToUse: 'i18n bug reports for a user.',\n textSlots: { title: { purpose: 'Language label.' }, description: { purpose: 'Reference auto-detect vs fixed locale behavior.' } },\n },\n },\n },\n views: {\n [Op.READ]: {\n variants: {\n admin: {\n purpose: 'Read preferences through the only public variant on this resource: application administration.',\n whenToUse: 'Back-office user-preferences inspection without impersonating the user.',\n },\n },\n },\n [Op.UPDATE]: {\n variants: {\n admin: {\n purpose: 'Update preferences on behalf of the user (super-admin / support).',\n whenToUse: 'Impersonation or break-glass preference fixes.',\n },\n },\n },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"user-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iCAAiC,IAAI,uCAAuC,EAAE,MAAM,8BAA8B,CAAC;AAC5H,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,qBAAqB,EACrB,0DAA0D,IAAI,sBAAsB,GACrF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6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QAAQ,EAAE;gBACR,OAAO,EAAE,uCAAuC;gBAChD,SAAS,EAAE,8BAA8B;gBACzC,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,iDAAiD,EAAE,EAAE;aAClI;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,gGAAgG;oBACzG,SAAS,EAAE,yEAAyE;iBACrF;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,mEAAmE;oBAC5E,SAAS,EAAE,gDAAgD;iBAC5D;aACF;SACF;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userPreferences` — Wildo SaaS engine specification (mixed, admin-leaning).\n * Schema: `UserPreferencesSchema` (same document shape as `userSelfPreferences`).\n */\n\nimport { userPreferencesResourceUIBehavior as userPreferencesResourceUIBehaviorSource } 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 UserPreferencesSchema,\n userPreferencesResourceConfiguration_InitializationFactory as userPreferencesFactory,\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 userPreferencesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userPreferencesResourceUIBehavior = userPreferencesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nexport const userPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userPreferencesResourceUIBehavior),\n resourceSpecification(\n userPreferencesFactory,\n UserPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Application-administration access to an addressed user’s preference document. Subject-facing access belongs exclusively to `USER_SELF_PREFERENCES`.',\n businessRole: 'Powers authorized support inspection and explicitly privileged preference corrections without republishing the self-service API under an addressable user route.',\n lifecycleRole: 'Created internally alongside the user and deleted internally with the user; administrators may read or update the existing row but cannot create or delete it over HTTP.',\n audience: LabelAudience.ADMIN,\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: 'userPreferencesResourceConfiguration_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_PREFERENCES',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userPreferencesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Preferences record id.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record that owns this preference document — immutable after create.',\n whyItMatters: 'Anchors the preference record to a single identity so admin/impersonation reads and self-serve writes always resolve one owner and never leak preferences across users.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n notifications: schemaShape.notifications.objectSpec({ meaning: 'Channel toggles.', importance: FieldSemanticImportance.PRIMARY }),\n privacy: schemaShape.privacy.objectSpec({ meaning: 'Privacy and consent data.', importance: FieldSemanticImportance.PRIMARY }),\n ui: schemaShape.ui.objectSpec({ meaning: 'Theme and presentation block.', importance: FieldSemanticImportance.PRIMARY }),\n regional: schemaShape.regional.objectSpec({ meaning: 'Timezone and format settings.', importance: FieldSemanticImportance.PRIMARY }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({ meaning: 'Language/locale block.', importance: FieldSemanticImportance.PRIMARY }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read the preference document of an addressed user through the application-administration API. This cross-subject operation requires `APP_ADMIN_VIEWER`; a user reading their own preferences uses `USER_SELF_PREFERENCES` instead.',\n outcome: 'Support and application administrators can inspect the exact preference state that the addressed user sees without impersonating that user.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The addressed user’s complete preference document 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 caller does not hold the application-administration viewer role.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The addressed user does not exist or has no preferences row because provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Inspect a user’s delivery, 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: 'Inspect 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: 'Inspect the compact locale and appearance summary',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the default preferences row from the trusted user-provisioning lifecycle.',\n outcome: 'Every newly created user starts with exactly one schema-default preferences row.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The internal provisioning hook created the preferences record.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The one-per-user preferences row already exists.' }],\n idempotent: false,\n },\n [Op.UPDATE]: {\n purpose: 'Correct selected preference blocks for an addressed user through the application-administration API. This cross-subject operation requires `APP_ADMIN_SUPER_ADMIN`; ordinary user changes use `USER_SELF_PREFERENCES`.',\n outcome: 'The selected blocks are replaced on the same preference document used by the self-service API, and the addressed user receives the updated state.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The addressed user’s preference document was updated and is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'A supplied preference block fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the application super-administrator role.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The addressed user does not exist or has no preferences row because provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Correct the timezone used for a user’s scheduled work',\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 },\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS on UPDATE (runtime).') },\n },\n [Op.DELETE]: {\n purpose: 'Delete the preferences row as part of the trusted user-composition cascade.',\n outcome: 'The dependent preferences row is removed when its owning user is deleted.',\n responseStatuses: [{ code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The internal lifecycle cascade deleted the preferences record.' }],\n errorScenarios: [],\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Registry `resourcePrimaryScope` is `USER_SELF` from the `USERS → USER_PREFERENCES` composition rel — the document is user-anchored even when operators edit it in admin UIs.',\n 'The only HTTP variants are administrator-addressed READ and UPDATE. CREATE exists solely for eager `createAsSystem` provisioning; DELETE exists solely for the USERS composition cascade.',\n '`USER_PREFERENCES` and `USER_SELF_PREFERENCES` resolve to the SAME collection. Subject-facing READ, UPDATE and RESET_TO_DEFAULTS belong only to the self resource; this resource never republishes them under `/users/{userId}`.',\n 'Both administrative variants explicitly admit cross-subject user administration and retain independent APP_ADMIN role gates. The path user id selects the subject only after that authorization succeeds.',\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 ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n purpose: 'Reuse the self-preference section structure (the admin preset sets its layout to the shared USER_SELF_PREFERENCES layout) so admin and user see identical field grouping: notifications/privacy/regional/language. UI theme is intentionally NOT a section here — the shared self-preferences layout omits it; theme is read-only in the summary and edited via the dedicated Appearance Settings-Hub panel. Do not re-add an appearance section unless the shared layout reintroduces the ref.',\n displayPurpose: 'Admin “Edit user preferences” or impersonation read-only view.',\n summaryPurpose: 'Theme, timezone, and language chips for list/table contexts.',\n sections: {\n notifications: {\n purpose: 'Per-channel opt-ins.',\n whenToUse: 'When support verifies notification storms or delivery issues.',\n textSlots: { title: { purpose: 'Notifications section label.' }, description: { purpose: 'Warn that admin edits may be audited in regulated tenants.' } },\n },\n privacy: {\n purpose: 'User privacy posture.',\n whenToUse: 'DSR and consent audits.',\n textSlots: { title: { purpose: 'Privacy section label.' }, description: { purpose: 'Tie to org default policies where applicable.' } },\n },\n regional: {\n purpose: 'Timezone and formats.',\n whenToUse: 'Scheduling support cases.',\n textSlots: { title: { purpose: 'Regional label.' }, description: { purpose: 'Remind that historical timestamps are not rewritten.' } },\n },\n language: {\n purpose: 'Language and fallback language stack.',\n whenToUse: 'i18n bug reports for a user.',\n textSlots: { title: { purpose: 'Language label.' }, description: { purpose: 'Reference auto-detect vs fixed locale behavior.' } },\n },\n },\n },\n views: {\n [Op.READ]: {\n variants: {\n admin: {\n purpose: 'Read preferences through the only public variant on this resource: application administration.',\n whenToUse: 'Back-office user-preferences inspection without impersonating the user.',\n },\n },\n },\n [Op.UPDATE]: {\n variants: {\n admin: {\n purpose: 'Update preferences on behalf of the user (super-admin / support).',\n whenToUse: 'Impersonation or break-glass preference fixes.',\n },\n },\n },\n },\n }),\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-profiles.resource.specification.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"user-profiles.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,uBAAuB,EAExB,MAAM,uBAAuB,CAAC;AA6D/B,eAAO,MAAM,iCAAiC;;;;;;;;;;iCAsZ7C,CAAC"}
|
|
@@ -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;IACxE,WAAW,EAAE,eAAe;IAC5B,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,CAAC;CACH,CAAC;AAEX,MAAM,4BAA4B,GAAG;IACnC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,8WAA8W;QAC9W,qQAAqQ;QACrQ,izBAAizB;KAClzB;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,EACD,GAAG,EAAE,CAAC,CAAC;IACL,MAAM,EAAE;QACN,gEAAgE;QAChE,oEAAoE;QACpE,oEAAoE;QACpE,2EAA2E;QAC3E,qEAAqE;QACrE,OAAO,EAAE,qFAAqF;QAC9F,cAAc,EAAE,oEAAoE;QACpF,cAAc,EAAE,sCAAsC;QACtD,QAAQ,EAAE,EAAE;KACb;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,wHAAwH;oBACjI,SAAS,EAAE,iIAAiI;iBAC7I;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,uEAAuE;oBAChF,SAAS,EAAE,kDAAkD;iBAC9D;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,wDAAwD;oBACjE,SAAS,EAAE,6GAA6G;iBACzH;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,kDAAkD;oBAC3D,SAAS,EAAE,yEAAyE;iBACrF;aACF;SACF;QACD,CAAC,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).', 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,MAAM,oBAAoB,GAAG;IAC3B,GAAG,EAAE,yBAAyB;IAC9B,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,UAA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AM,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).', 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"]}
|
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":["
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAiRpD,CAAC"}
|
|
@@ -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,E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E,0BAA0B,EAAE;oBAC9C,WAAW,EAAE,EAAE,OAAO,EAAE,6EAA6E,EAAE;iBACxG;aACF;YACD,QAAQ,EAAE;gBACR,OAAO,EAAE,0DAA0D;gBACnE,SAAS,EAAE,4DAA4D;gBACvE,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE;oBACjD,WAAW,EAAE,EAAE,OAAO,EAAE,mFAAmF,EAAE;iBAC9G;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iDAAiD,EAAE,SAAS,EAAE,yBAAyB,EAAE;QAC/G,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,wCAAwC,EAAE;QAC1G,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 (email, push, SMS, in-app) for notification fan-out.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'User-level privacy flags and consent mirrors for product features.',\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.',\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` changes only the two preference settings in that block. 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,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,CAAC,CAAC,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,wCAAwC,GAAG,8CAA8C,CACpG,6BAA6B,CAAC,qCAAqC,CAAC,EACpE,qBAAqB,CACnB,0BAA0B,EAC1B,qBAAqB,EACrB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,kH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C7F;aACF;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,qEAAqE;gBAC9E,SAAS,EAAE,8CAA8C;gBACzD,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;oBAC9C,WAAW,EAAE,EAAE,OAAO,EAAE,mEAAmE,EAAE;iBAC9F;aACF;YACD,QAAQ,EAAE;gBACR,OAAO,EAAE,6DAA6D;gBACtE,SAAS,EAAE,sCAAsC;gBACjD,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;oBAC9C,WAAW,EAAE,EAAE,OAAO,EAAE,6EAA6E,EAAE;iBACxG;aACF;YACD,QAAQ,EAAE;gBACR,OAAO,EAAE,0DAA0D;gBACnE,SAAS,EAAE,4DAA4D;gBACvE,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE;oBACjD,WAAW,EAAE,EAAE,OAAO,EAAE,mFAAmF,EAAE;iBAC9G;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iDAAiD,EAAE,SAAS,EAAE,yBAAyB,EAAE;QAC/G,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,wCAAwC,EAAE;QAC1G,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 (email, push, SMS, in-app) for notification fan-out.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'User-level privacy flags and consent mirrors for product features.',\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.',\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` changes only the two preference settings in that block. 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-self-profiles.resource.specification.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"user-self-profiles.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-self-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAwB/B,eAAO,MAAM,qCAAqC;;;;;;;;;;iCAgLjD,CAAC"}
|