@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { billingAdminPresets, billingMainPresets } from '@wildo-ai/presets-components';
|
|
2
2
|
import { LabelAudience } from '@wildo-ai/presets-components-models';
|
|
3
3
|
import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';
|
|
4
|
-
import { BillingSubscriptionBaseSchema, BillingSubscription_Operations, CoreResourceOperation as Op, CoreResourceType, ResourcePrimaryScope, SubscriptionStatus, billingSubscriptionsPolymorphicFactories, } from '@wildo-ai/saas-models';
|
|
4
|
+
import { BillingSubscriptionBaseSchema, BillingSubscription_Operations, CoreResourceOperation as Op, CoreResourceType, ResourcePrimaryScope, SubscriptionStatus, billingSubscriptionsPolymorphicFactories, ErrorCustomMessageReference, } from '@wildo-ai/saas-models';
|
|
5
5
|
import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
|
|
6
6
|
import { BILLING_API_REFERENCE_PAGE_REQUEST, billingApiReferencePage, createBillingApiReferenceScopeExample, } from './billing-api-reference-examples.js';
|
|
7
7
|
import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
|
|
@@ -92,8 +92,10 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
92
92
|
}),
|
|
93
93
|
currentPeriodStart: schemaShape.currentPeriodStart.dateSpec({ meaning: 'Start of the current invoice period.', temporalRole: 'scheduled' }),
|
|
94
94
|
currentPeriodEnd: schemaShape.currentPeriodEnd.dateSpec({ meaning: 'End of the current invoice period / next renewal anchor.', importance: FieldSemanticImportance.PRIMARY }),
|
|
95
|
-
|
|
95
|
+
trialStart: schemaShape.trialStart.dateSpec({ meaning: 'When the trial began, as the billing provider reports it. Kept after the trial ends; absent on a subscription that never had a trial.', temporalRole: 'scheduled' }),
|
|
96
|
+
trialEnd: schemaShape.trialEnd.dateSpec({ meaning: 'When the trial ends, or ended, as the billing provider reports it. Kept after the trial is over, so it describes the subscription\'s trial, not whether it is trialing now: `status` says that.', temporalRole: 'deadline' }),
|
|
96
97
|
cancelAtPeriodEnd: schemaShape.cancelAtPeriodEnd.booleanSpec({ meaning: 'User/org requested cancel at end of current period.' }),
|
|
98
|
+
pendingPlanChange: schemaShape.pendingPlanChange.objectSpec({ meaning: 'A plan change confirmed to take effect at the end of the current period (#1868): the target plan and price, when it applies, and the lines the subscription will then carry. Written by a change-plan confirmation whose new plan defers it; cleared when renewal applies it (the items then become these lines) or when cancel-plan-change withdraws it. Read-only.' }),
|
|
97
99
|
cancellationReason: schemaShape.cancellationReason.stringSpec({ meaning: 'Current cancellation reason, cleared on resume and replaced on a later cancellation. Historical reasons are retained in committed cancellation audit events.' }),
|
|
98
100
|
},
|
|
99
101
|
operations: {
|
|
@@ -172,19 +174,19 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
172
174
|
{ code: HttpResponseStatusCode.CREATED_201, meaning: 'A subscription document was materialised from provider sync and aligned to the provider subscription id.' },
|
|
173
175
|
],
|
|
174
176
|
errorScenarios: [
|
|
175
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The synced subscription payload fails schema validation.'
|
|
176
|
-
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller
|
|
177
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The synced subscription payload fails schema validation.' },
|
|
178
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller holds no role this operation names. Subscription rows are materialised by the engine\'s billing provider-event handler, which acts with the handler-only `ORG_BILLING_PROVIDER_EVENTS` (organization) or `APP_BILLING_PROVIDER_EVENTS` (personal) role; this is an internal service-pipeline write, not a public create endpoint.' },
|
|
177
179
|
],
|
|
178
180
|
idempotent: false,
|
|
179
181
|
},
|
|
180
182
|
[Op.UPDATE]: {
|
|
181
|
-
purpose: 'Internal updates from
|
|
183
|
+
purpose: 'Internal updates from billing provider events (the engine\'s billing handler, authorized with its handler-only role) or migration; user-facing changes use custom ops.',
|
|
182
184
|
outcome: 'Patched fields per DTO rules in factory.',
|
|
183
185
|
responseStatuses: [
|
|
184
186
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The subscription fields were patched (typically reconciling provider webhook state) and the updated record is returned.' },
|
|
185
187
|
],
|
|
186
188
|
errorScenarios: [
|
|
187
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched fields fail schema validation.'
|
|
189
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched fields fail schema validation.' },
|
|
188
190
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner / system role required to reconcile subscription state (internal service-pipeline path, not HTTP-exposed).' },
|
|
189
191
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No subscription exists for the supplied id under the caller’s billing account.' },
|
|
190
192
|
],
|
|
@@ -205,9 +207,10 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
205
207
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'Another change holds this subscription’s mutation slot, or this same request (the same Idempotency-Key) is still running. Nothing was sent to the provider by this request; retry later.', errorCode: 'billing_subscription_mutation_in_progress' },
|
|
206
208
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider may have applied this cancellation and nothing has yet established whether it did (a lost response, a timeout, a server error). Asking again sends nothing; the subscription is held until recovery resolves it.', errorCode: 'billing_subscription_mutation_outcome_unknown' },
|
|
207
209
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider refused the cancellation and applied nothing. The refusal is recorded and the subscription is free again.', errorCode: 'billing_subscription_mutation_provider_rejected' },
|
|
210
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A plan change is pending at the end of the period. Withdraw it with cancel-plan-change first; one pending change at a time, so the provider’s schedule and the subscription can never describe two different futures. Refused before anything is admitted or sent.', errorCode: 'billing_subscription_plan_change_pending' },
|
|
208
211
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'This request’s hold on the subscription’s mutation generation was taken over before it finished. Nothing was sent twice.', errorCode: 'billing_subscription_mutation_claim_lost' },
|
|
209
212
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription’s billing account or provider identity changed since its mutation slot was created, or since the cancellation was admitted. If the provider had already applied it, it stays owed to recovery.', errorCode: 'billing_subscription_mutation_slot_identity_changed' },
|
|
210
|
-
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.',
|
|
213
|
+
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.', customMessageReference: ErrorCustomMessageReference.IDEMPOTENCY_KEY_REUSED },
|
|
211
214
|
],
|
|
212
215
|
// Idempotent in effect (#535 S5a). A repeat with the same Idempotency-Key replays the committed cancellation without
|
|
213
216
|
// contacting the provider again; the same key with a different request is refused 422. A repeat without a key is
|
|
@@ -241,7 +244,7 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
241
244
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider refused the resume and applied nothing. The refusal is recorded and the subscription is free again.', errorCode: 'billing_subscription_mutation_provider_rejected' },
|
|
242
245
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'This request’s hold on the subscription’s mutation generation was taken over before it finished. Nothing was sent twice.', errorCode: 'billing_subscription_mutation_claim_lost' },
|
|
243
246
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription’s billing account or provider identity changed since its mutation slot was created, or since the resume was admitted. If the provider had already applied it, it stays owed to recovery.', errorCode: 'billing_subscription_mutation_slot_identity_changed' },
|
|
244
|
-
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.',
|
|
247
|
+
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.', customMessageReference: ErrorCustomMessageReference.IDEMPOTENCY_KEY_REUSED },
|
|
245
248
|
],
|
|
246
249
|
// Idempotent in effect (#535 S5a). A repeat with the same Idempotency-Key replays the committed resume without contacting
|
|
247
250
|
// the provider; the same key with a different request is refused 422. Without a key, a repeat after resume cleared
|
|
@@ -258,29 +261,64 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
258
261
|
forStatus: HttpResponseStatusCode.OK_200,
|
|
259
262
|
}],
|
|
260
263
|
},
|
|
264
|
+
[BillingSubscription_Operations.CANCEL_PLAN_CHANGE]: {
|
|
265
|
+
operationId: BillingSubscription_Operations.CANCEL_PLAN_CHANGE,
|
|
266
|
+
purpose: 'Withdraw a plan change that was confirmed to take effect at the end of the current period (#1868).',
|
|
267
|
+
outcome: 'The provider’s schedule for the change is released and `pendingPlanChange` is cleared, so the subscription renews on its current plan. Nothing is charged or refunded: the change had not taken effect.',
|
|
268
|
+
responseStatuses: [
|
|
269
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'The pending change was withdrawn at the provider and locally. A repeat with the same Idempotency-Key after it committed answers the subscription as it is now, without contacting the provider again.' },
|
|
270
|
+
],
|
|
271
|
+
errorScenarios: [
|
|
272
|
+
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to withdraw a plan change.' },
|
|
273
|
+
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No subscription exists for the supplied id under the caller’s billing account.' },
|
|
274
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'No plan change is pending on this subscription: there is nothing to withdraw. Refused before anything is admitted or sent.', errorCode: 'billing_subscription_no_plan_change_pending' },
|
|
275
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The pending change is taking effect: its renewal is due within five minutes, or has passed and the subscription has not yet been updated. Releasing the schedule then would leave the provider billing the new plan while the change read as withdrawn. Let it land, then change plan again. Refused before anything is admitted or sent.', errorCode: 'billing_subscription_plan_change_taking_effect' },
|
|
276
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'Another change holds this subscription’s mutation slot, or this same request (the same Idempotency-Key) is still running. Nothing was sent to the provider by this request; retry later.', errorCode: 'billing_subscription_mutation_in_progress' },
|
|
277
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider may have released the schedule and nothing has yet established whether it did (a lost response, a timeout, a server error). Asking again sends nothing; the subscription is held until recovery resolves it.', errorCode: 'billing_subscription_mutation_outcome_unknown' },
|
|
278
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider refused to release the schedule and applied nothing — including when its next phase had already begun, so the change had taken effect. The refusal is recorded and the subscription is free again.', errorCode: 'billing_subscription_mutation_provider_rejected' },
|
|
279
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'This request’s hold on the subscription’s mutation generation was taken over before it finished. Nothing was sent twice.', errorCode: 'billing_subscription_mutation_claim_lost' },
|
|
280
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription’s billing account or provider identity changed since its mutation slot was created, or since the withdrawal was admitted. If the provider had already applied it, it stays owed to recovery.', errorCode: 'billing_subscription_mutation_slot_identity_changed' },
|
|
281
|
+
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.', customMessageReference: ErrorCustomMessageReference.IDEMPOTENCY_KEY_REUSED },
|
|
282
|
+
],
|
|
283
|
+
// Idempotent in effect, as RESUME: a repeat with the same Idempotency-Key replays the committed withdrawal; without a key, a
|
|
284
|
+
// repeat after the pending change was cleared is refused before admission (`billing_subscription_no_plan_change_pending`).
|
|
285
|
+
idempotent: true,
|
|
286
|
+
examples: [{
|
|
287
|
+
title: 'Keep the current plan: withdraw a downgrade pending at the end of the period',
|
|
288
|
+
request: {},
|
|
289
|
+
response: {
|
|
290
|
+
...subscriptionExample,
|
|
291
|
+
updatedAt: '2026-06-23T09:00:00.000Z',
|
|
292
|
+
},
|
|
293
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
294
|
+
}],
|
|
295
|
+
},
|
|
261
296
|
[BillingSubscription_Operations.PREVIEW_PLAN_CHANGE]: {
|
|
262
297
|
operationId: BillingSubscription_Operations.PREVIEW_PLAN_CHANGE,
|
|
263
298
|
purpose: 'Request a fresh provider invoice estimate for a target plan and price.',
|
|
264
|
-
outcome: 'Returns the upcoming invoice amount, currency, lines, period, calculation instant and a short-lived previewToken bound to the caller, subscription and selected plan. The token carries reviewed inputs; normal authorization still applies to confirmation.',
|
|
299
|
+
outcome: 'Returns the upcoming invoice amount, currency, lines, period, calculation instant, when the change would take effect (`timing`, `effectiveAt`) and a short-lived previewToken bound to the caller, subscription and selected plan. A change the new plan defers to the end of the period is previewed as the renewal invoice on the new plan, unprorated. The token carries reviewed inputs; normal authorization still applies to confirmation.',
|
|
265
300
|
responseStatuses: [{ code: HttpResponseStatusCode.OK_200, meaning: 'Provider estimate calculated; this amount is not necessarily an immediate charge.' }],
|
|
266
301
|
errorScenarios: [
|
|
267
302
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The subscription, billing account or scope does not match the authorized route context.' },
|
|
268
303
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The target is not a plan or its selected price belongs to another product.' },
|
|
269
304
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The target product or price is retired, or provider item identities are incomplete.' },
|
|
305
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A plan change is pending at the end of the period. Withdraw it with cancel-plan-change first; one pending change at a time, so the provider’s schedule and the subscription can never describe two different futures. Refused before anything is admitted or sent.', errorCode: 'billing_subscription_plan_change_pending' },
|
|
306
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The new plan defers the change to the end of the period, and the subscription ends then: a cancellation is pending. Resume the subscription first. Refused before anything is sent.', errorCode: 'billing_plan_change_subscription_pending_cancellation' },
|
|
307
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The new plan defers the change to the end of the period, and the lines the subscription would then carry do not share one recurring billing interval (a yearly add-on beside a monthly plan): a deferred change is one provider phase, billed on one interval. Remove the add-on whose interval differs, or choose a price on the same interval. Refused before anything is sent.', errorCode: 'billing_plan_change_billing_interval_mismatch' },
|
|
270
308
|
],
|
|
271
309
|
idempotent: true,
|
|
272
310
|
},
|
|
273
311
|
[BillingSubscription_Operations.CHANGE_PLAN]: {
|
|
274
312
|
operationId: BillingSubscription_Operations.CHANGE_PLAN,
|
|
275
313
|
purpose: 'Confirm a previously reviewed plan and price using its previewToken.',
|
|
276
|
-
outcome: 'The plan item is updated after provider confirmation, preserving its known provider item ID and unrelated add-on entries.',
|
|
314
|
+
outcome: 'The new plan\'s policy decides when the change takes effect (#1868). Immediately: the plan item is updated after provider confirmation, preserving its known provider item ID and unrelated add-on entries, and the new plan\'s `proration` settles the unused part of the current period. At the end of the period (a downgrade\'s default): the provider is given a schedule, the items are left as they are, and the subscription records the change as `pendingPlanChange` until renewal applies it.',
|
|
277
315
|
responseStatuses: [
|
|
278
|
-
{ code: HttpResponseStatusCode.OK_200, meaning: '
|
|
316
|
+
{ code: HttpResponseStatusCode.OK_200, meaning: 'An immediate plan swap (with proration) was confirmed by the provider and the subscription’s plan item is updated with its provider identity preserved; or a change at the end of the period was scheduled by the provider and is returned as `pendingPlanChange`, with the items unchanged. Confirming the same preview again after it committed answers the subscription as it is now — a later change shows through — without contacting the provider or re-running any effect, for as long as the preview token is valid (10 minutes).' },
|
|
279
317
|
],
|
|
280
318
|
errorScenarios: [
|
|
281
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`newProductKey` identifies a product that is not a PLAN. Add-ons and credit packs cannot replace the plan item.',
|
|
319
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`newProductKey` identifies a product that is not a PLAN. Add-ons and credit packs cannot replace the plan item.', customMessageReference: ErrorCustomMessageReference.BILLING_INVALID_PRODUCT_TYPE },
|
|
282
320
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'An existing subscription item has no recorded provider item ID. Repair the missing provider identity before changing items; routine status reconciliation does not repair item IDs. The request is refused before provider mutation.', errorCode: 'billing_existing_provider_item_missing' },
|
|
283
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`newProductKey`, `newPriceId` or `previewToken` is missing or fails request-DTO validation.'
|
|
321
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`newProductKey`, `newPriceId` or `previewToken` is missing or fails request-DTO validation.' },
|
|
284
322
|
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The preview token is expired, altered or belongs to another actor, subscription or selection. Request a new preview before confirming.', errorCode: 'billing_plan_change_preview_invalid' },
|
|
285
323
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription terms or relevant catalogue policy changed after the preview, or another change to the subscription was admitted after it: a preview names the mutation generation it was computed against, and admission is a compare-and-swap on that generation, so of two previews of one generation only the first confirmation proceeds. The stale confirmation is rejected before contacting the provider.', errorCode: 'billing_plan_change_preview_stale' },
|
|
286
324
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'Another change holds this subscription’s mutation slot, or this same confirmation is already running. Nothing was sent to the provider by this request; retry later. A plan change that was admitted but never sent, and whose preview has expired, is released; a change the provider may have applied holds the subscription until recovery resolves it.', errorCode: 'billing_subscription_mutation_in_progress' },
|
|
@@ -290,11 +328,15 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
290
328
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider applied the change but its answer does not identify the plan item it created (a subscription that had no plan item). The local write is refused rather than recording an item nothing can target later; the change stays applied, confirming again sends nothing, and it is owed to recovery.', errorCode: 'billing_created_provider_item_unresolved' },
|
|
291
329
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'This request’s hold on the subscription’s mutation generation was taken over before it finished — for example another request with the same preview completed it first. Nothing was sent twice.', errorCode: 'billing_subscription_mutation_claim_lost' },
|
|
292
330
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription’s billing account or provider identity changed since its mutation slot was created, or since the change was admitted, so a change admitted against the old identity is not applied to the new one. If the provider had already applied the change, it stays owed to recovery.', errorCode: 'billing_subscription_mutation_slot_identity_changed' },
|
|
293
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`newPriceId` names a price whose `productId` is not `newProductKey`’s product. The two are caller-supplied independently, and the provider is billed the PRICE while entitlements derive from the PRODUCT recorded on the item — so an unmatched pair would grant one plan’s entitlements at another plan’s price.',
|
|
331
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`newPriceId` names a price whose `productId` is not `newProductKey`’s product. The two are caller-supplied independently, and the provider is billed the PRICE while entitlements derive from the PRODUCT recorded on the item — so an unmatched pair would grant one plan’s entitlements at another plan’s price.', customMessageReference: ErrorCustomMessageReference.BILLING_PRICE_PRODUCT_MISMATCH },
|
|
294
332
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to change the plan (a HIGH-risk commercial action).' },
|
|
295
333
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No subscription exists for the supplied id, or the target product/price is not in the catalog.' },
|
|
296
334
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested price is incompatible with the current subscription.' },
|
|
297
|
-
{ code: HttpResponseStatusCode.CONFLICT_409, when: '`newProductKey` (or the price named by `newPriceId`) has been RETIRED from the code catalogue. A subscription may not be MOVED ONTO a retired product; a subscription already on one keeps running, and REMOVE_ADDON deliberately still works so a customer is never trapped on a withdrawn add-on.',
|
|
335
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: '`newProductKey` (or the price named by `newPriceId`) has been RETIRED from the code catalogue. A subscription may not be MOVED ONTO a retired product; a subscription already on one keeps running, and REMOVE_ADDON deliberately still works so a customer is never trapped on a withdrawn add-on.', customMessageReference: ErrorCustomMessageReference.BILLING_PRODUCT_RETIRED },
|
|
336
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: '`newProductKey` is announced but not yet on sale (catalogue `availability` UPCOMING). A subscription may not be moved onto it until the catalogue puts it on sale.', customMessageReference: ErrorCustomMessageReference.BILLING_PRODUCT_NOT_YET_AVAILABLE },
|
|
337
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A plan change is pending at the end of the period. Withdraw it with cancel-plan-change first; one pending change at a time, so the provider’s schedule and the subscription can never describe two different futures. Refused before anything is admitted or sent.', errorCode: 'billing_subscription_plan_change_pending' },
|
|
338
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The new plan defers the change to the end of the period, and the subscription ends then: a cancellation is pending. Resume the subscription first. Refused before anything is sent.', errorCode: 'billing_plan_change_subscription_pending_cancellation' },
|
|
339
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The new plan defers the change to the end of the period, and the lines the subscription would then carry do not share one recurring billing interval (a yearly add-on beside a monthly plan): a deferred change is one provider phase, billed on one interval. Remove the add-on whose interval differs, or choose a price on the same interval. Refused before anything is sent.', errorCode: 'billing_plan_change_billing_interval_mismatch' },
|
|
298
340
|
],
|
|
299
341
|
// One preview is at most one commercial change (#535): its generation is admitted once, the provider is sent the
|
|
300
342
|
// change once under a store-owned key, and a replay after commit answers the subscription's CURRENT state with no
|
|
@@ -315,6 +357,20 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
315
357
|
updatedAt: '2026-06-22T11:00:00.000Z',
|
|
316
358
|
},
|
|
317
359
|
forStatus: HttpResponseStatusCode.OK_200,
|
|
360
|
+
}, {
|
|
361
|
+
title: 'Downgrade from Business to Team at the end of the period',
|
|
362
|
+
request: { newProductKey: 'team_plan', newPriceId: 'price_team_monthly', previewToken: '<previewToken returned by preview-plan-change>' },
|
|
363
|
+
response: {
|
|
364
|
+
...subscriptionExample,
|
|
365
|
+
pendingPlanChange: {
|
|
366
|
+
productId: 'product_team_plan',
|
|
367
|
+
priceId: 'price_team_monthly',
|
|
368
|
+
effectiveAt: subscriptionExample.currentPeriodEnd,
|
|
369
|
+
items: [{ _id: 'subscription_item_team_01HX2EXAMPLE', productId: 'product_team_plan', priceId: 'price_team_monthly', quantity: 1 }],
|
|
370
|
+
},
|
|
371
|
+
updatedAt: '2026-06-22T11:00:00.000Z',
|
|
372
|
+
},
|
|
373
|
+
forStatus: HttpResponseStatusCode.OK_200,
|
|
318
374
|
}],
|
|
319
375
|
},
|
|
320
376
|
[BillingSubscription_Operations.ADD_ADDON]: {
|
|
@@ -327,20 +383,22 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
327
383
|
errorScenarios: [
|
|
328
384
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'An existing subscription item has no recorded provider item ID. Repair the missing provider identity before changing items; routine status reconciliation does not repair item IDs. The request is refused before provider mutation.', errorCode: 'billing_existing_provider_item_missing' },
|
|
329
385
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider applied the add-on but its answer does not identify the item it created. The local write is refused rather than recording an item nothing can target later; the add-on stays applied, asking again sends nothing, and it is owed to recovery.', errorCode: 'billing_created_provider_item_unresolved' },
|
|
330
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The `addonProductKey` / `priceId` is missing or fails request-DTO validation.'
|
|
331
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`addonProductKey` identifies a product that is not an ADDON.',
|
|
332
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`priceId` names a price whose `productId` is not the add-on product’s. Same split as CHANGE_PLAN: the provider bills the price, the item records the product, and entitlements follow the product.',
|
|
333
|
-
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The add-on requires a plan tier the subscription’s plan does not have. A 422 carries no `error.code`: branch on its `customMessageReference`.',
|
|
386
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The `addonProductKey` / `priceId` is missing or fails request-DTO validation.' },
|
|
387
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`addonProductKey` identifies a product that is not an ADDON.', customMessageReference: ErrorCustomMessageReference.BILLING_INVALID_PRODUCT_TYPE },
|
|
388
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`priceId` names a price whose `productId` is not the add-on product’s. Same split as CHANGE_PLAN: the provider bills the price, the item records the product, and entitlements follow the product.', customMessageReference: ErrorCustomMessageReference.BILLING_PRICE_PRODUCT_MISMATCH },
|
|
389
|
+
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The add-on requires a plan tier the subscription’s plan does not have. A 422 carries no `error.code`: branch on its `customMessageReference`.', customMessageReference: ErrorCustomMessageReference.BILLING_PLAN_TIER_REQUIRED },
|
|
334
390
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to add an add-on (a HIGH-risk commercial action).' },
|
|
335
391
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No subscription exists for the supplied id, or the add-on product is not in the catalog.' },
|
|
336
|
-
{ code: HttpResponseStatusCode.CONFLICT_409, when: '`addonProductKey` (or the price named by `priceId`) has been RETIRED from the code catalogue and may no longer be bought.',
|
|
392
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: '`addonProductKey` (or the price named by `priceId`) has been RETIRED from the code catalogue and may no longer be bought.', customMessageReference: ErrorCustomMessageReference.BILLING_PRODUCT_RETIRED },
|
|
393
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: '`addonProductKey` is announced but not yet on sale (catalogue `availability` UPCOMING) and may not be bought yet.', customMessageReference: ErrorCustomMessageReference.BILLING_PRODUCT_NOT_YET_AVAILABLE },
|
|
337
394
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'Another change holds this subscription’s mutation slot, or this same request (the same Idempotency-Key) is still running. Nothing was sent to the provider by this request; retry later with the same key.', errorCode: 'billing_subscription_mutation_in_progress' },
|
|
338
395
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider may have applied this add-on and nothing has yet established whether it did (a lost response, a timeout, a server error). Asking again sends nothing; the subscription is held until recovery resolves it.', errorCode: 'billing_subscription_mutation_outcome_unknown' },
|
|
339
396
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider refused the add-on and applied nothing. The refusal is recorded and the subscription is free again.', errorCode: 'billing_subscription_mutation_provider_rejected' },
|
|
397
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A plan change is pending at the end of the period. Withdraw it with cancel-plan-change first; one pending change at a time, so the provider’s schedule and the subscription can never describe two different futures. Refused before anything is admitted or sent.', errorCode: 'billing_subscription_plan_change_pending' },
|
|
340
398
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'This request’s hold on the subscription’s mutation generation was taken over before it finished. Nothing was sent twice.', errorCode: 'billing_subscription_mutation_claim_lost' },
|
|
341
399
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription’s billing account or provider identity changed since its mutation slot was created, or since the add-on was admitted. If the provider had already applied it, it stays owed to recovery.', errorCode: 'billing_subscription_mutation_slot_identity_changed' },
|
|
342
400
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription’s items changed after the provider applied the add-on, so writing the items it was computed against would discard that change. The add-on stays applied and the subscription is held until recovery resolves it.', errorCode: 'billing_subscription_mutation_items_changed' },
|
|
343
|
-
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.',
|
|
401
|
+
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.', customMessageReference: ErrorCustomMessageReference.IDEMPOTENCY_KEY_REUSED },
|
|
344
402
|
],
|
|
345
403
|
// Idempotent per key (#535 S5b). The key is REQUIRED: a repeat with it replays the committed addition without contacting the
|
|
346
404
|
// provider, and the same key with a different request is refused 422. Without the key there is nothing to replay, so the
|
|
@@ -373,18 +431,19 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
373
431
|
{ code: HttpResponseStatusCode.OK_200, meaning: 'The add-on line item was removed at the provider and dropped from the subscription’s items array. A repeat with the same Idempotency-Key after it committed answers the subscription as it is now, without contacting the provider again.' },
|
|
374
432
|
],
|
|
375
433
|
errorScenarios: [
|
|
376
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The `addonProductKey` is missing or fails request-DTO validation.'
|
|
377
|
-
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`addonProductKey` identifies a product that is not an ADDON.',
|
|
434
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The `addonProductKey` is missing or fails request-DTO validation.' },
|
|
435
|
+
{ code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`addonProductKey` identifies a product that is not an ADDON.', customMessageReference: ErrorCustomMessageReference.BILLING_INVALID_PRODUCT_TYPE },
|
|
378
436
|
{ code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner/org-admin role required to remove an add-on (a HIGH-risk commercial action).' },
|
|
379
437
|
{ code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No subscription exists for the supplied id, or the named add-on is not present on the subscription.' },
|
|
380
438
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A matching add-on entry has no recorded provider subscription-item ID, so the deletion cannot be targeted safely.', errorCode: 'billing_addon_provider_item_missing' },
|
|
381
439
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'Another change holds this subscription’s mutation slot, or this same request (the same Idempotency-Key) is still running. Nothing was sent to the provider by this request; retry later with the same key.', errorCode: 'billing_subscription_mutation_in_progress' },
|
|
382
440
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider may have applied this removal and nothing has yet established whether it did (a lost response, a timeout, a server error). Asking again sends nothing; the subscription is held until recovery resolves it.', errorCode: 'billing_subscription_mutation_outcome_unknown' },
|
|
383
441
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The provider refused the removal and applied nothing. The refusal is recorded and the subscription is free again.', errorCode: 'billing_subscription_mutation_provider_rejected' },
|
|
442
|
+
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'A plan change is pending at the end of the period. Withdraw it with cancel-plan-change first; one pending change at a time, so the provider’s schedule and the subscription can never describe two different futures. Refused before anything is admitted or sent.', errorCode: 'billing_subscription_plan_change_pending' },
|
|
384
443
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'This request’s hold on the subscription’s mutation generation was taken over before it finished. Nothing was sent twice.', errorCode: 'billing_subscription_mutation_claim_lost' },
|
|
385
444
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription’s billing account or provider identity changed since its mutation slot was created, or since the removal was admitted. If the provider had already applied it, it stays owed to recovery.', errorCode: 'billing_subscription_mutation_slot_identity_changed' },
|
|
386
445
|
{ code: HttpResponseStatusCode.CONFLICT_409, when: 'The subscription’s items changed after the provider applied the removal, so writing the items it was computed against would discard that change. The removal stays applied and the subscription is held until recovery resolves it.', errorCode: 'billing_subscription_mutation_items_changed' },
|
|
387
|
-
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.',
|
|
446
|
+
{ code: HttpResponseStatusCode.UNPROCESSABLE_ENTITY_422, when: 'The Idempotency-Key was already used for a DIFFERENT request to this operation — another actor, or other request values. Nothing is sent or replayed; use a new key for a new request. A 422 carries no `error.code`: branch on its `customMessageReference`.', customMessageReference: ErrorCustomMessageReference.IDEMPOTENCY_KEY_REUSED },
|
|
388
447
|
],
|
|
389
448
|
// Idempotent per key (#535 S5b). The key is REQUIRED: a repeat with it replays the committed removal without contacting the
|
|
390
449
|
// provider, and the same key with a different request is refused 422.
|
|
@@ -402,7 +461,7 @@ function buildSubscriptionBase(resourceType, memberName) {
|
|
|
402
461
|
},
|
|
403
462
|
},
|
|
404
463
|
businessConstraints: [
|
|
405
|
-
'
|
|
464
|
+
'The `discounts` list, `trialStart` and `trialEnd` are copied from the billing provider on every provider event and by the reconciliation sweep, and are cleared when the provider no longer holds them. They are read-only. `discounts` holds every discount the provider applies, in the order it applies them: a referral reward added beside a checkout promotion is a second entry, and both are charged.',
|
|
406
465
|
],
|
|
407
466
|
}), { resourcePrimaryScope: subResourcePrimaryScopeByResourceType[resourceType] });
|
|
408
467
|
}
|
|
@@ -422,6 +481,7 @@ function buildSubscriptionSpec(resourceType, memberName) {
|
|
|
422
481
|
[BillingSubscription_Operations.CHANGE_PLAN]: { purpose: 'Plan migration host for upgrade/downgrade UX.', whenToUse: 'When catalog offers multiple prices for the same product line.' },
|
|
423
482
|
[BillingSubscription_Operations.ADD_ADDON]: { purpose: 'Attach add-on SKUs to the active subscription.', whenToUse: 'When add-on products exist in the catalog.' },
|
|
424
483
|
[BillingSubscription_Operations.REMOVE_ADDON]: { purpose: 'Detach an add-on line item.', whenToUse: 'When seat-based or feature add-ons can be removed mid-cycle per policy.' },
|
|
484
|
+
[BillingSubscription_Operations.CANCEL_PLAN_CHANGE]: { purpose: 'Withdraw a plan change pending at the end of the period.', whenToUse: 'When the customer changes their mind about a scheduled downgrade before renewal.' },
|
|
425
485
|
},
|
|
426
486
|
}));
|
|
427
487
|
}
|