@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/infrastructure/resources/job-payload-storage.resource.specification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-payload-storage.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/job-payload-storage.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,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,6DAA6D,IAAI,wBAAwB,GAC1F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,qBAAqB,CACzE,wBAAwB,EACxB,uBAAuB,EACvB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,4KAA4K;IACrL,YAAY,EAAE,qGAAqG;IACnH,aAAa,EAAE,+OAA+O;IAC9P,QAAQ,EAAE,aAAa,CAAC,SAAS;IACjC,SAAS,EAAE,uBAAuB,CAAC,cAAc;IACjD,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,yBAAyB;YACrC,UAAU,EAAE,cAAc,CAAC,MAAM;YACjC,eAAe,EAAE,mBAAmB,CAAC,UAAU;S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,IAAI,EAAE,yHAAyH,EAAE;aAChL;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,2BAA2B,CAAC,QAAQ,CAAC,EAAE;oBACtC,OAAO,EAAE,+EAA+E;oBACxF,SAAS,EAAE,4DAA4D;iBACxE;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,oHAAoH;YAC7H,OAAO,EAAE,gEAAgE;YACzE,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,4GAA4G,EAAE;aAC/J;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sFAAsF,EAAE;aAC7I;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,2BAA2B,CAAC,QAAQ,CAAC,EAAE;oBACtC,OAAO,EAAE,yEAAyE;oBAClF,SAAS,EAAE,qFAAqF;iBACjG;aACF;SACF;KACF;IACD,mBAAmB,EAAE;QACnB,8NAA8N;QAC9N,4MAA4M;KAC7M;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,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 JobPayloadStorageSchema,\n JobPayloadStorageVariantKey,\n PayloadCompressionType,\n ResourcePrimaryScope,\n jobPayloadStorage_ResourceConfiguration_InitializationFactory as jobPayloadStorageFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Internal `jobPayloadStorage` resource — **no UI preset at all**, and no route that could reach\n * one: every operation is `REPOSITORY_ONLY`. The spec is base `resourceSpecification` only.\n *\n * A preset did exist (a per-status colour map and per-field display modes, shared with\n * `jobExecutions`) and was deleted on 2026-09-08 — it rendered nowhere and made the absence of a\n * job browser look like an oversight. See the note on `RESOURCES_FRONTEND_PLATFORM` in\n * `@wildo-ai/presets-components` for where an operator looks instead.\n */\nexport const jobPayloadStorageResourceSpecification = resourceSpecification(\n jobPayloadStorageFactory,\n JobPayloadStorageSchema,\n ({ schemaShape }) => ({\n purpose: 'Persists oversized job inputs and defined scheduled results, including small counter objects, keyed by `storageId` and referenced from job transport or execution records.',\n businessRole: 'Durable, TTL-backed object row for oversized queue inputs and retained scheduled execution results.',\n lifecycleRole: 'Created on input spill-over or scheduled completion, read through the payload store, and expired by persistence cleanup: 24 hours by default, or the explicit finite selected-evidence policy; optional explicit DELETE in maintenance flows.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobPayloadStorageSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'jobPayloadStorage_ResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'JOB_PAYLOAD_STORAGE',\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 'REPOSITORY_ONLY variants with `INTERNAL` key — the companion should not invent public HTTP operation semantics beyond what the factory models.',\n 'Field-level payload and compression data are backendOnly in the Zod layer; the spec’s field prose focuses on operator-visible or metadata aspects.',\n ],\n },\n fields: {\n storageId: schemaShape.storageId.stringSpec({\n meaning: 'Stable payload pointer: UUID v4 for operational payloads, deterministic application-and-occurrence UUID v5 for selected scheduled evidence.',\n whyItMatters: 'Join key between the queue path and the stored row holding `payloadJson`.',\n importance: FieldSemanticImportance.PRIMARY,\n semanticRole: 'identifier',\n }),\n applicationId: schemaShape.applicationId.stringSpec({\n meaning: 'Owning application for quota and isolation, stored backend-only in strict deployments.',\n whyItMatters: 'Backend-only in schema — still documented so companion prompts do not assert this is user-visible in product UI.',\n semanticRole: 'identifier',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Repository-owned creation time. The internal CREATE request omits this field because input cleaning removes caller-supplied timestamps.' }),\n scheduledEvidence: schemaShape.scheduledEvidence.objectSpec({\n meaning: 'Optional immutable occurrence metadata and captured finite application policy. Only selected bounded scalar results live in payloadJson; raw job input and error text are not copied into this archive.',\n whyItMatters: 'Supports retained schedule-period assessment independently from operational job cleanup. Absolute expiry is completion plus the captured duration; archive retries cannot extend it.',\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Expiry instant used by persistence TTL or the framework retention sweep.' }),\n compressionType: schemaShape.compressionType.enumSpec({\n meaning: 'Which compression codec the stored payload bytes were encoded with, so readers can transparently decode before deserializing the job arguments.',\n whyItMatters: 'Backend-only in the Zod layer — documented so companion prompts never assert this is a user-visible field; the codec must match on write and read or the payload is unrecoverable.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PayloadCompressionType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [PayloadCompressionType.NONE]: { meaning: 'Payload stored uncompressed — bytes are the raw serialized job arguments.' },\n [PayloadCompressionType.GZIP]: { meaning: 'Payload stored gzip-compressed to reduce storage footprint for large blobs.' },\n },\n }),\n },\n operations: {\n [Op.DELETE_MANY]: {\n purpose: 'Internal bounded retention cleanup of expired rows; no public deletion route.',\n outcome: 'The scheduled retention sweep can delete its selected expired batch through the declared repository operation.',\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal queue or spill-over service stores a new payload blob and bumps reference counts.',\n outcome: 'A `storageId` is returned to embed in a job message.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The payload blob was persisted and a `storageId` pointer is returned for embedding in the queue message. Internal/service write path — the `INTERNAL` variant is `REPOSITORY_ONLY`, never a public tenant create.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload envelope fails schema validation (e.g. missing `applicationId` or an unserializable body).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service caller attempts to write a payload blob — only the worker/spill-over service role may store payloads.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Spill an oversized job payload to storage',\n request: {\n applicationId: 'app_01HX2…',\n payloadJson: { resourceType: 'TASKS', operation: 'create', args: { title: 'Draft release notes' } },\n },\n response: {\n storageId: 'jps_01HX2…',\n applicationId: 'app_01HX2…',\n expiresAt: '2026-06-22T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'The only API surface today — no public tenant CRUD, only service roles.',\n whenToUse: 'Worker persistence for oversized input or any defined scheduled result; createdAt is assigned by the repository.',\n },\n },\n },\n [Op.READ]: {\n purpose: 'Fetch payload JSON and metadata for execution or replay.',\n outcome: 'Deserialized or streamed bytes feed the job runner.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The payload blob for the supplied `storageId` was found and its JSON / metadata is returned for the job runner.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload exists for the supplied `storageId` (never written, dereferenced, or TTL-expired via the Mongo `expiresAt` index).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service caller attempts to read a stored payload — reads are service-only and never surfaced in host-app shells.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Service-only read — never exposed in host-app shells in current presets.',\n whenToUse: 'Queue workers hydrating arguments before `PROCESSING` phases.',\n },\n },\n },\n [Op.DELETE]: {\n purpose: 'Explicit cleanup when a job is cancelled and TTL is too far out, or for compliance redaction.',\n outcome: 'Row removed; `referenceCount` semantics follow registry hooks.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The payload record was removed (or was already absent); no body is returned. Internal/service path used in incident response and redaction.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload row exists for the supplied `storageId` to purge.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service/operator caller attempts an explicit payload delete — reached only from platform tooling, not member UIs.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Service-only delete — operators reach it from platform tools, not member UIs.',\n whenToUse: 'Manual purge in incident response and migration exercises.',\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Operational search for payloads by time, size, or `storageId` prefix when the factory enables searchable metadata.',\n outcome: 'Narrowed admin/internal rows for SRE and abuse investigations.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of payload-metadata records matching the time / size / `storageId`-prefix filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the SRE/operator role required to query the internal payload store.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Search variant aligned with the factory’s `INTERNAL` REPOSITORY config.',\n whenToUse: 'Observability consoles before a dedicated job/payload browser ships in the product.',\n },\n },\n },\n },\n businessConstraints: [\n 'The registry ties `JOB_PAYLOAD_STORAGE` to `APPLICATION` in the relationship map — the declared `resourcePrimaryScope` is `APPLICATION` to match that anchor, distinct from the STANDALONE posture used for `jobExecutions`.',\n 'Until platform presets declare non-empty `views`, do not run `resourceSpecificationFromFrontendConfiguration` for this type — the contract is base-only, mirroring `jobExecutions` until a UI is grounded.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"job-payload-storage.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/job-payload-storage.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,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,6DAA6D,IAAI,wBAAwB,GAC1F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,qBAAqB,CACzE,wBAAwB,EACxB,uBAAuB,EACvB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,4KAA4K;IACrL,YAAY,EAAE,qGAAqG;IACnH,aAAa,EAAE,+OAA+O;IAC9P,QAAQ,EAAE,aAAa,CAAC,SAAS;IACjC,SAAS,EAAE,uBAAuB,CAAC,cAAc;IACjD,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,yBAAyB;YACrC,UAAU,EAAE,cAAc,CAAC,MAAM;YACj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AAa,EAAE,IAAI,EAAE,yHAAyH,EAAE;aAChL;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,2BAA2B,CAAC,QAAQ,CAAC,EAAE;oBACtC,OAAO,EAAE,+EAA+E;oBACxF,SAAS,EAAE,4DAA4D;iBACxE;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,oHAAoH;YAC7H,OAAO,EAAE,gEAAgE;YACzE,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,4GAA4G,EAAE;aAC/J;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sFAAsF,EAAE;aAC7I;YACD,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,2BAA2B,CAAC,QAAQ,CAAC,EAAE;oBACtC,OAAO,EAAE,yEAAyE;oBAClF,SAAS,EAAE,qFAAqF;iBACjG;aACF;SACF;KACF;IACD,mBAAmB,EAAE;QACnB,8NAA8N;QAC9N,4MAA4M;KAC7M;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,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 JobPayloadStorageSchema,\n JobPayloadStorageVariantKey,\n PayloadCompressionType,\n ResourcePrimaryScope,\n jobPayloadStorage_ResourceConfiguration_InitializationFactory as jobPayloadStorageFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Internal `jobPayloadStorage` resource — **no UI preset at all**, and no route that could reach\n * one: every operation is `REPOSITORY_ONLY`. The spec is base `resourceSpecification` only.\n *\n * A preset did exist (a per-status colour map and per-field display modes, shared with\n * `jobExecutions`) and was deleted on 2026-09-08 — it rendered nowhere and made the absence of a\n * job browser look like an oversight. See the note on `RESOURCES_FRONTEND_PLATFORM` in\n * `@wildo-ai/presets-components` for where an operator looks instead.\n */\nexport const jobPayloadStorageResourceSpecification = resourceSpecification(\n jobPayloadStorageFactory,\n JobPayloadStorageSchema,\n ({ schemaShape }) => ({\n purpose: 'Persists oversized job inputs and defined scheduled results, including small counter objects, keyed by `storageId` and referenced from job transport or execution records.',\n businessRole: 'Durable, TTL-backed object row for oversized queue inputs and retained scheduled execution results.',\n lifecycleRole: 'Created on input spill-over or scheduled completion, read through the payload store, and expired by persistence cleanup: 24 hours by default, or the explicit finite selected-evidence policy; optional explicit DELETE in maintenance flows.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'JobPayloadStorageSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'jobPayloadStorage_ResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'JOB_PAYLOAD_STORAGE',\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 'REPOSITORY_ONLY variants with `INTERNAL` key — the companion should not invent public HTTP operation semantics beyond what the factory models.',\n 'Field-level payload and compression data are backendOnly in the Zod layer; the spec’s field prose focuses on operator-visible or metadata aspects.',\n ],\n },\n fields: {\n storageId: schemaShape.storageId.stringSpec({\n meaning: 'Stable payload pointer: UUID v4 for operational payloads, deterministic application-and-occurrence UUID v5 for selected scheduled evidence.',\n whyItMatters: 'Join key between the queue path and the stored row holding `payloadJson`.',\n importance: FieldSemanticImportance.PRIMARY,\n semanticRole: 'identifier',\n }),\n applicationId: schemaShape.applicationId.stringSpec({\n meaning: 'Owning application for quota and isolation, stored backend-only in strict deployments.',\n whyItMatters: 'Backend-only in schema — still documented so companion prompts do not assert this is user-visible in product UI.',\n semanticRole: 'identifier',\n }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Repository-owned creation time. The internal CREATE request omits this field because input cleaning removes caller-supplied timestamps.' }),\n scheduledEvidence: schemaShape.scheduledEvidence.objectSpec({\n meaning: 'Optional immutable occurrence metadata and captured finite application policy. Only selected bounded scalar results live in payloadJson; raw job input and error text are not copied into this archive.',\n whyItMatters: 'Supports retained schedule-period assessment independently from operational job cleanup. Absolute expiry is completion plus the captured duration; archive retries cannot extend it.',\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Expiry instant used by persistence TTL or the framework retention sweep.' }),\n compressionType: schemaShape.compressionType.enumSpec({\n meaning: 'Which compression codec the stored payload bytes were encoded with, so readers can transparently decode before deserializing the job arguments.',\n whyItMatters: 'Backend-only in the Zod layer — documented so companion prompts never assert this is a user-visible field; the codec must match on write and read or the payload is unrecoverable.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PayloadCompressionType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [PayloadCompressionType.NONE]: { meaning: 'Payload stored uncompressed — bytes are the raw serialized job arguments.' },\n [PayloadCompressionType.GZIP]: { meaning: 'Payload stored gzip-compressed to reduce storage footprint for large blobs.' },\n },\n }),\n },\n operations: {\n [Op.DELETE_MANY]: {\n purpose: 'Internal bounded retention cleanup of expired rows; no public deletion route.',\n outcome: 'The scheduled retention sweep can delete its selected expired batch through the declared repository operation.',\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal queue or spill-over service stores a new payload blob and bumps reference counts.',\n outcome: 'A `storageId` is returned to embed in a job message.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The payload blob was persisted and a `storageId` pointer is returned for embedding in the queue message. Internal/service write path — the `INTERNAL` variant is `REPOSITORY_ONLY`, never a public tenant create.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload envelope fails schema validation (e.g. missing `applicationId` or an unserializable body).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service caller attempts to write a payload blob — only the worker/spill-over service role may store payloads.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Spill an oversized job payload to storage',\n request: {\n applicationId: 'app_01HX2…',\n payloadJson: { resourceType: 'TASKS', operation: 'create', args: { title: 'Draft release notes' } },\n },\n response: {\n storageId: 'jps_01HX2…',\n applicationId: 'app_01HX2…',\n expiresAt: '2026-06-22T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'The only API surface today — no public tenant CRUD, only service roles.',\n whenToUse: 'Worker persistence for oversized input or any defined scheduled result; createdAt is assigned by the repository.',\n },\n },\n },\n [Op.READ]: {\n purpose: 'Fetch payload JSON and metadata for execution or replay.',\n outcome: 'Deserialized or streamed bytes feed the job runner.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The payload blob for the supplied `storageId` was found and its JSON / metadata is returned for the job runner.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload exists for the supplied `storageId` (never written, dereferenced, or TTL-expired via the Mongo `expiresAt` index).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service caller attempts to read a stored payload — reads are service-only and never surfaced in host-app shells.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Service-only read — never exposed in host-app shells in current presets.',\n whenToUse: 'Queue workers hydrating arguments before `PROCESSING` phases.',\n },\n },\n },\n [Op.DELETE]: {\n purpose: 'Explicit cleanup when a job is cancelled and TTL is too far out, or for compliance redaction.',\n outcome: 'Row removed; `referenceCount` semantics follow registry hooks.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The payload record was removed (or was already absent); no body is returned. Internal/service path used in incident response and redaction.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No payload row exists for the supplied `storageId` to purge.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-service/operator caller attempts an explicit payload delete — reached only from platform tooling, not member UIs.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Service-only delete — operators reach it from platform tools, not member UIs.',\n whenToUse: 'Manual purge in incident response and migration exercises.',\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Operational search for payloads by time, size, or `storageId` prefix when the factory enables searchable metadata.',\n outcome: 'Narrowed admin/internal rows for SRE and abuse investigations.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of payload-metadata records matching the time / size / `storageId`-prefix filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the SRE/operator role required to query the internal payload store.' },\n ],\n idempotent: true,\n variants: {\n [JobPayloadStorageVariantKey.INTERNAL]: {\n purpose: 'Search variant aligned with the factory’s `INTERNAL` REPOSITORY config.',\n whenToUse: 'Observability consoles before a dedicated job/payload browser ships in the product.',\n },\n },\n },\n },\n businessConstraints: [\n 'The registry ties `JOB_PAYLOAD_STORAGE` to `APPLICATION` in the relationship map — the declared `resourcePrimaryScope` is `APPLICATION` to match that anchor, distinct from the STANDALONE posture used for `jobExecutions`.',\n 'Until platform presets declare non-empty `views`, do not run `resourceSpecificationFromFrontendConfiguration` for this type — the contract is base-only, mirroring `jobExecutions` until a UI is grounded.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
@@ -218,9 +218,9 @@ export const systemOfRecordPartitionAssignmentsResourceSpecification = resourceS
|
|
|
218
218
|
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The partition is now mapped to the unit.' },
|
|
219
219
|
],
|
|
220
220
|
errorScenarios: [
|
|
221
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because an assignment has no expiry and the reason is all a later operator has to go on.'
|
|
222
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit does not exist, or belongs to an organization other than the owner. The refusal does not say which — an assignment payload must not become a way to probe another tenant\'s org chart.'
|
|
223
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit exists and is not ACTIVE. A separate refusal from the one above, because the remedy differs: activate the unit rather than pick another.'
|
|
221
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because an assignment has no expiry and the reason is all a later operator has to go on.' },
|
|
222
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit does not exist, or belongs to an organization other than the owner. The refusal does not say which — an assignment payload must not become a way to probe another tenant\'s org chart.' },
|
|
223
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit exists and is not ACTIVE. A separate refusal from the one above, because the remedy differs: activate the unit rather than pick another.' },
|
|
224
224
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'This instance and remote key are already assigned. One remote partition maps to at most one unit, and the pair is a persisted business key.' },
|
|
225
225
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. A tenant administrator can never assign a partition — one who could would assign their own unit to a company they were never meant to see.' },
|
|
226
226
|
],
|
|
@@ -266,7 +266,7 @@ export const systemOfRecordPartitionAssignmentsResourceSpecification = resourceS
|
|
|
266
266
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The partition now belongs to the named unit, and the updated assignment is returned.' },
|
|
267
267
|
],
|
|
268
268
|
errorScenarios: [
|
|
269
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The target unit does not exist, belongs to another organization, or is not ACTIVE.'
|
|
269
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The target unit does not exist, belongs to another organization, or is not ACTIVE.' },
|
|
270
270
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },
|
|
271
271
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: '`expectedCurrentOrganizationUnitId` does not match the unit the partition currently belongs to — another administrator moved it first. A conflict rather than a not-found: the caller IS authorized and the payload IS valid; what refused is the current state.' },
|
|
272
272
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-of-record-partition-assignments.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,uCAAuC,EACvC,6CAA6C,EAC7C,6EAA6E,GAC9E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,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B,CAAC,YAAY,EAAE,IAAI,EAAE,kQAAkQ,EAAE;aACxT;YACD,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,CAAC;oBACT,KAAK,EAAE,mEAAmE;oBAC1E,OAAO,EAAE;wBACP,mCAAmC,EAAE,0BAA0B;wBAC/D,kBAAkB,EAAE,oBAAoB;wBACxC,iCAAiC,EAAE,oBAAoB;wBACvD,aAAa,EAAE,sFAAsF;qBACtG;oBACD,QAAQ,EAAE,EAAE,GAAG,8BAA8B,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,SAAS,EAAE,0BAA0B,EAAE;oBAChI,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;CACF,CAAC;AACF,mGAAmG;AACnG,gGAAgG;AAChG,gGAAgG;AAChG,qEAAqE;AACrE,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `systemOfRecordPartitionAssignments` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/systems-of-record/system-of-record-partition-assignments.shared.schemas.ts\n * → `SystemOfRecordPartitionAssignmentSchema`\n * - Factory: engine/saas-models/src/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.ts\n * → `systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory`\n * - Custom operations: `SystemOfRecordPartitionAssignments_Operations`\n *\n * ## What this resource is for\n *\n * A system of record — the operator's own Odoo, SAP, NetSuite or Dynamics deployment — holds several\n * PARTITIONS inside one corporate. Every row Wildo reads out of one is stamped with the application's\n * OWNER organization, so without this resource every member of that organization sees every partition:\n * the Spanish subsidiary's accountant reads the German company's invoices.\n *\n * The mechanism that confines members WITHIN one organization already exists — organization unit\n * narrowing. What it lacked was the edge from a remote partition key to a Wildo unit, and each row\n * here IS one such edge.\n *\n * ## Why APPLICATION scope, when every row names a unit of the owner organization\n *\n * Because assigning a partition is an OPERATOR act on the deployment's own configuration, not an act\n * inside a customer's tenant. An operator door on an ORGANIZATIONS-scoped resource would require a\n * cross-tenant declaration on every verb and a platform access grant per crossing — the ceremony for\n * reaching into a CUSTOMER's data, which this is not. The scope is expressed once, in the registry\n * relationship APPLICATION → SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS carrying `isPrimaryScope: true`;\n * the runtime config deliberately does not restate it.\n *\n * Why backend-only: there is NO entry for `[CoreResourceType.SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS]`\n * in any preset under engine/presets-components/src/config/resources/. The operator-facing partition\n * map is not built yet; today the resource is consumed by the read confinement and by the platform API.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n SystemOfRecordPartitionAssignmentSchema,\n SystemOfRecordPartitionAssignments_Operations,\n systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst PARTITION_ASSIGNMENT_DE_ID = 'system_of_record_partition_assignment_01J6R3A4B5C6D7E8F9G0H1J2KL';\nconst PARTITION_ASSIGNMENT_ES_ID = 'system_of_record_partition_assignment_01J6R3C5D6E7F8G9H0J1K2L3MN';\nconst PARTITION_UNIT_DE_ID = 'organization_unit_01J6R3E6F7G8H9J0K1L2M3N4PQ';\nconst PARTITION_UNIT_ES_ID = 'organization_unit_01J6R3G7H8J9K0L1M2N3P4Q5RS';\nconst PARTITION_OPERATOR_USER_ID = 'user_01J6R3J8K9L0M1N2P3Q4R5S6TU';\nconst PARTITION_EXAMPLE_APPLICATION_ID = 'app_01J6R3L9M0N1P2Q3R4S5T6U7VW';\n\nconst germanCompanyAssignmentExample = {\n _id: PARTITION_ASSIGNMENT_DE_ID,\n applicationId: PARTITION_EXAMPLE_APPLICATION_ID,\n system: 'odoo',\n remoteKey: '10',\n organizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Odoo company 10 is Acme Deutschland GmbH; its ledger belongs to the Deutschland unit.',\n assignedByUserId: PARTITION_OPERATOR_USER_ID,\n createdAt: '2026-09-18T09:00:00.000Z',\n updatedAt: '2026-09-18T09:00:00.000Z',\n};\n\nconst spanishCompanyAssignmentExample = {\n ...germanCompanyAssignmentExample,\n _id: PARTITION_ASSIGNMENT_ES_ID,\n remoteKey: '14',\n organizationUnitId: PARTITION_UNIT_ES_ID,\n justification: 'Odoo company 14 is Acme Iberia S.L.; its ledger belongs to the Iberia unit.',\n};\n\nexport const systemOfRecordPartitionAssignmentsResourceSpecification = resourceSpecification(\n systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory,\n SystemOfRecordPartitionAssignmentSchema,\n ({ schemaShape }) => ({\n purpose: 'Record which organization unit each remote partition of a system of record belongs to, so that members of a unit read that unit\\'s company and no other.',\n businessRole: 'The deployment\\'s partition map. It answers which remote company corresponds to which part of the org chart, who decided that, and why.',\n lifecycleRole: 'A platform administrator assigns a remote partition to a unit, stating a reason. A partition may later be MOVED to a different unit through `reassign`, which names the unit it is expected to be leaving and refuses if another administrator has already moved it. Removing the assignment makes the partition unreachable to every caller — it is not a narrowing, it withdraws a company from the product.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemOfRecordPartitionAssignmentSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemOfRecordPartitionAssignments_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'There is no public UPDATE. All three of `system`, `remoteKey` and `organizationUnitId` are `.excludeFromUpdate()`, which leaves an ordinary update with nothing to write — deliberately. An excluded-field write SUCCEEDS and persists nothing, so a plain UPDATE naming the unit would answer the caller as though it had worked; `reassign` exists so there is one writer, one contract, and one audit event.',\n 'The foreign key to `organizationUnits` buys EXISTENCE only. No relationship factory validates scope compatibility, and an application-scoped row written by a super-administrator resolves an empty write tenant, so that the unit belongs to the OWNER organization and is ACTIVE is measured in the custom implementation through the system door.',\n 'The lifecycle event is ONE type with a transition field — `SYSTEM_OF_RECORD_PARTITION_ASSIGNMENT_LIFECYCLE`, carrying `assigned` / `reassigned` / `unassigned`. Three event types would scatter one partition\\'s timeline across three buckets, and the question an auditor asks (\"who has been able to see the German company, and since when?\") is answered by reading one bucket in order.',\n 'All three write verbs are HIGH risk, which is inside the automatic audit floor, so a generic `RESOURCE_OPERATION_PERFORMED` row fires for each as well. What that row cannot carry — and the reason the dedicated event exists — is which unit, and on a move which unit it was before.',\n 'The assignment map is read on EVERY confined read and is deliberately NOT cached. Measured 2026-09-18: the indexed lookup is 0.078-0.177 ms at twenty times the realistic row count, against a 1.02 ms floor for the remote call it precedes. A cache would save a tenth of a millisecond and would hold a SECURITY CONFINEMENT, so a stale entry would mean a member still reading a company they were unassigned from.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one partition-to-unit assignment.',\n whyItMatters: 'The address of a reassignment, and the value every lifecycle event carries so one partition\\'s whole history can be reassembled from the audit trail.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The deployment this assignment configures.',\n whyItMatters: 'The scope anchor. Optional in the schema and MANDATORY in meaning — declared mandatory the resource does not load at all on a Mongo-persisted deployment, so addressing is carried by the relationship\\'s `isPrimaryScope` + `REQUIRES_CONTEXT` instead, which is what the URL builder actually reads.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n system: schemaShape.system.stringSpec({\n meaning: 'Which declared system-of-record INSTANCE this partition lives in — a `systemsOfRecord.<name>` key.',\n whyItMatters: 'Instance, never vendor, and the distinction is load-bearing: two Odoo deployments (`odoo-fr`, `odoo-de`) share one vendor facet and have entirely unrelated company ids. A key scoped to the vendor would let one deployment\\'s company 10 resolve through the other\\'s map.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n remoteKey: schemaShape.remoteKey.stringSpec({\n meaning: 'The partition\\'s key exactly as the remote system spells it, in canonical text.',\n whyItMatters: 'Stored as text across every vendor — Odoo\\'s `company_id` is an integer, Dataverse\\'s business unit is a GUID — and decoded through the facet\\'s partition codec before it reaches a query compiler. One stored shape plus a codec beats a column per vendor; comparing the stored `\\'10\\'` against Odoo\\'s integer `10` without decoding is exactly the defect the codec prevents.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationUnitId: schemaShape.organizationUnitId.foreignKeySpec({\n meaning: 'The unit of the owner organization this partition belongs to.',\n whyItMatters: 'The confinement itself. A member reaches this partition only through a role held at this unit or an ancestor of it; the read path maps a caller\\'s effective unit set back through these rows into remote keys, which is the only shape a remote predicate can actually be written in.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why this remote partition belongs to this unit, in the operator\\'s own words.',\n whyItMatters: 'Required, and it carries real weight rather than ceremony: an assignment is an access decision with NO expiry — unlike a time-bound grant, it stands until someone changes it — and the next operator looking at \"company 10 goes to Deutschland\" has no other way to learn whether that reflects the corporate structure or somebody\\'s guess during an incident.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n assignedByUserId: schemaShape.assignedByUserId.foreignKeySpec({\n meaning: 'The operator who last assigned or moved this partition.',\n whyItMatters: 'Server-authored from the session, never client-supplied. An assignment attributed to somebody else is a false line in the privileged-access record, and the field is what joins a partition\\'s reach to the person who decided it.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When this partition was first assigned to a unit.',\n whyItMatters: 'Survives a reassignment, because the row keeps its identity through a move — so it answers \"since when has this company been mapped at all\", while the lifecycle events answer \"and to whom, when\".',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the assignment last changed.',\n whyItMatters: 'Moves on a reassignment and nowhere else, since no other write can alter the row.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one partition assignment.',\n outcome: 'The unit a remote partition is mapped to, with the reason given for it.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment with the supplied id exists.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read the German company\\'s assignment',\n request: { systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID },\n response: germanCompanyAssignmentExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List partition assignments — the map an operator works from.',\n outcome: 'A page of assignments, filterable by instance, remote key or unit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A page of assignments is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'The whole map for one Odoo instance',\n request: { system: 'odoo', page: 1, limit: 20 },\n response: { data: [germanCompanyAssignmentExample, spanishCompanyAssignmentExample], total: 2, page: 1, limit: 20 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.COUNT]: {\n purpose: 'Count partition assignments matching a filter.',\n outcome: 'A number — how many remote partitions of an instance are mapped, or how many point at one unit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'How many companies are mapped to the Deutschland unit',\n request: { organizationUnitId: PARTITION_UNIT_DE_ID },\n response: { count: 1 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Assign a remote partition to an organization unit.',\n outcome: 'The partition becomes readable by members of that unit — and, through downward inheritance, by members holding a role at an ancestor of it. Until a partition is assigned it is readable by nobody.',\n whenToUse: 'A new company, subsidiary or business unit appears in the system of record and its rows must reach the part of the org chart that owns them.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The partition is now mapped to the unit.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because an assignment has no expiry and the reason is all a later operator has to go on.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit does not exist, or belongs to an organization other than the owner. The refusal does not say which — an assignment payload must not become a way to probe another tenant\\'s org chart.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit exists and is not ACTIVE. A separate refusal from the one above, because the remedy differs: activate the unit rather than pick another.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This instance and remote key are already assigned. One remote partition maps to at most one unit, and the pair is a persisted business key.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. A tenant administrator can never assign a partition — one who could would assign their own unit to a company they were never meant to see.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Map Odoo company 10 to the Deutschland unit',\n request: {\n system: 'odoo',\n remoteKey: '10',\n organizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Odoo company 10 is Acme Deutschland GmbH; its ledger belongs to the Deutschland unit.',\n },\n response: germanCompanyAssignmentExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [Op.DELETE]: {\n purpose: 'Unassign a remote partition.',\n outcome: 'The partition becomes unreachable to EVERY caller. The read path pushes down the set of assigned keys, so a key with no assignment is in nobody\\'s predicate.',\n whenToUse: 'A company leaves the group, or an assignment was made to the wrong instance and must be withdrawn rather than moved.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The assignment was removed.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment with the supplied id exists.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Withdraw the German company',\n request: { systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID },\n response: {},\n forStatus: HttpResponseStatusCode.NO_CONTENT_204,\n }],\n },\n [SystemOfRecordPartitionAssignments_Operations.REASSIGN]: {\n operationId: SystemOfRecordPartitionAssignments_Operations.REASSIGN,\n purpose: 'Move an assigned partition to a different unit, under a compare-and-swap on the unit it is leaving.',\n outcome: 'The partition\\'s rows become readable by the new unit and stop being readable by the old one. The row keeps its identity, so its `createdAt` provenance and its audit timeline survive the move.',\n whenToUse: 'The corporate structure changes — a subsidiary moves between divisions, or an assignment was made to the wrong unit.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The partition now belongs to the named unit, and the updated assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The target unit does not exist, belongs to another organization, or is not ACTIVE.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: '`expectedCurrentOrganizationUnitId` does not match the unit the partition currently belongs to — another administrator moved it first. A conflict rather than a not-found: the caller IS authorized and the payload IS valid; what refused is the current state.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Move the German company to the Iberia unit after a reorganization',\n request: {\n systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID,\n organizationUnitId: PARTITION_UNIT_ES_ID,\n expectedCurrentOrganizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Acme Deutschland now reports into the Iberia division after the 2026 reorganization.',\n },\n response: { ...germanCompanyAssignmentExample, organizationUnitId: PARTITION_UNIT_ES_ID, updatedAt: '2026-09-18T11:00:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n }),\n // The scope is an OPTION, not a config field — `resourceSpecification` cross-checks it against the\n // scope the registry derives from the `isPrimaryScope: true` relationship, and throws at MODULE\n // LOAD when neither signal is supplied. Authoring it inside the returned config instead reaches\n // that throw with `options` undefined, which is how this was caught.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"system-of-record-partition-assignments.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAAE,aAAa,EAAE,M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FAAsF,EAAE;aACzI;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,eAAe,EAAE,IAAI,EAAE,oFAAoF,EAAE;gBAC5I,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,mDAAmD,EAAE;gBACzG,EAAE,IAAI,EAAE,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,kQAAkQ,EAAE;aACxT;YACD,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,CAAC;oBACT,KAAK,EAAE,mEAAmE;oBAC1E,OAAO,EAAE;wBACP,mCAAmC,EAAE,0BAA0B;wBAC/D,kBAAkB,EAAE,oBAAoB;wBACxC,iCAAiC,EAAE,oBAAoB;wBACvD,aAAa,EAAE,sFAAsF;qBACtG;oBACD,QAAQ,EAAE,EAAE,GAAG,8BAA8B,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,SAAS,EAAE,0BAA0B,EAAE;oBAChI,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;CACF,CAAC;AACF,mGAAmG;AACnG,gGAAgG;AAChG,gGAAgG;AAChG,qEAAqE;AACrE,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `systemOfRecordPartitionAssignments` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/systems-of-record/system-of-record-partition-assignments.shared.schemas.ts\n * → `SystemOfRecordPartitionAssignmentSchema`\n * - Factory: engine/saas-models/src/systems-of-record/system-of-record-partition-assignments.shared.resources-config.schemas.ts\n * → `systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory`\n * - Custom operations: `SystemOfRecordPartitionAssignments_Operations`\n *\n * ## What this resource is for\n *\n * A system of record — the operator's own Odoo, SAP, NetSuite or Dynamics deployment — holds several\n * PARTITIONS inside one corporate. Every row Wildo reads out of one is stamped with the application's\n * OWNER organization, so without this resource every member of that organization sees every partition:\n * the Spanish subsidiary's accountant reads the German company's invoices.\n *\n * The mechanism that confines members WITHIN one organization already exists — organization unit\n * narrowing. What it lacked was the edge from a remote partition key to a Wildo unit, and each row\n * here IS one such edge.\n *\n * ## Why APPLICATION scope, when every row names a unit of the owner organization\n *\n * Because assigning a partition is an OPERATOR act on the deployment's own configuration, not an act\n * inside a customer's tenant. An operator door on an ORGANIZATIONS-scoped resource would require a\n * cross-tenant declaration on every verb and a platform access grant per crossing — the ceremony for\n * reaching into a CUSTOMER's data, which this is not. The scope is expressed once, in the registry\n * relationship APPLICATION → SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS carrying `isPrimaryScope: true`;\n * the runtime config deliberately does not restate it.\n *\n * Why backend-only: there is NO entry for `[CoreResourceType.SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS]`\n * in any preset under engine/presets-components/src/config/resources/. The operator-facing partition\n * map is not built yet; today the resource is consumed by the read confinement and by the platform API.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n SystemOfRecordPartitionAssignmentSchema,\n SystemOfRecordPartitionAssignments_Operations,\n systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst PARTITION_ASSIGNMENT_DE_ID = 'system_of_record_partition_assignment_01J6R3A4B5C6D7E8F9G0H1J2KL';\nconst PARTITION_ASSIGNMENT_ES_ID = 'system_of_record_partition_assignment_01J6R3C5D6E7F8G9H0J1K2L3MN';\nconst PARTITION_UNIT_DE_ID = 'organization_unit_01J6R3E6F7G8H9J0K1L2M3N4PQ';\nconst PARTITION_UNIT_ES_ID = 'organization_unit_01J6R3G7H8J9K0L1M2N3P4Q5RS';\nconst PARTITION_OPERATOR_USER_ID = 'user_01J6R3J8K9L0M1N2P3Q4R5S6TU';\nconst PARTITION_EXAMPLE_APPLICATION_ID = 'app_01J6R3L9M0N1P2Q3R4S5T6U7VW';\n\nconst germanCompanyAssignmentExample = {\n _id: PARTITION_ASSIGNMENT_DE_ID,\n applicationId: PARTITION_EXAMPLE_APPLICATION_ID,\n system: 'odoo',\n remoteKey: '10',\n organizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Odoo company 10 is Acme Deutschland GmbH; its ledger belongs to the Deutschland unit.',\n assignedByUserId: PARTITION_OPERATOR_USER_ID,\n createdAt: '2026-09-18T09:00:00.000Z',\n updatedAt: '2026-09-18T09:00:00.000Z',\n};\n\nconst spanishCompanyAssignmentExample = {\n ...germanCompanyAssignmentExample,\n _id: PARTITION_ASSIGNMENT_ES_ID,\n remoteKey: '14',\n organizationUnitId: PARTITION_UNIT_ES_ID,\n justification: 'Odoo company 14 is Acme Iberia S.L.; its ledger belongs to the Iberia unit.',\n};\n\nexport const systemOfRecordPartitionAssignmentsResourceSpecification = resourceSpecification(\n systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory,\n SystemOfRecordPartitionAssignmentSchema,\n ({ schemaShape }) => ({\n purpose: 'Record which organization unit each remote partition of a system of record belongs to, so that members of a unit read that unit\\'s company and no other.',\n businessRole: 'The deployment\\'s partition map. It answers which remote company corresponds to which part of the org chart, who decided that, and why.',\n lifecycleRole: 'A platform administrator assigns a remote partition to a unit, stating a reason. A partition may later be MOVED to a different unit through `reassign`, which names the unit it is expected to be leaving and refuses if another administrator has already moved it. Removing the assignment makes the partition unreachable to every caller — it is not a narrowing, it withdraws a company from the product.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemOfRecordPartitionAssignmentSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'systemOfRecordPartitionAssignmentsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'SYSTEM_OF_RECORD_PARTITION_ASSIGNMENTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemOfRecordPartitionAssignments_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'There is no public UPDATE. All three of `system`, `remoteKey` and `organizationUnitId` are `.excludeFromUpdate()`, which leaves an ordinary update with nothing to write — deliberately. An excluded-field write SUCCEEDS and persists nothing, so a plain UPDATE naming the unit would answer the caller as though it had worked; `reassign` exists so there is one writer, one contract, and one audit event.',\n 'The foreign key to `organizationUnits` buys EXISTENCE only. No relationship factory validates scope compatibility, and an application-scoped row written by a super-administrator resolves an empty write tenant, so that the unit belongs to the OWNER organization and is ACTIVE is measured in the custom implementation through the system door.',\n 'The lifecycle event is ONE type with a transition field — `SYSTEM_OF_RECORD_PARTITION_ASSIGNMENT_LIFECYCLE`, carrying `assigned` / `reassigned` / `unassigned`. Three event types would scatter one partition\\'s timeline across three buckets, and the question an auditor asks (\"who has been able to see the German company, and since when?\") is answered by reading one bucket in order.',\n 'All three write verbs are HIGH risk, which is inside the automatic audit floor, so a generic `RESOURCE_OPERATION_PERFORMED` row fires for each as well. What that row cannot carry — and the reason the dedicated event exists — is which unit, and on a move which unit it was before.',\n 'The assignment map is read on EVERY confined read and is deliberately NOT cached. Measured 2026-09-18: the indexed lookup is 0.078-0.177 ms at twenty times the realistic row count, against a 1.02 ms floor for the remote call it precedes. A cache would save a tenth of a millisecond and would hold a SECURITY CONFINEMENT, so a stale entry would mean a member still reading a company they were unassigned from.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one partition-to-unit assignment.',\n whyItMatters: 'The address of a reassignment, and the value every lifecycle event carries so one partition\\'s whole history can be reassembled from the audit trail.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The deployment this assignment configures.',\n whyItMatters: 'The scope anchor. Optional in the schema and MANDATORY in meaning — declared mandatory the resource does not load at all on a Mongo-persisted deployment, so addressing is carried by the relationship\\'s `isPrimaryScope` + `REQUIRES_CONTEXT` instead, which is what the URL builder actually reads.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n system: schemaShape.system.stringSpec({\n meaning: 'Which declared system-of-record INSTANCE this partition lives in — a `systemsOfRecord.<name>` key.',\n whyItMatters: 'Instance, never vendor, and the distinction is load-bearing: two Odoo deployments (`odoo-fr`, `odoo-de`) share one vendor facet and have entirely unrelated company ids. A key scoped to the vendor would let one deployment\\'s company 10 resolve through the other\\'s map.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n remoteKey: schemaShape.remoteKey.stringSpec({\n meaning: 'The partition\\'s key exactly as the remote system spells it, in canonical text.',\n whyItMatters: 'Stored as text across every vendor — Odoo\\'s `company_id` is an integer, Dataverse\\'s business unit is a GUID — and decoded through the facet\\'s partition codec before it reaches a query compiler. One stored shape plus a codec beats a column per vendor; comparing the stored `\\'10\\'` against Odoo\\'s integer `10` without decoding is exactly the defect the codec prevents.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationUnitId: schemaShape.organizationUnitId.foreignKeySpec({\n meaning: 'The unit of the owner organization this partition belongs to.',\n whyItMatters: 'The confinement itself. A member reaches this partition only through a role held at this unit or an ancestor of it; the read path maps a caller\\'s effective unit set back through these rows into remote keys, which is the only shape a remote predicate can actually be written in.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why this remote partition belongs to this unit, in the operator\\'s own words.',\n whyItMatters: 'Required, and it carries real weight rather than ceremony: an assignment is an access decision with NO expiry — unlike a time-bound grant, it stands until someone changes it — and the next operator looking at \"company 10 goes to Deutschland\" has no other way to learn whether that reflects the corporate structure or somebody\\'s guess during an incident.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n assignedByUserId: schemaShape.assignedByUserId.foreignKeySpec({\n meaning: 'The operator who last assigned or moved this partition.',\n whyItMatters: 'Server-authored from the session, never client-supplied. An assignment attributed to somebody else is a false line in the privileged-access record, and the field is what joins a partition\\'s reach to the person who decided it.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When this partition was first assigned to a unit.',\n whyItMatters: 'Survives a reassignment, because the row keeps its identity through a move — so it answers \"since when has this company been mapped at all\", while the lifecycle events answer \"and to whom, when\".',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the assignment last changed.',\n whyItMatters: 'Moves on a reassignment and nowhere else, since no other write can alter the row.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one partition assignment.',\n outcome: 'The unit a remote partition is mapped to, with the reason given for it.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment with the supplied id exists.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read the German company\\'s assignment',\n request: { systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID },\n response: germanCompanyAssignmentExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List partition assignments — the map an operator works from.',\n outcome: 'A page of assignments, filterable by instance, remote key or unit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A page of assignments is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'The whole map for one Odoo instance',\n request: { system: 'odoo', page: 1, limit: 20 },\n response: { data: [germanCompanyAssignmentExample, spanishCompanyAssignmentExample], total: 2, page: 1, limit: 20 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.COUNT]: {\n purpose: 'Count partition assignments matching a filter.',\n outcome: 'A number — how many remote partitions of an instance are mapped, or how many point at one unit.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'How many companies are mapped to the Deutschland unit',\n request: { organizationUnitId: PARTITION_UNIT_DE_ID },\n response: { count: 1 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Assign a remote partition to an organization unit.',\n outcome: 'The partition becomes readable by members of that unit — and, through downward inheritance, by members holding a role at an ancestor of it. Until a partition is assigned it is readable by nobody.',\n whenToUse: 'A new company, subsidiary or business unit appears in the system of record and its rows must reach the part of the org chart that owns them.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The partition is now mapped to the unit.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because an assignment has no expiry and the reason is all a later operator has to go on.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit does not exist, or belongs to an organization other than the owner. The refusal does not say which — an assignment payload must not become a way to probe another tenant\\'s org chart.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The named unit exists and is not ACTIVE. A separate refusal from the one above, because the remedy differs: activate the unit rather than pick another.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'This instance and remote key are already assigned. One remote partition maps to at most one unit, and the pair is a persisted business key.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. A tenant administrator can never assign a partition — one who could would assign their own unit to a company they were never meant to see.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Map Odoo company 10 to the Deutschland unit',\n request: {\n system: 'odoo',\n remoteKey: '10',\n organizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Odoo company 10 is Acme Deutschland GmbH; its ledger belongs to the Deutschland unit.',\n },\n response: germanCompanyAssignmentExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [Op.DELETE]: {\n purpose: 'Unassign a remote partition.',\n outcome: 'The partition becomes unreachable to EVERY caller. The read path pushes down the set of assigned keys, so a key with no assignment is in nobody\\'s predicate.',\n whenToUse: 'A company leaves the group, or an assignment was made to the wrong instance and must be withdrawn rather than moved.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The assignment was removed.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No assignment with the supplied id exists.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Withdraw the German company',\n request: { systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID },\n response: {},\n forStatus: HttpResponseStatusCode.NO_CONTENT_204,\n }],\n },\n [SystemOfRecordPartitionAssignments_Operations.REASSIGN]: {\n operationId: SystemOfRecordPartitionAssignments_Operations.REASSIGN,\n purpose: 'Move an assigned partition to a different unit, under a compare-and-swap on the unit it is leaving.',\n outcome: 'The partition\\'s rows become readable by the new unit and stop being readable by the old one. The row keeps its identity, so its `createdAt` provenance and its audit timeline survive the move.',\n whenToUse: 'The corporate structure changes — a subsidiary moves between divisions, or an assignment was made to the wrong unit.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The partition now belongs to the named unit, and the updated assignment is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The target unit does not exist, belongs to another organization, or is not ACTIVE.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: '`expectedCurrentOrganizationUnitId` does not match the unit the partition currently belongs to — another administrator moved it first. A conflict rather than a not-found: the caller IS authorized and the payload IS valid; what refused is the current state.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Move the German company to the Iberia unit after a reorganization',\n request: {\n systemOfRecordPartitionAssignmentId: PARTITION_ASSIGNMENT_DE_ID,\n organizationUnitId: PARTITION_UNIT_ES_ID,\n expectedCurrentOrganizationUnitId: PARTITION_UNIT_DE_ID,\n justification: 'Acme Deutschland now reports into the Iberia division after the 2026 reorganization.',\n },\n response: { ...germanCompanyAssignmentExample, organizationUnitId: PARTITION_UNIT_ES_ID, updatedAt: '2026-09-18T11:00:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n }),\n // The scope is an OPTION, not a config field — `resourceSpecification` cross-checks it against the\n // scope the registry derives from the `isPrimaryScope: true` relationship, and throws at MODULE\n // LOAD when neither signal is supplied. Authoring it inside the returned config instead reaches\n // that throw with `options` undefined, which is how this was caught.\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type AnyResourceSpecificationConfig } from '../../../_core';
|
|
2
|
+
/**
|
|
3
|
+
* Framework-owned specification for the internal `systemOfRecordWriteAdmissions` resource — the Idempotency-Key ledger
|
|
4
|
+
* for writes into a system of record (#1679).
|
|
5
|
+
*
|
|
6
|
+
* Registry-key and type-annotation notes: identical situation to `dataSeedRuns` — see that spec's header.
|
|
7
|
+
*/
|
|
8
|
+
export declare const systemOfRecordWriteAdmissionsResourceSpecification: AnyResourceSpecificationConfig;
|
|
9
|
+
//# sourceMappingURL=system-of-record-write-admissions.resource.specification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-of-record-write-admissions.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,8BAA8B,EAAiD,MAAM,6BAA6B,CAAC;AAGjI;;;;;GAKG;AACH,eAAO,MAAM,kDAAkD,EAAE,8BAmJhE,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
2
|
+
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
3
|
+
import { SystemOfRecordWriteAdmissionSchema, SystemOfRecordWriteAdmissionState, SystemOfRecordWriteAdmissionVariantKey, systemOfRecordWriteAdmissionResourceConfigurationFactory as writeAdmissionFactory, } from '@wildo-ai/saas-backend-lib/external-data-models';
|
|
4
|
+
import { CoreResourceOperation as Op, ResourcePrimaryScope } from '@wildo-ai/saas-models';
|
|
5
|
+
import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
|
|
6
|
+
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
7
|
+
/**
|
|
8
|
+
* Framework-owned specification for the internal `systemOfRecordWriteAdmissions` resource — the Idempotency-Key ledger
|
|
9
|
+
* for writes into a system of record (#1679).
|
|
10
|
+
*
|
|
11
|
+
* Registry-key and type-annotation notes: identical situation to `dataSeedRuns` — see that spec's header.
|
|
12
|
+
*/
|
|
13
|
+
export const systemOfRecordWriteAdmissionsResourceSpecification = resourceSpecification(writeAdmissionFactory, SystemOfRecordWriteAdmissionSchema, ({ schemaShape }) => ({
|
|
14
|
+
purpose: 'Record, before a write is sent to a system of record, that its Idempotency-Key has been spent, and afterwards what became of the write.',
|
|
15
|
+
businessRole: 'Makes a retried write into an external system that cannot roll back replay its first outcome instead of writing twice: a client that lost the answer to a create gets the created row, not a second one.',
|
|
16
|
+
lifecycleRole: 'Inserted when a keyed write is admitted, settled once when the remote answers, and deleted by the hourly cleanup a day after admission.',
|
|
17
|
+
audience: LabelAudience.DEVELOPER,
|
|
18
|
+
subDomain: EngineResourceSubDomain.INFRASTRUCTURE,
|
|
19
|
+
codeHandling: {
|
|
20
|
+
mainSchema: {
|
|
21
|
+
packageName: '@wildo-ai/saas-backend-lib',
|
|
22
|
+
exportName: 'SystemOfRecordWriteAdmissionSchema',
|
|
23
|
+
symbolKind: CodeSymbolKind.SCHEMA,
|
|
24
|
+
declarationKind: CodeDeclarationKind.ZOD_SCHEMA,
|
|
25
|
+
},
|
|
26
|
+
resourceFactory: {
|
|
27
|
+
packageName: '@wildo-ai/saas-backend-lib',
|
|
28
|
+
exportName: 'systemOfRecordWriteAdmissionResourceConfigurationFactory',
|
|
29
|
+
symbolKind: CodeSymbolKind.FACTORY,
|
|
30
|
+
declarationKind: CodeDeclarationKind.FUNCTION,
|
|
31
|
+
},
|
|
32
|
+
resourceType: {
|
|
33
|
+
enumDeclaration: {
|
|
34
|
+
packageName: '@wildo-ai/saas-backend-lib',
|
|
35
|
+
exportName: 'BackendResourceType',
|
|
36
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
37
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
38
|
+
},
|
|
39
|
+
memberName: 'SYSTEM_OF_RECORD_WRITE_ADMISSIONS',
|
|
40
|
+
},
|
|
41
|
+
operationVocabulary: {
|
|
42
|
+
coreEnum: {
|
|
43
|
+
packageName: '@wildo-ai/saas-models',
|
|
44
|
+
exportName: 'CoreResourceOperation',
|
|
45
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
46
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
fields: {
|
|
51
|
+
_id: schemaShape._id.stringSpec({
|
|
52
|
+
meaning: 'Identifier derived from the resource, the write verb, the caller and the Idempotency-Key.',
|
|
53
|
+
whyItMatters: 'Deriving it makes a second admission of the same key by the same caller collide on the identifier itself, identically on every database, before anything is sent. The caller is part of it because a key is unique per caller, not globally.',
|
|
54
|
+
semanticRole: 'identifier',
|
|
55
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
56
|
+
}),
|
|
57
|
+
resourceType: schemaShape.resourceType.stringSpec({
|
|
58
|
+
meaning: 'The read-through resource the write targets.',
|
|
59
|
+
}),
|
|
60
|
+
system: schemaShape.system.stringSpec({
|
|
61
|
+
meaning: 'The system-of-record instance the write is sent to.',
|
|
62
|
+
}),
|
|
63
|
+
verb: schemaShape.verb.stringSpec({
|
|
64
|
+
meaning: 'What was admitted: a row write — `create`, `update` or `delete`, the members of `HttpApiWriteVerb` — or a declared system-of-record action, spelled `action:<actionName>` (#1678).',
|
|
65
|
+
whyItMatters: 'One ledger brackets both, because an action needs exactly the bracket a write needs: admit before sending, settle after, never re-send an unknown outcome. The prefix keeps an action from colliding with a write verb, and tells a reviewer which kind of request spent the key.',
|
|
66
|
+
}),
|
|
67
|
+
requestFingerprint: schemaShape.requestFingerprint.stringSpec({
|
|
68
|
+
meaning: 'A digest of the admitted request: its target row, verb and payload.',
|
|
69
|
+
whyItMatters: 'The same key sent with a different request is refused rather than answered with the first request\'s outcome. A digest, never the payload, so the ledger is not a second copy of what was written into the external system.',
|
|
70
|
+
}),
|
|
71
|
+
state: schemaShape.state.enumSpec({
|
|
72
|
+
meaning: 'What became of the admitted write.',
|
|
73
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
74
|
+
enumDeclaration: {
|
|
75
|
+
packageName: '@wildo-ai/saas-backend-lib',
|
|
76
|
+
exportName: 'SystemOfRecordWriteAdmissionState',
|
|
77
|
+
symbolKind: CodeSymbolKind.ENUM,
|
|
78
|
+
declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
|
|
79
|
+
},
|
|
80
|
+
values: {
|
|
81
|
+
[SystemOfRecordWriteAdmissionState.DISPATCHING]: { meaning: 'Admitted and being sent; past the attempt deadline it reads as an unknown outcome, never as not sent.' },
|
|
82
|
+
[SystemOfRecordWriteAdmissionState.APPLIED]: { meaning: 'The system of record applied the write; a retry replays it by reading the row back.' },
|
|
83
|
+
[SystemOfRecordWriteAdmissionState.NOT_APPLIED]: { meaning: 'Nothing landed; the key may be retried.' },
|
|
84
|
+
[SystemOfRecordWriteAdmissionState.OUTCOME_UNKNOWN]: { meaning: 'Sent, and whether it landed is unknown; the key never sends again.' },
|
|
85
|
+
},
|
|
86
|
+
}),
|
|
87
|
+
resourceId: schemaShape.resourceId.stringSpec({
|
|
88
|
+
meaning: 'The written row\'s synthesized id: the target of an update or delete, or the row a create produced.',
|
|
89
|
+
whyItMatters: 'A replay answers by reading this row back, and a caller told the outcome is unknown is given it to check.',
|
|
90
|
+
}),
|
|
91
|
+
admittedAt: schemaShape.admittedAt.dateSpec({ meaning: 'When the write was admitted.' }),
|
|
92
|
+
settledAt: schemaShape.settledAt.dateSpec({ meaning: 'When the write\'s outcome was recorded.' }),
|
|
93
|
+
expiresAt: schemaShape.expiresAt.dateSpec({
|
|
94
|
+
meaning: 'When the cleanup may delete the admission — a day after admission, the published expiry of an Idempotency-Key here.',
|
|
95
|
+
}),
|
|
96
|
+
},
|
|
97
|
+
operations: {
|
|
98
|
+
[Op.CREATE]: {
|
|
99
|
+
purpose: 'Admit a keyed write before it is sent.',
|
|
100
|
+
outcome: 'The key is spent; a concurrent or retried admission of the same key collides on the identifier.',
|
|
101
|
+
importance: FieldSemanticImportance.PRIMARY,
|
|
102
|
+
responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The admission was recorded.' }],
|
|
103
|
+
errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The key was already admitted; the existing admission decides the answer.' }],
|
|
104
|
+
idempotent: false,
|
|
105
|
+
variants: {
|
|
106
|
+
[SystemOfRecordWriteAdmissionVariantKey.INTERNAL]: {
|
|
107
|
+
purpose: 'Let the read-through repository spend a key before it sends a write.',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
[Op.READ]: {
|
|
112
|
+
purpose: 'Read the admission a retried request collided with.',
|
|
113
|
+
outcome: 'The retry learns whether the first attempt is in flight, applied, not applied or unknown.',
|
|
114
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The admission is returned.' }],
|
|
115
|
+
errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No admission exists for the key.' }],
|
|
116
|
+
idempotent: true,
|
|
117
|
+
variants: {
|
|
118
|
+
[SystemOfRecordWriteAdmissionVariantKey.INTERNAL]: {
|
|
119
|
+
purpose: 'Let the read-through repository decide what a retry is answered.',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
[Op.UPDATE]: {
|
|
124
|
+
purpose: 'Settle an admission once the remote has answered, or re-admit one that did not land.',
|
|
125
|
+
outcome: 'The admission records what became of the write.',
|
|
126
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The admission was settled.' }],
|
|
127
|
+
errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The admission is no longer in the state the settle was guarded on; nothing changes.' }],
|
|
128
|
+
idempotent: false,
|
|
129
|
+
variants: {
|
|
130
|
+
[SystemOfRecordWriteAdmissionVariantKey.INTERNAL]: {
|
|
131
|
+
purpose: 'Let the read-through repository record an outcome under a guard on the admission state.',
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
[Op.DELETE]: {
|
|
136
|
+
purpose: 'Delete expired admissions.',
|
|
137
|
+
outcome: 'An Idempotency-Key older than a day stops being remembered.',
|
|
138
|
+
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The expired admissions were deleted.' }],
|
|
139
|
+
idempotent: true,
|
|
140
|
+
variants: {
|
|
141
|
+
[SystemOfRecordWriteAdmissionVariantKey.INTERNAL]: {
|
|
142
|
+
purpose: 'Let the hourly cleanup batch enforce the retention bound.',
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
businessConstraints: [
|
|
148
|
+
'An admission is written before its write is sent, so a key is never spent after the fact.',
|
|
149
|
+
'An admission is settled once; an unknown outcome never sends again under the same key.',
|
|
150
|
+
'The ledger holds digests and ids, never the written values.',
|
|
151
|
+
],
|
|
152
|
+
}), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION });
|
|
153
|
+
//# sourceMappingURL=system-of-record-write-admissions.resource.specification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-of-record-write-admissions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,kCAAkC,EAClC,iCAAiC,EACjC,sCAAsC,EACtC,wDAAwD,IAAI,qBAAqB,GAClF,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,qBAAqB,IAAI,EAAE,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EAAuC,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACjI,OAAO,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O,EAAE,sFAAsF;YAC/F,OAAO,EAAE,iDAAiD;YAC1D,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;YAClG,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,qFAAqF,EAAE,CAAC;YAC5J,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE;gBACR,CAAC,sCAAsC,CAAC,QAAQ,CAAC,EAAE;oBACjD,OAAO,EAAE,yFAAyF;iBACnG;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,OAAO,EAAE,4BAA4B;YACrC,OAAO,EAAE,6DAA6D;YACtE,gBAAgB,EAAE,CAAC,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;YAC5G,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE;gBACR,CAAC,sCAAsC,CAAC,QAAQ,CAAC,EAAE;oBACjD,OAAO,EAAE,2DAA2D;iBACrE;aACF;SACF;KACF;IAED,mBAAmB,EAAE;QACnB,2FAA2F;QAC3F,wFAAwF;QACxF,6DAA6D;KAC9D;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["import { LabelAudience } from '@wildo-ai/presets-components-models';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n SystemOfRecordWriteAdmissionSchema,\n SystemOfRecordWriteAdmissionState,\n SystemOfRecordWriteAdmissionVariantKey,\n systemOfRecordWriteAdmissionResourceConfigurationFactory as writeAdmissionFactory,\n} from '@wildo-ai/saas-backend-lib/external-data-models';\nimport { CoreResourceOperation as Op, ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned specification for the internal `systemOfRecordWriteAdmissions` resource — the Idempotency-Key ledger\n * for writes into a system of record (#1679).\n *\n * Registry-key and type-annotation notes: identical situation to `dataSeedRuns` — see that spec's header.\n */\nexport const systemOfRecordWriteAdmissionsResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n writeAdmissionFactory,\n SystemOfRecordWriteAdmissionSchema,\n ({ schemaShape }) => ({\n purpose: 'Record, before a write is sent to a system of record, that its Idempotency-Key has been spent, and afterwards what became of the write.',\n businessRole: 'Makes a retried write into an external system that cannot roll back replay its first outcome instead of writing twice: a client that lost the answer to a create gets the created row, not a second one.',\n lifecycleRole: 'Inserted when a keyed write is admitted, settled once when the remote answers, and deleted by the hourly cleanup a day after admission.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.INFRASTRUCTURE,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'SystemOfRecordWriteAdmissionSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'systemOfRecordWriteAdmissionResourceConfigurationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'BackendResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'SYSTEM_OF_RECORD_WRITE_ADMISSIONS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier derived from the resource, the write verb, the caller and the Idempotency-Key.',\n whyItMatters: 'Deriving it makes a second admission of the same key by the same caller collide on the identifier itself, identically on every database, before anything is sent. The caller is part of it because a key is unique per caller, not globally.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n resourceType: schemaShape.resourceType.stringSpec({\n meaning: 'The read-through resource the write targets.',\n }),\n system: schemaShape.system.stringSpec({\n meaning: 'The system-of-record instance the write is sent to.',\n }),\n verb: schemaShape.verb.stringSpec({\n meaning: 'What was admitted: a row write — `create`, `update` or `delete`, the members of `HttpApiWriteVerb` — or a declared system-of-record action, spelled `action:<actionName>` (#1678).',\n whyItMatters: 'One ledger brackets both, because an action needs exactly the bracket a write needs: admit before sending, settle after, never re-send an unknown outcome. The prefix keeps an action from colliding with a write verb, and tells a reviewer which kind of request spent the key.',\n }),\n requestFingerprint: schemaShape.requestFingerprint.stringSpec({\n meaning: 'A digest of the admitted request: its target row, verb and payload.',\n whyItMatters: 'The same key sent with a different request is refused rather than answered with the first request\\'s outcome. A digest, never the payload, so the ledger is not a second copy of what was written into the external system.',\n }),\n state: schemaShape.state.enumSpec({\n meaning: 'What became of the admitted write.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'SystemOfRecordWriteAdmissionState',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [SystemOfRecordWriteAdmissionState.DISPATCHING]: { meaning: 'Admitted and being sent; past the attempt deadline it reads as an unknown outcome, never as not sent.' },\n [SystemOfRecordWriteAdmissionState.APPLIED]: { meaning: 'The system of record applied the write; a retry replays it by reading the row back.' },\n [SystemOfRecordWriteAdmissionState.NOT_APPLIED]: { meaning: 'Nothing landed; the key may be retried.' },\n [SystemOfRecordWriteAdmissionState.OUTCOME_UNKNOWN]: { meaning: 'Sent, and whether it landed is unknown; the key never sends again.' },\n },\n }),\n resourceId: schemaShape.resourceId.stringSpec({\n meaning: 'The written row\\'s synthesized id: the target of an update or delete, or the row a create produced.',\n whyItMatters: 'A replay answers by reading this row back, and a caller told the outcome is unknown is given it to check.',\n }),\n admittedAt: schemaShape.admittedAt.dateSpec({ meaning: 'When the write was admitted.' }),\n settledAt: schemaShape.settledAt.dateSpec({ meaning: 'When the write\\'s outcome was recorded.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'When the cleanup may delete the admission — a day after admission, the published expiry of an Idempotency-Key here.',\n }),\n },\n\n operations: {\n [Op.CREATE]: {\n purpose: 'Admit a keyed write before it is sent.',\n outcome: 'The key is spent; a concurrent or retried admission of the same key collides on the identifier.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [{ code: HttpResponseStatusCode.CREATED_201, meaning: 'The admission was recorded.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The key was already admitted; the existing admission decides the answer.' }],\n idempotent: false,\n variants: {\n [SystemOfRecordWriteAdmissionVariantKey.INTERNAL]: {\n purpose: 'Let the read-through repository spend a key before it sends a write.',\n },\n },\n },\n [Op.READ]: {\n purpose: 'Read the admission a retried request collided with.',\n outcome: 'The retry learns whether the first attempt is in flight, applied, not applied or unknown.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The admission is returned.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No admission exists for the key.' }],\n idempotent: true,\n variants: {\n [SystemOfRecordWriteAdmissionVariantKey.INTERNAL]: {\n purpose: 'Let the read-through repository decide what a retry is answered.',\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Settle an admission once the remote has answered, or re-admit one that did not land.',\n outcome: 'The admission records what became of the write.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The admission was settled.' }],\n errorScenarios: [{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The admission is no longer in the state the settle was guarded on; nothing changes.' }],\n idempotent: false,\n variants: {\n [SystemOfRecordWriteAdmissionVariantKey.INTERNAL]: {\n purpose: 'Let the read-through repository record an outcome under a guard on the admission state.',\n },\n },\n },\n [Op.DELETE]: {\n purpose: 'Delete expired admissions.',\n outcome: 'An Idempotency-Key older than a day stops being remembered.',\n responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'The expired admissions were deleted.' }],\n idempotent: true,\n variants: {\n [SystemOfRecordWriteAdmissionVariantKey.INTERNAL]: {\n purpose: 'Let the hourly cleanup batch enforce the retention bound.',\n },\n },\n },\n },\n\n businessConstraints: [\n 'An admission is written before its write is sent, so a key is never spent after the fact.',\n 'An admission is settled once; an unknown outcome never sends again under the same key.',\n 'The ledger holds digests and ids, never the written values.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
|
package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resources: `conversationThreads`, `conversationMessages`, `conversationReplyTokens` — Wildo SaaS engine
|
|
3
|
+
* specifications (organization-scoped, engine-written). #1630.
|
|
4
|
+
*
|
|
5
|
+
* Inputs:
|
|
6
|
+
* - Schemas: `ConversationThreadSchema`, `ConversationMessageSchema`, `ConversationReplyTokenSchema`
|
|
7
|
+
* (`inbound/conversation-threads.shared.schemas.ts`)
|
|
8
|
+
* - Factories: `conversation{Threads,Messages,ReplyTokens}ResourceConfiguration_InitializationFactory`
|
|
9
|
+
* (`inbound/conversation-threads.shared.resources-config.schemas.ts`)
|
|
10
|
+
* - Custom operation: `ConversationThreads_Operations.CLOSE`, implemented by
|
|
11
|
+
* `conversation-thread-close.custom-impl.backend.service.ts` (saas-backend-lib).
|
|
12
|
+
* - Writers: the channel intake opens threads and records received messages, `ctx.reply` records replies
|
|
13
|
+
* and the reply worker settles them, the reply-token service issues and revokes tokens.
|
|
14
|
+
*
|
|
15
|
+
* Why `ORGANIZATIONS` scope: a thread is the organization's own correspondence about its own cases. The
|
|
16
|
+
* registry relationships ORGANIZATIONS → each resource carry `isPrimaryScope: true`.
|
|
17
|
+
*/
|
|
18
|
+
import { ConversationMessageDirection, ConversationOutboundStatus, ConversationThreadStatus, ConversationThreads_Operations, CoreResourceOperation as Op, InboundChannelKind, ReplyTokenRevocationReason } from '@wildo-ai/saas-models';
|
|
19
|
+
export declare const conversationThreadsResourceSpecification: import("../../../_core").ResourceSpecificationConfig<typeof ConversationThreads_Operations, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.DELETE_MANY | Op.CREATE | Op.LIST, import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodObject<{
|
|
20
|
+
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
21
|
+
organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
22
|
+
channel: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof InboundChannelKind>>>>;
|
|
23
|
+
threadKey: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
24
|
+
counterpartAddress: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
25
|
+
subject: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodString>>>;
|
|
26
|
+
linkedResource: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
27
|
+
resourceType: import("zod").ZodString;
|
|
28
|
+
resourceId: import("zod").ZodString;
|
|
29
|
+
}, import("zod/v4/core").$strict>>>;
|
|
30
|
+
status: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ConversationThreadStatus>>>>>;
|
|
31
|
+
lastMessageAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>;
|
|
32
|
+
closedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>>>;
|
|
33
|
+
createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
|
|
34
|
+
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>;
|
|
35
|
+
}, import("zod/v4/core").$strip>>>;
|
|
36
|
+
export declare const conversationMessagesResourceSpecification: import("../../../_core").ResourceSpecificationConfig<Record<string, never>, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.DELETE_MANY | Op.CREATE | Op.LIST, import("zod").ZodObject<{
|
|
37
|
+
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
38
|
+
organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
39
|
+
threadId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
40
|
+
direction: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ConversationMessageDirection>>>>;
|
|
41
|
+
rfcMessageId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
42
|
+
fromAddress: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
43
|
+
toAddresses: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>>;
|
|
44
|
+
subject: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodString>>;
|
|
45
|
+
textPreview: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodString>>;
|
|
46
|
+
occurredAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>;
|
|
47
|
+
inboundDeliveryId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
48
|
+
channelRecordRef: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
49
|
+
resourceType: import("zod").ZodString;
|
|
50
|
+
resourceId: import("zod").ZodString;
|
|
51
|
+
}, import("zod/v4/core").$strict>>>>;
|
|
52
|
+
submissionId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
53
|
+
outboundStatus: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ConversationOutboundStatus>>>>>>>;
|
|
54
|
+
templateRef: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
55
|
+
templateVariables: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>>>;
|
|
56
|
+
locale: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
57
|
+
replyToAddress: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
58
|
+
threading: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
59
|
+
inReplyTo: import("zod").ZodOptional<import("zod").ZodString>;
|
|
60
|
+
references: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
61
|
+
}, import("zod/v4/core").$strict>>>>;
|
|
62
|
+
providerMessageIds: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>>>;
|
|
63
|
+
failureCode: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>>;
|
|
64
|
+
settledAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodDate>>>>;
|
|
65
|
+
createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
|
|
66
|
+
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>;
|
|
67
|
+
}, import("zod/v4/core").$strip>>;
|
|
68
|
+
export declare const conversationReplyTokensResourceSpecification: import("../../../_core").ResourceSpecificationConfig<Record<string, never>, Op.READ | Op.UPDATE | Op.UPDATE_MANY | Op.DELETE | Op.DELETE_MANY | Op.CREATE | Op.LIST, import("zod").ZodObject<{
|
|
69
|
+
_id: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
|
|
70
|
+
organizationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
71
|
+
threadId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>>;
|
|
72
|
+
recipientAddress: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
73
|
+
recipientMemberUserId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>>;
|
|
74
|
+
tokenHash: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>>;
|
|
75
|
+
issuedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>;
|
|
76
|
+
revokedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDate>>>>>;
|
|
77
|
+
revocationReason: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodNullable<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof ReplyTokenRevocationReason>>>>>>;
|
|
78
|
+
createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>>;
|
|
79
|
+
updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>;
|
|
80
|
+
}, import("zod/v4/core").$strip>>;
|
|
81
|
+
//# sourceMappingURL=conversation-threads.resource.specification.d.ts.map
|
package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-threads.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/notifications/resources/conversation-threads.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAQH,OAAO,EACL,4BAA4B,EAE5B,0BAA0B,EAG1B,wBAAwB,EACxB,8BAA8B,EAC9B,qBAAqB,IAAI,EAAE,EAC3B,kBAAkB,EAClB,0BAA0B,EAK3B,MAAM,uBAAuB,CAAC;AA8C/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;kCAiIpD,CAAC;AAoDF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAyHrD,CAAC;AAIF,eAAO,MAAM,4CAA4C;;;;;;;;;;;;iCA+FxD,CAAC"}
|