@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-agent-policies.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/organization-agent-policies.resource.specification.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAUjI,eAAO,MAAM,8CAA8C,EAAE,8BAgI5D,CAAC"}
|
package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `organizationAgentPolicies` — Wildo SaaS engine specification (organization singleton). #2292 R8.
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: `OrganizationAgentPolicySchema` (`flows-actors/organization-agent-policies.shared.schemas.ts`)
|
|
6
|
+
* - Factory: `organizationAgentPoliciesResourceConfiguration_InitializationFactory`
|
|
7
|
+
* - Custom operations: `OrganizationAgentPolicies_Operations`. `relax` is implemented with the other doors by
|
|
8
|
+
* `organization-agent-policies.custom-impl.backend.service.ts`; #2843's `suspendAgent` / `resumeAgent` by
|
|
9
|
+
* `flows-actors/agent-suspension/agent-suspension.custom-impl.backend.service.ts` (saas-backend-lib).
|
|
10
|
+
* - Readers: the agent runtime, as the engine, on every turn acting for the organization (`agent-policy.backend.ts`), and
|
|
11
|
+
* the agent service's admission on every model call (`agent-suspension.backend.ts`).
|
|
12
|
+
*
|
|
13
|
+
* How the policy combines with an agent's own guardrails is `effectiveAgentContentGuardrails` (saas-models); it is not
|
|
14
|
+
* restated here.
|
|
15
|
+
*/
|
|
16
|
+
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
17
|
+
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
18
|
+
import { CoreResourceOperation as Op, FlowsActors_PromptInjectionScreeningScope, OrganizationAgentPolicies_Operations, OrganizationAgentPolicySchema, RedactionType, ResourcePrimaryScope, organizationAgentPoliciesResourceConfiguration_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 enumDeclaration = (exportName) => ({
|
|
22
|
+
packageName: '@wildo-ai/saas-models',
|
|
23
|
+
exportName,
|
|
24
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
25
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
26
|
+
});
|
|
27
|
+
export const organizationAgentPoliciesResourceSpecification = resourceSpecification(organizationAgentPoliciesResourceConfiguration_InitializationFactory, OrganizationAgentPolicySchema, ({ schemaShape }) => ({
|
|
28
|
+
purpose: 'Hold what one organization decides about the agents that work on its records (its agent policy): its tightening of their content guardrails (what their models are sent in place of personal data, whether what strangers wrote is screened, and which harmful outputs are withheld), and the agents it suspended.',
|
|
29
|
+
businessRole: 'An organization may protect its clients\' data more than the application does, never less: a firm under professional secrecy switches personal-data treatment on for every agent that touches its matters, whatever each agent declares.',
|
|
30
|
+
lifecycleRole: 'Created empty (nothing tightened) by the engine the first time its settings page is read; tightened by the organization\'s administrator and loosened only by its owner with a fresh proof of identity. Every change is on the audit trail. No row means nothing tightened.',
|
|
31
|
+
audience: LabelAudience.DEVELOPER,
|
|
32
|
+
subDomain: EngineResourceSubDomain.FLOWS_ACTORS,
|
|
33
|
+
codeHandling: {
|
|
34
|
+
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationAgentPolicySchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
35
|
+
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationAgentPoliciesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
36
|
+
resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_AGENT_POLICIES' },
|
|
37
|
+
operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('OrganizationAgentPolicies_Operations') },
|
|
38
|
+
notes: [
|
|
39
|
+
'One per organization (`organizationId` unique). Organization state: a representative works under it and never reads or edits it (every route admits only the organization\'s own members), and a first READ by anyone never stamps a relationship on the row.',
|
|
40
|
+
'UPDATE (ORG_ADMIN) may only tighten: a change that would let any agent be sent or write more than the stored row allows is refused 403 `agent_policy_loosening_requires_relax`. `relax` (ORG_OWNER, step-up) may change anything.',
|
|
41
|
+
'Every door refuses a malformed policy (a SAFE threshold, a category named twice) and a policy that switches screening or moderation on where no selected classifier can serve it. Every CREATE, UPDATE and `relax` emits AGENT_POLICY_CHANGED after it commits, with the posture before and after and whether it loosened anything.',
|
|
42
|
+
'Applied to every turn acting for the organization — its own members\', and a representative\'s — through a merge that can only tighten each agent\'s declaration. A policy that cannot be read refuses the turn.',
|
|
43
|
+
'`suspendedAgents` (#2843) is written only by `suspendAgent` and `resumeAgent` (ORG_ADMIN, with a reason): UPDATE and `relax` never change it. The agent service reads it before every model call acting for the organization and refuses a suspended agent (`agent_suspended`, the turn code `AGENT_SUSPENDED`); a list that cannot be read refuses the call. Each change emits AGENT_SUSPENSION_CHANGED (HIGH). An erased administrator\'s id leaves the entry; the suspension stays.',
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
fields: {
|
|
47
|
+
_id: schemaShape._id.stringSpec({ meaning: 'Identity of the policy.', semanticRole: 'identifier' }),
|
|
48
|
+
organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization the policy is for.', importance: FieldSemanticImportance.PRIMARY }),
|
|
49
|
+
personalDataTreatment: schemaShape.personalDataTreatment.enumSpec({
|
|
50
|
+
meaning: 'What every agent of the organization\'s model is sent in place of a personal field\'s value, at least. Switches the treatment on for an agent that declares none, or raises TOKENIZE to REMOVE. Empty: the agents\' own declarations.',
|
|
51
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
52
|
+
enumDeclaration: enumDeclaration('RedactionType'),
|
|
53
|
+
values: {
|
|
54
|
+
[RedactionType.REMOVE]: { meaning: 'A placeholder naming the kind of data: the model never learns the value, and nothing can put it back.' },
|
|
55
|
+
[RedactionType.TOKENIZE]: { meaning: 'A placeholder bound to the conversation: the model can refer to the value, and the engine puts it back for the person and for a write.' },
|
|
56
|
+
},
|
|
57
|
+
}),
|
|
58
|
+
machineReadersKeepPlaceholders: schemaShape.machineReadersKeepPlaceholders.booleanSpec({
|
|
59
|
+
meaning: 'Whether a turn no person reads as their own (an A2A client\'s, an autonomous turn) keeps the placeholders, whatever an agent declares about re-identifying for machine readers.',
|
|
60
|
+
}),
|
|
61
|
+
promptInjectionScreening: schemaShape.promptInjectionScreening.enumSpec({
|
|
62
|
+
meaning: 'Whether what somebody else wrote is screened for instructions aimed at the model before every agent of the organization reads it. Empty: the agents\' own declarations.',
|
|
63
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
64
|
+
enumDeclaration: enumDeclaration('FlowsActors_PromptInjectionScreeningScope'),
|
|
65
|
+
values: {
|
|
66
|
+
[FlowsActors_PromptInjectionScreeningScope.THIRD_PARTY_CONTENT]: { meaning: 'Tool results and an inbound delivery\'s content are screened before the model reads them.' },
|
|
67
|
+
},
|
|
68
|
+
}),
|
|
69
|
+
outputModeration: schemaShape.outputModeration.arraySpec({
|
|
70
|
+
meaning: 'Harm categories every agent of the organization\'s output is judged in, with the lowest severity withheld. Joined with each agent\'s own: a category either judges is judged, at the lower of the two severities.',
|
|
71
|
+
elementMeaning: 'One harm category and the lowest severity withheld in it.',
|
|
72
|
+
}),
|
|
73
|
+
suspendedAgents: schemaShape.suspendedAgents.arraySpec({
|
|
74
|
+
meaning: 'The agents the organization\'s administrator switched off: none of them runs for work done for the organization until it is resumed.',
|
|
75
|
+
elementMeaning: 'One suspended agent: its ref, who suspended it, why, and when.',
|
|
76
|
+
}),
|
|
77
|
+
createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the policy was created.', temporalRole: 'creation' }),
|
|
78
|
+
updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the policy was last changed.', temporalRole: 'modified' }),
|
|
79
|
+
},
|
|
80
|
+
operations: {
|
|
81
|
+
[Op.READ]: {
|
|
82
|
+
purpose: 'Read the organization\'s policy: its settings page.',
|
|
83
|
+
outcome: 'The policy is returned; an organization with none gets its empty row, created on this read.',
|
|
84
|
+
idempotent: true,
|
|
85
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The policy was found or created empty.' }],
|
|
86
|
+
},
|
|
87
|
+
[Op.CREATE]: {
|
|
88
|
+
purpose: 'Record the organization\'s policy.',
|
|
89
|
+
outcome: 'The policy applies to every turn acting for the organization from now on, and the change is audited.',
|
|
90
|
+
responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The policy was created.' }],
|
|
91
|
+
errorScenarios: [{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The policy is malformed, or switches screening or moderation on where no classifier can serve it.' }],
|
|
92
|
+
},
|
|
93
|
+
[Op.UPDATE]: {
|
|
94
|
+
purpose: 'Tighten the organization\'s policy.',
|
|
95
|
+
outcome: 'The tighter policy applies to every turn acting for the organization from now on, and the change is audited.',
|
|
96
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The policy was tightened.' }],
|
|
97
|
+
errorScenarios: [
|
|
98
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The change would loosen the policy: loosening is the owner\'s `relax`.' },
|
|
99
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The policy is malformed, or switches screening or moderation on where no classifier can serve it.' },
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
[Op.DELETE]: { purpose: 'The organization-deletion cascade\'s door. Route-less.', outcome: 'The policy of a deleted organization is removed.', idempotent: true },
|
|
103
|
+
[OrganizationAgentPolicies_Operations.RELAX]: {
|
|
104
|
+
operationId: OrganizationAgentPolicies_Operations.RELAX,
|
|
105
|
+
purpose: 'Change the organization\'s policy in any direction, loosening included.',
|
|
106
|
+
outcome: 'The organization\'s agents may be sent or write more than before; the change, and that it loosened the policy, are audited at high risk.',
|
|
107
|
+
whenToUse: 'Use only when the organization decides its agents need less protection than it set. Needs the owner\'s role and a fresh proof of identity.',
|
|
108
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
109
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The policy was changed.' }],
|
|
110
|
+
errorScenarios: [
|
|
111
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\'s owner, or has not just proved their identity.' },
|
|
112
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The policy is malformed, or switches screening or moderation on where no classifier can serve it.' },
|
|
113
|
+
],
|
|
114
|
+
idempotent: true,
|
|
115
|
+
},
|
|
116
|
+
[OrganizationAgentPolicies_Operations.SUSPEND_AGENT]: {
|
|
117
|
+
operationId: OrganizationAgentPolicies_Operations.SUSPEND_AGENT,
|
|
118
|
+
purpose: 'Switch one agent off for the organization, with a reason.',
|
|
119
|
+
outcome: 'Every call to the agent acting for the organization is refused before its model runs, until it is resumed. A call already running ends after its bounded steps. Audited.',
|
|
120
|
+
whenToUse: 'Use when one of the organization\'s agents misbehaves and must stop now, without waiting for a release.',
|
|
121
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
122
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The agent is suspended for the organization (or already was).' }],
|
|
123
|
+
errorScenarios: [
|
|
124
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of this organization.' },
|
|
125
|
+
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such agent is declared, or the policy row does not exist yet (read the page first).' },
|
|
126
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The policy changed since it was read; read it again.' },
|
|
127
|
+
],
|
|
128
|
+
idempotent: true,
|
|
129
|
+
},
|
|
130
|
+
[OrganizationAgentPolicies_Operations.RESUME_AGENT]: {
|
|
131
|
+
operationId: OrganizationAgentPolicies_Operations.RESUME_AGENT,
|
|
132
|
+
purpose: 'Let a suspended agent run for the organization again, with a reason.',
|
|
133
|
+
outcome: 'Calls to the agent acting for the organization run again (unless the application suspended it too). Audited.',
|
|
134
|
+
whenToUse: 'Use once the cause of the suspension is dealt with.',
|
|
135
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The agent is no longer suspended for the organization (or was not).' }],
|
|
136
|
+
errorScenarios: [
|
|
137
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of this organization.' },
|
|
138
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The policy changed since it was read; read it again.' },
|
|
139
|
+
],
|
|
140
|
+
idempotent: true,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
businessConstraints: [
|
|
144
|
+
'One policy per organization.',
|
|
145
|
+
'An administrator can only tighten it; only the owner, with step-up, can loosen it.',
|
|
146
|
+
'It can only make an agent stricter than the agent declares, never looser.',
|
|
147
|
+
'Every change is audited.',
|
|
148
|
+
'Only an administrator of the organization suspends or resumes one of its agents; nobody else, and no other door, writes the suspension list.',
|
|
149
|
+
],
|
|
150
|
+
}), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
|
|
151
|
+
//# sourceMappingURL=organization-agent-policies.resource.specification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-agent-policies.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/organization-agent-policies.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,yCAAyC,EACzC,oCAAoC,EACpC,6BAA6B,EAC7B,aAAa,EACb,oBAAoB,EACpB,oEAAoE,GACrE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuC,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACjI,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,eAAe,GAAG,CAAC,UAAkB,EAAE,EAAE,CAAC,CAAC;IAC/C,WAAW,EAAE,uBAAuB;IACpC,UAAU;IACV,UAAU,EAAE,cAAc,CAAC,IAAI;IAC/B,eAAe,EAAE,mBAAmB,CAAC,eAAe;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,8CAA8C,GAAmC,qBAAqB,CACjH,oEAAoE,EACpE,6BAA6B,EAC7B,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,oTAAoT;IAC7T,YAAY,EAAE,0OAA0O;IACxP,aAAa,EAAE,6QAA6Q;IAC5R,QAAQ,EAAE,aAAa,CAAC,SAAS;IACjC,SAAS,EAAE,uBAAuB,CAAC,YAAY;IAC/C,YAAY,EAAE;QACZ,UAAU,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE,UAAU,EAAE,+BAA+B,EAAE,UAAU,EAAE,cAAc,CAAC,MAAM,EAAE,eAAe,EAAE,mBAAmB,CAAC,UAAU,EAAE;QACrL,eAAe,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE,UAAU,EAA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AE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,+DAA+D,EAAE,CAAC;YACrI,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,0DAA0D,EAAE;gBAChH,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,wFAAwF,EAAE;gBAC9I,EAAE,IAAI,EAAE,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,sDAAsD,EAAE;aAC5G;YACD,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,oCAAoC,CAAC,YAAY,CAAC,EAAE;YACnD,WAAW,EAAE,oCAAoC,CAAC,YAAY;YAC9D,OAAO,EAAE,sEAAsE;YAC/E,OAAO,EAAE,8GAA8G;YACvH,SAAS,EAAE,qDAAqD;YAChE,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,qEAAqE,EAAE,CAAC;YAC3I,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,0DAA0D,EAAE;gBAChH,EAAE,IAAI,EAAE,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,sDAAsD,EAAE;aAC5G;YACD,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,8BAA8B;QAC9B,oFAAoF;QACpF,2EAA2E;QAC3E,0BAA0B;QAC1B,8IAA8I;KAC/I;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `organizationAgentPolicies` — Wildo SaaS engine specification (organization singleton). #2292 R8.\n *\n * Inputs:\n * - Schema: `OrganizationAgentPolicySchema` (`flows-actors/organization-agent-policies.shared.schemas.ts`)\n * - Factory: `organizationAgentPoliciesResourceConfiguration_InitializationFactory`\n * - Custom operations: `OrganizationAgentPolicies_Operations`. `relax` is implemented with the other doors by\n * `organization-agent-policies.custom-impl.backend.service.ts`; #2843's `suspendAgent` / `resumeAgent` by\n * `flows-actors/agent-suspension/agent-suspension.custom-impl.backend.service.ts` (saas-backend-lib).\n * - Readers: the agent runtime, as the engine, on every turn acting for the organization (`agent-policy.backend.ts`), and\n * the agent service's admission on every model call (`agent-suspension.backend.ts`).\n *\n * How the policy combines with an agent's own guardrails is `effectiveAgentContentGuardrails` (saas-models); it is not\n * restated here.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n FlowsActors_PromptInjectionScreeningScope,\n OrganizationAgentPolicies_Operations,\n OrganizationAgentPolicySchema,\n RedactionType,\n ResourcePrimaryScope,\n organizationAgentPoliciesResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nexport const organizationAgentPoliciesResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n organizationAgentPoliciesResourceConfiguration_InitializationFactory,\n OrganizationAgentPolicySchema,\n ({ schemaShape }) => ({\n purpose: 'Hold what one organization decides about the agents that work on its records (its agent policy): its tightening of their content guardrails (what their models are sent in place of personal data, whether what strangers wrote is screened, and which harmful outputs are withheld), and the agents it suspended.',\n businessRole: 'An organization may protect its clients\\' data more than the application does, never less: a firm under professional secrecy switches personal-data treatment on for every agent that touches its matters, whatever each agent declares.',\n lifecycleRole: 'Created empty (nothing tightened) by the engine the first time its settings page is read; tightened by the organization\\'s administrator and loosened only by its owner with a fresh proof of identity. Every change is on the audit trail. No row means nothing tightened.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationAgentPolicySchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationAgentPoliciesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_AGENT_POLICIES' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation'), customEnum: enumDeclaration('OrganizationAgentPolicies_Operations') },\n notes: [\n 'One per organization (`organizationId` unique). Organization state: a representative works under it and never reads or edits it (every route admits only the organization\\'s own members), and a first READ by anyone never stamps a relationship on the row.',\n 'UPDATE (ORG_ADMIN) may only tighten: a change that would let any agent be sent or write more than the stored row allows is refused 403 `agent_policy_loosening_requires_relax`. `relax` (ORG_OWNER, step-up) may change anything.',\n 'Every door refuses a malformed policy (a SAFE threshold, a category named twice) and a policy that switches screening or moderation on where no selected classifier can serve it. Every CREATE, UPDATE and `relax` emits AGENT_POLICY_CHANGED after it commits, with the posture before and after and whether it loosened anything.',\n 'Applied to every turn acting for the organization — its own members\\', and a representative\\'s — through a merge that can only tighten each agent\\'s declaration. A policy that cannot be read refuses the turn.',\n '`suspendedAgents` (#2843) is written only by `suspendAgent` and `resumeAgent` (ORG_ADMIN, with a reason): UPDATE and `relax` never change it. The agent service reads it before every model call acting for the organization and refuses a suspended agent (`agent_suspended`, the turn code `AGENT_SUSPENDED`); a list that cannot be read refuses the call. Each change emits AGENT_SUSPENSION_CHANGED (HIGH). An erased administrator\\'s id leaves the entry; the suspension stays.',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identity of the policy.', semanticRole: 'identifier' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization the policy is for.', importance: FieldSemanticImportance.PRIMARY }),\n personalDataTreatment: schemaShape.personalDataTreatment.enumSpec({\n meaning: 'What every agent of the organization\\'s model is sent in place of a personal field\\'s value, at least. Switches the treatment on for an agent that declares none, or raises TOKENIZE to REMOVE. Empty: the agents\\' own declarations.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('RedactionType'),\n values: {\n [RedactionType.REMOVE]: { meaning: 'A placeholder naming the kind of data: the model never learns the value, and nothing can put it back.' },\n [RedactionType.TOKENIZE]: { meaning: 'A placeholder bound to the conversation: the model can refer to the value, and the engine puts it back for the person and for a write.' },\n },\n }),\n machineReadersKeepPlaceholders: schemaShape.machineReadersKeepPlaceholders.booleanSpec({\n meaning: 'Whether a turn no person reads as their own (an A2A client\\'s, an autonomous turn) keeps the placeholders, whatever an agent declares about re-identifying for machine readers.',\n }),\n promptInjectionScreening: schemaShape.promptInjectionScreening.enumSpec({\n meaning: 'Whether what somebody else wrote is screened for instructions aimed at the model before every agent of the organization reads it. Empty: the agents\\' own declarations.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: enumDeclaration('FlowsActors_PromptInjectionScreeningScope'),\n values: {\n [FlowsActors_PromptInjectionScreeningScope.THIRD_PARTY_CONTENT]: { meaning: 'Tool results and an inbound delivery\\'s content are screened before the model reads them.' },\n },\n }),\n outputModeration: schemaShape.outputModeration.arraySpec({\n meaning: 'Harm categories every agent of the organization\\'s output is judged in, with the lowest severity withheld. Joined with each agent\\'s own: a category either judges is judged, at the lower of the two severities.',\n elementMeaning: 'One harm category and the lowest severity withheld in it.',\n }),\n suspendedAgents: schemaShape.suspendedAgents.arraySpec({\n meaning: 'The agents the organization\\'s administrator switched off: none of them runs for work done for the organization until it is resumed.',\n elementMeaning: 'One suspended agent: its ref, who suspended it, why, and when.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the policy was created.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the policy was last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the organization\\'s policy: its settings page.',\n outcome: 'The policy is returned; an organization with none gets its empty row, created on this read.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The policy was found or created empty.' }],\n },\n [Op.CREATE]: {\n purpose: 'Record the organization\\'s policy.',\n outcome: 'The policy applies to every turn acting for the organization from now on, and the change is audited.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The policy was created.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The policy is malformed, or switches screening or moderation on where no classifier can serve it.' }],\n },\n [Op.UPDATE]: {\n purpose: 'Tighten the organization\\'s policy.',\n outcome: 'The tighter policy applies to every turn acting for the organization from now on, and the change is audited.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The policy was tightened.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The change would loosen the policy: loosening is the owner\\'s `relax`.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The policy is malformed, or switches screening or moderation on where no classifier can serve it.' },\n ],\n },\n [Op.DELETE]: { purpose: 'The organization-deletion cascade\\'s door. Route-less.', outcome: 'The policy of a deleted organization is removed.', idempotent: true },\n [OrganizationAgentPolicies_Operations.RELAX]: {\n operationId: OrganizationAgentPolicies_Operations.RELAX,\n purpose: 'Change the organization\\'s policy in any direction, loosening included.',\n outcome: 'The organization\\'s agents may be sent or write more than before; the change, and that it loosened the policy, are audited at high risk.',\n whenToUse: 'Use only when the organization decides its agents need less protection than it set. Needs the owner\\'s role and a fresh proof of identity.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The policy was changed.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the organization\\'s owner, or has not just proved their identity.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The policy is malformed, or switches screening or moderation on where no classifier can serve it.' },\n ],\n idempotent: true,\n },\n [OrganizationAgentPolicies_Operations.SUSPEND_AGENT]: {\n operationId: OrganizationAgentPolicies_Operations.SUSPEND_AGENT,\n purpose: 'Switch one agent off for the organization, with a reason.',\n outcome: 'Every call to the agent acting for the organization is refused before its model runs, until it is resumed. A call already running ends after its bounded steps. Audited.',\n whenToUse: 'Use when one of the organization\\'s agents misbehaves and must stop now, without waiting for a release.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The agent is suspended for the organization (or already was).' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of this organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No such agent is declared, or the policy row does not exist yet (read the page first).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The policy changed since it was read; read it again.' },\n ],\n idempotent: true,\n },\n [OrganizationAgentPolicies_Operations.RESUME_AGENT]: {\n operationId: OrganizationAgentPolicies_Operations.RESUME_AGENT,\n purpose: 'Let a suspended agent run for the organization again, with a reason.',\n outcome: 'Calls to the agent acting for the organization run again (unless the application suspended it too). Audited.',\n whenToUse: 'Use once the cause of the suspension is dealt with.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The agent is no longer suspended for the organization (or was not).' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of this organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The policy changed since it was read; read it again.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'One policy per organization.',\n 'An administrator can only tighten it; only the owner, with step-up, can loosen it.',\n 'It can only make an agent stricter than the agent declares, never looser.',\n 'Every change is audited.',\n 'Only an administrator of the organization suspends or resumes one of its agents; nobody else, and no other door, writes the suspension list.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `organizationChatSettings` — Wildo SaaS engine specification (organization-scoped). #2665.
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: `OrganizationChatSettingSchema` (`inbound/organization-chat-settings.shared.schemas.ts`)
|
|
6
|
+
* - Factory: `organizationChatSettingsResourceConfiguration_InitializationFactory`
|
|
7
|
+
* (`inbound/organization-chat-settings.shared.resources-config.schemas.ts`)
|
|
8
|
+
* - Write checks: `organization-chat-settings.custom-impl.backend.service.ts` (saas-backend-lib); the choice is resolved
|
|
9
|
+
* by `ChatAgentsBackendService.resolve`.
|
|
10
|
+
*
|
|
11
|
+
* Why `ORGANIZATIONS` scope: the choice is the organization's, applies only to its own people, and is purged with it.
|
|
12
|
+
* The registry relationship ORGANIZATIONS → organizationChatSettings carries `isPrimaryScope: true`.
|
|
13
|
+
*/
|
|
14
|
+
import { CoreResourceOperation as Op } from '@wildo-ai/saas-models';
|
|
15
|
+
export declare const organizationChatSettingsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<undefined, Op.READ | Op.UPDATE | Op.DELETE | Op.DELETE_MANY | Op.CREATE | Op.LIST, import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
16
|
+
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
17
|
+
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("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>>;
|
|
18
|
+
connectionRef: 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>>>>;
|
|
19
|
+
chatAgentRef: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
20
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
21
|
+
updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
22
|
+
}, import("zod/v4/core").$strip>>>;
|
|
23
|
+
//# sourceMappingURL=organization-chat-settings.resource.specification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-chat-settings.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/organization-chat-settings.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AA6B/B,eAAO,MAAM,6CAA6C;;;;;;;kCAyFzD,CAAC"}
|
package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `organizationChatSettings` — Wildo SaaS engine specification (organization-scoped). #2665.
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: `OrganizationChatSettingSchema` (`inbound/organization-chat-settings.shared.schemas.ts`)
|
|
6
|
+
* - Factory: `organizationChatSettingsResourceConfiguration_InitializationFactory`
|
|
7
|
+
* (`inbound/organization-chat-settings.shared.resources-config.schemas.ts`)
|
|
8
|
+
* - Write checks: `organization-chat-settings.custom-impl.backend.service.ts` (saas-backend-lib); the choice is resolved
|
|
9
|
+
* by `ChatAgentsBackendService.resolve`.
|
|
10
|
+
*
|
|
11
|
+
* Why `ORGANIZATIONS` scope: the choice is the organization's, applies only to its own people, and is purged with it.
|
|
12
|
+
* The registry relationship ORGANIZATIONS → organizationChatSettings carries `isPrimaryScope: true`.
|
|
13
|
+
*/
|
|
14
|
+
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
15
|
+
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
|
|
16
|
+
import { CoreResourceOperation as Op, OrganizationChatSettingSchema, ResourcePrimaryScope, organizationChatSettingsResourceConfiguration_InitializationFactory, } from '@wildo-ai/saas-models';
|
|
17
|
+
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
18
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
19
|
+
const EXAMPLE_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7V8W9XY';
|
|
20
|
+
const EXAMPLE_SETTING_ID = '66f6a1c2e3d4b5a697887901';
|
|
21
|
+
const enumDeclaration = (exportName) => ({
|
|
22
|
+
packageName: '@wildo-ai/saas-models',
|
|
23
|
+
exportName,
|
|
24
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
25
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
26
|
+
});
|
|
27
|
+
const page = (data) => ({ data, pagination: { page: 1, limit: 20, total: data.length, totalPages: data.length === 0 ? 0 : 1 } });
|
|
28
|
+
const settingExample = {
|
|
29
|
+
_id: EXAMPLE_SETTING_ID,
|
|
30
|
+
organizationId: EXAMPLE_ORGANIZATION_ID,
|
|
31
|
+
connectionRef: 'slack',
|
|
32
|
+
chatAgentRef: 'todos.assistant',
|
|
33
|
+
createdAt: '2026-10-08T09:30:00.000Z',
|
|
34
|
+
updatedAt: '2026-10-08T09:30:00.000Z',
|
|
35
|
+
};
|
|
36
|
+
const NOT_AN_ADMINISTRATOR = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' };
|
|
37
|
+
const NOT_FOUND = { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No chat setting with this id exists in the organization.' };
|
|
38
|
+
const AGENT_NOT_DECLARED = { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The agent is not one the application declares (`chat_agent_not_declared`); the refusal lists the agents it does declare.' };
|
|
39
|
+
export const organizationChatSettingsResourceSpecification = resourceSpecification(organizationChatSettingsResourceConfiguration_InitializationFactory, OrganizationChatSettingSchema, ({ schemaShape }) => ({
|
|
40
|
+
purpose: 'Record which of the application\'s chat agents answers the organization\'s people on each chat connection (Slack, Microsoft Teams).',
|
|
41
|
+
businessRole: 'The organization\'s say over who answers its people in chat. An agent answers as the person who wrote, with that person\'s authority, so choosing one decides which agent acts for the organization\'s members from their chat tool.',
|
|
42
|
+
lifecycleRole: 'Created when an administrator chooses an agent for a connection, changed when they choose another, removed when they drop the choice (the application\'s default agent then answers on that connection, if it declares one). Purged with the organization.',
|
|
43
|
+
audience: LabelAudience.ADMIN,
|
|
44
|
+
subDomain: EngineResourceSubDomain.FLOWS_ACTORS,
|
|
45
|
+
codeHandling: {
|
|
46
|
+
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationChatSettingSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
47
|
+
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationChatSettingsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
48
|
+
resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_CHAT_SETTINGS' },
|
|
49
|
+
operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },
|
|
50
|
+
notes: [
|
|
51
|
+
'The agents an organization can choose are the ones the application declares on a backend module (`flowsActors.chatAgents`); the connections are the application\'s providers enabled here with a chat endpoint the engine verifies. `/flows-actors/frontend-info` lists both, and a write naming anything else is refused.',
|
|
52
|
+
'Resolution, in order: the organization\'s row for the connection → the agent the application declares `isDefault` → nobody (the person is told so). A row naming an agent the application no longer declares answers NOBODY rather than the default: the organization chose that agent, not the default.',
|
|
53
|
+
'One row per connection rather than one row holding a list, so each choice is its own audited write and the uniqueness of a connection is an index (organizationId + connectionRef).',
|
|
54
|
+
'Every write is HIGH risk and so leaves the framework\'s own audit row, carrying the connection and the agent (`.isAuditEvidence()`).',
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
fields: {
|
|
58
|
+
_id: schemaShape._id.stringSpec({ meaning: 'Identifier of one chat setting.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),
|
|
59
|
+
organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization the choice is for.', whyItMatters: 'The only organization it applies in: another organization on the same connection makes its own choice.', importance: FieldSemanticImportance.PRIMARY }),
|
|
60
|
+
connectionRef: schemaShape.connectionRef.stringSpec({ meaning: 'The chat connection the choice applies to, as the application names it (`slack`, `microsoft-teams-bot`): the same ref a chat identity link records.', whyItMatters: 'Fixed once chosen; one row per connection per organization.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),
|
|
61
|
+
chatAgentRef: schemaShape.chatAgentRef.stringSpec({ meaning: 'The declared chat agent that answers the organization\'s people on this connection.', whyItMatters: 'Decides which agent acts, as the member who wrote, on every message the organization\'s people send the bot on this connection.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),
|
|
62
|
+
createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization first chose an agent for this connection.', temporalRole: 'creation' }),
|
|
63
|
+
updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the choice last changed.', temporalRole: 'modified' }),
|
|
64
|
+
},
|
|
65
|
+
operations: {
|
|
66
|
+
[Op.READ]: {
|
|
67
|
+
purpose: 'Read one chat setting of the organization.',
|
|
68
|
+
outcome: 'The connection and the agent chosen for it.',
|
|
69
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The setting is returned.' }],
|
|
70
|
+
errorScenarios: [NOT_AN_ADMINISTRATOR, NOT_FOUND],
|
|
71
|
+
idempotent: true,
|
|
72
|
+
examples: [{ title: 'Read the Slack choice', request: { organizationId: EXAMPLE_ORGANIZATION_ID, organizationChatSettingId: EXAMPLE_SETTING_ID }, response: settingExample, forStatus: HttpResponseStatusCode.OK_200 }],
|
|
73
|
+
},
|
|
74
|
+
[Op.LIST]: {
|
|
75
|
+
purpose: 'List the organization\'s chat settings: which agent answers on each connection it chose for.',
|
|
76
|
+
outcome: 'A page of settings, by connection. A connection with no row is answered by the application\'s default agent, if it declares one.',
|
|
77
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of settings.' }],
|
|
78
|
+
errorScenarios: [NOT_AN_ADMINISTRATOR],
|
|
79
|
+
idempotent: true,
|
|
80
|
+
examples: [{ title: 'List the organization\'s chat settings', request: { organizationId: EXAMPLE_ORGANIZATION_ID, sort: 'connectionRef:asc' }, response: page([settingExample]), forStatus: HttpResponseStatusCode.OK_200 }],
|
|
81
|
+
},
|
|
82
|
+
[Op.CREATE]: {
|
|
83
|
+
purpose: 'Choose the agent that answers the organization\'s people on a chat connection.',
|
|
84
|
+
outcome: 'The agent answers there from the next message on, as the person who wrote. The choice is written to the audit trail.',
|
|
85
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
86
|
+
responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The choice is in force; it is returned.' }],
|
|
87
|
+
errorScenarios: [
|
|
88
|
+
NOT_AN_ADMINISTRATOR,
|
|
89
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The connection is not one the application offers here (`chat_connection_not_available`); the refusal lists the ones it does.' },
|
|
90
|
+
AGENT_NOT_DECLARED,
|
|
91
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization already chose an agent for this connection: change that setting instead.' },
|
|
92
|
+
],
|
|
93
|
+
idempotent: false,
|
|
94
|
+
examples: [{ title: 'Choose the assistant for Slack', request: { organizationId: EXAMPLE_ORGANIZATION_ID, connectionRef: 'slack', chatAgentRef: 'todos.assistant' }, response: settingExample, forStatus: HttpResponseStatusCode.CREATED_201 }],
|
|
95
|
+
},
|
|
96
|
+
[Op.UPDATE]: {
|
|
97
|
+
purpose: 'Choose another agent for a connection.',
|
|
98
|
+
outcome: 'The new agent answers from the next message on; conversations with the previous agent are not continued by the new one. The change is written to the audit trail.',
|
|
99
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The new choice is in force.' }],
|
|
100
|
+
errorScenarios: [NOT_AN_ADMINISTRATOR, NOT_FOUND, AGENT_NOT_DECLARED],
|
|
101
|
+
idempotent: true,
|
|
102
|
+
examples: [{ title: 'Switch Slack to another agent', request: { organizationId: EXAMPLE_ORGANIZATION_ID, organizationChatSettingId: EXAMPLE_SETTING_ID, chatAgentRef: 'todos.helper' }, response: { ...settingExample, chatAgentRef: 'todos.helper' }, forStatus: HttpResponseStatusCode.OK_200 }],
|
|
103
|
+
},
|
|
104
|
+
[Op.DELETE]: {
|
|
105
|
+
purpose: 'Drop the organization\'s choice for a connection.',
|
|
106
|
+
outcome: 'The application\'s default agent answers there again, if it declares one; otherwise nobody does, and a person who writes is told so. The removal is written to the audit trail.',
|
|
107
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The choice was removed.' }],
|
|
108
|
+
errorScenarios: [NOT_AN_ADMINISTRATOR, NOT_FOUND],
|
|
109
|
+
idempotent: true,
|
|
110
|
+
},
|
|
111
|
+
[Op.DELETE_MANY]: {
|
|
112
|
+
purpose: 'Removes the organization\'s chat settings with the organization (internal, route-less).',
|
|
113
|
+
outcome: 'Nothing of the organization\'s choice outlives it.',
|
|
114
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],
|
|
115
|
+
idempotent: true,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
businessConstraints: [
|
|
119
|
+
'An organization chooses at most one agent per chat connection.',
|
|
120
|
+
'Only an agent the application declares, on a connection the application offers here, can be chosen.',
|
|
121
|
+
'Whoever answers, every turn runs as the linked member who wrote, with that member\'s current authority in the organization: choosing an agent never widens what a member can do.',
|
|
122
|
+
],
|
|
123
|
+
}), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
|
|
124
|
+
//# sourceMappingURL=organization-chat-settings.resource.specification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization-chat-settings.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/organization-chat-settings.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;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,6BAA6B,EAC7B,oBAAoB,EACpB,mEAAmE,GACpE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,uBAAuB,GAAG,gCAAgC,CAAC;AACjE,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;AAEtD,MAAM,eAAe,GAAG,CAAC,UAAkB,EAAE,EAAE,CAAC,CAAC;IAC/C,WAAW,EAAE,uBAAuB;IACpC,UAAU;IACV,UAAU,EAAE,cAAc,CAAC,IAAI;IAC/B,eAAe,EAAE,mBAAmB,CAAC,eAAe;CACrD,CAAC,CAAC;AAEH,MAAM,IAAI,GAAG,CAAI,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,OAAO,EAAE,iLAAiL;YAC1L,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;YAC/F,cAAc,EAAE,CAAC,oBAAoB,EAAE,SAAS,CAAC;YACjD,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE;YAChB,OAAO,EAAE,yFAAyF;YAClG,OAAO,EAAE,oDAAoD;YAC7D,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;YAClG,UAAU,EAAE,IAAI;SACjB;KACF;IACD,mBAAmB,EAAE;QACnB,gEAAgE;QAChE,qGAAqG;QACrG,kLAAkL;KACnL;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `organizationChatSettings` — Wildo SaaS engine specification (organization-scoped). #2665.\n *\n * Inputs:\n * - Schema: `OrganizationChatSettingSchema` (`inbound/organization-chat-settings.shared.schemas.ts`)\n * - Factory: `organizationChatSettingsResourceConfiguration_InitializationFactory`\n * (`inbound/organization-chat-settings.shared.resources-config.schemas.ts`)\n * - Write checks: `organization-chat-settings.custom-impl.backend.service.ts` (saas-backend-lib); the choice is resolved\n * by `ChatAgentsBackendService.resolve`.\n *\n * Why `ORGANIZATIONS` scope: the choice is the organization's, applies only to its own people, and is purged with it.\n * The registry relationship ORGANIZATIONS → organizationChatSettings carries `isPrimaryScope: true`.\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 OrganizationChatSettingSchema,\n ResourcePrimaryScope,\n organizationChatSettingsResourceConfiguration_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_SETTING_ID = '66f6a1c2e3d4b5a697887901';\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 settingExample = {\n _id: EXAMPLE_SETTING_ID,\n organizationId: EXAMPLE_ORGANIZATION_ID,\n connectionRef: 'slack',\n chatAgentRef: 'todos.assistant',\n createdAt: '2026-10-08T09:30:00.000Z',\n updatedAt: '2026-10-08T09:30:00.000Z',\n};\n\nconst NOT_AN_ADMINISTRATOR = { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' };\nconst NOT_FOUND = { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No chat setting with this id exists in the organization.' };\nconst AGENT_NOT_DECLARED = { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The agent is not one the application declares (`chat_agent_not_declared`); the refusal lists the agents it does declare.' };\n\nexport const organizationChatSettingsResourceSpecification = resourceSpecification(\n organizationChatSettingsResourceConfiguration_InitializationFactory,\n OrganizationChatSettingSchema,\n ({ schemaShape }) => ({\n purpose: 'Record which of the application\\'s chat agents answers the organization\\'s people on each chat connection (Slack, Microsoft Teams).',\n businessRole: 'The organization\\'s say over who answers its people in chat. An agent answers as the person who wrote, with that person\\'s authority, so choosing one decides which agent acts for the organization\\'s members from their chat tool.',\n lifecycleRole: 'Created when an administrator chooses an agent for a connection, changed when they choose another, removed when they drop the choice (the application\\'s default agent then answers on that connection, if it declares one). Purged with the organization.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'OrganizationChatSettingSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'organizationChatSettingsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_CHAT_SETTINGS' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },\n notes: [\n 'The agents an organization can choose are the ones the application declares on a backend module (`flowsActors.chatAgents`); the connections are the application\\'s providers enabled here with a chat endpoint the engine verifies. `/flows-actors/frontend-info` lists both, and a write naming anything else is refused.',\n 'Resolution, in order: the organization\\'s row for the connection → the agent the application declares `isDefault` → nobody (the person is told so). A row naming an agent the application no longer declares answers NOBODY rather than the default: the organization chose that agent, not the default.',\n 'One row per connection rather than one row holding a list, so each choice is its own audited write and the uniqueness of a connection is an index (organizationId + connectionRef).',\n 'Every write is HIGH risk and so leaves the framework\\'s own audit row, carrying the connection and the agent (`.isAuditEvidence()`).',\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Identifier of one chat setting.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n organizationId: schemaShape.organizationId.foreignKeySpec({ meaning: 'The organization the choice is for.', whyItMatters: 'The only organization it applies in: another organization on the same connection makes its own choice.', importance: FieldSemanticImportance.PRIMARY }),\n connectionRef: schemaShape.connectionRef.stringSpec({ meaning: 'The chat connection the choice applies to, as the application names it (`slack`, `microsoft-teams-bot`): the same ref a chat identity link records.', whyItMatters: 'Fixed once chosen; one row per connection per organization.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),\n chatAgentRef: schemaShape.chatAgentRef.stringSpec({ meaning: 'The declared chat agent that answers the organization\\'s people on this connection.', whyItMatters: 'Decides which agent acts, as the member who wrote, on every message the organization\\'s people send the bot on this connection.', semanticRole: 'code', importance: FieldSemanticImportance.PRIMARY }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the organization first chose an agent for this connection.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'When the choice last changed.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one chat setting of the organization.',\n outcome: 'The connection and the agent chosen for it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The setting is returned.' }],\n errorScenarios: [NOT_AN_ADMINISTRATOR, NOT_FOUND],\n idempotent: true,\n examples: [{ title: 'Read the Slack choice', request: { organizationId: EXAMPLE_ORGANIZATION_ID, organizationChatSettingId: EXAMPLE_SETTING_ID }, response: settingExample, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.LIST]: {\n purpose: 'List the organization\\'s chat settings: which agent answers on each connection it chose for.',\n outcome: 'A page of settings, by connection. A connection with no row is answered by the application\\'s default agent, if it declares one.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of settings.' }],\n errorScenarios: [NOT_AN_ADMINISTRATOR],\n idempotent: true,\n examples: [{ title: 'List the organization\\'s chat settings', request: { organizationId: EXAMPLE_ORGANIZATION_ID, sort: 'connectionRef:asc' }, response: page([settingExample]), forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.CREATE]: {\n purpose: 'Choose the agent that answers the organization\\'s people on a chat connection.',\n outcome: 'The agent answers there from the next message on, as the person who wrote. The choice is written to the audit trail.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The choice is in force; it is returned.' }],\n errorScenarios: [\n NOT_AN_ADMINISTRATOR,\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The connection is not one the application offers here (`chat_connection_not_available`); the refusal lists the ones it does.' },\n AGENT_NOT_DECLARED,\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization already chose an agent for this connection: change that setting instead.' },\n ],\n idempotent: false,\n examples: [{ title: 'Choose the assistant for Slack', request: { organizationId: EXAMPLE_ORGANIZATION_ID, connectionRef: 'slack', chatAgentRef: 'todos.assistant' }, response: settingExample, forStatus: HttpResponseStatusCode.CREATED_201 }],\n },\n [Op.UPDATE]: {\n purpose: 'Choose another agent for a connection.',\n outcome: 'The new agent answers from the next message on; conversations with the previous agent are not continued by the new one. The change is written to the audit trail.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The new choice is in force.' }],\n errorScenarios: [NOT_AN_ADMINISTRATOR, NOT_FOUND, AGENT_NOT_DECLARED],\n idempotent: true,\n examples: [{ title: 'Switch Slack to another agent', request: { organizationId: EXAMPLE_ORGANIZATION_ID, organizationChatSettingId: EXAMPLE_SETTING_ID, chatAgentRef: 'todos.helper' }, response: { ...settingExample, chatAgentRef: 'todos.helper' }, forStatus: HttpResponseStatusCode.OK_200 }],\n },\n [Op.DELETE]: {\n purpose: 'Drop the organization\\'s choice for a connection.',\n outcome: 'The application\\'s default agent answers there again, if it declares one; otherwise nobody does, and a person who writes is told so. The removal is written to the audit trail.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The choice was removed.' }],\n errorScenarios: [NOT_AN_ADMINISTRATOR, NOT_FOUND],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Removes the organization\\'s chat settings with the organization (internal, route-less).',\n outcome: 'Nothing of the organization\\'s choice outlives it.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Internal delete completed.' }],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'An organization chooses at most one agent per chat connection.',\n 'Only an agent the application declares, on a connection the application offers here, can be chosen.',\n 'Whoever answers, every turn runs as the linked member who wrote, with that member\\'s current authority in the organization: choosing an agent never widens what a member can do.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-token-ceiling-state.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAUjI,eAAO,MAAM,wDAAwD,EAAE,8BAkGtE,CAAC"}
|
package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource: `organizationPersonTokenCeilingState` — Wildo SaaS engine specification (#2844).
|
|
3
|
+
*
|
|
4
|
+
* Inputs:
|
|
5
|
+
* - Schema: `PersonTokenCeilingStateSchema` (`flows-actors/person-token-ceiling-state.shared.schemas.ts`)
|
|
6
|
+
* - Factory: `personTokenCeilingStateResourceConfiguration_InitializationFactory`
|
|
7
|
+
* - Writer and reader: `A2ATokenBudgetBackendService` (`@wildo-ai/saas-backend-lib`), on every in-app turn.
|
|
8
|
+
*
|
|
9
|
+
* Why this is a resource of its own, keyed (organizationId, userId), and why an erasure deletes the row rather than
|
|
10
|
+
* severing the person's id, is the schema file's header; it is not restated here.
|
|
11
|
+
*/
|
|
12
|
+
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
13
|
+
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
14
|
+
import { CoreResourceOperation as Op, PersonTokenCeilingStateSchema, ResourcePrimaryScope, personTokenCeilingStateResourceConfiguration_InitializationFactory as personTokenCeilingStateFactory, } from '@wildo-ai/saas-models';
|
|
15
|
+
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
16
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
17
|
+
const enumDeclaration = (exportName) => ({
|
|
18
|
+
packageName: '@wildo-ai/saas-models',
|
|
19
|
+
exportName,
|
|
20
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
21
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
22
|
+
});
|
|
23
|
+
export const organizationPersonTokenCeilingStateResourceSpecification = resourceSpecification(personTokenCeilingStateFactory, PersonTokenCeilingStateSchema, ({ schemaShape }) => ({
|
|
24
|
+
purpose: 'Count how many LLM tokens one person\'s in-app chat has spent inside one organization in the current period.',
|
|
25
|
+
businessRole: 'The consumption half of the per-person ceiling (`a2a.llm.tokensPerPersonPerPeriod`), compared before every in-app turn against what the organization\'s plan allows each person, so one account cannot exhaust the model allowance its colleagues share.',
|
|
26
|
+
lifecycleRole: 'Opened on the person\'s first in-app turn in the organization, incremented after every one, reset in place when the period changes, and deleted with the organization, with the person\'s erasure, or once nobody has spent against it for the application\'s resource-data period.',
|
|
27
|
+
audience: LabelAudience.DEVELOPER,
|
|
28
|
+
subDomain: EngineResourceSubDomain.FLOWS_ACTORS,
|
|
29
|
+
codeHandling: {
|
|
30
|
+
mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'PersonTokenCeilingStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },
|
|
31
|
+
resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'personTokenCeilingStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },
|
|
32
|
+
resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_PERSON_TOKEN_CEILING_STATE' },
|
|
33
|
+
operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },
|
|
34
|
+
notes: [
|
|
35
|
+
'Every operation is INTERNAL_CALL and route-less: the token budget service is the only writer and reader, and the person sees their spend through `GET /features/resolved`, whose meter reads this row through the service\'s usage reader.',
|
|
36
|
+
'There is deliberately NO UPDATE operation: the counter is advanced by the atomic repository-tier increment (`atomicIncrementField`), so concurrent turns cannot lose tokens to a read-modify-write race.',
|
|
37
|
+
'The ceiling is not stored here: it is the `a2a.llm.tokensPerPersonPerPeriod` LIMIT feature (`A2A_PERSON_TOKEN_CEILING_FEATURE_ID`), resolved live from the ORGANIZATION\'s plan.',
|
|
38
|
+
'Only in-app chat (`ModelSpendDoor.WEBSOCKET_SESSION`) is counted here (`modelSpendDoorChargesPersonCeiling`). A flow\'s model calls (`ModelSpendDoor.FLOW_STEP`) are never counted here, though a person started the run: the ceiling bounds a person\'s interactive use of the assistant (#2935). Every door is counted against the organization budget.',
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
fields: {
|
|
42
|
+
_id: schemaShape._id.stringSpec({ meaning: 'Document id of this person\'s counter in this organization.', semanticRole: 'identifier' }),
|
|
43
|
+
organizationId: schemaShape.organizationId.foreignKeySpec({
|
|
44
|
+
meaning: 'The organization whose plan grants the ceiling and whose allowance the person\'s turns spend.',
|
|
45
|
+
whyItMatters: 'The ceiling is a share of THIS organization\'s allowance: a person in two organizations has two counters, each paid by its own organization, and the row is deleted with it.',
|
|
46
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
47
|
+
}),
|
|
48
|
+
userId: schemaShape.userId.foreignKeySpec({
|
|
49
|
+
meaning: 'The person whose in-app turns this row counts.',
|
|
50
|
+
whyItMatters: 'Unique together with the organization on both stores, so two first-ever turns racing cannot open two rows and split the person\'s consumption. The person\'s erasure deletes the row.',
|
|
51
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
52
|
+
}),
|
|
53
|
+
periodKey: schemaShape.periodKey.stringSpec({
|
|
54
|
+
meaning: 'The period this counter covers: a UTC calendar month (`YYYY-MM`), the organization budget\'s own window.',
|
|
55
|
+
whyItMatters: 'The reset boundary: a row stamped with an earlier period reads as zero, and the next turn rolls it in place.',
|
|
56
|
+
semanticRole: 'identifier',
|
|
57
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
58
|
+
}),
|
|
59
|
+
consumedTokens: schemaShape.consumedTokens.numberSpec({
|
|
60
|
+
meaning: 'Tokens (prompt + completion) this person\'s in-app turns consumed in this organization within `periodKey`.',
|
|
61
|
+
whyItMatters: 'The value the in-app gate compares with the person ceiling; once it reaches the ceiling the person\'s next turns are refused for the rest of the period while colleagues are not.',
|
|
62
|
+
unit: 'tokens',
|
|
63
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
64
|
+
}),
|
|
65
|
+
lastTurnAt: schemaShape.lastTurnAt.dateSpec({ meaning: 'When the person\'s last in-app turn was recorded against this counter.', whyItMatters: 'Observability only; nothing gates on it.', temporalRole: 'occurred' }),
|
|
66
|
+
createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the person\'s counter in this organization was first opened.', temporalRole: 'creation' }),
|
|
67
|
+
updatedAt: schemaShape.updatedAt.dateSpec({
|
|
68
|
+
meaning: 'When the counter was last incremented or rolled to a new period.',
|
|
69
|
+
whyItMatters: 'The retention clock (`LAST_UPDATED`): a counter nobody has spent against for the resource-data period is removed.',
|
|
70
|
+
temporalRole: 'modified',
|
|
71
|
+
}),
|
|
72
|
+
},
|
|
73
|
+
operations: {
|
|
74
|
+
[Op.CREATE]: {
|
|
75
|
+
purpose: 'Open the person\'s counter in an organization on their first in-app turn there. Internal write path.',
|
|
76
|
+
outcome: 'The person has exactly one counter in that organization, against which every later in-app turn is measured.',
|
|
77
|
+
responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The counter was opened by the token budget service through `createAsSystem`.' }],
|
|
78
|
+
errorScenarios: [
|
|
79
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A concurrent turn already opened the counter (the (organization, person) pair is unique); the service increments the winner\'s row instead.' },
|
|
80
|
+
],
|
|
81
|
+
idempotent: false,
|
|
82
|
+
},
|
|
83
|
+
[Op.READ]: {
|
|
84
|
+
purpose: 'Read the person\'s current-period consumption before an in-app turn, and for the entitlements meter. Internal read path.',
|
|
85
|
+
outcome: 'The gate can prove the person is under the ceiling, or refuse the turn.',
|
|
86
|
+
idempotent: true,
|
|
87
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The counter was found.' }],
|
|
88
|
+
errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The person has not had an in-app turn in this organization yet, which the gate reads as zero.' }],
|
|
89
|
+
},
|
|
90
|
+
[Op.LIST]: {
|
|
91
|
+
purpose: 'Internal read path: the person\'s subject export and the retention sweep\'s discovery. No public route.',
|
|
92
|
+
outcome: 'The person\'s counters are found by the export and the sweep.',
|
|
93
|
+
idempotent: true,
|
|
94
|
+
},
|
|
95
|
+
[Op.DELETE]: {
|
|
96
|
+
purpose: 'Internal cleanup: the tenant purge\'s cascade, the person\'s erasure and the retention sweep. No public deletion route, because removing a row resets the person\'s recorded spend.',
|
|
97
|
+
outcome: 'The counter is removed.',
|
|
98
|
+
idempotent: true,
|
|
99
|
+
},
|
|
100
|
+
[Op.DELETE_MANY]: {
|
|
101
|
+
purpose: 'Internal cleanup: the retention sweep removes counters nobody has spent against for the resource-data period. No public deletion route.',
|
|
102
|
+
outcome: 'The counters are removed.',
|
|
103
|
+
idempotent: true,
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
businessConstraints: [
|
|
107
|
+
'Written only by the token budget service: it opens the row through `createAsSystem` and advances it through an atomic increment, never through an update operation.',
|
|
108
|
+
'Fails closed: a ceiling the plan grants whose consumption cannot be read refuses the person\'s in-app turn, and so does a plan that cannot be read. An ungranted or unlimited ceiling refuses nothing.',
|
|
109
|
+
'Consumption is known only after a turn completes and is recorded without being awaited, so the person can exceed the ceiling by the turns they have in flight when it is reached.',
|
|
110
|
+
'A person with no active organization has no row here: their in-app turns spend their own personal budget, which is already per person.',
|
|
111
|
+
'A subject erasure deletes the person\'s counters in every organization; the organization budget keeps the organization\'s total.',
|
|
112
|
+
],
|
|
113
|
+
}), { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS });
|
|
114
|
+
//# sourceMappingURL=person-token-ceiling-state.resource.specification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person-token-ceiling-state.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,kEAAkE,IAAI,8BAA8B,GACrG,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAuC,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACjI,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,eAAe,GAAG,CAAC,UAAkB,EAAE,EAAE,CAAC,CAAC;IAC/C,WAAW,EAAE,uBAAuB;IACpC,UAAU;IACV,UAAU,EAAE,cAAc,CAAC,IAAI;IAC/B,eAAe,EAAE,mBAAmB,CAAC,eAAe;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wDAAwD,GAAmC,qBAAqB,CAC3H,8BAA8B,EAC9B,6BAA6B,EAC7B,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,8GAA8G;IACvH,YAAY,EAAE,0PAA0P;IACxQ,aAAa,EAAE,qRAAqR;IACpS,QAAQ,EAAE,aAAa,CAAC,SAAS;IACjC,SAAS,EAAE,uBAAuB,CAAC,YAAY;IAC/C,YAAY,EAAE;QACZ,UAAU,EAAE,EAAE,WAAW,EAAE,uBAAuB,EAAE,UAAU,EAAE,+BAA+B,EAAE,UAAU,EAAE,cAAc,CAAC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E,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,qLAAqL;YAC9L,OAAO,EAAE,yBAAyB;YAClC,UAAU,EAAE,IAAI;SACjB;QACD,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE;YAChB,OAAO,EAAE,yIAAyI;YAClJ,OAAO,EAAE,2BAA2B;YACpC,UAAU,EAAE,IAAI;SACjB;KACF;IAED,mBAAmB,EAAE;QACnB,qKAAqK;QACrK,wMAAwM;QACxM,mLAAmL;QACnL,wIAAwI;QACxI,kIAAkI;KACnI;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `organizationPersonTokenCeilingState` — Wildo SaaS engine specification (#2844).\n *\n * Inputs:\n * - Schema: `PersonTokenCeilingStateSchema` (`flows-actors/person-token-ceiling-state.shared.schemas.ts`)\n * - Factory: `personTokenCeilingStateResourceConfiguration_InitializationFactory`\n * - Writer and reader: `A2ATokenBudgetBackendService` (`@wildo-ai/saas-backend-lib`), on every in-app turn.\n *\n * Why this is a resource of its own, keyed (organizationId, userId), and why an erasure deletes the row rather than\n * severing the person's id, is the schema file's header; it is not restated here.\n */\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n PersonTokenCeilingStateSchema,\n ResourcePrimaryScope,\n personTokenCeilingStateResourceConfiguration_InitializationFactory as personTokenCeilingStateFactory,\n} from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst enumDeclaration = (exportName: string) => ({\n packageName: '@wildo-ai/saas-models',\n exportName,\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n});\n\nexport const organizationPersonTokenCeilingStateResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n personTokenCeilingStateFactory,\n PersonTokenCeilingStateSchema,\n ({ schemaShape }) => ({\n purpose: 'Count how many LLM tokens one person\\'s in-app chat has spent inside one organization in the current period.',\n businessRole: 'The consumption half of the per-person ceiling (`a2a.llm.tokensPerPersonPerPeriod`), compared before every in-app turn against what the organization\\'s plan allows each person, so one account cannot exhaust the model allowance its colleagues share.',\n lifecycleRole: 'Opened on the person\\'s first in-app turn in the organization, incremented after every one, reset in place when the period changes, and deleted with the organization, with the person\\'s erasure, or once nobody has spent against it for the application\\'s resource-data period.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'PersonTokenCeilingStateSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'personTokenCeilingStateResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: enumDeclaration('CoreResourceType'), memberName: 'ORGANIZATION_PERSON_TOKEN_CEILING_STATE' },\n operationVocabulary: { coreEnum: enumDeclaration('CoreResourceOperation') },\n notes: [\n 'Every operation is INTERNAL_CALL and route-less: the token budget service is the only writer and reader, and the person sees their spend through `GET /features/resolved`, whose meter reads this row through the service\\'s usage reader.',\n 'There is deliberately NO UPDATE operation: the counter is advanced by the atomic repository-tier increment (`atomicIncrementField`), so concurrent turns cannot lose tokens to a read-modify-write race.',\n 'The ceiling is not stored here: it is the `a2a.llm.tokensPerPersonPerPeriod` LIMIT feature (`A2A_PERSON_TOKEN_CEILING_FEATURE_ID`), resolved live from the ORGANIZATION\\'s plan.',\n 'Only in-app chat (`ModelSpendDoor.WEBSOCKET_SESSION`) is counted here (`modelSpendDoorChargesPersonCeiling`). A flow\\'s model calls (`ModelSpendDoor.FLOW_STEP`) are never counted here, though a person started the run: the ceiling bounds a person\\'s interactive use of the assistant (#2935). Every door is counted against the organization budget.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Document id of this person\\'s counter in this organization.', semanticRole: 'identifier' }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The organization whose plan grants the ceiling and whose allowance the person\\'s turns spend.',\n whyItMatters: 'The ceiling is a share of THIS organization\\'s allowance: a person in two organizations has two counters, each paid by its own organization, and the row is deleted with it.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'The person whose in-app turns this row counts.',\n whyItMatters: 'Unique together with the organization on both stores, so two first-ever turns racing cannot open two rows and split the person\\'s consumption. The person\\'s erasure deletes the row.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n periodKey: schemaShape.periodKey.stringSpec({\n meaning: 'The period this counter covers: a UTC calendar month (`YYYY-MM`), the organization budget\\'s own window.',\n whyItMatters: 'The reset boundary: a row stamped with an earlier period reads as zero, and the next turn rolls it in place.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n consumedTokens: schemaShape.consumedTokens.numberSpec({\n meaning: 'Tokens (prompt + completion) this person\\'s in-app turns consumed in this organization within `periodKey`.',\n whyItMatters: 'The value the in-app gate compares with the person ceiling; once it reaches the ceiling the person\\'s next turns are refused for the rest of the period while colleagues are not.',\n unit: 'tokens',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n lastTurnAt: schemaShape.lastTurnAt.dateSpec({ meaning: 'When the person\\'s last in-app turn was recorded against this counter.', whyItMatters: 'Observability only; nothing gates on it.', temporalRole: 'occurred' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'When the person\\'s counter in this organization was first opened.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the counter was last incremented or rolled to a new period.',\n whyItMatters: 'The retention clock (`LAST_UPDATED`): a counter nobody has spent against for the resource-data period is removed.',\n temporalRole: 'modified',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Open the person\\'s counter in an organization on their first in-app turn there. Internal write path.',\n outcome: 'The person has exactly one counter in that organization, against which every later in-app turn is measured.',\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The counter was opened by the token budget service through `createAsSystem`.' }],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A concurrent turn already opened the counter (the (organization, person) pair is unique); the service increments the winner\\'s row instead.' },\n ],\n idempotent: false,\n },\n [Op.READ]: {\n purpose: 'Read the person\\'s current-period consumption before an in-app turn, and for the entitlements meter. Internal read path.',\n outcome: 'The gate can prove the person is under the ceiling, or refuse the turn.',\n idempotent: true,\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The counter was found.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The person has not had an in-app turn in this organization yet, which the gate reads as zero.' }],\n },\n [Op.LIST]: {\n purpose: 'Internal read path: the person\\'s subject export and the retention sweep\\'s discovery. No public route.',\n outcome: 'The person\\'s counters are found by the export and the sweep.',\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Internal cleanup: the tenant purge\\'s cascade, the person\\'s erasure and the retention sweep. No public deletion route, because removing a row resets the person\\'s recorded spend.',\n outcome: 'The counter is removed.',\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Internal cleanup: the retention sweep removes counters nobody has spent against for the resource-data period. No public deletion route.',\n outcome: 'The counters are removed.',\n idempotent: true,\n },\n },\n\n businessConstraints: [\n 'Written only by the token budget service: it opens the row through `createAsSystem` and advances it through an atomic increment, never through an update operation.',\n 'Fails closed: a ceiling the plan grants whose consumption cannot be read refuses the person\\'s in-app turn, and so does a plan that cannot be read. An ungranted or unlimited ceiling refuses nothing.',\n 'Consumption is known only after a turn completes and is recorded without being awaited, so the person can exceed the ceiling by the turns they have in flight when it is reached.',\n 'A person with no active organization has no row here: their in-app turns spend their own personal budget, which is already per person.',\n 'A subject erasure deletes the person\\'s counters in every organization; the organization budget keeps the organization\\'s total.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
|
package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-call-records.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/provider-call-records.resource.specification.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider-call-records.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/provider-call-records.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAGjI;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wCAAwC,EAAE,8BA8NtD,CAAC"}
|