@wildo-ai/saas-specifications 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +14 -13
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
- package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.js +34 -13
- package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
- package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +39 -13
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +43 -13
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
- package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
- package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
- package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
- package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
- package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
- package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +3 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +3 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
- package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
- package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
- package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.js +2 -2
- package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.js +2 -2
- package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.js +2 -2
- package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +2 -2
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.js +2 -2
- package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
- package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.js +2 -2
- package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.js +2 -2
- package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.js +2 -2
- package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
- package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.js +2 -2
- package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.js +6 -0
- package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
- package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +1 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
- package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js +110 -24
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
- package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +98 -11
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
- package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
- package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +7 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +7 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
- package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +107 -14
- package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/governed-document-release.d.ts +7 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +11 -2
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +6 -5
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +35 -33
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
- package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -0
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +45 -32
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -23
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +185 -31
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +2 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
- package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
- package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +11 -7
- package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
- package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
- package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -24
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +76 -16
- package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
- package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +52 -12
- package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
- package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/index.js +1 -0
- package/dist/esm/engine/compliance/resources/index.js.map +1 -1
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
- package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
- package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
- package/dist/esm/engine/errors/error-messages.specification.js +69 -0
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
- package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +5 -5
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
- package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
- package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
- package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
- package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
- package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +1 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +3 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
- package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
- package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
- package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
- package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
- package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +2 -2
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
- package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
- package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
- package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
- package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/index.js +1 -0
- package/dist/esm/engine/notifications/resources/index.js.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
- package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
- package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +8 -11
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
- package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
- package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.js +4 -2
- package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.js +2 -0
- package/dist/esm/engine/organizations/resources/index.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +40 -12
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
- package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +3 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
- package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
- package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
- package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
- package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/google.provider.specification.js +1 -1
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/index.d.ts +2 -0
- package/dist/esm/engine/providers/index.d.ts.map +1 -1
- package/dist/esm/engine/providers/index.js +5 -1
- package/dist/esm/engine/providers/index.js.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
- package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
- package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
- package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/index.d.ts +13 -5
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +19 -6
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
- package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
- package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
- package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +7 -7
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +0 -3
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +11 -18
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
- package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/dist/assurance/external-framework-mapping.json +0 -1228
package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-actor-executions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/flow-actor-executions.resource.specification.ts"],"names":[],"mappings":"AAAA,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,gBAAgB,EAChB,kCAAkC,EAClC,4BAA4B,EAC5B,4BAA4B,EAC5B,8BAA8B,EAC9B,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,uCAAuC,GACxC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAoC3E;;;;GAIG;AACH,SAAS,oCAAoC,CAAC,YAAkC;IAC9E,QAAQ,YAAY,EAAE,CAAC;QACrB,KAAK,gBAAgB,CAAC,0BAA0B;YAC9C,OAAO;gBACL,aAAa,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE;gBAC5C,gBAAgB,EAAE,EAAE,wBAAwB,EAAE,2BAA2B,EAAE;gBAC3E,UAAU,EAAE,MAAM;gBAClB,mBAAmB,EAAE,kCAAkC;aACxD,CAAC;QACJ,KAAK,gBAAgB,CAAC,kCAAkC;YACtD,OAAO;gBACL,aAAa,EAAE,EAAE,cAAc,EAAE,gBAAgB,EAAE;gBACnD,gBAAgB,E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CAA4C,CAC9G,gBAAgB,CAAC,kCAAkC,EACnD,oCAAoC,CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,mDAAmD,GAAG,4CAA4C,CAC7G,gBAAgB,CAAC,iCAAiC,EAClD,mCAAmC,CACpC,CAAC","sourcesContent":["import { 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 CoreResourceType,\n FLOWS_ACTORS_NO_MACHINE_CREDENTIAL,\n FlowActorExecutionBaseSchema,\n FlowsActors_ConversationRole,\n FlowsActors_MessageContentType,\n FlowActorSystem_Kind,\n FlowsActors_Status,\n ResourcePrimaryScope,\n flowActorExecutionsPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned specification for the `flowActorExecutions` POLYMORPHIC family:\n * the persisted record of a single flow/actor system execution (conversational\n * chat history + kind-discriminated runtime state). One base envelope is stamped\n * out as three genuine single-scope variants, each owned by its injected owner FK:\n * - `userFlowActorExecutions` (USER_SELF — WS chat + user-delegated A2A)\n * - `organizationFlowActorExecutions` (ORGANIZATIONS — org-machine A2A)\n * - `applicationFlowActorExecutions` (APPLICATION — app-machine A2A)\n *\n * The default API READ/LIST are the per-owner chat-history surface. CREATE/UPDATE\n * are internal (INTERNAL_CALL, service-tier) — only the flows-actors conversational\n * runtime persists executions and appends messages via `*AsSystem`. DELETE is a single\n * owner-facing API_CALL (default) with a role floor DISTINCT from read (a user deletes\n * only their own chat; org/app conversations require org/app admin); the same default op\n * also powers the owning-scope deletion cascade at the repository tier. One spec covers\n * all three variants (per the billing / SSO polymorphic-spec precedent).\n */\n\ntype FlowExecResourceType =\n | CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS\n | CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS\n | CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS;\ntype FlowExecResourceTypeMember =\n | 'USER_FLOW_ACTOR_EXECUTIONS'\n | 'ORGANIZATION_FLOW_ACTOR_EXECUTIONS'\n | 'APPLICATION_FLOW_ACTOR_EXECUTIONS';\n\ninterface FlowActorExecutionScopeExample {\n readonly scopeIdentity: Readonly<Record<string, string>>;\n readonly resourceIdentity: Readonly<Record<string, string>>;\n readonly scopeLabel: string;\n readonly machineCredentialId: string;\n}\n\n/**\n * Owns the concrete scope and route identity for each polymorphic contract.\n * Keeping this exhaustive prevents a user example from silently teaching an\n * organization/application parameter (or the inverse).\n */\nfunction createFlowActorExecutionScopeExample(resourceType: FlowExecResourceType): FlowActorExecutionScopeExample {\n switch (resourceType) {\n case CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS:\n return {\n scopeIdentity: { userId: 'user_01JEXAMPLE' },\n resourceIdentity: { userFlowActorExecutionId: 'flow_exec_user_01JEXAMPLE' },\n scopeLabel: 'user',\n machineCredentialId: FLOWS_ACTORS_NO_MACHINE_CREDENTIAL,\n };\n case CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS:\n return {\n scopeIdentity: { organizationId: 'org_01JEXAMPLE' },\n resourceIdentity: { organizationFlowActorExecutionId: 'flow_exec_org_01JEXAMPLE' },\n scopeLabel: 'organization',\n machineCredentialId: 'machine_credential_org_finance_agent',\n };\n case CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS:\n return {\n scopeIdentity: { applicationId: 'app_01JEXAMPLE' },\n resourceIdentity: { applicationFlowActorExecutionId: 'flow_exec_app_01JEXAMPLE' },\n scopeLabel: 'application',\n machineCredentialId: 'machine_credential_app_finance_agent',\n };\n default: {\n const exhaustiveResourceType: never = resourceType;\n throw new Error(`Unsupported Flow Actor execution resource type: ${String(exhaustiveResourceType)}`);\n }\n }\n}\n\nfunction createFlowActorExecutionPage(data: readonly unknown[]) {\n return {\n data,\n pagination: { page: 1, limit: 20, total: data.length, totalPages: 1 },\n };\n}\n\nconst flowExecPrimaryScopeByResourceType: Record<FlowExecResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS]: ResourcePrimaryScope.USER_SELF,\n [CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS]: ResourcePrimaryScope.APPLICATION,\n};\n\ntype Cfg = ReturnType<(typeof flowActorExecutionsPolymorphicFactories)[CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS]>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof FlowActorExecutionBaseSchema;\n\nfunction buildFlowActorExecutionResourceSpecification(\n resourceType: FlowExecResourceType,\n resourceTypeMemberName: FlowExecResourceTypeMember,\n) {\n const exampleScope = createFlowActorExecutionScopeExample(resourceType);\n const completedExecutionExample = {\n _id: Object.values(exampleScope.resourceIdentity)[0],\n executionId: '11111111-1111-4111-8111-111111111111',\n systemRef: 'finance-operations-assistant',\n kind: FlowActorSystem_Kind.ACTOR,\n resourceServerInstanceRef: 'finance-operations-agent',\n machineCredentialId: exampleScope.machineCredentialId,\n status: FlowsActors_Status.COMPLETED,\n statusChanges: [\n { status: FlowsActors_Status.READY, timestamp: '2026-08-20T08:30:00.000Z' },\n { status: FlowsActors_Status.PROCESSING, timestamp: '2026-08-20T08:30:02.000Z' },\n { status: FlowsActors_Status.COMPLETED, timestamp: '2026-08-20T08:30:14.000Z' },\n ],\n messages: [\n {\n id: '11111111-1111-4111-8111-111111111112',\n role: FlowsActors_ConversationRole.USER,\n contentType: FlowsActors_MessageContentType.TEXT,\n content: 'Summarize the overdue purchase approvals for this week.',\n createdAt: '2026-08-20T08:30:00.000Z',\n },\n {\n id: '11111111-1111-4111-8111-111111111113',\n role: FlowsActors_ConversationRole.ASSISTANT,\n contentType: FlowsActors_MessageContentType.MARKDOWN,\n content: 'Three approvals are overdue; the highest-value request is waiting on Finance.',\n createdAt: '2026-08-20T08:30:14.000Z',\n },\n ],\n createdAt: '2026-08-20T08:30:00.000Z',\n updatedAt: '2026-08-20T08:30:14.000Z',\n finishedAt: '2026-08-20T08:30:14.000Z',\n ...exampleScope.scopeIdentity,\n };\n const activeExecutionExample = {\n ...completedExecutionExample,\n _id: `${completedExecutionExample._id}_active`,\n executionId: '11111111-1111-4111-8111-111111111121',\n status: FlowsActors_Status.PROCESSING,\n statusChanges: completedExecutionExample.statusChanges.slice(0, 2),\n messages: completedExecutionExample.messages.slice(0, 1),\n updatedAt: '2026-08-20T09:05:02.000Z',\n finishedAt: undefined,\n };\n const summarizeExecution = (execution: typeof completedExecutionExample) => ({\n _id: execution._id,\n executionId: execution.executionId,\n systemRef: execution.systemRef,\n kind: execution.kind,\n status: execution.status,\n updatedAt: execution.updatedAt,\n ...(execution.finishedAt === undefined ? {} : { finishedAt: execution.finishedAt }),\n });\n\n return resourceSpecification<undefined, Core, Main>(\n flowActorExecutionsPolymorphicFactories[resourceType],\n FlowActorExecutionBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Track one conversation with an application agent, including its messages and current lifecycle state.',\n businessRole: 'Conversation history an authorized caller uses to revisit an agent exchange and determine whether it is still running or has finished.',\n lifecycleRole: 'Opens when an agent conversation starts, accumulates messages and status changes while work proceeds, and finishes on completion, failure, or cancellation.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowActorExecutionBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'flowActorExecutionsPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: resourceTypeMemberName,\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: ['Three variants under `FLOW_ACTOR_EXECUTION_SCOPE_VARIANTS` — user row is `USER_SELF`; org/app rows are `ORGANIZATIONS`/`APPLICATION` (machine-owned).'],\n },\n\n fields: {\n executionId: schemaShape.executionId.stringSpec({\n meaning: 'Stable business identifier for one execution, generated by the conversational runtime and echoed over the WebSocket channel.',\n whyItMatters: 'It is the address by which the live WebSocket stream, the persisted record, and the frontend view all refer to the same running execution.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n systemRef: schemaShape.systemRef.stringSpec({\n meaning: 'Ref of the flow/actor system that was executed.',\n whyItMatters: 'It links the execution back to the authored system whose graph the standalone view renders, so history and live status attach to the right system.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n kind: schemaShape.kind.enumSpec({\n meaning: 'Whether this execution belongs to a FLOW system or an ACTOR system.',\n whyItMatters: 'It discriminates flow vs actor executions (which graph renderer the view uses); the same resource persists both kinds. Richer per-kind runtime-state overlays are a documented follow-on — v1 persists the conversational envelope only.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowActorSystem_Kind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [FlowActorSystem_Kind.FLOW]: { meaning: 'A trigger→steps→edges→finish flow graph execution (near-term follow-on).' },\n [FlowActorSystem_Kind.ACTOR]: { meaning: 'An actor-system execution; the vehicle for the v1 conversational assistant.' },\n },\n }),\n\n resourceServerInstanceRef: schemaShape.resourceServerInstanceRef.stringSpec({\n meaning: 'Which A2A agent this conversation was opened through. The WebSocket surface and the default unnamed agent both store a reserved sentinel.',\n whyItMatters: 'Part of the continuation FILTER, not metadata. A2A agents are declared as separate resource servers with per-instance token audiences, so without this axis a caller holding a context identifier could continue the thread through a different agent and load the prior transcript into that agent\\'s context — and this plane carries the full message log, not a short title.',\n semanticRole: 'identifier',\n }),\n\n machineCredentialId: schemaShape.machineCredentialId.stringSpec({\n meaning: 'Which machine credential opened this conversation. A user-delegated turn stores a reserved sentinel, because there the human is the principal.',\n whyItMatters: 'Part of the read FILTER alongside the owner scope, not descriptive metadata. The scope foreign key does not identify the principal on the machine variants: the application scope is a deployment singleton, so every application-scope client resolves to the same owner, and the organization scope is shared by every machine client of one tenant. Without this axis a separately-credentialed client could continue another client\\'s conversation and read its entire message log.',\n semanticRole: 'identifier',\n }),\n\n status: schemaShape.status.enumSpec({\n meaning: 'Current runtime state of the execution.',\n whyItMatters: 'It is the primary signal the frontend uses to drive the live execution-status overlay and to know whether the conversation is still progressing.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowsActors_Status',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [FlowsActors_Status.READY]: { meaning: 'Created and ready to begin processing.' },\n [FlowsActors_Status.PENDING]: { meaning: 'Accepted but not yet actively processing.' },\n [FlowsActors_Status.PROCESSING]: { meaning: 'Actively running — the agent is responding / tools are executing.' },\n [FlowsActors_Status.AWAITING_APPROVAL]: { meaning: 'Suspended at a human-in-the-loop approval boundary — the agent called an approval-gated tool and the turn is waiting for a human decision before resuming. Non-terminal. A decision — approval or denial — resumes it to PROCESSING (a denial resumes so the agent can respond to the refusal). If nobody answers before its approval window closes it becomes FAILED: a decision arriving late is refused, and an hourly sweep fails a pause that was never answered.' },\n [FlowsActors_Status.COMPLETED]: { meaning: 'Finished successfully.' },\n [FlowsActors_Status.FAILED]: { meaning: 'Finished unsuccessfully and stands in a failed state.' },\n [FlowsActors_Status.CANCELLED]: { meaning: 'Intentionally stopped before completion.' },\n [FlowsActors_Status.ABORTED]: { meaning: 'Terminated abnormally (e.g. transport loss or unrecoverable error).' },\n },\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Open a new execution record when the conversational runtime starts a system.',\n outcome: 'One flow/actor execution begins to be tracked, ready to accumulate messages and status changes.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'An execution record was registered. This is an internal/system write path (INTERNAL_CALL, service-tier), not a self-serve API create — the conversational runtime writes on the owner\\'s behalf via *AsSystem.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The execution payload fails schema validation (e.g. missing `kind`/`status`/`systemRef`, or the injected owner FK).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts to create an execution — rows are created only by the flows-actors runtime through the internal repository service.' },\n ],\n idempotent: false,\n },\n\n [Op.READ]: {\n purpose: 'Read one past or in-progress agent conversation and its current state.',\n outcome: 'The authorized caller receives the representation selected by the route: the full conversation and lifecycle history, relationship context, or a compact lifecycle summary.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The requested conversation is returned in the full, context, or summary representation selected by the route.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No conversation exists for the id in the requested user, organization, or application scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not allowed to read agent conversation history for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: `Inspect a completed ${exampleScope.scopeLabel} agent conversation`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: completedExecutionExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: `Inspect a completed ${exampleScope.scopeLabel} agent conversation with context`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: completedExecutionExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: `Inspect the compact ${exampleScope.scopeLabel} conversation state`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: summarizeExecution(completedExecutionExample),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n\n [Op.LIST]: {\n purpose: 'List agent conversations visible in the requested user, organization, or application scope.',\n outcome: 'The authorized caller can browse recent conversations and distinguish active work from completed history.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of conversations visible in the requested scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not allowed to list agent conversation history for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: `List recent ${exampleScope.scopeLabel} agent conversations`,\n request: { ...exampleScope.scopeIdentity, page: 1, limit: 20, sort: 'updatedAt:desc' },\n response: createFlowActorExecutionPage([activeExecutionExample, completedExecutionExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: `List recent ${exampleScope.scopeLabel} conversations with context`,\n request: { ...exampleScope.scopeIdentity, page: 1, limit: 20 },\n response: createFlowActorExecutionPage([completedExecutionExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: `List compact ${exampleScope.scopeLabel} conversation states`,\n request: { ...exampleScope.scopeIdentity, page: 1, limit: 20 },\n response: createFlowActorExecutionPage([\n summarizeExecution(activeExecutionExample as typeof completedExecutionExample),\n summarizeExecution(completedExecutionExample),\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n\n [Op.UPDATE]: {\n purpose: 'Advance the execution — append messages, record status transitions, and evolve runtime state.',\n outcome: 'The persisted record stays synchronized with the live conversation streamed over the WebSocket channel.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The execution recorded a new message / status change / runtime-state update. Internal/system write path — the conversational runtime owns these transitions.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No execution row exists for the supplied id to advance.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The update patch fails schema validation (e.g. an unrecognized `status`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts to mutate execution state.' },\n ],\n idempotent: true,\n },\n\n [Op.DELETE]: {\n purpose: 'Permanently remove one agent conversation from the requested scope.',\n outcome: 'The selected conversation and its transcript are no longer available.',\n whenToUse: 'Use when an authorized user or administrator intentionally removes conversation history that is no longer needed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The execution record was removed. Owner-facing API_CALL (default) via the `/flows-actors/history` DELETE route; delete authority is DISTINCT from read (a user deletes only their own chat; org/app conversations require org/app admin). The same default op also powers the composition onParentDelete cascade at the repository tier.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The executionId is unknown or belongs to another owner (the owner-scope filter yields no row).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the delete authority — a non-owner user, or an org/app member without admin — attempts to delete an execution.' },\n ],\n idempotent: true,\n examples: [{\n title: `Remove a completed ${exampleScope.scopeLabel} agent conversation`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: { id: completedExecutionExample._id, deletedAt: '2026-08-20T10:15:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'A conversation is owned by exactly ONE scope (the injected owner FK — `userId` / `organizationId` / `applicationId`); the default API surface must never expose another owner\\'s conversation (the owner primary-scope filter).',\n 'The polymorphic owner FK is injected on each concrete variant schema, not on `FlowActorExecutionBaseSchema` itself.',\n 'Writes are system-internal — only the flows-actors conversational runtime persists executions and appends messages; there is no self-serve write API.',\n 'The record is kind-agnostic: the `kind` discriminant lets it persist both FLOW and ACTOR executions, so the flow system can adopt it without reshaping the base envelope. Typed per-kind runtime-state overlays are a documented follow-on (v1 persists the conversational envelope + status).',\n ],\n }),\n // The owner is the injected scope FK, anchored by the `<SCOPE> → *FlowActorExecutions`\n // primary-scope composition edge in `resources-registry.shared.core.definitions.ts`\n // (generated by `createPolymorphicScopeRelationships`). The registry factory derives\n // the scope from `isPrimaryScope: true`; this declaration feeds the spec ↔ registry\n // alignment guard and must match per variant.\n { resourcePrimaryScope: flowExecPrimaryScopeByResourceType[resourceType] },\n );\n}\n\nexport const userFlowActorExecutionsResourceSpecification = buildFlowActorExecutionResourceSpecification(\n CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS,\n 'USER_FLOW_ACTOR_EXECUTIONS',\n);\n\nexport const organizationFlowActorExecutionsResourceSpecification = buildFlowActorExecutionResourceSpecification(\n CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS,\n 'ORGANIZATION_FLOW_ACTOR_EXECUTIONS',\n);\n\nexport const applicationFlowActorExecutionsResourceSpecification = buildFlowActorExecutionResourceSpecification(\n CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS,\n 'APPLICATION_FLOW_ACTOR_EXECUTIONS',\n);\n"]}
|
|
1
|
+
{"version":3,"file":"flow-actor-executions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/flow-actor-executions.resource.specification.ts"],"names":[],"mappings":"AAAA,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,gBAAgB,EAChB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AI,EAAE,iIAAiI,EAAE;iBACxL;gBACD,UAAU,EAAE,IAAI;gBAChB,QAAQ,EAAE,CAAC;wBACT,KAAK,EAAE,sBAAsB,YAAY,CAAC,UAAU,qBAAqB;wBACzE,OAAO,EAAE,EAAE,GAAG,YAAY,CAAC,aAAa,EAAE,GAAG,YAAY,CAAC,gBAAgB,EAAE;wBAC5E,QAAQ,EAAE,EAAE,EAAE,EAAE,yBAAyB,CAAC,GAAG,EAAE,SAAS,EAAE,0BAA0B,EAAE;wBACtF,SAAS,EAAE,sBAAsB,CAAC,MAAM;qBACzC,CAAC;aACH;SACF;QAED,mBAAmB,EAAE;YACnB,iOAAiO;YACjO,qHAAqH;YACrH,uJAAuJ;YACvJ,gSAAgS;SACjS;KACF,CAAC;IACF,uFAAuF;IACvF,oFAAoF;IACpF,qFAAqF;IACrF,oFAAoF;IACpF,8CAA8C;IAC9C,EAAE,oBAAoB,EAAE,kCAAkC,CAAC,YAAY,CAAC,EAAE,CAC3E,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,4CAA4C,GAAG,4CAA4C,CACtG,gBAAgB,CAAC,0BAA0B,EAC3C,4BAA4B,CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,oDAAoD,GAAG,4CAA4C,CAC9G,gBAAgB,CAAC,kCAAkC,EACnD,oCAAoC,CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,mDAAmD,GAAG,4CAA4C,CAC7G,gBAAgB,CAAC,iCAAiC,EAClD,mCAAmC,CACpC,CAAC","sourcesContent":["import { 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 CoreResourceType,\n FLOWS_ACTORS_NO_MACHINE_CREDENTIAL,\n FlowActorExecutionBaseSchema,\n FlowsActors_ConversationRole,\n FlowsActors_MessageContentType,\n FlowActorSystem_Kind,\n FlowsActors_InitiationKind,\n FlowsActors_Status,\n AutonomousPrincipalSource,\n AutonomousTurnTrigger,\n HumanDecision_Outcome,\n HumanDecision_RouteKind,\n ResourcePrimaryScope,\n flowActorExecutionsPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned specification for the `flowActorExecutions` POLYMORPHIC family:\n * the persisted record of a single flow/actor system execution (conversational\n * chat history + kind-discriminated runtime state). One base envelope is stamped\n * out as three genuine single-scope variants, each owned by its injected owner FK:\n * - `userFlowActorExecutions` (USER_SELF — WS chat + user-delegated A2A)\n * - `organizationFlowActorExecutions` (ORGANIZATIONS — org-machine A2A)\n * - `applicationFlowActorExecutions` (APPLICATION — app-machine A2A)\n *\n * The default API READ/LIST are the per-owner chat-history surface. CREATE/UPDATE\n * are internal (INTERNAL_CALL, service-tier) — only the flows-actors conversational\n * runtime persists executions and appends messages via `*AsSystem`. DELETE is a single\n * owner-facing API_CALL (default) with a role floor DISTINCT from read (a user deletes\n * only their own chat; org/app conversations require org/app admin); the same default op\n * also powers the owning-scope deletion cascade at the repository tier. One spec covers\n * all three variants (per the billing / SSO polymorphic-spec precedent).\n */\n\ntype FlowExecResourceType =\n | CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS\n | CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS\n | CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS;\ntype FlowExecResourceTypeMember =\n | 'USER_FLOW_ACTOR_EXECUTIONS'\n | 'ORGANIZATION_FLOW_ACTOR_EXECUTIONS'\n | 'APPLICATION_FLOW_ACTOR_EXECUTIONS';\n\ninterface FlowActorExecutionScopeExample {\n readonly scopeIdentity: Readonly<Record<string, string>>;\n readonly resourceIdentity: Readonly<Record<string, string>>;\n readonly scopeLabel: string;\n readonly machineCredentialId: string;\n}\n\n/**\n * Owns the concrete scope and route identity for each polymorphic contract.\n * Keeping this exhaustive prevents a user example from silently teaching an\n * organization/application parameter (or the inverse).\n */\nfunction createFlowActorExecutionScopeExample(resourceType: FlowExecResourceType): FlowActorExecutionScopeExample {\n switch (resourceType) {\n case CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS:\n return {\n scopeIdentity: { userId: 'user_01JEXAMPLE' },\n resourceIdentity: { userFlowActorExecutionId: 'flow_exec_user_01JEXAMPLE' },\n scopeLabel: 'user',\n machineCredentialId: FLOWS_ACTORS_NO_MACHINE_CREDENTIAL,\n };\n case CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS:\n return {\n scopeIdentity: { organizationId: 'org_01JEXAMPLE' },\n resourceIdentity: { organizationFlowActorExecutionId: 'flow_exec_org_01JEXAMPLE' },\n scopeLabel: 'organization',\n machineCredentialId: 'machine_credential_org_finance_agent',\n };\n case CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS:\n return {\n scopeIdentity: { applicationId: 'app_01JEXAMPLE' },\n resourceIdentity: { applicationFlowActorExecutionId: 'flow_exec_app_01JEXAMPLE' },\n scopeLabel: 'application',\n machineCredentialId: 'machine_credential_app_finance_agent',\n };\n default: {\n const exhaustiveResourceType: never = resourceType;\n throw new Error(`Unsupported Flow Actor execution resource type: ${String(exhaustiveResourceType)}`);\n }\n }\n}\n\nfunction createFlowActorExecutionPage(data: readonly unknown[]) {\n return {\n data,\n pagination: { page: 1, limit: 20, total: data.length, totalPages: 1 },\n };\n}\n\nconst flowExecPrimaryScopeByResourceType: Record<FlowExecResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS]: ResourcePrimaryScope.USER_SELF,\n [CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS]: ResourcePrimaryScope.APPLICATION,\n};\n\ntype Cfg = ReturnType<(typeof flowActorExecutionsPolymorphicFactories)[CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS]>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof FlowActorExecutionBaseSchema;\n\nfunction buildFlowActorExecutionResourceSpecification(\n resourceType: FlowExecResourceType,\n resourceTypeMemberName: FlowExecResourceTypeMember,\n) {\n const exampleScope = createFlowActorExecutionScopeExample(resourceType);\n const completedExecutionExample = {\n _id: Object.values(exampleScope.resourceIdentity)[0],\n executionId: '11111111-1111-4111-8111-111111111111',\n systemRef: 'finance-operations-assistant',\n kind: FlowActorSystem_Kind.ACTOR,\n resourceServerInstanceRef: 'finance-operations-agent',\n machineCredentialId: exampleScope.machineCredentialId,\n status: FlowsActors_Status.COMPLETED,\n statusChanges: [\n { status: FlowsActors_Status.READY, timestamp: '2026-08-20T08:30:00.000Z' },\n { status: FlowsActors_Status.PROCESSING, timestamp: '2026-08-20T08:30:02.000Z' },\n { status: FlowsActors_Status.COMPLETED, timestamp: '2026-08-20T08:30:14.000Z' },\n ],\n messages: [\n {\n id: '11111111-1111-4111-8111-111111111112',\n role: FlowsActors_ConversationRole.USER,\n contentType: FlowsActors_MessageContentType.TEXT,\n content: 'Summarize the overdue purchase approvals for this week.',\n createdAt: '2026-08-20T08:30:00.000Z',\n },\n {\n id: '11111111-1111-4111-8111-111111111113',\n role: FlowsActors_ConversationRole.ASSISTANT,\n contentType: FlowsActors_MessageContentType.MARKDOWN,\n content: 'Three approvals are overdue; the highest-value request is waiting on Finance.',\n createdAt: '2026-08-20T08:30:14.000Z',\n },\n ],\n createdAt: '2026-08-20T08:30:00.000Z',\n updatedAt: '2026-08-20T08:30:14.000Z',\n finishedAt: '2026-08-20T08:30:14.000Z',\n ...exampleScope.scopeIdentity,\n };\n const activeExecutionExample = {\n ...completedExecutionExample,\n _id: `${completedExecutionExample._id}_active`,\n executionId: '11111111-1111-4111-8111-111111111121',\n status: FlowsActors_Status.PROCESSING,\n statusChanges: completedExecutionExample.statusChanges.slice(0, 2),\n messages: completedExecutionExample.messages.slice(0, 1),\n updatedAt: '2026-08-20T09:05:02.000Z',\n finishedAt: undefined,\n };\n const summarizeExecution = (execution: typeof completedExecutionExample) => ({\n _id: execution._id,\n executionId: execution.executionId,\n systemRef: execution.systemRef,\n kind: execution.kind,\n status: execution.status,\n updatedAt: execution.updatedAt,\n ...(execution.finishedAt === undefined ? {} : { finishedAt: execution.finishedAt }),\n });\n\n return resourceSpecification<undefined, Core, Main>(\n flowActorExecutionsPolymorphicFactories[resourceType],\n FlowActorExecutionBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Track one conversation with an application agent, including its messages and current lifecycle state.',\n businessRole: 'Conversation history an authorized caller uses to revisit an agent exchange and determine whether it is still running or has finished.',\n lifecycleRole: 'Opens when an agent conversation starts, accumulates messages and status changes while work proceeds, and finishes on completion, failure, or cancellation.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowActorExecutionBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'flowActorExecutionsPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: resourceTypeMemberName,\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: ['Three variants under `FLOW_ACTOR_EXECUTION_SCOPE_VARIANTS` — user row is `USER_SELF`; org/app rows are `ORGANIZATIONS`/`APPLICATION` (machine-owned).'],\n },\n\n fields: {\n executionId: schemaShape.executionId.stringSpec({\n meaning: 'Stable business identifier for one execution, generated by the conversational runtime and echoed over the WebSocket channel.',\n whyItMatters: 'It is the address by which the live WebSocket stream, the persisted record, and the frontend view all refer to the same running execution.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n systemRef: schemaShape.systemRef.stringSpec({\n meaning: 'Ref of the flow/actor system that was executed.',\n whyItMatters: 'It links the execution back to the authored system whose graph the standalone view renders, so history and live status attach to the right system.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n kind: schemaShape.kind.enumSpec({\n meaning: 'Whether this execution belongs to a FLOW system or an ACTOR system.',\n whyItMatters: 'It discriminates flow vs actor executions (which graph renderer the view uses); the same resource persists both kinds. Richer per-kind runtime-state overlays are a documented follow-on — v1 persists the conversational envelope only.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowActorSystem_Kind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [FlowActorSystem_Kind.FLOW]: { meaning: 'A trigger→steps→edges→finish flow graph execution (near-term follow-on).' },\n [FlowActorSystem_Kind.ACTOR]: { meaning: 'An actor-system execution; the vehicle for the v1 conversational assistant.' },\n },\n }),\n\n resourceServerInstanceRef: schemaShape.resourceServerInstanceRef.stringSpec({\n meaning: 'Which A2A agent this conversation was opened through. The WebSocket surface and the default unnamed agent both store a reserved sentinel.',\n whyItMatters: 'Part of the continuation FILTER, not metadata. A2A agents are declared as separate resource servers with per-instance token audiences, so without this axis a caller holding a context identifier could continue the thread through a different agent and load the prior transcript into that agent\\'s context — and this plane carries the full message log, not a short title.',\n semanticRole: 'identifier',\n }),\n\n machineCredentialId: schemaShape.machineCredentialId.stringSpec({\n meaning: 'Which machine credential opened this conversation. A user-delegated turn stores a reserved sentinel, because there the human is the principal.',\n whyItMatters: 'Part of the read FILTER alongside the owner scope, not descriptive metadata. The scope foreign key does not identify the principal on the machine variants: the application scope is a deployment singleton, so every application-scope client resolves to the same owner, and the organization scope is shared by every machine client of one tenant. Without this axis a separately-credentialed client could continue another client\\'s conversation and read its entire message log.',\n semanticRole: 'identifier',\n }),\n\n status: schemaShape.status.enumSpec({\n meaning: 'Current runtime state of the execution.',\n whyItMatters: 'It is the primary signal the frontend uses to drive the live execution-status overlay and to know whether the conversation is still progressing.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowsActors_Status',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [FlowsActors_Status.READY]: { meaning: 'Created and ready to begin processing.' },\n [FlowsActors_Status.PENDING]: { meaning: 'Accepted but not yet actively processing.' },\n [FlowsActors_Status.PROCESSING]: { meaning: 'Actively running — the agent is responding / tools are executing.' },\n [FlowsActors_Status.AWAITING_APPROVAL]: { meaning: 'Suspended at a human-in-the-loop approval boundary — the agent called an approval-gated tool and the turn is waiting for a human decision before resuming. Non-terminal. A decision — approval or denial — resumes it to PROCESSING (a denial resumes so the agent can respond to the refusal). If nobody answers before its approval window closes it becomes FAILED: a decision arriving late is refused, and a sweep running every minute fails a pause that was never answered.' },\n [FlowsActors_Status.COMPLETED]: { meaning: 'Finished successfully.' },\n [FlowsActors_Status.FAILED]: { meaning: 'Finished unsuccessfully and stands in a failed state.' },\n [FlowsActors_Status.CANCELLED]: { meaning: 'Intentionally stopped before completion.' },\n [FlowsActors_Status.ABORTED]: { meaning: 'Terminated abnormally (e.g. transport loss or unrecoverable error).' },\n },\n }),\n\n initiationKind: schemaShape.initiationKind.enumSpec({\n meaning: 'Which door opened the turn: a signed-in person over the WebSocket, an A2A client, or background work with nobody at the keyboard.',\n whyItMatters: 'A decision raised later in the turn is routed and re-authorized differently depending on it, and the door cannot be recovered from the row afterwards.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowsActors_InitiationKind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [FlowsActors_InitiationKind.WEBSOCKET_SESSION]: { meaning: 'A signed-in person over the application WebSocket.' },\n [FlowsActors_InitiationKind.A2A_REQUEST]: { meaning: 'An A2A client: a machine principal, or a person through a client they delegated to.' },\n [FlowsActors_InitiationKind.AUTONOMOUS]: { meaning: 'Background work with nobody present, started by the autonomous entry point.' },\n },\n }),\n\n autonomousAgentRef: schemaShape.autonomousAgentRef.stringSpec({\n meaning: 'The application-declared autonomous agent this turn ran as, on a turn opened by the autonomous entry point (#1611); absent on every other turn.',\n whyItMatters: 'Nobody is on a socket, so the turn\\'s authority is the OAuth client an administrator bound to this agent. Before a reviewer\\'s decision resumes the turn, that principal is resolved again from this ref: a binding removed, a client deactivated or a relationship admission ended while the decision waited stops the work.',\n semanticRole: 'identifier',\n }),\n\n autonomousTrigger: schemaShape.autonomousTrigger.enumSpec({\n meaning: 'What started an autonomous turn: a schedule tick, or a verified inbound delivery.',\n whyItMatters: 'A turn started by an inbound delivery runs on content from outside, so for its whole life, including after a resume, it is offered only tools that read or that a reviewer must approve.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AutonomousTurnTrigger',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AutonomousTurnTrigger.SCHEDULE]: { meaning: 'A schedule tick; the input is the application\\'s declared instruction.' },\n [AutonomousTurnTrigger.INBOUND_DELIVERY]: { meaning: 'A verified inbound delivery; its content is data, and write tools are offered only when a reviewer gates them.' },\n },\n }),\n\n autonomousPrincipalSource: schemaShape.autonomousPrincipalSource.enumSpec({\n meaning: 'Where the autonomous turn\\'s machine principal came from when it started: one of the organization\\'s own OAuth clients, or a service firm\\'s client the organization admits on a relationship.',\n whyItMatters: 'Evidence for whoever reviews what the agent did: a firm\\'s client acts with the relationship\\'s role, never its roles in the firm.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AutonomousPrincipalSource',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [AutonomousPrincipalSource.BOUND_ORGANIZATION_CLIENT]: { meaning: 'A client of this organization, bound to the agent by one of its administrators.' },\n [AutonomousPrincipalSource.RELATIONSHIP_ADMITTED_CLIENT]: { meaning: 'A service firm\\'s client, admitted into this organization on a live service-provider relationship.' },\n },\n }),\n\n caseRef: schemaShape.caseRef.objectSpec({\n meaning: 'The case — one row of the application\\'s own work, by resource type and id — the autonomous turn was started for, when one was named.',\n whyItMatters: 'Cost and decisions are attributed per case (#1598). It is accepted only when the turn\\'s own principal can read that row, so a trigger cannot point a turn at data its principal may not see.',\n }),\n\n autonomousActiveSlotKey: schemaShape.autonomousActiveSlotKey.stringSpec({\n meaning: 'Concurrency slot of a SKIP_IF_ACTIVE autonomous agent, `<agentRef>|<organizationId>`, present while the turn is active. Carries no business meaning.',\n whyItMatters: 'A unique index on it is what refuses a second active turn of the same agent in the same organization, so two occurrences arriving together cannot both run. The entry point releases it once the holding turn has ended, by a compare-and-swap on the key and that ended status.',\n semanticRole: 'identifier',\n }),\n\n pendingDecisionRef: schemaShape.pendingDecisionRef.stringSpec({\n meaning: 'The id of the human decision this turn is waiting on, present only while it waits. The same id names the decision on every audit row about it.',\n whyItMatters: 'Every answer, reassignment and claim addresses the decision by this id and reads everything else, including the owner filter, from the row, never from the person answering.',\n semanticRole: 'identifier',\n }),\n\n pendingDecisionRouteKind: schemaShape.pendingDecisionRouteKind.enumSpec({\n meaning: 'Who may answer the waiting decision: the person whose turn raised it, one named person, or anyone holding a role in the organization.',\n whyItMatters: 'It selects the rule the one authorization predicate applies, and whether the decision may be reassigned, claimed or escalated at all.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'HumanDecision_RouteKind',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [HumanDecision_RouteKind.OWNER]: { meaning: 'Only the person whose turn raised it. Cannot be moved.' },\n [HumanDecision_RouteKind.ASSIGNEE]: { meaning: 'One named person, who must hold the eligible role.' },\n [HumanDecision_RouteKind.ROLE]: { meaning: 'Anyone holding the eligible role in the decision\\'s organization, except the person who raised it.' },\n },\n }),\n\n pendingDecisionEligibleRole: schemaShape.pendingDecisionEligibleRole.stringSpec({\n meaning: 'The role anyone answering the waiting decision must hold, including anyone it is reassigned, escalated or claimed to.',\n whyItMatters: 'It is the floor a move can never lower: a decision routed to reviewers cannot be handed to someone the gate would not have admitted.',\n }),\n\n decisionOutcome: schemaShape.decisionOutcome.enumSpec({\n meaning: 'How the last decision on this turn ended, written in the same step that released the pause.',\n whyItMatters: 'Because it is written with the release, a crash afterwards still leaves a complete record of who decided what; a lapse is recorded as its own outcome and never counted as a refusal.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'HumanDecision_Outcome',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [HumanDecision_Outcome.ACCEPTED]: { meaning: 'Approved unchanged.' },\n [HumanDecision_Outcome.ACCEPTED_WITH_MODIFICATIONS]: { meaning: 'Approved after the decider changed the proposed arguments; their names are recorded, never their values.' },\n [HumanDecision_Outcome.REJECTED]: { meaning: 'Declined, or the waiting work was ended.' },\n [HumanDecision_Outcome.LAPSED]: { meaning: 'Nobody answered before the deadline. Not a refusal.' },\n [HumanDecision_Outcome.WITHDRAWN]: { meaning: 'The waiting work was cancelled before anyone answered.' },\n [HumanDecision_Outcome.REQUESTER_AUTHORITY_LAPSED]: { meaning: 'Answered, but the authority the work was raised under no longer holds, so the work did not run.' },\n },\n }),\n\n pendingCorrectionRecordRef: schemaShape.pendingCorrectionRecordRef.stringSpec({\n meaning: 'The decision whose agent-work record is still owed (#1599): set by the same write that settles a decision on an agent\\'s proposal, cleared once the record exists.',\n whyItMatters: 'A process that dies between the settle and the record leaves it set, and the repair sweep writes the record from the resolution columns, so no decision goes unrecorded.',\n semanticRole: 'identifier',\n }),\n\n pendingCorrectionPresentedAt: schemaShape.pendingCorrectionPresentedAt.dateSpec({\n meaning: 'When the owed decision was put before the decider: its claim instant, else its request instant, kept for the repair because the settle clears both.',\n temporalRole: 'occurred',\n }),\n\n pendingDecisionClaimDeadlineAt: schemaShape.pendingDecisionClaimDeadlineAt.dateSpec({\n meaning: 'By when someone should have taken the waiting decision (#1628): its CLAIM deadline, armed when it paused from the gate\\'s declared deadlines — half of its lapse window by default — and moved later by any pause.',\n whyItMatters: 'Missing it reminds the people who may answer, or reassigns the decision when the gate declares so. It never ends the decision and never answers it; a claim meets it.',\n temporalRole: 'deadline',\n }),\n\n pendingDecisionDecisionDeadlineAt: schemaShape.pendingDecisionDecisionDeadlineAt.dateSpec({\n meaning: 'By when someone should have answered the waiting decision: its DECISION deadline, three quarters of the lapse window by default, moved later by any pause. Always before the lapse.',\n whyItMatters: 'Missing it reminds the people who may answer and the person whose request waits, or reassigns it when the gate declares so. The decision still ends only at its lapse, as LAPSED, never as a refusal.',\n temporalRole: 'deadline',\n }),\n\n pendingDecisionNextDueAt: schemaShape.pendingDecisionNextDueAt.dateSpec({\n meaning: 'The earliest instant a deadline stage (a warning or a missed deadline) may still fire for the waiting decision. Empty while its clocks are paused and once nothing is left to fire.',\n whyItMatters: 'The deadline sweep selects due decisions on this indexed column, and each stage fires at most once through its own marker, so a reminder is neither lost nor sent twice across hosts.',\n temporalRole: 'scheduled',\n }),\n\n pendingDecisionClockPauseStateRef: schemaShape.pendingDecisionClockPauseStateRef.stringSpec({\n meaning: 'While the decision\\'s CLAIM and DECISION clocks are paused, which of the gate\\'s declared pause states they are paused in (for example waiting on the requester for information).',\n whyItMatters: 'A reviewer admitted to answer may stop the two clocks while they wait on something outside their control; the paused time is added to both deadlines on resume. It never stops the lapse.',\n semanticRole: 'identifier',\n }),\n\n contextRef: schemaShape.contextRef.stringSpec({\n meaning: 'The context the conversation was opened in: the context resources the client named when starting it, folded into one canonical string. Empty when none was named. Set when the conversation starts and never changed.',\n whyItMatters: 'Conversation history can be narrowed to one context, so the threads a person opened about one thing do not list alongside every other thread against the same system. It groups a caller’s own threads; it does not decide who may read them.',\n semanticRole: 'identifier',\n }),\n\n statusChanges: schemaShape.statusChanges.arraySpec({\n meaning: 'The run’s status history, oldest first.',\n elementMeaning: 'One transition: the status the run moved into and when.',\n }),\n\n messages: schemaShape.messages.arraySpec({\n meaning: 'The conversation transcript, oldest first: what the person or client sent and what the agent replied.',\n elementMeaning: 'One message: its id, who produced it, how to render it, its text, and optional structured data.',\n whyItMatters: 'It is the conversation itself and routinely holds personal data. When the owner’s personal data is erased, the transcript is emptied.',\n }),\n\n finishedAt: schemaShape.finishedAt.dateSpec({\n meaning: 'When the run ended — completed, failed or cancelled. Absent while it is still running or waiting for a decision.',\n temporalRole: 'occurred',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Open a new execution record when the conversational runtime starts a system.',\n outcome: 'One flow/actor execution begins to be tracked, ready to accumulate messages and status changes.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'An execution record was registered. This is an internal/system write path (INTERNAL_CALL, service-tier), not a self-serve API create — the conversational runtime writes on the owner\\'s behalf via *AsSystem.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The execution payload fails schema validation (e.g. missing `kind`/`status`/`systemRef`, or the injected owner FK).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts to create an execution — rows are created only by the flows-actors runtime through the internal repository service.' },\n ],\n idempotent: false,\n },\n\n [Op.READ]: {\n purpose: 'Read one past or in-progress agent conversation and its current state.',\n outcome: 'The authorized caller receives the representation selected by the route: the full conversation and lifecycle history, relationship context, or a compact lifecycle summary.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The requested conversation is returned in the full, context, or summary representation selected by the route.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No conversation exists for the id in the requested user, organization, or application scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not allowed to read agent conversation history for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: `Inspect a completed ${exampleScope.scopeLabel} agent conversation`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: completedExecutionExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: `Inspect a completed ${exampleScope.scopeLabel} agent conversation with context`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: completedExecutionExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: `Inspect the compact ${exampleScope.scopeLabel} conversation state`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: summarizeExecution(completedExecutionExample),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n\n [Op.LIST]: {\n purpose: 'List agent conversations visible in the requested user, organization, or application scope.',\n outcome: 'The authorized caller can browse recent conversations and distinguish active work from completed history.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of conversations visible in the requested scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not allowed to list agent conversation history for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: `List recent ${exampleScope.scopeLabel} agent conversations`,\n request: { ...exampleScope.scopeIdentity, page: 1, limit: 20, sort: 'updatedAt:desc' },\n response: createFlowActorExecutionPage([activeExecutionExample, completedExecutionExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: `List recent ${exampleScope.scopeLabel} conversations with context`,\n request: { ...exampleScope.scopeIdentity, page: 1, limit: 20 },\n response: createFlowActorExecutionPage([completedExecutionExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: `List compact ${exampleScope.scopeLabel} conversation states`,\n request: { ...exampleScope.scopeIdentity, page: 1, limit: 20 },\n response: createFlowActorExecutionPage([\n summarizeExecution(activeExecutionExample as typeof completedExecutionExample),\n summarizeExecution(completedExecutionExample),\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n\n [Op.UPDATE]: {\n purpose: 'Advance the execution — append messages, record status transitions, and evolve runtime state.',\n outcome: 'The persisted record stays synchronized with the live conversation streamed over the WebSocket channel.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The execution recorded a new message / status change / runtime-state update. Internal/system write path — the conversational runtime owns these transitions.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No execution row exists for the supplied id to advance.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The update patch fails schema validation (e.g. an unrecognized `status`).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts to mutate execution state.' },\n ],\n idempotent: true,\n },\n\n [Op.DELETE]: {\n purpose: 'Permanently remove one agent conversation from the requested scope.',\n outcome: 'The selected conversation and its transcript are no longer available.',\n whenToUse: 'Use when an authorized user or administrator intentionally removes conversation history that is no longer needed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The execution record was removed. Owner-facing API_CALL (default) via the `/flows-actors/history` DELETE route; delete authority is DISTINCT from read (a user deletes only their own chat; org/app conversations require org/app admin). The same default op also powers the composition onParentDelete cascade at the repository tier.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The executionId is unknown or belongs to another owner (the owner-scope filter yields no row).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the delete authority — a non-owner user, or an org/app member without admin — attempts to delete an execution.' },\n ],\n idempotent: true,\n examples: [{\n title: `Remove a completed ${exampleScope.scopeLabel} agent conversation`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: { id: completedExecutionExample._id, deletedAt: '2026-08-20T10:15:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'A conversation is owned by exactly ONE scope (the injected owner FK — `userId` / `organizationId` / `applicationId`); the default API surface must never expose another owner\\'s conversation (the owner primary-scope filter).',\n 'The polymorphic owner FK is injected on each concrete variant schema, not on `FlowActorExecutionBaseSchema` itself.',\n 'Writes are system-internal — only the flows-actors conversational runtime persists executions and appends messages; there is no self-serve write API.',\n 'The record is kind-agnostic: the `kind` discriminant lets it persist both FLOW and ACTOR executions, so the flow system can adopt it without reshaping the base envelope. Typed per-kind runtime-state overlays are a documented follow-on (v1 persists the conversational envelope + status).',\n ],\n }),\n // The owner is the injected scope FK, anchored by the `<SCOPE> → *FlowActorExecutions`\n // primary-scope composition edge in `resources-registry.shared.core.definitions.ts`\n // (generated by `createPolymorphicScopeRelationships`). The registry factory derives\n // the scope from `isPrimaryScope: true`; this declaration feeds the spec ↔ registry\n // alignment guard and must match per variant.\n { resourcePrimaryScope: flowExecPrimaryScopeByResourceType[resourceType] },\n );\n}\n\nexport const userFlowActorExecutionsResourceSpecification = buildFlowActorExecutionResourceSpecification(\n CoreResourceType.USER_FLOW_ACTOR_EXECUTIONS,\n 'USER_FLOW_ACTOR_EXECUTIONS',\n);\n\nexport const organizationFlowActorExecutionsResourceSpecification = buildFlowActorExecutionResourceSpecification(\n CoreResourceType.ORGANIZATION_FLOW_ACTOR_EXECUTIONS,\n 'ORGANIZATION_FLOW_ACTOR_EXECUTIONS',\n);\n\nexport const applicationFlowActorExecutionsResourceSpecification = buildFlowActorExecutionResourceSpecification(\n CoreResourceType.APPLICATION_FLOW_ACTOR_EXECUTIONS,\n 'APPLICATION_FLOW_ACTOR_EXECUTIONS',\n);\n"]}
|
package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-actor-tasks.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/flow-actor-tasks.resource.specification.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"flow-actor-tasks.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/flow-actor-tasks.resource.specification.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AA4Z/B,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAGnD,CAAC;AAEF,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG3D,CAAC;AAEF,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG1D,CAAC"}
|
|
@@ -168,6 +168,14 @@ function buildFlowActorTaskResourceSpecification(resourceType, resourceTypeMembe
|
|
|
168
168
|
meaning: 'Subject-matter grouping for the work, when the producer supplied one.',
|
|
169
169
|
whyItMatters: 'Subject-provided, and unset by the A2A transport. Kept from the canonical contract for the same reason as the description.',
|
|
170
170
|
}),
|
|
171
|
+
input: schemaShape.input.objectSpec({
|
|
172
|
+
meaning: 'What the task was asked to do, when its producer recorded it.',
|
|
173
|
+
whyItMatters: 'Subject-provided content. The A2A transport does not set it; the opening characters of the originating prompt are in `title`.',
|
|
174
|
+
}),
|
|
175
|
+
output: schemaShape.output.objectSpec({
|
|
176
|
+
meaning: 'The result of the work. On the A2A transport it is the reply text, written only when the task completes successfully; an empty reply is still a result.',
|
|
177
|
+
whyItMatters: 'DERIVED: it is set in the same guarded write that completes the task, so a cancellation that wins also refuses the reply, and a failed or approval-held task never shows one.',
|
|
178
|
+
}),
|
|
171
179
|
artifacts: schemaShape.artifacts.arraySpec({
|
|
172
180
|
meaning: 'Artifacts the work produced, projected onto the protocol object for the client to collect.',
|
|
173
181
|
elementMeaning: 'One artifact the work produced — its stable reference plus the typed parts that carry the content.',
|
|
@@ -302,7 +310,7 @@ function buildFlowActorTaskResourceSpecification(resourceType, resourceTypeMembe
|
|
|
302
310
|
examples: [{
|
|
303
311
|
title: `Remove completed ${exampleScope.scopeLabel} agent work`,
|
|
304
312
|
request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },
|
|
305
|
-
response: { id: completedTaskExample._id
|
|
313
|
+
response: { id: completedTaskExample._id },
|
|
306
314
|
forStatus: HttpResponseStatusCode.OK_200,
|
|
307
315
|
}],
|
|
308
316
|
},
|
package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-actor-tasks.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/flow-actor-tasks.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACp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eDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n FLOWS_ACTORS_NO_MACHINE_CREDENTIAL,\n FlowActorTaskBaseSchema,\n FlowsActors_Status,\n ResourcePrimaryScope,\n flowActorTasksPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport { type CoreResourceTypeMemberName, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned specification for the `flowActorTasks` POLYMORPHIC family: the\n * persisted WORK record that backs the A2A `Task` object. One base record is\n * stamped out as three genuine single-scope variants, each owned by its injected\n * owner FK:\n * - `userFlowActorTasks` (USER_SELF — user-delegated A2A)\n * - `organizationFlowActorTasks` (ORGANIZATIONS — org-machine A2A)\n * - `applicationFlowActorTasks` (APPLICATION — app-machine A2A)\n *\n * ## This is a different plane from `flowActorExecutions`\n *\n * Executions own CONVERSATIONAL session history (the message log). Tasks own an\n * addressable, pollable, cancelable WORK lifecycle. The architecture keeps them\n * apart deliberately — an A2A treatment links both concrete records rather than\n * copying the conversation into the task. A task therefore carries only a SOFT\n * link (`flowActorExecutionId`), not a declared foreign key, so it can outlive the\n * conversation that produced it.\n *\n * ## Not every turn has one\n *\n * A task is materialised only when the turn cannot complete inline — the client\n * asked for it (`blocking: false`) or the turn reached an interrupted state\n * (approval pause → `input-required`). Both triggers are live: the pause is proven end to end by\n * `examples/wonder-todos/e2e/a2a-approval-pause.e2e.ts` (the task reaches `input-required` and\n * persists the decision it waits on) and its release by `a2a-approval-resume.e2e.ts` (the task\n * LEAVES `input-required` once its execution moves on). A blocking turn that answers in one shot\n * returns a `Message` and writes no task row; the A2A spec permits both shapes.\n *\n * The default API READ/LIST are the per-owner HTTP surface. They do NOT govern the A2A\n * `tasks/get` path, which reads through the system-access primitive and isolates by an\n * owner filter derived from the authenticated principal — so a cross-tenant read fails\n * closed, but by that filter rather than by these roles. CREATE/UPDATE are internal\n * (INTERNAL_CALL, service-tier): only the runtime materialises a task and advances\n * its lifecycle via `*AsSystem`. `tasks/cancel` is an UPDATE, never a delete — the\n * spec requires cancel to return the task's updated state.\n */\n\ntype FlowTaskResourceType =\n | CoreResourceType.USER_FLOW_ACTOR_TASKS\n | CoreResourceType.ORGANIZATION_FLOW_ACTOR_TASKS\n | CoreResourceType.APPLICATION_FLOW_ACTOR_TASKS;\ntype FlowTaskResourceTypeMember = CoreResourceTypeMemberName<FlowTaskResourceType>;\n\ninterface FlowActorTaskScopeExample {\n readonly scopeIdentity: Readonly<Record<string, string>>;\n readonly resourceIdentity: Readonly<Record<string, string>>;\n readonly scopeLabel: string;\n readonly machineCredentialId: string;\n}\n\n/** Exhaustive owner/route projection for the three public task contracts. */\nfunction createFlowActorTaskScopeExample(resourceType: FlowTaskResourceType): FlowActorTaskScopeExample {\n switch (resourceType) {\n case CoreResourceType.USER_FLOW_ACTOR_TASKS:\n return {\n scopeIdentity: { userId: 'user_01JEXAMPLE' },\n resourceIdentity: { userFlowActorTaskId: 'flow_task_user_01JEXAMPLE' },\n scopeLabel: 'user',\n machineCredentialId: FLOWS_ACTORS_NO_MACHINE_CREDENTIAL,\n };\n case CoreResourceType.ORGANIZATION_FLOW_ACTOR_TASKS:\n return {\n scopeIdentity: { organizationId: 'org_01JEXAMPLE' },\n resourceIdentity: { organizationFlowActorTaskId: 'flow_task_org_01JEXAMPLE' },\n scopeLabel: 'organization',\n machineCredentialId: 'machine_credential_org_finance_agent',\n };\n case CoreResourceType.APPLICATION_FLOW_ACTOR_TASKS:\n return {\n scopeIdentity: { applicationId: 'app_01JEXAMPLE' },\n resourceIdentity: { applicationFlowActorTaskId: 'flow_task_app_01JEXAMPLE' },\n scopeLabel: 'application',\n machineCredentialId: 'machine_credential_app_finance_agent',\n };\n default: {\n const exhaustiveResourceType: never = resourceType;\n throw new Error(`Unsupported Flow Actor task resource type: ${String(exhaustiveResourceType)}`);\n }\n }\n}\n\nfunction createFlowActorTaskPage(data: readonly unknown[]) {\n return {\n data,\n pagination: { page: 1, limit: 20, total: data.length, totalPages: 1 },\n };\n}\n\nconst flowTaskPrimaryScopeByResourceType: Record<FlowTaskResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.USER_FLOW_ACTOR_TASKS]: ResourcePrimaryScope.USER_SELF,\n [CoreResourceType.ORGANIZATION_FLOW_ACTOR_TASKS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_FLOW_ACTOR_TASKS]: ResourcePrimaryScope.APPLICATION,\n};\n\ntype Cfg = ReturnType<(typeof flowActorTasksPolymorphicFactories)[CoreResourceType.USER_FLOW_ACTOR_TASKS]>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof FlowActorTaskBaseSchema;\n\nfunction buildFlowActorTaskResourceSpecification(\n resourceType: FlowTaskResourceType,\n resourceTypeMemberName: FlowTaskResourceTypeMember,\n) {\n const exampleScope = createFlowActorTaskScopeExample(resourceType);\n const completedTaskExample = {\n _id: Object.values(exampleScope.resourceIdentity)[0],\n title: 'Prepare the weekly purchase-approval brief',\n status: FlowsActors_Status.COMPLETED,\n taskId: '22222222-2222-4222-8222-222222222222',\n flowActorExecutionId: '11111111-1111-4111-8111-111111111111',\n resourceServerInstanceRef: 'finance-operations-agent',\n machineCredentialId: exampleScope.machineCredentialId,\n contextId: 'finance-weekly-review-2026-w34',\n artifacts: [],\n createdAt: '2026-08-20T08:30:00.000Z',\n updatedAt: '2026-08-20T08:30:14.000Z',\n finishedAt: '2026-08-20T08:30:14.000Z',\n ...exampleScope.scopeIdentity,\n };\n const processingTaskExample = {\n ...completedTaskExample,\n _id: `${completedTaskExample._id}_processing`,\n title: 'Reconcile supplier exceptions',\n status: FlowsActors_Status.PROCESSING,\n taskId: '22222222-2222-4222-8222-222222222223',\n updatedAt: '2026-08-20T09:05:02.000Z',\n finishedAt: undefined,\n };\n const summarizeTask = (task: typeof completedTaskExample) => ({\n _id: task._id,\n taskId: task.taskId,\n status: task.status,\n title: task.title,\n });\n\n return resourceSpecification<undefined, Core, Main>(\n flowActorTasksPolymorphicFactories[resourceType],\n FlowActorTaskBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Track one addressable unit of agent work, including its lifecycle status, outputs, artifacts, and terminal outcome.',\n businessRole: 'The work record an authorized integration polls, collects results from, or cancels independently of the conversation that started it.',\n lifecycleRole: 'Materialised when a turn cannot complete inline: either the client asked for a non-blocking turn (`blocking: false`), or the turn hit an approval pause and reached `input-required`. Advances through working, and closes on completion, failure, or cancellation.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowActorTaskBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'flowActorTasksPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: resourceTypeMemberName,\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'Derived from the canonical `Actors_Task_Schema` — the same contract the platform persists as `wildoApplicationActorTasks`. Not a bespoke A2A task model.',\n 'Three variants under `FLOW_ACTOR_TASK_SCOPE_VARIANTS` — user row is `USER_SELF`; org/app rows are `ORGANIZATIONS`/`APPLICATION` (machine-owned).',\n '`input` and `output` carry no field specification because they are untyped passthrough (`any`) inherited from the canonical task contract, and the specification framework offers no builder for an untyped field. Their portability provenance IS declared at the schema — `input` is subject-provided, `output` is derived — so the classification a portability bundle needs is not lost by the omission. Neither is written by the A2A transport today.',\n ],\n },\n\n fields: {\n taskId: schemaShape.taskId.stringSpec({\n meaning: 'Stable business id of the task, and the identity the A2A protocol addresses.',\n whyItMatters: 'This is the value returned as `Task.id` and accepted by `tasks/get` / `tasks/cancel` — the only handle an A2A client holds. Uniqueness is enforced PER VARIANT despite the `scope: \\'global\\'` decorator — the three variants are separate stores and no index spans them. Nothing depends on family-wide uniqueness, and a v4 uuid collision is not a real risk. Note what that does NOT mean: the read is still OWNER-FIRST. `readTask` filters on the owner fields derived from the authenticated principal AND the id, so a task belonging to another tenant answers exactly as a non-existent one does. Uniqueness is not what authorizes the read under either reading, so do not reason from it to isolation. Two earlier revisions of this sentence were wrong in opposite directions: one claimed the id \"must resolve without the caller knowing which owner scope the task belongs to\" (a lookup this resource does not perform), and one claimed `scope: \\'global\\'` gives FAMILY-WIDE uniqueness — it does not, because `global` means \"unique across the entire COLLECTION\" and each polymorphic variant is its own collection.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n status: schemaShape.status.enumSpec({\n meaning: 'Current lifecycle state of the work.',\n whyItMatters: 'It is the field the A2A surface projects onto protocol task states: `READY`/`PENDING` → submitted, `PROCESSING` → working, `AWAITING_APPROVAL` → input-required, `COMPLETED` → completed, `FAILED`/`ABORTED` → failed, `CANCELLED` → canceled. A status that depends on a pod being alive is reported as failed once its liveness lease has expired, so an abandoned task never reads as still working. Interrupted statuses are exempt: a task waiting on a human holds no lease by design, and applying the abandonment rule to it would read a correct pause as a dead pod.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowsActors_Status',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [FlowsActors_Status.READY]: { meaning: 'Materialised and acknowledged, not yet processing — A2A `submitted`.' },\n [FlowsActors_Status.PENDING]: { meaning: 'Accepted but not yet actively processing — also projects to A2A `submitted`.' },\n [FlowsActors_Status.PROCESSING]: { meaning: 'Actively running — the agent is working the task. A2A `working`.' },\n [FlowsActors_Status.AWAITING_APPROVAL]: { meaning: 'Interrupted at a human-in-the-loop approval boundary, waiting on a human decision. A2A `input-required` — non-terminal. NOT EMITTED YET: the pausing runtime arrives with Phase 2; the state is declared so the projection is complete.' },\n [FlowsActors_Status.COMPLETED]: { meaning: 'Work finished successfully; outputs and artifacts are final. A2A `completed` (terminal).' },\n [FlowsActors_Status.FAILED]: { meaning: 'Work ended in error. A2A `failed` (terminal). Also the state an abandoned task resolves to when its liveness lease has expired.' },\n [FlowsActors_Status.CANCELLED]: { meaning: 'Cancelled before completion, via `tasks/cancel`. A2A `canceled` (terminal) — the record survives so the client can read its final state.' },\n [FlowsActors_Status.ABORTED]: { meaning: 'Halted by the runtime rather than by a caller (e.g. a circuit breaker tripped). Projects to A2A `failed` (terminal).' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n contextId: schemaShape.contextId.stringSpec({\n meaning: 'The A2A conversation thread this task belongs to.',\n whyItMatters: 'Indexed so a client can enumerate every task of one conversation without walking execution records — the two planes stay queryable independently.',\n semanticRole: 'identifier',\n }),\n\n resourceServerInstanceRef: schemaShape.resourceServerInstanceRef.stringSpec({\n meaning: 'Which A2A agent (resource-server instance) this task was created through. The default, unnamed agent is stored under a reserved sentinel rather than left empty.',\n whyItMatters: 'Part of the read and cancel FILTER, not descriptive metadata. A2A agents are declared as separate resource servers with per-instance token audiences, so an agent must have no side-door into another agent\\'s work. Without this dimension a token bound to one agent could read and cancel tasks created through another whenever both resolved to the same owner scope — and since `title` carries the opening characters of the originating prompt, that also disclosed prompt text across the boundary.',\n semanticRole: 'identifier',\n }),\n\n title: schemaShape.title.stringSpec({\n meaning: 'Short human-readable name for the work, shown wherever a task is listed.',\n whyItMatters: 'CONTENT-BEARING, and part of the summary projection: the A2A transport fills it with the opening characters of the ORIGINATING PROMPT. That is why it is classified as subject-provided for portability rather than observed, and why the read filter carries the agent-instance and machine-credential axes — a cross-principal read of this field discloses prompt text.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n description: schemaShape.description.stringSpec({\n meaning: 'Longer free-text description of the work, when the producer supplied one.',\n whyItMatters: 'Subject-provided content, like the title. Absent on an A2A-materialised task today — the transport sets only a title — but retained from the canonical task contract so an orchestration producer can populate it without a schema change.',\n }),\n\n topic: schemaShape.topic.stringSpec({\n meaning: 'Subject-matter grouping for the work, when the producer supplied one.',\n whyItMatters: 'Subject-provided, and unset by the A2A transport. Kept from the canonical contract for the same reason as the description.',\n }),\n\n artifacts: schemaShape.artifacts.arraySpec({\n meaning: 'Artifacts the work produced, projected onto the protocol object for the client to collect.',\n elementMeaning: 'One artifact the work produced — its stable reference plus the typed parts that carry the content.',\n whyItMatters: 'DERIVED, like the output, and the one field of this family that reaches the wire as structured content. No writer populates it yet: the projection exists and is correct, but is unreachable by construction until an orchestration producer sets it.',\n }),\n\n machineCredentialId: schemaShape.machineCredentialId.stringSpec({\n meaning: 'Which machine credential opened this task. A user-delegated turn stores a reserved sentinel, because there the human is the principal.',\n whyItMatters: 'Part of the read and cancel FILTER, alongside the owner scope and the agent instance. The scope foreign key does not identify the principal on the machine variants: the application scope is a deployment singleton, so every application-scope client resolves to the same owner, and the organization scope is shared by every machine client of one tenant. Without this axis a separately-credentialed client could read and cancel another client\\'s work — and the title carries the opening characters of the originating prompt.',\n semanticRole: 'identifier',\n }),\n\n flowActorExecutionId: schemaShape.flowActorExecutionId.stringSpec({\n meaning: 'The conversational execution this task was materialised from, when there was one.',\n whyItMatters: 'A SOFT link, not a foreign key, and optional on purpose: a task is owned by its scope, not by an execution, so it may outlive — or exist without — the conversation that produced it. Deleting a conversation must never delete its work records.',\n semanticRole: 'identifier',\n }),\n\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the task was materialised.',\n temporalRole: 'creation',\n }),\n\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the task last advanced — a status transition, an artifact append, or a recorded outcome.',\n temporalRole: 'modified',\n }),\n\n finishedAt: schemaShape.finishedAt.dateSpec({\n meaning: 'When the task reached a terminal state (completed, failed, or canceled).',\n whyItMatters: 'Set when the repair — or a normal completion — lands. The sweep selects candidates by `updatedAt` older than a grace window AND a non-terminal `status`, then lets the liveness lease decide.',\n temporalRole: 'occurred',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Materialise a task when a turn cannot complete inline — today, when the client asked for immediate return. The approval-pause trigger arrives with Phase 2.',\n outcome: 'The client receives an addressable task it can poll and cancel, instead of waiting on a response that will not arrive.',\n whenToUse: 'Never called directly by a client. A task comes into existence as a consequence of a turn, and only when that turn cannot answer in the response.',\n },\n [Op.READ]: {\n purpose: 'Read one addressable unit of agent work and its current lifecycle state.',\n outcome: 'The caller learns whether the work is queued, active, waiting, complete, failed, or canceled, and receives any available artifacts.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The task was found within the caller\\'s own scope and is returned in its current state.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not allowed to inspect agent work for this user, organization, or application scope.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No task exists for the id in the requested scope.' },\n ],\n rateLimitNote: 'Deliberately NOT rate-limited or budget-gated on the A2A path: polling a task is not a turn and consumes no model tokens, so throttling it would penalise exactly the clients that correctly asked not to block.',\n examples: [{\n title: `Inspect completed ${exampleScope.scopeLabel} agent work`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: completedTaskExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: `Inspect completed ${exampleScope.scopeLabel} agent work with context`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: completedTaskExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: `Inspect the compact ${exampleScope.scopeLabel} task state`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: summarizeTask(completedTaskExample),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List agent work visible in the requested scope, optionally filtered by conversation context or lifecycle status.',\n outcome: 'The caller can reconcile the work for one conversation or monitor unfinished work without walking conversation records.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller\\'s own tasks, scoped to their owner.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not allowed to list agent work for this scope.' },\n ],\n examples: [{\n title: `List active ${exampleScope.scopeLabel} tasks for one conversation`,\n request: {\n ...exampleScope.scopeIdentity,\n contextId: completedTaskExample.contextId,\n status: FlowsActors_Status.PROCESSING,\n page: 1,\n limit: 20,\n sort: 'updatedAt:desc',\n },\n response: createFlowActorTaskPage([processingTaskExample, completedTaskExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: `List ${exampleScope.scopeLabel} tasks with resource context`,\n request: { ...exampleScope.scopeIdentity, contextId: completedTaskExample.contextId, page: 1, limit: 20 },\n response: createFlowActorTaskPage([completedTaskExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: `List compact ${exampleScope.scopeLabel} task states`,\n request: { ...exampleScope.scopeIdentity, contextId: completedTaskExample.contextId, page: 1, limit: 20 },\n response: createFlowActorTaskPage([\n summarizeTask(processingTaskExample as typeof completedTaskExample),\n summarizeTask(completedTaskExample),\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Advance the task — status transitions, appended artifacts, terminal outcome — and record cancellation.',\n outcome: 'The stored record reflects what actually happened to the work, which is what every other reader depends on.',\n whenToUse: 'Backs `tasks/cancel`, which is a STATUS TRANSITION rather than a delete: the A2A spec requires cancel to return the task\\'s updated state, so the record must survive it.',\n },\n [Op.DELETE]: {\n purpose: 'Permanently remove one stored unit of agent work from the requested scope.',\n outcome: 'The selected task record and its stored results are no longer available.',\n whenToUse: 'Use for deliberate history cleanup after the task is no longer needed; use cancellation instead when active work must stop but its final state must remain observable.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The selected task record was removed.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks task-removal authority in the requested scope.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No task exists for the id in the requested scope.' },\n ],\n examples: [{\n title: `Remove completed ${exampleScope.scopeLabel} agent work`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: { id: completedTaskExample._id, deletedAt: '2026-08-20T10:20:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'A task belongs to exactly ONE owner scope — the injected owner FK is the only authority over its lifetime. The link to a conversational execution is soft and optional, and never governs deletion.',\n 'Not every turn produces a task. Turns that complete inline return a Message and write no row; a task is materialised only when the work needs an addressable lifecycle.',\n 'Cancellation is a status transition, never a deletion — a canceled task remains readable so the client can observe its final state.',\n 'A non-terminal task whose liveness lease has expired is reported as failed: the executing process died, and a task must never read as working forever.',\n ],\n }),\n // The owner is the injected scope FK, anchored by the `<SCOPE> → *FlowActorTasks`\n // primary-scope composition edge in `resources-registry.shared.core.definitions.ts`\n // (generated by `createPolymorphicScopeRelationships`). Feeds the spec ↔ registry\n // alignment guard and must match per variant.\n { resourcePrimaryScope: flowTaskPrimaryScopeByResourceType[resourceType] },\n );\n}\n\nexport const userFlowActorTasksResourceSpecification = buildFlowActorTaskResourceSpecification(\n CoreResourceType.USER_FLOW_ACTOR_TASKS,\n 'USER_FLOW_ACTOR_TASKS',\n);\n\nexport const organizationFlowActorTasksResourceSpecification = buildFlowActorTaskResourceSpecification(\n CoreResourceType.ORGANIZATION_FLOW_ACTOR_TASKS,\n 'ORGANIZATION_FLOW_ACTOR_TASKS',\n);\n\nexport const applicationFlowActorTasksResourceSpecification = buildFlowActorTaskResourceSpecification(\n CoreResourceType.APPLICATION_FLOW_ACTOR_TASKS,\n 'APPLICATION_FLOW_ACTOR_TASKS',\n);\n"]}
|
|
1
|
+
{"version":3,"file":"flow-actor-tasks.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/flow-actor-tasks.resource.specification.ts"],"names":[],"mappings":"AAAA,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,gBAAgB,EAChB,kCAAkC,EAClC,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,kCAAkC,GACnC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAmC,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC7H,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAoD3E,6EAA6E;AAC7E,SAAS,+BAA+B,CAAC,YAAkC;IACzE,QAAQ,YAAY,EAAE,CAAC;QACrB,KAAK,gBAAgB,CAAC,qBAAqB;YACzC,OAAO;gBACL,aAAa,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE;gBAC5C,gBAAgB,EAAE,EAAE,mBAAmB,EAAE,2BAA2B,EAAE;gBACtE,UAAU,EAAE,MAAM;gBAClB,mBAAmB,EAAE,kCAAkC;aACxD,CAAC;QACJ,KAAK,gBAAgB,CAAC,6BAA6B;YACjD,OAAO;gBACL,aAAa,EAAE,EAAE,cAAc,EAAE,gBAAgB,EAAE;gBACnD,gBAAgB,EAAE,EAAE,2BAA2B,EAAE,0BAA0B,EAAE;g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sBAAsB,CAAC,MAAM;qBACzC,CAAC;aACH;SACF;QAED,mBAAmB,EAAE;YACnB,qMAAqM;YACrM,yKAAyK;YACzK,qIAAqI;YACrI,wJAAwJ;SACzJ;KACF,CAAC;IACF,kFAAkF;IAClF,oFAAoF;IACpF,kFAAkF;IAClF,8CAA8C;IAC9C,EAAE,oBAAoB,EAAE,kCAAkC,CAAC,YAAY,CAAC,EAAE,CAC3E,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,uCAAuC,GAAG,uCAAuC,CAC5F,gBAAgB,CAAC,qBAAqB,EACtC,uBAAuB,CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,+CAA+C,GAAG,uCAAuC,CACpG,gBAAgB,CAAC,6BAA6B,EAC9C,+BAA+B,CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,8CAA8C,GAAG,uCAAuC,CACnG,gBAAgB,CAAC,4BAA4B,EAC7C,8BAA8B,CAC/B,CAAC","sourcesContent":["import { 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 CoreResourceType,\n FLOWS_ACTORS_NO_MACHINE_CREDENTIAL,\n FlowActorTaskBaseSchema,\n FlowsActors_Status,\n ResourcePrimaryScope,\n flowActorTasksPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport { type CoreResourceTypeMemberName, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned specification for the `flowActorTasks` POLYMORPHIC family: the\n * persisted WORK record that backs the A2A `Task` object. One base record is\n * stamped out as three genuine single-scope variants, each owned by its injected\n * owner FK:\n * - `userFlowActorTasks` (USER_SELF — user-delegated A2A)\n * - `organizationFlowActorTasks` (ORGANIZATIONS — org-machine A2A)\n * - `applicationFlowActorTasks` (APPLICATION — app-machine A2A)\n *\n * ## This is a different plane from `flowActorExecutions`\n *\n * Executions own CONVERSATIONAL session history (the message log). Tasks own an\n * addressable, pollable, cancelable WORK lifecycle. The architecture keeps them\n * apart deliberately — an A2A treatment links both concrete records rather than\n * copying the conversation into the task. A task therefore carries only a SOFT\n * link (`flowActorExecutionId`), not a declared foreign key, so it can outlive the\n * conversation that produced it.\n *\n * ## Not every turn has one\n *\n * A task is materialised only when the turn cannot complete inline — the client\n * asked for it (`blocking: false`) or the turn reached an interrupted state\n * (approval pause → `input-required`). Both triggers are live: the pause is proven end to end by\n * `examples/wonder-todos/e2e/a2a-approval-pause.e2e.ts` (the task reaches `input-required` and\n * persists the decision it waits on) and its release by `a2a-approval-resume.e2e.ts` (the task\n * LEAVES `input-required` once its execution moves on). A blocking turn that answers in one shot\n * returns a `Message` and writes no task row; the A2A spec permits both shapes.\n *\n * The default API READ/LIST are the per-owner HTTP surface. They do NOT govern the A2A\n * `tasks/get` path, which reads through the system-access primitive and isolates by an\n * owner filter derived from the authenticated principal — so a cross-tenant read fails\n * closed, but by that filter rather than by these roles. CREATE/UPDATE are internal\n * (INTERNAL_CALL, service-tier): only the runtime materialises a task and advances\n * its lifecycle via `*AsSystem`. `tasks/cancel` is an UPDATE, never a delete — the\n * spec requires cancel to return the task's updated state.\n */\n\ntype FlowTaskResourceType =\n | CoreResourceType.USER_FLOW_ACTOR_TASKS\n | CoreResourceType.ORGANIZATION_FLOW_ACTOR_TASKS\n | CoreResourceType.APPLICATION_FLOW_ACTOR_TASKS;\ntype FlowTaskResourceTypeMember = CoreResourceTypeMemberName<FlowTaskResourceType>;\n\ninterface FlowActorTaskScopeExample {\n readonly scopeIdentity: Readonly<Record<string, string>>;\n readonly resourceIdentity: Readonly<Record<string, string>>;\n readonly scopeLabel: string;\n readonly machineCredentialId: string;\n}\n\n/** Exhaustive owner/route projection for the three public task contracts. */\nfunction createFlowActorTaskScopeExample(resourceType: FlowTaskResourceType): FlowActorTaskScopeExample {\n switch (resourceType) {\n case CoreResourceType.USER_FLOW_ACTOR_TASKS:\n return {\n scopeIdentity: { userId: 'user_01JEXAMPLE' },\n resourceIdentity: { userFlowActorTaskId: 'flow_task_user_01JEXAMPLE' },\n scopeLabel: 'user',\n machineCredentialId: FLOWS_ACTORS_NO_MACHINE_CREDENTIAL,\n };\n case CoreResourceType.ORGANIZATION_FLOW_ACTOR_TASKS:\n return {\n scopeIdentity: { organizationId: 'org_01JEXAMPLE' },\n resourceIdentity: { organizationFlowActorTaskId: 'flow_task_org_01JEXAMPLE' },\n scopeLabel: 'organization',\n machineCredentialId: 'machine_credential_org_finance_agent',\n };\n case CoreResourceType.APPLICATION_FLOW_ACTOR_TASKS:\n return {\n scopeIdentity: { applicationId: 'app_01JEXAMPLE' },\n resourceIdentity: { applicationFlowActorTaskId: 'flow_task_app_01JEXAMPLE' },\n scopeLabel: 'application',\n machineCredentialId: 'machine_credential_app_finance_agent',\n };\n default: {\n const exhaustiveResourceType: never = resourceType;\n throw new Error(`Unsupported Flow Actor task resource type: ${String(exhaustiveResourceType)}`);\n }\n }\n}\n\nfunction createFlowActorTaskPage(data: readonly unknown[]) {\n return {\n data,\n pagination: { page: 1, limit: 20, total: data.length, totalPages: 1 },\n };\n}\n\nconst flowTaskPrimaryScopeByResourceType: Record<FlowTaskResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.USER_FLOW_ACTOR_TASKS]: ResourcePrimaryScope.USER_SELF,\n [CoreResourceType.ORGANIZATION_FLOW_ACTOR_TASKS]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_FLOW_ACTOR_TASKS]: ResourcePrimaryScope.APPLICATION,\n};\n\ntype Cfg = ReturnType<(typeof flowActorTasksPolymorphicFactories)[CoreResourceType.USER_FLOW_ACTOR_TASKS]>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof FlowActorTaskBaseSchema;\n\nfunction buildFlowActorTaskResourceSpecification(\n resourceType: FlowTaskResourceType,\n resourceTypeMemberName: FlowTaskResourceTypeMember,\n) {\n const exampleScope = createFlowActorTaskScopeExample(resourceType);\n const completedTaskExample = {\n _id: Object.values(exampleScope.resourceIdentity)[0],\n title: 'Prepare the weekly purchase-approval brief',\n status: FlowsActors_Status.COMPLETED,\n taskId: '22222222-2222-4222-8222-222222222222',\n flowActorExecutionId: '11111111-1111-4111-8111-111111111111',\n resourceServerInstanceRef: 'finance-operations-agent',\n machineCredentialId: exampleScope.machineCredentialId,\n contextId: 'finance-weekly-review-2026-w34',\n artifacts: [],\n createdAt: '2026-08-20T08:30:00.000Z',\n updatedAt: '2026-08-20T08:30:14.000Z',\n finishedAt: '2026-08-20T08:30:14.000Z',\n ...exampleScope.scopeIdentity,\n };\n const processingTaskExample = {\n ...completedTaskExample,\n _id: `${completedTaskExample._id}_processing`,\n title: 'Reconcile supplier exceptions',\n status: FlowsActors_Status.PROCESSING,\n taskId: '22222222-2222-4222-8222-222222222223',\n updatedAt: '2026-08-20T09:05:02.000Z',\n finishedAt: undefined,\n };\n const summarizeTask = (task: typeof completedTaskExample) => ({\n _id: task._id,\n taskId: task.taskId,\n status: task.status,\n title: task.title,\n });\n\n return resourceSpecification<undefined, Core, Main>(\n flowActorTasksPolymorphicFactories[resourceType],\n FlowActorTaskBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'Track one addressable unit of agent work, including its lifecycle status, outputs, artifacts, and terminal outcome.',\n businessRole: 'The work record an authorized integration polls, collects results from, or cancels independently of the conversation that started it.',\n lifecycleRole: 'Materialised when a turn cannot complete inline: either the client asked for a non-blocking turn (`blocking: false`), or the turn hit an approval pause and reached `input-required`. Advances through working, and closes on completion, failure, or cancellation.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.FLOWS_ACTORS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowActorTaskBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'flowActorTasksPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: resourceTypeMemberName,\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'Derived from the canonical `Actors_Task_Schema` — the same contract the platform persists as `wildoApplicationActorTasks`. Not a bespoke A2A task model.',\n 'Three variants under `FLOW_ACTOR_TASK_SCOPE_VARIANTS` — user row is `USER_SELF`; org/app rows are `ORGANIZATIONS`/`APPLICATION` (machine-owned).',\n '`input` and `output` carry no field specification because they are untyped passthrough (`any`) inherited from the canonical task contract, and the specification framework offers no builder for an untyped field. Their portability provenance IS declared at the schema — `input` is subject-provided, `output` is derived — so the classification a portability bundle needs is not lost by the omission. Neither is written by the A2A transport today.',\n ],\n },\n\n fields: {\n taskId: schemaShape.taskId.stringSpec({\n meaning: 'Stable business id of the task, and the identity the A2A protocol addresses.',\n whyItMatters: 'This is the value returned as `Task.id` and accepted by `tasks/get` / `tasks/cancel` — the only handle an A2A client holds. Uniqueness is enforced PER VARIANT despite the `scope: \\'global\\'` decorator — the three variants are separate stores and no index spans them. Nothing depends on family-wide uniqueness, and a v4 uuid collision is not a real risk. Note what that does NOT mean: the read is still OWNER-FIRST. `readTask` filters on the owner fields derived from the authenticated principal AND the id, so a task belonging to another tenant answers exactly as a non-existent one does. Uniqueness is not what authorizes the read under either reading, so do not reason from it to isolation. Two earlier revisions of this sentence were wrong in opposite directions: one claimed the id \"must resolve without the caller knowing which owner scope the task belongs to\" (a lookup this resource does not perform), and one claimed `scope: \\'global\\'` gives FAMILY-WIDE uniqueness — it does not, because `global` means \"unique across the entire COLLECTION\" and each polymorphic variant is its own collection.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n status: schemaShape.status.enumSpec({\n meaning: 'Current lifecycle state of the work.',\n whyItMatters: 'It is the field the A2A surface projects onto protocol task states: `READY`/`PENDING` → submitted, `PROCESSING` → working, `AWAITING_APPROVAL` → input-required, `COMPLETED` → completed, `FAILED`/`ABORTED` → failed, `CANCELLED` → canceled. A status that depends on a pod being alive is reported as failed once its liveness lease has expired, so an abandoned task never reads as still working. Interrupted statuses are exempt: a task waiting on a human holds no lease by design, and applying the abandonment rule to it would read a correct pause as a dead pod.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'FlowsActors_Status',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [FlowsActors_Status.READY]: { meaning: 'Materialised and acknowledged, not yet processing — A2A `submitted`.' },\n [FlowsActors_Status.PENDING]: { meaning: 'Accepted but not yet actively processing — also projects to A2A `submitted`.' },\n [FlowsActors_Status.PROCESSING]: { meaning: 'Actively running — the agent is working the task. A2A `working`.' },\n [FlowsActors_Status.AWAITING_APPROVAL]: { meaning: 'Interrupted at a human-in-the-loop approval boundary, waiting on a human decision. A2A `input-required` — non-terminal. NOT EMITTED YET: the pausing runtime arrives with Phase 2; the state is declared so the projection is complete.' },\n [FlowsActors_Status.COMPLETED]: { meaning: 'Work finished successfully; outputs and artifacts are final. A2A `completed` (terminal).' },\n [FlowsActors_Status.FAILED]: { meaning: 'Work ended in error. A2A `failed` (terminal). Also the state an abandoned task resolves to when its liveness lease has expired.' },\n [FlowsActors_Status.CANCELLED]: { meaning: 'Cancelled before completion, via `tasks/cancel`. A2A `canceled` (terminal) — the record survives so the client can read its final state.' },\n [FlowsActors_Status.ABORTED]: { meaning: 'Halted by the runtime rather than by a caller (e.g. a circuit breaker tripped). Projects to A2A `failed` (terminal).' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n contextId: schemaShape.contextId.stringSpec({\n meaning: 'The A2A conversation thread this task belongs to.',\n whyItMatters: 'Indexed so a client can enumerate every task of one conversation without walking execution records — the two planes stay queryable independently.',\n semanticRole: 'identifier',\n }),\n\n resourceServerInstanceRef: schemaShape.resourceServerInstanceRef.stringSpec({\n meaning: 'Which A2A agent (resource-server instance) this task was created through. The default, unnamed agent is stored under a reserved sentinel rather than left empty.',\n whyItMatters: 'Part of the read and cancel FILTER, not descriptive metadata. A2A agents are declared as separate resource servers with per-instance token audiences, so an agent must have no side-door into another agent\\'s work. Without this dimension a token bound to one agent could read and cancel tasks created through another whenever both resolved to the same owner scope — and since `title` carries the opening characters of the originating prompt, that also disclosed prompt text across the boundary.',\n semanticRole: 'identifier',\n }),\n\n title: schemaShape.title.stringSpec({\n meaning: 'Short human-readable name for the work, shown wherever a task is listed.',\n whyItMatters: 'CONTENT-BEARING, and part of the summary projection: the A2A transport fills it with the opening characters of the ORIGINATING PROMPT. That is why it is classified as subject-provided for portability rather than observed, and why the read filter carries the agent-instance and machine-credential axes — a cross-principal read of this field discloses prompt text.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n description: schemaShape.description.stringSpec({\n meaning: 'Longer free-text description of the work, when the producer supplied one.',\n whyItMatters: 'Subject-provided content, like the title. Absent on an A2A-materialised task today — the transport sets only a title — but retained from the canonical task contract so an orchestration producer can populate it without a schema change.',\n }),\n\n topic: schemaShape.topic.stringSpec({\n meaning: 'Subject-matter grouping for the work, when the producer supplied one.',\n whyItMatters: 'Subject-provided, and unset by the A2A transport. Kept from the canonical contract for the same reason as the description.',\n }),\n\n input: schemaShape.input.objectSpec({\n meaning: 'What the task was asked to do, when its producer recorded it.',\n whyItMatters: 'Subject-provided content. The A2A transport does not set it; the opening characters of the originating prompt are in `title`.',\n }),\n\n output: schemaShape.output.objectSpec({\n meaning: 'The result of the work. On the A2A transport it is the reply text, written only when the task completes successfully; an empty reply is still a result.',\n whyItMatters: 'DERIVED: it is set in the same guarded write that completes the task, so a cancellation that wins also refuses the reply, and a failed or approval-held task never shows one.',\n }),\n\n artifacts: schemaShape.artifacts.arraySpec({\n meaning: 'Artifacts the work produced, projected onto the protocol object for the client to collect.',\n elementMeaning: 'One artifact the work produced — its stable reference plus the typed parts that carry the content.',\n whyItMatters: 'DERIVED, like the output, and the one field of this family that reaches the wire as structured content. No writer populates it yet: the projection exists and is correct, but is unreachable by construction until an orchestration producer sets it.',\n }),\n\n machineCredentialId: schemaShape.machineCredentialId.stringSpec({\n meaning: 'Which machine credential opened this task. A user-delegated turn stores a reserved sentinel, because there the human is the principal.',\n whyItMatters: 'Part of the read and cancel FILTER, alongside the owner scope and the agent instance. The scope foreign key does not identify the principal on the machine variants: the application scope is a deployment singleton, so every application-scope client resolves to the same owner, and the organization scope is shared by every machine client of one tenant. Without this axis a separately-credentialed client could read and cancel another client\\'s work — and the title carries the opening characters of the originating prompt.',\n semanticRole: 'identifier',\n }),\n\n flowActorExecutionId: schemaShape.flowActorExecutionId.stringSpec({\n meaning: 'The conversational execution this task was materialised from, when there was one.',\n whyItMatters: 'A SOFT link, not a foreign key, and optional on purpose: a task is owned by its scope, not by an execution, so it may outlive — or exist without — the conversation that produced it. Deleting a conversation must never delete its work records.',\n semanticRole: 'identifier',\n }),\n\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the task was materialised.',\n temporalRole: 'creation',\n }),\n\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the task last advanced — a status transition, an artifact append, or a recorded outcome.',\n temporalRole: 'modified',\n }),\n\n finishedAt: schemaShape.finishedAt.dateSpec({\n meaning: 'When the task reached a terminal state (completed, failed, or canceled).',\n whyItMatters: 'Set when the repair — or a normal completion — lands. The sweep selects candidates by `updatedAt` older than a grace window AND a non-terminal `status`, then lets the liveness lease decide.',\n temporalRole: 'occurred',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Materialise a task when a turn cannot complete inline — today, when the client asked for immediate return. The approval-pause trigger arrives with Phase 2.',\n outcome: 'The client receives an addressable task it can poll and cancel, instead of waiting on a response that will not arrive.',\n whenToUse: 'Never called directly by a client. A task comes into existence as a consequence of a turn, and only when that turn cannot answer in the response.',\n },\n [Op.READ]: {\n purpose: 'Read one addressable unit of agent work and its current lifecycle state.',\n outcome: 'The caller learns whether the work is queued, active, waiting, complete, failed, or canceled, and receives any available artifacts.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The task was found within the caller\\'s own scope and is returned in its current state.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not allowed to inspect agent work for this user, organization, or application scope.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No task exists for the id in the requested scope.' },\n ],\n rateLimitNote: 'Deliberately NOT rate-limited or budget-gated on the A2A path: polling a task is not a turn and consumes no model tokens, so throttling it would penalise exactly the clients that correctly asked not to block.',\n examples: [{\n title: `Inspect completed ${exampleScope.scopeLabel} agent work`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: completedTaskExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: `Inspect completed ${exampleScope.scopeLabel} agent work with context`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: completedTaskExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: `Inspect the compact ${exampleScope.scopeLabel} task state`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: summarizeTask(completedTaskExample),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List agent work visible in the requested scope, optionally filtered by conversation context or lifecycle status.',\n outcome: 'The caller can reconcile the work for one conversation or monitor unfinished work without walking conversation records.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The caller\\'s own tasks, scoped to their owner.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not allowed to list agent work for this scope.' },\n ],\n examples: [{\n title: `List active ${exampleScope.scopeLabel} tasks for one conversation`,\n request: {\n ...exampleScope.scopeIdentity,\n contextId: completedTaskExample.contextId,\n status: FlowsActors_Status.PROCESSING,\n page: 1,\n limit: 20,\n sort: 'updatedAt:desc',\n },\n response: createFlowActorTaskPage([processingTaskExample, completedTaskExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: `List ${exampleScope.scopeLabel} tasks with resource context`,\n request: { ...exampleScope.scopeIdentity, contextId: completedTaskExample.contextId, page: 1, limit: 20 },\n response: createFlowActorTaskPage([completedTaskExample]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: `List compact ${exampleScope.scopeLabel} task states`,\n request: { ...exampleScope.scopeIdentity, contextId: completedTaskExample.contextId, page: 1, limit: 20 },\n response: createFlowActorTaskPage([\n summarizeTask(processingTaskExample as typeof completedTaskExample),\n summarizeTask(completedTaskExample),\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Advance the task — status transitions, appended artifacts, terminal outcome — and record cancellation.',\n outcome: 'The stored record reflects what actually happened to the work, which is what every other reader depends on.',\n whenToUse: 'Backs `tasks/cancel`, which is a STATUS TRANSITION rather than a delete: the A2A spec requires cancel to return the task\\'s updated state, so the record must survive it.',\n },\n [Op.DELETE]: {\n purpose: 'Permanently remove one stored unit of agent work from the requested scope.',\n outcome: 'The selected task record and its stored results are no longer available.',\n whenToUse: 'Use for deliberate history cleanup after the task is no longer needed; use cancellation instead when active work must stop but its final state must remain observable.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The selected task record was removed.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks task-removal authority in the requested scope.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No task exists for the id in the requested scope.' },\n ],\n examples: [{\n title: `Remove completed ${exampleScope.scopeLabel} agent work`,\n request: { ...exampleScope.scopeIdentity, ...exampleScope.resourceIdentity },\n response: { id: completedTaskExample._id },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'A task belongs to exactly ONE owner scope — the injected owner FK is the only authority over its lifetime. The link to a conversational execution is soft and optional, and never governs deletion.',\n 'Not every turn produces a task. Turns that complete inline return a Message and write no row; a task is materialised only when the work needs an addressable lifecycle.',\n 'Cancellation is a status transition, never a deletion — a canceled task remains readable so the client can observe its final state.',\n 'A non-terminal task whose liveness lease has expired is reported as failed: the executing process died, and a task must never read as working forever.',\n ],\n }),\n // The owner is the injected scope FK, anchored by the `<SCOPE> → *FlowActorTasks`\n // primary-scope composition edge in `resources-registry.shared.core.definitions.ts`\n // (generated by `createPolymorphicScopeRelationships`). Feeds the spec ↔ registry\n // alignment guard and must match per variant.\n { resourcePrimaryScope: flowTaskPrimaryScopeByResourceType[resourceType] },\n );\n}\n\nexport const userFlowActorTasksResourceSpecification = buildFlowActorTaskResourceSpecification(\n CoreResourceType.USER_FLOW_ACTOR_TASKS,\n 'USER_FLOW_ACTOR_TASKS',\n);\n\nexport const organizationFlowActorTasksResourceSpecification = buildFlowActorTaskResourceSpecification(\n CoreResourceType.ORGANIZATION_FLOW_ACTOR_TASKS,\n 'ORGANIZATION_FLOW_ACTOR_TASKS',\n);\n\nexport const applicationFlowActorTasksResourceSpecification = buildFlowActorTaskResourceSpecification(\n CoreResourceType.APPLICATION_FLOW_ACTOR_TASKS,\n 'APPLICATION_FLOW_ACTOR_TASKS',\n);\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-call-attributions.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/flows-actors/resources/model-call-attributions.resource.specification.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAUjI,eAAO,MAAM,0CAA0C,EAAE,8BAiJxD,CAAC"}
|