@wildo-ai/saas-specifications 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (928) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +5 -4
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/index.js +1 -1
  6. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +1 -1
  7. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  8. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +11 -0
  9. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  10. package/dist/esm/_core/application-specification-family-identity.schemas.js +11 -0
  11. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  12. package/dist/esm/_core/brand/brand-name-choice.d.ts +72 -10
  13. package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -1
  14. package/dist/esm/_core/brand/brand-name-choice.js +144 -24
  15. package/dist/esm/_core/brand/brand-name-choice.js.map +1 -1
  16. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +41 -1
  17. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +19 -3
  19. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
  20. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +7 -1
  21. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
  22. package/dist/esm/_core/brand/brand-name-screening-validation.js +24 -3
  23. package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
  24. package/dist/esm/_core/brand/brand-name-screening-view.d.ts +61 -9
  25. package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
  26. package/dist/esm/_core/brand/brand-name-screening-view.js +42 -1
  27. package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -1
  28. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +130 -2
  29. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/brand/brand-name-screening.schemas.js +165 -3
  31. package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
  32. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +25 -7
  33. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
  35. package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
  36. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +76 -0
  37. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  38. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +7 -2
  39. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  40. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +21 -3
  41. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  42. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +411 -13
  43. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +281 -8
  45. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  46. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +1 -1
  47. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  48. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +4 -0
  49. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +3 -0
  51. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  52. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +6 -0
  53. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  54. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +20 -0
  55. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  56. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +1 -0
  57. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +1 -0
  59. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  60. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +7 -0
  61. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  62. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +4 -3
  63. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  64. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
  65. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  66. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
  67. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
  68. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
  69. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
  70. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +55 -5
  71. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +66 -2
  73. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  74. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +42 -2
  75. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  76. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +174 -1
  77. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  78. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -1
  79. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
  81. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  82. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
  83. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
  84. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
  85. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
  86. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
  87. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
  88. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
  89. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
  90. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +15 -0
  91. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  92. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +15 -0
  93. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  94. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
  95. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
  96. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
  97. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
  98. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  99. package/dist/esm/_core/data-seed-specification.schemas.js +5 -1
  100. package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
  101. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +32 -1
  102. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  103. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +41 -1
  104. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  105. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +33 -1
  106. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  107. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +134 -9
  108. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  109. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +117 -0
  110. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +118 -0
  112. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  113. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +1 -0
  114. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  115. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +22 -1
  116. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  117. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +17 -1
  118. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +21 -5
  120. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
  121. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +7 -1
  122. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
  123. package/dist/esm/_core/experience-plan/experience-plan-validation.js +39 -1
  124. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
  125. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
  126. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +31 -5
  127. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
  128. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +81 -9
  129. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  130. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +88 -7
  131. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  132. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +13 -6
  133. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
  135. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  136. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  137. package/dist/esm/_core/family-aspects.registry.js +2 -0
  138. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  139. package/dist/esm/_core/family-aspects.schemas.d.ts +24 -0
  140. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/family-aspects.schemas.js +20 -0
  142. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  143. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +6 -6
  144. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
  145. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  146. package/dist/esm/_core/index.d.ts +6 -0
  147. package/dist/esm/_core/index.d.ts.map +1 -1
  148. package/dist/esm/_core/index.js +6 -0
  149. package/dist/esm/_core/index.js.map +1 -1
  150. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +1 -0
  151. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  153. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
  154. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  155. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +26 -2
  156. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  157. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +21 -1
  158. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  159. package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
  160. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  161. package/dist/esm/_core/market/market-references.schemas.js +13 -1
  162. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  163. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -12
  164. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
  166. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  167. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  168. package/dist/esm/_core/market/market.family-aspects.js +4 -1
  169. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  170. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +15 -3
  171. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  172. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +6 -3
  173. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  174. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -1
  175. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  176. package/dist/esm/_core/placement-plan/placement-plan-validation.js +56 -3
  177. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  178. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  179. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +9 -0
  180. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  181. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +83 -0
  182. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  183. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +102 -2
  184. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  185. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +3 -2
  186. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  187. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -2
  188. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  189. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +1 -0
  190. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  191. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +2 -0
  192. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  193. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts +41 -0
  194. package/dist/esm/_core/requirements/requirements-pain-coverage.d.ts.map +1 -0
  195. package/dist/esm/_core/requirements/requirements-pain-coverage.js +63 -0
  196. package/dist/esm/_core/requirements/requirements-pain-coverage.js.map +1 -0
  197. package/dist/esm/_core/requirements/requirements-references.schemas.d.ts +1 -1
  198. package/dist/esm/_core/requirements/requirements-references.schemas.js +1 -1
  199. package/dist/esm/_core/requirements/requirements-references.schemas.js.map +1 -1
  200. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +16 -0
  201. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  202. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +12 -1
  203. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  204. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +13 -2
  205. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  206. package/dist/esm/_core/requirements/requirements-snapshot-validation.js +32 -1
  207. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  208. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +65 -1
  209. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  210. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +53 -1
  211. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
  212. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  213. package/dist/esm/_core/requirements/requirements.family-aspects.js +2 -0
  214. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -1
  215. package/dist/esm/_core/resource-specification.schemas.d.ts +56 -15
  216. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  217. package/dist/esm/_core/resource-specification.schemas.js +73 -13
  218. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  219. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +1 -16
  220. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  221. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
  222. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
  223. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
  224. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  225. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
  226. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  227. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +1 -1
  228. package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
  229. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
  230. package/dist/esm/_core/service-method/service-method-derivation.js +410 -0
  231. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
  232. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +86 -0
  233. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
  234. package/dist/esm/_core/service-method/service-method-generation.schemas.js +28 -0
  235. package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
  236. package/dist/esm/_core/service-method/service-method-validation.d.ts +35 -0
  237. package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
  238. package/dist/esm/_core/service-method/service-method-validation.js +75 -0
  239. package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
  240. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
  241. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
  242. package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
  243. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
  244. package/dist/esm/_core/service-method/service-method.schemas.d.ts +385 -0
  245. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
  246. package/dist/esm/_core/service-method/service-method.schemas.js +372 -0
  247. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
  248. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +37 -5
  249. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
  250. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
  251. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
  252. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +29 -3
  253. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
  254. package/dist/esm/_core/website-plan/website-plan-validation.js +97 -5
  255. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
  256. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
  257. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +6 -1
  258. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
  259. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +521 -15
  260. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  261. package/dist/esm/_core/website-plan/website-plan.schemas.js +703 -23
  262. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  263. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +78 -0
  264. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
  265. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +92 -0
  266. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
  267. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +26 -0
  268. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  269. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +14 -0
  270. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  271. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +21 -5
  272. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  273. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
  274. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  275. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +119 -10
  276. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
  277. package/dist/esm/application-creation/application-line.application-creation.schemas.js +140 -7
  278. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
  279. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts +7 -1
  280. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
  281. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js +7 -1
  282. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.js.map +1 -1
  283. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
  284. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  285. package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
  286. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  287. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +103 -15
  288. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  289. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +151 -21
  290. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  291. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
  292. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  293. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
  294. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  295. package/dist/esm/application-creation.exports.d.ts +7 -0
  296. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  297. package/dist/esm/application-creation.exports.js +7 -0
  298. package/dist/esm/application-creation.exports.js.map +1 -1
  299. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +36 -2
  300. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
  301. package/dist/esm/assurance/application-risk-signals.derivations.js +52 -4
  302. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
  303. package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
  304. package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
  305. package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
  306. package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
  307. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +608 -9
  308. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  309. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2962 -1078
  310. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  311. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +15 -0
  312. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  313. package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
  314. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  315. package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
  316. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  317. package/dist/esm/assurance/assurance-document-system.definitions.js +138 -19
  318. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  319. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +65 -0
  320. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  321. package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
  322. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  323. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +81 -6
  324. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
  325. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +68 -7
  326. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
  327. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  328. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1631 -70
  329. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  330. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
  331. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
  332. package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
  333. package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
  334. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
  335. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  336. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +327 -3
  337. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  338. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
  339. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
  340. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
  341. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
  342. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +403 -0
  343. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
  344. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +825 -0
  345. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
  346. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +83 -8
  347. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  348. package/dist/esm/assurance/assurance-program-generation.schemas.js +167 -20
  349. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  350. package/dist/esm/assurance/assurance-program.schemas.d.ts +234 -35
  351. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  352. package/dist/esm/assurance/assurance-program.schemas.js +255 -14
  353. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  354. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
  355. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  356. package/dist/esm/assurance/assurance-source-registry.definitions.js +259 -18
  357. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  358. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
  359. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
  360. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +216 -0
  361. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
  362. package/dist/esm/assurance/assurance-sources.schemas.d.ts +110 -0
  363. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  364. package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
  365. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  366. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  367. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +356 -5
  368. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  369. package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
  370. package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
  371. package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
  372. package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
  373. package/dist/esm/assurance/governed-document-release.d.ts +15 -1
  374. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  375. package/dist/esm/assurance/governed-document-release.js +3 -1
  376. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  377. package/dist/esm/assurance.exports.d.ts +4 -0
  378. package/dist/esm/assurance.exports.d.ts.map +1 -1
  379. package/dist/esm/assurance.exports.js +4 -0
  380. package/dist/esm/assurance.exports.js.map +1 -1
  381. package/dist/esm/companion-exports.d.ts +9 -1
  382. package/dist/esm/companion-exports.d.ts.map +1 -1
  383. package/dist/esm/companion-exports.js.map +1 -1
  384. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -1
  385. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +33 -5
  387. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +9 -12
  390. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  391. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +1 -1
  392. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +60 -6
  394. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  395. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
  396. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  397. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  398. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  399. package/dist/esm/engine/applications/resources/applications.resource.specification.js +2 -2
  400. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  401. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +12 -4
  402. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  403. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +46 -10
  404. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  405. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +3 -2
  406. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
  408. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  409. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -1
  410. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +40 -11
  412. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  413. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -1
  414. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  415. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +44 -3
  416. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  417. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +7 -3
  418. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  419. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +40 -8
  420. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  421. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +14 -8
  422. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  423. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +72 -19
  424. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  425. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +2 -2
  426. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  427. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +6 -6
  428. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  429. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  430. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  431. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +14 -13
  432. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  433. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  434. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -2
  435. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  436. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -1
  437. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +1 -1
  438. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  439. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +68 -12
  440. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  441. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  442. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +75 -19
  443. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  444. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +3 -1
  445. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +11 -7
  447. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  448. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -0
  449. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  450. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -1
  451. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  452. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +4 -2
  453. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  454. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +8 -7
  455. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  456. package/dist/esm/engine/billing/resources/prices.resource.specification.js +1 -1
  457. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  458. package/dist/esm/engine/billing/resources/products.resource.specification.js +1 -1
  459. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  460. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +1 -1
  461. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  462. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +6 -6
  463. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  464. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +2 -2
  465. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +1 -1
  466. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  467. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +4 -0
  468. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +4 -1
  470. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +9 -5
  472. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  473. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +16 -8
  474. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  475. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +73 -0
  476. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
  477. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +192 -0
  478. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
  479. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +5 -3
  480. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  481. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +19 -13
  482. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  483. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +11 -6
  484. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +14 -3
  486. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
  487. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
  488. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
  489. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
  490. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
  491. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +1 -1
  492. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  494. package/dist/esm/engine/engine-resource-specifications.registry.js +55 -11
  495. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  496. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  497. package/dist/esm/engine/errors/error-messages.specification.js +300 -5
  498. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  499. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
  500. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  501. package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
  502. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  503. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  504. package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
  505. package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
  506. package/dist/esm/engine/features/index.d.ts +4 -2
  507. package/dist/esm/engine/features/index.d.ts.map +1 -1
  508. package/dist/esm/engine/features/index.js +6 -4
  509. package/dist/esm/engine/features/index.js.map +1 -1
  510. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -2
  511. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  512. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +34 -15
  514. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  515. package/dist/esm/engine/files/resources/files.resource.specification.d.ts +4 -1
  516. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  517. package/dist/esm/engine/files/resources/files.resource.specification.js +24 -3
  518. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  519. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  520. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +31 -3
  521. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  522. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +6 -6
  523. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  524. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
  525. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
  526. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
  527. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
  528. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
  529. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
  530. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
  531. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
  532. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
  533. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
  534. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
  535. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
  536. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
  537. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
  538. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
  539. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
  540. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
  541. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
  542. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
  543. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
  544. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
  545. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +92 -0
  546. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
  547. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
  548. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
  549. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
  550. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
  551. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +73 -31
  552. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  553. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +118 -18
  554. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  555. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -0
  556. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -4
  558. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  559. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
  560. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
  561. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
  562. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
  563. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
  564. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
  565. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
  566. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
  567. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
  568. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
  569. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
  570. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
  571. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
  572. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
  573. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
  574. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
  575. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +230 -0
  576. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
  577. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
  578. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
  579. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
  580. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
  581. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
  582. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
  583. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
  584. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
  585. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
  586. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
  587. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
  588. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
  589. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  590. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
  591. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  592. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +6 -0
  594. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
  595. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
  596. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
  597. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
  598. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
  599. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  600. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
  601. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
  602. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
  603. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  604. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
  606. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
  607. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
  609. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
  610. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
  611. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
  612. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
  613. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
  614. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
  615. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
  616. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
  617. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
  618. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
  619. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
  620. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +3 -2
  622. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  623. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
  624. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  625. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
  626. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
  628. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
  629. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
  630. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
  632. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
  633. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
  634. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
  635. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts +4 -0
  636. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.d.ts.map +1 -0
  637. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js +22 -0
  638. package/dist/esm/engine/frontend-components/app/public-layout-legal-notice.frontend-component.specification.js.map +1 -0
  639. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
  641. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  642. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  643. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
  644. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  645. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
  646. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
  647. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
  648. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
  649. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
  650. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  651. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
  652. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
  653. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
  654. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  655. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
  657. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
  658. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
  659. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
  660. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  661. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  662. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
  663. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  664. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
  665. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
  666. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
  667. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
  668. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
  669. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
  670. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
  671. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
  672. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
  673. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
  674. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
  675. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
  676. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
  677. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
  678. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +1 -1
  679. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
  680. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +1 -1
  681. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
  682. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +1 -1
  683. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
  684. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +1 -1
  685. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
  686. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +1 -1
  687. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
  688. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
  689. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
  690. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
  691. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
  692. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
  693. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
  694. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
  695. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  696. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  697. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
  698. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
  699. package/dist/esm/engine/frontend-components/index.d.ts +7 -0
  700. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  701. package/dist/esm/engine/frontend-components/index.js +29 -0
  702. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  703. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
  704. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
  705. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  706. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
  707. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
  708. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
  709. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
  710. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
  711. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
  712. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +2 -2
  713. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
  714. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
  715. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
  716. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
  717. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
  718. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  719. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +3 -1
  720. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  721. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
  722. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
  723. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
  724. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
  725. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  726. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
  727. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  728. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts +9 -0
  729. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.d.ts.map +1 -0
  730. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js +110 -0
  731. package/dist/esm/engine/infrastructure/resources/document-sequence-counters.resource.specification.js.map +1 -0
  732. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
  734. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
  735. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
  736. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
  737. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
  738. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
  739. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
  740. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
  741. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
  742. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  743. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
  744. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
  745. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
  746. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
  747. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
  748. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
  749. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
  750. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  751. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
  752. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  753. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
  754. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
  755. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
  756. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +21 -4
  757. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  758. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +3 -3
  759. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  760. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  761. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
  762. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
  763. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
  764. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
  765. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +5 -5
  766. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
  767. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +38 -10
  768. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  769. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
  770. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
  771. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
  772. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
  773. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
  774. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
  775. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +181 -0
  776. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
  777. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +3 -3
  778. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +7 -7
  779. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
  780. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +31 -1
  781. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +33 -7
  783. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  784. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +16 -14
  785. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  786. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +56 -53
  787. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  788. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -2
  789. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  790. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +22 -4
  791. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  792. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +2 -2
  793. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +2 -0
  794. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  795. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +3 -3
  796. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  797. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
  798. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
  799. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
  800. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
  801. package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
  802. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  803. package/dist/esm/engine/notifications/system-emails/index.js +1 -3
  804. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  805. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
  806. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  807. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
  808. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
  809. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
  810. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  811. package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
  812. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  813. package/dist/esm/engine/organizations/resources/index.js +1 -2
  814. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  815. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +5 -4
  816. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  817. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +114 -51
  818. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  819. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +11 -10
  820. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  821. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
  822. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  823. package/dist/esm/engine/organizations/resources/{service-provider-relationships.resource.specification.d.ts → organization-relationships.resource.specification.d.ts} +73 -56
  824. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
  825. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +643 -0
  826. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
  827. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +1 -1
  828. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +6 -4
  830. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  831. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -2
  832. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  833. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +4 -4
  834. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  835. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +93 -43
  836. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  837. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
  838. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
  839. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
  840. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
  841. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  842. package/dist/esm/engine/providers/github.provider.specification.js +8 -5
  843. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  844. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
  845. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
  846. package/dist/esm/engine/providers/google-drive.provider.specification.js +39 -0
  847. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
  848. package/dist/esm/engine/providers/index.d.ts +2 -0
  849. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  850. package/dist/esm/engine/providers/index.js +5 -1
  851. package/dist/esm/engine/providers/index.js.map +1 -1
  852. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
  853. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
  854. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +39 -0
  855. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
  856. package/dist/esm/engine/providers/mistral.provider.specification.js +2 -2
  857. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  858. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/providers/resend.provider.specification.js +8 -6
  860. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  861. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
  862. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
  863. package/dist/esm/engine/roles/index.d.ts +2 -2
  864. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  865. package/dist/esm/engine/roles/index.js +5 -5
  866. package/dist/esm/engine/roles/index.js.map +1 -1
  867. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
  868. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
  869. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
  870. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
  871. package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
  872. package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
  873. package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
  874. package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
  875. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +1 -0
  876. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  877. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
  878. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  879. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +3 -3
  880. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  881. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  882. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
  883. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  884. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +1 -1
  885. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  886. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
  887. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  888. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +1 -0
  889. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  890. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
  891. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  892. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -0
  893. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  894. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +3 -3
  895. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  896. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +1 -1
  897. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  898. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -0
  899. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  900. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +6 -2
  901. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  902. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +1 -0
  903. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  904. package/dist/esm/engine/users/resources/user-self.resource.specification.js +33 -0
  905. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  906. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +2 -1
  907. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  908. package/dist/esm/engine/users/resources/users.resource.specification.js +10 -4
  909. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  910. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  911. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +17 -15
  912. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  913. package/package.json +8 -8
  914. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
  915. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
  916. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
  917. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
  918. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
  919. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
  920. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
  921. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
  922. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
  923. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
  924. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
  925. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
  926. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
  927. package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
  928. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"business-model-lite-snapshot-validation.d.ts","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/business-model-lite-snapshot-validation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiD,KAAK,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEvI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,oBAAY,kCAAkC;IAC5C;;;;;OAKG;IACH,kBAAkB,uBAAuB;IACzC;;;OAGG;IACH,aAAa,kBAAkB;IAC/B;;;;;;;;OAQG;IACH,mBAAmB,wBAAwB;IAC3C;;;;;OAKG;IACH,QAAQ,aAAa;IACrB;;;;;OAKG;IACH,8BAA8B,mCAAmC;IACjE;;;;OAIG;IACH,uBAAuB,4BAA4B;IACnD;;;;;;;;OAQG;IACH,gBAAgB,qBAAqB;IACrC,iGAAiG;IACjG,cAAc,mBAAmB;IACjC;;;;OAIG;IACH,eAAe,oBAAoB;IACnC;;;;OAIG;IACH,uBAAuB,4BAA4B;CACpD;AAED,oBAAY,sCAAsC;IAChD,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,kCAAkC,CAAC;IACzC,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,sCAAsC,CAAC;CAClD;AAED,MAAM,WAAW,yCAAyC;IACxD,gDAAgD;IAChD,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,8BAA8B,EAAE,CAAC;CAC1C;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,wCAAwC;IACvD,8FAA8F;IAC9F,GAAG,CAAC,EAAE,IAAI,CAAC;IACX;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAChD;AAeD,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,yBAAyB,EACnC,OAAO,CAAC,EAAE,wCAAwC,GACjD,yCAAyC,CAe3C;AA0MD,gEAAgE"}
1
+ {"version":3,"file":"business-model-lite-snapshot-validation.d.ts","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/business-model-lite-snapshot-validation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiD,KAAK,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEvI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,oBAAY,kCAAkC;IAC5C;;;;;OAKG;IACH,kBAAkB,uBAAuB;IACzC;;;OAGG;IACH,aAAa,kBAAkB;IAC/B;;;;;;;;OAQG;IACH,mBAAmB,wBAAwB;IAC3C;;;;;OAKG;IACH,QAAQ,aAAa;IACrB;;;;;OAKG;IACH,8BAA8B,mCAAmC;IACjE;;;;OAIG;IACH,uBAAuB,4BAA4B;IACnD;;;;;;;;OAQG;IACH,gBAAgB,qBAAqB;IACrC;;;;OAIG;IACH,mBAAmB,wBAAwB;IAC3C,iGAAiG;IACjG,cAAc,mBAAmB;IACjC;;;;OAIG;IACH,eAAe,oBAAoB;IACnC;;;;OAIG;IACH,uBAAuB,4BAA4B;CACpD;AAED,oBAAY,sCAAsC;IAChD,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,kCAAkC,CAAC;IACzC,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,sCAAsC,CAAC;CAClD;AAED,MAAM,WAAW,yCAAyC;IACxD,gDAAgD;IAChD,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,8BAA8B,EAAE,CAAC;CAC1C;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,wCAAwC;IACvD,8FAA8F;IAC9F,GAAG,CAAC,EAAE,IAAI,CAAC;IACX;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAChD;AAeD,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,yBAAyB,EACnC,OAAO,CAAC,EAAE,wCAAwC,GACjD,yCAAyC,CAe3C;AAsND,gEAAgE"}
@@ -1,4 +1,5 @@
1
1
  import { ReviewCadence } from '../market/market-authored-metadata.schemas.js';
2
+ import { PricingModelAxis } from './pricing-plan.schemas.js';
2
3
  import { PRICING_PLAN_REF_PATTERN } from './business-model-references.schemas.js';
3
4
  import { PricingTiersStatus, resolvePricingTiersStatus } from './business-model-lite-snapshot.schemas.js';
4
5
  /**
@@ -96,6 +97,12 @@ export var BusinessModelLiteSnapshotIssueKind;
96
97
  * sharper "sketched pricing, forgot the revenue model" state.
97
98
  */
98
99
  BusinessModelLiteSnapshotIssueKind["NO_REVENUE_MODEL"] = "no_revenue_model";
100
+ /**
101
+ * A plan's `usageUnit` disagrees with its `pricingModel` (#2305 S5): a `PER_USAGE` plan that does not say what one
102
+ * unit counts (a meter nobody can name), or a unit on a plan not priced per usage (a meter nothing records). WARN:
103
+ * the plan is still a plan; the billing catalogue and a per-case service read the unit, and say what is missing.
104
+ */
105
+ BusinessModelLiteSnapshotIssueKind["USAGE_UNIT_MISMATCH"] = "usage_unit_mismatch";
99
106
  /** `lastAuthoredAt + reviewCadence < now` (WARN — market/vision/requirements/roadmap parity). */
100
107
  BusinessModelLiteSnapshotIssueKind["STALE_AUTHORED"] = "stale_authored";
101
108
  /**
@@ -202,6 +209,19 @@ function detectIncompleteness(snapshot, issues) {
202
209
  severity: BusinessModelLiteSnapshotIssueSeverity.WARN,
203
210
  });
204
211
  }
212
+ snapshot.plans.forEach((plan, index) => {
213
+ const perUsage = plan.pricingModel === PricingModelAxis.PER_USAGE;
214
+ if (perUsage === (plan.usageUnit !== undefined))
215
+ return;
216
+ issues.push({
217
+ kind: BusinessModelLiteSnapshotIssueKind.USAGE_UNIT_MISMATCH,
218
+ path: `plans[${index}].usageUnit`,
219
+ message: perUsage
220
+ ? `Plan "${plan.ref}" is priced per usage and does not say what one unit counts — name it in usageUnit ("close", "API call").`
221
+ : `Plan "${plan.ref}" names a usage unit but is not priced per usage — remove usageUnit, or set pricingModel to per_usage.`,
222
+ severity: BusinessModelLiteSnapshotIssueSeverity.WARN,
223
+ });
224
+ });
205
225
  // Gated on plans being present: an empty snapshot is already covered by
206
226
  // NO_PLANS, so this fires only for the sharper "pricing is sketched but the
207
227
  // product's headline revenue model is undeclared" state.
@@ -1 +1 @@
1
- {"version":3,"file":"business-model-lite-snapshot-validation.js","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/business-model-lite-snapshot-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAG3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAkC,MAAM,wCAAwC,CAAC;AAEvI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAN,IAAY,kCAmEX;AAnED,WAAY,kCAAkC;IAC5C;;;;;OAKG;IACH,+EAAyC,CAAA;IACzC;;;OAGG;IACH,qEAA+B,CAAA;IAC/B;;;;;;;;OAQG;IACH,iFAA2C,CAAA;IAC3C;;;;;OAKG;IACH,2DAAqB,CAAA;IACrB;;;;;OAKG;IACH,uGAAiE,CAAA;IACjE;;;;OAIG;IACH,yFAAmD,CAAA;IACnD;;;;;;;;OAQG;IACH,2EAAqC,CAAA;IACrC,iGAAiG;IACjG,uEAAiC,CAAA;IACjC;;;;OAIG;IACH,yEAAmC,CAAA;IACnC;;;;OAIG;IACH,yFAAmD,CAAA;AACrD,CAAC,EAnEW,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AAE,CAAC;YACpD,KAAK,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE;gBAC1D,IAAI,OAAO,CAAC,wBAAyB,CAAC,GAAG,CAAC,MAAM,CAAC;oBAAE,OAAO;gBAC1D,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,kCAAkC,CAAC,uBAAuB;oBAChE,IAAI,EAAE,SAAS,KAAK,6BAA6B,QAAQ,GAAG;oBAC5D,OAAO,EAAE,oBAAoB,MAAM,cAAc,KAAK,CAAC,GAAG,yDAAyD;oBACnH,QAAQ,EAAE,sCAAsC,CAAC,KAAK;iBACvD,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AACD,gEAAgE","sourcesContent":["import { ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport type { BusinessModelAuthoredMetadata } from './business-model-authored-metadata.schemas';\nimport type { PricingPlanConfig } from './pricing-plan.schemas';\nimport { PRICING_PLAN_REF_PATTERN } from './business-model-references.schemas';\nimport { PricingTiersStatus, resolvePricingTiersStatus, type BusinessModelLiteSnapshot } from './business-model-lite-snapshot.schemas';\n\n/**\n * @wildo_source:part:start business-model.snapshot.validation facet:layer:specification facet:family:business-model\n *\n * Authoring-consistency validator for an assembled\n * `BusinessModelLiteSnapshot`.\n *\n * The function is a **pure**, **typed** graph walker over the snapshot — no\n * Zod introspection, no registry access, no I/O (the `_core` validator\n * convention shared with `validateMarketSnapshot` / `validateVisionSnapshot`\n * / `validateRequirementsSnapshot` / `validateRoadmapSnapshot` /\n * `validateAssertionSpecificationSnapshot`). Zod already enforces structural\n * validity (ref formats at parse time); this walker adds the cross-entity +\n * completeness checks Zod cannot express, the defence-in-depth ref-format\n * check for type-asserted fixtures that bypass parsing, and the fail-soft\n * cross-family ICP / requirement ref resolution.\n *\n * Rule table — 10 kinds (scaffold depth, Phase J1 — deeper pricing / revenue\n * analysis is Phase J2):\n *\n * | Kind | Severity | Trigger |\n * |----------------------------|----------|--------------------------------------------------------------------------------|\n * | `INVALID_REF_FORMAT` | ERROR | A plan ref fails the shared pattern (single source of truth with the Zod schema). Defence in depth for type-asserted fixtures. |\n * | `DUPLICATE_REF` | ERROR | Two plans share a ref — the collection silently loses one entity to last-wins indexing. |\n * | `DUPLICATE_CROSS_REF` | WARN | The same target/include-ref is listed more than once on ONE plan's cross-ref list — the repeat is noise the catalog silently dedupes. Intra-snapshot, so it runs UNCONDITIONALLY (no external set needed) — each cross-ref list is its own namespace. |\n * | `NO_PLANS` | WARN | `plans` empty and nobody has said why — the business model sketches no pricing. SILENT when `pricingTiers` is `UNDECIDED`: there the emptiness is the creator's recorded answer, not owed work. |\n * | `PRICING_TIERS_CONTRADICT_PLANS` | ERROR | The declared `pricingTiers` disagrees with `plans`: `undecided` with plans present, or `creator_stated` / `proposed` with none. |\n * | `PROPOSAL_BASIS_MISMATCH` | ERROR | A plan of a `proposed` sketch has no `proposalBasis`, or a plan of a `creator_stated` one has one. Read through `resolvePricingTiersStatus`, so a hand-authored file with plans and no status counts as stated. |\n * | `NO_REVENUE_MODEL` | WARN | `plans` are authored but the product-level `revenueModel` is unset — the pricing sketch is classified per-plan (`PricingModelAxis`) but the product's headline revenue model is undeclared. GATED on `plans.length > 0`: an empty snapshot is already fully described by `NO_PLANS`, so this fires only for the sharper \"sketched pricing, forgot the revenue model\" state (no redundant double-warn on `{}`). |\n * | `STALE_AUTHORED` | WARN | Any plan's `authored.lastAuthoredAt + reviewCadence < now`. No check when `reviewCadence` is undefined or `AS_NEEDED`. |\n * | `UNKNOWN_ICP_REF` | ERROR | A `targetIcpRefs` entry does not resolve in `options.availableIcpRefs`. SKIPPED (fail-soft) when no set is passed — the families are decoupled and the catalog resolves refs. |\n * | `UNKNOWN_REQUIREMENT_REF` | ERROR | An `includesRequirementRefs` entry does not resolve in `options.availableRequirementRefs`. SKIPPED (fail-soft) when no set is passed. |\n *\n * There is deliberately NO `DUPLICATE_SEQUENCE` detector: pricing plans (unlike\n * roadmap phases) are NOT inherently ordered, so the family carries no\n * `sequence` axis to collide on.\n *\n * Severity is a TS enum (project rule — enums over literal unions). The\n * validator never mutates the snapshot. Issue ordering is detector-order\n * then walk-order — NOT a stable contract; callers group/sort by `kind` +\n * `severity` themselves.\n */\nexport enum BusinessModelLiteSnapshotIssueKind {\n /**\n * A plan ref violates its kebab-case prefix contract. The Zod schema\n * rejects this at parse time; the detector remains as defence in depth for\n * callers that bypass parsing (tests building snapshots with type-asserted\n * fixtures). ERROR.\n */\n INVALID_REF_FORMAT = 'invalid_ref_format',\n /**\n * Two plans share a ref. The collection is addressed by ref downstream, so\n * a duplicate silently drops one plan. ERROR.\n */\n DUPLICATE_REF = 'duplicate_ref',\n /**\n * The same ICP / requirement ref appears more than once on ONE plan's\n * cross-ref list. The repeat carries no meaning — the catalog dedupes it\n * (or double-counts it in coverage). WARN, not ERROR: the plan is still\n * valid, the authoring is just untidy. Runs unconditionally (intra-\n * snapshot, needs no external set); each cross-ref list is its own\n * namespace, so the same string appearing once in each of the two lists is\n * NOT a duplicate.\n */\n DUPLICATE_CROSS_REF = 'duplicate_cross_ref',\n /**\n * `plans` empty and no recorded reason — the business model sketches no\n * pricing (WARN). Not raised when `pricingTiers` is `UNDECIDED`: a considered\n * \"not decided yet\" is an answer, and warning on it would teach the reader to\n * skim the warning that means work is owed.\n */\n NO_PLANS = 'no_plans',\n /**\n * The declared `pricingTiers` and the `plans` collection contradict each\n * other — `undecided` while plans are present, or `creator_stated` /\n * `proposed` with no plan. ERROR: one of the two statements is false, and a\n * reader cannot tell which.\n */\n PRICING_TIERS_CONTRADICT_PLANS = 'pricing_tiers_contradict_plans',\n /**\n * A plan's `proposalBasis` disagrees with where the tiers came from — missing\n * on a plan of a `proposed` sketch (a proposal nobody can check), or present\n * on a plan the creator stated (a proposal nobody made). ERROR.\n */\n PROPOSAL_BASIS_MISMATCH = 'proposal_basis_mismatch',\n /**\n * `plans` are authored but the product-level `revenueModel` is unset. The\n * pricing sketch classifies HOW each plan scales (`PricingModelAxis`) but\n * leaves the product's headline \"how it makes money\" undeclared. WARN, not\n * ERROR: the model is still structurally valid, just under-classified.\n * GATED on `plans.length > 0` — a fully-empty snapshot is already covered\n * by `NO_PLANS`, so this never double-warns on `{}`; it fires only for the\n * sharper \"sketched pricing, forgot the revenue model\" state.\n */\n NO_REVENUE_MODEL = 'no_revenue_model',\n /** `lastAuthoredAt + reviewCadence < now` (WARN — market/vision/requirements/roadmap parity). */\n STALE_AUTHORED = 'stale_authored',\n /**\n * A `targetIcpRefs` entry does not resolve against the supplied ICP-ref\n * set — a dangling cross-family reference. ERROR when a set is supplied;\n * the whole check is SKIPPED (fail-soft) when it is not.\n */\n UNKNOWN_ICP_REF = 'unknown_icp_ref',\n /**\n * An `includesRequirementRefs` entry does not resolve against the supplied\n * requirement-ref set. ERROR when a set is supplied; SKIPPED (fail-soft)\n * when it is not.\n */\n UNKNOWN_REQUIREMENT_REF = 'unknown_requirement_ref',\n}\n\nexport enum BusinessModelLiteSnapshotIssueSeverity {\n ERROR = 'error',\n WARN = 'warn',\n}\n\nexport interface BusinessModelLiteSnapshotIssue {\n kind: BusinessModelLiteSnapshotIssueKind;\n /** Dotted path inside the snapshot (e.g. `'plans[2].ref'`). */\n path: string;\n message: string;\n severity: BusinessModelLiteSnapshotIssueSeverity;\n}\n\nexport interface BusinessModelLiteSnapshotValidationResult {\n /** `true` iff no issue has severity `ERROR`. */\n ok: boolean;\n issues: BusinessModelLiteSnapshotIssue[];\n}\n\n/**\n * Options for this family validator.\n *\n * ## The cross-family sets are OPT-IN, and omitting one SKIPS its check\n *\n * A family validator sees one family. It cannot resolve a reference into another family's\n * vocabulary unless you hand it that family's refs — so each `available*Refs` option is the caller\n * saying \"I have this context, use it\". Omit one and the matching check does not run: no issue is\n * reported, and the absence looks exactly like a snapshot with no such reference.\n *\n * That is deliberate — the families are decoupled on purpose — but it means a validator called with\n * the snapshot alone is checking this family's INTERNAL consistency only. If you want dangling\n * cross-family references caught, supply the sets; if you validate one family in isolation, expect\n * them to be found later by whatever holds every family at once.\n */\nexport interface ValidateBusinessModelLiteSnapshotOptions {\n /** Override \"now\" for `STALE_AUTHORED` checks (test affordance). Defaults to `new Date()`. */\n now?: Date;\n /**\n * Resolvable market ICP refs. When supplied, every `targetIcpRefs` entry\n * not in the set is reported as `UNKNOWN_ICP_REF`. When omitted, the check\n * is skipped entirely (fail-soft — the business-model family is decoupled\n * from the market family; the catalog owns resolution).\n */\n availableIcpRefs?: ReadonlySet<string>;\n /**\n * Resolvable functional-requirement refs. Same skip-when-omitted semantics\n * as `availableIcpRefs`, reported as `UNKNOWN_REQUIREMENT_REF`.\n */\n availableRequirementRefs?: ReadonlySet<string>;\n}\n\n/**\n * Days-per-cadence mapping, mirrored from the market / vision / requirements\n * / roadmap / assertions validators (module-local there too — a shared\n * promotion is part of the deferred authored-metadata generalization).\n */\nconst REVIEW_CADENCE_TO_DAYS: Record<ReviewCadence, number> = {\n [ReviewCadence.WEEKLY]: 7,\n [ReviewCadence.MONTHLY]: 31,\n [ReviewCadence.QUARTERLY]: 92,\n [ReviewCadence.YEARLY]: 366,\n [ReviewCadence.AS_NEEDED]: Number.POSITIVE_INFINITY,\n};\n\nexport function validateBusinessModelLiteSnapshot(\n snapshot: BusinessModelLiteSnapshot,\n options?: ValidateBusinessModelLiteSnapshotOptions,\n): BusinessModelLiteSnapshotValidationResult {\n const issues: BusinessModelLiteSnapshotIssue[] = [];\n\n detectInvalidRefFormats(snapshot, issues);\n detectDuplicateRefs(snapshot, issues);\n detectDuplicateCrossRefs(snapshot, issues);\n detectIncompleteness(snapshot, issues);\n detectPricingTiersDisagreement(snapshot, issues);\n detectStaleAuthored(snapshot, options?.now ?? new Date(), issues);\n detectUnknownCrossRefs(snapshot, options, issues);\n\n const ok = issues.every(\n issue => issue.severity !== BusinessModelLiteSnapshotIssueSeverity.ERROR,\n );\n return { ok, issues };\n}\n\n// ────────────────────────────────────────────────────────────────────\n// Detectors — one per rule, kept small and independently testable.\n// ────────────────────────────────────────────────────────────────────\n\nfunction detectInvalidRefFormats(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n snapshot.plans.forEach((entry, index) => {\n if (PRICING_PLAN_REF_PATTERN.test(entry.ref)) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.INVALID_REF_FORMAT,\n path: `plans[${index}].ref`,\n message: `Pricing-plan ref \"${entry.ref}\" is not kebab-case with the \"pricing-plan-\" prefix.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateRefs(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n const seen = new Set<string>();\n snapshot.plans.forEach((entry, index) => {\n if (!seen.has(entry.ref)) {\n seen.add(entry.ref);\n return;\n }\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.DUPLICATE_REF,\n path: `plans[${index}].ref`,\n message: `Duplicate ref \"${entry.ref}\" in plans — refs must be unique; the collection is addressed by ref downstream.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateCrossRefs(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n const checkList = (\n refs: readonly string[] | undefined,\n entry: PricingPlanConfig,\n path: string,\n ): void => {\n if (refs === undefined) return;\n const seen = new Set<string>();\n refs.forEach((ref, refIndex) => {\n if (!seen.has(ref)) {\n seen.add(ref);\n return;\n }\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.DUPLICATE_CROSS_REF,\n path: `${path}[${refIndex}]`,\n message: `Cross-ref \"${ref}\" is listed more than once on plan \"${entry.ref}\" (${path}). Remove the duplicate.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n });\n };\n\n snapshot.plans.forEach((entry, index) => {\n checkList(entry.targetIcpRefs, entry, `plans[${index}].targetIcpRefs`);\n checkList(\n entry.includesRequirementRefs,\n entry,\n `plans[${index}].includesRequirementRefs`,\n );\n });\n}\n\nfunction detectIncompleteness(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n if (snapshot.plans.length === 0 && resolvePricingTiersStatus(snapshot) !== PricingTiersStatus.UNDECIDED) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.NO_PLANS,\n path: 'plans',\n message: 'Business model sketches no pricing plans — it describes no way the product is sold.',\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n }\n // Gated on plans being present: an empty snapshot is already covered by\n // NO_PLANS, so this fires only for the sharper \"pricing is sketched but the\n // product's headline revenue model is undeclared\" state.\n if (snapshot.plans.length > 0 && snapshot.revenueModel === undefined) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.NO_REVENUE_MODEL,\n path: 'revenueModel',\n message: 'Pricing plans are authored but revenueModel is unset — classify how the product makes money (RevenueModelKind).',\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n }\n}\n\nfunction detectPricingTiersDisagreement(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n const declared = snapshot.pricingTiers;\n if (declared === PricingTiersStatus.UNDECIDED && snapshot.plans.length > 0) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.PRICING_TIERS_CONTRADICT_PLANS,\n path: 'pricingTiers',\n message: `pricingTiers is \"undecided\" but ${snapshot.plans.length} plan(s) are present — remove the plans, or declare where they came from.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n }\n if ((declared === PricingTiersStatus.CREATOR_STATED || declared === PricingTiersStatus.PROPOSED) && snapshot.plans.length === 0) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.PRICING_TIERS_CONTRADICT_PLANS,\n path: 'pricingTiers',\n message: `pricingTiers is \"${declared}\" but no plan is present — record the plans, or declare \"undecided\".`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n }\n\n const resolved = resolvePricingTiersStatus(snapshot);\n snapshot.plans.forEach((entry, index) => {\n if (resolved === PricingTiersStatus.PROPOSED && entry.proposalBasis === undefined) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.PROPOSAL_BASIS_MISMATCH,\n path: `plans[${index}].proposalBasis`,\n message: `Plan \"${entry.ref}\" is a proposal but states no proposalBasis — name the ICP and requirements it was derived from.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n }\n if (resolved === PricingTiersStatus.CREATOR_STATED && entry.proposalBasis !== undefined) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.PROPOSAL_BASIS_MISMATCH,\n path: `plans[${index}].proposalBasis`,\n message: `Plan \"${entry.ref}\" was stated by the creator but carries a proposalBasis — remove it, or declare pricingTiers \"proposed\".`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n }\n });\n}\n\nfunction detectStaleAuthored(\n snapshot: BusinessModelLiteSnapshot,\n now: Date,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n const checkOne = (\n authored: BusinessModelAuthoredMetadata | undefined,\n path: string,\n ): void => {\n if (authored?.reviewCadence === undefined) return;\n const days = REVIEW_CADENCE_TO_DAYS[authored.reviewCadence];\n if (!Number.isFinite(days)) return;\n const lastAuthored = new Date(authored.lastAuthoredAt).getTime();\n if (Number.isNaN(lastAuthored)) return;\n const ageDays = (now.getTime() - lastAuthored) / (24 * 60 * 60 * 1000);\n if (ageDays <= days) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.STALE_AUTHORED,\n path,\n message: `Pricing plan at \"${path}\" is ${Math.floor(ageDays)} days old (cadence ${authored.reviewCadence} ⇒ ${days}d). Re-author or remove the cadence.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n };\n\n snapshot.plans.forEach((entry, index) =>\n checkOne(entry.authored, `plans[${index}].authored`),\n );\n}\n\nfunction detectUnknownCrossRefs(\n snapshot: BusinessModelLiteSnapshot,\n options: ValidateBusinessModelLiteSnapshotOptions | undefined,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n snapshot.plans.forEach((entry, index) => {\n if (options?.availableIcpRefs !== undefined) {\n entry.targetIcpRefs?.forEach((icpRef, refIndex) => {\n if (options.availableIcpRefs!.has(icpRef)) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.UNKNOWN_ICP_REF,\n path: `plans[${index}].targetIcpRefs[${refIndex}]`,\n message: `ICP ref \"${icpRef}\" on plan \"${entry.ref}\" does not resolve in the supplied ICP-ref set.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n });\n }\n if (options?.availableRequirementRefs !== undefined) {\n entry.includesRequirementRefs?.forEach((reqRef, refIndex) => {\n if (options.availableRequirementRefs!.has(reqRef)) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.UNKNOWN_REQUIREMENT_REF,\n path: `plans[${index}].includesRequirementRefs[${refIndex}]`,\n message: `Requirement ref \"${reqRef}\" on plan \"${entry.ref}\" does not resolve in the supplied requirement-ref set.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n });\n }\n });\n}\n/** @wildo_source:part:end business-model.snapshot.validation */\n"]}
1
+ {"version":3,"file":"business-model-lite-snapshot-validation.js","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/business-model-lite-snapshot-validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,EAAE,gBAAgB,EAA0B,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAkC,MAAM,wCAAwC,CAAC;AAEvI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAM,CAAN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AkC,CAAC,uBAAuB;oBAChE,IAAI,EAAE,SAAS,KAAK,6BAA6B,QAAQ,GAAG;oBAC5D,OAAO,EAAE,oBAAoB,MAAM,cAAc,KAAK,CAAC,GAAG,yDAAyD;oBACnH,QAAQ,EAAE,sCAAsC,CAAC,KAAK;iBACvD,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AACD,gEAAgE","sourcesContent":["import { ReviewCadence } from '../market/market-authored-metadata.schemas';\nimport type { BusinessModelAuthoredMetadata } from './business-model-authored-metadata.schemas';\nimport { PricingModelAxis, type PricingPlanConfig } from './pricing-plan.schemas';\nimport { PRICING_PLAN_REF_PATTERN } from './business-model-references.schemas';\nimport { PricingTiersStatus, resolvePricingTiersStatus, type BusinessModelLiteSnapshot } from './business-model-lite-snapshot.schemas';\n\n/**\n * @wildo_source:part:start business-model.snapshot.validation facet:layer:specification facet:family:business-model\n *\n * Authoring-consistency validator for an assembled\n * `BusinessModelLiteSnapshot`.\n *\n * The function is a **pure**, **typed** graph walker over the snapshot — no\n * Zod introspection, no registry access, no I/O (the `_core` validator\n * convention shared with `validateMarketSnapshot` / `validateVisionSnapshot`\n * / `validateRequirementsSnapshot` / `validateRoadmapSnapshot` /\n * `validateAssertionSpecificationSnapshot`). Zod already enforces structural\n * validity (ref formats at parse time); this walker adds the cross-entity +\n * completeness checks Zod cannot express, the defence-in-depth ref-format\n * check for type-asserted fixtures that bypass parsing, and the fail-soft\n * cross-family ICP / requirement ref resolution.\n *\n * Rule table — 10 kinds (scaffold depth, Phase J1 — deeper pricing / revenue\n * analysis is Phase J2):\n *\n * | Kind | Severity | Trigger |\n * |----------------------------|----------|--------------------------------------------------------------------------------|\n * | `INVALID_REF_FORMAT` | ERROR | A plan ref fails the shared pattern (single source of truth with the Zod schema). Defence in depth for type-asserted fixtures. |\n * | `DUPLICATE_REF` | ERROR | Two plans share a ref — the collection silently loses one entity to last-wins indexing. |\n * | `DUPLICATE_CROSS_REF` | WARN | The same target/include-ref is listed more than once on ONE plan's cross-ref list — the repeat is noise the catalog silently dedupes. Intra-snapshot, so it runs UNCONDITIONALLY (no external set needed) — each cross-ref list is its own namespace. |\n * | `NO_PLANS` | WARN | `plans` empty and nobody has said why — the business model sketches no pricing. SILENT when `pricingTiers` is `UNDECIDED`: there the emptiness is the creator's recorded answer, not owed work. |\n * | `PRICING_TIERS_CONTRADICT_PLANS` | ERROR | The declared `pricingTiers` disagrees with `plans`: `undecided` with plans present, or `creator_stated` / `proposed` with none. |\n * | `PROPOSAL_BASIS_MISMATCH` | ERROR | A plan of a `proposed` sketch has no `proposalBasis`, or a plan of a `creator_stated` one has one. Read through `resolvePricingTiersStatus`, so a hand-authored file with plans and no status counts as stated. |\n * | `NO_REVENUE_MODEL` | WARN | `plans` are authored but the product-level `revenueModel` is unset — the pricing sketch is classified per-plan (`PricingModelAxis`) but the product's headline revenue model is undeclared. GATED on `plans.length > 0`: an empty snapshot is already fully described by `NO_PLANS`, so this fires only for the sharper \"sketched pricing, forgot the revenue model\" state (no redundant double-warn on `{}`). |\n * | `STALE_AUTHORED` | WARN | Any plan's `authored.lastAuthoredAt + reviewCadence < now`. No check when `reviewCadence` is undefined or `AS_NEEDED`. |\n * | `UNKNOWN_ICP_REF` | ERROR | A `targetIcpRefs` entry does not resolve in `options.availableIcpRefs`. SKIPPED (fail-soft) when no set is passed — the families are decoupled and the catalog resolves refs. |\n * | `UNKNOWN_REQUIREMENT_REF` | ERROR | An `includesRequirementRefs` entry does not resolve in `options.availableRequirementRefs`. SKIPPED (fail-soft) when no set is passed. |\n *\n * There is deliberately NO `DUPLICATE_SEQUENCE` detector: pricing plans (unlike\n * roadmap phases) are NOT inherently ordered, so the family carries no\n * `sequence` axis to collide on.\n *\n * Severity is a TS enum (project rule — enums over literal unions). The\n * validator never mutates the snapshot. Issue ordering is detector-order\n * then walk-order — NOT a stable contract; callers group/sort by `kind` +\n * `severity` themselves.\n */\nexport enum BusinessModelLiteSnapshotIssueKind {\n /**\n * A plan ref violates its kebab-case prefix contract. The Zod schema\n * rejects this at parse time; the detector remains as defence in depth for\n * callers that bypass parsing (tests building snapshots with type-asserted\n * fixtures). ERROR.\n */\n INVALID_REF_FORMAT = 'invalid_ref_format',\n /**\n * Two plans share a ref. The collection is addressed by ref downstream, so\n * a duplicate silently drops one plan. ERROR.\n */\n DUPLICATE_REF = 'duplicate_ref',\n /**\n * The same ICP / requirement ref appears more than once on ONE plan's\n * cross-ref list. The repeat carries no meaning — the catalog dedupes it\n * (or double-counts it in coverage). WARN, not ERROR: the plan is still\n * valid, the authoring is just untidy. Runs unconditionally (intra-\n * snapshot, needs no external set); each cross-ref list is its own\n * namespace, so the same string appearing once in each of the two lists is\n * NOT a duplicate.\n */\n DUPLICATE_CROSS_REF = 'duplicate_cross_ref',\n /**\n * `plans` empty and no recorded reason — the business model sketches no\n * pricing (WARN). Not raised when `pricingTiers` is `UNDECIDED`: a considered\n * \"not decided yet\" is an answer, and warning on it would teach the reader to\n * skim the warning that means work is owed.\n */\n NO_PLANS = 'no_plans',\n /**\n * The declared `pricingTiers` and the `plans` collection contradict each\n * other — `undecided` while plans are present, or `creator_stated` /\n * `proposed` with no plan. ERROR: one of the two statements is false, and a\n * reader cannot tell which.\n */\n PRICING_TIERS_CONTRADICT_PLANS = 'pricing_tiers_contradict_plans',\n /**\n * A plan's `proposalBasis` disagrees with where the tiers came from — missing\n * on a plan of a `proposed` sketch (a proposal nobody can check), or present\n * on a plan the creator stated (a proposal nobody made). ERROR.\n */\n PROPOSAL_BASIS_MISMATCH = 'proposal_basis_mismatch',\n /**\n * `plans` are authored but the product-level `revenueModel` is unset. The\n * pricing sketch classifies HOW each plan scales (`PricingModelAxis`) but\n * leaves the product's headline \"how it makes money\" undeclared. WARN, not\n * ERROR: the model is still structurally valid, just under-classified.\n * GATED on `plans.length > 0` — a fully-empty snapshot is already covered\n * by `NO_PLANS`, so this never double-warns on `{}`; it fires only for the\n * sharper \"sketched pricing, forgot the revenue model\" state.\n */\n NO_REVENUE_MODEL = 'no_revenue_model',\n /**\n * A plan's `usageUnit` disagrees with its `pricingModel` (#2305 S5): a `PER_USAGE` plan that does not say what one\n * unit counts (a meter nobody can name), or a unit on a plan not priced per usage (a meter nothing records). WARN:\n * the plan is still a plan; the billing catalogue and a per-case service read the unit, and say what is missing.\n */\n USAGE_UNIT_MISMATCH = 'usage_unit_mismatch',\n /** `lastAuthoredAt + reviewCadence < now` (WARN — market/vision/requirements/roadmap parity). */\n STALE_AUTHORED = 'stale_authored',\n /**\n * A `targetIcpRefs` entry does not resolve against the supplied ICP-ref\n * set — a dangling cross-family reference. ERROR when a set is supplied;\n * the whole check is SKIPPED (fail-soft) when it is not.\n */\n UNKNOWN_ICP_REF = 'unknown_icp_ref',\n /**\n * An `includesRequirementRefs` entry does not resolve against the supplied\n * requirement-ref set. ERROR when a set is supplied; SKIPPED (fail-soft)\n * when it is not.\n */\n UNKNOWN_REQUIREMENT_REF = 'unknown_requirement_ref',\n}\n\nexport enum BusinessModelLiteSnapshotIssueSeverity {\n ERROR = 'error',\n WARN = 'warn',\n}\n\nexport interface BusinessModelLiteSnapshotIssue {\n kind: BusinessModelLiteSnapshotIssueKind;\n /** Dotted path inside the snapshot (e.g. `'plans[2].ref'`). */\n path: string;\n message: string;\n severity: BusinessModelLiteSnapshotIssueSeverity;\n}\n\nexport interface BusinessModelLiteSnapshotValidationResult {\n /** `true` iff no issue has severity `ERROR`. */\n ok: boolean;\n issues: BusinessModelLiteSnapshotIssue[];\n}\n\n/**\n * Options for this family validator.\n *\n * ## The cross-family sets are OPT-IN, and omitting one SKIPS its check\n *\n * A family validator sees one family. It cannot resolve a reference into another family's\n * vocabulary unless you hand it that family's refs — so each `available*Refs` option is the caller\n * saying \"I have this context, use it\". Omit one and the matching check does not run: no issue is\n * reported, and the absence looks exactly like a snapshot with no such reference.\n *\n * That is deliberate — the families are decoupled on purpose — but it means a validator called with\n * the snapshot alone is checking this family's INTERNAL consistency only. If you want dangling\n * cross-family references caught, supply the sets; if you validate one family in isolation, expect\n * them to be found later by whatever holds every family at once.\n */\nexport interface ValidateBusinessModelLiteSnapshotOptions {\n /** Override \"now\" for `STALE_AUTHORED` checks (test affordance). Defaults to `new Date()`. */\n now?: Date;\n /**\n * Resolvable market ICP refs. When supplied, every `targetIcpRefs` entry\n * not in the set is reported as `UNKNOWN_ICP_REF`. When omitted, the check\n * is skipped entirely (fail-soft — the business-model family is decoupled\n * from the market family; the catalog owns resolution).\n */\n availableIcpRefs?: ReadonlySet<string>;\n /**\n * Resolvable functional-requirement refs. Same skip-when-omitted semantics\n * as `availableIcpRefs`, reported as `UNKNOWN_REQUIREMENT_REF`.\n */\n availableRequirementRefs?: ReadonlySet<string>;\n}\n\n/**\n * Days-per-cadence mapping, mirrored from the market / vision / requirements\n * / roadmap / assertions validators (module-local there too — a shared\n * promotion is part of the deferred authored-metadata generalization).\n */\nconst REVIEW_CADENCE_TO_DAYS: Record<ReviewCadence, number> = {\n [ReviewCadence.WEEKLY]: 7,\n [ReviewCadence.MONTHLY]: 31,\n [ReviewCadence.QUARTERLY]: 92,\n [ReviewCadence.YEARLY]: 366,\n [ReviewCadence.AS_NEEDED]: Number.POSITIVE_INFINITY,\n};\n\nexport function validateBusinessModelLiteSnapshot(\n snapshot: BusinessModelLiteSnapshot,\n options?: ValidateBusinessModelLiteSnapshotOptions,\n): BusinessModelLiteSnapshotValidationResult {\n const issues: BusinessModelLiteSnapshotIssue[] = [];\n\n detectInvalidRefFormats(snapshot, issues);\n detectDuplicateRefs(snapshot, issues);\n detectDuplicateCrossRefs(snapshot, issues);\n detectIncompleteness(snapshot, issues);\n detectPricingTiersDisagreement(snapshot, issues);\n detectStaleAuthored(snapshot, options?.now ?? new Date(), issues);\n detectUnknownCrossRefs(snapshot, options, issues);\n\n const ok = issues.every(\n issue => issue.severity !== BusinessModelLiteSnapshotIssueSeverity.ERROR,\n );\n return { ok, issues };\n}\n\n// ────────────────────────────────────────────────────────────────────\n// Detectors — one per rule, kept small and independently testable.\n// ────────────────────────────────────────────────────────────────────\n\nfunction detectInvalidRefFormats(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n snapshot.plans.forEach((entry, index) => {\n if (PRICING_PLAN_REF_PATTERN.test(entry.ref)) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.INVALID_REF_FORMAT,\n path: `plans[${index}].ref`,\n message: `Pricing-plan ref \"${entry.ref}\" is not kebab-case with the \"pricing-plan-\" prefix.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateRefs(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n const seen = new Set<string>();\n snapshot.plans.forEach((entry, index) => {\n if (!seen.has(entry.ref)) {\n seen.add(entry.ref);\n return;\n }\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.DUPLICATE_REF,\n path: `plans[${index}].ref`,\n message: `Duplicate ref \"${entry.ref}\" in plans — refs must be unique; the collection is addressed by ref downstream.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n });\n}\n\nfunction detectDuplicateCrossRefs(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n const checkList = (\n refs: readonly string[] | undefined,\n entry: PricingPlanConfig,\n path: string,\n ): void => {\n if (refs === undefined) return;\n const seen = new Set<string>();\n refs.forEach((ref, refIndex) => {\n if (!seen.has(ref)) {\n seen.add(ref);\n return;\n }\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.DUPLICATE_CROSS_REF,\n path: `${path}[${refIndex}]`,\n message: `Cross-ref \"${ref}\" is listed more than once on plan \"${entry.ref}\" (${path}). Remove the duplicate.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n });\n };\n\n snapshot.plans.forEach((entry, index) => {\n checkList(entry.targetIcpRefs, entry, `plans[${index}].targetIcpRefs`);\n checkList(\n entry.includesRequirementRefs,\n entry,\n `plans[${index}].includesRequirementRefs`,\n );\n });\n}\n\nfunction detectIncompleteness(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n if (snapshot.plans.length === 0 && resolvePricingTiersStatus(snapshot) !== PricingTiersStatus.UNDECIDED) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.NO_PLANS,\n path: 'plans',\n message: 'Business model sketches no pricing plans — it describes no way the product is sold.',\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n }\n snapshot.plans.forEach((plan, index) => {\n const perUsage = plan.pricingModel === PricingModelAxis.PER_USAGE;\n if (perUsage === (plan.usageUnit !== undefined)) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.USAGE_UNIT_MISMATCH,\n path: `plans[${index}].usageUnit`,\n message: perUsage\n ? `Plan \"${plan.ref}\" is priced per usage and does not say what one unit counts — name it in usageUnit (\"close\", \"API call\").`\n : `Plan \"${plan.ref}\" names a usage unit but is not priced per usage — remove usageUnit, or set pricingModel to per_usage.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n });\n // Gated on plans being present: an empty snapshot is already covered by\n // NO_PLANS, so this fires only for the sharper \"pricing is sketched but the\n // product's headline revenue model is undeclared\" state.\n if (snapshot.plans.length > 0 && snapshot.revenueModel === undefined) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.NO_REVENUE_MODEL,\n path: 'revenueModel',\n message: 'Pricing plans are authored but revenueModel is unset — classify how the product makes money (RevenueModelKind).',\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n }\n}\n\nfunction detectPricingTiersDisagreement(\n snapshot: BusinessModelLiteSnapshot,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n const declared = snapshot.pricingTiers;\n if (declared === PricingTiersStatus.UNDECIDED && snapshot.plans.length > 0) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.PRICING_TIERS_CONTRADICT_PLANS,\n path: 'pricingTiers',\n message: `pricingTiers is \"undecided\" but ${snapshot.plans.length} plan(s) are present — remove the plans, or declare where they came from.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n }\n if ((declared === PricingTiersStatus.CREATOR_STATED || declared === PricingTiersStatus.PROPOSED) && snapshot.plans.length === 0) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.PRICING_TIERS_CONTRADICT_PLANS,\n path: 'pricingTiers',\n message: `pricingTiers is \"${declared}\" but no plan is present — record the plans, or declare \"undecided\".`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n }\n\n const resolved = resolvePricingTiersStatus(snapshot);\n snapshot.plans.forEach((entry, index) => {\n if (resolved === PricingTiersStatus.PROPOSED && entry.proposalBasis === undefined) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.PROPOSAL_BASIS_MISMATCH,\n path: `plans[${index}].proposalBasis`,\n message: `Plan \"${entry.ref}\" is a proposal but states no proposalBasis — name the ICP and requirements it was derived from.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n }\n if (resolved === PricingTiersStatus.CREATOR_STATED && entry.proposalBasis !== undefined) {\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.PROPOSAL_BASIS_MISMATCH,\n path: `plans[${index}].proposalBasis`,\n message: `Plan \"${entry.ref}\" was stated by the creator but carries a proposalBasis — remove it, or declare pricingTiers \"proposed\".`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n }\n });\n}\n\nfunction detectStaleAuthored(\n snapshot: BusinessModelLiteSnapshot,\n now: Date,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n const checkOne = (\n authored: BusinessModelAuthoredMetadata | undefined,\n path: string,\n ): void => {\n if (authored?.reviewCadence === undefined) return;\n const days = REVIEW_CADENCE_TO_DAYS[authored.reviewCadence];\n if (!Number.isFinite(days)) return;\n const lastAuthored = new Date(authored.lastAuthoredAt).getTime();\n if (Number.isNaN(lastAuthored)) return;\n const ageDays = (now.getTime() - lastAuthored) / (24 * 60 * 60 * 1000);\n if (ageDays <= days) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.STALE_AUTHORED,\n path,\n message: `Pricing plan at \"${path}\" is ${Math.floor(ageDays)} days old (cadence ${authored.reviewCadence} ⇒ ${days}d). Re-author or remove the cadence.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.WARN,\n });\n };\n\n snapshot.plans.forEach((entry, index) =>\n checkOne(entry.authored, `plans[${index}].authored`),\n );\n}\n\nfunction detectUnknownCrossRefs(\n snapshot: BusinessModelLiteSnapshot,\n options: ValidateBusinessModelLiteSnapshotOptions | undefined,\n issues: BusinessModelLiteSnapshotIssue[],\n): void {\n snapshot.plans.forEach((entry, index) => {\n if (options?.availableIcpRefs !== undefined) {\n entry.targetIcpRefs?.forEach((icpRef, refIndex) => {\n if (options.availableIcpRefs!.has(icpRef)) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.UNKNOWN_ICP_REF,\n path: `plans[${index}].targetIcpRefs[${refIndex}]`,\n message: `ICP ref \"${icpRef}\" on plan \"${entry.ref}\" does not resolve in the supplied ICP-ref set.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n });\n }\n if (options?.availableRequirementRefs !== undefined) {\n entry.includesRequirementRefs?.forEach((reqRef, refIndex) => {\n if (options.availableRequirementRefs!.has(reqRef)) return;\n issues.push({\n kind: BusinessModelLiteSnapshotIssueKind.UNKNOWN_REQUIREMENT_REF,\n path: `plans[${index}].includesRequirementRefs[${refIndex}]`,\n message: `Requirement ref \"${reqRef}\" on plan \"${entry.ref}\" does not resolve in the supplied requirement-ref set.`,\n severity: BusinessModelLiteSnapshotIssueSeverity.ERROR,\n });\n });\n }\n });\n}\n/** @wildo_source:part:end business-model.snapshot.validation */\n"]}
@@ -150,6 +150,7 @@ export declare const BusinessModelLiteSnapshotSchema: z.ZodObject<{
150
150
  pricePoint: z.ZodOptional<z.ZodString>;
151
151
  billingPeriod: z.ZodOptional<z.ZodString>;
152
152
  pricingModel: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("./pricing-plan.schemas").PricingModelAxis>>>;
153
+ usageUnit: z.ZodOptional<z.ZodString>;
153
154
  includes: z.ZodOptional<z.ZodString>;
154
155
  targetSummary: z.ZodOptional<z.ZodString>;
155
156
  targetIcpRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"business-model-lite-snapshot.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/business-model-lite-snapshot.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;GASG;AACH,oBAAY,gCAAgC;IAC1C,EAAE,OAAO;CACV;AAED;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,gBAAgB;IAC1B,sDAAsD;IACtD,YAAY,iBAAiB;IAC7B,4CAA4C;IAC5C,WAAW,gBAAgB;IAC3B,0CAA0C;IAC1C,iBAAiB,sBAAsB;IACvC,iEAAiE;IACjE,QAAQ,aAAa;IACrB,0DAA0D;IAC1D,sBAAsB,2BAA2B;IACjD,yCAAyC;IACzC,WAAW,gBAAgB;IAC3B,sDAAsD;IACtD,KAAK,UAAU;CAChB;AAED;;;;;;;;;;;;;;GAcG;AACH,oBAAY,kBAAkB;IAC5B,kEAAkE;IAClE,cAAc,mBAAmB;IACjC;;;;;;;;;OASG;IACH,QAAQ,aAAa;IACrB;;;;;OAKG;IACH,SAAS,cAAc;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;iBAU1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,IAAI,CAAC,yBAAyB,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG,kBAAkB,GAAG,SAAS,CAG7I;AACD,4DAA4D"}
1
+ {"version":3,"file":"business-model-lite-snapshot.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/business-model-lite-snapshot.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;GASG;AACH,oBAAY,gCAAgC;IAC1C,EAAE,OAAO;CACV;AAED;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,gBAAgB;IAC1B,sDAAsD;IACtD,YAAY,iBAAiB;IAC7B,4CAA4C;IAC5C,WAAW,gBAAgB;IAC3B,0CAA0C;IAC1C,iBAAiB,sBAAsB;IACvC,iEAAiE;IACjE,QAAQ,aAAa;IACrB,0DAA0D;IAC1D,sBAAsB,2BAA2B;IACjD,yCAAyC;IACzC,WAAW,gBAAgB;IAC3B,sDAAsD;IACtD,KAAK,UAAU;CAChB;AAED;;;;;;;;;;;;;;GAcG;AACH,oBAAY,kBAAkB;IAC5B,kEAAkE;IAClE,cAAc,mBAAmB;IACjC;;;;;;;;;OASG;IACH,QAAQ,aAAa;IACrB;;;;;OAKG;IACH,SAAS,cAAc;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;iBAU1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,IAAI,CAAC,yBAAyB,EAAE,OAAO,GAAG,cAAc,CAAC,GAAG,kBAAkB,GAAG,SAAS,CAG7I;AACD,4DAA4D"}
@@ -76,6 +76,7 @@ export declare const PricingPlanConfigSchema: z.ZodObject<{
76
76
  pricePoint: z.ZodOptional<z.ZodString>;
77
77
  billingPeriod: z.ZodOptional<z.ZodString>;
78
78
  pricingModel: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof PricingModelAxis>>>;
79
+ usageUnit: z.ZodOptional<z.ZodString>;
79
80
  includes: z.ZodOptional<z.ZodString>;
80
81
  targetSummary: z.ZodOptional<z.ZodString>;
81
82
  targetIcpRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-plan.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/pricing-plan.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAMlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH;;;;;;;GAOG;AACH,oBAAY,gBAAgB;IAC1B,oDAAoD;IACpD,SAAS,cAAc;IACvB,qDAAqD;IACrD,QAAQ,aAAa;IACrB,oEAAoE;IACpE,SAAS,cAAc;IACvB,4EAA4E;IAC5E,MAAM,WAAW;IACjB,mDAAmD;IACnD,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;iBAsDlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,gEAAgE"}
1
+ {"version":3,"file":"pricing-plan.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/pricing-plan.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAMlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH;;;;;;;GAOG;AACH,oBAAY,gBAAgB;IAC1B,oDAAoD;IACpD,SAAS,cAAc;IACvB,qDAAqD;IACrD,QAAQ,aAAa;IACrB,oEAAoE;IACpE,SAAS,cAAc;IACvB,4EAA4E;IAC5E,MAAM,WAAW;IACjB,mDAAmD;IACnD,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBA6DlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,gEAAgE"}
@@ -93,6 +93,13 @@ export const PricingPlanConfigSchema = z.object({
93
93
  billingPeriod: NonEmptyStringSchema.optional(),
94
94
  /** Coarse price-scaling classification — see `PricingModelAxis`. */
95
95
  pricingModel: z.enum(PricingModelAxis).systemEnum('PricingModelAxis').optional(),
96
+ /**
97
+ * What ONE unit of a `PER_USAGE` price counts, as a singular noun in the creator's words ("close", "API call",
98
+ * "audit engagement") (#2305 S5). Prose, like the price itself: it names the meter a metered billing product
99
+ * records, and a firm that prices each case names its case here. Expected on a `PER_USAGE` plan and on no other
100
+ * (`validateBusinessModelLiteSnapshot` marks both, and blocks neither).
101
+ */
102
+ usageUnit: NonEmptyStringSchema.optional(),
96
103
  /**
97
104
  * What the plan bundles, in prose ("all Team features + SSO"). A human
98
105
  * summary — distinct from the typed `includesRequirementRefs`.
@@ -1 +1 @@
1
- {"version":3,"file":"pricing-plan.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/pricing-plan.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,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CAAC,QAAQ,EAAE;IAC9C,gDAAgD;IAChD,QAAQ,EAAE,mCAAmC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC;AAEH,gEAAgE","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\nimport { PricingPlanRefSchema } from './business-model-references.schemas';\nimport { BusinessModelAuthoredMetadataSchema } from './business-model-authored-metadata.schemas';\n\n/**\n * @wildo_source:part:start business-model.pricing-plan.config facet:layer:specification facet:family:business-model\n *\n * One **pricing plan** — a single tier / package in a product's pricing\n * sketch (\"Free\", \"Team Pro\", \"Enterprise\"). A ref-addressable collection\n * entity on `BusinessModelLiteSnapshot` (`pricing-plan-<slug>`), so the\n * top-down catalog can address an individual plan and later refinement can\n * reconcile against it.\n *\n * A pricing plan is a **planning-artifact** concept and is deliberately\n * distinct from the live billing / Stripe product-catalog runtime — the two\n * are NOT merged (framework mindset: each carries its own semantic weight).\n * A plan here is a design-time SKETCH of a package a product intends to\n * sell; the billing catalog is the operational source of truth for what is\n * actually chargeable. This family never becomes the billing runtime.\n *\n * What earns its place here (scaffold depth, Phase J1):\n * - **`ref`** — the spec identity (`pricing-plan-<slug>`), never `id`.\n * - **`name`** — a short human label for the plan (required prose).\n * - **`pricePoint`** — WHAT the plan costs, as FREE PROSE\n * (\"$29 / seat / month\", \"custom\", \"free\"). Optional. Deliberately NOT a\n * typed money value — see the deferral note below.\n * - **`billingPeriod`** — the cadence of the price, as FREE PROSE\n * (\"monthly\", \"annual\", \"one-time\"). Optional prose (not a typed\n * interval).\n * - **`pricingModel`** — coarse `PricingModelAxis` classification of HOW the\n * price scales (flat / per-seat / per-usage / tiered / custom). Optional.\n * - **`includes`** — what the plan bundles, in prose (\"all Team features +\n * SSO + audit log\"). Optional. A human summary, distinct from the typed\n * `includesRequirementRefs` cross-reference.\n * - **`targetSummary`** — who the plan is for, in prose (\"mid-market teams\n * of 10-50\"). Optional. A human summary, distinct from the typed\n * `targetIcpRefs` cross-reference.\n * - **`proposalBasis`** — on a PROPOSED plan only: what the proposal was\n * derived from (see `PricingTiersStatus` on the snapshot). Optional prose.\n * - **`targetIcpRefs`** / **`includesRequirementRefs`** — OPTIONAL flat\n * cross-references into the market family (ICP segments this plan targets)\n * and the requirements family (functional requirements this plan\n * includes). Opaque strings by the `_core` reference convention — the\n * market / requirements schemas are NOT imported (families stay decoupled;\n * the catalog resolves the refs, and the snapshot validator can cross-check\n * them against a supplied set, fail-soft).\n *\n * Deliberately NOT modelled here (scaffold depth, Phase J1): typed money /\n * currency values, discount / coupon engines, unit economics (LTV / CAC),\n * price elasticity, tiered usage-bracket tables, and revenue forecasting.\n * Those are a Phase-J2 concern — a plan here is a prose-level pricing sketch\n * with a coarse scaling axis, not a computed financial model (framework\n * mindset: breadth before depth, no premature financial taxonomy).\n */\n\n/**\n * Coarse classification of HOW a pricing plan's price scales — the pricing\n * MODEL axis (as distinct from the product-level revenue model, see\n * `RevenueModelKind` on the snapshot). Fixed vocabulary (enum, per project\n * rule — enums over literal unions), covering the common scaling shapes at\n * scaffold depth. `CUSTOM` catches bespoke / \"contact us\" pricing the fixed\n * buckets miss. Optional on a plan.\n */\nexport enum PricingModelAxis {\n /** One fixed price regardless of usage or seats. */\n FLAT_RATE = 'flat_rate',\n /** Price scales with the number of seats / users. */\n PER_SEAT = 'per_seat',\n /** Price scales with metered usage (API calls, storage, events). */\n PER_USAGE = 'per_usage',\n /** Stepped tiers / brackets (price changes at usage or seat thresholds). */\n TIERED = 'tiered',\n /** Bespoke / negotiated / \"contact us\" pricing. */\n CUSTOM = 'custom',\n}\n\nexport const PricingPlanConfigSchema = z.object({\n /** Spec identity — kebab-case, `pricing-plan-` prefixed (never `id`). */\n ref: PricingPlanRefSchema,\n /** Short human label for the plan (e.g. \"Team Pro\"). Required. */\n name: NonEmptyStringSchema,\n /**\n * What the plan costs — FREE PROSE at scaffold depth (\"$29 / seat /\n * month\", \"free\", \"custom\"). A typed money / currency value is Phase-J2.\n */\n pricePoint: NonEmptyStringSchema.optional(),\n /**\n * The billing cadence — FREE PROSE (\"monthly\", \"annual\", \"one-time\"). A\n * typed interval model is Phase-J2.\n */\n billingPeriod: NonEmptyStringSchema.optional(),\n /** Coarse price-scaling classification — see `PricingModelAxis`. */\n pricingModel: z.enum(PricingModelAxis).systemEnum('PricingModelAxis').optional(),\n /**\n * What the plan bundles, in prose (\"all Team features + SSO\"). A human\n * summary — distinct from the typed `includesRequirementRefs`.\n */\n includes: NonEmptyStringSchema.optional(),\n /**\n * Who the plan is for, in prose (\"mid-market teams of 10-50\"). A human\n * summary — distinct from the typed `targetIcpRefs`.\n */\n targetSummary: NonEmptyStringSchema.optional(),\n /**\n * Optional cross-references to market ICP segments this plan targets. Flat\n * opaque strings (the catalog resolves them against the market snapshot;\n * the market schemas are not imported here).\n */\n targetIcpRefs: z.array(NonEmptyStringSchema).optional(),\n /**\n * Optional cross-references to functional requirements this plan includes.\n * Flat opaque strings (see `targetIcpRefs`).\n */\n includesRequirementRefs: z.array(NonEmptyStringSchema).optional(),\n /**\n * WHY this tier exists, present only on a PROPOSED plan — the snapshot's\n * `pricingTiers` is `PricingTiersStatus.PROPOSED`, i.e. the creator asked for\n * the tiers to be proposed rather than naming them. Prose naming what the\n * proposal was derived from: the ICP segment it serves and the requirements\n * that separate it from the tier beside it (\"serves icp-indie-maker; holds\n * back the team-planning requirements the Team tier unlocks\").\n *\n * Required on every plan of a proposed sketch and forbidden on every plan of\n * a stated one (`validateBusinessModelLiteSnapshot` reports both). A basis on\n * a creator-stated plan would claim a proposal nobody made; a proposal with no\n * basis is a tier nobody can check.\n */\n proposalBasis: NonEmptyStringSchema.optional(),\n /** Optional per-entity authoring provenance. */\n authored: BusinessModelAuthoredMetadataSchema.optional(),\n});\nexport type PricingPlanConfig = z.infer<typeof PricingPlanConfigSchema>;\n/** @wildo_source:part:end business-model.pricing-plan.config */\n"]}
1
+ {"version":3,"file":"pricing-plan.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/business-model-lite/pricing-plan.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,gBAWX;AAXD,WAAY,gBAAgB;IAC1B,oDAAoD;IACpD,2CAAuB,CAAA;IACvB,qDAAqD;IACrD,yCAAqB,CAAA;IACrB,oEAAoE;IACpE,2CAAuB,CAAA;IACvB,4EAA4E;IAC5E,qCAAiB,CAAA;IACjB,mDAAmD;IACnD,qCAAiB,CAAA;AACnB,CAAC,EAXW,gBAAgB,KAAhB,gBAAgB,QAW3B;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,yEAAyE;IACzE,GAAG,EAAE,oBAAoB;IACzB,kEAAkE;IAClE,IAAI,EAAE,oBAAoB;IAC1B;;;OAGG;IACH,UAAU,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC3C;;;OAGG;IACH,aAAa,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC9C,oEAAoE;IACpE,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE;IAChF;;;;;OAKG;IACH,SAAS,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC1C;;;OAGG;IACH,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACzC;;;OAGG;IACH,aAAa,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC9C;;;;OAIG;IACH,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE;IACvD;;;OAGG;IACH,uBAAuB,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,QAAQ,EAAE;IACjE;;;;;;;;;;;;OAYG;IACH,aAAa,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IAC9C,gDAAgD;IAChD,QAAQ,EAAE,mCAAmC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC;AAEH,gEAAgE","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { NonEmptyStringSchema } from '../market/market-references.schemas';\nimport { PricingPlanRefSchema } from './business-model-references.schemas';\nimport { BusinessModelAuthoredMetadataSchema } from './business-model-authored-metadata.schemas';\n\n/**\n * @wildo_source:part:start business-model.pricing-plan.config facet:layer:specification facet:family:business-model\n *\n * One **pricing plan** — a single tier / package in a product's pricing\n * sketch (\"Free\", \"Team Pro\", \"Enterprise\"). A ref-addressable collection\n * entity on `BusinessModelLiteSnapshot` (`pricing-plan-<slug>`), so the\n * top-down catalog can address an individual plan and later refinement can\n * reconcile against it.\n *\n * A pricing plan is a **planning-artifact** concept and is deliberately\n * distinct from the live billing / Stripe product-catalog runtime — the two\n * are NOT merged (framework mindset: each carries its own semantic weight).\n * A plan here is a design-time SKETCH of a package a product intends to\n * sell; the billing catalog is the operational source of truth for what is\n * actually chargeable. This family never becomes the billing runtime.\n *\n * What earns its place here (scaffold depth, Phase J1):\n * - **`ref`** — the spec identity (`pricing-plan-<slug>`), never `id`.\n * - **`name`** — a short human label for the plan (required prose).\n * - **`pricePoint`** — WHAT the plan costs, as FREE PROSE\n * (\"$29 / seat / month\", \"custom\", \"free\"). Optional. Deliberately NOT a\n * typed money value — see the deferral note below.\n * - **`billingPeriod`** — the cadence of the price, as FREE PROSE\n * (\"monthly\", \"annual\", \"one-time\"). Optional prose (not a typed\n * interval).\n * - **`pricingModel`** — coarse `PricingModelAxis` classification of HOW the\n * price scales (flat / per-seat / per-usage / tiered / custom). Optional.\n * - **`includes`** — what the plan bundles, in prose (\"all Team features +\n * SSO + audit log\"). Optional. A human summary, distinct from the typed\n * `includesRequirementRefs` cross-reference.\n * - **`targetSummary`** — who the plan is for, in prose (\"mid-market teams\n * of 10-50\"). Optional. A human summary, distinct from the typed\n * `targetIcpRefs` cross-reference.\n * - **`proposalBasis`** — on a PROPOSED plan only: what the proposal was\n * derived from (see `PricingTiersStatus` on the snapshot). Optional prose.\n * - **`targetIcpRefs`** / **`includesRequirementRefs`** — OPTIONAL flat\n * cross-references into the market family (ICP segments this plan targets)\n * and the requirements family (functional requirements this plan\n * includes). Opaque strings by the `_core` reference convention — the\n * market / requirements schemas are NOT imported (families stay decoupled;\n * the catalog resolves the refs, and the snapshot validator can cross-check\n * them against a supplied set, fail-soft).\n *\n * Deliberately NOT modelled here (scaffold depth, Phase J1): typed money /\n * currency values, discount / coupon engines, unit economics (LTV / CAC),\n * price elasticity, tiered usage-bracket tables, and revenue forecasting.\n * Those are a Phase-J2 concern — a plan here is a prose-level pricing sketch\n * with a coarse scaling axis, not a computed financial model (framework\n * mindset: breadth before depth, no premature financial taxonomy).\n */\n\n/**\n * Coarse classification of HOW a pricing plan's price scales — the pricing\n * MODEL axis (as distinct from the product-level revenue model, see\n * `RevenueModelKind` on the snapshot). Fixed vocabulary (enum, per project\n * rule — enums over literal unions), covering the common scaling shapes at\n * scaffold depth. `CUSTOM` catches bespoke / \"contact us\" pricing the fixed\n * buckets miss. Optional on a plan.\n */\nexport enum PricingModelAxis {\n /** One fixed price regardless of usage or seats. */\n FLAT_RATE = 'flat_rate',\n /** Price scales with the number of seats / users. */\n PER_SEAT = 'per_seat',\n /** Price scales with metered usage (API calls, storage, events). */\n PER_USAGE = 'per_usage',\n /** Stepped tiers / brackets (price changes at usage or seat thresholds). */\n TIERED = 'tiered',\n /** Bespoke / negotiated / \"contact us\" pricing. */\n CUSTOM = 'custom',\n}\n\nexport const PricingPlanConfigSchema = z.object({\n /** Spec identity — kebab-case, `pricing-plan-` prefixed (never `id`). */\n ref: PricingPlanRefSchema,\n /** Short human label for the plan (e.g. \"Team Pro\"). Required. */\n name: NonEmptyStringSchema,\n /**\n * What the plan costs — FREE PROSE at scaffold depth (\"$29 / seat /\n * month\", \"free\", \"custom\"). A typed money / currency value is Phase-J2.\n */\n pricePoint: NonEmptyStringSchema.optional(),\n /**\n * The billing cadence — FREE PROSE (\"monthly\", \"annual\", \"one-time\"). A\n * typed interval model is Phase-J2.\n */\n billingPeriod: NonEmptyStringSchema.optional(),\n /** Coarse price-scaling classification — see `PricingModelAxis`. */\n pricingModel: z.enum(PricingModelAxis).systemEnum('PricingModelAxis').optional(),\n /**\n * What ONE unit of a `PER_USAGE` price counts, as a singular noun in the creator's words (\"close\", \"API call\",\n * \"audit engagement\") (#2305 S5). Prose, like the price itself: it names the meter a metered billing product\n * records, and a firm that prices each case names its case here. Expected on a `PER_USAGE` plan and on no other\n * (`validateBusinessModelLiteSnapshot` marks both, and blocks neither).\n */\n usageUnit: NonEmptyStringSchema.optional(),\n /**\n * What the plan bundles, in prose (\"all Team features + SSO\"). A human\n * summary — distinct from the typed `includesRequirementRefs`.\n */\n includes: NonEmptyStringSchema.optional(),\n /**\n * Who the plan is for, in prose (\"mid-market teams of 10-50\"). A human\n * summary — distinct from the typed `targetIcpRefs`.\n */\n targetSummary: NonEmptyStringSchema.optional(),\n /**\n * Optional cross-references to market ICP segments this plan targets. Flat\n * opaque strings (the catalog resolves them against the market snapshot;\n * the market schemas are not imported here).\n */\n targetIcpRefs: z.array(NonEmptyStringSchema).optional(),\n /**\n * Optional cross-references to functional requirements this plan includes.\n * Flat opaque strings (see `targetIcpRefs`).\n */\n includesRequirementRefs: z.array(NonEmptyStringSchema).optional(),\n /**\n * WHY this tier exists, present only on a PROPOSED plan — the snapshot's\n * `pricingTiers` is `PricingTiersStatus.PROPOSED`, i.e. the creator asked for\n * the tiers to be proposed rather than naming them. Prose naming what the\n * proposal was derived from: the ICP segment it serves and the requirements\n * that separate it from the tier beside it (\"serves icp-indie-maker; holds\n * back the team-planning requirements the Team tier unlocks\").\n *\n * Required on every plan of a proposed sketch and forbidden on every plan of\n * a stated one (`validateBusinessModelLiteSnapshot` reports both). A basis on\n * a creator-stated plan would claim a proposal nobody made; a proposal with no\n * basis is a tier nobody can check.\n */\n proposalBasis: NonEmptyStringSchema.optional(),\n /** Optional per-entity authoring provenance. */\n authored: BusinessModelAuthoredMetadataSchema.optional(),\n});\nexport type PricingPlanConfig = z.infer<typeof PricingPlanConfigSchema>;\n/** @wildo_source:part:end business-model.pricing-plan.config */\n"]}
@@ -9,7 +9,8 @@ import { AvailableLanguage } from '@wildo-ai/presets-components-models';
9
9
  *
10
10
  * ## Why a family, and why it is DERIVED
11
11
  *
12
- * `templates/saas/scenarios/` shipped fourteen composition scenarios and the journey applied two of
12
+ * When this family was introduced the framework shipped fourteen composition scenarios — each one a
13
+ * {@link CompositionScenarioRef} that `wildo compose <ref>` applies — and the journey applied two of
13
14
  * them (`add-module`, `add-resource`), both read off the domain plan. Nothing decided whether an
14
15
  * application has a website, a documentation portal, a worker, a minion, a second locale or
15
16
  * another environment, so twelve scenarios were reachable only by a human typing `wildo compose`.
@@ -29,8 +30,8 @@ export declare enum CapabilityCompositionVersion {
29
30
  V1 = "v1"
30
31
  }
31
32
  /**
32
- * The composition scenarios the framework ships — one member per folder under
33
- * `templates/saas/scenarios/`, in the value the `wildo compose <ref>` command takes.
33
+ * The composition scenarios the framework ships — one member per scenario, in the value the
34
+ * `wildo compose <ref>` command takes.
34
35
  *
35
36
  * Closed on purpose: a scenario ref is the address of a template the composition engine loads, and a
36
37
  * ref this vocabulary does not name is one no application can be composed with.
@@ -1 +1 @@
1
- {"version":3,"file":"capability-composition.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/capability-composition/capability-composition.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,oBAAY,4BAA4B;IACtC,EAAE,OAAO;CACV;AAED;;;;;;GAMG;AACH,oBAAY,sBAAsB;IAChC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,oBAAoB,yBAAyB;IAC7C,WAAW,gBAAgB;IAC3B,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,eAAe,oBAAoB;IACnC,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,wBAAwB,6BAA6B;IACrD,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB;;;;OAIG;IACH,aAAa,kBAAkB;CAChC;AAED;;;;;;;;GAQG;AACH,oBAAY,sBAAsB;IAChC,oEAAoE;IACpE,MAAM,WAAW;IACjB,wGAAwG;IACxG,QAAQ,aAAa;IACrB,wFAAwF;IACxF,qBAAqB,0BAA0B;CAChD;AAED;;;;GAIG;AACH,oBAAY,gBAAgB;IAC1B,qJAAqJ;IACrJ,mCAAmC,wCAAwC;IAC3E,8EAA8E;IAC9E,kBAAkB,uBAAuB;IACzC,uFAAuF;IACvF,qCAAqC,0CAA0C;IAC/E,mLAAmL;IACnL,6BAA6B,kCAAkC;IAC/D,oHAAoH;IACpH,gCAAgC,qCAAqC;IACrE,oGAAoG;IACpG,sCAAsC,2CAA2C;IACjF,yHAAyH;IACzH,sCAAsC,2CAA2C;IACjF,4GAA4G;IAC5G,gCAAgC,qCAAqC;IACrE,6FAA6F;IAC7F,4BAA4B,iCAAiC;IAC7D;;;;OAIG;IACH,yCAAyC,8CAA8C;IACvF;;;;;;;;;;OAUG;IACH,qCAAqC,0CAA0C;IAC/E;;;;;;;;;OASG;IACH,iCAAiC,sCAAsC;IACvE;;;;OAIG;IACH,kCAAkC,uCAAuC;IACzE,2FAA2F;IAC3F,yBAAyB,8BAA8B;IACvD,2GAA2G;IAC3G,yBAAyB,8BAA8B;CACxD;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;CAgBqC,CAAC;AAEhF,8FAA8F;AAC9F,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,sBAAsB,IAAI;KACjE,CAAC,IAAI,gBAAgB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CACzF,CAAC,gBAAgB,CAAC,CAAC;AAIpB,sEAAsE;AACtE,eAAO,MAAM,yBAAyB;;;;IAIpC,8HAA8H;;IAE9H,2DAA2D;;IAE3D,qIAAqI;;IAErI;;;;;;;OAOG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;QAzBtC,8HAA8H;;QAE9H,2DAA2D;;QAE3D,qIAAqI;;QAErI;;;;;;;WAOG;;;iBA0BH,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,2DAA2D"}
1
+ {"version":3,"file":"capability-composition.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/capability-composition/capability-composition.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CA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yBAAyB,8BAA8B;IACvD,2GAA2G;IAC3G,yBAAyB,8BAA8B;CACxD;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;CAgBqC,CAAC;AAEhF,8FAA8F;AAC9F,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,sBAAsB,IAAI;KACjE,CAAC,IAAI,gBAAgB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CACzF,CAAC,gBAAgB,CAAC,CAAC;AAIpB,sEAAsE;AACtE,eAAO,MAAM,yBAAyB;;;;IAIpC,8HAA8H;;IAE9H,2DAA2D;;IAE3D,qIAAqI;;IAErI;;;;;;;OAOG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;QAzBtC,8HAA8H;;QAE9H,2DAA2D;;QAE3D,qIAAqI;;QAErI;;;;;;;WAOG;;;iBA0BH,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,2DAA2D"}
@@ -11,7 +11,8 @@ import { AvailableLanguage } from '@wildo-ai/presets-components-models';
11
11
  *
12
12
  * ## Why a family, and why it is DERIVED
13
13
  *
14
- * `templates/saas/scenarios/` shipped fourteen composition scenarios and the journey applied two of
14
+ * When this family was introduced the framework shipped fourteen composition scenarios — each one a
15
+ * {@link CompositionScenarioRef} that `wildo compose <ref>` applies — and the journey applied two of
15
16
  * them (`add-module`, `add-resource`), both read off the domain plan. Nothing decided whether an
16
17
  * application has a website, a documentation portal, a worker, a minion, a second locale or
17
18
  * another environment, so twelve scenarios were reachable only by a human typing `wildo compose`.
@@ -32,8 +33,8 @@ export var CapabilityCompositionVersion;
32
33
  CapabilityCompositionVersion["V1"] = "v1";
33
34
  })(CapabilityCompositionVersion || (CapabilityCompositionVersion = {}));
34
35
  /**
35
- * The composition scenarios the framework ships — one member per folder under
36
- * `templates/saas/scenarios/`, in the value the `wildo compose <ref>` command takes.
36
+ * The composition scenarios the framework ships — one member per scenario, in the value the
37
+ * `wildo compose <ref>` command takes.
37
38
  *
38
39
  * Closed on purpose: a scenario ref is the address of a template the composition engine loads, and a
39
40
  * ref this vocabulary does not name is one no application can be composed with.
@@ -1 +1 @@
1
- {"version":3,"file":"capability-composition.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/capability-composition/capability-composition.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAN,IAAY,4BAEX;AAFD,WAAY,4BAA4B;IACtC,yCAAS,CAAA;AACX,CAAC,EAFW,4BAA4B,KAA5B,4BAA4B,QAEvC;AAED;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,sBAqBX;AArBD,WAAY,sBAAsB;IAChC,mDAAyB,CAAA;IACzB,uDAA6B,CAAA;IAC7B,uEAA6C,CAAA;IAC7C,qDAA2B,CAAA;IAC3B,qEAA2C,CAAA;IAC3C,mEAAyC,CAAA;IACzC,iEAAuC,CAAA;IACvC,mDAAyB,CAAA;IACzB,6DAAmC,CAAA;IACnC,6DAAmC,CAAA;IACnC,uDAA6B,CAAA;IAC7B,+EAAqD,CAAA;IACrD,6DAAmC,CAAA;IACnC,mDAAyB,CAAA;IACzB;;;;OAIG;IACH,yDAA+B,CAAA;AACjC,CAAC,EArBW,sBAAsB,KAAtB,sBAAsB,QAqBjC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,sBAOX;AAPD,WA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AO,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACxC,qIAAqI;IACrI,kBAAkB,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACnD;;;;;;;OAOG;IACH,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvF,CAAC,CAAC;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC,EAAE,CAAC;IACtF;;;;;;;;;;OAUG;IACH,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7D,CAAC,CAAC;AAEH,2DAA2D","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\nimport { AvailableLanguage } from '@wildo-ai/presets-components-models';\n\n/**\n * @wildo_source:part:start capability-composition.config facet:layer:specification facet:family:capability-composition\n *\n * WHICH composition scenarios this application needs — the typed declaration the foundation\n * executor applies (#1491).\n *\n * ## Why a family, and why it is DERIVED\n *\n * `templates/saas/scenarios/` shipped fourteen composition scenarios and the journey applied two of\n * them (`add-module`, `add-resource`), both read off the domain plan. Nothing decided whether an\n * application has a website, a documentation portal, a worker, a minion, a second locale or\n * another environment, so twelve scenarios were reachable only by a human typing `wildo compose`.\n *\n * This family is that decision, recorded — and it is DERIVED, never asked. Every disposition below\n * names the declaration it was read from (a market channel, a brand brief, a pricing plan, an ICP\n * archetype) or names the typed declaration that would decide it and does not exist yet. A question\n * to the creator is not among the bases, by construction: `derive-before-you-ask.md` asks what\n * already decides a value, and for every scenario here something does — or nothing does, and the\n * honest record is DECLINED with the missing declaration named, not a form field.\n *\n * TOTAL over {@link CompositionScenarioRef}: a composition holds exactly one decision per scenario,\n * so a scenario added to the framework tomorrow is reported as undecided by every existing\n * application rather than silently omitted (the `undeclaredRetentionClasses` pattern).\n */\nexport enum CapabilityCompositionVersion {\n V1 = 'v1',\n}\n\n/**\n * The composition scenarios the framework ships — one member per folder under\n * `templates/saas/scenarios/`, in the value the `wildo compose <ref>` command takes.\n *\n * Closed on purpose: a scenario ref is the address of a template the composition engine loads, and a\n * ref this vocabulary does not name is one no application can be composed with.\n */\nexport enum CompositionScenarioRef {\n ADD_MODULE = 'add-module',\n ADD_RESOURCE = 'add-resource',\n ADD_CUSTOM_OPERATION = 'add-custom-operation',\n ADD_WEBSITE = 'add-website',\n ADD_WEBSITE_SECTION = 'add-website-section',\n ADD_MARKETING_PAGE = 'add-marketing-page',\n ADD_TECHNICAL_DOC = 'add-technical-doc',\n ADD_MINION = 'add-minion',\n ADD_WORKER_NODE = 'add-worker-node',\n ADD_WORKER_RUST = 'add-worker-rust',\n ADD_PROVIDER = 'add-provider',\n ADD_FILE_PICKER_PROVIDER = 'add-file-picker-provider',\n ADD_ENVIRONMENT = 'add-environment',\n ADD_LOCALE = 'add-locale',\n /**\n * Adopt the optional 3D layout library (#1827): declare `@wildo-ai/presets-components-3d` and register ONE\n * layout. An operator's opt-in (Paul, 2026-09-27: an application is 3D because it installs the library, with no\n * switch), so no declaration derives it and the journey never applies it.\n */\n ADD_3D_LAYOUT = 'add-3d-layout',\n}\n\n/**\n * What the composition says about one scenario.\n *\n * Three members, and the third is the one that keeps the record honest: several scenarios are\n * applied by a DIFFERENT step (the domain composition applies `add-module`, a build task applies\n * `add-website-section`, the provider decision applies `add-provider`). Recording them as DECLINED\n * would read as \"this application has no modules\"; omitting them would break totality. So the\n * record says who owns them instead.\n */\nexport enum CompositionDisposition {\n /** The application needs it; the foundation executor applies it. */\n NEEDED = 'NEEDED',\n /** Nothing the application declares implies it, or no declaration exists that could — see the basis. */\n DECLINED = 'DECLINED',\n /** Another step applies this scenario, named in `ownedBy`; this record only says so. */\n OWNED_BY_ANOTHER_STEP = 'OWNED_BY_ANOTHER_STEP',\n}\n\n/**\n * WHAT decided a disposition — a closed vocabulary, because a composition decision is a statement\n * about the product and a free-text reason cannot be checked. Every member names a DERIVATION from\n * a declaration the application already carries, or names the absence of one.\n */\nexport enum CompositionBasis {\n /** The market snapshot declares an inbound web channel (organic or paid search, content, owned or paid social) — traffic that lands on a website. */\n MARKET_DECLARES_INBOUND_WEB_CHANNEL = 'MARKET_DECLARES_INBOUND_WEB_CHANNEL',\n /** A brand brief has landed: the product has a public identity to present. */\n BRAND_BRIEF_LANDED = 'BRAND_BRIEF_LANDED',\n /** The business model declares pricing plans, which a public pricing page presents. */\n BUSINESS_MODEL_DECLARES_PRICING_PLANS = 'BUSINESS_MODEL_DECLARES_PRICING_PLANS',\n /** The market snapshot targets legal entities (a CORE or EXPANSION ICP of archetype LEGAL_ENTITY): an organisation's buyers expect administrator and integration documentation. */\n MARKET_TARGETS_LEGAL_ENTITIES = 'MARKET_TARGETS_LEGAL_ENTITIES',\n /** The requirements declare a PORTABILITY non-functional requirement: data leaves through documented interfaces. */\n REQUIREMENTS_DECLARE_PORTABILITY = 'REQUIREMENTS_DECLARE_PORTABILITY',\n /** The domain plan owns modules and resources; the foundation's domain composition applies them. */\n DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES = 'DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES',\n /** A per-artifact scenario (an operation, a page, a section) is applied by the build task that produces the artifact. */\n BUILD_TASKS_OWN_PER_ARTIFACT_SCENARIOS = 'BUILD_TASKS_OWN_PER_ARTIFACT_SCENARIOS',\n /** Which provider serves a capability is the foundation's provider decision, not a composition question. */\n PROVIDER_DECISION_OWNS_PROVIDERS = 'PROVIDER_DECISION_OWNS_PROVIDERS',\n /** A deployment environment is an operator's act, taken when the application is deployed. */\n DEPLOYMENT_OWNS_ENVIRONMENTS = 'DEPLOYMENT_OWNS_ENVIRONMENTS',\n /**\n * The integration plan owns the workers and minions; the foundation composes one scenario per\n * surface it declares (#1495). The application-level twin of\n * {@link CompositionBasis.DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES}.\n */\n INTEGRATION_PLAN_OWNS_WORKERS_AND_MINIONS = 'INTEGRATION_PLAN_OWNS_WORKERS_AND_MINIONS',\n /**\n * The application's configuration declares MORE THAN ONE language (`appPreferences.languages`), so its\n * website is published in a locale for each beyond the primary. A HOST fact rather than a family: no\n * specification family declares languages, and the configuration already does, so asking anyone would\n * re-state it.\n *\n * A NEED basis only. A one-language configuration implies no second locale, and that is\n * {@link CompositionBasis.NO_DECLARATION_IMPLIES_IT} — the configuration was read and implies nothing.\n * Until 2026-10-01 the derivation used this basis for both answers, and the validator refused every\n * one-language application on its first run.\n */\n APPLICATION_CONFIG_DECLARES_LANGUAGES = 'APPLICATION_CONFIG_DECLARES_LANGUAGES',\n /**\n * The market snapshot targets countries (a CORE or EXPANSION ICP's geographies) whose languages the\n * application's configuration does not serve, so the website needs a locale for each — named in the\n * decision's detail. Derived by `measureMarketLanguageCoverage`, never asked: both halves are typed\n * declarations (ISO country codes on the ICPs, `appPreferences.languages` in the configuration).\n *\n * Takes precedence over {@link CompositionBasis.APPLICATION_CONFIG_DECLARES_LANGUAGES} when both hold,\n * because it is the one that names a gap: the configuration and the market disagree, and the coherence\n * report says so as well.\n */\n MARKET_TARGETS_UNSERVED_LANGUAGES = 'MARKET_TARGETS_UNSERVED_LANGUAGES',\n /**\n * An optional LAYOUT library (the 3D layout, #1827) is the operator's opt-in. Nothing in a product definition\n * decides a rendering style: most applications are 2D, and one becomes 3D because its operator composes it —\n * a decision about how the shell is drawn, not about what the product does.\n */\n OPERATOR_OPTS_INTO_OPTIONAL_LAYOUT = 'OPERATOR_OPTS_INTO_OPTIONAL_LAYOUT',\n /** The declarations that could imply it are present and do not — measured, not assumed. */\n NO_DECLARATION_IMPLIES_IT = 'NO_DECLARATION_IMPLIES_IT',\n /** No typed declaration exists yet that could decide it; `missingDeclaration` names the one that would. */\n NO_DECLARATION_DECIDES_IT = 'NO_DECLARATION_DECIDES_IT',\n}\n\n/**\n * The ONE disposition each basis can justify. Total over {@link CompositionBasis}, so a basis added\n * tomorrow does not compile until somebody says which disposition it supports.\n *\n * A basis is a REASON, and a reason points one way: \"the domain plan owns modules\" cannot justify\n * NEEDED, \"no declaration implies it\" cannot justify NEEDED, \"the market declares an inbound web\n * channel\" cannot justify DECLINED. `validateCapabilityComposition` refuses any decision whose basis\n * this table maps elsewhere, and the derivation's constructors are typed by {@link CompositionBasisFor},\n * so the producer cannot even write the pairing the validator refuses.\n *\n * It exists because the pairing used to live in the validator only, as two hand-kept sets, while the\n * derivation wrote whatever pair it chose. On 2026-10-01 it wrote DECLINED with\n * `APPLICATION_CONFIG_DECLARES_LANGUAGES` for every one-language application; nothing stopped it until\n * the landing refused the record, on a real first run.\n */\nexport const COMPOSITION_BASIS_DISPOSITION = {\n [CompositionBasis.MARKET_DECLARES_INBOUND_WEB_CHANNEL]: CompositionDisposition.NEEDED,\n [CompositionBasis.BRAND_BRIEF_LANDED]: CompositionDisposition.NEEDED,\n [CompositionBasis.BUSINESS_MODEL_DECLARES_PRICING_PLANS]: CompositionDisposition.NEEDED,\n [CompositionBasis.MARKET_TARGETS_LEGAL_ENTITIES]: CompositionDisposition.NEEDED,\n [CompositionBasis.REQUIREMENTS_DECLARE_PORTABILITY]: CompositionDisposition.NEEDED,\n [CompositionBasis.APPLICATION_CONFIG_DECLARES_LANGUAGES]: CompositionDisposition.NEEDED,\n [CompositionBasis.MARKET_TARGETS_UNSERVED_LANGUAGES]: CompositionDisposition.NEEDED,\n [CompositionBasis.DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.BUILD_TASKS_OWN_PER_ARTIFACT_SCENARIOS]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.PROVIDER_DECISION_OWNS_PROVIDERS]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.DEPLOYMENT_OWNS_ENVIRONMENTS]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.INTEGRATION_PLAN_OWNS_WORKERS_AND_MINIONS]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.OPERATOR_OPTS_INTO_OPTIONAL_LAYOUT]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.NO_DECLARATION_IMPLIES_IT]: CompositionDisposition.DECLINED,\n [CompositionBasis.NO_DECLARATION_DECIDES_IT]: CompositionDisposition.DECLINED,\n} as const satisfies Readonly<Record<CompositionBasis, CompositionDisposition>>;\n\n/** The bases that can justify disposition `D` — what a typed decision constructor accepts. */\nexport type CompositionBasisFor<D extends CompositionDisposition> = {\n [B in CompositionBasis]: (typeof COMPOSITION_BASIS_DISPOSITION)[B] extends D ? B : never;\n}[CompositionBasis];\n\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/** One scenario's decision, with the declaration it was read from. */\nexport const CompositionDecisionSchema = z.strictObject({\n scenarioRef: z.enum(CompositionScenarioRef).systemEnum('CompositionScenarioRef'),\n disposition: z.enum(CompositionDisposition).systemEnum('CompositionDisposition'),\n basis: z.enum(CompositionBasis).systemEnum('CompositionBasis'),\n /** The derivation in one sentence — which entries decided it, so a reader can check the claim against the family it names. */\n detail: NonEmptyStringSchema,\n /** For OWNED_BY_ANOTHER_STEP: the step that applies it. */\n ownedBy: NonEmptyStringSchema.optional(),\n /** For NO_DECLARATION_DECIDES_IT: the typed declaration that would decide it, so the gap is a named field rather than a question. */\n missingDeclaration: NonEmptyStringSchema.optional(),\n /**\n * For a NEEDED `add-locale`: the languages the website publishes a locale for, beyond its primary.\n *\n * Carried on the decision so the foundation APPLIES what was decided instead of deciding it again.\n * Before the market could decide a locale, the foundation re-read the configuration's languages and\n * that was the same answer; once a market language the configuration does not serve can make a\n * locale NEEDED, only the decision knows the full set.\n */\n locales: z.array(z.enum(AvailableLanguage).systemEnum('AvailableLanguage')).optional(),\n});\nexport type CompositionDecision = z.infer<typeof CompositionDecisionSchema>;\n\n/**\n * THE capability-composition payload — one decision per scenario the framework ships.\n *\n * **Artifact-family id: `capability-composition`.** Produced by `bottom_up.capability-composition`\n * (a runner-owned derivation, never a model), consumed by `bottom_up.foundation`, which applies the\n * NEEDED scenarios and records each applied and each declined one with its basis.\n */\nexport const CapabilityCompositionSchema = z.object({\n version: z.enum(CapabilityCompositionVersion).default(CapabilityCompositionVersion.V1),\n /*\n * `scenarioDecisions`, not `decisions`, and the reason is not style.\n *\n * The workbench's field words are ONE namespace keyed by the COLLECTION name — `tasks.objective`,\n * `decisions.disposition` — shared across every family, because a field name declared by five\n * aspects means the same thing in all five. The placement plan already owns `decisions`, and its\n * `disposition` is `PLACED | DECLINED` while this one's is `NEEDED | DECLINED |\n * OWNED_BY_ANOTHER_STEP`. Two different vocabularies under one key is exactly the merge this\n * repository calls a trick, and the collision would have been silent: one family's words would\n * simply have won.\n */\n scenarioDecisions: z.array(CompositionDecisionSchema).min(1),\n});\nexport type CapabilityComposition = z.infer<typeof CapabilityCompositionSchema>;\n/** @wildo_source:part:end capability-composition.config */\n"]}
1
+ {"version":3,"file":"capability-composition.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/capability-composition/capability-composition.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAN,IAAY,4BAEX;AAFD,WAAY,4BAA4B;IACtC,yCAAS,CAAA;AACX,CAAC,EAFW,4BAA4B,KAA5B,4BAA4B,QAE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,oBAAoB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAEtD,sEAAsE;AACtE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAChF,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAChF,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAC9D,8HAA8H;IAC9H,MAAM,EAAE,oBAAoB;IAC5B,2DAA2D;IAC3D,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACxC,qIAAqI;IACrI,kBAAkB,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACnD;;;;;;;OAOG;IACH,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvF,CAAC,CAAC;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC,EAAE,CAAC;IACtF;;;;;;;;;;OAUG;IACH,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7D,CAAC,CAAC;AAEH,2DAA2D","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\nimport { AvailableLanguage } from '@wildo-ai/presets-components-models';\n\n/**\n * @wildo_source:part:start capability-composition.config facet:layer:specification facet:family:capability-composition\n *\n * WHICH composition scenarios this application needs — the typed declaration the foundation\n * executor applies (#1491).\n *\n * ## Why a family, and why it is DERIVED\n *\n * When this family was introduced the framework shipped fourteen composition scenarios — each one a\n * {@link CompositionScenarioRef} that `wildo compose <ref>` applies — and the journey applied two of\n * them (`add-module`, `add-resource`), both read off the domain plan. Nothing decided whether an\n * application has a website, a documentation portal, a worker, a minion, a second locale or\n * another environment, so twelve scenarios were reachable only by a human typing `wildo compose`.\n *\n * This family is that decision, recorded — and it is DERIVED, never asked. Every disposition below\n * names the declaration it was read from (a market channel, a brand brief, a pricing plan, an ICP\n * archetype) or names the typed declaration that would decide it and does not exist yet. A question\n * to the creator is not among the bases, by construction: `derive-before-you-ask.md` asks what\n * already decides a value, and for every scenario here something does — or nothing does, and the\n * honest record is DECLINED with the missing declaration named, not a form field.\n *\n * TOTAL over {@link CompositionScenarioRef}: a composition holds exactly one decision per scenario,\n * so a scenario added to the framework tomorrow is reported as undecided by every existing\n * application rather than silently omitted (the `undeclaredRetentionClasses` pattern).\n */\nexport enum CapabilityCompositionVersion {\n V1 = 'v1',\n}\n\n/**\n * The composition scenarios the framework ships — one member per scenario, in the value the\n * `wildo compose <ref>` command takes.\n *\n * Closed on purpose: a scenario ref is the address of a template the composition engine loads, and a\n * ref this vocabulary does not name is one no application can be composed with.\n */\nexport enum CompositionScenarioRef {\n ADD_MODULE = 'add-module',\n ADD_RESOURCE = 'add-resource',\n ADD_CUSTOM_OPERATION = 'add-custom-operation',\n ADD_WEBSITE = 'add-website',\n ADD_WEBSITE_SECTION = 'add-website-section',\n ADD_MARKETING_PAGE = 'add-marketing-page',\n ADD_TECHNICAL_DOC = 'add-technical-doc',\n ADD_MINION = 'add-minion',\n ADD_WORKER_NODE = 'add-worker-node',\n ADD_WORKER_RUST = 'add-worker-rust',\n ADD_PROVIDER = 'add-provider',\n ADD_FILE_PICKER_PROVIDER = 'add-file-picker-provider',\n ADD_ENVIRONMENT = 'add-environment',\n ADD_LOCALE = 'add-locale',\n /**\n * Adopt the optional 3D layout library (#1827): declare `@wildo-ai/presets-components-3d` and register ONE\n * layout. An operator's opt-in (Paul, 2026-09-27: an application is 3D because it installs the library, with no\n * switch), so no declaration derives it and the journey never applies it.\n */\n ADD_3D_LAYOUT = 'add-3d-layout',\n}\n\n/**\n * What the composition says about one scenario.\n *\n * Three members, and the third is the one that keeps the record honest: several scenarios are\n * applied by a DIFFERENT step (the domain composition applies `add-module`, a build task applies\n * `add-website-section`, the provider decision applies `add-provider`). Recording them as DECLINED\n * would read as \"this application has no modules\"; omitting them would break totality. So the\n * record says who owns them instead.\n */\nexport enum CompositionDisposition {\n /** The application needs it; the foundation executor applies it. */\n NEEDED = 'NEEDED',\n /** Nothing the application declares implies it, or no declaration exists that could — see the basis. */\n DECLINED = 'DECLINED',\n /** Another step applies this scenario, named in `ownedBy`; this record only says so. */\n OWNED_BY_ANOTHER_STEP = 'OWNED_BY_ANOTHER_STEP',\n}\n\n/**\n * WHAT decided a disposition — a closed vocabulary, because a composition decision is a statement\n * about the product and a free-text reason cannot be checked. Every member names a DERIVATION from\n * a declaration the application already carries, or names the absence of one.\n */\nexport enum CompositionBasis {\n /** The market snapshot declares an inbound web channel (organic or paid search, content, owned or paid social) — traffic that lands on a website. */\n MARKET_DECLARES_INBOUND_WEB_CHANNEL = 'MARKET_DECLARES_INBOUND_WEB_CHANNEL',\n /** A brand brief has landed: the product has a public identity to present. */\n BRAND_BRIEF_LANDED = 'BRAND_BRIEF_LANDED',\n /** The business model declares pricing plans, which a public pricing page presents. */\n BUSINESS_MODEL_DECLARES_PRICING_PLANS = 'BUSINESS_MODEL_DECLARES_PRICING_PLANS',\n /** The market snapshot targets legal entities (a CORE or EXPANSION ICP of archetype LEGAL_ENTITY): an organisation's buyers expect administrator and integration documentation. */\n MARKET_TARGETS_LEGAL_ENTITIES = 'MARKET_TARGETS_LEGAL_ENTITIES',\n /** The requirements declare a PORTABILITY non-functional requirement: data leaves through documented interfaces. */\n REQUIREMENTS_DECLARE_PORTABILITY = 'REQUIREMENTS_DECLARE_PORTABILITY',\n /** The domain plan owns modules and resources; the foundation's domain composition applies them. */\n DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES = 'DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES',\n /** A per-artifact scenario (an operation, a page, a section) is applied by the build task that produces the artifact. */\n BUILD_TASKS_OWN_PER_ARTIFACT_SCENARIOS = 'BUILD_TASKS_OWN_PER_ARTIFACT_SCENARIOS',\n /** Which provider serves a capability is the foundation's provider decision, not a composition question. */\n PROVIDER_DECISION_OWNS_PROVIDERS = 'PROVIDER_DECISION_OWNS_PROVIDERS',\n /** A deployment environment is an operator's act, taken when the application is deployed. */\n DEPLOYMENT_OWNS_ENVIRONMENTS = 'DEPLOYMENT_OWNS_ENVIRONMENTS',\n /**\n * The integration plan owns the workers and minions; the foundation composes one scenario per\n * surface it declares (#1495). The application-level twin of\n * {@link CompositionBasis.DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES}.\n */\n INTEGRATION_PLAN_OWNS_WORKERS_AND_MINIONS = 'INTEGRATION_PLAN_OWNS_WORKERS_AND_MINIONS',\n /**\n * The application's configuration declares MORE THAN ONE language (`appPreferences.languages`), so its\n * website is published in a locale for each beyond the primary. A HOST fact rather than a family: no\n * specification family declares languages, and the configuration already does, so asking anyone would\n * re-state it.\n *\n * A NEED basis only. A one-language configuration implies no second locale, and that is\n * {@link CompositionBasis.NO_DECLARATION_IMPLIES_IT} — the configuration was read and implies nothing.\n * Until 2026-10-01 the derivation used this basis for both answers, and the validator refused every\n * one-language application on its first run.\n */\n APPLICATION_CONFIG_DECLARES_LANGUAGES = 'APPLICATION_CONFIG_DECLARES_LANGUAGES',\n /**\n * The market snapshot targets countries (a CORE or EXPANSION ICP's geographies) whose languages the\n * application's configuration does not serve, so the website needs a locale for each — named in the\n * decision's detail. Derived by `measureMarketLanguageCoverage`, never asked: both halves are typed\n * declarations (ISO country codes on the ICPs, `appPreferences.languages` in the configuration).\n *\n * Takes precedence over {@link CompositionBasis.APPLICATION_CONFIG_DECLARES_LANGUAGES} when both hold,\n * because it is the one that names a gap: the configuration and the market disagree, and the coherence\n * report says so as well.\n */\n MARKET_TARGETS_UNSERVED_LANGUAGES = 'MARKET_TARGETS_UNSERVED_LANGUAGES',\n /**\n * An optional LAYOUT library (the 3D layout, #1827) is the operator's opt-in. Nothing in a product definition\n * decides a rendering style: most applications are 2D, and one becomes 3D because its operator composes it —\n * a decision about how the shell is drawn, not about what the product does.\n */\n OPERATOR_OPTS_INTO_OPTIONAL_LAYOUT = 'OPERATOR_OPTS_INTO_OPTIONAL_LAYOUT',\n /** The declarations that could imply it are present and do not — measured, not assumed. */\n NO_DECLARATION_IMPLIES_IT = 'NO_DECLARATION_IMPLIES_IT',\n /** No typed declaration exists yet that could decide it; `missingDeclaration` names the one that would. */\n NO_DECLARATION_DECIDES_IT = 'NO_DECLARATION_DECIDES_IT',\n}\n\n/**\n * The ONE disposition each basis can justify. Total over {@link CompositionBasis}, so a basis added\n * tomorrow does not compile until somebody says which disposition it supports.\n *\n * A basis is a REASON, and a reason points one way: \"the domain plan owns modules\" cannot justify\n * NEEDED, \"no declaration implies it\" cannot justify NEEDED, \"the market declares an inbound web\n * channel\" cannot justify DECLINED. `validateCapabilityComposition` refuses any decision whose basis\n * this table maps elsewhere, and the derivation's constructors are typed by {@link CompositionBasisFor},\n * so the producer cannot even write the pairing the validator refuses.\n *\n * It exists because the pairing used to live in the validator only, as two hand-kept sets, while the\n * derivation wrote whatever pair it chose. On 2026-10-01 it wrote DECLINED with\n * `APPLICATION_CONFIG_DECLARES_LANGUAGES` for every one-language application; nothing stopped it until\n * the landing refused the record, on a real first run.\n */\nexport const COMPOSITION_BASIS_DISPOSITION = {\n [CompositionBasis.MARKET_DECLARES_INBOUND_WEB_CHANNEL]: CompositionDisposition.NEEDED,\n [CompositionBasis.BRAND_BRIEF_LANDED]: CompositionDisposition.NEEDED,\n [CompositionBasis.BUSINESS_MODEL_DECLARES_PRICING_PLANS]: CompositionDisposition.NEEDED,\n [CompositionBasis.MARKET_TARGETS_LEGAL_ENTITIES]: CompositionDisposition.NEEDED,\n [CompositionBasis.REQUIREMENTS_DECLARE_PORTABILITY]: CompositionDisposition.NEEDED,\n [CompositionBasis.APPLICATION_CONFIG_DECLARES_LANGUAGES]: CompositionDisposition.NEEDED,\n [CompositionBasis.MARKET_TARGETS_UNSERVED_LANGUAGES]: CompositionDisposition.NEEDED,\n [CompositionBasis.DOMAIN_PLAN_OWNS_MODULES_AND_RESOURCES]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.BUILD_TASKS_OWN_PER_ARTIFACT_SCENARIOS]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.PROVIDER_DECISION_OWNS_PROVIDERS]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.DEPLOYMENT_OWNS_ENVIRONMENTS]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.INTEGRATION_PLAN_OWNS_WORKERS_AND_MINIONS]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.OPERATOR_OPTS_INTO_OPTIONAL_LAYOUT]: CompositionDisposition.OWNED_BY_ANOTHER_STEP,\n [CompositionBasis.NO_DECLARATION_IMPLIES_IT]: CompositionDisposition.DECLINED,\n [CompositionBasis.NO_DECLARATION_DECIDES_IT]: CompositionDisposition.DECLINED,\n} as const satisfies Readonly<Record<CompositionBasis, CompositionDisposition>>;\n\n/** The bases that can justify disposition `D` — what a typed decision constructor accepts. */\nexport type CompositionBasisFor<D extends CompositionDisposition> = {\n [B in CompositionBasis]: (typeof COMPOSITION_BASIS_DISPOSITION)[B] extends D ? B : never;\n}[CompositionBasis];\n\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/** One scenario's decision, with the declaration it was read from. */\nexport const CompositionDecisionSchema = z.strictObject({\n scenarioRef: z.enum(CompositionScenarioRef).systemEnum('CompositionScenarioRef'),\n disposition: z.enum(CompositionDisposition).systemEnum('CompositionDisposition'),\n basis: z.enum(CompositionBasis).systemEnum('CompositionBasis'),\n /** The derivation in one sentence — which entries decided it, so a reader can check the claim against the family it names. */\n detail: NonEmptyStringSchema,\n /** For OWNED_BY_ANOTHER_STEP: the step that applies it. */\n ownedBy: NonEmptyStringSchema.optional(),\n /** For NO_DECLARATION_DECIDES_IT: the typed declaration that would decide it, so the gap is a named field rather than a question. */\n missingDeclaration: NonEmptyStringSchema.optional(),\n /**\n * For a NEEDED `add-locale`: the languages the website publishes a locale for, beyond its primary.\n *\n * Carried on the decision so the foundation APPLIES what was decided instead of deciding it again.\n * Before the market could decide a locale, the foundation re-read the configuration's languages and\n * that was the same answer; once a market language the configuration does not serve can make a\n * locale NEEDED, only the decision knows the full set.\n */\n locales: z.array(z.enum(AvailableLanguage).systemEnum('AvailableLanguage')).optional(),\n});\nexport type CompositionDecision = z.infer<typeof CompositionDecisionSchema>;\n\n/**\n * THE capability-composition payload — one decision per scenario the framework ships.\n *\n * **Artifact-family id: `capability-composition`.** Produced by `bottom_up.capability-composition`\n * (a runner-owned derivation, never a model), consumed by `bottom_up.foundation`, which applies the\n * NEEDED scenarios and records each applied and each declined one with its basis.\n */\nexport const CapabilityCompositionSchema = z.object({\n version: z.enum(CapabilityCompositionVersion).default(CapabilityCompositionVersion.V1),\n /*\n * `scenarioDecisions`, not `decisions`, and the reason is not style.\n *\n * The workbench's field words are ONE namespace keyed by the COLLECTION name — `tasks.objective`,\n * `decisions.disposition` — shared across every family, because a field name declared by five\n * aspects means the same thing in all five. The placement plan already owns `decisions`, and its\n * `disposition` is `PLACED | DECLINED` while this one's is `NEEDED | DECLINED |\n * OWNED_BY_ANOTHER_STEP`. Two different vocabularies under one key is exactly the merge this\n * repository calls a trick, and the collision would have been silent: one family's words would\n * simply have won.\n */\n scenarioDecisions: z.array(CompositionDecisionSchema).min(1),\n});\nexport type CapabilityComposition = z.infer<typeof CapabilityCompositionSchema>;\n/** @wildo_source:part:end capability-composition.config */\n"]}