@wildo-ai/saas-specifications 1.1.9 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.js +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +1 -1
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +11 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +11 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-choice.d.ts +72 -10
- package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-choice.js +144 -24
- package/dist/esm/_core/brand/brand-name-choice.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +41 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +19 -3
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +7 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-validation.js +24 -3
- package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts +61 -9
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening-view.js +42 -1
- package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +130 -2
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-name-screening.schemas.js +165 -3
- package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +25 -7
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
- package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +76 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +7 -2
- 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 +21 -3
- 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 +411 -13
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +281 -8
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +4 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +3 -0
- 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 +6 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +20 -0
- 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 +1 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +1 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +7 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +4 -3
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
- package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +55 -5
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +66 -2
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +42 -2
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +174 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +15 -0
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +15 -0
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.js +5 -1
- package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +32 -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-generation.schemas.js +41 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +33 -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-validation.js +134 -9
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +117 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +118 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +1 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +22 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +17 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +21 -5
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +7 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.js +39 -1
- package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +31 -5
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +81 -9
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +88 -7
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +13 -6
- 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 +13 -6
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.registry.js +2 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +24 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js +20 -0
- 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 +6 -6
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +6 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +6 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +26 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +21 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.js +13 -1
- package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -12
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +4 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +15 -3
- 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 +6 -3
- 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 +12 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +56 -3
- 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.family-aspects.js +9 -0
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +83 -0
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +102 -2
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +3 -2
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -2
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +2 -0
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts +41 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts.map +1 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.js +63 -0
- package/dist/esm/_core/requirements/requirements-pain-coverage.js.map +1 -0
- package/dist/esm/_core/requirements/requirements-references.schemas.d.ts +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.js +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +16 -0
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +12 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +13 -2
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js +32 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +65 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +53 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js +2 -0
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +56 -15
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js +73 -13
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +1 -16
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -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 +2 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +1 -1
- package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
- package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-derivation.js +410 -0
- package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +86 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.js +28 -0
- package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
- package/dist/esm/_core/service-method/service-method-validation.d.ts +35 -0
- package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method-validation.js +75 -0
- package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
- package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
- package/dist/esm/_core/service-method/service-method.schemas.d.ts +385 -0
- package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
- package/dist/esm/_core/service-method/service-method.schemas.js +372 -0
- package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +37 -5
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts +29 -3
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-validation.js +97 -5
- package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js +6 -1
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +521 -15
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.js +703 -23
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +78 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +92 -0
- package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +26 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +14 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +21 -5
- 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 +22 -4
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +119 -10
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +140 -7
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts +7 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js +7 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +103 -15
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +151 -21
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +7 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +7 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +36 -2
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.js +52 -4
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
- package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
- package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
- package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +608 -9
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +2962 -1078
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +15 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +138 -19
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +65 -0
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +81 -6
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +68 -7
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1631 -70
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
- package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +327 -3
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
- package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +403 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +825 -0
- package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +83 -8
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +167 -20
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +234 -35
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +255 -14
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +259 -18
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +216 -0
- package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +110 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +356 -5
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
- package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
- package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
- package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
- package/dist/esm/assurance/governed-document-release.d.ts +15 -1
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +3 -1
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/assurance.exports.d.ts +4 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +4 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +9 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -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 +33 -5
- 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 +9 -12
- 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 +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 +60 -6
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
- 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 +1 -0
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +2 -2
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +12 -4
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +46 -10
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +3 -2
- 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 +15 -4
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -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 +40 -11
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -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 +44 -3
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +7 -3
- 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 +40 -8
- 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 +14 -8
- 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 +72 -19
- 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 +2 -2
- 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 +6 -6
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +14 -13
- 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 +2 -2
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.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 +68 -12
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +75 -19
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +3 -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 +11 -7
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -0
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +4 -2
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +8 -7
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +6 -6
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +2 -2
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +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 +4 -0
- 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 +4 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +9 -5
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +16 -8
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +73 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +192 -0
- package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +5 -3
- 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 +19 -13
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +11 -6
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +14 -3
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
- package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +1 -1
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.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 +55 -11
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +300 -5
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
- 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/custom-branding.feature.specification.js +7 -3
- package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/index.d.ts +4 -2
- package/dist/esm/engine/features/index.d.ts.map +1 -1
- package/dist/esm/engine/features/index.js +6 -4
- package/dist/esm/engine/features/index.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -2
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +34 -15
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts +4 -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 +24 -3
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +31 -3
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -6
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
- package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
- package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
- package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
- package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +92 -0
- package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
- package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +73 -31
- 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 +118 -18
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -4
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
- package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
- package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +230 -0
- package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
- package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
- package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
- package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.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-bar.frontend-component.specification.js +6 -0
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
- 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-prompt-input.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.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-node.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
- 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 +3 -2
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.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/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
- package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.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-flows-actors.frontend-component.specification.js +5 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +7 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +29 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.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/user-dropdown.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
- package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
- package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
- 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 +6 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js +110 -0
- package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +21 -4
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +3 -3
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
- package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +5 -5
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +38 -10
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
- package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +181 -0
- package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +3 -3
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +7 -7
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +31 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +33 -7
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +16 -14
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +56 -53
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -2
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -4
- 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 +2 -2
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +2 -0
- 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 +3 -3
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.js +1 -3
- package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +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/organization.system-emails.specification.js +25 -15
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.js +1 -2
- package/dist/esm/engine/organizations/resources/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +5 -4
- 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 +114 -51
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +11 -10
- 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 +10 -7
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/{service-provider-relationships.resource.specification.d.ts → organization-relationships.resource.specification.d.ts} +73 -56
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +643 -0
- package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +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 +6 -4
- 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.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +4 -4
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +93 -43
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
- package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +8 -5
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.js +39 -0
- package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/index.d.ts +2 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -1
- package/dist/esm/engine/providers/index.js +5 -1
- package/dist/esm/engine/providers/index.js.map +1 -1
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +39 -0
- package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/mistral.provider.specification.js +2 -2
- package/dist/esm/engine/providers/mistral.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 +8 -6
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
- package/dist/esm/engine/roles/index.d.ts +2 -2
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +5 -5
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
- package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
- package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
- 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 +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -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 +1 -0
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -0
- 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 +3 -3
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +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 +4 -0
- 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 +6 -2
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
- 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 +33 -0
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +2 -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 +10 -4
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +17 -15
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/package.json +8 -8
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
- package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
- package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-of-record-partition-assignments.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,uCAAuC,EACvC,6CAA6C,EAC7C,6EAA6E,GAC9E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,0BAA0B,GAAG,kEAAkE,CAAC;AACtG,MAAM,0BAA0B,GAAG,kEAAkE,CAAC;AACtG,MAAM,oBAAoB,GAAG,8CAA8C,CAAC;AAC5E,MAAM,oBAAoB,GAAG,8CAA8C,CAAC;AAC5E,MAAM,0BAA0B,GAAG,iCAAiC,CAAC;AACrE,MAAM,gCAAgC,GAAG,gCAAgC,CAAC;AAE1E,MAAM,8BAA8B,GAAG;IACrC,GAAG,EAAE,0BAA0B;IAC/B,aAAa,EAAE,gCAAgC;IAC/C,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,IAAI;IACf,kBAAkB,EAAE,oBAAoB;IACxC,aAAa,EAAE,uFAAuF;IACtG,gBAAg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CAAC","sourcesContent":["/**\n * Resource: `systemOfRecordPartitionAssignments` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/systems-of-record/system-of-record-partition-assignments.shared.schemas.ts\n * → `SystemOfRecordPartitionAssignmentSchema`\n * - Factory: engine/saas-models/src/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.ts\n * → `systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory`\n * - Custom operations: `SystemOfRecordPartitionAssignments_Operations`\n *\n * ## What this resource is for\n *\n * A system of record — the operator's own Odoo, SAP, NetSuite or Dynamics deployment — holds several\n * PARTITIONS inside one corporate. Every row Wildo reads out of one is stamped with the application's\n * OWNER organization, so without this resource every member of that organization sees every partition:\n * the Spanish subsidiary's accountant reads the German company's invoices.\n *\n * The mechanism that confines members WITHIN one organization already exists — organization unit\n * narrowing. What it lacked was the edge from a remote partition key to a Wildo unit, and each row\n * here IS one such edge.\n *\n * ## Why APPLICATION scope, when every row names a unit of the owner organization\n *\n * Because assigning a partition is an OPERATOR act on the deployment's own configuration, not an act\n * inside a customer's tenant. An operator door on an ORGANIZATIONS-scoped resource would require a\n * cross-tenant declaration on every verb and a platform access grant per crossing — the ceremony for\n * reaching into a CUSTOMER's data, which this is not. The scope is expressed once, in the registry\n * relationship APPLICATION → SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS carrying `isPrimaryScope: true`;\n * the runtime config deliberately does not restate it.\n *\n * Why backend-only: there is NO entry for `[CoreResourceType.SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS]`\n * in any preset under engine/presets-components/src/config/resources/. The operator-facing partition\n * map is not built yet; today the resource is consumed by the read confinement and by the platform API.\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 CoreResourceOperation as Op,\n ResourcePrimaryScope,\n SystemOfRecordPartitionAssignmentSchema,\n SystemOfRecordPartitionAssignments_Operations,\n systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst PARTITION_ASSIGNMENT_DE_ID = 'system_of_record_partition_assignment_01J6R3A4B5C6D7E8F9G0H1J2KL';\nconst PARTITION_ASSIGNMENT_ES_ID = 'system_of_record_partition_assignment_01J6R3C5D6E7F8G9H0J1K2L3MN';\nconst PARTITION_UNIT_DE_ID = 'organization_unit_01J6R3E6F7G8H9J0K1L2M3N4PQ';\nconst PARTITION_UNIT_ES_ID = 'organization_unit_01J6R3G7H8J9K0L1M2N3P4Q5RS';\nconst PARTITION_OPERATOR_USER_ID = 'user_01J6R3J8K9L0M1N2P3Q4R5S6TU';\nconst PARTITION_EXAMPLE_APPLICATION_ID = 'app_01J6R3L9M0N1P2Q3R4S5T6U7VW';\n\nconst germanCompanyAssignmentExample = {\n _id: PARTITION_ASSIGNMENT_DE_ID,\n applicationId: PARTITION_EXAMPLE_APPLICATION_ID,\n system: 'odoo',\n remoteKey: '10',\n organizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Odoo company 10 is Acme Deutschland GmbH; its ledger belongs to the Deutschland unit.',\n assignedByUserId: PARTITION_OPERATOR_USER_ID,\n createdAt: '2026-09-18T09:00:00.000Z',\n updatedAt: '2026-09-18T09:00:00.000Z',\n};\n\nconst spanishCompanyAssignmentExample = {\n ...germanCompanyAssignmentExample,\n _id: PARTITION_ASSIGNMENT_ES_ID,\n remoteKey: '14',\n organizationUnitId: PARTITION_UNIT_ES_ID,\n justification: 'Odoo company 14 is Acme Iberia S.L.; its ledger belongs to the Iberia unit.',\n};\n\nexport const systemOfRecordPartitionAssignmentsResourceSpecification = resourceSpecification(\n systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory,\n SystemOfRecordPartitionAssignmentSchema,\n ({ schemaShape }) => ({\n purpose: 'Record which organization unit each remote partition of a system of record belongs to, so that members of a unit read that unit\\'s company and no other.',\n businessRole: 'The deployment\\'s partition map. It answers which remote company corresponds to which part of the org chart, who decided that, and why.',\n lifecycleRole: 'A platform administrator assigns a remote partition to a unit, stating a reason. A partition may later be MOVED to a different unit through `reassign`, which names the unit it is expected to be leaving and refuses if another administrator has already moved it. Removing the assignment makes the partition unreachable to every caller — it is not a narrowing, it withdraws a company from the product.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemOfRecordPartitionAssignmentSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'systemOfRecordPartitionAssignmentsResourceConfiguration_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: 'SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS',\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: 'SystemOfRecordPartitionAssignments_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'There is no public UPDATE. All three of `system`, `remoteKey` and `organizationUnitId` are `.excludeFromUpdate()`, which leaves an ordinary update with nothing to write — deliberately. An excluded-field write SUCCEEDS and persists nothing, so a plain UPDATE naming the unit would answer the caller as though it had worked; `reassign` exists so there is one writer, one contract, and one audit event.',\n 'The foreign key to `organizationUnits` buys EXISTENCE only. No relationship factory validates scope compatibility, and an application-scoped row written by a super-administrator resolves an empty write tenant, so that the unit belongs to the OWNER organization and is ACTIVE is measured in the custom implementation through the system door.',\n 'The lifecycle event is ONE type with a transition field — `SYSTEM_OF_RECORD_PARTITION_ASSIGNMENT_LIFECYCLE`, carrying `assigned` / `reassigned` / `unassigned`. Three event types would scatter one partition\\'s timeline across three buckets, and the question an auditor asks (\"who has been able to see the German company, and since when?\") is answered by reading one bucket in order.',\n 'All three write verbs are HIGH risk, which is inside the automatic audit floor, so a generic `RESOURCE_OPERATION_PERFORMED` row fires for each as well. What that row cannot carry — and the reason the dedicated event exists — is which unit, and on a move which unit it was before.',\n 'The assignment map is read on EVERY confined read and is deliberately NOT cached. Measured 2026-09-18: the indexed lookup is 0.078-0.177 ms at twenty times the realistic row count, against a 1.02 ms floor for the remote call it precedes. A cache would save a tenth of a millisecond and would hold a SECURITY CONFINEMENT, so a stale entry would mean a member still reading a company they were unassigned from.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one partition-to-unit assignment.',\n whyItMatters: 'The address of a reassignment, and the value every lifecycle event carries so one partition\\'s whole history can be reassembled from the audit trail.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The deployment this assignment configures.',\n whyItMatters: 'The scope anchor. Optional in the schema and MANDATORY in meaning — declared mandatory the resource does not load at all on a Mongo-persisted deployment, so addressing is carried by the relationship\\'s `isPrimaryScope` + `REQUIRES_CONTEXT` instead, which is what the URL builder actually reads.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n system: schemaShape.system.stringSpec({\n meaning: 'Which declared system-of-record INSTANCE this partition lives in — a `systemsOfRecord.<name>` key.',\n whyItMatters: 'Instance, never vendor, and the distinction is load-bearing: two Odoo deployments (`odoo-fr`, `odoo-de`) share one vendor facet and have entirely unrelated company ids. A key scoped to the vendor would let one deployment\\'s company 10 resolve through the other\\'s map.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n remoteKey: schemaShape.remoteKey.stringSpec({\n meaning: 'The partition\\'s key exactly as the remote system spells it, in canonical text.',\n whyItMatters: 'Stored as text across every vendor — Odoo\\'s `company_id` is an integer, Dataverse\\'s business unit is a GUID — and decoded through the facet\\'s partition codec before it reaches a query compiler. One stored shape plus a codec beats a column per vendor; comparing the stored `\\'10\\'` against Odoo\\'s integer `10` without decoding is exactly the defect the codec prevents.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationUnitId: schemaShape.organizationUnitId.foreignKeySpec({\n meaning: 'The unit of the owner organization this partition belongs to.',\n whyItMatters: 'The confinement itself. A member reaches this partition only through a role held at this unit or an ancestor of it; the read path maps a caller\\'s effective unit set back through these rows into remote keys, which is the only shape a remote predicate can actually be written in.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why this remote partition belongs to this unit, in the operator\\'s own words.',\n whyItMatters: 'Required, and it carries real weight rather than ceremony: an assignment is an access decision with NO expiry — unlike a time-bound grant, it stands until someone changes it — and the next operator looking at \"company 10 goes to Deutschland\" has no other way to learn whether that reflects the corporate structure or somebody\\'s guess during an incident.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n assignedByUserId: schemaShape.assignedByUserId.foreignKeySpec({\n meaning: 'The operator who last assigned or moved this partition.',\n whyItMatters: 'Server-authored from the session, never client-supplied. An assignment attributed to somebody else is a false line in the privileged-access record, and the field is what joins a partition\\'s reach to the person who decided it.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When this partition was first assigned to a unit.',\n whyItMatters: 'Survives a reassignment, because the row keeps its identity through a move — so it answers \"since when has this company been mapped at all\", while the lifecycle events answer \"and to whom, when\".',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the assignment last changed.',\n whyItMatters: 'Moves on a reassignment and nowhere else, since no other write can alter the row.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one partition assignment.',\n outcome: 'The unit a remote partition is mapped to, with the reason given for it.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment with the supplied id exists.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read the German company\\'s assignment',\n request: { systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID },\n response: germanCompanyAssignmentExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List partition assignments — the map an operator works from.',\n outcome: 'A page of assignments, filterable by instance, remote key or unit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A page of assignments is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'The whole map for one Odoo instance',\n request: { system: 'odoo', page: 1, limit: 20 },\n response: { data: [germanCompanyAssignmentExample, spanishCompanyAssignmentExample], total: 2, page: 1, limit: 20 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.COUNT]: {\n purpose: 'Count partition assignments matching a filter.',\n outcome: 'A number — how many remote partitions of an instance are mapped, or how many point at one unit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'How many companies are mapped to the Deutschland unit',\n request: { organizationUnitId: PARTITION_UNIT_DE_ID },\n response: { count: 1 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Assign a remote partition to an organization unit.',\n outcome: 'The partition becomes readable by members of that unit — and, through downward inheritance, by members holding a role at an ancestor of it. Until a partition is assigned it is readable by nobody.',\n whenToUse: 'A new company, subsidiary or business unit appears in the system of record and its rows must reach the part of the org chart that owns them.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The partition is now mapped to the unit.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because an assignment has no expiry and the reason is all a later operator has to go on.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit does not exist, or belongs to an organization other than the owner. The refusal does not say which — an assignment payload must not become a way to probe another tenant\\'s org chart.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit exists and is not ACTIVE. A separate refusal from the one above, because the remedy differs: activate the unit rather than pick another.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This instance and remote key are already assigned. One remote partition maps to at most one unit, and the pair is a persisted business key.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. A tenant administrator can never assign a partition — one who could would assign their own unit to a company they were never meant to see.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Map Odoo company 10 to the Deutschland unit',\n request: {\n system: 'odoo',\n remoteKey: '10',\n organizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Odoo company 10 is Acme Deutschland GmbH; its ledger belongs to the Deutschland unit.',\n },\n response: germanCompanyAssignmentExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [Op.DELETE]: {\n purpose: 'Unassign a remote partition.',\n outcome: 'The partition becomes unreachable to EVERY caller. The read path pushes down the set of assigned keys, so a key with no assignment is in nobody\\'s predicate.',\n whenToUse: 'A company leaves the group, or an assignment was made to the wrong instance and must be withdrawn rather than moved.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The assignment was removed.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment with the supplied id exists.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Withdraw the German company',\n request: { systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID },\n response: {},\n forStatus: HttpResponseStatusCode.NO_CONTENT_204,\n }],\n },\n [SystemOfRecordPartitionAssignments_Operations.REASSIGN]: {\n operationId: SystemOfRecordPartitionAssignments_Operations.REASSIGN,\n purpose: 'Move an assigned partition to a different unit, under a compare-and-swap on the unit it is leaving.',\n outcome: 'The partition\\'s rows become readable by the new unit and stop being readable by the old one. The row keeps its identity, so its `createdAt` provenance and its audit timeline survive the move.',\n whenToUse: 'The corporate structure changes — a subsidiary moves between divisions, or an assignment was made to the wrong unit.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The partition now belongs to the named unit, and the updated assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The target unit does not exist, belongs to another organization, or is not ACTIVE.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: '`expectedCurrentOrganizationUnitId` does not match the unit the partition currently belongs to — another administrator moved it first. A conflict rather than a not-found: the caller IS authorized and the payload IS valid; what refused is the current state.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Move the German company to the Iberia unit after a reorganization',\n request: {\n systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID,\n organizationUnitId: PARTITION_UNIT_ES_ID,\n expectedCurrentOrganizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Acme Deutschland now reports into the Iberia division after the 2026 reorganization.',\n },\n response: { ...germanCompanyAssignmentExample, organizationUnitId: PARTITION_UNIT_ES_ID, updatedAt: '2026-09-18T11:00:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n }),\n // The scope is an OPTION, not a config field — `resourceSpecification` cross-checks it against the\n // scope the registry derives from the `isPrimaryScope: true` relationship, and throws at MODULE\n // LOAD when neither signal is supplied. Authoring it inside the returned config instead reaches\n // that throw with `options` undefined, which is how this was caught.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"system-of-record-partition-assignments.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAAE,yDAAyD,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACjJ,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,uCAAuC,EACvC,6CAA6C,EAC7C,6EAA6E,GAC9E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,8CAA8C,EAAE,MAAM,6BAA6B,CAAC;AAC3K,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,0BAA0B,GAAG,kEAAkE,CAAC;AACtG,MAAM,0BAA0B,GAAG,kEAAkE,CAAC;AACtG,MAAM,oBAAoB,GAAG,8CAA8C,CAAC;AAC5E,MAAM,oBAAoB,GAAG,8CAA8C,CAAC;AAC5E,MAAM,0BAA0B,GAAG,iCAAiC,CAAC;AACrE,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C,iCAAiC,EAAE,oBAAoB;wBACvD,aAAa,EAAE,sFAAsF;qBACtG;oBACD,QAAQ,EAAE,EAAE,GAAG,8BAA8B,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,SAAS,EAAE,0BAA0B,EAAE;oBAChI,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;CACF,CAAC;AACF,mGAAmG;AACnG,gGAAgG;AAChG,gGAAgG;AAChG,qEAAqE;AACrE,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CACzD,EACD,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE;QACL,OAAO,EAAE,sJAAsJ;KAChK;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,mIAAmI;YAC5I,SAAS,EAAE,sGAAsG;SAClH;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,OAAO,EAAE,mFAAmF;YAC5F,SAAS,EAAE,kEAAkE;SAC9E;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,8GAA8G;YACvH,SAAS,EAAE,0FAA0F;SACtG;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,0FAA0F;YACnG,SAAS,EAAE,uEAAuE;SACnF;QACD,CAAC,6CAA6C,CAAC,QAAQ,CAAC,EAAE;YACxD,OAAO,EAAE,yGAAyG;YAClH,SAAS,EAAE,kDAAkD;SAC9D;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `systemOfRecordPartitionAssignments` — Wildo SaaS engine specification (application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/systems-of-record/system-of-record-partition-assignments.shared.schemas.ts\n * → `SystemOfRecordPartitionAssignmentSchema`\n * - Factory: engine/saas-models/src/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.ts\n * → `systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory`\n * - Custom operations: `SystemOfRecordPartitionAssignments_Operations`\n *\n * ## What this resource is for\n *\n * A system of record — the operator's own Odoo, SAP, NetSuite or Dynamics deployment — holds several\n * PARTITIONS inside one corporate. Every row Wildo reads out of one is stamped with the application's\n * OWNER organization, so without this resource every member of that organization sees every partition:\n * the Spanish subsidiary's accountant reads the German company's invoices.\n *\n * The mechanism that confines members WITHIN one organization already exists — organization unit\n * narrowing. What it lacked was the edge from a remote partition key to a Wildo unit, and each row\n * here IS one such edge.\n *\n * ## Why APPLICATION scope, when every row names a unit of the owner organization\n *\n * Because assigning a partition is an OPERATOR act on the deployment's own configuration, not an act\n * inside a customer's tenant. An operator door on an ORGANIZATIONS-scoped resource would require a\n * cross-tenant declaration on every verb and a platform access grant per crossing — the ceremony for\n * reaching into a CUSTOMER's data, which this is not. The scope is expressed once, in the registry\n * relationship APPLICATION → SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS carrying `isPrimaryScope: true`;\n * the runtime config deliberately does not restate it.\n *\n * Operator surface (#2324): the admin-scope preset `systemOfRecordPartitionAssignmentsAdminResourceUIBehavior`,\n * reached from Settings → Administration → System-of-record partitions. The read confinement and the platform API\n * remain its other consumers.\n */\n\nimport { systemOfRecordPartitionAssignmentsAdminResourceUIBehavior as partitionAssignmentsUIBehaviorSource } 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 SystemOfRecordPartitionAssignmentSchema,\n SystemOfRecordPartitionAssignments_Operations,\n systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst PARTITION_ASSIGNMENT_DE_ID = 'system_of_record_partition_assignment_01J6R3A4B5C6D7E8F9G0H1J2KL';\nconst PARTITION_ASSIGNMENT_ES_ID = 'system_of_record_partition_assignment_01J6R3C5D6E7F8G9H0J1K2L3MN';\nconst PARTITION_UNIT_DE_ID = 'organization_unit_01J6R3E6F7G8H9J0K1L2M3N4PQ';\nconst PARTITION_UNIT_ES_ID = 'organization_unit_01J6R3G7H8J9K0L1M2N3P4Q5RS';\nconst PARTITION_OPERATOR_USER_ID = 'user_01J6R3J8K9L0M1N2P3Q4R5S6TU';\nconst PARTITION_EXAMPLE_APPLICATION_ID = 'app_01J6R3L9M0N1P2Q3R4S5T6U7VW';\n\nconst germanCompanyAssignmentExample = {\n _id: PARTITION_ASSIGNMENT_DE_ID,\n applicationId: PARTITION_EXAMPLE_APPLICATION_ID,\n system: 'odoo',\n remoteKey: '10',\n organizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Odoo company 10 is Acme Deutschland GmbH; its ledger belongs to the Deutschland unit.',\n assignedByUserId: PARTITION_OPERATOR_USER_ID,\n createdAt: '2026-09-18T09:00:00.000Z',\n updatedAt: '2026-09-18T09:00:00.000Z',\n};\n\nconst spanishCompanyAssignmentExample = {\n ...germanCompanyAssignmentExample,\n _id: PARTITION_ASSIGNMENT_ES_ID,\n remoteKey: '14',\n organizationUnitId: PARTITION_UNIT_ES_ID,\n justification: 'Odoo company 14 is Acme Iberia S.L.; its ledger belongs to the Iberia unit.',\n};\n\ntype Cfg = ReturnType<typeof systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst partitionAssignmentsUIBehavior = partitionAssignmentsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nexport const systemOfRecordPartitionAssignmentsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(partitionAssignmentsUIBehavior),\n resourceSpecification(\n systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory,\n SystemOfRecordPartitionAssignmentSchema,\n ({ schemaShape }) => ({\n purpose: 'Record which organization unit each remote partition of a system of record belongs to, so that members of a unit read that unit\\'s company and no other.',\n businessRole: 'The deployment\\'s partition map. It answers which remote company corresponds to which part of the org chart, who decided that, and why.',\n lifecycleRole: 'A platform administrator assigns a remote partition to a unit, stating a reason. A partition may later be MOVED to a different unit through `reassign`, which names the unit it is expected to be leaving and refuses if another administrator has already moved it. Removing the assignment makes the partition unreachable to every caller — it is not a narrowing, it withdraws a company from the product.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemOfRecordPartitionAssignmentSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'systemOfRecordPartitionAssignmentsResourceConfiguration_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: 'SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS',\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: 'SystemOfRecordPartitionAssignments_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'There is no public UPDATE. All three of `system`, `remoteKey` and `organizationUnitId` are `.excludeFromUpdate()`, which leaves an ordinary update with nothing to write — deliberately. An excluded-field write SUCCEEDS and persists nothing, so a plain UPDATE naming the unit would answer the caller as though it had worked; `reassign` exists so there is one writer, one contract, and one audit event.',\n 'The foreign key to `organizationUnits` buys EXISTENCE only. No relationship factory validates scope compatibility, and an application-scoped row written by a super-administrator resolves an empty write tenant, so that the unit belongs to the OWNER organization and is ACTIVE is measured in the custom implementation through the system door.',\n 'The lifecycle event is ONE type with a transition field — `SYSTEM_OF_RECORD_PARTITION_ASSIGNMENT_LIFECYCLE`, carrying `assigned` / `reassigned` / `unassigned`. Three event types would scatter one partition\\'s timeline across three buckets, and the question an auditor asks (\"who has been able to see the German company, and since when?\") is answered by reading one bucket in order.',\n 'All three write verbs are HIGH risk, which is inside the automatic audit floor, so a generic `RESOURCE_OPERATION_PERFORMED` row fires for each as well. What that row cannot carry — and the reason the dedicated event exists — is which unit, and on a move which unit it was before.',\n 'The assignment map is read on EVERY confined read and is deliberately NOT cached. Measured 2026-09-18: the indexed lookup is 0.078-0.177 ms at twenty times the realistic row count, against a 1.02 ms floor for the remote call it precedes. A cache would save a tenth of a millisecond and would hold a SECURITY CONFINEMENT, so a stale entry would mean a member still reading a company they were unassigned from.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one partition-to-unit assignment.',\n whyItMatters: 'The address of a reassignment, and the value every lifecycle event carries so one partition\\'s whole history can be reassembled from the audit trail.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The deployment this assignment configures.',\n whyItMatters: 'The scope anchor. Optional in the schema and MANDATORY in meaning — declared mandatory the resource does not load at all on a Mongo-persisted deployment, so addressing is carried by the relationship\\'s `isPrimaryScope` + `REQUIRES_CONTEXT` instead, which is what the URL builder actually reads.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n system: schemaShape.system.stringSpec({\n meaning: 'Which declared system-of-record INSTANCE this partition lives in — a `systemsOfRecord.<name>` key.',\n whyItMatters: 'Instance, never vendor, and the distinction is load-bearing: two Odoo deployments (`odoo-fr`, `odoo-de`) share one vendor facet and have entirely unrelated company ids. A key scoped to the vendor would let one deployment\\'s company 10 resolve through the other\\'s map.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n remoteKey: schemaShape.remoteKey.stringSpec({\n meaning: 'The partition\\'s key exactly as the remote system spells it, in canonical text.',\n whyItMatters: 'Stored as text across every vendor — Odoo\\'s `company_id` is an integer, Dataverse\\'s business unit is a GUID — and decoded through the facet\\'s partition codec before it reaches a query compiler. One stored shape plus a codec beats a column per vendor; comparing the stored `\\'10\\'` against Odoo\\'s integer `10` without decoding is exactly the defect the codec prevents.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationUnitId: schemaShape.organizationUnitId.foreignKeySpec({\n meaning: 'The unit of the owner organization this partition belongs to.',\n whyItMatters: 'The confinement itself. A member reaches this partition only through a role held at this unit or an ancestor of it; the read path maps a caller\\'s effective unit set back through these rows into remote keys, which is the only shape a remote predicate can actually be written in.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why this remote partition belongs to this unit, in the operator\\'s own words.',\n whyItMatters: 'Required, and it carries real weight rather than ceremony: an assignment is an access decision with NO expiry — unlike a time-bound grant, it stands until someone changes it — and the next operator looking at \"company 10 goes to Deutschland\" has no other way to learn whether that reflects the corporate structure or somebody\\'s guess during an incident.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n assignedByUserId: schemaShape.assignedByUserId.foreignKeySpec({\n meaning: 'The operator who last assigned or moved this partition.',\n whyItMatters: 'Server-authored from the session, never client-supplied. An assignment attributed to somebody else is a false line in the privileged-access record, and the field is what joins a partition\\'s reach to the person who decided it.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When this partition was first assigned to a unit.',\n whyItMatters: 'Survives a reassignment, because the row keeps its identity through a move — so it answers \"since when has this company been mapped at all\", while the lifecycle events answer \"and to whom, when\".',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the assignment last changed.',\n whyItMatters: 'Moves on a reassignment and nowhere else, since no other write can alter the row.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one partition assignment.',\n outcome: 'The unit a remote partition is mapped to, with the reason given for it.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment with the supplied id exists.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read the German company\\'s assignment',\n request: { systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID },\n response: germanCompanyAssignmentExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List partition assignments — the map an operator works from.',\n outcome: 'A page of assignments, filterable by instance, remote key or unit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A page of assignments is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'The whole map for one Odoo instance',\n request: { system: 'odoo', page: 1, limit: 20 },\n response: { data: [germanCompanyAssignmentExample, spanishCompanyAssignmentExample], total: 2, page: 1, limit: 20 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.COUNT]: {\n purpose: 'Count partition assignments matching a filter.',\n outcome: 'A number — how many remote partitions of an instance are mapped, or how many point at one unit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'How many companies are mapped to the Deutschland unit',\n request: { organizationUnitId: PARTITION_UNIT_DE_ID },\n response: { count: 1 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Assign a remote partition to an organization unit.',\n outcome: 'The partition becomes readable by members of that unit — and, through downward inheritance, by members holding a role at an ancestor of it. Until a partition is assigned it is readable by nobody.',\n whenToUse: 'A new company, subsidiary or business unit appears in the system of record and its rows must reach the part of the org chart that owns them.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The partition is now mapped to the unit.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because an assignment has no expiry and the reason is all a later operator has to go on.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit does not exist, or belongs to an organization other than the owner. The refusal does not say which — an assignment payload must not become a way to probe another tenant\\'s org chart.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit exists and is not ACTIVE. A separate refusal from the one above, because the remedy differs: activate the unit rather than pick another.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This instance and remote key are already assigned. One remote partition maps to at most one unit, and the pair is a persisted business key.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. A tenant administrator can never assign a partition — one who could would assign their own unit to a company they were never meant to see.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Map Odoo company 10 to the Deutschland unit',\n request: {\n system: 'odoo',\n remoteKey: '10',\n organizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Odoo company 10 is Acme Deutschland GmbH; its ledger belongs to the Deutschland unit.',\n },\n response: germanCompanyAssignmentExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [Op.DELETE]: {\n purpose: 'Unassign a remote partition.',\n outcome: 'The partition becomes unreachable to EVERY caller. The read path pushes down the set of assigned keys, so a key with no assignment is in nobody\\'s predicate.',\n whenToUse: 'A company leaves the group, or an assignment was made to the wrong instance and must be withdrawn rather than moved.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment was removed; the body carries its `id`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment with the supplied id exists.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Withdraw the German company',\n request: { systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID },\n response: { id: PARTITION_ASSIGNMENT_DE_ID },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SystemOfRecordPartitionAssignments_Operations.REASSIGN]: {\n operationId: SystemOfRecordPartitionAssignments_Operations.REASSIGN,\n purpose: 'Move an assigned partition to a different unit, under a compare-and-swap on the unit it is leaving.',\n outcome: 'The partition\\'s rows become readable by the new unit and stop being readable by the old one. The row keeps its identity, so its `createdAt` provenance and its audit timeline survive the move.',\n whenToUse: 'The corporate structure changes — a subsidiary moves between divisions, or an assignment was made to the wrong unit.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The partition now belongs to the named unit, and the updated assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The target unit does not exist, belongs to another organization, or is not ACTIVE.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: '`expectedCurrentOrganizationUnitId` does not match the unit the partition currently belongs to — another administrator moved it first. A conflict rather than a not-found: the caller IS authorized and the payload IS valid; what refused is the current state.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Move the German company to the Iberia unit after a reorganization',\n request: {\n systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID,\n organizationUnitId: PARTITION_UNIT_ES_ID,\n expectedCurrentOrganizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Acme Deutschland now reports into the Iberia division after the 2026 reorganization.',\n },\n response: { ...germanCompanyAssignmentExample, organizationUnitId: PARTITION_UNIT_ES_ID, updatedAt: '2026-09-18T11:00:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n }),\n // The scope is an OPTION, not a config field — `resourceSpecification` cross-checks it against the\n // scope the registry derives from the `isPrimaryScope: true` relationship, and throws at MODULE\n // LOAD when neither signal is supplied. Authoring it inside the returned config instead reaches\n // that throw with `options` undefined, which is how this was caught.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'Names an assignment by the partition it maps, as the remote spells it (`odoo · 10`), so an operator reads which company of which system each row is.',\n },\n views: {\n [Op.LIST]: {\n purpose: 'Every partition assignment of the deployment, newest first. Reached from Settings → Administration → System-of-record partitions.',\n whenToUse: 'Checking which unit a company of the ERP belongs to, or which partitions a unit\\'s members can read.',\n },\n [Op.READ]: {\n purpose: 'One assignment, reached by drilling into a list row rather than by its own route.',\n whenToUse: 'Reading why a partition belongs to its unit, and who decided it.',\n },\n [Op.CREATE]: {\n purpose: 'Assign a partition of a declared system of record to a unit of the owner organization, with a justification.',\n whenToUse: 'A new company, company code or subsidiary has to be visible to one unit\\'s members only.',\n },\n [Op.DELETE]: {\n purpose: 'Remove an assignment; the partition\\'s rows are then visible to no unit-narrowed member.',\n whenToUse: 'A partition was assigned by mistake, or the company no longer exists.',\n },\n [SystemOfRecordPartitionAssignments_Operations.REASSIGN]: {\n purpose: 'Move a partition to another unit, with a new justification; refused if another operator moved it first.',\n whenToUse: 'A subsidiary was reorganised under another unit.',\n },\n },\n }),\n);\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AnyResourceSpecificationConfig } from '../../../_core';
|
|
2
|
+
/**
|
|
3
|
+
* Framework-owned specification for the internal `transactionalCommitReceipts` resource — the proof that one
|
|
4
|
+
* transactional-core attempt committed (#2870).
|
|
5
|
+
*
|
|
6
|
+
* Registry-key and type-annotation notes: identical situation to `dataSeedRuns` — see that spec's header.
|
|
7
|
+
*/
|
|
8
|
+
export declare const transactionalCommitReceiptsResourceSpecification: AnyResourceSpecificationConfig;
|
|
9
|
+
//# sourceMappingURL=transactional-commit-receipts.resource.specification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactional-commit-receipts.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAGjI;;;;;GAKG;AACH,eAAO,MAAM,gDAAgD,EAAE,8BA8F9D,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
2
|
+
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
3
|
+
import { TransactionalCommitReceiptSchema, TransactionalCommitReceiptVariantKey, transactionalCommitReceiptResourceConfigurationFactory as receiptFactory, } from '@wildo-ai/saas-backend-lib/backend-resource-registry';
|
|
4
|
+
import { CoreResourceOperation as Op, ResourcePrimaryScope } from '@wildo-ai/saas-models';
|
|
5
|
+
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
7
|
+
/**
|
|
8
|
+
* Framework-owned specification for the internal `transactionalCommitReceipts` resource — the proof that one
|
|
9
|
+
* transactional-core attempt committed (#2870).
|
|
10
|
+
*
|
|
11
|
+
* Registry-key and type-annotation notes: identical situation to `dataSeedRuns` — see that spec's header.
|
|
12
|
+
*/
|
|
13
|
+
export const transactionalCommitReceiptsResourceSpecification = resourceSpecification(receiptFactory, TransactionalCommitReceiptSchema, ({ schemaShape }) => ({
|
|
14
|
+
purpose: 'Prove that one attempt of an operation committed, when the database committed it but its reply was lost.',
|
|
15
|
+
businessRole: 'Lets a removal, such as deleting a member or an SSO connection, report success and keep its audit record when the confirmation from the database is lost, instead of reporting a failure for something that happened.',
|
|
16
|
+
lifecycleRole: 'Written inside the operation\'s own transaction, so it exists only if the operation committed. Read within seconds when the commit\'s reply is lost, and deleted an hour after it was written.',
|
|
17
|
+
audience: LabelAudience.DEVELOPER,
|
|
18
|
+
subDomain: EngineResourceSubDomain.INFRASTRUCTURE,
|
|
19
|
+
codeHandling: {
|
|
20
|
+
mainSchema: {
|
|
21
|
+
packageName: '@wildo-ai/saas-backend-lib',
|
|
22
|
+
exportName: 'TransactionalCommitReceiptSchema',
|
|
23
|
+
symbolKind: CodeSymbolKind.SCHEMA,
|
|
24
|
+
declarationKind: CodeDeclarationKind.ZOD_SCHEMA,
|
|
25
|
+
},
|
|
26
|
+
resourceFactory: {
|
|
27
|
+
packageName: '@wildo-ai/saas-backend-lib',
|
|
28
|
+
exportName: 'transactionalCommitReceiptResourceConfigurationFactory',
|
|
29
|
+
symbolKind: CodeSymbolKind.FACTORY,
|
|
30
|
+
declarationKind: CodeDeclarationKind.FUNCTION,
|
|
31
|
+
},
|
|
32
|
+
resourceType: {
|
|
33
|
+
enumDeclaration: {
|
|
34
|
+
packageName: '@wildo-ai/saas-backend-lib',
|
|
35
|
+
exportName: 'BackendResourceType',
|
|
36
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
37
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
38
|
+
},
|
|
39
|
+
memberName: 'TRANSACTIONAL_COMMIT_RECEIPTS',
|
|
40
|
+
},
|
|
41
|
+
operationVocabulary: {
|
|
42
|
+
coreEnum: {
|
|
43
|
+
packageName: '@wildo-ai/saas-models',
|
|
44
|
+
exportName: 'CoreResourceOperation',
|
|
45
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
46
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
fields: {
|
|
51
|
+
_id: schemaShape._id.stringSpec({
|
|
52
|
+
meaning: 'A random identifier minted for one attempt of one operation.',
|
|
53
|
+
whyItMatters: 'Only that attempt holds it, so finding the receipt proves that attempt committed, whoever else changed the same data.',
|
|
54
|
+
semanticRole: 'identifier',
|
|
55
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
56
|
+
}),
|
|
57
|
+
resourceType: schemaShape.resourceType.stringSpec({ meaning: 'The resource of the operation that wrote the receipt.' }),
|
|
58
|
+
operationIdentifier: schemaShape.operationIdentifier.stringSpec({ meaning: 'The operation that wrote the receipt.' }),
|
|
59
|
+
writtenAt: schemaShape.writtenAt.dateSpec({
|
|
60
|
+
meaning: 'When the attempt wrote the receipt, inside its transaction.',
|
|
61
|
+
whyItMatters: 'The receipt is deleted an hour later: it is only read within seconds of a lost commit reply.',
|
|
62
|
+
}),
|
|
63
|
+
},
|
|
64
|
+
operations: {
|
|
65
|
+
[Op.CREATE]: {
|
|
66
|
+
purpose: 'Write an attempt\'s receipt inside the attempt\'s own transaction, after its work succeeded.',
|
|
67
|
+
outcome: 'The receipt commits with the attempt\'s writes or not at all.',
|
|
68
|
+
responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The receipt was written.' }],
|
|
69
|
+
errorScenarios: [],
|
|
70
|
+
idempotent: false,
|
|
71
|
+
variants: {
|
|
72
|
+
[TransactionalCommitReceiptVariantKey.INTERNAL]: { purpose: 'Let the framework record that an attempt reached its commit.' },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
[Op.READ]: {
|
|
76
|
+
purpose: 'Read an attempt\'s receipt after the attempt\'s commit lost its reply.',
|
|
77
|
+
outcome: 'A stored receipt proves the attempt committed; an absent one proves only that this attempt did not, or not yet.',
|
|
78
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The receipt is returned, or nothing when the attempt did not commit or its receipt expired.' }],
|
|
79
|
+
errorScenarios: [],
|
|
80
|
+
idempotent: true,
|
|
81
|
+
variants: {
|
|
82
|
+
[TransactionalCommitReceiptVariantKey.INTERNAL]: { purpose: 'Let the framework learn whether an attempt committed.' },
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
[Op.DELETE_MANY]: {
|
|
86
|
+
purpose: 'Delete receipts an hour after they were written.',
|
|
87
|
+
outcome: 'Expired receipts are removed by the database on MongoDB and by the framework\'s retention sweep on PostgreSQL.',
|
|
88
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The expired receipts were deleted.' }],
|
|
89
|
+
idempotent: true,
|
|
90
|
+
variants: {
|
|
91
|
+
[TransactionalCommitReceiptVariantKey.INTERNAL]: { purpose: 'Let the retention sweep delete expired receipts.' },
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
businessConstraints: [
|
|
96
|
+
'A receipt names the operation and when it was written, never the row it changed, its organization or the person who acted, so an erasure has nothing to remove from it.',
|
|
97
|
+
'A receipt is written only by an operation whose commit can be proved no other way, such as a removal, where the row being gone is also what another remover leaves.',
|
|
98
|
+
],
|
|
99
|
+
}), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION });
|
|
100
|
+
//# sourceMappingURL=transactional-commit-receipts.resource.specification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactional-commit-receipts.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAu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,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,oCAAoC,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,uDAAuD,EAAE;aACtH;SACF;QACD,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE;YAChB,OAAO,EAAE,kDAAkD;YAC3D,OAAO,EAAE,gHAAgH;YACzH,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;YAC1G,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,oCAAoC,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE;aACjH;SACF;KACF;IAED,mBAAmB,EAAE;QACnB,yKAAyK;QACzK,qKAAqK;KACtK;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["import { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n TransactionalCommitReceiptSchema,\n TransactionalCommitReceiptVariantKey,\n transactionalCommitReceiptResourceConfigurationFactory as receiptFactory,\n} from '@wildo-ai/saas-backend-lib/backend-resource-registry';\nimport { CoreResourceOperation as Op, ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned specification for the internal `transactionalCommitReceipts` resource — the proof that one\n * transactional-core attempt committed (#2870).\n *\n * Registry-key and type-annotation notes: identical situation to `dataSeedRuns` — see that spec's header.\n */\nexport const transactionalCommitReceiptsResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n receiptFactory,\n TransactionalCommitReceiptSchema,\n ({ schemaShape }) => ({\n purpose: 'Prove that one attempt of an operation committed, when the database committed it but its reply was lost.',\n businessRole: 'Lets a removal, such as deleting a member or an SSO connection, report success and keep its audit record when the confirmation from the database is lost, instead of reporting a failure for something that happened.',\n lifecycleRole: 'Written inside the operation\\'s own transaction, so it exists only if the operation committed. Read within seconds when the commit\\'s reply is lost, and deleted an hour after it was written.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'TransactionalCommitReceiptSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'transactionalCommitReceiptResourceConfigurationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'BackendResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'TRANSACTIONAL_COMMIT_RECEIPTS',\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 },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'A random identifier minted for one attempt of one operation.',\n whyItMatters: 'Only that attempt holds it, so finding the receipt proves that attempt committed, whoever else changed the same data.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n resourceType: schemaShape.resourceType.stringSpec({ meaning: 'The resource of the operation that wrote the receipt.' }),\n operationIdentifier: schemaShape.operationIdentifier.stringSpec({ meaning: 'The operation that wrote the receipt.' }),\n writtenAt: schemaShape.writtenAt.dateSpec({\n meaning: 'When the attempt wrote the receipt, inside its transaction.',\n whyItMatters: 'The receipt is deleted an hour later: it is only read within seconds of a lost commit reply.',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Write an attempt\\'s receipt inside the attempt\\'s own transaction, after its work succeeded.',\n outcome: 'The receipt commits with the attempt\\'s writes or not at all.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The receipt was written.' }],\n errorScenarios: [],\n idempotent: false,\n variants: {\n [TransactionalCommitReceiptVariantKey.INTERNAL]: { purpose: 'Let the framework record that an attempt reached its commit.' },\n },\n },\n [Op.READ]: {\n purpose: 'Read an attempt\\'s receipt after the attempt\\'s commit lost its reply.',\n outcome: 'A stored receipt proves the attempt committed; an absent one proves only that this attempt did not, or not yet.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The receipt is returned, or nothing when the attempt did not commit or its receipt expired.' }],\n errorScenarios: [],\n idempotent: true,\n variants: {\n [TransactionalCommitReceiptVariantKey.INTERNAL]: { purpose: 'Let the framework learn whether an attempt committed.' },\n },\n },\n [Op.DELETE_MANY]: {\n purpose: 'Delete receipts an hour after they were written.',\n outcome: 'Expired receipts are removed by the database on MongoDB and by the framework\\'s retention sweep on PostgreSQL.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The expired receipts were deleted.' }],\n idempotent: true,\n variants: {\n [TransactionalCommitReceiptVariantKey.INTERNAL]: { purpose: 'Let the retention sweep delete expired receipts.' },\n },\n },\n },\n\n businessConstraints: [\n 'A receipt names the operation and when it was written, never the row it changed, its organization or the person who acted, so an erasure has nothing to remove from it.',\n 'A receipt is written only by an operation whose commit can be proved no other way, such as a removal, where the row being gone is also what another remover leaves.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `chatIdentityLinks` — Wildo SaaS engine specification (organization-scoped). #2660.
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: `ChatIdentityLinkSchema` (`inbound/chat-identity-links.shared.schemas.ts`)
|
|
6
|
+
* - Factory: `chatIdentityLinksResourceConfiguration_InitializationFactory`
|
|
7
|
+
* (`inbound/chat-identity-links.shared.resources-config.schemas.ts`)
|
|
8
|
+
* - Custom operations: `ChatIdentityLinks_Operations.COMPLETE_LINK` and `PREVIEW_LINK`, the member's own LIST and the
|
|
9
|
+
* unlink audit, implemented by `chat-identity-links.custom-impl.backend.service.ts` (saas-backend-lib); the link token is
|
|
10
|
+
* minted and redeemed by `ChatIdentityLinkBackendService`.
|
|
11
|
+
*
|
|
12
|
+
* Why `ORGANIZATIONS` scope: a link is good only in the organization whose bot installation the chat workspace
|
|
13
|
+
* reaches. The registry relationship ORGANIZATIONS → chatIdentityLinks carries `isPrimaryScope: true`; USERS →
|
|
14
|
+
* chatIdentityLinks deletes a person's links with the person.
|
|
15
|
+
*/
|
|
16
|
+
import { ChatIdentityLinks_Operations, CoreResourceOperation as Op } from '@wildo-ai/saas-models';
|
|
17
|
+
export declare const chatIdentityLinksResourceSpecification: import("../../../_core").ResourceSpecificationConfig<typeof ChatIdentityLinks_Operations, Op.READ | Op.DELETE | Op.DELETE_MANY | Op.CREATE | Op.LIST, import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
18
|
+
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
19
|
+
organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
20
|
+
userId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>>;
|
|
21
|
+
memberName: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>;
|
|
22
|
+
connectionRef: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
23
|
+
workspaceRef: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
24
|
+
chatUserId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
25
|
+
linkedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>>;
|
|
26
|
+
personalConversations: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
27
|
+
application: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
28
|
+
conversationId: import("zod").ZodString;
|
|
29
|
+
serviceUrl: import("zod").ZodURL;
|
|
30
|
+
}, import("zod/v4/core").$strict>>;
|
|
31
|
+
organization: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
32
|
+
conversationId: import("zod").ZodString;
|
|
33
|
+
serviceUrl: import("zod").ZodURL;
|
|
34
|
+
}, import("zod/v4/core").$strict>>;
|
|
35
|
+
}, import("zod/v4/core").$strip>>>>>>;
|
|
36
|
+
}, import("zod/v4/core").$strip>>>;
|
|
37
|
+
//# sourceMappingURL=chat-identity-links.resource.specification.d.ts.map
|
package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-identity-links.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/chat-identity-links.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,EAIL,4BAA4B,EAC5B,qBAAqB,IAAI,EAAE,EAG5B,MAAM,uBAAuB,CAAC;AA8B/B,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;kCA+IlD,CAAC"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `chatIdentityLinks` — Wildo SaaS engine specification (organization-scoped). #2660.
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: `ChatIdentityLinkSchema` (`inbound/chat-identity-links.shared.schemas.ts`)
|
|
6
|
+
* - Factory: `chatIdentityLinksResourceConfiguration_InitializationFactory`
|
|
7
|
+
* (`inbound/chat-identity-links.shared.resources-config.schemas.ts`)
|
|
8
|
+
* - Custom operations: `ChatIdentityLinks_Operations.COMPLETE_LINK` and `PREVIEW_LINK`, the member's own LIST and the
|
|
9
|
+
* unlink audit, implemented by `chat-identity-links.custom-impl.backend.service.ts` (saas-backend-lib); the link token is
|
|
10
|
+
* minted and redeemed by `ChatIdentityLinkBackendService`.
|
|
11
|
+
*
|
|
12
|
+
* Why `ORGANIZATIONS` scope: a link is good only in the organization whose bot installation the chat workspace
|
|
13
|
+
* reaches. The registry relationship ORGANIZATIONS → chatIdentityLinks carries `isPrimaryScope: true`; USERS →
|
|
14
|
+
* chatIdentityLinks deletes a person's links with the person.
|
|
15
|
+
*/
|
|
16
|
+
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
17
|
+
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
|
|
18
|
+
import { CHAT_IDENTITY_LINK_OWN_VARIANT_KEY, ChatIdentityLinkPreviewStanding, ChatIdentityLinkSchema, ChatIdentityLinks_Operations, CoreResourceOperation as Op, ResourcePrimaryScope, chatIdentityLinksResourceConfiguration_InitializationFactory, } from '@wildo-ai/saas-models';
|
|
19
|
+
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
20
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
21
|
+
const EXAMPLE_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7V8W9XY';
|
|
22
|
+
const EXAMPLE_LINK_ID = '66f6a1c2e3d4b5a697887801';
|
|
23
|
+
const EXAMPLE_USER_ID = '66f6a1c2e3d4b5a697880042';
|
|
24
|
+
const enumDeclaration = (exportName) => ({
|
|
25
|
+
packageName: '@wildo-ai/saas-models',
|
|
26
|
+
exportName,
|
|
27
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
28
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
29
|
+
});
|
|
30
|
+
const page = (data) => ({ data, pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 } });
|
|
31
|
+
const linkExample = {
|
|
32
|
+
_id: EXAMPLE_LINK_ID,
|
|
33
|
+
organizationId: EXAMPLE_ORGANIZATION_ID,
|
|
34
|
+
userId: EXAMPLE_USER_ID,
|
|
35
|
+
connectionRef: 'slack',
|
|
36
|
+
workspaceRef: 'T024BE7LD',
|
|
37
|
+
chatUserId: 'U012AB3CDE',
|
|
38
|
+
linkedAt: '2026-10-06T09:30:00.000Z',
|
|
39
|
+
};
|
|
40
|
+
const NOT_A_MEMBER = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization.' };
|
|
41
|
+
const NOT_AN_ADMINISTRATOR = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' };
|
|
42
|
+
export const chatIdentityLinksResourceSpecification = resourceSpecification(chatIdentityLinksResourceConfiguration_InitializationFactory, ChatIdentityLinkSchema, ({ schemaShape }) => ({
|
|
43
|
+
purpose: 'Record which member of the organization a person in a chat workspace (Slack, Microsoft Teams) is, so a request the chat vendor sends on that person\'s behalf can act as the member.',
|
|
44
|
+
businessRole: 'What lets people act from their chat tool — approve a decision, ask an agent, run an operation — with their own authority in the application, instead of the bot\'s.',
|
|
45
|
+
lifecycleRole: 'Created when a member, signed in, completes the one-time link the application\'s bot gave them in chat. Removed by that member, by an organization administrator, or with the member or the organization. Never edited: a link is replaced by unlinking and linking again.',
|
|
46
|
+
audience: LabelAudience.ADMIN,
|
|
47
|
+
subDomain: EngineResourceSubDomain.NOTIFICATIONS,
|
|
48
|
+
codeHandling: {
|
|
49
|
+
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ChatIdentityLinkSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
50
|
+
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'chatIdentityLinksResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
51
|
+
resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'CHAT_IDENTITY_LINKS' },
|
|
52
|
+
operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('ChatIdentityLinks_Operations') },
|
|
53
|
+
notes: [
|
|
54
|
+
'A link is made only by `completeLink`: CREATE is INTERNAL_CALL (route-less, written by the system door), and no request supplies the member, the connection, the workspace or the chat account. The token names the account; the session names the member.',
|
|
55
|
+
'Nothing is ever matched by email or display name. A chat workspace administrator can give any chat account any email, so matching on it would let them act as whichever member they chose.',
|
|
56
|
+
'A link is not a sign-in identity: it never authenticates a session. It lets a request the chat vendor verifiably sent for the account act as the member, with the member\'s own live roles.',
|
|
57
|
+
'Only an unlink through DELETE writes `CHAT_IDENTITY_UNLINKED`. A link removed with its member or its organization is deleted by the composition cascade at the repository, which writes no row per link: the member\'s erasure, or the organization\'s deletion, is the recorded event, and it already says that everything of theirs went.',
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
fields: {
|
|
61
|
+
_id: schemaShape._id.stringSpec({ meaning: 'Identifier of one link.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),
|
|
62
|
+
organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization the bot installation belongs to.', whyItMatters: 'The only organization the link is good in: the same chat account acts as no one elsewhere.', importance: FieldSemanticImportance.PRIMARY }),
|
|
63
|
+
memberName: schemaShape.memberName.stringSpec({ meaning: 'The member the chat account acts as, by name: `userId`\'s label fallback. Resolved at read time from the person\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).', whyItMatters: 'Hidden from display: the person is shown through the foreign key, and this name is its label when the viewer may not read the user.' }),
|
|
64
|
+
userId: schemaShape.userId.foreignKeySpec({ meaning: 'The member the chat account acts as.', whyItMatters: 'A request from the chat account carries this member\'s own authority, resolved live at each request.', importance: FieldSemanticImportance.PRIMARY }),
|
|
65
|
+
connectionRef: schemaShape.connectionRef.stringSpec({ meaning: 'The chat provider the account is at, as the application names its connection (`slack`, `microsoft-teams-bot`).', semanticRole: 'code' }),
|
|
66
|
+
workspaceRef: schemaShape.workspaceRef.stringSpec({ meaning: 'The vendor\'s workspace or tenant the account lives in (a Slack team id, a Microsoft tenant id).', semanticRole: 'code' }),
|
|
67
|
+
chatUserId: schemaShape.chatUserId.stringSpec({ meaning: 'The vendor\'s own id for the person (a Slack user id, a Microsoft Entra object id) — never a name or an email.', whyItMatters: 'With the workspace, what a chat request is matched on. Unique per organization, connection and workspace, so a chat account acts as one member at most.', semanticRole: 'code' }),
|
|
68
|
+
linkedAt: schemaShape.linkedAt.dateSpec({ meaning: 'When the member completed the link.', temporalRole: 'creation' }),
|
|
69
|
+
personalConversations: schemaShape.personalConversations.objectSpec({
|
|
70
|
+
meaning: 'The person\'s one-to-one conversation with each bot that can reach them (the application\'s own bot, the organization\'s own bot): the conversation id and the service URL Microsoft Teams sent it from. Recorded by the engine from a verified activity the person sent that bot in that conversation; never set by a request.',
|
|
71
|
+
whyItMatters: 'Where the application posts to the person without their writing first, such as a pending decision\'s card. Absent until such an activity arrives after the link was made; Slack needs nothing stored.',
|
|
72
|
+
}),
|
|
73
|
+
},
|
|
74
|
+
operations: {
|
|
75
|
+
[Op.READ]: {
|
|
76
|
+
purpose: 'Read one chat link of the organization.',
|
|
77
|
+
outcome: 'The link, with its member and chat account.',
|
|
78
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The link is returned.' }],
|
|
79
|
+
errorScenarios: [NOT_AN_ADMINISTRATOR, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No link with this id exists in the organization.' }],
|
|
80
|
+
idempotent: true,
|
|
81
|
+
examples: [{ title: 'Read a Slack link', request: { organizationId: EXAMPLE_ORGANIZATION_ID, chatIdentityLinkId: EXAMPLE_LINK_ID }, response: linkExample, forStatus: HttpResponseStatusCode.OK_200 }],
|
|
82
|
+
},
|
|
83
|
+
[Op.LIST]: {
|
|
84
|
+
purpose: 'List chat links: every link of the organization for an administrator, or your own links for a member.',
|
|
85
|
+
outcome: 'A page of links, newest first when sorted by `linkedAt`.',
|
|
86
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of links.' }],
|
|
87
|
+
errorScenarios: [NOT_A_MEMBER, { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller asked for the whole organization\'s links and is not an administrator of the organization.' }],
|
|
88
|
+
idempotent: true,
|
|
89
|
+
examples: [{ title: 'List the organization\'s chat links', request: { organizationId: EXAMPLE_ORGANIZATION_ID, sort: 'linkedAt:desc' }, response: page([linkExample]), forStatus: HttpResponseStatusCode.OK_200 }],
|
|
90
|
+
variants: {
|
|
91
|
+
default: { purpose: 'An administrator lists every chat link of the organization, to see who acts from which chat account.' },
|
|
92
|
+
[CHAT_IDENTITY_LINK_OWN_VARIANT_KEY]: {
|
|
93
|
+
purpose: 'A member lists their own chat links.',
|
|
94
|
+
outcome: 'Only the caller\'s links, whatever filter is sent: the caller\'s id is forced into it.',
|
|
95
|
+
whenToUse: 'Settings › My chat accounts, where a member sees which chat accounts act as them and unlinks one. The email sent when a chat account is linked to them opens it.',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
[Op.CREATE]: {
|
|
100
|
+
purpose: 'Store a link. Written only by `completeLink`, through the engine.',
|
|
101
|
+
outcome: 'The chat account acts as the member.',
|
|
102
|
+
whenToUse: 'Internal only: route-less, never an HTTP surface.',
|
|
103
|
+
responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The link was stored. Internal write path.' }],
|
|
104
|
+
errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The chat account is already linked in the organization.' }],
|
|
105
|
+
idempotent: false,
|
|
106
|
+
},
|
|
107
|
+
[Op.DELETE]: {
|
|
108
|
+
purpose: 'Unlink a chat account: requests from it stop acting as the member.',
|
|
109
|
+
outcome: 'The link is removed, and the unlink is written to the audit trail with who did it.',
|
|
110
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The link was removed.' }],
|
|
111
|
+
errorScenarios: [NOT_A_MEMBER, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No link with this id exists in the organization.' }],
|
|
112
|
+
idempotent: true,
|
|
113
|
+
variants: {
|
|
114
|
+
default: { purpose: 'An administrator unlinks any chat account of the organization — when a person leaves, or a chat account is compromised.' },
|
|
115
|
+
[CHAT_IDENTITY_LINK_OWN_VARIANT_KEY]: {
|
|
116
|
+
purpose: 'A member unlinks one of their own chat accounts.',
|
|
117
|
+
outcome: 'Refused for a link that is not the caller\'s, whatever id is sent: the server checks the stored row.',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
[Op.DELETE_MANY]: {
|
|
122
|
+
purpose: 'Removes links with their organization or their member (internal, route-less).',
|
|
123
|
+
outcome: 'An erased or deleted member leaves no chat account acting in their name.',
|
|
124
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],
|
|
125
|
+
idempotent: true,
|
|
126
|
+
},
|
|
127
|
+
[ChatIdentityLinks_Operations.COMPLETE_LINK]: {
|
|
128
|
+
operationId: ChatIdentityLinks_Operations.COMPLETE_LINK,
|
|
129
|
+
purpose: 'Complete the link a chat bot gave you: your chat account starts acting as you in this organization.',
|
|
130
|
+
outcome: 'The link exists, is written to the audit trail, and you are emailed that it exists. Completing a new link for an account already linked to you returns that link.',
|
|
131
|
+
whenToUse: 'The application\'s bot answered you in chat with a link because it did not know you yet. Sign in, open the link, and it calls this.',
|
|
132
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
133
|
+
responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The link is in force; it is returned.' }],
|
|
134
|
+
errorScenarios: [
|
|
135
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization, or is not a person (a machine credential holds no chat account).' },
|
|
136
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The link is not a chat link, was replaced by a newer one, was already used, has expired, or belongs to another organization. Nothing is spent: ask the bot for a new link.' },
|
|
137
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The chat account is already linked to another member. They, or an administrator, must unlink it first.' },
|
|
138
|
+
],
|
|
139
|
+
idempotent: false,
|
|
140
|
+
examples: [{
|
|
141
|
+
title: 'Complete a link from Slack',
|
|
142
|
+
request: { organizationId: EXAMPLE_ORGANIZATION_ID, token: '3f9a1c2e4b5d6a7f8e9d0c1b2a3f4e5d6c7b8a9f0e1d2c3b4a5f6e7d8c9b0a1f' },
|
|
143
|
+
response: linkExample,
|
|
144
|
+
forStatus: HttpResponseStatusCode.CREATED_201,
|
|
145
|
+
}],
|
|
146
|
+
},
|
|
147
|
+
[ChatIdentityLinks_Operations.PREVIEW_LINK]: {
|
|
148
|
+
operationId: ChatIdentityLinks_Operations.PREVIEW_LINK,
|
|
149
|
+
purpose: 'See which chat account a link names before completing it, without using the link.',
|
|
150
|
+
outcome: 'The account, how the chat vendor names you and the workspace, whether the account is already linked (to you or to another member), and when the link expires.',
|
|
151
|
+
whenToUse: 'The link page asks this first, so you confirm that the account is yours: a link someone else sent you names THEIR chat account, and completing it would let them act as you.',
|
|
152
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The account the link names is described; the link is still unused.' }],
|
|
153
|
+
errorScenarios: [
|
|
154
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization, or is not a person.' },
|
|
155
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The link is not a chat link, was replaced, was already used, has expired, or belongs to another organization.' },
|
|
156
|
+
],
|
|
157
|
+
idempotent: true,
|
|
158
|
+
examples: [{
|
|
159
|
+
title: 'Preview a link from Slack',
|
|
160
|
+
request: { organizationId: EXAMPLE_ORGANIZATION_ID, token: '3f9a1c2e4b5d6a7f8e9d0c1b2a3f4e5d6c7b8a9f0e1d2c3b4a5f6e7d8c9b0a1f' },
|
|
161
|
+
response: {
|
|
162
|
+
connectionRef: 'slack',
|
|
163
|
+
workspaceRef: 'T024BE7LD',
|
|
164
|
+
chatUserId: 'U012AB3CDE',
|
|
165
|
+
chatUserDisplayName: 'Ana Silva',
|
|
166
|
+
workspaceDisplayName: 'Acme',
|
|
167
|
+
standing: ChatIdentityLinkPreviewStanding.NOT_LINKED,
|
|
168
|
+
expiresAt: '2026-10-06T09:45:00.000Z',
|
|
169
|
+
},
|
|
170
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
171
|
+
}],
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
businessConstraints: [
|
|
175
|
+
'A chat account acts as at most one member per organization, and only after that member, signed in, completed a link the bot minted for that exact account.',
|
|
176
|
+
'A link is single use, short-lived, and replaced by the next one the bot mints for the same account.',
|
|
177
|
+
'The member sees which chat account a link names before completing it, and is emailed once it is linked: a link someone else\'s chat account sent them would otherwise let that account act as them unnoticed.',
|
|
178
|
+
'A request from a linked account carries the member\'s CURRENT roles: a member who lost a role loses it in chat at the next request, and a suspended or removed member acts as no one.',
|
|
179
|
+
],
|
|
180
|
+
}), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
|
|
181
|
+
//# sourceMappingURL=chat-identity-links.resource.specification.js.map
|
package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-identity-links.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/chat-identity-links.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,kCAAkC,EAClC,+BAA+B,EAC/B,sBAAsB,EACtB,4BAA4B,EAC5B,qBAAqB,IAAI,EA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A+B,CAAC,UAAU;wBACpD,SAAS,EAAE,0BAA0B;qBACtC;oBACD,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;IACD,mBAAmB,EAAE;QACnB,4JAA4J;QAC5J,qGAAqG;QACrG,+MAA+M;QAC/M,uLAAuL;KACxL;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `chatIdentityLinks` — Wildo SaaS engine specification (organization-scoped). #2660.\n *\n * Inputs:\n * - Schema: `ChatIdentityLinkSchema` (`inbound/chat-identity-links.shared.schemas.ts`)\n * - Factory: `chatIdentityLinksResourceConfiguration_InitializationFactory`\n * (`inbound/chat-identity-links.shared.resources-config.schemas.ts`)\n * - Custom operations: `ChatIdentityLinks_Operations.COMPLETE_LINK` and `PREVIEW_LINK`, the member's own LIST and the\n * unlink audit, implemented by `chat-identity-links.custom-impl.backend.service.ts` (saas-backend-lib); the link token is\n * minted and redeemed by `ChatIdentityLinkBackendService`.\n *\n * Why `ORGANIZATIONS` scope: a link is good only in the organization whose bot installation the chat workspace\n * reaches. The registry relationship ORGANIZATIONS → chatIdentityLinks carries `isPrimaryScope: true`; USERS →\n * chatIdentityLinks deletes a person's links with the person.\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 CHAT_IDENTITY_LINK_OWN_VARIANT_KEY,\n ChatIdentityLinkPreviewStanding,\n ChatIdentityLinkSchema,\n ChatIdentityLinks_Operations,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n chatIdentityLinksResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst EXAMPLE_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7V8W9XY';\nconst EXAMPLE_LINK_ID = '66f6a1c2e3d4b5a697887801';\nconst EXAMPLE_USER_ID = '66f6a1c2e3d4b5a697880042';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nconst page = <T>(data: readonly T[]) => ({ data, pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 } });\n\nconst linkExample = {\n _id: EXAMPLE_LINK_ID,\n organizationId: EXAMPLE_ORGANIZATION_ID,\n userId: EXAMPLE_USER_ID,\n connectionRef: 'slack',\n workspaceRef: 'T024BE7LD',\n chatUserId: 'U012AB3CDE',\n linkedAt: '2026-10-06T09:30:00.000Z',\n};\n\nconst NOT_A_MEMBER = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization.' };\nconst NOT_AN_ADMINISTRATOR = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' };\n\nexport const chatIdentityLinksResourceSpecification = resourceSpecification(\n chatIdentityLinksResourceConfiguration_InitializationFactory,\n ChatIdentityLinkSchema,\n ({ schemaShape }) => ({\n purpose: 'Record which member of the organization a person in a chat workspace (Slack, Microsoft Teams) is, so a request the chat vendor sends on that person\\'s behalf can act as the member.',\n businessRole: 'What lets people act from their chat tool — approve a decision, ask an agent, run an operation — with their own authority in the application, instead of the bot\\'s.',\n lifecycleRole: 'Created when a member, signed in, completes the one-time link the application\\'s bot gave them in chat. Removed by that member, by an organization administrator, or with the member or the organization. Never edited: a link is replaced by unlinking and linking again.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.NOTIFICATIONS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ChatIdentityLinkSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'chatIdentityLinksResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'CHAT_IDENTITY_LINKS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('ChatIdentityLinks_Operations') },\n notes: [\n 'A link is made only by `completeLink`: CREATE is INTERNAL_CALL (route-less, written by the system door), and no request supplies the member, the connection, the workspace or the chat account. The token names the account; the session names the member.',\n 'Nothing is ever matched by email or display name. A chat workspace administrator can give any chat account any email, so matching on it would let them act as whichever member they chose.',\n 'A link is not a sign-in identity: it never authenticates a session. It lets a request the chat vendor verifiably sent for the account act as the member, with the member\\'s own live roles.',\n 'Only an unlink through DELETE writes `CHAT_IDENTITY_UNLINKED`. A link removed with its member or its organization is deleted by the composition cascade at the repository, which writes no row per link: the member\\'s erasure, or the organization\\'s deletion, is the recorded event, and it already says that everything of theirs went.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one link.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization the bot installation belongs to.', whyItMatters: 'The only organization the link is good in: the same chat account acts as no one elsewhere.', importance: FieldSemanticImportance.PRIMARY }),\n memberName: schemaShape.memberName.stringSpec({ meaning: 'The member the chat account acts as, by name: `userId`\\'s label fallback. Resolved at read time from the person\\'s profile, and absent when they have none (`forwardedUserName`; never their email); never stored, so the row keeps only the id (#1852).', whyItMatters: 'Hidden from display: the person is shown through the foreign key, and this name is its label when the viewer may not read the user.' }),\n userId: schemaShape.userId.foreignKeySpec({ meaning: 'The member the chat account acts as.', whyItMatters: 'A request from the chat account carries this member\\'s own authority, resolved live at each request.', importance: FieldSemanticImportance.PRIMARY }),\n connectionRef: schemaShape.connectionRef.stringSpec({ meaning: 'The chat provider the account is at, as the application names its connection (`slack`, `microsoft-teams-bot`).', semanticRole: 'code' }),\n workspaceRef: schemaShape.workspaceRef.stringSpec({ meaning: 'The vendor\\'s workspace or tenant the account lives in (a Slack team id, a Microsoft tenant id).', semanticRole: 'code' }),\n chatUserId: schemaShape.chatUserId.stringSpec({ meaning: 'The vendor\\'s own id for the person (a Slack user id, a Microsoft Entra object id) — never a name or an email.', whyItMatters: 'With the workspace, what a chat request is matched on. Unique per organization, connection and workspace, so a chat account acts as one member at most.', semanticRole: 'code' }),\n linkedAt: schemaShape.linkedAt.dateSpec({ meaning: 'When the member completed the link.', temporalRole: 'creation' }),\n personalConversations: schemaShape.personalConversations.objectSpec({\n meaning: 'The person\\'s one-to-one conversation with each bot that can reach them (the application\\'s own bot, the organization\\'s own bot): the conversation id and the service URL Microsoft Teams sent it from. Recorded by the engine from a verified activity the person sent that bot in that conversation; never set by a request.',\n whyItMatters: 'Where the application posts to the person without their writing first, such as a pending decision\\'s card. Absent until such an activity arrives after the link was made; Slack needs nothing stored.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one chat link of the organization.',\n outcome: 'The link, with its member and chat account.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The link is returned.' }],\n errorScenarios: [NOT_AN_ADMINISTRATOR, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No link with this id exists in the organization.' }],\n idempotent: true,\n examples: [{ title: 'Read a Slack link', request: { organizationId: EXAMPLE_ORGANIZATION_ID, chatIdentityLinkId: EXAMPLE_LINK_ID }, response: linkExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List chat links: every link of the organization for an administrator, or your own links for a member.',\n outcome: 'A page of links, newest first when sorted by `linkedAt`.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of links.' }],\n errorScenarios: [NOT_A_MEMBER, { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller asked for the whole organization\\'s links and is not an administrator of the organization.' }],\n idempotent: true,\n examples: [{ title: 'List the organization\\'s chat links', request: { organizationId: EXAMPLE_ORGANIZATION_ID, sort: 'linkedAt:desc' }, response: page([linkExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n variants: {\n default: { purpose: 'An administrator lists every chat link of the organization, to see who acts from which chat account.' },\n [CHAT_IDENTITY_LINK_OWN_VARIANT_KEY]: {\n purpose: 'A member lists their own chat links.',\n outcome: 'Only the caller\\'s links, whatever filter is sent: the caller\\'s id is forced into it.',\n whenToUse: 'Settings › My chat accounts, where a member sees which chat accounts act as them and unlinks one. The email sent when a chat account is linked to them opens it.',\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Store a link. Written only by `completeLink`, through the engine.',\n outcome: 'The chat account acts as the member.',\n whenToUse: 'Internal only: route-less, never an HTTP surface.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The link was stored. Internal write path.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The chat account is already linked in the organization.' }],\n idempotent: false,\n },\n [Op.DELETE]: {\n purpose: 'Unlink a chat account: requests from it stop acting as the member.',\n outcome: 'The link is removed, and the unlink is written to the audit trail with who did it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The link was removed.' }],\n errorScenarios: [NOT_A_MEMBER, { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No link with this id exists in the organization.' }],\n idempotent: true,\n variants: {\n default: { purpose: 'An administrator unlinks any chat account of the organization — when a person leaves, or a chat account is compromised.' },\n [CHAT_IDENTITY_LINK_OWN_VARIANT_KEY]: {\n purpose: 'A member unlinks one of their own chat accounts.',\n outcome: 'Refused for a link that is not the caller\\'s, whatever id is sent: the server checks the stored row.',\n },\n },\n },\n [Op.DELETE_MANY]: {\n purpose: 'Removes links with their organization or their member (internal, route-less).',\n outcome: 'An erased or deleted member leaves no chat account acting in their name.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n [ChatIdentityLinks_Operations.COMPLETE_LINK]: {\n operationId: ChatIdentityLinks_Operations.COMPLETE_LINK,\n purpose: 'Complete the link a chat bot gave you: your chat account starts acting as you in this organization.',\n outcome: 'The link exists, is written to the audit trail, and you are emailed that it exists. Completing a new link for an account already linked to you returns that link.',\n whenToUse: 'The application\\'s bot answered you in chat with a link because it did not know you yet. Sign in, open the link, and it calls this.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The link is in force; it is returned.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization, or is not a person (a machine credential holds no chat account).' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The link is not a chat link, was replaced by a newer one, was already used, has expired, or belongs to another organization. Nothing is spent: ask the bot for a new link.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The chat account is already linked to another member. They, or an administrator, must unlink it first.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Complete a link from Slack',\n request: { organizationId: EXAMPLE_ORGANIZATION_ID, token: '3f9a1c2e4b5d6a7f8e9d0c1b2a3f4e5d6c7b8a9f0e1d2c3b4a5f6e7d8c9b0a1f' },\n response: linkExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [ChatIdentityLinks_Operations.PREVIEW_LINK]: {\n operationId: ChatIdentityLinks_Operations.PREVIEW_LINK,\n purpose: 'See which chat account a link names before completing it, without using the link.',\n outcome: 'The account, how the chat vendor names you and the workspace, whether the account is already linked (to you or to another member), and when the link expires.',\n whenToUse: 'The link page asks this first, so you confirm that the account is yours: a link someone else sent you names THEIR chat account, and completing it would let them act as you.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The account the link names is described; the link is still unused.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a member of the organization, or is not a person.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The link is not a chat link, was replaced, was already used, has expired, or belongs to another organization.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Preview a link from Slack',\n request: { organizationId: EXAMPLE_ORGANIZATION_ID, token: '3f9a1c2e4b5d6a7f8e9d0c1b2a3f4e5d6c7b8a9f0e1d2c3b4a5f6e7d8c9b0a1f' },\n response: {\n connectionRef: 'slack',\n workspaceRef: 'T024BE7LD',\n chatUserId: 'U012AB3CDE',\n chatUserDisplayName: 'Ana Silva',\n workspaceDisplayName: 'Acme',\n standing: ChatIdentityLinkPreviewStanding.NOT_LINKED,\n expiresAt: '2026-10-06T09:45:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'A chat account acts as at most one member per organization, and only after that member, signed in, completed a link the bot minted for that exact account.',\n 'A link is single use, short-lived, and replaced by the next one the bot mints for the same account.',\n 'The member sees which chat account a link names before completing it, and is emailed once it is linked: a link someone else\\'s chat account sent them would otherwise let that account act as them unnoticed.',\n 'A request from a linked account carries the member\\'s CURRENT roles: a member who lost a role loses it in chat at the next request, and a suspended or removed member acts as no one.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
|