@wildo-ai/saas-specifications 1.1.4 → 1.1.5
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/assurance/external-framework-mapping.json +1228 -0
- package/dist/esm/_catalogs/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/aggregate-rating.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/article.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/blog-posting.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/breadcrumb-list.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/faq-page.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/offer.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/organization.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/review.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_catalogs/schema-org/website.catalog-spec.d.ts.map +1 -1
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +34 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js +66 -0
- package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts +3 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +48 -0
- package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +201 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js +306 -0
- package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +304 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js +314 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -0
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +2 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js +4 -1
- package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
- package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +5 -4
- package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.js +4 -1
- package/dist/esm/_core/assertions/assertion-specification.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts +5 -4
- package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-asset.schemas.js +7 -4
- package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-audience.schemas.d.ts +31 -0
- package/dist/esm/_core/brand/brand-audience.schemas.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-audience.schemas.js +29 -0
- package/dist/esm/_core/brand/brand-audience.schemas.js.map +1 -0
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/brand/brand-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts +4 -4
- package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +12 -9
- package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-logo-direction.schemas.js +12 -7
- package/dist/esm/_core/brand/brand-logo-direction.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand-name.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot-validation.js +1 -8
- package/dist/esm/_core/brand/brand-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -12
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +7 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +2 -2
- package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand.family-aspects.js +12 -1
- package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +252 -2
- 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-generation.schemas.js +19 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +121 -1
- 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 +215 -2
- 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 +703 -14
- 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 +536 -7
- 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 +82 -2
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +3 -3
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +1 -1
- package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +4 -3
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +4 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +36 -0
- package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js +52 -1
- package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +22 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +89 -0
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts +3 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js +26 -0
- package/dist/esm/_core/capability-composition/capability-composition.family-aspects.js.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +141 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +147 -0
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -0
- package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-completeness-statement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +42 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +60 -2
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +95 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js +85 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +245 -7
- 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 +227 -3
- package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +98 -6
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +197 -8
- package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +64 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +283 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -0
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +30 -1
- package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +218 -4
- package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js +147 -2
- package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +70 -3
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +75 -3
- package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.d.ts +14 -0
- package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/composite-view-specification.schemas.js +13 -0
- package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.d.ts +6 -4
- package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
- package/dist/esm/_core/cross-registry-assertions.js +7 -5
- package/dist/esm/_core/cross-registry-assertions.js.map +1 -1
- package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
- package/dist/esm/_core/definition-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +5 -4
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +5 -2
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +30 -0
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +99 -6
- package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/error-message-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +58 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +71 -0
- package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +37 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.js +83 -0
- package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +78 -0
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +285 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +293 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -0
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +9 -2
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +7 -0
- package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts +18 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js +21 -0
- package/dist/esm/_core/expert-personas/expert-personas.family-aspects.js.map +1 -0
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +19 -0
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +23 -0
- package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.registry.js +22 -1
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/family-aspects.schemas.d.ts +64 -1
- 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 +34 -34
- package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
- package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +1 -1
- package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts-validation.d.ts.map +1 -1
- 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 +6 -1
- package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
- package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -15
- package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/guidance-flow-specification.schemas.js +12 -11
- package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
- package/dist/esm/_core/index.d.ts +16 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +16 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +52 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +50 -0
- package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts +27 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.js +63 -0
- package/dist/esm/_core/integration-plan/integration-plan-validation.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +52 -0
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +168 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js +170 -0
- package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -0
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts +6 -5
- package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/feature-benefit.schemas.js +5 -2
- package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
- package/dist/esm/_core/market/inherit-from.d.ts.map +1 -1
- package/dist/esm/_core/market/is-benefit-available.d.ts.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-alternative.schemas.js +4 -1
- package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +11 -9
- package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-authored-metadata.schemas.js +13 -10
- package/dist/esm/_core/market/market-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js +4 -1
- package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-category.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.d.ts +6 -5
- package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-channel.schemas.js +6 -3
- package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-context-block.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-gain.schemas.js +4 -1
- package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts +12 -11
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +12 -9
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-job.schemas.js +4 -1
- package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-message-template.schemas.js +5 -2
- package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-objection.schemas.js +4 -1
- package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-pain.schemas.js +4 -1
- package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.d.ts +5 -4
- package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-persona.schemas.js +5 -2
- package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
- package/dist/esm/_core/market/market-positioning.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-proof.schemas.js +4 -1
- package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-scoring.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +68 -68
- package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
- package/dist/esm/_core/market/market-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js +4 -1
- package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.d.ts +4 -3
- package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-trigger.schemas.js +4 -1
- package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/market/market.family-aspects.js +25 -1
- package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
- package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +27 -22
- package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -12
- package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +21 -21
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +8 -0
- package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js +17 -1
- package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +24 -1
- package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +66 -39
- package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js +50 -16
- package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
- package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.d.ts +3 -0
- package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
- package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
- package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -2
- package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -4
- package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js +3 -1
- package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
- package/dist/esm/_core/resource-specification-registry-alignment.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.d.ts +8 -0
- package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
- package/dist/esm/_core/resource-type-member-name.types.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +2 -2
- package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +5 -0
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js +1 -8
- package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +2 -2
- package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js +1 -1
- package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -1
- package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/system-email-template-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/translation-slot-specification.schemas.d.ts.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/extract-field-specs.js +4 -2
- package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -1
- package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -1
- package/dist/esm/_core/utils/retention-marker-field-specs.d.ts.map +1 -1
- package/dist/esm/_core/utils/validate-field-shapes.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +3 -2
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.js +5 -2
- package/dist/esm/_core/vision/vision-authored-metadata.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-idea.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-mission.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-problem.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-references.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
- package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
- package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.js +1 -1
- package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -1
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +45 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +55 -0
- package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts +37 -0
- package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan-validation.js +77 -0
- package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts +3 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js +35 -0
- package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +194 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.js +193 -0
- package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -0
- package/dist/esm/_core/zod-core-nameability.d.ts +47 -0
- package/dist/esm/_core/zod-core-nameability.d.ts.map +1 -0
- package/dist/esm/_core/zod-core-nameability.js +1 -0
- package/dist/esm/_core/zod-core-nameability.js.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +86 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +96 -0
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -0
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +139 -34
- 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 +182 -11
- package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +71 -2
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +88 -1
- package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts +14 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.d.ts.map +1 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.js +17 -0
- package/dist/esm/application-creation/creator-inputs.family-aspects.js.map +1 -0
- package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/document-facts.family-aspects.js +25 -1
- package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.js +1 -1
- package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -1
- package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +14 -48
- package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/journey.application-creation.schemas.js +52 -52
- package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +209 -503
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +257 -542
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/specification-content-validation-state.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +10 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +10 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +73 -8
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +103 -8
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +24 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +1 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +24 -0
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -0
- package/dist/esm/assurance/application-document-publication.schemas.d.ts +49 -0
- package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/application-document-publication.schemas.js +51 -0
- package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
- package/dist/esm/assurance/application-document-release-set.schemas.d.ts +161 -0
- package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/application-document-release-set.schemas.js +138 -0
- package/dist/esm/assurance/application-document-release-set.schemas.js.map +1 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.d.ts +28 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.js +58 -0
- package/dist/esm/assurance/application-risk-register.family-aspects.js.map +1 -0
- package/dist/esm/assurance/application-risk-register.schemas.d.ts +172 -0
- package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-register.schemas.js +192 -0
- package/dist/esm/assurance/application-risk-register.schemas.js.map +1 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +177 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -0
- package/dist/esm/assurance/application-risk-signals.derivations.js +229 -0
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -0
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +246 -13
- package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.definitions.js +821 -87
- package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +100 -34
- package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js +38 -1
- package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
- 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 +99 -8
- package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts +133 -41
- package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-document-system.schemas.js +60 -11
- package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +470 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +451 -0
- package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -0
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +0 -46
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1613 -406
- package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts +21 -0
- package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-foundation.schemas.js +21 -0
- package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +2 -2
- package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js +108 -5
- package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +257 -14
- package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program-generation.schemas.js +588 -45
- package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts +32 -8
- package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.family-aspects.js +288 -10
- package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.d.ts +1180 -347
- package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-program.schemas.js +458 -74
- 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 +70 -2
- package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.d.ts +17 -0
- package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-sources.schemas.js +17 -0
- package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +179 -6
- package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.js +1 -1
- package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -1
- package/dist/esm/assurance/document-release-set.family-aspects.d.ts +11 -0
- package/dist/esm/assurance/document-release-set.family-aspects.d.ts.map +1 -0
- package/dist/esm/assurance/document-release-set.family-aspects.js +36 -0
- package/dist/esm/assurance/document-release-set.family-aspects.js.map +1 -0
- package/dist/esm/assurance/governed-document-release.d.ts +211 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -0
- package/dist/esm/assurance/governed-document-release.js +314 -0
- package/dist/esm/assurance/governed-document-release.js.map +1 -0
- package/dist/esm/assurance.exports.d.ts +5 -0
- package/dist/esm/assurance.exports.d.ts.map +1 -1
- package/dist/esm/assurance.exports.js +5 -0
- package/dist/esm/assurance.exports.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +135 -11
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/_bootstrap.d.ts +1 -1
- package/dist/esm/engine/_bootstrap.d.ts.map +1 -1
- package/dist/esm/engine/_bootstrap.js +1 -1
- package/dist/esm/engine/_bootstrap.js.map +1 -1
- package/dist/esm/engine/applications/index.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +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 +1 -1
- 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 +0 -23
- 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 +110 -28
- 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 +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 +1 -1
- package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
- package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
- package/dist/esm/engine/applications/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +11 -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 +67 -10
- package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/index.d.ts +1 -0
- package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/index.js +1 -0
- package/dist/esm/engine/auth/resources/index.js.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +4 -4
- 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 +57 -6
- package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts +9 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js +141 -0
- package/dist/esm/engine/auth/resources/organization-onboarding-operations.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +4 -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 +10 -6
- 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.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 +5 -4
- 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.map +1 -1
- 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.map +1 -1
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts +4 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js +129 -0
- package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts +19 -7
- 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 +24 -13
- 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 +0 -40
- 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 +5 -26
- 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 +6 -2
- 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 +16 -3
- 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 +5 -2
- 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 +10 -16
- package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/index.d.ts.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 +15 -5
- package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/billing-api-reference-examples.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts +9 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js +164 -0
- package/dist/esm/engine/billing/resources/billing-effect-outbox.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts +14 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +124 -0
- package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts +9 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js +123 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-completions.resource.specification.js.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts +11 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js +172 -0
- package/dist/esm/engine/billing/resources/billing-subscription-mutation-intents.resource.specification.js.map +1 -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.map +1 -1
- package/dist/esm/engine/billing/resources/index.d.ts +4 -0
- package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/index.js +4 -0
- package/dist/esm/engine/billing/resources/index.js.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +3 -3
- package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +3 -3
- package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
- package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +92 -36
- package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
- package/dist/esm/engine/compliance/index.d.ts.map +1 -1
- package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -7
- 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 +72 -13
- 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 +1 -1
- 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.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/user-governed-document-acceptances.resource.specification.d.ts +16 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +183 -0
- package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.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 +24 -0
- package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
- package/dist/esm/engine/engine-resource-sub-domain.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 +104 -19
- package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
- package/dist/esm/engine/errors/index.d.ts.map +1 -1
- package/dist/esm/engine/features/_engine-feature-shared.d.ts.map +1 -1
- package/dist/esm/engine/features/advanced-analytics.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
- package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
- package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/directory-provisioning.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/index.d.ts.map +1 -1
- package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.d.ts.map +1 -1
- 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 +2 -1
- package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/organization-features.resource.specification.js +1 -0
- 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 +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -1
- package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
- package/dist/esm/engine/features/security-event-export.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/features/single-sign-on.feature.specification.d.ts.map +1 -1
- package/dist/esm/engine/files/index.d.ts.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 +14 -2
- package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
- package/dist/esm/engine/files/resources/index.d.ts.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.map +1 -1
- package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +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/flow-actor-executions.resource.specification.d.ts +3 -0
- 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 +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
- package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +14 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +184 -0
- package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/action-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group-text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js +18 -0
- package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-code-block.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js +21 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-diff-block.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-image.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-web-preview.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-message.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-sources.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestions.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-decision-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/decision/ai-human-input-request.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-confirmation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-queue.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-task.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/execution/ai-tool.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-connection.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-controls.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-edge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/graph/ai-toolbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-capabilities.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-prompt-spec.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-context.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-model-selector.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/meta/ai-open-in-chat.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/shared/ai-loader.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/shared/ai-shimmer.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-checkpoint.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-inline-citation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-plan.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/ai-elements/trace/ai-reasoning.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +82 -0
- package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +6 -5
- 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-consent-gate.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/app-layout-consent-gate.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-home.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-router-error-boundary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +81 -0
- package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/app/app-layouts-test-component.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +4 -2
- package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-static-content-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js +3 -2
- package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-mfa-challenge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-consent.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logged-out.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logout-confirm.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-one-off-session.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-organization-onboarding.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-confirm-email.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-password-lost.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js +4 -4
- package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +4 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +21 -0
- package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.d.ts.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/billing/billing-subscription-status.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/avatar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-details.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js +20 -2
- package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/description-term.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js +177 -0
- package/dist/esm/engine/frontend-components/data-display/duration.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/_display-field-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js +22 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-address.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-duration.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-enum.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-audio.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js +10 -2
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-gallery.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-image.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-video.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.extra-props.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-phone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/formatters/display-field-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js +166 -0
- package/dist/esm/engine/frontend-components/data-display/identifier.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js +122 -0
- package/dist/esm/engine/frontend-components/data-display/kbd.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/notification-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js +152 -0
- package/dist/esm/engine/frontend-components/data-display/timeline.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js +13 -0
- package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/danger-zone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/empty-state.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/error-display.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-lock-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-prompt.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/loading-overlay.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/loading-spinner.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/operations-confirm-critical.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/progress.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/skeleton.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/feedback/toast.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-actor.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-agent-config.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.d.ts.map +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-artifact-browser.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-plan.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-stream.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-execution.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-detail.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-memory.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/_framework-layout-form-field-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/_low-level-preset-wrapper-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/autosave-indicator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-content.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-description.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-error.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field-title.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/field.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-control.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-description.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-field.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-message.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/chromes/form-root.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/checkbox.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/switch.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle-group-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/calendar-day-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/calendar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/radio-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/radio-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/file/file-upload.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/file/image-crop.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-addon.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group-textarea.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/number/range-slider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/number/slider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js +92 -0
- package/dist/esm/engine/frontend-components/form/controls/string/inline-edit-text.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/password-input.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts +5 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +29 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -0
- package/dist/esm/engine/frontend-components/form/fields/form-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-boolean.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-duration.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-phone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-date.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-money.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-number.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-range-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/fields/form-field-time.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/form/form-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-announcement.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-banner.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-checklist-item.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-checklist.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-modal.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-onboarding-view.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-survey.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-tooltip.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/guidance/guidance-tour.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/chart-echarts.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/chart-widget.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-composite.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-execution.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-full-custom.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/high-level-views/high-level-views-not-found.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.d.ts +12 -0
- package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/index.js +40 -0
- package/dist/esm/engine/frontend-components/index.js.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts +25 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js +16 -2
- package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.js.map +1 -1
- package/dist/esm/engine/frontend-components/layout/aspect-ratio.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/carousel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/divider.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/resizable-panel-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/scroll-area.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout/separator.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-group.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-legend.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/layout-internals/low-level-overlay-container.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/activity-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/command-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/control-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/menubar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/notification-center.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/quick-action-button.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/quick-switcher.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/status-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/toolbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/breadcrumb.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/command.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/menu-bar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/navbar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/navigation/sidebar.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/alert-dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/alert.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/dialog.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/drawer.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/containers/sheet.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/context-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/dropdown-menu.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/hover-card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/popover.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/overlays/floating/tooltip.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-achievement-badge.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts +9 -0
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js +91 -7
- package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/resources/_framework-layout-resource-layout-spec.factory.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-action.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-breadcrumb.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-container-dialogs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-container-nested.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-create.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-danger-zone.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list-table.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operation-bulk.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-pagination.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-expandable.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary-table-row.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-search-table.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-search.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resource-layout-update.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit-search.frontend-component.preset-specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js +9 -3
- package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js +41 -1
- package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js +2 -2
- package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/sections/pagination.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/stacked-layout.frontend-component.specification.d.ts.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/table.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js +19 -1
- package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/typography/code.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/heading.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/label.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js +3 -3
- package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/frontend-components/typography/strong.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/subheading.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text-link.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +21 -1
- package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
- package/dist/esm/engine/full-custom-views/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/index.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
- package/dist/esm/engine/guidance/resources/index.d.ts.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.map +1 -1
- package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +2 -0
- 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.map +1 -1
- package/dist/esm/engine/index.d.ts.map +1 -1
- package/dist/esm/engine/index.js.map +1 -1
- package/dist/esm/engine/infrastructure/index.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +48 -0
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.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 +3 -2
- package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +77 -3
- 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 +11 -3
- 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 +26 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +17 -8
- 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.d.ts +49 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +293 -0
- package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -0
- package/dist/esm/engine/notifications/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
- 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 +5 -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 +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.map +1 -1
- 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 +6 -6
- package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/authentication.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +3 -3
- package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
- package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
- 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.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
- 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.map +1 -1
- package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +3 -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 +27 -5
- 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 +1 -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 +31 -12
- package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -1
- package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/apple.provider.specification.js +2 -0
- package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/github.provider.specification.js +2 -0
- package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/google.provider.specification.js +2 -0
- package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/index.d.ts.map +1 -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 +12 -0
- package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/resend.provider.specification.js.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.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
- package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
- package/dist/esm/engine/roles/_engine-role-shared.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-billing-manager.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-marketing-editor.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-super-admin.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-admin-viewer.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-anonymous.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts +2 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.d.ts.map +1 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +21 -0
- package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -0
- package/dist/esm/engine/roles/app-public.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/app-user.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.d.ts +4 -3
- package/dist/esm/engine/roles/index.d.ts.map +1 -1
- package/dist/esm/engine/roles/index.js +6 -4
- package/dist/esm/engine/roles/index.js.map +1 -1
- package/dist/esm/engine/roles/org-admin.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-guest.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-manager.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-member.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/roles/org-owner.role.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/index.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +5 -3
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +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.d.ts +2 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/index.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -3
- 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 +2 -2
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -2
- 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 +5 -5
- 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 +1 -1
- package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
- 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 +3 -3
- 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.d.ts.map +1 -1
- 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 +1 -0
- package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
- package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts +1 -0
- package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
- package/dist/esm/engine/users/resources/users.resource.specification.js +2 -2
- package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
- package/dist/esm/index.d.ts +39 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +39 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +134 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +142 -0
- package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +35 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js +45 -0
- package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts +33 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.js +77 -0
- package/dist/esm/technical-documentation/application-documentation-plan-validation.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts +3 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js +40 -0
- package/dist/esm/technical-documentation/application-documentation-plan.family-aspects.js.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +122 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +138 -0
- package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -0
- 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 +7 -15
- package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-api-reference-targets.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-assets.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-capture.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-common.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-environment-identity.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js +1 -1
- package/dist/esm/technical-documentation/technical-documentation-publication.schemas.js.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +14 -0
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +16 -3
- package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
- package/dist/esm/technical-documentation.exports.d.ts +4 -0
- package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
- package/dist/esm/technical-documentation.exports.js +24 -0
- package/dist/esm/technical-documentation.exports.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -13
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -103
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +0 -1
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js +0 -76
- package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.js.map +0 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +0 -108
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +0 -1
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +0 -119
- package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +0 -1
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts +0 -3
- package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +0 -1
- package/dist/esm/application-creation-playbook-runtime.exports.js +0 -3
- package/dist/esm/application-creation-playbook-runtime.exports.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prices.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/billing/resources/prices.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,IAAI,iBAAiB,EAClD,4BAA4B,IAAI,gBAAgB,GACjD,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,eAAe,EACf,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EACpB,iDAAiD,IAAI,aAAa,GACnE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAK3E,MAAM,YAAY,GAAG,gBAAmE,CAAC;AACzF,MAAM,aAAa,GAAG,iBAAoE,CAAC;AAE3F,MAAM,UAAU,GAAG,qBAAqB,CACtC,aAAa,EACb,WAAW,EACX,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,+JAA+J;IACxK,YAAY,EAAE,yGAAyG;IACvH,aAAa,EAAE,uIAAuI;IACtJ,Q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EAAE,EAAE,OAAO,EAAE,2FAA2F,EAAE,EAAE,EAAE;YAC3U,KAAK,EAAE,EAAE,OAAO,EAAE,wEAAwE,EAAE,SAAS,EAAE,+BAA+B,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,EAAE,EAAE;YAClS,GAAG,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,SAAS,EAAE,oCAAoC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,mEAAmE,EAAE,EAAE,EAAE;YACrQ,YAAY,EAAE,EAAE,OAAO,EAAE,sEAAsE,EAAE,SAAS,EAAE,kFAAkF,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,yGAAyG,EAAE,EAAE,EAAE;SAChY;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,SAAS,EAAE,2BAA2B,EAAE;QAC3I,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,SAAS,EAAE,mCAAmC,EAAE;KACpJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n pricesAdminResourceUIBehavior as pricesAdminSource,\n pricesMainResourceUIBehavior as pricesMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n BillingInterval,\n PriceSchema,\n PricingModel,\n ResourcePrimaryScope,\n TaxDisplayMode,\n UsageAggregationType,\n pricesResourceConfiguration_InitializationFactory as pricesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof pricesFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\nconst pricesMainUI = pricesMainSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\nconst pricesAdminUI = pricesAdminSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nconst pricesBase = resourceSpecification<undefined, Core, Main>(\n pricesFactory,\n PriceSchema,\n ({ schemaShape }) => ({\n purpose: 'One way to pay for a product: its pricing model, amount, currency, billing interval and tiers. Checkout and subscriptions refer to a price by its identifier.',\n businessRole: 'Binds a catalog product to a billable money shape (flat, per-unit, tiered, …) the provider can invoice.',\n lifecycleRole: 'Admin-managed: created with products; activation toggles hide from new purchases without mutating old subscriptions in typical flows.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'PriceSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'pricesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'PRICES' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'pricesMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'pricesAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Price record id; referenced as `priceId` on subscription items.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n productId: schemaShape.productId.stringSpec({ meaning: 'FK to the owning `PRODUCTS` document.', importance: FieldSemanticImportance.PRIMARY }),\n model: schemaShape.model.enumSpec({\n meaning: 'Stripe-style pricing model for how quantity maps to line items.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'PricingModel', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [PricingModel.FLAT]: { meaning: 'One fixed price without per-seat scaling.' },\n [PricingModel.PER_UNIT]: { meaning: 'Linear in quantity (seats, tokens bucket).' },\n [PricingModel.TIERED]: { meaning: 'Volume pricing: the reached tier supplies the unit rate for the whole quantity.' },\n [PricingModel.GRADUATED]: { meaning: 'Graduated pricing: each quantity bracket is priced independently and the bracket amounts are added.' },\n [PricingModel.PACKAGE]: { meaning: 'Blocks of units sold as packages.' },\n },\n }),\n unitPrice: schemaShape.unitPrice.objectSpec({ meaning: 'Money object (amount + currency) for FLAT/PER_UNIT models; not used for pure tiered/graduated records that rely on `tiers` instead.' }),\n interval: schemaShape.interval.enumSpec({\n meaning: 'Billing period anchor when recurring.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'BillingInterval', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [BillingInterval.MONTH]: { meaning: 'Monthly cadence at provider.' },\n [BillingInterval.YEAR]: { meaning: 'Annual cadence at provider.' },\n },\n }),\n intervalCount: schemaShape.intervalCount.numberSpec({ meaning: 'Multiplier on interval (e.g. every 3 months).' }),\n tiers: schemaShape.tiers.arraySpec({ meaning: 'Tier ladder for TIERED/GRADUATED models with per-tier money blocks.', elementMeaning: 'One `PriceTierSchema` row with `upTo`, `unitPrice`, and `flatPrice` money objects.' }),\n packageSize: schemaShape.packageSize.numberSpec({ meaning: 'Units per price package for PACKAGE model pricing.' }),\n usageAggregation: schemaShape.usageAggregation.enumSpec({\n meaning:\n 'Authored intent for how a provider meter should roll up usage. The current application metering flush always groups pending local records by account and product and sums their quantities; it does not consume this field, so the provider meter configuration and observed invoice remain the effective billing proof.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageAggregationType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageAggregationType.SUM]: { meaning: 'Sum raw quantities in the period.' },\n [UsageAggregationType.MAX]: { meaning: 'Use peak usage in the period when the price model calls for it.' },\n [UsageAggregationType.LAST]: { meaning: 'Use the last reported sample in the window for certain meter designs.' },\n },\n }),\n taxBehavior: schemaShape.taxBehavior.enumSpec({\n meaning: 'Per-price tax display — overrides product-level `taxDisplayMode` when set.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'TaxDisplayMode', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [TaxDisplayMode.EXCLUSIVE]: { meaning: 'HT list amounts before tax in invoices using this price.' },\n [TaxDisplayMode.INCLUSIVE]: { meaning: 'TTC amounts embedded in the published price point.' },\n },\n }),\n providerPriceId: schemaShape.providerPriceId.stringSpec({ meaning: 'Provider price id for sync; backend-only in many responses.' }),\n isDefault: schemaShape.isDefault.booleanSpec({ meaning: 'Preferred default price for UIs that pick one price per product if multiple exist.' }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether new checkouts can select this price when multiple exist.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record creation time.', temporalRole: 'creation' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read price details for plan pickers, invoice lines, and admin audit.',\n outcome: 'Money + interval + tier blocks per schema.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The price record was found and its money / interval / tier blocks are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No price exists for the supplied id in the catalog.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'List prices; often filter by `productId` in application code.',\n outcome: 'All offers for a product in admin.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of price offers, optionally narrowed by `productId`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to browse the full price catalog.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Add a new offer row under a product when catalog expands.',\n outcome: 'New price id in catalog.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The price offer was created under its product and is returned with its server-assigned `priceId`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The price payload fails schema validation (e.g. a TIERED model with no `tiers`, or a missing `unitPrice` for FLAT/PER_UNIT).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to extend the price catalog.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced parent `productId` does not exist in the catalog.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A price already maps to the same provider price id (duplicate provider sync target).', errorCode: 'PROVIDER_PRICE_EXISTS' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Add a recurring per-seat monthly price to a product',\n request: {\n productId: 'prod_01HX2…',\n model: PricingModel.PER_UNIT,\n unitPrice: { amount: 1200, currency: 'usd' },\n interval: BillingInterval.MONTH,\n intervalCount: 1,\n isDefault: true,\n isActive: true,\n },\n response: {\n _id: 'price_01HX2…',\n productId: 'prod_01HX2…',\n model: PricingModel.PER_UNIT,\n interval: BillingInterval.MONTH,\n isActive: true,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Change activation, default flag, or money fields in controlled admin flows.',\n outcome: 'Patched row — verify provider sync rules before claiming invoices update retroactively.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The price record was patched (activation / default flag / money fields) and the updated DTO is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to mutate the price catalog.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No price exists for the supplied id in the catalog.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The price is already synced/locked at the provider in a way that forbids mutating immutable money fields (provider prices are immutable after creation).' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the price row when its owning product is deleted (composition `onParentDelete` cascade).',\n outcome: 'Every price under the product is removed together with the product — the composition parts do not outlive their whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The price record was deleted as part of the owning product’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_OWNER) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Tax behavior and tier arrays can be large — UI should paginate or collapse in admin when many tiers exist.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n\nexport const pricesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(pricesMainUI), resourceFrontendConfiguration(pricesAdminUI)),\n pricesBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` uses `model — interval` (or one-time) for a compact sublabel under the product context.' },\n layout: {\n purpose: 'Section refs `pricing`, `tiers`, `tax`, `availability` in billing presets: money + cadence, tier ladders, tax behavior, default/active flags.',\n displayPurpose: 'Merged admin adds LIST+READ `views` (non-addressable) on top of main empty-views for catalog admin browse.',\n sections: {\n pricing: { purpose: 'Model, `unitPrice`, and interval for the headline commercial terms.', whenToUse: 'Checkout price selection and subscription diff tools.', textSlots: { title: { purpose: 'Pricing block.' }, description: { purpose: 'Provider ids may exist as backend-only fields in implementation — not in this spec layer.' } } },\n tiers: { purpose: 'Volume tiers, package size, and usage aggregation for advanced models.', whenToUse: 'Metered and tiered SKUs only.', textSlots: { title: { purpose: 'Tiers block.' }, description: { purpose: 'Empty in flat pricing — UI should not imply misconfiguration when absent.' } } },\n tax: { purpose: 'Tax display behavior on invoices for this price.', whenToUse: 'Jurisdictional checkout messaging.', textSlots: { title: { purpose: 'Tax block.' }, description: { purpose: 'Not a legal tax engine in Wildo — provider calculates actual tax.' } } },\n availability: { purpose: '`isDefault` and `isActive` to steer which price auto-selects in UIs.', whenToUse: 'When multiple active prices per product are normal (regional, promo base, etc.).', textSlots: { title: { purpose: 'Availability block.' }, description: { purpose: 'Deactivating a price does not by itself change existing subscription items until change-plan flows run.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Merged admin LIST view entry (non-addressable in billing `views` wiring).', whenToUse: 'Catalog admin for prices.' },\n [Op.READ]: { purpose: 'Merged admin READ view entry (non-addressable in billing `views` wiring).', whenToUse: 'Admin drill-down on one price id.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"prices.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/prices.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,IAAI,iBAAiB,EAClD,4BAA4B,IAAI,gBAAgB,GACjD,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E,OAAO,EAAE,sEAAsE,EAAE,SAAS,EAAE,kFAAkF,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,yGAAyG,EAAE,EAAE,EAAE;SAChY;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,SAAS,EAAE,2BAA2B,EAAE;QAC3I,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,SAAS,EAAE,mCAAmC,EAAE;KACpJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n pricesAdminResourceUIBehavior as pricesAdminSource,\n pricesMainResourceUIBehavior as pricesMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n BillingInterval,\n PriceSchema,\n PricingModel,\n ResourcePrimaryScope,\n TaxDisplayMode,\n UsageAggregationType,\n pricesResourceConfiguration_InitializationFactory as pricesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof pricesFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\nconst pricesMainUI = pricesMainSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\nconst pricesAdminUI = pricesAdminSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nconst pricesBase = resourceSpecification<undefined, Core, Main>(\n pricesFactory,\n PriceSchema,\n ({ schemaShape }) => ({\n purpose: 'One way to pay for a product: its pricing model, amount, currency, billing interval and tiers. Checkout and subscriptions refer to a price by its identifier.',\n businessRole: 'Binds a catalog product to a billable money shape (flat, per-unit, tiered, …) the provider can invoice.',\n lifecycleRole: 'Admin-managed: created with products; activation toggles hide from new purchases without mutating old subscriptions in typical flows.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'PriceSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'pricesResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'PRICES' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'pricesMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'pricesAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Price record id; referenced as `priceId` on subscription items.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n productId: schemaShape.productId.stringSpec({ meaning: 'FK to the owning `PRODUCTS` document.', importance: FieldSemanticImportance.PRIMARY }),\n model: schemaShape.model.enumSpec({\n meaning: 'Stripe-style pricing model for how quantity maps to line items.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'PricingModel', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [PricingModel.FLAT]: { meaning: 'One fixed price without per-seat scaling.' },\n [PricingModel.PER_UNIT]: { meaning: 'Linear in quantity (seats, tokens bucket).' },\n [PricingModel.TIERED]: { meaning: 'Volume pricing: the reached tier supplies the unit rate for the whole quantity.' },\n [PricingModel.GRADUATED]: { meaning: 'Graduated pricing: each quantity bracket is priced independently and the bracket amounts are added.' },\n [PricingModel.PACKAGE]: { meaning: 'Blocks of units sold as packages.' },\n },\n }),\n unitPrice: schemaShape.unitPrice.objectSpec({ meaning: 'Money object (amount + currency) for FLAT/PER_UNIT models; not used for pure tiered/graduated records that rely on `tiers` instead.' }),\n interval: schemaShape.interval.enumSpec({\n meaning: 'Billing period anchor when recurring.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'BillingInterval', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [BillingInterval.MONTH]: { meaning: 'Monthly cadence at provider.' },\n [BillingInterval.YEAR]: { meaning: 'Annual cadence at provider.' },\n },\n }),\n intervalCount: schemaShape.intervalCount.numberSpec({ meaning: 'Multiplier on interval (e.g. every 3 months).' }),\n tiers: schemaShape.tiers.arraySpec({ meaning: 'Tier ladder for TIERED/GRADUATED models with per-tier money blocks.', elementMeaning: 'One `PriceTierSchema` row with `upTo`, `unitPrice`, and `flatPrice` money objects.' }),\n packageSize: schemaShape.packageSize.numberSpec({ meaning: 'Units per price package for PACKAGE model pricing.' }),\n usageAggregation: schemaShape.usageAggregation.enumSpec({\n meaning:\n 'Authored intent for how a provider meter should roll up usage. The current application metering flush always groups pending local records by account and product and sums their quantities; it does not consume this field, so the provider meter configuration and observed invoice remain the effective billing proof.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'UsageAggregationType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [UsageAggregationType.SUM]: { meaning: 'Sum raw quantities in the period.' },\n [UsageAggregationType.MAX]: { meaning: 'Use peak usage in the period when the price model calls for it.' },\n [UsageAggregationType.LAST]: { meaning: 'Use the last reported sample in the window for certain meter designs.' },\n },\n }),\n taxBehavior: schemaShape.taxBehavior.enumSpec({\n meaning: 'Per-price tax display — overrides product-level `taxDisplayMode` when set.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'TaxDisplayMode', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [TaxDisplayMode.EXCLUSIVE]: { meaning: 'HT list amounts before tax in invoices using this price.' },\n [TaxDisplayMode.INCLUSIVE]: { meaning: 'TTC amounts embedded in the published price point.' },\n },\n }),\n providerPriceId: schemaShape.providerPriceId.stringSpec({ meaning: 'Provider price id for sync; backend-only in many responses.' }),\n isDefault: schemaShape.isDefault.booleanSpec({ meaning: 'Preferred default price for UIs that pick one price per product if multiple exist.' }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether new checkouts can select this price when multiple exist.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record creation time.', temporalRole: 'creation' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read price details for plan pickers, invoice lines, and admin audit.',\n outcome: 'Money + interval + tier blocks per schema.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The price record was found and its money / interval / tier blocks are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No price exists for the supplied id in the catalog.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'List prices; often filter by `productId` in application code.',\n outcome: 'All offers for a product in admin.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of price offers, optionally narrowed by `productId`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to browse the full price catalog.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Add a new offer row under a product when catalog expands.',\n outcome: 'New price id in catalog.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The price offer was created under its product and is returned with its server-assigned `priceId`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The price payload fails schema validation (e.g. a TIERED model with no `tiers`, or a missing `unitPrice` for FLAT/PER_UNIT).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to extend the price catalog.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced parent `productId` does not exist in the catalog.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A price already maps to the same provider price id (duplicate provider sync target).', errorCode: 'PROVIDER_PRICE_EXISTS' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Add a recurring per-seat monthly price to a product',\n request: {\n productId: 'prod_01HX2…',\n model: PricingModel.PER_UNIT,\n unitPrice: { amount: 1200, currency: 'usd' },\n interval: BillingInterval.MONTH,\n intervalCount: 1,\n isDefault: true,\n isActive: true,\n },\n response: {\n _id: 'price_01HX2…',\n productId: 'prod_01HX2…',\n model: PricingModel.PER_UNIT,\n interval: BillingInterval.MONTH,\n isActive: true,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Change activation, default flag, or money fields in controlled admin flows.',\n outcome: 'Patched row — verify provider sync rules before claiming invoices update retroactively.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The price record was patched (activation / default flag / money fields) and the updated DTO is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to mutate the price catalog.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No price exists for the supplied id in the catalog.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The price is already synced/locked at the provider in a way that forbids mutating immutable money fields (provider prices are immutable after creation).' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the price row when its owning product is deleted (composition `onParentDelete` cascade).',\n outcome: 'Every price under the product is removed together with the product — the composition parts do not outlive their whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The price record was deleted as part of the owning product’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (ORG_OWNER) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Tax behavior and tier arrays can be large — UI should paginate or collapse in admin when many tiers exist.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n\nexport const pricesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(pricesMainUI), resourceFrontendConfiguration(pricesAdminUI)),\n pricesBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` uses `model — interval` (or one-time) for a compact sublabel under the product context.' },\n layout: {\n purpose: 'Section refs `pricing`, `tiers`, `tax`, `availability` in billing presets: money + cadence, tier ladders, tax behavior, default/active flags.',\n displayPurpose: 'Merged admin adds LIST+READ `views` (non-addressable) on top of main empty-views for catalog admin browse.',\n sections: {\n pricing: { purpose: 'Model, `unitPrice`, and interval for the headline commercial terms.', whenToUse: 'Checkout price selection and subscription diff tools.', textSlots: { title: { purpose: 'Pricing block.' }, description: { purpose: 'Provider ids may exist as backend-only fields in implementation — not in this spec layer.' } } },\n tiers: { purpose: 'Volume tiers, package size, and usage aggregation for advanced models.', whenToUse: 'Metered and tiered SKUs only.', textSlots: { title: { purpose: 'Tiers block.' }, description: { purpose: 'Empty in flat pricing — UI should not imply misconfiguration when absent.' } } },\n tax: { purpose: 'Tax display behavior on invoices for this price.', whenToUse: 'Jurisdictional checkout messaging.', textSlots: { title: { purpose: 'Tax block.' }, description: { purpose: 'Not a legal tax engine in Wildo — provider calculates actual tax.' } } },\n availability: { purpose: '`isDefault` and `isActive` to steer which price auto-selects in UIs.', whenToUse: 'When multiple active prices per product are normal (regional, promo base, etc.).', textSlots: { title: { purpose: 'Availability block.' }, description: { purpose: 'Deactivating a price does not by itself change existing subscription items until change-plan flows run.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Merged admin LIST view entry (non-addressable in billing `views` wiring).', whenToUse: 'Catalog admin for prices.' },\n [Op.READ]: { purpose: 'Merged admin READ view entry (non-addressable in billing `views` wiring).', whenToUse: 'Admin drill-down on one price id.' },\n },\n }),\n);\n"]}
|
|
@@ -12,7 +12,7 @@ export declare const productsResourceSpecification: import("../../../_core").Res
|
|
|
12
12
|
planTier: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
13
13
|
planTierOrder: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
14
|
requiredPlanTiers: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
15
|
-
taxDisplayMode: import("zod").ZodOptional<import("zod").ZodEnum<typeof TaxDisplayMode>>;
|
|
15
|
+
taxDisplayMode: import("zod").ZodOptional<import("zod").ZodEnum<typeof import("@wildo-ai/external-connectors-models").TaxDisplayMode>>;
|
|
16
16
|
purchaseConfig: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
17
17
|
maxQuantityPerPurchase: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
18
18
|
creditsPerUnit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -24,11 +24,11 @@ export declare const productsResourceSpecification: import("../../../_core").Res
|
|
|
24
24
|
requirePaymentMethod: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
25
25
|
}, import("zod/v4/core").$strip>>;
|
|
26
26
|
upgrade: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
27
|
-
proration: import("zod").ZodDefault<import("zod").ZodEnum<typeof import("@wildo-ai/
|
|
27
|
+
proration: import("zod").ZodDefault<import("zod").ZodEnum<typeof import("@wildo-ai/external-connectors-models").ProrationBehavior>>;
|
|
28
28
|
timing: import("zod").ZodDefault<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").BillingTiming>>;
|
|
29
29
|
}, import("zod/v4/core").$strip>>;
|
|
30
30
|
downgrade: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
31
|
-
proration: import("zod").ZodDefault<import("zod").ZodEnum<typeof import("@wildo-ai/
|
|
31
|
+
proration: import("zod").ZodDefault<import("zod").ZodEnum<typeof import("@wildo-ai/external-connectors-models").ProrationBehavior>>;
|
|
32
32
|
timing: import("zod").ZodDefault<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").BillingTiming>>;
|
|
33
33
|
}, import("zod/v4/core").$strip>>;
|
|
34
34
|
cancellation: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.resource.specification.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"products.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/products.resource.specification.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,WAAW,EAEX,oBAAoB,EACpB,cAAc,EAEf,MAAM,uBAAuB,CAAC;AA8K/B,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAqBzC,CAAC"}
|
|
@@ -61,7 +61,7 @@ const productsBase = resourceSpecification(productsFactory, ProductSchema, ({ sc
|
|
|
61
61
|
},
|
|
62
62
|
}),
|
|
63
63
|
purchaseConfig: schemaShape.purchaseConfig.objectSpec({ meaning: 'Per-purchase options for one-time and credit products (max quantity, credits per unit, target credit pool key).' }),
|
|
64
|
-
behaviorPolicy: schemaShape.behaviorPolicy.objectSpec({ meaning: 'Nested policy for trial, proration, cancellation windows, and metering hooks
|
|
64
|
+
behaviorPolicy: schemaShape.behaviorPolicy.objectSpec({ meaning: 'Nested policy for trial, proration, cancellation windows, and metering hooks. An immediate cancellation default requires immediate cancellation to be allowed; contradictory cancellation policies are rejected during validation.' }),
|
|
65
65
|
providerProductId: schemaShape.providerProductId.stringSpec({ meaning: 'Provider-side id after first sync — backend-only in many API shapes.' }),
|
|
66
66
|
isPublic: schemaShape.isPublic.booleanSpec({ meaning: 'Visibility for self-serve catalog vs org-admin-only offer matrix.' }),
|
|
67
67
|
isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether the product is offered to new checkouts; historical subs may still reference inactive records.' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/billing/resources/products.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,IAAI,mBAAmB,EACtD,8BAA8B,IAAI,kBAAkB,GACrD,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,mDAAmD,IAAI,eAAe,GACvE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,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A0C,EAAE;QAC5K,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0DAA0D,EAAE,SAAS,EAAE,iDAAiD,EAAE;KACjJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n productsAdminResourceUIBehavior as productsAdminSource,\n productsMainResourceUIBehavior as productsMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ProductType,\n ProductSchema,\n ResourcePrimaryScope,\n TaxDisplayMode,\n productsResourceConfiguration_InitializationFactory as productsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof productsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\nconst productsMainUI = productsMainSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\nconst productsAdminUI = productsAdminSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nconst productsBase = resourceSpecification<undefined, Core, Main>(\n productsFactory,\n ProductSchema,\n ({ schemaShape }) => ({\n purpose: 'One product in the application\\'s catalog: the plan, add-on or credit pack an organization can subscribe to, with the features and limits it grants. The catalog is defined by the application, not edited per organization.',\n businessRole: 'Anchor for prices, promotions, and subscription line items; drives plan tiers, add-ons, and feature/limit grants.',\n lifecycleRole: 'Lazy DB row created from definitions; provider ids filled on first use; bulk sync in admin; edits are deployment-driven, not ad-hoc CRUD in end-user UI.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ProductSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'productsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'PRODUCTS' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'productsMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'productsAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Product document id in the app catalog collection.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n key: schemaShape.key.stringSpec({ meaning: 'Stable key that maps 1:1 to `ProductDefinition.key` in the code catalog — unique globally per app database.', importance: FieldSemanticImportance.PRIMARY }),\n type: schemaShape.type.enumSpec({\n meaning: 'Commercial shape of the product (PLAN, ADDON, METERED, etc.).',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'ProductType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [ProductType.PLAN]: { meaning: 'Primary subscription entitlements and tiering.' },\n [ProductType.ADDON]: { meaning: 'Optional capacity or feature on top of a plan.' },\n [ProductType.METERED]: { meaning: 'Usage-billed add-on; ties to `UsageRecord` records.' },\n [ProductType.ONE_TIME]: { meaning: 'One-shot purchase, not a recurring subscription state machine.' },\n [ProductType.CREDIT_PACK]: { meaning: 'Prepaid credits to a `CreditPool` balance.' },\n [ProductType.ITEM]: { meaning: 'Generic one-off line item in catalog semantics.' },\n },\n }),\n targetScopes: schemaShape.targetScopes.arraySpec({\n meaning: 'Which `ResourcePrimaryScope` values may attach subscriptions to this product (org vs user vs app).',\n elementMeaning: 'One primary scope discriminator the product is sold into.',\n elementType: {\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'ResourcePrimaryScope', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n }),\n grantedFeatures: schemaShape.grantedFeatures.arraySpec({\n meaning: 'Feature keys this product enables when the subscription line is active — merged by billing feature sync with ADDON rules.',\n elementMeaning: 'One string feature id from the app feature catalog.',\n }),\n grantedLimits: schemaShape.grantedLimits.objectSpec({ meaning: 'Named limit grants (`LimitGrantSchema`) and aggregation mode for entitlements in runtime checks.' }),\n planTier: schemaShape.planTier.stringSpec({ meaning: 'For PLAN: human tier label; used with `planTierOrder` for upgrade/downgrade heuristics.' }),\n planTierOrder: schemaShape.planTierOrder.numberSpec({ meaning: 'Numeric order for plan comparisons within the app.' }),\n requiredPlanTiers: schemaShape.requiredPlanTiers.arraySpec({ meaning: 'For ADDON: plan tier keys that must be active before this add-on is purchasable.', elementMeaning: 'One `planTier` string id.' }),\n taxDisplayMode: schemaShape.taxDisplayMode.enumSpec({\n meaning: 'Whether displayed prices for this product are tax-exclusive or tax-inclusive, overriding the global default when set.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'TaxDisplayMode', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [TaxDisplayMode.EXCLUSIVE]: { meaning: 'Amounts shown before tax; tax added at checkout.' },\n [TaxDisplayMode.INCLUSIVE]: { meaning: 'Amounts include tax in displayed totals.' },\n },\n }),\n purchaseConfig: schemaShape.purchaseConfig.objectSpec({ meaning: 'Per-purchase options for one-time and credit products (max quantity, credits per unit, target credit pool key).' }),\n behaviorPolicy: schemaShape.behaviorPolicy.objectSpec({ meaning: 'Nested policy for trial, proration, cancellation windows, and metering hooks — the authoritative behavior engine for this SKU in services.' }),\n providerProductId: schemaShape.providerProductId.stringSpec({ meaning: 'Provider-side id after first sync — backend-only in many API shapes.' }),\n isPublic: schemaShape.isPublic.booleanSpec({ meaning: 'Visibility for self-serve catalog vs org-admin-only offer matrix.' }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether the product is offered to new checkouts; historical subs may still reference inactive records.' }),\n sortOrder: schemaShape.sortOrder.numberSpec({ meaning: 'Display ordering in pickers and marketing surfaces.' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Opaque key/value for provider sync or A/B test tags — not PII by contract.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record creation time.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'Record update time for syncs.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one catalog row (features, keys, and limits) for admin and in-app gating code.',\n outcome: 'Full product + behavior policy in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The product catalog record was found and its full DTO (features, limits, behavior policy) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No product exists for the supplied id in this application catalog.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Browse the catalog in admin and tooling.',\n outcome: 'Paginated products for the application scope.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of catalog products for the application scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to browse the product catalog.' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Search by `key` / `type` per factory searchable fields in repository variant.',\n outcome: 'Filtered list for typeahead in admin UIs.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of products matching the `key` / `type` search query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to search the product catalog.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal service-pipeline lazy insert (not HTTP-exposed) of the first DB row for a `ProductDefinition` on demand.',\n outcome: 'Seeded `key` and immutable bits from the definition in services.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The product record was materialized from its `ProductDefinition` and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The product payload fails schema validation (e.g. missing `key` or unknown `type`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the platform/admin/repository path permitted to seed catalog rows.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A product with the same globally-unique `key` already exists in this application database.', errorCode: 'PRODUCT_KEY_EXISTS' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Materialize a plan product from its definition',\n request: {\n key: 'plan_pro',\n type: ProductType.PLAN,\n targetScopes: [ResourcePrimaryScope.ORGANIZATIONS],\n grantedFeatures: ['advanced_reporting'],\n planTier: 'pro',\n planTierOrder: 20,\n isPublic: true,\n isActive: true,\n },\n response: {\n _id: 'prod_01HX2…',\n key: 'plan_pro',\n type: ProductType.PLAN,\n planTier: 'pro',\n isActive: true,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Sync metadata, activation flags, or provider ids; not end-user ad-hoc edits in production discipline.',\n outcome: 'Patched product row per admin workflow.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The product record was patched and the updated catalog DTO is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to mutate the product catalog.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No product exists for the supplied id in this application catalog.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Code definitions remain the conceptual source of truth — treat DB as materialized state for the billing engine, not a CMS.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n\nexport const productsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(productsMainUI), resourceFrontendConfiguration(productsAdminUI)),\n productsBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` uses `key` for short catalog rows.' },\n layout: {\n purpose: 'Five section refs: `overview` (key, type, plan tier, feature grants), `tax` (tax display mode), `purchase` (credit pack config), `behavior` (policy), `visibility` (public/active/metadata).',\n displayPurpose: 'Main preset has no addressable `views` — merged admin adds LIST+READ for catalog browse (all non-addressable in billing presets).',\n sections: {\n overview: { purpose: 'Identity and tier information for a product in one card.', whenToUse: 'Admin or pricing tables.', textSlots: { title: { purpose: 'Product header.' }, description: { purpose: 'Feature/limit details follow `grantedFeatures` and `grantedLimits` in schema — not repeated field-by-field here.' } } },\n tax: { purpose: 'How tax is displayed on invoices for this product line.', whenToUse: 'When jurisdiction matters for checkout copy.', textSlots: { title: { purpose: 'Tax block.' }, description: { purpose: 'Does not set legal tax rates — that is the provider in production.' } } },\n purchase: { purpose: 'Per-unit, credit, and max-quantity options for one-time and credit products.', whenToUse: 'CREDIT_PACK and one-time flows.', textSlots: { title: { purpose: 'Purchase settings.' }, description: { purpose: 'Align with `ProductBehaviorPolicy` in implementation for when fields apply.' } } },\n behavior: { purpose: 'Policies for metering, trials, and add-on compatibility.', whenToUse: 'When tuning product-behavior for engineering.', textSlots: { title: { purpose: 'Behavior block.' }, description: { purpose: 'Backend enforcement lives in services — UI is a structured editor over the zod object.' } } },\n visibility: { purpose: 'Public, active, and free-form `metadata` for integrations.', whenToUse: 'Gating a product in marketing vs admin-only.', textSlots: { title: { purpose: 'Visibility block.' }, description: { purpose: 'Turning `isActive` off does not cancel existing subscriptions in typical billing semantics.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Merged admin exposes LIST in `views` as non-addressable; included for overlay truthfulness.', whenToUse: 'App operator catalog screens when wired.' },\n [Op.READ]: { purpose: 'Merged admin exposes READ in `views` as non-addressable.', whenToUse: 'Drill into one product in admin UIs when wired.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"products.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/products.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,+BAA+B,IAAI,mBAAmB,EACtD,8BAA8B,IAAI,kBAAkB,GACrD,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,mDAAmD,IAAI,eAAe,GACvE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAK3E,MAAM,cAAc,GAAG,kBAAqE,CAAC;AAC7F,MAAM,eAAe,GAAG,mBAAsE,CAAC;AAE/F,MAAM,YAAY,GAAG,qBAAqB,CACxC,eAAe,EACf,aAAa,EACb,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,C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\n productsMainResourceUIBehavior as productsMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ProductType,\n ProductSchema,\n ResourcePrimaryScope,\n TaxDisplayMode,\n productsResourceConfiguration_InitializationFactory as productsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof productsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\nconst productsMainUI = productsMainSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\nconst productsAdminUI = productsAdminSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nconst productsBase = resourceSpecification<undefined, Core, Main>(\n productsFactory,\n ProductSchema,\n ({ schemaShape }) => ({\n purpose: 'One product in the application\\'s catalog: the plan, add-on or credit pack an organization can subscribe to, with the features and limits it grants. The catalog is defined by the application, not edited per organization.',\n businessRole: 'Anchor for prices, promotions, and subscription line items; drives plan tiers, add-ons, and feature/limit grants.',\n lifecycleRole: 'Lazy DB row created from definitions; provider ids filled on first use; bulk sync in admin; edits are deployment-driven, not ad-hoc CRUD in end-user UI.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ProductSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'productsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'PRODUCTS' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'productsMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'productsAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Product document id in the app catalog collection.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n key: schemaShape.key.stringSpec({ meaning: 'Stable key that maps 1:1 to `ProductDefinition.key` in the code catalog — unique globally per app database.', importance: FieldSemanticImportance.PRIMARY }),\n type: schemaShape.type.enumSpec({\n meaning: 'Commercial shape of the product (PLAN, ADDON, METERED, etc.).',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'ProductType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [ProductType.PLAN]: { meaning: 'Primary subscription entitlements and tiering.' },\n [ProductType.ADDON]: { meaning: 'Optional capacity or feature on top of a plan.' },\n [ProductType.METERED]: { meaning: 'Usage-billed add-on; ties to `UsageRecord` records.' },\n [ProductType.ONE_TIME]: { meaning: 'One-shot purchase, not a recurring subscription state machine.' },\n [ProductType.CREDIT_PACK]: { meaning: 'Prepaid credits to a `CreditPool` balance.' },\n [ProductType.ITEM]: { meaning: 'Generic one-off line item in catalog semantics.' },\n },\n }),\n targetScopes: schemaShape.targetScopes.arraySpec({\n meaning: 'Which `ResourcePrimaryScope` values may attach subscriptions to this product (org vs user vs app).',\n elementMeaning: 'One primary scope discriminator the product is sold into.',\n elementType: {\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'ResourcePrimaryScope', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n }),\n grantedFeatures: schemaShape.grantedFeatures.arraySpec({\n meaning: 'Feature keys this product enables when the subscription line is active — merged by billing feature sync with ADDON rules.',\n elementMeaning: 'One string feature id from the app feature catalog.',\n }),\n grantedLimits: schemaShape.grantedLimits.objectSpec({ meaning: 'Named limit grants (`LimitGrantSchema`) and aggregation mode for entitlements in runtime checks.' }),\n planTier: schemaShape.planTier.stringSpec({ meaning: 'For PLAN: human tier label; used with `planTierOrder` for upgrade/downgrade heuristics.' }),\n planTierOrder: schemaShape.planTierOrder.numberSpec({ meaning: 'Numeric order for plan comparisons within the app.' }),\n requiredPlanTiers: schemaShape.requiredPlanTiers.arraySpec({ meaning: 'For ADDON: plan tier keys that must be active before this add-on is purchasable.', elementMeaning: 'One `planTier` string id.' }),\n taxDisplayMode: schemaShape.taxDisplayMode.enumSpec({\n meaning: 'Whether displayed prices for this product are tax-exclusive or tax-inclusive, overriding the global default when set.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'TaxDisplayMode', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [TaxDisplayMode.EXCLUSIVE]: { meaning: 'Amounts shown before tax; tax added at checkout.' },\n [TaxDisplayMode.INCLUSIVE]: { meaning: 'Amounts include tax in displayed totals.' },\n },\n }),\n purchaseConfig: schemaShape.purchaseConfig.objectSpec({ meaning: 'Per-purchase options for one-time and credit products (max quantity, credits per unit, target credit pool key).' }),\n behaviorPolicy: schemaShape.behaviorPolicy.objectSpec({ meaning: 'Nested policy for trial, proration, cancellation windows, and metering hooks. An immediate cancellation default requires immediate cancellation to be allowed; contradictory cancellation policies are rejected during validation.' }),\n providerProductId: schemaShape.providerProductId.stringSpec({ meaning: 'Provider-side id after first sync — backend-only in many API shapes.' }),\n isPublic: schemaShape.isPublic.booleanSpec({ meaning: 'Visibility for self-serve catalog vs org-admin-only offer matrix.' }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether the product is offered to new checkouts; historical subs may still reference inactive records.' }),\n sortOrder: schemaShape.sortOrder.numberSpec({ meaning: 'Display ordering in pickers and marketing surfaces.' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Opaque key/value for provider sync or A/B test tags — not PII by contract.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record creation time.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'Record update time for syncs.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read one catalog row (features, keys, and limits) for admin and in-app gating code.',\n outcome: 'Full product + behavior policy in implementation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The product catalog record was found and its full DTO (features, limits, behavior policy) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No product exists for the supplied id in this application catalog.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Browse the catalog in admin and tooling.',\n outcome: 'Paginated products for the application scope.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of catalog products for the application scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to browse the product catalog.' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Search by `key` / `type` per factory searchable fields in repository variant.',\n outcome: 'Filtered list for typeahead in admin UIs.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of products matching the `key` / `type` search query.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to search the product catalog.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Internal service-pipeline lazy insert (not HTTP-exposed) of the first DB row for a `ProductDefinition` on demand.',\n outcome: 'Seeded `key` and immutable bits from the definition in services.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The product record was materialized from its `ProductDefinition` and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The product payload fails schema validation (e.g. missing `key` or unknown `type`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the platform/admin/repository path permitted to seed catalog rows.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A product with the same globally-unique `key` already exists in this application database.', errorCode: 'PRODUCT_KEY_EXISTS' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Materialize a plan product from its definition',\n request: {\n key: 'plan_pro',\n type: ProductType.PLAN,\n targetScopes: [ResourcePrimaryScope.ORGANIZATIONS],\n grantedFeatures: ['advanced_reporting'],\n planTier: 'pro',\n planTierOrder: 20,\n isPublic: true,\n isActive: true,\n },\n response: {\n _id: 'prod_01HX2…',\n key: 'plan_pro',\n type: ProductType.PLAN,\n planTier: 'pro',\n isActive: true,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Sync metadata, activation flags, or provider ids; not end-user ad-hoc edits in production discipline.',\n outcome: 'Patched product row per admin workflow.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The product record was patched and the updated catalog DTO is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the platform/admin entitlement required to mutate the product catalog.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No product exists for the supplied id in this application catalog.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Code definitions remain the conceptual source of truth — treat DB as materialized state for the billing engine, not a CMS.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n\nexport const productsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(productsMainUI), resourceFrontendConfiguration(productsAdminUI)),\n productsBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` uses `key` for short catalog rows.' },\n layout: {\n purpose: 'Five section refs: `overview` (key, type, plan tier, feature grants), `tax` (tax display mode), `purchase` (credit pack config), `behavior` (policy), `visibility` (public/active/metadata).',\n displayPurpose: 'Main preset has no addressable `views` — merged admin adds LIST+READ for catalog browse (all non-addressable in billing presets).',\n sections: {\n overview: { purpose: 'Identity and tier information for a product in one card.', whenToUse: 'Admin or pricing tables.', textSlots: { title: { purpose: 'Product header.' }, description: { purpose: 'Feature/limit details follow `grantedFeatures` and `grantedLimits` in schema — not repeated field-by-field here.' } } },\n tax: { purpose: 'How tax is displayed on invoices for this product line.', whenToUse: 'When jurisdiction matters for checkout copy.', textSlots: { title: { purpose: 'Tax block.' }, description: { purpose: 'Does not set legal tax rates — that is the provider in production.' } } },\n purchase: { purpose: 'Per-unit, credit, and max-quantity options for one-time and credit products.', whenToUse: 'CREDIT_PACK and one-time flows.', textSlots: { title: { purpose: 'Purchase settings.' }, description: { purpose: 'Align with `ProductBehaviorPolicy` in implementation for when fields apply.' } } },\n behavior: { purpose: 'Policies for metering, trials, and add-on compatibility.', whenToUse: 'When tuning product-behavior for engineering.', textSlots: { title: { purpose: 'Behavior block.' }, description: { purpose: 'Backend enforcement lives in services — UI is a structured editor over the zod object.' } } },\n visibility: { purpose: 'Public, active, and free-form `metadata` for integrations.', whenToUse: 'Gating a product in marketing vs admin-only.', textSlots: { title: { purpose: 'Visibility block.' }, description: { purpose: 'Turning `isActive` off does not cancel existing subscriptions in typical billing semantics.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Merged admin exposes LIST in `views` as non-addressable; included for overlay truthfulness.', whenToUse: 'App operator catalog screens when wired.' },\n [Op.READ]: { purpose: 'Merged admin exposes READ in `views` as non-addressable.', whenToUse: 'Drill into one product in admin UIs when wired.' },\n },\n }),\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotions.resource.specification.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"promotions.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/promotions.resource.specification.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,YAAY,EACZ,aAAa,EACb,iBAAiB,EAEjB,oBAAoB,EAGrB,MAAM,uBAAuB,CAAC;AAoN/B,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;iCAuB3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotions.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/billing/resources/promotions.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,IAAI,qBAAqB,EAC1D,gCAAgC,IAAI,oBAAoB,GACzD,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,qDAAqD,IAAI,iBAAiB,GAC3E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC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E,kCAAkC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE,EAAE,EAAE;SACxU;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,qEAAqE,EAAE,SAAS,EAAE,qDAAqD,EAAE;QAC/J,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,+DAA+D,EAAE,SAAS,EAAE,kCAAkC,EAAE;QACtI,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,sMAAsM,EAAE,SAAS,EAAE,oCAAoC,EAAE;QAClS,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,qGAAqG,EAAE,SAAS,EAAE,gDAAgD,EAAE;KACnN;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n promotionsAdminResourceUIBehavior as promotionsAdminSource,\n promotionsMainResourceUIBehavior as promotionsMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n DiscountType,\n PromotionType,\n PromotionDuration,\n PromotionSchema,\n Promotion_Operations,\n ResourcePrimaryScope,\n promotionsResourceConfiguration_InitializationFactory as promotionsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof promotionsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\nconst promotionsMainUI = promotionsMainSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\nconst promotionsAdminUI = promotionsAdminSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst promotionsBase = resourceSpecification<Custom, Core, Main>(\n promotionsFactory,\n PromotionSchema,\n ({ schemaShape }) => ({\n purpose: 'Promotional instrument (coupon, promotion code, referral program, deal) with discount mechanics, validity window, and redemption counters — synced to the provider where applicable.',\n businessRole: 'Feeds checkout `promotionCode` validation and subscription discount objects; distinct from `REFERRALS` relationship rows.',\n lifecycleRole: 'Authored by operators; `APPLY` validates at purchase; `DEACTIVATE` ends new redemptions while historical subs may retain benefits per policy.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'PromotionSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'promotionsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'PROMOTIONS' },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'Promotion_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'promotionsMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'promotionsAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Promotion document id.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n name: schemaShape.name.stringSpec({ meaning: 'Human label in admin and support tools.', importance: FieldSemanticImportance.PRIMARY }),\n description: schemaShape.description.stringSpec({ meaning: 'Longer explanation of the offer and legal/restriction copy when needed.' }),\n type: schemaShape.type.enumSpec({\n meaning: 'Kind of promotion surface in catalog and checkout.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'PromotionType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [PromotionType.COUPON]: { meaning: 'Checkout coupon code style.' },\n [PromotionType.PROMOTION_CODE]: { meaning: 'Provider-style promotion code.' },\n [PromotionType.REFERRAL]: { meaning: 'Referral-driven automatic benefit (cross-link to referral program when present).' },\n [PromotionType.DEAL]: { meaning: 'Negotiated or campaign deal object with custom rules.' },\n },\n }),\n code: schemaShape.code.stringSpec({ meaning: 'The string customers or APIs pass at checkout when applicable.' }),\n discountType: schemaShape.discountType.enumSpec({\n meaning: 'Whether the benefit is percentage, fixed money, or free trial extension per schema rules.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'DiscountType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [DiscountType.PERCENTAGE]: { meaning: 'Percent off list or subtotal.' },\n [DiscountType.FIXED_AMOUNT]: { meaning: 'Flat money off (currency in provider sync).' },\n },\n }),\n discountPercentage: schemaShape.discountPercentage.numberSpec({ meaning: 'Percent off when `discountType` is percentage.' }),\n discountFixedAmount: schemaShape.discountFixedAmount.numberSpec({ meaning: 'Money off when `discountType` is fixed amount in provider currency.' }),\n duration: schemaShape.duration.enumSpec({\n meaning: 'How long the discount applies to a subscription once redeemed.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'PromotionDuration', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [PromotionDuration.ONCE]: { meaning: 'First invoice only.' },\n [PromotionDuration.REPEATING]: { meaning: 'Repeats for N months when `durationInMonths` is set.' },\n [PromotionDuration.FOREVER]: { meaning: 'Applies for the life of the subscription while active.' },\n },\n }),\n durationInMonths: schemaShape.durationInMonths.numberSpec({ meaning: 'Repeat window for `REPEATING` duration mode.' }),\n applicableProducts: schemaShape.applicableProducts.arraySpec({ meaning: 'Product keys this promo can apply to — empty may mean all catalog per policy.', elementMeaning: 'One product `key` string.' }),\n maxRedemptions: schemaShape.maxRedemptions.numberSpec({ meaning: 'Cap on redemptions across all customers; null may mean unlimited per implementation.' }),\n timesRedeemed: schemaShape.timesRedeemed.numberSpec({ meaning: 'Counter mirrored for admin read of campaign health.' }),\n validFrom: schemaShape.validFrom.dateSpec({ meaning: 'Earliest datetime the code is valid.', temporalRole: 'scheduled' }),\n validUntil: schemaShape.validUntil.dateSpec({ meaning: 'Hard stop for new redemptions.', temporalRole: 'deadline' }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Soft switch to stop new uses without deleting the record.' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Extra campaign tags for analytics — not user PII.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect one promotion’s terms and counters in admin.',\n outcome: 'Full discount and validity block for editing support.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The promotion was found and its full discount mechanics + validity block + redemption counters are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to read the admin-managed promotion catalog.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No promotion exists for the supplied id in the application scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Browse campaigns in admin (merged admin adds non-addressable LIST view).',\n outcome: 'Paginated promotions in application scope.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of promotion records in the application scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to browse the promotion catalog.' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Search by `name` / `code` per factory search config.',\n outcome: 'Filtered list for operators.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of promotions matching the `name` / `code` query (case-insensitive, max 50 per page).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to search the promotion catalog.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Author a new promotion row for an upcoming campaign.',\n outcome: 'New id and code when unique constraints pass.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A promotion record was created and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The discount mechanics are inconsistent (e.g. percentage value with `discountType` fixed, or `REPEATING` duration without `durationInMonths`) or the payload otherwise fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to author promotions.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A promotion with the same `code` already exists (codes are the customer-facing checkout key and must be unique).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Create a percentage coupon',\n request: {\n name: 'Summer launch 20%',\n type: PromotionType.COUPON,\n code: 'SUMMER20',\n discountType: DiscountType.PERCENTAGE,\n discountPercentage: 20,\n duration: PromotionDuration.ONCE,\n maxRedemptions: 500,\n },\n response: {\n _id: 'promo_01HX2…',\n name: 'Summer launch 20%',\n code: 'SUMMER20',\n discountType: DiscountType.PERCENTAGE,\n discountPercentage: 20,\n isActive: true,\n timesRedeemed: 0,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Adjust limits, validity, or active bit before or during a campaign.',\n outcome: 'Patched row with provider sync where required.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The promotion’s limits / validity window / active bit were patched and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited discount or duration fields are inconsistent, or the patch otherwise fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to edit promotions.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No promotion exists for the supplied id in the application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A `code` change collides with another promotion’s existing code.' },\n ],\n idempotent: true,\n },\n [Promotion_Operations.APPLY]: {\n operationId: Promotion_Operations.APPLY,\n purpose: 'Validate a promotion code a user supplied, and return the discount it resolves to. Records no redemption.',\n outcome: 'Discount object or error for the checkout session.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The supplied `code` was valid and applicable; the resolved discount object is returned. `timesRedeemed` is NOT advanced — a redemption is counted when the purchase completes.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The `code` is missing/empty or fails request-DTO validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an org owner nor an org member, so cannot apply promotions in this scope.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No promotion matches the supplied `code`.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The matched promotion is inactive, outside its `validFrom`/`validUntil` window, exhausted (`maxRedemptions` reached), or not applicable to the targeted products.' },\n ],\n // Side-effect-free: this verb validates and reports, and advances no counter. It used to\n // increment `timesRedeemed`, which counted a redemption when a customer TYPED a code —\n // so a limited campaign was exhausted by window-shoppers, and a customer who then bought\n // was counted twice once completion started counting. The redemption is now counted only\n // by `checkout.session.completed`.\n idempotent: true,\n rateLimitNote: 'Code-application is abuse-sensitive (coupon brute-forcing) — the platform may throttle repeated APPLY attempts per caller/account.',\n },\n [Promotion_Operations.DEACTIVATE]: {\n operationId: Promotion_Operations.DEACTIVATE,\n purpose: 'Disable new redemptions while preserving history for audits.',\n outcome: 'Sets `isActive` false in implementation; still listed in merged `views` for action wiring.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The promotion’s `isActive` flag is now false; the campaign accepts no new redemptions while history is preserved.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to deactivate a promotion.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No promotion exists for the supplied id in the application scope.' },\n ],\n // Convergent state-set: deactivating drives `isActive` to a fixed value, so\n // repeating the request lands the campaign in the same disabled state.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Provider is the settlement system of record — Wildo rows follow provider capabilities for multi-currency and duration semantics.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n\nexport const promotionsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(promotionsMainUI), resourceFrontendConfiguration(promotionsAdminUI)),\n promotionsBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` uses the promotion `name` for list rows.' },\n layout: {\n purpose: 'Section refs `overview`, `discount`, `duration`, `applicability`, `validity` in billing presets — form and display walk the same order.',\n displayPurpose: 'Main bundle exposes `APPLY` and `DEACTIVATE` custom views; merged admin adds LIST+READ for catalog browse (non-addressable).',\n sections: {\n overview: { purpose: 'Name, description, type, and public `code`.', whenToUse: 'Campaign identification in admin.', textSlots: { title: { purpose: 'Promotion title block.' }, description: { purpose: 'Type drives which provider API is used when syncing.' } } },\n discount: { purpose: 'Percent vs fixed amount semantics with the two discount fields.', whenToUse: 'Setting the commercial terms of the deal.', textSlots: { title: { purpose: 'Discount block.' }, description: { purpose: 'Only one of percentage/fixed is meaningful per `discountType` — UI enforces in product.' } } },\n duration: { purpose: '`duration` + `durationInMonths` for repeating windows.', whenToUse: 'When promos apply across multiple renewal cycles.', textSlots: { title: { purpose: 'Duration block.' }, description: { purpose: '“Forever” maps to provider “forever coupon” semantics where available.' } } },\n applicability: { purpose: 'Which products can consume the promo and redemption caps.', whenToUse: 'Limiting an offer to specific SKUs.', textSlots: { title: { purpose: 'Applicability block.' }, description: { purpose: '`maxRedemptions` is global — not per-user unless extended in policy layers.' } } },\n validity: { purpose: '`validFrom`, `validUntil`, `isActive`, and `metadata` for ops and analytics.', whenToUse: 'Sunsetting and seasonal windows.', textSlots: { title: { purpose: 'Validity block.' }, description: { purpose: 'Past `validUntil` should reject `APPLY` at API even if `isActive` is true until a job flips it.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Merged admin LIST (non-addressable) for operator catalog alignment.', whenToUse: 'Super-admin promotion management when routes exist.' },\n [Op.READ]: { purpose: 'Merged admin READ (non-addressable) for drill-down alignment.', whenToUse: 'Inspect one campaign when wired.' },\n [Promotion_Operations.APPLY]: { purpose: 'Code-validation path for checkout integration; non-addressable in merged `views` array but op is present for action buttons. Reports the discount; the redemption is counted at purchase completion.', whenToUse: 'User enters code in purchase flow.' },\n [Promotion_Operations.DEACTIVATE]: { purpose: 'Deactivate path for admin shutoff; present in both main and merged `views` maps as non-addressable.', whenToUse: 'End a campaign early without deleting history.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"promotions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/promotions.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,IAAI,qBAAqB,EAC1D,gCAAgC,IAAI,oBAAoB,GACzD,MAAM,8BAA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KAAK,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,wEAAwE,EAAE,EAAE,EAAE;YACzS,aAAa,EAAE,EAAE,OAAO,EAAE,2DAA2D,EAAE,SAAS,EAAE,qCAAqC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,6EAA6E,EAAE,EAAE,EAAE;YAC7S,QAAQ,EAAE,EAAE,OAAO,EAAE,8EAA8E,EAAE,SAAS,EAAE,kCAAkC,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE,EAAE,EAAE;SACxU;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,qEAAqE,EAAE,SAAS,EAAE,qDAAqD,EAAE;QAC/J,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,+DAA+D,EAAE,SAAS,EAAE,kCAAkC,EAAE;QACtI,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,sMAAsM,EAAE,SAAS,EAAE,oCAAoC,EAAE;QAClS,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,qGAAqG,EAAE,SAAS,EAAE,gDAAgD,EAAE;KACnN;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n promotionsAdminResourceUIBehavior as promotionsAdminSource,\n promotionsMainResourceUIBehavior as promotionsMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n DiscountType,\n PromotionType,\n PromotionDuration,\n PromotionSchema,\n Promotion_Operations,\n ResourcePrimaryScope,\n promotionsResourceConfiguration_InitializationFactory as promotionsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof promotionsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\nconst promotionsMainUI = promotionsMainSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\nconst promotionsAdminUI = promotionsAdminSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst promotionsBase = resourceSpecification<Custom, Core, Main>(\n promotionsFactory,\n PromotionSchema,\n ({ schemaShape }) => ({\n purpose: 'Promotional instrument (coupon, promotion code, referral program, deal) with discount mechanics, validity window, and redemption counters — synced to the provider where applicable.',\n businessRole: 'Feeds checkout `promotionCode` validation and subscription discount objects; distinct from `REFERRALS` relationship rows.',\n lifecycleRole: 'Authored by operators; `APPLY` validates at purchase; `DEACTIVATE` ends new redemptions while historical subs may retain benefits per policy.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'PromotionSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'promotionsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'PROMOTIONS' },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'Promotion_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'promotionsMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'promotionsAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Promotion document id.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n name: schemaShape.name.stringSpec({ meaning: 'Human label in admin and support tools.', importance: FieldSemanticImportance.PRIMARY }),\n description: schemaShape.description.stringSpec({ meaning: 'Longer explanation of the offer and legal/restriction copy when needed.' }),\n type: schemaShape.type.enumSpec({\n meaning: 'Kind of promotion surface in catalog and checkout.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'PromotionType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [PromotionType.COUPON]: { meaning: 'Checkout coupon code style.' },\n [PromotionType.PROMOTION_CODE]: { meaning: 'Provider-style promotion code.' },\n [PromotionType.REFERRAL]: { meaning: 'Referral-driven automatic benefit (cross-link to referral program when present).' },\n [PromotionType.DEAL]: { meaning: 'Negotiated or campaign deal object with custom rules.' },\n },\n }),\n code: schemaShape.code.stringSpec({ meaning: 'The string customers or APIs pass at checkout when applicable.' }),\n discountType: schemaShape.discountType.enumSpec({\n meaning: 'Whether the benefit is percentage, fixed money, or free trial extension per schema rules.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'DiscountType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [DiscountType.PERCENTAGE]: { meaning: 'Percent off list or subtotal.' },\n [DiscountType.FIXED_AMOUNT]: { meaning: 'Flat money off (currency in provider sync).' },\n },\n }),\n discountPercentage: schemaShape.discountPercentage.numberSpec({ meaning: 'Percent off when `discountType` is percentage.' }),\n discountFixedAmount: schemaShape.discountFixedAmount.numberSpec({ meaning: 'Money off when `discountType` is fixed amount in provider currency.' }),\n duration: schemaShape.duration.enumSpec({\n meaning: 'How long the discount applies to a subscription once redeemed.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'PromotionDuration', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [PromotionDuration.ONCE]: { meaning: 'First invoice only.' },\n [PromotionDuration.REPEATING]: { meaning: 'Repeats for N months when `durationInMonths` is set.' },\n [PromotionDuration.FOREVER]: { meaning: 'Applies for the life of the subscription while active.' },\n },\n }),\n durationInMonths: schemaShape.durationInMonths.numberSpec({ meaning: 'Repeat window for `REPEATING` duration mode.' }),\n applicableProducts: schemaShape.applicableProducts.arraySpec({ meaning: 'Product keys this promo can apply to — empty may mean all catalog per policy.', elementMeaning: 'One product `key` string.' }),\n maxRedemptions: schemaShape.maxRedemptions.numberSpec({ meaning: 'Cap on redemptions across all customers; null may mean unlimited per implementation.' }),\n timesRedeemed: schemaShape.timesRedeemed.numberSpec({ meaning: 'Counter mirrored for admin read of campaign health.' }),\n validFrom: schemaShape.validFrom.dateSpec({ meaning: 'Earliest datetime the code is valid.', temporalRole: 'scheduled' }),\n validUntil: schemaShape.validUntil.dateSpec({ meaning: 'Hard stop for new redemptions.', temporalRole: 'deadline' }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Soft switch to stop new uses without deleting the record.' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Extra campaign tags for analytics — not user PII.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect one promotion’s terms and counters in admin.',\n outcome: 'Full discount and validity block for editing support.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The promotion was found and its full discount mechanics + validity block + redemption counters are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to read the admin-managed promotion catalog.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No promotion exists for the supplied id in the application scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Browse campaigns in admin (merged admin adds non-addressable LIST view).',\n outcome: 'Paginated promotions in application scope.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of promotion records in the application scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to browse the promotion catalog.' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Search by `name` / `code` per factory search config.',\n outcome: 'Filtered list for operators.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of promotions matching the `name` / `code` query (case-insensitive, max 50 per page).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to search the promotion catalog.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Author a new promotion row for an upcoming campaign.',\n outcome: 'New id and code when unique constraints pass.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A promotion record was created and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The discount mechanics are inconsistent (e.g. percentage value with `discountType` fixed, or `REPEATING` duration without `durationInMonths`) or the payload otherwise fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to author promotions.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A promotion with the same `code` already exists (codes are the customer-facing checkout key and must be unique).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Create a percentage coupon',\n request: {\n name: 'Summer launch 20%',\n type: PromotionType.COUPON,\n code: 'SUMMER20',\n discountType: DiscountType.PERCENTAGE,\n discountPercentage: 20,\n duration: PromotionDuration.ONCE,\n maxRedemptions: 500,\n },\n response: {\n _id: 'promo_01HX2…',\n name: 'Summer launch 20%',\n code: 'SUMMER20',\n discountType: DiscountType.PERCENTAGE,\n discountPercentage: 20,\n isActive: true,\n timesRedeemed: 0,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Adjust limits, validity, or active bit before or during a campaign.',\n outcome: 'Patched row with provider sync where required.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The promotion’s limits / validity window / active bit were patched and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited discount or duration fields are inconsistent, or the patch otherwise fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to edit promotions.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No promotion exists for the supplied id in the application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A `code` change collides with another promotion’s existing code.' },\n ],\n idempotent: true,\n },\n [Promotion_Operations.APPLY]: {\n operationId: Promotion_Operations.APPLY,\n purpose: 'Validate a promotion code a user supplied, and return the discount it resolves to. Records no redemption.',\n outcome: 'Discount object or error for the checkout session.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The supplied `code` was valid and applicable; the resolved discount object is returned. `timesRedeemed` is NOT advanced — a redemption is counted when the purchase completes.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The `code` is missing/empty or fails request-DTO validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an org owner nor an org member, so cannot apply promotions in this scope.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No promotion matches the supplied `code`.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The matched promotion is inactive, outside its `validFrom`/`validUntil` window, exhausted (`maxRedemptions` reached), or not applicable to the targeted products.' },\n ],\n // Side-effect-free: this verb validates and reports, and advances no counter. It used to\n // increment `timesRedeemed`, which counted a redemption when a customer TYPED a code —\n // so a limited campaign was exhausted by window-shoppers, and a customer who then bought\n // was counted twice once completion started counting. The redemption is now counted only\n // by `checkout.session.completed`.\n idempotent: true,\n rateLimitNote: 'Code-application is abuse-sensitive (coupon brute-forcing) — the platform may throttle repeated APPLY attempts per caller/account.',\n },\n [Promotion_Operations.DEACTIVATE]: {\n operationId: Promotion_Operations.DEACTIVATE,\n purpose: 'Disable new redemptions while preserving history for audits.',\n outcome: 'Sets `isActive` false in implementation; still listed in merged `views` for action wiring.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The promotion’s `isActive` flag is now false; the campaign accepts no new redemptions while history is preserved.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to deactivate a promotion.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No promotion exists for the supplied id in the application scope.' },\n ],\n // Convergent state-set: deactivating drives `isActive` to a fixed value, so\n // repeating the request lands the campaign in the same disabled state.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Provider is the settlement system of record — Wildo rows follow provider capabilities for multi-currency and duration semantics.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n\nexport const promotionsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(promotionsMainUI), resourceFrontendConfiguration(promotionsAdminUI)),\n promotionsBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` uses the promotion `name` for list rows.' },\n layout: {\n purpose: 'Section refs `overview`, `discount`, `duration`, `applicability`, `validity` in billing presets — form and display walk the same order.',\n displayPurpose: 'Main bundle exposes `APPLY` and `DEACTIVATE` custom views; merged admin adds LIST+READ for catalog browse (non-addressable).',\n sections: {\n overview: { purpose: 'Name, description, type, and public `code`.', whenToUse: 'Campaign identification in admin.', textSlots: { title: { purpose: 'Promotion title block.' }, description: { purpose: 'Type drives which provider API is used when syncing.' } } },\n discount: { purpose: 'Percent vs fixed amount semantics with the two discount fields.', whenToUse: 'Setting the commercial terms of the deal.', textSlots: { title: { purpose: 'Discount block.' }, description: { purpose: 'Only one of percentage/fixed is meaningful per `discountType` — UI enforces in product.' } } },\n duration: { purpose: '`duration` + `durationInMonths` for repeating windows.', whenToUse: 'When promos apply across multiple renewal cycles.', textSlots: { title: { purpose: 'Duration block.' }, description: { purpose: '“Forever” maps to provider “forever coupon” semantics where available.' } } },\n applicability: { purpose: 'Which products can consume the promo and redemption caps.', whenToUse: 'Limiting an offer to specific SKUs.', textSlots: { title: { purpose: 'Applicability block.' }, description: { purpose: '`maxRedemptions` is global — not per-user unless extended in policy layers.' } } },\n validity: { purpose: '`validFrom`, `validUntil`, `isActive`, and `metadata` for ops and analytics.', whenToUse: 'Sunsetting and seasonal windows.', textSlots: { title: { purpose: 'Validity block.' }, description: { purpose: 'Past `validUntil` should reject `APPLY` at API even if `isActive` is true until a job flips it.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Merged admin LIST (non-addressable) for operator catalog alignment.', whenToUse: 'Super-admin promotion management when routes exist.' },\n [Op.READ]: { purpose: 'Merged admin READ (non-addressable) for drill-down alignment.', whenToUse: 'Inspect one campaign when wired.' },\n [Promotion_Operations.APPLY]: { purpose: 'Code-validation path for checkout integration; non-addressable in merged `views` array but op is present for action buttons. Reports the discount; the redemption is counted at purchase completion.', whenToUse: 'User enters code in purchase flow.' },\n [Promotion_Operations.DEACTIVATE]: { purpose: 'Deactivate path for admin shutoff; present in both main and merged `views` maps as non-addressable.', whenToUse: 'End a campaign early without deleting history.' },\n },\n }),\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referrals.resource.specification.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"referrals.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/referrals.resource.specification.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,gBAAgB,EAChB,qBAAqB,IAAI,EAAE,EAE3B,cAAc,EAGf,MAAM,uBAAuB,CAAC;AA0J/B,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAc1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referrals.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/billing/resources/referrals.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,IAAI,oBAAoB,EACxD,+BAA+B,IAAI,mBAAmB,GACvD,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,gBAAgB,EAChB,qBAAqB,IAAI,EAAE,EAC3B,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,oDAAoD,IAAI,gBAAgB,GACzE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAK3E,MAAM,eAAe,GAAG,m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MainResourceUIBehavior as referralsMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n BillingScopeType,\n CoreResourceOperation as Op,\n ReferralSchema,\n ReferralStatus,\n ResourcePrimaryScope,\n referralsResourceConfiguration_InitializationFactory as referralsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof referralsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\nconst referralsMainUI = referralsMainSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\nconst referralsAdminUI = referralsAdminSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nconst referralsBase = resourceSpecification<undefined, Core, Main>(\n referralsFactory,\n ReferralSchema,\n ({ schemaShape }) => ({\n purpose: 'A referral between two billing accounts: the code that was shared, whether it converted, and the rewards each side earned. Promotions define the offer; a referral records one use of it.',\n businessRole: 'Tracks who referred whom across org vs user billing scopes and whether rewards were applied once the referred party converts.',\n lifecycleRole: 'Created when a code is issued; `referredBillingAccountId` fills in on signup; status moves to CONVERTED on first subscription per product rules; rewards are idempotent via `*RewardApplied` flags.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ReferralSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'referralsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'REFERRALS' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'referralsMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'referralsAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Referral document id.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n referralCode: schemaShape.referralCode.stringSpec({ meaning: 'Globally unique shareable code embedded in invite links.', importance: FieldSemanticImportance.PRIMARY }),\n referrerBillingAccountId: schemaShape.referrerBillingAccountId.foreignKeySpec({ meaning: 'Billing account of the party that ISSUED the referral (the referrer) and is entitled to referrer-side rewards on conversion. Per-record DISCRIMINATED polymorphic FK: resolves to a `userBillingAccounts` OR `organizationBillingAccounts` record, selected per record by `referrerScopeType`.', importance: FieldSemanticImportance.PRIMARY }),\n referrerScopeType: schemaShape.referrerScopeType.enumSpec({\n meaning: 'Discriminator that selects which billing-account branch `referrerBillingAccountId` points at (org- vs user-scoped); matched against the branch’s primary scope.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'BillingScopeType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [BillingScopeType.ORGANIZATIONS]: { meaning: 'Referrer account lives under an organization billing account resource.' },\n [BillingScopeType.USER_SELF]: { meaning: 'Referrer account is a user billing account resource.' },\n },\n }),\n referredBillingAccountId: schemaShape.referredBillingAccountId.foreignKeySpec({ meaning: 'Billing account of the party that WAS REFERRED (the referee), populated once they create a billing account through the program and entitled to referred-side credit. Per-record DISCRIMINATED polymorphic FK like `referrerBillingAccountId`, with the branch selected by `referredScopeType`.', importance: FieldSemanticImportance.PRIMARY }),\n referredScopeType: schemaShape.referredScopeType.enumSpec({\n meaning: 'Discriminator that selects which billing-account branch `referredBillingAccountId` points at, once the referred account is known.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'BillingScopeType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [BillingScopeType.ORGANIZATIONS]: { meaning: 'Referred tenant org billing account.' },\n [BillingScopeType.USER_SELF]: { meaning: 'Referred individual billing account.' },\n },\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Lifecycle of the referral record for reward eligibility.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'ReferralStatus', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [ReferralStatus.PENDING]: { meaning: 'Code issued; no conversion yet.' },\n [ReferralStatus.ACCEPTED]: { meaning: 'Referee signed up; not yet monetized.' },\n [ReferralStatus.CONVERTED]: { meaning: 'First qualifying subscription completed — reward hooks run here.' },\n [ReferralStatus.EXPIRED]: { meaning: 'Past `expiresAt` without conversion.' },\n [ReferralStatus.CANCELLED]: { meaning: 'Programmatically voided referral.' },\n },\n }),\n referrerReward: schemaShape.referrerReward.objectSpec({ meaning: 'Serialized reward terms for the referrer when status hits CONVERTED.' }),\n referredReward: schemaShape.referredReward.objectSpec({ meaning: 'Serialized reward terms for the referred account on conversion.' }),\n referrerRewardApplied: schemaShape.referrerRewardApplied.booleanSpec({ meaning: 'Idempotency bit so payout jobs do not double-apply benefits.' }),\n referredRewardApplied: schemaShape.referredRewardApplied.booleanSpec({ meaning: 'Idempotency for the referred-side credit/discount application.' }),\n acceptedAt: schemaShape.acceptedAt.dateSpec({ meaning: 'When the referred party accepted/registered using the code.', temporalRole: 'occurred' }),\n convertedAt: schemaShape.convertedAt.dateSpec({ meaning: 'When the business defines “conversion” (often first paid subscription).', temporalRole: 'occurred' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'When the offer window closes for this code if limited.', temporalRole: 'deadline' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Campaign ids or UTM echo for marketing analytics.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record creation time.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'Last reward or status change.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a referral in partner or CSM UIs and support tools.',\n outcome: 'Full state + reward config snapshot.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The referral record was found and its full state + reward-config snapshot is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to read referral program rows (the operation is an internal service-pipeline op, back-office scoped, not HTTP-exposed).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No referral exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Program dashboards over referrals for an org or app (merged admin adds LIST in `views` as non-addressable).',\n outcome: 'Paginated rows filtered by app policies.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of referral records scoped to the caller’s billing account and filtered by app policy.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to enumerate referral program rows.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Issue a new referral when a user/org starts a share from billing settings.',\n outcome: 'New `referralCode` and reward templates from the active program config.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A referral record was created with a freshly minted `referralCode` and reward templates copied from the active program config.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The referral payload (referrer account / scope) fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to issue referral rows (this is an internal service-pipeline, back-office-issued resource, not HTTP-exposed).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The generated `referralCode` collides with an existing code, or the referrer is attempting a self-referral that program rules forbid.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Issue a referral for an organization referrer',\n request: {\n referrerBillingAccountId: 'billacct_org_01HX2…',\n referrerScopeType: BillingScopeType.ORGANIZATIONS,\n },\n response: {\n _id: 'referral_01HX2…',\n referralCode: 'WILDO-7Q2K9X',\n referrerBillingAccountId: 'billacct_org_01HX2…',\n referrerScopeType: BillingScopeType.ORGANIZATIONS,\n status: ReferralStatus.PENDING,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Patch status, referred ids, applied flags, and timestamps as the funnel progresses.',\n outcome: 'Updated row; reward application should be transactional in the service layer.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The referral record advanced (status / referred ids / reward-applied flags / timestamps) and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched fields (status transition, referred account, applied flags) fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to mutate referral program rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No referral exists for the supplied id in the caller’s billing scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The referee is already claimed/converted on this referral, or a `*RewardApplied` idempotency bit conflicts with a concurrent payout job.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Referral program definitions may live in separate config; this row is the per-relationship state machine, not the global program editor.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nexport const referralsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(referralsMainUI), resourceFrontendConfiguration(referralsAdminUI)),\n referralsBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` shows `referralCode` in lists for share/audit.' },\n layout: {\n purpose: 'Inline summary in billing presets (no `refs.sections`) shows `referralCode`, status, scope badges, key dates, and referrer id.',\n displayPurpose: 'Main bundle has no addressable `views`; merged admin adds LIST+READ (non-addressable) for back-office triage with org owner roles in the factory.',\n },\n views: {\n [Op.LIST]: { purpose: 'Merged admin includes LIST in `views` as non-addressable — document for spec/preset overlay parity.', whenToUse: 'Org referral tables when super-admin or org-admin routes are wired.' },\n [Op.READ]: { purpose: 'Merged admin includes READ in `views` as non-addressable.', whenToUse: 'Detail drawer on one referral when wired.' },\n },\n }),\n);\n"]}
|
|
1
|
+
{"version":3,"file":"referrals.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/referrals.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,IAAI,oBAAoB,EACxD,+BAA+B,IAAI,mBAAmB,GACvD,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,gBAAgB,EAChB,qBAAqB,IAAI,EAAE,EAC3B,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,oDAAoD,IAAI,gBAAgB,GACzE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B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,EAAE;KAC5I;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n referralsAdminResourceUIBehavior as referralsAdminSource,\n referralsMainResourceUIBehavior as referralsMainSource,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n BillingScopeType,\n CoreResourceOperation as Op,\n ReferralSchema,\n ReferralStatus,\n ResourcePrimaryScope,\n referralsResourceConfiguration_InitializationFactory as referralsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof referralsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\nconst referralsMainUI = referralsMainSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\nconst referralsAdminUI = referralsAdminSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nconst referralsBase = resourceSpecification<undefined, Core, Main>(\n referralsFactory,\n ReferralSchema,\n ({ schemaShape }) => ({\n purpose: 'A referral between two billing accounts: the code that was shared, whether it converted, and the rewards each side earned. Promotions define the offer; a referral records one use of it.',\n businessRole: 'Tracks who referred whom across org vs user billing scopes and whether rewards were applied once the referred party converts.',\n lifecycleRole: 'Created when a code is issued; `referredBillingAccountId` fills in on signup; status moves to CONVERTED on first subscription per product rules; rewards are idempotent via `*RewardApplied` flags.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.BILLING,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ReferralSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactory: { packageName: '@wildo-ai/saas-models', exportName: 'referralsResourceConfiguration_InitializationFactory', symbolKind: CodeSymbolKind.FACTORY, declarationKind: CodeDeclarationKind.FUNCTION },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: 'REFERRALS' },\n operationVocabulary: { coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM } },\n frontendConfigurationSources: [\n { packageName: '@wildo-ai/presets-components', exportName: 'referralsMainResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n { packageName: '@wildo-ai/presets-components', exportName: 'referralsAdminResourceUIBehavior', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n ],\n },\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Referral document id.', importance: FieldSemanticImportance.PRIMARY, semanticRole: 'identifier' }),\n referralCode: schemaShape.referralCode.stringSpec({ meaning: 'Globally unique shareable code embedded in invite links.', importance: FieldSemanticImportance.PRIMARY }),\n referrerBillingAccountId: schemaShape.referrerBillingAccountId.foreignKeySpec({ meaning: 'Billing account of the party that ISSUED the referral (the referrer) and is entitled to referrer-side rewards on conversion. Per-record DISCRIMINATED polymorphic FK: resolves to a `userBillingAccounts` OR `organizationBillingAccounts` record, selected per record by `referrerScopeType`.', importance: FieldSemanticImportance.PRIMARY }),\n referrerScopeType: schemaShape.referrerScopeType.enumSpec({\n meaning: 'Discriminator that selects which billing-account branch `referrerBillingAccountId` points at (org- vs user-scoped); matched against the branch’s primary scope.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'BillingScopeType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [BillingScopeType.ORGANIZATIONS]: { meaning: 'Referrer account lives under an organization billing account resource.' },\n [BillingScopeType.USER_SELF]: { meaning: 'Referrer account is a user billing account resource.' },\n },\n }),\n referredBillingAccountId: schemaShape.referredBillingAccountId.foreignKeySpec({ meaning: 'Billing account of the party that WAS REFERRED (the referee), populated once they create a billing account through the program and entitled to referred-side credit. Per-record DISCRIMINATED polymorphic FK like `referrerBillingAccountId`, with the branch selected by `referredScopeType`.', importance: FieldSemanticImportance.PRIMARY }),\n referredScopeType: schemaShape.referredScopeType.enumSpec({\n meaning: 'Discriminator that selects which billing-account branch `referredBillingAccountId` points at, once the referred account is known.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'BillingScopeType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [BillingScopeType.ORGANIZATIONS]: { meaning: 'Referred tenant org billing account.' },\n [BillingScopeType.USER_SELF]: { meaning: 'Referred individual billing account.' },\n },\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Lifecycle of the referral record for reward eligibility.',\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'ReferralStatus', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n values: {\n [ReferralStatus.PENDING]: { meaning: 'Code issued; no conversion yet.' },\n [ReferralStatus.ACCEPTED]: { meaning: 'Referee signed up; not yet monetized.' },\n [ReferralStatus.CONVERTED]: { meaning: 'First qualifying subscription completed — reward hooks run here.' },\n [ReferralStatus.EXPIRED]: { meaning: 'Past `expiresAt` without conversion.' },\n [ReferralStatus.CANCELLED]: { meaning: 'Programmatically voided referral.' },\n },\n }),\n referrerReward: schemaShape.referrerReward.objectSpec({ meaning: 'Serialized reward terms for the referrer when status hits CONVERTED.' }),\n referredReward: schemaShape.referredReward.objectSpec({ meaning: 'Serialized reward terms for the referred account on conversion.' }),\n referrerRewardApplied: schemaShape.referrerRewardApplied.booleanSpec({ meaning: 'Idempotency bit so payout jobs do not double-apply benefits.' }),\n referredRewardApplied: schemaShape.referredRewardApplied.booleanSpec({ meaning: 'Idempotency for the referred-side credit/discount application.' }),\n acceptedAt: schemaShape.acceptedAt.dateSpec({ meaning: 'When the referred party accepted/registered using the code.', temporalRole: 'occurred' }),\n convertedAt: schemaShape.convertedAt.dateSpec({ meaning: 'When the business defines “conversion” (often first paid subscription).', temporalRole: 'occurred' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'When the offer window closes for this code if limited.', temporalRole: 'deadline' }),\n metadata: schemaShape.metadata.objectSpec({ meaning: 'Campaign ids or UTM echo for marketing analytics.' }),\n createdAt: schemaShape.createdAt.dateSpec({ meaning: 'Record creation time.', temporalRole: 'creation' }),\n updatedAt: schemaShape.updatedAt.dateSpec({ meaning: 'Last reward or status change.', temporalRole: 'modified' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a referral in partner or CSM UIs and support tools.',\n outcome: 'Full state + reward config snapshot.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The referral record was found and its full state + reward-config snapshot is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to read referral program rows (the operation is an internal service-pipeline op, back-office scoped, not HTTP-exposed).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No referral exists for the supplied id in the caller’s billing scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Program dashboards over referrals for an org or app (merged admin adds LIST in `views` as non-addressable).',\n outcome: 'Paginated rows filtered by app policies.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of referral records scoped to the caller’s billing account and filtered by app policy.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to enumerate referral program rows.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Issue a new referral when a user/org starts a share from billing settings.',\n outcome: 'New `referralCode` and reward templates from the active program config.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A referral record was created with a freshly minted `referralCode` and reward templates copied from the active program config.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The referral payload (referrer account / scope) fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to issue referral rows (this is an internal service-pipeline, back-office-issued resource, not HTTP-exposed).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The generated `referralCode` collides with an existing code, or the referrer is attempting a self-referral that program rules forbid.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Issue a referral for an organization referrer',\n request: {\n referrerBillingAccountId: 'billacct_org_01HX2…',\n referrerScopeType: BillingScopeType.ORGANIZATIONS,\n },\n response: {\n _id: 'referral_01HX2…',\n referralCode: 'WILDO-7Q2K9X',\n referrerBillingAccountId: 'billacct_org_01HX2…',\n referrerScopeType: BillingScopeType.ORGANIZATIONS,\n status: ReferralStatus.PENDING,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Patch status, referred ids, applied flags, and timestamps as the funnel progresses.',\n outcome: 'Updated row; reward application should be transactional in the service layer.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The referral record advanced (status / referred ids / reward-applied flags / timestamps) and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched fields (status transition, referred account, applied flags) fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org-owner role required to mutate referral program rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No referral exists for the supplied id in the caller’s billing scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The referee is already claimed/converted on this referral, or a `*RewardApplied` idempotency bit conflicts with a concurrent payout job.' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Referral program definitions may live in separate config; this row is the per-relationship state machine, not the global program editor.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n\nexport const referralsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(referralsMainUI), resourceFrontendConfiguration(referralsAdminUI)),\n referralsBase,\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` shows `referralCode` in lists for share/audit.' },\n layout: {\n purpose: 'Inline summary in billing presets (no `refs.sections`) shows `referralCode`, status, scope badges, key dates, and referrer id.',\n displayPurpose: 'Main bundle has no addressable `views`; merged admin adds LIST+READ (non-addressable) for back-office triage with org owner roles in the factory.',\n },\n views: {\n [Op.LIST]: { purpose: 'Merged admin includes LIST in `views` as non-addressable — document for spec/preset overlay parity.', whenToUse: 'Org referral tables when super-admin or org-admin routes are wired.' },\n [Op.READ]: { purpose: 'Merged admin includes READ in `views` as non-addressable.', whenToUse: 'Detail drawer on one referral when wired.' },\n },\n }),\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.resource.specification.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"subscriptions.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/billing/resources/subscriptions.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,8BAA8B,EAC9B,qBAAqB,IAAI,EAAE,EAG3B,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AA+c/B,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG1D,CAAC;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAmF,CAAC"}
|